xph-crud 0.1.2 → 0.1.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
@@ -72,7 +72,7 @@ var fr;
72
72
  function vo() {
73
73
  return fr || (fr = 1, process.env.NODE_ENV !== "production" && function() {
74
74
  var e = Ee, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), f = Symbol.iterator, x = "@@iterator";
75
- function j(l) {
75
+ function D(l) {
76
76
  if (l === null || typeof l != "object")
77
77
  return null;
78
78
  var m = f && l[f] || l[x];
@@ -96,10 +96,10 @@ function vo() {
96
96
  K.unshift("Warning: " + m), Function.prototype.apply.call(console[l], console, K);
97
97
  }
98
98
  }
99
- var U = !1, V = !1, q = !1, H = !1, D = !1, R;
99
+ var U = !1, V = !1, q = !1, H = !1, j = !1, R;
100
100
  R = Symbol.for("react.module.reference");
101
101
  function y(l) {
102
- return !!(typeof l == "string" || typeof l == "function" || l === n || l === i || D || l === o || l === u || l === d || H || l === v || U || V || q || typeof l == "object" && l !== null && (l.$$typeof === p || l.$$typeof === h || l.$$typeof === s || l.$$typeof === a || l.$$typeof === c || // This needs to include all possible module reference object
102
+ return !!(typeof l == "string" || typeof l == "function" || l === n || l === i || j || l === o || l === u || l === d || H || l === v || U || V || q || typeof l == "object" && l !== null && (l.$$typeof === p || l.$$typeof === h || l.$$typeof === s || l.$$typeof === a || l.$$typeof === c || // This needs to include all possible module reference object
103
103
  // types supported by any Flight configuration anywhere since
104
104
  // we don't know which Flight build this will end up being used
105
105
  // with.
@@ -563,7 +563,7 @@ Check the top-level render call using <` + S + ">.");
563
563
  else if (St(l))
564
564
  l._store && (l._store.validated = !0);
565
565
  else if (l) {
566
- var G = j(l);
566
+ var G = D(l);
567
567
  if (typeof G == "function" && G !== l.entries)
568
568
  for (var K = G.call(l), Y; !(Y = K.next()).done; )
569
569
  St(Y.value) && sr(Y.value, m);
@@ -1265,9 +1265,9 @@ function gn(e, t, r, n, o, i) {
1265
1265
  for (i.set(e, t), i.set(t, e); ++h < a; ) {
1266
1266
  var f = e[h], x = t[h];
1267
1267
  if (n)
1268
- var j = s ? n(x, f, h, t, e, i) : n(f, x, h, e, t, i);
1269
- if (j !== void 0) {
1270
- if (j)
1268
+ var D = s ? n(x, f, h, t, e, i) : n(f, x, h, e, t, i);
1269
+ if (D !== void 0) {
1270
+ if (D)
1271
1271
  continue;
1272
1272
  p = !1;
1273
1273
  break;
@@ -1350,7 +1350,7 @@ function Ua(e, t, r, n, o, i) {
1350
1350
  return v == t && f == e;
1351
1351
  var x = !0;
1352
1352
  i.set(e, t), i.set(t, e);
1353
- for (var j = s; ++h < c; ) {
1353
+ for (var D = s; ++h < c; ) {
1354
1354
  p = a[h];
1355
1355
  var k = e[p], E = t[p];
1356
1356
  if (n)
@@ -1359,9 +1359,9 @@ function Ua(e, t, r, n, o, i) {
1359
1359
  x = !1;
1360
1360
  break;
1361
1361
  }
1362
- j || (j = p == "constructor");
1362
+ D || (D = p == "constructor");
1363
1363
  }
1364
- if (x && !j) {
1364
+ if (x && !D) {
1365
1365
  var U = e.constructor, V = t.constructor;
1366
1366
  U != V && "constructor" in e && "constructor" in t && !(typeof U == "function" && U instanceof U && typeof V == "function" && V instanceof V) && (x = !1);
1367
1367
  }
@@ -1382,8 +1382,8 @@ function qa(e, t, r, n, o, i) {
1382
1382
  if (!(r & Va)) {
1383
1383
  var v = d && kr.call(e, "__wrapped__"), f = h && kr.call(t, "__wrapped__");
1384
1384
  if (v || f) {
1385
- var x = v ? e.value() : e, j = f ? t.value() : t;
1386
- return i || (i = new Se()), o(x, j, r, n, i);
1385
+ var x = v ? e.value() : e, D = f ? t.value() : t;
1386
+ return i || (i = new Se()), o(x, D, r, n, i);
1387
1387
  }
1388
1388
  }
1389
1389
  return p ? (i || (i = new Se()), Ua(e, t, r, n, o, i)) : !1;
@@ -1743,8 +1743,8 @@ const hc = (e) => {
1743
1743
  }, []), c = Te((d) => {
1744
1744
  const h = r.current, { translateX: p, translateY: v } = s(h);
1745
1745
  let f = d.clientX - o.current, x = d.clientY - i.current;
1746
- const j = -p, k = -v, E = e.current.scrollWidth - h.offsetWidth - p, M = e.current.scrollHeight - h.offsetHeight - v;
1747
- f < j && (f = j), f > E && (f = E), x < k && (x = k), x > M && (x = M), n({ left: f, top: x });
1746
+ const D = -p, k = -v, E = e.current.scrollWidth - h.offsetWidth - p, M = e.current.scrollHeight - h.offsetHeight - v;
1747
+ f < D && (f = D), f > E && (f = E), x < k && (x = k), x > M && (x = M), n({ left: f, top: x });
1748
1748
  }, []), u = Te(() => {
1749
1749
  document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", u);
1750
1750
  }, []);
@@ -1770,13 +1770,13 @@ const hc = (e) => {
1770
1770
  },
1771
1771
  onMaximize: (v) => {
1772
1772
  if (v === "minimize" && s(!1), v === "maximize") {
1773
- const { scrollWidth: f, scrollHeight: x } = e.current, j = Math.floor(f), k = Math.floor(x), E = Math.floor(f / 2), M = Math.floor(x / 2);
1774
- n({ width: j, height: k }), o({ top: M, left: E }), c(!0);
1773
+ const { scrollWidth: f, scrollHeight: x } = e.current, D = Math.floor(f), k = Math.floor(x), E = Math.floor(f / 2), M = Math.floor(x / 2);
1774
+ n({ width: D, height: k }), o({ top: M, left: E }), c(!0);
1775
1775
  }
1776
1776
  },
1777
1777
  onRecovery: () => {
1778
- const { top: v, left: f, width: x, height: j } = t.current;
1779
- n({ width: x, height: j }), o({ top: v, left: f }), c(!1);
1778
+ const { top: v, left: f, width: x, height: D } = t.current;
1779
+ n({ width: x, height: D }), o({ top: v, left: f }), c(!1);
1780
1780
  },
1781
1781
  onClose: () => {
1782
1782
  s(!1), c(!1), r();
@@ -1977,15 +1977,15 @@ const hc = (e) => {
1977
1977
  display: "none"
1978
1978
  }
1979
1979
  }
1980
- ), []), s = W(null), a = W(), c = W(!1), [u, d] = ee(!1), h = W(0), p = W(0), v = (H, D) => {
1981
- c.current = !0, d(!0), a.current = D;
1980
+ ), []), s = W(null), a = W(), c = W(!1), [u, d] = ee(!1), h = W(0), p = W(0), v = (H, j) => {
1981
+ c.current = !0, d(!0), a.current = j;
1982
1982
  const { clientX: R, clientY: y } = H;
1983
1983
  h.current = R, p.current = y;
1984
1984
  const C = parseFloat(t.current.style.left), z = parseFloat(t.current.style.top), L = t.current.offsetWidth, _ = t.current.offsetHeight;
1985
1985
  s.current.style.display = "block", s.current.style.left = `${C - 0.5 * L}px`, s.current.style.top = `${z - 0.5 * _}px`, s.current.style.width = `${L}px`, s.current.style.height = `${_}px`;
1986
1986
  }, f = (H) => {
1987
1987
  if (c.current) {
1988
- const { clientX: D, clientY: R } = H, y = D - h.current, C = R - p.current, z = parseFloat(s.current.style.left), L = parseFloat(s.current.style.top), _ = s.current.offsetWidth, b = s.current.offsetHeight, w = r.current.width, P = r.current.height, T = e.current.scrollWidth, O = e.current.scrollHeight;
1988
+ const { clientX: j, clientY: R } = H, y = j - h.current, C = R - p.current, z = parseFloat(s.current.style.left), L = parseFloat(s.current.style.top), _ = s.current.offsetWidth, b = s.current.offsetHeight, w = r.current.width, P = r.current.height, T = e.current.scrollWidth, O = e.current.scrollHeight;
1989
1989
  let $ = _, F = b, A = z, N = L;
1990
1990
  switch (a.current) {
1991
1991
  case "lt": {
@@ -2005,15 +2005,15 @@ const hc = (e) => {
2005
2005
  break;
2006
2006
  }
2007
2007
  }
2008
- s.current.style.left = `${A}px`, s.current.style.top = `${N}px`, s.current.style.width = `${$}px`, s.current.style.height = `${F}px`, h.current = D, p.current = R;
2008
+ s.current.style.left = `${A}px`, s.current.style.top = `${N}px`, s.current.style.width = `${$}px`, s.current.style.height = `${F}px`, h.current = j, p.current = R;
2009
2009
  }
2010
2010
  }, x = () => {
2011
2011
  if (c.current) {
2012
2012
  c.current = !1, d(!1), s.current.style.display = "none";
2013
- const { left: H, top: D, width: R, height: y } = s.current.style, C = parseFloat(H) + 0.5 * parseFloat(R), z = parseFloat(D) + 0.5 * parseFloat(y), L = parseFloat(R), _ = parseFloat(y);
2013
+ const { left: H, top: j, width: R, height: y } = s.current.style, C = parseFloat(H) + 0.5 * parseFloat(R), z = parseFloat(j) + 0.5 * parseFloat(y), L = parseFloat(R), _ = parseFloat(y);
2014
2014
  o({ left: C, top: z }), n({ width: L, height: _ });
2015
2015
  }
2016
- }, j = (H) => v(H, "lt"), k = (H) => v(H, "rt"), E = (H) => v(H, "rb"), M = (H) => v(H, "lb"), U = Te((H) => {
2016
+ }, D = (H) => v(H, "lt"), k = (H) => v(H, "rt"), E = (H) => v(H, "rb"), M = (H) => v(H, "lb"), U = Te((H) => {
2017
2017
  f(H);
2018
2018
  }, []), V = Te(() => {
2019
2019
  x();
@@ -2025,7 +2025,7 @@ const hc = (e) => {
2025
2025
  }), []), {
2026
2026
  resizingState: u,
2027
2027
  DashedBox: i,
2028
- onMousedownResizeLt: j,
2028
+ onMousedownResizeLt: D,
2029
2029
  onMousedownResizeRt: k,
2030
2030
  onMousedownResizeRb: E,
2031
2031
  onMousedownResizeLb: M
@@ -2036,23 +2036,23 @@ const hc = (e) => {
2036
2036
  baseDialogProps: r
2037
2037
  }) => {
2038
2038
  const [n, o] = ee(0), i = () => {
2039
- o((D) => D + 1);
2039
+ o((j) => j + 1);
2040
2040
  };
2041
2041
  Z(() => {
2042
- const D = new ResizeObserver(i);
2043
- return D.observe(e), () => {
2044
- D.unobserve(e), D.disconnect();
2042
+ const j = new ResizeObserver(i);
2043
+ return j.observe(e), () => {
2044
+ j.unobserve(e), j.disconnect();
2045
2045
  };
2046
2046
  }, [e]);
2047
2047
  const { containerSizeTarget: s, setContainerSizeTarget: a } = Rc({
2048
2048
  container: e
2049
- }), { width: c, height: u } = r, { width: d, height: h } = t, p = d || c, v = h || u, { clientWidth: f, clientHeight: x } = s.current, j = p ? p > f ? f : p : 0, k = v ? v > x ? x : v : "unset", E = W(j), M = W(k), U = (D) => {
2050
- E.current = D.width, M.current = D.height;
2051
- }, V = W(Math.floor(f / 2)), q = W(Math.floor(x / 2)), H = (D) => {
2052
- V.current = D.left, q.current = D.top;
2049
+ }), { width: c, height: u } = r, { width: d, height: h } = t, p = d || c, v = h || u, { clientWidth: f, clientHeight: x } = s.current, D = p ? p > f ? f : p : 0, k = v ? v > x ? x : v : "unset", E = W(D), M = W(k), U = (j) => {
2050
+ E.current = j.width, M.current = j.height;
2051
+ }, V = W(Math.floor(f / 2)), q = W(Math.floor(x / 2)), H = (j) => {
2052
+ V.current = j.left, q.current = j.top;
2053
2053
  };
2054
2054
  return Z(() => {
2055
- n !== 0 && (console.log("触发了内部parentResizeRecord"), a(), U({ width: j, height: k }), H({
2055
+ n !== 0 && (console.log("触发了内部parentResizeRecord"), a(), U({ width: D, height: k }), H({
2056
2056
  left: Math.floor(f / 2),
2057
2057
  top: Math.floor(x / 2)
2058
2058
  }));
@@ -2063,7 +2063,7 @@ const hc = (e) => {
2063
2063
  initTop: q,
2064
2064
  initWidth: E,
2065
2065
  initHeight: M,
2066
- curPropsWidth: j,
2066
+ curPropsWidth: D,
2067
2067
  curPropsHeight: k,
2068
2068
  setInitPosition: H,
2069
2069
  setInitSize: U
@@ -2233,9 +2233,9 @@ const hc = (e) => {
2233
2233
  renderFooter: c,
2234
2234
  renderTitle: u,
2235
2235
  getPopperContainer: d
2236
- } = e, h = d(), [p, v] = uc(!1), [f, x] = ee(!1), { open: j, close: k } = mc(e, v, x), { footerActions: E } = pc(e, f), M = W(null), U = W(null), V = W(null), q = W(null), {
2236
+ } = e, h = d(), [p, v] = uc(!1), [f, x] = ee(!1), { open: D, close: k } = mc(e, v, x), { footerActions: E } = pc(e, f), M = W(null), U = W(null), V = W(null), q = W(null), {
2237
2237
  containerSizeTarget: H,
2238
- parentResizeRecord: D,
2238
+ parentResizeRecord: j,
2239
2239
  initLeft: R,
2240
2240
  initTop: y,
2241
2241
  initWidth: C,
@@ -2283,8 +2283,8 @@ const hc = (e) => {
2283
2283
  console.log("触发了initDialog"), O({ width: C.current, height: z.current }), A({ left: R.current, top: y.current }), ce({ left: 160, top: 60 });
2284
2284
  };
2285
2285
  Z(() => {
2286
- D !== 0 && (console.log("触发了外部parentResizeRecord"), Ie());
2287
- }, [D]), Cc({
2286
+ j !== 0 && (console.log("触发了外部parentResizeRecord"), Ie());
2287
+ }, [j]), Cc({
2288
2288
  initWidth: C,
2289
2289
  initHeight: z,
2290
2290
  initLeft: R,
@@ -2324,7 +2324,7 @@ const hc = (e) => {
2324
2324
  setDialogPosition: A
2325
2325
  });
2326
2326
  return Me(t, () => ({
2327
- open: j,
2327
+ open: D,
2328
2328
  close: De,
2329
2329
  setLoading: x
2330
2330
  })), /* @__PURE__ */ g.jsxs("div", { className: Le.xphDialog, children: [
@@ -2491,8 +2491,8 @@ const Uc = [
2491
2491
  let a = o;
2492
2492
  const c = Kt(e), u = c ? Hc(e.component) + i : "";
2493
2493
  function d(f, x) {
2494
- const j = f.message || u;
2495
- return x === void 0 || nc(x) || Array.isArray(x) && x.length === 0 || typeof x == "string" && x.trim() === "" || typeof x == "object" && Reflect.has(x, "checked") && Reflect.has(x, "halfChecked") && Array.isArray(x.checked) && Array.isArray(x.halfChecked) && x.checked.length === 0 && x.halfChecked.length === 0 ? Promise.reject(j) : Promise.resolve();
2494
+ const D = f.message || u;
2495
+ return x === void 0 || nc(x) || Array.isArray(x) && x.length === 0 || typeof x == "string" && x.trim() === "" || typeof x == "object" && Reflect.has(x, "checked") && Reflect.has(x, "halfChecked") && Array.isArray(x.checked) && Array.isArray(x.halfChecked) && x.checked.length === 0 && x.halfChecked.length === 0 ? Promise.reject(D) : Promise.resolve();
2496
2496
  }
2497
2497
  const h = oe(s) ? s({ model: t }) : s;
2498
2498
  h && (!a || a.length === 0 ? a = [{ required: h, validator: d }] : a.findIndex(
@@ -2506,8 +2506,8 @@ const Uc = [
2506
2506
  if (r || (f.required = !1), c) {
2507
2507
  const { component: x } = e;
2508
2508
  Reflect.has(f, "type") || (f.type = x === "InputNumber" ? "number" : "string"), f.message = f.message || u, (x.includes("Input") || x.includes("Textarea")) && (f.whitespace = !0);
2509
- const j = n.valueFormat;
2510
- Bc(f, x, j);
2509
+ const D = n.valueFormat;
2510
+ Bc(f, x, D);
2511
2511
  }
2512
2512
  }
2513
2513
  const v = a.findIndex((f) => f.max);
@@ -2598,7 +2598,7 @@ var $n = { exports: {} };
2598
2598
  (function(r, n) {
2599
2599
  e.exports = n();
2600
2600
  })(go, function() {
2601
- var r = 1e3, n = 6e4, o = 36e5, i = "millisecond", s = "second", a = "minute", c = "hour", u = "day", d = "week", h = "month", p = "quarter", v = "year", f = "date", x = "Invalid Date", j = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|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, E = { 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(_) {
2601
+ var r = 1e3, n = 6e4, o = 36e5, i = "millisecond", s = "second", a = "minute", c = "hour", u = "day", d = "week", h = "month", p = "quarter", v = "year", f = "date", x = "Invalid Date", D = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|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, E = { 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(_) {
2602
2602
  var b = ["th", "st", "nd", "rd"], w = _ % 100;
2603
2603
  return "[" + _ + (b[(w - 20) % 10] || b[w] || b[0]) + "]";
2604
2604
  } }, M = function(_, b, w) {
@@ -2620,7 +2620,7 @@ var $n = { exports: {} };
2620
2620
  return _ === void 0;
2621
2621
  } }, V = "en", q = {};
2622
2622
  q[V] = E;
2623
- var H = "$isDayjsObject", D = function(_) {
2623
+ var H = "$isDayjsObject", j = function(_) {
2624
2624
  return _ instanceof z || !(!_ || !_[H]);
2625
2625
  }, R = function _(b, w, P) {
2626
2626
  var T;
@@ -2638,12 +2638,12 @@ var $n = { exports: {} };
2638
2638
  }
2639
2639
  return !P && T && (V = T), T || !P && V;
2640
2640
  }, y = function(_, b) {
2641
- if (D(_))
2641
+ if (j(_))
2642
2642
  return _.clone();
2643
2643
  var w = typeof b == "object" ? b : {};
2644
2644
  return w.date = _, w.args = arguments, new z(w);
2645
2645
  }, C = U;
2646
- C.l = R, C.i = D, C.w = function(_, b) {
2646
+ C.l = R, C.i = j, C.w = function(_, b) {
2647
2647
  return y(_, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
2648
2648
  };
2649
2649
  var z = function() {
@@ -2661,7 +2661,7 @@ var $n = { exports: {} };
2661
2661
  if (T instanceof Date)
2662
2662
  return new Date(T);
2663
2663
  if (typeof T == "string" && !/Z$/i.test(T)) {
2664
- var $ = T.match(j);
2664
+ var $ = T.match(D);
2665
2665
  if ($) {
2666
2666
  var F = $[2] - 1 || 0, A = ($[7] || "0").substring(0, 3);
2667
2667
  return O ? new Date(Date.UTC($[1], F, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, A)) : new Date($[1], F, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, A);
@@ -2878,7 +2878,7 @@ var $n = { exports: {} };
2878
2878
  };
2879
2879
  }), y.extend = function(_, b) {
2880
2880
  return _.$i || (_(b, z, y), _.$i = !0), y;
2881
- }, y.locale = R, y.isDayjs = D, y.unix = function(_) {
2881
+ }, y.locale = R, y.isDayjs = j, y.unix = function(_) {
2882
2882
  return y(1e3 * _);
2883
2883
  }, y.en = q[V], y.Ls = q, y.p = {}, y;
2884
2884
  });
@@ -2973,13 +2973,13 @@ const sl = (e, t, r) => {
2973
2973
  const [x] = v;
2974
2974
  if (!x || de(f) && f.length === 0 || oe(f))
2975
2975
  continue;
2976
- const { transformDateFunc: j } = t, k = (d = (u = (c = r.current) == null ? void 0 : c.get(x)) == null ? void 0 : u.current) == null ? void 0 : d.componentProps, E = k == null ? void 0 : k.valueFormat;
2976
+ const { transformDateFunc: D } = t, k = (d = (u = (c = r.current) == null ? void 0 : c.get(x)) == null ? void 0 : u.current) == null ? void 0 : d.componentProps, E = k == null ? void 0 : k.valueFormat;
2977
2977
  if (me(f)) {
2978
2978
  const M = f;
2979
- M.format && (f = j == null ? void 0 : j(M, E));
2979
+ M.format && (f = D == null ? void 0 : D(M, E));
2980
2980
  }
2981
2981
  de(f) && ((h = f[0]) != null && h.format) && ((p = f[1]) != null && p.format) && (f = f.map(
2982
- (M) => j == null ? void 0 : j(M, E)
2982
+ (M) => D == null ? void 0 : D(M, E)
2983
2983
  )), vn(f) && (f === "" ? f = void 0 : f = f.trim()), a[x] = f;
2984
2984
  }
2985
2985
  return ol(a, t);
@@ -3075,8 +3075,8 @@ const sl = (e, t, r) => {
3075
3075
  }), d = (p) => {
3076
3076
  p && !n && u(), i && i(p);
3077
3077
  }, h = () => {
3078
- const { api: p, params: v, immediate: f, isusewatch: x, ...j } = e;
3079
- return j;
3078
+ const { api: p, params: v, immediate: f, isusewatch: x, ...D } = e;
3079
+ return D;
3080
3080
  };
3081
3081
  return /* @__PURE__ */ g.jsx(
3082
3082
  Yr,
@@ -3103,8 +3103,8 @@ const sl = (e, t, r) => {
3103
3103
  }), d = (p) => {
3104
3104
  p && !n && u(), i && i(p);
3105
3105
  }, h = () => {
3106
- const { api: p, params: v, immediate: f, isusewatch: x, ...j } = e;
3107
- return j;
3106
+ const { api: p, params: v, immediate: f, isusewatch: x, ...D } = e;
3107
+ return D;
3108
3108
  };
3109
3109
  return /* @__PURE__ */ g.jsx(
3110
3110
  qr,
@@ -3145,8 +3145,8 @@ const sl = (e, t, r) => {
3145
3145
  }), d = (p) => {
3146
3146
  p && !n && u(), i && i(p);
3147
3147
  }, h = () => {
3148
- const { api: p, params: v, immediate: f, isusewatch: x, ...j } = e;
3149
- return j;
3148
+ const { api: p, params: v, immediate: f, isusewatch: x, ...D } = e;
3149
+ return D;
3150
3150
  };
3151
3151
  return /* @__PURE__ */ g.jsx(
3152
3152
  Xr,
@@ -3180,11 +3180,11 @@ const sl = (e, t, r) => {
3180
3180
  value: u = t,
3181
3181
  // 默认文件列表
3182
3182
  onChange: d
3183
- } = e, h = W(!0), p = W(0), v = W([]), [f, x] = ee([]), j = (D) => {
3184
- v.current = D, x([...D]);
3183
+ } = e, h = W(!0), p = W(0), v = W([]), [f, x] = ee([]), D = (j) => {
3184
+ v.current = j, x([...j]);
3185
3185
  }, k = () => {
3186
3186
  const {
3187
- api: D,
3187
+ api: j,
3188
3188
  maxCount: R,
3189
3189
  maxSize: y,
3190
3190
  openCrop: C,
@@ -3194,35 +3194,35 @@ const sl = (e, t, r) => {
3194
3194
  ...b
3195
3195
  } = e;
3196
3196
  return b;
3197
- }, E = (D) => {
3198
- const R = D.size / 1024 / 1024 < o;
3197
+ }, E = (j) => {
3198
+ const R = j.size / 1024 / 1024 < o;
3199
3199
  R || $t.error(`文件大小超过:${o}M, 请重试`);
3200
3200
  const y = v.current.length + p.current < n;
3201
- return y || $t.error(`文件数量不能超过${n}个`), R && y && p.current++, R && y && M(D), Ft.LIST_IGNORE;
3202
- }, M = (D) => {
3203
- s ? ($t.error("暂时不支持裁剪功能,后续兼容。。。。"), U({ file: D })) : U({ file: D });
3204
- }, U = (D) => {
3205
- r ? r({ file: D.file, ...a }).then((R) => {
3206
- j([...v.current, ...R]);
3201
+ return y || $t.error(`文件数量不能超过${n}个`), R && y && p.current++, R && y && M(j), Ft.LIST_IGNORE;
3202
+ }, M = (j) => {
3203
+ s ? ($t.error("暂时不支持裁剪功能,后续兼容。。。。"), U({ file: j })) : U({ file: j });
3204
+ }, U = (j) => {
3205
+ r ? r({ file: j.file, ...a }).then((R) => {
3206
+ D([...v.current, ...R]);
3207
3207
  }).finally(() => {
3208
3208
  p.current--;
3209
- }) : (Object.assign(D.file, {
3209
+ }) : (Object.assign(j.file, {
3210
3210
  status: "done",
3211
3211
  url: URL.createObjectURL(
3212
- new Blob([D.file], {
3213
- type: Yc(D.file.type)
3212
+ new Blob([j.file], {
3213
+ type: Yc(j.file.type)
3214
3214
  })
3215
3215
  )
3216
- }), j([...v.current, D.file]), p.current--);
3217
- }, V = (D) => {
3218
- const { file: R, fileList: y } = D, { status: C } = R;
3216
+ }), D([...v.current, j.file]), p.current--);
3217
+ }, V = (j) => {
3218
+ const { file: R, fileList: y } = j, { status: C } = R;
3219
3219
  switch (C) {
3220
3220
  case "removed": {
3221
- j([...y]);
3221
+ D([...y]);
3222
3222
  break;
3223
3223
  }
3224
3224
  }
3225
- }, q = (D) => {
3225
+ }, q = (j) => {
3226
3226
  const R = (C) => {
3227
3227
  const z = C.split("/"), L = z[z.length - 1], [_] = L.split("?");
3228
3228
  return _;
@@ -3230,13 +3230,13 @@ const sl = (e, t, r) => {
3230
3230
  return { uid: ((C) => {
3231
3231
  const z = v.current.find((L) => L.url === C);
3232
3232
  return z ? z.uid : lr();
3233
- })(D), name: R(D), url: D, status: "done" };
3233
+ })(j), name: R(j), url: j, status: "done" };
3234
3234
  }, H = () => {
3235
3235
  switch (c) {
3236
3236
  case Ce.String:
3237
- return f.map((D) => D.url).join(",");
3237
+ return f.map((j) => j.url).join(",");
3238
3238
  case Ce["String[]"]:
3239
- return f.map((D) => D.url);
3239
+ return f.map((j) => j.url);
3240
3240
  case Ce["File[]"]:
3241
3241
  return [...f];
3242
3242
  case Ce.FileList:
@@ -3244,8 +3244,8 @@ const sl = (e, t, r) => {
3244
3244
  }
3245
3245
  };
3246
3246
  return Z(() => {
3247
- const D = H();
3248
- if (it(D, u))
3247
+ const j = H();
3248
+ if (it(j, u))
3249
3249
  return;
3250
3250
  let R = [];
3251
3251
  switch (c) {
@@ -3266,14 +3266,14 @@ const sl = (e, t, r) => {
3266
3266
  break;
3267
3267
  }
3268
3268
  }
3269
- j(R);
3269
+ D(R);
3270
3270
  }, [u]), Z(() => {
3271
3271
  if (h.current) {
3272
3272
  h.current = !1;
3273
3273
  return;
3274
3274
  }
3275
- const D = H();
3276
- d == null || d(D);
3275
+ const j = H();
3276
+ d == null || d(j);
3277
3277
  }, [f]), /* @__PURE__ */ g.jsx(
3278
3278
  Ft,
3279
3279
  {
@@ -3344,7 +3344,7 @@ const Lr = {
3344
3344
  n,
3345
3345
  e
3346
3346
  ), {
3347
- name: j,
3347
+ name: D,
3348
3348
  label: k,
3349
3349
  wrapperCol: E,
3350
3350
  labelCol: M,
@@ -3359,15 +3359,15 @@ const Lr = {
3359
3359
  setItemCollapse: x
3360
3360
  }));
3361
3361
  const H = () => ({
3362
- name: j,
3362
+ name: D,
3363
3363
  label: k,
3364
3364
  rules: p,
3365
3365
  wrapperCol: E,
3366
3366
  labelCol: M,
3367
3367
  valuePropName: U,
3368
3368
  initialValue: V
3369
- }), { setExtendFormComp: D } = Pn();
3370
- D(X);
3369
+ }), { setExtendFormComp: j } = Pn();
3370
+ j(X);
3371
3371
  const R = Kt(t), y = Jt(t), C = () => {
3372
3372
  if (R) {
3373
3373
  const z = X.get(t.component);
@@ -3382,7 +3382,7 @@ const Lr = {
3382
3382
  }
3383
3383
  return y ? t.render({
3384
3384
  model: s,
3385
- name: j,
3385
+ name: D,
3386
3386
  disabled: v,
3387
3387
  methods: r,
3388
3388
  componentProps: h
@@ -3456,7 +3456,7 @@ const Lr = {
3456
3456
  setFieldsValue: v,
3457
3457
  getFieldsValue: f,
3458
3458
  resetFields: x,
3459
- validator: j,
3459
+ validator: D,
3460
3460
  scrollToField: k
3461
3461
  } = il(
3462
3462
  r,
@@ -3468,7 +3468,7 @@ const Lr = {
3468
3468
  wrapperCol: V,
3469
3469
  labelCol: q,
3470
3470
  colon: H,
3471
- disabled: D,
3471
+ disabled: j,
3472
3472
  labelWrap: R,
3473
3473
  labelAlign: y,
3474
3474
  scrollToFirstError: C,
@@ -3479,7 +3479,7 @@ const Lr = {
3479
3479
  wrapperCol: V,
3480
3480
  labelCol: q,
3481
3481
  colon: H,
3482
- disabled: D,
3482
+ disabled: j,
3483
3483
  labelWrap: R,
3484
3484
  labelAlign: y,
3485
3485
  scrollToFirstError: C,
@@ -3489,7 +3489,7 @@ const Lr = {
3489
3489
  setFieldsValue: v,
3490
3490
  getFieldsValue: f,
3491
3491
  resetFields: x,
3492
- validator: j,
3492
+ validator: D,
3493
3493
  scrollToField: k
3494
3494
  };
3495
3495
  return Me(t, () => ({
@@ -3567,20 +3567,24 @@ const Lr = {
3567
3567
  n.current.validator().then(async (f) => {
3568
3568
  await p({
3569
3569
  values: n.current.getFieldsValue()
3570
- }).finally(() => {
3570
+ }).then((D) => D).finally(() => {
3571
3571
  r.current.setLoading(!1);
3572
3572
  }) !== !1 && (r.current.close(), a.current = null);
3573
3573
  });
3574
3574
  return;
3575
3575
  }
3576
- d && n.current.validator().then(async (f) => {
3577
- await d({
3578
- values: f,
3579
- data: v
3580
- }).finally(() => {
3581
- r.current.setLoading(!1);
3582
- }) !== !1 && (r.current.close(), a.current = null);
3583
- }), r.current.close(), a.current = null;
3576
+ if (d) {
3577
+ n.current.validator().then(async (f) => {
3578
+ await d({
3579
+ values: f,
3580
+ data: v
3581
+ }).then((D) => D).finally(() => {
3582
+ r.current.setLoading(!1);
3583
+ }) !== !1 && (r.current.close(), a.current = null);
3584
+ });
3585
+ return;
3586
+ }
3587
+ r.current.close(), a.current = null;
3584
3588
  }
3585
3589
  }, u = async () => {
3586
3590
  const { onCancel: d, renderFooter: h } = s;
@@ -3588,7 +3592,7 @@ const Lr = {
3588
3592
  const { cancel: p, data: v } = a.current;
3589
3593
  if (p) {
3590
3594
  if (await p({
3591
- values: n.current.getFieldsValue()
3595
+ values: n.current.getFieldsValue(!0)
3592
3596
  }) === !1)
3593
3597
  return;
3594
3598
  r.current.close(), a.current = null;
@@ -3601,6 +3605,7 @@ const Lr = {
3601
3605
  }) === !1)
3602
3606
  return;
3603
3607
  r.current.close(), a.current = null;
3608
+ return;
3604
3609
  }
3605
3610
  r.current.close(), a.current = null;
3606
3611
  }
@@ -3965,7 +3970,7 @@ function Hl(e, t) {
3965
3970
  M({ searchFormParams: C });
3966
3971
  });
3967
3972
  }, []);
3968
- }, j = async ({
3973
+ }, D = async ({
3969
3974
  searchFormParams: R,
3970
3975
  paginationParams: y
3971
3976
  }) => {
@@ -4059,7 +4064,7 @@ function Hl(e, t) {
4059
4064
  }) : o === !1 ? k({
4060
4065
  searchFormParams: R,
4061
4066
  paginationParams: y
4062
- }) : j({
4067
+ }) : D({
4063
4068
  searchFormParams: R,
4064
4069
  paginationParams: y
4065
4070
  });
@@ -4221,14 +4226,14 @@ const jn = () => {
4221
4226
  resetData: h,
4222
4227
  resetAllData: p,
4223
4228
  reloadData: v
4224
- } = Hl(e, t), { rowSelection: f } = Bl(e, s), { divRef: x, scroll: j } = Ul(e, r), { getTopToolbarBindProps: k } = Vl(e, s), E = () => {
4229
+ } = Hl(e, t), { rowSelection: f } = Bl(e, s), { divRef: x, scroll: D } = Ul(e, r), { getTopToolbarBindProps: k } = Vl(e, s), E = () => {
4225
4230
  const {
4226
4231
  autoRequest: M,
4227
4232
  api: U,
4228
4233
  formatDataSource: V,
4229
4234
  autoPagination: q,
4230
4235
  columns: H,
4231
- scroll: D,
4236
+ scroll: j,
4232
4237
  pagination: R,
4233
4238
  rowSelection: y,
4234
4239
  onChange: C,
@@ -4259,7 +4264,7 @@ const jn = () => {
4259
4264
  dataSource: s.model.dataSource,
4260
4265
  pagination: !1,
4261
4266
  rowSelection: f,
4262
- scroll: j,
4267
+ scroll: D,
4263
4268
  onChange: d
4264
4269
  }
4265
4270
  )
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Yt;function vn(){return Yt||(Yt=1,process.env.NODE_ENV!=="production"&&function(){var e=d,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),p=Symbol.iterator,x="@@iterator";function F(c){if(c===null||typeof c!="object")return null;var b=p&&c[p]||c[x];return typeof b=="function"?b:null}var z=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(c){{for(var b=arguments.length,P=new Array(b>1?b-1:0),N=1;N<b;N++)P[N-1]=arguments[N];k("error",c,P)}}function k(c,b,P){{var N=z.ReactDebugCurrentFrame,K=N.getStackAddendum();K!==""&&(b+="%s",P=P.concat([K]));var Z=P.map(function(G){return String(G)});Z.unshift("Warning: "+b),Function.prototype.apply.call(console[c],console,Z)}}var V=!1,q=!1,X=!1,B=!1,j=!1,E;E=Symbol.for("react.module.reference");function _(c){return!!(typeof c=="string"||typeof c=="function"||c===n||c===i||j||c===o||c===u||c===f||B||c===y||V||q||X||typeof c=="object"&&c!==null&&(c.$$typeof===h||c.$$typeof===g||c.$$typeof===s||c.$$typeof===a||c.$$typeof===l||c.$$typeof===E||c.getModuleId!==void 0))}function S(c,b,P){var N=c.displayName;if(N)return N;var K=b.displayName||b.name||"";return K!==""?P+"("+K+")":P}function L(c){return c.displayName||"Context"}function W(c){if(c==null)return null;if(typeof c.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case a:var b=c;return L(b)+".Consumer";case s:var P=c;return L(P._context)+".Provider";case l:return S(c,c.render,"ForwardRef");case g:var N=c.displayName||null;return N!==null?N:W(c.type)||"Memo";case h:{var K=c,Z=K._payload,G=K._init;try{return W(G(Z))}catch{return null}}}return null}var w=Object.assign,v=0,C,D,T,A,$,M,I;function H(){}H.__reactDisabledLog=!0;function re(){{if(v===0){C=console.log,D=console.info,T=console.warn,A=console.error,$=console.group,M=console.groupCollapsed,I=console.groupEnd;var c={configurable:!0,enumerable:!0,value:H,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}v++}}function se(){{if(v--,v===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:w({},c,{value:C}),info:w({},c,{value:D}),warn:w({},c,{value:T}),error:w({},c,{value:A}),group:w({},c,{value:$}),groupCollapsed:w({},c,{value:M}),groupEnd:w({},c,{value:I})})}v<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=z.ReactCurrentDispatcher,fe;function ie(c,b,P){{if(fe===void 0)try{throw Error()}catch(K){var N=K.stack.trim().match(/\n( *(at )?)/);fe=N&&N[1]||""}return`
17
+ */var Yt;function vn(){return Yt||(Yt=1,process.env.NODE_ENV!=="production"&&function(){var e=d,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),p=Symbol.iterator,x="@@iterator";function j(c){if(c===null||typeof c!="object")return null;var b=p&&c[p]||c[x];return typeof b=="function"?b:null}var z=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(c){{for(var b=arguments.length,P=new Array(b>1?b-1:0),N=1;N<b;N++)P[N-1]=arguments[N];k("error",c,P)}}function k(c,b,P){{var N=z.ReactDebugCurrentFrame,K=N.getStackAddendum();K!==""&&(b+="%s",P=P.concat([K]));var Z=P.map(function(G){return String(G)});Z.unshift("Warning: "+b),Function.prototype.apply.call(console[c],console,Z)}}var V=!1,q=!1,X=!1,B=!1,F=!1,E;E=Symbol.for("react.module.reference");function _(c){return!!(typeof c=="string"||typeof c=="function"||c===n||c===i||F||c===o||c===u||c===f||B||c===y||V||q||X||typeof c=="object"&&c!==null&&(c.$$typeof===h||c.$$typeof===g||c.$$typeof===s||c.$$typeof===a||c.$$typeof===l||c.$$typeof===E||c.getModuleId!==void 0))}function S(c,b,P){var N=c.displayName;if(N)return N;var K=b.displayName||b.name||"";return K!==""?P+"("+K+")":P}function L(c){return c.displayName||"Context"}function W(c){if(c==null)return null;if(typeof c.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case a:var b=c;return L(b)+".Consumer";case s:var P=c;return L(P._context)+".Provider";case l:return S(c,c.render,"ForwardRef");case g:var N=c.displayName||null;return N!==null?N:W(c.type)||"Memo";case h:{var K=c,Z=K._payload,G=K._init;try{return W(G(Z))}catch{return null}}}return null}var w=Object.assign,v=0,C,D,T,A,$,M,I;function H(){}H.__reactDisabledLog=!0;function re(){{if(v===0){C=console.log,D=console.info,T=console.warn,A=console.error,$=console.group,M=console.groupCollapsed,I=console.groupEnd;var c={configurable:!0,enumerable:!0,value:H,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}v++}}function se(){{if(v--,v===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:w({},c,{value:C}),info:w({},c,{value:D}),warn:w({},c,{value:T}),error:w({},c,{value:A}),group:w({},c,{value:$}),groupCollapsed:w({},c,{value:M}),groupEnd:w({},c,{value:I})})}v<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=z.ReactCurrentDispatcher,fe;function ie(c,b,P){{if(fe===void 0)try{throw Error()}catch(K){var N=K.stack.trim().match(/\n( *(at )?)/);fe=N&&N[1]||""}return`
18
18
  `+fe+c}}var ce=!1,ee;{var he=typeof WeakMap=="function"?WeakMap:Map;ee=new he}function be(c,b){if(!c||ce)return"";{var P=ee.get(c);if(P!==void 0)return P}var N;ce=!0;var K=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Z;Z=pe.current,pe.current=null,re();try{if(b){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(Te){N=Te}Reflect.construct(c,[],G)}else{try{G.call()}catch(Te){N=Te}c.call(G.prototype)}}else{try{throw Error()}catch(Te){N=Te}c()}}catch(Te){if(Te&&N&&typeof Te.stack=="string"){for(var U=Te.stack.split(`
19
19
  `),ae=N.stack.split(`
20
20
  `),te=U.length-1,ne=ae.length-1;te>=1&&ne>=0&&U[te]!==ae[ne];)ne--;for(;te>=1&&ne>=0;te--,ne--)if(U[te]!==ae[ne]){if(te!==1||ne!==1)do if(te--,ne--,ne<0||U[te]!==ae[ne]){var ge=`
@@ -22,4 +22,4 @@
22
22
 
23
23
  Check the render method of \``+c+"`."}return""}}function Zl(c){return""}var cn={};function Ql(c){{var b=ln();if(!b){var P=typeof c=="string"?c:c.displayName||c.name;P&&(b=`
24
24
 
25
- Check the top-level render call using <`+P+">.")}return b}}function un(c,b){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var P=Ql(b);if(cn[P])return;cn[P]=!0;var N="";c&&c._owner&&c._owner!==Wt.current&&(N=" It was passed a child from "+W(c._owner.type)+"."),Ie(c),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',P,N),Ie(null)}}function fn(c,b){{if(typeof c!="object")return;if(qe(c))for(var P=0;P<c.length;P++){var N=c[P];Bt(N)&&un(N,b)}else if(Bt(c))c._store&&(c._store.validated=!0);else if(c){var K=F(c);if(typeof K=="function"&&K!==c.entries)for(var Z=K.call(c),G;!(G=Z.next()).done;)Bt(G.value)&&un(G.value,b)}}}function ec(c){{var b=c.type;if(b==null||typeof b=="string")return;var P;if(typeof b=="function")P=b.propTypes;else if(typeof b=="object"&&(b.$$typeof===l||b.$$typeof===g))P=b.propTypes;else return;if(P){var N=W(b);kt(P,c.props,"prop",N,c)}else if(b.PropTypes!==void 0&&!Ht){Ht=!0;var K=W(b);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",K||"Unknown")}typeof b.getDefaultProps=="function"&&!b.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function tc(c){{for(var b=Object.keys(c.props),P=0;P<b.length;P++){var N=b[P];if(N!=="children"&&N!=="key"){Ie(c),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",N),Ie(null);break}}c.ref!==null&&(Ie(c),R("Invalid attribute `ref` supplied to `React.Fragment`."),Ie(null))}}function dn(c,b,P,N,K,Z){{var G=_(c);if(!G){var U="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ae=Zl();ae?U+=ae:U+=ln();var te;c===null?te="null":qe(c)?te="array":c!==void 0&&c.$$typeof===t?(te="<"+(W(c.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):te=typeof c,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",te,U)}var ne=Jl(c,b,P,K,Z);if(ne==null)return ne;if(G){var ge=b.children;if(ge!==void 0)if(N)if(qe(ge)){for(var ze=0;ze<ge.length;ze++)fn(ge[ze],c);Object.freeze&&Object.freeze(ge)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else fn(ge,c)}return c===n?tc(ne):ec(ne),ne}}function rc(c,b,P){return dn(c,b,P,!0)}function nc(c,b,P){return dn(c,b,P,!1)}var oc=nc,sc=rc;Ne.Fragment=n,Ne.jsx=oc,Ne.jsxs=sc}()),Ne}process.env.NODE_ENV==="production"?dt.exports=bn():dt.exports=vn();var m=dt.exports,qt=typeof global=="object"&&global&&global.Object===Object&&global,yn=typeof self=="object"&&self&&self.Object===Object&&self,ye=qt||yn||Function("return this")(),Pe=ye.Symbol,Gt=Object.prototype,_n=Gt.hasOwnProperty,wn=Gt.toString,We=Pe?Pe.toStringTag:void 0;function Cn(e){var t=_n.call(e,We),r=e[We];try{e[We]=void 0;var n=!0}catch{}var o=wn.call(e);return n&&(t?e[We]=r:delete e[We]),o}var xn=Object.prototype,Sn=xn.toString;function Tn(e){return Sn.call(e)}var Pn="[object Null]",$n="[object Undefined]",Xt=Pe?Pe.toStringTag:void 0;function _e(e){return e==null?e===void 0?$n:Pn:Xt&&Xt in Object(e)?Cn(e):Tn(e)}function me(e){return e!=null&&typeof e=="object"}var Dn="[object Symbol]";function pt(e){return typeof e=="symbol"||me(e)&&_e(e)==Dn}function En(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var ue=Array.isArray,jn=1/0,Kt=Pe?Pe.prototype:void 0,Jt=Kt?Kt.toString:void 0;function Zt(e){if(typeof e=="string")return e;if(ue(e))return En(e,Zt)+"";if(pt(e))return Jt?Jt.call(e):"";var t=e+"";return t=="0"&&1/e==-jn?"-0":t}function de(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Qt(e){return e}var Fn="[object AsyncFunction]",On="[object Function]",Mn="[object GeneratorFunction]",An="[object Proxy]";function oe(e){if(!de(e))return!1;var t=_e(e);return t==On||t==Mn||t==Fn||t==An}var ht=ye["__core-js_shared__"],er=function(){var e=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Rn(e){return!!er&&er in e}var kn=Function.prototype,In=kn.toString;function Fe(e){if(e!=null){try{return In.call(e)}catch{}try{return e+""}catch{}}return""}var zn=/[\\^$.*+?()[\]{}|]/g,Ln=/^\[object .+?Constructor\]$/,Nn=Function.prototype,Wn=Object.prototype,Hn=Nn.toString,Bn=Wn.hasOwnProperty,Un=RegExp("^"+Hn.call(Bn).replace(zn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Vn(e){if(!de(e)||Rn(e))return!1;var t=oe(e)?Un:Ln;return t.test(Fe(e))}function Yn(e,t){return e==null?void 0:e[t]}function Oe(e,t){var r=Yn(e,t);return Vn(r)?r:void 0}var gt=Oe(ye,"WeakMap"),tr=Object.create,qn=function(){function e(){}return function(t){if(!de(t))return{};if(tr)return tr(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Gn(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Xn(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Kn=800,Jn=16,Zn=Date.now;function Qn(e){var t=0,r=0;return function(){var n=Zn(),o=Jn-(n-r);if(r=n,o>0){if(++t>=Kn)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function eo(e){return function(){return e}}var Xe=function(){try{var e=Oe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),to=Xe?function(e,t){return Xe(e,"toString",{configurable:!0,enumerable:!1,value:eo(t),writable:!0})}:Qt,ro=Qn(to),no=9007199254740991,oo=/^(?:0|[1-9]\d*)$/;function mt(e,t){var r=typeof e;return t=t??no,!!t&&(r=="number"||r!="symbol"&&oo.test(e))&&e>-1&&e%1==0&&e<t}function bt(e,t,r){t=="__proto__"&&Xe?Xe(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function He(e,t){return e===t||e!==e&&t!==t}var so=Object.prototype,io=so.hasOwnProperty;function rr(e,t,r){var n=e[t];(!(io.call(e,t)&&He(n,r))||r===void 0&&!(t in e))&&bt(e,t,r)}function ao(e,t,r,n){var o=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=void 0;l===void 0&&(l=e[a]),o?bt(r,a,l):rr(r,a,l)}return r}var nr=Math.max;function lo(e,t,r){return t=nr(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=nr(n.length-t,0),s=Array(i);++o<i;)s[o]=n[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=n[o];return a[t]=r(s),Gn(e,this,a)}}function co(e,t){return ro(lo(e,t,Qt),e+"")}var uo=9007199254740991;function or(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=uo}function Ke(e){return e!=null&&or(e.length)&&!oe(e)}function fo(e,t,r){if(!de(r))return!1;var n=typeof t;return(n=="number"?Ke(r)&&mt(t,r.length):n=="string"&&t in r)?He(r[t],e):!1}function po(e){return co(function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,s&&fo(r[0],r[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var a=r[n];a&&e(t,a,n,i)}return t})}var ho=Object.prototype;function vt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ho;return e===r}function go(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var mo="[object Arguments]";function sr(e){return me(e)&&_e(e)==mo}var ir=Object.prototype,bo=ir.hasOwnProperty,vo=ir.propertyIsEnumerable,yt=sr(function(){return arguments}())?sr:function(e){return me(e)&&bo.call(e,"callee")&&!vo.call(e,"callee")};function yo(){return!1}var ar=typeof Y=="object"&&Y&&!Y.nodeType&&Y,lr=ar&&typeof module=="object"&&module&&!module.nodeType&&module,_o=lr&&lr.exports===ar,cr=_o?ye.Buffer:void 0,wo=cr?cr.isBuffer:void 0,Je=wo||yo,Co="[object Arguments]",xo="[object Array]",So="[object Boolean]",To="[object Date]",Po="[object Error]",$o="[object Function]",Do="[object Map]",Eo="[object Number]",jo="[object Object]",Fo="[object RegExp]",Oo="[object Set]",Mo="[object String]",Ao="[object WeakMap]",Ro="[object ArrayBuffer]",ko="[object DataView]",Io="[object Float32Array]",zo="[object Float64Array]",Lo="[object Int8Array]",No="[object Int16Array]",Wo="[object Int32Array]",Ho="[object Uint8Array]",Bo="[object Uint8ClampedArray]",Uo="[object Uint16Array]",Vo="[object Uint32Array]",Q={};Q[Io]=Q[zo]=Q[Lo]=Q[No]=Q[Wo]=Q[Ho]=Q[Bo]=Q[Uo]=Q[Vo]=!0,Q[Co]=Q[xo]=Q[Ro]=Q[So]=Q[ko]=Q[To]=Q[Po]=Q[$o]=Q[Do]=Q[Eo]=Q[jo]=Q[Fo]=Q[Oo]=Q[Mo]=Q[Ao]=!1;function Yo(e){return me(e)&&or(e.length)&&!!Q[_e(e)]}function qo(e){return function(t){return e(t)}}var ur=typeof Y=="object"&&Y&&!Y.nodeType&&Y,Be=ur&&typeof module=="object"&&module&&!module.nodeType&&module,Go=Be&&Be.exports===ur,_t=Go&&qt.process,fr=function(){try{var e=Be&&Be.require&&Be.require("util").types;return e||_t&&_t.binding&&_t.binding("util")}catch{}}(),dr=fr&&fr.isTypedArray,wt=dr?qo(dr):Yo,Xo=Object.prototype,Ko=Xo.hasOwnProperty;function pr(e,t){var r=ue(e),n=!r&&yt(e),o=!r&&!n&&Je(e),i=!r&&!n&&!o&&wt(e),s=r||n||o||i,a=s?go(e.length,String):[],l=a.length;for(var u in e)(t||Ko.call(e,u))&&!(s&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||mt(u,l)))&&a.push(u);return a}function hr(e,t){return function(r){return e(t(r))}}var Jo=hr(Object.keys,Object),Zo=Object.prototype,Qo=Zo.hasOwnProperty;function es(e){if(!vt(e))return Jo(e);var t=[];for(var r in Object(e))Qo.call(e,r)&&r!="constructor"&&t.push(r);return t}function ts(e){return Ke(e)?pr(e):es(e)}function rs(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ns=Object.prototype,os=ns.hasOwnProperty;function ss(e){if(!de(e))return rs(e);var t=vt(e),r=[];for(var n in e)n=="constructor"&&(t||!os.call(e,n))||r.push(n);return r}function gr(e){return Ke(e)?pr(e,!0):ss(e)}var is=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,as=/^\w*$/;function ls(e,t){if(ue(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||pt(e)?!0:as.test(e)||!is.test(e)||t!=null&&e in Object(t)}var Ue=Oe(Object,"create");function cs(){this.__data__=Ue?Ue(null):{},this.size=0}function us(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fs="__lodash_hash_undefined__",ds=Object.prototype,ps=ds.hasOwnProperty;function hs(e){var t=this.__data__;if(Ue){var r=t[e];return r===fs?void 0:r}return ps.call(t,e)?t[e]:void 0}var gs=Object.prototype,ms=gs.hasOwnProperty;function bs(e){var t=this.__data__;return Ue?t[e]!==void 0:ms.call(t,e)}var vs="__lodash_hash_undefined__";function ys(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ue&&t===void 0?vs:t,this}function Me(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Me.prototype.clear=cs,Me.prototype.delete=us,Me.prototype.get=hs,Me.prototype.has=bs,Me.prototype.set=ys;function _s(){this.__data__=[],this.size=0}function Ze(e,t){for(var r=e.length;r--;)if(He(e[r][0],t))return r;return-1}var ws=Array.prototype,Cs=ws.splice;function xs(e){var t=this.__data__,r=Ze(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Cs.call(t,r,1),--this.size,!0}function Ss(e){var t=this.__data__,r=Ze(t,e);return r<0?void 0:t[r][1]}function Ts(e){return Ze(this.__data__,e)>-1}function Ps(e,t){var r=this.__data__,n=Ze(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function we(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}we.prototype.clear=_s,we.prototype.delete=xs,we.prototype.get=Ss,we.prototype.has=Ts,we.prototype.set=Ps;var Ve=Oe(ye,"Map");function $s(){this.size=0,this.__data__={hash:new Me,map:new(Ve||we),string:new Me}}function Ds(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qe(e,t){var r=e.__data__;return Ds(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Es(e){var t=Qe(this,e).delete(e);return this.size-=t?1:0,t}function js(e){return Qe(this,e).get(e)}function Fs(e){return Qe(this,e).has(e)}function Os(e,t){var r=Qe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ce(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ce.prototype.clear=$s,Ce.prototype.delete=Es,Ce.prototype.get=js,Ce.prototype.has=Fs,Ce.prototype.set=Os;var Ms="Expected a function";function Ct(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ms);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(Ct.Cache||Ce),r}Ct.Cache=Ce;var As=500;function Rs(e){var t=Ct(e,function(n){return r.size===As&&r.clear(),n}),r=t.cache;return t}var ks=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Is=/\\(\\)?/g,zs=Rs(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ks,function(r,n,o,i){t.push(o?i.replace(Is,"$1"):n||r)}),t});function Ls(e){return e==null?"":Zt(e)}function Ns(e,t){return ue(e)?e:ls(e,t)?[e]:zs(Ls(e))}var Ws=1/0;function Hs(e){if(typeof e=="string"||pt(e))return e;var t=e+"";return t=="0"&&1/e==-Ws?"-0":t}function Bs(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var mr=hr(Object.getPrototypeOf,Object),Us="[object Object]",Vs=Function.prototype,Ys=Object.prototype,br=Vs.toString,qs=Ys.hasOwnProperty,Gs=br.call(Object);function Xs(e){if(!me(e)||_e(e)!=Us)return!1;var t=mr(e);if(t===null)return!0;var r=qs.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&br.call(r)==Gs}function Ks(){this.__data__=new we,this.size=0}function Js(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Zs(e){return this.__data__.get(e)}function Qs(e){return this.__data__.has(e)}var ei=200;function ti(e,t){var r=this.__data__;if(r instanceof we){var n=r.__data__;if(!Ve||n.length<ei-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ce(n)}return r.set(e,t),this.size=r.size,this}function xe(e){var t=this.__data__=new we(e);this.size=t.size}xe.prototype.clear=Ks,xe.prototype.delete=Js,xe.prototype.get=Zs,xe.prototype.has=Qs,xe.prototype.set=ti;var vr=typeof Y=="object"&&Y&&!Y.nodeType&&Y,yr=vr&&typeof module=="object"&&module&&!module.nodeType&&module,ri=yr&&yr.exports===vr,_r=ri?ye.Buffer:void 0;_r&&_r.allocUnsafe;function ni(e,t){return e.slice()}function oi(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}function si(){return[]}var ii=Object.prototype,ai=ii.propertyIsEnumerable,wr=Object.getOwnPropertySymbols,li=wr?function(e){return e==null?[]:(e=Object(e),oi(wr(e),function(t){return ai.call(e,t)}))}:si;function ci(e,t,r){var n=t(e);return ue(e)?n:Bs(n,r(e))}function Cr(e){return ci(e,ts,li)}var xt=Oe(ye,"DataView"),St=Oe(ye,"Promise"),Tt=Oe(ye,"Set"),xr="[object Map]",ui="[object Object]",Sr="[object Promise]",Tr="[object Set]",Pr="[object WeakMap]",$r="[object DataView]",fi=Fe(xt),di=Fe(Ve),pi=Fe(St),hi=Fe(Tt),gi=Fe(gt),$e=_e;(xt&&$e(new xt(new ArrayBuffer(1)))!=$r||Ve&&$e(new Ve)!=xr||St&&$e(St.resolve())!=Sr||Tt&&$e(new Tt)!=Tr||gt&&$e(new gt)!=Pr)&&($e=function(e){var t=_e(e),r=t==ui?e.constructor:void 0,n=r?Fe(r):"";if(n)switch(n){case fi:return $r;case di:return xr;case pi:return Sr;case hi:return Tr;case gi:return Pr}return t});var et=ye.Uint8Array;function mi(e){var t=new e.constructor(e.byteLength);return new et(t).set(new et(e)),t}function bi(e,t){var r=mi(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function vi(e){return typeof e.constructor=="function"&&!vt(e)?qn(mr(e)):{}}var yi="__lodash_hash_undefined__";function _i(e){return this.__data__.set(e,yi),this}function wi(e){return this.__data__.has(e)}function tt(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ce;++t<r;)this.add(e[t])}tt.prototype.add=tt.prototype.push=_i,tt.prototype.has=wi;function Ci(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function xi(e,t){return e.has(t)}var Si=1,Ti=2;function Dr(e,t,r,n,o,i){var s=r&Si,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var g=-1,h=!0,y=r&Ti?new tt:void 0;for(i.set(e,t),i.set(t,e);++g<a;){var p=e[g],x=t[g];if(n)var F=s?n(x,p,g,t,e,i):n(p,x,g,e,t,i);if(F!==void 0){if(F)continue;h=!1;break}if(y){if(!Ci(t,function(z,R){if(!xi(y,R)&&(p===z||o(p,z,r,n,i)))return y.push(R)})){h=!1;break}}else if(!(p===x||o(p,x,r,n,i))){h=!1;break}}return i.delete(e),i.delete(t),h}function Pi(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function $i(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Di=1,Ei=2,ji="[object Boolean]",Fi="[object Date]",Oi="[object Error]",Mi="[object Map]",Ai="[object Number]",Ri="[object RegExp]",ki="[object Set]",Ii="[object String]",zi="[object Symbol]",Li="[object ArrayBuffer]",Ni="[object DataView]",Er=Pe?Pe.prototype:void 0,Pt=Er?Er.valueOf:void 0;function Wi(e,t,r,n,o,i,s){switch(r){case Ni:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Li:return!(e.byteLength!=t.byteLength||!i(new et(e),new et(t)));case ji:case Fi:case Ai:return He(+e,+t);case Oi:return e.name==t.name&&e.message==t.message;case Ri:case Ii:return e==t+"";case Mi:var a=Pi;case ki:var l=n&Di;if(a||(a=$i),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;n|=Ei,s.set(e,t);var f=Dr(a(e),a(t),n,o,i,s);return s.delete(e),f;case zi:if(Pt)return Pt.call(e)==Pt.call(t)}return!1}var Hi=1,Bi=Object.prototype,Ui=Bi.hasOwnProperty;function Vi(e,t,r,n,o,i){var s=r&Hi,a=Cr(e),l=a.length,u=Cr(t),f=u.length;if(l!=f&&!s)return!1;for(var g=l;g--;){var h=a[g];if(!(s?h in t:Ui.call(t,h)))return!1}var y=i.get(e),p=i.get(t);if(y&&p)return y==t&&p==e;var x=!0;i.set(e,t),i.set(t,e);for(var F=s;++g<l;){h=a[g];var z=e[h],R=t[h];if(n)var k=s?n(R,z,h,t,e,i):n(z,R,h,e,t,i);if(!(k===void 0?z===R||o(z,R,r,n,i):k)){x=!1;break}F||(F=h=="constructor")}if(x&&!F){var V=e.constructor,q=t.constructor;V!=q&&"constructor"in e&&"constructor"in t&&!(typeof V=="function"&&V instanceof V&&typeof q=="function"&&q instanceof q)&&(x=!1)}return i.delete(e),i.delete(t),x}var Yi=1,jr="[object Arguments]",Fr="[object Array]",rt="[object Object]",qi=Object.prototype,Or=qi.hasOwnProperty;function Gi(e,t,r,n,o,i){var s=ue(e),a=ue(t),l=s?Fr:$e(e),u=a?Fr:$e(t);l=l==jr?rt:l,u=u==jr?rt:u;var f=l==rt,g=u==rt,h=l==u;if(h&&Je(e)){if(!Je(t))return!1;s=!0,f=!1}if(h&&!f)return i||(i=new xe),s||wt(e)?Dr(e,t,r,n,o,i):Wi(e,t,l,r,n,o,i);if(!(r&Yi)){var y=f&&Or.call(e,"__wrapped__"),p=g&&Or.call(t,"__wrapped__");if(y||p){var x=y?e.value():e,F=p?t.value():t;return i||(i=new xe),o(x,F,r,n,i)}}return h?(i||(i=new xe),Vi(e,t,r,n,o,i)):!1}function Mr(e,t,r,n,o){return e===t?!0:e==null||t==null||!me(e)&&!me(t)?e!==e&&t!==t:Gi(e,t,r,n,Mr,o)}function Xi(e){return function(t,r,n){for(var o=-1,i=Object(t),s=n(t),a=s.length;a--;){var l=s[++o];if(r(i[l],l,i)===!1)break}return t}}var Ki=Xi();function $t(e,t,r){(r!==void 0&&!He(e[t],r)||r===void 0&&!(t in e))&&bt(e,t,r)}function Ji(e){return me(e)&&Ke(e)}function Dt(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Zi(e){return ao(e,gr(e))}function Qi(e,t,r,n,o,i,s){var a=Dt(e,r),l=Dt(t,r),u=s.get(l);if(u){$t(e,r,u);return}var f=i?i(a,l,r+"",e,t,s):void 0,g=f===void 0;if(g){var h=ue(l),y=!h&&Je(l),p=!h&&!y&&wt(l);f=l,h||y||p?ue(a)?f=a:Ji(a)?f=Xn(a):y?(g=!1,f=ni(l)):p?(g=!1,f=bi(l)):f=[]:Xs(l)||yt(l)?(f=a,yt(a)?f=Zi(a):(!de(a)||oe(a))&&(f=vi(l))):g=!1}g&&(s.set(l,f),o(f,l,n,i,s),s.delete(l)),$t(e,r,f)}function Ar(e,t,r,n,o){e!==t&&Ki(t,function(i,s){if(o||(o=new xe),de(i))Qi(e,t,s,r,Ar,n,o);else{var a=n?n(Dt(e,s),i,s+"",e,t,o):void 0;a===void 0&&(a=i),$t(e,s,a)}},gr)}var ea="[object String]";function Rr(e){return typeof e=="string"||!ue(e)&&me(e)&&_e(e)==ea}var ta="[object Boolean]";function Et(e){return e===!0||e===!1||me(e)&&_e(e)==ta}function nt(e,t){return Mr(e,t)}var ra="[object Number]";function na(e){return typeof e=="number"||me(e)&&_e(e)==ra}function kr(e){return e==null}function oa(e){return e===null}var De=po(function(e,t,r){Ar(e,t,r)});function sa(e,t,r,n){if(!de(e))return e;t=Ns(t,e);for(var o=-1,i=t.length,s=i-1,a=e;a!=null&&++o<i;){var l=Hs(t[o]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=s){var f=a[l];u=void 0,u===void 0&&(u=de(f)?f:mt(t[o+1])?[]:{})}rr(a,l,u),a=a[l]}return e}function Ir(e,t,r){return e==null?e:sa(e,t,r)}function ia(e){const{inherit:t=!0}=e,{extendActionsProps:r}=Hr();return{actionsProps:{...De(De({items:[],max:10},t?r:{}),e)}}}function zr(e){return"component"in e}function aa(e){return"render"in e}function la(e){const{type:t,disabled:r,items:n,max:o}=e,i=n.map(a=>{const l={...a};return zr(l)&&(l.componentProps={type:t,disabled:r,...l.componentProps}),l}),s=na(o)&&o>=0;return{showActionItems:i.slice(0,s?o:i.length),ellipsisActionItems:i.slice(s?o:i.length)}}const ca=e=>{const{componentProps:t}=e,r=()=>{const{...n}=t;return n};return m.jsx(O.Button,{...r()})},ua=e=>{const{componentProps:t}=e,n=(()=>{const{dropDownItems:o,onClick:i,...s}=t;return s})();return m.jsx(O.Dropdown,{disabled:n.disabled,menu:{items:(t==null?void 0:t.dropDownItems)||[],onClick:t==null?void 0:t.onClick},trigger:["click"],children:m.jsx("div",{children:m.jsxs(O.Button,{...n,children:[n.children,m.jsx(ve.CaretDownOutlined,{})]})})})},ot=new Map;ot.set("Button",ca),ot.set("Dropdown",ua);function Lr(){const{setExtendActionsComp:e}=Hr();return e(ot),{renderContent:d.useCallback((r,n)=>{const o=zr(r),i=aa(r);if(o){const s=ot.get(r.component);return m.jsx(s,{...r},n)}return i?m.jsx("div",{children:r.render},n):null},[])}}const Nr=d.createContext({}),fa=e=>{const{extendProps:t,extendComp:r}=e.value;return m.jsx(Nr.Provider,{value:{extendProps:t,extendComp:r},children:e.children})},Ye=()=>d.useContext(Nr),Wr=e=>{const[t,r]=d.useState(e),n=d.useRef(null);return d.useEffect(()=>{n.current&&(n.current(),n.current=null)},[t]),[t,i=>new Promise((s,a)=>{r(l=>{const u=typeof i=="function"?i(l):i;return n.current=s,u})})]},Hr=()=>{const{extendProps:e,extendComp:t}=Ye(),r=n=>{const o=t==null?void 0:t.actions;o&&Object.keys(o).forEach(i=>{n.set(i,o[i])})};return{extendActionsProps:e==null?void 0:e.actions,setExtendActionsComp:r}},{useToken:da}=O.theme,pa=({items:e,actionsProps:t})=>{const{type:r,disabled:n}=t,{renderContent:o}=Lr(),{token:i}=da(),s={backgroundColor:i.colorBgElevated,borderRadius:i.borderRadiusLG,boxShadow:i.boxShadowSecondary},a=()=>m.jsx("div",{style:s,children:m.jsx(O.Space,{style:{padding:8},children:e==null?void 0:e.map((l,u)=>o(l,u))})});return m.jsx(O.Dropdown,{disabled:n,menu:{items:[]},dropdownRender:a,trigger:["click"],children:m.jsxs(O.Button,{type:r,children:["更多",m.jsx(ve.CaretDownOutlined,{})]})})},st=e=>{const{actionsProps:t}=ia(e),{showActionItems:r,ellipsisActionItems:n}=la(t),{renderContent:o}=Lr();return t!=null&&t.render?t.render:m.jsxs(d.Fragment,{children:[r==null?void 0:r.map((i,s)=>o(i,s)),n!=null&&n.length?m.jsx(pa,{actionsProps:t,items:n}):null]})};function ha(e,t){const{okText:r,cancelText:n,onCancel:o,onOk:i,okProps:s,cancelProps:a}=e;return{footerActions:{disabled:t,max:2,items:[{component:"Button",componentProps:{...a,children:n,onClick:o}},{component:"Button",componentProps:{type:"primary",loading:t,...s,children:r,onClick:i}}]}}}const ga=e=>{const{extendDialogProps:t}=ma(),r={width:700,okText:"确定",cancelText:"取消",getPopperContainer:()=>document.body},n={...De(De(r,t),e)};return{dialogProps:{...n,getPopperContainer:()=>{const i=n.getPopperContainer();return n.mask?document.body:i}},baseDialogProps:r}},ma=()=>{const{extendProps:e}=Ye();return{extendDialogProps:e==null?void 0:e.dialog}},ba=(e,t,r)=>{const{onOpen:n,onClose:o}=e;return{open:async()=>{n&&n(),await t(!0)},close:()=>{t(!1),r(!1),o&&o()}}},va=({initWidth:e,initHeight:t,setDialogChangeRecord:r})=>{const[n,o]=d.useState(e.current),[i,s]=d.useState(t.current);return{dialogWidth:n,dialogHeight:i,setDialogSize:({width:l,height:u})=>{r({width:n,height:i}),l!==void 0&&o(l),u!==void 0&&s(u)}}},ya=({initLeft:e,initTop:t,setDialogChangeRecord:r})=>{const[n,o]=d.useState(e.current),[i,s]=d.useState(t.current);return{dialogLeft:n,dialogTop:i,setDialogPosition:({left:l,top:u})=>{r({left:n,top:i}),l!==void 0&&o(l),u!==void 0&&s(u)}}},Br=({containerSizeTarget:e,dialogHeaderRef:t,dialogRef:r,setDialogPosition:n})=>{const o=d.useRef(0),i=d.useRef(0),s=f=>{const g=f.getBoundingClientRect(),h=g.width,y=g.height,p=-.5*h,x=-.5*y;return{translateX:p,translateY:x}},a=d.useCallback(f=>{const{offsetLeft:g,offsetTop:h}=r.current;o.current=f.clientX-g,i.current=f.clientY-h,document.addEventListener("mousemove",l),document.addEventListener("mouseup",u)},[]),l=d.useCallback(f=>{const g=r.current,{translateX:h,translateY:y}=s(g);let p=f.clientX-o.current,x=f.clientY-i.current;const F=-h,z=-y,R=e.current.scrollWidth-g.offsetWidth-h,k=e.current.scrollHeight-g.offsetHeight-y;p<F&&(p=F),p>R&&(p=R),x<z&&(x=z),x>k&&(x=k),n({left:p,top:x})},[]),u=d.useCallback(()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",u)},[]);return d.useEffect(()=>{const f=t.current;return f.addEventListener("mousedown",a),()=>{f.removeEventListener("mousedown",a)}},[]),{}},_a=({containerSizeTarget:e,dialogChangeRecord:t,close:r,setDialogSize:n,setDialogPosition:o})=>{const[i,s]=d.useState(!1),[a,l]=d.useState(!1);return{minimizeVisible:i,maximizeVisible:a,onMinimize:()=>{s(!0)},onMaximize:y=>{if(y==="minimize"&&s(!1),y==="maximize"){const{scrollWidth:p,scrollHeight:x}=e.current,F=Math.floor(p),z=Math.floor(x),R=Math.floor(p/2),k=Math.floor(x/2);n({width:F,height:z}),o({top:k,left:R}),l(!0)}},onRecovery:()=>{const{top:y,left:p,width:x,height:F}=t.current;n({width:x,height:F}),o({top:y,left:p}),l(!1)},onClose:()=>{s(!1),l(!1),r()}}},wa=({visible:e,containerSizeTarget:t,dialogHeight:r,dialogRef:n,dialogHeaderRef:o,dialogFooterRef:i})=>{const{clientHeight:s,scrollHeight:a}=t.current,[l,u]=d.useState(0),[f,g]=d.useState("unset"),h=(y,p)=>{var q,X;const z=(q=o.current)==null?void 0:q.offsetHeight,R=(X=i.current)==null?void 0:X.offsetHeight;let k=y-z-R-0;const V=p-z-R-0;return k>V&&(k=V),k};return d.useEffect(()=>{var y;if(l===s){console.log("触发了dialogMaxHeight改变");const p=(y=n.current)==null?void 0:y.getBoundingClientRect().height;g(h(p,s)),u("unset")}},[l]),d.useEffect(()=>{r!=="unset"&&r!==0&&(console.log("触发了重新设置contentMaxHeight",r),g(h(r,r>s?a:s)),u("unset"))},[r]),d.useEffect(()=>{e?u(s):(u(0),g("unset"))},[e]),{dialogMaxHeight:l,contentMaxHeight:f}},Ca=()=>{const[e,t]=d.useState(160),[r,n]=d.useState(60),o=d.useRef(null);return{minimizeTop:r,minimizeLeft:e,minimizeRef:o,setMinimizePosition:({left:s,top:a})=>{s!==void 0&&t(s),a!==void 0&&n(a)}}},xa=({visible:e,dialogRef:t,minimizeRef:r,container:n})=>{const o={xphDialog:"xph--dialog",xphDialogWrapper:"xph--dialog--wrapper",xphMinimizeDialog:"xph--dialog--minimize"},i=(a,l)=>{console.log("触发插入"),a.querySelector(`.${o.xphDialogWrapper}`).style.opacity="unset",a.querySelector(`.${o.xphMinimizeDialog}`).style.opacity="unset",l.querySelector(`.${o.xphDialogWrapper}`).style.opacity=.7,l.querySelector(`.${o.xphMinimizeDialog}`).style.opacity=.7;const u=document.createElement("div");u.style.visibility="hidden",l.parentNode.insertBefore(u,l.nextSibling),l.parentNode.insertBefore(a,u),l.parentNode.removeChild(u)},s=a=>{var f,g;const l=n.querySelectorAll(`.${o.xphDialog}`),u=l[l.length-1];if(((f=t.current)==null?void 0:f.parentNode)!==u&&(i((g=t.current)==null?void 0:g.parentNode,u),a)){const h=a.target;h.tagName==="INPUT"&&h.focus&&h.focus()}};return d.useEffect(()=>{var a,l;return(a=t.current)==null||a.addEventListener("mousedown",s,!1),(l=r.current)==null||l.addEventListener("mousedown",s,!1),()=>{var u,f;(u=t.current)==null||u.removeEventListener("mousedown",s,!1),(f=r.current)==null||f.removeEventListener("mousedown",s,!1)}},[]),d.useEffect(()=>{if(e)s();else{const a=Array.from(n.querySelectorAll(`.${o.xphDialog}`)),l=a.map(h=>h.querySelector(`.${o.xphDialogWrapper}`)).filter(h=>h!==null),u=a.map(h=>h.querySelector(`.${o.xphMinimizeDialog}`)).filter(h=>h!==null),f=l.filter(h=>h.style.display==="flex"),g=u.filter(h=>h.style.display==="flex");if(f.length){i(f[f.length-1].parentNode,a[a.length-1]);return}if(g.length){i(g[g.length-1].parentNode,a[a.length-1]);return}}},[e]),{dialogTopShowClassConfig:o}},Sa=({initWidth:e,initHeight:t,initLeft:r,initTop:n,curPropsWidth:o,curPropsHeight:i,setDialogSize:s,setDialogPosition:a})=>{d.useEffect(()=>{o!==e.current&&(console.log("重新设置了宽度"),s({width:o})),i!==t.current&&(console.log("重新设置了高度"),s({height:i}))},[o,i]),d.useEffect(()=>{o!==e.current&&(console.log("重新设置了左边位置"),a({left:r.current})),i!==t.current&&(console.log("重新设置了上边位置"),a({top:n.current}))},[o,i])},Ta=()=>{const e=d.useRef({left:0,top:0,width:0,height:0});return{dialogChangeRecord:e,setDialogChangeRecord:({left:r,top:n,width:o,height:i})=>{const{left:s,top:a,width:l,height:u}=e.current;e.current={left:r??s,top:n??a,width:o??l,height:i??u}}}},Pa=({containerSizeTarget:e,dialogRef:t,minResizeRecord:r,setDialogSize:n,setDialogPosition:o})=>{const i=d.useCallback(()=>m.jsx("div",{ref:s,style:{position:"absolute",border:"4px dashed #ccc",display:"none"}}),[]),s=d.useRef(null),a=d.useRef(),l=d.useRef(!1),[u,f]=d.useState(!1),g=d.useRef(0),h=d.useRef(0),y=(B,j)=>{l.current=!0,f(!0),a.current=j;const{clientX:E,clientY:_}=B;g.current=E,h.current=_;const S=parseFloat(t.current.style.left),L=parseFloat(t.current.style.top),W=t.current.offsetWidth,w=t.current.offsetHeight;s.current.style.display="block",s.current.style.left=`${S-.5*W}px`,s.current.style.top=`${L-.5*w}px`,s.current.style.width=`${W}px`,s.current.style.height=`${w}px`},p=B=>{if(l.current){const{clientX:j,clientY:E}=B,_=j-g.current,S=E-h.current,L=parseFloat(s.current.style.left),W=parseFloat(s.current.style.top),w=s.current.offsetWidth,v=s.current.offsetHeight,C=r.current.width,D=r.current.height,T=e.current.scrollWidth,A=e.current.scrollHeight;let $=w,M=v,I=L,H=W;switch(a.current){case"lt":{$=$-_,M=M-S,H=H+S,I=I+_,$<C&&($=w,I=L),M<D&&(M=v,H=W),I<0&&(I=0,$=w),H<0&&(H=0,M=v);break}case"rt":{$=$+_,M=M-S,H=H+S,I=L,$<C&&($=w),M<D&&(M=v,H=W),$>T-I&&($=T-I),H<0&&(H=0,M=v);break}case"rb":{$=$+_,M=M+S,H=W,I=L,$<C&&($=w),M<D&&(M=v),$>T-I&&($=T-I),M>A-H&&(M=A-H);break}case"lb":{$=$-_,M=M+S,H=W,I=I+_,$<C&&($=w,I=L),M<D&&(M=v),I<0&&(I=0,$=w),M>A-H&&(M=A-H);break}}s.current.style.left=`${I}px`,s.current.style.top=`${H}px`,s.current.style.width=`${$}px`,s.current.style.height=`${M}px`,g.current=j,h.current=E}},x=()=>{if(l.current){l.current=!1,f(!1),s.current.style.display="none";const{left:B,top:j,width:E,height:_}=s.current.style,S=parseFloat(B)+.5*parseFloat(E),L=parseFloat(j)+.5*parseFloat(_),W=parseFloat(E),w=parseFloat(_);o({left:S,top:L}),n({width:W,height:w})}},F=B=>y(B,"lt"),z=B=>y(B,"rt"),R=B=>y(B,"rb"),k=B=>y(B,"lb"),V=d.useCallback(B=>{p(B)},[]),q=d.useCallback(()=>{x()},[]),X=d.useCallback(()=>{x()},[]);return d.useEffect(()=>(document.body.addEventListener("mousemove",V),document.body.addEventListener("mouseup",q),document.body.addEventListener("mouseleave",X),()=>{document.body.removeEventListener("mousemove",V),document.body.removeEventListener("mouseup",q),document.body.removeEventListener("mouseleave",X)}),[]),{resizingState:u,DashedBox:i,onMousedownResizeLt:F,onMousedownResizeRt:z,onMousedownResizeRb:R,onMousedownResizeLb:k}},$a=({container:e,dialogProps:t,baseDialogProps:r})=>{const[n,o]=d.useState(0),i=()=>{o(j=>j+1)};d.useEffect(()=>{const j=new ResizeObserver(i);return j.observe(e),()=>{j.unobserve(e),j.disconnect()}},[e]);const{containerSizeTarget:s,setContainerSizeTarget:a}=Ea({container:e}),{width:l,height:u}=r,{width:f,height:g}=t,h=f||l,y=g||u,{clientWidth:p,clientHeight:x}=s.current,F=h?h>p?p:h:0,z=y?y>x?x:y:"unset",R=d.useRef(F),k=d.useRef(z),V=j=>{R.current=j.width,k.current=j.height},q=d.useRef(Math.floor(p/2)),X=d.useRef(Math.floor(x/2)),B=j=>{q.current=j.left,X.current=j.top};return d.useEffect(()=>{n!==0&&(console.log("触发了内部parentResizeRecord"),a(),V({width:F,height:z}),B({left:Math.floor(p/2),top:Math.floor(x/2)}))},[n]),{containerSizeTarget:s,parentResizeRecord:n,initLeft:q,initTop:X,initWidth:R,initHeight:k,curPropsWidth:F,curPropsHeight:z,setInitPosition:B,setInitSize:V}},Da=(e,t,r,n)=>{const o=d.useRef(null);return d.useEffect(()=>{if(e){const i=t.current.offsetWidth,s=t.current.offsetHeight;o.current={width:i,height:s}}else o.current=null},[r,n,e]),{minResizeRecord:o}},Ea=({container:e})=>{const t=e===document.body,r=d.useRef({clientWidth:t?window.innerWidth:e.clientWidth,clientHeight:t?window.innerHeight:e.clientHeight,scrollWidth:t?window.innerWidth:e.scrollWidth,scrollHeight:t?window.innerHeight:e.scrollHeight});return{containerSizeTarget:r,setContainerSizeTarget:()=>{r.current={clientWidth:t?window.innerWidth:e.clientWidth,clientHeight:t?window.innerHeight:e.clientHeight,scrollWidth:t?window.innerWidth:e.scrollWidth,scrollHeight:t?window.innerHeight:e.scrollHeight}}}},jt={"minimize-windows":"_minimize-windows_12u3y_1","minimize-windows-title":"_minimize-windows-title_12u3y_43","minimize-windows-operate":"_minimize-windows-operate_12u3y_55"},ja=({onClick:e})=>m.jsx(O.Button,{type:"link",onClick:e,icon:m.jsx(ve.ShrinkOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Ur=({onClick:e})=>m.jsx(O.Button,{type:"link",onClick:e,icon:m.jsx(ve.FullscreenOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Fa=({onClick:e})=>m.jsx(O.Button,{type:"link",onClick:e,icon:m.jsx(ve.FullscreenExitOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Vr=({onClick:e,disabled:t})=>m.jsx(O.Button,{type:"link",onClick:e,disabled:t,icon:m.jsx(ve.CloseOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),{useToken:Oa}=O.theme,Ma=d.forwardRef(({title:e,left:t,top:r,visible:n,loading:o,onMaximize:i,onClosesquare:s,className:a},l)=>{const{token:u}=Oa(),f={borderRadius:u.borderRadiusLG};return m.jsxs("div",{style:{display:n?"flex":"none",left:t,top:r,...f},className:`${jt["minimize-windows"]} ${a}`,ref:l,children:[m.jsx("div",{className:jt["minimize-windows-title"],title:e,children:e}),m.jsxs("div",{className:jt["minimize-windows-operate"],children:[m.jsx(Ur,{onClick:i}),m.jsx(Vr,{onClick:s,disabled:o})]})]})}),le={"xph-dialog-mask":"_xph-dialog-mask_128q2_1","xph-dialog-wrapper":"_xph-dialog-wrapper_128q2_23",dialog__header:"_dialog__header_128q2_45","dialog__header-btns":"_dialog__header-btns_128q2_63",dialog__main:"_dialog__main_128q2_71",dialog__footer:"_dialog__footer_128q2_85",dialog__resize:"_dialog__resize_128q2_99","dialog__resize-lt":"_dialog__resize-lt_128q2_113","dialog__resize-rt":"_dialog__resize-rt_128q2_125","dialog__resize-rb":"_dialog__resize-rb_128q2_137","dialog__resize-lb":"_dialog__resize-lb_128q2_149"},{useToken:Aa}=O.theme,Ra=d.forwardRef((e,t)=>{console.log("render Dialog==============================================");const{token:r}=Aa(),n={borderRadius:r.borderRadiusLG},{children:o,baseDialogProps:i,mask:s,title:a,renderFooter:l,renderTitle:u,getPopperContainer:f}=e,g=f(),[h,y]=Wr(!1),[p,x]=d.useState(!1),{open:F,close:z}=ba(e,y,x),{footerActions:R}=ha(e,p),k=d.useRef(null),V=d.useRef(null),q=d.useRef(null),X=d.useRef(null),{containerSizeTarget:B,parentResizeRecord:j,initLeft:E,initTop:_,initWidth:S,initHeight:L,curPropsWidth:W,curPropsHeight:w}=$a({container:g,dialogProps:e,baseDialogProps:i}),{dialogChangeRecord:v,setDialogChangeRecord:C}=Ta(),{dialogWidth:D,dialogHeight:T,setDialogSize:A}=va({initWidth:S,initHeight:L,setDialogChangeRecord:C}),{dialogLeft:$,dialogTop:M,setDialogPosition:I}=ya({initTop:_,initLeft:E,setDialogChangeRecord:C}),{dialogMaxHeight:H,contentMaxHeight:re}=wa({visible:h,containerSizeTarget:B,dialogHeight:T,dialogRef:k,dialogHeaderRef:V,dialogFooterRef:X}),{minResizeRecord:se}=Da(h,k,D,T),{minimizeLeft:pe,minimizeTop:fe,minimizeRef:ie,setMinimizePosition:ce}=Ca(),{minimizeVisible:ee,maximizeVisible:he,onMaximize:be,onMinimize:Ee,onRecovery:At,onClose:je}=_a({containerSizeTarget:B,dialogChangeRecord:v,close:z,setDialogSize:A,setDialogPosition:I}),Ae=()=>{console.log("触发了initDialog"),A({width:S.current,height:L.current}),I({left:E.current,top:_.current}),ce({left:160,top:60})};d.useEffect(()=>{j!==0&&(console.log("触发了外部parentResizeRecord"),Ae())},[j]),Sa({initWidth:S,initHeight:L,initLeft:E,initTop:_,curPropsWidth:W,curPropsHeight:w,setDialogSize:A,setDialogPosition:I}),Br({containerSizeTarget:B,dialogHeaderRef:V,dialogRef:k,setDialogPosition:I}),Br({containerSizeTarget:B,dialogHeaderRef:ie,dialogRef:ie,setDialogPosition:ce});const{dialogTopShowClassConfig:Re}=xa({visible:h,container:g,dialogRef:k,minimizeRef:ie}),{resizingState:ke,DashedBox:kt,onMousedownResizeLt:It,onMousedownResizeRt:qe,onMousedownResizeRb:zt,onMousedownResizeLb:Lt}=Pa({containerSizeTarget:B,dialogRef:k,minResizeRecord:se,setDialogSize:A,setDialogPosition:I});return d.useImperativeHandle(t,()=>({open:F,close:je,setLoading:x})),m.jsxs("div",{className:Re.xphDialog,children:[s&&h?m.jsx("div",{className:le["xph-dialog-mask"]}):null,m.jsx(Ma,{visible:ee,className:`${Re.xphMinimizeDialog}`,loading:p,ref:ie,left:pe,top:fe,title:a,onMaximize:()=>be("minimize"),onClosesquare:je}),m.jsxs("div",{ref:k,className:`${le["xph-dialog-wrapper"]} ${Re.xphDialogWrapper}`,style:{display:h&&!ee?"flex":"none",left:$,top:M,width:D,height:T,maxHeight:H,opacity:ke?.2:"unset",...n},children:[m.jsxs("div",{ref:V,className:le.dialog__header,children:[m.jsx("div",{children:u?u():a}),m.jsxs("div",{className:le["dialog__header-btns"],children:[m.jsx(ja,{onClick:Ee}),he?m.jsx(Fa,{onClick:At}):m.jsx(Ur,{onClick:()=>be("maximize")}),m.jsx(Vr,{onClick:je,disabled:p})]})]}),m.jsx("div",{ref:q,className:le.dialog__main,style:{maxHeight:re},children:m.jsx(O.Spin,{spinning:p,children:h?o:null})}),l?m.jsx("div",{ref:X,children:l({loading:p})}):m.jsx("div",{ref:X,className:le.dialog__footer,children:m.jsx(st,{...R})}),m.jsx("div",{className:`${le.dialog__resize} ${le["dialog__resize-lt"]}`,onMouseDown:It}),m.jsx("div",{className:`${le.dialog__resize} ${le["dialog__resize-rt"]}`,onMouseDown:qe}),m.jsx("div",{className:`${le.dialog__resize} ${le["dialog__resize-rb"]}`,onMouseDown:zt}),m.jsx("div",{className:`${le.dialog__resize} ${le["dialog__resize-lb"]}`,onMouseDown:Lt})]}),m.jsx(kt,{})]})}),ka=(e,t)=>{const{children:r,...n}=e,{baseDialogProps:o,dialogProps:i}=ga(n),{getPopperContainer:s}=i;return console.log("render XphDialog=============================================="),m.jsx(qr,{getPopperContainer:s,children:m.jsx(Ra,{...i,baseDialogProps:o,ref:t,children:r})})},Yr=d.forwardRef(ka),qr=({children:e,getPopperContainer:t})=>{const[r,n]=d.useState(null);return d.useEffect(()=>{const o=t();n(o)},[]),r?hn.createPortal(e,r):null};function Ft(e){return"component"in e}function Ot(e){return"render"in e}function Ia(e){return e.includes("Input")||e.includes("Complete")?"请输入":e.includes("Picker")||e.includes("Select")||e.includes("Cascader")||e.includes("Checkbox")||e.includes("Radio")||e.includes("Switch")?"请选择":""}function za(e,t,r){["DatePicker","MonthPicker","WeekPicker","TimePicker"].includes(t)?e.type=r?"string":"object":["RangePicker","Upload","CheckboxGroup","TimePicker"].includes(t)?e.type="array":["InputNumber"].includes(t)&&(e.type="number")}const La=["DatePicker","MonthPicker","RangePicker","WeekPicker","TimePicker"],Na=e=>{const{show:t,ifShow:r,required:n,disabled:o,componentProps:i}=e;return!!(oe(t)||oe(r)||oe(n)||oe(o)||oe(i)||Ot(e))},Wa=e=>["application/json","application/javascript","text/plain","text/html","text/css"].includes(e)?`${e}; charset=utf-8`:e,Ha=(e,t,r)=>{const n=d.useRef(null),o=d.useRef(null),{handleCollapseChangeFalse:i}=r.current||{},{show:s,ifShow:a}=e;let l=!0,u=!0;if(Et(s)&&(l=s),Et(a)&&(u=a),oe(s)){l=s({model:t});const f=kr(n.current)?l:n.current;d.useEffect(()=>{nt(l,f)||i&&i()},[t])}if(oe(a)){u=a({model:t});const f=kr(o.current)?u:o.current;d.useEffect(()=>{nt(u,f)||i&&i()},[t])}return n.current=l,o.current=u,{isShow:l,isIfShow:u}},Ba=(e,t)=>{const{collapsible:r,collapseNum:n}=e,[o,i]=d.useState(!!(r&&t>=n));return{itemCollapse:o,setItemCollapse:i}},Ua=({item:e,model:t,isShow:r,componentProps:n})=>{const{rules:o=[],label:i,required:s}=e;let a=o;const l=Ft(e),u=l?Ia(e.component)+i:"";function f(p,x){const F=p.message||u;return x===void 0||oa(x)||Array.isArray(x)&&x.length===0||typeof x=="string"&&x.trim()===""||typeof x=="object"&&Reflect.has(x,"checked")&&Reflect.has(x,"halfChecked")&&Array.isArray(x.checked)&&Array.isArray(x.halfChecked)&&x.checked.length===0&&x.halfChecked.length===0?Promise.reject(F):Promise.resolve()}const g=oe(s)?s({model:t}):s;g&&(!a||a.length===0?a=[{required:g,validator:f}]:a.findIndex(x=>Reflect.has(x,"required"))===-1&&a.push({required:g,validator:f}));const h=a.findIndex(p=>Reflect.has(p,"required")&&!Reflect.has(p,"validator"));if(h!==-1){const p=a[h];if(r||(p.required=!1),l){const{component:x}=e;Reflect.has(p,"type")||(p.type=x==="InputNumber"?"number":"string"),p.message=p.message||u,(x.includes("Input")||x.includes("Textarea"))&&(p.whitespace=!0);const F=n.valueFormat;za(p,x,F)}}const y=a.findIndex(p=>p.max);return y!==-1&&!a[y].validator&&(a[y].message=a[y].message||`字符数应小于${a[y].max}位`),{rules:a}},Va=(e,t,r)=>{const{disabled:n}=e;let o=!1;const{disabled:i}=t;return oe(i)&&(o=i({model:r})),Et(i)&&(o=i),{disabled:Reflect.has(t,"disabled")?o:n}},Ya=(e,t)=>{const r={},{componentProps:n={}}=e;return oe(n)&&Object.assign(r,n({model:t})),Object.assign(r,n),{componentProps:r}},qa=(e,t)=>{const{colProps:r={}}=e,{colProps:n={span:24}}=t;return{colProps:{...n,...r}}},Ga=({formProps:e})=>{const{items:t}=e;return{formItems:t.map(n=>({...n}))}},Xa=(e,t)=>{const r=a=>(Object.keys(a).forEach(l=>{Object.defineProperty(a,l,{value:a[l],writable:!1,enumerable:!0,configurable:!1})}),a),n={};e.items.forEach(a=>{n[a.name]=a.initialValue});const o=Na(t),i=o?O.Form.useWatch(a=>r(a)):null;return{rewritingModel:d.useMemo(()=>i||r(n),[i]),isusewatch:o}},Ka=()=>{const e=d.useRef(null);function t(n){e.current=n}const r={getFieldsValue:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.getFieldsValue(...n)},setFieldsValue:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.setFieldsValue(...n)},resetFields:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.resetFields(...n)},validator:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.validator(...n)},scrollToField:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.scrollToField(...n)}};return d.useEffect(()=>(console.log("ParentComponent is mounted====================================="),()=>{console.log("ParentComponent is unmounted===================================="),e.current=null}),[]),[t,r]};var Gr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(gn,function(){var r=1e3,n=6e4,o=36e5,i="millisecond",s="second",a="minute",l="hour",u="day",f="week",g="month",h="quarter",y="year",p="date",x="Invalid Date",F=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,z=/\[([^\]]+)]|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,R={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(w){var v=["th","st","nd","rd"],C=w%100;return"["+w+(v[(C-20)%10]||v[C]||v[0])+"]"}},k=function(w,v,C){var D=String(w);return!D||D.length>=v?w:""+Array(v+1-D.length).join(C)+w},V={s:k,z:function(w){var v=-w.utcOffset(),C=Math.abs(v),D=Math.floor(C/60),T=C%60;return(v<=0?"+":"-")+k(D,2,"0")+":"+k(T,2,"0")},m:function w(v,C){if(v.date()<C.date())return-w(C,v);var D=12*(C.year()-v.year())+(C.month()-v.month()),T=v.clone().add(D,g),A=C-T<0,$=v.clone().add(D+(A?-1:1),g);return+(-(D+(C-T)/(A?T-$:$-T))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:g,y,w:f,d:u,D:p,h:l,m:a,s,ms:i,Q:h}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},q="en",X={};X[q]=R;var B="$isDayjsObject",j=function(w){return w instanceof L||!(!w||!w[B])},E=function w(v,C,D){var T;if(!v)return q;if(typeof v=="string"){var A=v.toLowerCase();X[A]&&(T=A),C&&(X[A]=C,T=A);var $=v.split("-");if(!T&&$.length>1)return w($[0])}else{var M=v.name;X[M]=v,T=M}return!D&&T&&(q=T),T||!D&&q},_=function(w,v){if(j(w))return w.clone();var C=typeof v=="object"?v:{};return C.date=w,C.args=arguments,new L(C)},S=V;S.l=E,S.i=j,S.w=function(w,v){return _(w,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var L=function(){function w(C){this.$L=E(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[B]=!0}var v=w.prototype;return v.parse=function(C){this.$d=function(D){var T=D.date,A=D.utc;if(T===null)return new Date(NaN);if(S.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var $=T.match(F);if($){var M=$[2]-1||0,I=($[7]||"0").substring(0,3);return A?new Date(Date.UTC($[1],M,$[3]||1,$[4]||0,$[5]||0,$[6]||0,I)):new Date($[1],M,$[3]||1,$[4]||0,$[5]||0,$[6]||0,I)}}return new Date(T)}(C),this.init()},v.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return this.$d.toString()!==x},v.isSame=function(C,D){var T=_(C);return this.startOf(D)<=T&&T<=this.endOf(D)},v.isAfter=function(C,D){return _(C)<this.startOf(D)},v.isBefore=function(C,D){return this.endOf(D)<_(C)},v.$g=function(C,D,T){return S.u(C)?this[D]:this.set(T,C)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(C,D){var T=this,A=!!S.u(D)||D,$=S.p(C),M=function(ce,ee){var he=S.w(T.$u?Date.UTC(T.$y,ee,ce):new Date(T.$y,ee,ce),T);return A?he:he.endOf(u)},I=function(ce,ee){return S.w(T.toDate()[ce].apply(T.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(ee)),T)},H=this.$W,re=this.$M,se=this.$D,pe="set"+(this.$u?"UTC":"");switch($){case y:return A?M(1,0):M(31,11);case g:return A?M(1,re):M(0,re+1);case f:var fe=this.$locale().weekStart||0,ie=(H<fe?H+7:H)-fe;return M(A?se-ie:se+(6-ie),re);case u:case p:return I(pe+"Hours",0);case l:return I(pe+"Minutes",1);case a:return I(pe+"Seconds",2);case s:return I(pe+"Milliseconds",3);default:return this.clone()}},v.endOf=function(C){return this.startOf(C,!1)},v.$set=function(C,D){var T,A=S.p(C),$="set"+(this.$u?"UTC":""),M=(T={},T[u]=$+"Date",T[p]=$+"Date",T[g]=$+"Month",T[y]=$+"FullYear",T[l]=$+"Hours",T[a]=$+"Minutes",T[s]=$+"Seconds",T[i]=$+"Milliseconds",T)[A],I=A===u?this.$D+(D-this.$W):D;if(A===g||A===y){var H=this.clone().set(p,1);H.$d[M](I),H.init(),this.$d=H.set(p,Math.min(this.$D,H.daysInMonth())).$d}else M&&this.$d[M](I);return this.init(),this},v.set=function(C,D){return this.clone().$set(C,D)},v.get=function(C){return this[S.p(C)]()},v.add=function(C,D){var T,A=this;C=Number(C);var $=S.p(D),M=function(re){var se=_(A);return S.w(se.date(se.date()+Math.round(re*C)),A)};if($===g)return this.set(g,this.$M+C);if($===y)return this.set(y,this.$y+C);if($===u)return M(1);if($===f)return M(7);var I=(T={},T[a]=n,T[l]=o,T[s]=r,T)[$]||1,H=this.$d.getTime()+C*I;return S.w(H,this)},v.subtract=function(C,D){return this.add(-1*C,D)},v.format=function(C){var D=this,T=this.$locale();if(!this.isValid())return T.invalidDate||x;var A=C||"YYYY-MM-DDTHH:mm:ssZ",$=S.z(this),M=this.$H,I=this.$m,H=this.$M,re=T.weekdays,se=T.months,pe=T.meridiem,fe=function(ee,he,be,Ee){return ee&&(ee[he]||ee(D,A))||be[he].slice(0,Ee)},ie=function(ee){return S.s(M%12||12,ee,"0")},ce=pe||function(ee,he,be){var Ee=ee<12?"AM":"PM";return be?Ee.toLowerCase():Ee};return A.replace(z,function(ee,he){return he||function(be){switch(be){case"YY":return String(D.$y).slice(-2);case"YYYY":return S.s(D.$y,4,"0");case"M":return H+1;case"MM":return S.s(H+1,2,"0");case"MMM":return fe(T.monthsShort,H,se,3);case"MMMM":return fe(se,H);case"D":return D.$D;case"DD":return S.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return fe(T.weekdaysMin,D.$W,re,2);case"ddd":return fe(T.weekdaysShort,D.$W,re,3);case"dddd":return re[D.$W];case"H":return String(M);case"HH":return S.s(M,2,"0");case"h":return ie(1);case"hh":return ie(2);case"a":return ce(M,I,!0);case"A":return ce(M,I,!1);case"m":return String(I);case"mm":return S.s(I,2,"0");case"s":return String(D.$s);case"ss":return S.s(D.$s,2,"0");case"SSS":return S.s(D.$ms,3,"0");case"Z":return $}return null}(ee)||$.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(C,D,T){var A,$=this,M=S.p(D),I=_(C),H=(I.utcOffset()-this.utcOffset())*n,re=this-I,se=function(){return S.m($,I)};switch(M){case y:A=se()/12;break;case g:A=se();break;case h:A=se()/3;break;case f:A=(re-H)/6048e5;break;case u:A=(re-H)/864e5;break;case l:A=re/o;break;case a:A=re/n;break;case s:A=re/r;break;default:A=re}return T?A:S.a(A)},v.daysInMonth=function(){return this.endOf(g).$D},v.$locale=function(){return X[this.$L]},v.locale=function(C,D){if(!C)return this.$L;var T=this.clone(),A=E(C,D,!0);return A&&(T.$L=A),T},v.clone=function(){return S.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},w}(),W=L.prototype;return _.prototype=W,[["$ms",i],["$s",s],["$m",a],["$H",l],["$W",u],["$M",g],["$y",y],["$D",p]].forEach(function(w){W[w[1]]=function(v){return this.$g(v,w[0],w[1])}}),_.extend=function(w,v){return w.$i||(w(v,L,_),w.$i=!0),_},_.locale=E,_.isDayjs=j,_.unix=function(w){return _(1e3*w)},_.en=X[q],_.Ls=X,_.p={},_})})(Gr);var Ja=Gr.exports;const it=mn(Ja);function Za(e,t={}){const r=/^\[(.+)\]$/;if(r.test(e)){const n=e.match(r);if(n&&n[1]){const o=n[1].split(",");if(!o.length)return;const i=[];return o.forEach((s,a)=>{Ir(i,a,t[s.trim()])}),i.filter(Boolean).length?i:void 0}}}function Qa(e,t={}){const r=/^\{(.+)\}$/;if(r.test(e)){const n=e.match(r);if(n&&n[1]){const o=n[1].split(",");if(!o.length)return;const i={};return o.forEach(s=>{Ir(i,s.trim(),t[s.trim()])}),Object.values(i).filter(Boolean).length?i:void 0}}}function el(e,t){const r=t.fieldMapToTime;if(!r||!Array.isArray(r))return e;for(const[n,[o,i],s="YYYY-MM-DD"]of r){if(!n||!o||!i)continue;if(!e[n]){Reflect.deleteProperty(e,n);continue}const[a,l]=e[n],[u,f]=Array.isArray(s)?s:[s,s];e[o]=it(a).format(u),e[i]=it(l).format(f),Reflect.deleteProperty(e,n)}return e}const tl=(e,t,r)=>{const n=e.filter(s=>s.name);return{handleFormatRenderValues:s=>{const a={},l=[];return n.forEach(u=>{const f=Reflect.has(s,u.name),g=Za(u.name,s)||Qa(u.name,s);if(f||g){const h=g||s[u.name];if(Ft(u))if(La.includes(u.component)){if(ue(h)){const y=[];for(const p of h)y.push(p?it(p):null);a[u.name]=y}else a[u.name]=h?it(h):null;l.push(u.name)}else a[u.name]=h,l.push(u.name);Ot(u)&&(a[u.name]=h,l.push(u.name))}}),{renderValues:a,validKeys:l}},handleFormatReturnValues:s=>{var l,u,f,g,h;if(!de(s))return{};const a={};for(const y of Object.entries(s)){let[,p]=y;const[x]=y;if(!x||ue(p)&&p.length===0||oe(p))continue;const{transformDateFunc:F}=t,z=(f=(u=(l=r.current)==null?void 0:l.get(x))==null?void 0:u.current)==null?void 0:f.componentProps,R=z==null?void 0:z.valueFormat;if(de(p)){const k=p;k.format&&(p=F==null?void 0:F(k,R))}ue(p)&&((g=p[0])!=null&&g.format)&&((h=p[1])!=null&&h.format)&&(p=p.map(k=>F==null?void 0:F(k,R))),Rr(p)&&(p===""?p=void 0:p=p.trim()),a[x]=p}return el(a,t)}}},rl=(e,t,r)=>({getFieldsValue:(...l)=>r(e.getFieldsValue(...l)),setFieldsValue:l=>{const{renderValues:u,validKeys:f}=t(l);e.setFieldsValue(u),e.validateFields(f)},resetFields:async()=>e.resetFields(),validator:async l=>e.validateFields(l).then(u=>r(u)),scrollToField:async(l,u)=>e.scrollToField(l,u)}),nl=e=>{const{extendFormProps:t}=Xr();return{formProps:{...De(De({collapseNum:5,colon:!1,items:[],labelWrap:!0,transformDateFunc:(o,i)=>{var s;return((s=o==null?void 0:o.format)==null?void 0:s.call(o,i||"YYYY-MM-DD HH:mm:ss"))??o},fieldMapToTime:[]},t),e)}}},at=e=>{const{immediate:t=!0,params:r,api:n,apiCallback:o,isUseWatch:i}=e,s=d.useRef(!0),a=d.useRef(r),l=()=>{n&&oe(n)&&(r?n(r).then(o):n().then(o),a.current=r)};return d.useEffect(()=>{s.current&&(t&&l(),s.current=!1),!s.current&&i&&(nt(r,a.current)||t&&l())},[r]),{getApiData:l}},ol=(e,t)=>{const{collapsible:r,collapseNum:n}=e,o=d.useRef();return{collapsible:r,collapseNum:n,collapseRef:o,onClickCollapseToTrue:()=>{var a;(a=t.current)==null||a.forEach(l=>{if(l.current){const{itemIndex:u}=l.current;u>=n&&r&&l.current.setItemCollapse(!0)}})},onClickCollapseToFalse:()=>{var a;(a=t.current)==null||a.forEach(l=>{if(l.current){const{itemCollapse:u}=l.current;u&&l.current.setItemCollapse(!1)}})}}},Xr=()=>{const{extendProps:e,extendComp:t}=Ye(),r=n=>{const o=t==null?void 0:t.form;o&&Object.keys(o).forEach(i=>{n.set(i,o[i])})};return{extendFormProps:e==null?void 0:e.form,setExtendFormComp:r}},sl=e=>{console.log("render ApiSelect");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:i}=e,s=o==="true",[a,l]=d.useState([]),{getApiData:u}=at({api:t,immediate:n,params:r,apiCallback:l,isUseWatch:s}),f=h=>{h&&!n&&u(),i&&i(h)},g=()=>{const{api:h,params:y,immediate:p,isusewatch:x,...F}=e;return F};return m.jsx(O.Select,{...g(),options:a,onDropdownVisibleChange:f})},il=e=>{console.log("render ApiTreeSelect");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:i}=e,s=o==="true",[a,l]=d.useState([]),{getApiData:u}=at({api:t,immediate:n,params:r,apiCallback:l,isUseWatch:s}),f=h=>{h&&!n&&u(),i&&i(h)},g=()=>{const{api:h,params:y,immediate:p,isusewatch:x,...F}=e;return F};return m.jsx(O.TreeSelect,{...g(),treeData:a,onDropdownVisibleChange:f})},al=e=>{console.log("render ApiTransfer");const{api:t,params:r,isusewatch:n}=e,o=n==="true",[i,s]=d.useState([]);at({api:t,params:r,apiCallback:s,isUseWatch:o});const a=()=>{const{api:l,params:u,isusewatch:f,...g}=e;return g};return m.jsx(O.Transfer,{...a(),dataSource:i})},ll=e=>{console.log("render ApiAutoComplete");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:i}=e,s=o==="true",[a,l]=d.useState([]),{getApiData:u}=at({api:t,immediate:n,params:r,apiCallback:l,isUseWatch:s}),f=h=>{h&&!n&&u(),i&&i(h)},g=()=>{const{api:h,params:y,immediate:p,isusewatch:x,...F}=e;return F};return m.jsx(O.AutoComplete,{...g(),options:a,onDropdownVisibleChange:f})},Se={String:"String","String[]":"String[]","File[]":"File[]",FileList:"FileList"},cl=e=>{console.log("render AutoUpload"),console.log(ut());const t="",{api:r,maxCount:n=1,maxSize:o=2,listType:i="picture-card",openCrop:s=!1,data:a,returnType:l=Se.String,value:u=t,onChange:f}=e,g=d.useRef(!0),h=d.useRef(0),y=d.useRef([]),[p,x]=d.useState([]),F=j=>{y.current=j,x([...j])},z=()=>{const{api:j,maxCount:E,maxSize:_,openCrop:S,beforeUpload:L,fileList:W,returnType:w,...v}=e;return v},R=j=>{const E=j.size/1024/1024<o;E||O.message.error(`文件大小超过:${o}M, 请重试`);const _=y.current.length+h.current<n;return _||O.message.error(`文件数量不能超过${n}个`),E&&_&&h.current++,E&&_&&k(j),O.Upload.LIST_IGNORE},k=j=>{s?(O.message.error("暂时不支持裁剪功能,后续兼容。。。。"),V({file:j})):V({file:j})},V=j=>{r?r({file:j.file,...a}).then(E=>{F([...y.current,...E])}).finally(()=>{h.current--}):(Object.assign(j.file,{status:"done",url:URL.createObjectURL(new Blob([j.file],{type:Wa(j.file.type)}))}),F([...y.current,j.file]),h.current--)},q=j=>{const{file:E,fileList:_}=j,{status:S}=E;switch(S){case"removed":{F([..._]);break}}},X=j=>{const E=S=>{const L=S.split("/"),W=L[L.length-1],[w]=W.split("?");return w};return{uid:(S=>{const L=y.current.find(W=>W.url===S);return L?L.uid:ut()})(j),name:E(j),url:j,status:"done"}},B=()=>{switch(l){case Se.String:return p.map(j=>j.url).join(",");case Se["String[]"]:return p.map(j=>j.url);case Se["File[]"]:return[...p];case Se.FileList:return[...p]}};return d.useEffect(()=>{const j=B();if(nt(j,u))return;let E=[];switch(l){case Se.String:{E=(u||"").split(",").filter(_=>_).map(_=>X(_));break}case Se["String[]"]:{E=(u||[]).map(_=>X(_));break}case Se["File[]"]:{E=(u||[]).map(_=>_);break}case Se.FileList:{E=(u||[]).map(_=>_);break}}F(E)},[u]),d.useEffect(()=>{if(g.current){g.current=!1;return}const j=B();f==null||f(j)},[p]),m.jsx(O.Upload,{listType:i,...z(),fileList:p,beforeUpload:R,onChange:q,children:"上传"})},J=new Map;J.set("Input",O.Input),J.set("ApiSelect",sl),J.set("Select",O.Select),J.set("InputNumber",O.InputNumber),J.set("ApiTreeSelect",il),J.set("TreeSelect",O.TreeSelect),J.set("ApiTransfer",al),J.set("Transfer",O.Transfer),J.set("Switch",O.Switch),J.set("Button",O.Button),J.set("Radio",O.Radio),J.set("RadioGroup",O.Radio.Group),J.set("Checkbox",O.Checkbox),J.set("CheckboxGroup",O.Checkbox.Group),J.set("Cascader",O.Cascader),J.set("TimePicker",O.TimePicker),J.set("DatePicker",O.DatePicker),J.set("MonthPicker",O.DatePicker.MonthPicker),J.set("WeekPicker",O.DatePicker.WeekPicker),J.set("RangePicker",O.DatePicker.RangePicker),J.set("InputPassword",O.Input.Password),J.set("InputTextArea",O.Input.TextArea),J.set("ApiAutoComplete",ll),J.set("AutoComplete",O.AutoComplete),J.set("Upload",O.Upload),J.set("AutoUpload",cl);const Kr={"form-item-force":"_form-item-force_1hsf3_1","form-item-hidden":"_form-item-hidden_1hsf3_9"},ul=d.forwardRef(({itemIndex:e,itemProps:t,methods:r,formProps:n,collapseRef:o},i)=>{console.log("render FormItem",t.name);const{rewritingModel:s,isusewatch:a}=Xa(n,t),{isIfShow:l,isShow:u}=Ha(t,s,o),{colProps:f}=qa(t,n),{componentProps:g}=Ya(t,s),{rules:h}=Ua({item:t,model:s,isShow:u,componentProps:g}),{disabled:y}=Va(n,t,s),{itemCollapse:p,setItemCollapse:x}=Ba(n,e),{name:F,label:z,wrapperCol:R,labelCol:k,valuePropName:V,initialValue:q,forceRow:X}=t;d.useImperativeHandle(i,()=>({itemIndex:e,componentProps:g,itemCollapse:p,setItemCollapse:x}));const B=()=>({name:F,label:z,rules:h,wrapperCol:R,labelCol:k,valuePropName:V,initialValue:q}),{setExtendFormComp:j}=Xr();j(J);const E=Ft(t),_=Ot(t),S=()=>{if(E){const L=J.get(t.component);return m.jsx(L,{...g,disabled:y,isusewatch:a.toString()})}return _?t.render({model:s,name:F,disabled:y,methods:r,componentProps:g}):null};return m.jsxs(d.Fragment,{children:[X?m.jsx("div",{className:Kr["form-item-force"]}):null,l?m.jsx(O.Col,{...f,className:u&&!p?void 0:Kr["form-item-hidden"],children:m.jsx(O.Form.Item,{...B(),children:S()})}):null]})}),fl={"collapse-wrapper":"_collapse-wrapper_ylm01_1"},dl=d.forwardRef(({collapsible:e,onClickExpand:t,onClickFold:r},n)=>{const[o,i]=d.useState(e),s=d.useMemo(()=>o,[o]),a=()=>{r(),i(!0)},l=()=>{t(),i(!1)};return d.useImperativeHandle(n,()=>({handleCollapseChangeFalse:l})),m.jsx("div",{className:fl["collapse-wrapper"],children:s?m.jsx(O.Button,{onClick:l,type:"link",icon:m.jsx(ve.DownOutlined,{}),children:"展开"}):m.jsx(O.Button,{onClick:a,type:"link",icon:m.jsx(ve.UpOutlined,{}),children:"折叠"})})}),pl={"group-wrapper":"_group-wrapper_g8zqi_1"},hl=({formProps:e})=>{const{renderActions:t}=e;return m.jsx("div",{className:pl["group-wrapper"],children:t==null?void 0:t()})},gl={"xph-form-action":"_xph-form-action_8ws73_1"},ml=(e,t)=>{console.log("render Form");const[r]=O.Form.useForm(),{formProps:n}=nl(e),{formItems:o}=Ga({formProps:n}),i=d.useRef(new Map),{collapsible:s,collapseNum:a,collapseRef:l,onClickCollapseToFalse:u,onClickCollapseToTrue:f}=ol(n,i),{handleFormatRenderValues:g,handleFormatReturnValues:h}=tl(o,n,i),{setFieldsValue:y,getFieldsValue:p,resetFields:x,validator:F,scrollToField:z}=rl(r,g,h),R=()=>{const{layout:V,wrapperCol:q,labelCol:X,colon:B,disabled:j,labelWrap:E,labelAlign:_,scrollToFirstError:S,size:L}=n;return{layout:V,wrapperCol:q,labelCol:X,colon:B,disabled:j,labelWrap:E,labelAlign:_,scrollToFirstError:S,size:L}},k={setFieldsValue:y,getFieldsValue:p,resetFields:x,validator:F,scrollToField:z};return d.useImperativeHandle(t,()=>({...k})),d.useEffect(()=>(console.log("Form is mounted======================="),n.register&&n.register(k),()=>{console.log("Form is unmounted========================="),i.current.clear()}),[]),m.jsxs(O.Form,{form:r,...R(),children:[m.jsx(O.Row,{children:o.map((V,q)=>(i.current.has(V.name)||i.current.set(V.name,d.createRef()),m.jsx(ul,{ref:i.current.get(V.name),itemIndex:q,itemProps:V,formProps:n,methods:k,collapseRef:l},q)))}),m.jsxs("div",{className:gl["xph-form-action"],children:[m.jsx(hl,{formProps:n}),s?m.jsx(dl,{ref:l,collapsible:o.length>a,onClickExpand:u,onClickFold:f}):null]})]})},Mt=d.forwardRef(ml),bl=d.memo(Mt),vl=d.forwardRef((e,t)=>{const{renderActions:r,showSearch:n,tableRef:o}=e,[i,s]=d.useState(!1),a=d.useRef(null),l=()=>{const{reloadData:h}=o.current;h()},u=()=>{const{resetData:h}=o.current;h()},f=d.useCallback(()=>m.jsxs("div",{style:{width:"100%",display:"flex"},children:[m.jsx("div",{style:{flex:1,width:0},children:r==null?void 0:r()}),n&&m.jsxs("div",{style:{display:"flex",gap:"8px"},children:[m.jsx(O.Button,{type:"primary",icon:m.jsx(ve.SearchOutlined,{}),onClick:l,children:"搜索"}),m.jsx(O.Button,{icon:m.jsx(ve.ReloadOutlined,{}),onClick:u,children:"重置"})]})]}),[n,r]),g=()=>{const{renderActions:h,...y}=e;return{...y,renderActions:f}};return d.useImperativeHandle(t,()=>({setFormLoading:s,...a.current})),m.jsx(O.Spin,{spinning:i,children:m.jsx(bl,{ref:a,...g()})})}),yl=d.memo(Mt),_l=(e,t)=>{const r=d.useRef(null),n=d.useRef(null),{formProps:o}=e,s=(()=>{const{formProps:f,...g}=e;return g})(),a=d.useRef(null),l=async()=>{const{onOk:f,renderFooter:g}=s;if(r.current.setLoading(!0),!g){const{ok:h,data:y}=a.current;if(h){n.current.validator().then(async p=>{await h({values:n.current.getFieldsValue()}).finally(()=>{r.current.setLoading(!1)})!==!1&&(r.current.close(),a.current=null)});return}f&&n.current.validator().then(async p=>{await f({values:p,data:y}).finally(()=>{r.current.setLoading(!1)})!==!1&&(r.current.close(),a.current=null)}),r.current.close(),a.current=null}},u=async()=>{const{onCancel:f,renderFooter:g}=s;if(!g){const{cancel:h,data:y}=a.current;if(h){if(await h({values:n.current.getFieldsValue()})===!1)return;r.current.close(),a.current=null;return}if(f){if(await f({values:n.current.getFieldsValue(!0),data:y})===!1)return;r.current.close(),a.current=null}r.current.close(),a.current=null}};return d.useImperativeHandle(t,()=>({open:f=>{const{renderFooter:g}=s;return!g&&(a.current=f),r.current.open().then(()=>{n.current.setFieldsValue(f.data||{})})},close:(...f)=>r.current.close(...f),setLoading:(...f)=>r.current.setLoading(...f),getFieldsValue:(...f)=>n.current.getFieldsValue(...f),setFieldsValue:(...f)=>n.current.setFieldsValue(...f),resetFields:(...f)=>n.current.resetFields(...f),validator:(...f)=>n.current.validator(...f),scrollToField:(...f)=>n.current.scrollToField(...f)})),m.jsx(Yr,{...s,ref:r,onOk:l,onCancel:u,children:m.jsx(yl,{...o,ref:n})})},Jr=d.forwardRef(_l);function wl({searchForm:e}){return{searchFormRef:d.useRef(null),searchFormProps:e}}function Cl(e){return"cellFunc"in e}function xl(e){return"children"in e}const{useToken:Sl}=O.theme,Tl=(e,t,r)=>{const{curComponentProps:n,cellFuncProps:o}=t,{url:i,onClick:s}=n,{token:a}=Sl(),l={color:a.colorLink,cursor:"pointer"},u=()=>{if(r.mainClick&&r.mainClick(),s){s();return}if(i){window.open(i,"_blank");return}};return m.jsx(e,{...r,mainClick:u,mainStyle:Object.assign(l,(r==null?void 0:r.mainStyle)||{})})},Pl={"cellfunc-actions":"_cellfunc-actions_14drt_1"},$l=(e,t,r)=>{const{curComponentProps:n,cellFuncProps:o}=t;return m.jsx("div",{className:Pl["cellfunc-actions"],children:m.jsx(st,{...n})})},{useToken:Dl}=O.theme,El={0:{color:"orange",backgroundColor:"unset",border:"1px solid orange"},1:{color:"blue",backgroundColor:"unset",border:"1px solid blue"},2:{color:"green",backgroundColor:"unset",border:"1px solid green"},3:{color:"red",backgroundColor:"unset",border:"1px solid red"},4:{color:"purple",backgroundColor:"unset",border:"1px solid purple"},5:{color:"pink",backgroundColor:"unset",border:"1px solid pink"},6:{color:"cyan",backgroundColor:"unset",border:"1px solid cyan"},7:{color:"magenta",backgroundColor:"unset",border:"1px solid magenta"},8:{color:"yellow",backgroundColor:"unset",border:"1px solid yellow"},9:{color:"teal",backgroundColor:"unset",border:"1px solid teal"},10:{color:"brown",backgroundColor:"unset",border:"1px solid brown"},11:{color:"gray",backgroundColor:"unset",border:"1px solid gray"},12:{color:"olive",backgroundColor:"unset",border:"1px solid olive"},13:{color:"navy",backgroundColor:"unset",border:"1px solid navy"},14:{color:"lime",backgroundColor:"unset",border:"1px solid lime"},15:{color:"maroon",backgroundColor:"unset",border:"1px solid maroon"}},jl=(e,t,r)=>e.reduce((n,o,i)=>{var u;const s=`${t.dataIndex}${o.value}`,a=(u=o.config)==null?void 0:u.color,l=a?r[a]??{color:a,backgroundColor:"unset",border:`1px solid ${a}`}:El[i]||{};return n[s]={color:l.color,backgroundColor:l.backgroundColor,border:l.border},n},{}),Zr={link:{Comp:Tl},actions:{Comp:$l},tag:{Comp:(e,t,r)=>{const{curComponentProps:n,cellFuncProps:{renderPrams:{text:o,column:i}}}=t,{token:s}=Dl(),{enums:a}=n,l={primary:{color:s.colorPrimary,backgroundColor:s.colorPrimaryBg,border:`1px solid ${s.colorPrimary}`},success:{color:s.colorSuccess,backgroundColor:s.colorSuccessBg,border:`1px solid ${s.colorSuccess}`},warning:{color:s.colorWarning,backgroundColor:s.colorWarningBg,border:`1px solid ${s.colorWarning}`},info:{color:s.colorInfo,backgroundColor:s.colorInfoBg,border:`1px solid ${s.colorInfo}`},error:{color:s.colorError,backgroundColor:s.colorErrorBg,border:`1px solid ${s.colorError}`}},f=jl(a,i,l)[`${i.dataIndex}${o}`]||{},g={padding:"0 8px",borderRadius:s.borderRadiusLG,fontSize:s.fontSizeSM,...f},h=()=>{var p;return(p=a.find(x=>x.value===o))==null?void 0:p.label};return m.jsx(e,{...r,mainHandleText:h,mainStyle:Object.assign((r==null?void 0:r.mainStyle)||{},g)})}}},Fl=(e,t)=>{var o;const{renderPrams:{text:r}}=e,n=(o=t==null?void 0:t.mainHandleText)==null?void 0:o.call(t);return m.jsx("span",{onClick:t==null?void 0:t.mainClick,style:t==null?void 0:t.mainStyle,children:n??r})},Ol=e=>{const{setExtendTableCellComp:t}=en();t(Zr);const{dslConfig:r}=e;let n=Fl.bind(null,e),o=0;for(;o<r.length;){const i=o++,s=Zr[r[i].component];s&&(n=s.Comp.bind(null,n,{curComponentProps:r[i].componentProps||{},cellFuncProps:e}))}return m.jsx(n,{})};function Qr(e){return e.map(t=>{let r={...t};if(Cl(r)){const{cellFunc:n,...o}=r;r={...o,render:(...i)=>{const s=oe(n),[a,l,u]=i,f={text:a,record:l,index:u,column:JSON.parse(JSON.stringify(o))},g=s?n(f):n;return m.jsx(Ol,{dslConfig:g,renderPrams:f})}}}return xl(r)&&r.children&&Array.isArray(r.children)&&(r.children=Qr(r.children)),r})}function Ml(e){const{columns:t}=e.table,r=Qr(t);return console.log(r),{columns:r}}const Al=e=>{const{extendTableProps:t}=en();return{tableProps:{...De(De({table:{columns:[],fullHeight:!1,autoRequest:!0,pagination:{pageSize:20,total:0,showTotal:o=>`共:${o} 条`,current:1,pageSizeOptions:[10,20,50,100],showSizeChanger:!0,showQuickJumper:!0},requestFields:{pageSize:"pageSize",current:"current"},responseFields:{current:"current",list:"data",total:"total"}},crudFormDialog:void 0,searchForm:{showSearch:!0,items:[]}},t),e)}}};function Rl(e){const{pagination:t,autoPagination:r}=e.table,[n,o]=d.useState(t),i=d.useRef(t),s=d.useMemo(()=>n&&(r===!0||r===void 0)||!1,[n]);return{pagination:{model:n,update:l=>{if(!i.current)return;const u={...i.current,...l};o(u),i.current=u},show:s},lastPaginationState:i}}function kl(e,t){const{api:r,formatDataSource:n,autoPagination:o,onChange:i,requestFields:s,responseFields:a}=e.table,l=e.onPaginationChange,{pagination:u,lastPaginationState:f}=Rl(e),[g,h]=d.useState({loading:!1,dataSource:[],selection:[],backupsDataSource:[]}),y=d.useRef({loading:!1,dataSource:[],selection:[],backupsDataSource:[]}),p={model:g,update:E=>{var S;const _={...y.current,...E};h(_),y.current=_,(S=t.current)==null||S.setFormLoading(_.loading)}},x=async()=>{d.useEffect(()=>{const{autoRequest:E}=e.table,{validator:_}=t.current;E&&_().then(S=>{k({searchFormParams:S})})},[])},F=async({searchFormParams:E,paginationParams:_})=>{const S={...E,[`${s.current}`]:f.current.current,[`${s.pageSize}`]:f.current.pageSize,..._?{[`${s.current}`]:_.current,[`${s.pageSize}`]:_.pageSize}:{}};return r(S).then(L=>{const{current:W,list:w,total:v}=ft(a,L);p.update({dataSource:n?n(w):w}),u.update({total:v,current:W})}).finally(()=>{p.update({loading:!1})})},z=async({searchFormParams:E,paginationParams:_})=>{const S={...E};return r(S).then(L=>{const{list:W}=ft(a,L),w=n?n(W):W;p.update({selection:[],dataSource:w}),u.update({current:1,total:W.length})}).finally(()=>{p.update({loading:!1})})},R=async({searchFormParams:E,paginationParams:_})=>{var L;const S={...E};if(_){const{current:W,pageSize:w}=_;u.update({current:W,pageSize:w});const v=(W-1)*w,C=v+w,D=(L=y.current.backupsDataSource)==null?void 0:L.slice(v,C);return p.update({loading:!1,selection:[],dataSource:D})}else return r(S).then(W=>{let w=n?n(W):W;const v=[...w],C=0,D=C+f.current.pageSize;w=w.slice(C,D),p.update({selection:[],dataSource:w,backupsDataSource:v}),u.update({current:1,total:W.length})}).finally(()=>{p.update({loading:!1})})},k=async({searchFormParams:E,paginationParams:_})=>{if(p.update({loading:!0,selection:[]}),r)switch(!!f.current){case!0:return o===!0?R({searchFormParams:E,paginationParams:_}):o===!1?z({searchFormParams:E,paginationParams:_}):F({searchFormParams:E,paginationParams:_});case!1:return z({searchFormParams:E,paginationParams:_})}return p.update({loading:!1})};return{table:p,pagination:u,firstGetTableData:x,onPaginationChange:(E,_)=>{const{validator:S}=t.current;S().then(L=>{k({searchFormParams:L,paginationParams:{current:E,pageSize:_}})}),l&&l(E,_)},onAllChange:async(...E)=>{const[_,S,L,W]=E,w=[];for(let v=0;v<w.length&&!w[v]();v++);i&&i(S,L,W)},resetData:async()=>{const{resetFields:E,validator:_}=t.current;return E().then(async()=>{const S=await _();return k({searchFormParams:S})})},resetAllData:async()=>{const{resetFields:E,validator:_}=t.current;return E().then(async()=>{const S={};if(f.current){const{pageSize:L}=f.current;o===void 0&&(S.paginationParams={current:1,pageSize:L})}return S.searchFormParams=await _(),k(S)})},reloadData:async()=>{const{validator:E}=t.current;return E().then(_=>k({searchFormParams:_}))}}}const Il=(e,t)=>{const{onRowSelectionChange:r}=e,{rowSelection:n}=e.table,o=()=>{if(Rr(n))return{type:n,onChange:(i,s,a)=>{t.update({selection:s}),r&&r(i,s)}};if(de(n)){const{onChange:i}=n;return{...n,onChange:(s,a,l)=>{t.update({selection:a}),i&&i(s,a,l),r&&r(s,a)}}}return n};return{rowSelection:o(),getNewRowSelection:o}};function zl(e,t){const{scroll:r,virtual:n}=e.table,o=d.useRef(null),[i,s]=d.useState(0),[a,l]=d.useState(0);d.useEffect(()=>{const f=()=>{o.current&&(s(o.current.offsetWidth),l(o.current.offsetHeight))};f();const g=new ResizeObserver(f);return o.current&&g.observe(o.current),()=>{g&&o.current&&g.unobserve(o.current)}},[]);const u=d.useMemo(()=>t?n?{x:i,y:a-70,...r}:{x:"max-content",y:a-70,...r}:{x:"max-content",...r},[a]);return{divRef:o,scroll:u}}function Ll(e,t){const{toolbar:r}=e.table;return{getTopToolbarBindProps:()=>{if(oe(r)){const o=r({loading:t.model.loading,selection:t.model.selection});return{...o,disabled:t.model.loading||o.disabled}}return{...r,disabled:t.model.loading||(r==null?void 0:r.disabled)}}}}const en=()=>{const{extendProps:e,extendComp:t}=Ye(),r=n=>{const o=t==null?void 0:t.tableCellFunc;o&&Object.keys(o).forEach(i=>{const s=o[i];n[i]={Comp:s}})};return{extendTableProps:e==null?void 0:e.table,setExtendTableCellComp:r}},Nl=({crudFormDialog:e})=>({crudFormDialogRef:d.useRef(null),crudFormProps:e}),lt={"main-container":"_main-container_1yx5k_1",container__toolbar:"_container__toolbar_1yx5k_13",container__table:"_container__table_1yx5k_27",container__pagination:"_container__pagination_1yx5k_35"},Wl=d.forwardRef(({tableProps:e,searchFormRef:t,fullHeight:r},n)=>{const{columns:o}=Ml(e),i=d.useRef(null),{table:s,pagination:a,firstGetTableData:l,onPaginationChange:u,onAllChange:f,resetData:g,resetAllData:h,reloadData:y}=kl(e,t),{rowSelection:p}=Il(e,s),{divRef:x,scroll:F}=zl(e,r),{getTopToolbarBindProps:z}=Ll(e,s),R=()=>{const{autoRequest:k,api:V,formatDataSource:q,autoPagination:X,columns:B,scroll:j,pagination:E,rowSelection:_,onChange:S,...L}=e.table;return L};return l(),d.useImperativeHandle(n,()=>({resetData:g,resetAllData:h,reloadData:y,...i.current})),console.log("render Table"),m.jsxs("div",{className:r?lt["main-container"]:void 0,children:[m.jsx("div",{className:lt.container__toolbar,children:m.jsx(st,{...z()})}),m.jsx("div",{ref:x,className:r?lt.container__table:void 0,children:m.jsx(O.Table,{ref:i,...R(),loading:s.model.loading,columns:o,dataSource:s.model.dataSource,pagination:!1,rowSelection:p,scroll:F,onChange:f})}),a.show?m.jsx("div",{className:lt.container__pagination,children:m.jsx(O.Pagination,{disabled:s.model.loading,...a.model,onChange:u})}):null]})}),tn={"xph-table-full-wrapper":"_xph-table-full-wrapper_mdv0g_1","full-wrapper__table":"_full-wrapper__table_mdv0g_13"},Hl=(e,t)=>{const{tableProps:r}=Al(e),n=d.useRef(null),{searchFormRef:o,searchFormProps:i}=wl(r),{crudFormDialogRef:s,crudFormProps:a}=Nl(r);let{fullHeight:l}=r.table;const{virtual:u}=r.table;return u&&(l=!0),d.useImperativeHandle(t,()=>({...n.current,...s.current})),m.jsxs("div",{className:l?tn["xph-table-full-wrapper"]:void 0,children:[m.jsx("div",{children:m.jsx(vl,{ref:o,tableRef:n,...i})}),m.jsx("div",{className:l?tn["full-wrapper__table"]:void 0,children:m.jsx(Wl,{ref:n,searchFormRef:o,fullHeight:l,tableProps:r})}),a?m.jsx(Jr,{ref:s,...a}):null]})},Bl=d.forwardRef(Hl);Y.XphActions=st,Y.XphCrudFormDialog=Jr,Y.XphDialog=Yr,Y.XphExtendCompPropsProvider=fa,Y.XphForm=Mt,Y.XphPortal=qr,Y.XphTable=Bl,Y.buildUUID=ut,Y.getValueByPath=Ut,Y.getValuesByPathObj=ft,Y.useAsyncState=Wr,Y.useXphExtendCompProps=Ye,Y.useXphForm=Ka,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})});
25
+ Check the top-level render call using <`+P+">.")}return b}}function un(c,b){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var P=Ql(b);if(cn[P])return;cn[P]=!0;var N="";c&&c._owner&&c._owner!==Wt.current&&(N=" It was passed a child from "+W(c._owner.type)+"."),Ie(c),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',P,N),Ie(null)}}function fn(c,b){{if(typeof c!="object")return;if(qe(c))for(var P=0;P<c.length;P++){var N=c[P];Bt(N)&&un(N,b)}else if(Bt(c))c._store&&(c._store.validated=!0);else if(c){var K=j(c);if(typeof K=="function"&&K!==c.entries)for(var Z=K.call(c),G;!(G=Z.next()).done;)Bt(G.value)&&un(G.value,b)}}}function ec(c){{var b=c.type;if(b==null||typeof b=="string")return;var P;if(typeof b=="function")P=b.propTypes;else if(typeof b=="object"&&(b.$$typeof===l||b.$$typeof===g))P=b.propTypes;else return;if(P){var N=W(b);kt(P,c.props,"prop",N,c)}else if(b.PropTypes!==void 0&&!Ht){Ht=!0;var K=W(b);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",K||"Unknown")}typeof b.getDefaultProps=="function"&&!b.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function tc(c){{for(var b=Object.keys(c.props),P=0;P<b.length;P++){var N=b[P];if(N!=="children"&&N!=="key"){Ie(c),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",N),Ie(null);break}}c.ref!==null&&(Ie(c),R("Invalid attribute `ref` supplied to `React.Fragment`."),Ie(null))}}function dn(c,b,P,N,K,Z){{var G=_(c);if(!G){var U="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ae=Zl();ae?U+=ae:U+=ln();var te;c===null?te="null":qe(c)?te="array":c!==void 0&&c.$$typeof===t?(te="<"+(W(c.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):te=typeof c,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",te,U)}var ne=Jl(c,b,P,K,Z);if(ne==null)return ne;if(G){var ge=b.children;if(ge!==void 0)if(N)if(qe(ge)){for(var ze=0;ze<ge.length;ze++)fn(ge[ze],c);Object.freeze&&Object.freeze(ge)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else fn(ge,c)}return c===n?tc(ne):ec(ne),ne}}function rc(c,b,P){return dn(c,b,P,!0)}function nc(c,b,P){return dn(c,b,P,!1)}var oc=nc,sc=rc;Ne.Fragment=n,Ne.jsx=oc,Ne.jsxs=sc}()),Ne}process.env.NODE_ENV==="production"?dt.exports=bn():dt.exports=vn();var m=dt.exports,qt=typeof global=="object"&&global&&global.Object===Object&&global,yn=typeof self=="object"&&self&&self.Object===Object&&self,ye=qt||yn||Function("return this")(),Pe=ye.Symbol,Gt=Object.prototype,_n=Gt.hasOwnProperty,wn=Gt.toString,We=Pe?Pe.toStringTag:void 0;function Cn(e){var t=_n.call(e,We),r=e[We];try{e[We]=void 0;var n=!0}catch{}var o=wn.call(e);return n&&(t?e[We]=r:delete e[We]),o}var xn=Object.prototype,Sn=xn.toString;function Tn(e){return Sn.call(e)}var Pn="[object Null]",$n="[object Undefined]",Xt=Pe?Pe.toStringTag:void 0;function _e(e){return e==null?e===void 0?$n:Pn:Xt&&Xt in Object(e)?Cn(e):Tn(e)}function me(e){return e!=null&&typeof e=="object"}var Dn="[object Symbol]";function pt(e){return typeof e=="symbol"||me(e)&&_e(e)==Dn}function En(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var ue=Array.isArray,jn=1/0,Kt=Pe?Pe.prototype:void 0,Jt=Kt?Kt.toString:void 0;function Zt(e){if(typeof e=="string")return e;if(ue(e))return En(e,Zt)+"";if(pt(e))return Jt?Jt.call(e):"";var t=e+"";return t=="0"&&1/e==-jn?"-0":t}function de(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Qt(e){return e}var Fn="[object AsyncFunction]",On="[object Function]",Mn="[object GeneratorFunction]",An="[object Proxy]";function oe(e){if(!de(e))return!1;var t=_e(e);return t==On||t==Mn||t==Fn||t==An}var ht=ye["__core-js_shared__"],er=function(){var e=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Rn(e){return!!er&&er in e}var kn=Function.prototype,In=kn.toString;function Fe(e){if(e!=null){try{return In.call(e)}catch{}try{return e+""}catch{}}return""}var zn=/[\\^$.*+?()[\]{}|]/g,Ln=/^\[object .+?Constructor\]$/,Nn=Function.prototype,Wn=Object.prototype,Hn=Nn.toString,Bn=Wn.hasOwnProperty,Un=RegExp("^"+Hn.call(Bn).replace(zn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Vn(e){if(!de(e)||Rn(e))return!1;var t=oe(e)?Un:Ln;return t.test(Fe(e))}function Yn(e,t){return e==null?void 0:e[t]}function Oe(e,t){var r=Yn(e,t);return Vn(r)?r:void 0}var gt=Oe(ye,"WeakMap"),tr=Object.create,qn=function(){function e(){}return function(t){if(!de(t))return{};if(tr)return tr(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Gn(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Xn(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Kn=800,Jn=16,Zn=Date.now;function Qn(e){var t=0,r=0;return function(){var n=Zn(),o=Jn-(n-r);if(r=n,o>0){if(++t>=Kn)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function eo(e){return function(){return e}}var Xe=function(){try{var e=Oe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),to=Xe?function(e,t){return Xe(e,"toString",{configurable:!0,enumerable:!1,value:eo(t),writable:!0})}:Qt,ro=Qn(to),no=9007199254740991,oo=/^(?:0|[1-9]\d*)$/;function mt(e,t){var r=typeof e;return t=t??no,!!t&&(r=="number"||r!="symbol"&&oo.test(e))&&e>-1&&e%1==0&&e<t}function bt(e,t,r){t=="__proto__"&&Xe?Xe(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function He(e,t){return e===t||e!==e&&t!==t}var so=Object.prototype,io=so.hasOwnProperty;function rr(e,t,r){var n=e[t];(!(io.call(e,t)&&He(n,r))||r===void 0&&!(t in e))&&bt(e,t,r)}function ao(e,t,r,n){var o=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=void 0;l===void 0&&(l=e[a]),o?bt(r,a,l):rr(r,a,l)}return r}var nr=Math.max;function lo(e,t,r){return t=nr(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=nr(n.length-t,0),s=Array(i);++o<i;)s[o]=n[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=n[o];return a[t]=r(s),Gn(e,this,a)}}function co(e,t){return ro(lo(e,t,Qt),e+"")}var uo=9007199254740991;function or(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=uo}function Ke(e){return e!=null&&or(e.length)&&!oe(e)}function fo(e,t,r){if(!de(r))return!1;var n=typeof t;return(n=="number"?Ke(r)&&mt(t,r.length):n=="string"&&t in r)?He(r[t],e):!1}function po(e){return co(function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,s&&fo(r[0],r[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var a=r[n];a&&e(t,a,n,i)}return t})}var ho=Object.prototype;function vt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ho;return e===r}function go(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var mo="[object Arguments]";function sr(e){return me(e)&&_e(e)==mo}var ir=Object.prototype,bo=ir.hasOwnProperty,vo=ir.propertyIsEnumerable,yt=sr(function(){return arguments}())?sr:function(e){return me(e)&&bo.call(e,"callee")&&!vo.call(e,"callee")};function yo(){return!1}var ar=typeof Y=="object"&&Y&&!Y.nodeType&&Y,lr=ar&&typeof module=="object"&&module&&!module.nodeType&&module,_o=lr&&lr.exports===ar,cr=_o?ye.Buffer:void 0,wo=cr?cr.isBuffer:void 0,Je=wo||yo,Co="[object Arguments]",xo="[object Array]",So="[object Boolean]",To="[object Date]",Po="[object Error]",$o="[object Function]",Do="[object Map]",Eo="[object Number]",jo="[object Object]",Fo="[object RegExp]",Oo="[object Set]",Mo="[object String]",Ao="[object WeakMap]",Ro="[object ArrayBuffer]",ko="[object DataView]",Io="[object Float32Array]",zo="[object Float64Array]",Lo="[object Int8Array]",No="[object Int16Array]",Wo="[object Int32Array]",Ho="[object Uint8Array]",Bo="[object Uint8ClampedArray]",Uo="[object Uint16Array]",Vo="[object Uint32Array]",Q={};Q[Io]=Q[zo]=Q[Lo]=Q[No]=Q[Wo]=Q[Ho]=Q[Bo]=Q[Uo]=Q[Vo]=!0,Q[Co]=Q[xo]=Q[Ro]=Q[So]=Q[ko]=Q[To]=Q[Po]=Q[$o]=Q[Do]=Q[Eo]=Q[jo]=Q[Fo]=Q[Oo]=Q[Mo]=Q[Ao]=!1;function Yo(e){return me(e)&&or(e.length)&&!!Q[_e(e)]}function qo(e){return function(t){return e(t)}}var ur=typeof Y=="object"&&Y&&!Y.nodeType&&Y,Be=ur&&typeof module=="object"&&module&&!module.nodeType&&module,Go=Be&&Be.exports===ur,_t=Go&&qt.process,fr=function(){try{var e=Be&&Be.require&&Be.require("util").types;return e||_t&&_t.binding&&_t.binding("util")}catch{}}(),dr=fr&&fr.isTypedArray,wt=dr?qo(dr):Yo,Xo=Object.prototype,Ko=Xo.hasOwnProperty;function pr(e,t){var r=ue(e),n=!r&&yt(e),o=!r&&!n&&Je(e),i=!r&&!n&&!o&&wt(e),s=r||n||o||i,a=s?go(e.length,String):[],l=a.length;for(var u in e)(t||Ko.call(e,u))&&!(s&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||mt(u,l)))&&a.push(u);return a}function hr(e,t){return function(r){return e(t(r))}}var Jo=hr(Object.keys,Object),Zo=Object.prototype,Qo=Zo.hasOwnProperty;function es(e){if(!vt(e))return Jo(e);var t=[];for(var r in Object(e))Qo.call(e,r)&&r!="constructor"&&t.push(r);return t}function ts(e){return Ke(e)?pr(e):es(e)}function rs(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ns=Object.prototype,os=ns.hasOwnProperty;function ss(e){if(!de(e))return rs(e);var t=vt(e),r=[];for(var n in e)n=="constructor"&&(t||!os.call(e,n))||r.push(n);return r}function gr(e){return Ke(e)?pr(e,!0):ss(e)}var is=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,as=/^\w*$/;function ls(e,t){if(ue(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||pt(e)?!0:as.test(e)||!is.test(e)||t!=null&&e in Object(t)}var Ue=Oe(Object,"create");function cs(){this.__data__=Ue?Ue(null):{},this.size=0}function us(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fs="__lodash_hash_undefined__",ds=Object.prototype,ps=ds.hasOwnProperty;function hs(e){var t=this.__data__;if(Ue){var r=t[e];return r===fs?void 0:r}return ps.call(t,e)?t[e]:void 0}var gs=Object.prototype,ms=gs.hasOwnProperty;function bs(e){var t=this.__data__;return Ue?t[e]!==void 0:ms.call(t,e)}var vs="__lodash_hash_undefined__";function ys(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ue&&t===void 0?vs:t,this}function Me(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Me.prototype.clear=cs,Me.prototype.delete=us,Me.prototype.get=hs,Me.prototype.has=bs,Me.prototype.set=ys;function _s(){this.__data__=[],this.size=0}function Ze(e,t){for(var r=e.length;r--;)if(He(e[r][0],t))return r;return-1}var ws=Array.prototype,Cs=ws.splice;function xs(e){var t=this.__data__,r=Ze(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Cs.call(t,r,1),--this.size,!0}function Ss(e){var t=this.__data__,r=Ze(t,e);return r<0?void 0:t[r][1]}function Ts(e){return Ze(this.__data__,e)>-1}function Ps(e,t){var r=this.__data__,n=Ze(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function we(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}we.prototype.clear=_s,we.prototype.delete=xs,we.prototype.get=Ss,we.prototype.has=Ts,we.prototype.set=Ps;var Ve=Oe(ye,"Map");function $s(){this.size=0,this.__data__={hash:new Me,map:new(Ve||we),string:new Me}}function Ds(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qe(e,t){var r=e.__data__;return Ds(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Es(e){var t=Qe(this,e).delete(e);return this.size-=t?1:0,t}function js(e){return Qe(this,e).get(e)}function Fs(e){return Qe(this,e).has(e)}function Os(e,t){var r=Qe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ce(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ce.prototype.clear=$s,Ce.prototype.delete=Es,Ce.prototype.get=js,Ce.prototype.has=Fs,Ce.prototype.set=Os;var Ms="Expected a function";function Ct(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ms);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(Ct.Cache||Ce),r}Ct.Cache=Ce;var As=500;function Rs(e){var t=Ct(e,function(n){return r.size===As&&r.clear(),n}),r=t.cache;return t}var ks=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Is=/\\(\\)?/g,zs=Rs(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ks,function(r,n,o,i){t.push(o?i.replace(Is,"$1"):n||r)}),t});function Ls(e){return e==null?"":Zt(e)}function Ns(e,t){return ue(e)?e:ls(e,t)?[e]:zs(Ls(e))}var Ws=1/0;function Hs(e){if(typeof e=="string"||pt(e))return e;var t=e+"";return t=="0"&&1/e==-Ws?"-0":t}function Bs(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var mr=hr(Object.getPrototypeOf,Object),Us="[object Object]",Vs=Function.prototype,Ys=Object.prototype,br=Vs.toString,qs=Ys.hasOwnProperty,Gs=br.call(Object);function Xs(e){if(!me(e)||_e(e)!=Us)return!1;var t=mr(e);if(t===null)return!0;var r=qs.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&br.call(r)==Gs}function Ks(){this.__data__=new we,this.size=0}function Js(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Zs(e){return this.__data__.get(e)}function Qs(e){return this.__data__.has(e)}var ei=200;function ti(e,t){var r=this.__data__;if(r instanceof we){var n=r.__data__;if(!Ve||n.length<ei-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ce(n)}return r.set(e,t),this.size=r.size,this}function xe(e){var t=this.__data__=new we(e);this.size=t.size}xe.prototype.clear=Ks,xe.prototype.delete=Js,xe.prototype.get=Zs,xe.prototype.has=Qs,xe.prototype.set=ti;var vr=typeof Y=="object"&&Y&&!Y.nodeType&&Y,yr=vr&&typeof module=="object"&&module&&!module.nodeType&&module,ri=yr&&yr.exports===vr,_r=ri?ye.Buffer:void 0;_r&&_r.allocUnsafe;function ni(e,t){return e.slice()}function oi(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}function si(){return[]}var ii=Object.prototype,ai=ii.propertyIsEnumerable,wr=Object.getOwnPropertySymbols,li=wr?function(e){return e==null?[]:(e=Object(e),oi(wr(e),function(t){return ai.call(e,t)}))}:si;function ci(e,t,r){var n=t(e);return ue(e)?n:Bs(n,r(e))}function Cr(e){return ci(e,ts,li)}var xt=Oe(ye,"DataView"),St=Oe(ye,"Promise"),Tt=Oe(ye,"Set"),xr="[object Map]",ui="[object Object]",Sr="[object Promise]",Tr="[object Set]",Pr="[object WeakMap]",$r="[object DataView]",fi=Fe(xt),di=Fe(Ve),pi=Fe(St),hi=Fe(Tt),gi=Fe(gt),$e=_e;(xt&&$e(new xt(new ArrayBuffer(1)))!=$r||Ve&&$e(new Ve)!=xr||St&&$e(St.resolve())!=Sr||Tt&&$e(new Tt)!=Tr||gt&&$e(new gt)!=Pr)&&($e=function(e){var t=_e(e),r=t==ui?e.constructor:void 0,n=r?Fe(r):"";if(n)switch(n){case fi:return $r;case di:return xr;case pi:return Sr;case hi:return Tr;case gi:return Pr}return t});var et=ye.Uint8Array;function mi(e){var t=new e.constructor(e.byteLength);return new et(t).set(new et(e)),t}function bi(e,t){var r=mi(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function vi(e){return typeof e.constructor=="function"&&!vt(e)?qn(mr(e)):{}}var yi="__lodash_hash_undefined__";function _i(e){return this.__data__.set(e,yi),this}function wi(e){return this.__data__.has(e)}function tt(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ce;++t<r;)this.add(e[t])}tt.prototype.add=tt.prototype.push=_i,tt.prototype.has=wi;function Ci(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function xi(e,t){return e.has(t)}var Si=1,Ti=2;function Dr(e,t,r,n,o,i){var s=r&Si,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var g=-1,h=!0,y=r&Ti?new tt:void 0;for(i.set(e,t),i.set(t,e);++g<a;){var p=e[g],x=t[g];if(n)var j=s?n(x,p,g,t,e,i):n(p,x,g,e,t,i);if(j!==void 0){if(j)continue;h=!1;break}if(y){if(!Ci(t,function(z,R){if(!xi(y,R)&&(p===z||o(p,z,r,n,i)))return y.push(R)})){h=!1;break}}else if(!(p===x||o(p,x,r,n,i))){h=!1;break}}return i.delete(e),i.delete(t),h}function Pi(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function $i(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Di=1,Ei=2,ji="[object Boolean]",Fi="[object Date]",Oi="[object Error]",Mi="[object Map]",Ai="[object Number]",Ri="[object RegExp]",ki="[object Set]",Ii="[object String]",zi="[object Symbol]",Li="[object ArrayBuffer]",Ni="[object DataView]",Er=Pe?Pe.prototype:void 0,Pt=Er?Er.valueOf:void 0;function Wi(e,t,r,n,o,i,s){switch(r){case Ni:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Li:return!(e.byteLength!=t.byteLength||!i(new et(e),new et(t)));case ji:case Fi:case Ai:return He(+e,+t);case Oi:return e.name==t.name&&e.message==t.message;case Ri:case Ii:return e==t+"";case Mi:var a=Pi;case ki:var l=n&Di;if(a||(a=$i),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;n|=Ei,s.set(e,t);var f=Dr(a(e),a(t),n,o,i,s);return s.delete(e),f;case zi:if(Pt)return Pt.call(e)==Pt.call(t)}return!1}var Hi=1,Bi=Object.prototype,Ui=Bi.hasOwnProperty;function Vi(e,t,r,n,o,i){var s=r&Hi,a=Cr(e),l=a.length,u=Cr(t),f=u.length;if(l!=f&&!s)return!1;for(var g=l;g--;){var h=a[g];if(!(s?h in t:Ui.call(t,h)))return!1}var y=i.get(e),p=i.get(t);if(y&&p)return y==t&&p==e;var x=!0;i.set(e,t),i.set(t,e);for(var j=s;++g<l;){h=a[g];var z=e[h],R=t[h];if(n)var k=s?n(R,z,h,t,e,i):n(z,R,h,e,t,i);if(!(k===void 0?z===R||o(z,R,r,n,i):k)){x=!1;break}j||(j=h=="constructor")}if(x&&!j){var V=e.constructor,q=t.constructor;V!=q&&"constructor"in e&&"constructor"in t&&!(typeof V=="function"&&V instanceof V&&typeof q=="function"&&q instanceof q)&&(x=!1)}return i.delete(e),i.delete(t),x}var Yi=1,jr="[object Arguments]",Fr="[object Array]",rt="[object Object]",qi=Object.prototype,Or=qi.hasOwnProperty;function Gi(e,t,r,n,o,i){var s=ue(e),a=ue(t),l=s?Fr:$e(e),u=a?Fr:$e(t);l=l==jr?rt:l,u=u==jr?rt:u;var f=l==rt,g=u==rt,h=l==u;if(h&&Je(e)){if(!Je(t))return!1;s=!0,f=!1}if(h&&!f)return i||(i=new xe),s||wt(e)?Dr(e,t,r,n,o,i):Wi(e,t,l,r,n,o,i);if(!(r&Yi)){var y=f&&Or.call(e,"__wrapped__"),p=g&&Or.call(t,"__wrapped__");if(y||p){var x=y?e.value():e,j=p?t.value():t;return i||(i=new xe),o(x,j,r,n,i)}}return h?(i||(i=new xe),Vi(e,t,r,n,o,i)):!1}function Mr(e,t,r,n,o){return e===t?!0:e==null||t==null||!me(e)&&!me(t)?e!==e&&t!==t:Gi(e,t,r,n,Mr,o)}function Xi(e){return function(t,r,n){for(var o=-1,i=Object(t),s=n(t),a=s.length;a--;){var l=s[++o];if(r(i[l],l,i)===!1)break}return t}}var Ki=Xi();function $t(e,t,r){(r!==void 0&&!He(e[t],r)||r===void 0&&!(t in e))&&bt(e,t,r)}function Ji(e){return me(e)&&Ke(e)}function Dt(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Zi(e){return ao(e,gr(e))}function Qi(e,t,r,n,o,i,s){var a=Dt(e,r),l=Dt(t,r),u=s.get(l);if(u){$t(e,r,u);return}var f=i?i(a,l,r+"",e,t,s):void 0,g=f===void 0;if(g){var h=ue(l),y=!h&&Je(l),p=!h&&!y&&wt(l);f=l,h||y||p?ue(a)?f=a:Ji(a)?f=Xn(a):y?(g=!1,f=ni(l)):p?(g=!1,f=bi(l)):f=[]:Xs(l)||yt(l)?(f=a,yt(a)?f=Zi(a):(!de(a)||oe(a))&&(f=vi(l))):g=!1}g&&(s.set(l,f),o(f,l,n,i,s),s.delete(l)),$t(e,r,f)}function Ar(e,t,r,n,o){e!==t&&Ki(t,function(i,s){if(o||(o=new xe),de(i))Qi(e,t,s,r,Ar,n,o);else{var a=n?n(Dt(e,s),i,s+"",e,t,o):void 0;a===void 0&&(a=i),$t(e,s,a)}},gr)}var ea="[object String]";function Rr(e){return typeof e=="string"||!ue(e)&&me(e)&&_e(e)==ea}var ta="[object Boolean]";function Et(e){return e===!0||e===!1||me(e)&&_e(e)==ta}function nt(e,t){return Mr(e,t)}var ra="[object Number]";function na(e){return typeof e=="number"||me(e)&&_e(e)==ra}function kr(e){return e==null}function oa(e){return e===null}var De=po(function(e,t,r){Ar(e,t,r)});function sa(e,t,r,n){if(!de(e))return e;t=Ns(t,e);for(var o=-1,i=t.length,s=i-1,a=e;a!=null&&++o<i;){var l=Hs(t[o]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=s){var f=a[l];u=void 0,u===void 0&&(u=de(f)?f:mt(t[o+1])?[]:{})}rr(a,l,u),a=a[l]}return e}function Ir(e,t,r){return e==null?e:sa(e,t,r)}function ia(e){const{inherit:t=!0}=e,{extendActionsProps:r}=Hr();return{actionsProps:{...De(De({items:[],max:10},t?r:{}),e)}}}function zr(e){return"component"in e}function aa(e){return"render"in e}function la(e){const{type:t,disabled:r,items:n,max:o}=e,i=n.map(a=>{const l={...a};return zr(l)&&(l.componentProps={type:t,disabled:r,...l.componentProps}),l}),s=na(o)&&o>=0;return{showActionItems:i.slice(0,s?o:i.length),ellipsisActionItems:i.slice(s?o:i.length)}}const ca=e=>{const{componentProps:t}=e,r=()=>{const{...n}=t;return n};return m.jsx(O.Button,{...r()})},ua=e=>{const{componentProps:t}=e,n=(()=>{const{dropDownItems:o,onClick:i,...s}=t;return s})();return m.jsx(O.Dropdown,{disabled:n.disabled,menu:{items:(t==null?void 0:t.dropDownItems)||[],onClick:t==null?void 0:t.onClick},trigger:["click"],children:m.jsx("div",{children:m.jsxs(O.Button,{...n,children:[n.children,m.jsx(ve.CaretDownOutlined,{})]})})})},ot=new Map;ot.set("Button",ca),ot.set("Dropdown",ua);function Lr(){const{setExtendActionsComp:e}=Hr();return e(ot),{renderContent:d.useCallback((r,n)=>{const o=zr(r),i=aa(r);if(o){const s=ot.get(r.component);return m.jsx(s,{...r},n)}return i?m.jsx("div",{children:r.render},n):null},[])}}const Nr=d.createContext({}),fa=e=>{const{extendProps:t,extendComp:r}=e.value;return m.jsx(Nr.Provider,{value:{extendProps:t,extendComp:r},children:e.children})},Ye=()=>d.useContext(Nr),Wr=e=>{const[t,r]=d.useState(e),n=d.useRef(null);return d.useEffect(()=>{n.current&&(n.current(),n.current=null)},[t]),[t,i=>new Promise((s,a)=>{r(l=>{const u=typeof i=="function"?i(l):i;return n.current=s,u})})]},Hr=()=>{const{extendProps:e,extendComp:t}=Ye(),r=n=>{const o=t==null?void 0:t.actions;o&&Object.keys(o).forEach(i=>{n.set(i,o[i])})};return{extendActionsProps:e==null?void 0:e.actions,setExtendActionsComp:r}},{useToken:da}=O.theme,pa=({items:e,actionsProps:t})=>{const{type:r,disabled:n}=t,{renderContent:o}=Lr(),{token:i}=da(),s={backgroundColor:i.colorBgElevated,borderRadius:i.borderRadiusLG,boxShadow:i.boxShadowSecondary},a=()=>m.jsx("div",{style:s,children:m.jsx(O.Space,{style:{padding:8},children:e==null?void 0:e.map((l,u)=>o(l,u))})});return m.jsx(O.Dropdown,{disabled:n,menu:{items:[]},dropdownRender:a,trigger:["click"],children:m.jsxs(O.Button,{type:r,children:["更多",m.jsx(ve.CaretDownOutlined,{})]})})},st=e=>{const{actionsProps:t}=ia(e),{showActionItems:r,ellipsisActionItems:n}=la(t),{renderContent:o}=Lr();return t!=null&&t.render?t.render:m.jsxs(d.Fragment,{children:[r==null?void 0:r.map((i,s)=>o(i,s)),n!=null&&n.length?m.jsx(pa,{actionsProps:t,items:n}):null]})};function ha(e,t){const{okText:r,cancelText:n,onCancel:o,onOk:i,okProps:s,cancelProps:a}=e;return{footerActions:{disabled:t,max:2,items:[{component:"Button",componentProps:{...a,children:n,onClick:o}},{component:"Button",componentProps:{type:"primary",loading:t,...s,children:r,onClick:i}}]}}}const ga=e=>{const{extendDialogProps:t}=ma(),r={width:700,okText:"确定",cancelText:"取消",getPopperContainer:()=>document.body},n={...De(De(r,t),e)};return{dialogProps:{...n,getPopperContainer:()=>{const i=n.getPopperContainer();return n.mask?document.body:i}},baseDialogProps:r}},ma=()=>{const{extendProps:e}=Ye();return{extendDialogProps:e==null?void 0:e.dialog}},ba=(e,t,r)=>{const{onOpen:n,onClose:o}=e;return{open:async()=>{n&&n(),await t(!0)},close:()=>{t(!1),r(!1),o&&o()}}},va=({initWidth:e,initHeight:t,setDialogChangeRecord:r})=>{const[n,o]=d.useState(e.current),[i,s]=d.useState(t.current);return{dialogWidth:n,dialogHeight:i,setDialogSize:({width:l,height:u})=>{r({width:n,height:i}),l!==void 0&&o(l),u!==void 0&&s(u)}}},ya=({initLeft:e,initTop:t,setDialogChangeRecord:r})=>{const[n,o]=d.useState(e.current),[i,s]=d.useState(t.current);return{dialogLeft:n,dialogTop:i,setDialogPosition:({left:l,top:u})=>{r({left:n,top:i}),l!==void 0&&o(l),u!==void 0&&s(u)}}},Br=({containerSizeTarget:e,dialogHeaderRef:t,dialogRef:r,setDialogPosition:n})=>{const o=d.useRef(0),i=d.useRef(0),s=f=>{const g=f.getBoundingClientRect(),h=g.width,y=g.height,p=-.5*h,x=-.5*y;return{translateX:p,translateY:x}},a=d.useCallback(f=>{const{offsetLeft:g,offsetTop:h}=r.current;o.current=f.clientX-g,i.current=f.clientY-h,document.addEventListener("mousemove",l),document.addEventListener("mouseup",u)},[]),l=d.useCallback(f=>{const g=r.current,{translateX:h,translateY:y}=s(g);let p=f.clientX-o.current,x=f.clientY-i.current;const j=-h,z=-y,R=e.current.scrollWidth-g.offsetWidth-h,k=e.current.scrollHeight-g.offsetHeight-y;p<j&&(p=j),p>R&&(p=R),x<z&&(x=z),x>k&&(x=k),n({left:p,top:x})},[]),u=d.useCallback(()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",u)},[]);return d.useEffect(()=>{const f=t.current;return f.addEventListener("mousedown",a),()=>{f.removeEventListener("mousedown",a)}},[]),{}},_a=({containerSizeTarget:e,dialogChangeRecord:t,close:r,setDialogSize:n,setDialogPosition:o})=>{const[i,s]=d.useState(!1),[a,l]=d.useState(!1);return{minimizeVisible:i,maximizeVisible:a,onMinimize:()=>{s(!0)},onMaximize:y=>{if(y==="minimize"&&s(!1),y==="maximize"){const{scrollWidth:p,scrollHeight:x}=e.current,j=Math.floor(p),z=Math.floor(x),R=Math.floor(p/2),k=Math.floor(x/2);n({width:j,height:z}),o({top:k,left:R}),l(!0)}},onRecovery:()=>{const{top:y,left:p,width:x,height:j}=t.current;n({width:x,height:j}),o({top:y,left:p}),l(!1)},onClose:()=>{s(!1),l(!1),r()}}},wa=({visible:e,containerSizeTarget:t,dialogHeight:r,dialogRef:n,dialogHeaderRef:o,dialogFooterRef:i})=>{const{clientHeight:s,scrollHeight:a}=t.current,[l,u]=d.useState(0),[f,g]=d.useState("unset"),h=(y,p)=>{var q,X;const z=(q=o.current)==null?void 0:q.offsetHeight,R=(X=i.current)==null?void 0:X.offsetHeight;let k=y-z-R-0;const V=p-z-R-0;return k>V&&(k=V),k};return d.useEffect(()=>{var y;if(l===s){console.log("触发了dialogMaxHeight改变");const p=(y=n.current)==null?void 0:y.getBoundingClientRect().height;g(h(p,s)),u("unset")}},[l]),d.useEffect(()=>{r!=="unset"&&r!==0&&(console.log("触发了重新设置contentMaxHeight",r),g(h(r,r>s?a:s)),u("unset"))},[r]),d.useEffect(()=>{e?u(s):(u(0),g("unset"))},[e]),{dialogMaxHeight:l,contentMaxHeight:f}},Ca=()=>{const[e,t]=d.useState(160),[r,n]=d.useState(60),o=d.useRef(null);return{minimizeTop:r,minimizeLeft:e,minimizeRef:o,setMinimizePosition:({left:s,top:a})=>{s!==void 0&&t(s),a!==void 0&&n(a)}}},xa=({visible:e,dialogRef:t,minimizeRef:r,container:n})=>{const o={xphDialog:"xph--dialog",xphDialogWrapper:"xph--dialog--wrapper",xphMinimizeDialog:"xph--dialog--minimize"},i=(a,l)=>{console.log("触发插入"),a.querySelector(`.${o.xphDialogWrapper}`).style.opacity="unset",a.querySelector(`.${o.xphMinimizeDialog}`).style.opacity="unset",l.querySelector(`.${o.xphDialogWrapper}`).style.opacity=.7,l.querySelector(`.${o.xphMinimizeDialog}`).style.opacity=.7;const u=document.createElement("div");u.style.visibility="hidden",l.parentNode.insertBefore(u,l.nextSibling),l.parentNode.insertBefore(a,u),l.parentNode.removeChild(u)},s=a=>{var f,g;const l=n.querySelectorAll(`.${o.xphDialog}`),u=l[l.length-1];if(((f=t.current)==null?void 0:f.parentNode)!==u&&(i((g=t.current)==null?void 0:g.parentNode,u),a)){const h=a.target;h.tagName==="INPUT"&&h.focus&&h.focus()}};return d.useEffect(()=>{var a,l;return(a=t.current)==null||a.addEventListener("mousedown",s,!1),(l=r.current)==null||l.addEventListener("mousedown",s,!1),()=>{var u,f;(u=t.current)==null||u.removeEventListener("mousedown",s,!1),(f=r.current)==null||f.removeEventListener("mousedown",s,!1)}},[]),d.useEffect(()=>{if(e)s();else{const a=Array.from(n.querySelectorAll(`.${o.xphDialog}`)),l=a.map(h=>h.querySelector(`.${o.xphDialogWrapper}`)).filter(h=>h!==null),u=a.map(h=>h.querySelector(`.${o.xphMinimizeDialog}`)).filter(h=>h!==null),f=l.filter(h=>h.style.display==="flex"),g=u.filter(h=>h.style.display==="flex");if(f.length){i(f[f.length-1].parentNode,a[a.length-1]);return}if(g.length){i(g[g.length-1].parentNode,a[a.length-1]);return}}},[e]),{dialogTopShowClassConfig:o}},Sa=({initWidth:e,initHeight:t,initLeft:r,initTop:n,curPropsWidth:o,curPropsHeight:i,setDialogSize:s,setDialogPosition:a})=>{d.useEffect(()=>{o!==e.current&&(console.log("重新设置了宽度"),s({width:o})),i!==t.current&&(console.log("重新设置了高度"),s({height:i}))},[o,i]),d.useEffect(()=>{o!==e.current&&(console.log("重新设置了左边位置"),a({left:r.current})),i!==t.current&&(console.log("重新设置了上边位置"),a({top:n.current}))},[o,i])},Ta=()=>{const e=d.useRef({left:0,top:0,width:0,height:0});return{dialogChangeRecord:e,setDialogChangeRecord:({left:r,top:n,width:o,height:i})=>{const{left:s,top:a,width:l,height:u}=e.current;e.current={left:r??s,top:n??a,width:o??l,height:i??u}}}},Pa=({containerSizeTarget:e,dialogRef:t,minResizeRecord:r,setDialogSize:n,setDialogPosition:o})=>{const i=d.useCallback(()=>m.jsx("div",{ref:s,style:{position:"absolute",border:"4px dashed #ccc",display:"none"}}),[]),s=d.useRef(null),a=d.useRef(),l=d.useRef(!1),[u,f]=d.useState(!1),g=d.useRef(0),h=d.useRef(0),y=(B,F)=>{l.current=!0,f(!0),a.current=F;const{clientX:E,clientY:_}=B;g.current=E,h.current=_;const S=parseFloat(t.current.style.left),L=parseFloat(t.current.style.top),W=t.current.offsetWidth,w=t.current.offsetHeight;s.current.style.display="block",s.current.style.left=`${S-.5*W}px`,s.current.style.top=`${L-.5*w}px`,s.current.style.width=`${W}px`,s.current.style.height=`${w}px`},p=B=>{if(l.current){const{clientX:F,clientY:E}=B,_=F-g.current,S=E-h.current,L=parseFloat(s.current.style.left),W=parseFloat(s.current.style.top),w=s.current.offsetWidth,v=s.current.offsetHeight,C=r.current.width,D=r.current.height,T=e.current.scrollWidth,A=e.current.scrollHeight;let $=w,M=v,I=L,H=W;switch(a.current){case"lt":{$=$-_,M=M-S,H=H+S,I=I+_,$<C&&($=w,I=L),M<D&&(M=v,H=W),I<0&&(I=0,$=w),H<0&&(H=0,M=v);break}case"rt":{$=$+_,M=M-S,H=H+S,I=L,$<C&&($=w),M<D&&(M=v,H=W),$>T-I&&($=T-I),H<0&&(H=0,M=v);break}case"rb":{$=$+_,M=M+S,H=W,I=L,$<C&&($=w),M<D&&(M=v),$>T-I&&($=T-I),M>A-H&&(M=A-H);break}case"lb":{$=$-_,M=M+S,H=W,I=I+_,$<C&&($=w,I=L),M<D&&(M=v),I<0&&(I=0,$=w),M>A-H&&(M=A-H);break}}s.current.style.left=`${I}px`,s.current.style.top=`${H}px`,s.current.style.width=`${$}px`,s.current.style.height=`${M}px`,g.current=F,h.current=E}},x=()=>{if(l.current){l.current=!1,f(!1),s.current.style.display="none";const{left:B,top:F,width:E,height:_}=s.current.style,S=parseFloat(B)+.5*parseFloat(E),L=parseFloat(F)+.5*parseFloat(_),W=parseFloat(E),w=parseFloat(_);o({left:S,top:L}),n({width:W,height:w})}},j=B=>y(B,"lt"),z=B=>y(B,"rt"),R=B=>y(B,"rb"),k=B=>y(B,"lb"),V=d.useCallback(B=>{p(B)},[]),q=d.useCallback(()=>{x()},[]),X=d.useCallback(()=>{x()},[]);return d.useEffect(()=>(document.body.addEventListener("mousemove",V),document.body.addEventListener("mouseup",q),document.body.addEventListener("mouseleave",X),()=>{document.body.removeEventListener("mousemove",V),document.body.removeEventListener("mouseup",q),document.body.removeEventListener("mouseleave",X)}),[]),{resizingState:u,DashedBox:i,onMousedownResizeLt:j,onMousedownResizeRt:z,onMousedownResizeRb:R,onMousedownResizeLb:k}},$a=({container:e,dialogProps:t,baseDialogProps:r})=>{const[n,o]=d.useState(0),i=()=>{o(F=>F+1)};d.useEffect(()=>{const F=new ResizeObserver(i);return F.observe(e),()=>{F.unobserve(e),F.disconnect()}},[e]);const{containerSizeTarget:s,setContainerSizeTarget:a}=Ea({container:e}),{width:l,height:u}=r,{width:f,height:g}=t,h=f||l,y=g||u,{clientWidth:p,clientHeight:x}=s.current,j=h?h>p?p:h:0,z=y?y>x?x:y:"unset",R=d.useRef(j),k=d.useRef(z),V=F=>{R.current=F.width,k.current=F.height},q=d.useRef(Math.floor(p/2)),X=d.useRef(Math.floor(x/2)),B=F=>{q.current=F.left,X.current=F.top};return d.useEffect(()=>{n!==0&&(console.log("触发了内部parentResizeRecord"),a(),V({width:j,height:z}),B({left:Math.floor(p/2),top:Math.floor(x/2)}))},[n]),{containerSizeTarget:s,parentResizeRecord:n,initLeft:q,initTop:X,initWidth:R,initHeight:k,curPropsWidth:j,curPropsHeight:z,setInitPosition:B,setInitSize:V}},Da=(e,t,r,n)=>{const o=d.useRef(null);return d.useEffect(()=>{if(e){const i=t.current.offsetWidth,s=t.current.offsetHeight;o.current={width:i,height:s}}else o.current=null},[r,n,e]),{minResizeRecord:o}},Ea=({container:e})=>{const t=e===document.body,r=d.useRef({clientWidth:t?window.innerWidth:e.clientWidth,clientHeight:t?window.innerHeight:e.clientHeight,scrollWidth:t?window.innerWidth:e.scrollWidth,scrollHeight:t?window.innerHeight:e.scrollHeight});return{containerSizeTarget:r,setContainerSizeTarget:()=>{r.current={clientWidth:t?window.innerWidth:e.clientWidth,clientHeight:t?window.innerHeight:e.clientHeight,scrollWidth:t?window.innerWidth:e.scrollWidth,scrollHeight:t?window.innerHeight:e.scrollHeight}}}},jt={"minimize-windows":"_minimize-windows_12u3y_1","minimize-windows-title":"_minimize-windows-title_12u3y_43","minimize-windows-operate":"_minimize-windows-operate_12u3y_55"},ja=({onClick:e})=>m.jsx(O.Button,{type:"link",onClick:e,icon:m.jsx(ve.ShrinkOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Ur=({onClick:e})=>m.jsx(O.Button,{type:"link",onClick:e,icon:m.jsx(ve.FullscreenOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Fa=({onClick:e})=>m.jsx(O.Button,{type:"link",onClick:e,icon:m.jsx(ve.FullscreenExitOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Vr=({onClick:e,disabled:t})=>m.jsx(O.Button,{type:"link",onClick:e,disabled:t,icon:m.jsx(ve.CloseOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),{useToken:Oa}=O.theme,Ma=d.forwardRef(({title:e,left:t,top:r,visible:n,loading:o,onMaximize:i,onClosesquare:s,className:a},l)=>{const{token:u}=Oa(),f={borderRadius:u.borderRadiusLG};return m.jsxs("div",{style:{display:n?"flex":"none",left:t,top:r,...f},className:`${jt["minimize-windows"]} ${a}`,ref:l,children:[m.jsx("div",{className:jt["minimize-windows-title"],title:e,children:e}),m.jsxs("div",{className:jt["minimize-windows-operate"],children:[m.jsx(Ur,{onClick:i}),m.jsx(Vr,{onClick:s,disabled:o})]})]})}),le={"xph-dialog-mask":"_xph-dialog-mask_128q2_1","xph-dialog-wrapper":"_xph-dialog-wrapper_128q2_23",dialog__header:"_dialog__header_128q2_45","dialog__header-btns":"_dialog__header-btns_128q2_63",dialog__main:"_dialog__main_128q2_71",dialog__footer:"_dialog__footer_128q2_85",dialog__resize:"_dialog__resize_128q2_99","dialog__resize-lt":"_dialog__resize-lt_128q2_113","dialog__resize-rt":"_dialog__resize-rt_128q2_125","dialog__resize-rb":"_dialog__resize-rb_128q2_137","dialog__resize-lb":"_dialog__resize-lb_128q2_149"},{useToken:Aa}=O.theme,Ra=d.forwardRef((e,t)=>{console.log("render Dialog==============================================");const{token:r}=Aa(),n={borderRadius:r.borderRadiusLG},{children:o,baseDialogProps:i,mask:s,title:a,renderFooter:l,renderTitle:u,getPopperContainer:f}=e,g=f(),[h,y]=Wr(!1),[p,x]=d.useState(!1),{open:j,close:z}=ba(e,y,x),{footerActions:R}=ha(e,p),k=d.useRef(null),V=d.useRef(null),q=d.useRef(null),X=d.useRef(null),{containerSizeTarget:B,parentResizeRecord:F,initLeft:E,initTop:_,initWidth:S,initHeight:L,curPropsWidth:W,curPropsHeight:w}=$a({container:g,dialogProps:e,baseDialogProps:i}),{dialogChangeRecord:v,setDialogChangeRecord:C}=Ta(),{dialogWidth:D,dialogHeight:T,setDialogSize:A}=va({initWidth:S,initHeight:L,setDialogChangeRecord:C}),{dialogLeft:$,dialogTop:M,setDialogPosition:I}=ya({initTop:_,initLeft:E,setDialogChangeRecord:C}),{dialogMaxHeight:H,contentMaxHeight:re}=wa({visible:h,containerSizeTarget:B,dialogHeight:T,dialogRef:k,dialogHeaderRef:V,dialogFooterRef:X}),{minResizeRecord:se}=Da(h,k,D,T),{minimizeLeft:pe,minimizeTop:fe,minimizeRef:ie,setMinimizePosition:ce}=Ca(),{minimizeVisible:ee,maximizeVisible:he,onMaximize:be,onMinimize:Ee,onRecovery:At,onClose:je}=_a({containerSizeTarget:B,dialogChangeRecord:v,close:z,setDialogSize:A,setDialogPosition:I}),Ae=()=>{console.log("触发了initDialog"),A({width:S.current,height:L.current}),I({left:E.current,top:_.current}),ce({left:160,top:60})};d.useEffect(()=>{F!==0&&(console.log("触发了外部parentResizeRecord"),Ae())},[F]),Sa({initWidth:S,initHeight:L,initLeft:E,initTop:_,curPropsWidth:W,curPropsHeight:w,setDialogSize:A,setDialogPosition:I}),Br({containerSizeTarget:B,dialogHeaderRef:V,dialogRef:k,setDialogPosition:I}),Br({containerSizeTarget:B,dialogHeaderRef:ie,dialogRef:ie,setDialogPosition:ce});const{dialogTopShowClassConfig:Re}=xa({visible:h,container:g,dialogRef:k,minimizeRef:ie}),{resizingState:ke,DashedBox:kt,onMousedownResizeLt:It,onMousedownResizeRt:qe,onMousedownResizeRb:zt,onMousedownResizeLb:Lt}=Pa({containerSizeTarget:B,dialogRef:k,minResizeRecord:se,setDialogSize:A,setDialogPosition:I});return d.useImperativeHandle(t,()=>({open:j,close:je,setLoading:x})),m.jsxs("div",{className:Re.xphDialog,children:[s&&h?m.jsx("div",{className:le["xph-dialog-mask"]}):null,m.jsx(Ma,{visible:ee,className:`${Re.xphMinimizeDialog}`,loading:p,ref:ie,left:pe,top:fe,title:a,onMaximize:()=>be("minimize"),onClosesquare:je}),m.jsxs("div",{ref:k,className:`${le["xph-dialog-wrapper"]} ${Re.xphDialogWrapper}`,style:{display:h&&!ee?"flex":"none",left:$,top:M,width:D,height:T,maxHeight:H,opacity:ke?.2:"unset",...n},children:[m.jsxs("div",{ref:V,className:le.dialog__header,children:[m.jsx("div",{children:u?u():a}),m.jsxs("div",{className:le["dialog__header-btns"],children:[m.jsx(ja,{onClick:Ee}),he?m.jsx(Fa,{onClick:At}):m.jsx(Ur,{onClick:()=>be("maximize")}),m.jsx(Vr,{onClick:je,disabled:p})]})]}),m.jsx("div",{ref:q,className:le.dialog__main,style:{maxHeight:re},children:m.jsx(O.Spin,{spinning:p,children:h?o:null})}),l?m.jsx("div",{ref:X,children:l({loading:p})}):m.jsx("div",{ref:X,className:le.dialog__footer,children:m.jsx(st,{...R})}),m.jsx("div",{className:`${le.dialog__resize} ${le["dialog__resize-lt"]}`,onMouseDown:It}),m.jsx("div",{className:`${le.dialog__resize} ${le["dialog__resize-rt"]}`,onMouseDown:qe}),m.jsx("div",{className:`${le.dialog__resize} ${le["dialog__resize-rb"]}`,onMouseDown:zt}),m.jsx("div",{className:`${le.dialog__resize} ${le["dialog__resize-lb"]}`,onMouseDown:Lt})]}),m.jsx(kt,{})]})}),ka=(e,t)=>{const{children:r,...n}=e,{baseDialogProps:o,dialogProps:i}=ga(n),{getPopperContainer:s}=i;return console.log("render XphDialog=============================================="),m.jsx(qr,{getPopperContainer:s,children:m.jsx(Ra,{...i,baseDialogProps:o,ref:t,children:r})})},Yr=d.forwardRef(ka),qr=({children:e,getPopperContainer:t})=>{const[r,n]=d.useState(null);return d.useEffect(()=>{const o=t();n(o)},[]),r?hn.createPortal(e,r):null};function Ft(e){return"component"in e}function Ot(e){return"render"in e}function Ia(e){return e.includes("Input")||e.includes("Complete")?"请输入":e.includes("Picker")||e.includes("Select")||e.includes("Cascader")||e.includes("Checkbox")||e.includes("Radio")||e.includes("Switch")?"请选择":""}function za(e,t,r){["DatePicker","MonthPicker","WeekPicker","TimePicker"].includes(t)?e.type=r?"string":"object":["RangePicker","Upload","CheckboxGroup","TimePicker"].includes(t)?e.type="array":["InputNumber"].includes(t)&&(e.type="number")}const La=["DatePicker","MonthPicker","RangePicker","WeekPicker","TimePicker"],Na=e=>{const{show:t,ifShow:r,required:n,disabled:o,componentProps:i}=e;return!!(oe(t)||oe(r)||oe(n)||oe(o)||oe(i)||Ot(e))},Wa=e=>["application/json","application/javascript","text/plain","text/html","text/css"].includes(e)?`${e}; charset=utf-8`:e,Ha=(e,t,r)=>{const n=d.useRef(null),o=d.useRef(null),{handleCollapseChangeFalse:i}=r.current||{},{show:s,ifShow:a}=e;let l=!0,u=!0;if(Et(s)&&(l=s),Et(a)&&(u=a),oe(s)){l=s({model:t});const f=kr(n.current)?l:n.current;d.useEffect(()=>{nt(l,f)||i&&i()},[t])}if(oe(a)){u=a({model:t});const f=kr(o.current)?u:o.current;d.useEffect(()=>{nt(u,f)||i&&i()},[t])}return n.current=l,o.current=u,{isShow:l,isIfShow:u}},Ba=(e,t)=>{const{collapsible:r,collapseNum:n}=e,[o,i]=d.useState(!!(r&&t>=n));return{itemCollapse:o,setItemCollapse:i}},Ua=({item:e,model:t,isShow:r,componentProps:n})=>{const{rules:o=[],label:i,required:s}=e;let a=o;const l=Ft(e),u=l?Ia(e.component)+i:"";function f(p,x){const j=p.message||u;return x===void 0||oa(x)||Array.isArray(x)&&x.length===0||typeof x=="string"&&x.trim()===""||typeof x=="object"&&Reflect.has(x,"checked")&&Reflect.has(x,"halfChecked")&&Array.isArray(x.checked)&&Array.isArray(x.halfChecked)&&x.checked.length===0&&x.halfChecked.length===0?Promise.reject(j):Promise.resolve()}const g=oe(s)?s({model:t}):s;g&&(!a||a.length===0?a=[{required:g,validator:f}]:a.findIndex(x=>Reflect.has(x,"required"))===-1&&a.push({required:g,validator:f}));const h=a.findIndex(p=>Reflect.has(p,"required")&&!Reflect.has(p,"validator"));if(h!==-1){const p=a[h];if(r||(p.required=!1),l){const{component:x}=e;Reflect.has(p,"type")||(p.type=x==="InputNumber"?"number":"string"),p.message=p.message||u,(x.includes("Input")||x.includes("Textarea"))&&(p.whitespace=!0);const j=n.valueFormat;za(p,x,j)}}const y=a.findIndex(p=>p.max);return y!==-1&&!a[y].validator&&(a[y].message=a[y].message||`字符数应小于${a[y].max}位`),{rules:a}},Va=(e,t,r)=>{const{disabled:n}=e;let o=!1;const{disabled:i}=t;return oe(i)&&(o=i({model:r})),Et(i)&&(o=i),{disabled:Reflect.has(t,"disabled")?o:n}},Ya=(e,t)=>{const r={},{componentProps:n={}}=e;return oe(n)&&Object.assign(r,n({model:t})),Object.assign(r,n),{componentProps:r}},qa=(e,t)=>{const{colProps:r={}}=e,{colProps:n={span:24}}=t;return{colProps:{...n,...r}}},Ga=({formProps:e})=>{const{items:t}=e;return{formItems:t.map(n=>({...n}))}},Xa=(e,t)=>{const r=a=>(Object.keys(a).forEach(l=>{Object.defineProperty(a,l,{value:a[l],writable:!1,enumerable:!0,configurable:!1})}),a),n={};e.items.forEach(a=>{n[a.name]=a.initialValue});const o=Na(t),i=o?O.Form.useWatch(a=>r(a)):null;return{rewritingModel:d.useMemo(()=>i||r(n),[i]),isusewatch:o}},Ka=()=>{const e=d.useRef(null);function t(n){e.current=n}const r={getFieldsValue:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.getFieldsValue(...n)},setFieldsValue:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.setFieldsValue(...n)},resetFields:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.resetFields(...n)},validator:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.validator(...n)},scrollToField:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.scrollToField(...n)}};return d.useEffect(()=>(console.log("ParentComponent is mounted====================================="),()=>{console.log("ParentComponent is unmounted===================================="),e.current=null}),[]),[t,r]};var Gr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(gn,function(){var r=1e3,n=6e4,o=36e5,i="millisecond",s="second",a="minute",l="hour",u="day",f="week",g="month",h="quarter",y="year",p="date",x="Invalid Date",j=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,z=/\[([^\]]+)]|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,R={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(w){var v=["th","st","nd","rd"],C=w%100;return"["+w+(v[(C-20)%10]||v[C]||v[0])+"]"}},k=function(w,v,C){var D=String(w);return!D||D.length>=v?w:""+Array(v+1-D.length).join(C)+w},V={s:k,z:function(w){var v=-w.utcOffset(),C=Math.abs(v),D=Math.floor(C/60),T=C%60;return(v<=0?"+":"-")+k(D,2,"0")+":"+k(T,2,"0")},m:function w(v,C){if(v.date()<C.date())return-w(C,v);var D=12*(C.year()-v.year())+(C.month()-v.month()),T=v.clone().add(D,g),A=C-T<0,$=v.clone().add(D+(A?-1:1),g);return+(-(D+(C-T)/(A?T-$:$-T))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:g,y,w:f,d:u,D:p,h:l,m:a,s,ms:i,Q:h}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},q="en",X={};X[q]=R;var B="$isDayjsObject",F=function(w){return w instanceof L||!(!w||!w[B])},E=function w(v,C,D){var T;if(!v)return q;if(typeof v=="string"){var A=v.toLowerCase();X[A]&&(T=A),C&&(X[A]=C,T=A);var $=v.split("-");if(!T&&$.length>1)return w($[0])}else{var M=v.name;X[M]=v,T=M}return!D&&T&&(q=T),T||!D&&q},_=function(w,v){if(F(w))return w.clone();var C=typeof v=="object"?v:{};return C.date=w,C.args=arguments,new L(C)},S=V;S.l=E,S.i=F,S.w=function(w,v){return _(w,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var L=function(){function w(C){this.$L=E(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[B]=!0}var v=w.prototype;return v.parse=function(C){this.$d=function(D){var T=D.date,A=D.utc;if(T===null)return new Date(NaN);if(S.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var $=T.match(j);if($){var M=$[2]-1||0,I=($[7]||"0").substring(0,3);return A?new Date(Date.UTC($[1],M,$[3]||1,$[4]||0,$[5]||0,$[6]||0,I)):new Date($[1],M,$[3]||1,$[4]||0,$[5]||0,$[6]||0,I)}}return new Date(T)}(C),this.init()},v.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return this.$d.toString()!==x},v.isSame=function(C,D){var T=_(C);return this.startOf(D)<=T&&T<=this.endOf(D)},v.isAfter=function(C,D){return _(C)<this.startOf(D)},v.isBefore=function(C,D){return this.endOf(D)<_(C)},v.$g=function(C,D,T){return S.u(C)?this[D]:this.set(T,C)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(C,D){var T=this,A=!!S.u(D)||D,$=S.p(C),M=function(ce,ee){var he=S.w(T.$u?Date.UTC(T.$y,ee,ce):new Date(T.$y,ee,ce),T);return A?he:he.endOf(u)},I=function(ce,ee){return S.w(T.toDate()[ce].apply(T.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(ee)),T)},H=this.$W,re=this.$M,se=this.$D,pe="set"+(this.$u?"UTC":"");switch($){case y:return A?M(1,0):M(31,11);case g:return A?M(1,re):M(0,re+1);case f:var fe=this.$locale().weekStart||0,ie=(H<fe?H+7:H)-fe;return M(A?se-ie:se+(6-ie),re);case u:case p:return I(pe+"Hours",0);case l:return I(pe+"Minutes",1);case a:return I(pe+"Seconds",2);case s:return I(pe+"Milliseconds",3);default:return this.clone()}},v.endOf=function(C){return this.startOf(C,!1)},v.$set=function(C,D){var T,A=S.p(C),$="set"+(this.$u?"UTC":""),M=(T={},T[u]=$+"Date",T[p]=$+"Date",T[g]=$+"Month",T[y]=$+"FullYear",T[l]=$+"Hours",T[a]=$+"Minutes",T[s]=$+"Seconds",T[i]=$+"Milliseconds",T)[A],I=A===u?this.$D+(D-this.$W):D;if(A===g||A===y){var H=this.clone().set(p,1);H.$d[M](I),H.init(),this.$d=H.set(p,Math.min(this.$D,H.daysInMonth())).$d}else M&&this.$d[M](I);return this.init(),this},v.set=function(C,D){return this.clone().$set(C,D)},v.get=function(C){return this[S.p(C)]()},v.add=function(C,D){var T,A=this;C=Number(C);var $=S.p(D),M=function(re){var se=_(A);return S.w(se.date(se.date()+Math.round(re*C)),A)};if($===g)return this.set(g,this.$M+C);if($===y)return this.set(y,this.$y+C);if($===u)return M(1);if($===f)return M(7);var I=(T={},T[a]=n,T[l]=o,T[s]=r,T)[$]||1,H=this.$d.getTime()+C*I;return S.w(H,this)},v.subtract=function(C,D){return this.add(-1*C,D)},v.format=function(C){var D=this,T=this.$locale();if(!this.isValid())return T.invalidDate||x;var A=C||"YYYY-MM-DDTHH:mm:ssZ",$=S.z(this),M=this.$H,I=this.$m,H=this.$M,re=T.weekdays,se=T.months,pe=T.meridiem,fe=function(ee,he,be,Ee){return ee&&(ee[he]||ee(D,A))||be[he].slice(0,Ee)},ie=function(ee){return S.s(M%12||12,ee,"0")},ce=pe||function(ee,he,be){var Ee=ee<12?"AM":"PM";return be?Ee.toLowerCase():Ee};return A.replace(z,function(ee,he){return he||function(be){switch(be){case"YY":return String(D.$y).slice(-2);case"YYYY":return S.s(D.$y,4,"0");case"M":return H+1;case"MM":return S.s(H+1,2,"0");case"MMM":return fe(T.monthsShort,H,se,3);case"MMMM":return fe(se,H);case"D":return D.$D;case"DD":return S.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return fe(T.weekdaysMin,D.$W,re,2);case"ddd":return fe(T.weekdaysShort,D.$W,re,3);case"dddd":return re[D.$W];case"H":return String(M);case"HH":return S.s(M,2,"0");case"h":return ie(1);case"hh":return ie(2);case"a":return ce(M,I,!0);case"A":return ce(M,I,!1);case"m":return String(I);case"mm":return S.s(I,2,"0");case"s":return String(D.$s);case"ss":return S.s(D.$s,2,"0");case"SSS":return S.s(D.$ms,3,"0");case"Z":return $}return null}(ee)||$.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(C,D,T){var A,$=this,M=S.p(D),I=_(C),H=(I.utcOffset()-this.utcOffset())*n,re=this-I,se=function(){return S.m($,I)};switch(M){case y:A=se()/12;break;case g:A=se();break;case h:A=se()/3;break;case f:A=(re-H)/6048e5;break;case u:A=(re-H)/864e5;break;case l:A=re/o;break;case a:A=re/n;break;case s:A=re/r;break;default:A=re}return T?A:S.a(A)},v.daysInMonth=function(){return this.endOf(g).$D},v.$locale=function(){return X[this.$L]},v.locale=function(C,D){if(!C)return this.$L;var T=this.clone(),A=E(C,D,!0);return A&&(T.$L=A),T},v.clone=function(){return S.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},w}(),W=L.prototype;return _.prototype=W,[["$ms",i],["$s",s],["$m",a],["$H",l],["$W",u],["$M",g],["$y",y],["$D",p]].forEach(function(w){W[w[1]]=function(v){return this.$g(v,w[0],w[1])}}),_.extend=function(w,v){return w.$i||(w(v,L,_),w.$i=!0),_},_.locale=E,_.isDayjs=F,_.unix=function(w){return _(1e3*w)},_.en=X[q],_.Ls=X,_.p={},_})})(Gr);var Ja=Gr.exports;const it=mn(Ja);function Za(e,t={}){const r=/^\[(.+)\]$/;if(r.test(e)){const n=e.match(r);if(n&&n[1]){const o=n[1].split(",");if(!o.length)return;const i=[];return o.forEach((s,a)=>{Ir(i,a,t[s.trim()])}),i.filter(Boolean).length?i:void 0}}}function Qa(e,t={}){const r=/^\{(.+)\}$/;if(r.test(e)){const n=e.match(r);if(n&&n[1]){const o=n[1].split(",");if(!o.length)return;const i={};return o.forEach(s=>{Ir(i,s.trim(),t[s.trim()])}),Object.values(i).filter(Boolean).length?i:void 0}}}function el(e,t){const r=t.fieldMapToTime;if(!r||!Array.isArray(r))return e;for(const[n,[o,i],s="YYYY-MM-DD"]of r){if(!n||!o||!i)continue;if(!e[n]){Reflect.deleteProperty(e,n);continue}const[a,l]=e[n],[u,f]=Array.isArray(s)?s:[s,s];e[o]=it(a).format(u),e[i]=it(l).format(f),Reflect.deleteProperty(e,n)}return e}const tl=(e,t,r)=>{const n=e.filter(s=>s.name);return{handleFormatRenderValues:s=>{const a={},l=[];return n.forEach(u=>{const f=Reflect.has(s,u.name),g=Za(u.name,s)||Qa(u.name,s);if(f||g){const h=g||s[u.name];if(Ft(u))if(La.includes(u.component)){if(ue(h)){const y=[];for(const p of h)y.push(p?it(p):null);a[u.name]=y}else a[u.name]=h?it(h):null;l.push(u.name)}else a[u.name]=h,l.push(u.name);Ot(u)&&(a[u.name]=h,l.push(u.name))}}),{renderValues:a,validKeys:l}},handleFormatReturnValues:s=>{var l,u,f,g,h;if(!de(s))return{};const a={};for(const y of Object.entries(s)){let[,p]=y;const[x]=y;if(!x||ue(p)&&p.length===0||oe(p))continue;const{transformDateFunc:j}=t,z=(f=(u=(l=r.current)==null?void 0:l.get(x))==null?void 0:u.current)==null?void 0:f.componentProps,R=z==null?void 0:z.valueFormat;if(de(p)){const k=p;k.format&&(p=j==null?void 0:j(k,R))}ue(p)&&((g=p[0])!=null&&g.format)&&((h=p[1])!=null&&h.format)&&(p=p.map(k=>j==null?void 0:j(k,R))),Rr(p)&&(p===""?p=void 0:p=p.trim()),a[x]=p}return el(a,t)}}},rl=(e,t,r)=>({getFieldsValue:(...l)=>r(e.getFieldsValue(...l)),setFieldsValue:l=>{const{renderValues:u,validKeys:f}=t(l);e.setFieldsValue(u),e.validateFields(f)},resetFields:async()=>e.resetFields(),validator:async l=>e.validateFields(l).then(u=>r(u)),scrollToField:async(l,u)=>e.scrollToField(l,u)}),nl=e=>{const{extendFormProps:t}=Xr();return{formProps:{...De(De({collapseNum:5,colon:!1,items:[],labelWrap:!0,transformDateFunc:(o,i)=>{var s;return((s=o==null?void 0:o.format)==null?void 0:s.call(o,i||"YYYY-MM-DD HH:mm:ss"))??o},fieldMapToTime:[]},t),e)}}},at=e=>{const{immediate:t=!0,params:r,api:n,apiCallback:o,isUseWatch:i}=e,s=d.useRef(!0),a=d.useRef(r),l=()=>{n&&oe(n)&&(r?n(r).then(o):n().then(o),a.current=r)};return d.useEffect(()=>{s.current&&(t&&l(),s.current=!1),!s.current&&i&&(nt(r,a.current)||t&&l())},[r]),{getApiData:l}},ol=(e,t)=>{const{collapsible:r,collapseNum:n}=e,o=d.useRef();return{collapsible:r,collapseNum:n,collapseRef:o,onClickCollapseToTrue:()=>{var a;(a=t.current)==null||a.forEach(l=>{if(l.current){const{itemIndex:u}=l.current;u>=n&&r&&l.current.setItemCollapse(!0)}})},onClickCollapseToFalse:()=>{var a;(a=t.current)==null||a.forEach(l=>{if(l.current){const{itemCollapse:u}=l.current;u&&l.current.setItemCollapse(!1)}})}}},Xr=()=>{const{extendProps:e,extendComp:t}=Ye(),r=n=>{const o=t==null?void 0:t.form;o&&Object.keys(o).forEach(i=>{n.set(i,o[i])})};return{extendFormProps:e==null?void 0:e.form,setExtendFormComp:r}},sl=e=>{console.log("render ApiSelect");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:i}=e,s=o==="true",[a,l]=d.useState([]),{getApiData:u}=at({api:t,immediate:n,params:r,apiCallback:l,isUseWatch:s}),f=h=>{h&&!n&&u(),i&&i(h)},g=()=>{const{api:h,params:y,immediate:p,isusewatch:x,...j}=e;return j};return m.jsx(O.Select,{...g(),options:a,onDropdownVisibleChange:f})},il=e=>{console.log("render ApiTreeSelect");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:i}=e,s=o==="true",[a,l]=d.useState([]),{getApiData:u}=at({api:t,immediate:n,params:r,apiCallback:l,isUseWatch:s}),f=h=>{h&&!n&&u(),i&&i(h)},g=()=>{const{api:h,params:y,immediate:p,isusewatch:x,...j}=e;return j};return m.jsx(O.TreeSelect,{...g(),treeData:a,onDropdownVisibleChange:f})},al=e=>{console.log("render ApiTransfer");const{api:t,params:r,isusewatch:n}=e,o=n==="true",[i,s]=d.useState([]);at({api:t,params:r,apiCallback:s,isUseWatch:o});const a=()=>{const{api:l,params:u,isusewatch:f,...g}=e;return g};return m.jsx(O.Transfer,{...a(),dataSource:i})},ll=e=>{console.log("render ApiAutoComplete");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:i}=e,s=o==="true",[a,l]=d.useState([]),{getApiData:u}=at({api:t,immediate:n,params:r,apiCallback:l,isUseWatch:s}),f=h=>{h&&!n&&u(),i&&i(h)},g=()=>{const{api:h,params:y,immediate:p,isusewatch:x,...j}=e;return j};return m.jsx(O.AutoComplete,{...g(),options:a,onDropdownVisibleChange:f})},Se={String:"String","String[]":"String[]","File[]":"File[]",FileList:"FileList"},cl=e=>{console.log("render AutoUpload"),console.log(ut());const t="",{api:r,maxCount:n=1,maxSize:o=2,listType:i="picture-card",openCrop:s=!1,data:a,returnType:l=Se.String,value:u=t,onChange:f}=e,g=d.useRef(!0),h=d.useRef(0),y=d.useRef([]),[p,x]=d.useState([]),j=F=>{y.current=F,x([...F])},z=()=>{const{api:F,maxCount:E,maxSize:_,openCrop:S,beforeUpload:L,fileList:W,returnType:w,...v}=e;return v},R=F=>{const E=F.size/1024/1024<o;E||O.message.error(`文件大小超过:${o}M, 请重试`);const _=y.current.length+h.current<n;return _||O.message.error(`文件数量不能超过${n}个`),E&&_&&h.current++,E&&_&&k(F),O.Upload.LIST_IGNORE},k=F=>{s?(O.message.error("暂时不支持裁剪功能,后续兼容。。。。"),V({file:F})):V({file:F})},V=F=>{r?r({file:F.file,...a}).then(E=>{j([...y.current,...E])}).finally(()=>{h.current--}):(Object.assign(F.file,{status:"done",url:URL.createObjectURL(new Blob([F.file],{type:Wa(F.file.type)}))}),j([...y.current,F.file]),h.current--)},q=F=>{const{file:E,fileList:_}=F,{status:S}=E;switch(S){case"removed":{j([..._]);break}}},X=F=>{const E=S=>{const L=S.split("/"),W=L[L.length-1],[w]=W.split("?");return w};return{uid:(S=>{const L=y.current.find(W=>W.url===S);return L?L.uid:ut()})(F),name:E(F),url:F,status:"done"}},B=()=>{switch(l){case Se.String:return p.map(F=>F.url).join(",");case Se["String[]"]:return p.map(F=>F.url);case Se["File[]"]:return[...p];case Se.FileList:return[...p]}};return d.useEffect(()=>{const F=B();if(nt(F,u))return;let E=[];switch(l){case Se.String:{E=(u||"").split(",").filter(_=>_).map(_=>X(_));break}case Se["String[]"]:{E=(u||[]).map(_=>X(_));break}case Se["File[]"]:{E=(u||[]).map(_=>_);break}case Se.FileList:{E=(u||[]).map(_=>_);break}}j(E)},[u]),d.useEffect(()=>{if(g.current){g.current=!1;return}const F=B();f==null||f(F)},[p]),m.jsx(O.Upload,{listType:i,...z(),fileList:p,beforeUpload:R,onChange:q,children:"上传"})},J=new Map;J.set("Input",O.Input),J.set("ApiSelect",sl),J.set("Select",O.Select),J.set("InputNumber",O.InputNumber),J.set("ApiTreeSelect",il),J.set("TreeSelect",O.TreeSelect),J.set("ApiTransfer",al),J.set("Transfer",O.Transfer),J.set("Switch",O.Switch),J.set("Button",O.Button),J.set("Radio",O.Radio),J.set("RadioGroup",O.Radio.Group),J.set("Checkbox",O.Checkbox),J.set("CheckboxGroup",O.Checkbox.Group),J.set("Cascader",O.Cascader),J.set("TimePicker",O.TimePicker),J.set("DatePicker",O.DatePicker),J.set("MonthPicker",O.DatePicker.MonthPicker),J.set("WeekPicker",O.DatePicker.WeekPicker),J.set("RangePicker",O.DatePicker.RangePicker),J.set("InputPassword",O.Input.Password),J.set("InputTextArea",O.Input.TextArea),J.set("ApiAutoComplete",ll),J.set("AutoComplete",O.AutoComplete),J.set("Upload",O.Upload),J.set("AutoUpload",cl);const Kr={"form-item-force":"_form-item-force_1hsf3_1","form-item-hidden":"_form-item-hidden_1hsf3_9"},ul=d.forwardRef(({itemIndex:e,itemProps:t,methods:r,formProps:n,collapseRef:o},i)=>{console.log("render FormItem",t.name);const{rewritingModel:s,isusewatch:a}=Xa(n,t),{isIfShow:l,isShow:u}=Ha(t,s,o),{colProps:f}=qa(t,n),{componentProps:g}=Ya(t,s),{rules:h}=Ua({item:t,model:s,isShow:u,componentProps:g}),{disabled:y}=Va(n,t,s),{itemCollapse:p,setItemCollapse:x}=Ba(n,e),{name:j,label:z,wrapperCol:R,labelCol:k,valuePropName:V,initialValue:q,forceRow:X}=t;d.useImperativeHandle(i,()=>({itemIndex:e,componentProps:g,itemCollapse:p,setItemCollapse:x}));const B=()=>({name:j,label:z,rules:h,wrapperCol:R,labelCol:k,valuePropName:V,initialValue:q}),{setExtendFormComp:F}=Xr();F(J);const E=Ft(t),_=Ot(t),S=()=>{if(E){const L=J.get(t.component);return m.jsx(L,{...g,disabled:y,isusewatch:a.toString()})}return _?t.render({model:s,name:j,disabled:y,methods:r,componentProps:g}):null};return m.jsxs(d.Fragment,{children:[X?m.jsx("div",{className:Kr["form-item-force"]}):null,l?m.jsx(O.Col,{...f,className:u&&!p?void 0:Kr["form-item-hidden"],children:m.jsx(O.Form.Item,{...B(),children:S()})}):null]})}),fl={"collapse-wrapper":"_collapse-wrapper_ylm01_1"},dl=d.forwardRef(({collapsible:e,onClickExpand:t,onClickFold:r},n)=>{const[o,i]=d.useState(e),s=d.useMemo(()=>o,[o]),a=()=>{r(),i(!0)},l=()=>{t(),i(!1)};return d.useImperativeHandle(n,()=>({handleCollapseChangeFalse:l})),m.jsx("div",{className:fl["collapse-wrapper"],children:s?m.jsx(O.Button,{onClick:l,type:"link",icon:m.jsx(ve.DownOutlined,{}),children:"展开"}):m.jsx(O.Button,{onClick:a,type:"link",icon:m.jsx(ve.UpOutlined,{}),children:"折叠"})})}),pl={"group-wrapper":"_group-wrapper_g8zqi_1"},hl=({formProps:e})=>{const{renderActions:t}=e;return m.jsx("div",{className:pl["group-wrapper"],children:t==null?void 0:t()})},gl={"xph-form-action":"_xph-form-action_8ws73_1"},ml=(e,t)=>{console.log("render Form");const[r]=O.Form.useForm(),{formProps:n}=nl(e),{formItems:o}=Ga({formProps:n}),i=d.useRef(new Map),{collapsible:s,collapseNum:a,collapseRef:l,onClickCollapseToFalse:u,onClickCollapseToTrue:f}=ol(n,i),{handleFormatRenderValues:g,handleFormatReturnValues:h}=tl(o,n,i),{setFieldsValue:y,getFieldsValue:p,resetFields:x,validator:j,scrollToField:z}=rl(r,g,h),R=()=>{const{layout:V,wrapperCol:q,labelCol:X,colon:B,disabled:F,labelWrap:E,labelAlign:_,scrollToFirstError:S,size:L}=n;return{layout:V,wrapperCol:q,labelCol:X,colon:B,disabled:F,labelWrap:E,labelAlign:_,scrollToFirstError:S,size:L}},k={setFieldsValue:y,getFieldsValue:p,resetFields:x,validator:j,scrollToField:z};return d.useImperativeHandle(t,()=>({...k})),d.useEffect(()=>(console.log("Form is mounted======================="),n.register&&n.register(k),()=>{console.log("Form is unmounted========================="),i.current.clear()}),[]),m.jsxs(O.Form,{form:r,...R(),children:[m.jsx(O.Row,{children:o.map((V,q)=>(i.current.has(V.name)||i.current.set(V.name,d.createRef()),m.jsx(ul,{ref:i.current.get(V.name),itemIndex:q,itemProps:V,formProps:n,methods:k,collapseRef:l},q)))}),m.jsxs("div",{className:gl["xph-form-action"],children:[m.jsx(hl,{formProps:n}),s?m.jsx(dl,{ref:l,collapsible:o.length>a,onClickExpand:u,onClickFold:f}):null]})]})},Mt=d.forwardRef(ml),bl=d.memo(Mt),vl=d.forwardRef((e,t)=>{const{renderActions:r,showSearch:n,tableRef:o}=e,[i,s]=d.useState(!1),a=d.useRef(null),l=()=>{const{reloadData:h}=o.current;h()},u=()=>{const{resetData:h}=o.current;h()},f=d.useCallback(()=>m.jsxs("div",{style:{width:"100%",display:"flex"},children:[m.jsx("div",{style:{flex:1,width:0},children:r==null?void 0:r()}),n&&m.jsxs("div",{style:{display:"flex",gap:"8px"},children:[m.jsx(O.Button,{type:"primary",icon:m.jsx(ve.SearchOutlined,{}),onClick:l,children:"搜索"}),m.jsx(O.Button,{icon:m.jsx(ve.ReloadOutlined,{}),onClick:u,children:"重置"})]})]}),[n,r]),g=()=>{const{renderActions:h,...y}=e;return{...y,renderActions:f}};return d.useImperativeHandle(t,()=>({setFormLoading:s,...a.current})),m.jsx(O.Spin,{spinning:i,children:m.jsx(bl,{ref:a,...g()})})}),yl=d.memo(Mt),_l=(e,t)=>{const r=d.useRef(null),n=d.useRef(null),{formProps:o}=e,s=(()=>{const{formProps:f,...g}=e;return g})(),a=d.useRef(null),l=async()=>{const{onOk:f,renderFooter:g}=s;if(r.current.setLoading(!0),!g){const{ok:h,data:y}=a.current;if(h){n.current.validator().then(async p=>{await h({values:n.current.getFieldsValue()}).then(j=>j).finally(()=>{r.current.setLoading(!1)})!==!1&&(r.current.close(),a.current=null)});return}if(f){n.current.validator().then(async p=>{await f({values:p,data:y}).then(j=>j).finally(()=>{r.current.setLoading(!1)})!==!1&&(r.current.close(),a.current=null)});return}r.current.close(),a.current=null}},u=async()=>{const{onCancel:f,renderFooter:g}=s;if(!g){const{cancel:h,data:y}=a.current;if(h){if(await h({values:n.current.getFieldsValue(!0)})===!1)return;r.current.close(),a.current=null;return}if(f){if(await f({values:n.current.getFieldsValue(!0),data:y})===!1)return;r.current.close(),a.current=null;return}r.current.close(),a.current=null}};return d.useImperativeHandle(t,()=>({open:f=>{const{renderFooter:g}=s;return!g&&(a.current=f),r.current.open().then(()=>{n.current.setFieldsValue(f.data||{})})},close:(...f)=>r.current.close(...f),setLoading:(...f)=>r.current.setLoading(...f),getFieldsValue:(...f)=>n.current.getFieldsValue(...f),setFieldsValue:(...f)=>n.current.setFieldsValue(...f),resetFields:(...f)=>n.current.resetFields(...f),validator:(...f)=>n.current.validator(...f),scrollToField:(...f)=>n.current.scrollToField(...f)})),m.jsx(Yr,{...s,ref:r,onOk:l,onCancel:u,children:m.jsx(yl,{...o,ref:n})})},Jr=d.forwardRef(_l);function wl({searchForm:e}){return{searchFormRef:d.useRef(null),searchFormProps:e}}function Cl(e){return"cellFunc"in e}function xl(e){return"children"in e}const{useToken:Sl}=O.theme,Tl=(e,t,r)=>{const{curComponentProps:n,cellFuncProps:o}=t,{url:i,onClick:s}=n,{token:a}=Sl(),l={color:a.colorLink,cursor:"pointer"},u=()=>{if(r.mainClick&&r.mainClick(),s){s();return}if(i){window.open(i,"_blank");return}};return m.jsx(e,{...r,mainClick:u,mainStyle:Object.assign(l,(r==null?void 0:r.mainStyle)||{})})},Pl={"cellfunc-actions":"_cellfunc-actions_14drt_1"},$l=(e,t,r)=>{const{curComponentProps:n,cellFuncProps:o}=t;return m.jsx("div",{className:Pl["cellfunc-actions"],children:m.jsx(st,{...n})})},{useToken:Dl}=O.theme,El={0:{color:"orange",backgroundColor:"unset",border:"1px solid orange"},1:{color:"blue",backgroundColor:"unset",border:"1px solid blue"},2:{color:"green",backgroundColor:"unset",border:"1px solid green"},3:{color:"red",backgroundColor:"unset",border:"1px solid red"},4:{color:"purple",backgroundColor:"unset",border:"1px solid purple"},5:{color:"pink",backgroundColor:"unset",border:"1px solid pink"},6:{color:"cyan",backgroundColor:"unset",border:"1px solid cyan"},7:{color:"magenta",backgroundColor:"unset",border:"1px solid magenta"},8:{color:"yellow",backgroundColor:"unset",border:"1px solid yellow"},9:{color:"teal",backgroundColor:"unset",border:"1px solid teal"},10:{color:"brown",backgroundColor:"unset",border:"1px solid brown"},11:{color:"gray",backgroundColor:"unset",border:"1px solid gray"},12:{color:"olive",backgroundColor:"unset",border:"1px solid olive"},13:{color:"navy",backgroundColor:"unset",border:"1px solid navy"},14:{color:"lime",backgroundColor:"unset",border:"1px solid lime"},15:{color:"maroon",backgroundColor:"unset",border:"1px solid maroon"}},jl=(e,t,r)=>e.reduce((n,o,i)=>{var u;const s=`${t.dataIndex}${o.value}`,a=(u=o.config)==null?void 0:u.color,l=a?r[a]??{color:a,backgroundColor:"unset",border:`1px solid ${a}`}:El[i]||{};return n[s]={color:l.color,backgroundColor:l.backgroundColor,border:l.border},n},{}),Zr={link:{Comp:Tl},actions:{Comp:$l},tag:{Comp:(e,t,r)=>{const{curComponentProps:n,cellFuncProps:{renderPrams:{text:o,column:i}}}=t,{token:s}=Dl(),{enums:a}=n,l={primary:{color:s.colorPrimary,backgroundColor:s.colorPrimaryBg,border:`1px solid ${s.colorPrimary}`},success:{color:s.colorSuccess,backgroundColor:s.colorSuccessBg,border:`1px solid ${s.colorSuccess}`},warning:{color:s.colorWarning,backgroundColor:s.colorWarningBg,border:`1px solid ${s.colorWarning}`},info:{color:s.colorInfo,backgroundColor:s.colorInfoBg,border:`1px solid ${s.colorInfo}`},error:{color:s.colorError,backgroundColor:s.colorErrorBg,border:`1px solid ${s.colorError}`}},f=jl(a,i,l)[`${i.dataIndex}${o}`]||{},g={padding:"0 8px",borderRadius:s.borderRadiusLG,fontSize:s.fontSizeSM,...f},h=()=>{var p;return(p=a.find(x=>x.value===o))==null?void 0:p.label};return m.jsx(e,{...r,mainHandleText:h,mainStyle:Object.assign((r==null?void 0:r.mainStyle)||{},g)})}}},Fl=(e,t)=>{var o;const{renderPrams:{text:r}}=e,n=(o=t==null?void 0:t.mainHandleText)==null?void 0:o.call(t);return m.jsx("span",{onClick:t==null?void 0:t.mainClick,style:t==null?void 0:t.mainStyle,children:n??r})},Ol=e=>{const{setExtendTableCellComp:t}=en();t(Zr);const{dslConfig:r}=e;let n=Fl.bind(null,e),o=0;for(;o<r.length;){const i=o++,s=Zr[r[i].component];s&&(n=s.Comp.bind(null,n,{curComponentProps:r[i].componentProps||{},cellFuncProps:e}))}return m.jsx(n,{})};function Qr(e){return e.map(t=>{let r={...t};if(Cl(r)){const{cellFunc:n,...o}=r;r={...o,render:(...i)=>{const s=oe(n),[a,l,u]=i,f={text:a,record:l,index:u,column:JSON.parse(JSON.stringify(o))},g=s?n(f):n;return m.jsx(Ol,{dslConfig:g,renderPrams:f})}}}return xl(r)&&r.children&&Array.isArray(r.children)&&(r.children=Qr(r.children)),r})}function Ml(e){const{columns:t}=e.table,r=Qr(t);return console.log(r),{columns:r}}const Al=e=>{const{extendTableProps:t}=en();return{tableProps:{...De(De({table:{columns:[],fullHeight:!1,autoRequest:!0,pagination:{pageSize:20,total:0,showTotal:o=>`共:${o} 条`,current:1,pageSizeOptions:[10,20,50,100],showSizeChanger:!0,showQuickJumper:!0},requestFields:{pageSize:"pageSize",current:"current"},responseFields:{current:"current",list:"data",total:"total"}},crudFormDialog:void 0,searchForm:{showSearch:!0,items:[]}},t),e)}}};function Rl(e){const{pagination:t,autoPagination:r}=e.table,[n,o]=d.useState(t),i=d.useRef(t),s=d.useMemo(()=>n&&(r===!0||r===void 0)||!1,[n]);return{pagination:{model:n,update:l=>{if(!i.current)return;const u={...i.current,...l};o(u),i.current=u},show:s},lastPaginationState:i}}function kl(e,t){const{api:r,formatDataSource:n,autoPagination:o,onChange:i,requestFields:s,responseFields:a}=e.table,l=e.onPaginationChange,{pagination:u,lastPaginationState:f}=Rl(e),[g,h]=d.useState({loading:!1,dataSource:[],selection:[],backupsDataSource:[]}),y=d.useRef({loading:!1,dataSource:[],selection:[],backupsDataSource:[]}),p={model:g,update:E=>{var S;const _={...y.current,...E};h(_),y.current=_,(S=t.current)==null||S.setFormLoading(_.loading)}},x=async()=>{d.useEffect(()=>{const{autoRequest:E}=e.table,{validator:_}=t.current;E&&_().then(S=>{k({searchFormParams:S})})},[])},j=async({searchFormParams:E,paginationParams:_})=>{const S={...E,[`${s.current}`]:f.current.current,[`${s.pageSize}`]:f.current.pageSize,..._?{[`${s.current}`]:_.current,[`${s.pageSize}`]:_.pageSize}:{}};return r(S).then(L=>{const{current:W,list:w,total:v}=ft(a,L);p.update({dataSource:n?n(w):w}),u.update({total:v,current:W})}).finally(()=>{p.update({loading:!1})})},z=async({searchFormParams:E,paginationParams:_})=>{const S={...E};return r(S).then(L=>{const{list:W}=ft(a,L),w=n?n(W):W;p.update({selection:[],dataSource:w}),u.update({current:1,total:W.length})}).finally(()=>{p.update({loading:!1})})},R=async({searchFormParams:E,paginationParams:_})=>{var L;const S={...E};if(_){const{current:W,pageSize:w}=_;u.update({current:W,pageSize:w});const v=(W-1)*w,C=v+w,D=(L=y.current.backupsDataSource)==null?void 0:L.slice(v,C);return p.update({loading:!1,selection:[],dataSource:D})}else return r(S).then(W=>{let w=n?n(W):W;const v=[...w],C=0,D=C+f.current.pageSize;w=w.slice(C,D),p.update({selection:[],dataSource:w,backupsDataSource:v}),u.update({current:1,total:W.length})}).finally(()=>{p.update({loading:!1})})},k=async({searchFormParams:E,paginationParams:_})=>{if(p.update({loading:!0,selection:[]}),r)switch(!!f.current){case!0:return o===!0?R({searchFormParams:E,paginationParams:_}):o===!1?z({searchFormParams:E,paginationParams:_}):j({searchFormParams:E,paginationParams:_});case!1:return z({searchFormParams:E,paginationParams:_})}return p.update({loading:!1})};return{table:p,pagination:u,firstGetTableData:x,onPaginationChange:(E,_)=>{const{validator:S}=t.current;S().then(L=>{k({searchFormParams:L,paginationParams:{current:E,pageSize:_}})}),l&&l(E,_)},onAllChange:async(...E)=>{const[_,S,L,W]=E,w=[];for(let v=0;v<w.length&&!w[v]();v++);i&&i(S,L,W)},resetData:async()=>{const{resetFields:E,validator:_}=t.current;return E().then(async()=>{const S=await _();return k({searchFormParams:S})})},resetAllData:async()=>{const{resetFields:E,validator:_}=t.current;return E().then(async()=>{const S={};if(f.current){const{pageSize:L}=f.current;o===void 0&&(S.paginationParams={current:1,pageSize:L})}return S.searchFormParams=await _(),k(S)})},reloadData:async()=>{const{validator:E}=t.current;return E().then(_=>k({searchFormParams:_}))}}}const Il=(e,t)=>{const{onRowSelectionChange:r}=e,{rowSelection:n}=e.table,o=()=>{if(Rr(n))return{type:n,onChange:(i,s,a)=>{t.update({selection:s}),r&&r(i,s)}};if(de(n)){const{onChange:i}=n;return{...n,onChange:(s,a,l)=>{t.update({selection:a}),i&&i(s,a,l),r&&r(s,a)}}}return n};return{rowSelection:o(),getNewRowSelection:o}};function zl(e,t){const{scroll:r,virtual:n}=e.table,o=d.useRef(null),[i,s]=d.useState(0),[a,l]=d.useState(0);d.useEffect(()=>{const f=()=>{o.current&&(s(o.current.offsetWidth),l(o.current.offsetHeight))};f();const g=new ResizeObserver(f);return o.current&&g.observe(o.current),()=>{g&&o.current&&g.unobserve(o.current)}},[]);const u=d.useMemo(()=>t?n?{x:i,y:a-70,...r}:{x:"max-content",y:a-70,...r}:{x:"max-content",...r},[a]);return{divRef:o,scroll:u}}function Ll(e,t){const{toolbar:r}=e.table;return{getTopToolbarBindProps:()=>{if(oe(r)){const o=r({loading:t.model.loading,selection:t.model.selection});return{...o,disabled:t.model.loading||o.disabled}}return{...r,disabled:t.model.loading||(r==null?void 0:r.disabled)}}}}const en=()=>{const{extendProps:e,extendComp:t}=Ye(),r=n=>{const o=t==null?void 0:t.tableCellFunc;o&&Object.keys(o).forEach(i=>{const s=o[i];n[i]={Comp:s}})};return{extendTableProps:e==null?void 0:e.table,setExtendTableCellComp:r}},Nl=({crudFormDialog:e})=>({crudFormDialogRef:d.useRef(null),crudFormProps:e}),lt={"main-container":"_main-container_1yx5k_1",container__toolbar:"_container__toolbar_1yx5k_13",container__table:"_container__table_1yx5k_27",container__pagination:"_container__pagination_1yx5k_35"},Wl=d.forwardRef(({tableProps:e,searchFormRef:t,fullHeight:r},n)=>{const{columns:o}=Ml(e),i=d.useRef(null),{table:s,pagination:a,firstGetTableData:l,onPaginationChange:u,onAllChange:f,resetData:g,resetAllData:h,reloadData:y}=kl(e,t),{rowSelection:p}=Il(e,s),{divRef:x,scroll:j}=zl(e,r),{getTopToolbarBindProps:z}=Ll(e,s),R=()=>{const{autoRequest:k,api:V,formatDataSource:q,autoPagination:X,columns:B,scroll:F,pagination:E,rowSelection:_,onChange:S,...L}=e.table;return L};return l(),d.useImperativeHandle(n,()=>({resetData:g,resetAllData:h,reloadData:y,...i.current})),console.log("render Table"),m.jsxs("div",{className:r?lt["main-container"]:void 0,children:[m.jsx("div",{className:lt.container__toolbar,children:m.jsx(st,{...z()})}),m.jsx("div",{ref:x,className:r?lt.container__table:void 0,children:m.jsx(O.Table,{ref:i,...R(),loading:s.model.loading,columns:o,dataSource:s.model.dataSource,pagination:!1,rowSelection:p,scroll:j,onChange:f})}),a.show?m.jsx("div",{className:lt.container__pagination,children:m.jsx(O.Pagination,{disabled:s.model.loading,...a.model,onChange:u})}):null]})}),tn={"xph-table-full-wrapper":"_xph-table-full-wrapper_mdv0g_1","full-wrapper__table":"_full-wrapper__table_mdv0g_13"},Hl=(e,t)=>{const{tableProps:r}=Al(e),n=d.useRef(null),{searchFormRef:o,searchFormProps:i}=wl(r),{crudFormDialogRef:s,crudFormProps:a}=Nl(r);let{fullHeight:l}=r.table;const{virtual:u}=r.table;return u&&(l=!0),d.useImperativeHandle(t,()=>({...n.current,...s.current})),m.jsxs("div",{className:l?tn["xph-table-full-wrapper"]:void 0,children:[m.jsx("div",{children:m.jsx(vl,{ref:o,tableRef:n,...i})}),m.jsx("div",{className:l?tn["full-wrapper__table"]:void 0,children:m.jsx(Wl,{ref:n,searchFormRef:o,fullHeight:l,tableProps:r})}),a?m.jsx(Jr,{ref:s,...a}):null]})},Bl=d.forwardRef(Hl);Y.XphActions=st,Y.XphCrudFormDialog=Jr,Y.XphDialog=Yr,Y.XphExtendCompPropsProvider=fa,Y.XphForm=Mt,Y.XphPortal=qr,Y.XphTable=Bl,Y.buildUUID=ut,Y.getValueByPath=Ut,Y.getValuesByPathObj=ft,Y.useAsyncState=Wr,Y.useXphExtendCompProps=Ye,Y.useXphForm=Ka,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xph-crud",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/index.d.ts",