corp-chat-library-antd-react-socket 1.2.1 → 1.2.3

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.
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import { jsx as N, jsxs as Te } from "react/jsx-runtime";
2
2
  import * as F from "react";
3
- import ne, { useRef as ge, cloneElement as Xs, forwardRef as Yi, useState as Q, useImperativeHandle as Ys, useEffect as de, version as Qs, isValidElement as Js, useMemo as Ft, useContext as mt, createContext as en, useLayoutEffect as Zs, useCallback as Xe } from "react";
3
+ import ne, { useRef as he, cloneElement as Xs, forwardRef as Yi, useState as Q, useImperativeHandle as Ys, useEffect as de, version as Qs, isValidElement as Js, useMemo as Ft, useContext as mt, createContext as en, useLayoutEffect as Zs, useCallback as Xe } from "react";
4
4
  import { Badge as ec, Space as Qi, Popover as or, Button as Ze, Layout as zt, Upload as tc, Input as rc, Divider as nc, Empty as qr, FloatButton as ac, Modal as ic, Dropdown as oc } from "antd";
5
- import { SearchOutlined as sc, DragOutlined as ja, SettingOutlined as cc, BellOutlined as lc, DownloadOutlined as uc, LockOutlined as dc, EyeInvisibleOutlined as fc, PaperClipOutlined as gc, UploadOutlined as hc, SmileOutlined as mc, SendOutlined as vc, CalendarOutlined as pc, CheckOutlined as Va, LoadingOutlined as yc, ArrowDownOutlined as bc, FileFilled as Sc, FileTextFilled as _c, FileZipFilled as Cc, FileMarkdownFilled as xc, FilePptFilled as Ec, FileExcelFilled as wc, FileWordFilled as $c, FilePdfFilled as Oc, FileImageFilled as Fc, CloseOutlined as Tc, MessageOutlined as Pc } from "@ant-design/icons";
5
+ import { SearchOutlined as sc, DragOutlined as ja, SettingOutlined as cc, BellOutlined as lc, DownloadOutlined as uc, LockOutlined as dc, EyeInvisibleOutlined as fc, PaperClipOutlined as hc, UploadOutlined as gc, SmileOutlined as mc, SendOutlined as vc, CalendarOutlined as pc, CheckOutlined as Va, LoadingOutlined as yc, ArrowDownOutlined as bc, FileFilled as Sc, FileTextFilled as _c, FileZipFilled as Cc, FileMarkdownFilled as xc, FilePptFilled as Ec, FileExcelFilled as wc, FileWordFilled as $c, FilePdfFilled as Oc, FileImageFilled as Fc, CloseOutlined as Tc, MessageOutlined as Pc } from "@ant-design/icons";
6
6
  import Mc from "react-draggable";
7
7
  import La from "react-dom";
8
8
  import Rc from "emoji-picker-react";
9
9
  import { io as Ac } from "socket.io-client";
10
10
  import Ic from "axios";
11
- import './index.css';const Nc = "_draggableWrapper_1bp6r_17", jc = "_activeChatItem_1bp6r_177", Vc = "_message_1bp6r_187", Lc = "_myMessage_1bp6r_197", Dc = "_otherMessage_1bp6r_205", kc = "_bubble_1bp6r_215", Hc = "_myMessageBubble_1bp6r_229", Bc = "_otherMessageBubble_1bp6r_255", zc = "_senderName_1bp6r_281", Wc = "_time_1bp6r_299", Uc = "_chat_header_1bp6r_315", qc = "_localMessage_1bp6r_349", Gc = "_sending_1bp6r_357", Kc = "_chatcontentLayout_1bp6r_411", Xc = "_chat_content_1bp6r_423", Yc = "_textArea_1bp6r_467", Qc = "_chatItem_1bp6r_503", Jc = "_chat_body_1bp6r_533", Zc = "_antd_empty_1bp6r_561", el = "_chat_inputs_1bp6r_577", tl = "_files_container_1bp6r_615", rl = "_file_1bp6r_615", nl = "_file_circle_1bp6r_645", al = "_self_1bp6r_661", il = "_href_label_1bp6r_667", G = {
11
+ import './index.css';const Nc = "_draggableWrapper_1j8hr_17", jc = "_activeChatItem_1j8hr_177", Vc = "_message_1j8hr_187", Lc = "_myMessage_1j8hr_197", Dc = "_otherMessage_1j8hr_205", kc = "_bubble_1j8hr_215", Hc = "_myMessageBubble_1j8hr_229", Bc = "_otherMessageBubble_1j8hr_255", zc = "_senderName_1j8hr_281", Wc = "_time_1j8hr_299", Uc = "_chat_header_1j8hr_315", qc = "_localMessage_1j8hr_349", Gc = "_sending_1j8hr_357", Kc = "_chatcontentLayout_1j8hr_419", Xc = "_chat_content_1j8hr_431", Yc = "_textArea_1j8hr_475", Qc = "_chatItem_1j8hr_511", Jc = "_chat_body_1j8hr_541", Zc = "_antd_empty_1j8hr_569", el = "_chat_inputs_1j8hr_585", tl = "_files_container_1j8hr_623", rl = "_file_1j8hr_623", nl = "_file_circle_1j8hr_653", al = "_self_1j8hr_669", il = "_href_label_1j8hr_675", G = {
12
12
  draggableWrapper: Nc,
13
- "chat-modal__title": "_chat-modal__title_1bp6r_33",
14
- "chat-input__footer": "_chat-input__footer_1bp6r_57",
15
- "sidebar-layout": "_sidebar-layout_1bp6r_83",
16
- "chat-list": "_chat-list_1bp6r_113",
17
- "last-message": "_last-message_1bp6r_153",
13
+ "chat-modal__title": "_chat-modal__title_1j8hr_33",
14
+ "chat-input__footer": "_chat-input__footer_1j8hr_57",
15
+ "sidebar-layout": "_sidebar-layout_1j8hr_83",
16
+ "chat-list": "_chat-list_1j8hr_113",
17
+ "last-message": "_last-message_1j8hr_153",
18
18
  activeChatItem: jc,
19
19
  message: Vc,
20
20
  myMessage: Lc,
@@ -27,9 +27,9 @@ import './index.css';const Nc = "_draggableWrapper_1bp6r_17", jc = "_activeChatI
27
27
  chat_header: Uc,
28
28
  localMessage: qc,
29
29
  sending: Gc,
30
- "notification-badge": "_notification-badge_1bp6r_369",
31
- "chat-layout": "_chat-layout_1bp6r_389",
32
- "chat-content": "_chat-content_1bp6r_401",
30
+ "notification-badge": "_notification-badge_1j8hr_369",
31
+ "chat-layout": "_chat-layout_1j8hr_389",
32
+ "chat-content": "_chat-content_1j8hr_409",
33
33
  chatcontentLayout: Kc,
34
34
  chat_content: Xc,
35
35
  textArea: Yc,
@@ -37,7 +37,7 @@ import './index.css';const Nc = "_draggableWrapper_1bp6r_17", jc = "_activeChatI
37
37
  chat_body: Jc,
38
38
  antd_empty: Zc,
39
39
  chat_inputs: el,
40
- "chat-list__container": "_chat-list__container_1bp6r_595",
40
+ "chat-list__container": "_chat-list__container_1j8hr_603",
41
41
  files_container: tl,
42
42
  file: rl,
43
43
  file_circle: nl,
@@ -196,13 +196,13 @@ function dl(e, t) {
196
196
  }
197
197
  }
198
198
  var fl = /* @__PURE__ */ ne.forwardRef(function(e, t) {
199
- var r, n, a, i = e.inputElement, o = e.children, s = e.prefixCls, l = e.prefix, c = e.suffix, u = e.addonBefore, d = e.addonAfter, g = e.className, p = e.style, m = e.disabled, h = e.readOnly, f = e.focused, y = e.triggerFocus, v = e.allowClear, _ = e.value, O = e.handleReset, C = e.hidden, $ = e.classes, S = e.classNames, T = e.dataAttrs, M = e.styles, P = e.components, A = e.onClear, D = o ?? i, V = P?.affixWrapper || "span", b = P?.groupWrapper || "span", E = P?.wrapper || "span", w = P?.groupAddon || "span", R = ge(null), I = function(je) {
199
+ var r, n, a, i = e.inputElement, o = e.children, s = e.prefixCls, l = e.prefix, c = e.suffix, u = e.addonBefore, d = e.addonAfter, h = e.className, p = e.style, m = e.disabled, g = e.readOnly, f = e.focused, y = e.triggerFocus, v = e.allowClear, _ = e.value, O = e.handleReset, C = e.hidden, $ = e.classes, S = e.classNames, T = e.dataAttrs, M = e.styles, P = e.components, A = e.onClear, D = o ?? i, V = P?.affixWrapper || "span", b = P?.groupWrapper || "span", E = P?.wrapper || "span", w = P?.groupAddon || "span", R = he(null), I = function(je) {
200
200
  var Se;
201
201
  (Se = R.current) !== null && Se !== void 0 && Se.contains(je.target) && y?.();
202
202
  }, k = ul(e), L = /* @__PURE__ */ Xs(D, {
203
203
  value: _,
204
204
  className: Re((r = D.props) === null || r === void 0 ? void 0 : r.className, !k && S?.variant) || null
205
- }), H = ge(null);
205
+ }), H = he(null);
206
206
  if (ne.useImperativeHandle(t, function() {
207
207
  return {
208
208
  nativeElement: H.current || R.current
@@ -210,7 +210,7 @@ var fl = /* @__PURE__ */ ne.forwardRef(function(e, t) {
210
210
  }), k) {
211
211
  var B = null;
212
212
  if (v) {
213
- var W = !m && !h && _, U = "".concat(s, "-clear-icon"), ee = J(v) === "object" && v !== null && v !== void 0 && v.clearIcon ? v.clearIcon : "✖";
213
+ var W = !m && !g && _, U = "".concat(s, "-clear-icon"), ee = J(v) === "object" && v !== null && v !== void 0 && v.clearIcon ? v.clearIcon : "✖";
214
214
  B = /* @__PURE__ */ ne.createElement("button", {
215
215
  type: "button",
216
216
  tabIndex: -1,
@@ -223,7 +223,7 @@ var fl = /* @__PURE__ */ ne.forwardRef(function(e, t) {
223
223
  className: Re(U, x(x({}, "".concat(U, "-hidden"), !W), "".concat(U, "-has-suffix"), !!c))
224
224
  }, ee);
225
225
  }
226
- var ie = "".concat(s, "-affix-wrapper"), fe = Re(ie, x(x(x(x(x({}, "".concat(s, "-disabled"), m), "".concat(ie, "-disabled"), m), "".concat(ie, "-focused"), f), "".concat(ie, "-readonly"), h), "".concat(ie, "-input-with-clear-btn"), c && v && _), $?.affixWrapper, S?.affixWrapper, S?.variant), le = (c || v) && /* @__PURE__ */ ne.createElement("span", {
226
+ var ie = "".concat(s, "-affix-wrapper"), fe = Re(ie, x(x(x(x(x({}, "".concat(s, "-disabled"), m), "".concat(ie, "-disabled"), m), "".concat(ie, "-focused"), f), "".concat(ie, "-readonly"), g), "".concat(ie, "-input-with-clear-btn"), c && v && _), $?.affixWrapper, S?.affixWrapper, S?.variant), le = (c || v) && /* @__PURE__ */ ne.createElement("span", {
227
227
  className: Re("".concat(s, "-suffix"), S?.suffix),
228
228
  style: M?.suffix
229
229
  }, B, c);
@@ -252,7 +252,7 @@ var fl = /* @__PURE__ */ ne.forwardRef(function(e, t) {
252
252
  }, d)));
253
253
  }
254
254
  return /* @__PURE__ */ ne.cloneElement(L, {
255
- className: Re((n = L.props) === null || n === void 0 ? void 0 : n.className, g) || null,
255
+ className: Re((n = L.props) === null || n === void 0 ? void 0 : n.className, h) || null,
256
256
  style: j(j({}, (a = L.props) === null || a === void 0 ? void 0 : a.style), p),
257
257
  hidden: C
258
258
  });
@@ -262,7 +262,7 @@ function $n(e, t) {
262
262
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
263
263
  return n;
264
264
  }
265
- function gl(e) {
265
+ function hl(e) {
266
266
  if (Array.isArray(e)) return $n(e);
267
267
  }
268
268
  function eo(e) {
@@ -275,12 +275,12 @@ function va(e, t) {
275
275
  return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? $n(e, t) : void 0;
276
276
  }
277
277
  }
278
- function hl() {
278
+ function gl() {
279
279
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
280
280
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
281
281
  }
282
282
  function X(e) {
283
- return gl(e) || eo(e) || va(e) || hl();
283
+ return hl(e) || eo(e) || va(e) || gl();
284
284
  }
285
285
  function to(e) {
286
286
  if (Array.isArray(e)) return e;
@@ -377,7 +377,7 @@ function fn(e) {
377
377
  function pl(e, t) {
378
378
  var r = t || {}, n = r.defaultValue, a = r.value, i = r.onChange, o = r.postState, s = dr(function() {
379
379
  return fn(a) ? a : fn(n) ? typeof n == "function" ? n() : n : typeof e == "function" ? e() : e;
380
- }), l = K(s, 2), c = l[0], u = l[1], d = a !== void 0 ? a : c, g = o ? o(d) : d, p = ur(i), m = dr([d]), h = K(m, 2), f = h[0], y = h[1];
380
+ }), l = K(s, 2), c = l[0], u = l[1], d = a !== void 0 ? a : c, h = o ? o(d) : d, p = ur(i), m = dr([d]), g = K(m, 2), f = g[0], y = g[1];
381
381
  Wa(function() {
382
382
  var _ = f[0];
383
383
  c !== _ && p(c, _);
@@ -387,7 +387,7 @@ function pl(e, t) {
387
387
  var v = ur(function(_, O) {
388
388
  u(_, O), y([d], O);
389
389
  });
390
- return [g, v];
390
+ return [h, v];
391
391
  }
392
392
  function yl(e, t) {
393
393
  var r = Object.assign({}, e);
@@ -411,7 +411,7 @@ function Sl(e, t) {
411
411
  }, [e, t]);
412
412
  }
413
413
  var _l = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "onKeyUp", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"], Cl = /* @__PURE__ */ Yi(function(e, t) {
414
- var r = e.autoComplete, n = e.onChange, a = e.onFocus, i = e.onBlur, o = e.onPressEnter, s = e.onKeyDown, l = e.onKeyUp, c = e.prefixCls, u = c === void 0 ? "rc-input" : c, d = e.disabled, g = e.htmlSize, p = e.className, m = e.maxLength, h = e.suffix, f = e.showCount, y = e.count, v = e.type, _ = v === void 0 ? "text" : v, O = e.classes, C = e.classNames, $ = e.styles, S = e.onCompositionStart, T = e.onCompositionEnd, M = vt(e, _l), P = Q(!1), A = K(P, 2), D = A[0], V = A[1], b = ge(!1), E = ge(!1), w = ge(null), R = ge(null), I = function(re) {
414
+ var r = e.autoComplete, n = e.onChange, a = e.onFocus, i = e.onBlur, o = e.onPressEnter, s = e.onKeyDown, l = e.onKeyUp, c = e.prefixCls, u = c === void 0 ? "rc-input" : c, d = e.disabled, h = e.htmlSize, p = e.className, m = e.maxLength, g = e.suffix, f = e.showCount, y = e.count, v = e.type, _ = v === void 0 ? "text" : v, O = e.classes, C = e.classNames, $ = e.styles, S = e.onCompositionStart, T = e.onCompositionEnd, M = vt(e, _l), P = Q(!1), A = K(P, 2), D = A[0], V = A[1], b = he(!1), E = he(!1), w = he(null), R = he(null), I = function(re) {
415
415
  w.current && dl(w.current, re);
416
416
  }, k = pl(e.defaultValue, {
417
417
  value: e.value
@@ -508,7 +508,7 @@ var _l = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
508
508
  className: Re(u, x({}, "".concat(u, "-disabled"), d), C?.input),
509
509
  style: $?.input,
510
510
  ref: w,
511
- size: g,
511
+ size: h,
512
512
  type: _,
513
513
  onCompositionStart: function(nt) {
514
514
  b.current = !0, S?.(nt);
@@ -517,16 +517,16 @@ var _l = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
517
517
  }));
518
518
  }, Ee = function() {
519
519
  var re = Number(ue) > 0;
520
- if (h || le.show) {
520
+ if (g || le.show) {
521
521
  var be = le.showFormatter ? le.showFormatter({
522
522
  value: W,
523
523
  count: oe,
524
524
  maxLength: ue
525
525
  }) : "".concat(oe).concat(re ? " / ".concat(ue) : "");
526
526
  return /* @__PURE__ */ ne.createElement(ne.Fragment, null, le.show && /* @__PURE__ */ ne.createElement("span", {
527
- className: Re("".concat(u, "-show-count-suffix"), x({}, "".concat(u, "-show-count-has-suffix"), !!h), C?.count),
527
+ className: Re("".concat(u, "-show-count-suffix"), x({}, "".concat(u, "-show-count-has-suffix"), !!g), C?.count),
528
528
  style: j({}, $?.count)
529
- }, be), h);
529
+ }, be), g);
530
530
  }
531
531
  return null;
532
532
  };
@@ -544,14 +544,14 @@ var _l = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
544
544
  styles: $,
545
545
  ref: R
546
546
  }), xe());
547
- }), Or = { exports: {} }, he = {};
547
+ }), Or = { exports: {} }, ge = {};
548
548
  var Ua;
549
549
  function xl() {
550
- if (Ua) return he;
550
+ if (Ua) return ge;
551
551
  Ua = 1;
552
- var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), o = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m;
552
+ var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), o = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m;
553
553
  m = Symbol.for("react.module.reference");
554
- function h(f) {
554
+ function g(f) {
555
555
  if (typeof f == "object" && f !== null) {
556
556
  var y = f.$$typeof;
557
557
  switch (y) {
@@ -568,7 +568,7 @@ function xl() {
568
568
  case s:
569
569
  case o:
570
570
  case l:
571
- case g:
571
+ case h:
572
572
  case d:
573
573
  case i:
574
574
  return f;
@@ -581,46 +581,46 @@ function xl() {
581
581
  }
582
582
  }
583
583
  }
584
- return he.ContextConsumer = o, he.ContextProvider = i, he.Element = e, he.ForwardRef = l, he.Fragment = r, he.Lazy = g, he.Memo = d, he.Portal = t, he.Profiler = a, he.StrictMode = n, he.Suspense = c, he.SuspenseList = u, he.isAsyncMode = function() {
584
+ return ge.ContextConsumer = o, ge.ContextProvider = i, ge.Element = e, ge.ForwardRef = l, ge.Fragment = r, ge.Lazy = h, ge.Memo = d, ge.Portal = t, ge.Profiler = a, ge.StrictMode = n, ge.Suspense = c, ge.SuspenseList = u, ge.isAsyncMode = function() {
585
585
  return !1;
586
- }, he.isConcurrentMode = function() {
586
+ }, ge.isConcurrentMode = function() {
587
587
  return !1;
588
- }, he.isContextConsumer = function(f) {
589
- return h(f) === o;
590
- }, he.isContextProvider = function(f) {
591
- return h(f) === i;
592
- }, he.isElement = function(f) {
588
+ }, ge.isContextConsumer = function(f) {
589
+ return g(f) === o;
590
+ }, ge.isContextProvider = function(f) {
591
+ return g(f) === i;
592
+ }, ge.isElement = function(f) {
593
593
  return typeof f == "object" && f !== null && f.$$typeof === e;
594
- }, he.isForwardRef = function(f) {
595
- return h(f) === l;
596
- }, he.isFragment = function(f) {
597
- return h(f) === r;
598
- }, he.isLazy = function(f) {
599
- return h(f) === g;
600
- }, he.isMemo = function(f) {
601
- return h(f) === d;
602
- }, he.isPortal = function(f) {
603
- return h(f) === t;
604
- }, he.isProfiler = function(f) {
605
- return h(f) === a;
606
- }, he.isStrictMode = function(f) {
607
- return h(f) === n;
608
- }, he.isSuspense = function(f) {
609
- return h(f) === c;
610
- }, he.isSuspenseList = function(f) {
611
- return h(f) === u;
612
- }, he.isValidElementType = function(f) {
613
- return typeof f == "string" || typeof f == "function" || f === r || f === a || f === n || f === c || f === u || f === p || typeof f == "object" && f !== null && (f.$$typeof === g || f.$$typeof === d || f.$$typeof === i || f.$$typeof === o || f.$$typeof === l || f.$$typeof === m || f.getModuleId !== void 0);
614
- }, he.typeOf = h, he;
594
+ }, ge.isForwardRef = function(f) {
595
+ return g(f) === l;
596
+ }, ge.isFragment = function(f) {
597
+ return g(f) === r;
598
+ }, ge.isLazy = function(f) {
599
+ return g(f) === h;
600
+ }, ge.isMemo = function(f) {
601
+ return g(f) === d;
602
+ }, ge.isPortal = function(f) {
603
+ return g(f) === t;
604
+ }, ge.isProfiler = function(f) {
605
+ return g(f) === a;
606
+ }, ge.isStrictMode = function(f) {
607
+ return g(f) === n;
608
+ }, ge.isSuspense = function(f) {
609
+ return g(f) === c;
610
+ }, ge.isSuspenseList = function(f) {
611
+ return g(f) === u;
612
+ }, ge.isValidElementType = function(f) {
613
+ return typeof f == "string" || typeof f == "function" || f === r || f === a || f === n || f === c || f === u || f === p || typeof f == "object" && f !== null && (f.$$typeof === h || f.$$typeof === d || f.$$typeof === i || f.$$typeof === o || f.$$typeof === l || f.$$typeof === m || f.getModuleId !== void 0);
614
+ }, ge.typeOf = g, ge;
615
615
  }
616
616
  var me = {};
617
617
  var qa;
618
618
  function El() {
619
619
  return qa || (qa = 1, process.env.NODE_ENV !== "production" && (function() {
620
- var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), o = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = !1, h = !1, f = !1, y = !1, v = !1, _;
620
+ var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), o = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = !1, g = !1, f = !1, y = !1, v = !1, _;
621
621
  _ = Symbol.for("react.module.reference");
622
622
  function O(z) {
623
- return !!(typeof z == "string" || typeof z == "function" || z === r || z === a || v || z === n || z === c || z === u || y || z === p || m || h || f || typeof z == "object" && z !== null && (z.$$typeof === g || z.$$typeof === d || z.$$typeof === i || z.$$typeof === o || z.$$typeof === l || // This needs to include all possible module reference object
623
+ return !!(typeof z == "string" || typeof z == "function" || z === r || z === a || v || z === n || z === c || z === u || y || z === p || m || g || f || typeof z == "object" && z !== null && (z.$$typeof === h || z.$$typeof === d || z.$$typeof === i || z.$$typeof === o || z.$$typeof === l || // This needs to include all possible module reference object
624
624
  // types supported by any Flight configuration anywhere since
625
625
  // we don't know which Flight build this will end up being used
626
626
  // with.
@@ -645,7 +645,7 @@ function El() {
645
645
  case s:
646
646
  case o:
647
647
  case l:
648
- case g:
648
+ case h:
649
649
  case d:
650
650
  case i:
651
651
  return ke;
@@ -658,7 +658,7 @@ function El() {
658
658
  }
659
659
  }
660
660
  }
661
- var $ = o, S = i, T = e, M = l, P = r, A = g, D = d, V = t, b = a, E = n, w = c, R = u, I = !1, k = !1;
661
+ var $ = o, S = i, T = e, M = l, P = r, A = h, D = d, V = t, b = a, E = n, w = c, R = u, I = !1, k = !1;
662
662
  function L(z) {
663
663
  return I || (I = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
664
664
  }
@@ -681,7 +681,7 @@ function El() {
681
681
  return C(z) === r;
682
682
  }
683
683
  function fe(z) {
684
- return C(z) === g;
684
+ return C(z) === h;
685
685
  }
686
686
  function le(z) {
687
687
  return C(z) === d;
@@ -708,7 +708,7 @@ var Ga;
708
708
  function wl() {
709
709
  return Ga || (Ga = 1, process.env.NODE_ENV === "production" ? Or.exports = xl() : Or.exports = El()), Or.exports;
710
710
  }
711
- var gn = wl();
711
+ var hn = wl();
712
712
  function ao(e, t, r) {
713
713
  var n = F.useRef({});
714
714
  return (!("value" in n.current) || r(n.current.condition, t)) && (n.current.value = e(), n.current.condition = t), n.current.value;
@@ -739,8 +739,8 @@ var Tl = Number(Qs.split(".")[0]), oo = function(t, r) {
739
739
  return !1;
740
740
  if (so(t) && Tl >= 19)
741
741
  return !0;
742
- var a = gn.isMemo(t) ? t.type.type : t.type;
743
- return !(typeof a == "function" && !((r = a.prototype) !== null && r !== void 0 && r.render) && a.$$typeof !== gn.ForwardRef || typeof t == "function" && !((n = t.prototype) !== null && n !== void 0 && n.render) && t.$$typeof !== gn.ForwardRef);
742
+ var a = hn.isMemo(t) ? t.type.type : t.type;
743
+ return !(typeof a == "function" && !((r = a.prototype) !== null && r !== void 0 && r.render) && a.$$typeof !== hn.ForwardRef || typeof t == "function" && !((n = t.prototype) !== null && n !== void 0 && n.render) && t.$$typeof !== hn.ForwardRef);
744
744
  };
745
745
  function so(e) {
746
746
  return /* @__PURE__ */ Js(e) && !io(e);
@@ -763,9 +763,9 @@ function ze(e, t, r, n) {
763
763
  a = 0;
764
764
  }
765
765
  ze = function(o, s, l, c) {
766
- function u(d, g) {
766
+ function u(d, h) {
767
767
  ze(o, d, function(p) {
768
- return this._invoke(d, g, p);
768
+ return this._invoke(d, h, p);
769
769
  });
770
770
  }
771
771
  s ? a ? a(o, s, {
@@ -778,7 +778,7 @@ function ze(e, t, r, n) {
778
778
  }
779
779
  function pa() {
780
780
  var e, t, r = typeof Symbol == "function" ? Symbol : {}, n = r.iterator || "@@iterator", a = r.toStringTag || "@@toStringTag";
781
- function i(p, m, h, f) {
781
+ function i(p, m, g, f) {
782
782
  var y = m && m.prototype instanceof s ? m : s, v = Object.create(y.prototype);
783
783
  return ze(v, "_invoke", (function(_, O, C) {
784
784
  var $, S, T, M = 0, P = C || [], A = !1, D = {
@@ -823,7 +823,7 @@ function pa() {
823
823
  done: A
824
824
  };
825
825
  };
826
- })(p, h, f), !0), v;
826
+ })(p, g, f), !0), v;
827
827
  }
828
828
  var o = {};
829
829
  function s() {
@@ -836,7 +836,7 @@ function pa() {
836
836
  var u = [][n] ? t(t([][n]())) : (ze(t = {}, n, function() {
837
837
  return this;
838
838
  }), t), d = c.prototype = s.prototype = Object.create(u);
839
- function g(p) {
839
+ function h(p) {
840
840
  return Object.setPrototypeOf ? Object.setPrototypeOf(p, c) : (p.__proto__ = c, ze(p, a, "GeneratorFunction")), p.prototype = Object.create(d), p;
841
841
  }
842
842
  return l.prototype = c, ze(d, "constructor", c), ze(c, "constructor", l), l.displayName = "GeneratorFunction", ze(c, a, "GeneratorFunction"), ze(d), ze(d, a, "Generator"), ze(d, n, function() {
@@ -846,7 +846,7 @@ function pa() {
846
846
  }), (pa = function() {
847
847
  return {
848
848
  w: i,
849
- m: g
849
+ m: h
850
850
  };
851
851
  })();
852
852
  }
@@ -934,19 +934,19 @@ function et() {
934
934
  catch: function() {
935
935
  return c.v;
936
936
  },
937
- abrupt: function(d, g) {
938
- return l(c.a, a[d], g);
937
+ abrupt: function(d, h) {
938
+ return l(c.a, a[d], h);
939
939
  },
940
- delegateYield: function(d, g, p) {
941
- return s.resultName = g, l(c.d, Ka(d), p);
940
+ delegateYield: function(d, h, p) {
941
+ return s.resultName = h, l(c.d, Ka(d), p);
942
942
  },
943
943
  finish: function(d) {
944
944
  return l(c.f, d);
945
945
  }
946
- }, l = function(d, g, p) {
946
+ }, l = function(d, h, p) {
947
947
  c.p = s.prev, c.n = s.next;
948
948
  try {
949
- return d(g, p);
949
+ return d(h, p);
950
950
  } finally {
951
951
  s.next = c.n;
952
952
  }
@@ -969,8 +969,8 @@ function et() {
969
969
  return new co(l, c);
970
970
  },
971
971
  AsyncIterator: Gr,
972
- async: function(l, c, u, d, g) {
973
- return (n(c) ? lo : Al)(i(l), c, u, d, g);
972
+ async: function(l, c, u, d, h) {
973
+ return (n(c) ? lo : Al)(i(l), c, u, d, h);
974
974
  },
975
975
  keys: Il,
976
976
  values: Ka
@@ -1035,10 +1035,10 @@ function Yt(e, t) {
1035
1035
  writable: !1
1036
1036
  }), t && fr(e, t);
1037
1037
  }
1038
- function gr(e) {
1039
- return gr = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
1038
+ function hr(e) {
1039
+ return hr = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
1040
1040
  return t.__proto__ || Object.getPrototypeOf(t);
1041
- }, gr(e);
1041
+ }, hr(e);
1042
1042
  }
1043
1043
  function ya() {
1044
1044
  try {
@@ -1058,9 +1058,9 @@ function Nl(e, t) {
1058
1058
  function Qt(e) {
1059
1059
  var t = ya();
1060
1060
  return function() {
1061
- var r, n = gr(e);
1061
+ var r, n = hr(e);
1062
1062
  if (t) {
1063
- var a = gr(this).constructor;
1063
+ var a = hr(this).constructor;
1064
1064
  r = Reflect.construct(n, arguments, a);
1065
1065
  } else r = n.apply(this, arguments);
1066
1066
  return Nl(this, r);
@@ -1128,8 +1128,8 @@ function Tn(e, t) {
1128
1128
  }
1129
1129
  if (i && o && J(i) === "object" && J(o) === "object") {
1130
1130
  var d = Object.keys(i);
1131
- return d.length !== Object.keys(o).length ? !1 : d.every(function(g) {
1132
- return a(i[g], o[g], c);
1131
+ return d.length !== Object.keys(o).length ? !1 : d.every(function(h) {
1132
+ return a(i[h], o[h], c);
1133
1133
  });
1134
1134
  }
1135
1135
  return !1;
@@ -1255,7 +1255,7 @@ function An(e) {
1255
1255
  t.set(n, a);
1256
1256
  }
1257
1257
  function a() {
1258
- return Hl(n, arguments, gr(this).constructor);
1258
+ return Hl(n, arguments, hr(this).constructor);
1259
1259
  }
1260
1260
  return a.prototype = Object.create(n.prototype, {
1261
1261
  constructor: {
@@ -1267,9 +1267,9 @@ function An(e) {
1267
1267
  }), fr(a, n);
1268
1268
  }, An(e);
1269
1269
  }
1270
- var Bl = /%[sdj%]/g, go = function() {
1270
+ var Bl = /%[sdj%]/g, ho = function() {
1271
1271
  };
1272
- typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (go = function(t, r) {
1272
+ typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (ho = function(t, r) {
1273
1273
  typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && r.every(function(n) {
1274
1274
  return typeof n == "string";
1275
1275
  }) && console.warn(t, r);
@@ -1358,28 +1358,28 @@ var Ja = /* @__PURE__ */ (function(e) {
1358
1358
  })(/* @__PURE__ */ An(Error));
1359
1359
  function ql(e, t, r, n, a) {
1360
1360
  if (t.first) {
1361
- var i = new Promise(function(g, p) {
1361
+ var i = new Promise(function(h, p) {
1362
1362
  var m = function(y) {
1363
- return n(y), y.length ? p(new Ja(y, In(y))) : g(a);
1364
- }, h = Ul(e);
1365
- Qa(h, r, m);
1363
+ return n(y), y.length ? p(new Ja(y, In(y))) : h(a);
1364
+ }, g = Ul(e);
1365
+ Qa(g, r, m);
1366
1366
  });
1367
- return i.catch(function(g) {
1368
- return g;
1367
+ return i.catch(function(h) {
1368
+ return h;
1369
1369
  }), i;
1370
1370
  }
1371
- var o = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), l = s.length, c = 0, u = [], d = new Promise(function(g, p) {
1371
+ var o = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), l = s.length, c = 0, u = [], d = new Promise(function(h, p) {
1372
1372
  var m = function(f) {
1373
1373
  if (u.push.apply(u, f), c++, c === l)
1374
- return n(u), u.length ? p(new Ja(u, In(u))) : g(a);
1374
+ return n(u), u.length ? p(new Ja(u, In(u))) : h(a);
1375
1375
  };
1376
- s.length || (n(u), g(a)), s.forEach(function(h) {
1377
- var f = e[h];
1378
- o.indexOf(h) !== -1 ? Qa(f, r, m) : Wl(f, r, m);
1376
+ s.length || (n(u), h(a)), s.forEach(function(g) {
1377
+ var f = e[g];
1378
+ o.indexOf(g) !== -1 ? Qa(f, r, m) : Wl(f, r, m);
1379
1379
  });
1380
1380
  });
1381
- return d.catch(function(g) {
1382
- return g;
1381
+ return d.catch(function(h) {
1382
+ return h;
1383
1383
  }), d;
1384
1384
  }
1385
1385
  function Gl(e) {
@@ -1425,11 +1425,11 @@ var Nt = "enum", Xl = function(t, r, n, a, i) {
1425
1425
  }
1426
1426
  }
1427
1427
  }, Ql = function(t, r, n, a, i) {
1428
- var o = typeof t.len == "number", s = typeof t.min == "number", l = typeof t.max == "number", c = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, u = r, d = null, g = typeof r == "number", p = typeof r == "string", m = Array.isArray(r);
1429
- if (g ? d = "number" : p ? d = "string" : m && (d = "array"), !d)
1428
+ var o = typeof t.len == "number", s = typeof t.min == "number", l = typeof t.max == "number", c = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, u = r, d = null, h = typeof r == "number", p = typeof r == "string", m = Array.isArray(r);
1429
+ if (h ? d = "number" : p ? d = "string" : m && (d = "array"), !d)
1430
1430
  return !1;
1431
1431
  m && (u = r.length), p && (u = r.replace(c, "_").length), o ? u !== t.len && a.push(Ye(i.messages[d].len, t.fullField, t.len)) : s && !l && u < t.min ? a.push(Ye(i.messages[d].min, t.fullField, t.min)) : l && !s && u > t.max ? a.push(Ye(i.messages[d].max, t.fullField, t.max)) : s && l && (u < t.min || u > t.max) && a.push(Ye(i.messages[d].range, t.fullField, t.min, t.max));
1432
- }, ho = function(t, r, n, a, i, o) {
1432
+ }, go = function(t, r, n, a, i, o) {
1433
1433
  t.required && (!n.hasOwnProperty(t.field) || Ve(r, o || t.type)) && a.push(Ye(i.messages.required, t.fullField));
1434
1434
  }, Fr;
1435
1435
  const Jl = (function() {
@@ -1462,7 +1462,7 @@ const Jl = (function() {
1462
1462
  }, u.v6 = function(C) {
1463
1463
  return C && C.exact ? c : new RegExp("".concat(t(C)).concat(o).concat(t(C)), "g");
1464
1464
  };
1465
- var d = "(?:(?:[a-z]+:)?//)", g = "(?:\\S+(?::\\S*)?@)?", p = u.v4().source, m = u.v6().source, h = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", f = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", y = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", v = "(?::\\d{2,5})?", _ = '(?:[/?#][^\\s"]*)?', O = "(?:".concat(d, "|www\\.)").concat(g, "(?:localhost|").concat(p, "|").concat(m, "|").concat(h).concat(f).concat(y, ")").concat(v).concat(_);
1465
+ var d = "(?:(?:[a-z]+:)?//)", h = "(?:\\S+(?::\\S*)?@)?", p = u.v4().source, m = u.v6().source, g = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", f = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", y = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", v = "(?::\\d{2,5})?", _ = '(?:[/?#][^\\s"]*)?', O = "(?:".concat(d, "|www\\.)").concat(h, "(?:localhost|").concat(p, "|").concat(m, "|").concat(g).concat(f).concat(y, ")").concat(v).concat(_);
1466
1466
  return Fr = new RegExp("(?:^".concat(O, "$)"), "i"), Fr;
1467
1467
  });
1468
1468
  var ti = {
@@ -1515,7 +1515,7 @@ var ti = {
1515
1515
  }
1516
1516
  }, Zl = function(t, r, n, a, i) {
1517
1517
  if (t.required && r === void 0) {
1518
- ho(t, r, n, a, i);
1518
+ go(t, r, n, a, i);
1519
1519
  return;
1520
1520
  }
1521
1521
  var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], s = t.type;
@@ -1524,7 +1524,7 @@ var ti = {
1524
1524
  (/^\s+$/.test(r) || r === "") && a.push(Ye(i.messages.whitespace, t.fullField));
1525
1525
  };
1526
1526
  const ce = {
1527
- required: ho,
1527
+ required: go,
1528
1528
  whitespace: eu,
1529
1529
  type: Zl,
1530
1530
  range: Ql,
@@ -1622,7 +1622,7 @@ var tu = function(t, r, n, a, i) {
1622
1622
  ce.required(t, r, a, o, i), Ve(r, "string") || ce.pattern(t, r, a, o, i);
1623
1623
  }
1624
1624
  n(o);
1625
- }, gu = function(t, r, n, a, i) {
1625
+ }, hu = function(t, r, n, a, i) {
1626
1626
  var o = [], s = t.required || !t.required && a.hasOwnProperty(t.field);
1627
1627
  if (s) {
1628
1628
  if (Ve(r) && !t.required)
@@ -1630,7 +1630,7 @@ var tu = function(t, r, n, a, i) {
1630
1630
  ce.required(t, r, a, o, i), Ve(r) || ce.type(t, r, a, o, i);
1631
1631
  }
1632
1632
  n(o);
1633
- }, hu = function(t, r, n, a, i) {
1633
+ }, gu = function(t, r, n, a, i) {
1634
1634
  var o = [], s = Array.isArray(r) ? "array" : J(r);
1635
1635
  ce.required(t, r, a, o, i, s), n(o);
1636
1636
  }, mu = function(t, r, n, a, i) {
@@ -1641,7 +1641,7 @@ var tu = function(t, r, n, a, i) {
1641
1641
  ce.required(t, r, a, o, i, "string"), Ve(r, "string") || (ce.type(t, r, a, o, i), ce.range(t, r, a, o, i), ce.pattern(t, r, a, o, i), t.whitespace === !0 && ce.whitespace(t, r, a, o, i));
1642
1642
  }
1643
1643
  n(o);
1644
- }, hn = function(t, r, n, a, i) {
1644
+ }, gn = function(t, r, n, a, i) {
1645
1645
  var o = t.type, s = [], l = t.required || !t.required && a.hasOwnProperty(t.field);
1646
1646
  if (l) {
1647
1647
  if (Ve(r, o) && !t.required)
@@ -1655,7 +1655,7 @@ const sr = {
1655
1655
  method: lu,
1656
1656
  number: uu,
1657
1657
  boolean: nu,
1658
- regexp: gu,
1658
+ regexp: hu,
1659
1659
  integer: cu,
1660
1660
  float: su,
1661
1661
  array: ru,
@@ -1663,10 +1663,10 @@ const sr = {
1663
1663
  enum: ou,
1664
1664
  pattern: fu,
1665
1665
  date: au,
1666
- url: hn,
1667
- hex: hn,
1668
- email: hn,
1669
- required: hu,
1666
+ url: gn,
1667
+ hex: gn,
1668
+ email: gn,
1669
+ required: gu,
1670
1670
  any: tu
1671
1671
  };
1672
1672
  var br = /* @__PURE__ */ (function() {
@@ -1699,27 +1699,27 @@ var br = /* @__PURE__ */ (function() {
1699
1699
  if (typeof s == "function" && (l = s, s = {}), !this.rules || Object.keys(this.rules).length === 0)
1700
1700
  return l && l(null, o), Promise.resolve(o);
1701
1701
  function c(m) {
1702
- var h = [], f = {};
1702
+ var g = [], f = {};
1703
1703
  function y(_) {
1704
1704
  if (Array.isArray(_)) {
1705
1705
  var O;
1706
- h = (O = h).concat.apply(O, X(_));
1706
+ g = (O = g).concat.apply(O, X(_));
1707
1707
  } else
1708
- h.push(_);
1708
+ g.push(_);
1709
1709
  }
1710
1710
  for (var v = 0; v < m.length; v++)
1711
1711
  y(m[v]);
1712
- h.length ? (f = In(h), l(h, f)) : l(null, o);
1712
+ g.length ? (f = In(g), l(g, f)) : l(null, o);
1713
1713
  }
1714
1714
  if (s.messages) {
1715
1715
  var u = this.messages();
1716
1716
  u === Rn && (u = Mn()), ei(u, s.messages), s.messages = u;
1717
1717
  } else
1718
1718
  s.messages = this.messages();
1719
- var d = {}, g = s.keys || Object.keys(this.rules);
1720
- g.forEach(function(m) {
1721
- var h = n.rules[m], f = o[m];
1722
- h.forEach(function(y) {
1719
+ var d = {}, h = s.keys || Object.keys(this.rules);
1720
+ h.forEach(function(m) {
1721
+ var g = n.rules[m], f = o[m];
1722
+ g.forEach(function(y) {
1723
1723
  var v = y;
1724
1724
  typeof v.transform == "function" && (o === r && (o = j({}, o)), f = o[m] = v.transform(f), f != null && (v.type = v.type || (Array.isArray(f) ? "array" : J(f)))), typeof v == "function" ? v = {
1725
1725
  validator: v
@@ -1732,7 +1732,7 @@ var br = /* @__PURE__ */ (function() {
1732
1732
  });
1733
1733
  });
1734
1734
  var p = {};
1735
- return ql(d, s, function(m, h) {
1735
+ return ql(d, s, function(m, g) {
1736
1736
  var f = m.rule, y = (f.type === "object" || f.type === "array") && (J(f.fields) === "object" || J(f.defaultField) === "object");
1737
1737
  y = y && (f.required || !f.required && m.value), f.field = m.field;
1738
1738
  function v(S, T) {
@@ -1746,12 +1746,12 @@ var br = /* @__PURE__ */ (function() {
1746
1746
  !s.suppressWarning && T.length && e.warning("async-validator:", T), T.length && f.message !== void 0 && (T = [].concat(f.message));
1747
1747
  var M = T.map(Za(f, o));
1748
1748
  if (s.first && M.length)
1749
- return p[f.field] = 1, h(M);
1749
+ return p[f.field] = 1, g(M);
1750
1750
  if (!y)
1751
- h(M);
1751
+ g(M);
1752
1752
  else {
1753
1753
  if (f.required && !m.value)
1754
- return f.message !== void 0 ? M = [].concat(f.message).map(Za(f, o)) : s.error && (M = [s.error(f, Ye(s.messages.required, f.field))]), h(M);
1754
+ return f.message !== void 0 ? M = [].concat(f.message).map(Za(f, o)) : s.error && (M = [s.error(f, Ye(s.messages.required, f.field))]), g(M);
1755
1755
  var P = {};
1756
1756
  f.defaultField && Object.keys(m.value).map(function(V) {
1757
1757
  P[V] = f.defaultField;
@@ -1764,7 +1764,7 @@ var br = /* @__PURE__ */ (function() {
1764
1764
  var D = new e(A);
1765
1765
  D.messages(s.messages), m.rule.options && (m.rule.options.messages = s.messages, m.rule.options.error = s.error), D.validate(m.value, m.rule.options || s, function(V) {
1766
1766
  var b = [];
1767
- M && M.length && b.push.apply(b, X(M)), V && V.length && b.push.apply(b, X(V)), h(b.length ? b : null);
1767
+ M && M.length && b.push.apply(b, X(M)), V && V.length && b.push.apply(b, X(V)), g(b.length ? b : null);
1768
1768
  });
1769
1769
  }
1770
1770
  }
@@ -1813,7 +1813,7 @@ x(br, "register", function(t, r) {
1813
1813
  throw new Error("Cannot register a validator by type, validator is not a function");
1814
1814
  sr[t] = r;
1815
1815
  });
1816
- x(br, "warning", go);
1816
+ x(br, "warning", ho);
1817
1817
  x(br, "messages", Rn);
1818
1818
  x(br, "validators", sr);
1819
1819
  var Ge = "'${name}' is not a valid ${type}", mo = {
@@ -1866,7 +1866,7 @@ var Ge = "'${name}' is not a valid ${type}", mo = {
1866
1866
  function vu(e) {
1867
1867
  return to(e) || eo(e) || va(e) || ro();
1868
1868
  }
1869
- function ht(e, t) {
1869
+ function gt(e, t) {
1870
1870
  for (var r = e, n = 0; n < t.length; n += 1) {
1871
1871
  if (r == null)
1872
1872
  return;
@@ -1882,7 +1882,7 @@ function vo(e, t, r, n) {
1882
1882
  }
1883
1883
  function it(e, t, r) {
1884
1884
  var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
1885
- return t.length && n && r === void 0 && !ht(e, t.slice(0, -1)) ? e : vo(e, t, r, n);
1885
+ return t.length && n && r === void 0 && !gt(e, t.slice(0, -1)) ? e : vo(e, t, r, n);
1886
1886
  }
1887
1887
  function pu(e) {
1888
1888
  return J(e) === "object" && e !== null && Object.getPrototypeOf(e) === Object.prototype;
@@ -1897,13 +1897,13 @@ function Lt() {
1897
1897
  var n = ri(t[0]);
1898
1898
  return t.forEach(function(a) {
1899
1899
  function i(o, s) {
1900
- var l = new Set(s), c = ht(a, o), u = Array.isArray(c);
1900
+ var l = new Set(s), c = gt(a, o), u = Array.isArray(c);
1901
1901
  if (u || pu(c)) {
1902
1902
  if (!l.has(c)) {
1903
1903
  l.add(c);
1904
- var d = ht(n, o);
1905
- u ? n = it(n, o, []) : (!d || J(d) !== "object") && (n = it(n, o, ri(c))), yu(c).forEach(function(g) {
1906
- i([].concat(X(o), [g]), l);
1904
+ var d = gt(n, o);
1905
+ u ? n = it(n, o, []) : (!d || J(d) !== "object") && (n = it(n, o, ri(c))), yu(c).forEach(function(h) {
1906
+ i([].concat(X(o), [h]), l);
1907
1907
  });
1908
1908
  }
1909
1909
  } else
@@ -1927,7 +1927,7 @@ function Nn(e, t, r, n, a) {
1927
1927
  }
1928
1928
  function jn() {
1929
1929
  return jn = yr(/* @__PURE__ */ et().mark(function e(t, r, n, a, i) {
1930
- var o, s, l, c, u, d, g, p, m;
1930
+ var o, s, l, c, u, d, h, p, m;
1931
1931
  return et().wrap(function(f) {
1932
1932
  for (; ; ) switch (f.prev = f.next) {
1933
1933
  case 0:
@@ -1961,7 +1961,7 @@ function jn() {
1961
1961
  return Nn("".concat(t, ".").concat(v), y, l, a, i);
1962
1962
  }));
1963
1963
  case 21:
1964
- return g = f.sent, f.abrupt("return", g.reduce(function(y, v) {
1964
+ return h = f.sent, f.abrupt("return", h.reduce(function(y, v) {
1965
1965
  return [].concat(X(y), X(v));
1966
1966
  }, []));
1967
1967
  case 23:
@@ -1980,17 +1980,17 @@ function jn() {
1980
1980
  }
1981
1981
  function Su(e, t, r, n, a, i) {
1982
1982
  var o = e.join("."), s = r.map(function(u, d) {
1983
- var g = u.validator, p = j(j({}, u), {}, {
1983
+ var h = u.validator, p = j(j({}, u), {}, {
1984
1984
  ruleIndex: d
1985
1985
  });
1986
- return g && (p.validator = function(m, h, f) {
1986
+ return h && (p.validator = function(m, g, f) {
1987
1987
  var y = !1, v = function() {
1988
1988
  for (var C = arguments.length, $ = new Array(C), S = 0; S < C; S++)
1989
1989
  $[S] = arguments[S];
1990
1990
  Promise.resolve().then(function() {
1991
1991
  we(!y, "Your validator function has already return a promise. `callback` will be ignored."), y || f.apply(void 0, $);
1992
1992
  });
1993
- }, _ = g(m, h, v);
1993
+ }, _ = h(m, g, v);
1994
1994
  y = _ && typeof _.then == "function" && typeof _.catch == "function", we(y, "`callback` is deprecated. Please return a promise instead."), y && _.then(function() {
1995
1995
  f();
1996
1996
  }).catch(function(O) {
@@ -1998,13 +1998,13 @@ function Su(e, t, r, n, a, i) {
1998
1998
  });
1999
1999
  }), p;
2000
2000
  }).sort(function(u, d) {
2001
- var g = u.warningOnly, p = u.ruleIndex, m = d.warningOnly, h = d.ruleIndex;
2002
- return !!g == !!m ? p - h : g ? 1 : -1;
2001
+ var h = u.warningOnly, p = u.ruleIndex, m = d.warningOnly, g = d.ruleIndex;
2002
+ return !!h == !!m ? p - g : h ? 1 : -1;
2003
2003
  }), l;
2004
2004
  if (a === !0)
2005
2005
  l = new Promise(/* @__PURE__ */ (function() {
2006
- var u = yr(/* @__PURE__ */ et().mark(function d(g, p) {
2007
- var m, h, f;
2006
+ var u = yr(/* @__PURE__ */ et().mark(function d(h, p) {
2007
+ var m, g, f;
2008
2008
  return et().wrap(function(v) {
2009
2009
  for (; ; ) switch (v.prev = v.next) {
2010
2010
  case 0:
@@ -2014,7 +2014,7 @@ function Su(e, t, r, n, a, i) {
2014
2014
  v.next = 12;
2015
2015
  break;
2016
2016
  }
2017
- return h = s[m], v.next = 5, Nn(o, t, h, n, i);
2017
+ return g = s[m], v.next = 5, Nn(o, t, g, n, i);
2018
2018
  case 5:
2019
2019
  if (f = v.sent, !f.length) {
2020
2020
  v.next = 9;
@@ -2022,20 +2022,20 @@ function Su(e, t, r, n, a, i) {
2022
2022
  }
2023
2023
  return p([{
2024
2024
  errors: f,
2025
- rule: h
2025
+ rule: g
2026
2026
  }]), v.abrupt("return");
2027
2027
  case 9:
2028
2028
  m += 1, v.next = 1;
2029
2029
  break;
2030
2030
  case 12:
2031
- g([]);
2031
+ h([]);
2032
2032
  case 13:
2033
2033
  case "end":
2034
2034
  return v.stop();
2035
2035
  }
2036
2036
  }, d);
2037
2037
  }));
2038
- return function(d, g) {
2038
+ return function(d, h) {
2039
2039
  return u.apply(this, arguments);
2040
2040
  };
2041
2041
  })());
@@ -2104,7 +2104,7 @@ function Me(e) {
2104
2104
  function ii(e, t) {
2105
2105
  var r = {};
2106
2106
  return t.forEach(function(n) {
2107
- var a = ht(e, n);
2107
+ var a = gt(e, n);
2108
2108
  r = it(r, n, a);
2109
2109
  }), r;
2110
2110
  }
@@ -2159,12 +2159,12 @@ var _a = /* @__PURE__ */ (function(e) {
2159
2159
  var l = a.props, c = l.preserve, u = l.isListField, d = l.name;
2160
2160
  a.cancelRegisterFunc && a.cancelRegisterFunc(u, c, Me(d)), a.cancelRegisterFunc = null;
2161
2161
  }), x(ae(a), "getNamePath", function() {
2162
- var l = a.props, c = l.name, u = l.fieldContext, d = u.prefixName, g = d === void 0 ? [] : d;
2163
- return c !== void 0 ? [].concat(X(g), X(c)) : [];
2162
+ var l = a.props, c = l.name, u = l.fieldContext, d = u.prefixName, h = d === void 0 ? [] : d;
2163
+ return c !== void 0 ? [].concat(X(h), X(c)) : [];
2164
2164
  }), x(ae(a), "getRules", function() {
2165
2165
  var l = a.props, c = l.rules, u = c === void 0 ? [] : c, d = l.fieldContext;
2166
- return u.map(function(g) {
2167
- return typeof g == "function" ? g(d) : g;
2166
+ return u.map(function(h) {
2167
+ return typeof h == "function" ? h(d) : h;
2168
2168
  });
2169
2169
  }), x(ae(a), "refresh", function() {
2170
2170
  a.mounted && a.setState(function(l) {
@@ -2183,11 +2183,11 @@ var _a = /* @__PURE__ */ (function(e) {
2183
2183
  } else
2184
2184
  a.metaCache = null;
2185
2185
  }), x(ae(a), "onStoreChange", function(l, c, u) {
2186
- var d = a.props, g = d.shouldUpdate, p = d.dependencies, m = p === void 0 ? [] : p, h = d.onReset, f = u.store, y = a.getNamePath(), v = a.getValue(l), _ = a.getValue(f), O = c && Ht(c, y);
2186
+ var d = a.props, h = d.shouldUpdate, p = d.dependencies, m = p === void 0 ? [] : p, g = d.onReset, f = u.store, y = a.getNamePath(), v = a.getValue(l), _ = a.getValue(f), O = c && Ht(c, y);
2187
2187
  switch (u.type === "valueUpdate" && u.source === "external" && !Tn(v, _) && (a.touched = !0, a.dirty = !0, a.validatePromise = null, a.errors = Qe, a.warnings = Qe, a.triggerMetaEvent()), u.type) {
2188
2188
  case "reset":
2189
2189
  if (!c || O) {
2190
- a.touched = !1, a.dirty = !1, a.validatePromise = void 0, a.errors = Qe, a.warnings = Qe, a.triggerMetaEvent(), h?.(), a.refresh();
2190
+ a.touched = !1, a.dirty = !1, a.validatePromise = void 0, a.errors = Qe, a.warnings = Qe, a.triggerMetaEvent(), g?.(), a.refresh();
2191
2191
  return;
2192
2192
  }
2193
2193
  break;
@@ -2198,7 +2198,7 @@ var _a = /* @__PURE__ */ (function(e) {
2198
2198
  * - Reset A, need clean B, C
2199
2199
  */
2200
2200
  case "remove": {
2201
- if (g && mn(g, l, f, v, _, u)) {
2201
+ if (h && mn(h, l, f, v, _, u)) {
2202
2202
  a.reRender();
2203
2203
  return;
2204
2204
  }
@@ -2213,7 +2213,7 @@ var _a = /* @__PURE__ */ (function(e) {
2213
2213
  a.reRender();
2214
2214
  return;
2215
2215
  }
2216
- if (g && !y.length && mn(g, l, f, v, _, u)) {
2216
+ if (h && !y.length && mn(h, l, f, v, _, u)) {
2217
2217
  a.reRender();
2218
2218
  return;
2219
2219
  }
@@ -2230,15 +2230,15 @@ var _a = /* @__PURE__ */ (function(e) {
2230
2230
  break;
2231
2231
  }
2232
2232
  default:
2233
- if (O || (!m.length || y.length || g) && mn(g, l, f, v, _, u)) {
2233
+ if (O || (!m.length || y.length || h) && mn(h, l, f, v, _, u)) {
2234
2234
  a.reRender();
2235
2235
  return;
2236
2236
  }
2237
2237
  break;
2238
2238
  }
2239
- g === !0 && a.reRender();
2239
+ h === !0 && a.reRender();
2240
2240
  }), x(ae(a), "validateRules", function(l) {
2241
- var c = a.getNamePath(), u = a.getValue(), d = l || {}, g = d.triggerName, p = d.validateOnly, m = p === void 0 ? !1 : p, h = Promise.resolve().then(/* @__PURE__ */ yr(/* @__PURE__ */ et().mark(function f() {
2241
+ var c = a.getNamePath(), u = a.getValue(), d = l || {}, h = d.triggerName, p = d.validateOnly, m = p === void 0 ? !1 : p, g = Promise.resolve().then(/* @__PURE__ */ yr(/* @__PURE__ */ et().mark(function f() {
2242
2242
  var y, v, _, O, C, $, S;
2243
2243
  return et().wrap(function(M) {
2244
2244
  for (; ; ) switch (M.prev = M.next) {
@@ -2249,15 +2249,15 @@ var _a = /* @__PURE__ */ (function(e) {
2249
2249
  }
2250
2250
  return M.abrupt("return", []);
2251
2251
  case 2:
2252
- if (y = a.props, v = y.validateFirst, _ = v === void 0 ? !1 : v, O = y.messageVariables, C = y.validateDebounce, $ = a.getRules(), g && ($ = $.filter(function(P) {
2252
+ if (y = a.props, v = y.validateFirst, _ = v === void 0 ? !1 : v, O = y.messageVariables, C = y.validateDebounce, $ = a.getRules(), h && ($ = $.filter(function(P) {
2253
2253
  return P;
2254
2254
  }).filter(function(P) {
2255
2255
  var A = P.validateTrigger;
2256
2256
  if (!A)
2257
2257
  return !0;
2258
2258
  var D = Pn(A);
2259
- return D.includes(g);
2260
- })), !(C && g)) {
2259
+ return D.includes(h);
2260
+ })), !(C && h)) {
2261
2261
  M.next = 10;
2262
2262
  break;
2263
2263
  }
@@ -2265,7 +2265,7 @@ var _a = /* @__PURE__ */ (function(e) {
2265
2265
  setTimeout(P, C);
2266
2266
  });
2267
2267
  case 8:
2268
- if (a.validatePromise === h) {
2268
+ if (a.validatePromise === g) {
2269
2269
  M.next = 10;
2270
2270
  break;
2271
2271
  }
@@ -2275,7 +2275,7 @@ var _a = /* @__PURE__ */ (function(e) {
2275
2275
  return P;
2276
2276
  }).then(function() {
2277
2277
  var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Qe;
2278
- if (a.validatePromise === h) {
2278
+ if (a.validatePromise === g) {
2279
2279
  var A;
2280
2280
  a.validatePromise = null;
2281
2281
  var D = [], V = [];
@@ -2291,7 +2291,7 @@ var _a = /* @__PURE__ */ (function(e) {
2291
2291
  }
2292
2292
  }, f);
2293
2293
  })));
2294
- return m || (a.validatePromise = h, a.dirty = !0, a.errors = Qe, a.warnings = Qe, a.triggerMetaEvent(), a.reRender()), h;
2294
+ return m || (a.validatePromise = g, a.dirty = !0, a.errors = Qe, a.warnings = Qe, a.triggerMetaEvent(), a.reRender()), g;
2295
2295
  }), x(ae(a), "isFieldValidating", function() {
2296
2296
  return !!a.validatePromise;
2297
2297
  }), x(ae(a), "isFieldTouched", function() {
@@ -2339,10 +2339,10 @@ var _a = /* @__PURE__ */ (function(e) {
2339
2339
  };
2340
2340
  }), x(ae(a), "getValue", function(l) {
2341
2341
  var c = a.props.fieldContext.getFieldsValue, u = a.getNamePath();
2342
- return ht(l || c(!0), u);
2342
+ return gt(l || c(!0), u);
2343
2343
  }), x(ae(a), "getControlled", function() {
2344
- var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = a.props, u = c.name, d = c.trigger, g = c.validateTrigger, p = c.getValueFromEvent, m = c.normalize, h = c.valuePropName, f = c.getValueProps, y = c.fieldContext, v = g !== void 0 ? g : y.validateTrigger, _ = a.getNamePath(), O = y.getInternalHooks, C = y.getFieldsValue, $ = O(Ot), S = $.dispatch, T = a.getValue(), M = f || function(b) {
2345
- return x({}, h, b);
2344
+ var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = a.props, u = c.name, d = c.trigger, h = c.validateTrigger, p = c.getValueFromEvent, m = c.normalize, g = c.valuePropName, f = c.getValueProps, y = c.fieldContext, v = h !== void 0 ? h : y.validateTrigger, _ = a.getNamePath(), O = y.getInternalHooks, C = y.getFieldsValue, $ = O(Ot), S = $.dispatch, T = a.getValue(), M = f || function(b) {
2345
+ return x({}, g, b);
2346
2346
  }, P = l[d], A = u !== void 0 ? M(T) : {};
2347
2347
  process.env.NODE_ENV !== "production" && A && Object.keys(A).forEach(function(b) {
2348
2348
  we(typeof A[b] != "function", "It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(b, ")"));
@@ -2352,7 +2352,7 @@ var _a = /* @__PURE__ */ (function(e) {
2352
2352
  a.touched = !0, a.dirty = !0, a.triggerMetaEvent();
2353
2353
  for (var b, E = arguments.length, w = new Array(E), R = 0; R < E; R++)
2354
2354
  w[R] = arguments[R];
2355
- p ? b = p.apply(void 0, w) : b = Eu.apply(void 0, [h].concat(w)), m && (b = m(b, T, C(!0))), b !== T && S({
2355
+ p ? b = p.apply(void 0, w) : b = Eu.apply(void 0, [g].concat(w)), m && (b = m(b, T, C(!0))), b !== T && S({
2356
2356
  type: "updateValue",
2357
2357
  namePath: _,
2358
2358
  value: b
@@ -2427,9 +2427,9 @@ function $u(e) {
2427
2427
  keys: [],
2428
2428
  id: 0
2429
2429
  }), u = c.current, d = F.useMemo(function() {
2430
- var h = Me(s.prefixName) || [];
2431
- return [].concat(X(h), X(Me(t)));
2432
- }, [s.prefixName, t]), g = F.useMemo(function() {
2430
+ var g = Me(s.prefixName) || [];
2431
+ return [].concat(X(g), X(Me(t)));
2432
+ }, [s.prefixName, t]), h = F.useMemo(function() {
2433
2433
  return j(j({}, s), {}, {
2434
2434
  prefixName: d
2435
2435
  });
@@ -2450,7 +2450,7 @@ function $u(e) {
2450
2450
  return /* @__PURE__ */ F.createElement(Kr.Provider, {
2451
2451
  value: p
2452
2452
  }, /* @__PURE__ */ F.createElement(Wt.Provider, {
2453
- value: g
2453
+ value: h
2454
2454
  }, /* @__PURE__ */ F.createElement(yo, {
2455
2455
  name: [],
2456
2456
  shouldUpdate: m,
@@ -2459,8 +2459,8 @@ function $u(e) {
2459
2459
  initialValue: r,
2460
2460
  isList: !0,
2461
2461
  isListField: o ?? !!l
2462
- }, function(h, f) {
2463
- var y = h.value, v = y === void 0 ? [] : y, _ = h.onChange, O = s.getFieldValue, C = function() {
2462
+ }, function(g, f) {
2463
+ var y = g.value, v = y === void 0 ? [] : y, _ = g.onChange, O = s.getFieldValue, C = function() {
2464
2464
  var M = O(d || []);
2465
2465
  return M || [];
2466
2466
  }, $ = {
@@ -2544,8 +2544,8 @@ var jt = /* @__PURE__ */ (function() {
2544
2544
  var a = K(n, 2), i = a[0], o = a[1], s = i.split(bo);
2545
2545
  return r({
2546
2546
  key: s.map(function(l) {
2547
- var c = l.match(/^([^:]*):(.*)$/), u = K(c, 3), d = u[1], g = u[2];
2548
- return d === "number" ? Number(g) : g;
2547
+ var c = l.match(/^([^:]*):(.*)$/), u = K(c, 3), d = u[1], h = u[2];
2548
+ return d === "number" ? Number(h) : h;
2549
2549
  }),
2550
2550
  value: o
2551
2551
  });
@@ -2605,7 +2605,7 @@ var jt = /* @__PURE__ */ (function() {
2605
2605
  var i, o = Lt(n, r.store);
2606
2606
  (i = r.prevWithoutPreserves) === null || i === void 0 || i.map(function(s) {
2607
2607
  var l = s.key;
2608
- o = it(o, l, ht(n, l));
2608
+ o = it(o, l, gt(n, l));
2609
2609
  }), r.prevWithoutPreserves = null, r.updateStore(o);
2610
2610
  }
2611
2611
  }), x(this, "destroyForm", function(n) {
@@ -2618,7 +2618,7 @@ var jt = /* @__PURE__ */ (function() {
2618
2618
  }), r.prevWithoutPreserves = a;
2619
2619
  }
2620
2620
  }), x(this, "getInitialValue", function(n) {
2621
- var a = ht(r.initialValues, n);
2621
+ var a = gt(r.initialValues, n);
2622
2622
  return n.length ? Lt(a) : a;
2623
2623
  }), x(this, "setCallbacks", function(n) {
2624
2624
  r.callbacks = n;
@@ -2674,12 +2674,12 @@ var jt = /* @__PURE__ */ (function() {
2674
2674
  return r.store;
2675
2675
  var l = r.getFieldEntitiesForNamePathList(Array.isArray(i) ? i : null), c = [];
2676
2676
  return l.forEach(function(u) {
2677
- var d, g, p = "INVALIDATE_NAME_PATH" in u ? u.INVALIDATE_NAME_PATH : u.getNamePath();
2677
+ var d, h, p = "INVALIDATE_NAME_PATH" in u ? u.INVALIDATE_NAME_PATH : u.getNamePath();
2678
2678
  if (s) {
2679
- var m, h;
2680
- if ((m = (h = u).isList) !== null && m !== void 0 && m.call(h))
2679
+ var m, g;
2680
+ if ((m = (g = u).isList) !== null && m !== void 0 && m.call(g))
2681
2681
  return;
2682
- } else if (!i && (d = (g = u).isListField) !== null && d !== void 0 && d.call(g))
2682
+ } else if (!i && (d = (h = u).isListField) !== null && d !== void 0 && d.call(h))
2683
2683
  return;
2684
2684
  if (!o)
2685
2685
  c.push(p);
@@ -2691,7 +2691,7 @@ var jt = /* @__PURE__ */ (function() {
2691
2691
  }), x(this, "getFieldValue", function(n) {
2692
2692
  r.warningUnhooked();
2693
2693
  var a = Me(n);
2694
- return ht(r.store, a);
2694
+ return gt(r.store, a);
2695
2695
  }), x(this, "getFieldsError", function(n) {
2696
2696
  r.warningUnhooked();
2697
2697
  var a = r.getFieldEntitiesForNamePathList(n);
@@ -2724,26 +2724,26 @@ var jt = /* @__PURE__ */ (function() {
2724
2724
  return f.isFieldTouched();
2725
2725
  };
2726
2726
  if (!l)
2727
- return c ? u.every(function(h) {
2728
- return d(h) || h.isList();
2727
+ return c ? u.every(function(g) {
2728
+ return d(g) || g.isList();
2729
2729
  }) : u.some(d);
2730
- var g = new jt();
2731
- l.forEach(function(h) {
2732
- g.set(h, []);
2733
- }), u.forEach(function(h) {
2734
- var f = h.getNamePath();
2730
+ var h = new jt();
2731
+ l.forEach(function(g) {
2732
+ h.set(g, []);
2733
+ }), u.forEach(function(g) {
2734
+ var f = g.getNamePath();
2735
2735
  l.forEach(function(y) {
2736
2736
  y.every(function(v, _) {
2737
2737
  return f[_] === v;
2738
- }) && g.update(y, function(v) {
2739
- return [].concat(X(v), [h]);
2738
+ }) && h.update(y, function(v) {
2739
+ return [].concat(X(v), [g]);
2740
2740
  });
2741
2741
  });
2742
2742
  });
2743
2743
  var p = function(f) {
2744
2744
  return f.some(d);
2745
- }, m = g.map(function(h) {
2746
- var f = h.value;
2745
+ }, m = h.map(function(g) {
2746
+ var f = g.value;
2747
2747
  return f;
2748
2748
  });
2749
2749
  return c ? m.every(p) : m.some(p);
@@ -2779,16 +2779,16 @@ var jt = /* @__PURE__ */ (function() {
2779
2779
  c.forEach(function(u) {
2780
2780
  var d = u.props.initialValue;
2781
2781
  if (d !== void 0) {
2782
- var g = u.getNamePath(), p = r.getInitialValue(g);
2782
+ var h = u.getNamePath(), p = r.getInitialValue(h);
2783
2783
  if (p !== void 0)
2784
- we(!1, "Form already set 'initialValues' with path '".concat(g.join("."), "'. Field can not overwrite it."));
2784
+ we(!1, "Form already set 'initialValues' with path '".concat(h.join("."), "'. Field can not overwrite it."));
2785
2785
  else {
2786
- var m = a.get(g);
2786
+ var m = a.get(h);
2787
2787
  if (m && m.size > 1)
2788
- we(!1, "Multiple Field with path '".concat(g.join("."), "' set 'initialValue'. Can not decide which one to pick."));
2788
+ we(!1, "Multiple Field with path '".concat(h.join("."), "' set 'initialValue'. Can not decide which one to pick."));
2789
2789
  else if (m) {
2790
- var h = r.getFieldValue(g), f = u.isListField();
2791
- !f && (!n.skipExist || h === void 0) && r.updateStore(it(r.store, g, X(m)[0].value));
2790
+ var g = r.getFieldValue(h), f = u.isListField();
2791
+ !f && (!n.skipExist || g === void 0) && r.updateStore(it(r.store, h, X(m)[0].value));
2792
2792
  }
2793
2793
  }
2794
2794
  }
@@ -2845,7 +2845,7 @@ var jt = /* @__PURE__ */ (function() {
2845
2845
  }), x(this, "initEntityValue", function(n) {
2846
2846
  var a = n.props.initialValue;
2847
2847
  if (a !== void 0) {
2848
- var i = n.getNamePath(), o = ht(r.store, i);
2848
+ var i = n.getNamePath(), o = gt(r.store, i);
2849
2849
  o === void 0 && r.updateStore(it(r.store, i, a));
2850
2850
  }
2851
2851
  }), x(this, "isMergedPreserve", function(n) {
@@ -2953,8 +2953,8 @@ var jt = /* @__PURE__ */ (function() {
2953
2953
  (c || []).forEach(function(u) {
2954
2954
  var d = Me(u);
2955
2955
  o.update(d, function() {
2956
- var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : /* @__PURE__ */ new Set();
2957
- return g.add(l), g;
2956
+ var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : /* @__PURE__ */ new Set();
2957
+ return h.add(l), h;
2958
2958
  });
2959
2959
  });
2960
2960
  });
@@ -2963,8 +2963,8 @@ var jt = /* @__PURE__ */ (function() {
2963
2963
  u.forEach(function(d) {
2964
2964
  if (!a.has(d)) {
2965
2965
  a.add(d);
2966
- var g = d.getNamePath();
2967
- d.isFieldDirty() && g.length && (i.push(g), l(g));
2966
+ var h = d.getNamePath();
2967
+ d.isFieldDirty() && h.length && (i.push(h), l(h));
2968
2968
  }
2969
2969
  });
2970
2970
  };
@@ -2992,7 +2992,7 @@ var jt = /* @__PURE__ */ (function() {
2992
2992
  r.warningUnhooked();
2993
2993
  var i, o;
2994
2994
  Array.isArray(n) || typeof n == "string" || typeof a == "string" ? (i = n, o = a) : o = n;
2995
- var s = !!i, l = s ? i.map(Me) : [], c = [], u = String(Date.now()), d = /* @__PURE__ */ new Set(), g = o || {}, p = g.recursive, m = g.dirty;
2995
+ var s = !!i, l = s ? i.map(Me) : [], c = [], u = String(Date.now()), d = /* @__PURE__ */ new Set(), h = o || {}, p = h.recursive, m = h.dirty;
2996
2996
  r.getFieldEntities(!0).forEach(function(v) {
2997
2997
  if (s || l.push(v.getNamePath()), !(!v.props.rules || !v.props.rules.length) && !(m && !v.isFieldDirty())) {
2998
2998
  var _ = v.getNamePath();
@@ -3024,8 +3024,8 @@ var jt = /* @__PURE__ */ (function() {
3024
3024
  }
3025
3025
  }
3026
3026
  });
3027
- var h = Ou(c);
3028
- r.lastValidatePromise = h, h.catch(function(v) {
3027
+ var g = Ou(c);
3028
+ r.lastValidatePromise = g, g.catch(function(v) {
3029
3029
  return v;
3030
3030
  }).then(function(v) {
3031
3031
  var _ = v.map(function(O) {
@@ -3036,8 +3036,8 @@ var jt = /* @__PURE__ */ (function() {
3036
3036
  type: "validateFinish"
3037
3037
  }), r.triggerOnFieldsChange(_, v);
3038
3038
  });
3039
- var f = h.then(function() {
3040
- return r.lastValidatePromise === h ? Promise.resolve(r.getFieldsValue(l)) : Promise.reject([]);
3039
+ var f = g.then(function() {
3040
+ return r.lastValidatePromise === g ? Promise.resolve(r.getFieldsValue(l)) : Promise.reject([]);
3041
3041
  }).catch(function(v) {
3042
3042
  var _ = v.filter(function(O) {
3043
3043
  return O && O.errors.length;
@@ -3045,7 +3045,7 @@ var jt = /* @__PURE__ */ (function() {
3045
3045
  return Promise.reject({
3046
3046
  values: r.getFieldsValue(l),
3047
3047
  errorFields: _,
3048
- outOfDate: r.lastValidatePromise !== h
3048
+ outOfDate: r.lastValidatePromise !== g
3049
3049
  });
3050
3050
  });
3051
3051
  f.catch(function(v) {
@@ -3122,7 +3122,7 @@ var Dn = /* @__PURE__ */ F.createContext({
3122
3122
  })
3123
3123
  }, i);
3124
3124
  }, Mu = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"], Ru = function(t, r) {
3125
- var n = t.name, a = t.initialValues, i = t.fields, o = t.form, s = t.preserve, l = t.children, c = t.component, u = c === void 0 ? "form" : c, d = t.validateMessages, g = t.validateTrigger, p = g === void 0 ? "onChange" : g, m = t.onValuesChange, h = t.onFieldsChange, f = t.onFinish, y = t.onFinishFailed, v = t.clearOnDestroy, _ = vt(t, Mu), O = F.useRef(null), C = F.useContext(Dn), $ = So(o), S = K($, 1), T = S[0], M = T.getInternalHooks(Ot), P = M.useSubscribe, A = M.setInitialValues, D = M.setCallbacks, V = M.setValidateMessages, b = M.setPreserve, E = M.destroyForm;
3125
+ var n = t.name, a = t.initialValues, i = t.fields, o = t.form, s = t.preserve, l = t.children, c = t.component, u = c === void 0 ? "form" : c, d = t.validateMessages, h = t.validateTrigger, p = h === void 0 ? "onChange" : h, m = t.onValuesChange, g = t.onFieldsChange, f = t.onFinish, y = t.onFinishFailed, v = t.clearOnDestroy, _ = vt(t, Mu), O = F.useRef(null), C = F.useContext(Dn), $ = So(o), S = K($, 1), T = S[0], M = T.getInternalHooks(Ot), P = M.useSubscribe, A = M.setInitialValues, D = M.setCallbacks, V = M.setValidateMessages, b = M.setPreserve, E = M.destroyForm;
3126
3126
  F.useImperativeHandle(r, function() {
3127
3127
  return j(j({}, T), {}, {
3128
3128
  nativeElement: O.current
@@ -3134,10 +3134,10 @@ var Dn = /* @__PURE__ */ F.createContext({
3134
3134
  }, [C, T, n]), V(j(j({}, C.validateMessages), d)), D({
3135
3135
  onValuesChange: m,
3136
3136
  onFieldsChange: function(U) {
3137
- if (C.triggerFormChange(n, U), h) {
3137
+ if (C.triggerFormChange(n, U), g) {
3138
3138
  for (var ee = arguments.length, ie = new Array(ee > 1 ? ee - 1 : 0), fe = 1; fe < ee; fe++)
3139
3139
  ie[fe - 1] = arguments[fe];
3140
- h.apply(void 0, [U].concat(ie));
3140
+ g.apply(void 0, [U].concat(ie));
3141
3141
  }
3142
3142
  },
3143
3143
  onFinish: function(U) {
@@ -3194,7 +3194,7 @@ function si(e) {
3194
3194
  }
3195
3195
  }
3196
3196
  var Au = process.env.NODE_ENV !== "production" ? function(e) {
3197
- var t = e.join("__RC_FIELD_FORM_SPLIT__"), r = ge(t);
3197
+ var t = e.join("__RC_FIELD_FORM_SPLIT__"), r = he(t);
3198
3198
  we(r.current === t, "`useWatch` is not support dynamic `namePath`. Please provide static instead.");
3199
3199
  } : function() {
3200
3200
  };
@@ -3203,19 +3203,19 @@ function Iu() {
3203
3203
  t[r] = arguments[r];
3204
3204
  var n = t[0], a = t[1], i = a === void 0 ? {} : a, o = Dl(i) ? {
3205
3205
  form: i
3206
- } : i, s = o.form, l = Q(), c = K(l, 2), u = c[0], d = c[1], g = Ft(function() {
3206
+ } : i, s = o.form, l = Q(), c = K(l, 2), u = c[0], d = c[1], h = Ft(function() {
3207
3207
  return si(u);
3208
- }, [u]), p = ge(g);
3209
- p.current = g;
3210
- var m = mt(Wt), h = s || m, f = h && h._init;
3208
+ }, [u]), p = he(h);
3209
+ p.current = h;
3210
+ var m = mt(Wt), g = s || m, f = g && g._init;
3211
3211
  process.env.NODE_ENV !== "production" && we(t.length === 2 ? s ? f : !0 : f, "useWatch requires a form instance since it can not auto detect from context.");
3212
- var y = Me(n), v = ge(y);
3212
+ var y = Me(n), v = he(y);
3213
3213
  return v.current = y, Au(y), de(
3214
3214
  function() {
3215
3215
  if (f) {
3216
- var _ = h.getFieldsValue, O = h.getInternalHooks, C = O(Ot), $ = C.registerWatch, S = function(A, D) {
3216
+ var _ = g.getFieldsValue, O = g.getInternalHooks, C = O(Ot), $ = C.registerWatch, S = function(A, D) {
3217
3217
  var V = o.preserve ? D : A;
3218
- return typeof n == "function" ? n(V) : ht(V, v.current);
3218
+ return typeof n == "function" ? n(V) : gt(V, v.current);
3219
3219
  }, T = $(function(P, A) {
3220
3220
  var D = S(P, A), V = si(D);
3221
3221
  p.current !== V && (p.current = V, d(D));
@@ -3249,7 +3249,7 @@ const ju = ({
3249
3249
  value: a
3250
3250
  }, e);
3251
3251
  }, Vu = /* @__PURE__ */ F.createContext(void 0);
3252
- function hr(e) {
3252
+ function gr(e) {
3253
3253
  for (var t = 0, r, n = 0, a = e.length; a >= 4; ++n, a -= 4)
3254
3254
  r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
3255
3255
  (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
@@ -3308,10 +3308,10 @@ function Co(e) {
3308
3308
  var c = tn(t), u = c.firstChild;
3309
3309
  if (n) {
3310
3310
  if (s) {
3311
- var d = (t.styles || Ca(c)).filter(function(g) {
3312
- if (!["prepend", "prependQueue"].includes(g.getAttribute(ci)))
3311
+ var d = (t.styles || Ca(c)).filter(function(h) {
3312
+ if (!["prepend", "prependQueue"].includes(h.getAttribute(ci)))
3313
3313
  return !1;
3314
- var p = Number(g.getAttribute(li) || 0);
3314
+ var p = Number(h.getAttribute(li) || 0);
3315
3315
  return i >= p;
3316
3316
  });
3317
3317
  if (d.length)
@@ -3468,8 +3468,8 @@ var xa = /* @__PURE__ */ (function() {
3468
3468
  if (!this.has(r)) {
3469
3469
  if (this.size() + 1 > e.MAX_CACHE_SIZE + e.MAX_CACHE_OFFSET) {
3470
3470
  var i = this.keys.reduce(function(c, u) {
3471
- var d = K(c, 2), g = d[1];
3472
- return a.internalGet(u)[1] < g ? [u, a.internalGet(u)[1]] : c;
3471
+ var d = K(c, 2), h = d[1];
3472
+ return a.internalGet(u)[1] < h ? [u, a.internalGet(u)[1]] : c;
3473
3473
  }, [this.keys[0], this.cacheCallTimes]), o = K(i, 1), s = o[0];
3474
3474
  this.delete(s);
3475
3475
  }
@@ -3545,10 +3545,10 @@ function cr(e) {
3545
3545
  return t || (Object.keys(e).forEach(function(r) {
3546
3546
  var n = e[r];
3547
3547
  t += r, n instanceof wo ? t += n.id : n && J(n) === "object" ? t += cr(n) : t += n;
3548
- }), t = hr(t), di.set(e, t)), t;
3548
+ }), t = gr(t), di.set(e, t)), t;
3549
3549
  }
3550
3550
  function fi(e, t) {
3551
- return hr("".concat(t, "_").concat(cr(e)));
3551
+ return gr("".concat(t, "_").concat(cr(e)));
3552
3552
  }
3553
3553
  var zn = bt();
3554
3554
  function Fe(e) {
@@ -3581,18 +3581,18 @@ var Dr = function(t) {
3581
3581
  if (n != null && (s = n.preserve) !== null && s !== void 0 && s[u])
3582
3582
  i[u] = d;
3583
3583
  else if ((typeof d == "string" || typeof d == "number") && !(n != null && (l = n.ignore) !== null && l !== void 0 && l[u])) {
3584
- var g, p = Dr(u, n?.prefix);
3585
- a[p] = typeof d == "number" && !(n != null && (g = n.unitless) !== null && g !== void 0 && g[u]) ? "".concat(d, "px") : String(d), i[u] = "var(".concat(p, ")");
3584
+ var h, p = Dr(u, n?.prefix);
3585
+ a[p] = typeof d == "number" && !(n != null && (h = n.unitless) !== null && h !== void 0 && h[u]) ? "".concat(d, "px") : String(d), i[u] = "var(".concat(p, ")");
3586
3586
  }
3587
3587
  }), [i, Xu(a, r, {
3588
3588
  scope: n?.scope
3589
3589
  })];
3590
- }, Yu = j({}, F), gi = Yu.useInsertionEffect, Qu = function(t, r, n) {
3590
+ }, Yu = j({}, F), hi = Yu.useInsertionEffect, Qu = function(t, r, n) {
3591
3591
  F.useMemo(t, n), no(function() {
3592
3592
  return r(!0);
3593
3593
  }, n);
3594
- }, Ju = gi ? function(e, t, r) {
3595
- return gi(function() {
3594
+ }, Ju = hi ? function(e, t, r) {
3595
+ return hi(function() {
3596
3596
  return e(), t();
3597
3597
  }, r);
3598
3598
  } : Qu, Zu = j({}, F), ed = Zu.useInsertionEffect, td = function(t) {
@@ -3636,12 +3636,12 @@ if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && mo
3636
3636
  }
3637
3637
  }
3638
3638
  function Ea(e, t, r, n, a) {
3639
- var i = F.useContext(_r), o = i.cache, s = [e].concat(X(t)), l = Hn(s), c = nd([l]), u = od(), d = function(h) {
3639
+ var i = F.useContext(_r), o = i.cache, s = [e].concat(X(t)), l = Hn(s), c = nd([l]), u = od(), d = function(g) {
3640
3640
  o.opUpdate(l, function(f) {
3641
3641
  var y = f || [void 0, void 0], v = K(y, 2), _ = v[0], O = _ === void 0 ? 0 : _, C = v[1], $ = C;
3642
3642
  process.env.NODE_ENV !== "production" && C && u && (n?.($, u), $ = null);
3643
3643
  var S = $ || r(), T = [O, S];
3644
- return h ? h(T) : T;
3644
+ return g ? g(T) : T;
3645
3645
  });
3646
3646
  };
3647
3647
  F.useMemo(
@@ -3652,18 +3652,18 @@ function Ea(e, t, r, n, a) {
3652
3652
  [l]
3653
3653
  /* eslint-enable */
3654
3654
  );
3655
- var g = o.opGet(l);
3656
- process.env.NODE_ENV !== "production" && !g && (d(), g = o.opGet(l));
3657
- var p = g[1];
3655
+ var h = o.opGet(l);
3656
+ process.env.NODE_ENV !== "production" && !h && (d(), h = o.opGet(l));
3657
+ var p = h[1];
3658
3658
  return Ju(function() {
3659
3659
  a?.(p);
3660
3660
  }, function(m) {
3661
- return d(function(h) {
3662
- var f = K(h, 2), y = f[0], v = f[1];
3661
+ return d(function(g) {
3662
+ var f = K(g, 2), y = f[0], v = f[1];
3663
3663
  return m && y === 0 && a?.(p), [y + 1, v];
3664
3664
  }), function() {
3665
- o.opUpdate(l, function(h) {
3666
- var f = h || [], y = K(f, 2), v = y[0], _ = v === void 0 ? 0 : v, O = y[1], C = _ - 1;
3665
+ o.opUpdate(l, function(g) {
3666
+ var f = g || [], y = K(f, 2), v = y[0], _ = v === void 0 ? 0 : v, O = y[1], C = _ - 1;
3667
3667
  return C === 0 ? (c(function() {
3668
3668
  (m || !o.opGet(l)) && n?.(O, !1);
3669
3669
  }), null) : [_ - 1, O];
@@ -3687,7 +3687,7 @@ function dd(e, t) {
3687
3687
  }
3688
3688
  }
3689
3689
  var fd = 0;
3690
- function gd(e, t) {
3690
+ function hd(e, t) {
3691
3691
  $t.set(e, ($t.get(e) || 0) - 1);
3692
3692
  var r = /* @__PURE__ */ new Set();
3693
3693
  $t.forEach(function(n, a) {
@@ -3696,36 +3696,36 @@ function gd(e, t) {
3696
3696
  dd(n, t), $t.delete(n);
3697
3697
  });
3698
3698
  }
3699
- var hd = function(t, r, n, a) {
3699
+ var gd = function(t, r, n, a) {
3700
3700
  var i = n.getDerivativeToken(t), o = j(j({}, i), r);
3701
3701
  return a && (o = a(o)), o;
3702
3702
  }, Oo = "token";
3703
3703
  function md(e, t) {
3704
- var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = mt(_r), a = n.cache.instanceId, i = n.container, o = r.salt, s = o === void 0 ? "" : o, l = r.override, c = l === void 0 ? cd : l, u = r.formatToken, d = r.getComputedToken, g = r.cssVar, p = Ku(function() {
3704
+ var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = mt(_r), a = n.cache.instanceId, i = n.container, o = r.salt, s = o === void 0 ? "" : o, l = r.override, c = l === void 0 ? cd : l, u = r.formatToken, d = r.getComputedToken, h = r.cssVar, p = Ku(function() {
3705
3705
  return Object.assign.apply(Object, [{}].concat(X(t)));
3706
- }, t), m = cr(p), h = cr(c), f = g ? cr(g) : "", y = Ea(Oo, [s, e.id, m, h, f], function() {
3707
- var v, _ = d ? d(p, c, e) : hd(p, c, e, u), O = j({}, _), C = "";
3708
- if (g) {
3709
- var $ = $o(_, g.key, {
3710
- prefix: g.prefix,
3711
- ignore: g.ignore,
3712
- unitless: g.unitless,
3713
- preserve: g.preserve
3706
+ }, t), m = cr(p), g = cr(c), f = h ? cr(h) : "", y = Ea(Oo, [s, e.id, m, g, f], function() {
3707
+ var v, _ = d ? d(p, c, e) : gd(p, c, e, u), O = j({}, _), C = "";
3708
+ if (h) {
3709
+ var $ = $o(_, h.key, {
3710
+ prefix: h.prefix,
3711
+ ignore: h.ignore,
3712
+ unitless: h.unitless,
3713
+ preserve: h.preserve
3714
3714
  }), S = K($, 2);
3715
3715
  _ = S[0], C = S[1];
3716
3716
  }
3717
3717
  var T = fi(_, s);
3718
3718
  _._tokenKey = T, O._tokenKey = fi(O, s);
3719
- var M = (v = g?.key) !== null && v !== void 0 ? v : T;
3719
+ var M = (v = h?.key) !== null && v !== void 0 ? v : T;
3720
3720
  _._themeKey = M, ud(M);
3721
- var P = "".concat(ld, "-").concat(hr(T));
3722
- return _._hashId = P, [_, P, O, C, g?.key || ""];
3721
+ var P = "".concat(ld, "-").concat(gr(T));
3722
+ return _._hashId = P, [_, P, O, C, h?.key || ""];
3723
3723
  }, function(v) {
3724
- gd(v[0]._themeKey, a);
3724
+ hd(v[0]._themeKey, a);
3725
3725
  }, function(v) {
3726
3726
  var _ = K(v, 4), O = _[0], C = _[3];
3727
- if (g && C) {
3728
- var $ = Tt(C, hr("css-variables-".concat(O._themeKey)), {
3727
+ if (h && C) {
3728
+ var $ = Tt(C, gr("css-variables-".concat(O._themeKey)), {
3729
3729
  mark: st,
3730
3730
  prepend: "queue",
3731
3731
  attachTo: i,
@@ -3740,10 +3740,10 @@ var vd = function(t, r, n) {
3740
3740
  var a = K(t, 5), i = a[2], o = a[3], s = a[4], l = n || {}, c = l.plain;
3741
3741
  if (!o)
3742
3742
  return null;
3743
- var u = i._tokenKey, d = -999, g = {
3743
+ var u = i._tokenKey, d = -999, h = {
3744
3744
  "data-rc-order": "prependQueue",
3745
3745
  "data-rc-priority": "".concat(d)
3746
- }, p = Yr(o, s, u, g, c);
3746
+ }, p = Yr(o, s, u, h, c);
3747
3747
  return [d, u, p];
3748
3748
  }, pd = {
3749
3749
  animationIterationCount: 1,
@@ -3808,7 +3808,7 @@ function Bt(e, t) {
3808
3808
  function qt(e, t, r) {
3809
3809
  return e.slice(t, r);
3810
3810
  }
3811
- function gt(e) {
3811
+ function ht(e) {
3812
3812
  return e.length;
3813
3813
  }
3814
3814
  function xd(e) {
@@ -3878,7 +3878,7 @@ function mr(e) {
3878
3878
  return 0;
3879
3879
  }
3880
3880
  function $d(e) {
3881
- return rn = Gt = 1, Ao = gt(Jt = e), tt = 0, [];
3881
+ return rn = Gt = 1, Ao = ht(Jt = e), tt = 0, [];
3882
3882
  }
3883
3883
  function Od(e) {
3884
3884
  return Jt = "", e;
@@ -3933,7 +3933,7 @@ function Rd(e) {
3933
3933
  return Od(Br("", null, null, null, [""], e = $d(e), 0, [0], e));
3934
3934
  }
3935
3935
  function Br(e, t, r, n, a, i, o, s, l) {
3936
- for (var c = 0, u = 0, d = o, g = 0, p = 0, m = 0, h = 1, f = 1, y = 1, v = 0, _ = "", O = a, C = i, $ = n, S = _; f; )
3936
+ for (var c = 0, u = 0, d = o, h = 0, p = 0, m = 0, g = 1, f = 1, y = 1, v = 0, _ = "", O = a, C = i, $ = n, S = _; f; )
3937
3937
  switch (m = v, v = ct()) {
3938
3938
  // (
3939
3939
  case 40:
@@ -3963,17 +3963,17 @@ function Br(e, t, r, n, a, i, o, s, l) {
3963
3963
  switch (xt()) {
3964
3964
  case 42:
3965
3965
  case 47:
3966
- Pr(Ad(Pd(ct(), Hr()), t, r, l), l), (mr(m || 1) == 5 || mr(xt() || 1) == 5) && gt(S) && qt(S, -1, void 0) !== " " && (S += " ");
3966
+ Pr(Ad(Pd(ct(), Hr()), t, r, l), l), (mr(m || 1) == 5 || mr(xt() || 1) == 5) && ht(S) && qt(S, -1, void 0) !== " " && (S += " ");
3967
3967
  break;
3968
3968
  default:
3969
3969
  S += "/";
3970
3970
  }
3971
3971
  break;
3972
3972
  // {
3973
- case 123 * h:
3974
- s[c++] = gt(S) * y;
3973
+ case 123 * g:
3974
+ s[c++] = ht(S) * y;
3975
3975
  // } ; \0
3976
- case 125 * h:
3976
+ case 125 * g:
3977
3977
  case 59:
3978
3978
  case 0:
3979
3979
  switch (v) {
@@ -3983,18 +3983,18 @@ function Br(e, t, r, n, a, i, o, s, l) {
3983
3983
  f = 0;
3984
3984
  // ;
3985
3985
  case 59 + u:
3986
- y == -1 && (S = kr(S, /\f/g, "")), p > 0 && (gt(S) - d || h === 0 && m === 47) && Pr(p > 32 ? mi(S + ";", n, r, d - 1, l) : mi(kr(S, " ", "") + ";", n, r, d - 2, l), l);
3986
+ y == -1 && (S = kr(S, /\f/g, "")), p > 0 && (ht(S) - d || g === 0 && m === 47) && Pr(p > 32 ? mi(S + ";", n, r, d - 1, l) : mi(kr(S, " ", "") + ";", n, r, d - 2, l), l);
3987
3987
  break;
3988
3988
  // @ ;
3989
3989
  case 59:
3990
3990
  S += ";";
3991
3991
  // { rule/at-rule
3992
3992
  default:
3993
- if (Pr($ = hi(S, t, r, c, u, a, s, _, O = [], C = [], d, i), i), v === 123)
3993
+ if (Pr($ = gi(S, t, r, c, u, a, s, _, O = [], C = [], d, i), i), v === 123)
3994
3994
  if (u === 0)
3995
3995
  Br(S, t, $, $, O, i, d, s, C);
3996
3996
  else {
3997
- switch (g) {
3997
+ switch (h) {
3998
3998
  // c(ontainer)
3999
3999
  case 99:
4000
4000
  if (Bt(S, 3) === 110) break;
@@ -4008,44 +4008,44 @@ function Br(e, t, r, n, a, i, o, s, l) {
4008
4008
  case 109:
4009
4009
  case 115:
4010
4010
  }
4011
- u ? Br(e, $, $, n && Pr(hi(e, $, $, 0, 0, a, s, _, a, O = [], d, C), C), a, C, d, s, n ? O : C) : Br(S, $, $, $, [""], C, 0, s, C);
4011
+ u ? Br(e, $, $, n && Pr(gi(e, $, $, 0, 0, a, s, _, a, O = [], d, C), C), a, C, d, s, n ? O : C) : Br(S, $, $, $, [""], C, 0, s, C);
4012
4012
  }
4013
4013
  }
4014
- c = u = p = 0, h = y = 1, _ = S = "", d = o;
4014
+ c = u = p = 0, g = y = 1, _ = S = "", d = o;
4015
4015
  break;
4016
4016
  // :
4017
4017
  case 58:
4018
- d = 1 + gt(S), p = m;
4018
+ d = 1 + ht(S), p = m;
4019
4019
  default:
4020
- if (h < 1) {
4020
+ if (g < 1) {
4021
4021
  if (v == 123)
4022
- --h;
4023
- else if (v == 125 && h++ == 0 && wd() == 125)
4022
+ --g;
4023
+ else if (v == 125 && g++ == 0 && wd() == 125)
4024
4024
  continue;
4025
4025
  }
4026
- switch (S += wa(v), v * h) {
4026
+ switch (S += wa(v), v * g) {
4027
4027
  // &
4028
4028
  case 38:
4029
4029
  y = u > 0 ? 1 : (S += "\f", -1);
4030
4030
  break;
4031
4031
  // ,
4032
4032
  case 44:
4033
- s[c++] = (gt(S) - 1) * y, y = 1;
4033
+ s[c++] = (ht(S) - 1) * y, y = 1;
4034
4034
  break;
4035
4035
  // @
4036
4036
  case 64:
4037
- xt() === 45 && (S += bn(ct())), g = xt(), u = d = gt(_ = S += Md(Hr())), v++;
4037
+ xt() === 45 && (S += bn(ct())), h = xt(), u = d = ht(_ = S += Md(Hr())), v++;
4038
4038
  break;
4039
4039
  // -
4040
4040
  case 45:
4041
- m === 45 && gt(S) == 2 && (h = 0);
4041
+ m === 45 && ht(S) == 2 && (g = 0);
4042
4042
  }
4043
4043
  }
4044
4044
  return i;
4045
4045
  }
4046
- function hi(e, t, r, n, a, i, o, s, l, c, u, d) {
4047
- for (var g = a - 1, p = a === 0 ? i : [""], m = xd(p), h = 0, f = 0, y = 0; h < n; ++h)
4048
- for (var v = 0, _ = qt(e, g + 1, g = Mo(f = o[h])), O = e; v < m; ++v)
4046
+ function gi(e, t, r, n, a, i, o, s, l, c, u, d) {
4047
+ for (var h = a - 1, p = a === 0 ? i : [""], m = xd(p), g = 0, f = 0, y = 0; g < n; ++g)
4048
+ for (var v = 0, _ = qt(e, h + 1, h = Mo(f = o[g])), O = e; v < m; ++v)
4049
4049
  (O = Ro(f > 0 ? p[v] + " " + _ : kr(_, /&\f/g, p[v]))) && (l[y++] = O);
4050
4050
  return $a(e, t, r, a === 0 ? To : s, l, c, u, d);
4051
4051
  }
@@ -4073,9 +4073,9 @@ function Id(e, t, r, n) {
4073
4073
  case Sd:
4074
4074
  return e.return = e.value + "{" + qn(e.children, n) + "}";
4075
4075
  case To:
4076
- if (!gt(e.value = e.props.join(","))) return "";
4076
+ if (!ht(e.value = e.props.join(","))) return "";
4077
4077
  }
4078
- return gt(r = qn(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
4078
+ return ht(r = qn(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
4079
4079
  }
4080
4080
  function Io(e, t) {
4081
4081
  var r = t.path, n = t.parentSelectors;
@@ -4141,7 +4141,7 @@ var Hd = function e(t) {
4141
4141
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
4142
4142
  root: !0,
4143
4143
  parentSelectors: []
4144
- }, a = n.root, i = n.injectHash, o = n.parentSelectors, s = r.hashId, l = r.layer, c = r.path, u = r.hashPriority, d = r.transformers, g = d === void 0 ? [] : d, p = r.linters, m = p === void 0 ? [] : p, h = "", f = {};
4144
+ }, a = n.root, i = n.injectHash, o = n.parentSelectors, s = r.hashId, l = r.layer, c = r.path, u = r.hashPriority, d = r.transformers, h = d === void 0 ? [] : d, p = r.linters, m = p === void 0 ? [] : p, g = "", f = {};
4145
4145
  function y(O) {
4146
4146
  var C = O.getName(s);
4147
4147
  if (!f[C]) {
@@ -4162,12 +4162,12 @@ var Hd = function e(t) {
4162
4162
  return _.forEach(function(O) {
4163
4163
  var C = typeof O == "string" && !a ? {} : O;
4164
4164
  if (typeof C == "string")
4165
- h += "".concat(C, `
4165
+ g += "".concat(C, `
4166
4166
  `);
4167
4167
  else if (C._keyframe)
4168
4168
  y(C);
4169
4169
  else {
4170
- var $ = g.reduce(function(S, T) {
4170
+ var $ = h.reduce(function(S, T) {
4171
4171
  var M;
4172
4172
  return (T == null || (M = T.visit) === null || M === void 0 ? void 0 : M.call(T, S)) || S;
4173
4173
  }, C);
@@ -4181,7 +4181,7 @@ var Hd = function e(t) {
4181
4181
  injectHash: M,
4182
4182
  parentSelectors: [].concat(X(o), [P])
4183
4183
  }), V = K(D, 2), b = V[0], E = V[1];
4184
- f = j(j({}, f), E), h += "".concat(P).concat(b);
4184
+ f = j(j({}, f), E), g += "".concat(P).concat(b);
4185
4185
  } else {
4186
4186
  let I = function(k, L) {
4187
4187
  process.env.NODE_ENV !== "production" && (J(T) !== "object" || !(T != null && T[Vo])) && [Nd, jd].concat(X(m)).forEach(function(W) {
@@ -4194,7 +4194,7 @@ var Hd = function e(t) {
4194
4194
  var H = k.replace(/[A-Z]/g, function(W) {
4195
4195
  return "-".concat(W.toLowerCase());
4196
4196
  }), B = L;
4197
- !pd[k] && typeof B == "number" && B !== 0 && (B = "".concat(B, "px")), k === "animationName" && L !== null && L !== void 0 && L._keyframe && (y(L), B = L.getName(s)), h += "".concat(H, ":").concat(B, ";");
4197
+ !pd[k] && typeof B == "number" && B !== 0 && (B = "".concat(B, "px")), k === "animationName" && L !== null && L !== void 0 && L._keyframe && (y(L), B = L.getName(s)), g += "".concat(H, ":").concat(B, ";");
4198
4198
  };
4199
4199
  var w, R = (w = T?.value) !== null && w !== void 0 ? w : T;
4200
4200
  J(T) === "object" && T !== null && T !== void 0 && T[Lo] && Array.isArray(R) ? R.forEach(function(k) {
@@ -4203,23 +4203,23 @@ var Hd = function e(t) {
4203
4203
  }
4204
4204
  });
4205
4205
  }
4206
- }), a ? l && (h && (h = "@layer ".concat(l.name, " {").concat(h, "}")), l.dependencies && (f["@layer ".concat(l.name)] = l.dependencies.map(function(O) {
4206
+ }), a ? l && (g && (g = "@layer ".concat(l.name, " {").concat(g, "}")), l.dependencies && (f["@layer ".concat(l.name)] = l.dependencies.map(function(O) {
4207
4207
  return "@layer ".concat(O, ", ").concat(l.name, ";");
4208
4208
  }).join(`
4209
- `))) : h = "{".concat(h, "}"), [h, f];
4209
+ `))) : g = "{".concat(g, "}"), [g, f];
4210
4210
  };
4211
4211
  function Do(e, t) {
4212
- return hr("".concat(e.join("%")).concat(t));
4212
+ return gr("".concat(e.join("%")).concat(t));
4213
4213
  }
4214
4214
  function Bd() {
4215
4215
  return null;
4216
4216
  }
4217
4217
  var ko = "style";
4218
4218
  function Gn(e, t) {
4219
- var r = e.token, n = e.path, a = e.hashId, i = e.layer, o = e.nonce, s = e.clientOnly, l = e.order, c = l === void 0 ? 0 : l, u = F.useContext(_r), d = u.autoClear, g = u.mock, p = u.defaultCache, m = u.hashPriority, h = u.container, f = u.ssrInline, y = u.transformers, v = u.linters, _ = u.cache, O = u.layer, C = r._tokenKey, $ = [C];
4219
+ var r = e.token, n = e.path, a = e.hashId, i = e.layer, o = e.nonce, s = e.clientOnly, l = e.order, c = l === void 0 ? 0 : l, u = F.useContext(_r), d = u.autoClear, h = u.mock, p = u.defaultCache, m = u.hashPriority, g = u.container, f = u.ssrInline, y = u.transformers, v = u.linters, _ = u.cache, O = u.layer, C = r._tokenKey, $ = [C];
4220
4220
  O && $.push("layer"), $.push.apply($, X(n));
4221
4221
  var S = zn;
4222
- process.env.NODE_ENV !== "production" && g !== void 0 && (S = g === "client");
4222
+ process.env.NODE_ENV !== "production" && h !== void 0 && (S = h === "client");
4223
4223
  var T = Ea(
4224
4224
  ko,
4225
4225
  $,
@@ -4246,7 +4246,7 @@ function Gn(e, t) {
4246
4246
  var E = K(V, 3), w = E[2];
4247
4247
  (b || d) && zn && Eo(w, {
4248
4248
  mark: st,
4249
- attachTo: h
4249
+ attachTo: g
4250
4250
  });
4251
4251
  },
4252
4252
  // Effect: Inject style here
@@ -4258,7 +4258,7 @@ function Gn(e, t) {
4258
4258
  var I = {
4259
4259
  mark: st,
4260
4260
  prepend: O ? !1 : "queue",
4261
- attachTo: h,
4261
+ attachTo: g,
4262
4262
  priority: c
4263
4263
  }, k = typeof o == "function" ? o() : o;
4264
4264
  k && (I.csp = {
@@ -4289,22 +4289,22 @@ function Gn(e, t) {
4289
4289
  };
4290
4290
  }
4291
4291
  var zd = function(t, r, n) {
4292
- var a = K(t, 6), i = a[0], o = a[1], s = a[2], l = a[3], c = a[4], u = a[5], d = n || {}, g = d.plain;
4292
+ var a = K(t, 6), i = a[0], o = a[1], s = a[2], l = a[3], c = a[4], u = a[5], d = n || {}, h = d.plain;
4293
4293
  if (c)
4294
4294
  return null;
4295
4295
  var p = i, m = {
4296
4296
  "data-rc-order": "prependQueue",
4297
4297
  "data-rc-priority": "".concat(u)
4298
4298
  };
4299
- return p = Yr(i, o, s, m, g), l && Object.keys(l).forEach(function(h) {
4300
- if (!r[h]) {
4301
- r[h] = !0;
4302
- var f = zr(l[h]), y = Yr(f, o, "_effect-".concat(h), m, g);
4303
- h.startsWith("@layer") ? p = y + p : p += y;
4299
+ return p = Yr(i, o, s, m, h), l && Object.keys(l).forEach(function(g) {
4300
+ if (!r[g]) {
4301
+ r[g] = !0;
4302
+ var f = zr(l[g]), y = Yr(f, o, "_effect-".concat(g), m, h);
4303
+ g.startsWith("@layer") ? p = y + p : p += y;
4304
4304
  }
4305
4305
  }), [u, s, p];
4306
4306
  }, Ho = "cssVar", Wd = function(t, r) {
4307
- var n = t.key, a = t.prefix, i = t.unitless, o = t.ignore, s = t.token, l = t.scope, c = l === void 0 ? "" : l, u = mt(_r), d = u.cache.instanceId, g = u.container, p = s._tokenKey, m = [].concat(X(t.path), [n, c, p]), h = Ea(Ho, m, function() {
4307
+ var n = t.key, a = t.prefix, i = t.unitless, o = t.ignore, s = t.token, l = t.scope, c = l === void 0 ? "" : l, u = mt(_r), d = u.cache.instanceId, h = u.container, p = s._tokenKey, m = [].concat(X(t.path), [n, c, p]), g = Ea(Ho, m, function() {
4308
4308
  var f = r(), y = $o(f, n, {
4309
4309
  prefix: a,
4310
4310
  unitless: i,
@@ -4316,7 +4316,7 @@ var zd = function(t, r, n) {
4316
4316
  var y = K(f, 3), v = y[2];
4317
4317
  zn && Eo(v, {
4318
4318
  mark: st,
4319
- attachTo: g
4319
+ attachTo: h
4320
4320
  });
4321
4321
  }, function(f) {
4322
4322
  var y = K(f, 3), v = y[1], _ = y[2];
@@ -4324,13 +4324,13 @@ var zd = function(t, r, n) {
4324
4324
  var O = Tt(v, _, {
4325
4325
  mark: st,
4326
4326
  prepend: "queue",
4327
- attachTo: g,
4327
+ attachTo: h,
4328
4328
  priority: -999
4329
4329
  });
4330
4330
  O[Ct] = d, O.setAttribute(Ut, n);
4331
4331
  }
4332
4332
  });
4333
- return h;
4333
+ return g;
4334
4334
  }, Ud = function(t, r, n) {
4335
4335
  var a = K(t, 4), i = a[1], o = a[2], s = a[3], l = n || {}, c = l.plain;
4336
4336
  if (!i)
@@ -4338,8 +4338,8 @@ var zd = function(t, r, n) {
4338
4338
  var u = -999, d = {
4339
4339
  "data-rc-order": "prependQueue",
4340
4340
  "data-rc-priority": "".concat(u)
4341
- }, g = Yr(i, s, o, d, c);
4342
- return [u, o, g];
4341
+ }, h = Yr(i, s, o, d, c);
4342
+ return [u, o, h];
4343
4343
  };
4344
4344
  x(x(x({}, ko, zd), Oo, vd), Ho, Ud);
4345
4345
  function Vt(e) {
@@ -4781,8 +4781,8 @@ class Ae {
4781
4781
  a
4782
4782
  }) {
4783
4783
  if (this._h = t % 360, this._s = r, this._l = n, this.a = typeof a == "number" ? a : 1, r <= 0) {
4784
- const g = De(n * 255);
4785
- this.r = g, this.g = g, this.b = g;
4784
+ const h = De(n * 255);
4785
+ this.r = h, this.g = h, this.b = h;
4786
4786
  }
4787
4787
  let i = 0, o = 0, s = 0;
4788
4788
  const l = t / 60, c = (1 - Math.abs(2 * n - 1)) * r, u = c * (1 - Math.abs(l % 2 - 1));
@@ -4986,8 +4986,8 @@ function Zd(e, {
4986
4986
  colorPrimary: s,
4987
4987
  colorBgBase: l,
4988
4988
  colorTextBase: c
4989
- } = e, u = t(s), d = t(n), g = t(a), p = t(i), m = t(o), h = r(l, c), f = e.colorLink || e.colorInfo, y = t(f), v = new Ae(p[1]).mix(new Ae(p[3]), 50).toHexString();
4990
- return Object.assign(Object.assign({}, h), {
4989
+ } = e, u = t(s), d = t(n), h = t(a), p = t(i), m = t(o), g = r(l, c), f = e.colorLink || e.colorInfo, y = t(f), v = new Ae(p[1]).mix(new Ae(p[3]), 50).toHexString();
4990
+ return Object.assign(Object.assign({}, g), {
4991
4991
  colorPrimaryBg: u[1],
4992
4992
  colorPrimaryBgHover: u[2],
4993
4993
  colorPrimaryBorder: u[3],
@@ -5020,16 +5020,16 @@ function Zd(e, {
5020
5020
  colorErrorTextHover: p[8],
5021
5021
  colorErrorText: p[9],
5022
5022
  colorErrorTextActive: p[10],
5023
- colorWarningBg: g[1],
5024
- colorWarningBgHover: g[2],
5025
- colorWarningBorder: g[3],
5026
- colorWarningBorderHover: g[4],
5027
- colorWarningHover: g[4],
5028
- colorWarning: g[6],
5029
- colorWarningActive: g[7],
5030
- colorWarningTextHover: g[8],
5031
- colorWarningText: g[9],
5032
- colorWarningTextActive: g[10],
5023
+ colorWarningBg: h[1],
5024
+ colorWarningBgHover: h[2],
5025
+ colorWarningBorder: h[3],
5026
+ colorWarningBorderHover: h[4],
5027
+ colorWarningHover: h[4],
5028
+ colorWarning: h[6],
5029
+ colorWarningActive: h[7],
5030
+ colorWarningTextHover: h[8],
5031
+ colorWarningText: h[9],
5032
+ colorWarningTextActive: h[10],
5033
5033
  colorInfoBg: m[1],
5034
5034
  colorInfoBgHover: m[2],
5035
5035
  colorInfoBorder: m[3],
@@ -5215,9 +5215,9 @@ const Qo = Bn(uf), oa = {
5215
5215
  getPrefixCls: ff,
5216
5216
  iconPrefixCls: Fa
5217
5217
  }), {
5218
- Consumer: Wh
5218
+ Consumer: Wg
5219
5219
  } = Et, Ei = {};
5220
- function gf(e) {
5220
+ function hf(e) {
5221
5221
  const t = F.useContext(Et), {
5222
5222
  getPrefixCls: r,
5223
5223
  direction: n,
@@ -5232,7 +5232,7 @@ function gf(e) {
5232
5232
  getPopupContainer: a
5233
5233
  });
5234
5234
  }
5235
- const hf = `-ant-${Date.now()}-${Math.random()}`;
5235
+ const gf = `-ant-${Date.now()}-${Math.random()}`;
5236
5236
  function mf(e, t) {
5237
5237
  const r = {}, n = (o, s) => {
5238
5238
  let l = o.clone();
@@ -5259,7 +5259,7 @@ function mf(e, t) {
5259
5259
  }
5260
5260
  function vf(e, t) {
5261
5261
  const r = mf(e, t);
5262
- bt() ? Tt(r, `${hf}-dynamic-theme`) : process.env.NODE_ENV !== "production" && Cr(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
5262
+ bt() ? Tt(r, `${gf}-dynamic-theme`) : process.env.NODE_ENV !== "production" && Cr(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
5263
5263
  }
5264
5264
  const Jr = /* @__PURE__ */ F.createContext(!1), pf = ({
5265
5265
  children: e,
@@ -5528,37 +5528,37 @@ var Pf = function() {
5528
5528
  };
5529
5529
  function Mf(e) {
5530
5530
  var t = e.useCSP, r = t === void 0 ? Pf : t, n = e.useToken, a = e.usePrefix, i = e.getResetStyles, o = e.getCommonStyle, s = e.getCompUnitless;
5531
- function l(g, p, m, h) {
5532
- var f = Array.isArray(g) ? g[0] : g;
5531
+ function l(h, p, m, g) {
5532
+ var f = Array.isArray(h) ? h[0] : h;
5533
5533
  function y(T) {
5534
5534
  return "".concat(String(f)).concat(T.slice(0, 1).toUpperCase()).concat(T.slice(1));
5535
5535
  }
5536
- var v = h?.unitless || {}, _ = typeof s == "function" ? s(g) : {}, O = j(j({}, _), {}, x({}, y("zIndexPopup"), !0));
5536
+ var v = g?.unitless || {}, _ = typeof s == "function" ? s(h) : {}, O = j(j({}, _), {}, x({}, y("zIndexPopup"), !0));
5537
5537
  Object.keys(v).forEach(function(T) {
5538
5538
  O[y(T)] = v[T];
5539
5539
  });
5540
- var C = j(j({}, h), {}, {
5540
+ var C = j(j({}, g), {}, {
5541
5541
  unitless: O,
5542
5542
  prefixToken: y
5543
- }), $ = u(g, p, m, C), S = c(f, m, C);
5543
+ }), $ = u(h, p, m, C), S = c(f, m, C);
5544
5544
  return function(T) {
5545
5545
  var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : T, P = $(T, M), A = K(P, 2), D = A[1], V = S(M), b = K(V, 2), E = b[0], w = b[1];
5546
5546
  return [E, D, w];
5547
5547
  };
5548
5548
  }
5549
- function c(g, p, m) {
5550
- var h = m.unitless, f = m.injectStyle, y = f === void 0 ? !0 : f, v = m.prefixToken, _ = m.ignore, O = function(S) {
5549
+ function c(h, p, m) {
5550
+ var g = m.unitless, f = m.injectStyle, y = f === void 0 ? !0 : f, v = m.prefixToken, _ = m.ignore, O = function(S) {
5551
5551
  var T = S.rootCls, M = S.cssVar, P = M === void 0 ? {} : M, A = n(), D = A.realToken;
5552
5552
  return Wd({
5553
- path: [g],
5553
+ path: [h],
5554
5554
  prefix: P.prefix,
5555
5555
  key: P.key,
5556
- unitless: h,
5556
+ unitless: g,
5557
5557
  ignore: _,
5558
5558
  token: D,
5559
5559
  scope: T
5560
5560
  }, function() {
5561
- var V = Fi(g, D, p), b = $i(g, D, V, {
5561
+ var V = Fi(h, D, p), b = $i(h, D, V, {
5562
5562
  deprecatedTokens: m?.deprecatedTokens
5563
5563
  });
5564
5564
  return Object.keys(V).forEach(function(E) {
@@ -5571,20 +5571,20 @@ function Mf(e) {
5571
5571
  return y && M ? /* @__PURE__ */ ne.createElement(ne.Fragment, null, /* @__PURE__ */ ne.createElement(O, {
5572
5572
  rootCls: S,
5573
5573
  cssVar: M,
5574
- component: g
5574
+ component: h
5575
5575
  }), P) : P;
5576
5576
  }, M?.key];
5577
5577
  };
5578
5578
  return C;
5579
5579
  }
5580
- function u(g, p, m) {
5581
- var h = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, f = Array.isArray(g) ? g : [g, g], y = K(f, 1), v = y[0], _ = f.join("-"), O = e.layer || {
5580
+ function u(h, p, m) {
5581
+ var g = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, f = Array.isArray(h) ? h : [h, h], y = K(f, 1), v = y[0], _ = f.join("-"), O = e.layer || {
5582
5582
  name: "antd"
5583
5583
  };
5584
5584
  return function(C) {
5585
5585
  var $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : C, S = n(), T = S.theme, M = S.realToken, P = S.hashId, A = S.token, D = S.cssVar, V = a(), b = V.rootPrefixCls, E = V.iconPrefixCls, w = r(), R = D ? "css" : "js", I = Tf(function() {
5586
5586
  var U = /* @__PURE__ */ new Set();
5587
- return D && Object.keys(h.unitless || {}).forEach(function(ee) {
5587
+ return D && Object.keys(g.unitless || {}).forEach(function(ee) {
5588
5588
  U.add(Dr(ee, D.prefix)), U.add(Dr(ee, wi(v, D.prefix)));
5589
5589
  }), xf(R, U);
5590
5590
  }, [R, v, D?.prefix]), k = $f(R), L = k.max, H = k.min, B = {
@@ -5594,10 +5594,10 @@ function Mf(e) {
5594
5594
  nonce: function() {
5595
5595
  return w.nonce;
5596
5596
  },
5597
- clientOnly: h.clientOnly,
5597
+ clientOnly: g.clientOnly,
5598
5598
  layer: O,
5599
5599
  // antd is always at top of styles
5600
- order: h.order || -999
5600
+ order: g.order || -999
5601
5601
  };
5602
5602
  typeof i == "function" && Gn(j(j({}, B), {}, {
5603
5603
  clientOnly: !1,
@@ -5614,10 +5614,10 @@ function Mf(e) {
5614
5614
  var W = Gn(j(j({}, B), {}, {
5615
5615
  path: [_, C, E]
5616
5616
  }), function() {
5617
- if (h.injectStyle === !1)
5617
+ if (g.injectStyle === !1)
5618
5618
  return [];
5619
5619
  var U = wf(A), ee = U.token, ie = U.flush, fe = Fi(v, M, m), le = ".".concat(C), ue = $i(v, M, fe, {
5620
- deprecatedTokens: h.deprecatedTokens
5620
+ deprecatedTokens: g.deprecatedTokens
5621
5621
  });
5622
5622
  D && fe && J(fe) === "object" && Object.keys(fe).forEach(function(Pe) {
5623
5623
  fe[Pe] = "var(".concat(Dr(Pe, wi(v, D.prefix)), ")");
@@ -5639,22 +5639,22 @@ function Mf(e) {
5639
5639
  iconPrefixCls: E
5640
5640
  });
5641
5641
  ie(v, ue);
5642
- var ye = typeof o == "function" ? o(oe, C, $, h.resetFont) : null;
5643
- return [h.resetStyle === !1 ? null : ye, ve];
5642
+ var ye = typeof o == "function" ? o(oe, C, $, g.resetFont) : null;
5643
+ return [g.resetStyle === !1 ? null : ye, ve];
5644
5644
  });
5645
5645
  return [W, P];
5646
5646
  };
5647
5647
  }
5648
- function d(g, p, m) {
5649
- var h = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, f = u(g, p, m, j({
5648
+ function d(h, p, m) {
5649
+ var g = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, f = u(h, p, m, j({
5650
5650
  resetStyle: !1,
5651
5651
  // Sub Style should default after root one
5652
5652
  order: -998
5653
- }, h)), y = function(_) {
5653
+ }, g)), y = function(_) {
5654
5654
  var O = _.prefixCls, C = _.rootCls, $ = C === void 0 ? O : C;
5655
5655
  return f(O, $), null;
5656
5656
  };
5657
- return process.env.NODE_ENV !== "production" && (y.displayName = "SubStyle_".concat(String(Array.isArray(g) ? g.join(".") : g))), y;
5657
+ return process.env.NODE_ENV !== "production" && (y.displayName = "SubStyle_".concat(String(Array.isArray(h) ? h.join(".") : h))), y;
5658
5658
  }
5659
5659
  return {
5660
5660
  genStyleHooks: l,
@@ -5681,12 +5681,12 @@ function Rr(e, t) {
5681
5681
  b: l
5682
5682
  } = new Ae(t).toRgb();
5683
5683
  for (let c = 0.01; c <= 1; c += 0.01) {
5684
- const u = Math.round((r - o * (1 - c)) / c), d = Math.round((n - s * (1 - c)) / c), g = Math.round((a - l * (1 - c)) / c);
5685
- if (En(u) && En(d) && En(g))
5684
+ const u = Math.round((r - o * (1 - c)) / c), d = Math.round((n - s * (1 - c)) / c), h = Math.round((a - l * (1 - c)) / c);
5685
+ if (En(u) && En(d) && En(h))
5686
5686
  return new Ae({
5687
5687
  r: u,
5688
5688
  g: d,
5689
- b: g,
5689
+ b: h,
5690
5690
  a: Math.round(c * 100) / 100
5691
5691
  }).toRgbString();
5692
5692
  }
@@ -5708,8 +5708,8 @@ function rs(e) {
5708
5708
  const {
5709
5709
  override: t
5710
5710
  } = e, r = Af(e, ["override"]), n = Object.assign({}, t);
5711
- Object.keys(vr).forEach((g) => {
5712
- delete n[g];
5711
+ Object.keys(vr).forEach((h) => {
5712
+ delete n[h];
5713
5713
  });
5714
5714
  const a = Object.assign(Object.assign({}, r), n), i = 480, o = 576, s = 768, l = 992, c = 1200, u = 1600;
5715
5715
  return a.motion === !1 && (a.motionDurationFast = "0s", a.motionDurationMid = "0s", a.motionDurationSlow = "0s"), Object.assign(Object.assign(Object.assign({}, a), {
@@ -6095,18 +6095,18 @@ function Wf(e, t, r) {
6095
6095
  Object.keys(e.components || {}).forEach((m) => {
6096
6096
  d[m] = Object.assign(Object.assign({}, d[m]), e.components[m]);
6097
6097
  });
6098
- const g = `css-var-${l.replace(/:/g, "")}`, p = ((c = o.cssVar) !== null && c !== void 0 ? c : s.cssVar) && Object.assign(Object.assign(Object.assign({
6098
+ const h = `css-var-${l.replace(/:/g, "")}`, p = ((c = o.cssVar) !== null && c !== void 0 ? c : s.cssVar) && Object.assign(Object.assign(Object.assign({
6099
6099
  prefix: r?.prefixCls
6100
6100
  }, typeof s.cssVar == "object" ? s.cssVar : {}), typeof o.cssVar == "object" ? o.cssVar : {}), {
6101
- key: typeof o.cssVar == "object" && ((u = o.cssVar) === null || u === void 0 ? void 0 : u.key) || g
6101
+ key: typeof o.cssVar == "object" && ((u = o.cssVar) === null || u === void 0 ? void 0 : u.key) || h
6102
6102
  });
6103
6103
  return Object.assign(Object.assign(Object.assign({}, s), o), {
6104
6104
  token: Object.assign(Object.assign({}, s.token), o.token),
6105
6105
  components: d,
6106
6106
  cssVar: p
6107
6107
  });
6108
- }, [o, s], (c, u) => c.some((d, g) => {
6109
- const p = u[g];
6108
+ }, [o, s], (c, u) => c.some((d, h) => {
6109
+ const p = u[h];
6110
6110
  return !Tn(d, p, !0);
6111
6111
  }));
6112
6112
  }
@@ -6186,7 +6186,7 @@ function ds(e) {
6186
6186
  }
6187
6187
  return "";
6188
6188
  }
6189
- var fs = ds("animationend"), gs = ds("transitionend"), hs = !!(fs && gs), Ni = fs || "animationend", ji = gs || "transitionend";
6189
+ var fs = ds("animationend"), hs = ds("transitionend"), gs = !!(fs && hs), Ni = fs || "animationend", ji = hs || "transitionend";
6190
6190
  function Vi(e, t) {
6191
6191
  if (!e) return null;
6192
6192
  if (J(e) === "object") {
@@ -6197,8 +6197,8 @@ function Vi(e, t) {
6197
6197
  }
6198
6198
  return "".concat(e, "-").concat(t);
6199
6199
  }
6200
- const eg = (function(e) {
6201
- var t = ge();
6200
+ const eh = (function(e) {
6201
+ var t = he();
6202
6202
  function r(a) {
6203
6203
  a && (a.removeEventListener(ji, e), a.removeEventListener(Ni, e));
6204
6204
  }
@@ -6248,7 +6248,7 @@ Zr.cancel = function(e) {
6248
6248
  process.env.NODE_ENV !== "production" && (Zr.ids = function() {
6249
6249
  return sn;
6250
6250
  });
6251
- const tg = (function() {
6251
+ const th = (function() {
6252
6252
  var e = F.useRef(null);
6253
6253
  function t() {
6254
6254
  Zr.cancel(e.current);
@@ -6271,24 +6271,24 @@ const tg = (function() {
6271
6271
  };
6272
6272
  }, []), [r, t];
6273
6273
  });
6274
- var rg = [ot, Dt, kt, Ta], ng = [ot, ls], bs = !1, ag = !0;
6274
+ var rh = [ot, Dt, kt, Ta], nh = [ot, ls], bs = !1, ah = !0;
6275
6275
  function Ss(e) {
6276
6276
  return e === kt || e === Ta;
6277
6277
  }
6278
- const ig = (function(e, t, r) {
6279
- var n = dr(Ai), a = K(n, 2), i = a[0], o = a[1], s = tg(), l = K(s, 2), c = l[0], u = l[1];
6278
+ const ih = (function(e, t, r) {
6279
+ var n = dr(Ai), a = K(n, 2), i = a[0], o = a[1], s = th(), l = K(s, 2), c = l[0], u = l[1];
6280
6280
  function d() {
6281
6281
  o(ot, !0);
6282
6282
  }
6283
- var g = t ? ng : rg;
6283
+ var h = t ? nh : rh;
6284
6284
  return ms(function() {
6285
6285
  if (i !== Ai && i !== Ta) {
6286
- var p = g.indexOf(i), m = g[p + 1], h = r(i);
6287
- h === bs ? o(m, !0) : m && c(function(f) {
6286
+ var p = h.indexOf(i), m = h[p + 1], g = r(i);
6287
+ g === bs ? o(m, !0) : m && c(function(f) {
6288
6288
  function y() {
6289
6289
  f.isCanceled() || o(m, !0);
6290
6290
  }
6291
- h === !0 ? y() : Promise.resolve(h).then(y);
6291
+ g === !0 ? y() : Promise.resolve(g).then(y);
6292
6292
  });
6293
6293
  }
6294
6294
  }, [e, i]), F.useEffect(function() {
@@ -6297,12 +6297,12 @@ const ig = (function(e, t, r) {
6297
6297
  };
6298
6298
  }, []), [d, i];
6299
6299
  });
6300
- function og(e, t, r, n) {
6301
- var a = n.motionEnter, i = a === void 0 ? !0 : a, o = n.motionAppear, s = o === void 0 ? !0 : o, l = n.motionLeave, c = l === void 0 ? !0 : l, u = n.motionDeadline, d = n.motionLeaveImmediately, g = n.onAppearPrepare, p = n.onEnterPrepare, m = n.onLeavePrepare, h = n.onAppearStart, f = n.onEnterStart, y = n.onLeaveStart, v = n.onAppearActive, _ = n.onEnterActive, O = n.onLeaveActive, C = n.onAppearEnd, $ = n.onEnterEnd, S = n.onLeaveEnd, T = n.onVisibleChanged, M = dr(), P = K(M, 2), A = P[0], D = P[1], V = Yf(_t), b = K(V, 2), E = b[0], w = b[1], R = dr(null), I = K(R, 2), k = I[0], L = I[1], H = E(), B = ge(!1), W = ge(null);
6300
+ function oh(e, t, r, n) {
6301
+ var a = n.motionEnter, i = a === void 0 ? !0 : a, o = n.motionAppear, s = o === void 0 ? !0 : o, l = n.motionLeave, c = l === void 0 ? !0 : l, u = n.motionDeadline, d = n.motionLeaveImmediately, h = n.onAppearPrepare, p = n.onEnterPrepare, m = n.onLeavePrepare, g = n.onAppearStart, f = n.onEnterStart, y = n.onLeaveStart, v = n.onAppearActive, _ = n.onEnterActive, O = n.onLeaveActive, C = n.onAppearEnd, $ = n.onEnterEnd, S = n.onLeaveEnd, T = n.onVisibleChanged, M = dr(), P = K(M, 2), A = P[0], D = P[1], V = Yf(_t), b = K(V, 2), E = b[0], w = b[1], R = dr(null), I = K(R, 2), k = I[0], L = I[1], H = E(), B = he(!1), W = he(null);
6302
6302
  function U() {
6303
6303
  return r();
6304
6304
  }
6305
- var ee = ge(!1);
6305
+ var ee = he(!1);
6306
6306
  function ie() {
6307
6307
  w(_t), L(null, !0);
6308
6308
  }
@@ -6315,10 +6315,10 @@ function og(e, t, r, n) {
6315
6315
  Ee === Ar && re ? be = C?.(se, xe) : Ee === Ir && re ? be = $?.(se, xe) : Ee === Nr && re && (be = S?.(se, xe)), re && be !== !1 && ie();
6316
6316
  }
6317
6317
  }
6318
- }), le = eg(fe), ue = K(le, 1), oe = ue[0], ve = function(Ee) {
6318
+ }), le = eh(fe), ue = K(le, 1), oe = ue[0], ve = function(Ee) {
6319
6319
  switch (Ee) {
6320
6320
  case Ar:
6321
- return x(x(x({}, ot, g), Dt, h), kt, v);
6321
+ return x(x(x({}, ot, h), Dt, g), kt, v);
6322
6322
  case Ir:
6323
6323
  return x(x(x({}, ot, p), Dt, f), kt, _);
6324
6324
  case Nr:
@@ -6328,7 +6328,7 @@ function og(e, t, r, n) {
6328
6328
  }
6329
6329
  }, ye = F.useMemo(function() {
6330
6330
  return ve(H);
6331
- }, [H]), Pe = ig(H, !e, function(xe) {
6331
+ }, [H]), Pe = ih(H, !e, function(xe) {
6332
6332
  if (xe === ot) {
6333
6333
  var Ee = ye[ot];
6334
6334
  return Ee ? Ee(U()) : bs;
@@ -6341,10 +6341,10 @@ function og(e, t, r, n) {
6341
6341
  fe({
6342
6342
  deadline: !0
6343
6343
  });
6344
- }, u))), Se === ls && ie(), ag;
6344
+ }, u))), Se === ls && ie(), ah;
6345
6345
  }), z = K(Pe, 2), je = z[0], Se = z[1], ke = Ss(Se);
6346
6346
  ee.current = ke;
6347
- var rt = ge(null);
6347
+ var rt = he(null);
6348
6348
  ms(function() {
6349
6349
  if (!(B.current && rt.current === t)) {
6350
6350
  D(t);
@@ -6374,14 +6374,14 @@ function og(e, t, r, n) {
6374
6374
  transition: "none"
6375
6375
  }, Oe)), [H, Se, Oe, A ?? t];
6376
6376
  }
6377
- function sg(e) {
6377
+ function sh(e) {
6378
6378
  var t = e;
6379
6379
  J(e) === "object" && (t = e.transitionSupport);
6380
6380
  function r(a, i) {
6381
6381
  return !!(a.motionName && t && i !== !1);
6382
6382
  }
6383
6383
  var n = /* @__PURE__ */ F.forwardRef(function(a, i) {
6384
- var o = a.visible, s = o === void 0 ? !0 : o, l = a.removeOnLeave, c = l === void 0 ? !0 : l, u = a.forceRender, d = a.children, g = a.motionName, p = a.leavedClassName, m = a.eventProps, h = F.useContext(cs), f = h.motion, y = r(a, f), v = ge(), _ = ge();
6384
+ var o = a.visible, s = o === void 0 ? !0 : o, l = a.removeOnLeave, c = l === void 0 ? !0 : l, u = a.forceRender, d = a.children, h = a.motionName, p = a.leavedClassName, m = a.eventProps, g = F.useContext(cs), f = g.motion, y = r(a, f), v = he(), _ = he();
6385
6385
  function O() {
6386
6386
  try {
6387
6387
  return v.current instanceof HTMLElement ? v.current : qf(_.current);
@@ -6389,7 +6389,7 @@ function sg(e) {
6389
6389
  return null;
6390
6390
  }
6391
6391
  }
6392
- var C = og(y, s, O, a), $ = K(C, 4), S = $[0], T = $[1], M = $[2], P = $[3], A = F.useRef(P);
6392
+ var C = oh(y, s, O, a), $ = K(C, 4), S = $[0], T = $[1], M = $[2], P = $[3], A = F.useRef(P);
6393
6393
  P && (A.current = !0);
6394
6394
  var D = F.useCallback(function(I) {
6395
6395
  v.current = I, oo(i, I);
@@ -6409,9 +6409,9 @@ function sg(e) {
6409
6409
  else {
6410
6410
  var E;
6411
6411
  T === ot ? E = "prepare" : Ss(T) ? E = "active" : T === Dt && (E = "start");
6412
- var w = Vi(g, "".concat(S, "-").concat(E));
6412
+ var w = Vi(h, "".concat(S, "-").concat(E));
6413
6413
  V = d(j(j({}, b), {}, {
6414
- className: Re(Vi(g, S), x(x({}, w, w && E), g, typeof g == "string")),
6414
+ className: Re(Vi(h, S), x(x({}, w, w && E), h, typeof h == "string")),
6415
6415
  style: M
6416
6416
  }), D);
6417
6417
  }
@@ -6427,9 +6427,9 @@ function sg(e) {
6427
6427
  });
6428
6428
  return n.displayName = "CSSMotion", n;
6429
6429
  }
6430
- const cg = sg(hs);
6430
+ const ch = sh(gs);
6431
6431
  var la = "add", ua = "keep", da = "remove", wn = "removed";
6432
- function lg(e) {
6432
+ function lh(e) {
6433
6433
  var t;
6434
6434
  return e && J(e) === "object" && "key" in e ? t = e : t = {
6435
6435
  key: e
@@ -6439,19 +6439,19 @@ function lg(e) {
6439
6439
  }
6440
6440
  function fa() {
6441
6441
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
6442
- return e.map(lg);
6442
+ return e.map(lh);
6443
6443
  }
6444
- function ug() {
6444
+ function uh() {
6445
6445
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = [], n = 0, a = t.length, i = fa(e), o = fa(t);
6446
6446
  i.forEach(function(c) {
6447
6447
  for (var u = !1, d = n; d < a; d += 1) {
6448
- var g = o[d];
6449
- if (g.key === c.key) {
6448
+ var h = o[d];
6449
+ if (h.key === c.key) {
6450
6450
  n < d && (r = r.concat(o.slice(n, d).map(function(p) {
6451
6451
  return j(j({}, p), {}, {
6452
6452
  status: la
6453
6453
  });
6454
- })), n = d), r.push(j(j({}, g), {}, {
6454
+ })), n = d), r.push(j(j({}, h), {}, {
6455
6455
  status: ua
6456
6456
  })), n += 1, u = !0;
6457
6457
  break;
@@ -6475,16 +6475,16 @@ function ug() {
6475
6475
  });
6476
6476
  return l.forEach(function(c) {
6477
6477
  r = r.filter(function(u) {
6478
- var d = u.key, g = u.status;
6479
- return d !== c || g !== da;
6478
+ var d = u.key, h = u.status;
6479
+ return d !== c || h !== da;
6480
6480
  }), r.forEach(function(u) {
6481
6481
  u.key === c && (u.status = ua);
6482
6482
  });
6483
6483
  }), r;
6484
6484
  }
6485
- var dg = ["component", "children", "onVisibleChanged", "onAllRemoved"], fg = ["status"], gg = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
6486
- function hg(e) {
6487
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : cg, r = /* @__PURE__ */ (function(n) {
6485
+ var dh = ["component", "children", "onVisibleChanged", "onAllRemoved"], fh = ["status"], hh = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
6486
+ function gh(e) {
6487
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ch, r = /* @__PURE__ */ (function(n) {
6488
6488
  Yt(i, n);
6489
6489
  var a = Qt(i);
6490
6490
  function i() {
@@ -6496,39 +6496,39 @@ function hg(e) {
6496
6496
  keyEntities: []
6497
6497
  }), x(ae(o), "removeKey", function(u) {
6498
6498
  o.setState(function(d) {
6499
- var g = d.keyEntities.map(function(p) {
6499
+ var h = d.keyEntities.map(function(p) {
6500
6500
  return p.key !== u ? p : j(j({}, p), {}, {
6501
6501
  status: wn
6502
6502
  });
6503
6503
  });
6504
6504
  return {
6505
- keyEntities: g
6505
+ keyEntities: h
6506
6506
  };
6507
6507
  }, function() {
6508
- var d = o.state.keyEntities, g = d.filter(function(p) {
6508
+ var d = o.state.keyEntities, h = d.filter(function(p) {
6509
6509
  var m = p.status;
6510
6510
  return m !== wn;
6511
6511
  }).length;
6512
- g === 0 && o.props.onAllRemoved && o.props.onAllRemoved();
6512
+ h === 0 && o.props.onAllRemoved && o.props.onAllRemoved();
6513
6513
  });
6514
6514
  }), o;
6515
6515
  }
6516
6516
  return Ue(i, [{
6517
6517
  key: "render",
6518
6518
  value: function() {
6519
- var s = this, l = this.state.keyEntities, c = this.props, u = c.component, d = c.children, g = c.onVisibleChanged;
6519
+ var s = this, l = this.state.keyEntities, c = this.props, u = c.component, d = c.children, h = c.onVisibleChanged;
6520
6520
  c.onAllRemoved;
6521
- var p = vt(c, dg), m = u || F.Fragment, h = {};
6522
- return gg.forEach(function(f) {
6523
- h[f] = p[f], delete p[f];
6521
+ var p = vt(c, dh), m = u || F.Fragment, g = {};
6522
+ return hh.forEach(function(f) {
6523
+ g[f] = p[f], delete p[f];
6524
6524
  }), delete p.keys, /* @__PURE__ */ F.createElement(m, p, l.map(function(f, y) {
6525
- var v = f.status, _ = vt(f, fg), O = v === la || v === ua;
6526
- return /* @__PURE__ */ F.createElement(t, lt({}, h, {
6525
+ var v = f.status, _ = vt(f, fh), O = v === la || v === ua;
6526
+ return /* @__PURE__ */ F.createElement(t, lt({}, g, {
6527
6527
  key: _.key,
6528
6528
  visible: O,
6529
6529
  eventProps: _,
6530
6530
  onVisibleChanged: function($) {
6531
- g?.($, {
6531
+ h?.($, {
6532
6532
  key: _.key
6533
6533
  }), $ || s.removeKey(_.key);
6534
6534
  }
@@ -6542,11 +6542,11 @@ function hg(e) {
6542
6542
  }], [{
6543
6543
  key: "getDerivedStateFromProps",
6544
6544
  value: function(s, l) {
6545
- var c = s.keys, u = l.keyEntities, d = fa(c), g = ug(u, d);
6545
+ var c = s.keys, u = l.keyEntities, d = fa(c), h = uh(u, d);
6546
6546
  return {
6547
- keyEntities: g.filter(function(p) {
6548
- var m = u.find(function(h) {
6549
- var f = h.key;
6547
+ keyEntities: h.filter(function(p) {
6548
+ var m = u.find(function(g) {
6549
+ var f = g.key;
6550
6550
  return p.key === f;
6551
6551
  });
6552
6552
  return !(m && m.status === wn && p.status === da);
@@ -6559,16 +6559,16 @@ function hg(e) {
6559
6559
  component: "div"
6560
6560
  }), r;
6561
6561
  }
6562
- hg(hs);
6563
- const ga = /* @__PURE__ */ F.createContext(!0);
6564
- process.env.NODE_ENV !== "production" && (ga.displayName = "MotionCacheContext");
6565
- function mg(e) {
6566
- const t = F.useContext(ga), {
6562
+ gh(gs);
6563
+ const ha = /* @__PURE__ */ F.createContext(!0);
6564
+ process.env.NODE_ENV !== "production" && (ha.displayName = "MotionCacheContext");
6565
+ function mh(e) {
6566
+ const t = F.useContext(ha), {
6567
6567
  children: r
6568
6568
  } = e, [, n] = on(), {
6569
6569
  motion: a
6570
6570
  } = n, i = F.useRef(!1);
6571
- return i.current || (i.current = t !== a), i.current ? /* @__PURE__ */ F.createElement(ga.Provider, {
6571
+ return i.current || (i.current = t !== a), i.current ? /* @__PURE__ */ F.createElement(ha.Provider, {
6572
6572
  value: a
6573
6573
  }, /* @__PURE__ */ F.createElement(Kf, {
6574
6574
  motion: a
@@ -6578,33 +6578,33 @@ const _s = /* @__PURE__ */ F.memo(({
6578
6578
  dropdownMatchSelectWidth: e
6579
6579
  }) => (Kt("ConfigProvider").deprecated(e === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), null));
6580
6580
  process.env.NODE_ENV !== "production" && (_s.displayName = "PropWarning");
6581
- const vg = process.env.NODE_ENV !== "production" ? _s : () => null;
6582
- var pg = function(e, t) {
6581
+ const vh = process.env.NODE_ENV !== "production" ? _s : () => null;
6582
+ var ph = function(e, t) {
6583
6583
  var r = {};
6584
6584
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
6585
6585
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
6586
6586
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
6587
6587
  return r;
6588
6588
  };
6589
- let ha = !1;
6589
+ let ga = !1;
6590
6590
  process.env.NODE_ENV;
6591
- const yg = ["getTargetContainer", "getPopupContainer", "renderEmpty", "input", "pagination", "form", "select", "button"];
6591
+ const yh = ["getTargetContainer", "getPopupContainer", "renderEmpty", "input", "pagination", "form", "select", "button"];
6592
6592
  let Cs;
6593
- function bg() {
6593
+ function bh() {
6594
6594
  return Cs || sa;
6595
6595
  }
6596
- function Sg(e) {
6596
+ function Sh(e) {
6597
6597
  return Object.keys(e).some((t) => t.endsWith("Color"));
6598
6598
  }
6599
- const _g = (e) => {
6599
+ const _h = (e) => {
6600
6600
  const {
6601
6601
  prefixCls: t,
6602
6602
  iconPrefixCls: r,
6603
6603
  theme: n,
6604
6604
  holderRender: a
6605
6605
  } = e;
6606
- t !== void 0 && (Cs = t), n && Sg(n) && (process.env.NODE_ENV !== "production" && Cr(!1, "ConfigProvider", "`config` of css variable theme is not work in v5. Please use new `theme` config instead."), vf(bg(), n));
6607
- }, Cg = (e) => {
6606
+ t !== void 0 && (Cs = t), n && Sh(n) && (process.env.NODE_ENV !== "production" && Cr(!1, "ConfigProvider", "`config` of css variable theme is not work in v5. Please use new `theme` config instead."), vf(bh(), n));
6607
+ }, Ch = (e) => {
6608
6608
  const {
6609
6609
  children: t,
6610
6610
  csp: r,
@@ -6617,10 +6617,10 @@ const _g = (e) => {
6617
6617
  direction: c,
6618
6618
  space: u,
6619
6619
  splitter: d,
6620
- virtual: g,
6620
+ virtual: h,
6621
6621
  dropdownMatchSelectWidth: p,
6622
6622
  popupMatchSelectWidth: m,
6623
- popupOverflow: h,
6623
+ popupOverflow: g,
6624
6624
  legacyLocale: f,
6625
6625
  parentContext: y,
6626
6626
  iconPrefixCls: v,
@@ -6699,7 +6699,7 @@ const _g = (e) => {
6699
6699
  const wr = Wf(_, y.theme, {
6700
6700
  prefixCls: Ma("")
6701
6701
  });
6702
- process.env.NODE_ENV !== "production" && (ha = ha || !!wr);
6702
+ process.env.NODE_ENV !== "production" && (ga = ga || !!wr);
6703
6703
  const ln = {
6704
6704
  csp: Er,
6705
6705
  autoInsertSpaceInButton: n,
@@ -6709,9 +6709,9 @@ const _g = (e) => {
6709
6709
  direction: c,
6710
6710
  space: u,
6711
6711
  splitter: d,
6712
- virtual: g,
6712
+ virtual: h,
6713
6713
  popupMatchSelectWidth: m ?? p,
6714
- popupOverflow: h,
6714
+ popupOverflow: g,
6715
6715
  getPrefixCls: Ma,
6716
6716
  iconPrefixCls: xr,
6717
6717
  theme: wr,
@@ -6780,7 +6780,7 @@ const _g = (e) => {
6780
6780
  const At = Object.assign({}, y);
6781
6781
  Object.keys(ln).forEach((Ie) => {
6782
6782
  ln[Ie] !== void 0 && (At[Ie] = ln[Ie]);
6783
- }), yg.forEach((Ie) => {
6783
+ }), yh.forEach((Ie) => {
6784
6784
  const Be = e[Ie];
6785
6785
  Be && (At[Ie] = Be);
6786
6786
  }), typeof n < "u" && (At.button = Object.assign({
@@ -6796,7 +6796,7 @@ const _g = (e) => {
6796
6796
  csp: Er,
6797
6797
  layer: Ra ? "antd" : void 0
6798
6798
  }), [xr, Er, Ra]);
6799
- let He = /* @__PURE__ */ F.createElement(F.Fragment, null, /* @__PURE__ */ F.createElement(vg, {
6799
+ let He = /* @__PURE__ */ F.createElement(F.Fragment, null, /* @__PURE__ */ F.createElement(vh, {
6800
6800
  dropdownMatchSelectWidth: p
6801
6801
  }), t);
6802
6802
  const Aa = F.useMemo(() => {
@@ -6812,14 +6812,14 @@ const _g = (e) => {
6812
6812
  value: Ws
6813
6813
  }, He), l && (He = /* @__PURE__ */ F.createElement(yf, {
6814
6814
  size: l
6815
- }, He)), He = /* @__PURE__ */ F.createElement(mg, null, He);
6815
+ }, He)), He = /* @__PURE__ */ F.createElement(mh, null, He);
6816
6816
  const Us = F.useMemo(() => {
6817
6817
  const Ie = wr || {}, {
6818
6818
  algorithm: Be,
6819
6819
  token: dt,
6820
6820
  components: ft,
6821
6821
  cssVar: $r
6822
- } = Ie, qs = pg(Ie, ["algorithm", "token", "components", "cssVar"]), Ia = Be && (!Array.isArray(Be) || Be.length > 0) ? Bn(Be) : Qo, un = {};
6822
+ } = Ie, qs = ph(Ie, ["algorithm", "token", "components", "cssVar"]), Ia = Be && (!Array.isArray(Be) || Be.length > 0) ? Bn(Be) : Qo, un = {};
6823
6823
  Object.entries(ft || {}).forEach(([Gs, Ks]) => {
6824
6824
  const pt = Object.assign({}, Ks);
6825
6825
  "algorithm" in pt && (pt.algorithm === !0 ? pt.theme = Ia : (Array.isArray(pt.algorithm) || typeof pt.algorithm == "function") && (pt.theme = Bn(pt.algorithm)), delete pt.algorithm), un[Gs] = pt;
@@ -6846,23 +6846,23 @@ const _g = (e) => {
6846
6846
  }, He);
6847
6847
  }, er = (e) => {
6848
6848
  const t = F.useContext(Et), r = F.useContext(Uo);
6849
- return /* @__PURE__ */ F.createElement(Cg, Object.assign({
6849
+ return /* @__PURE__ */ F.createElement(Ch, Object.assign({
6850
6850
  parentContext: t,
6851
6851
  legacyLocale: r
6852
6852
  }, e));
6853
6853
  };
6854
6854
  er.ConfigContext = Et;
6855
6855
  er.SizeContext = Xt;
6856
- er.config = _g;
6856
+ er.config = _h;
6857
6857
  er.useConfig = bf;
6858
6858
  Object.defineProperty(er, "SizeContext", {
6859
6859
  get: () => (process.env.NODE_ENV !== "production" && Cr(!1, "ConfigProvider", "ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."), Xt)
6860
6860
  });
6861
6861
  process.env.NODE_ENV !== "production" && (er.displayName = "ConfigProvider");
6862
- const xg = (e) => {
6862
+ const xh = (e) => {
6863
6863
  const t = ne.useContext(Xt);
6864
6864
  return ne.useMemo(() => e ? typeof e == "string" ? e ?? t : typeof e == "function" ? e(t) : t : t, [e, t]);
6865
- }, xs = /* @__PURE__ */ F.createContext(null), Eg = (e, t) => {
6865
+ }, xs = /* @__PURE__ */ F.createContext(null), Eh = (e, t) => {
6866
6866
  const r = F.useContext(xs), n = F.useMemo(() => {
6867
6867
  if (!r)
6868
6868
  return "";
@@ -6882,7 +6882,7 @@ const xg = (e) => {
6882
6882
  compactDirection: r?.compactDirection,
6883
6883
  compactItemClassnames: n
6884
6884
  };
6885
- }, wg = (e) => {
6885
+ }, wh = (e) => {
6886
6886
  const {
6887
6887
  children: t
6888
6888
  } = e;
@@ -6901,25 +6901,25 @@ const xg = (e) => {
6901
6901
  return r && (a = /* @__PURE__ */ ne.createElement(ju, {
6902
6902
  override: !0,
6903
6903
  status: !0
6904
- }, a)), t && (a = /* @__PURE__ */ ne.createElement(wg, null, a)), a;
6904
+ }, a)), t && (a = /* @__PURE__ */ ne.createElement(wh, null, a)), a;
6905
6905
  };
6906
- var $g = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" } }] }, name: "close-circle", theme: "filled" };
6906
+ var $h = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" } }] }, name: "close-circle", theme: "filled" };
6907
6907
  function Es(e) {
6908
6908
  var t;
6909
6909
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
6910
6910
  }
6911
- function Og(e) {
6911
+ function Oh(e) {
6912
6912
  return Es(e) instanceof ShadowRoot;
6913
6913
  }
6914
- function Fg(e) {
6915
- return Og(e) ? Es(e) : null;
6914
+ function Fh(e) {
6915
+ return Oh(e) ? Es(e) : null;
6916
6916
  }
6917
- function Tg(e) {
6917
+ function Th(e) {
6918
6918
  return e.replace(/-(.)/g, function(t, r) {
6919
6919
  return r.toUpperCase();
6920
6920
  });
6921
6921
  }
6922
- function Pg(e, t) {
6922
+ function Ph(e, t) {
6923
6923
  we(e, "[@ant-design/icons] ".concat(t));
6924
6924
  }
6925
6925
  function ki(e) {
@@ -6934,7 +6934,7 @@ function Hi() {
6934
6934
  t.className = n, delete t.class;
6935
6935
  break;
6936
6936
  default:
6937
- delete t[r], t[Tg(r)] = n;
6937
+ delete t[r], t[Th(r)] = n;
6938
6938
  }
6939
6939
  return t;
6940
6940
  }, {});
@@ -6956,7 +6956,7 @@ function ws(e) {
6956
6956
  function $s(e) {
6957
6957
  return e ? Array.isArray(e) ? e : [e] : [];
6958
6958
  }
6959
- var Mg = `
6959
+ var Mh = `
6960
6960
  .anticon {
6961
6961
  display: inline-flex;
6962
6962
  align-items: center;
@@ -7011,36 +7011,36 @@ var Mg = `
7011
7011
  transform: rotate(360deg);
7012
7012
  }
7013
7013
  }
7014
- `, Rg = function(t) {
7015
- var r = mt(Oa), n = r.csp, a = r.prefixCls, i = r.layer, o = Mg;
7014
+ `, Rh = function(t) {
7015
+ var r = mt(Oa), n = r.csp, a = r.prefixCls, i = r.layer, o = Mh;
7016
7016
  a && (o = o.replace(/anticon/g, a)), i && (o = "@layer ".concat(i, ` {
7017
7017
  `).concat(o, `
7018
7018
  }`)), de(function() {
7019
- var s = t.current, l = Fg(s);
7019
+ var s = t.current, l = Fh(s);
7020
7020
  Tt(o, "@ant-design-icons", {
7021
7021
  prepend: !i,
7022
7022
  csp: n,
7023
7023
  attachTo: l
7024
7024
  });
7025
7025
  }, []);
7026
- }, Ag = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], lr = {
7026
+ }, Ah = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], lr = {
7027
7027
  primaryColor: "#333",
7028
7028
  secondaryColor: "#E6E6E6",
7029
7029
  calculated: !1
7030
7030
  };
7031
- function Ig(e) {
7031
+ function Ih(e) {
7032
7032
  var t = e.primaryColor, r = e.secondaryColor;
7033
7033
  lr.primaryColor = t, lr.secondaryColor = r || ws(t), lr.calculated = !!r;
7034
7034
  }
7035
- function Ng() {
7035
+ function Nh() {
7036
7036
  return j({}, lr);
7037
7037
  }
7038
7038
  var tr = function(t) {
7039
- var r = t.icon, n = t.className, a = t.onClick, i = t.style, o = t.primaryColor, s = t.secondaryColor, l = vt(t, Ag), c = F.useRef(), u = lr;
7039
+ var r = t.icon, n = t.className, a = t.onClick, i = t.style, o = t.primaryColor, s = t.secondaryColor, l = vt(t, Ah), c = F.useRef(), u = lr;
7040
7040
  if (o && (u = {
7041
7041
  primaryColor: o,
7042
7042
  secondaryColor: s || ws(o)
7043
- }), Rg(c), Pg(ki(r), "icon should be icon definiton, but got ".concat(r)), !ki(r))
7043
+ }), Rh(c), Ph(ki(r), "icon should be icon definiton, but got ".concat(r)), !ki(r))
7044
7044
  return null;
7045
7045
  var d = r;
7046
7046
  return d && typeof d.icon == "function" && (d = j(j({}, d), {}, {
@@ -7059,8 +7059,8 @@ var tr = function(t) {
7059
7059
  }));
7060
7060
  };
7061
7061
  tr.displayName = "IconReact";
7062
- tr.getTwoToneColors = Ng;
7063
- tr.setTwoToneColors = Ig;
7062
+ tr.getTwoToneColors = Nh;
7063
+ tr.setTwoToneColors = Ih;
7064
7064
  function Os(e) {
7065
7065
  var t = $s(e), r = K(t, 2), n = r[0], a = r[1];
7066
7066
  return tr.setTwoToneColors({
@@ -7068,15 +7068,15 @@ function Os(e) {
7068
7068
  secondaryColor: a
7069
7069
  });
7070
7070
  }
7071
- function jg() {
7071
+ function jh() {
7072
7072
  var e = tr.getTwoToneColors();
7073
7073
  return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
7074
7074
  }
7075
- var Vg = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
7075
+ var Vh = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
7076
7076
  Os(Qr.primary);
7077
7077
  var cn = /* @__PURE__ */ F.forwardRef(function(e, t) {
7078
- var r = e.className, n = e.icon, a = e.spin, i = e.rotate, o = e.tabIndex, s = e.onClick, l = e.twoToneColor, c = vt(e, Vg), u = F.useContext(Oa), d = u.prefixCls, g = d === void 0 ? "anticon" : d, p = u.rootClassName, m = Re(p, g, x(x({}, "".concat(g, "-").concat(n.name), !!n.name), "".concat(g, "-spin"), !!a || n.name === "loading"), r), h = o;
7079
- h === void 0 && s && (h = -1);
7078
+ var r = e.className, n = e.icon, a = e.spin, i = e.rotate, o = e.tabIndex, s = e.onClick, l = e.twoToneColor, c = vt(e, Vh), u = F.useContext(Oa), d = u.prefixCls, h = d === void 0 ? "anticon" : d, p = u.rootClassName, m = Re(p, h, x(x({}, "".concat(h, "-").concat(n.name), !!n.name), "".concat(h, "-spin"), !!a || n.name === "loading"), r), g = o;
7079
+ g === void 0 && s && (g = -1);
7080
7080
  var f = i ? {
7081
7081
  msTransform: "rotate(".concat(i, "deg)"),
7082
7082
  transform: "rotate(".concat(i, "deg)")
@@ -7086,7 +7086,7 @@ var cn = /* @__PURE__ */ F.forwardRef(function(e, t) {
7086
7086
  "aria-label": n.name
7087
7087
  }, c, {
7088
7088
  ref: t,
7089
- tabIndex: h,
7089
+ tabIndex: g,
7090
7090
  onClick: s,
7091
7091
  className: m
7092
7092
  }), /* @__PURE__ */ F.createElement(tr, {
@@ -7097,16 +7097,16 @@ var cn = /* @__PURE__ */ F.forwardRef(function(e, t) {
7097
7097
  }));
7098
7098
  });
7099
7099
  cn.displayName = "AntdIcon";
7100
- cn.getTwoToneColor = jg;
7100
+ cn.getTwoToneColor = jh;
7101
7101
  cn.setTwoToneColor = Os;
7102
- var Lg = function(t, r) {
7102
+ var Lh = function(t, r) {
7103
7103
  return /* @__PURE__ */ F.createElement(cn, lt({}, t, {
7104
7104
  ref: r,
7105
- icon: $g
7105
+ icon: $h
7106
7106
  }));
7107
- }, Fs = /* @__PURE__ */ F.forwardRef(Lg);
7107
+ }, Fs = /* @__PURE__ */ F.forwardRef(Lh);
7108
7108
  process.env.NODE_ENV !== "production" && (Fs.displayName = "CloseCircleFilled");
7109
- const Dg = (e) => {
7109
+ const Dh = (e) => {
7110
7110
  let t;
7111
7111
  return typeof e == "object" && e?.clearIcon ? t = e : e && (t = {
7112
7112
  clearIcon: /* @__PURE__ */ ne.createElement(Fs, null)
@@ -7121,10 +7121,10 @@ function Bi(e, t, r) {
7121
7121
  [`${e}-has-feedback`]: r
7122
7122
  });
7123
7123
  }
7124
- const kg = (e, t) => t || e, Hg = (e) => {
7124
+ const kh = (e, t) => t || e, Hh = (e) => {
7125
7125
  const [, , , , t] = on();
7126
7126
  return t ? `${e}-css-var` : "";
7127
- }, Bg = (e, t, r) => {
7127
+ }, Bh = (e, t, r) => {
7128
7128
  var n, a;
7129
7129
  const {
7130
7130
  variant: i,
@@ -7135,8 +7135,8 @@ const kg = (e, t) => t || e, Hg = (e) => {
7135
7135
  const u = df.includes(c);
7136
7136
  return [c, u];
7137
7137
  };
7138
- function zg(e, t) {
7139
- const r = ge([]), n = () => {
7138
+ function zh(e, t) {
7139
+ const r = he([]), n = () => {
7140
7140
  r.current.push(setTimeout(() => {
7141
7141
  var a, i, o, s;
7142
7142
  !((a = e.current) === null || a === void 0) && a.input && ((i = e.current) === null || i === void 0 ? void 0 : i.input.getAttribute("type")) === "password" && (!((o = e.current) === null || o === void 0) && o.input.hasAttribute("value")) && ((s = e.current) === null || s === void 0 || s.input.removeAttribute("value"));
@@ -7146,7 +7146,7 @@ function zg(e, t) {
7146
7146
  a && clearTimeout(a);
7147
7147
  })), []), n;
7148
7148
  }
7149
- function Wg(e, t, r, n) {
7149
+ function Wh(e, t, r, n) {
7150
7150
  const {
7151
7151
  focusElCls: a,
7152
7152
  focus: i,
@@ -7174,7 +7174,7 @@ function Wg(e, t, r, n) {
7174
7174
  })
7175
7175
  };
7176
7176
  }
7177
- function Ug(e, t, r) {
7177
+ function Uh(e, t, r) {
7178
7178
  const {
7179
7179
  borderElCls: n
7180
7180
  } = r, a = n ? `> ${n}` : "";
@@ -7196,14 +7196,14 @@ function Ug(e, t, r) {
7196
7196
  }
7197
7197
  };
7198
7198
  }
7199
- function qg(e, t = {
7199
+ function qh(e, t = {
7200
7200
  focus: !0
7201
7201
  }) {
7202
7202
  const {
7203
7203
  componentCls: r
7204
7204
  } = e, n = `${r}-compact`;
7205
7205
  return {
7206
- [n]: Object.assign(Object.assign({}, Wg(e, n, t, r)), Ug(r, n, t))
7206
+ [n]: Object.assign(Object.assign({}, Wh(e, n, t, r)), Uh(r, n, t))
7207
7207
  };
7208
7208
  }
7209
7209
  function Ts(e) {
@@ -7224,10 +7224,10 @@ const Ps = (e) => {
7224
7224
  paddingSM: c,
7225
7225
  controlPaddingHorizontalSM: u,
7226
7226
  controlPaddingHorizontal: d,
7227
- colorFillAlter: g,
7227
+ colorFillAlter: h,
7228
7228
  colorPrimaryHover: p,
7229
7229
  colorPrimary: m,
7230
- controlOutlineWidth: h,
7230
+ controlOutlineWidth: g,
7231
7231
  controlOutline: f,
7232
7232
  colorErrorOutline: y,
7233
7233
  colorWarningOutline: v,
@@ -7243,19 +7243,19 @@ const Ps = (e) => {
7243
7243
  paddingInline: c - a,
7244
7244
  paddingInlineSM: u - a,
7245
7245
  paddingInlineLG: d - a,
7246
- addonBg: g,
7246
+ addonBg: h,
7247
7247
  activeBorderColor: m,
7248
7248
  hoverBorderColor: p,
7249
- activeShadow: `0 0 0 ${h}px ${f}`,
7250
- errorActiveShadow: `0 0 0 ${h}px ${y}`,
7251
- warningActiveShadow: `0 0 0 ${h}px ${v}`,
7249
+ activeShadow: `0 0 0 ${g}px ${f}`,
7250
+ errorActiveShadow: `0 0 0 ${g}px ${y}`,
7251
+ warningActiveShadow: `0 0 0 ${g}px ${v}`,
7252
7252
  hoverBg: _,
7253
7253
  activeBg: _,
7254
7254
  inputFontSize: S,
7255
7255
  inputFontSizeLG: M,
7256
7256
  inputFontSizeSM: T
7257
7257
  };
7258
- }, Gg = (e) => ({
7258
+ }, Gh = (e) => ({
7259
7259
  borderColor: e.hoverBorderColor,
7260
7260
  backgroundColor: e.hoverBg
7261
7261
  }), Pa = (e) => ({
@@ -7268,7 +7268,7 @@ const Ps = (e) => {
7268
7268
  "input[disabled], textarea[disabled]": {
7269
7269
  cursor: "not-allowed"
7270
7270
  },
7271
- "&:hover:not([disabled])": Object.assign({}, Gg(Zt(e, {
7271
+ "&:hover:not([disabled])": Object.assign({}, Gh(Zt(e, {
7272
7272
  hoverBorderColor: e.colorBorder,
7273
7273
  hoverBg: e.colorBgContainerDisabled
7274
7274
  })))
@@ -7296,7 +7296,7 @@ const Ps = (e) => {
7296
7296
  [`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]: {
7297
7297
  borderColor: t.borderColor
7298
7298
  }
7299
- }), Kg = (e, t) => ({
7299
+ }), Kh = (e, t) => ({
7300
7300
  "&-outlined": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Ms(e, {
7301
7301
  borderColor: e.colorBorder,
7302
7302
  hoverBorderColor: e.hoverBorderColor,
@@ -7326,7 +7326,7 @@ const Ps = (e) => {
7326
7326
  color: t.addonColor
7327
7327
  }
7328
7328
  }
7329
- }), Xg = (e) => ({
7329
+ }), Xh = (e) => ({
7330
7330
  "&-outlined": Object.assign(Object.assign(Object.assign({
7331
7331
  [`${e.componentCls}-group`]: {
7332
7332
  "&-addon": {
@@ -7353,7 +7353,7 @@ const Ps = (e) => {
7353
7353
  [`${e.componentCls}-group-addon`]: Object.assign({}, Pa(e))
7354
7354
  }
7355
7355
  })
7356
- }), Yg = (e, t) => {
7356
+ }), Yh = (e, t) => {
7357
7357
  const {
7358
7358
  componentCls: r
7359
7359
  } = e;
@@ -7407,7 +7407,7 @@ const Ps = (e) => {
7407
7407
  color: t.affixColor
7408
7408
  }
7409
7409
  })
7410
- }), Qg = (e, t) => ({
7410
+ }), Qh = (e, t) => ({
7411
7411
  "&-filled": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Rs(e, {
7412
7412
  bg: e.colorFillTertiary,
7413
7413
  hoverBg: e.colorFillSecondary,
@@ -7436,7 +7436,7 @@ const Ps = (e) => {
7436
7436
  color: t.addonColor
7437
7437
  }
7438
7438
  }
7439
- }), Jg = (e) => ({
7439
+ }), Jh = (e) => ({
7440
7440
  "&-filled": Object.assign(Object.assign(Object.assign({
7441
7441
  [`${e.componentCls}-group-addon`]: {
7442
7442
  background: e.colorFillTertiary,
@@ -7496,7 +7496,7 @@ const Ps = (e) => {
7496
7496
  [`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]: {
7497
7497
  borderColor: `transparent transparent ${t.borderColor} transparent`
7498
7498
  }
7499
- }), Zg = (e, t) => ({
7499
+ }), Zh = (e, t) => ({
7500
7500
  "&-underlined": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, As(e, {
7501
7501
  borderColor: e.colorBorder,
7502
7502
  hoverBorderColor: e.hoverBorderColor,
@@ -7530,7 +7530,7 @@ const Ps = (e) => {
7530
7530
  activeShadow: e.warningActiveShadow,
7531
7531
  affixColor: e.colorWarning
7532
7532
  })), t)
7533
- }), eh = (e) => ({
7533
+ }), eg = (e) => ({
7534
7534
  // Firefox
7535
7535
  "&::-moz-placeholder": {
7536
7536
  opacity: 1
@@ -7571,7 +7571,7 @@ const Ps = (e) => {
7571
7571
  lineHeight: e.lineHeight,
7572
7572
  borderRadius: e.borderRadius,
7573
7573
  transition: `all ${e.motionDurationMid}`
7574
- }, eh(e.colorTextPlaceholder)), {
7574
+ }, eg(e.colorTextPlaceholder)), {
7575
7575
  // Size
7576
7576
  "&-lg": Object.assign({}, Is(e)),
7577
7577
  "&-sm": Object.assign({}, Ns(e)),
@@ -7579,7 +7579,7 @@ const Ps = (e) => {
7579
7579
  "&-rtl, &-textarea-rtl": {
7580
7580
  direction: "rtl"
7581
7581
  }
7582
- }), th = (e) => {
7582
+ }), tg = (e) => {
7583
7583
  const {
7584
7584
  componentCls: t,
7585
7585
  antCls: r
@@ -7811,7 +7811,7 @@ const Ps = (e) => {
7811
7811
  }
7812
7812
  })
7813
7813
  };
7814
- }, rh = (e) => {
7814
+ }, rg = (e) => {
7815
7815
  const {
7816
7816
  componentCls: t,
7817
7817
  controlHeightSM: r,
@@ -7819,7 +7819,7 @@ const Ps = (e) => {
7819
7819
  calc: a
7820
7820
  } = e, o = a(r).sub(a(n).mul(2)).sub(16).div(2).equal();
7821
7821
  return {
7822
- [t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, is(e)), js(e)), Kg(e)), Qg(e)), Yg(e)), Zg(e)), {
7822
+ [t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, is(e)), js(e)), Kh(e)), Qh(e)), Yh(e)), Zh(e)), {
7823
7823
  '&[type="color"]': {
7824
7824
  height: e.controlHeight,
7825
7825
  [`&${t}-lg`]: {
@@ -7836,7 +7836,7 @@ const Ps = (e) => {
7836
7836
  }
7837
7837
  })
7838
7838
  };
7839
- }, nh = (e) => {
7839
+ }, ng = (e) => {
7840
7840
  const {
7841
7841
  componentCls: t
7842
7842
  } = e;
@@ -7870,7 +7870,7 @@ const Ps = (e) => {
7870
7870
  }
7871
7871
  }
7872
7872
  };
7873
- }, ah = (e) => {
7873
+ }, ag = (e) => {
7874
7874
  const {
7875
7875
  componentCls: t,
7876
7876
  inputAffixPadding: r,
@@ -7938,7 +7938,7 @@ const Ps = (e) => {
7938
7938
  marginInlineStart: r
7939
7939
  }
7940
7940
  }
7941
- }), nh(e)), {
7941
+ }), ng(e)), {
7942
7942
  // password
7943
7943
  [`${s}${t}-password-icon`]: {
7944
7944
  color: i,
@@ -7964,14 +7964,14 @@ const Ps = (e) => {
7964
7964
  }
7965
7965
  }
7966
7966
  };
7967
- }, ih = (e) => {
7967
+ }, ig = (e) => {
7968
7968
  const {
7969
7969
  componentCls: t,
7970
7970
  borderRadiusLG: r,
7971
7971
  borderRadiusSM: n
7972
7972
  } = e;
7973
7973
  return {
7974
- [`${t}-group`]: Object.assign(Object.assign(Object.assign({}, is(e)), th(e)), {
7974
+ [`${t}-group`]: Object.assign(Object.assign(Object.assign({}, is(e)), tg(e)), {
7975
7975
  "&-rtl": {
7976
7976
  direction: "rtl"
7977
7977
  },
@@ -7995,7 +7995,7 @@ const Ps = (e) => {
7995
7995
  borderRadius: n
7996
7996
  }
7997
7997
  }
7998
- }, Xg(e)), Jg(e)), {
7998
+ }, Xh(e)), Jh(e)), {
7999
7999
  // '&-disabled': {
8000
8000
  // [`${componentCls}-group-addon`]: {
8001
8001
  // ...genDisabledStyle(token),
@@ -8039,7 +8039,7 @@ const Ps = (e) => {
8039
8039
  })
8040
8040
  })
8041
8041
  };
8042
- }, oh = (e) => {
8042
+ }, og = (e) => {
8043
8043
  const {
8044
8044
  componentCls: t,
8045
8045
  antCls: r
@@ -8135,7 +8135,7 @@ const Ps = (e) => {
8135
8135
  }
8136
8136
  }
8137
8137
  };
8138
- }, sh = (e) => {
8138
+ }, sg = (e) => {
8139
8139
  const {
8140
8140
  componentCls: t
8141
8141
  } = e;
@@ -8146,29 +8146,29 @@ const Ps = (e) => {
8146
8146
  }
8147
8147
  }
8148
8148
  };
8149
- }, ch = ss(["Input", "Shared"], (e) => {
8149
+ }, cg = ss(["Input", "Shared"], (e) => {
8150
8150
  const t = Zt(e, Ts(e));
8151
- return [rh(t), ah(t)];
8151
+ return [rg(t), ag(t)];
8152
8152
  }, Ps, {
8153
8153
  resetFont: !1
8154
- }), lh = ss(["Input", "Component"], (e) => {
8154
+ }), lg = ss(["Input", "Component"], (e) => {
8155
8155
  const t = Zt(e, Ts(e));
8156
8156
  return [
8157
- ih(t),
8158
- oh(t),
8159
- sh(t),
8157
+ ig(t),
8158
+ og(t),
8159
+ sg(t),
8160
8160
  // =====================================================
8161
8161
  // == Space Compact ==
8162
8162
  // =====================================================
8163
- qg(t)
8163
+ qh(t)
8164
8164
  ];
8165
8165
  }, Ps, {
8166
8166
  resetFont: !1
8167
8167
  });
8168
- function uh(e) {
8168
+ function ug(e) {
8169
8169
  return !!(e.prefix || e.suffix || e.allowClear || e.showCount);
8170
8170
  }
8171
- var dh = function(e, t) {
8171
+ var dg = function(e, t) {
8172
8172
  var r = {};
8173
8173
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
8174
8174
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
@@ -8187,15 +8187,15 @@ const Vs = /* @__PURE__ */ Yi((e, t) => {
8187
8187
  suffix: c,
8188
8188
  allowClear: u,
8189
8189
  addonAfter: d,
8190
- addonBefore: g,
8190
+ addonBefore: h,
8191
8191
  className: p,
8192
8192
  style: m,
8193
- styles: h,
8193
+ styles: g,
8194
8194
  rootClassName: f,
8195
8195
  onChange: y,
8196
8196
  classNames: v,
8197
8197
  variant: _
8198
- } = e, O = dh(e, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
8198
+ } = e, O = dg(e, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
8199
8199
  if (process.env.NODE_ENV !== "production") {
8200
8200
  const {
8201
8201
  deprecated: $e
@@ -8213,17 +8213,17 @@ const Vs = /* @__PURE__ */ Yi((e, t) => {
8213
8213
  style: P,
8214
8214
  classNames: A,
8215
8215
  styles: D
8216
- } = gf("input"), V = C("input", r), b = ge(null), E = Hg(V), [w, R, I] = ch(V, f), [k] = lh(V, E), {
8216
+ } = hf("input"), V = C("input", r), b = he(null), E = Hh(V), [w, R, I] = cg(V, f), [k] = lg(V, E), {
8217
8217
  compactSize: L,
8218
8218
  compactItemClassnames: H
8219
- } = Eg(V, $), B = xg(($e) => {
8219
+ } = Eh(V, $), B = xh(($e) => {
8220
8220
  var Oe;
8221
8221
  return (Oe = i ?? L) !== null && Oe !== void 0 ? Oe : $e;
8222
8222
  }), W = ne.useContext(Jr), U = o ?? W, {
8223
8223
  status: ee,
8224
8224
  hasFeedback: ie,
8225
8225
  feedbackIcon: fe
8226
- } = mt(Xr), le = kg(ee, a), ue = uh(e) || !!ie, oe = ge(ue);
8226
+ } = mt(Xr), le = kh(ee, a), ue = ug(e) || !!ie, oe = he(ue);
8227
8227
  if (process.env.NODE_ENV !== "production") {
8228
8228
  const $e = Kt("Input");
8229
8229
  de(() => {
@@ -8231,13 +8231,13 @@ const Vs = /* @__PURE__ */ Yi((e, t) => {
8231
8231
  ue && !oe.current && process.env.NODE_ENV !== "production" && $e(document.activeElement === ((Oe = b.current) === null || Oe === void 0 ? void 0 : Oe.input), "usage", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), oe.current = ue;
8232
8232
  }, [ue]);
8233
8233
  }
8234
- const ve = zg(b), ye = ($e) => {
8234
+ const ve = zh(b), ye = ($e) => {
8235
8235
  ve(), s?.($e);
8236
8236
  }, Pe = ($e) => {
8237
8237
  ve(), l?.($e);
8238
8238
  }, z = ($e) => {
8239
8239
  ve(), y?.($e);
8240
- }, je = (ie || c) && /* @__PURE__ */ ne.createElement(ne.Fragment, null, c, ie && fe), Se = Dg(u ?? S), [ke, rt] = Bg("input", _, n);
8240
+ }, je = (ie || c) && /* @__PURE__ */ ne.createElement(ne.Fragment, null, c, ie && fe), Se = Dh(u ?? S), [ke, rt] = Bh("input", _, n);
8241
8241
  return w(k(/* @__PURE__ */ ne.createElement(Cl, Object.assign({
8242
8242
  ref: Pl(t, b),
8243
8243
  prefixCls: V,
@@ -8247,15 +8247,15 @@ const Vs = /* @__PURE__ */ Yi((e, t) => {
8247
8247
  onBlur: ye,
8248
8248
  onFocus: Pe,
8249
8249
  style: Object.assign(Object.assign({}, P), m),
8250
- styles: Object.assign(Object.assign({}, D), h),
8250
+ styles: Object.assign(Object.assign({}, D), g),
8251
8251
  suffix: je,
8252
8252
  allowClear: Se,
8253
8253
  className: Re(p, f, I, E, H, M),
8254
8254
  onChange: z,
8255
- addonBefore: g && /* @__PURE__ */ ne.createElement(Di, {
8255
+ addonBefore: h && /* @__PURE__ */ ne.createElement(Di, {
8256
8256
  form: !0,
8257
8257
  space: !0
8258
- }, g),
8258
+ }, h),
8259
8259
  addonAfter: d && /* @__PURE__ */ ne.createElement(Di, {
8260
8260
  form: !0,
8261
8261
  space: !0
@@ -8287,7 +8287,7 @@ const Vs = /* @__PURE__ */ Yi((e, t) => {
8287
8287
  }))));
8288
8288
  });
8289
8289
  process.env.NODE_ENV !== "production" && (Vs.displayName = "Input");
8290
- function fh({ onSearchChange: e }) {
8290
+ function fg({ onSearchChange: e }) {
8291
8291
  const [t, r] = Q("");
8292
8292
  return de(() => {
8293
8293
  const n = setTimeout(() => {
@@ -8310,7 +8310,7 @@ const Ls = en(void 0), rr = () => {
8310
8310
  if (!e) throw new Error("useChatSocket must be used within ChatSocketProvider");
8311
8311
  return e;
8312
8312
  };
8313
- function gh({ search: e, onSelectChat: t, selectedChatId: r }) {
8313
+ function hg({ search: e, onSelectChat: t, selectedChatId: r }) {
8314
8314
  const {
8315
8315
  /* socket */
8316
8316
  userdata: n,
@@ -8325,20 +8325,20 @@ function gh({ search: e, onSelectChat: t, selectedChatId: r }) {
8325
8325
  const s = Xe(
8326
8326
  (d) => !d || !o ? null : d.chat_id === o || d.from?.id === o ? "self" : "companion",
8327
8327
  [o]
8328
- ), l = Xe((d, g, p = !1) => {
8328
+ ), l = Xe((d, h, p = !1) => {
8329
8329
  if (p) return "Сохранённое";
8330
- const m = g === "self" ? d?.to : d?.from;
8330
+ const m = h === "self" ? d?.to : d?.from;
8331
8331
  return `${m?.surname ?? ""} ${m?.name ?? ""}`.trim();
8332
- }, []), c = (d, g = 100) => d.length <= g ? d : d.substring(0, g) + "...", u = Ft(() => {
8333
- const d = e.toLowerCase(), p = a.filter((h) => {
8334
- if (h?.to?.id === o && h?.from?.id === o)
8332
+ }, []), c = (d, h = 100) => d.length <= h ? d : d.substring(0, h) + "...", u = Ft(() => {
8333
+ const d = e.toLowerCase(), p = a.filter((g) => {
8334
+ if (g?.to?.id === o && g?.from?.id === o)
8335
8335
  return !0;
8336
- const f = s(h), y = l(h, f, !1), v = h?.text?.toLowerCase() || "";
8337
- return h && (y.toLowerCase().includes(d) || v.includes(d));
8338
- }).sort((h, f) => {
8339
- const y = h.updated_at || h.created_at;
8336
+ const f = s(g), y = l(g, f, !1), v = g?.text?.toLowerCase() || "";
8337
+ return g && (y.toLowerCase().includes(d) || v.includes(d));
8338
+ }).sort((g, f) => {
8339
+ const y = g.updated_at || g.created_at;
8340
8340
  return (f.updated_at || f.created_at) - y;
8341
- }), m = p.findIndex((h) => o && h.from.id && h.to.id && +h.from.id == +o && +h.to.id == +o);
8341
+ }), m = p.findIndex((g) => o && g.from.id && g.to.id && +g.from.id == +o && +g.to.id == +o);
8342
8342
  return m !== -1 && p.splice(m, 1), p.unshift({
8343
8343
  id: 0,
8344
8344
  chat_id: o,
@@ -8352,12 +8352,12 @@ function gh({ search: e, onSelectChat: t, selectedChatId: r }) {
8352
8352
  files: []
8353
8353
  }), p;
8354
8354
  }, [a, e, o, s, l]);
8355
- return /* @__PURE__ */ N("div", { className: G["chat-list__container"], children: /* @__PURE__ */ N("ul", { className: G["chat-list"], children: u.map((d, g) => {
8356
- const p = s(d), m = l(d, p, d.chat_id === o), h = d.chat_id === r, f = d.text;
8355
+ return /* @__PURE__ */ N("div", { className: G["chat-list__container"], children: /* @__PURE__ */ N("ul", { className: G["chat-list"], children: u.map((d, h) => {
8356
+ const p = s(d), m = l(d, p, d.chat_id === o), g = d.chat_id === r, f = d.text;
8357
8357
  return /* @__PURE__ */ N("div", { children: /* @__PURE__ */ Te(
8358
8358
  "li",
8359
8359
  {
8360
- className: `${G.chatItem} ${h ? G.activeChatItem : ""}`,
8360
+ className: `${G.chatItem} ${g ? G.activeChatItem : ""}`,
8361
8361
  onClick: () => {
8362
8362
  t(d.chat_id ?? null);
8363
8363
  },
@@ -8369,10 +8369,10 @@ function gh({ search: e, onSelectChat: t, selectedChatId: r }) {
8369
8369
  /* @__PURE__ */ N(ec, { count: d.count_unread })
8370
8370
  ]
8371
8371
  }
8372
- ) }, `chat-${d.chat_id}-${g}`);
8372
+ ) }, `chat-${d.chat_id}-${h}`);
8373
8373
  }) }) });
8374
8374
  }
8375
- function hh({ draggable: e, setDraggable: t, position: r, setPosition: n }) {
8375
+ function gg({ draggable: e, setDraggable: t, position: r, setPosition: n }) {
8376
8376
  const a = () => {
8377
8377
  if (!r) {
8378
8378
  n("topRight");
@@ -8415,18 +8415,18 @@ function hh({ draggable: e, setDraggable: t, position: r, setPosition: n }) {
8415
8415
  ] }) })
8416
8416
  ] });
8417
8417
  }
8418
- const { Content: mh } = zt;
8419
- function vh({ onSelectChat: e, selectedChatId: t }) {
8418
+ const { Content: mg } = zt;
8419
+ function vg({ onSelectChat: e, selectedChatId: t }) {
8420
8420
  const [r, n] = Q(!1), [a, i] = Q("topLeft"), [o, s] = Q("");
8421
8421
  return /* @__PURE__ */ Te(zt, { className: G["sidebar-layout"], children: [
8422
8422
  /* @__PURE__ */ N(
8423
- fh,
8423
+ fg,
8424
8424
  {
8425
8425
  onSearchChange: s
8426
8426
  }
8427
8427
  ),
8428
- /* @__PURE__ */ N(mh, { className: G["sidebar-content"], children: /* @__PURE__ */ N(
8429
- gh,
8428
+ /* @__PURE__ */ N(mg, { className: G["sidebar-content"], children: /* @__PURE__ */ N(
8429
+ hg,
8430
8430
  {
8431
8431
  search: o,
8432
8432
  onSelectChat: e,
@@ -8434,7 +8434,7 @@ function vh({ onSelectChat: e, selectedChatId: t }) {
8434
8434
  }
8435
8435
  ) }),
8436
8436
  /* @__PURE__ */ N(
8437
- hh,
8437
+ gg,
8438
8438
  {
8439
8439
  draggable: r,
8440
8440
  setDraggable: n,
@@ -8444,13 +8444,13 @@ function vh({ onSelectChat: e, selectedChatId: t }) {
8444
8444
  )
8445
8445
  ] });
8446
8446
  }
8447
- var Ur = { exports: {} }, ph = Ur.exports, Ki;
8448
- function yh() {
8447
+ var Ur = { exports: {} }, pg = Ur.exports, Ki;
8448
+ function yg() {
8449
8449
  return Ki || (Ki = 1, (function(e, t) {
8450
8450
  (function(r, n) {
8451
8451
  e.exports = n();
8452
- })(ph, (function() {
8453
- var r = 1e3, n = 6e4, a = 36e5, i = "millisecond", o = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", g = "quarter", p = "year", m = "date", h = "Invalid Date", f = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, v = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(b) {
8452
+ })(pg, (function() {
8453
+ var r = 1e3, n = 6e4, a = 36e5, i = "millisecond", o = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", h = "quarter", p = "year", m = "date", g = "Invalid Date", f = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, v = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(b) {
8454
8454
  var E = ["th", "st", "nd", "rd"], w = b % 100;
8455
8455
  return "[" + b + (E[(w - 20) % 10] || E[w] || E[0]) + "]";
8456
8456
  } }, _ = function(b, E, w) {
@@ -8466,7 +8466,7 @@ function yh() {
8466
8466
  }, a: function(b) {
8467
8467
  return b < 0 ? Math.ceil(b) || 0 : Math.floor(b);
8468
8468
  }, p: function(b) {
8469
- return { M: d, y: p, w: u, d: c, D: m, h: l, m: s, s: o, ms: i, Q: g }[b] || String(b || "").toLowerCase().replace(/s$/, "");
8469
+ return { M: d, y: p, w: u, d: c, D: m, h: l, m: s, s: o, ms: i, Q: h }[b] || String(b || "").toLowerCase().replace(/s$/, "");
8470
8470
  }, u: function(b) {
8471
8471
  return b === void 0;
8472
8472
  } }, C = "en", $ = {};
@@ -8520,7 +8520,7 @@ function yh() {
8520
8520
  }, E.$utils = function() {
8521
8521
  return A;
8522
8522
  }, E.isValid = function() {
8523
- return this.$d.toString() !== h;
8523
+ return this.$d.toString() !== g;
8524
8524
  }, E.isSame = function(w, R) {
8525
8525
  var I = P(w);
8526
8526
  return this.startOf(R) <= I && I <= this.endOf(R);
@@ -8591,7 +8591,7 @@ function yh() {
8591
8591
  return this.add(-1 * w, R);
8592
8592
  }, E.format = function(w) {
8593
8593
  var R = this, I = this.$locale();
8594
- if (!this.isValid()) return I.invalidDate || h;
8594
+ if (!this.isValid()) return I.invalidDate || g;
8595
8595
  var k = w || "YYYY-MM-DDTHH:mm:ssZ", L = A.z(this), H = this.$H, B = this.$m, W = this.$M, U = I.weekdays, ee = I.months, ie = I.meridiem, fe = function(oe, ve, ye, Pe) {
8596
8596
  return oe && (oe[ve] || oe(R, k)) || ye[ve].slice(0, Pe);
8597
8597
  }, le = function(oe) {
@@ -8668,7 +8668,7 @@ function yh() {
8668
8668
  case d:
8669
8669
  k = ee();
8670
8670
  break;
8671
- case g:
8671
+ case h:
8672
8672
  k = ee() / 3;
8673
8673
  break;
8674
8674
  case u:
@@ -8722,9 +8722,9 @@ function yh() {
8722
8722
  }));
8723
8723
  })(Ur)), Ur.exports;
8724
8724
  }
8725
- var bh = yh();
8726
- const Mt = /* @__PURE__ */ Ji(bh);
8727
- function Sh({ onSend: e }) {
8725
+ var bg = yg();
8726
+ const Mt = /* @__PURE__ */ Ji(bg);
8727
+ function Sg({ onSend: e }) {
8728
8728
  const [t, r] = Q(""), [n, a] = Q(!1), [i, o] = Q([]), s = Xe(() => {
8729
8729
  const p = t.trim();
8730
8730
  !p && i.length === 0 || (e(p, i), r(""), o([]));
@@ -8734,10 +8734,10 @@ function Sh({ onSend: e }) {
8734
8734
  (p) => {
8735
8735
  if (p.key === "Enter" && p.shiftKey) {
8736
8736
  p.preventDefault();
8737
- const m = p.currentTarget, { selectionStart: h, selectionEnd: f } = m, y = t.substring(0, h) + `
8737
+ const m = p.currentTarget, { selectionStart: g, selectionEnd: f } = m, y = t.substring(0, g) + `
8738
8738
  ` + t.substring(f);
8739
8739
  r(y), setTimeout(() => {
8740
- m.selectionStart = m.selectionEnd = h + 1;
8740
+ m.selectionStart = m.selectionEnd = g + 1;
8741
8741
  }, 0);
8742
8742
  } else p.key === "Enter" && !p.shiftKey && (p.preventDefault(), s());
8743
8743
  },
@@ -8745,9 +8745,9 @@ function Sh({ onSend: e }) {
8745
8745
  ), u = Xe(({ fileList: p }) => {
8746
8746
  o(p);
8747
8747
  }, []), d = (p) => {
8748
- const m = i.indexOf(p), h = i.slice();
8749
- h.splice(m, 1), o(h);
8750
- }, g = Xe(() => !1, []);
8748
+ const m = i.indexOf(p), g = i.slice();
8749
+ g.splice(m, 1), o(g);
8750
+ }, h = Xe(() => !1, []);
8751
8751
  return /* @__PURE__ */ Te("div", { className: G.chat_inputs, children: [
8752
8752
  /* @__PURE__ */ N(
8753
8753
  or,
@@ -8757,11 +8757,11 @@ function Sh({ onSend: e }) {
8757
8757
  {
8758
8758
  fileList: i,
8759
8759
  onChange: u,
8760
- beforeUpload: g,
8760
+ beforeUpload: h,
8761
8761
  onRemove: d,
8762
8762
  multiple: !0,
8763
8763
  showUploadList: !0,
8764
- children: /* @__PURE__ */ N(Ze, { icon: /* @__PURE__ */ N(hc, {}), children: "Выбрать файлы" })
8764
+ children: /* @__PURE__ */ N(Ze, { icon: /* @__PURE__ */ N(gc, {}), children: "Выбрать файлы" })
8765
8765
  }
8766
8766
  ) }),
8767
8767
  trigger: "click",
@@ -8769,7 +8769,7 @@ function Sh({ onSend: e }) {
8769
8769
  children: /* @__PURE__ */ N(
8770
8770
  Ze,
8771
8771
  {
8772
- icon: /* @__PURE__ */ N(gc, {}),
8772
+ icon: /* @__PURE__ */ N(hc, {}),
8773
8773
  variant: i.length > 0 ? "solid" : "filled",
8774
8774
  color: "primary",
8775
8775
  style: i.length > 0 ? { backgroundColor: "#1890ff", color: "white" } : {}
@@ -8812,11 +8812,11 @@ function Sh({ onSend: e }) {
8812
8812
  )
8813
8813
  ] });
8814
8814
  }
8815
- const _h = ({ children: e }) => /* @__PURE__ */ Te(nc, { orientation: "center", plain: !0, style: { color: "#888" }, children: [
8815
+ const _g = ({ children: e }) => /* @__PURE__ */ Te(nc, { orientation: "center", plain: !0, style: { color: "#888" }, children: [
8816
8816
  /* @__PURE__ */ N(pc, { style: { marginRight: 8 } }),
8817
8817
  e
8818
8818
  ] });
8819
- function Ch({ message: e, pasteFileIcon: t }) {
8819
+ function Cg({ message: e, pasteFileIcon: t }) {
8820
8820
  const { text: r, files: n, timestamp: a, isSending: i, status: o } = e, {
8821
8821
  HTTP_HOST: s
8822
8822
  } = rr(), l = `message ${G.message} ${G.myMessage} ${i ? G.localMessage : ""}`, c = `${G.bubble} ${G.myMessageBubble}`;
@@ -8848,7 +8848,7 @@ function Ch({ message: e, pasteFileIcon: t }) {
8848
8848
  i && /* @__PURE__ */ N("span", { className: G.sending, children: " • отправляется..." })
8849
8849
  ] }) });
8850
8850
  }
8851
- function xh({ message: e, pasteFileIcon: t }) {
8851
+ function xg({ message: e, pasteFileIcon: t }) {
8852
8852
  if (!e)
8853
8853
  return null;
8854
8854
  const { text: r, files: n, timestamp: a, senderName: i } = e, {
@@ -8864,14 +8864,14 @@ function xh({ message: e, pasteFileIcon: t }) {
8864
8864
  /* @__PURE__ */ N("div", { className: G.time, children: Mt(+a * 1e3).format("HH:mm") })
8865
8865
  ] }) });
8866
8866
  }
8867
- const Eh = ({
8867
+ const Eg = ({
8868
8868
  messagesWithDividers: e,
8869
8869
  currentUserId: t,
8870
8870
  chatId: r,
8871
8871
  containerRef: n,
8872
8872
  markMessagesAsRead: a
8873
8873
  }) => {
8874
- const i = ge(null), o = ge(/* @__PURE__ */ new Set());
8874
+ const i = he(null), o = he(/* @__PURE__ */ new Set());
8875
8875
  de(() => {
8876
8876
  if (!e.length || !a || !n?.current) return;
8877
8877
  const s = setTimeout(() => {
@@ -8881,8 +8881,8 @@ const Eh = ({
8881
8881
  }).filter((u) => !u.message?.status).map((u) => {
8882
8882
  const d = u.message?.id;
8883
8883
  if (!d) return null;
8884
- const g = document.querySelector(`[data-message-id="${d}"]`);
8885
- return g ? { id: d, element: g } : null;
8884
+ const h = document.querySelector(`[data-message-id="${d}"]`);
8885
+ return h ? { id: d, element: h } : null;
8886
8886
  }).filter(
8887
8887
  (u) => u !== null
8888
8888
  );
@@ -8890,9 +8890,9 @@ const Eh = ({
8890
8890
  const c = new IntersectionObserver(
8891
8891
  (u) => {
8892
8892
  const d = [];
8893
- u.forEach((g) => {
8894
- if (g.isIntersecting) {
8895
- const p = g.target, m = Number(p.dataset.messageId);
8893
+ u.forEach((h) => {
8894
+ if (h.isIntersecting) {
8895
+ const p = h.target, m = Number(p.dataset.messageId);
8896
8896
  o.current.has(m) || (d.push(m), o.current.add(m));
8897
8897
  }
8898
8898
  }), d.length > 0 && a(d);
@@ -8909,30 +8909,30 @@ const Eh = ({
8909
8909
  }, [e, t, r, n, a]), de(() => {
8910
8910
  o.current.clear();
8911
8911
  }, [r]);
8912
- }, wh = ({
8912
+ }, wg = ({
8913
8913
  containerRef: e,
8914
8914
  fetchMoreMessages: t,
8915
8915
  hasMore: r,
8916
8916
  offset: n = 100
8917
8917
  }) => {
8918
- const a = ge(!1), i = ge(null), o = ge(0), s = ge(0);
8918
+ const a = he(!1), i = he(null), o = he(0), s = he(0);
8919
8919
  de(() => {
8920
8920
  const l = e.current;
8921
8921
  if (!l || !t) return;
8922
8922
  const c = new IntersectionObserver(
8923
8923
  (m) => {
8924
- const h = m.filter((f) => f.isIntersecting).sort((f, y) => f.boundingClientRect.top - y.boundingClientRect.top);
8925
- if (h.length > 0) {
8926
- const f = h[0].target;
8924
+ const g = m.filter((f) => f.isIntersecting).sort((f, y) => f.boundingClientRect.top - y.boundingClientRect.top);
8925
+ if (g.length > 0) {
8926
+ const f = g[0].target;
8927
8927
  i.current = u(f), o.current = f.offsetTop, s.current = l.scrollTop;
8928
8928
  }
8929
8929
  },
8930
8930
  { root: l, threshold: 0 }
8931
8931
  ), u = (m) => m.dataset.id, d = () => {
8932
- l.querySelectorAll(".message").forEach((h) => c.observe(h));
8932
+ l.querySelectorAll(".message").forEach((g) => c.observe(g));
8933
8933
  };
8934
8934
  d();
8935
- const g = (m, h = 2e3) => {
8935
+ const h = (m, g = 2e3) => {
8936
8936
  const f = Array.from(m.querySelectorAll("img"));
8937
8937
  if (f.length === 0) return Promise.resolve();
8938
8938
  const y = f.filter((v) => !v.complete).map(
@@ -8945,18 +8945,18 @@ const Eh = ({
8945
8945
  );
8946
8946
  return y.length === 0 ? Promise.resolve() : Promise.race([
8947
8947
  Promise.all(y),
8948
- new Promise((v) => setTimeout(v, h))
8948
+ new Promise((v) => setTimeout(v, g))
8949
8949
  ]);
8950
8950
  }, p = async () => {
8951
8951
  if (a.current || !r || l.scrollTop > n) return;
8952
8952
  a.current = !0;
8953
- const m = i.current, h = o.current, f = s.current ?? l.scrollTop, y = l.scrollHeight;
8954
- t(), await g(l, 200), requestAnimationFrame(() => {
8953
+ const m = i.current, g = o.current, f = s.current ?? l.scrollTop, y = l.scrollHeight;
8954
+ t(), await h(l, 200), requestAnimationFrame(() => {
8955
8955
  requestAnimationFrame(() => {
8956
8956
  if (m != null) {
8957
8957
  const v = l.scrollHeight, _ = `.message[data-id="${m}"]`, O = l.querySelector(_);
8958
8958
  if (O) {
8959
- const $ = O.offsetTop - (h || 0), S = v - y;
8959
+ const $ = O.offsetTop - (g || 0), S = v - y;
8960
8960
  l.scrollTop = (f || 0) + ($ || S);
8961
8961
  }
8962
8962
  }
@@ -8973,7 +8973,7 @@ const Eh = ({
8973
8973
  r,
8974
8974
  n
8975
8975
  ]);
8976
- }, $h = ({
8976
+ }, $g = ({
8977
8977
  messagesWithDividers: e,
8978
8978
  containerRef: t,
8979
8979
  offset: r = 100
@@ -8990,13 +8990,13 @@ const Eh = ({
8990
8990
  a() && setTimeout(i, 0);
8991
8991
  }, [e, t, r]);
8992
8992
  };
8993
- function Oh({ chatId: e }) {
8994
- const t = ge(null), r = ne.memo(Ch), n = ne.memo(xh), a = ne.memo(_h), [i, o] = Q(null), { Content: s, Footer: l } = zt, [c, u] = Q({
8993
+ function Og({ chatId: e }) {
8994
+ const t = he(null), r = ne.memo(Cg), n = ne.memo(xg), a = ne.memo(_g), [i, o] = Q(null), { Content: s, Footer: l } = zt, [c, u] = Q({
8995
8995
  chat_id: 0,
8996
8996
  who: "",
8997
8997
  messages: [],
8998
8998
  total: 0
8999
- }), [d, g] = Q(!0), [p, m] = Q(!1), [h, f] = Q(!1), y = Xe((b) => ({
8999
+ }), [d, h] = Q(!0), [p, m] = Q(!1), [g, f] = Q(!1), y = Xe((b) => ({
9000
9000
  fromId: b.from_id,
9001
9001
  id: b.id,
9002
9002
  text: b.text,
@@ -9039,7 +9039,7 @@ function Oh({ chatId: e }) {
9039
9039
  markMessagesAsRead: P,
9040
9040
  userdata: A
9041
9041
  } = rr();
9042
- Eh({
9042
+ Eg({
9043
9043
  messagesWithDividers: _,
9044
9044
  // сообщения с разделителями
9045
9045
  currentUserId: i,
@@ -9050,7 +9050,7 @@ function Oh({ chatId: e }) {
9050
9050
  // контейнер с сообщениями, за которым следим
9051
9051
  markMessagesAsRead: P
9052
9052
  // метод срабатываемый при попадании непрочитанного сообщения во вьюпорт контейнера со скроллом
9053
- }), wh({
9053
+ }), wg({
9054
9054
  containerRef: t,
9055
9055
  // контейнер с сообщениями, за которым следим
9056
9056
  fetchMoreMessages: () => {
@@ -9060,7 +9060,7 @@ function Oh({ chatId: e }) {
9060
9060
  // флаг надо ли еще реагировать на офсет
9061
9061
  offset: 500
9062
9062
  // офсет, расстояние до топа контейнера, в котором срабатывает метод
9063
- }), $h({
9063
+ }), $g({
9064
9064
  messagesWithDividers: _,
9065
9065
  // сообщения с разделителями
9066
9066
  containerRef: t,
@@ -9074,10 +9074,10 @@ function Oh({ chatId: e }) {
9074
9074
  A && A?.user && o(A?.user?.id);
9075
9075
  }, [A]), de(() => {
9076
9076
  t.current && v.length > 0 && !p && (t.current.scrollTop = t.current.scrollHeight, m(!0));
9077
- }, [v, p]), de(() => {
9077
+ }, [v]), de(() => {
9078
9078
  m(!1);
9079
9079
  }, [e]), de(() => {
9080
- g(c?.total - c?.messages?.length > 0);
9080
+ h(c?.total - c?.messages?.length > 0);
9081
9081
  }, [c]), de(() => {
9082
9082
  const b = t.current;
9083
9083
  if (!b) return;
@@ -9183,7 +9183,7 @@ function Oh({ chatId: e }) {
9183
9183
  className: G.antd_empty
9184
9184
  }
9185
9185
  ),
9186
- h && /* @__PURE__ */ N(
9186
+ g && /* @__PURE__ */ N(
9187
9187
  ac,
9188
9188
  {
9189
9189
  shape: "circle",
@@ -9200,15 +9200,15 @@ function Oh({ chatId: e }) {
9200
9200
  )
9201
9201
  ] })
9202
9202
  ] }),
9203
- /* @__PURE__ */ N(l, { className: G["chat-input__footer"], children: /* @__PURE__ */ N(Sh, { onSend: D }) })
9203
+ /* @__PURE__ */ N(l, { className: G["chat-input__footer"], children: /* @__PURE__ */ N(Sg, { onSend: D }) })
9204
9204
  ] });
9205
9205
  }
9206
- const { Sider: Fh, Content: Th } = zt;
9207
- function Ph() {
9206
+ const { Sider: Fg, Content: Tg } = zt;
9207
+ function Pg() {
9208
9208
  const [e, t] = Q(null);
9209
9209
  return /* @__PURE__ */ Te(zt, { className: G["chat-layout"], children: [
9210
- /* @__PURE__ */ N(Fh, { width: 220, className: G["chat-sidebar"], children: /* @__PURE__ */ N(vh, { onSelectChat: t, selectedChatId: e }) }),
9211
- /* @__PURE__ */ N(Th, { className: G["chat-content"], children: e ? /* @__PURE__ */ N(Oh, { chatId: e }) : /* @__PURE__ */ N(
9210
+ /* @__PURE__ */ N(Fg, { width: 220, className: G["chat-sidebar"], children: /* @__PURE__ */ N(vg, { onSelectChat: t, selectedChatId: e }) }),
9211
+ /* @__PURE__ */ N(Tg, { className: G["chat-content"], children: e ? /* @__PURE__ */ N(Og, { chatId: e }) : /* @__PURE__ */ N(
9212
9212
  qr,
9213
9213
  {
9214
9214
  description: "Выберите чат",
@@ -9218,26 +9218,26 @@ function Ph() {
9218
9218
  ) })
9219
9219
  ] });
9220
9220
  }
9221
- const Mh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
9222
- const a = ge(null), i = ge(null), [o, s] = Q(!1), [l, c] = Q({ x: 0, y: 0 }), u = !n, d = (m, h, f) => Math.min(Math.max(m, h), f);
9221
+ const Mg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
9222
+ const a = he(null), i = he(null), [o, s] = Q(!1), [l, c] = Q({ x: 0, y: 0 }), u = !n, d = (m, g, f) => Math.min(Math.max(m, g), f);
9223
9223
  de(() => {
9224
9224
  e && c({ x: 0, y: 0 });
9225
9225
  }, [e]), de(() => {
9226
9226
  if (e && n) {
9227
- const h = window.innerWidth, f = window.innerHeight, y = a.current ? a.current.offsetWidth : 500, v = a.current ? a.current.offsetHeight : 400;
9227
+ const g = window.innerWidth, f = window.innerHeight, y = a.current ? a.current.offsetWidth : 500, v = a.current ? a.current.offsetHeight : 400;
9228
9228
  let _, O;
9229
9229
  switch (n) {
9230
9230
  case "topLeft":
9231
9231
  _ = 10, O = 10;
9232
9232
  break;
9233
9233
  case "topRight":
9234
- _ = h - y - 10, O = 10;
9234
+ _ = g - y - 10, O = 10;
9235
9235
  break;
9236
9236
  case "bottomLeft":
9237
9237
  _ = 10, O = f - v - 10;
9238
9238
  break;
9239
9239
  case "bottomRight":
9240
- _ = h - y - 10, O = f - v - 10;
9240
+ _ = g - y - 10, O = f - v - 10;
9241
9241
  break;
9242
9242
  default:
9243
9243
  _ = 0, O = 0;
@@ -9245,21 +9245,21 @@ const Mh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
9245
9245
  c({ x: _, y: O });
9246
9246
  }
9247
9247
  }, [n, e]);
9248
- const g = () => {
9248
+ const h = () => {
9249
9249
  if (s(!0), a.current) {
9250
- const m = window.innerWidth, h = window.innerHeight, f = a.current.getBoundingClientRect();
9250
+ const m = window.innerWidth, g = window.innerHeight, f = a.current.getBoundingClientRect();
9251
9251
  i.current = {
9252
9252
  left: -f.left + 10,
9253
9253
  top: -f.top + 10,
9254
9254
  right: m - f.right - 10,
9255
- bottom: h - f.bottom - 10
9255
+ bottom: g - f.bottom - 10
9256
9256
  };
9257
9257
  }
9258
- }, p = (m, h) => {
9258
+ }, p = (m, g) => {
9259
9259
  s(!1), console.log(m), i.current ? c({
9260
- x: d(h.x, i.current.left, i.current.right),
9261
- y: d(h.y, i.current.top, i.current.bottom)
9262
- }) : c({ x: h.x, y: h.y });
9260
+ x: d(g.x, i.current.left, i.current.right),
9261
+ y: d(g.y, i.current.top, i.current.bottom)
9262
+ }) : c({ x: g.x, y: g.y });
9263
9263
  };
9264
9264
  return /* @__PURE__ */ N(
9265
9265
  ic,
@@ -9287,7 +9287,7 @@ const Mh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
9287
9287
  {
9288
9288
  handle: ".ant-modal-title",
9289
9289
  bounds: i.current || void 0,
9290
- onStart: g,
9290
+ onStart: h,
9291
9291
  onStop: p,
9292
9292
  nodeRef: a,
9293
9293
  position: l,
@@ -9307,10 +9307,10 @@ const Mh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
9307
9307
  children: m
9308
9308
  }
9309
9309
  ),
9310
- children: /* @__PURE__ */ N(Ph, {})
9310
+ children: /* @__PURE__ */ N(Pg, {})
9311
9311
  }
9312
9312
  );
9313
- }, Rh = ({ userdata: e }) => {
9313
+ }, Rg = ({ userdata: e }) => {
9314
9314
  const [t, r] = Q(!1), {
9315
9315
  connected: n,
9316
9316
  // boolean - подключен ли WebSocket
@@ -9357,14 +9357,14 @@ const Mh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
9357
9357
  /* @__PURE__ */ N("div", { children: y.countUnread })
9358
9358
  ] })
9359
9359
  }));
9360
- }, [u]), g = () => r(!0), p = () => r(!1), m = () => r(!1), h = /* @__PURE__ */ Te(Ze, { style: { background: "transparent" }, type: "primary", onClick: g, children: [
9360
+ }, [u]), h = () => r(!0), p = () => r(!1), m = () => r(!1), g = /* @__PURE__ */ Te(Ze, { style: { background: "transparent" }, type: "primary", onClick: h, children: [
9361
9361
  /* @__PURE__ */ N(Pc, {}),
9362
9362
  a > 0 && /* @__PURE__ */ N("span", { className: G["notification-badge"], children: a })
9363
9363
  ] });
9364
9364
  return /* @__PURE__ */ Te(Qi, { style: { padding: 0 }, children: [
9365
- d.length > 0 ? /* @__PURE__ */ N(oc, { menu: { items: d }, trigger: ["hover"], children: /* @__PURE__ */ N("div", { children: h }) }) : /* @__PURE__ */ N("div", { children: h }),
9365
+ d.length > 0 ? /* @__PURE__ */ N(oc, { menu: { items: d }, trigger: ["hover"], children: /* @__PURE__ */ N("div", { children: g }) }) : /* @__PURE__ */ N("div", { children: g }),
9366
9366
  /* @__PURE__ */ N(
9367
- Mh,
9367
+ Mg,
9368
9368
  {
9369
9369
  open: t,
9370
9370
  onOk: p,
@@ -10234,16 +10234,16 @@ const Mh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
10234
10234
  who: "Администратор Тестовый",
10235
10235
  total: 112
10236
10236
  }
10237
- }, Ah = ({ children: e }) => {
10238
- const t = ge(null), [r, n] = Q(!1), [a, i] = Q("disconnected"), [o, s] = Q(null), l = ge(o), [c, u] = Q(""), [d, g] = Q(""), [p, m] = Q(!1), [h, f] = Q(0), [y, v] = Q(null), [_, O] = Q(null), [C, $] = Q(null), [S, T] = Q(null), [M, P] = Q(null), [A, D] = Q(null), [V, b] = Q(null), [E, w] = Q(null), [R, I] = Q([]), k = ge(R), [L, H] = Q([]), B = ge(L), [W, U] = Q(0), [ee, ie] = Q(0), [fe, le] = Q(!1), [ue, oe] = Q(!1), [ve, ye] = Q(!1), [Pe, z] = Q(0), [je, Se] = Q({
10237
+ }, Ag = ({ children: e }) => {
10238
+ const t = he(null), [r, n] = Q(!1), [a, i] = Q("disconnected"), [o, s] = Q(null), l = he(o), [c, u] = Q(""), [d, h] = Q(""), [p, m] = Q(!1), [g, f] = Q(0), [y, v] = Q(null), [_, O] = Q(null), [C, $] = Q(null), [S, T] = Q(null), [M, P] = Q(null), [A, D] = Q(null), [V, b] = Q(null), [E, w] = Q(null), [R, I] = Q([]), k = he(R), [L, H] = Q([]), B = he(L), [W, U] = Q(0), [ee, ie] = Q(0), [fe, le] = Q(!1), [ue, oe] = Q(!1), [ve, ye] = Q(!1), [Pe, z] = Q(0), [je, Se] = Q({
10239
10239
  message: "",
10240
10240
  description: "",
10241
10241
  type: "info"
10242
10242
  }), [ke, rt] = Q(!1), $e = Xe(() => {
10243
- if (!p || !h || !c || !d || !y)
10243
+ if (!p || !g || !c || !d || !y)
10244
10244
  return;
10245
10245
  t.current?.connected && t.current.disconnect();
10246
- const q = ke ? Ac(`${c}:${h}`, { transports: ["websocket", "polling"], withCredentials: !0 }) : null;
10246
+ const q = ke ? Ac(`${c}:${g}`, { transports: ["websocket", "polling"], withCredentials: !0 }) : null;
10247
10247
  t.current = q, q && (q.on("connect", () => {
10248
10248
  console.log("CHAT WEBSOCKET CONNECTED"), n(!0), i("connected");
10249
10249
  const Z = l.current?.user?.id;
@@ -10269,7 +10269,7 @@ const Mh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
10269
10269
  }), q.on("connect_error", () => {
10270
10270
  console.log("CHAT WEBSOCKET CONNECT ERROR");
10271
10271
  }));
10272
- }, [ke, p, h, c, d, y, A, V, E]), Oe = (q) => {
10272
+ }, [ke, p, g, c, d, y, A, V, E]), Oe = (q) => {
10273
10273
  const Z = B.current.find((te) => +te.chat_id == +q.chat_id);
10274
10274
  if (!Z)
10275
10275
  H((te) => [...te, q]);
@@ -10472,7 +10472,7 @@ const Mh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
10472
10472
  console.log(`/api/sms/read/${Z}`);
10473
10473
  }, [d, y, p, M]);
10474
10474
  return de(() => {
10475
- if (ke && o && c && h && d) {
10475
+ if (ke && o && c && g && d) {
10476
10476
  const q = setTimeout(() => {
10477
10477
  $e(), nt(null).then();
10478
10478
  }, 0);
@@ -10483,10 +10483,10 @@ const Mh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
10483
10483
  console.log("Connection conditions not met:", {
10484
10484
  hasUserdata: !!o,
10485
10485
  hasHTTP_HOST: !!c,
10486
- hasBFF_PORT: !!h,
10486
+ hasBFF_PORT: !!g,
10487
10487
  hasCSRF_TOKEN: !!d
10488
10488
  });
10489
- }, [o, c, h, d, ke, $e, nt]), de(() => {
10489
+ }, [o, c, g, d, ke, $e, nt]), de(() => {
10490
10490
  B.current = L;
10491
10491
  }, [L]), de(() => {
10492
10492
  k.current = R;
@@ -10525,7 +10525,7 @@ const Mh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
10525
10525
  PROD_AXIOS_INSTANCE: y,
10526
10526
  setUserData: s,
10527
10527
  SET_HTTP_HOST: u,
10528
- SET_CSRF_TOKEN: g,
10528
+ SET_CSRF_TOKEN: h,
10529
10529
  SET_PRODMODE: m,
10530
10530
  SET_BFF_PORT: f,
10531
10531
  setFetchChatsListPath: O,
@@ -10541,7 +10541,7 @@ const Mh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
10541
10541
  children: e
10542
10542
  }
10543
10543
  );
10544
- }, Ih = ({
10544
+ }, Ig = ({
10545
10545
  userdata: e,
10546
10546
  httpParams: t,
10547
10547
  fetchParams: r,
@@ -10556,16 +10556,16 @@ const Mh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
10556
10556
  SET_BFF_PORT: c,
10557
10557
  setFetchChatsListPath: u,
10558
10558
  setFetchChatMessagesPath: d,
10559
- setSendSmsPath: g,
10559
+ setSendSmsPath: h,
10560
10560
  setMarkMessagesAsReadPath: p,
10561
10561
  setSubscribeToChat: m,
10562
- setNewSms: h,
10562
+ setNewSms: g,
10563
10563
  setUpdateSms: f,
10564
10564
  setInit: y
10565
10565
  } = rr();
10566
10566
  return de(() => {
10567
10567
  let v = !1, _ = !1, O = !1, C = !1, $ = !1;
10568
- e && i(e), e && (v = !0), t && t?.HTTP_HOST && o(t?.HTTP_HOST), t && t?.CSRF_TOKEN && s(t?.CSRF_TOKEN), t && t?.PRODMODE && l(t?.PRODMODE), t && t?.BFF_PORT && c(t?.BFF_PORT), t && t?.HTTP_HOST && t?.CSRF_TOKEN && t?.PRODMODE && t?.BFF_PORT && (_ = !0), r && r?.fetchChatsListPath && u(r?.fetchChatsListPath), r && r?.fetchChatMessagesPath && d(r?.fetchChatMessagesPath), r && r?.sendSmsPath && g(r?.sendSmsPath), r && r?.markMessagesAsReadPath && p(r?.markMessagesAsReadPath), r && r?.fetchChatsListPath && r?.fetchChatMessagesPath && r?.sendSmsPath && r?.markMessagesAsReadPath && (O = !0), n && n?.subscribeToChat && m(n?.subscribeToChat), n && n?.subscribeToChat && (C = !0), a && a?.newSms && h(a?.newSms), a && a?.updateSms && f(a?.updateSms), a && a?.newSms && a?.updateSms && ($ = !0), v && _ && O && C && $ && y(!0);
10568
+ e && i(e), e && (v = !0), t && t?.HTTP_HOST && o(t?.HTTP_HOST), t && t?.CSRF_TOKEN && s(t?.CSRF_TOKEN), t && t?.PRODMODE && l(t?.PRODMODE), t && t?.BFF_PORT && c(t?.BFF_PORT), t && t?.HTTP_HOST && t?.CSRF_TOKEN && t?.PRODMODE && t?.BFF_PORT && (_ = !0), r && r?.fetchChatsListPath && u(r?.fetchChatsListPath), r && r?.fetchChatMessagesPath && d(r?.fetchChatMessagesPath), r && r?.sendSmsPath && h(r?.sendSmsPath), r && r?.markMessagesAsReadPath && p(r?.markMessagesAsReadPath), r && r?.fetchChatsListPath && r?.fetchChatMessagesPath && r?.sendSmsPath && r?.markMessagesAsReadPath && (O = !0), n && n?.subscribeToChat && m(n?.subscribeToChat), n && n?.subscribeToChat && (C = !0), a && a?.newSms && g(a?.newSms), a && a?.updateSms && f(a?.updateSms), a && a?.newSms && a?.updateSms && ($ = !0), v && _ && O && C && $ && y(!0);
10569
10569
  }, [
10570
10570
  e,
10571
10571
  t,
@@ -10579,14 +10579,14 @@ const Mh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
10579
10579
  c,
10580
10580
  u,
10581
10581
  d,
10582
- g,
10582
+ h,
10583
10583
  p,
10584
10584
  m,
10585
- h,
10585
+ g,
10586
10586
  f,
10587
10587
  y
10588
- ]), /* @__PURE__ */ N(Rh, { userdata: e });
10589
- }, Uh = (e) => {
10588
+ ]), /* @__PURE__ */ N(Rg, { userdata: e });
10589
+ }, Ug = (e) => {
10590
10590
  const {
10591
10591
  userdata: t,
10592
10592
  httpParams: r,
@@ -10598,12 +10598,12 @@ const Mh = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
10598
10598
  console.log("CORP-CHAT MOUNTED");
10599
10599
  }, []), de(() => {
10600
10600
  console.log("CORP-CHAT PARAMS", e);
10601
- }, [e]), /* @__PURE__ */ N("div", { children: t && r && n && a && i ? /* @__PURE__ */ N(Ah, { children: /* @__PURE__ */ N(Ih, { ...e }) }) : /* @__PURE__ */ N("div", { children: "AAAAdd userdata, httpParams, fetchParams, socketSubscribe, socketActions" }) });
10601
+ }, [e]), /* @__PURE__ */ N("div", { children: t && r && n && a && i ? /* @__PURE__ */ N(Ag, { children: /* @__PURE__ */ N(Ig, { ...e }) }) : /* @__PURE__ */ N("div", { children: "AAAAdd userdata, httpParams, fetchParams, socketSubscribe, socketActions" }) });
10602
10602
  };
10603
10603
  export {
10604
- Uh as Chat,
10605
- Rh as ChatBtn,
10606
- Ah as ChatSocketProvider,
10607
- Uh as default,
10604
+ Ug as Chat,
10605
+ Rg as ChatBtn,
10606
+ Ag as ChatSocketProvider,
10607
+ Ug as default,
10608
10608
  rr as useChatSocket
10609
10609
  };