@pnkx-lib/ui 1.1.6 → 1.1.7

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.
@@ -3,7 +3,7 @@ import { Button as uc, Cascader as fc, Space as It, Card as _a, Skeleton as Mo,
3
3
  import * as h from "react";
4
4
  import Re, { useEffect as Je, useContext as Ze, createContext as Io, version as kc, isValidElement as Pc, useRef as Ke, useLayoutEffect as Tc, useState as ht } from "react";
5
5
  import Ra from "react-dom";
6
- const Aa = (e) => /* @__PURE__ */ E.jsx(uc, { ...e }), Dm = (e) => {
6
+ const ja = (e) => /* @__PURE__ */ E.jsx(uc, { ...e }), Dm = (e) => {
7
7
  const {
8
8
  customStyleContainer: t,
9
9
  customStyleCascader: r,
@@ -59,7 +59,7 @@ var _c = /* @__PURE__ */ function() {
59
59
  return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
60
60
  }), this.tags = [], this.ctr = 0;
61
61
  }, e;
62
- }(), fe = "-ms-", Pr = "-moz-", D = "-webkit-", Do = "comm", ra = "rule", na = "decl", Rc = "@import", Fo = "@keyframes", Ac = "@layer", jc = Math.abs, Mr = String.fromCharCode, Mc = Object.assign;
62
+ }(), fe = "-ms-", Pr = "-moz-", D = "-webkit-", Do = "comm", ra = "rule", na = "decl", Rc = "@import", Fo = "@keyframes", jc = "@layer", Ac = Math.abs, Mr = String.fromCharCode, Mc = Object.assign;
63
63
  function Nc(e, t) {
64
64
  return ce(e, 0) ^ 45 ? (((t << 2 ^ ce(e, 0)) << 2 ^ ce(e, 1)) << 2 ^ ce(e, 2)) << 2 ^ ce(e, 3) : 0;
65
65
  }
@@ -109,7 +109,7 @@ function Fc() {
109
109
  function ye() {
110
110
  return re = pe < zo ? ce(wt, pe++) : 0, xt++, re === 10 && (xt = 1, Nr++), re;
111
111
  }
112
- function Ae() {
112
+ function je() {
113
113
  return ce(wt, pe);
114
114
  }
115
115
  function pr() {
@@ -166,14 +166,14 @@ function vr(e) {
166
166
  return Ho(Kt(pe - 1, mn(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
167
167
  }
168
168
  function Hc(e) {
169
- for (; (re = Ae()) && re < 33; )
169
+ for (; (re = je()) && re < 33; )
170
170
  ye();
171
171
  return Ht(e) > 2 || Ht(re) > 3 ? "" : " ";
172
172
  }
173
173
  function zc(e, t) {
174
174
  for (; --t && ye() && !(re < 48 || re > 102 || re > 57 && re < 65 || re > 70 && re < 97); )
175
175
  ;
176
- return Kt(e, pr() + (t < 6 && Ae() == 32 && ye() == 32));
176
+ return Kt(e, pr() + (t < 6 && je() == 32 && ye() == 32));
177
177
  }
178
178
  function mn(e) {
179
179
  for (; ye(); )
@@ -199,12 +199,12 @@ function mn(e) {
199
199
  }
200
200
  function Bc(e, t) {
201
201
  for (; ye() && e + re !== 57; )
202
- if (e + re === 84 && Ae() === 47)
202
+ if (e + re === 84 && je() === 47)
203
203
  break;
204
204
  return "/*" + Kt(t, pe - 1) + "*" + Mr(e === 47 ? e : ye());
205
205
  }
206
206
  function Vc(e) {
207
- for (; !Ht(Ae()); )
207
+ for (; !Ht(je()); )
208
208
  ye();
209
209
  return Kt(e, pe);
210
210
  }
@@ -239,7 +239,7 @@ function gr(e, t, r, n, a, o, i, c, l) {
239
239
  continue;
240
240
  // /
241
241
  case 47:
242
- switch (Ae()) {
242
+ switch (je()) {
243
243
  case 42:
244
244
  case 47:
245
245
  nr(Uc(Bc(ye(), pr()), t, r), l);
@@ -269,7 +269,7 @@ function gr(e, t, r, n, a, o, i, c, l) {
269
269
  S += ";";
270
270
  // { rule/at-rule
271
271
  default:
272
- if (nr(k = ja(S, t, r, s, u, a, c, x, w = [], C = [], d), o), b === 123)
272
+ if (nr(k = Aa(S, t, r, s, u, a, c, x, w = [], C = [], d), o), b === 123)
273
273
  if (u === 0)
274
274
  gr(S, t, k, k, w, o, d, c, C);
275
275
  else
@@ -279,7 +279,7 @@ function gr(e, t, r, n, a, o, i, c, l) {
279
279
  case 108:
280
280
  case 109:
281
281
  case 115:
282
- gr(e, k, k, n && nr(ja(e, k, k, 0, 0, a, c, x, a, w = [], d), C), a, C, d, c, n ? w : C);
282
+ gr(e, k, k, n && nr(Aa(e, k, k, 0, 0, a, c, x, a, w = [], d), C), a, C, d, c, n ? w : C);
283
283
  break;
284
284
  default:
285
285
  gr(S, k, k, k, [""], C, 0, c, C);
@@ -308,7 +308,7 @@ function gr(e, t, r, n, a, o, i, c, l) {
308
308
  break;
309
309
  // @
310
310
  case 64:
311
- Ae() === 45 && (S += vr(ye())), f = Ae(), u = d = _e(x = S += Vc(pr())), b++;
311
+ je() === 45 && (S += vr(ye())), f = je(), u = d = _e(x = S += Vc(pr())), b++;
312
312
  break;
313
313
  // -
314
314
  case 45:
@@ -317,9 +317,9 @@ function gr(e, t, r, n, a, o, i, c, l) {
317
317
  }
318
318
  return o;
319
319
  }
320
- function ja(e, t, r, n, a, o, i, c, l, s, u) {
320
+ function Aa(e, t, r, n, a, o, i, c, l, s, u) {
321
321
  for (var d = a - 1, f = a === 0 ? o : [""], y = aa(f), p = 0, m = 0, v = 0; p < n; ++p)
322
- for (var g = 0, b = Ft(e, d + 1, d = jc(m = i[p])), x = e; g < y; ++g)
322
+ for (var g = 0, b = Ft(e, d + 1, d = Ac(m = i[p])), x = e; g < y; ++g)
323
323
  (x = Ho(m > 0 ? f[g] + " " + b : F(b, /&\f/g, f[g]))) && (l[v++] = x);
324
324
  return Lr(e, t, r, a === 0 ? ra : c, l, s, u);
325
325
  }
@@ -336,7 +336,7 @@ function vt(e, t) {
336
336
  }
337
337
  function Gc(e, t, r, n) {
338
338
  switch (e.type) {
339
- case Ac:
339
+ case jc:
340
340
  if (e.children.length) break;
341
341
  case Rc:
342
342
  case na:
@@ -370,7 +370,7 @@ function qc(e) {
370
370
  };
371
371
  }
372
372
  var Yc = function(t, r, n) {
373
- for (var a = 0, o = 0; a = o, o = Ae(), a === 38 && o === 12 && (r[n] = 1), !Ht(o); )
373
+ for (var a = 0, o = 0; a = o, o = je(), a === 38 && o === 12 && (r[n] = 1), !Ht(o); )
374
374
  ye();
375
375
  return Kt(t, pe);
376
376
  }, Qc = function(t, r) {
@@ -378,14 +378,14 @@ var Yc = function(t, r, n) {
378
378
  do
379
379
  switch (Ht(a)) {
380
380
  case 0:
381
- a === 38 && Ae() === 12 && (r[n] = 1), t[n] += Yc(pe - 1, r, n);
381
+ a === 38 && je() === 12 && (r[n] = 1), t[n] += Yc(pe - 1, r, n);
382
382
  break;
383
383
  case 2:
384
384
  t[n] += vr(a);
385
385
  break;
386
386
  case 4:
387
387
  if (a === 44) {
388
- t[++n] = Ae() === 58 ? "&\f" : "", r[n] = t[n].length;
388
+ t[++n] = je() === 58 ? "&\f" : "", r[n] = t[n].length;
389
389
  break;
390
390
  }
391
391
  // fallthrough
@@ -1097,7 +1097,7 @@ function _l(e, t = Ol) {
1097
1097
  const Ba = (e) => {
1098
1098
  const t = $l(e), r = (n) => _l(t, n);
1099
1099
  return Object.assign(r, t), r;
1100
- }, Rl = (e) => e ? Ba(e) : Ba, Al = Rl((e) => ({
1100
+ }, Rl = (e) => e ? Ba(e) : Ba, jl = Rl((e) => ({
1101
1101
  activeTabKey: void 0,
1102
1102
  // giá trị mặc định
1103
1103
  setActiveTabKey: (t) => e({ activeTabKey: t })
@@ -1108,7 +1108,7 @@ const Ba = (e) => {
1108
1108
  ...n
1109
1109
  }) => {
1110
1110
  var c;
1111
- const { activeTabKey: a, setActiveTabKey: o } = Al(), i = (r == null ? void 0 : r.toString()) || ((c = e[0]) == null ? void 0 : c.key);
1111
+ const { activeTabKey: a, setActiveTabKey: o } = jl(), i = (r == null ? void 0 : r.toString()) || ((c = e[0]) == null ? void 0 : c.key);
1112
1112
  return Je(() => {
1113
1113
  !a && i && o(i);
1114
1114
  }, [a, i, o]), /* @__PURE__ */ E.jsx(
@@ -1146,7 +1146,7 @@ const Ba = (e) => {
1146
1146
  }) }),
1147
1147
  !i && /* @__PURE__ */ E.jsxs("div", { className: "flex justify-end gap-2 mb-3", children: [
1148
1148
  /* @__PURE__ */ E.jsx(
1149
- Aa,
1149
+ ja,
1150
1150
  {
1151
1151
  icon: /* @__PURE__ */ E.jsx(Yo, {}),
1152
1152
  className: "px-3 py-1 ",
@@ -1157,7 +1157,7 @@ const Ba = (e) => {
1157
1157
  }
1158
1158
  ),
1159
1159
  !c && /* @__PURE__ */ E.jsx(
1160
- Aa,
1160
+ ja,
1161
1161
  {
1162
1162
  icon: /* @__PURE__ */ E.jsx(qo, {}),
1163
1163
  className: "px-3 py-1",
@@ -1179,13 +1179,13 @@ const Ba = (e) => {
1179
1179
  className: bt(r, "mx-auto px-4 sm:px-6 lg:px-8", t),
1180
1180
  children: e
1181
1181
  }
1182
- ), jl = {
1182
+ ), Al = {
1183
1183
  error: "red",
1184
1184
  info: "blue",
1185
1185
  success: "green",
1186
1186
  warning: "yellow"
1187
1187
  }, Gm = ({ type: e, children: t, ...r }) => {
1188
- const n = e ? jl[e] : void 0;
1188
+ const n = e ? Al[e] : void 0;
1189
1189
  return /* @__PURE__ */ E.jsx(yc, { color: n, ...r, children: t });
1190
1190
  }, Xm = (e) => {
1191
1191
  const { colClassName: t, ...r } = e;
@@ -1225,7 +1225,7 @@ function Nl() {
1225
1225
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1226
1226
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1227
1227
  }
1228
- function je(e) {
1228
+ function Ae(e) {
1229
1229
  return Ml(e) || Qo(e) || oa(e) || Nl();
1230
1230
  }
1231
1231
  function Jo(e, t) {
@@ -1867,7 +1867,7 @@ if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && mo
1867
1867
  }
1868
1868
  }
1869
1869
  function ua(e, t, r, n, a) {
1870
- var o = h.useContext(qt), i = o.cache, c = [e].concat(je(t)), l = Sn(c), s = uu([l]), u = hu(), d = function(m) {
1870
+ var o = h.useContext(qt), i = o.cache, c = [e].concat(Ae(t)), l = Sn(c), s = uu([l]), u = hu(), d = function(m) {
1871
1871
  i.opUpdate(l, function(v) {
1872
1872
  var g = v || [void 0, void 0], b = N(g, 2), x = b[0], w = x === void 0 ? 0 : x, C = b[1], k = C;
1873
1873
  process.env.NODE_ENV !== "production" && C && u && (n == null || n(k, u), k = null);
@@ -1934,7 +1934,7 @@ var Su = function(t, r, n, a) {
1934
1934
  }, di = "token";
1935
1935
  function Cu(e, t) {
1936
1936
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = Ze(qt), a = n.cache.instanceId, o = n.container, i = r.salt, c = i === void 0 ? "" : i, l = r.override, s = l === void 0 ? pu : l, u = r.formatToken, d = r.getComputedToken, f = r.cssVar, y = eu(function() {
1937
- return Object.assign.apply(Object, [{}].concat(je(t)));
1937
+ return Object.assign.apply(Object, [{}].concat(Ae(t)));
1938
1938
  }, t), p = Dt(y), m = Dt(s), v = f ? Dt(f) : "", g = ua(di, [c, e.id, p, m, v], function() {
1939
1939
  var b, x = d ? d(y, s, e) : Su(y, s, e, u), w = R({}, x), C = "";
1940
1940
  if (f) {
@@ -2066,7 +2066,7 @@ function da(e, t, r, n, a, o, i, c) {
2066
2066
  function Ru() {
2067
2067
  return ne;
2068
2068
  }
2069
- function Au() {
2069
+ function ju() {
2070
2070
  return ne = Se > 0 ? yt(kt, --Se) : 0, Et--, ne === 10 && (Et = 1, Hr--), ne;
2071
2071
  }
2072
2072
  function ke() {
@@ -2119,7 +2119,7 @@ function Bt(e) {
2119
2119
  }
2120
2120
  return 0;
2121
2121
  }
2122
- function ju(e) {
2122
+ function Au(e) {
2123
2123
  return Hr = Et = 1, yi = Oe(kt = e), Se = 0, [];
2124
2124
  }
2125
2125
  function Mu(e) {
@@ -2172,7 +2172,7 @@ function Du(e) {
2172
2172
  return zr(e, Se);
2173
2173
  }
2174
2174
  function Fu(e) {
2175
- return Mu(Sr("", null, null, null, [""], e = ju(e), 0, [0], e));
2175
+ return Mu(Sr("", null, null, null, [""], e = Au(e), 0, [0], e));
2176
2176
  }
2177
2177
  function Sr(e, t, r, n, a, o, i, c, l) {
2178
2178
  for (var s = 0, u = 0, d = i, f = 0, y = 0, p = 0, m = 1, v = 1, g = 1, b = 0, x = "", w = a, C = o, k = n, S = x; v; )
@@ -2262,7 +2262,7 @@ function Sr(e, t, r, n, a, o, i, c, l) {
2262
2262
  if (m < 1) {
2263
2263
  if (b == 123)
2264
2264
  --m;
2265
- else if (b == 125 && m++ == 0 && Au() == 125)
2265
+ else if (b == 125 && m++ == 0 && ju() == 125)
2266
2266
  continue;
2267
2267
  }
2268
2268
  switch (S += fa(b), b * m) {
@@ -2375,7 +2375,7 @@ function to(e, t, r) {
2375
2375
  return e;
2376
2376
  var n = ".".concat(t), a = r === "low" ? ":where(".concat(n, ")") : n, o = e.split(",").map(function(i) {
2377
2377
  var c, l = i.trim().split(/\s+/), s = l[0] || "", u = ((c = s.match(/^\w+/)) === null || c === void 0 ? void 0 : c[0]) || "";
2378
- return s = "".concat(u).concat(a).concat(s.slice(u.length)), [s].concat(je(l.slice(1))).join(" ");
2378
+ return s = "".concat(u).concat(a).concat(s.slice(u.length)), [s].concat(Ae(l.slice(1))).join(" ");
2379
2379
  });
2380
2380
  return o.join(",");
2381
2381
  }
@@ -2421,12 +2421,12 @@ var Ku = function e(t) {
2421
2421
  var L = e(P, r, {
2422
2422
  root: I,
2423
2423
  injectHash: $,
2424
- parentSelectors: [].concat(je(i), [T])
2425
- }), M = N(L, 2), A = M[0], j = M[1];
2426
- v = R(R({}, v), j), m += "".concat(T).concat(A);
2424
+ parentSelectors: [].concat(Ae(i), [T])
2425
+ }), M = N(L, 2), j = M[0], A = M[1];
2426
+ v = R(R({}, v), A), m += "".concat(T).concat(j);
2427
2427
  } else {
2428
2428
  let H = function(X, K) {
2429
- process.env.NODE_ENV !== "production" && (U(P) !== "object" || !(P != null && P[Ci])) && [Bu, Vu].concat(je(p)).forEach(function(W) {
2429
+ process.env.NODE_ENV !== "production" && (U(P) !== "object" || !(P != null && P[Ci])) && [Bu, Vu].concat(Ae(p)).forEach(function(W) {
2430
2430
  return W(X, K, {
2431
2431
  path: s,
2432
2432
  hashId: c,
@@ -2459,7 +2459,7 @@ function qu() {
2459
2459
  var ki = "style";
2460
2460
  function $n(e, t) {
2461
2461
  var r = e.token, n = e.path, a = e.hashId, o = e.layer, i = e.nonce, c = e.clientOnly, l = e.order, s = l === void 0 ? 0 : l, u = h.useContext(qt), d = u.autoClear, f = u.mock, y = u.defaultCache, p = u.hashPriority, m = u.container, v = u.ssrInline, g = u.transformers, b = u.linters, x = u.cache, w = u.layer, C = r._tokenKey, k = [C];
2462
- w && k.push("layer"), k.push.apply(k, je(n));
2462
+ w && k.push("layer"), k.push.apply(k, Ae(n));
2463
2463
  var S = wn;
2464
2464
  process.env.NODE_ENV !== "production" && f !== void 0 && (S = f === "client");
2465
2465
  var P = ua(
@@ -2469,7 +2469,7 @@ function $n(e, t) {
2469
2469
  function() {
2470
2470
  var M = k.join("|");
2471
2471
  if (Uu(M)) {
2472
- var A = Gu(M), j = N(A, 2), V = j[0], G = j[1];
2472
+ var j = Gu(M), A = N(j, 2), V = A[0], G = A[1];
2473
2473
  if (V)
2474
2474
  return [V, C, G, {}, c, s];
2475
2475
  }
@@ -2484,18 +2484,18 @@ function $n(e, t) {
2484
2484
  return [W, C, ee, q, c, s];
2485
2485
  },
2486
2486
  // Remove cache if no need
2487
- function(M, A) {
2488
- var j = N(M, 3), V = j[2];
2489
- (A || d) && wn && oi(V, {
2487
+ function(M, j) {
2488
+ var A = N(M, 3), V = A[2];
2489
+ (j || d) && wn && oi(V, {
2490
2490
  mark: we
2491
2491
  });
2492
2492
  },
2493
2493
  // Effect: Inject style here
2494
2494
  function(M) {
2495
- var A = N(M, 4), j = A[0];
2496
- A[1];
2497
- var V = A[2], G = A[3];
2498
- if (S && j !== xi) {
2495
+ var j = N(M, 4), A = j[0];
2496
+ j[1];
2497
+ var V = j[2], G = j[3];
2498
+ if (S && A !== xi) {
2499
2499
  var H = {
2500
2500
  mark: we,
2501
2501
  prepend: w ? !1 : "queue",
@@ -2513,7 +2513,7 @@ function $n(e, t) {
2513
2513
  prepend: !0
2514
2514
  }));
2515
2515
  });
2516
- var q = gt(j, V, H);
2516
+ var q = gt(A, V, H);
2517
2517
  q[Ye] = x.instanceId, q.setAttribute(St, C), process.env.NODE_ENV !== "production" && q.setAttribute(ql, k.join("|")), Y.forEach(function(W) {
2518
2518
  gt(Cr(G[W]), "_effect-".concat(W), H);
2519
2519
  });
@@ -2521,18 +2521,18 @@ function $n(e, t) {
2521
2521
  }
2522
2522
  ), $ = N(P, 3), T = $[0], I = $[1], L = $[2];
2523
2523
  return function(M) {
2524
- var A;
2524
+ var j;
2525
2525
  if (!v || S || !y)
2526
- A = /* @__PURE__ */ h.createElement(qu, null);
2526
+ j = /* @__PURE__ */ h.createElement(qu, null);
2527
2527
  else {
2528
- var j;
2529
- A = /* @__PURE__ */ h.createElement("style", _r({}, (j = {}, _(j, St, I), _(j, we, L), j), {
2528
+ var A;
2529
+ j = /* @__PURE__ */ h.createElement("style", _r({}, (A = {}, _(A, St, I), _(A, we, L), A), {
2530
2530
  dangerouslySetInnerHTML: {
2531
2531
  __html: T
2532
2532
  }
2533
2533
  }));
2534
2534
  }
2535
- return /* @__PURE__ */ h.createElement(h.Fragment, null, A, M);
2535
+ return /* @__PURE__ */ h.createElement(h.Fragment, null, j, M);
2536
2536
  };
2537
2537
  }
2538
2538
  var Yu = function(t, r, n) {
@@ -2551,7 +2551,7 @@ var Yu = function(t, r, n) {
2551
2551
  }
2552
2552
  }), [u, c, y];
2553
2553
  }, Pi = "cssVar", Qu = function(t, r) {
2554
- var n = t.key, a = t.prefix, o = t.unitless, i = t.ignore, c = t.token, l = t.scope, s = l === void 0 ? "" : l, u = Ze(qt), d = u.cache.instanceId, f = u.container, y = c._tokenKey, p = [].concat(je(t.path), [n, s, y]), m = ua(Pi, p, function() {
2554
+ var n = t.key, a = t.prefix, o = t.unitless, i = t.ignore, c = t.token, l = t.scope, s = l === void 0 ? "" : l, u = Ze(qt), d = u.cache.instanceId, f = u.container, y = c._tokenKey, p = [].concat(Ae(t.path), [n, s, y]), m = ua(Pi, p, function() {
2555
2555
  var v = r(), g = fi(v, n, {
2556
2556
  prefix: a,
2557
2557
  unitless: o,
@@ -2586,8 +2586,8 @@ var Yu = function(t, r, n) {
2586
2586
  "data-rc-priority": "".concat(u)
2587
2587
  }, f = Or(o, c, i, d, s);
2588
2588
  return [u, i, f];
2589
- }, At;
2590
- At = {}, _(At, ki, Yu), _(At, di, Eu), _(At, Pi, Ju);
2589
+ }, jt;
2590
+ jt = {}, _(jt, ki, Yu), _(jt, di, Eu), _(jt, Pi, Ju);
2591
2591
  function dt(e) {
2592
2592
  return e.notSplit = !0, e;
2593
2593
  }
@@ -2607,7 +2607,7 @@ function Ti(e, t, r, n) {
2607
2607
  if (!t.length)
2608
2608
  return r;
2609
2609
  var a = Zu(t), o = a[0], i = a.slice(1), c;
2610
- return !e && typeof o == "number" ? c = [] : Array.isArray(e) ? c = je(e) : c = R({}, e), n && r === void 0 && i.length === 1 ? delete c[o][i[0]] : c[o] = Ti(c[o], i, r, n), c;
2610
+ return !e && typeof o == "number" ? c = [] : Array.isArray(e) ? c = Ae(e) : c = R({}, e), n && r === void 0 && i.length === 1 ? delete c[o][i[0]] : c[o] = Ti(c[o], i, r, n), c;
2611
2611
  }
2612
2612
  function rn(e, t, r) {
2613
2613
  var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
@@ -2632,7 +2632,7 @@ function rf() {
2632
2632
  l.add(s);
2633
2633
  var d = On(n, i);
2634
2634
  u ? n = rn(n, i, []) : (!d || U(d) !== "object") && (n = rn(n, i, ro(s))), tf(s).forEach(function(f) {
2635
- o([].concat(je(i), [f]), l);
2635
+ o([].concat(Ae(i), [f]), l);
2636
2636
  });
2637
2637
  }
2638
2638
  } else
@@ -2738,7 +2738,7 @@ function of(e) {
2738
2738
  }
2739
2739
  Object.assign({}, Vr.Modal);
2740
2740
  }
2741
- const _i = /* @__PURE__ */ Io(void 0), Ri = "internalMark", Ai = (e) => {
2741
+ const _i = /* @__PURE__ */ Io(void 0), Ri = "internalMark", ji = (e) => {
2742
2742
  const {
2743
2743
  locale: t = {},
2744
2744
  children: r,
@@ -2756,8 +2756,8 @@ const _i = /* @__PURE__ */ Io(void 0), Ri = "internalMark", Ai = (e) => {
2756
2756
  value: a
2757
2757
  }, r);
2758
2758
  };
2759
- process.env.NODE_ENV !== "production" && (Ai.displayName = "LocaleProvider");
2760
- const ji = {
2759
+ process.env.NODE_ENV !== "production" && (ji.displayName = "LocaleProvider");
2760
+ const Ai = {
2761
2761
  blue: "#1677FF",
2762
2762
  purple: "#722ED1",
2763
2763
  cyan: "#13C2C2",
@@ -2774,7 +2774,7 @@ const ji = {
2774
2774
  geekblue: "#2F54EB",
2775
2775
  gold: "#FAAD14",
2776
2776
  lime: "#A0D911"
2777
- }, Vt = Object.assign(Object.assign({}, ji), {
2777
+ }, Vt = Object.assign(Object.assign({}, Ai), {
2778
2778
  // Color
2779
2779
  colorPrimary: "#1677ff",
2780
2780
  colorSuccess: "#52c41a",
@@ -2829,7 +2829,7 @@ function nn(e, t) {
2829
2829
  return r[3] ? n[3] = r[3].includes("%") ? n[3] / 100 : n[3] : n[3] = 1, n;
2830
2830
  }
2831
2831
  const ao = (e, t, r) => r === 0 ? e : e / 100;
2832
- function jt(e, t) {
2832
+ function At(e, t) {
2833
2833
  const r = t || 255;
2834
2834
  return e > r ? r : e < 0 ? 0 : e;
2835
2835
  }
@@ -2848,7 +2848,7 @@ class Z {
2848
2848
  } else if (t instanceof Z)
2849
2849
  this.r = t.r, this.g = t.g, this.b = t.b, this.a = t.a, this._h = t._h, this._s = t._s, this._l = t._l, this._v = t._v;
2850
2850
  else if (r("rgb"))
2851
- this.r = jt(t.r), this.g = jt(t.g), this.b = jt(t.b), this.a = typeof t.a == "number" ? jt(t.a, 1) : 1;
2851
+ this.r = At(t.r), this.g = At(t.g), this.b = At(t.b), this.a = typeof t.a == "number" ? At(t.a, 1) : 1;
2852
2852
  else if (r("hsl"))
2853
2853
  this.fromHsl(t);
2854
2854
  else if (r("hsv"))
@@ -3050,7 +3050,7 @@ class Z {
3050
3050
  /** Return a new FastColor object with one channel changed */
3051
3051
  _sc(t, r, n) {
3052
3052
  const a = this.clone();
3053
- return a[t] = jt(r, n), a;
3053
+ return a[t] = At(r, n), a;
3054
3054
  }
3055
3055
  _c(t) {
3056
3056
  return new this.constructor(t);
@@ -3231,10 +3231,10 @@ var an = {
3231
3231
  _n.primary = _n[5];
3232
3232
  var Rn = ["#fff2e8", "#ffd8bf", "#ffbb96", "#ff9c6e", "#ff7a45", "#fa541c", "#d4380d", "#ad2102", "#871400", "#610b00"];
3233
3233
  Rn.primary = Rn[5];
3234
- var An = ["#fff7e6", "#ffe7ba", "#ffd591", "#ffc069", "#ffa940", "#fa8c16", "#d46b08", "#ad4e00", "#873800", "#612500"];
3235
- An.primary = An[5];
3236
- var jn = ["#fffbe6", "#fff1b8", "#ffe58f", "#ffd666", "#ffc53d", "#faad14", "#d48806", "#ad6800", "#874d00", "#613400"];
3234
+ var jn = ["#fff7e6", "#ffe7ba", "#ffd591", "#ffc069", "#ffa940", "#fa8c16", "#d46b08", "#ad4e00", "#873800", "#612500"];
3237
3235
  jn.primary = jn[5];
3236
+ var An = ["#fffbe6", "#fff1b8", "#ffe58f", "#ffd666", "#ffc53d", "#faad14", "#d48806", "#ad6800", "#874d00", "#613400"];
3237
+ An.primary = An[5];
3238
3238
  var Mn = ["#feffe6", "#ffffb8", "#fffb8f", "#fff566", "#ffec3d", "#fadb14", "#d4b106", "#ad8b00", "#876800", "#614700"];
3239
3239
  Mn.primary = Mn[5];
3240
3240
  var Nn = ["#fcffe6", "#f4ffb8", "#eaff8f", "#d3f261", "#bae637", "#a0d911", "#7cb305", "#5b8c00", "#3f6600", "#254000"];
@@ -3256,8 +3256,8 @@ Bn.primary = Bn[5];
3256
3256
  var on = {
3257
3257
  red: _n,
3258
3258
  volcano: Rn,
3259
- orange: An,
3260
- gold: jn,
3259
+ orange: jn,
3260
+ gold: An,
3261
3261
  yellow: Mn,
3262
3262
  lime: Nn,
3263
3263
  green: Ln,
@@ -3488,7 +3488,7 @@ const xe = (e, t) => new Z(e).setA(t).toRgbString(), Mt = (e, t) => new Z(e).dar
3488
3488
  };
3489
3489
  function Sf(e) {
3490
3490
  an.pink = an.magenta, on.pink = on.magenta;
3491
- const t = Object.keys(ji).map((r) => {
3491
+ const t = Object.keys(Ai).map((r) => {
3492
3492
  const n = e[r] === an[r] ? on[r] : Rr(e[r]);
3493
3493
  return Array.from({
3494
3494
  length: 10
@@ -3631,7 +3631,7 @@ var Rf = /* @__PURE__ */ function(e) {
3631
3631
  }) && (l = !1), this.result = this.result.replace(_f, l ? "px" : ""), typeof this.lowPriority < "u" ? "calc(".concat(this.result, ")") : this.result;
3632
3632
  }
3633
3633
  }]), r;
3634
- }(Di), Af = /* @__PURE__ */ function(e) {
3634
+ }(Di), jf = /* @__PURE__ */ function(e) {
3635
3635
  Dr(r, e);
3636
3636
  var t = Fr(r);
3637
3637
  function r(n) {
@@ -3664,8 +3664,8 @@ var Rf = /* @__PURE__ */ function(e) {
3664
3664
  return this.result;
3665
3665
  }
3666
3666
  }]), r;
3667
- }(Di), jf = function(t, r) {
3668
- var n = t === "css" ? Rf : Af;
3667
+ }(Di), Af = function(t, r) {
3668
+ var n = t === "css" ? Rf : jf;
3669
3669
  return function(a) {
3670
3670
  return new n(a, r);
3671
3671
  };
@@ -3826,7 +3826,7 @@ function Nf() {
3826
3826
  }
3827
3827
  }
3828
3828
  }
3829
- var k = i, S = o, P = e, $ = l, T = r, I = f, L = d, M = t, A = a, j = n, V = s, G = u, H = !1, X = !1;
3829
+ var k = i, S = o, P = e, $ = l, T = r, I = f, L = d, M = t, j = a, A = n, V = s, G = u, H = !1, X = !1;
3830
3830
  function K(O) {
3831
3831
  return H || (H = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
3832
3832
  }
@@ -3869,7 +3869,7 @@ function Nf() {
3869
3869
  function Ue(O) {
3870
3870
  return C(O) === u;
3871
3871
  }
3872
- B.ContextConsumer = k, B.ContextProvider = S, B.Element = P, B.ForwardRef = $, B.Fragment = T, B.Lazy = I, B.Memo = L, B.Portal = M, B.Profiler = A, B.StrictMode = j, B.Suspense = V, B.SuspenseList = G, B.isAsyncMode = K, B.isConcurrentMode = Y, B.isContextConsumer = q, B.isContextProvider = W, B.isElement = ee, B.isForwardRef = ve, B.isFragment = Pe, B.isLazy = de, B.isMemo = Q, B.isPortal = J, B.isProfiler = he, B.isStrictMode = Ne, B.isSuspense = Ce, B.isSuspenseList = Ue, B.isValidElementType = w, B.typeOf = C;
3872
+ B.ContextConsumer = k, B.ContextProvider = S, B.Element = P, B.ForwardRef = $, B.Fragment = T, B.Lazy = I, B.Memo = L, B.Portal = M, B.Profiler = j, B.StrictMode = A, B.Suspense = V, B.SuspenseList = G, B.isAsyncMode = K, B.isConcurrentMode = Y, B.isContextConsumer = q, B.isContextProvider = W, B.isElement = ee, B.isForwardRef = ve, B.isFragment = Pe, B.isLazy = de, B.isMemo = Q, B.isPortal = J, B.isProfiler = he, B.isStrictMode = Ne, B.isSuspense = Ce, B.isSuspenseList = Ue, B.isValidElementType = w, B.typeOf = C;
3873
3873
  }()), B;
3874
3874
  }
3875
3875
  var mo;
@@ -4073,8 +4073,8 @@ function Qf(e) {
4073
4073
  prefixToken: g
4074
4074
  }), k = u(f, y, p, C), S = s(v, p, C);
4075
4075
  return function(P) {
4076
- var $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : P, T = k(P, $), I = N(T, 2), L = I[1], M = S($), A = N(M, 2), j = A[0], V = A[1];
4077
- return [j, L, V];
4076
+ var $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : P, T = k(P, $), I = N(T, 2), L = I[1], M = S($), j = N(M, 2), A = j[0], V = j[1];
4077
+ return [A, L, V];
4078
4078
  };
4079
4079
  }
4080
4080
  function s(f, y, p) {
@@ -4089,12 +4089,12 @@ function Qf(e) {
4089
4089
  token: L,
4090
4090
  scope: P
4091
4091
  }, function() {
4092
- var M = go(f, L, y), A = po(f, L, M, {
4092
+ var M = go(f, L, y), j = po(f, L, M, {
4093
4093
  deprecatedTokens: p == null ? void 0 : p.deprecatedTokens
4094
4094
  });
4095
- return Object.keys(M).forEach(function(j) {
4096
- A[b(j)] = A[j], delete A[j];
4097
- }), A;
4095
+ return Object.keys(M).forEach(function(A) {
4096
+ j[b(A)] = j[A], delete j[A];
4097
+ }), j;
4098
4098
  }), null;
4099
4099
  }, C = function(S) {
4100
4100
  var P = n(), $ = P.cssVar;
@@ -4113,11 +4113,11 @@ function Qf(e) {
4113
4113
  name: "antd"
4114
4114
  };
4115
4115
  return function(C) {
4116
- var k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : C, S = n(), P = S.theme, $ = S.realToken, T = S.hashId, I = S.token, L = S.cssVar, M = a(), A = M.rootPrefixCls, j = M.iconPrefixCls, V = r(), G = L ? "css" : "js", H = qf(function() {
4116
+ var k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : C, S = n(), P = S.theme, $ = S.realToken, T = S.hashId, I = S.token, L = S.cssVar, M = a(), j = M.rootPrefixCls, A = M.iconPrefixCls, V = r(), G = L ? "css" : "js", H = qf(function() {
4117
4117
  var ee = /* @__PURE__ */ new Set();
4118
4118
  return L && Object.keys(m.unitless || {}).forEach(function(ve) {
4119
4119
  ee.add(yr(ve, L.prefix)), ee.add(yr(ve, uo(b, L.prefix)));
4120
- }), jf(G, ee);
4120
+ }), Af(G, ee);
4121
4121
  }, [G, b, L == null ? void 0 : L.prefix]), X = Gf(G), K = X.max, Y = X.min, q = {
4122
4122
  theme: P,
4123
4123
  token: I,
@@ -4132,18 +4132,18 @@ function Qf(e) {
4132
4132
  };
4133
4133
  typeof o == "function" && $n(R(R({}, q), {}, {
4134
4134
  clientOnly: !1,
4135
- path: ["Shared", A]
4135
+ path: ["Shared", j]
4136
4136
  }), function() {
4137
4137
  return o(I, {
4138
4138
  prefix: {
4139
- rootPrefixCls: A,
4140
- iconPrefixCls: j
4139
+ rootPrefixCls: j,
4140
+ iconPrefixCls: A
4141
4141
  },
4142
4142
  csp: V
4143
4143
  });
4144
4144
  });
4145
4145
  var W = $n(R(R({}, q), {}, {
4146
- path: [x, C, j]
4146
+ path: [x, C, A]
4147
4147
  }), function() {
4148
4148
  if (m.injectStyle === !1)
4149
4149
  return [];
@@ -4156,8 +4156,8 @@ function Qf(e) {
4156
4156
  var he = Vi(ve, {
4157
4157
  componentCls: Q,
4158
4158
  prefixCls: C,
4159
- iconCls: ".".concat(j),
4160
- antCls: ".".concat(A),
4159
+ iconCls: ".".concat(A),
4160
+ antCls: ".".concat(j),
4161
4161
  calc: H,
4162
4162
  // @ts-ignore
4163
4163
  max: K,
@@ -4166,8 +4166,8 @@ function Qf(e) {
4166
4166
  }, L ? de : J), Ne = y(he, {
4167
4167
  hashId: T,
4168
4168
  prefixCls: C,
4169
- rootPrefixCls: A,
4170
- iconPrefixCls: j
4169
+ rootPrefixCls: j,
4170
+ iconPrefixCls: A
4171
4171
  });
4172
4172
  Pe(b, J);
4173
4173
  var Ce = typeof i == "function" ? i(he, C, k, m.resetFont) : null;
@@ -4749,7 +4749,7 @@ var To = 0, Wr = /* @__PURE__ */ new Map();
4749
4749
  function os(e) {
4750
4750
  Wr.delete(e);
4751
4751
  }
4752
- var Ar = function(t) {
4752
+ var jr = function(t) {
4753
4753
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
4754
4754
  To += 1;
4755
4755
  var n = To;
@@ -4765,22 +4765,22 @@ var Ar = function(t) {
4765
4765
  }
4766
4766
  return a(r), n;
4767
4767
  };
4768
- Ar.cancel = function(e) {
4768
+ jr.cancel = function(e) {
4769
4769
  var t = Wr.get(e);
4770
4770
  return os(e), as(t);
4771
4771
  };
4772
- process.env.NODE_ENV !== "production" && (Ar.ids = function() {
4772
+ process.env.NODE_ENV !== "production" && (jr.ids = function() {
4773
4773
  return Wr;
4774
4774
  });
4775
4775
  const xd = function() {
4776
4776
  var e = h.useRef(null);
4777
4777
  function t() {
4778
- Ar.cancel(e.current);
4778
+ jr.cancel(e.current);
4779
4779
  }
4780
4780
  function r(n) {
4781
4781
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
4782
4782
  t();
4783
- var o = Ar(function() {
4783
+ var o = jr(function() {
4784
4784
  a <= 1 ? n({
4785
4785
  isCanceled: function() {
4786
4786
  return o !== e.current;
@@ -4822,7 +4822,7 @@ const wd = function(e, t, r) {
4822
4822
  }, []), [d, o];
4823
4823
  };
4824
4824
  function kd(e, t, r, n) {
4825
- var a = n.motionEnter, o = a === void 0 ? !0 : a, i = n.motionAppear, c = i === void 0 ? !0 : i, l = n.motionLeave, s = l === void 0 ? !0 : l, u = n.motionDeadline, d = n.motionLeaveImmediately, f = n.onAppearPrepare, y = n.onEnterPrepare, p = n.onLeavePrepare, m = n.onAppearStart, v = n.onEnterStart, g = n.onLeaveStart, b = n.onAppearActive, x = n.onEnterActive, w = n.onLeaveActive, C = n.onAppearEnd, k = n.onEnterEnd, S = n.onLeaveEnd, P = n.onVisibleChanged, $ = Xn(), T = N($, 2), I = T[0], L = T[1], M = pd(Ge), A = N(M, 2), j = A[0], V = A[1], G = Xn(null), H = N(G, 2), X = H[0], K = H[1], Y = j(), q = Ke(!1), W = Ke(null);
4825
+ var a = n.motionEnter, o = a === void 0 ? !0 : a, i = n.motionAppear, c = i === void 0 ? !0 : i, l = n.motionLeave, s = l === void 0 ? !0 : l, u = n.motionDeadline, d = n.motionLeaveImmediately, f = n.onAppearPrepare, y = n.onEnterPrepare, p = n.onLeavePrepare, m = n.onAppearStart, v = n.onEnterStart, g = n.onLeaveStart, b = n.onAppearActive, x = n.onEnterActive, w = n.onLeaveActive, C = n.onAppearEnd, k = n.onEnterEnd, S = n.onLeaveEnd, P = n.onVisibleChanged, $ = Xn(), T = N($, 2), I = T[0], L = T[1], M = pd(Ge), j = N(M, 2), A = j[0], V = j[1], G = Xn(null), H = N(G, 2), X = H[0], K = H[1], Y = A(), q = Ke(!1), W = Ke(null);
4826
4826
  function ee() {
4827
4827
  return r();
4828
4828
  }
@@ -4831,7 +4831,7 @@ function kd(e, t, r, n) {
4831
4831
  V(Ge), K(null, !0);
4832
4832
  }
4833
4833
  var de = Gn(function(ue) {
4834
- var ae = j();
4834
+ var ae = A();
4835
4835
  if (ae !== Ge) {
4836
4836
  var be = ee();
4837
4837
  if (!(ue && !ue.deadline && ue.target !== be)) {
@@ -4917,25 +4917,25 @@ function Pd(e) {
4917
4917
  T && (I.current = !0);
4918
4918
  var L = h.useCallback(function(H) {
4919
4919
  b.current = H, zf(o, H);
4920
- }, [o]), M, A = R(R({}, p), {}, {
4920
+ }, [o]), M, j = R(R({}, p), {}, {
4921
4921
  visible: c
4922
4922
  });
4923
4923
  if (!d)
4924
4924
  M = null;
4925
4925
  else if (S === Ge)
4926
- T ? M = d(R({}, A), L) : !s && I.current && y ? M = d(R(R({}, A), {}, {
4926
+ T ? M = d(R({}, j), L) : !s && I.current && y ? M = d(R(R({}, j), {}, {
4927
4927
  className: y
4928
- }), L) : u || !s && !y ? M = d(R(R({}, A), {}, {
4928
+ }), L) : u || !s && !y ? M = d(R(R({}, j), {}, {
4929
4929
  style: {
4930
4930
  display: "none"
4931
4931
  }
4932
4932
  }), L) : M = null;
4933
4933
  else {
4934
- var j;
4935
- P === Ee ? j = "prepare" : ss(P) ? j = "active" : P === mt && (j = "start");
4936
- var V = Po(f, "".concat(S, "-").concat(j));
4937
- M = d(R(R({}, A), {}, {
4938
- className: bt(Po(f, S), _(_({}, V, V && j), f, typeof f == "string")),
4934
+ var A;
4935
+ P === Ee ? A = "prepare" : ss(P) ? A = "active" : P === mt && (A = "start");
4936
+ var V = Po(f, "".concat(S, "-").concat(A));
4937
+ M = d(R(R({}, j), {}, {
4938
+ className: bt(Po(f, S), _(_({}, V, V && A), f, typeof f == "string")),
4939
4939
  style: $
4940
4940
  }), L);
4941
4941
  }
@@ -5006,8 +5006,8 @@ function Od() {
5006
5006
  });
5007
5007
  }), r;
5008
5008
  }
5009
- var _d = ["component", "children", "onVisibleChanged", "onAllRemoved"], Rd = ["status"], Ad = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
5010
- function jd(e) {
5009
+ var _d = ["component", "children", "onVisibleChanged", "onAllRemoved"], Rd = ["status"], jd = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
5010
+ function Ad(e) {
5011
5011
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Td, r = /* @__PURE__ */ function(n) {
5012
5012
  Dr(o, n);
5013
5013
  var a = Fr(o);
@@ -5043,7 +5043,7 @@ function jd(e) {
5043
5043
  var c = this, l = this.state.keyEntities, s = this.props, u = s.component, d = s.children, f = s.onVisibleChanged;
5044
5044
  s.onAllRemoved;
5045
5045
  var y = bn(s, _d), p = u || h.Fragment, m = {};
5046
- return Ad.forEach(function(v) {
5046
+ return jd.forEach(function(v) {
5047
5047
  m[v] = y[v], delete y[v];
5048
5048
  }), delete y.keys, /* @__PURE__ */ h.createElement(p, y, l.map(function(v, g) {
5049
5049
  var b = v.status, x = bn(v, Rd), w = b === qn || b === Yn;
@@ -5083,7 +5083,7 @@ function jd(e) {
5083
5083
  component: "div"
5084
5084
  }), r;
5085
5085
  }
5086
- jd(ts);
5086
+ Ad(ts);
5087
5087
  function Md(e) {
5088
5088
  const {
5089
5089
  children: t
@@ -5158,8 +5158,8 @@ const Hd = (e) => {
5158
5158
  collapse: I,
5159
5159
  typography: L,
5160
5160
  checkbox: M,
5161
- descriptions: A,
5162
- divider: j,
5161
+ descriptions: j,
5162
+ divider: A,
5163
5163
  drawer: V,
5164
5164
  skeleton: G,
5165
5165
  steps: H,
@@ -5246,8 +5246,8 @@ const Hd = (e) => {
5246
5246
  collapse: I,
5247
5247
  typography: L,
5248
5248
  checkbox: M,
5249
- descriptions: A,
5250
- divider: j,
5249
+ descriptions: j,
5250
+ divider: A,
5251
5251
  drawer: V,
5252
5252
  skeleton: G,
5253
5253
  steps: H,
@@ -5326,7 +5326,7 @@ const Hd = (e) => {
5326
5326
  }, [ft, i == null ? void 0 : i.validateMessages]);
5327
5327
  Object.keys(Ta).length > 0 && (ie = /* @__PURE__ */ h.createElement(af.Provider, {
5328
5328
  value: Ta
5329
- }, ie)), c && (ie = /* @__PURE__ */ h.createElement(Ai, {
5329
+ }, ie)), c && (ie = /* @__PURE__ */ h.createElement(ji, {
5330
5330
  locale: c,
5331
5331
  _ANT_MARK__: Ri
5332
5332
  }, ie)), ie = /* @__PURE__ */ h.createElement(lc.Provider, {
@@ -5655,12 +5655,12 @@ const $o = {
5655
5655
  }, {
5656
5656
  getPrefixCls: P,
5657
5657
  direction: $
5658
- } = Ze(Me), T = P("layout-sider", r), [I, L, M] = Wd(T), A = Ke(null);
5659
- A.current = (Q) => {
5658
+ } = Ze(Me), T = P("layout-sider", r), [I, L, M] = Wd(T), j = Ke(null);
5659
+ j.current = (Q) => {
5660
5660
  k(Q.matches), v == null || v(Q.matches), x !== Q.matches && S(Q.matches, "responsive");
5661
5661
  }, Je(() => {
5662
5662
  function Q(he) {
5663
- return A.current(he);
5663
+ return j.current(he);
5664
5664
  }
5665
5665
  let J;
5666
5666
  if (typeof window < "u") {
@@ -5688,10 +5688,10 @@ const $o = {
5688
5688
  const Q = Xd("ant-sider-");
5689
5689
  return b.addSider(Q), () => b.removeSider(Q);
5690
5690
  }, []);
5691
- const j = () => {
5691
+ const A = () => {
5692
5692
  S(!x, "clickTrigger");
5693
5693
  }, V = Jo(g, ["collapsed"]), G = x ? f : d, H = Gd(G) ? `${G}px` : String(G), X = parseFloat(String(f || 0)) === 0 ? /* @__PURE__ */ h.createElement("span", {
5694
- onClick: j,
5694
+ onClick: A,
5695
5695
  className: bt(`${T}-zero-width-trigger`, `${T}-zero-width-trigger-${u ? "right" : "left"}`),
5696
5696
  style: y
5697
5697
  }, a || /* @__PURE__ */ h.createElement(Ko, null)) : null, K = $ === "rtl" == !u, W = {
@@ -5699,7 +5699,7 @@ const $o = {
5699
5699
  collapsed: K ? /* @__PURE__ */ h.createElement(pn, null) : /* @__PURE__ */ h.createElement(vn, null)
5700
5700
  }[x ? "collapsed" : "expanded"], ee = a !== null ? X || /* @__PURE__ */ h.createElement("div", {
5701
5701
  className: `${T}-trigger`,
5702
- onClick: j,
5702
+ onClick: A,
5703
5703
  style: {
5704
5704
  width: H
5705
5705
  }
@@ -5787,7 +5787,7 @@ const ga = /* @__PURE__ */ h.forwardRef((e, t) => {
5787
5787
  }, m, i, c, w, C), S = h.useMemo(() => ({
5788
5788
  siderHook: {
5789
5789
  addSider: (P) => {
5790
- a(($) => [].concat(je($), [P]));
5790
+ a(($) => [].concat(Ae($), [P]));
5791
5791
  },
5792
5792
  removeSider: (P) => {
5793
5793
  a(($) => $.filter((T) => T !== P));
@@ -6139,7 +6139,7 @@ function gh() {
6139
6139
  }
6140
6140
  gh();
6141
6141
  /**
6142
- * react-router v7.5.3
6142
+ * react-router v7.6.0
6143
6143
  *
6144
6144
  * Copyright (c) Remix Software Inc.
6145
6145
  *
@@ -6278,11 +6278,11 @@ function Th(e, t) {
6278
6278
  function $h(e, t, r = !1) {
6279
6279
  let { routesMeta: n } = e, a = {}, o = "/", i = [];
6280
6280
  for (let c = 0; c < n.length; ++c) {
6281
- let l = n[c], s = c === n.length - 1, u = o === "/" ? t : t.slice(o.length) || "/", d = jr(
6281
+ let l = n[c], s = c === n.length - 1, u = o === "/" ? t : t.slice(o.length) || "/", d = Ar(
6282
6282
  { path: l.relativePath, caseSensitive: l.caseSensitive, end: s },
6283
6283
  u
6284
6284
  ), f = l.route;
6285
- if (!d && s && r && !n[n.length - 1].route.index && (d = jr(
6285
+ if (!d && s && r && !n[n.length - 1].route.index && (d = Ar(
6286
6286
  {
6287
6287
  path: l.relativePath,
6288
6288
  caseSensitive: l.caseSensitive,
@@ -6303,7 +6303,7 @@ function $h(e, t, r = !1) {
6303
6303
  }
6304
6304
  return i;
6305
6305
  }
6306
- function jr(e, t) {
6306
+ function Ar(e, t) {
6307
6307
  typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
6308
6308
  let [r, n] = Oh(
6309
6309
  e.path,
@@ -6364,12 +6364,12 @@ function Rh(e, t = "/") {
6364
6364
  hash: a = ""
6365
6365
  } = typeof e == "string" ? ya(e) : e;
6366
6366
  return {
6367
- pathname: r ? r.startsWith("/") ? r : Ah(r, t) : t,
6367
+ pathname: r ? r.startsWith("/") ? r : jh(r, t) : t,
6368
6368
  search: Nh(n),
6369
6369
  hash: Lh(a)
6370
6370
  };
6371
6371
  }
6372
- function Ah(e, t) {
6372
+ function jh(e, t) {
6373
6373
  let r = t.replace(/\/+$/, "").split("/");
6374
6374
  return e.split("/").forEach((a) => {
6375
6375
  a === ".." ? r.length > 1 && r.pop() : a !== "." && r.push(a);
@@ -6380,13 +6380,13 @@ function fn(e, t, r, n) {
6380
6380
  n
6381
6381
  )}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
6382
6382
  }
6383
- function jh(e) {
6383
+ function Ah(e) {
6384
6384
  return e.filter(
6385
6385
  (t, r) => r === 0 || t.route.path && t.route.path.length > 0
6386
6386
  );
6387
6387
  }
6388
6388
  function ws(e) {
6389
- let t = jh(e);
6389
+ let t = Ah(e);
6390
6390
  return t.map(
6391
6391
  (r, n) => n === t.length - 1 ? r.pathname : r.pathnameBase
6392
6392
  );
@@ -6906,7 +6906,7 @@ async function dm(e, t, r) {
6906
6906
  )
6907
6907
  );
6908
6908
  }
6909
- function Ao(e, t, r, n, a, o) {
6909
+ function jo(e, t, r, n, a, o) {
6910
6910
  let i = (l, s) => r[s] ? l.route.id !== r[s].route.id : !0, c = (l, s) => {
6911
6911
  var u;
6912
6912
  return (
@@ -6968,6 +6968,7 @@ function vm(e, t) {
6968
6968
  return r.has(o) || (r.add(o), n.push({ key: o, link: a })), n;
6969
6969
  }, []);
6970
6970
  }
6971
+ Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
6971
6972
  var gm = /* @__PURE__ */ new Set([100, 101, 204, 205]);
6972
6973
  function ym(e, t) {
6973
6974
  let r = typeof e == "string" ? new URL(
@@ -6978,7 +6979,7 @@ function ym(e, t) {
6978
6979
  ) : e;
6979
6980
  return r.pathname === "/" ? r.pathname = "_root.data" : t && et(r.pathname, t) === "/" ? r.pathname = `${t.replace(/\/$/, "")}/_root.data` : r.pathname = `${r.pathname.replace(/\/$/, "")}.data`, r;
6980
6981
  }
6981
- function As() {
6982
+ function js() {
6982
6983
  let e = h.useContext($t);
6983
6984
  return Ea(
6984
6985
  e,
@@ -6994,7 +6995,7 @@ function bm() {
6994
6995
  }
6995
6996
  var wa = h.createContext(void 0);
6996
6997
  wa.displayName = "FrameworkContext";
6997
- function js() {
6998
+ function As() {
6998
6999
  let e = h.useContext(wa);
6999
7000
  return Ea(
7000
7001
  e,
@@ -7050,14 +7051,14 @@ function Sm({
7050
7051
  page: e,
7051
7052
  ...t
7052
7053
  }) {
7053
- let { router: r } = As(), n = h.useMemo(
7054
+ let { router: r } = js(), n = h.useMemo(
7054
7055
  () => Ss(r.routes, e, r.basename),
7055
7056
  [r.routes, e, r.basename]
7056
7057
  );
7057
7058
  return n ? /* @__PURE__ */ h.createElement(Em, { page: e, matches: n, ...t }) : null;
7058
7059
  }
7059
7060
  function Cm(e) {
7060
- let { manifest: t, routeModules: r } = js(), [n, a] = h.useState([]);
7061
+ let { manifest: t, routeModules: r } = As(), [n, a] = h.useState([]);
7061
7062
  return h.useEffect(() => {
7062
7063
  let o = !1;
7063
7064
  return dm(e, t, r).then(
@@ -7074,8 +7075,8 @@ function Em({
7074
7075
  matches: t,
7075
7076
  ...r
7076
7077
  }) {
7077
- let n = tt(), { manifest: a, routeModules: o } = js(), { basename: i } = As(), { loaderData: c, matches: l } = bm(), s = h.useMemo(
7078
- () => Ao(
7078
+ let n = tt(), { manifest: a, routeModules: o } = As(), { basename: i } = js(), { loaderData: c, matches: l } = bm(), s = h.useMemo(
7079
+ () => jo(
7079
7080
  e,
7080
7081
  t,
7081
7082
  l,
@@ -7085,7 +7086,7 @@ function Em({
7085
7086
  ),
7086
7087
  [e, t, l, a, n]
7087
7088
  ), u = h.useMemo(
7088
- () => Ao(
7089
+ () => jo(
7089
7090
  e,
7090
7091
  t,
7091
7092
  l,
@@ -7137,7 +7138,7 @@ function wm(...e) {
7137
7138
  }
7138
7139
  var Ms = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
7139
7140
  try {
7140
- Ms && (window.__reactRouterVersion = "7.5.3");
7141
+ Ms && (window.__reactRouterVersion = "7.6.0");
7141
7142
  } catch {
7142
7143
  }
7143
7144
  var Ns = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ls = h.forwardRef(
@@ -7213,7 +7214,7 @@ var km = h.forwardRef(
7213
7214
  }, u) {
7214
7215
  let d = Qt(i, { relative: s.relative }), f = tt(), y = h.useContext(Gr), { navigator: p, basename: m } = h.useContext(Ve), v = y != null && // Conditional usage is OK here because the usage of a data router is static
7215
7216
  // eslint-disable-next-line react-hooks/rules-of-hooks
7216
- jm(d) && c === !0, g = p.encodeLocation ? p.encodeLocation(d).pathname : d.pathname, b = f.pathname, x = y && y.navigation && y.navigation.location ? y.navigation.location.pathname : null;
7217
+ Am(d) && c === !0, g = p.encodeLocation ? p.encodeLocation(d).pathname : d.pathname, b = f.pathname, x = y && y.navigation && y.navigation.location ? y.navigation.location.pathname : null;
7217
7218
  r || (b = b.toLowerCase(), x = x ? x.toLowerCase() : null, g = g.toLowerCase()), x && m && (x = et(x, m) || x);
7218
7219
  const w = g !== "/" && g.endsWith("/") ? g.length - 1 : g.length;
7219
7220
  let C = b === g || !a && b.startsWith(g) && b.charAt(w) === "/", k = x != null && (x === g || !a && x.startsWith(g) && x.charAt(g.length) === "/"), S = {
@@ -7260,7 +7261,7 @@ var Pm = h.forwardRef(
7260
7261
  viewTransition: d,
7261
7262
  ...f
7262
7263
  }, y) => {
7263
- let p = Rm(), m = Am(c, { relative: s }), v = i.toLowerCase() === "get" ? "get" : "post", g = typeof c == "string" && Ns.test(c), b = (x) => {
7264
+ let p = Rm(), m = jm(c, { relative: s }), v = i.toLowerCase() === "get" ? "get" : "post", g = typeof c == "string" && Ns.test(c), b = (x) => {
7264
7265
  if (l && l(x), x.defaultPrevented) return;
7265
7266
  x.preventDefault();
7266
7267
  let w = x.nativeEvent.submitter, C = (w == null ? void 0 : w.getAttribute("formmethod")) || i;
@@ -7372,7 +7373,7 @@ function Rm() {
7372
7373
  [e, t, r]
7373
7374
  );
7374
7375
  }
7375
- function Am(e, { relative: t } = {}) {
7376
+ function jm(e, { relative: t } = {}) {
7376
7377
  let { basename: r } = h.useContext(Ve), n = h.useContext(We);
7377
7378
  le(n, "useFormAction must be used inside a RouteContext");
7378
7379
  let [a] = n.matches.slice(-1), o = { ...Qt(e || ".", { relative: t }) }, i = tt();
@@ -7387,7 +7388,7 @@ function Am(e, { relative: t } = {}) {
7387
7388
  }
7388
7389
  return (!e || e === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : De([r, o.pathname])), ta(o);
7389
7390
  }
7390
- function jm(e, t = {}) {
7391
+ function Am(e, t = {}) {
7391
7392
  let r = h.useContext(Ts);
7392
7393
  le(
7393
7394
  r != null,
@@ -7400,13 +7401,12 @@ function jm(e, t = {}) {
7400
7401
  if (!r.isTransitioning)
7401
7402
  return !1;
7402
7403
  let o = et(r.currentLocation.pathname, n) || r.currentLocation.pathname, i = et(r.nextLocation.pathname, n) || r.nextLocation.pathname;
7403
- return jr(a.pathname, i) != null || jr(a.pathname, o) != null;
7404
+ return Ar(a.pathname, i) != null || Ar(a.pathname, o) != null;
7404
7405
  }
7405
- new TextEncoder();
7406
7406
  [
7407
7407
  ...gm
7408
7408
  ];
7409
- function jo(...e) {
7409
+ function Ao(...e) {
7410
7410
  return e.filter(Boolean).join(" ");
7411
7411
  }
7412
7412
  const op = ({ children: e, menu: t }) => {
@@ -7446,7 +7446,7 @@ const op = ({ children: e, menu: t }) => {
7446
7446
  onClick: () => {
7447
7447
  d(m.href), l(!1), u(!0);
7448
7448
  },
7449
- className: jo(
7449
+ className: Ao(
7450
7450
  m.href === n ? "bg-white text-black hover:text-black" : "text-white hover:text-black",
7451
7451
  `py-2 rounded-md pr-2 pl-3 mt-2 text-sm leading-6 font-semibold relative z-10 ${c ? "mr-4" : "rounded-bl-full rounded-tl-full"} flex items-center gap-2`
7452
7452
  ),
@@ -7554,7 +7554,7 @@ const op = ({ children: e, menu: t }) => {
7554
7554
  onClick: () => {
7555
7555
  f(m.name), r(m.href);
7556
7556
  },
7557
- className: jo(
7557
+ className: Ao(
7558
7558
  m.href === p ? "bg-[#EEEEF0] text-black" : "text-gray-700 hover:bg-[#EEEEF0]",
7559
7559
  "group flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold items-center"
7560
7560
  ),
@@ -7580,7 +7580,7 @@ const op = ({ children: e, menu: t }) => {
7580
7580
  ] });
7581
7581
  };
7582
7582
  export {
7583
- Aa as B,
7583
+ ja as B,
7584
7584
  Dm as C,
7585
7585
  qm as D,
7586
7586
  Qm as F,
@@ -7603,5 +7603,5 @@ export {
7603
7603
  np as k,
7604
7604
  ap as l,
7605
7605
  op as m,
7606
- jl as t
7606
+ Al as t
7607
7607
  };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e, g as o, B as r, C as t, f as i, d as l, D as p, F as d, L as n, j as F, M as c, k as S, P as C, R as b, c as P, m as T, S as g, h as k, i as m, l as u, T as x, b as M, a as R, t as y } from "./chunks/Sidebar-Cd6KxHT6.js";
1
+ import { e, g as o, B as r, C as t, f as i, d as l, D as p, F as d, L as n, j as F, M as c, k as S, P as C, R as b, c as P, m as T, S as g, h as k, i as m, l as u, T as x, b as M, a as R, t as y } from "./chunks/Sidebar-QaBrSIFu.js";
2
2
  import { D as h, E as B, I as D, L, R as E, a as w, T as I } from "./chunks/Switch-D8Nh_AP-.js";
3
3
  import { C as v, P as G, R as q, S as z } from "./chunks/Checkbox-DMRMEXmZ.js";
4
4
  export {
package/dist/ui/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e, g as o, B as r, C as t, f as l, d as p, D as i, F as d, L as n, j as S, M as b, k as T, P as c, R as g, c as m, m as C, S as F, h as M, i as u, l as y, T as B, b as L, a as f, t as h } from "../chunks/Sidebar-Cd6KxHT6.js";
1
+ import { e, g as o, B as r, C as t, f as l, d as p, D as i, F as d, L as n, j as S, M as b, k as T, P as c, R as g, c as m, m as C, S as F, h as M, i as u, l as y, T as B, b as L, a as f, t as h } from "../chunks/Sidebar-QaBrSIFu.js";
2
2
  import { E as P, L as k, T as w } from "../chunks/Switch-D8Nh_AP-.js";
3
3
  export {
4
4
  e as Badge,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.1.6",
4
+ "version": "1.1.7",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "exports": {
@@ -90,7 +90,7 @@
90
90
  "react-datepicker": "^4.16.0",
91
91
  "react-hook-form": "^7.54.2",
92
92
  "react-number-format": "^5.4.3",
93
- "react-router-dom": "^7.5.3",
93
+ "react-router": "^7.6.0",
94
94
  "yup": "^1.6.1",
95
95
  "zustand": "^5.0.3"
96
96
  }