urfu-ui-kit-react 1.11.7 → 1.12.0

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 (33) hide show
  1. package/dist/components/Calendar/Calendar.d.ts.map +1 -1
  2. package/dist/components/Calendar/CalendarSelect.d.ts +8 -1
  3. package/dist/components/Calendar/CalendarSelect.d.ts.map +1 -1
  4. package/dist/components/Notification/Notification.d.ts +34 -2
  5. package/dist/components/Notification/Notification.d.ts.map +1 -1
  6. package/dist/fonts/icons/urfu-ui-icon-font.eot +0 -0
  7. package/dist/fonts/icons/urfu-ui-icon-font.svg +339 -0
  8. package/dist/fonts/icons/urfu-ui-icon-font.ttf +0 -0
  9. package/dist/fonts/icons/urfu-ui-icon-font.woff +0 -0
  10. package/dist/fonts/montserrat/Montserrat-Black.ttf +0 -0
  11. package/dist/fonts/montserrat/Montserrat-BlackItalic.ttf +0 -0
  12. package/dist/fonts/montserrat/Montserrat-Bold.ttf +0 -0
  13. package/dist/fonts/montserrat/Montserrat-BoldItalic.ttf +0 -0
  14. package/dist/fonts/montserrat/Montserrat-ExtraBold.ttf +0 -0
  15. package/dist/fonts/montserrat/Montserrat-ExtraBoldItalic.ttf +0 -0
  16. package/dist/fonts/montserrat/Montserrat-ExtraLight.ttf +0 -0
  17. package/dist/fonts/montserrat/Montserrat-ExtraLightItalic.ttf +0 -0
  18. package/dist/fonts/montserrat/Montserrat-Italic.ttf +0 -0
  19. package/dist/fonts/montserrat/Montserrat-Light.ttf +0 -0
  20. package/dist/fonts/montserrat/Montserrat-LightItalic.ttf +0 -0
  21. package/dist/fonts/montserrat/Montserrat-Medium.ttf +0 -0
  22. package/dist/fonts/montserrat/Montserrat-MediumItalic.ttf +0 -0
  23. package/dist/fonts/montserrat/Montserrat-Regular.ttf +0 -0
  24. package/dist/fonts/montserrat/Montserrat-SemiBold.ttf +0 -0
  25. package/dist/fonts/montserrat/Montserrat-SemiBoldItalic.ttf +0 -0
  26. package/dist/fonts/montserrat/Montserrat-Thin.ttf +0 -0
  27. package/dist/fonts/montserrat/Montserrat-ThinItalic.ttf +0 -0
  28. package/dist/index.d.ts +1 -0
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/style-no-fonts.css +3 -1
  31. package/dist/style.css +138 -1
  32. package/dist/urfu-ui-kit-react.js +506 -432
  33. package/package.json +77 -77
@@ -3,12 +3,12 @@ var Wi = (n, r, t) => r in n ? Fi(n, r, { enumerable: !0, configurable: !0, writ
3
3
  var te = (n, r, t) => Wi(n, typeof r != "symbol" ? r + "" : r, t);
4
4
  import { jsxs as T, jsx as f, Fragment as Ie } from "react/jsx-runtime";
5
5
  import * as fe from "react";
6
- import R, { useId as Co, useLayoutEffect as $t, useEffect as re, cloneElement as No, createRef as Ht, Component as Be, useRef as ne, useCallback as Oe, createElement as Mo, forwardRef as $i, useState as j, useMemo as Ze, createContext as Hi, useContext as Bi } from "react";
6
+ import R, { useId as Co, useLayoutEffect as $t, useEffect as re, cloneElement as No, createRef as Ht, Component as Be, useRef as ne, useCallback as Oe, createElement as Mo, forwardRef as $i, useState as q, useMemo as Ze, createContext as Hi, useContext as Bi } from "react";
7
7
  import * as Gi from "react-dom";
8
8
  import zi, { createPortal as Ln } from "react-dom";
9
9
  const Qi = "data-input-mode";
10
10
  let Oa = !1;
11
- function qi() {
11
+ function ji() {
12
12
  if (Oa || typeof document > "u") return;
13
13
  Oa = !0;
14
14
  const n = (t) => {
@@ -49,7 +49,7 @@ const tt = (n, r = "u") => {
49
49
  style: { fontSize: ((o) => typeof o == "number" ? `calc(${o} * var(--u-unit, 1px))` : String(o))(r), color: t },
50
50
  className: `u-icon icon-${n} ${e}`
51
51
  }
52
- ), ji = (n) => !!n.to, hf = ({
52
+ ), qi = (n) => !!n.to, hf = ({
53
53
  items: n = [],
54
54
  className: r = "",
55
55
  onNavigate: t
@@ -66,7 +66,7 @@ const tt = (n, r = "u") => {
66
66
  }
67
67
  };
68
68
  return /* @__PURE__ */ f("div", { className: `u-breadcrumbs ${r}`.trim(), children: e.map((o, i) => {
69
- const s = ji(o) && !!o.to, l = s ? "th clr-blue-main" : "tt clr-gray-60", u = `u-breadcrumbs__item ${s ? `ucp ${l}` : l}`.trim(), c = i < e.length - 1;
69
+ const s = qi(o) && !!o.to, l = s ? "th clr-blue-main" : "tt clr-gray-60", u = `u-breadcrumbs__item ${s ? `ucp ${l}` : l}`.trim(), c = i < e.length - 1;
70
70
  return /* @__PURE__ */ T("div", { className: "u-breadcrumbs__entry", children: [
71
71
  /* @__PURE__ */ T("div", { className: u, onClick: () => s && a(o.to), children: [
72
72
  i === 0 ? /* @__PURE__ */ f(Ct, { name: "left-arrow", className: "clr-blue-main", size: "16px" }) : null,
@@ -189,9 +189,9 @@ function na(n, r) {
189
189
  const t = +ee(n);
190
190
  return Ce(n, t + r);
191
191
  }
192
- const To = 6048e5, Ki = 864e5, vr = 6e4, br = 36e5, Vi = 1e3;
192
+ const To = 6048e5, Ki = 864e5, br = 6e4, wr = 36e5, Vi = 1e3;
193
193
  function Ui(n, r) {
194
- return na(n, r * br);
194
+ return na(n, r * wr);
195
195
  }
196
196
  let Xi = {};
197
197
  function an() {
@@ -217,7 +217,7 @@ function tn(n) {
217
217
  const r = ee(n);
218
218
  return r.setHours(0, 0, 0, 0), r;
219
219
  }
220
- function tr(n) {
220
+ function nr(n) {
221
221
  const r = ee(n), t = new Date(
222
222
  Date.UTC(
223
223
  r.getFullYear(),
@@ -232,7 +232,7 @@ function tr(n) {
232
232
  return t.setUTCFullYear(r.getFullYear()), +n - +t;
233
233
  }
234
234
  function gn(n, r) {
235
- const t = tn(n), e = tn(r), a = +t - tr(t), o = +e - tr(e);
235
+ const t = tn(n), e = tn(r), a = +t - nr(t), o = +e - nr(e);
236
236
  return Math.round((a - o) / Ki);
237
237
  }
238
238
  function Zi(n) {
@@ -240,7 +240,7 @@ function Zi(n) {
240
240
  return t.setFullYear(r, 0, 4), t.setHours(0, 0, 0, 0), mn(t);
241
241
  }
242
242
  function Vr(n, r) {
243
- return na(n, r * vr);
243
+ return na(n, r * br);
244
244
  }
245
245
  function ra(n, r) {
246
246
  const t = r * 3;
@@ -249,7 +249,7 @@ function ra(n, r) {
249
249
  function Ji(n, r) {
250
250
  return na(n, r * 1e3);
251
251
  }
252
- function nr(n, r) {
252
+ function rr(n, r) {
253
253
  const t = r * 7;
254
254
  return st(n, t);
255
255
  }
@@ -277,13 +277,13 @@ function es(n, r) {
277
277
  function Mt(n) {
278
278
  return n instanceof Date || typeof n == "object" && Object.prototype.toString.call(n) === "[object Date]";
279
279
  }
280
- function rr(n) {
280
+ function ar(n) {
281
281
  if (!Mt(n) && typeof n != "number")
282
282
  return !1;
283
283
  const r = ee(n);
284
284
  return !isNaN(Number(r));
285
285
  }
286
- function ar(n, r) {
286
+ function or(n, r) {
287
287
  const t = ee(n), e = ee(r), a = t.getFullYear() - e.getFullYear(), o = t.getMonth() - e.getMonth();
288
288
  return a * 12 + o;
289
289
  }
@@ -291,11 +291,11 @@ function Xt(n) {
291
291
  const r = ee(n);
292
292
  return Math.trunc(r.getMonth() / 3) + 1;
293
293
  }
294
- function or(n, r) {
294
+ function ir(n, r) {
295
295
  const t = ee(n), e = ee(r), a = t.getFullYear() - e.getFullYear(), o = Xt(t) - Xt(e);
296
296
  return a * 4 + o;
297
297
  }
298
- function ir(n, r) {
298
+ function sr(n, r) {
299
299
  const t = ee(n), e = ee(r);
300
300
  return t.getFullYear() - e.getFullYear();
301
301
  }
@@ -329,7 +329,7 @@ function Lo(n) {
329
329
  const r = ee(n), t = r.getFullYear();
330
330
  return r.setFullYear(t + 1, 0, 0), r.setHours(23, 59, 59, 999), r;
331
331
  }
332
- function wr(n) {
332
+ function yr(n) {
333
333
  const r = ee(n), t = Ce(n, 0);
334
334
  return t.setFullYear(r.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
335
335
  }
@@ -771,7 +771,7 @@ const xs = /^(\d+)(th|st|nd|rd)?/i, Ds = /\d+/i, ks = {
771
771
  };
772
772
  function Is(n) {
773
773
  const r = ee(n);
774
- return gn(r, wr(r)) + 1;
774
+ return gn(r, yr(r)) + 1;
775
775
  }
776
776
  function aa(n) {
777
777
  const r = ee(n), t = +mn(r) - +Zi(r);
@@ -1404,7 +1404,7 @@ const Fa = (n, r) => {
1404
1404
  break;
1405
1405
  }
1406
1406
  return o.replace("{{date}}", Fa(e, r)).replace("{{time}}", Wo(a, r));
1407
- }, sr = {
1407
+ }, lr = {
1408
1408
  p: Wo,
1409
1409
  P: Ys
1410
1410
  }, As = /^D+$/, Fs = /^Y+$/, Ws = ["D", "DD", "YY", "YYYY"];
@@ -1426,12 +1426,12 @@ const Hs = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Bs = /P+p+|P
1426
1426
  function Wa(n, r, t) {
1427
1427
  var c, d, p, h, m, b, w, v;
1428
1428
  const e = an(), a = (t == null ? void 0 : t.locale) ?? e.locale ?? Ao, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((h = (p = e.locale) == null ? void 0 : p.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((b = (m = t == null ? void 0 : t.locale) == null ? void 0 : m.options) == null ? void 0 : b.weekStartsOn) ?? e.weekStartsOn ?? ((v = (w = e.locale) == null ? void 0 : w.options) == null ? void 0 : v.weekStartsOn) ?? 0, s = ee(n);
1429
- if (!rr(s))
1429
+ if (!ar(s))
1430
1430
  throw new RangeError("Invalid time value");
1431
1431
  let l = r.match(Bs).map((x) => {
1432
1432
  const y = x[0];
1433
1433
  if (y === "p" || y === "P") {
1434
- const _ = sr[y];
1434
+ const _ = lr[y];
1435
1435
  return _(x, a.formatLong);
1436
1436
  }
1437
1437
  return x;
@@ -1440,7 +1440,7 @@ function Wa(n, r, t) {
1440
1440
  return { isToken: !1, value: "'" };
1441
1441
  const y = x[0];
1442
1442
  if (y === "'")
1443
- return { isToken: !1, value: qs(x) };
1443
+ return { isToken: !1, value: js(x) };
1444
1444
  if (La[y])
1445
1445
  return { isToken: !0, value: x };
1446
1446
  if (y.match(Qs))
@@ -1463,14 +1463,14 @@ function Wa(n, r, t) {
1463
1463
  return _(s, y, a.localize, u);
1464
1464
  }).join("");
1465
1465
  }
1466
- function qs(n) {
1466
+ function js(n) {
1467
1467
  const r = n.match(Gs);
1468
1468
  return r ? r[1].replace(zs, "'") : n;
1469
1469
  }
1470
1470
  function $a(n) {
1471
1471
  return ee(n).getDate();
1472
1472
  }
1473
- function js(n) {
1473
+ function qs(n) {
1474
1474
  return ee(n).getDay();
1475
1475
  }
1476
1476
  function Ks(n) {
@@ -1490,7 +1490,7 @@ function Us(n) {
1490
1490
  function bt(n) {
1491
1491
  return ee(n).getMinutes();
1492
1492
  }
1493
- function qe(n) {
1493
+ function je(n) {
1494
1494
  return ee(n).getMonth();
1495
1495
  }
1496
1496
  function Et(n) {
@@ -1667,7 +1667,7 @@ function mt(n, r) {
1667
1667
  };
1668
1668
  const e = t[1] === "+" ? 1 : -1, a = t[2] ? parseInt(t[2], 10) : 0, o = t[3] ? parseInt(t[3], 10) : 0, i = t[5] ? parseInt(t[5], 10) : 0;
1669
1669
  return {
1670
- value: e * (a * br + o * vr + i * Vi),
1670
+ value: e * (a * wr + o * br + i * Vi),
1671
1671
  rest: r.slice(t[0].length)
1672
1672
  };
1673
1673
  }
@@ -1688,7 +1688,7 @@ function Le(n, r) {
1688
1688
  return Re(new RegExp("^\\d{1," + n + "}"), r);
1689
1689
  }
1690
1690
  }
1691
- function lr(n, r) {
1691
+ function cr(n, r) {
1692
1692
  switch (n) {
1693
1693
  case 1:
1694
1694
  return Re(Ye.singleDigitSigned, r);
@@ -1856,7 +1856,7 @@ class ol extends _e {
1856
1856
  ]);
1857
1857
  }
1858
1858
  parse(t, e) {
1859
- return lr(e === "R" ? 4 : e.length, t);
1859
+ return cr(e === "R" ? 4 : e.length, t);
1860
1860
  }
1861
1861
  set(t, e, a) {
1862
1862
  const o = Ce(t, 0);
@@ -1870,7 +1870,7 @@ class il extends _e {
1870
1870
  te(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
1871
1871
  }
1872
1872
  parse(t, e) {
1873
- return lr(e === "u" ? 4 : e.length, t);
1873
+ return cr(e === "u" ? 4 : e.length, t);
1874
1874
  }
1875
1875
  set(t, e, a) {
1876
1876
  return t.setFullYear(a, 0, 1), t.setHours(0, 0, 0, 0), t;
@@ -2877,7 +2877,7 @@ class Il extends _e {
2877
2877
  set(t, e, a) {
2878
2878
  return e.timestampIsSet ? t : Ce(
2879
2879
  t,
2880
- t.getTime() - tr(t) - a
2880
+ t.getTime() - nr(t) - a
2881
2881
  );
2882
2882
  }
2883
2883
  }
@@ -2914,7 +2914,7 @@ class Ll extends _e {
2914
2914
  set(t, e, a) {
2915
2915
  return e.timestampIsSet ? t : Ce(
2916
2916
  t,
2917
- t.getTime() - tr(t) - a
2917
+ t.getTime() - nr(t) - a
2918
2918
  );
2919
2919
  }
2920
2920
  }
@@ -2977,7 +2977,7 @@ const Fl = {
2977
2977
  t: new Yl(),
2978
2978
  T: new Al()
2979
2979
  }, Wl = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, $l = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Hl = /^'([^]*?)'?$/, Bl = /''/g, Gl = /\S/, zl = /[a-zA-Z]/;
2980
- function Lr(n, r, t, e) {
2980
+ function Yr(n, r, t, e) {
2981
2981
  var b, w, v, x, y, _, S, P;
2982
2982
  const a = Vs(), o = (e == null ? void 0 : e.locale) ?? a.locale ?? Ao, i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((w = (b = e == null ? void 0 : e.locale) == null ? void 0 : b.options) == null ? void 0 : w.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((x = (v = a.locale) == null ? void 0 : v.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, s = (e == null ? void 0 : e.weekStartsOn) ?? ((_ = (y = e == null ? void 0 : e.locale) == null ? void 0 : y.options) == null ? void 0 : _.weekStartsOn) ?? a.weekStartsOn ?? ((P = (S = a.locale) == null ? void 0 : S.options) == null ? void 0 : P.weekStartsOn) ?? 0;
2983
2983
  if (r === "")
@@ -2988,8 +2988,8 @@ function Lr(n, r, t, e) {
2988
2988
  locale: o
2989
2989
  }, u = [new tl()], c = r.match($l).map((k) => {
2990
2990
  const g = k[0];
2991
- if (g in sr) {
2992
- const C = sr[g];
2991
+ if (g in lr) {
2992
+ const C = lr[g];
2993
2993
  return C(k, o.formatLong);
2994
2994
  }
2995
2995
  return k;
@@ -3056,11 +3056,11 @@ function Ha(n, r, t) {
3056
3056
  const e = ct(n, t), a = ct(r, t);
3057
3057
  return +e == +a;
3058
3058
  }
3059
- function ql(n, r) {
3059
+ function jl(n, r) {
3060
3060
  const t = ee(n), e = ee(r);
3061
3061
  return t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth();
3062
3062
  }
3063
- function jl(n, r) {
3063
+ function ql(n, r) {
3064
3064
  const t = Ur(n), e = Ur(r);
3065
3065
  return +t == +e;
3066
3066
  }
@@ -3157,10 +3157,10 @@ function Sn(n) {
3157
3157
  function rc(n) {
3158
3158
  const r = n.match(Zl);
3159
3159
  if (!r) return NaN;
3160
- const t = Yr(r[1]), e = Yr(r[2]), a = Yr(r[3]);
3161
- return uc(t, e, a) ? t * br + e * vr + a * 1e3 : NaN;
3160
+ const t = Ar(r[1]), e = Ar(r[2]), a = Ar(r[3]);
3161
+ return uc(t, e, a) ? t * wr + e * br + a * 1e3 : NaN;
3162
3162
  }
3163
- function Yr(n) {
3163
+ function Ar(n) {
3164
3164
  return n && parseFloat(n.replace(",", ".")) || 0;
3165
3165
  }
3166
3166
  function ac(n) {
@@ -3168,7 +3168,7 @@ function ac(n) {
3168
3168
  const r = n.match(Jl);
3169
3169
  if (!r) return 0;
3170
3170
  const t = r[1] === "+" ? -1 : 1, e = parseInt(r[2]), a = r[3] && parseInt(r[3]) || 0;
3171
- return dc(e, a) ? t * (e * br + a * vr) : NaN;
3171
+ return dc(e, a) ? t * (e * wr + a * br) : NaN;
3172
3172
  }
3173
3173
  function oc(n, r, t) {
3174
3174
  const e = /* @__PURE__ */ new Date(0);
@@ -3177,14 +3177,14 @@ function oc(n, r, t) {
3177
3177
  return e.setUTCDate(e.getUTCDate() + o), e;
3178
3178
  }
3179
3179
  const ic = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
3180
- function qo(n) {
3180
+ function jo(n) {
3181
3181
  return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
3182
3182
  }
3183
3183
  function sc(n, r, t) {
3184
- return r >= 0 && r <= 11 && t >= 1 && t <= (ic[r] || (qo(n) ? 29 : 28));
3184
+ return r >= 0 && r <= 11 && t >= 1 && t <= (ic[r] || (jo(n) ? 29 : 28));
3185
3185
  }
3186
3186
  function lc(n, r) {
3187
- return r >= 1 && r <= (qo(n) ? 366 : 365);
3187
+ return r >= 1 && r <= (jo(n) ? 366 : 365);
3188
3188
  }
3189
3189
  function cc(n, r, t) {
3190
3190
  return r >= 1 && r <= 53 && t >= 0 && t <= 6;
@@ -3205,11 +3205,11 @@ function pc(n, r) {
3205
3205
  let t = ee(n);
3206
3206
  return isNaN(+t) ? Ce(n, NaN) : (r.year != null && t.setFullYear(r.year), r.month != null && (t = Je(t, r.month)), r.date != null && t.setDate(r.date), r.hours != null && t.setHours(r.hours), r.minutes != null && t.setMinutes(r.minutes), r.seconds != null && t.setSeconds(r.seconds), r.milliseconds != null && t.setMilliseconds(r.milliseconds), t);
3207
3207
  }
3208
- function Vn(n, r) {
3208
+ function Un(n, r) {
3209
3209
  const t = ee(n);
3210
3210
  return t.setHours(r), t;
3211
3211
  }
3212
- function Un(n, r) {
3212
+ function Xn(n, r) {
3213
3213
  const t = ee(n);
3214
3214
  return t.setMinutes(r), t;
3215
3215
  }
@@ -3217,7 +3217,7 @@ function dn(n, r) {
3217
3217
  const t = ee(n), e = Math.trunc(t.getMonth() / 3) + 1, a = r - e;
3218
3218
  return Je(t, t.getMonth() + a * 3);
3219
3219
  }
3220
- function Xn(n, r) {
3220
+ function Zn(n, r) {
3221
3221
  const t = ee(n);
3222
3222
  return t.setSeconds(r), t;
3223
3223
  }
@@ -3228,16 +3228,16 @@ function ut(n, r) {
3228
3228
  function Zt(n, r) {
3229
3229
  return lt(n, -r);
3230
3230
  }
3231
- function jo(n, r) {
3231
+ function qo(n, r) {
3232
3232
  return ra(n, -1);
3233
3233
  }
3234
3234
  function Ba(n, r) {
3235
- return nr(n, -1);
3235
+ return rr(n, -1);
3236
3236
  }
3237
3237
  function vn(n, r) {
3238
3238
  return Nt(n, -r);
3239
3239
  }
3240
- function yr() {
3240
+ function xr() {
3241
3241
  return typeof window < "u";
3242
3242
  }
3243
3243
  function _n(n) {
@@ -3252,16 +3252,16 @@ function xt(n) {
3252
3252
  return (r = (Ko(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : r.documentElement;
3253
3253
  }
3254
3254
  function Ko(n) {
3255
- return yr() ? n instanceof Node || n instanceof et(n).Node : !1;
3255
+ return xr() ? n instanceof Node || n instanceof et(n).Node : !1;
3256
3256
  }
3257
- function je(n) {
3258
- return yr() ? n instanceof Element || n instanceof et(n).Element : !1;
3257
+ function qe(n) {
3258
+ return xr() ? n instanceof Element || n instanceof et(n).Element : !1;
3259
3259
  }
3260
3260
  function yt(n) {
3261
- return yr() ? n instanceof HTMLElement || n instanceof et(n).HTMLElement : !1;
3261
+ return xr() ? n instanceof HTMLElement || n instanceof et(n).HTMLElement : !1;
3262
3262
  }
3263
3263
  function Ga(n) {
3264
- return !yr() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof et(n).ShadowRoot;
3264
+ return !xr() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof et(n).ShadowRoot;
3265
3265
  }
3266
3266
  function Yn(n) {
3267
3267
  const {
@@ -3275,7 +3275,7 @@ function Yn(n) {
3275
3275
  function fc(n) {
3276
3276
  return ["table", "td", "th"].includes(_n(n));
3277
3277
  }
3278
- function xr(n) {
3278
+ function Dr(n) {
3279
3279
  return [":popover-open", ":modal"].some((r) => {
3280
3280
  try {
3281
3281
  return n.matches(r);
@@ -3285,7 +3285,7 @@ function xr(n) {
3285
3285
  });
3286
3286
  }
3287
3287
  function la(n) {
3288
- const r = ca(), t = je(n) ? at(n) : n;
3288
+ const r = ca(), t = qe(n) ? at(n) : n;
3289
3289
  return ["transform", "translate", "scale", "rotate", "perspective"].some((e) => t[e] ? t[e] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !r && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !r && (t.filter ? t.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((e) => (t.willChange || "").includes(e)) || ["paint", "layout", "strict", "content"].some((e) => (t.contain || "").includes(e));
3290
3290
  }
3291
3291
  function hc(n) {
@@ -3293,7 +3293,7 @@ function hc(n) {
3293
3293
  for (; yt(r) && !bn(r); ) {
3294
3294
  if (la(r))
3295
3295
  return r;
3296
- if (xr(r))
3296
+ if (Dr(r))
3297
3297
  return null;
3298
3298
  r = Gt(r);
3299
3299
  }
@@ -3308,8 +3308,8 @@ function bn(n) {
3308
3308
  function at(n) {
3309
3309
  return et(n).getComputedStyle(n);
3310
3310
  }
3311
- function Dr(n) {
3312
- return je(n) ? {
3311
+ function kr(n) {
3312
+ return qe(n) ? {
3313
3313
  scrollLeft: n.scrollLeft,
3314
3314
  scrollTop: n.scrollTop
3315
3315
  } : {
@@ -3346,7 +3346,7 @@ function Pn(n, r, t) {
3346
3346
  function Jr(n) {
3347
3347
  return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
3348
3348
  }
3349
- const wn = Math.min, Jt = Math.max, cr = Math.round, Bn = Math.floor, wt = (n) => ({
3349
+ const wn = Math.min, Jt = Math.max, ur = Math.round, Bn = Math.floor, wt = (n) => ({
3350
3350
  x: n,
3351
3351
  y: n
3352
3352
  }), mc = {
@@ -3361,7 +3361,7 @@ const wn = Math.min, Jt = Math.max, cr = Math.round, Bn = Math.floor, wt = (n) =
3361
3361
  function vc(n, r, t) {
3362
3362
  return Jt(n, wn(r, t));
3363
3363
  }
3364
- function kr(n, r) {
3364
+ function _r(n, r) {
3365
3365
  return typeof n == "function" ? n(r) : n;
3366
3366
  }
3367
3367
  function yn(n) {
@@ -3386,10 +3386,10 @@ function wc(n, r, t) {
3386
3386
  t === void 0 && (t = !1);
3387
3387
  const e = An(n), a = da(n), o = ua(a);
3388
3388
  let i = a === "x" ? e === (t ? "end" : "start") ? "right" : "left" : e === "start" ? "bottom" : "top";
3389
- return r.reference[o] > r.floating[o] && (i = ur(i)), [i, ur(i)];
3389
+ return r.reference[o] > r.floating[o] && (i = dr(i)), [i, dr(i)];
3390
3390
  }
3391
3391
  function yc(n) {
3392
- const r = ur(n);
3392
+ const r = dr(n);
3393
3393
  return [ea(n), r, ea(r)];
3394
3394
  }
3395
3395
  function ea(n) {
@@ -3413,7 +3413,7 @@ function Dc(n, r, t, e) {
3413
3413
  let o = xc(yn(n), t === "start", e);
3414
3414
  return a && (o = o.map((i) => i + "-" + a), r && (o = o.concat(o.map(ea)))), o;
3415
3415
  }
3416
- function ur(n) {
3416
+ function dr(n) {
3417
3417
  return n.replace(/left|right|bottom|top/g, (r) => mc[r]);
3418
3418
  }
3419
3419
  function kc(n) {
@@ -3433,7 +3433,7 @@ function Uo(n) {
3433
3433
  left: n
3434
3434
  };
3435
3435
  }
3436
- function dr(n) {
3436
+ function pr(n) {
3437
3437
  const {
3438
3438
  x: r,
3439
3439
  y: t,
@@ -3576,7 +3576,7 @@ async function Sc(n, r) {
3576
3576
  elementContext: d = "floating",
3577
3577
  altBoundary: p = !1,
3578
3578
  padding: h = 0
3579
- } = kr(r, n), m = Uo(h), w = s[p ? d === "floating" ? "reference" : "floating" : d], v = dr(await o.getClippingRect({
3579
+ } = _r(r, n), m = Uo(h), w = s[p ? d === "floating" ? "reference" : "floating" : d], v = pr(await o.getClippingRect({
3580
3580
  element: (t = await (o.isElement == null ? void 0 : o.isElement(w))) == null || t ? w : w.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
3581
3581
  boundary: u,
3582
3582
  rootBoundary: c,
@@ -3592,7 +3592,7 @@ async function Sc(n, r) {
3592
3592
  } : {
3593
3593
  x: 1,
3594
3594
  y: 1
3595
- }, S = dr(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
3595
+ }, S = pr(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
3596
3596
  elements: s,
3597
3597
  rect: x,
3598
3598
  offsetParent: y,
@@ -3620,7 +3620,7 @@ const Cc = (n) => ({
3620
3620
  } = r, {
3621
3621
  element: u,
3622
3622
  padding: c = 0
3623
- } = kr(n, r) || {};
3623
+ } = _r(n, r) || {};
3624
3624
  if (u == null)
3625
3625
  return {};
3626
3626
  const d = Uo(c), p = {
@@ -3663,10 +3663,10 @@ const Cc = (n) => ({
3663
3663
  fallbackAxisSideDirection: m = "none",
3664
3664
  flipAlignment: b = !0,
3665
3665
  ...w
3666
- } = kr(n, r);
3666
+ } = _r(n, r);
3667
3667
  if ((t = o.arrow) != null && t.alignmentOffset)
3668
3668
  return {};
3669
- const v = yn(a), x = Rn(s), y = yn(s) === s, _ = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), S = p || (y || !b ? [ur(s)] : yc(s)), P = m !== "none";
3669
+ const v = yn(a), x = Rn(s), y = yn(s) === s, _ = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), S = p || (y || !b ? [dr(s)] : yc(s)), P = m !== "none";
3670
3670
  !p && P && S.push(...Dc(s, b, m, _));
3671
3671
  const k = [s, ...S], g = await Sc(r, w), C = [];
3672
3672
  let M = ((e = o.flip) == null ? void 0 : e.overflows) || [];
@@ -3727,7 +3727,7 @@ async function Mc(n, r) {
3727
3727
  placement: t,
3728
3728
  platform: e,
3729
3729
  elements: a
3730
- } = n, o = await (e.isRTL == null ? void 0 : e.isRTL(a.floating)), i = yn(t), s = An(t), l = Rn(t) === "y", u = ["left", "top"].includes(i) ? -1 : 1, c = o && l ? -1 : 1, d = kr(r, n);
3730
+ } = n, o = await (e.isRTL == null ? void 0 : e.isRTL(a.floating)), i = yn(t), s = An(t), l = Rn(t) === "y", u = ["left", "top"].includes(i) ? -1 : 1, c = o && l ? -1 : 1, d = _r(r, n);
3731
3731
  let {
3732
3732
  mainAxis: p,
3733
3733
  crossAxis: h,
@@ -3775,7 +3775,7 @@ const Ec = function(n) {
3775
3775
  function Xo(n) {
3776
3776
  const r = at(n);
3777
3777
  let t = parseFloat(r.width) || 0, e = parseFloat(r.height) || 0;
3778
- const a = yt(n), o = a ? n.offsetWidth : t, i = a ? n.offsetHeight : e, s = cr(t) !== o || cr(e) !== i;
3778
+ const a = yt(n), o = a ? n.offsetWidth : t, i = a ? n.offsetHeight : e, s = ur(t) !== o || ur(e) !== i;
3779
3779
  return s && (t = o, e = i), {
3780
3780
  width: t,
3781
3781
  height: e,
@@ -3783,7 +3783,7 @@ function Xo(n) {
3783
3783
  };
3784
3784
  }
3785
3785
  function pa(n) {
3786
- return je(n) ? n : n.contextElement;
3786
+ return qe(n) ? n : n.contextElement;
3787
3787
  }
3788
3788
  function fn(n) {
3789
3789
  const r = pa(n);
@@ -3794,7 +3794,7 @@ function fn(n) {
3794
3794
  height: a,
3795
3795
  $: o
3796
3796
  } = Xo(r);
3797
- let i = (o ? cr(t.width) : t.width) / e, s = (o ? cr(t.height) : t.height) / a;
3797
+ let i = (o ? ur(t.width) : t.width) / e, s = (o ? ur(t.height) : t.height) / a;
3798
3798
  return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
3799
3799
  x: i,
3800
3800
  y: s
@@ -3815,18 +3815,18 @@ function rn(n, r, t, e) {
3815
3815
  r === void 0 && (r = !1), t === void 0 && (t = !1);
3816
3816
  const a = n.getBoundingClientRect(), o = pa(n);
3817
3817
  let i = wt(1);
3818
- r && (e ? je(e) && (i = fn(e)) : i = fn(n));
3818
+ r && (e ? qe(e) && (i = fn(e)) : i = fn(n));
3819
3819
  const s = Oc(o, t, e) ? Zo(o) : wt(0);
3820
3820
  let l = (a.left + s.x) / i.x, u = (a.top + s.y) / i.y, c = a.width / i.x, d = a.height / i.y;
3821
3821
  if (o) {
3822
- const p = et(o), h = e && je(e) ? et(e) : e;
3822
+ const p = et(o), h = e && qe(e) ? et(e) : e;
3823
3823
  let m = p, b = Jr(m);
3824
3824
  for (; b && e && h !== m; ) {
3825
3825
  const w = fn(b), v = b.getBoundingClientRect(), x = at(b), y = v.left + (b.clientLeft + parseFloat(x.paddingLeft)) * w.x, _ = v.top + (b.clientTop + parseFloat(x.paddingTop)) * w.y;
3826
3826
  l *= w.x, u *= w.y, c *= w.x, d *= w.y, l += y, u += _, m = et(b), b = Jr(m);
3827
3827
  }
3828
3828
  }
3829
- return dr({
3829
+ return pr({
3830
3830
  width: c,
3831
3831
  height: d,
3832
3832
  x: l,
@@ -3834,7 +3834,7 @@ function rn(n, r, t, e) {
3834
3834
  });
3835
3835
  }
3836
3836
  function fa(n, r) {
3837
- const t = Dr(n).scrollLeft;
3837
+ const t = kr(n).scrollLeft;
3838
3838
  return r ? r.left + t : rn(xt(n)).left + t;
3839
3839
  }
3840
3840
  function Jo(n, r, t) {
@@ -3855,7 +3855,7 @@ function Pc(n) {
3855
3855
  offsetParent: e,
3856
3856
  strategy: a
3857
3857
  } = n;
3858
- const o = a === "fixed", i = xt(e), s = r ? xr(r.floating) : !1;
3858
+ const o = a === "fixed", i = xt(e), s = r ? Dr(r.floating) : !1;
3859
3859
  if (e === i || s && o)
3860
3860
  return t;
3861
3861
  let l = {
@@ -3863,7 +3863,7 @@ function Pc(n) {
3863
3863
  scrollTop: 0
3864
3864
  }, u = wt(1);
3865
3865
  const c = wt(0), d = yt(e);
3866
- if ((d || !d && !o) && ((_n(e) !== "body" || Yn(i)) && (l = Dr(e)), yt(e))) {
3866
+ if ((d || !d && !o) && ((_n(e) !== "body" || Yn(i)) && (l = kr(e)), yt(e))) {
3867
3867
  const h = rn(e);
3868
3868
  u = fn(e), c.x = h.x + e.clientLeft, c.y = h.y + e.clientTop;
3869
3869
  }
@@ -3879,7 +3879,7 @@ function Rc(n) {
3879
3879
  return Array.from(n.getClientRects());
3880
3880
  }
3881
3881
  function Ic(n) {
3882
- const r = xt(n), t = Dr(n), e = n.ownerDocument.body, a = Jt(r.scrollWidth, r.clientWidth, e.scrollWidth, e.clientWidth), o = Jt(r.scrollHeight, r.clientHeight, e.scrollHeight, e.clientHeight);
3882
+ const r = xt(n), t = kr(n), e = n.ownerDocument.body, a = Jt(r.scrollWidth, r.clientWidth, e.scrollWidth, e.clientWidth), o = Jt(r.scrollHeight, r.clientHeight, e.scrollHeight, e.clientHeight);
3883
3883
  let i = -t.scrollLeft + fa(n);
3884
3884
  const s = -t.scrollTop;
3885
3885
  return at(e).direction === "rtl" && (i += Jt(r.clientWidth, e.clientWidth) - a), {
@@ -3919,7 +3919,7 @@ function Qa(n, r, t) {
3919
3919
  e = Lc(n, t);
3920
3920
  else if (r === "document")
3921
3921
  e = Ic(xt(n));
3922
- else if (je(r))
3922
+ else if (qe(r))
3923
3923
  e = Yc(r, t);
3924
3924
  else {
3925
3925
  const a = Zo(n);
@@ -3930,20 +3930,20 @@ function Qa(n, r, t) {
3930
3930
  height: r.height
3931
3931
  };
3932
3932
  }
3933
- return dr(e);
3933
+ return pr(e);
3934
3934
  }
3935
3935
  function ei(n, r) {
3936
3936
  const t = Gt(n);
3937
- return t === r || !je(t) || bn(t) ? !1 : at(t).position === "fixed" || ei(t, r);
3937
+ return t === r || !qe(t) || bn(t) ? !1 : at(t).position === "fixed" || ei(t, r);
3938
3938
  }
3939
3939
  function Ac(n, r) {
3940
3940
  const t = r.get(n);
3941
3941
  if (t)
3942
3942
  return t;
3943
- let e = Pn(n, [], !1).filter((s) => je(s) && _n(s) !== "body"), a = null;
3943
+ let e = Pn(n, [], !1).filter((s) => qe(s) && _n(s) !== "body"), a = null;
3944
3944
  const o = at(n).position === "fixed";
3945
3945
  let i = o ? Gt(n) : n;
3946
- for (; je(i) && !bn(i); ) {
3946
+ for (; qe(i) && !bn(i); ) {
3947
3947
  const s = at(i), l = la(i);
3948
3948
  !l && s.position === "fixed" && (a = null), (o ? !l && !a : !l && s.position === "static" && !!a && ["absolute", "fixed"].includes(a.position) || Yn(i) && !l && ei(n, i)) ? e = e.filter((c) => c !== i) : a = s, i = Gt(i);
3949
3949
  }
@@ -3956,7 +3956,7 @@ function Fc(n) {
3956
3956
  rootBoundary: e,
3957
3957
  strategy: a
3958
3958
  } = n;
3959
- const i = [...t === "clippingAncestors" ? xr(r) ? [] : Ac(r, this._c) : [].concat(t), e], s = i[0], l = i.reduce((u, c) => {
3959
+ const i = [...t === "clippingAncestors" ? Dr(r) ? [] : Ac(r, this._c) : [].concat(t), e], s = i[0], l = i.reduce((u, c) => {
3960
3960
  const d = Qa(r, c, a);
3961
3961
  return u.top = Jt(d.top, u.top), u.right = wn(d.right, u.right), u.bottom = wn(d.bottom, u.bottom), u.left = Jt(d.left, u.left), u;
3962
3962
  }, Qa(r, s, a));
@@ -3985,7 +3985,7 @@ function $c(n, r, t) {
3985
3985
  };
3986
3986
  const l = wt(0);
3987
3987
  if (e || !e && !o)
3988
- if ((_n(r) !== "body" || Yn(a)) && (s = Dr(r)), e) {
3988
+ if ((_n(r) !== "body" || Yn(a)) && (s = kr(r)), e) {
3989
3989
  const p = rn(r, !0, o, r);
3990
3990
  l.x = p.x + r.clientLeft, l.y = p.y + r.clientTop;
3991
3991
  } else a && (l.x = fa(a));
@@ -3997,10 +3997,10 @@ function $c(n, r, t) {
3997
3997
  height: i.height
3998
3998
  };
3999
3999
  }
4000
- function Ar(n) {
4000
+ function Fr(n) {
4001
4001
  return at(n).position === "static";
4002
4002
  }
4003
- function qa(n, r) {
4003
+ function ja(n, r) {
4004
4004
  if (!yt(n) || at(n).position === "fixed")
4005
4005
  return null;
4006
4006
  if (r)
@@ -4010,21 +4010,21 @@ function qa(n, r) {
4010
4010
  }
4011
4011
  function ti(n, r) {
4012
4012
  const t = et(n);
4013
- if (xr(n))
4013
+ if (Dr(n))
4014
4014
  return t;
4015
4015
  if (!yt(n)) {
4016
4016
  let a = Gt(n);
4017
4017
  for (; a && !bn(a); ) {
4018
- if (je(a) && !Ar(a))
4018
+ if (qe(a) && !Fr(a))
4019
4019
  return a;
4020
4020
  a = Gt(a);
4021
4021
  }
4022
4022
  return t;
4023
4023
  }
4024
- let e = qa(n, r);
4025
- for (; e && fc(e) && Ar(e); )
4026
- e = qa(e, r);
4027
- return e && bn(e) && Ar(e) && !la(e) ? t : e || hc(n) || t;
4024
+ let e = ja(n, r);
4025
+ for (; e && fc(e) && Fr(e); )
4026
+ e = ja(e, r);
4027
+ return e && bn(e) && Fr(e) && !la(e) ? t : e || hc(n) || t;
4028
4028
  }
4029
4029
  const Hc = async function(n) {
4030
4030
  const r = this.getOffsetParent || ti, t = this.getDimensions, e = await t(n.floating);
@@ -4050,7 +4050,7 @@ const Gc = {
4050
4050
  getClientRects: Rc,
4051
4051
  getDimensions: Wc,
4052
4052
  getScale: fn,
4053
- isElement: je,
4053
+ isElement: qe,
4054
4054
  isRTL: Bc
4055
4055
  };
4056
4056
  function ni(n, r) {
@@ -4138,7 +4138,7 @@ function Qc(n, r, t, e) {
4138
4138
  }), d == null || d(), (v = h) == null || v.disconnect(), h = null, l && cancelAnimationFrame(m);
4139
4139
  };
4140
4140
  }
4141
- const qc = Ec, jc = Nc, ja = Cc, Kc = (n, r, t) => {
4141
+ const jc = Ec, qc = Nc, qa = Cc, Kc = (n, r, t) => {
4142
4142
  const e = /* @__PURE__ */ new Map(), a = {
4143
4143
  platform: Gc,
4144
4144
  ...t
@@ -4151,8 +4151,8 @@ const qc = Ec, jc = Nc, ja = Cc, Kc = (n, r, t) => {
4151
4151
  platform: o
4152
4152
  });
4153
4153
  };
4154
- var Zn = typeof document < "u" ? $t : re;
4155
- function pr(n, r) {
4154
+ var Jn = typeof document < "u" ? $t : re;
4155
+ function fr(n, r) {
4156
4156
  if (n === r)
4157
4157
  return !0;
4158
4158
  if (typeof n != typeof r)
@@ -4164,7 +4164,7 @@ function pr(n, r) {
4164
4164
  if (Array.isArray(n)) {
4165
4165
  if (t = n.length, t !== r.length) return !1;
4166
4166
  for (e = t; e-- !== 0; )
4167
- if (!pr(n[e], r[e]))
4167
+ if (!fr(n[e], r[e]))
4168
4168
  return !1;
4169
4169
  return !0;
4170
4170
  }
@@ -4175,7 +4175,7 @@ function pr(n, r) {
4175
4175
  return !1;
4176
4176
  for (e = t; e-- !== 0; ) {
4177
4177
  const o = a[e];
4178
- if (!(o === "_owner" && n.$$typeof) && !pr(n[o], r[o]))
4178
+ if (!(o === "_owner" && n.$$typeof) && !fr(n[o], r[o]))
4179
4179
  return !1;
4180
4180
  }
4181
4181
  return !0;
@@ -4189,9 +4189,9 @@ function Ka(n, r) {
4189
4189
  const t = ri(n);
4190
4190
  return Math.round(r * t) / t;
4191
4191
  }
4192
- function Fr(n) {
4192
+ function Wr(n) {
4193
4193
  const r = fe.useRef(n);
4194
- return Zn(() => {
4194
+ return Jn(() => {
4195
4195
  r.current = n;
4196
4196
  }), r;
4197
4197
  }
@@ -4217,12 +4217,12 @@ function Vc(n) {
4217
4217
  middlewareData: {},
4218
4218
  isPositioned: !1
4219
4219
  }), [p, h] = fe.useState(e);
4220
- pr(p, e) || h(e);
4220
+ fr(p, e) || h(e);
4221
4221
  const [m, b] = fe.useState(null), [w, v] = fe.useState(null), x = fe.useCallback((E) => {
4222
4222
  E !== P.current && (P.current = E, b(E));
4223
4223
  }, []), y = fe.useCallback((E) => {
4224
4224
  E !== k.current && (k.current = E, v(E));
4225
- }, []), _ = o || m, S = i || w, P = fe.useRef(null), k = fe.useRef(null), g = fe.useRef(c), C = l != null, M = Fr(l), I = Fr(a), A = Fr(u), W = fe.useCallback(() => {
4225
+ }, []), _ = o || m, S = i || w, P = fe.useRef(null), k = fe.useRef(null), g = fe.useRef(c), C = l != null, M = Wr(l), I = Wr(a), A = Wr(u), W = fe.useCallback(() => {
4226
4226
  if (!P.current || !k.current)
4227
4227
  return;
4228
4228
  const E = {
@@ -4239,21 +4239,21 @@ function Vc(n) {
4239
4239
  // setting it to `true` when `open === false` (must be specified).
4240
4240
  isPositioned: A.current !== !1
4241
4241
  };
4242
- z.current && !pr(g.current, F) && (g.current = F, Gi.flushSync(() => {
4242
+ z.current && !fr(g.current, F) && (g.current = F, Gi.flushSync(() => {
4243
4243
  d(F);
4244
4244
  }));
4245
4245
  });
4246
4246
  }, [p, r, t, I, A]);
4247
- Zn(() => {
4247
+ Jn(() => {
4248
4248
  u === !1 && g.current.isPositioned && (g.current.isPositioned = !1, d((E) => ({
4249
4249
  ...E,
4250
4250
  isPositioned: !1
4251
4251
  })));
4252
4252
  }, [u]);
4253
4253
  const z = fe.useRef(!1);
4254
- Zn(() => (z.current = !0, () => {
4254
+ Jn(() => (z.current = !0, () => {
4255
4255
  z.current = !1;
4256
- }), []), Zn(() => {
4256
+ }), []), Jn(() => {
4257
4257
  if (_ && (P.current = _), S && (k.current = S), _ && S) {
4258
4258
  if (M.current)
4259
4259
  return M.current(_, S, W);
@@ -4309,20 +4309,20 @@ const Uc = (n) => {
4309
4309
  element: e,
4310
4310
  padding: a
4311
4311
  } = typeof n == "function" ? n(t) : n;
4312
- return e && r(e) ? e.current != null ? ja({
4312
+ return e && r(e) ? e.current != null ? qa({
4313
4313
  element: e.current,
4314
4314
  padding: a
4315
- }).fn(t) : {} : e ? ja({
4315
+ }).fn(t) : {} : e ? qa({
4316
4316
  element: e,
4317
4317
  padding: a
4318
4318
  }).fn(t) : {};
4319
4319
  }
4320
4320
  };
4321
4321
  }, Xc = (n, r) => ({
4322
- ...qc(n),
4322
+ ...jc(n),
4323
4323
  options: [n, r]
4324
4324
  }), Zc = (n, r) => ({
4325
- ...jc(n),
4325
+ ...qc(n),
4326
4326
  options: [n, r]
4327
4327
  }), Jc = (n, r) => ({
4328
4328
  ...Uc(n),
@@ -4343,7 +4343,7 @@ function nu(n) {
4343
4343
  return r.current == null ? void 0 : r.current(...e);
4344
4344
  }, []);
4345
4345
  }
4346
- var fr = typeof document < "u" ? $t : re;
4346
+ var hr = typeof document < "u" ? $t : re;
4347
4347
  let Va = !1, ru = 0;
4348
4348
  const Ua = () => (
4349
4349
  // Ensure the id is unique with multiple independent versions of Floating UI
@@ -4352,7 +4352,7 @@ const Ua = () => (
4352
4352
  );
4353
4353
  function au() {
4354
4354
  const [n, r] = fe.useState(() => Va ? Ua() : void 0);
4355
- return fr(() => {
4355
+ return hr(() => {
4356
4356
  n == null && r(Ua());
4357
4357
  }, []), fe.useEffect(() => {
4358
4358
  Va = !0;
@@ -4406,7 +4406,7 @@ const lu = /* @__PURE__ */ fe.forwardRef(function(r, t) {
4406
4406
  } = r;
4407
4407
  process.env.NODE_ENV !== "production" && (t || iu("The `ref` prop is required for `FloatingArrow`."));
4408
4408
  const v = oi(), [x, y] = fe.useState(!1);
4409
- if (fr(() => {
4409
+ if (hr(() => {
4410
4410
  if (!a) return;
4411
4411
  at(a).direction === "rtl" && y(!0);
4412
4412
  }, [a]), !a)
@@ -4487,7 +4487,7 @@ function hu(n) {
4487
4487
  } = n, a = oi(), o = fe.useRef({}), [i] = fe.useState(() => cu()), s = pu() != null;
4488
4488
  if (process.env.NODE_ENV !== "production") {
4489
4489
  const h = e.reference;
4490
- h && !je(h) && su("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
4490
+ h && !qe(h) && su("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
4491
4491
  }
4492
4492
  const [l, u] = fe.useState(e.reference), c = nu((h, m, b) => {
4493
4493
  o.current.openEvent = h ? m : void 0, i.emit("openchange", {
@@ -4525,7 +4525,7 @@ function mu(n) {
4525
4525
  ...n.elements
4526
4526
  }
4527
4527
  }), e = n.rootContext || t, a = e.elements, [o, i] = fe.useState(null), [s, l] = fe.useState(null), c = (a == null ? void 0 : a.domReference) || o, d = fe.useRef(null), p = fu();
4528
- fr(() => {
4528
+ hr(() => {
4529
4529
  c && (d.current = c);
4530
4530
  }, [c]);
4531
4531
  const h = Vc({
@@ -4537,16 +4537,16 @@ function mu(n) {
4537
4537
  }
4538
4538
  }
4539
4539
  }), m = fe.useCallback((y) => {
4540
- const _ = je(y) ? {
4540
+ const _ = qe(y) ? {
4541
4541
  getBoundingClientRect: () => y.getBoundingClientRect(),
4542
4542
  contextElement: y
4543
4543
  } : y;
4544
4544
  l(_), h.refs.setReference(_);
4545
4545
  }, [h.refs]), b = fe.useCallback((y) => {
4546
- (je(y) || y === null) && (d.current = y, i(y)), (je(h.refs.reference.current) || h.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
4546
+ (qe(y) || y === null) && (d.current = y, i(y)), (qe(h.refs.reference.current) || h.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
4547
4547
  // `null` to support `positionReference` + an unstable `reference`
4548
4548
  // callback ref.
4549
- y !== null && !je(y)) && h.refs.setReference(y);
4549
+ y !== null && !qe(y)) && h.refs.setReference(y);
4550
4550
  }, [h.refs]), w = fe.useMemo(() => ({
4551
4551
  ...h.refs,
4552
4552
  setReference: b,
@@ -4562,7 +4562,7 @@ function mu(n) {
4562
4562
  elements: v,
4563
4563
  nodeId: r
4564
4564
  }), [h, w, v, r, e]);
4565
- return fr(() => {
4565
+ return hr(() => {
4566
4566
  e.dataRef.current.floatingContext = x;
4567
4567
  const y = p == null ? void 0 : p.nodesRef.current.find((_) => _.id === r);
4568
4568
  y && (y.context = x);
@@ -4624,7 +4624,7 @@ var gu = function(n) {
4624
4624
  document.removeEventListener("mousedown", a);
4625
4625
  };
4626
4626
  }, [a]), t;
4627
- }, _r = function(n) {
4627
+ }, Sr = function(n) {
4628
4628
  var r = n.children, t = n.onClickOutside, e = n.className, a = n.containerRef, o = n.style, i = n.ignoreClass, s = vu(t, i);
4629
4629
  return R.createElement("div", { className: e, style: o, ref: function(l) {
4630
4630
  s.current = l, a && (a.current = l);
@@ -4644,18 +4644,18 @@ function Ne(n) {
4644
4644
  var r = typeof n == "string" ? Ul(n) : ee(n);
4645
4645
  return _t(r) ? r : /* @__PURE__ */ new Date();
4646
4646
  }
4647
- function Wr(n, r, t, e, a) {
4647
+ function $r(n, r, t, e, a) {
4648
4648
  var o, i = null, s = en(t) || en(Tn()), l = !0;
4649
4649
  if (Array.isArray(r))
4650
4650
  return r.forEach(function(c) {
4651
- var d = Lr(n, c, /* @__PURE__ */ new Date(), {
4651
+ var d = Yr(n, c, /* @__PURE__ */ new Date(), {
4652
4652
  locale: s,
4653
4653
  useAdditionalWeekYearTokens: !0,
4654
4654
  useAdditionalDayOfYearTokens: !0
4655
4655
  });
4656
4656
  e && (l = _t(d, a) && n === Ee(d, c, t)), _t(d, a) && l && (i = d);
4657
4657
  }), i;
4658
- if (i = Lr(n, r, /* @__PURE__ */ new Date(), {
4658
+ if (i = Yr(n, r, /* @__PURE__ */ new Date(), {
4659
4659
  locale: s,
4660
4660
  useAdditionalWeekYearTokens: !0,
4661
4661
  useAdditionalDayOfYearTokens: !0
@@ -4665,12 +4665,12 @@ function Wr(n, r, t, e, a) {
4665
4665
  var u = ((o = r.match(bu)) !== null && o !== void 0 ? o : []).map(function(c) {
4666
4666
  var d = c[0];
4667
4667
  if (d === "p" || d === "P") {
4668
- var p = sr[d];
4668
+ var p = lr[d];
4669
4669
  return s ? p(c, s.formatLong) : d;
4670
4670
  }
4671
4671
  return c;
4672
4672
  }).join("");
4673
- n.length > 0 && (i = Lr(n, u.slice(0, n.length), /* @__PURE__ */ new Date(), {
4673
+ n.length > 0 && (i = Yr(n, u.slice(0, n.length), /* @__PURE__ */ new Date(), {
4674
4674
  useAdditionalWeekYearTokens: !0,
4675
4675
  useAdditionalDayOfYearTokens: !0
4676
4676
  })), _t(i) || (i = new Date(n));
@@ -4678,7 +4678,7 @@ function Wr(n, r, t, e, a) {
4678
4678
  return _t(i) && l ? i : null;
4679
4679
  }
4680
4680
  function _t(n, r) {
4681
- return rr(n) && !nn(n, r ?? /* @__PURE__ */ new Date("1/1/1800"));
4681
+ return ar(n) && !nn(n, r ?? /* @__PURE__ */ new Date("1/1/1800"));
4682
4682
  }
4683
4683
  function Ee(n, r, t) {
4684
4684
  if (t === "en")
@@ -4716,9 +4716,9 @@ function yu(n, r) {
4716
4716
  var a = n.length - 1;
4717
4717
  return "".concat(t, " (+").concat(a, ")");
4718
4718
  }
4719
- function $r(n, r) {
4719
+ function Hr(n, r) {
4720
4720
  var t = r.hour, e = t === void 0 ? 0 : t, a = r.minute, o = a === void 0 ? 0 : a, i = r.second, s = i === void 0 ? 0 : i;
4721
- return Vn(Un(Xn(n, s), o), e);
4721
+ return Un(Xn(Zn(n, s), o), e);
4722
4722
  }
4723
4723
  function xu(n) {
4724
4724
  return aa(n);
@@ -4726,7 +4726,7 @@ function xu(n) {
4726
4726
  function Du(n, r) {
4727
4727
  return Ee(n, "ddd", r);
4728
4728
  }
4729
- function Jn(n) {
4729
+ function er(n) {
4730
4730
  return tn(n);
4731
4731
  }
4732
4732
  function Wt(n, r, t) {
@@ -4740,7 +4740,7 @@ function Tt(n) {
4740
4740
  return Io(n);
4741
4741
  }
4742
4742
  function Mn(n) {
4743
- return wr(n);
4743
+ return yr(n);
4744
4744
  }
4745
4745
  function Xa(n) {
4746
4746
  return Ur(n);
@@ -4761,11 +4761,11 @@ function dt(n, r) {
4761
4761
  return n && r ? Kl(n, r) : !n && !r;
4762
4762
  }
4763
4763
  function Xe(n, r) {
4764
- return n && r ? ql(n, r) : !n && !r;
4765
- }
4766
- function hr(n, r) {
4767
4764
  return n && r ? jl(n, r) : !n && !r;
4768
4765
  }
4766
+ function mr(n, r) {
4767
+ return n && r ? ql(n, r) : !n && !r;
4768
+ }
4769
4769
  function ve(n, r) {
4770
4770
  return n && r ? es(n, r) : !n && !r;
4771
4771
  }
@@ -4850,7 +4850,7 @@ function si(n, r) {
4850
4850
  }) || s && !s(Ne(n)) || !1;
4851
4851
  }
4852
4852
  function Gn(n, r, t, e) {
4853
- var a = he(n), o = qe(n), i = he(r), s = qe(r), l = he(e);
4853
+ var a = he(n), o = je(n), i = he(r), s = je(r), l = he(e);
4854
4854
  return a === i && a === l ? o <= t && t <= s : a < i ? l === a && o <= t || l === i && s >= t || l < i && l > a : !1;
4855
4855
  }
4856
4856
  function Tu(n, r) {
@@ -4864,21 +4864,21 @@ function Tu(n, r) {
4864
4864
  function zn(n, r) {
4865
4865
  var t = r === void 0 ? {} : r, e = t.minDate, a = t.maxDate, o = t.excludeDates, i = t.includeDates, s = t.filterDate;
4866
4866
  return Wn(n, { minDate: e, maxDate: a }) || (o == null ? void 0 : o.some(function(l) {
4867
- return hr(n, l instanceof Date ? l : l.date);
4867
+ return mr(n, l instanceof Date ? l : l.date);
4868
4868
  })) || i && !i.some(function(l) {
4869
- return hr(n, l);
4869
+ return mr(n, l);
4870
4870
  }) || s && !s(Ne(n)) || !1;
4871
4871
  }
4872
4872
  function Qn(n, r, t) {
4873
- if (!r || !t || !rr(r) || !rr(t))
4873
+ if (!r || !t || !ar(r) || !ar(t))
4874
4874
  return !1;
4875
4875
  var e = he(r), a = he(t);
4876
4876
  return e <= n && a >= n;
4877
4877
  }
4878
- function er(n, r) {
4878
+ function tr(n, r) {
4879
4879
  var t = r === void 0 ? {} : r, e = t.minDate, a = t.maxDate, o = t.excludeDates, i = t.includeDates, s = t.filterDate, l = new Date(n, 0, 1);
4880
4880
  return Wn(l, {
4881
- minDate: e ? wr(e) : void 0,
4881
+ minDate: e ? yr(e) : void 0,
4882
4882
  maxDate: a ? Lo(a) : void 0
4883
4883
  }) || (o == null ? void 0 : o.some(function(u) {
4884
4884
  return dt(l, u instanceof Date ? u : u.date);
@@ -4886,7 +4886,7 @@ function er(n, r) {
4886
4886
  return dt(l, u);
4887
4887
  }) || s && !s(Ne(l)) || !1;
4888
4888
  }
4889
- function qn(n, r, t, e) {
4889
+ function jn(n, r, t, e) {
4890
4890
  var a = he(n), o = Xt(n), i = he(r), s = Xt(r), l = he(e);
4891
4891
  return a === i && a === l ? o <= t && t <= s : a < i ? l === a && o <= t || l === i && s >= t || l < i && l > a : !1;
4892
4892
  }
@@ -4908,11 +4908,11 @@ function no(n, r) {
4908
4908
  if (!t || !e)
4909
4909
  throw new Error("Both minTime and maxTime props required");
4910
4910
  var a = Ne();
4911
- a = Vn(a, vt(n)), a = Un(a, bt(n)), a = Xn(a, Et(n));
4911
+ a = Un(a, vt(n)), a = Xn(a, bt(n)), a = Zn(a, Et(n));
4912
4912
  var o = Ne();
4913
- o = Vn(o, vt(t)), o = Un(o, bt(t)), o = Xn(o, Et(t));
4913
+ o = Un(o, vt(t)), o = Xn(o, bt(t)), o = Zn(o, Et(t));
4914
4914
  var i = Ne();
4915
- i = Vn(i, vt(e)), i = Un(i, bt(e)), i = Xn(i, Et(e));
4915
+ i = Un(i, vt(e)), i = Xn(i, bt(e)), i = Zn(i, Et(e));
4916
4916
  var s;
4917
4917
  try {
4918
4918
  s = !On(a, { start: o, end: i });
@@ -4923,32 +4923,32 @@ function no(n, r) {
4923
4923
  }
4924
4924
  function ro(n, r) {
4925
4925
  var t = r === void 0 ? {} : r, e = t.minDate, a = t.includeDates, o = Zt(n, 1);
4926
- return e && ar(e, o) > 0 || a && a.every(function(i) {
4927
- return ar(i, o) > 0;
4926
+ return e && or(e, o) > 0 || a && a.every(function(i) {
4927
+ return or(i, o) > 0;
4928
4928
  }) || !1;
4929
4929
  }
4930
4930
  function ao(n, r) {
4931
4931
  var t = r === void 0 ? {} : r, e = t.maxDate, a = t.includeDates, o = lt(n, 1);
4932
- return e && ar(o, e) > 0 || a && a.every(function(i) {
4933
- return ar(o, i) > 0;
4932
+ return e && or(o, e) > 0 || a && a.every(function(i) {
4933
+ return or(o, i) > 0;
4934
4934
  }) || !1;
4935
4935
  }
4936
4936
  function Ou(n, r) {
4937
- var t = r === void 0 ? {} : r, e = t.minDate, a = t.includeDates, o = wr(n), i = jo(o);
4938
- return e && or(e, i) > 0 || a && a.every(function(s) {
4939
- return or(s, i) > 0;
4937
+ var t = r === void 0 ? {} : r, e = t.minDate, a = t.includeDates, o = yr(n), i = qo(o);
4938
+ return e && ir(e, i) > 0 || a && a.every(function(s) {
4939
+ return ir(s, i) > 0;
4940
4940
  }) || !1;
4941
4941
  }
4942
4942
  function Pu(n, r) {
4943
4943
  var t = r === void 0 ? {} : r, e = t.maxDate, a = t.includeDates, o = Lo(n), i = ra(o, 1);
4944
- return e && or(i, e) > 0 || a && a.every(function(s) {
4945
- return or(i, s) > 0;
4944
+ return e && ir(i, e) > 0 || a && a.every(function(s) {
4945
+ return ir(i, s) > 0;
4946
4946
  }) || !1;
4947
4947
  }
4948
4948
  function oo(n, r) {
4949
4949
  var t = r === void 0 ? {} : r, e = t.minDate, a = t.includeDates, o = vn(n, 1);
4950
- return e && ir(e, o) > 0 || a && a.every(function(i) {
4951
- return ir(i, o) > 0;
4950
+ return e && sr(e, o) > 0 || a && a.every(function(i) {
4951
+ return sr(i, o) > 0;
4952
4952
  }) || !1;
4953
4953
  }
4954
4954
  function Ru(n, r) {
@@ -4957,8 +4957,8 @@ function Ru(n, r) {
4957
4957
  }
4958
4958
  function io(n, r) {
4959
4959
  var t = r === void 0 ? {} : r, e = t.maxDate, a = t.includeDates, o = Nt(n, 1);
4960
- return e && ir(o, e) > 0 || a && a.every(function(i) {
4961
- return ir(o, i) > 0;
4960
+ return e && sr(o, e) > 0 || a && a.every(function(i) {
4961
+ return sr(o, i) > 0;
4962
4962
  }) || !1;
4963
4963
  }
4964
4964
  function Iu(n, r) {
@@ -5200,12 +5200,12 @@ var $u = (
5200
5200
  var e = t.props, a = e.day, o = e.startDate, i = e.endDate;
5201
5201
  return !o || !i ? !1 : ve(i, a);
5202
5202
  }, t.isWeekend = function() {
5203
- var e = js(t.props.day);
5203
+ var e = qs(t.props.day);
5204
5204
  return e === 0 || e === 6;
5205
5205
  }, t.isAfterMonth = function() {
5206
- return t.props.month !== void 0 && (t.props.month + 1) % 12 === qe(t.props.day);
5206
+ return t.props.month !== void 0 && (t.props.month + 1) % 12 === je(t.props.day);
5207
5207
  }, t.isBeforeMonth = function() {
5208
- return t.props.month !== void 0 && (qe(t.props.day) + 1) % 12 === t.props.month;
5208
+ return t.props.month !== void 0 && (je(t.props.day) + 1) % 12 === t.props.month;
5209
5209
  }, t.isCurrentDay = function() {
5210
5210
  return t.isSameDay(Ne());
5211
5211
  }, t.isSelected = function() {
@@ -5396,7 +5396,7 @@ var $u = (
5396
5396
  TWO_COLUMNS: "two_columns",
5397
5397
  THREE_COLUMNS: "three_columns",
5398
5398
  FOUR_COLUMNS: "four_columns"
5399
- }, Hr = (Cn = {}, Cn[hn.TWO_COLUMNS] = {
5399
+ }, Br = (Cn = {}, Cn[hn.TWO_COLUMNS] = {
5400
5400
  grid: [
5401
5401
  [0, 1],
5402
5402
  [2, 3],
@@ -5421,7 +5421,7 @@ var $u = (
5421
5421
  [8, 9, 10, 11]
5422
5422
  ],
5423
5423
  verticalNavigationOffset: 4
5424
- }, Cn), jn = 1;
5424
+ }, Cn), qn = 1;
5425
5425
  function fo(n, r) {
5426
5426
  return n ? hn.FOUR_COLUMNS : r ? hn.TWO_COLUMNS : hn.THREE_COLUMNS;
5427
5427
  }
@@ -5464,13 +5464,13 @@ var Qu = (
5464
5464
  return !i || !s ? !1 : Xe(Je(o, e), i);
5465
5465
  }, t.isRangeStartQuarter = function(e) {
5466
5466
  var a = t.props, o = a.day, i = a.startDate, s = a.endDate;
5467
- return !i || !s ? !1 : hr(dn(o, e), i);
5467
+ return !i || !s ? !1 : mr(dn(o, e), i);
5468
5468
  }, t.isRangeEndMonth = function(e) {
5469
5469
  var a = t.props, o = a.day, i = a.startDate, s = a.endDate;
5470
5470
  return !i || !s ? !1 : Xe(Je(o, e), s);
5471
5471
  }, t.isRangeEndQuarter = function(e) {
5472
5472
  var a = t.props, o = a.day, i = a.startDate, s = a.endDate;
5473
- return !i || !s ? !1 : hr(dn(o, e), s);
5473
+ return !i || !s ? !1 : mr(dn(o, e), s);
5474
5474
  }, t.isInSelectingRangeMonth = function(e) {
5475
5475
  var a, o = t.props, i = o.day, s = o.selectsStart, l = o.selectsEnd, u = o.selectsRange, c = o.startDate, d = o.endDate, p = (a = t.props.selectingDate) !== null && a !== void 0 ? a : t.props.preSelection;
5476
5476
  return !(s || l || u) || !p ? !1 : s && d ? Gn(p, d, e, i) : l && c || u && c && !d ? Gn(c, p, e, i) : !1;
@@ -5488,16 +5488,16 @@ var Qu = (
5488
5488
  return l || u ? Xe(c, d) : Xe(c, s);
5489
5489
  }, t.isInSelectingRangeQuarter = function(e) {
5490
5490
  var a, o = t.props, i = o.day, s = o.selectsStart, l = o.selectsEnd, u = o.selectsRange, c = o.startDate, d = o.endDate, p = (a = t.props.selectingDate) !== null && a !== void 0 ? a : t.props.preSelection;
5491
- return !(s || l || u) || !p ? !1 : s && d ? qn(p, d, e, i) : l && c || u && c && !d ? qn(c, p, e, i) : !1;
5491
+ return !(s || l || u) || !p ? !1 : s && d ? jn(p, d, e, i) : l && c || u && c && !d ? jn(c, p, e, i) : !1;
5492
5492
  }, t.isWeekInMonth = function(e) {
5493
5493
  var a = t.props.day, o = st(e, 6);
5494
5494
  return Xe(e, a) || Xe(o, a);
5495
5495
  }, t.isCurrentMonth = function(e, a) {
5496
- return he(e) === he(Ne()) && a === qe(Ne());
5496
+ return he(e) === he(Ne()) && a === je(Ne());
5497
5497
  }, t.isCurrentQuarter = function(e, a) {
5498
5498
  return he(e) === he(Ne()) && a === Xt(Ne());
5499
5499
  }, t.isSelectedMonth = function(e, a, o) {
5500
- return qe(o) === a && he(e) === he(o);
5500
+ return je(o) === a && he(e) === he(o);
5501
5501
  }, t.isSelectMonthInList = function(e, a, o) {
5502
5502
  return o.some(function(i) {
5503
5503
  return t.isSelectedMonth(e, a, i);
@@ -5509,8 +5509,8 @@ var Qu = (
5509
5509
  return t.props.showWeekPicker ? Wt(m, t.props.locale, t.props.calendarStartDay) : t.props.preSelection;
5510
5510
  }, u = function(m) {
5511
5511
  return t.props.showWeekPicker ? Wt(m, t.props.locale, t.props.calendarStartDay) : t.props.selected;
5512
- }, c = t.props.selected ? u(t.props.selected) : void 0, d = t.props.preSelection ? l(t.props.preSelection) : void 0; e.push(R.createElement(Gu, xe({}, t.props, { ariaLabelPrefix: t.props.weekAriaLabelPrefix, key: o, day: s, month: qe(t.props.day), onDayClick: t.handleDayClick, onDayMouseEnter: t.handleDayMouseEnter, selected: c, preSelection: d, showWeekNumber: t.props.showWeekNumbers }))), !i; ) {
5513
- o++, s = nr(s, 1);
5512
+ }, c = t.props.selected ? u(t.props.selected) : void 0, d = t.props.preSelection ? l(t.props.preSelection) : void 0; e.push(R.createElement(Gu, xe({}, t.props, { ariaLabelPrefix: t.props.weekAriaLabelPrefix, key: o, day: s, month: je(t.props.day), onDayClick: t.handleDayClick, onDayMouseEnter: t.handleDayMouseEnter, selected: c, preSelection: d, showWeekNumber: t.props.showWeekNumbers }))), !i; ) {
5513
+ o++, s = rr(s, 1);
5514
5514
  var p = a && o >= zu, h = !a && !t.isWeekInMonth(s);
5515
5515
  if (p || h)
5516
5516
  if (t.props.peekNextMonth)
@@ -5531,14 +5531,14 @@ var Qu = (
5531
5531
  }, t.handleKeyboardNavigation = function(e, a, o) {
5532
5532
  var i, s = t.props, l = s.selected, u = s.preSelection, c = s.setPreSelection, d = s.minDate, p = s.maxDate, h = s.showFourColumnMonthYearPicker, m = s.showTwoColumnMonthYearPicker;
5533
5533
  if (u) {
5534
- var b = fo(h, m), w = t.getVerticalOffset(b), v = (i = Hr[b]) === null || i === void 0 ? void 0 : i.grid, x = function(k, g, C) {
5534
+ var b = fo(h, m), w = t.getVerticalOffset(b), v = (i = Br[b]) === null || i === void 0 ? void 0 : i.grid, x = function(k, g, C) {
5535
5535
  var M, I, A = g, W = C;
5536
5536
  switch (k) {
5537
5537
  case U.ArrowRight:
5538
- A = lt(g, jn), W = C === 11 ? 0 : C + jn;
5538
+ A = lt(g, qn), W = C === 11 ? 0 : C + qn;
5539
5539
  break;
5540
5540
  case U.ArrowLeft:
5541
- A = Zt(g, jn), W = C === 0 ? 11 : C - jn;
5541
+ A = Zt(g, qn), W = C === 0 ? 11 : C - qn;
5542
5542
  break;
5543
5543
  case U.ArrowUp:
5544
5544
  A = Zt(g, w), W = !((M = v == null ? void 0 : v[0]) === null || M === void 0) && M.includes(C) ? C + 12 - w : C - w;
@@ -5589,7 +5589,7 @@ var Qu = (
5589
5589
  }
5590
5590
  }, t.getVerticalOffset = function(e) {
5591
5591
  var a, o;
5592
- return (o = (a = Hr[e]) === null || a === void 0 ? void 0 : a.verticalNavigationOffset) !== null && o !== void 0 ? o : 0;
5592
+ return (o = (a = Br[e]) === null || a === void 0 ? void 0 : a.verticalNavigationOffset) !== null && o !== void 0 ? o : 0;
5593
5593
  }, t.onMonthKeyDown = function(e, a) {
5594
5594
  var o = t.props, i = o.disabledKeyboardNavigation, s = o.handleOnMonthKeyDown, l = e.key;
5595
5595
  l !== U.Tab && e.preventDefault(), i || t.handleKeyboardNavigation(e, l, a), s && s(e);
@@ -5617,7 +5617,7 @@ var Qu = (
5617
5617
  case U.ArrowLeft:
5618
5618
  if (!t.props.preSelection)
5619
5619
  break;
5620
- t.handleQuarterNavigation(a === 1 ? 4 : a - 1, jo(t.props.preSelection));
5620
+ t.handleQuarterNavigation(a === 1 ? 4 : a - 1, qo(t.props.preSelection));
5621
5621
  break;
5622
5622
  }
5623
5623
  }, t.isMonthDisabledForLabelDate = function(e) {
@@ -5646,7 +5646,7 @@ var Qu = (
5646
5646
  }, t.getTabIndex = function(e) {
5647
5647
  if (t.props.preSelection == null)
5648
5648
  return "-1";
5649
- var a = qe(t.props.preSelection), o = t.isMonthDisabledForLabelDate(a).isDisabled, i = e === a && !(o || t.props.disabledKeyboardNavigation) ? "0" : "-1";
5649
+ var a = je(t.props.preSelection), o = t.isMonthDisabledForLabelDate(a).isDisabled, i = e === a && !(o || t.props.disabledKeyboardNavigation) ? "0" : "-1";
5650
5650
  return i;
5651
5651
  }, t.getQuarterTabIndex = function(e) {
5652
5652
  if (t.props.preSelection == null)
@@ -5663,7 +5663,7 @@ var Qu = (
5663
5663
  "react-datepicker__quarter-text--selected": l ? t.isSelectedQuarter(o, e, l) : void 0,
5664
5664
  "react-datepicker__quarter-text--keyboard-selected": !b && m && t.isSelectedQuarter(o, e, m) && !w,
5665
5665
  "react-datepicker__quarter-text--in-selecting-range": t.isInSelectingRangeQuarter(e),
5666
- "react-datepicker__quarter-text--in-range": i && s ? qn(i, s, e, o) : void 0,
5666
+ "react-datepicker__quarter-text--in-range": i && s ? jn(i, s, e, o) : void 0,
5667
5667
  "react-datepicker__quarter-text--range-start": t.isRangeStartQuarter(e),
5668
5668
  "react-datepicker__quarter-text--range-end": t.isRangeEndQuarter(e)
5669
5669
  });
@@ -5674,7 +5674,7 @@ var Qu = (
5674
5674
  var a, o = t.props, i = o.renderQuarterContent, s = o.locale, l = Eu(e, s);
5675
5675
  return (a = i == null ? void 0 : i(e, l)) !== null && a !== void 0 ? a : l;
5676
5676
  }, t.renderMonths = function() {
5677
- var e, a = t.props, o = a.showTwoColumnMonthYearPicker, i = a.showFourColumnMonthYearPicker, s = a.day, l = a.selected, u = (e = Hr[fo(i, o)]) === null || e === void 0 ? void 0 : e.grid;
5677
+ var e, a = t.props, o = a.showTwoColumnMonthYearPicker, i = a.showFourColumnMonthYearPicker, s = a.day, l = a.selected, u = (e = Br[fo(i, o)]) === null || e === void 0 ? void 0 : e.grid;
5678
5678
  return u == null ? void 0 : u.map(function(c, d) {
5679
5679
  return R.createElement("div", { className: "react-datepicker__month-wrapper", key: d }, c.map(function(p, h) {
5680
5680
  return R.createElement("div", { ref: t.MONTH_REFS[p], key: h, onClick: function(m) {
@@ -5719,7 +5719,7 @@ var Qu = (
5719
5719
  return R.createElement("div", { className: this.getClassNames(), onMouseLeave: this.props.usePointerEvent ? void 0 : this.handleMouseLeave, onPointerLeave: this.props.usePointerEvent ? this.handleMouseLeave : void 0, "aria-label": "".concat(l).concat(Ee(o, "MMMM, yyyy", this.props.locale)), role: "listbox" }, e ? this.renderMonths() : a ? this.renderQuarters() : this.renderWeeks());
5720
5720
  }, r;
5721
5721
  }(Be)
5722
- ), qu = (
5722
+ ), ju = (
5723
5723
  /** @class */
5724
5724
  function(n) {
5725
5725
  Ge(r, n);
@@ -5743,10 +5743,10 @@ var Qu = (
5743
5743
  }, t;
5744
5744
  }
5745
5745
  return r.prototype.render = function() {
5746
- return R.createElement(_r, { className: "react-datepicker__month-dropdown", onClickOutside: this.handleClickOutside }, this.renderOptions());
5746
+ return R.createElement(Sr, { className: "react-datepicker__month-dropdown", onClickOutside: this.handleClickOutside }, this.renderOptions());
5747
5747
  }, r;
5748
5748
  }(Be)
5749
- ), ju = (
5749
+ ), qu = (
5750
5750
  /** @class */
5751
5751
  function(n) {
5752
5752
  Ge(r, n);
@@ -5770,7 +5770,7 @@ var Qu = (
5770
5770
  R.createElement("span", { className: "react-datepicker__month-read-view--selected-month" }, a[t.props.month])
5771
5771
  );
5772
5772
  }, t.renderDropdown = function(e) {
5773
- return R.createElement(qu, xe({ key: "dropdown" }, t.props, { monthNames: e, onChange: t.onChange, onCancel: t.toggleDropdown }));
5773
+ return R.createElement(ju, xe({ key: "dropdown" }, t.props, { monthNames: e, onChange: t.onChange, onCancel: t.toggleDropdown }));
5774
5774
  }, t.renderScrollMode = function(e) {
5775
5775
  var a = t.state.dropdownVisible, o = [t.renderReadView(!a, e)];
5776
5776
  return a && o.unshift(t.renderDropdown(e)), o;
@@ -5834,7 +5834,7 @@ var Vu = (
5834
5834
  "react-datepicker__month-year-dropdown": !0,
5835
5835
  "react-datepicker__month-year-dropdown--scrollable": this.props.scrollableMonthYearDropdown
5836
5836
  });
5837
- return R.createElement(_r, { className: t, onClickOutside: this.handleClickOutside }, this.renderOptions());
5837
+ return R.createElement(Sr, { className: t, onClickOutside: this.handleClickOutside }, this.renderOptions());
5838
5838
  }, r;
5839
5839
  }(Be)
5840
5840
  ), Uu = (
@@ -5921,7 +5921,7 @@ var Vu = (
5921
5921
  var o, i;
5922
5922
  e.key === U.Space && (e.preventDefault(), e.key = U.Enter), (e.key === U.ArrowUp || e.key === U.ArrowLeft) && e.target instanceof HTMLElement && e.target.previousSibling && (e.preventDefault(), e.target.previousSibling instanceof HTMLElement && e.target.previousSibling.focus()), (e.key === U.ArrowDown || e.key === U.ArrowRight) && e.target instanceof HTMLElement && e.target.nextSibling && (e.preventDefault(), e.target.nextSibling instanceof HTMLElement && e.target.nextSibling.focus()), e.key === U.Enter && t.handleClick(a), (i = (o = t.props).handleOnKeyDown) === null || i === void 0 || i.call(o, e);
5923
5923
  }, t.renderTimes = function() {
5924
- for (var e, a = [], o = typeof t.props.format == "string" ? t.props.format : "p", i = (e = t.props.intervals) !== null && e !== void 0 ? e : r.defaultProps.intervals, s = t.props.selected || t.props.openToDate || Ne(), l = Jn(s), u = t.props.injectTimes && t.props.injectTimes.sort(function(w, v) {
5924
+ for (var e, a = [], o = typeof t.props.format == "string" ? t.props.format : "p", i = (e = t.props.intervals) !== null && e !== void 0 ? e : r.defaultProps.intervals, s = t.props.selected || t.props.openToDate || Ne(), l = er(s), u = t.props.injectTimes && t.props.injectTimes.sort(function(w, v) {
5925
5925
  return w.getTime() - v.getTime();
5926
5926
  }), c = 60 * Fu(s), d = c / i, p = 0; p < d; p++) {
5927
5927
  var h = Vr(l, p * i);
@@ -6051,7 +6051,7 @@ var Vu = (
6051
6051
  return l || u ? dt(c, (o = e.selectingDate()) !== null && o !== void 0 ? o : null) : dt(c, s ?? null);
6052
6052
  }, e.isKeyboardSelected = function(a) {
6053
6053
  if (!(e.props.date === void 0 || e.props.selected == null || e.props.preSelection == null)) {
6054
- var o = e.props, i = o.minDate, s = o.maxDate, l = o.excludeDates, u = o.includeDates, c = o.filterDate, d = Mn(ut(e.props.date, a)), p = (i || s || l || u || c) && er(a, e.props);
6054
+ var o = e.props, i = o.minDate, s = o.maxDate, l = o.excludeDates, u = o.includeDates, c = o.filterDate, d = Mn(ut(e.props.date, a)), p = (i || s || l || u || c) && tr(a, e.props);
6055
6055
  return !e.props.disabledKeyboardNavigation && !e.props.inline && !ve(d, Mn(e.props.selected)) && ve(d, Mn(e.props.preSelection)) && !p;
6056
6056
  }
6057
6057
  }, e.onYearClick = function(a, o) {
@@ -6104,7 +6104,7 @@ var Vu = (
6104
6104
  var o = e.props, i = o.date, s = o.minDate, l = o.maxDate, u = o.selected, c = o.excludeDates, d = o.includeDates, p = o.filterDate, h = o.yearClassName;
6105
6105
  return Qe("react-datepicker__year-text", "react-datepicker__year-".concat(a), i ? h == null ? void 0 : h(ut(i, a)) : void 0, {
6106
6106
  "react-datepicker__year-text--selected": u ? a === he(u) : void 0,
6107
- "react-datepicker__year-text--disabled": (s || l || c || d || p) && er(a, e.props),
6107
+ "react-datepicker__year-text--disabled": (s || l || c || d || p) && tr(a, e.props),
6108
6108
  "react-datepicker__year-text--keyboard-selected": e.isKeyboardSelected(a),
6109
6109
  "react-datepicker__year-text--range-start": e.isRangeStart(a),
6110
6110
  "react-datepicker__year-text--range-end": e.isRangeEnd(a),
@@ -6117,7 +6117,7 @@ var Vu = (
6117
6117
  }, e.getYearTabIndex = function(a) {
6118
6118
  if (e.props.disabledKeyboardNavigation || e.props.preSelection == null)
6119
6119
  return "-1";
6120
- var o = he(e.props.preSelection), i = er(a, e.props);
6120
+ var o = he(e.props.preSelection), i = tr(a, e.props);
6121
6121
  return a === o && !i ? "0" : "-1";
6122
6122
  }, e.getYearContent = function(a) {
6123
6123
  return e.props.renderYearContent ? e.props.renderYearContent(a) : a;
@@ -6220,7 +6220,7 @@ var ed = (
6220
6220
  "react-datepicker__year-dropdown": !0,
6221
6221
  "react-datepicker__year-dropdown--scrollable": this.props.scrollableYearDropdown
6222
6222
  });
6223
- return R.createElement(_r, { className: t, containerRef: this.dropdownRef, onClickOutside: this.handleClickOutside }, this.renderOptions());
6223
+ return R.createElement(Sr, { className: t, containerRef: this.dropdownRef, onClickOutside: this.handleClickOutside }, this.renderOptions());
6224
6224
  }, r;
6225
6225
  }(Be)
6226
6226
  ), td = (
@@ -6382,7 +6382,7 @@ var ed = (
6382
6382
  e.setState(function(o) {
6383
6383
  var i = o.date;
6384
6384
  return {
6385
- date: ut(Je(i, qe(a)), he(a))
6385
+ date: ut(Je(i, je(a)), he(a))
6386
6386
  };
6387
6387
  }, function() {
6388
6388
  return e.handleMonthYearChange(e.state.date);
@@ -6497,7 +6497,7 @@ var ed = (
6497
6497
  return R.createElement(td, xe({}, r.defaultProps, e.props, { date: e.state.date, onChange: e.changeYear, year: he(e.state.date) }));
6498
6498
  }, e.renderMonthDropdown = function(a) {
6499
6499
  if (a === void 0 && (a = !1), !(!e.props.showMonthDropdown || a))
6500
- return R.createElement(ju, xe({}, r.defaultProps, e.props, { month: qe(e.state.date), onChange: e.changeMonth }));
6500
+ return R.createElement(qu, xe({}, r.defaultProps, e.props, { month: je(e.state.date), onChange: e.changeMonth }));
6501
6501
  }, e.renderMonthYearDropdown = function(a) {
6502
6502
  if (a === void 0 && (a = !1), !(!e.props.showMonthYearDropdown || a))
6503
6503
  return R.createElement(Uu, xe({}, r.defaultProps, e.props, { date: e.state.date, onChange: e.changeMonthYear }));
@@ -6578,7 +6578,7 @@ var ed = (
6578
6578
  return R.createElement($u, xe({}, r.defaultProps, e.props, { date: a, timeString: i, onChange: e.props.onTimeChange }));
6579
6579
  }, e.renderAriaLiveRegion = function() {
6580
6580
  var a, o = Ft(e.state.date, (a = e.props.yearItemNumber) !== null && a !== void 0 ? a : r.defaultProps.yearItemNumber), i = o.startPeriod, s = o.endPeriod, l;
6581
- return e.props.showYearPicker ? l = "".concat(i, " - ").concat(s) : e.props.showMonthYearPicker || e.props.showQuarterYearPicker ? l = he(e.state.date) : l = "".concat(ma(qe(e.state.date), e.props.locale), " ").concat(he(e.state.date)), R.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, e.state.isRenderAriaLiveMessage && l);
6581
+ return e.props.showYearPicker ? l = "".concat(i, " - ").concat(s) : e.props.showMonthYearPicker || e.props.showQuarterYearPicker ? l = he(e.state.date) : l = "".concat(ma(je(e.state.date), e.props.locale), " ").concat(he(e.state.date)), R.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, e.state.isRenderAriaLiveMessage && l);
6582
6582
  }, e.renderChildren = function() {
6583
6583
  if (e.props.children)
6584
6584
  return R.createElement("div", { className: "react-datepicker__children-container" }, e.props.children);
@@ -6624,7 +6624,7 @@ var ed = (
6624
6624
  }, r.prototype.render = function() {
6625
6625
  var t = this.props.container || gu;
6626
6626
  return R.createElement(
6627
- _r,
6627
+ Sr,
6628
6628
  { onClickOutside: this.handleClickOutside, style: { display: "contents" }, containerRef: this.containerRef, ignoreClass: this.props.outsideClickIgnoreClass },
6629
6629
  R.createElement(
6630
6630
  t,
@@ -6758,9 +6758,9 @@ var cd = (
6758
6758
  }(Be)
6759
6759
  ), ud = ld(cd), mo = "react-datepicker-ignore-onclickoutside";
6760
6760
  function dd(n, r) {
6761
- return n && r ? qe(n) !== qe(r) || he(n) !== he(r) : n !== r;
6761
+ return n && r ? je(n) !== je(r) || he(n) !== he(r) : n !== r;
6762
6762
  }
6763
- var Br = "Date input not valid.", pd = (
6763
+ var Gr = "Date input not valid.", pd = (
6764
6764
  /** @class */
6765
6765
  function(n) {
6766
6766
  Ge(r, n);
@@ -6775,7 +6775,7 @@ var Br = "Date input not valid.", pd = (
6775
6775
  return _t(s) ? gt(gt([], o, !0), [xe(xe({}, i), { date: s })], !1) : o;
6776
6776
  }, []);
6777
6777
  }, e.calcInitialState = function() {
6778
- var a, o = e.getPreSelection(), i = li(e.props), s = ci(e.props), l = i && nn(o, Jn(i)) ? i : s && Bt(o, Ja(s)) ? s : o;
6778
+ var a, o = e.getPreSelection(), i = li(e.props), s = ci(e.props), l = i && nn(o, er(i)) ? i : s && Bt(o, Ja(s)) ? s : o;
6779
6779
  return {
6780
6780
  open: e.props.startOpen || !1,
6781
6781
  preventFocus: !1,
@@ -6817,7 +6817,7 @@ var Br = "Date input not valid.", pd = (
6817
6817
  o === void 0 && (o = !1), e.setState({
6818
6818
  open: a,
6819
6819
  preSelection: a && e.state.open ? e.state.preSelection : e.calcInitialState().preSelection,
6820
- lastPreSelectChange: Gr
6820
+ lastPreSelectChange: zr
6821
6821
  }, function() {
6822
6822
  a || e.setState(function(i) {
6823
6823
  return {
@@ -6867,12 +6867,12 @@ var Br = "Date input not valid.", pd = (
6867
6867
  if (m) {
6868
6868
  var x = v.split("-", 2).map(function(M) {
6869
6869
  return M.trim();
6870
- }), y = x[0], _ = x[1], S = Wr(y ?? "", d, e.props.locale, h), P = Wr(_ ?? "", d, e.props.locale, h), k = (b == null ? void 0 : b.getTime()) !== (S == null ? void 0 : S.getTime()), g = (w == null ? void 0 : w.getTime()) !== (P == null ? void 0 : P.getTime());
6870
+ }), y = x[0], _ = x[1], S = $r(y ?? "", d, e.props.locale, h), P = $r(_ ?? "", d, e.props.locale, h), k = (b == null ? void 0 : b.getTime()) !== (S == null ? void 0 : S.getTime()), g = (w == null ? void 0 : w.getTime()) !== (P == null ? void 0 : P.getTime());
6871
6871
  if (!k && !g || S && rt(S, e.props) || P && rt(P, e.props))
6872
6872
  return;
6873
6873
  (o = (a = e.props).onChange) === null || o === void 0 || o.call(a, [S, P], l);
6874
6874
  } else {
6875
- var C = Wr(v, d, e.props.locale, h, e.props.minDate);
6875
+ var C = $r(v, d, e.props.locale, h, e.props.minDate);
6876
6876
  e.props.showTimeSelectOnly && e.props.selected && C && !ve(C, e.props.selected) && (C = pc(e.props.selected, {
6877
6877
  hours: vt(C),
6878
6878
  minutes: bt(C),
@@ -6891,7 +6891,7 @@ var Br = "Date input not valid.", pd = (
6891
6891
  }, e.setSelected = function(a, o, i, s) {
6892
6892
  var l, u, c = a;
6893
6893
  if (e.props.showYearPicker) {
6894
- if (c !== null && er(he(c), e.props))
6894
+ if (c !== null && tr(he(c), e.props))
6895
6895
  return;
6896
6896
  } else if (e.props.showMonthYearPicker) {
6897
6897
  if (c !== null && si(c, e.props))
@@ -6900,11 +6900,11 @@ var Br = "Date input not valid.", pd = (
6900
6900
  return;
6901
6901
  var d = e.props, p = d.onChange, h = d.selectsRange, m = d.startDate, b = d.endDate, w = d.selectsMultiple, v = d.selectedDates, x = d.minTime, y = d.swapRange;
6902
6902
  if (!Ut(e.props.selected, c) || e.props.allowSameDay || h || w)
6903
- if (c !== null && (e.props.selected && (!i || !e.props.showTimeSelect && !e.props.showTimeSelectOnly && !e.props.showTimeInput) && (c = $r(c, {
6903
+ if (c !== null && (e.props.selected && (!i || !e.props.showTimeSelect && !e.props.showTimeSelectOnly && !e.props.showTimeInput) && (c = Hr(c, {
6904
6904
  hour: vt(e.props.selected),
6905
6905
  minute: bt(e.props.selected),
6906
6906
  second: Et(e.props.selected)
6907
- })), !i && (e.props.showTimeSelect || e.props.showTimeSelectOnly) && x && (c = $r(c, {
6907
+ })), !i && (e.props.showTimeSelect || e.props.showTimeSelectOnly) && x && (c = Hr(c, {
6908
6908
  hour: x.getHours(),
6909
6909
  minute: x.getMinutes(),
6910
6910
  second: x.getSeconds()
@@ -6935,11 +6935,11 @@ var Br = "Date input not valid.", pd = (
6935
6935
  }, e.setPreSelection = function(a) {
6936
6936
  var o = Mt(e.props.minDate), i = Mt(e.props.maxDate), s = !0;
6937
6937
  if (a) {
6938
- var l = Jn(a);
6938
+ var l = er(a);
6939
6939
  if (o && i)
6940
6940
  s = En(a, e.props.minDate, e.props.maxDate);
6941
6941
  else if (o) {
6942
- var u = Jn(e.props.minDate);
6942
+ var u = er(e.props.minDate);
6943
6943
  s = Bt(a, u) || Ut(l, u);
6944
6944
  } else if (i) {
6945
6945
  var c = Ja(e.props.maxDate);
@@ -6954,7 +6954,7 @@ var Br = "Date input not valid.", pd = (
6954
6954
  }, e.handleTimeChange = function(a) {
6955
6955
  var o, i;
6956
6956
  if (!(e.props.selectsRange || e.props.selectsMultiple)) {
6957
- var s = e.props.selected ? e.props.selected : e.getPreSelection(), l = e.props.selected ? a : $r(s, {
6957
+ var s = e.props.selected ? e.props.selected : e.getPreSelection(), l = e.props.selected ? a : Hr(s, {
6958
6958
  hour: vt(a),
6959
6959
  minute: bt(a)
6960
6960
  });
@@ -6981,7 +6981,7 @@ var Br = "Date input not valid.", pd = (
6981
6981
  return;
6982
6982
  }
6983
6983
  var m = Ne(e.state.preSelection);
6984
- d === U.Enter ? (a.preventDefault(), a.target.blur(), e.inputOk() && e.state.lastPreSelectChange === Gr ? (e.handleSelect(m, a), !e.props.shouldCloseOnSelect && e.setPreSelection(m)) : e.setOpen(!1)) : d === U.Escape ? (a.preventDefault(), a.target.blur(), e.sendFocusBackToInput(), e.setOpen(!1)) : d === U.Tab && e.setOpen(!1), e.inputOk() || (c = (u = e.props).onInputError) === null || c === void 0 || c.call(u, { code: 1, msg: Br });
6984
+ d === U.Enter ? (a.preventDefault(), a.target.blur(), e.inputOk() && e.state.lastPreSelectChange === zr ? (e.handleSelect(m, a), !e.props.shouldCloseOnSelect && e.setPreSelection(m)) : e.setOpen(!1)) : d === U.Escape ? (a.preventDefault(), a.target.blur(), e.sendFocusBackToInput(), e.setOpen(!1)) : d === U.Tab && e.setOpen(!1), e.inputOk() || (c = (u = e.props).onInputError) === null || c === void 0 || c.call(u, { code: 1, msg: Gr });
6985
6985
  }
6986
6986
  }, e.onPortalKeyDown = function(a) {
6987
6987
  var o = a.key;
@@ -6999,7 +6999,7 @@ var Br = "Date input not valid.", pd = (
6999
6999
  var D = B;
7000
7000
  switch (H) {
7001
7001
  case U.ArrowRight:
7002
- D = b ? nr(B, 1) : st(B, 1);
7002
+ D = b ? rr(B, 1) : st(B, 1);
7003
7003
  break;
7004
7004
  case U.ArrowLeft:
7005
7005
  D = b ? Ba(B) : Vl(B);
@@ -7008,7 +7008,7 @@ var Br = "Date input not valid.", pd = (
7008
7008
  D = Ba(B);
7009
7009
  break;
7010
7010
  case U.ArrowDown:
7011
- D = nr(B, 1);
7011
+ D = rr(B, 1);
7012
7012
  break;
7013
7013
  case U.PageUp:
7014
7014
  D = P ? vn(B, 1) : Zt(B, 1);
@@ -7038,7 +7038,7 @@ var Br = "Date input not valid.", pd = (
7038
7038
  a.preventDefault(), e.handleSelect(k, a), !w && e.setPreSelection(k);
7039
7039
  return;
7040
7040
  } else if (S === U.Escape) {
7041
- a.preventDefault(), e.setOpen(!1), e.inputOk() || (l = (s = e.props).onInputError) === null || l === void 0 || l.call(s, { code: 1, msg: Br });
7041
+ a.preventDefault(), e.setOpen(!1), e.inputOk() || (l = (s = e.props).onInputError) === null || l === void 0 || l.call(s, { code: 1, msg: Gr });
7042
7042
  return;
7043
7043
  }
7044
7044
  var M = null;
@@ -7055,11 +7055,11 @@ var Br = "Date input not valid.", pd = (
7055
7055
  break;
7056
7056
  }
7057
7057
  if (!M) {
7058
- (c = (u = e.props).onInputError) === null || c === void 0 || c.call(u, { code: 1, msg: Br });
7058
+ (c = (u = e.props).onInputError) === null || c === void 0 || c.call(u, { code: 1, msg: Gr });
7059
7059
  return;
7060
7060
  }
7061
- if (a.preventDefault(), e.setState({ lastPreSelectChange: Gr }), y && e.setSelected(M), e.setPreSelection(M), _) {
7062
- var I = qe(k), A = qe(M), W = he(k), z = he(M);
7061
+ if (a.preventDefault(), e.setState({ lastPreSelectChange: zr }), y && e.setSelected(M), e.setPreSelection(M), _) {
7062
+ var I = je(k), A = je(M), W = he(k), z = he(M);
7063
7063
  I !== A || W !== z ? e.setState({ shouldFocusDayInline: !0 }) : e.setState({ shouldFocusDayInline: !1 });
7064
7064
  }
7065
7065
  }
@@ -7205,7 +7205,7 @@ var Br = "Date input not valid.", pd = (
7205
7205
  return R.createElement(ud, xe({}, this.props, { className: this.props.popperClassName, hidePopper: !this.isCalendarOpen(), targetComponent: this.renderInputContainer(), popperComponent: t, popperOnKeyDown: this.onPopperKeyDown, showArrow: this.props.showPopperArrow }));
7206
7206
  }, r;
7207
7207
  }(Be)
7208
- ), fd = "input", Gr = "navigate";
7208
+ ), fd = "input", zr = "navigate";
7209
7209
  const hd = (n) => {
7210
7210
  const r = /^(\d{2})\.(\d{2})\.(\d{4})$/.exec(n);
7211
7211
  if (!r) return null;
@@ -7214,13 +7214,13 @@ const hd = (n) => {
7214
7214
  }, md = (n) => n === "day" ? [0, 2] : n === "month" ? [3, 5] : [6, 10], Kn = (n) => n <= 2 ? "day" : n <= 5 ? "month" : "year", gd = () => {
7215
7215
  const n = /* @__PURE__ */ new Date(), r = String(n.getDate()).padStart(2, "0"), t = String(n.getMonth() + 1).padStart(2, "0"), e = String(n.getFullYear());
7216
7216
  return `${r}.${t}.${e}`;
7217
- }, zr = (n, r) => new Date(n, r, 0).getDate(), go = (n, r, t) => {
7217
+ }, Qr = (n, r) => new Date(n, r, 0).getDate(), go = (n, r, t) => {
7218
7218
  const e = t - r + 1;
7219
7219
  return ((n - r) % e + e) % e + r;
7220
7220
  }, vd = (n, r, t) => {
7221
7221
  const e = /^\d{2}\.\d{2}\.\d{4}$/.test(n) ? n : gd(), [a, o, i] = e.split(".");
7222
7222
  let s = parseInt(a, 10), l = parseInt(o, 10), u = parseInt(i, 10);
7223
- return r === "day" ? s = go(s + t, 1, zr(u, l)) : r === "month" ? (l = go(l + t, 1, 12), s = Math.min(zr(u, l), s)) : (u = Math.max(1, u + t), s = Math.min(zr(u, l), s)), `${String(s).padStart(2, "0")}.${String(l).padStart(2, "0")}.${String(u).padStart(4, "0")}`;
7223
+ return r === "day" ? s = go(s + t, 1, Qr(u, l)) : r === "month" ? (l = go(l + t, 1, 12), s = Math.min(Qr(u, l), s)) : (u = Math.max(1, u + t), s = Math.min(Qr(u, l), s)), `${String(s).padStart(2, "0")}.${String(l).padStart(2, "0")}.${String(u).padStart(4, "0")}`;
7224
7224
  }, vo = (n, r) => {
7225
7225
  if (n.length === 0) return "";
7226
7226
  if (n.length === 1) {
@@ -7233,7 +7233,7 @@ const hd = (n) => {
7233
7233
  const r = n.replace(/\D/g, "").slice(0, 8), t = vo(r.slice(0, 2), 31), e = vo(r.slice(2, 4), 12), a = r.slice(4, 8), o = [];
7234
7234
  return r.length >= 1 && o.push(t), r.length > 2 && o.push(e), r.length > 4 && o.push(a), o.filter(Boolean).join(".");
7235
7235
  }, Yt = /^\d{2}\.\d{2}\.\d{4}$/, fi = $i(({ value: n, onChange: r, onFocus: t, onBlur: e, onMouseUp: a, onKeyDown: o, onWheelDate: i, onOpenCalendar: s, onFocusChange: l, isClearable: u, wheelEdit: c = !1, ...d }, p) => {
7236
- const h = ne(null), [m, b] = j(null), [w, v] = j(0), [x, y] = j(0), _ = ne(typeof n == "string" ? n : ""), S = ne(
7236
+ const h = ne(null), [m, b] = q(null), [w, v] = q(0), [x, y] = q(0), _ = ne(typeof n == "string" ? n : ""), S = ne(
7237
7237
  typeof n == "string" && Yt.test(n) ? n : ""
7238
7238
  ), P = ne(!1);
7239
7239
  re(() => {
@@ -7437,7 +7437,7 @@ const wd = 100, yd = (n, r, t, e) => {
7437
7437
  isActive: l = !0,
7438
7438
  showWhenActive: u = !1
7439
7439
  }) => {
7440
- const c = ne(null), d = ne(null), p = ne(null), [h, m] = j(!1), [b, w] = j(null), [v, x] = j(null), [y, _] = j(s), [S, P] = j(!1), k = () => {
7440
+ const c = ne(null), d = ne(null), p = ne(null), [h, m] = q(!1), [b, w] = q(null), [v, x] = q(null), [y, _] = q(s), [S, P] = q(!1), k = () => {
7441
7441
  p.current && (clearTimeout(p.current), p.current = null);
7442
7442
  }, g = Oe(() => {
7443
7443
  k(), m(!1), w(null), x(null), P(!1), _(s);
@@ -7963,11 +7963,11 @@ const Rd = {
7963
7963
  formattingValues: Hd,
7964
7964
  defaultFormattingWidth: "wide"
7965
7965
  })
7966
- }, zd = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i, Qd = /\d+/i, qd = {
7966
+ }, zd = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i, Qd = /\d+/i, jd = {
7967
7967
  narrow: /^((до )?н\.?\s?э\.?)/i,
7968
7968
  abbreviated: /^((до )?н\.?\s?э\.?)/i,
7969
7969
  wide: /^(до нашей эры|нашей эры|наша эра)/i
7970
- }, jd = {
7970
+ }, qd = {
7971
7971
  any: [/^д/i, /^н/i]
7972
7972
  }, Kd = {
7973
7973
  narrow: /^[1234]/i,
@@ -8038,9 +8038,9 @@ const Rd = {
8038
8038
  valueCallback: (n) => parseInt(n, 10)
8039
8039
  }),
8040
8040
  era: ft({
8041
- matchPatterns: qd,
8041
+ matchPatterns: jd,
8042
8042
  defaultMatchWidth: "wide",
8043
- parsePatterns: jd,
8043
+ parsePatterns: qd,
8044
8044
  defaultParseWidth: "any"
8045
8045
  }),
8046
8046
  quarter: ft({
@@ -8080,7 +8080,7 @@ const Rd = {
8080
8080
  firstWeekContainsDate: 1
8081
8081
  }
8082
8082
  }, ap = () => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, Dn = ({ isOpen: n, duration: r = 140, disabled: t = !1 }) => {
8083
- const e = t || ap(), [a, o] = j(n), [i, s] = j(n ? "open" : "closed"), [l, u] = j(n);
8083
+ const e = t || ap(), [a, o] = q(n), [i, s] = q(n ? "open" : "closed"), [l, u] = q(n);
8084
8084
  l !== n && (u(n), e ? (o(n), s(n ? "open" : "closed")) : n ? (o(!0), s("entering")) : s(a ? "exiting" : "closed"));
8085
8085
  const c = ne(null), d = ne(0), p = ne(a);
8086
8086
  return p.current = a, re(() => {
@@ -8116,7 +8116,7 @@ const Rd = {
8116
8116
  showText: !!r,
8117
8117
  text: e
8118
8118
  };
8119
- }, Sr = ({ refs: n, onDismiss: r, enabled: t = !0 }) => {
8119
+ }, Cr = ({ refs: n, onDismiss: r, enabled: t = !0 }) => {
8120
8120
  const e = ne(r);
8121
8121
  e.current = r;
8122
8122
  const a = ne(n);
@@ -8138,57 +8138,103 @@ const Rd = {
8138
8138
  value: r,
8139
8139
  onChange: t,
8140
8140
  width: e = 100,
8141
- isOpen: a,
8142
- onOpen: o,
8143
- onClose: i
8141
+ fallbackValue: a,
8142
+ isOpen: o,
8143
+ onOpen: i,
8144
+ onClose: s
8144
8145
  }) => {
8145
- const s = ne(null);
8146
- Sr({ refs: [s], onDismiss: i, enabled: a });
8147
- const l = n.find((u) => u.value === r);
8148
- return /* @__PURE__ */ T(
8146
+ const l = ne(null), u = ne(null);
8147
+ Cr({ refs: [l], onDismiss: s, enabled: o });
8148
+ const c = n.find((d) => d.value === r);
8149
+ return re(() => {
8150
+ if (!o) return;
8151
+ const d = u.current;
8152
+ if (!d) return;
8153
+ const p = d.querySelector("[data-current='true']") ?? d.querySelector("[data-fallback='true']");
8154
+ p && (d.scrollTop = p.offsetTop - d.clientHeight / 2 + p.offsetHeight / 2);
8155
+ }, [o]), /* @__PURE__ */ T(
8149
8156
  "div",
8150
8157
  {
8151
- ref: s,
8158
+ ref: l,
8152
8159
  style: {
8160
+ // Ширину задаёт скрытый эталон ниже — по самой длинной подписи. `width`
8161
+ // остаётся нижней границей, чтобы короткие списки не схлопывались.
8153
8162
  position: "relative",
8154
- width: e,
8155
- minWidth: e,
8163
+ width: "max-content",
8164
+ minWidth: `calc(${e} * var(--u-unit, 1px))`,
8156
8165
  userSelect: "none",
8157
8166
  cursor: "pointer"
8158
8167
  },
8159
8168
  className: "calendar-custom-select",
8160
8169
  children: [
8170
+ /* @__PURE__ */ f(
8171
+ "span",
8172
+ {
8173
+ "aria-hidden": !0,
8174
+ style: {
8175
+ display: "block",
8176
+ height: 0,
8177
+ overflow: "hidden",
8178
+ fontSize: "calc(14 * var(--u-unit, 1px))"
8179
+ },
8180
+ children: n.map((d) => /* @__PURE__ */ f(
8181
+ "span",
8182
+ {
8183
+ style: {
8184
+ display: "block",
8185
+ whiteSpace: "nowrap",
8186
+ paddingInline: "calc(6 * var(--u-unit, 1px))",
8187
+ // Резерв под то, что съедает ширину у списка, но не у поля:
8188
+ // полоса прокрутки (6px) и рамка списка по 1px с двух сторон.
8189
+ marginRight: "8px"
8190
+ },
8191
+ children: d.label
8192
+ },
8193
+ String(d.value)
8194
+ ))
8195
+ }
8196
+ ),
8161
8197
  /* @__PURE__ */ f(
8162
8198
  "div",
8163
8199
  {
8164
8200
  className: "calendar-custom-select-input",
8165
8201
  style: {
8166
- padding: 0,
8167
- borderRadius: 0,
8202
+ paddingBlock: 0,
8168
8203
  WebkitAppearance: "none",
8169
8204
  MozAppearance: "none",
8170
8205
  border: 0,
8171
8206
  height: "calc(28 * var(--u-unit, 1px))",
8172
- borderBottom: "1px solid #748AB9",
8173
8207
  fontSize: "calc(14 * var(--u-unit, 1px))",
8174
8208
  width: "100%",
8175
- lineHeight: "calc(29 * var(--u-unit, 1px))"
8209
+ lineHeight: "calc(29 * var(--u-unit, 1px))",
8210
+ // Черта идёт по всей ширине поля, а ширину задаёт эталон по самой
8211
+ // длинной подписи — значит она совпадает с шириной выпадающего списка.
8212
+ borderBottom: "1px solid #748AB9",
8213
+ display: "flex",
8214
+ alignItems: "center",
8215
+ justifyContent: "center"
8176
8216
  },
8177
- onClick: (u) => {
8178
- u.stopPropagation(), a ? i() : o();
8217
+ onClick: (d) => {
8218
+ d.stopPropagation(), o ? s() : i();
8179
8219
  },
8180
- children: /* @__PURE__ */ f("span", { style: { flex: 1 }, children: l ? l.label : "" })
8220
+ children: /* @__PURE__ */ f("span", { children: c ? c.label : "" })
8181
8221
  }
8182
8222
  ),
8183
- a && /* @__PURE__ */ f(
8223
+ o && /* @__PURE__ */ f(
8184
8224
  "div",
8185
8225
  {
8226
+ ref: u,
8186
8227
  className: "calendar-custom-select-options",
8187
8228
  style: {
8188
8229
  position: "absolute",
8189
8230
  top: "calc(30 * var(--u-unit, 1px))",
8190
8231
  left: 0,
8232
+ // Ширину задаёт поле (её считает эталон по самой длинной подписи),
8233
+ // поэтому список ровно под чертой и одной с ней ширины. Полосе
8234
+ // прокрутки резервируется место, иначе она съедала бы подписи —
8235
+ // из-за этого годы обрезались в «202», а месяцы в «Сентябр».
8191
8236
  width: "100%",
8237
+ scrollbarGutter: "stable",
8192
8238
  background: "#fff",
8193
8239
  border: "1px solid #748AB9",
8194
8240
  borderRadius: "calc(4 * var(--u-unit, 1px))",
@@ -8198,26 +8244,32 @@ const Rd = {
8198
8244
  overflowY: "auto",
8199
8245
  fontSize: "calc(14 * var(--u-unit, 1px))"
8200
8246
  },
8201
- children: n.map((u) => /* @__PURE__ */ f(
8247
+ children: n.map((d) => /* @__PURE__ */ f(
8202
8248
  "div",
8203
8249
  {
8204
8250
  className: "calendar-custom-select-option",
8251
+ "data-current": r === d.value ? "true" : void 0,
8252
+ "data-fallback": a !== void 0 && a === d.value ? "true" : void 0,
8205
8253
  style: {
8206
- padding: "calc(6 * var(--u-unit, 1px)) calc(5 * var(--u-unit, 1px))",
8254
+ // Без внешних отступов: они оставляли белые поля вокруг подсветки
8255
+ // выбранного пункта. Воздух даёт паддинг, подсветка идёт от
8256
+ // края до края списка.
8257
+ padding: "calc(6 * var(--u-unit, 1px)) calc(6 * var(--u-unit, 1px))",
8207
8258
  cursor: "pointer",
8208
- background: r === u.value ? "#EAF1FF" : "#fff",
8209
- color: r === u.value ? "#1E4391" : "#222",
8210
- borderRadius: "calc(6 * var(--u-unit, 1px))",
8211
- margin: "calc(2 * var(--u-unit, 1px)) calc(4 * var(--u-unit, 1px))",
8259
+ background: r === d.value ? "#EAF1FF" : "#fff",
8260
+ color: r === d.value ? "#1E4391" : "#222",
8261
+ margin: 0,
8212
8262
  transition: "background 0.15s",
8213
- fontSize: "calc(14 * var(--u-unit, 1px))"
8263
+ fontSize: "calc(14 * var(--u-unit, 1px))",
8264
+ // Подписи не переносим: список расширяется по содержимому.
8265
+ whiteSpace: "nowrap"
8214
8266
  },
8215
- onClick: (c) => {
8216
- c.stopPropagation(), i(), t(u.value);
8267
+ onClick: (p) => {
8268
+ p.stopPropagation(), s(), t(d.value);
8217
8269
  },
8218
- children: u.label
8270
+ children: d.label
8219
8271
  },
8220
- u.value
8272
+ d.value
8221
8273
  ))
8222
8274
  }
8223
8275
  )
@@ -8242,7 +8294,7 @@ function sp(n, r, t = 1) {
8242
8294
  }
8243
8295
  };
8244
8296
  }
8245
- const Qr = [
8297
+ const Vn = [
8246
8298
  "Январь",
8247
8299
  "Февраль",
8248
8300
  "Март",
@@ -8288,14 +8340,14 @@ const Qr = [
8288
8340
  hintText: I = "Используйте колесо мыши или стрелки ↑↓ для изменения значения",
8289
8341
  tooltipMaxWidth: A = 300
8290
8342
  }) => {
8291
- const W = on(d, c), z = Dt({ error: w, validationOn: b, validationOnWithoutText: v, validationText: m }), H = tt(p, "u-calendar"), [B, D] = j(!1), E = 160, {
8343
+ const W = on(d, c), z = Dt({ error: w, validationOn: b, validationOnWithoutText: v, validationText: m }), H = tt(p, "u-calendar"), [B, D] = q(!1), E = 160, {
8292
8344
  shouldRender: N,
8293
8345
  status: F,
8294
8346
  isAnimated: X
8295
8347
  } = Dn({
8296
8348
  isOpen: !!(i || B),
8297
8349
  duration: E
8298
- }), Z = X && F === "exiting", [G, Y] = j(null), [ae, pe] = j(!1), [ue, $] = j(!1);
8350
+ }), Z = X && F === "exiting", [G, Y] = q(null), [ae, pe] = q(!1), [ue, $] = q(!1);
8299
8351
  re(() => {
8300
8352
  const V = () => {
8301
8353
  $(window.innerWidth <= 900);
@@ -8349,7 +8401,10 @@ const Qr = [
8349
8401
  {
8350
8402
  style: {
8351
8403
  display: "flex",
8352
- margin: "8px 0",
8404
+ // Сверху отступ даёт паддинг карточки — свой margin здесь добавлял
8405
+ // лишние 8px и делал верхнее поле попапа больше нижнего.
8406
+ // Снизу 10px — тот же зазор, что между рядами сетки (по макету).
8407
+ margin: "0 0 calc(10 * var(--u-unit, 1px))",
8353
8408
  justifyContent: "space-between",
8354
8409
  alignItems: "center"
8355
8410
  },
@@ -8361,41 +8416,59 @@ const Qr = [
8361
8416
  width: "calc(25 * var(--u-unit, 1px))",
8362
8417
  color: "#1E4391",
8363
8418
  display: "flex",
8364
- padding: "0 0 0 calc(8 * var(--u-unit, 1px))",
8419
+ // Без внутреннего отступа: стрелка прижата к краю карточки,
8420
+ // а не поджата к году и месяцу.
8421
+ padding: 0,
8365
8422
  cursor: "pointer"
8366
8423
  },
8367
- onClick: (q) => {
8368
- q.preventDefault(), q.stopPropagation(), Y(null), we();
8424
+ onClick: (j) => {
8425
+ j.preventDefault(), j.stopPropagation(), Y(null), we();
8369
8426
  },
8370
8427
  disabled: oe,
8371
8428
  children: /* @__PURE__ */ f("i", { className: "u-icon icon-left", style: { fontSize: "calc(20 * var(--u-unit, 1px))" } })
8372
8429
  }
8373
8430
  ),
8374
- /* @__PURE__ */ f(
8375
- wo,
8376
- {
8377
- value: he(V),
8378
- options: lp.map((q) => ({ value: q, label: q })),
8379
- onChange: (q) => be(Number(q)),
8380
- width: 60,
8381
- isOpen: G === "year",
8382
- onOpen: () => Y("year"),
8383
- onClose: () => Y(null)
8384
- }
8385
- ),
8386
- /* @__PURE__ */ f(
8387
- wo,
8431
+ /* @__PURE__ */ T(
8432
+ "div",
8388
8433
  {
8389
- value: Qr[qe(V)],
8390
- options: Qr.map((q) => ({ value: q, label: q })),
8391
- onChange: (q) => {
8392
- const L = String(q);
8393
- me(Qr.indexOf(L)), u && u(L);
8434
+ style: {
8435
+ display: "flex",
8436
+ flex: 1,
8437
+ justifyContent: "center",
8438
+ alignItems: "center",
8439
+ gap: "calc(8 * var(--u-unit, 1px))"
8394
8440
  },
8395
- width: 100,
8396
- isOpen: G === "month",
8397
- onOpen: () => Y("month"),
8398
- onClose: () => Y(null)
8441
+ children: [
8442
+ /* @__PURE__ */ f(
8443
+ wo,
8444
+ {
8445
+ value: he(V),
8446
+ options: lp.map((j) => ({ value: j, label: j })),
8447
+ onChange: (j) => be(Number(j)),
8448
+ fallbackValue: (/* @__PURE__ */ new Date()).getFullYear(),
8449
+ width: 45,
8450
+ isOpen: G === "year",
8451
+ onOpen: () => Y("year"),
8452
+ onClose: () => Y(null)
8453
+ }
8454
+ ),
8455
+ /* @__PURE__ */ f(
8456
+ wo,
8457
+ {
8458
+ value: Vn[je(V)],
8459
+ options: Vn.map((j) => ({ value: j, label: j })),
8460
+ onChange: (j) => {
8461
+ const L = String(j);
8462
+ me(Vn.indexOf(L)), u && u(L);
8463
+ },
8464
+ fallbackValue: Vn[(/* @__PURE__ */ new Date()).getMonth()],
8465
+ width: 85,
8466
+ isOpen: G === "month",
8467
+ onOpen: () => Y("month"),
8468
+ onClose: () => Y(null)
8469
+ }
8470
+ )
8471
+ ]
8399
8472
  }
8400
8473
  ),
8401
8474
  /* @__PURE__ */ f(
@@ -8405,11 +8478,12 @@ const Qr = [
8405
8478
  width: "calc(25 * var(--u-unit, 1px))",
8406
8479
  color: "#1E4391",
8407
8480
  display: "flex",
8408
- padding: "0 calc(8 * var(--u-unit, 1px)) 0 0",
8481
+ justifyContent: "flex-end",
8482
+ padding: 0,
8409
8483
  cursor: "pointer"
8410
8484
  },
8411
- onClick: (q) => {
8412
- q.preventDefault(), q.stopPropagation(), Y(null), ye();
8485
+ onClick: (j) => {
8486
+ j.preventDefault(), j.stopPropagation(), Y(null), ye();
8413
8487
  },
8414
8488
  disabled: de,
8415
8489
  children: /* @__PURE__ */ f("i", { className: "u-icon icon-right", style: { fontSize: "calc(20 * var(--u-unit, 1px))" } })
@@ -8582,7 +8656,7 @@ const Qr = [
8582
8656
  maxLength: S,
8583
8657
  disabled: P
8584
8658
  }) => {
8585
- const k = Dt({ error: w, validationOn: b, validationText: m }), g = on(h, p), C = tt(t, "u-input-expand"), [M, I] = j(null), A = ne(null), W = (G) => typeof G == "number" ? `${G}px` : String(G), z = (G) => {
8659
+ const k = Dt({ error: w, validationOn: b, validationText: m }), g = on(h, p), C = tt(t, "u-input-expand"), [M, I] = q(null), A = ne(null), W = (G) => typeof G == "number" ? `${G}px` : String(G), z = (G) => {
8586
8660
  if (G == null || G === "") return;
8587
8661
  if (typeof G == "number") return `calc(${G} * var(--u-unit, 1px))`;
8588
8662
  const ae = String(G).trim().match(/^(-?\d+(?:\.\d+)?)px$/);
@@ -8905,7 +8979,7 @@ const Qr = [
8905
8979
  validationOnWithoutText: k,
8906
8980
  absoluteValidationText: g
8907
8981
  }) => {
8908
- const C = Dt({ error: P, validationOn: S, validationOnWithoutText: k, validationText: _ }), M = tt(a, "u-input-number"), I = ne(null), A = ne(null), [W, z] = j(!1), [H, B] = j(!1), [D, E] = j(String(e ?? t ?? "")), N = ne(String(e ?? t ?? "")), F = (O) => typeof O == "number" ? `${O}px` : String(O), X = (O) => typeof O == "number" ? `calc(${O} * var(--u-unit, 1px))` : String(O);
8982
+ const C = Dt({ error: P, validationOn: S, validationOnWithoutText: k, validationText: _ }), M = tt(a, "u-input-number"), I = ne(null), A = ne(null), [W, z] = q(!1), [H, B] = q(!1), [D, E] = q(String(e ?? t ?? "")), N = ne(String(e ?? t ?? "")), F = (O) => typeof O == "number" ? `${O}px` : String(O), X = (O) => typeof O == "number" ? `calc(${O} * var(--u-unit, 1px))` : String(O);
8909
8983
  re(() => {
8910
8984
  const O = () => {
8911
8985
  B(window.innerWidth <= 900);
@@ -9098,7 +9172,7 @@ const Qr = [
9098
9172
  validationOnWithoutText: S,
9099
9173
  absoluteValidationText: P
9100
9174
  }) => {
9101
- const k = Dt({ error: _, validationOn: y, validationOnWithoutText: S, validationText: x }), g = on(v, w), C = tt(a, "u-input-text"), [M, I] = j(null), A = ne(null), W = (H) => {
9175
+ const k = Dt({ error: _, validationOn: y, validationOnWithoutText: S, validationText: x }), g = on(v, w), C = tt(a, "u-input-text"), [M, I] = q(null), A = ne(null), W = (H) => {
9102
9176
  I(H.target.selectionStart), i && i(H);
9103
9177
  };
9104
9178
  re(() => {
@@ -9331,10 +9405,10 @@ const Qr = [
9331
9405
  validationOnWithoutText: g,
9332
9406
  absoluteValidationText: C
9333
9407
  }) => {
9334
- const M = Dt({ error: k, validationOn: P, validationOnWithoutText: g, validationText: S }), I = tt(a, "u-input-time"), A = ne(null), W = ne(null), z = ne(!1), H = ne(null), B = ne(null), [D, E] = j(!1), { shouldRender: N, status: F, isAnimated: X } = Dn({
9408
+ const M = Dt({ error: k, validationOn: P, validationOnWithoutText: g, validationText: S }), I = tt(a, "u-input-time"), A = ne(null), W = ne(null), z = ne(!1), H = ne(null), B = ne(null), [D, E] = q(!1), { shouldRender: N, status: F, isAnimated: X } = Dn({
9335
9409
  isOpen: D && !l,
9336
9410
  duration: kn
9337
- }), [Z, G] = j(null), [Y, ae] = j(0), [pe, ue] = j(0), [$, le] = j(0), [O, Q] = j(!1), [se, De] = j(() => String(e ?? t ?? "")), Me = ne(e), [V, be] = j(!1);
9411
+ }), [Z, G] = q(null), [Y, ae] = q(0), [pe, ue] = q(0), [$, le] = q(0), [O, Q] = q(!1), [se, De] = q(() => String(e ?? t ?? "")), Me = ne(e), [V, be] = q(!1);
9338
9412
  re(() => {
9339
9413
  O || e !== Me.current && (De(String(e ?? "")), Me.current = e);
9340
9414
  }, [e, O]);
@@ -9344,7 +9418,7 @@ const Qr = [
9344
9418
  return K || se;
9345
9419
  }, [se, e, O]), we = Ze(() => /^\d{2}:\d{2}$/.test(me || ""), [me]), ye = ne(String(e ?? t ?? "")), oe = ne(
9346
9420
  /^\d{2}:\d{2}$/.test(String(e ?? t ?? "")) ? String(e ?? t ?? "") : ""
9347
- ), de = Ze(() => we ? (me || "").split(":")[0] : null, [me, we]), q = Ze(() => we ? (me || "").split(":")[1] : null, [me, we]), L = Ze(() => Array.from({ length: 24 }, (K, ge) => String(ge).padStart(2, "0")), []), J = Ze(() => Array.from({ length: 60 }, (K, ge) => String(ge).padStart(2, "0")), []);
9421
+ ), de = Ze(() => we ? (me || "").split(":")[0] : null, [me, we]), j = Ze(() => we ? (me || "").split(":")[1] : null, [me, we]), L = Ze(() => Array.from({ length: 24 }, (K, ge) => String(ge).padStart(2, "0")), []), J = Ze(() => Array.from({ length: 60 }, (K, ge) => String(ge).padStart(2, "0")), []);
9348
9422
  re(() => {
9349
9423
  const K = () => {
9350
9424
  be(window.innerWidth <= 900);
@@ -9361,15 +9435,15 @@ const Qr = [
9361
9435
  if (!D) return;
9362
9436
  const K = (ge, ze) => {
9363
9437
  if (!ge || !ze) return;
9364
- const qt = ge.querySelector(
9438
+ const jt = ge.querySelector(
9365
9439
  `.u-react-input-time-option[data-time-value="${ze}"]`
9366
9440
  );
9367
- if (!qt) return;
9368
- const jt = ge.getBoundingClientRect(), Rt = qt.getBoundingClientRect(), Kt = Rt.top - jt.top;
9441
+ if (!jt) return;
9442
+ const qt = ge.getBoundingClientRect(), Rt = jt.getBoundingClientRect(), Kt = Rt.top - qt.top;
9369
9443
  Kt >= 0 && Kt + Rt.height <= ge.clientHeight || (ge.scrollTop += Kt - (ge.clientHeight - Rt.height) / 2);
9370
9444
  };
9371
- K(H.current, de), K(B.current, q);
9372
- }, [D, N, de, q]);
9445
+ K(H.current, de), K(B.current, j);
9446
+ }, [D, N, de, j]);
9373
9447
  const ie = Oe((K) => {
9374
9448
  if (De(K), ye.current = K, /^\d{2}:\d{2}$/.test(K) && (oe.current = K), !i) return;
9375
9449
  i({
@@ -9410,14 +9484,14 @@ const Qr = [
9410
9484
  !K || document.activeElement !== K || K.setSelectionRange(0, K.value.length);
9411
9485
  }, [pe, v]);
9412
9486
  const kt = (K, ge, ze) => K < ge ? ze : K > ze ? ge : K, Ot = Oe((K) => {
9413
- const ge = W.current, qt = /^\d{2}:\d{2}$/.test(me || "") ? me : "00:00", [jt, Rt] = qt.split(":"), Kt = (ge == null ? void 0 : ge.selectionStart) ?? 0;
9487
+ const ge = W.current, jt = /^\d{2}:\d{2}$/.test(me || "") ? me : "00:00", [qt, Rt] = jt.split(":"), Kt = (ge == null ? void 0 : ge.selectionStart) ?? 0;
9414
9488
  if ((Z ?? (Kt <= 2 ? "hour" : "minute")) === "hour") {
9415
- const cn = kt(Number(jt) + K, 0, 23), Or = String(cn).padStart(2, "0");
9416
- ie(`${Or}:${Rt}`), G("hour"), ae(0), ot("hour");
9489
+ const cn = kt(Number(qt) + K, 0, 23), Pr = String(cn).padStart(2, "0");
9490
+ ie(`${Pr}:${Rt}`), G("hour"), ae(0), ot("hour");
9417
9491
  return;
9418
9492
  }
9419
- const Tr = kt(Number(Rt) + K, 0, 59), It = String(Tr).padStart(2, "0");
9420
- ie(`${jt}:${It}`), G("minute"), ae(0), ot("minute");
9493
+ const Or = kt(Number(Rt) + K, 0, 59), It = String(Or).padStart(2, "0");
9494
+ ie(`${qt}:${It}`), G("minute"), ae(0), ot("minute");
9421
9495
  }, [Z, me, ie, ot]), Ke = (K) => {
9422
9496
  if (l) return;
9423
9497
  const ze = K.currentTarget.getBoundingClientRect().right - 44;
@@ -9440,7 +9514,7 @@ const Qr = [
9440
9514
  if (/^\d{2}:\d{2}$/.test(K)) return;
9441
9515
  !(u && K.trim() === "") && /^\d{2}:\d{2}$/.test(oe.current) && (ie(oe.current), G(null), ae(0));
9442
9516
  }, Pt = (K) => {
9443
- ie(`${K}:${q ?? "00"}`);
9517
+ ie(`${K}:${j ?? "00"}`);
9444
9518
  }, ce = (K) => {
9445
9519
  ie(`${de ?? "00"}:${K}`), E(!1);
9446
9520
  };
@@ -9454,7 +9528,7 @@ const Qr = [
9454
9528
  minutesColumnRef: B,
9455
9529
  isOpen: D
9456
9530
  });
9457
- const He = (K) => typeof K == "number" ? `${K}px` : String(K), Mr = (K) => typeof K == "number" ? `calc(${K} * var(--u-unit, 1px))` : String(K), ln = /* @__PURE__ */ T(
9531
+ const He = (K) => typeof K == "number" ? `${K}px` : String(K), Er = (K) => typeof K == "number" ? `calc(${K} * var(--u-unit, 1px))` : String(K), ln = /* @__PURE__ */ T(
9458
9532
  "div",
9459
9533
  {
9460
9534
  className: `u-react-input-time-field ${D ? "u-react-input-time-field--open" : ""}`,
@@ -9516,7 +9590,7 @@ const Qr = [
9516
9590
  hours: L,
9517
9591
  minutes: J,
9518
9592
  selectedHour: de,
9519
- selectedMinute: q,
9593
+ selectedMinute: j,
9520
9594
  hoursColumnRef: H,
9521
9595
  minutesColumnRef: B,
9522
9596
  onSelectHour: Pt,
@@ -9564,7 +9638,7 @@ const Qr = [
9564
9638
  isActive: O && !l && !V,
9565
9639
  showWhenActive: !0,
9566
9640
  tooltipStyle: {
9567
- maxWidth: Mr(w),
9641
+ maxWidth: Er(w),
9568
9642
  width: "auto",
9569
9643
  whiteSpace: "normal",
9570
9644
  overflowWrap: "anywhere"
@@ -9619,7 +9693,7 @@ const Qr = [
9619
9693
  };
9620
9694
  return document.addEventListener("pointerdown", g), () => document.removeEventListener("pointerdown", g);
9621
9695
  }, [r, t, p]);
9622
- const [S, P] = j(
9696
+ const [S, P] = q(
9623
9697
  () => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia(`(max-width: ${p}px)`).matches : !1
9624
9698
  );
9625
9699
  re(() => {
@@ -9775,7 +9849,7 @@ const Qr = [
9775
9849
  }
9776
9850
  );
9777
9851
  }, gi = (n, r) => {
9778
- const [t, e] = j(null);
9852
+ const [t, e] = q(null);
9779
9853
  return re(() => {
9780
9854
  const a = setTimeout(() => {
9781
9855
  e(n);
@@ -9786,7 +9860,7 @@ const Qr = [
9786
9860
  const { x: r, y: t, width: e, height: a } = n.getBoundingClientRect();
9787
9861
  return { x: r, y: t, width: e, height: a, scrollX: window.scrollX, scrollY: window.scrollY };
9788
9862
  }, fp = (n, r) => !n || !r ? n === r : n.x === r.x && n.y === r.y && n.width === r.width && n.height === r.height && n.scrollX === r.scrollX && n.scrollY === r.scrollY, vi = ({ anchor: n, enabled: r = !0 }) => {
9789
- const [t, e] = j(null), a = ne(null), o = Oe(() => {
9863
+ const [t, e] = q(null), a = ne(null), o = Oe(() => {
9790
9864
  if (!n) {
9791
9865
  a.current = null, e(null);
9792
9866
  return;
@@ -9820,7 +9894,7 @@ const Qr = [
9820
9894
  onClose: o,
9821
9895
  onSelectByIndex: i
9822
9896
  }) => {
9823
- const [s, l] = j(-1);
9897
+ const [s, l] = q(-1);
9824
9898
  re(() => {
9825
9899
  n || l(-1);
9826
9900
  }, [n]);
@@ -9888,7 +9962,7 @@ const Qr = [
9888
9962
  const u = l.querySelector(s.current(r));
9889
9963
  typeof (u == null ? void 0 : u.scrollIntoView) == "function" && u.scrollIntoView({ block: "nearest" });
9890
9964
  }, [r, n, o, a, t, e]);
9891
- }, qr = (n, r = "none") => !!n && n !== r, mp = (n) => qr(n.transform) || qr(n.perspective) || qr(n.filter) || n.contain === "paint" || n.willChange === "transform" || n.willChange === "opacity" || n.position === "fixed" || n.position === "sticky", gp = (n) => [n.overflow, n.overflowX, n.overflowY].filter(Boolean).some((r) => r !== "visible"), vp = (n) => {
9965
+ }, jr = (n, r = "none") => !!n && n !== r, mp = (n) => jr(n.transform) || jr(n.perspective) || jr(n.filter) || n.contain === "paint" || n.willChange === "transform" || n.willChange === "opacity" || n.position === "fixed" || n.position === "sticky", gp = (n) => [n.overflow, n.overflowX, n.overflowY].filter(Boolean).some((r) => r !== "visible"), vp = (n) => {
9892
9966
  if (!n || typeof window > "u") return !1;
9893
9967
  let r = n.parentElement;
9894
9968
  for (; r && r !== document.body && r !== document.documentElement; ) {
@@ -9909,7 +9983,7 @@ const Qr = [
9909
9983
  idPrefix: l,
9910
9984
  getPortalPosition: u
9911
9985
  }) => {
9912
- const [c, d] = j(!1), [p, h] = j(null), [m, b] = j(null), [w, v] = j(!1), x = a === "auto" ? w : a === !0, y = ne(null), _ = ne(null), S = ne(null), P = tt(s, l), k = `${P}-listbox`, g = (G) => `${k}-option-${G}`, C = () => {
9986
+ const [c, d] = q(!1), [p, h] = q(null), [m, b] = q(null), [w, v] = q(!1), x = a === "auto" ? w : a === !0, y = ne(null), _ = ne(null), S = ne(null), P = tt(s, l), k = `${P}-listbox`, g = (G) => `${k}-option-${G}`, C = () => {
9913
9987
  d(!1);
9914
9988
  }, M = (G) => {
9915
9989
  if (e) return;
@@ -9924,7 +9998,7 @@ const Qr = [
9924
9998
  M(G);
9925
9999
  }
9926
10000
  };
9927
- Sr({
10001
+ Cr({
9928
10002
  refs: [y, _],
9929
10003
  onDismiss: C,
9930
10004
  enabled: c
@@ -10015,7 +10089,7 @@ const Qr = [
10015
10089
  onInputValueChange: y,
10016
10090
  id: _
10017
10091
  }) => {
10018
- const S = on(u, l), P = Dt({ error: p, validationOn: d, validationText: c }), [k, g] = j(""), C = ne(null), M = gi(k, 300), I = Ze(() => t.filter((oe) => (oe.label ?? "").toLowerCase().includes((M || "").toLowerCase())), [M, t]), A = I.findIndex(
10092
+ const S = on(u, l), P = Dt({ error: p, validationOn: d, validationText: c }), [k, g] = q(""), C = ne(null), M = gi(k, 300), I = Ze(() => t.filter((oe) => (oe.label ?? "").toLowerCase().includes((M || "").toLowerCase())), [M, t]), A = I.findIndex(
10019
10093
  (oe) => o.some((de) => St(de == null ? void 0 : de.value, oe == null ? void 0 : oe.value))
10020
10094
  ), W = ba({
10021
10095
  optionsLength: I.length,
@@ -10050,7 +10124,7 @@ const Qr = [
10050
10124
  usePortal: O
10051
10125
  } = W, Q = W.portalPosition, se = (oe) => {
10052
10126
  var de;
10053
- o.some((q) => St(q.value, oe.value)) ? i(o.filter((q) => !St(q.value, oe.value))) : i([...o, oe]), b && (g(""), (de = C.current) == null || de.focus()), b && y && y("");
10127
+ o.some((j) => St(j.value, oe.value)) ? i(o.filter((j) => !St(j.value, oe.value))) : i([...o, oe]), b && (g(""), (de = C.current) == null || de.focus()), b && y && y("");
10054
10128
  }, De = ne(se);
10055
10129
  De.current = se;
10056
10130
  const Me = (oe) => {
@@ -10058,7 +10132,7 @@ const Qr = [
10058
10132
  }, V = typeof x == "string" && typeof y == "function", be = V ? x : k, me = (oe) => {
10059
10133
  V ? y && y(oe.target.value) : g(oe.target.value), w && w(oe.target.value);
10060
10134
  }, we = Ze(() => wa(I), [I]), ye = (oe, de) => {
10061
- const q = o.some((J) => St(J.value, oe.value)), L = X === de || F === de;
10135
+ const j = o.some((J) => St(J.value, oe.value)), L = X === de || F === de;
10062
10136
  return /* @__PURE__ */ f(
10063
10137
  "div",
10064
10138
  {
@@ -10066,7 +10140,7 @@ const Qr = [
10066
10140
  "data-option-index": de,
10067
10141
  id: `${E}-option-${de}`,
10068
10142
  role: "option",
10069
- "aria-selected": q,
10143
+ "aria-selected": j,
10070
10144
  style: Object.assign(
10071
10145
  {},
10072
10146
  S ? {
@@ -10075,7 +10149,7 @@ const Qr = [
10075
10149
  lineHeight: "20px",
10076
10150
  padding: "8px 5px"
10077
10151
  } : null,
10078
- q ? { backgroundColor: Qt.selectedBackground } : L ? { backgroundColor: Qt.hoveredBackground } : null
10152
+ j ? { backgroundColor: Qt.selectedBackground } : L ? { backgroundColor: Qt.hoveredBackground } : null
10079
10153
  ),
10080
10154
  onMouseEnter: () => Z(de),
10081
10155
  onMouseLeave: () => Z(null),
@@ -10094,7 +10168,7 @@ const Qr = [
10094
10168
  "input",
10095
10169
  {
10096
10170
  type: "checkbox",
10097
- checked: q,
10171
+ checked: j,
10098
10172
  onChange: (J) => {
10099
10173
  J.stopPropagation(), se(oe);
10100
10174
  }
@@ -10181,8 +10255,8 @@ const Qr = [
10181
10255
  "div",
10182
10256
  {
10183
10257
  className: "u-multiselectbox-select-cross",
10184
- onClick: (q) => {
10185
- q.stopPropagation(), Me(oe);
10258
+ onClick: (j) => {
10259
+ j.stopPropagation(), Me(oe);
10186
10260
  },
10187
10261
  style: S ? {
10188
10262
  marginLeft: "4px"
@@ -10294,7 +10368,7 @@ const Qr = [
10294
10368
  fadeOutDuration: u = 1e3,
10295
10369
  onFadeOutEnd: c
10296
10370
  }) => {
10297
- const [d, p] = j(e), [h, m] = j(0), [b, w] = j(150), v = ne(null), x = ne(null), y = ne(null), _ = ne(d);
10371
+ const [d, p] = q(e), [h, m] = q(0), [b, w] = q(150), v = ne(null), x = ne(null), y = ne(null), _ = ne(d);
10298
10372
  _.current = d;
10299
10373
  const S = ne(c);
10300
10374
  S.current = c;
@@ -10347,7 +10421,7 @@ const Qr = [
10347
10421
  }
10348
10422
  );
10349
10423
  }, yi = Hi(void 0), Mf = ({ children: n }) => {
10350
- const [r, t] = j([]), e = (...s) => {
10424
+ const [r, t] = q([]), e = (...s) => {
10351
10425
  const l = {
10352
10426
  variant: "info",
10353
10427
  message: "",
@@ -10527,7 +10601,7 @@ const Qr = [
10527
10601
  optionsListRef: o,
10528
10602
  dependencies: i
10529
10603
  }) => {
10530
- const [s, l] = j(null), [u, c] = j(!1);
10604
+ const [s, l] = q(null), [u, c] = q(!1);
10531
10605
  return $t(() => {
10532
10606
  if (!n) {
10533
10607
  l(null), c(!1);
@@ -10606,7 +10680,7 @@ const Qr = [
10606
10680
  emptyOptionsText: M = "Ничего не найдено",
10607
10681
  id: I
10608
10682
  }) => {
10609
- const A = on(b, m), W = Dt({ error: x, validationOn: v, validationText: w }), [z, H] = j(""), B = ne(!1), D = typeof g == "string" && typeof C == "function", E = z && !D ? t.filter((ce) => (ce.label ?? "").toLowerCase().includes((D ? g : z).toLowerCase())) : t, N = E.findIndex((ce) => St(ce == null ? void 0 : ce.value, c == null ? void 0 : c.value)), F = ba({
10683
+ const A = on(b, m), W = Dt({ error: x, validationOn: v, validationText: w }), [z, H] = q(""), B = ne(!1), D = typeof g == "string" && typeof C == "function", E = z && !D ? t.filter((ce) => (ce.label ?? "").toLowerCase().includes((D ? g : z).toLowerCase())) : t, N = E.findIndex((ce) => St(ce == null ? void 0 : ce.value, c == null ? void 0 : c.value)), F = ba({
10610
10684
  optionsLength: E.length,
10611
10685
  initialIndex: Math.max(0, N),
10612
10686
  selectedIndex: N,
@@ -10620,7 +10694,7 @@ const Qr = [
10620
10694
  getPortalPosition: (ce) => ({ x: ce.x, y: ce.y + 60 + ce.height + ce.scrollY }),
10621
10695
  onSelectByIndex: (ce) => {
10622
10696
  const He = E[ce];
10623
- He && q.current(He);
10697
+ He && j.current(He);
10624
10698
  }
10625
10699
  }), {
10626
10700
  isOpen: X,
@@ -10641,7 +10715,7 @@ const Qr = [
10641
10715
  portalWidth: be,
10642
10716
  anchor: me,
10643
10717
  usePortal: we
10644
- } = F, ye = F.portalPosition, oe = F.close, de = (ce) => typeof ce == "number" ? `${ce}px` : String(ce), q = ne(() => {
10718
+ } = F, ye = F.portalPosition, oe = F.close, de = (ce) => typeof ce == "number" ? `${ce}px` : String(ce), j = ne(() => {
10645
10719
  }), { flippedTop: L, flippedUp: J } = xp({
10646
10720
  isOpen: X,
10647
10721
  portalOn: we,
@@ -10670,7 +10744,7 @@ const Qr = [
10670
10744
  }, kt = (ce) => {
10671
10745
  p == null || p(ce), oe(), D ? C == null || C("") : H(ce.label ?? "");
10672
10746
  }, Ot = Ze(() => wa(E), [E]);
10673
- q.current = kt;
10747
+ j.current = kt;
10674
10748
  const Ke = d && $e ? 28 : void 0, We = d ? { display: "block" } : null, it = /* @__PURE__ */ f("div", { className: "u-selectbox-empty-text", children: M }), sn = (ce, He) => /* @__PURE__ */ f(
10675
10749
  Dp,
10676
10750
  {
@@ -11156,7 +11230,7 @@ function If({
11156
11230
  ] }) });
11157
11231
  }
11158
11232
  const Lf = ({ children: n, className: r = "" }) => {
11159
- const t = ne(null), e = ne(null), [a, o] = j(!1);
11233
+ const t = ne(null), e = ne(null), [a, o] = q(!1);
11160
11234
  return re(() => {
11161
11235
  const i = t.current;
11162
11236
  if (!i) return;
@@ -11401,7 +11475,7 @@ const Mp = (n, r, t, e) => {
11401
11475
  label: n,
11402
11476
  children: r
11403
11477
  }) => {
11404
- const [t, e] = j(!1), a = () => e((o) => !o);
11478
+ const [t, e] = q(!1), a = () => e((o) => !o);
11405
11479
  return /* @__PURE__ */ T("div", { className: "u-table-mobile-card__row u-table-mobile-card__row--collapsible", children: [
11406
11480
  /* @__PURE__ */ T(
11407
11481
  "button",
@@ -11449,7 +11523,7 @@ const Mp = (n, r, t, e) => {
11449
11523
  showLabels: p = !0,
11450
11524
  columns: h = 1
11451
11525
  }) => {
11452
- const [m, b] = j(!1), w = u.length > 0, v = l.length > 0, x = h === 2 ? " u-table-mobile-card__fields--cols2" : "", y = /* @__PURE__ */ T(Ie, { children: [
11526
+ const [m, b] = q(!1), w = u.length > 0, v = l.length > 0, x = h === 2 ? " u-table-mobile-card__fields--cols2" : "", y = /* @__PURE__ */ T(Ie, { children: [
11453
11527
  /* @__PURE__ */ T("div", { className: "u-table-mobile-card__head-main", children: [
11454
11528
  /* @__PURE__ */ T("span", { className: "u-table-mobile-card__primary", children: [
11455
11529
  p && !t && r != null && r !== "" && /* @__PURE__ */ f(
@@ -11586,7 +11660,7 @@ const Mp = (n, r, t, e) => {
11586
11660
  mobileCardDivider: k,
11587
11661
  mobileCardFlat: g
11588
11662
  }) => {
11589
- const C = ne(null), [M, I] = j({ atStart: !0, atEnd: !0 }), A = () => {
11663
+ const C = ne(null), [M, I] = q({ atStart: !0, atEnd: !0 }), A = () => {
11590
11664
  const $ = C.current;
11591
11665
  if (!$) return;
11592
11666
  const le = $.scrollWidth > $.clientWidth + 1;
@@ -11603,7 +11677,7 @@ const Mp = (n, r, t, e) => {
11603
11677
  const le = new ResizeObserver(A);
11604
11678
  return le.observe($), () => le.disconnect();
11605
11679
  }, [a, b, e]);
11606
- const W = ne(null), [z, H] = j(!1);
11680
+ const W = ne(null), [z, H] = q(!1);
11607
11681
  re(() => {
11608
11682
  if (!z) return;
11609
11683
  const $ = (le) => {
@@ -11849,9 +11923,9 @@ const $p = ({
11849
11923
  onSortChange: e,
11850
11924
  managedSort: a
11851
11925
  }) => {
11852
- const [o, i] = j(
11926
+ const [o, i] = q(
11853
11927
  n != null && n.field ? { column: n.field, asc: n.dir !== "desc" } : void 0
11854
- ), [s, l] = j(null), u = typeof e == "function" && !a, c = u ? r : (o == null ? void 0 : o.asc) !== void 0 ? o == null ? void 0 : o.column : void 0, d = u ? t : (o == null ? void 0 : o.asc) === !0 ? "asc" : (o == null ? void 0 : o.asc) === !1 ? "desc" : void 0, p = (w, v) => {
11928
+ ), [s, l] = q(null), u = typeof e == "function" && !a, c = u ? r : (o == null ? void 0 : o.asc) !== void 0 ? o == null ? void 0 : o.column : void 0, d = u ? t : (o == null ? void 0 : o.asc) === !0 ? "asc" : (o == null ? void 0 : o.asc) === !1 ? "desc" : void 0, p = (w, v) => {
11855
11929
  u || i({
11856
11930
  column: w,
11857
11931
  asc: v === "asc" ? !0 : v === "desc" ? !1 : void 0
@@ -11949,7 +12023,7 @@ const $p = ({
11949
12023
  const t = n.reduce(
11950
12024
  (c, d) => (d.field != null && d.width != null && (c[d.field] = d.width), c),
11951
12025
  {}
11952
- ), [e, a] = j({}), [o, i] = j({}), s = ne({}), l = (c, d) => {
12026
+ ), [e, a] = q({}), [o, i] = q({}), s = ne({}), l = (c, d) => {
11953
12027
  const p = { ...e };
11954
12028
  p[c] = t[c] ? d < t[c] ? t[c] : d : d > 30 ? d : 30, i(p);
11955
12029
  }, u = (c, d) => {
@@ -11985,7 +12059,7 @@ const $p = ({
11985
12059
  handleMouseDown: u,
11986
12060
  thRefs: s
11987
12061
  };
11988
- }, mr = (n) => `${n}px`, ko = (n) => {
12062
+ }, gr = (n) => `${n}px`, ko = (n) => {
11989
12063
  if (typeof n == "number")
11990
12064
  return `calc(${n} * var(--u-unit, 1px))`;
11991
12065
  if (typeof n == "string") {
@@ -11994,7 +12068,7 @@ const $p = ({
11994
12068
  return `calc(${t[1]} * var(--u-unit, 1px))`;
11995
12069
  }
11996
12070
  return n;
11997
- }, gr = (n) => {
12071
+ }, vr = (n) => {
11998
12072
  if (!n) return n;
11999
12073
  const r = { ...n };
12000
12074
  return "fontSize" in r && (r.fontSize = ko(r.fontSize)), "lineHeight" in r && (r.lineHeight = ko(r.lineHeight)), r;
@@ -12040,7 +12114,7 @@ const $p = ({
12040
12114
  {
12041
12115
  id: `${i}td${r}${C}`,
12042
12116
  className: `${g.sticky ? "sticky" : ""}`,
12043
- style: gr(
12117
+ style: vr(
12044
12118
  Object.assign(
12045
12119
  {
12046
12120
  left: g.sticky ? m(C) : "",
@@ -12060,11 +12134,11 @@ const $p = ({
12060
12134
  /* @__PURE__ */ f(
12061
12135
  "div",
12062
12136
  {
12063
- style: gr(
12137
+ style: vr(
12064
12138
  Object.assign(
12065
12139
  {
12066
- width: d && !g.resizeOff && (g != null && g.width) ? p[g.field] >= g.width ? p[g.field] : mr(g.width) : d && !g.resizeOff || g != null && g.width ? p[g.field] || (g == null ? void 0 : g.width) : Gp,
12067
- minWidth: d && !g.resizeOff && g.width ? mr(g.width) : "",
12140
+ width: d && !g.resizeOff && (g != null && g.width) ? p[g.field] >= g.width ? p[g.field] : gr(g.width) : d && !g.resizeOff || g != null && g.width ? p[g.field] || (g == null ? void 0 : g.width) : Gp,
12141
+ minWidth: d && !g.resizeOff && g.width ? gr(g.width) : "",
12068
12142
  position: g.sticky ? "sticky" : "",
12069
12143
  overflowX: d && !g.resizeOff ? "hidden" : "auto",
12070
12144
  overflowY: "hidden",
@@ -12128,7 +12202,7 @@ const $p = ({
12128
12202
  page: s,
12129
12203
  pageSize: l
12130
12204
  }) => {
12131
- const u = ne(null), [c, d] = j(0), [p, h] = j(0), m = ne([]), b = ne([]), w = ne([]), v = ne([]), x = ne([]), y = ne({}), [_, S] = j(void 0), P = Oe(
12205
+ const u = ne(null), [c, d] = q(0), [p, h] = q(0), m = ne([]), b = ne([]), w = ne([]), v = ne([]), x = ne([]), y = ne({}), [_, S] = q(void 0), P = Oe(
12132
12206
  (D) => m.current[D] ?? e,
12133
12207
  [e]
12134
12208
  ), k = Ze(() => {
@@ -12241,7 +12315,7 @@ function Qp(n) {
12241
12315
  };
12242
12316
  }, [n]), r;
12243
12317
  }
12244
- const qp = (n, r, t, e) => {
12318
+ const jp = (n, r, t, e) => {
12245
12319
  switch (n) {
12246
12320
  case "0":
12247
12321
  return ki(r, t, e);
@@ -12252,7 +12326,7 @@ const qp = (n, r, t, e) => {
12252
12326
  case "3":
12253
12327
  return Up(r, t, e);
12254
12328
  }
12255
- }, jp = (n, r, t, e) => {
12329
+ }, qp = (n, r, t, e) => {
12256
12330
  switch (n) {
12257
12331
  case "0":
12258
12332
  return _i(r, t, e);
@@ -12261,21 +12335,21 @@ const qp = (n, r, t, e) => {
12261
12335
  case "2":
12262
12336
  return Zp(r, t, e);
12263
12337
  }
12264
- }, Cr = (n) => String(n ?? "").toLowerCase(), ki = (n, r, t) => {
12338
+ }, Nr = (n) => String(n ?? "").toLowerCase(), ki = (n, r, t) => {
12265
12339
  if (!n) return;
12266
- const e = n.toLowerCase(), a = (t ?? []).filter((o) => Cr(o).includes(e));
12340
+ const e = n.toLowerCase(), a = (t ?? []).filter((o) => Nr(o).includes(e));
12267
12341
  r(a);
12268
12342
  }, Kp = (n, r, t) => {
12269
12343
  if (!n) return;
12270
- const e = n.toLowerCase(), a = (t ?? []).filter((o) => Cr(o) === e);
12344
+ const e = n.toLowerCase(), a = (t ?? []).filter((o) => Nr(o) === e);
12271
12345
  r(a);
12272
12346
  }, Vp = (n, r, t) => {
12273
12347
  if (!n) return;
12274
- const e = n.toLowerCase(), a = (t ?? []).filter((o) => Cr(o).startsWith(e));
12348
+ const e = n.toLowerCase(), a = (t ?? []).filter((o) => Nr(o).startsWith(e));
12275
12349
  r(a);
12276
12350
  }, Up = (n, r, t) => {
12277
12351
  if (!n) return;
12278
- const e = n.toLowerCase(), a = (t ?? []).filter((o) => Cr(o).endsWith(e));
12352
+ const e = n.toLowerCase(), a = (t ?? []).filter((o) => Nr(o).endsWith(e));
12279
12353
  r(a);
12280
12354
  }, _i = (n, r, t) => {
12281
12355
  if (!n) return;
@@ -12289,7 +12363,7 @@ const qp = (n, r, t, e) => {
12289
12363
  if (!n) return;
12290
12364
  const e = Number(n), a = (t ?? []).filter((o) => Number(o) < e);
12291
12365
  r(a);
12292
- }, So = (n) => `${n}px`, jr = (n, r) => {
12366
+ }, So = (n) => `${n}px`, qr = (n, r) => {
12293
12367
  const t = /* @__PURE__ */ new Set();
12294
12368
  let e = !1;
12295
12369
  function a(l) {
@@ -12352,9 +12426,9 @@ const qp = (n, r, t, e) => {
12352
12426
  ]
12353
12427
  }
12354
12428
  );
12355
- }, Nr = (n) => {
12429
+ }, Mr = (n) => {
12356
12430
  var m;
12357
- const [r, t] = j(!1), [e, a] = j(void 0);
12431
+ const [r, t] = q(!1), [e, a] = q(void 0);
12358
12432
  re(() => a(n.value), []);
12359
12433
  const o = () => {
12360
12434
  t(!1);
@@ -12363,7 +12437,7 @@ const qp = (n, r, t, e) => {
12363
12437
  }, s = (b) => {
12364
12438
  n.onChange({ ...n.valueAll ?? {}, [n.keySelect]: b }), a(b), o();
12365
12439
  }, l = ne(null);
12366
- Sr({ refs: [l], onDismiss: o, enabled: r });
12440
+ Cr({ refs: [l], onDismiss: o, enabled: r });
12367
12441
  const u = e, c = n.value, d = u == null ? void 0 : u.id, p = u == null ? void 0 : u.title, h = u == null ? void 0 : u.value;
12368
12442
  return /* @__PURE__ */ T(
12369
12443
  "div",
@@ -12472,7 +12546,7 @@ const qp = (n, r, t, e) => {
12472
12546
  },
12473
12547
  children: [
12474
12548
  /* @__PURE__ */ f(
12475
- Nr,
12549
+ Mr,
12476
12550
  {
12477
12551
  keySelect: "typeFilterSearch",
12478
12552
  value: o == null ? void 0 : o.typeFilterSearch,
@@ -12617,7 +12691,7 @@ const qp = (n, r, t, e) => {
12617
12691
  },
12618
12692
  children: [
12619
12693
  /* @__PURE__ */ f(
12620
- Nr,
12694
+ Mr,
12621
12695
  {
12622
12696
  keySelect: "typeFilterSearch",
12623
12697
  value: o == null ? void 0 : o.typeFilterSearch,
@@ -12802,7 +12876,7 @@ const qp = (n, r, t, e) => {
12802
12876
  },
12803
12877
  children: [
12804
12878
  /* @__PURE__ */ f(
12805
- Nr,
12879
+ Mr,
12806
12880
  {
12807
12881
  keySelect: "typeFilterSearch",
12808
12882
  value: o == null ? void 0 : o.typeFilterSearch,
@@ -12980,7 +13054,7 @@ const qp = (n, r, t, e) => {
12980
13054
  },
12981
13055
  children: [
12982
13056
  /* @__PURE__ */ f(
12983
- Nr,
13057
+ Mr,
12984
13058
  {
12985
13059
  keySelect: "typeFilterSearch",
12986
13060
  value: o == null ? void 0 : o.typeFilterSearch,
@@ -13048,23 +13122,23 @@ const qp = (n, r, t, e) => {
13048
13122
  isParentDataField: P,
13049
13123
  filterResetParam: k
13050
13124
  }) => {
13051
- const g = `${n}th${r}`, C = "auto", [M, I] = j(), [A, W] = j(), [z, H] = j(), [B, D] = j(), [E, N] = j(0), [F, X] = j(""), [Z, G] = j(), [Y, ae] = j(!1), [pe, ue] = j(), $ = ne(null), le = Qp(() => {
13052
- var q;
13053
- l === g && !(s.filterType === "date" && ((q = M == null ? void 0 : M.typeFilterSearch) == null ? void 0 : q.id) === "between" && z && !B) && u(void 0);
13054
- }), O = c && (s == null ? void 0 : s.field) in c && c[s.field] && c[s.field].length !== 0, Q = Array.isArray(S) && S.some((q) => q.id === s.field && (q.begin != null || q.end != null)), se = O || Q, De = (q) => {
13125
+ const g = `${n}th${r}`, C = "auto", [M, I] = q(), [A, W] = q(), [z, H] = q(), [B, D] = q(), [E, N] = q(0), [F, X] = q(""), [Z, G] = q(), [Y, ae] = q(!1), [pe, ue] = q(), $ = ne(null), le = Qp(() => {
13126
+ var j;
13127
+ l === g && !(s.filterType === "date" && ((j = M == null ? void 0 : M.typeFilterSearch) == null ? void 0 : j.id) === "between" && z && !B) && u(void 0);
13128
+ }), O = c && (s == null ? void 0 : s.field) in c && c[s.field] && c[s.field].length !== 0, Q = Array.isArray(S) && S.some((j) => j.id === s.field && (j.begin != null || j.end != null)), se = O || Q, De = (j) => {
13055
13129
  let L = 0;
13056
- for (let J = q; J > 0; J--)
13130
+ for (let J = j; J > 0; J--)
13057
13131
  L = i[J - 1].width ? L + i[J - 1].width : L;
13058
13132
  return L;
13059
13133
  }, Me = () => {
13060
13134
  V(s.field);
13061
- }, V = (q) => {
13062
- const L = q === (m == null ? void 0 : m.column) && !(m != null && m.asc) ? void 0 : q, J = {
13135
+ }, V = (j) => {
13136
+ const L = j === (m == null ? void 0 : m.column) && !(m != null && m.asc) ? void 0 : j, J = {
13063
13137
  column: L,
13064
- asc: L === void 0 ? void 0 : (m == null ? void 0 : m.column) === q ? !(m != null && m.asc) : !0
13138
+ asc: L === void 0 ? void 0 : (m == null ? void 0 : m.column) === j ? !(m != null && m.asc) : !0
13065
13139
  };
13066
13140
  b == null || b(J);
13067
- }, be = (q, L) => {
13141
+ }, be = (j, L) => {
13068
13142
  var J;
13069
13143
  return /* @__PURE__ */ T(Ie, { children: [
13070
13144
  /* @__PURE__ */ f(
@@ -13072,50 +13146,50 @@ const qp = (n, r, t, e) => {
13072
13146
  {
13073
13147
  id: L,
13074
13148
  type: "checkbox",
13075
- checked: !(((J = c[L]) == null ? void 0 : J.some((ie) => ie === q)) ?? !1),
13076
- onChange: () => me(q, L)
13149
+ checked: !(((J = c[L]) == null ? void 0 : J.some((ie) => ie === j)) ?? !1),
13150
+ onChange: () => me(j, L)
13077
13151
  }
13078
13152
  ),
13079
13153
  /* @__PURE__ */ f("div", { className: "u-checkbox-input" })
13080
13154
  ] });
13081
- }, me = (q, L) => {
13155
+ }, me = (j, L) => {
13082
13156
  var J;
13083
13157
  d(
13084
- L in c ? c[L].filter((ie) => ie !== q).length === 0 ? Object.keys(c).filter((ie) => ie !== String(L)).reduce(
13158
+ L in c ? c[L].filter((ie) => ie !== j).length === 0 ? Object.keys(c).filter((ie) => ie !== String(L)).reduce(
13085
13159
  (ie, Pe) => ({ ...ie, [Pe]: c[Pe] }),
13086
13160
  {}
13087
- ) : (J = c[L]) != null && J.some((ie) => ie === q) ? {
13161
+ ) : (J = c[L]) != null && J.some((ie) => ie === j) ? {
13088
13162
  ...c,
13089
- [L]: c[L].filter((ie) => ie !== q)
13090
- } : { ...c, [L]: [...c[L], q] } : { ...c, [L]: [q] }
13163
+ [L]: c[L].filter((ie) => ie !== j)
13164
+ } : { ...c, [L]: [...c[L], j] } : { ...c, [L]: [j] }
13091
13165
  );
13092
- }, we = (q, L) => {
13166
+ }, we = (j, L) => {
13093
13167
  d(
13094
- L in c ? c[L].every((J) => q.includes(J)) ? Object.keys(c).filter((J) => J !== String(L)).reduce(
13168
+ L in c ? c[L].every((J) => j.includes(J)) ? Object.keys(c).filter((J) => J !== String(L)).reduce(
13095
13169
  (J, ie) => ({ ...J, [ie]: c[ie] }),
13096
13170
  {}
13097
13171
  ) : F.length > 0 ? {
13098
13172
  ...c,
13099
- [L]: q.every((J) => c[L].includes(J)) ? c[L].filter((J) => !q.includes(J)) : q.every((J) => !c[L].includes(J)) ? c[L].concat(q) : c[L].filter(
13100
- (J) => !q.some((ie) => ie === J)
13173
+ [L]: j.every((J) => c[L].includes(J)) ? c[L].filter((J) => !j.includes(J)) : j.every((J) => !c[L].includes(J)) ? c[L].concat(j) : c[L].filter(
13174
+ (J) => !j.some((ie) => ie === J)
13101
13175
  )
13102
13176
  } : {
13103
13177
  ...c,
13104
- [L]: c[L].filter((J) => !q.some((ie) => ie === J)).concat(q)
13105
- } : F.length > 0 && !Y ? { ...c, [L]: Z } : { ...c, [L]: q }
13178
+ [L]: c[L].filter((J) => !j.some((ie) => ie === J)).concat(j)
13179
+ } : F.length > 0 && !Y ? { ...c, [L]: Z } : { ...c, [L]: j }
13106
13180
  ), F.length > 0 && ae(!0);
13107
13181
  };
13108
13182
  re(() => {
13109
13183
  G(
13110
- jr(
13184
+ qr(
13111
13185
  Kr(s.filterOptions),
13112
13186
  h
13113
13187
  )
13114
13188
  );
13115
13189
  }, [s.filterOptions]), re(() => {
13116
- var q, L, J, ie;
13190
+ var j, L, J, ie;
13117
13191
  N(
13118
- (L = (q = $ == null ? void 0 : $.current) == null ? void 0 : q.getBoundingClientRect()) == null ? void 0 : L.height
13192
+ (L = (j = $ == null ? void 0 : $.current) == null ? void 0 : j.getBoundingClientRect()) == null ? void 0 : L.height
13119
13193
  ), y(Object.assign(x, { [s.field]: (ie = (J = $ == null ? void 0 : $.current) == null ? void 0 : J.getBoundingClientRect()) == null ? void 0 : ie.width }));
13120
13194
  }, []), re(() => {
13121
13195
  F.length > 0 && s.field in c && c[s.field].length !== 0 && ae(!0), F.length === 0 && ae(!1);
@@ -13124,13 +13198,13 @@ const qp = (n, r, t, e) => {
13124
13198
  }, [k]), re(() => {
13125
13199
  l && $.current && ue($.current.getBoundingClientRect().left);
13126
13200
  }, [l]), re(() => {
13127
- const q = (M == null ? void 0 : M.typeFilterSearch.id) ?? "exact";
13128
- z && !M && q === "exact" && I({ typeFilterSearch: Si[2] }), l && p((L) => {
13201
+ const j = (M == null ? void 0 : M.typeFilterSearch.id) ?? "exact";
13202
+ z && !M && j === "exact" && I({ typeFilterSearch: Si[2] }), l && p((L) => {
13129
13203
  const J = L.findIndex((ie) => ie.id === s.field);
13130
13204
  if (J !== -1) {
13131
13205
  const ie = [...L];
13132
13206
  return ie[J] = {
13133
- type: q,
13207
+ type: j,
13134
13208
  begin: z || null,
13135
13209
  end: B || null,
13136
13210
  id: s.field
@@ -13139,7 +13213,7 @@ const qp = (n, r, t, e) => {
13139
13213
  return [
13140
13214
  ...L,
13141
13215
  {
13142
- type: q,
13216
+ type: j,
13143
13217
  begin: z || null,
13144
13218
  end: B || null,
13145
13219
  id: s.field
@@ -13147,24 +13221,24 @@ const qp = (n, r, t, e) => {
13147
13221
  ];
13148
13222
  });
13149
13223
  }, [z, B, M]), re(() => {
13150
- var q, L;
13151
- s.filterType === "string" && (!M && F.length > 0 && I({ typeFilterSearch: Ci[0] }), F ? M ? qp(
13152
- (q = M == null ? void 0 : M.typeFilterSearch) == null ? void 0 : q.id,
13224
+ var j, L;
13225
+ s.filterType === "string" && (!M && F.length > 0 && I({ typeFilterSearch: Ci[0] }), F ? M ? jp(
13226
+ (j = M == null ? void 0 : M.typeFilterSearch) == null ? void 0 : j.id,
13153
13227
  F,
13154
13228
  W,
13155
13229
  Z
13156
13230
  ) : ki(F, W, Z) : W(
13157
- jr(
13231
+ qr(
13158
13232
  Kr(s.filterOptions),
13159
13233
  h
13160
13234
  )
13161
- )), s.filterType === "number" && (!M && F.length > 0 && I({ typeFilterSearch: Ni[0] }), F ? M ? jp(
13235
+ )), s.filterType === "number" && (!M && F.length > 0 && I({ typeFilterSearch: Ni[0] }), F ? M ? qp(
13162
13236
  (L = M == null ? void 0 : M.typeFilterSearch) == null ? void 0 : L.id,
13163
13237
  F,
13164
13238
  W,
13165
13239
  Z
13166
13240
  ) : _i(F, W, Z) : W(
13167
- jr(
13241
+ qr(
13168
13242
  Kr(s.filterOptions),
13169
13243
  h
13170
13244
  )
@@ -13195,8 +13269,8 @@ const qp = (n, r, t, e) => {
13195
13269
  return /* @__PURE__ */ T(
13196
13270
  "th",
13197
13271
  {
13198
- ref: (q) => {
13199
- q && (le.current = q, $.current = q);
13272
+ ref: (j) => {
13273
+ j && (le.current = j, $.current = j);
13200
13274
  },
13201
13275
  id: g,
13202
13276
  className: `${s.sticky ? "sticky" : ""} ${w && !s.resizeOff ? "resize" : ""}`,
@@ -13267,7 +13341,7 @@ const qp = (n, r, t, e) => {
13267
13341
  cursor: "col-resize",
13268
13342
  zIndex: 10
13269
13343
  },
13270
- onMouseDown: (q) => v(q)
13344
+ onMouseDown: (j) => v(j)
13271
13345
  }
13272
13346
  ),
13273
13347
  ye && s.filterType === "date" && /* @__PURE__ */ f(
@@ -13413,7 +13487,7 @@ const qp = (n, r, t, e) => {
13413
13487
  ref: (Z) => S.current[N.field] = Z,
13414
13488
  id: `${r}th${F}`,
13415
13489
  className: `${N.sticky ? "sticky" : ""} ${m && !N.resizeOff ? "resize" : ""}`,
13416
- style: gr(
13490
+ style: vr(
13417
13491
  Object.assign(
13418
13492
  {
13419
13493
  left: N.sticky ? k(F) : "",
@@ -13433,11 +13507,11 @@ const qp = (n, r, t, e) => {
13433
13507
  "div",
13434
13508
  {
13435
13509
  className: "u-table-th-content",
13436
- style: gr(
13510
+ style: vr(
13437
13511
  Object.assign(
13438
13512
  {
13439
- width: m && !N.resizeOff && (N != null && N.width) ? P[N.field] >= N.width ? P[N.field] : mr(N.width) : m && !N.resizeOff || N.width ? P[N.field] || N.width : sf,
13440
- minWidth: m && !N.resizeOff && N.width ? mr(N.width) : "",
13513
+ width: m && !N.resizeOff && (N != null && N.width) ? P[N.field] >= N.width ? P[N.field] : gr(N.width) : m && !N.resizeOff || N.width ? P[N.field] || N.width : sf,
13514
+ minWidth: m && !N.resizeOff && N.width ? gr(N.width) : "",
13441
13515
  position: N.sticky ? "sticky" : "",
13442
13516
  overflow: m && !N.resizeOff ? "hidden" : "auto"
13443
13517
  },
@@ -13528,7 +13602,7 @@ const qp = (n, r, t, e) => {
13528
13602
  renderMobileCard: ye,
13529
13603
  renderMobileToolbar: oe,
13530
13604
  mobileSortBar: de,
13531
- mobileSortLabel: q = "Сортировка",
13605
+ mobileSortLabel: j = "Сортировка",
13532
13606
  mobileSortStyle: L = "select",
13533
13607
  mobileCardFlat: J
13534
13608
  }) => {
@@ -13539,19 +13613,19 @@ const qp = (n, r, t, e) => {
13539
13613
  setLookColumnWidths: $e,
13540
13614
  handleMouseDown: Fe,
13541
13615
  thRefs: ot
13542
- } = Bp(r, S), [kt, Ot] = j(void 0), [Ke, We] = j([]), [it, sn] = j(
13616
+ } = Bp(r, S), [kt, Ot] = q(void 0), [Ke, We] = q([]), [it, sn] = q(
13543
13617
  r.filter((ke) => ke.hidden !== !0)
13544
- ), [Pt, ce] = j({}), [He, Mr] = j([]), {
13618
+ ), [Pt, ce] = q({}), [He, Er] = q([]), {
13545
13619
  sort: ln,
13546
13620
  setSort: K,
13547
13621
  hoveredSortCol: ge,
13548
13622
  setHoveredSortCol: ze,
13549
- effectiveSortField: qt,
13550
- effectiveSortDir: jt,
13623
+ effectiveSortField: jt,
13624
+ effectiveSortDir: qt,
13551
13625
  applySort: Rt,
13552
13626
  handleSortToggle: Kt,
13553
- setSortField: Er,
13554
- toggleSortDir: Tr
13627
+ setSortField: Tr,
13628
+ toggleSortDir: Or
13555
13629
  } = $p({
13556
13630
  defaultSort: $,
13557
13631
  controlledSort: Y,
@@ -13561,7 +13635,7 @@ const qp = (n, r, t, e) => {
13561
13635
  }), {
13562
13636
  rootRef: It,
13563
13637
  start: cn,
13564
- visibleCount: Or,
13638
+ visibleCount: Pr,
13565
13639
  pagedData: ya,
13566
13640
  hasOverflow: $n,
13567
13641
  topPadding: Ei,
@@ -13621,7 +13695,7 @@ const qp = (n, r, t, e) => {
13621
13695
  }, Yi = (ke) => {
13622
13696
  const Te = [...Ke];
13623
13697
  Te[ke].parentDataOpened = !1, We(Te);
13624
- }, [Ai, Na] = j(!1);
13698
+ }, [Ai, Na] = q(!1);
13625
13699
  re(() => {
13626
13700
  if (Q !== "cards") {
13627
13701
  Na(!1);
@@ -13634,7 +13708,7 @@ const qp = (n, r, t, e) => {
13634
13708
  const Ve = new ResizeObserver(Te);
13635
13709
  return Ve.observe(ke), () => Ve.disconnect();
13636
13710
  }, [Q, we, n == null ? void 0 : n.length, It]);
13637
- const Pr = Q === "cards" && Ai, Ma = (n == null ? void 0 : n.length) === 0 && !!m;
13711
+ const Rr = Q === "cards" && Ai, Ma = (n == null ? void 0 : n.length) === 0 && !!m;
13638
13712
  re(() => {
13639
13713
  const ke = It.current;
13640
13714
  if (!Ma || !ke || typeof ResizeObserver > "u") return;
@@ -13669,27 +13743,27 @@ const qp = (n, r, t, e) => {
13669
13743
  "div",
13670
13744
  {
13671
13745
  id: y,
13672
- className: `u-table${["horizontal", "vertical", "none", "both"].includes(t) ? Tp(t) : ""}${e ? " striped" : ""}${a ? " not-active-lines" : ""}${o ? " thead-fixed" : ""}${i ? " header-borders" : ""}${w ? " " + w : ""}${Pr ? " u-table-mobile" : ""}`,
13746
+ className: `u-table${["horizontal", "vertical", "none", "both"].includes(t) ? Tp(t) : ""}${e ? " striped" : ""}${a ? " not-active-lines" : ""}${o ? " thead-fixed" : ""}${i ? " header-borders" : ""}${w ? " " + w : ""}${Rr ? " u-table-mobile" : ""}`,
13673
13747
  style: { maxHeight: k, minHeight: g },
13674
13748
  ref: It,
13675
- children: Pr ? /* @__PURE__ */ f(
13749
+ children: Rr ? /* @__PURE__ */ f(
13676
13750
  Yp,
13677
13751
  {
13678
13752
  filteredColumns: it,
13679
13753
  pagedData: ya,
13680
13754
  filteredDataLength: Ke.length,
13681
13755
  dataLength: n == null ? void 0 : n.length,
13682
- isCardMode: Pr,
13756
+ isCardMode: Rr,
13683
13757
  isLoading: N,
13684
13758
  isLoadingPreloader: F,
13685
13759
  messageForEmptyTable: b === "off" ? void 0 : b ?? m,
13686
- effectiveSortField: qt,
13687
- effectiveSortDir: jt,
13760
+ effectiveSortField: jt,
13761
+ effectiveSortDir: qt,
13688
13762
  applySort: Rt,
13689
- setSortField: Er,
13690
- toggleSortDir: Tr,
13763
+ setSortField: Tr,
13764
+ toggleSortDir: Or,
13691
13765
  mobileSortBar: de,
13692
- mobileSortLabel: q,
13766
+ mobileSortLabel: j,
13693
13767
  mobileSortStyle: L,
13694
13768
  renderMobileToolbar: oe,
13695
13769
  renderMobileCard: ye,
@@ -13714,7 +13788,7 @@ const qp = (n, r, t, e) => {
13714
13788
  filteredData: Ke,
13715
13789
  uncheckedValues: Pt,
13716
13790
  setUncheckedValues: ce,
13717
- setFilterDates: Mr,
13791
+ setFilterDates: Er,
13718
13792
  filterDates: He,
13719
13793
  filterEmptyLabel: M,
13720
13794
  sort: ln,
@@ -13733,8 +13807,8 @@ const qp = (n, r, t, e) => {
13733
13807
  thStyle: l,
13734
13808
  cellContentStyle: p,
13735
13809
  thContentStyle: d,
13736
- effectiveSortField: qt,
13737
- effectiveSortDir: jt,
13810
+ effectiveSortField: jt,
13811
+ effectiveSortDir: qt,
13738
13812
  hoveredSortCol: ge,
13739
13813
  setHoveredSortCol: ze,
13740
13814
  handleSortToggle: Kt
@@ -13760,7 +13834,7 @@ const qp = (n, r, t, e) => {
13760
13834
  }
13761
13835
  ) : /* @__PURE__ */ T(Ie, { children: [
13762
13836
  (n == null ? void 0 : n.length) === 0 && m ? /* @__PURE__ */ f("tr", { className: "u-empty-table-row", children: /* @__PURE__ */ f("td", { colSpan: it.length, children: /* @__PURE__ */ f("div", { className: "u-empty-table-cell", children: m }) }) }) : $n && /* @__PURE__ */ f("tr", { style: { height: Ei } }),
13763
- (Ta = $n ? Ke == null ? void 0 : Ke.slice(cn, cn + Or) : ya) == null ? void 0 : Ta.map((ke, Te) => {
13837
+ (Ta = $n ? Ke == null ? void 0 : Ke.slice(cn, cn + Pr) : ya) == null ? void 0 : Ta.map((ke, Te) => {
13764
13838
  const Ve = $n ? cn + Te : Te;
13765
13839
  return /* @__PURE__ */ T(
13766
13840
  R.Fragment,
@@ -13775,15 +13849,15 @@ const qp = (n, r, t, e) => {
13775
13849
  absoluteIndex: Ve
13776
13850
  }
13777
13851
  ),
13778
- !ke.notExpandable && ke[A] && ke.parentDataOpened && ke[A].map((Rr, Ir) => /* @__PURE__ */ Mo(
13852
+ !ke.notExpandable && ke[A] && ke.parentDataOpened && ke[A].map((Ir, Lr) => /* @__PURE__ */ Mo(
13779
13853
  _o,
13780
13854
  {
13781
13855
  ...Ea,
13782
- key: Rr.id ?? `child-${Ir}`,
13783
- item: Rr,
13784
- i: Ir,
13856
+ key: Ir.id ?? `child-${Lr}`,
13857
+ item: Ir,
13858
+ i: Lr,
13785
13859
  level: 1,
13786
- rowKey: Rr.id ?? `child-${Ir}`
13860
+ rowKey: Ir.id ?? `child-${Lr}`
13787
13861
  }
13788
13862
  ))
13789
13863
  ]
@@ -13908,11 +13982,11 @@ const qp = (n, r, t, e) => {
13908
13982
  disabled: P,
13909
13983
  isSearchable: k
13910
13984
  }) => {
13911
- var q;
13912
- const g = on(m, h), C = Dt({ error: v, validationOn: w, validationText: b }), M = tt(S, "u-tree"), [I, A] = j(""), [W, z] = j(null), [H, B] = j([]), [D, E] = j(!1), [N, F] = j(null), X = ne(null), Z = ne(null), G = ne(), Y = gi(I, 300), ae = Ze(() => y.filter((L) => L.title.toLowerCase().includes((Y || "").toLowerCase())), [Y, y]), pe = () => {
13985
+ var j;
13986
+ const g = on(m, h), C = Dt({ error: v, validationOn: w, validationText: b }), M = tt(S, "u-tree"), [I, A] = q(""), [W, z] = q(null), [H, B] = q([]), [D, E] = q(!1), [N, F] = q(null), X = ne(null), Z = ne(null), G = ne(), Y = gi(I, 300), ae = Ze(() => y.filter((L) => L.title.toLowerCase().includes((Y || "").toLowerCase())), [Y, y]), pe = () => {
13913
13987
  E(!1);
13914
13988
  };
13915
- Sr({
13989
+ Cr({
13916
13990
  refs: [X, Z],
13917
13991
  onDismiss: pe,
13918
13992
  enabled: D
@@ -13985,7 +14059,7 @@ const qp = (n, r, t, e) => {
13985
14059
  const J = se[L];
13986
14060
  J && be(J);
13987
14061
  }
13988
- }), V = De >= 0 ? (q = se[De]) == null ? void 0 : q.id : void 0;
14062
+ }), V = De >= 0 ? (j = se[De]) == null ? void 0 : j.id : void 0;
13989
14063
  wi({
13990
14064
  isOpen: D,
13991
14065
  activeIndex: De,
@@ -14176,7 +14250,7 @@ const qp = (n, r, t, e) => {
14176
14250
  ] });
14177
14251
  };
14178
14252
  function $f(n = {}) {
14179
- const [r, t] = j(n.defaultField), [e, a] = j(n.defaultDir), o = (l, u) => {
14253
+ const [r, t] = q(n.defaultField), [e, a] = q(n.defaultDir), o = (l, u) => {
14180
14254
  var c;
14181
14255
  t(l), a(u), (c = n.onChange) == null || c.call(n, l, u);
14182
14256
  };
@@ -14190,7 +14264,7 @@ function Hf({
14190
14264
  defaultPage: r = 1,
14191
14265
  defaultPageSize: t = 10
14192
14266
  }) {
14193
- const [e, a] = j(r), [o, i] = j(t), s = Math.max(1, Math.ceil(n / o));
14267
+ const [e, a] = q(r), [o, i] = q(t), s = Math.max(1, Math.ceil(n / o));
14194
14268
  re(() => {
14195
14269
  e > s && a(s);
14196
14270
  }, [e, s]);
@@ -14214,7 +14288,7 @@ function Hf({
14214
14288
  }
14215
14289
  };
14216
14290
  }
14217
- qi();
14291
+ ji();
14218
14292
  export {
14219
14293
  ff as Accordion,
14220
14294
  hf as BreadCrumbs,