gz-ui-web 1.1.4 → 1.1.5-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { jsx as f, jsxs as Me } from "react/jsx-runtime";
1
+ import { jsx as C, jsxs as Me } from "react/jsx-runtime";
2
2
  import qu, { forwardRef as ue, createContext as Ut, useRef as ee, useContext as Zu, useMemo as Le, useCallback as he, useEffect as Be, useState as ze, useReducer as Wt, useImperativeHandle as qt, useLayoutEffect as Mu } from "react";
3
3
  import { Alert as ju, App as Xu, Button as Zt, Empty as Cu, Spin as Qu, theme as Ju, Tag as fu, Tooltip as jt, DatePicker as Pe, Form as we, ConfigProvider as Xt, Select as gu, Radio as pu } from "antd";
4
4
  import He from "big.js";
@@ -29,14 +29,14 @@ function lr() {
29
29
  return ku || (ku = 1, process.env.NODE_ENV !== "production" && (function() {
30
30
  var r = qu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
31
31
  au.c = function(e) {
32
- var t = r.H;
33
- return t === null && console.error(
32
+ var u = r.H;
33
+ return u === null && console.error(
34
34
  `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
35
35
  1. You might have mismatching versions of React and the renderer (such as React DOM)
36
36
  2. You might be breaking the Rules of Hooks
37
37
  3. You might have more than one copy of React in the same app
38
38
  See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
39
- ), t.useMemoCache(e);
39
+ ), u.useMemoCache(e);
40
40
  };
41
41
  })()), au;
42
42
  }
@@ -46,57 +46,57 @@ function sr() {
46
46
  }
47
47
  var z = sr();
48
48
  function tt(r) {
49
- var e, t, u = "";
50
- if (typeof r == "string" || typeof r == "number") u += r;
49
+ var e, u, t = "";
50
+ if (typeof r == "string" || typeof r == "number") t += r;
51
51
  else if (typeof r == "object") if (Array.isArray(r)) {
52
52
  var n = r.length;
53
- for (e = 0; e < n; e++) r[e] && (t = tt(r[e])) && (u && (u += " "), u += t);
54
- } else for (t in r) r[t] && (u && (u += " "), u += t);
55
- return u;
53
+ for (e = 0; e < n; e++) r[e] && (u = tt(r[e])) && (t && (t += " "), t += u);
54
+ } else for (u in r) r[u] && (t && (t += " "), t += u);
55
+ return t;
56
56
  }
57
57
  function vu() {
58
- for (var r, e, t = 0, u = "", n = arguments.length; t < n; t++) (r = arguments[t]) && (e = tt(r)) && (u && (u += " "), u += e);
59
- return u;
58
+ for (var r, e, u = 0, t = "", n = arguments.length; u < n; u++) (r = arguments[u]) && (e = tt(r)) && (t && (t += " "), t += e);
59
+ return t;
60
60
  }
61
61
  const rt = ue((r, e) => {
62
- const t = z.c(3);
63
- let u;
64
- return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(ju, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
62
+ const u = z.c(3);
63
+ let t;
64
+ return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ C(ju, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
65
65
  });
66
66
  rt.displayName = "GZAlert";
67
67
  const cr = ju.ErrorBoundary, nt = (r) => {
68
68
  const e = z.c(2);
69
- let t;
70
- return e[0] !== r ? (t = /* @__PURE__ */ f(cr, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
69
+ let u;
70
+ return e[0] !== r ? (u = /* @__PURE__ */ C(cr, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
71
71
  };
72
72
  nt.displayName = "GZAlertErrorBoundary";
73
73
  const Ge = rt;
74
74
  Ge.ErrorBoundary = nt;
75
75
  const ot = ue((r, e) => {
76
- const t = z.c(3);
77
- let u;
78
- return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Xu, { ...r, ref: e }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
76
+ const u = z.c(3);
77
+ let t;
78
+ return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ C(Xu, { ...r, ref: e }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
79
79
  });
80
80
  ot.displayName = "GZApp";
81
81
  const hu = ot;
82
82
  Object.assign(hu, Xu);
83
83
  const Ne = ue((r, e) => {
84
- const t = z.c(9);
85
- let u, n, a;
86
- t[0] !== r ? ({
87
- children: u,
84
+ const u = z.c(9);
85
+ let t, n, a;
86
+ u[0] !== r ? ({
87
+ children: t,
88
88
  type: a,
89
89
  ...n
90
- } = r, t[0] = r, t[1] = u, t[2] = n, t[3] = a) : (u = t[1], n = t[2], a = t[3]);
90
+ } = r, u[0] = r, u[1] = t, u[2] = n, u[3] = a) : (t = u[1], n = u[2], a = u[3]);
91
91
  const i = a === void 0 ? "default" : a;
92
- let s;
93
- return t[4] !== u || t[5] !== e || t[6] !== n || t[7] !== i ? (s = /* @__PURE__ */ f(Zt, { ref: e, type: i, ...n, children: u }), t[4] = u, t[5] = e, t[6] = n, t[7] = i, t[8] = s) : s = t[8], s;
92
+ let c;
93
+ return u[4] !== t || u[5] !== e || u[6] !== n || u[7] !== i ? (c = /* @__PURE__ */ C(Zt, { ref: e, type: i, ...n, children: t }), u[4] = t, u[5] = e, u[6] = n, u[7] = i, u[8] = c) : c = u[8], c;
94
94
  });
95
95
  Ne.displayName = "GZButton";
96
96
  const at = (r) => {
97
97
  const e = z.c(2);
98
- let t;
99
- return e[0] !== r ? (t = /* @__PURE__ */ f(Cu, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
98
+ let u;
99
+ return e[0] !== r ? (u = /* @__PURE__ */ C(Cu, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
100
100
  };
101
101
  at.displayName = "GZEmpty";
102
102
  const Ve = at;
@@ -104,8 +104,8 @@ Ve.PRESENTED_IMAGE_DEFAULT = Cu.PRESENTED_IMAGE_DEFAULT;
104
104
  Ve.PRESENTED_IMAGE_SIMPLE = Cu.PRESENTED_IMAGE_SIMPLE;
105
105
  const it = (r) => {
106
106
  const e = z.c(2);
107
- let t;
108
- return e[0] !== r ? (t = /* @__PURE__ */ f(Qu, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
107
+ let u;
108
+ return e[0] !== r ? (u = /* @__PURE__ */ C(Qu, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
109
109
  };
110
110
  it.displayName = "GZSpin";
111
111
  const Du = it;
@@ -116,7 +116,6 @@ const dr = 1e3, cu = 3, oe = "-", Bu = {
116
116
  discountCurve: null,
117
117
  valuationDate: null
118
118
  }, Iu = {
119
- pricingEnvironment: "请选择定价环境",
120
119
  carbonForwardCurve: "请选择碳金融远期价格曲线",
121
120
  discountCurve: "请选择无风险利率曲线",
122
121
  valuationDate: "请选择估值日"
@@ -1021,10 +1020,10 @@ var Er = {
1021
1020
  };
1022
1021
  const Fr = (r) => {
1023
1022
  const e = z.c(2), {
1024
- text: t
1025
- } = r, u = t === void 0 ? "暂无符合条件的数据" : t;
1023
+ text: u
1024
+ } = r, t = u === void 0 ? "暂无符合条件的数据" : u;
1026
1025
  let n;
1027
- return e[0] !== u ? (n = /* @__PURE__ */ f("div", { className: "gz-table-no-rows-overlay", role: "status", children: u }), e[0] = u, e[1] = n) : n = e[1], n;
1026
+ return e[0] !== t ? (n = /* @__PURE__ */ C("div", { className: "gz-table-no-rows-overlay", role: "status", children: t }), e[0] = t, e[1] = n) : n = e[1], n;
1028
1027
  }, Cr = Ku({
1029
1028
  feature: "gzTableDisabledCheckboxCursor",
1030
1029
  css: `
@@ -1159,24 +1158,24 @@ const Fr = (r) => {
1159
1158
  // 限制只能使用以下 5 种汇总方式(原生的 first/last 等被剔除)
1160
1159
  allowedAggFuncs: ["sum", "avg", "max", "min", "count"]
1161
1160
  }, Dr = [Qt], Br = ["rowSummary", "pageSize", "pageSummary"], bu = ue((r, e) => {
1162
- const t = ee(null), {
1163
- themeMode: u
1161
+ const u = ee(null), {
1162
+ themeMode: t
1164
1163
  } = Zu(lt), {
1165
1164
  gridOptions: n
1166
- } = r, a = r.pagination ?? n?.pagination ?? iu.pagination, i = r.paginationPanels ?? n?.paginationPanels, s = a && i === void 0, E = s ? Br : i, F = u === "gold-dark" ? gr : u === "gold-light" ? pr : void 0, h = r.theme ?? n?.theme ?? F, p = Le(() => ({
1165
+ } = r, a = r.pagination ?? n?.pagination ?? iu.pagination, i = r.paginationPanels ?? n?.paginationPanels, c = a && i === void 0, d = c ? Br : i, f = t === "gold-dark" ? gr : t === "gold-light" ? pr : void 0, h = r.theme ?? n?.theme ?? f, p = Le(() => ({
1167
1166
  ...iu,
1168
1167
  ...n,
1169
- paginationPanels: E
1170
- }), [n, E]), x = Le(() => ({
1168
+ paginationPanels: d
1169
+ }), [n, d]), x = Le(() => ({
1171
1170
  ...iu.localeText,
1172
1171
  ...n?.localeText,
1173
1172
  ...r.localeText
1174
- }), [n?.localeText, r.localeText]), S = ["gz-table", a ? "gz-table-pagination" : void 0, s ? "gz-table-default-pagination-layout" : void 0, u === "gold-dark" ? "gz-table-gold-dark" : void 0, u === "gold-light" ? "gz-table-gold-light" : void 0, r.className].filter(Boolean).join(" "), I = Le(() => ({
1173
+ }), [n?.localeText, r.localeText]), S = ["gz-table", a ? "gz-table-pagination" : void 0, c ? "gz-table-default-pagination-layout" : void 0, t === "gold-dark" ? "gz-table-gold-dark" : void 0, t === "gold-light" ? "gz-table-gold-light" : void 0, r.className].filter(Boolean).join(" "), I = Le(() => ({
1175
1174
  ...hr,
1176
1175
  ...n?.defaultColDef,
1177
1176
  ...r.defaultColDef
1178
1177
  }), [n?.defaultColDef, r.defaultColDef]), b = he((D) => {
1179
- const R = t.current;
1178
+ const R = u.current;
1180
1179
  if (!R || !D) return;
1181
1180
  const $ = R.querySelector(".ag-body-horizontal-scroll-viewport");
1182
1181
  if ($) {
@@ -1184,8 +1183,8 @@ const Fr = (r) => {
1184
1183
  scrollLeft: v,
1185
1184
  clientWidth: _,
1186
1185
  scrollWidth: k
1187
- } = $, Y = v > 0, C = Math.ceil(v + _) < k - 1;
1188
- R.classList.toggle("gz-table-ping-left", Y), R.classList.toggle("gz-table-ping-right", C);
1186
+ } = $, Y = v > 0, F = Math.ceil(v + _) < k - 1;
1187
+ R.classList.toggle("gz-table-ping-left", Y), R.classList.toggle("gz-table-ping-right", F);
1189
1188
  } else
1190
1189
  R.classList.remove("gz-table-ping-left", "gz-table-ping-right");
1191
1190
  }, []), g = he((D) => {
@@ -1205,23 +1204,23 @@ const Fr = (r) => {
1205
1204
  action: () => {
1206
1205
  const k = D.node;
1207
1206
  if (!k || !k.data) return;
1208
- const C = (D.api.getAllDisplayedColumns() || []).map((m) => {
1209
- const o = m.getColId(), l = k.data[o];
1207
+ const F = (D.api.getAllDisplayedColumns() || []).map((E) => {
1208
+ const o = E.getColId(), l = k.data[o];
1210
1209
  return typeof l == "object" ? JSON.stringify(l) : String(l ?? "");
1211
1210
  }).join(" ");
1212
1211
  if (navigator.clipboard && window.isSecureContext)
1213
- navigator.clipboard.writeText(C).catch((m) => {
1214
- console.error("复制整行数据失败: ", m);
1212
+ navigator.clipboard.writeText(F).catch((E) => {
1213
+ console.error("复制整行数据失败: ", E);
1215
1214
  });
1216
1215
  else {
1217
- const m = document.createElement("textarea");
1218
- m.value = C, m.style.position = "fixed", m.style.left = "-999999px", m.style.top = "-999999px", document.body.appendChild(m), m.focus(), m.select();
1216
+ const E = document.createElement("textarea");
1217
+ E.value = F, E.style.position = "fixed", E.style.left = "-999999px", E.style.top = "-999999px", document.body.appendChild(E), E.focus(), E.select();
1219
1218
  try {
1220
1219
  document.execCommand("copy");
1221
1220
  } catch (o) {
1222
1221
  console.error("降级复制失败", o);
1223
1222
  }
1224
- m.remove();
1223
+ E.remove();
1225
1224
  }
1226
1225
  }
1227
1226
  };
@@ -1238,12 +1237,12 @@ const Fr = (r) => {
1238
1237
  defaultItems: $
1239
1238
  }) : $;
1240
1239
  }, [w]);
1241
- return /* @__PURE__ */ f("div", { ref: t, className: "gz-table-wrapper", style: {
1240
+ return /* @__PURE__ */ C("div", { ref: u, className: "gz-table-wrapper", style: {
1242
1241
  height: "100%",
1243
1242
  width: "100%",
1244
1243
  display: "flex",
1245
1244
  flexDirection: "column"
1246
- }, children: /* @__PURE__ */ f(Jt, { modules: Dr, licenseKey: vr, children: /* @__PURE__ */ f(Kt, { ref: e, ...r, gridOptions: p, ...h === void 0 ? {} : {
1245
+ }, children: /* @__PURE__ */ C(Jt, { modules: Dr, licenseKey: vr, children: /* @__PURE__ */ C(Kt, { ref: e, ...r, gridOptions: p, ...h === void 0 ? {} : {
1247
1246
  theme: h
1248
1247
  }, className: S || void 0, defaultColDef: I, localeText: x, getContextMenuItems: L, onBodyScroll: g, onGridReady: T, onGridSizeChanged: y, onModelUpdated: M, onDisplayedColumnsChanged: P }) }) });
1249
1248
  }), yr = "_root_lxvvg_1", br = "_section_lxvvg_11", Ar = "_sectionTitle_lxvvg_17", Sr = "_contextForm_lxvvg_24", xr = "_fixedSingle_lxvvg_30", Tr = "_multiple_lxvvg_35", _r = "_single_lxvvg_40", Mr = "_contextFormItem_lxvvg_50", wr = "_contextFormLabel_lxvvg_53", kr = "_contextFormContent_lxvvg_57", $r = "_contextFormLabelText_lxvvg_82", Ir = "_selectPopup_lxvvg_92", Rr = "_selectPopupListItem_lxvvg_95", Pr = "_resourceIssues_lxvvg_111", Lr = "_limitAlert_lxvvg_115", Nr = "_fixedGrid_lxvvg_118", Or = "_multipleGrid_lxvvg_119", zr = "_singleGrid_lxvvg_156", Vr = "_fieldCell_lxvvg_160", Yr = "_singleContractHeader_lxvvg_165", Gr = "_negativeValue_lxvvg_194", Hr = "_gridErrorAlert_lxvvg_197", Ur = "_gridErrorIcon_lxvvg_209", Wr = "_gridErrorSection_lxvvg_212", qr = "_gridErrorMessage_lxvvg_216", Zr = "_mergedErrorGridCell_lxvvg_223", jr = "_mergedErrorCell_lxvvg_231", Xr = "_mergedErrorText_lxvvg_246", Qr = "_emptyState_lxvvg_252", Jr = "_footer_lxvvg_260", Kr = "_navigateButton_lxvvg_266", en = "_navigateIcon_lxvvg_269", V = {
@@ -1293,47 +1292,47 @@ const Fr = (r) => {
1293
1292
  purple: ["purple1", "purple3", "purple6", "purple7"],
1294
1293
  magenta: ["magenta1", "magenta3", "magenta6", "magenta7"]
1295
1294
  }, me = (r, e) => {
1296
- const t = r[e];
1297
- return typeof t == "string" ? t : void 0;
1298
- }, un = (r) => Object.prototype.hasOwnProperty.call(st, r), tn = (r, e, t) => {
1295
+ const u = r[e];
1296
+ return typeof u == "string" ? u : void 0;
1297
+ }, un = (r) => Object.prototype.hasOwnProperty.call(st, r), tn = (r, e, u) => {
1299
1298
  if (r === "default" || r === void 0) {
1300
1299
  if (e !== "solid") return;
1301
- const E = me(t, "colorBgSolid");
1300
+ const d = me(u, "colorBgSolid");
1302
1301
  return {
1303
- color: me(t, "colorTextOnLight"),
1304
- backgroundColor: E,
1305
- borderColor: E
1302
+ color: me(u, "colorTextOnLight"),
1303
+ backgroundColor: d,
1304
+ borderColor: d
1306
1305
  };
1307
1306
  }
1308
1307
  if (r === "primary") {
1309
- const E = me(t, "colorPrimary");
1308
+ const d = me(u, "colorPrimary");
1310
1309
  return {
1311
1310
  // primary 三种 variant 都使用浅色背景和 on-light 文字色。
1312
- color: me(t, "colorTextOnLight"),
1313
- backgroundColor: E,
1311
+ color: me(u, "colorTextOnLight"),
1312
+ backgroundColor: d,
1314
1313
  // outlined 使用设计描边色;solid 的边框与背景保持一致;filled 不额外设置边框。
1315
1314
  ...e === "outlined" ? {
1316
- borderColor: me(t, "colorPrimaryBorder")
1315
+ borderColor: me(u, "colorPrimaryBorder")
1317
1316
  } : e === "solid" ? {
1318
- borderColor: E
1317
+ borderColor: d
1319
1318
  } : void 0
1320
1319
  };
1321
1320
  }
1322
1321
  if (!un(r)) return;
1323
- const u = st[r], [n, a, i, s] = u;
1322
+ const t = st[r], [n, a, i, c] = t;
1324
1323
  if (e === "solid") {
1325
- const E = me(t, i);
1324
+ const d = me(u, i);
1326
1325
  return {
1327
- color: me(t, "colorTextLightSolid"),
1328
- backgroundColor: E,
1329
- borderColor: E
1326
+ color: me(u, "colorTextLightSolid"),
1327
+ backgroundColor: d,
1328
+ borderColor: d
1330
1329
  };
1331
1330
  }
1332
1331
  return {
1333
- color: me(t, s),
1334
- backgroundColor: me(t, n),
1332
+ color: me(u, c),
1333
+ backgroundColor: me(u, n),
1335
1334
  ...e === "outlined" ? {
1336
- borderColor: me(t, a)
1335
+ borderColor: me(u, a)
1337
1336
  } : void 0
1338
1337
  };
1339
1338
  }, rn = (r, e) => {
@@ -1344,41 +1343,41 @@ const Fr = (r) => {
1344
1343
  borderColor: "transparent"
1345
1344
  };
1346
1345
  }, ct = ue((r, e) => {
1347
- const t = z.c(33);
1348
- let u, n, a, i, s;
1349
- t[0] !== r ? ({
1350
- color: u,
1346
+ const u = z.c(33);
1347
+ let t, n, a, i, c;
1348
+ u[0] !== r ? ({
1349
+ color: t,
1351
1350
  style: a,
1352
1351
  styles: i,
1353
- variant: s,
1352
+ variant: c,
1354
1353
  ...n
1355
- } = r, t[0] = r, t[1] = u, t[2] = n, t[3] = a, t[4] = i, t[5] = s) : (u = t[1], n = t[2], a = t[3], i = t[4], s = t[5]);
1356
- const E = s === void 0 ? "solid" : s, {
1357
- themeMode: F
1354
+ } = r, u[0] = r, u[1] = t, u[2] = n, u[3] = a, u[4] = i, u[5] = c) : (t = u[1], n = u[2], a = u[3], i = u[4], c = u[5]);
1355
+ const d = c === void 0 ? "solid" : c, {
1356
+ themeMode: f
1358
1357
  } = Zu(lt), {
1359
1358
  token: h
1360
1359
  } = Ju.useToken(), p = h;
1361
1360
  let x;
1362
- t[6] !== u || t[7] !== p || t[8] !== F || t[9] !== E ? (x = F === "gold-dark" ? tn(u, E, p) : F === "gold-light" ? rn(u, p) : void 0, t[6] = u, t[7] = p, t[8] = F, t[9] = E, t[10] = x) : x = t[10];
1361
+ u[6] !== t || u[7] !== p || u[8] !== f || u[9] !== d ? (x = f === "gold-dark" ? tn(t, d, p) : f === "gold-light" ? rn(t, p) : void 0, u[6] = t, u[7] = p, u[8] = f, u[9] = d, u[10] = x) : x = u[10];
1363
1362
  const S = x;
1364
1363
  let I;
1365
- t[11] !== u || t[12] !== p || t[13] !== F || t[14] !== E ? (I = F === "gold-dark" && E === "solid" && (u === "primary" || u === "default" || u === void 0) ? {
1364
+ u[11] !== t || u[12] !== p || u[13] !== f || u[14] !== d ? (I = f === "gold-dark" && d === "solid" && (t === "primary" || t === "default" || t === void 0) ? {
1366
1365
  color: me(p, "colorTextOnLight")
1367
- } : void 0, t[11] = u, t[12] = p, t[13] = F, t[14] = E, t[15] = I) : I = t[15];
1366
+ } : void 0, u[11] = t, u[12] = p, u[13] = f, u[14] = d, u[15] = I) : I = u[15];
1368
1367
  const b = I;
1369
1368
  let g;
1370
- t[16] !== u || t[17] !== p || t[18] !== F ? (g = F === "gold-light" && u === "primary" ? {
1369
+ u[16] !== t || u[17] !== p || u[18] !== f ? (g = f === "gold-light" && t === "primary" ? {
1371
1370
  color: me(p, "colorTextOnLight")
1372
- } : void 0, t[16] = u, t[17] = p, t[18] = F, t[19] = g) : g = t[19];
1371
+ } : void 0, u[16] = t, u[17] = p, u[18] = f, u[19] = g) : g = u[19];
1373
1372
  const y = b ?? g;
1374
1373
  let M;
1375
- t[20] !== S || t[21] !== a ? (M = S ? {
1374
+ u[20] !== S || u[21] !== a ? (M = S ? {
1376
1375
  ...S,
1377
1376
  ...a
1378
- } : a, t[20] = S, t[21] = a, t[22] = M) : M = t[22];
1377
+ } : a, u[20] = S, u[21] = a, u[22] = M) : M = u[22];
1379
1378
  const P = M;
1380
1379
  let w;
1381
- t[23] !== y || t[24] !== i ? (w = y ? typeof i == "function" ? ($) => {
1380
+ u[23] !== y || u[24] !== i ? (w = y ? typeof i == "function" ? ($) => {
1382
1381
  const v = i($);
1383
1382
  return {
1384
1383
  ...v,
@@ -1393,22 +1392,22 @@ const Fr = (r) => {
1393
1392
  ...y,
1394
1393
  ...i?.close
1395
1394
  }
1396
- } : i, t[23] = y, t[24] = i, t[25] = w) : w = t[25];
1397
- const L = w, D = F === "gold-dark" && u === "default" ? void 0 : u;
1395
+ } : i, u[23] = y, u[24] = i, u[25] = w) : w = u[25];
1396
+ const L = w, D = f === "gold-dark" && t === "default" ? void 0 : t;
1398
1397
  let R;
1399
- return t[26] !== D || t[27] !== P || t[28] !== L || t[29] !== e || t[30] !== n || t[31] !== E ? (R = /* @__PURE__ */ f(fu, { ref: e, color: D, variant: E, style: P, styles: L, ...n }), t[26] = D, t[27] = P, t[28] = L, t[29] = e, t[30] = n, t[31] = E, t[32] = R) : R = t[32], R;
1398
+ return u[26] !== D || u[27] !== P || u[28] !== L || u[29] !== e || u[30] !== n || u[31] !== d ? (R = /* @__PURE__ */ C(fu, { ref: e, color: D, variant: d, style: P, styles: L, ...n }), u[26] = D, u[27] = P, u[28] = L, u[29] = e, u[30] = n, u[31] = d, u[32] = R) : R = u[32], R;
1400
1399
  });
1401
1400
  ct.displayName = "GZTag";
1402
1401
  const dt = ue((r, e) => {
1403
- const t = z.c(3);
1404
- let u;
1405
- return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(fu.CheckableTag, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
1402
+ const u = z.c(3);
1403
+ let t;
1404
+ return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ C(fu.CheckableTag, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
1406
1405
  });
1407
1406
  dt.displayName = "GZCheckableTag";
1408
1407
  const mt = ue((r, e) => {
1409
- const t = z.c(3);
1410
- let u;
1411
- return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(fu.CheckableTagGroup, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
1408
+ const u = z.c(3);
1409
+ let t;
1410
+ return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ C(fu.CheckableTagGroup, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
1412
1411
  });
1413
1412
  mt.displayName = "GZCheckableTagGroup";
1414
1413
  const Au = ct;
@@ -1423,26 +1422,26 @@ function Et(r, e) {
1423
1422
  }
1424
1423
  }
1425
1424
  function Su(r, e) {
1426
- const t = Et(r, e);
1427
- if (t === oe) return t;
1428
- const [u, n] = t.split("."), a = u.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
1425
+ const u = Et(r, e);
1426
+ if (u === oe) return u;
1427
+ const [t, n] = u.split("."), a = t.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
1429
1428
  return n == null ? a : `${a}.${n}`;
1430
1429
  }
1431
- function Ru(r, e, t = 2) {
1432
- const u = Et(r, t);
1433
- if (u === oe) return u;
1434
- const n = u.startsWith("-") ? u.slice(1) : u, a = Su(n, t);
1430
+ function Ru(r, e, u = 2) {
1431
+ const t = Et(r, u);
1432
+ if (t === oe) return t;
1433
+ const n = t.startsWith("-") ? t.slice(1) : t, a = Su(n, u);
1435
1434
  try {
1436
- const s = new Intl.NumberFormat("zh-CN", {
1435
+ const c = new Intl.NumberFormat("zh-CN", {
1437
1436
  style: "currency",
1438
1437
  currency: e,
1439
1438
  currencyDisplay: "symbol",
1440
- minimumFractionDigits: t,
1441
- maximumFractionDigits: t
1442
- }).formatToParts(0).find((E) => E.type === "currency")?.value ?? e;
1443
- return `${u.startsWith("-") ? "-" : ""}${s}${a}`;
1439
+ minimumFractionDigits: u,
1440
+ maximumFractionDigits: u
1441
+ }).formatToParts(0).find((d) => d.type === "currency")?.value ?? e;
1442
+ return `${t.startsWith("-") ? "-" : ""}${c}${a}`;
1444
1443
  } catch {
1445
- return `${e} ${u}`.trim();
1444
+ return `${e} ${t}`.trim();
1446
1445
  }
1447
1446
  }
1448
1447
  function nn(r) {
@@ -1453,176 +1452,176 @@ function nn(r) {
1453
1452
  }
1454
1453
  }
1455
1454
  function Ft(r) {
1456
- const e = z.c(3), t = nn(r.rawValue) ? V.negativeValue : void 0;
1457
- let u;
1458
- return e[0] !== r.value || e[1] !== t ? (u = /* @__PURE__ */ f("span", { className: t, children: r.value }), e[0] = r.value, e[1] = t, e[2] = u) : u = e[2], u;
1455
+ const e = z.c(3), u = nn(r.rawValue) ? V.negativeValue : void 0;
1456
+ let t;
1457
+ return e[0] !== r.value || e[1] !== u ? (t = /* @__PURE__ */ C("span", { className: u, children: r.value }), e[0] = r.value, e[1] = u, e[2] = t) : t = e[2], t;
1459
1458
  }
1460
1459
  function Ct(r) {
1461
1460
  const e = z.c(4);
1462
1461
  if (r.field === "direction") {
1463
- let u;
1464
- return e[0] !== r.value ? (u = r.value ? /* @__PURE__ */ f(Au, { variant: "outlined", color: r.value === "买入" ? "gold" : "green", children: r.value }) : "-", e[0] = r.value, e[1] = u) : u = e[1], u;
1462
+ let t;
1463
+ return e[0] !== r.value ? (t = r.value ? /* @__PURE__ */ C(Au, { variant: "outlined", color: r.value === "买入" ? "gold" : "green", children: r.value }) : "-", e[0] = r.value, e[1] = t) : t = e[1], t;
1465
1464
  }
1466
- let t;
1467
- return e[2] !== r.value ? (t = /* @__PURE__ */ f("span", { children: r.value }), e[2] = r.value, e[3] = t) : t = e[3], t;
1465
+ let u;
1466
+ return e[2] !== r.value ? (u = /* @__PURE__ */ C("span", { children: r.value }), e[2] = r.value, e[3] = u) : u = e[3], u;
1468
1467
  }
1469
1468
  var Qe = { exports: {} }, on = Qe.exports, Pu;
1470
1469
  function an() {
1471
1470
  return Pu || (Pu = 1, (function(r, e) {
1472
- (function(t, u) {
1473
- r.exports = u();
1471
+ (function(u, t) {
1472
+ r.exports = t();
1474
1473
  })(on, (function() {
1475
- var t = 1e3, u = 6e4, n = 36e5, a = "millisecond", i = "second", s = "minute", E = "hour", F = "day", h = "week", p = "month", x = "quarter", S = "year", I = "date", b = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|YYYY|YY|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, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(C) {
1476
- var m = ["th", "st", "nd", "rd"], o = C % 100;
1477
- return "[" + C + (m[(o - 20) % 10] || m[o] || m[0]) + "]";
1478
- } }, M = function(C, m, o) {
1479
- var l = String(C);
1480
- return !l || l.length >= m ? C : "" + Array(m + 1 - l.length).join(o) + C;
1481
- }, P = { s: M, z: function(C) {
1482
- var m = -C.utcOffset(), o = Math.abs(m), l = Math.floor(o / 60), c = o % 60;
1483
- return (m <= 0 ? "+" : "-") + M(l, 2, "0") + ":" + M(c, 2, "0");
1484
- }, m: function C(m, o) {
1485
- if (m.date() < o.date()) return -C(o, m);
1486
- var l = 12 * (o.year() - m.year()) + (o.month() - m.month()), c = m.clone().add(l, p), d = o - c < 0, B = m.clone().add(l + (d ? -1 : 1), p);
1487
- return +(-(l + (o - c) / (d ? c - B : B - c)) || 0);
1488
- }, a: function(C) {
1489
- return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
1490
- }, p: function(C) {
1491
- return { M: p, y: S, w: h, d: F, D: I, h: E, m: s, s: i, ms: a, Q: x }[C] || String(C || "").toLowerCase().replace(/s$/, "");
1492
- }, u: function(C) {
1493
- return C === void 0;
1474
+ var u = 1e3, t = 6e4, n = 36e5, a = "millisecond", i = "second", c = "minute", d = "hour", f = "day", h = "week", p = "month", x = "quarter", S = "year", I = "date", b = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|YYYY|YY|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, y = { 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(F) {
1475
+ var E = ["th", "st", "nd", "rd"], o = F % 100;
1476
+ return "[" + F + (E[(o - 20) % 10] || E[o] || E[0]) + "]";
1477
+ } }, M = function(F, E, o) {
1478
+ var l = String(F);
1479
+ return !l || l.length >= E ? F : "" + Array(E + 1 - l.length).join(o) + F;
1480
+ }, P = { s: M, z: function(F) {
1481
+ var E = -F.utcOffset(), o = Math.abs(E), l = Math.floor(o / 60), s = o % 60;
1482
+ return (E <= 0 ? "+" : "-") + M(l, 2, "0") + ":" + M(s, 2, "0");
1483
+ }, m: function F(E, o) {
1484
+ if (E.date() < o.date()) return -F(o, E);
1485
+ var l = 12 * (o.year() - E.year()) + (o.month() - E.month()), s = E.clone().add(l, p), m = o - s < 0, B = E.clone().add(l + (m ? -1 : 1), p);
1486
+ return +(-(l + (o - s) / (m ? s - B : B - s)) || 0);
1487
+ }, a: function(F) {
1488
+ return F < 0 ? Math.ceil(F) || 0 : Math.floor(F);
1489
+ }, p: function(F) {
1490
+ return { M: p, y: S, w: h, d: f, D: I, h: d, m: c, s: i, ms: a, Q: x }[F] || String(F || "").toLowerCase().replace(/s$/, "");
1491
+ }, u: function(F) {
1492
+ return F === void 0;
1494
1493
  } }, w = "en", L = {};
1495
1494
  L[w] = y;
1496
- var D = "$isDayjsObject", R = function(C) {
1497
- return C instanceof k || !(!C || !C[D]);
1498
- }, $ = function C(m, o, l) {
1499
- var c;
1500
- if (!m) return w;
1501
- if (typeof m == "string") {
1502
- var d = m.toLowerCase();
1503
- L[d] && (c = d), o && (L[d] = o, c = d);
1504
- var B = m.split("-");
1505
- if (!c && B.length > 1) return C(B[0]);
1495
+ var D = "$isDayjsObject", R = function(F) {
1496
+ return F instanceof k || !(!F || !F[D]);
1497
+ }, $ = function F(E, o, l) {
1498
+ var s;
1499
+ if (!E) return w;
1500
+ if (typeof E == "string") {
1501
+ var m = E.toLowerCase();
1502
+ L[m] && (s = m), o && (L[m] = o, s = m);
1503
+ var B = E.split("-");
1504
+ if (!s && B.length > 1) return F(B[0]);
1506
1505
  } else {
1507
- var A = m.name;
1508
- L[A] = m, c = A;
1506
+ var A = E.name;
1507
+ L[A] = E, s = A;
1509
1508
  }
1510
- return !l && c && (w = c), c || !l && w;
1511
- }, v = function(C, m) {
1512
- if (R(C)) return C.clone();
1513
- var o = typeof m == "object" ? m : {};
1514
- return o.date = C, o.args = arguments, new k(o);
1509
+ return !l && s && (w = s), s || !l && w;
1510
+ }, v = function(F, E) {
1511
+ if (R(F)) return F.clone();
1512
+ var o = typeof E == "object" ? E : {};
1513
+ return o.date = F, o.args = arguments, new k(o);
1515
1514
  }, _ = P;
1516
- _.l = $, _.i = R, _.w = function(C, m) {
1517
- return v(C, { locale: m.$L, utc: m.$u, x: m.$x, $offset: m.$offset });
1515
+ _.l = $, _.i = R, _.w = function(F, E) {
1516
+ return v(F, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
1518
1517
  };
1519
1518
  var k = (function() {
1520
- function C(o) {
1519
+ function F(o) {
1521
1520
  this.$L = $(o.locale, null, !0), this.parse(o), this.$x = this.$x || o.x || {}, this[D] = !0;
1522
1521
  }
1523
- var m = C.prototype;
1524
- return m.parse = function(o) {
1522
+ var E = F.prototype;
1523
+ return E.parse = function(o) {
1525
1524
  this.$d = (function(l) {
1526
- var c = l.date, d = l.utc;
1527
- if (c === null) return /* @__PURE__ */ new Date(NaN);
1528
- if (_.u(c)) return /* @__PURE__ */ new Date();
1529
- if (c instanceof Date) return new Date(c);
1530
- if (typeof c == "string" && !/Z$/i.test(c)) {
1531
- var B = c.match(g);
1525
+ var s = l.date, m = l.utc;
1526
+ if (s === null) return /* @__PURE__ */ new Date(NaN);
1527
+ if (_.u(s)) return /* @__PURE__ */ new Date();
1528
+ if (s instanceof Date) return new Date(s);
1529
+ if (typeof s == "string" && !/Z$/i.test(s)) {
1530
+ var B = s.match(g);
1532
1531
  if (B) {
1533
1532
  var A = B[2] - 1 || 0, O = (B[7] || "0").substring(0, 3);
1534
- return d ? new Date(Date.UTC(B[1], A, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, O)) : new Date(B[1], A, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, O);
1533
+ return m ? new Date(Date.UTC(B[1], A, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, O)) : new Date(B[1], A, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, O);
1535
1534
  }
1536
1535
  }
1537
- return new Date(c);
1536
+ return new Date(s);
1538
1537
  })(o), this.init();
1539
- }, m.init = function() {
1538
+ }, E.init = function() {
1540
1539
  var o = this.$d;
1541
1540
  this.$y = o.getFullYear(), this.$M = o.getMonth(), this.$D = o.getDate(), this.$W = o.getDay(), this.$H = o.getHours(), this.$m = o.getMinutes(), this.$s = o.getSeconds(), this.$ms = o.getMilliseconds();
1542
- }, m.$utils = function() {
1541
+ }, E.$utils = function() {
1543
1542
  return _;
1544
- }, m.isValid = function() {
1543
+ }, E.isValid = function() {
1545
1544
  return this.$d.toString() !== b;
1546
- }, m.isSame = function(o, l) {
1547
- var c = v(o);
1548
- return this.startOf(l) <= c && c <= this.endOf(l);
1549
- }, m.isAfter = function(o, l) {
1545
+ }, E.isSame = function(o, l) {
1546
+ var s = v(o);
1547
+ return this.startOf(l) <= s && s <= this.endOf(l);
1548
+ }, E.isAfter = function(o, l) {
1550
1549
  return v(o) < this.startOf(l);
1551
- }, m.isBefore = function(o, l) {
1550
+ }, E.isBefore = function(o, l) {
1552
1551
  return this.endOf(l) < v(o);
1553
- }, m.$g = function(o, l, c) {
1554
- return _.u(o) ? this[l] : this.set(c, o);
1555
- }, m.unix = function() {
1552
+ }, E.$g = function(o, l, s) {
1553
+ return _.u(o) ? this[l] : this.set(s, o);
1554
+ }, E.unix = function() {
1556
1555
  return Math.floor(this.valueOf() / 1e3);
1557
- }, m.valueOf = function() {
1556
+ }, E.valueOf = function() {
1558
1557
  return this.$d.getTime();
1559
- }, m.startOf = function(o, l) {
1560
- var c = this, d = !!_.u(l) || l, B = _.p(o), A = function(Z, H) {
1561
- var Q = _.w(c.$u ? Date.UTC(c.$y, H, Z) : new Date(c.$y, H, Z), c);
1562
- return d ? Q : Q.endOf(F);
1558
+ }, E.startOf = function(o, l) {
1559
+ var s = this, m = !!_.u(l) || l, B = _.p(o), A = function(Z, H) {
1560
+ var Q = _.w(s.$u ? Date.UTC(s.$y, H, Z) : new Date(s.$y, H, Z), s);
1561
+ return m ? Q : Q.endOf(f);
1563
1562
  }, O = function(Z, H) {
1564
- return _.w(c.toDate()[Z].apply(c.toDate("s"), (d ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(H)), c);
1563
+ return _.w(s.toDate()[Z].apply(s.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(H)), s);
1565
1564
  }, N = this.$W, G = this.$M, W = this.$D, U = "set" + (this.$u ? "UTC" : "");
1566
1565
  switch (B) {
1567
1566
  case S:
1568
- return d ? A(1, 0) : A(31, 11);
1567
+ return m ? A(1, 0) : A(31, 11);
1569
1568
  case p:
1570
- return d ? A(1, G) : A(0, G + 1);
1569
+ return m ? A(1, G) : A(0, G + 1);
1571
1570
  case h:
1572
1571
  var j = this.$locale().weekStart || 0, q = (N < j ? N + 7 : N) - j;
1573
- return A(d ? W - q : W + (6 - q), G);
1574
- case F:
1572
+ return A(m ? W - q : W + (6 - q), G);
1573
+ case f:
1575
1574
  case I:
1576
1575
  return O(U + "Hours", 0);
1577
- case E:
1576
+ case d:
1578
1577
  return O(U + "Minutes", 1);
1579
- case s:
1578
+ case c:
1580
1579
  return O(U + "Seconds", 2);
1581
1580
  case i:
1582
1581
  return O(U + "Milliseconds", 3);
1583
1582
  default:
1584
1583
  return this.clone();
1585
1584
  }
1586
- }, m.endOf = function(o) {
1585
+ }, E.endOf = function(o) {
1587
1586
  return this.startOf(o, !1);
1588
- }, m.$set = function(o, l) {
1589
- var c, d = _.p(o), B = "set" + (this.$u ? "UTC" : ""), A = (c = {}, c[F] = B + "Date", c[I] = B + "Date", c[p] = B + "Month", c[S] = B + "FullYear", c[E] = B + "Hours", c[s] = B + "Minutes", c[i] = B + "Seconds", c[a] = B + "Milliseconds", c)[d], O = d === F ? this.$D + (l - this.$W) : l;
1590
- if (d === p || d === S) {
1587
+ }, E.$set = function(o, l) {
1588
+ var s, m = _.p(o), B = "set" + (this.$u ? "UTC" : ""), A = (s = {}, s[f] = B + "Date", s[I] = B + "Date", s[p] = B + "Month", s[S] = B + "FullYear", s[d] = B + "Hours", s[c] = B + "Minutes", s[i] = B + "Seconds", s[a] = B + "Milliseconds", s)[m], O = m === f ? this.$D + (l - this.$W) : l;
1589
+ if (m === p || m === S) {
1591
1590
  var N = this.clone().set(I, 1);
1592
1591
  N.$d[A](O), N.init(), this.$d = N.set(I, Math.min(this.$D, N.daysInMonth())).$d;
1593
1592
  } else A && this.$d[A](O);
1594
1593
  return this.init(), this;
1595
- }, m.set = function(o, l) {
1594
+ }, E.set = function(o, l) {
1596
1595
  return this.clone().$set(o, l);
1597
- }, m.get = function(o) {
1596
+ }, E.get = function(o) {
1598
1597
  return this[_.p(o)]();
1599
- }, m.add = function(o, l) {
1600
- var c, d = this;
1598
+ }, E.add = function(o, l) {
1599
+ var s, m = this;
1601
1600
  o = Number(o);
1602
1601
  var B = _.p(l), A = function(G) {
1603
- var W = v(d);
1604
- return _.w(W.date(W.date() + Math.round(G * o)), d);
1602
+ var W = v(m);
1603
+ return _.w(W.date(W.date() + Math.round(G * o)), m);
1605
1604
  };
1606
1605
  if (B === p) return this.set(p, this.$M + o);
1607
1606
  if (B === S) return this.set(S, this.$y + o);
1608
- if (B === F) return A(1);
1607
+ if (B === f) return A(1);
1609
1608
  if (B === h) return A(7);
1610
- var O = (c = {}, c[s] = u, c[E] = n, c[i] = t, c)[B] || 1, N = this.$d.getTime() + o * O;
1609
+ var O = (s = {}, s[c] = t, s[d] = n, s[i] = u, s)[B] || 1, N = this.$d.getTime() + o * O;
1611
1610
  return _.w(N, this);
1612
- }, m.subtract = function(o, l) {
1611
+ }, E.subtract = function(o, l) {
1613
1612
  return this.add(-1 * o, l);
1614
- }, m.format = function(o) {
1615
- var l = this, c = this.$locale();
1616
- if (!this.isValid()) return c.invalidDate || b;
1617
- var d = o || "YYYY-MM-DDTHH:mm:ssZ", B = _.z(this), A = this.$H, O = this.$m, N = this.$M, G = c.weekdays, W = c.months, U = c.meridiem, j = function(H, Q, J, X) {
1618
- return H && (H[Q] || H(l, d)) || J[Q].slice(0, X);
1613
+ }, E.format = function(o) {
1614
+ var l = this, s = this.$locale();
1615
+ if (!this.isValid()) return s.invalidDate || b;
1616
+ var m = o || "YYYY-MM-DDTHH:mm:ssZ", B = _.z(this), A = this.$H, O = this.$m, N = this.$M, G = s.weekdays, W = s.months, U = s.meridiem, j = function(H, Q, J, X) {
1617
+ return H && (H[Q] || H(l, m)) || J[Q].slice(0, X);
1619
1618
  }, q = function(H) {
1620
1619
  return _.s(A % 12 || 12, H, "0");
1621
1620
  }, Z = U || function(H, Q, J) {
1622
1621
  var X = H < 12 ? "AM" : "PM";
1623
1622
  return J ? X.toLowerCase() : X;
1624
1623
  };
1625
- return d.replace(T, (function(H, Q) {
1624
+ return m.replace(T, (function(H, Q) {
1626
1625
  return Q || (function(J) {
1627
1626
  switch (J) {
1628
1627
  case "YY":
@@ -1634,7 +1633,7 @@ function an() {
1634
1633
  case "MM":
1635
1634
  return _.s(N + 1, 2, "0");
1636
1635
  case "MMM":
1637
- return j(c.monthsShort, N, W, 3);
1636
+ return j(s.monthsShort, N, W, 3);
1638
1637
  case "MMMM":
1639
1638
  return j(W, N);
1640
1639
  case "D":
@@ -1644,9 +1643,9 @@ function an() {
1644
1643
  case "d":
1645
1644
  return String(l.$W);
1646
1645
  case "dd":
1647
- return j(c.weekdaysMin, l.$W, G, 2);
1646
+ return j(s.weekdaysMin, l.$W, G, 2);
1648
1647
  case "ddd":
1649
- return j(c.weekdaysShort, l.$W, G, 3);
1648
+ return j(s.weekdaysShort, l.$W, G, 3);
1650
1649
  case "dddd":
1651
1650
  return G[l.$W];
1652
1651
  case "H":
@@ -1677,69 +1676,69 @@ function an() {
1677
1676
  return null;
1678
1677
  })(H) || B.replace(":", "");
1679
1678
  }));
1680
- }, m.utcOffset = function() {
1679
+ }, E.utcOffset = function() {
1681
1680
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1682
- }, m.diff = function(o, l, c) {
1683
- var d, B = this, A = _.p(l), O = v(o), N = (O.utcOffset() - this.utcOffset()) * u, G = this - O, W = function() {
1681
+ }, E.diff = function(o, l, s) {
1682
+ var m, B = this, A = _.p(l), O = v(o), N = (O.utcOffset() - this.utcOffset()) * t, G = this - O, W = function() {
1684
1683
  return _.m(B, O);
1685
1684
  };
1686
1685
  switch (A) {
1687
1686
  case S:
1688
- d = W() / 12;
1687
+ m = W() / 12;
1689
1688
  break;
1690
1689
  case p:
1691
- d = W();
1690
+ m = W();
1692
1691
  break;
1693
1692
  case x:
1694
- d = W() / 3;
1693
+ m = W() / 3;
1695
1694
  break;
1696
1695
  case h:
1697
- d = (G - N) / 6048e5;
1696
+ m = (G - N) / 6048e5;
1698
1697
  break;
1699
- case F:
1700
- d = (G - N) / 864e5;
1698
+ case f:
1699
+ m = (G - N) / 864e5;
1701
1700
  break;
1702
- case E:
1703
- d = G / n;
1701
+ case d:
1702
+ m = G / n;
1704
1703
  break;
1705
- case s:
1706
- d = G / u;
1704
+ case c:
1705
+ m = G / t;
1707
1706
  break;
1708
1707
  case i:
1709
- d = G / t;
1708
+ m = G / u;
1710
1709
  break;
1711
1710
  default:
1712
- d = G;
1711
+ m = G;
1713
1712
  }
1714
- return c ? d : _.a(d);
1715
- }, m.daysInMonth = function() {
1713
+ return s ? m : _.a(m);
1714
+ }, E.daysInMonth = function() {
1716
1715
  return this.endOf(p).$D;
1717
- }, m.$locale = function() {
1716
+ }, E.$locale = function() {
1718
1717
  return L[this.$L];
1719
- }, m.locale = function(o, l) {
1718
+ }, E.locale = function(o, l) {
1720
1719
  if (!o) return this.$L;
1721
- var c = this.clone(), d = $(o, l, !0);
1722
- return d && (c.$L = d), c;
1723
- }, m.clone = function() {
1720
+ var s = this.clone(), m = $(o, l, !0);
1721
+ return m && (s.$L = m), s;
1722
+ }, E.clone = function() {
1724
1723
  return _.w(this.$d, this);
1725
- }, m.toDate = function() {
1724
+ }, E.toDate = function() {
1726
1725
  return new Date(this.valueOf());
1727
- }, m.toJSON = function() {
1726
+ }, E.toJSON = function() {
1728
1727
  return this.isValid() ? this.toISOString() : null;
1729
- }, m.toISOString = function() {
1728
+ }, E.toISOString = function() {
1730
1729
  return this.$d.toISOString();
1731
- }, m.toString = function() {
1730
+ }, E.toString = function() {
1732
1731
  return this.$d.toUTCString();
1733
- }, C;
1732
+ }, F;
1734
1733
  })(), Y = k.prototype;
1735
- return v.prototype = Y, [["$ms", a], ["$s", i], ["$m", s], ["$H", E], ["$W", F], ["$M", p], ["$y", S], ["$D", I]].forEach((function(C) {
1736
- Y[C[1]] = function(m) {
1737
- return this.$g(m, C[0], C[1]);
1734
+ return v.prototype = Y, [["$ms", a], ["$s", i], ["$m", c], ["$H", d], ["$W", f], ["$M", p], ["$y", S], ["$D", I]].forEach((function(F) {
1735
+ Y[F[1]] = function(E) {
1736
+ return this.$g(E, F[0], F[1]);
1738
1737
  };
1739
- })), v.extend = function(C, m) {
1740
- return C.$i || (C(m, k, v), C.$i = !0), v;
1741
- }, v.locale = $, v.isDayjs = R, v.unix = function(C) {
1742
- return v(1e3 * C);
1738
+ })), v.extend = function(F, E) {
1739
+ return F.$i || (F(E, k, v), F.$i = !0), v;
1740
+ }, v.locale = $, v.isDayjs = R, v.unix = function(F) {
1741
+ return v(1e3 * F);
1743
1742
  }, v.en = L[w], v.Ls = L, v.p = {}, v;
1744
1743
  }));
1745
1744
  })(Qe)), Qe.exports;
@@ -1749,10 +1748,10 @@ const Ue = /* @__PURE__ */ ut(ln);
1749
1748
  var Je = { exports: {} }, sn = Je.exports, Lu;
1750
1749
  function cn() {
1751
1750
  return Lu || (Lu = 1, (function(r, e) {
1752
- (function(t, u) {
1753
- r.exports = u();
1751
+ (function(u, t) {
1752
+ r.exports = t();
1754
1753
  })(sn, (function() {
1755
- var t = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, u = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, a = /\d\d/, i = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, E = {}, F = function(g) {
1754
+ var u = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, a = /\d\d/, i = /\d\d?/, c = /\d*[^-_:/,()\s\d]+/, d = {}, f = function(g) {
1756
1755
  return (g = +g) + (g > 68 ? 1900 : 2e3);
1757
1756
  }, h = function(g) {
1758
1757
  return function(T) {
@@ -1765,10 +1764,10 @@ function cn() {
1765
1764
  return M === 0 ? 0 : y[0] === "+" ? -M : M;
1766
1765
  })(g);
1767
1766
  }], x = function(g) {
1768
- var T = E[g];
1767
+ var T = d[g];
1769
1768
  return T && (T.indexOf ? T : T.s.concat(T.f));
1770
1769
  }, S = function(g, T) {
1771
- var y, M = E.meridiem;
1770
+ var y, M = d.meridiem;
1772
1771
  if (M) {
1773
1772
  for (var P = 1; P <= 24; P += 1) if (g.indexOf(M(P, 0, T)) > -1) {
1774
1773
  y = P > 12;
@@ -1776,9 +1775,9 @@ function cn() {
1776
1775
  }
1777
1776
  } else y = g === (T ? "pm" : "PM");
1778
1777
  return y;
1779
- }, I = { A: [s, function(g) {
1778
+ }, I = { A: [c, function(g) {
1780
1779
  this.afternoon = S(g, !1);
1781
- }], a: [s, function(g) {
1780
+ }], a: [c, function(g) {
1782
1781
  this.afternoon = S(g, !0);
1783
1782
  }], Q: [n, function(g) {
1784
1783
  this.month = 3 * (g - 1) + 1;
@@ -1788,54 +1787,54 @@ function cn() {
1788
1787
  this.milliseconds = 10 * +g;
1789
1788
  }], SSS: [/\d{3}/, function(g) {
1790
1789
  this.milliseconds = +g;
1791
- }], s: [i, h("seconds")], ss: [i, h("seconds")], m: [i, h("minutes")], mm: [i, h("minutes")], H: [i, h("hours")], h: [i, h("hours")], HH: [i, h("hours")], hh: [i, h("hours")], D: [i, h("day")], DD: [a, h("day")], Do: [s, function(g) {
1792
- var T = E.ordinal, y = g.match(/\d+/);
1790
+ }], s: [i, h("seconds")], ss: [i, h("seconds")], m: [i, h("minutes")], mm: [i, h("minutes")], H: [i, h("hours")], h: [i, h("hours")], HH: [i, h("hours")], hh: [i, h("hours")], D: [i, h("day")], DD: [a, h("day")], Do: [c, function(g) {
1791
+ var T = d.ordinal, y = g.match(/\d+/);
1793
1792
  if (this.day = y[0], T) for (var M = 1; M <= 31; M += 1) T(M).replace(/\[|\]/g, "") === g && (this.day = M);
1794
- }], w: [i, h("week")], ww: [a, h("week")], M: [i, h("month")], MM: [a, h("month")], MMM: [s, function(g) {
1793
+ }], w: [i, h("week")], ww: [a, h("week")], M: [i, h("month")], MM: [a, h("month")], MMM: [c, function(g) {
1795
1794
  var T = x("months"), y = (x("monthsShort") || T.map((function(M) {
1796
1795
  return M.slice(0, 3);
1797
1796
  }))).indexOf(g) + 1;
1798
1797
  if (y < 1) throw new Error();
1799
1798
  this.month = y % 12 || y;
1800
- }], MMMM: [s, function(g) {
1799
+ }], MMMM: [c, function(g) {
1801
1800
  var T = x("months").indexOf(g) + 1;
1802
1801
  if (T < 1) throw new Error();
1803
1802
  this.month = T % 12 || T;
1804
1803
  }], Y: [/[+-]?\d+/, h("year")], YY: [a, function(g) {
1805
- this.year = F(g);
1804
+ this.year = f(g);
1806
1805
  }], YYYY: [/\d{4}/, h("year")], Z: p, ZZ: p };
1807
1806
  function b(g) {
1808
1807
  var T, y;
1809
- T = g, y = E && E.formats;
1808
+ T = g, y = d && d.formats;
1810
1809
  for (var M = (g = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(v, _, k) {
1811
1810
  var Y = k && k.toUpperCase();
1812
- return _ || y[k] || t[k] || y[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(C, m, o) {
1813
- return m || o.slice(1);
1811
+ return _ || y[k] || u[k] || y[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(F, E, o) {
1812
+ return E || o.slice(1);
1814
1813
  }));
1815
- }))).match(u), P = M.length, w = 0; w < P; w += 1) {
1814
+ }))).match(t), P = M.length, w = 0; w < P; w += 1) {
1816
1815
  var L = M[w], D = I[L], R = D && D[0], $ = D && D[1];
1817
1816
  M[w] = $ ? { regex: R, parser: $ } : L.replace(/^\[|\]$/g, "");
1818
1817
  }
1819
1818
  return function(v) {
1820
1819
  for (var _ = {}, k = 0, Y = 0; k < P; k += 1) {
1821
- var C = M[k];
1822
- if (typeof C == "string") Y += C.length;
1820
+ var F = M[k];
1821
+ if (typeof F == "string") Y += F.length;
1823
1822
  else {
1824
- var m = C.regex, o = C.parser, l = v.slice(Y), c = m.exec(l)[0];
1825
- o.call(_, c), v = v.replace(c, "");
1823
+ var E = F.regex, o = F.parser, l = v.slice(Y), s = E.exec(l)[0];
1824
+ o.call(_, s), v = v.replace(s, "");
1826
1825
  }
1827
1826
  }
1828
- return (function(d) {
1829
- var B = d.afternoon;
1827
+ return (function(m) {
1828
+ var B = m.afternoon;
1830
1829
  if (B !== void 0) {
1831
- var A = d.hours;
1832
- B ? A < 12 && (d.hours += 12) : A === 12 && (d.hours = 0), delete d.afternoon;
1830
+ var A = m.hours;
1831
+ B ? A < 12 && (m.hours += 12) : A === 12 && (m.hours = 0), delete m.afternoon;
1833
1832
  }
1834
1833
  })(_), _;
1835
1834
  };
1836
1835
  }
1837
1836
  return function(g, T, y) {
1838
- y.p.customParseFormat = !0, g && g.parseTwoDigitYear && (F = g.parseTwoDigitYear);
1837
+ y.p.customParseFormat = !0, g && g.parseTwoDigitYear && (f = g.parseTwoDigitYear);
1839
1838
  var M = T.prototype, P = M.parse;
1840
1839
  M.parse = function(w) {
1841
1840
  var L = w.date, D = w.utc, R = w.args;
@@ -1843,25 +1842,25 @@ function cn() {
1843
1842
  var $ = R[1];
1844
1843
  if (typeof $ == "string") {
1845
1844
  var v = R[2] === !0, _ = R[3] === !0, k = v || _, Y = R[2];
1846
- _ && (Y = R[2]), E = this.$locale(), !v && Y && (E = y.Ls[Y]), this.$d = (function(l, c, d, B) {
1845
+ _ && (Y = R[2]), d = this.$locale(), !v && Y && (d = y.Ls[Y]), this.$d = (function(l, s, m, B) {
1847
1846
  try {
1848
- if (["x", "X"].indexOf(c) > -1) return new Date((c === "X" ? 1e3 : 1) * l);
1849
- var A = b(c)(l), O = A.year, N = A.month, G = A.day, W = A.hours, U = A.minutes, j = A.seconds, q = A.milliseconds, Z = A.zone, H = A.week, Q = /* @__PURE__ */ new Date(), J = G || (O || N ? 1 : Q.getDate()), X = O || Q.getFullYear(), K = 0;
1847
+ if (["x", "X"].indexOf(s) > -1) return new Date((s === "X" ? 1e3 : 1) * l);
1848
+ var A = b(s)(l), O = A.year, N = A.month, G = A.day, W = A.hours, U = A.minutes, j = A.seconds, q = A.milliseconds, Z = A.zone, H = A.week, Q = /* @__PURE__ */ new Date(), J = G || (O || N ? 1 : Q.getDate()), X = O || Q.getFullYear(), K = 0;
1850
1849
  O && !N || (K = N > 0 ? N - 1 : Q.getMonth());
1851
1850
  var te, ie = W || 0, ne = U || 0, De = j || 0, ce = q || 0;
1852
- return Z ? new Date(Date.UTC(X, K, J, ie, ne, De, ce + 60 * Z.offset * 1e3)) : d ? new Date(Date.UTC(X, K, J, ie, ne, De, ce)) : (te = new Date(X, K, J, ie, ne, De, ce), H && (te = B(te).week(H).toDate()), te);
1851
+ return Z ? new Date(Date.UTC(X, K, J, ie, ne, De, ce + 60 * Z.offset * 1e3)) : m ? new Date(Date.UTC(X, K, J, ie, ne, De, ce)) : (te = new Date(X, K, J, ie, ne, De, ce), H && (te = B(te).week(H).toDate()), te);
1853
1852
  } catch {
1854
1853
  return /* @__PURE__ */ new Date("");
1855
1854
  }
1856
- })(L, $, D, y), this.init(), Y && Y !== !0 && (this.$L = this.locale(Y).$L), k && L != this.format($) && (this.$d = /* @__PURE__ */ new Date("")), E = {};
1857
- } else if ($ instanceof Array) for (var C = $.length, m = 1; m <= C; m += 1) {
1858
- R[1] = $[m - 1];
1855
+ })(L, $, D, y), this.init(), Y && Y !== !0 && (this.$L = this.locale(Y).$L), k && L != this.format($) && (this.$d = /* @__PURE__ */ new Date("")), d = {};
1856
+ } else if ($ instanceof Array) for (var F = $.length, E = 1; E <= F; E += 1) {
1857
+ R[1] = $[E - 1];
1859
1858
  var o = y.apply(this, R);
1860
1859
  if (o.isValid()) {
1861
1860
  this.$d = o.$d, this.$L = o.$L, this.init();
1862
1861
  break;
1863
1862
  }
1864
- m === C && (this.$d = /* @__PURE__ */ new Date(""));
1863
+ E === F && (this.$d = /* @__PURE__ */ new Date(""));
1865
1864
  }
1866
1865
  else P.call(this, w);
1867
1866
  };
@@ -1885,8 +1884,8 @@ function mu(r) {
1885
1884
  return xu(r) ? Ue(r, "YYYYMMDD", !0).format("YYYY-MM-DD") : r;
1886
1885
  }
1887
1886
  function Tu(r) {
1888
- const e = r.trim(), t = e.slice(0, 8);
1889
- return xu(t) ? mu(t) : e.slice(0, 10);
1887
+ const e = r.trim(), u = e.slice(0, 8);
1888
+ return xu(u) ? mu(u) : e.slice(0, 10);
1890
1889
  }
1891
1890
  function pt(r, e) {
1892
1891
  switch (e) {
@@ -1910,8 +1909,8 @@ function pt(r, e) {
1910
1909
  return oe;
1911
1910
  }
1912
1911
  }
1913
- function vt(r, e, t) {
1914
- return e === "npv" ? Ru(r?.npv, t) : e === "forwardPrice" ? Ru(r?.forwardPrice, t, 8) : Su(r?.discountFactor, 4);
1912
+ function vt(r, e, u) {
1913
+ return e === "npv" ? Ru(r?.npv, u) : e === "forwardPrice" ? Ru(r?.forwardPrice, u, 8) : Su(r?.discountFactor, 4);
1915
1914
  }
1916
1915
  const En = ["npv", "forwardPrice", "discountFactor"], Fn = {
1917
1916
  suppressHeaderMenuButton: !0,
@@ -1940,57 +1939,57 @@ const En = ["npv", "forwardPrice", "discountFactor"], Fn = {
1940
1939
  }) => r.data?.kind === "error";
1941
1940
  function gn(r) {
1942
1941
  const e = z.c(3), {
1943
- data: t
1944
- } = r, u = String(t?.instrumentCode ?? "定价计算失败");
1942
+ data: u
1943
+ } = r, t = String(u?.instrumentCode ?? "定价计算失败");
1945
1944
  let n;
1946
1945
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
1947
1946
  icon: V.gridErrorIcon,
1948
1947
  section: V.gridErrorSection
1949
1948
  }, e[0] = n) : n = e[0];
1950
1949
  let a;
1951
- return e[1] !== u ? (a = /* @__PURE__ */ f(Ge, { className: V.gridErrorAlert, classNames: n, type: "error", showIcon: !0, title: /* @__PURE__ */ Me("span", { className: V.gridErrorMessage, title: u, children: [
1950
+ return e[1] !== t ? (a = /* @__PURE__ */ C(Ge, { className: V.gridErrorAlert, classNames: n, type: "error", showIcon: !0, title: /* @__PURE__ */ Me("span", { className: V.gridErrorMessage, title: t, children: [
1952
1951
  "计算失败,失败原因:",
1953
- u
1954
- ] }) }), e[1] = u, e[2] = a) : a = e[2], a;
1952
+ t
1953
+ ] }) }), e[1] = t, e[2] = a) : a = e[2], a;
1955
1954
  }
1956
1955
  function pn(r) {
1957
1956
  const e = z.c(15), {
1958
- contract: t,
1959
- calculation: u,
1957
+ contract: u,
1958
+ calculation: t,
1960
1959
  loading: n
1961
1960
  } = r, a = ee(null), i = ee(null);
1962
- let s;
1963
- e[0] !== t ? (s = [{
1961
+ let c;
1962
+ e[0] !== u ? (c = [{
1964
1963
  id: "contract",
1965
1964
  kind: "contract",
1966
- ...Object.fromEntries(du.map((y) => [y.key, y.kind === "contract" ? pt(t, y.key) : oe]))
1967
- }], e[0] = t, e[1] = s) : s = e[1];
1968
- const E = s;
1969
- let F;
1970
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = du.map(Dn), e[2] = F) : F = e[2];
1971
- const h = F;
1965
+ ...Object.fromEntries(du.map((y) => [y.key, y.kind === "contract" ? pt(u, y.key) : oe]))
1966
+ }], e[0] = u, e[1] = c) : c = e[1];
1967
+ const d = c;
1968
+ let f;
1969
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = du.map(Dn), e[2] = f) : f = e[2];
1970
+ const h = f;
1972
1971
  let p;
1973
- e[3] !== u || e[4] !== t.currency ? (p = (y) => {
1972
+ e[3] !== t || e[4] !== u.currency ? (p = (y) => {
1974
1973
  const M = y.getRowNode("contract"), P = M?.data ? {
1975
1974
  ...M.data
1976
1975
  } : null;
1977
1976
  if (En.forEach((w) => {
1978
- const L = u?.status === "success" ? vt(u.result, w, t.currency) : oe;
1977
+ const L = t?.status === "success" ? vt(t.result, w, u.currency) : oe;
1979
1978
  M?.setDataValue(w, L), P && (P[w] = L);
1980
1979
  }), M && P && M.setData(P), i.current && (y.applyTransaction({
1981
1980
  remove: [i.current]
1982
- }), i.current = null), u?.status === "error") {
1981
+ }), i.current = null), t?.status === "error") {
1983
1982
  const w = {
1984
1983
  id: "error",
1985
1984
  kind: "error",
1986
- instrumentCode: u.message ?? "定价计算失败"
1985
+ instrumentCode: t.message ?? "定价计算失败"
1987
1986
  };
1988
1987
  y.applyTransaction({
1989
1988
  add: [w]
1990
1989
  }), i.current = w;
1991
1990
  }
1992
1991
  y.resetRowHeights();
1993
- }, e[3] = u, e[4] = t.currency, e[5] = p) : p = e[5];
1992
+ }, e[3] = t, e[4] = u.currency, e[5] = p) : p = e[5];
1994
1993
  const x = p;
1995
1994
  let S, I;
1996
1995
  e[6] !== x ? (S = () => {
@@ -2002,7 +2001,7 @@ function pn(r) {
2002
2001
  }, e[9] = x, e[10] = b) : b = e[10];
2003
2002
  const g = b;
2004
2003
  let T;
2005
- return e[11] !== n || e[12] !== g || e[13] !== E ? (T = /* @__PURE__ */ f("div", { className: V.fixedGrid, "aria-label": "单笔合约定价结果", children: /* @__PURE__ */ f(bu, { rowData: E, columnDefs: h, defaultColDef: Fn, onGridReady: g, getRowId: hn, isFullWidthRow: fn, fullWidthCellRenderer: gn, getRowHeight: vn, headerHeight: 32, rowHeight: 32, autoSizeStrategy: Cn, autoSizePadding: 16, suppressColumnVirtualisation: !0, tooltipShowMode: "whenTruncated", tooltipShowDelay: 0, domLayout: "autoHeight", pagination: !1, loading: n, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }) }), e[11] = n, e[12] = g, e[13] = E, e[14] = T) : T = e[14], T;
2004
+ return e[11] !== n || e[12] !== g || e[13] !== d ? (T = /* @__PURE__ */ C("div", { className: V.fixedGrid, "aria-label": "单笔合约定价结果", children: /* @__PURE__ */ C(bu, { rowData: d, columnDefs: h, defaultColDef: Fn, onGridReady: g, getRowId: hn, isFullWidthRow: fn, fullWidthCellRenderer: gn, getRowHeight: vn, headerHeight: 32, rowHeight: 32, autoSizeStrategy: Cn, autoSizePadding: 16, suppressColumnVirtualisation: !0, tooltipShowMode: "whenTruncated", tooltipShowDelay: 0, domLayout: "autoHeight", pagination: !1, loading: n, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }) }), e[11] = n, e[12] = g, e[13] = d, e[14] = T) : T = e[14], T;
2006
2005
  }
2007
2006
  function vn(r) {
2008
2007
  return r.data?.kind === "error" ? 28 : 32;
@@ -2021,13 +2020,13 @@ function Dn(r) {
2021
2020
  sortable: !1,
2022
2021
  resizable: !1,
2023
2022
  suppressMovable: !0,
2024
- cellRenderer: (e) => r.kind === "result" ? /* @__PURE__ */ f(Ft, { value: String(e.value ?? oe) }) : /* @__PURE__ */ f(Ct, { field: r.key, value: String(e.value ?? oe) })
2023
+ cellRenderer: (e) => r.kind === "result" ? /* @__PURE__ */ C(Ft, { value: String(e.value ?? oe) }) : /* @__PURE__ */ C(Ct, { field: r.key, value: String(e.value ?? oe) })
2025
2024
  };
2026
2025
  }
2027
2026
  const _u = ue((r, e) => {
2028
- const t = z.c(3);
2029
- let u;
2030
- return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(jt, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
2027
+ const u = z.c(3);
2028
+ let t;
2029
+ return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ C(jt, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
2031
2030
  });
2032
2031
  _u.displayName = "GZTooltip";
2033
2032
  const Bn = ["npv", "forwardPrice", "discountFactor"], yn = {
@@ -2042,20 +2041,20 @@ function eu(r) {
2042
2041
  }
2043
2042
  function bn(r) {
2044
2043
  const e = z.c(34), {
2045
- single: t,
2046
- contracts: u,
2044
+ single: u,
2045
+ contracts: t,
2047
2046
  results: n,
2048
2047
  loading: a
2049
- } = r, i = t === void 0 ? !1 : t, s = ee(null), E = ee(null), F = i ? mr : du;
2048
+ } = r, i = u === void 0 ? !1 : u, c = ee(null), d = ee(null), f = i ? mr : du;
2050
2049
  let h;
2051
- if (e[0] !== u || e[1] !== F) {
2050
+ if (e[0] !== t || e[1] !== f) {
2052
2051
  let o;
2053
- e[3] !== u ? (o = (l) => ({
2052
+ e[3] !== t ? (o = (l) => ({
2054
2053
  id: l.key,
2055
2054
  label: l.label,
2056
2055
  kind: l.kind,
2057
- ...Object.fromEntries(u.map((c) => [c.contractId, l.kind === "contract" ? pt(c, l.key) : Nu]))
2058
- }), e[3] = u, e[4] = o) : o = e[4], h = F.map(o), e[0] = u, e[1] = F, e[2] = h;
2056
+ ...Object.fromEntries(t.map((s) => [s.contractId, l.kind === "contract" ? pt(s, l.key) : Nu]))
2057
+ }), e[3] = t, e[4] = o) : o = e[4], h = f.map(o), e[0] = t, e[1] = f, e[2] = h;
2059
2058
  } else
2060
2059
  h = e[2];
2061
2060
  const p = h, x = i ? "" : "字段", S = i ? 160 : 180, I = i ? 160 : 180;
@@ -2074,12 +2073,12 @@ function bn(r) {
2074
2073
  cellClass: V.fieldCell
2075
2074
  }, e[5] = x, e[6] = S, e[7] = I, e[8] = b) : b = e[8];
2076
2075
  let g;
2077
- if (e[9] !== u || e[10] !== i || e[11] !== b) {
2076
+ if (e[9] !== t || e[10] !== i || e[11] !== b) {
2078
2077
  let o;
2079
- e[13] !== i ? (o = (l, c) => ({
2078
+ e[13] !== i ? (o = (l, s) => ({
2080
2079
  field: l.contractId,
2081
2080
  colId: l.contractId,
2082
- headerName: String(c + 1).padStart(3, "0"),
2081
+ headerName: String(s + 1).padStart(3, "0"),
2083
2082
  headerClass: i ? V.singleContractHeader : void 0,
2084
2083
  flex: 1,
2085
2084
  width: 180,
@@ -2090,20 +2089,20 @@ function bn(r) {
2090
2089
  spanRows: Tn,
2091
2090
  cellClass: xn,
2092
2091
  cellRenderer: Sn
2093
- }), e[13] = i, e[14] = o) : o = e[14], g = [b, ...u.map(o)], e[9] = u, e[10] = i, e[11] = b, e[12] = g;
2092
+ }), e[13] = i, e[14] = o) : o = e[14], g = [b, ...t.map(o)], e[9] = t, e[10] = i, e[11] = b, e[12] = g;
2094
2093
  } else
2095
2094
  g = e[12];
2096
2095
  const T = g;
2097
2096
  let y;
2098
- e[15] !== u || e[16] !== n ? (y = (o) => {
2097
+ e[15] !== t || e[16] !== n ? (y = (o) => {
2099
2098
  Bn.forEach((l) => {
2100
- const c = o.getRowNode(l);
2101
- if (!c?.data)
2099
+ const s = o.getRowNode(l);
2100
+ if (!s?.data)
2102
2101
  return;
2103
- const d = {
2104
- ...c.data
2102
+ const m = {
2103
+ ...s.data
2105
2104
  };
2106
- u.forEach((B) => {
2105
+ t.forEach((B) => {
2107
2106
  const A = n[B.contractId];
2108
2107
  let O = Nu;
2109
2108
  A?.status === "success" ? O = {
@@ -2113,20 +2112,20 @@ function bn(r) {
2113
2112
  } : A?.status === "error" && (O = {
2114
2113
  kind: "error",
2115
2114
  display: A.message ?? "定价计算失败"
2116
- }), c.setDataValue(B.contractId, O), d[B.contractId] = O;
2117
- }), c.setData(d);
2115
+ }), s.setDataValue(B.contractId, O), m[B.contractId] = O;
2116
+ }), s.setData(m);
2118
2117
  }), o.refreshCells({
2119
2118
  force: !0
2120
2119
  }), o.resetRowHeights();
2121
- }, e[15] = u, e[16] = n, e[17] = y) : y = e[17];
2120
+ }, e[15] = t, e[16] = n, e[17] = y) : y = e[17];
2122
2121
  const M = y;
2123
2122
  let P, w;
2124
2123
  e[18] !== M ? (P = () => {
2125
- E.current && M(E.current);
2124
+ d.current && M(d.current);
2126
2125
  }, w = [M], e[18] = M, e[19] = P, e[20] = w) : (P = e[19], w = e[20]), Be(P, w);
2127
2126
  let L;
2128
2127
  e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = (o) => {
2129
- s.current?.style.setProperty("--pricing-horizontal-scroll-left", `${o}px`);
2128
+ c.current?.style.setProperty("--pricing-horizontal-scroll-left", `${o}px`);
2130
2129
  }, e[21] = L) : L = e[21];
2131
2130
  const D = L;
2132
2131
  let R;
@@ -2136,80 +2135,80 @@ function bn(r) {
2136
2135
  const $ = R;
2137
2136
  let v;
2138
2137
  e[23] !== M ? (v = (o) => {
2139
- E.current = o.api, D(o.api.getHorizontalPixelRange().left), M(o.api);
2138
+ d.current = o.api, D(o.api.getHorizontalPixelRange().left), M(o.api);
2140
2139
  }, e[23] = M, e[24] = v) : v = e[24];
2141
2140
  const _ = v, k = `${V.multipleGrid}${i ? ` ${V.singleGrid}` : ""}`, Y = i ? "单笔合约定价结果" : "多笔合约定价结果";
2142
- let C;
2143
- e[25] !== T || e[26] !== a || e[27] !== _ || e[28] !== p ? (C = /* @__PURE__ */ f(bu, { rowData: p, columnDefs: T, defaultColDef: yn, onGridReady: _, onBodyScroll: $, getRowId: An, headerHeight: 32, rowHeight: 28, domLayout: "autoHeight", pagination: !1, loading: a, enableCellSpan: !0, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }), e[25] = T, e[26] = a, e[27] = _, e[28] = p, e[29] = C) : C = e[29];
2144
- let m;
2145
- return e[30] !== k || e[31] !== Y || e[32] !== C ? (m = /* @__PURE__ */ f("div", { ref: s, className: k, "aria-label": Y, children: C }), e[30] = k, e[31] = Y, e[32] = C, e[33] = m) : m = e[33], m;
2141
+ let F;
2142
+ e[25] !== T || e[26] !== a || e[27] !== _ || e[28] !== p ? (F = /* @__PURE__ */ C(bu, { rowData: p, columnDefs: T, defaultColDef: yn, onGridReady: _, onBodyScroll: $, getRowId: An, headerHeight: 32, rowHeight: 28, domLayout: "autoHeight", pagination: !1, loading: a, enableCellSpan: !0, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }), e[25] = T, e[26] = a, e[27] = _, e[28] = p, e[29] = F) : F = e[29];
2143
+ let E;
2144
+ return e[30] !== k || e[31] !== Y || e[32] !== F ? (E = /* @__PURE__ */ C("div", { ref: c, className: k, "aria-label": Y, children: F }), e[30] = k, e[31] = Y, e[32] = F, e[33] = E) : E = e[33], E;
2146
2145
  }
2147
2146
  function An(r) {
2148
2147
  return r.data.id;
2149
2148
  }
2150
2149
  function Sn(r) {
2151
- const e = r.data?.id, t = r.value;
2152
- if (eu(t)) {
2153
- if (t.kind === "error") {
2154
- const u = `计算失败,失败原因:${t.display}`;
2155
- return /* @__PURE__ */ f(_u, { title: u, children: /* @__PURE__ */ f("div", { className: V.mergedErrorCell, children: /* @__PURE__ */ f("span", { className: V.mergedErrorText, children: u }) }) });
2150
+ const e = r.data?.id, u = r.value;
2151
+ if (eu(u)) {
2152
+ if (u.kind === "error") {
2153
+ const t = `计算失败,失败原因:${u.display}`;
2154
+ return /* @__PURE__ */ C(_u, { title: t, children: /* @__PURE__ */ C("div", { className: V.mergedErrorCell, children: /* @__PURE__ */ C("span", { className: V.mergedErrorText, children: t }) }) });
2156
2155
  }
2157
- return /* @__PURE__ */ f(Ft, { value: t.display, rawValue: t.rawValue });
2156
+ return /* @__PURE__ */ C(Ft, { value: u.display, rawValue: u.rawValue });
2158
2157
  }
2159
- return e ? /* @__PURE__ */ f(Ct, { field: e, value: String(t ?? oe) }) : null;
2158
+ return e ? /* @__PURE__ */ C(Ct, { field: e, value: String(u ?? oe) }) : null;
2160
2159
  }
2161
2160
  function xn(r) {
2162
2161
  return eu(r.value) && r.value.kind === "error" ? V.mergedErrorGridCell : void 0;
2163
2162
  }
2164
2163
  function Tn(r) {
2165
- const e = r.valueA, t = r.valueB;
2166
- return eu(e) && eu(t) && e.kind === "error" && t.kind === "error" && e.display === t.display;
2164
+ const e = r.valueA, u = r.valueB;
2165
+ return eu(e) && eu(u) && e.kind === "error" && u.kind === "error" && e.display === u.display;
2167
2166
  }
2168
2167
  const ht = ue((r, e) => {
2169
- const t = z.c(3);
2170
- let u;
2171
- return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe.MonthPicker, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
2168
+ const u = z.c(3);
2169
+ let t;
2170
+ return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ C(Pe.MonthPicker, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
2172
2171
  });
2173
2172
  ht.displayName = "GZMonthPicker";
2174
2173
  const Dt = ue((r, e) => {
2175
- const t = z.c(3);
2176
- let u;
2177
- return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe.QuarterPicker, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
2174
+ const u = z.c(3);
2175
+ let t;
2176
+ return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ C(Pe.QuarterPicker, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
2178
2177
  });
2179
2178
  Dt.displayName = "GZQuarterPicker";
2180
2179
  const Bt = ue((r, e) => {
2181
- const t = z.c(7);
2182
- let u, n;
2183
- t[0] !== r ? ({
2184
- children: u,
2180
+ const u = z.c(7);
2181
+ let t, n;
2182
+ u[0] !== r ? ({
2183
+ children: t,
2185
2184
  ...n
2186
- } = r, t[0] = r, t[1] = u, t[2] = n) : (u = t[1], n = t[2]);
2185
+ } = r, u[0] = r, u[1] = t, u[2] = n) : (t = u[1], n = u[2]);
2187
2186
  let a;
2188
- return t[3] !== u || t[4] !== e || t[5] !== n ? (a = /* @__PURE__ */ f(Pe.RangePicker, { ref: e, ...n, children: u }), t[3] = u, t[4] = e, t[5] = n, t[6] = a) : a = t[6], a;
2187
+ return u[3] !== t || u[4] !== e || u[5] !== n ? (a = /* @__PURE__ */ C(Pe.RangePicker, { ref: e, ...n, children: t }), u[3] = t, u[4] = e, u[5] = n, u[6] = a) : a = u[6], a;
2189
2188
  });
2190
2189
  Bt.displayName = "GZRangePicker";
2191
2190
  const yt = ue((r, e) => {
2192
- const t = z.c(3);
2193
- let u;
2194
- return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe.TimePicker, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
2191
+ const u = z.c(3);
2192
+ let t;
2193
+ return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ C(Pe.TimePicker, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
2195
2194
  });
2196
2195
  yt.displayName = "GZTimePicker";
2197
2196
  const bt = ue((r, e) => {
2198
- const t = z.c(3);
2199
- let u;
2200
- return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe.WeekPicker, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
2197
+ const u = z.c(3);
2198
+ let t;
2199
+ return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ C(Pe.WeekPicker, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
2201
2200
  });
2202
2201
  bt.displayName = "GZWeekPicker";
2203
2202
  const At = ue((r, e) => {
2204
- const t = z.c(3);
2205
- let u;
2206
- return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe.YearPicker, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
2203
+ const u = z.c(3);
2204
+ let t;
2205
+ return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ C(Pe.YearPicker, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
2207
2206
  });
2208
2207
  At.displayName = "GZYearPicker";
2209
2208
  const _n = ue((r, e) => {
2210
- const t = z.c(3);
2211
- let u;
2212
- return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe, { format: "YYYY-MM-DD", ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
2209
+ const u = z.c(3);
2210
+ let t;
2211
+ return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ C(Pe, { format: "YYYY-MM-DD", ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
2213
2212
  }), ke = _n;
2214
2213
  ke.RangePicker = Bt;
2215
2214
  ke.WeekPicker = bt;
@@ -2219,56 +2218,56 @@ ke.QuarterPicker = Dt;
2219
2218
  ke.TimePicker = yt;
2220
2219
  ke.displayName = "GZDatePicker";
2221
2220
  const St = ue((r, e) => {
2222
- const t = z.c(13);
2223
- let u, n, a;
2224
- t[0] !== r ? ({
2225
- children: u,
2221
+ const u = z.c(13);
2222
+ let t, n, a;
2223
+ u[0] !== r ? ({
2224
+ children: t,
2226
2225
  itemBottomSpace: n,
2227
2226
  ...a
2228
- } = r, t[0] = r, t[1] = u, t[2] = n, t[3] = a) : (u = t[1], n = t[2], a = t[3]);
2227
+ } = r, u[0] = r, u[1] = t, u[2] = n, u[3] = a) : (t = u[1], n = u[2], a = u[3]);
2229
2228
  let i;
2230
- t[4] !== n ? (i = n === void 0 ? void 0 : {
2229
+ u[4] !== n ? (i = n === void 0 ? void 0 : {
2231
2230
  components: {
2232
2231
  Form: {
2233
2232
  itemMarginBottom: n
2234
2233
  }
2235
2234
  }
2236
- }, t[4] = n, t[5] = i) : i = t[5];
2237
- const s = i, E = a;
2238
- let F;
2239
- t[6] !== u || t[7] !== e || t[8] !== E ? (F = /* @__PURE__ */ f(we, { ref: e, ...E, children: u }), t[6] = u, t[7] = e, t[8] = E, t[9] = F) : F = t[9];
2235
+ }, u[4] = n, u[5] = i) : i = u[5];
2236
+ const c = i, d = a;
2237
+ let f;
2238
+ u[6] !== t || u[7] !== e || u[8] !== d ? (f = /* @__PURE__ */ C(we, { ref: e, ...d, children: t }), u[6] = t, u[7] = e, u[8] = d, u[9] = f) : f = u[9];
2240
2239
  let h;
2241
- return t[10] !== F || t[11] !== s ? (h = /* @__PURE__ */ f(Xt, { theme: s, children: F }), t[10] = F, t[11] = s, t[12] = h) : h = t[12], h;
2240
+ return u[10] !== f || u[11] !== c ? (h = /* @__PURE__ */ C(Xt, { theme: c, children: f }), u[10] = f, u[11] = c, u[12] = h) : h = u[12], h;
2242
2241
  });
2243
2242
  St.displayName = "GZForm";
2244
2243
  const xt = (r) => {
2245
2244
  const e = z.c(6);
2246
- let t, u;
2245
+ let u, t;
2247
2246
  e[0] !== r ? ({
2248
- children: t,
2249
- ...u
2250
- } = r, e[0] = r, e[1] = t, e[2] = u) : (t = e[1], u = e[2]);
2251
- const n = u;
2247
+ children: u,
2248
+ ...t
2249
+ } = r, e[0] = r, e[1] = u, e[2] = t) : (u = e[1], t = e[2]);
2250
+ const n = t;
2252
2251
  let a;
2253
- return e[3] !== t || e[4] !== n ? (a = /* @__PURE__ */ f(we.Item, { ...n, children: t }), e[3] = t, e[4] = n, e[5] = a) : a = e[5], a;
2252
+ return e[3] !== u || e[4] !== n ? (a = /* @__PURE__ */ C(we.Item, { ...n, children: u }), e[3] = u, e[4] = n, e[5] = a) : a = e[5], a;
2254
2253
  };
2255
2254
  xt.displayName = "GZFormItem";
2256
2255
  const Tt = (r) => {
2257
2256
  const e = z.c(2);
2258
- let t;
2259
- return e[0] !== r ? (t = /* @__PURE__ */ f(we.List, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
2257
+ let u;
2258
+ return e[0] !== r ? (u = /* @__PURE__ */ C(we.List, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
2260
2259
  };
2261
2260
  Tt.displayName = "GZFormList";
2262
2261
  const _t = (r) => {
2263
2262
  const e = z.c(2);
2264
- let t;
2265
- return e[0] !== r ? (t = /* @__PURE__ */ f(we.ErrorList, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
2263
+ let u;
2264
+ return e[0] !== r ? (u = /* @__PURE__ */ C(we.ErrorList, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
2266
2265
  };
2267
2266
  _t.displayName = "GZErrorList";
2268
2267
  const Mt = (r) => {
2269
2268
  const e = z.c(2);
2270
- let t;
2271
- return e[0] !== r ? (t = /* @__PURE__ */ f(we.Provider, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
2269
+ let u;
2270
+ return e[0] !== r ? (u = /* @__PURE__ */ C(we.Provider, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
2272
2271
  };
2273
2272
  Mt.displayName = "GZFormProvider";
2274
2273
  const ye = St;
@@ -2280,46 +2279,46 @@ ye.useForm = we.useForm;
2280
2279
  ye.useFormInstance = we.useFormInstance;
2281
2280
  ye.useWatch = we.useWatch;
2282
2281
  const wt = ue((r, e) => {
2283
- const t = z.c(7);
2284
- let u, n;
2285
- t[0] !== r ? ({
2286
- children: u,
2282
+ const u = z.c(7);
2283
+ let t, n;
2284
+ u[0] !== r ? ({
2285
+ children: t,
2287
2286
  ...n
2288
- } = r, t[0] = r, t[1] = u, t[2] = n) : (u = t[1], n = t[2]);
2287
+ } = r, u[0] = r, u[1] = t, u[2] = n) : (t = u[1], n = u[2]);
2289
2288
  const a = e;
2290
2289
  let i;
2291
- return t[3] !== u || t[4] !== n || t[5] !== a ? (i = /* @__PURE__ */ f(gu.Option, { ref: a, ...n, children: u }), t[3] = u, t[4] = n, t[5] = a, t[6] = i) : i = t[6], i;
2290
+ return u[3] !== t || u[4] !== n || u[5] !== a ? (i = /* @__PURE__ */ C(gu.Option, { ref: a, ...n, children: t }), u[3] = t, u[4] = n, u[5] = a, u[6] = i) : i = u[6], i;
2292
2291
  });
2293
2292
  wt.displayName = "GZSelectOption";
2294
2293
  const kt = ue((r, e) => {
2295
- const t = z.c(7);
2296
- let u, n;
2297
- t[0] !== r ? ({
2298
- children: u,
2294
+ const u = z.c(7);
2295
+ let t, n;
2296
+ u[0] !== r ? ({
2297
+ children: t,
2299
2298
  ...n
2300
- } = r, t[0] = r, t[1] = u, t[2] = n) : (u = t[1], n = t[2]);
2299
+ } = r, u[0] = r, u[1] = t, u[2] = n) : (t = u[1], n = u[2]);
2301
2300
  const a = e;
2302
2301
  let i;
2303
- return t[3] !== u || t[4] !== n || t[5] !== a ? (i = /* @__PURE__ */ f(gu.OptGroup, { ref: a, ...n, children: u }), t[3] = u, t[4] = n, t[5] = a, t[6] = i) : i = t[6], i;
2302
+ return u[3] !== t || u[4] !== n || u[5] !== a ? (i = /* @__PURE__ */ C(gu.OptGroup, { ref: a, ...n, children: t }), u[3] = t, u[4] = n, u[5] = a, u[6] = i) : i = u[6], i;
2304
2303
  });
2305
2304
  kt.displayName = "GZSelectOptGroup";
2306
2305
  const Mn = ue((r, e) => {
2307
- const t = z.c(3), u = e;
2306
+ const u = z.c(3), t = e;
2308
2307
  let n;
2309
- return t[0] !== r || t[1] !== u ? (n = /* @__PURE__ */ f(gu, { ref: u, ...r }), t[0] = r, t[1] = u, t[2] = n) : n = t[2], n;
2308
+ return u[0] !== r || u[1] !== t ? (n = /* @__PURE__ */ C(gu, { ref: t, ...r }), u[0] = r, u[1] = t, u[2] = n) : n = u[2], n;
2310
2309
  }), Oe = Mn;
2311
2310
  Oe.Option = wt;
2312
2311
  Oe.OptGroup = kt;
2313
2312
  Oe.displayName = "GZSelect";
2314
2313
  function Ou(r, e) {
2315
2314
  if (r?.source !== "custom" || !e) return;
2316
- const t = r.executeDay ? Tu(r.executeDay) : void 0;
2317
- return !t || t !== e ? "曲线日与估值日非同一日" : void 0;
2315
+ const u = r.executeDay ? Tu(r.executeDay) : void 0;
2316
+ return !u || u !== e ? "曲线日与估值日非同一日" : void 0;
2318
2317
  }
2319
2318
  function wn(r) {
2320
2319
  const e = {};
2321
- return Object.keys(Iu).forEach((t) => {
2322
- r[t] || (e[t] = [Iu[t]]);
2320
+ return Object.keys(Iu).forEach((u) => {
2321
+ r[u] || (e[u] = [Iu[u]]);
2323
2322
  }), r.valuationDate && !ft(r.valuationDate) && (e.valuationDate = ["估值日格式必须为 YYYY-MM-DD"]), e;
2324
2323
  }
2325
2324
  function kn(r, e) {
@@ -2329,16 +2328,16 @@ function kn(r, e) {
2329
2328
  valid: !0,
2330
2329
  message: null
2331
2330
  };
2332
- const t = e.map((a) => a.settleDate);
2333
- if (t.some((a) => !xu(a)))
2331
+ const u = e.map((a) => a.settleDate);
2332
+ if (u.some((a) => !xu(a)))
2334
2333
  return {
2335
2334
  latestSettlementDate: null,
2336
2335
  valid: !0,
2337
2336
  message: null
2338
2337
  };
2339
- const u = t.reduce((a, i) => i > a ? i : a), n = gt(r) <= u;
2338
+ const t = u.reduce((a, i) => i > a ? i : a), n = gt(r) <= t;
2340
2339
  return {
2341
- latestSettlementDate: u,
2340
+ latestSettlementDate: t,
2342
2341
  valid: n,
2343
2342
  message: n ? null : "估值日必须小于或等于所选合约最久的结算支付日"
2344
2343
  };
@@ -2349,8 +2348,8 @@ function Ze(r) {
2349
2348
  help: r?.join(";")
2350
2349
  };
2351
2350
  }
2352
- function $t(r, e, t = "") {
2353
- return r && e ? `${r}(${e})` : r || e || t;
2351
+ function $t(r, e, u = "") {
2352
+ return r && e ? `${r}(${e})` : r || e || u;
2354
2353
  }
2355
2354
  function Eu(r) {
2356
2355
  if (!r) return "";
@@ -2359,33 +2358,33 @@ function Eu(r) {
2359
2358
  }
2360
2359
  function je(r) {
2361
2360
  const e = z.c(7), {
2362
- text: t
2363
- } = r, u = ee(null), [n, a] = ze(!1);
2361
+ text: u
2362
+ } = r, t = ee(null), [n, a] = ze(!1);
2364
2363
  let i;
2365
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = (F) => {
2366
- const h = u.current, p = !!(h && h.scrollWidth > h.clientWidth);
2367
- a(F && p);
2364
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = (f) => {
2365
+ const h = t.current, p = !!(h && h.scrollWidth > h.clientWidth);
2366
+ a(f && p);
2368
2367
  }, e[0] = i) : i = e[0];
2369
- let s;
2370
- e[1] !== t ? (s = /* @__PURE__ */ f("span", { ref: u, className: V.contextFormLabelText, children: t }), e[1] = t, e[2] = s) : s = e[2];
2371
- let E;
2372
- return e[3] !== s || e[4] !== t || e[5] !== n ? (E = /* @__PURE__ */ f(_u, { title: t, open: n, onOpenChange: i, children: s }), e[3] = s, e[4] = t, e[5] = n, e[6] = E) : E = e[6], E;
2368
+ let c;
2369
+ e[1] !== u ? (c = /* @__PURE__ */ C("span", { ref: t, className: V.contextFormLabelText, children: u }), e[1] = u, e[2] = c) : c = e[2];
2370
+ let d;
2371
+ return e[3] !== c || e[4] !== u || e[5] !== n ? (d = /* @__PURE__ */ C(_u, { title: u, open: n, onOpenChange: i, children: c }), e[3] = c, e[4] = u, e[5] = n, e[6] = d) : d = e[6], d;
2373
2372
  }
2374
2373
  function $n(r) {
2375
2374
  const e = z.c(110), {
2376
- mode: t,
2377
- layout: u,
2375
+ mode: u,
2376
+ layout: t,
2378
2377
  value: n,
2379
2378
  errors: a,
2380
2379
  environments: i,
2381
- discountCurves: s,
2382
- carbonForwardCurves: E,
2383
- environmentsLoading: F,
2380
+ discountCurves: c,
2381
+ carbonForwardCurves: d,
2382
+ environmentsLoading: f,
2384
2383
  curvesLoading: h,
2385
2384
  curvesDisabled: p,
2386
2385
  disabled: x,
2387
2386
  onChange: S
2388
- } = r, I = t === "single" && u === "vertical", b = t === "single" && u === "horizontal", g = t === "multiple" ? V.multiple : I ? V.single : V.fixedSingle;
2387
+ } = r, I = u === "single" && t === "vertical", b = u === "single" && t === "horizontal", g = u === "multiple" ? V.multiple : I ? V.single : V.fixedSingle;
2389
2388
  let T;
2390
2389
  e[0] !== i ? (T = i.map(Pn), e[0] = i, e[1] = T) : T = e[1];
2391
2390
  const y = T, M = In;
@@ -2411,46 +2410,46 @@ function $n(r) {
2411
2410
  }, e[3] = w, e[4] = L) : L = e[4];
2412
2411
  const D = L;
2413
2412
  let R;
2414
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ f(je, { text: "碳金融远期价格曲线" }), e[5] = R) : R = e[5];
2413
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ C(je, { text: "碳金融远期价格曲线" }), e[5] = R) : R = e[5];
2415
2414
  let $;
2416
2415
  e[6] !== n.carbonForwardCurve || e[7] !== n.valuationDate ? ($ = Ou(n.carbonForwardCurve, n.valuationDate), e[6] = n.carbonForwardCurve, e[7] = n.valuationDate, e[8] = $) : $ = e[8];
2417
2416
  let v;
2418
2417
  e[9] !== a.carbonForwardCurve ? (v = Ze(a.carbonForwardCurve), e[9] = a.carbonForwardCurve, e[10] = v) : v = e[10];
2419
2418
  const _ = x || p;
2420
2419
  let k;
2421
- e[11] !== E ? (k = M(E), e[11] = E, e[12] = k) : k = e[12];
2420
+ e[11] !== d ? (k = M(d), e[11] = d, e[12] = k) : k = e[12];
2422
2421
  const Y = n.carbonForwardCurve?.key;
2423
- let C;
2424
- e[13] !== n.carbonForwardCurve ? (C = () => Eu(n.carbonForwardCurve), e[13] = n.carbonForwardCurve, e[14] = C) : C = e[14];
2425
- let m;
2426
- e[15] !== E || e[16] !== S ? (m = (le) => S("carbonForwardCurve", E.find((se) => se.key === le) ?? null), e[15] = E, e[16] = S, e[17] = m) : m = e[17];
2422
+ let F;
2423
+ e[13] !== n.carbonForwardCurve ? (F = () => Eu(n.carbonForwardCurve), e[13] = n.carbonForwardCurve, e[14] = F) : F = e[14];
2424
+ let E;
2425
+ e[15] !== d || e[16] !== S ? (E = (le) => S("carbonForwardCurve", d.find((se) => se.key === le) ?? null), e[15] = d, e[16] = S, e[17] = E) : E = e[17];
2427
2426
  let o;
2428
2427
  e[18] !== S ? (o = () => S("carbonForwardCurve", null), e[18] = S, e[19] = o) : o = e[19];
2429
2428
  let l;
2430
- e[20] !== h || e[21] !== D || e[22] !== C || e[23] !== m || e[24] !== o || e[25] !== _ || e[26] !== k || e[27] !== Y ? (l = /* @__PURE__ */ f(Oe, { ...D, "aria-label": "碳金融远期价格曲线", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: h, disabled: _, placeholder: "请选择碳金融远期价格曲线", options: k, value: Y, labelRender: C, onChange: m, onClear: o }), e[20] = h, e[21] = D, e[22] = C, e[23] = m, e[24] = o, e[25] = _, e[26] = k, e[27] = Y, e[28] = l) : l = e[28];
2431
- let c;
2432
- e[29] !== l || e[30] !== $ || e[31] !== v ? (c = /* @__PURE__ */ f(ye.Item, { className: V.contextFormItem, label: R, required: !0, extra: $, ...v, children: l }), e[29] = l, e[30] = $, e[31] = v, e[32] = c) : c = e[32];
2433
- const d = c;
2429
+ e[20] !== h || e[21] !== D || e[22] !== F || e[23] !== E || e[24] !== o || e[25] !== _ || e[26] !== k || e[27] !== Y ? (l = /* @__PURE__ */ C(Oe, { ...D, "aria-label": "碳金融远期价格曲线", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: h, disabled: _, placeholder: "请选择碳金融远期价格曲线", options: k, value: Y, labelRender: F, onChange: E, onClear: o }), e[20] = h, e[21] = D, e[22] = F, e[23] = E, e[24] = o, e[25] = _, e[26] = k, e[27] = Y, e[28] = l) : l = e[28];
2430
+ let s;
2431
+ e[29] !== l || e[30] !== $ || e[31] !== v ? (s = /* @__PURE__ */ C(ye.Item, { className: V.contextFormItem, label: R, required: !0, extra: $, ...v, children: l }), e[29] = l, e[30] = $, e[31] = v, e[32] = s) : s = e[32];
2432
+ const m = s;
2434
2433
  let B;
2435
- e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ f(je, { text: "无风险利率曲线" }), e[33] = B) : B = e[33];
2434
+ e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ C(je, { text: "无风险利率曲线" }), e[33] = B) : B = e[33];
2436
2435
  let A;
2437
2436
  e[34] !== n.discountCurve || e[35] !== n.valuationDate ? (A = Ou(n.discountCurve, n.valuationDate), e[34] = n.discountCurve, e[35] = n.valuationDate, e[36] = A) : A = e[36];
2438
2437
  let O;
2439
2438
  e[37] !== a.discountCurve ? (O = Ze(a.discountCurve), e[37] = a.discountCurve, e[38] = O) : O = e[38];
2440
2439
  const N = x || p;
2441
2440
  let G;
2442
- e[39] !== s ? (G = M(s), e[39] = s, e[40] = G) : G = e[40];
2441
+ e[39] !== c ? (G = M(c), e[39] = c, e[40] = G) : G = e[40];
2443
2442
  const W = n.discountCurve?.key;
2444
2443
  let U;
2445
2444
  e[41] !== n.discountCurve ? (U = () => Eu(n.discountCurve), e[41] = n.discountCurve, e[42] = U) : U = e[42];
2446
2445
  let j;
2447
- e[43] !== s || e[44] !== S ? (j = (le) => S("discountCurve", s.find((se) => se.key === le) ?? null), e[43] = s, e[44] = S, e[45] = j) : j = e[45];
2446
+ e[43] !== c || e[44] !== S ? (j = (le) => S("discountCurve", c.find((se) => se.key === le) ?? null), e[43] = c, e[44] = S, e[45] = j) : j = e[45];
2448
2447
  let q;
2449
2448
  e[46] !== S ? (q = () => S("discountCurve", null), e[46] = S, e[47] = q) : q = e[47];
2450
2449
  let Z;
2451
- e[48] !== h || e[49] !== D || e[50] !== N || e[51] !== G || e[52] !== W || e[53] !== U || e[54] !== j || e[55] !== q ? (Z = /* @__PURE__ */ f(Oe, { ...D, "aria-label": "无风险利率曲线", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: h, disabled: N, placeholder: "请选择无风险利率曲线", options: G, value: W, labelRender: U, onChange: j, onClear: q }), e[48] = h, e[49] = D, e[50] = N, e[51] = G, e[52] = W, e[53] = U, e[54] = j, e[55] = q, e[56] = Z) : Z = e[56];
2450
+ e[48] !== h || e[49] !== D || e[50] !== N || e[51] !== G || e[52] !== W || e[53] !== U || e[54] !== j || e[55] !== q ? (Z = /* @__PURE__ */ C(Oe, { ...D, "aria-label": "无风险利率曲线", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: h, disabled: N, placeholder: "请选择无风险利率曲线", options: G, value: W, labelRender: U, onChange: j, onClear: q }), e[48] = h, e[49] = D, e[50] = N, e[51] = G, e[52] = W, e[53] = U, e[54] = j, e[55] = q, e[56] = Z) : Z = e[56];
2452
2451
  let H;
2453
- e[57] !== A || e[58] !== O || e[59] !== Z ? (H = /* @__PURE__ */ f(ye.Item, { className: V.contextFormItem, label: B, required: !0, extra: A, ...O, children: Z }), e[57] = A, e[58] = O, e[59] = Z, e[60] = H) : H = e[60];
2452
+ e[57] !== A || e[58] !== O || e[59] !== Z ? (H = /* @__PURE__ */ C(ye.Item, { className: V.contextFormItem, label: B, required: !0, extra: A, ...O, children: Z }), e[57] = A, e[58] = O, e[59] = Z, e[60] = H) : H = e[60];
2454
2453
  const Q = H, J = I ? "left" : "right";
2455
2454
  let X;
2456
2455
  e[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = {
@@ -2468,7 +2467,7 @@ function $n(r) {
2468
2467
  content: V.contextFormContent
2469
2468
  }, e[64] = ne) : ne = e[64];
2470
2469
  let De;
2471
- e[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = /* @__PURE__ */ f(je, { text: "定价环境" }), e[65] = De) : De = e[65];
2470
+ e[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = /* @__PURE__ */ C(je, { text: "定价环境" }), e[65] = De) : De = e[65];
2472
2471
  let ce;
2473
2472
  e[66] !== a.pricingEnvironment ? (ce = Ze(a.pricingEnvironment), e[66] = a.pricingEnvironment, e[67] = ce) : ce = e[67];
2474
2473
  const be = n.pricingEnvironment?.id;
@@ -2479,12 +2478,12 @@ function $n(r) {
2479
2478
  let Ce;
2480
2479
  e[74] !== S ? (Ce = () => S("pricingEnvironment", null), e[74] = S, e[75] = Ce) : Ce = e[75];
2481
2480
  let fe;
2482
- e[76] !== x || e[77] !== y || e[78] !== F || e[79] !== D || e[80] !== be || e[81] !== Ee || e[82] !== Fe || e[83] !== Ce ? (fe = /* @__PURE__ */ f(Oe, { ...D, "aria-label": "定价环境", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: F, disabled: x, placeholder: "请选择定价环境", options: y, value: be, labelRender: Ee, onChange: Fe, onClear: Ce }), e[76] = x, e[77] = y, e[78] = F, e[79] = D, e[80] = be, e[81] = Ee, e[82] = Fe, e[83] = Ce, e[84] = fe) : fe = e[84];
2481
+ e[76] !== x || e[77] !== y || e[78] !== f || e[79] !== D || e[80] !== be || e[81] !== Ee || e[82] !== Fe || e[83] !== Ce ? (fe = /* @__PURE__ */ C(Oe, { ...D, "aria-label": "定价环境", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: f, disabled: x, placeholder: "请选择定价环境", options: y, value: be, labelRender: Ee, onChange: Fe, onClear: Ce }), e[76] = x, e[77] = y, e[78] = f, e[79] = D, e[80] = be, e[81] = Ee, e[82] = Fe, e[83] = Ce, e[84] = fe) : fe = e[84];
2483
2482
  let Te;
2484
- e[85] !== ce || e[86] !== fe ? (Te = /* @__PURE__ */ f(ye.Item, { className: V.contextFormItem, label: De, required: !0, ...ce, children: fe }), e[85] = ce, e[86] = fe, e[87] = Te) : Te = e[87];
2485
- const $e = I ? Q : d, _e = I ? d : Q;
2483
+ e[85] !== ce || e[86] !== fe ? (Te = /* @__PURE__ */ C(ye.Item, { className: V.contextFormItem, label: De, ...ce, children: fe }), e[85] = ce, e[86] = fe, e[87] = Te) : Te = e[87];
2484
+ const $e = I ? Q : m, _e = I ? m : Q;
2486
2485
  let Ae;
2487
- e[88] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = /* @__PURE__ */ f(je, { text: "估值日" }), e[88] = Ae) : Ae = e[88];
2486
+ e[88] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = /* @__PURE__ */ C(je, { text: "估值日" }), e[88] = Ae) : Ae = e[88];
2488
2487
  let Se;
2489
2488
  e[89] !== a.valuationDate ? (Se = Ze(a.valuationDate), e[89] = a.valuationDate, e[90] = Se) : Se = e[90];
2490
2489
  let ge;
@@ -2495,9 +2494,9 @@ function $n(r) {
2495
2494
  S("valuationDate", se?.format("YYYY-MM-DD") ?? null);
2496
2495
  }, e[93] = S, e[94] = pe) : pe = e[94];
2497
2496
  let ve;
2498
- e[95] !== x || e[96] !== ge || e[97] !== pe ? (ve = /* @__PURE__ */ f(ke, { "aria-label": "估值日", allowClear: !0, disabled: x, value: ge, onChange: pe }), e[95] = x, e[96] = ge, e[97] = pe, e[98] = ve) : ve = e[98];
2497
+ e[95] !== x || e[96] !== ge || e[97] !== pe ? (ve = /* @__PURE__ */ C(ke, { "aria-label": "估值日", allowClear: !0, disabled: x, value: ge, onChange: pe }), e[95] = x, e[96] = ge, e[97] = pe, e[98] = ve) : ve = e[98];
2499
2498
  let xe;
2500
- e[99] !== Se || e[100] !== ve ? (xe = /* @__PURE__ */ f(ye.Item, { className: V.contextFormItem, label: Ae, required: !0, ...Se, children: ve }), e[99] = Se, e[100] = ve, e[101] = xe) : xe = e[101];
2499
+ e[99] !== Se || e[100] !== ve ? (xe = /* @__PURE__ */ C(ye.Item, { className: V.contextFormItem, label: Ae, required: !0, ...Se, children: ve }), e[99] = Se, e[100] = ve, e[101] = xe) : xe = e[101];
2501
2500
  let re;
2502
2501
  return e[102] !== J || e[103] !== te || e[104] !== ie || e[105] !== Te || e[106] !== $e || e[107] !== _e || e[108] !== xe ? (re = /* @__PURE__ */ Me(ye, { component: "div", layout: "horizontal", labelAlign: J, labelCol: X, wrapperCol: te, colon: !1, requiredMark: !0, className: ie, classNames: ne, children: [
2503
2502
  Te,
@@ -2523,23 +2522,23 @@ function Pn(r) {
2523
2522
  }
2524
2523
  function Ln(r) {
2525
2524
  const e = z.c(17), {
2526
- mode: t,
2527
- layout: u,
2525
+ mode: u,
2526
+ layout: t,
2528
2527
  allDisabled: n,
2529
2528
  calculateDisabled: a,
2530
2529
  submitting: i,
2531
- onReset: s,
2532
- onNavigateToPricingPage: E,
2533
- onCalculate: F
2530
+ onReset: c,
2531
+ onNavigateToPricingPage: d,
2532
+ onCalculate: f
2534
2533
  } = r;
2535
2534
  let h;
2536
- e[0] !== n || e[1] !== u || e[2] !== t || e[3] !== E || e[4] !== i ? (h = t === "multiple" || u === "horizontal" ? /* @__PURE__ */ f(Ne, { className: V.navigateButton, icon: /* @__PURE__ */ f("span", { className: V.navigateIcon, "aria-hidden": "true" }), iconPlacement: "end", disabled: n || i || !E, onClick: E, children: "转定价界面" }) : null, e[0] = n, e[1] = u, e[2] = t, e[3] = E, e[4] = i, e[5] = h) : h = e[5];
2535
+ e[0] !== n || e[1] !== t || e[2] !== u || e[3] !== d || e[4] !== i ? (h = u === "multiple" || t === "horizontal" ? /* @__PURE__ */ C(Ne, { className: V.navigateButton, icon: /* @__PURE__ */ C("span", { className: V.navigateIcon, "aria-hidden": "true" }), iconPlacement: "end", disabled: n || i || !d, onClick: d, children: "转定价界面" }) : null, e[0] = n, e[1] = t, e[2] = u, e[3] = d, e[4] = i, e[5] = h) : h = e[5];
2537
2536
  const p = n || i;
2538
2537
  let x;
2539
- e[6] !== s || e[7] !== p ? (x = /* @__PURE__ */ f(Ne, { disabled: p, onClick: s, children: "重置" }), e[6] = s, e[7] = p, e[8] = x) : x = e[8];
2538
+ e[6] !== c || e[7] !== p ? (x = /* @__PURE__ */ C(Ne, { disabled: p, onClick: c, children: "重置" }), e[6] = c, e[7] = p, e[8] = x) : x = e[8];
2540
2539
  const S = n || a;
2541
2540
  let I;
2542
- e[9] !== F || e[10] !== i || e[11] !== S ? (I = /* @__PURE__ */ f(Ne, { type: "primary", loading: i, disabled: S, onClick: F, children: "计算" }), e[9] = F, e[10] = i, e[11] = S, e[12] = I) : I = e[12];
2541
+ e[9] !== f || e[10] !== i || e[11] !== S ? (I = /* @__PURE__ */ C(Ne, { type: "primary", loading: i, disabled: S, onClick: f, children: "计算" }), e[9] = f, e[10] = i, e[11] = S, e[12] = I) : I = e[12];
2543
2542
  let b;
2544
2543
  return e[13] !== h || e[14] !== x || e[15] !== I ? (b = /* @__PURE__ */ Me("div", { className: V.footer, children: [
2545
2544
  h,
@@ -2556,22 +2555,22 @@ const Nn = {
2556
2555
  };
2557
2556
  function On(r) {
2558
2557
  const e = z.c(9), {
2559
- resources: t,
2560
- onRetry: u
2558
+ resources: u,
2559
+ onRetry: t
2561
2560
  } = r;
2562
2561
  let n;
2563
- e[0] !== t ? (n = Object.keys(t), e[0] = t, e[1] = n) : n = e[1];
2562
+ e[0] !== u ? (n = Object.keys(u), e[0] = u, e[1] = n) : n = e[1];
2564
2563
  const a = n;
2565
2564
  let i;
2566
- e[2] !== t || e[3] !== a ? (i = a.filter((F) => t[F].status === "error"), e[2] = t, e[3] = a, e[4] = i) : i = e[4];
2567
- const s = i;
2568
- if (s.length === 0)
2565
+ e[2] !== u || e[3] !== a ? (i = a.filter((f) => u[f].status === "error"), e[2] = u, e[3] = a, e[4] = i) : i = e[4];
2566
+ const c = i;
2567
+ if (c.length === 0)
2569
2568
  return null;
2570
- let E;
2571
- return e[5] !== s || e[6] !== u || e[7] !== t ? (E = /* @__PURE__ */ f("div", { className: V.resourceIssues, "aria-label": "资源加载异常", children: s.map((F) => {
2572
- const h = t[F], p = h.attempts >= cu;
2573
- return /* @__PURE__ */ f(Ge, { type: "error", showIcon: !0, title: `${Nn[F]}加载失败`, description: p ? `${h.error ?? "未知错误"}(已达到 3 次尝试上限)` : h.error, action: /* @__PURE__ */ f(Ne, { size: "small", disabled: p, onClick: () => u(F), children: "重试" }) }, F);
2574
- }) }), e[5] = s, e[6] = u, e[7] = t, e[8] = E) : E = e[8], E;
2569
+ let d;
2570
+ return e[5] !== c || e[6] !== t || e[7] !== u ? (d = /* @__PURE__ */ C("div", { className: V.resourceIssues, "aria-label": "资源加载异常", children: c.map((f) => {
2571
+ const h = u[f], p = h.attempts >= cu;
2572
+ return /* @__PURE__ */ C(Ge, { type: "error", showIcon: !0, title: `${Nn[f]}加载失败`, description: p ? `${h.error ?? "未知错误"}(已达到 3 次尝试上限)` : h.error, action: /* @__PURE__ */ C(Ne, { size: "small", disabled: p, onClick: () => t(f), children: "重试" }) }, f);
2573
+ }) }), e[5] = c, e[6] = t, e[7] = u, e[8] = d) : d = e[8], d;
2575
2574
  }
2576
2575
  function Ye(r) {
2577
2576
  return {
@@ -2620,16 +2619,16 @@ function zu(r) {
2620
2619
  function Vn(r, e) {
2621
2620
  switch (e.type) {
2622
2621
  case "resource/loading": {
2623
- const t = r.resources[e.key];
2622
+ const u = r.resources[e.key];
2624
2623
  return {
2625
2624
  ...r,
2626
2625
  resources: {
2627
2626
  ...r.resources,
2628
2627
  [e.key]: {
2629
- ...t,
2628
+ ...u,
2630
2629
  status: "loading",
2631
2630
  error: null,
2632
- attempts: t.attempts + 1
2631
+ attempts: u.attempts + 1
2633
2632
  }
2634
2633
  }
2635
2634
  };
@@ -2660,23 +2659,23 @@ function Vn(r, e) {
2660
2659
  }
2661
2660
  };
2662
2661
  case "context/set": {
2663
- const t = e.field === "pricingEnvironment", u = {
2662
+ const u = e.field === "pricingEnvironment", t = {
2664
2663
  ...r.context,
2665
2664
  [e.field]: e.value,
2666
- ...t ? {
2665
+ ...u ? {
2667
2666
  discountCurve: null,
2668
2667
  carbonForwardCurve: null
2669
2668
  } : void 0
2670
2669
  }, n = {
2671
2670
  ...r.contextErrors
2672
2671
  };
2673
- return delete n[e.field], t && (delete n.discountCurve, delete n.carbonForwardCurve), {
2672
+ return delete n[e.field], u && (delete n.discountCurve, delete n.carbonForwardCurve), {
2674
2673
  ...r,
2675
- context: u,
2674
+ context: t,
2676
2675
  contextErrors: n,
2677
- environmentCurvesStatus: t ? "idle" : r.environmentCurvesStatus,
2678
- environmentCurvesError: t ? null : r.environmentCurvesError,
2679
- environmentCurvesAttempts: t ? 0 : r.environmentCurvesAttempts,
2676
+ environmentCurvesStatus: u ? "idle" : r.environmentCurvesStatus,
2677
+ environmentCurvesError: u ? null : r.environmentCurvesError,
2678
+ environmentCurvesAttempts: u ? 0 : r.environmentCurvesAttempts,
2680
2679
  resultByContractId: zu(r),
2681
2680
  inputVersion: r.inputVersion + 1,
2682
2681
  submitting: !1
@@ -2716,8 +2715,8 @@ function Vn(r, e) {
2716
2715
  return {
2717
2716
  ...r,
2718
2717
  submitting: !0,
2719
- resultByContractId: Object.fromEntries(e.contractIds.map((t) => [t, {
2720
- contractId: t,
2718
+ resultByContractId: Object.fromEntries(e.contractIds.map((u) => [u, {
2719
+ contractId: u,
2721
2720
  status: "submitting",
2722
2721
  result: null,
2723
2722
  message: null,
@@ -2756,30 +2755,30 @@ function Hn(r) {
2756
2755
  function Un(r) {
2757
2756
  return !Array.isArray(r) && Re(r) && Re(r.discountCurve) && Re(r.carbonForwardCurve);
2758
2757
  }
2759
- function It(r, e, t) {
2760
- const u = r && e ? `${e}(${r})` : e || r;
2761
- return t ? `${u}-${Tu(t)}` : u;
2758
+ function It(r, e, u) {
2759
+ const t = r && e ? `${e}(${r})` : e || r;
2760
+ return u ? `${t}-${Tu(u)}` : t;
2762
2761
  }
2763
2762
  function uu(r, e) {
2764
- return Array.isArray(r) ? r.flatMap((t) => {
2765
- if (Hn(t)) return [t];
2766
- if (!Re(t)) return [];
2767
- const u = t[e.idField];
2768
- if (u == null || u === "") return [];
2769
- const n = String(u), a = String(t.code ?? ""), i = String(t.name ?? ""), s = String(t.currency ?? ""), E = e.source === "custom" && typeof t.createDate == "string" ? t.createDate : void 0, F = e.source === "custom" && typeof t.executeDay == "string" ? t.executeDay : void 0, h = {
2763
+ return Array.isArray(r) ? r.flatMap((u) => {
2764
+ if (Hn(u)) return [u];
2765
+ if (!Re(u)) return [];
2766
+ const t = u[e.idField];
2767
+ if (t == null || t === "") return [];
2768
+ const n = String(t), a = String(u.code ?? ""), i = String(u.name ?? ""), c = String(u.currency ?? ""), d = e.source === "custom" && typeof u.createDate == "string" ? u.createDate : void 0, f = e.source === "custom" && typeof u.executeDay == "string" ? u.executeDay : void 0, h = {
2770
2769
  [e.idField]: n
2771
2770
  };
2772
2771
  return [{
2773
2772
  key: `${e.kind}:${e.source}:${n}`,
2774
2773
  id: n,
2775
- label: It(a, i, F),
2774
+ label: It(a, i, f),
2776
2775
  code: a,
2777
2776
  name: i,
2778
2777
  kind: e.kind,
2779
2778
  source: e.source,
2780
- currency: s,
2781
- createDate: E,
2782
- executeDay: F,
2779
+ currency: c,
2780
+ createDate: d,
2781
+ executeDay: f,
2783
2782
  requestMapping: h
2784
2783
  }];
2785
2784
  }) : [];
@@ -2787,11 +2786,11 @@ function uu(r, e) {
2787
2786
  function Wn(r) {
2788
2787
  return Array.isArray(r) ? r.flatMap((e) => {
2789
2788
  if (!Re(e)) return [];
2790
- const t = e, u = t.id ?? ("pricingEnvId" in t ? t.pricingEnvId : "");
2791
- return u === "" || u === null || u === void 0 ? [] : [{
2792
- ...t,
2789
+ const u = e, t = u.id ?? ("pricingEnvId" in u ? u.pricingEnvId : "");
2790
+ return t === "" || t === null || t === void 0 ? [] : [{
2791
+ ...u,
2793
2792
  // 真实接口使用 pricingEnvId,组件内部统一使用字符串 id 维护 Select 值和联动请求。
2794
- id: String(u)
2793
+ id: String(t)
2795
2794
  }];
2796
2795
  }) : [];
2797
2796
  }
@@ -2824,33 +2823,33 @@ function Xn(r) {
2824
2823
  });
2825
2824
  }
2826
2825
  function Vu(r, e) {
2827
- const t = String(r.curveId);
2826
+ const u = String(r.curveId);
2828
2827
  return {
2829
- id: t,
2828
+ id: u,
2830
2829
  label: It(String(r.curveCode ?? ""), String(r.curveName ?? "")),
2831
2830
  code: String(r.curveCode ?? ""),
2832
2831
  name: String(r.curveName ?? ""),
2833
2832
  kind: e.kind,
2834
2833
  source: "definition",
2835
- requestMapping: e.requestMapping(t)
2834
+ requestMapping: e.requestMapping(u)
2836
2835
  };
2837
2836
  }
2838
2837
  function Qn(r) {
2839
2838
  if (r === null) return null;
2840
2839
  if (Un(r)) return r;
2841
2840
  if (!Array.isArray(r)) return null;
2842
- const e = r.find((u) => String(u.curveType) === Yn), t = r.find((u) => String(u.curveType) === Gn);
2843
- return !e?.curveId || !t?.curveId ? null : {
2841
+ const e = r.find((t) => String(t.curveType) === Yn), u = r.find((t) => String(t.curveType) === Gn);
2842
+ return !e?.curveId || !u?.curveId ? null : {
2844
2843
  discountCurve: Vu(e, {
2845
2844
  kind: "discount",
2846
- requestMapping: (u) => ({
2847
- disCurveDefId: u
2845
+ requestMapping: (t) => ({
2846
+ disCurveDefId: t
2848
2847
  })
2849
2848
  }),
2850
- carbonForwardCurve: Vu(t, {
2849
+ carbonForwardCurve: Vu(u, {
2851
2850
  kind: "carbonForward",
2852
- requestMapping: (u) => ({
2853
- comCurveDefId: u
2851
+ requestMapping: (t) => ({
2852
+ comCurveDefId: t
2854
2853
  })
2855
2854
  })
2856
2855
  };
@@ -2865,68 +2864,67 @@ function Yu(r) {
2865
2864
  }
2866
2865
  function Jn(r, e) {
2867
2866
  const {
2868
- pricingEnvironment: t,
2869
2867
  discountCurve: u,
2870
- carbonForwardCurve: n,
2871
- valuationDate: a
2868
+ carbonForwardCurve: t,
2869
+ valuationDate: n
2872
2870
  } = e;
2873
- if (!t || !u || !n || !a)
2871
+ if (!u || !t || !n)
2874
2872
  return [];
2875
- const i = Yu(u.requestMapping), s = Yu(n.requestMapping), E = {
2876
- valDate: gt(a),
2877
- disCurveDefId: i.disCurveDefId,
2878
- disCurveId: i.disCurveId,
2879
- comCurveDefId: s.comCurveDefId,
2880
- comCurveId: s.comCurveId
2873
+ const a = Yu(u.requestMapping), i = Yu(t.requestMapping), c = {
2874
+ valDate: gt(n),
2875
+ disCurveDefId: a.disCurveDefId,
2876
+ disCurveId: a.disCurveId,
2877
+ comCurveDefId: i.comCurveDefId,
2878
+ comCurveId: i.comCurveId
2881
2879
  };
2882
- return r.map((F) => ({
2880
+ return r.map((d) => ({
2883
2881
  astType: "",
2884
- targtAllVarCodeSum: F.targtAllVarCodeSum,
2885
- scrtyCode: F.scrtyCode,
2886
- currency: F.currency,
2887
- fwdMaturityDate: F.fwdMaturityDate,
2888
- settleDate: F.settleDate,
2889
- physicalDelivery: F.physicalDelivery,
2890
- direction: F.direction,
2891
- fwdDlvPrice: F.fwdDlvPrice,
2892
- targtVol: F.targtVol,
2893
- ...F.productType ? {
2894
- productType: F.productType
2882
+ targtAllVarCodeSum: d.targtAllVarCodeSum,
2883
+ scrtyCode: d.scrtyCode,
2884
+ currency: d.currency,
2885
+ fwdMaturityDate: d.fwdMaturityDate,
2886
+ settleDate: d.settleDate,
2887
+ physicalDelivery: d.physicalDelivery,
2888
+ direction: d.direction,
2889
+ fwdDlvPrice: d.fwdDlvPrice,
2890
+ targtVol: d.targtVol,
2891
+ ...d.productType ? {
2892
+ productType: d.productType
2895
2893
  } : {},
2896
- ...F.instrumentId ? {
2897
- instrumentId: F.instrumentId
2894
+ ...d.instrumentId ? {
2895
+ instrumentId: d.instrumentId
2898
2896
  } : {},
2899
- ...F.instrumentCode ? {
2900
- instrumentCode: F.instrumentCode
2897
+ ...d.instrumentCode ? {
2898
+ instrumentCode: d.instrumentCode
2901
2899
  } : {},
2902
- ...F.instrumentName ? {
2903
- instrumentName: F.instrumentName
2900
+ ...d.instrumentName ? {
2901
+ instrumentName: d.instrumentName
2904
2902
  } : {},
2905
- ...F.tradeContpId ? {
2906
- tradeContpId: F.tradeContpId
2903
+ ...d.tradeContpId ? {
2904
+ tradeContpId: d.tradeContpId
2907
2905
  } : {},
2908
- ...E
2906
+ ...c
2909
2907
  }));
2910
2908
  }
2911
2909
  function Xe(r) {
2912
2910
  return r == null || r === "" ? null : String(r);
2913
2911
  }
2914
- function Kn(r, e, t) {
2912
+ function Kn(r, e, u) {
2915
2913
  if (!e || typeof e != "object")
2916
2914
  return {
2917
2915
  contractId: r,
2918
2916
  status: "error",
2919
2917
  result: null,
2920
2918
  message: "未返回计算结果",
2921
- resultInputVersion: t
2919
+ resultInputVersion: u
2922
2920
  };
2923
- const u = e.code, n = u == null || u === 0 || u === 200 || u === "0" || u === "200", a = [e.npv, e.forwardPrice, e.discountFactor, e.maturityTime].some((i) => i != null && i !== "");
2921
+ const t = e.code, n = t == null || t === 0 || t === 200 || t === "0" || t === "200", a = [e.npv, e.forwardPrice, e.discountFactor, e.maturityTime].some((i) => i != null && i !== "");
2924
2922
  return !n || !a ? {
2925
2923
  contractId: r,
2926
2924
  status: "error",
2927
2925
  result: null,
2928
2926
  message: e.msg ?? "定价计算失败",
2929
- resultInputVersion: t
2927
+ resultInputVersion: u
2930
2928
  } : {
2931
2929
  contractId: r,
2932
2930
  status: "success",
@@ -2937,11 +2935,11 @@ function Kn(r, e, t) {
2937
2935
  maturityTime: Xe(e.maturityTime)
2938
2936
  },
2939
2937
  message: e.msg ?? null,
2940
- resultInputVersion: t
2938
+ resultInputVersion: u
2941
2939
  };
2942
2940
  }
2943
- function eo(r, e, t) {
2944
- return Object.fromEntries(r.map((u, n) => [u, Kn(u, e[n], t)]));
2941
+ function eo(r, e, u) {
2942
+ return Object.fromEntries(r.map((t, n) => [t, Kn(t, e[n], u)]));
2945
2943
  }
2946
2944
  const Gu = {
2947
2945
  environments: "定价环境加载失败",
@@ -2954,9 +2952,9 @@ function uo(r) {
2954
2952
  if (r && typeof r == "object" && "response" in r) {
2955
2953
  const e = r.response;
2956
2954
  if (e && typeof e == "object" && "data" in e) {
2957
- const t = e.data;
2958
- if (t && typeof t == "object" && "msg" in t && typeof t.msg == "string" && t.msg.trim())
2959
- return t.msg;
2955
+ const u = e.data;
2956
+ if (u && typeof u == "object" && "msg" in u && typeof u.msg == "string" && u.msg.trim())
2957
+ return u.msg;
2960
2958
  }
2961
2959
  }
2962
2960
  return r instanceof Error && r.message ? r.message : "定价服务请求失败";
@@ -2967,9 +2965,9 @@ function Ie(r, e) {
2967
2965
  function to(r) {
2968
2966
  const {
2969
2967
  contracts: e,
2970
- productType: t,
2971
- dataSource: u
2972
- } = r, [n, a] = Wt(Vn, void 0, () => zn(e.map((o) => o.contractId))), i = ee(!0), s = ee(0), E = ee(0), F = ee(null), h = ee(null), p = ee(null), x = ee(/* @__PURE__ */ new Map()), [S, I] = ze(0), b = ee(/* @__PURE__ */ new Map());
2968
+ productType: u,
2969
+ dataSource: t
2970
+ } = r, [n, a] = Wt(Vn, void 0, () => zn(e.map((o) => o.contractId))), i = ee(!0), c = ee(0), d = ee(0), f = ee(null), h = ee(null), p = ee(null), x = ee(/* @__PURE__ */ new Map()), [S, I] = ze(0), b = ee(/* @__PURE__ */ new Map());
2973
2971
  Be(() => () => {
2974
2972
  i.current = !1, h.current?.abort(), p.current?.abort(), x.current.forEach((o) => o.abort());
2975
2973
  }, []);
@@ -2982,71 +2980,71 @@ function to(r) {
2982
2980
  const l = new AbortController();
2983
2981
  x.current.set(o, l);
2984
2982
  try {
2985
- let c;
2983
+ let s;
2986
2984
  switch (o) {
2987
2985
  case "environments": {
2988
- const d = await u.listPricingEnvironments({
2986
+ const m = await t.listPricingEnvironments({
2989
2987
  status: !0
2990
2988
  }, {
2991
2989
  signal: l.signal
2992
2990
  });
2993
- c = Wn(Ie("listPricingEnvironments", d));
2991
+ s = Wn(Ie("listPricingEnvironments", m));
2994
2992
  break;
2995
2993
  }
2996
2994
  case "discountDefinitions": {
2997
- const d = await u.listDiscountCurveDefinitions({
2995
+ const m = await t.listDiscountCurveDefinitions({
2998
2996
  type: "3",
2999
2997
  status: !0
3000
2998
  }, {
3001
2999
  signal: l.signal
3002
3000
  });
3003
- c = qn(Ie("listDiscountCurveDefinitions", d));
3001
+ s = qn(Ie("listDiscountCurveDefinitions", m));
3004
3002
  break;
3005
3003
  }
3006
3004
  case "customDiscountCurves": {
3007
- const d = await u.listCustomDiscountCurves({
3005
+ const m = await t.listCustomDiscountCurves({
3008
3006
  type: "3",
3009
3007
  isCustom: !0
3010
3008
  }, {
3011
3009
  signal: l.signal
3012
3010
  });
3013
- c = Zn(Ie("listCustomDiscountCurves", d));
3011
+ s = Zn(Ie("listCustomDiscountCurves", m));
3014
3012
  break;
3015
3013
  }
3016
3014
  case "carbonDefinitions": {
3017
- const d = await u.listCarbonForwardCurveDefinitions({
3015
+ const m = await t.listCarbonForwardCurveDefinitions({
3018
3016
  type: "11",
3019
3017
  status: !0
3020
3018
  }, {
3021
3019
  signal: l.signal
3022
3020
  });
3023
- c = jn(Ie("listCarbonForwardCurveDefinitions", d));
3021
+ s = jn(Ie("listCarbonForwardCurveDefinitions", m));
3024
3022
  break;
3025
3023
  }
3026
3024
  case "customCarbonCurves": {
3027
- const d = await u.listCustomCarbonForwardCurves({
3025
+ const m = await t.listCustomCarbonForwardCurves({
3028
3026
  type: "11",
3029
3027
  isCustom: !0
3030
3028
  }, {
3031
3029
  signal: l.signal
3032
3030
  });
3033
- c = Xn(Ie("listCustomCarbonForwardCurves", d));
3031
+ s = Xn(Ie("listCustomCarbonForwardCurves", m));
3034
3032
  break;
3035
3033
  }
3036
3034
  }
3037
3035
  i.current && a({
3038
3036
  type: "resource/success",
3039
3037
  key: o,
3040
- data: c
3038
+ data: s
3041
3039
  });
3042
- } catch (c) {
3040
+ } catch (s) {
3043
3041
  i.current && !l.signal.aborted && a({
3044
3042
  type: "resource/error",
3045
3043
  key: o,
3046
- error: c instanceof Error ? c.message : Gu[o]
3044
+ error: s instanceof Error ? s.message : Gu[o]
3047
3045
  });
3048
3046
  }
3049
- }, [u, n.resources]), T = ee(!1);
3047
+ }, [t, n.resources]), T = ee(!1);
3050
3048
  Be(() => {
3051
3049
  T.current || (T.current = !0, Promise.allSettled(Object.keys(Gu).map((o) => g(o))));
3052
3050
  }, [g]);
@@ -3054,57 +3052,57 @@ function to(r) {
3054
3052
  Be(() => {
3055
3053
  w.current = y;
3056
3054
  }, [y]);
3057
- const L = he((o, l) => w.current.find((c) => c.kind === o.kind && (c.id === o.id || c.key === o.id)) ?? {
3055
+ const L = he((o, l) => w.current.find((s) => s.kind === o.kind && (s.id === o.id || s.key === o.id)) ?? {
3058
3056
  ...o,
3059
3057
  key: `${o.kind}:${o.source}:${o.id}`,
3060
3058
  currency: l
3061
3059
  }, []), D = n.context.pricingEnvironment;
3062
3060
  Be(() => {
3063
- if (!D || !t) return;
3061
+ if (!D || !u) return;
3064
3062
  p.current?.abort();
3065
3063
  const o = new AbortController();
3066
3064
  p.current = o;
3067
- const l = ++s.current, c = JSON.stringify([D.id, t]);
3065
+ const l = ++c.current, s = JSON.stringify([D.id, u]);
3068
3066
  a({
3069
3067
  type: "environment-curves/loading"
3070
3068
  });
3071
- let d = b.current.get(c);
3072
- return d || (d = u.getEnvironmentCurveSelection({
3069
+ let m = b.current.get(s);
3070
+ return m || (m = t.getEnvironmentCurveSelection({
3073
3071
  pricingEnvId: D.id,
3074
- productType: t
3072
+ productType: u
3075
3073
  }, {
3076
3074
  signal: o.signal
3077
- }).then((B) => Qn(Ie("getEnvironmentCurveSelection", B))), b.current.set(c, d)), d.then((B) => {
3078
- !i.current || l !== s.current || a({
3075
+ }).then((B) => Qn(Ie("getEnvironmentCurveSelection", B))), b.current.set(s, m)), m.then((B) => {
3076
+ !i.current || l !== c.current || a({
3079
3077
  type: "environment-curves/success",
3080
3078
  discountCurve: B ? L(B.discountCurve, D.currency) : null,
3081
3079
  carbonForwardCurve: B ? L(B.carbonForwardCurve, D.currency) : null
3082
3080
  });
3083
3081
  }).catch((B) => {
3084
- b.current.delete(c), !o.signal.aborted && (!i.current || l !== s.current || a({
3082
+ b.current.delete(s), !o.signal.aborted && (!i.current || l !== c.current || a({
3085
3083
  type: "environment-curves/error",
3086
3084
  error: B instanceof Error ? B.message : "环境关联曲线加载失败"
3087
3085
  }));
3088
3086
  }), () => o.abort();
3089
- }, [u, S, t, L, D]);
3090
- const R = ee(t);
3087
+ }, [t, S, u, L, D]);
3088
+ const R = ee(u);
3091
3089
  Be(() => {
3092
- R.current !== t && (R.current = t, n.context.pricingEnvironment && a({
3090
+ R.current !== u && (R.current = u, n.context.pricingEnvironment && a({
3093
3091
  type: "context/set",
3094
3092
  field: "pricingEnvironment",
3095
3093
  value: n.context.pricingEnvironment
3096
3094
  }));
3097
- }, [t, n.context.pricingEnvironment]);
3095
+ }, [u, n.context.pricingEnvironment]);
3098
3096
  const $ = ee(n.context);
3099
3097
  Be(() => {
3100
3098
  $.current = n.context;
3101
3099
  }, [n.context]);
3102
3100
  const v = he((o, l) => {
3103
- const c = $.current[o];
3104
- c === l || c != null && l != null && typeof c == "object" && typeof l == "object" && ("key" in c && "key" in l && c.key === l.key || "id" in c && "id" in l && c.id === l.id) || (o === "pricingEnvironment" && l && console.log("[IndicativePricingforSelectedContracts] selected pricing environment id:", l.id), $.current = {
3101
+ const s = $.current[o];
3102
+ s === l || s != null && l != null && typeof s == "object" && typeof l == "object" && ("key" in s && "key" in l && s.key === l.key || "id" in s && "id" in l && s.id === l.id) || (o === "pricingEnvironment" && l && console.log("[IndicativePricingforSelectedContracts] selected pricing environment id:", l.id), $.current = {
3105
3103
  ...$.current,
3106
3104
  [o]: l
3107
- }, E.current += 1, h.current?.abort(), F.current = null, a({
3105
+ }, d.current += 1, h.current?.abort(), f.current = null, a({
3108
3106
  type: "context/set",
3109
3107
  field: o,
3110
3108
  value: l
@@ -3113,14 +3111,14 @@ function to(r) {
3113
3111
  Be(() => {
3114
3112
  const o = n.resources.environments;
3115
3113
  if (_.current || o.status !== "success" && o.status !== "empty" || (_.current = !0, n.context.pricingEnvironment)) return;
3116
- const l = o.data.find((c) => c.isDefaultForSelf === !0);
3114
+ const l = o.data.find((s) => s.isDefaultForSelf === !0);
3117
3115
  l && v("pricingEnvironment", l);
3118
3116
  }, [v, n.context.pricingEnvironment, n.resources.environments]);
3119
3117
  const k = he(async () => {
3120
3118
  if (!i.current) return {
3121
3119
  kind: "cancelled"
3122
3120
  };
3123
- if (F.current !== null)
3121
+ if (f.current !== null)
3124
3122
  return {
3125
3123
  kind: "blocked",
3126
3124
  reason: "submitting"
@@ -3128,26 +3126,26 @@ function to(r) {
3128
3126
  if (e.length === 0) return {
3129
3127
  kind: "empty"
3130
3128
  };
3131
- const o = $.current, l = wn(o), c = kn(o.valuationDate, e);
3132
- if (!c.valid && c.message && (l.valuationDate = [c.message]), a({
3129
+ const o = $.current, l = wn(o), s = kn(o.valuationDate, e);
3130
+ if (!s.valid && s.message && (l.valuationDate = [s.message]), a({
3133
3131
  type: "context/errors",
3134
3132
  errors: l
3135
3133
  }), Object.keys(l).length > 0)
3136
3134
  return {
3137
3135
  kind: "invalid"
3138
3136
  };
3139
- const d = Jn(e, o), B = n.inputVersion, A = ++E.current;
3140
- F.current = A, h.current?.abort();
3137
+ const m = Jn(e, o), B = n.inputVersion, A = ++d.current;
3138
+ f.current = A, h.current?.abort();
3141
3139
  const O = new AbortController();
3142
3140
  h.current = O, a({
3143
3141
  type: "calculation/submitting",
3144
3142
  contractIds: e.map((N) => N.contractId)
3145
3143
  });
3146
3144
  try {
3147
- const N = Ie("calculate", await u.calculate(d, {
3145
+ const N = Ie("calculate", await t.calculate(m, {
3148
3146
  signal: O.signal
3149
3147
  }));
3150
- if (!i.current || A !== E.current)
3148
+ if (!i.current || A !== d.current)
3151
3149
  return {
3152
3150
  kind: "cancelled"
3153
3151
  };
@@ -3161,7 +3159,7 @@ function to(r) {
3161
3159
  hasExtraItems: G.length > e.length
3162
3160
  };
3163
3161
  } catch (N) {
3164
- if (!i.current || A !== E.current)
3162
+ if (!i.current || A !== d.current)
3165
3163
  return {
3166
3164
  kind: "cancelled"
3167
3165
  };
@@ -3179,18 +3177,18 @@ function to(r) {
3179
3177
  kind: "requestError"
3180
3178
  };
3181
3179
  } finally {
3182
- F.current === A && (F.current = null);
3180
+ f.current === A && (f.current = null);
3183
3181
  }
3184
- }, [e, u, n.inputVersion]), Y = he(() => F.current !== null, []), C = he(() => {
3185
- E.current += 1, h.current?.abort(), F.current = null, s.current += 1, p.current?.abort(), $.current = {
3182
+ }, [e, t, n.inputVersion]), Y = he(() => f.current !== null, []), F = he(() => {
3183
+ d.current += 1, h.current?.abort(), f.current = null, c.current += 1, p.current?.abort(), $.current = {
3186
3184
  ...Bu
3187
3185
  }, a({
3188
3186
  type: "reset"
3189
3187
  });
3190
- }, []), m = Object.keys(n.resources).every((o) => n.resources[o].status !== "idle" && n.resources[o].status !== "loading");
3188
+ }, []), E = Object.keys(n.resources).every((o) => n.resources[o].status !== "idle" && n.resources[o].status !== "loading");
3191
3189
  return {
3192
3190
  state: n,
3193
- initialized: m,
3191
+ initialized: E,
3194
3192
  discountCurves: M,
3195
3193
  carbonForwardCurves: P,
3196
3194
  setContext: v,
@@ -3198,22 +3196,22 @@ function to(r) {
3198
3196
  retryEnvironmentCurves: () => {
3199
3197
  if (!D || n.environmentCurvesAttempts >= cu)
3200
3198
  return;
3201
- const o = JSON.stringify([D.id, t]);
3199
+ const o = JSON.stringify([D.id, u]);
3202
3200
  b.current.delete(o), I((l) => l + 1);
3203
3201
  },
3204
3202
  calculate: k,
3205
3203
  isCalculating: Y,
3206
- reset: C
3204
+ reset: F
3207
3205
  };
3208
3206
  }
3209
- const ro = ue(function(e, t) {
3210
- const u = z.c(114), {
3207
+ const ro = ue(function(e, u) {
3208
+ const t = z.c(114), {
3211
3209
  mode: n,
3212
3210
  layout: a,
3213
3211
  appId: i,
3214
- productType: s,
3215
- contractData: E,
3216
- dataSource: F,
3212
+ productType: c,
3213
+ contractData: d,
3214
+ dataSource: f,
3217
3215
  showFooter: h,
3218
3216
  onNavigateToPricingPage: p,
3219
3217
  afterJumpPricingPage: x,
@@ -3223,43 +3221,43 @@ const ro = ue(function(e, t) {
3223
3221
  message: w
3224
3222
  } = hu.useApp();
3225
3223
  let L;
3226
- u[0] !== E || u[1] !== b ? (L = () => Object.freeze((b === "multiple" ? [...E] : E.slice(0, 1)).map(no)), u[0] = E, u[1] = b, u[2] = L) : L = u[2];
3224
+ t[0] !== d || t[1] !== b ? (L = () => Object.freeze((b === "multiple" ? [...d] : d.slice(0, 1)).map(no)), t[0] = d, t[1] = b, t[2] = L) : L = t[2];
3227
3225
  const [D] = ze(L);
3228
3226
  let R;
3229
- u[3] !== E.length ? (R = () => E.length, u[3] = E.length, u[4] = R) : R = u[4];
3227
+ t[3] !== d.length ? (R = () => d.length, t[3] = d.length, t[4] = R) : R = t[4];
3230
3228
  const [$] = ze(R), v = b === "multiple" && $ > dr;
3231
3229
  let _;
3232
- u[5] !== D || u[6] !== v ? (_ = v ? [] : D, u[5] = D, u[6] = v, u[7] = _) : _ = u[7];
3230
+ t[5] !== D || t[6] !== v ? (_ = v ? [] : D, t[5] = D, t[6] = v, t[7] = _) : _ = t[7];
3233
3231
  const k = _;
3234
3232
  let Y;
3235
- u[8] !== k || u[9] !== F || u[10] !== s ? (Y = {
3233
+ t[8] !== k || t[9] !== f || t[10] !== c ? (Y = {
3236
3234
  contracts: k,
3237
- productType: s,
3238
- dataSource: F
3239
- }, u[8] = k, u[9] = F, u[10] = s, u[11] = Y) : Y = u[11];
3240
- const C = to(Y), {
3241
- calculate: m,
3235
+ productType: c,
3236
+ dataSource: f
3237
+ }, t[8] = k, t[9] = f, t[10] = c, t[11] = Y) : Y = t[11];
3238
+ const F = to(Y), {
3239
+ calculate: E,
3242
3240
  initialized: o,
3243
3241
  isCalculating: l,
3244
- reset: c,
3245
- state: d
3246
- } = C, B = ee(!1);
3242
+ reset: s,
3243
+ state: m
3244
+ } = F, B = ee(!1);
3247
3245
  let A, O;
3248
- u[12] !== k.length || u[13] !== w || u[14] !== v ? (A = () => {
3246
+ t[12] !== k.length || t[13] !== w || t[14] !== v ? (A = () => {
3249
3247
  k.length === 0 && !v && !B.current && (B.current = !0, w.warning("请先选择一笔合约"));
3250
- }, O = [k.length, w, v], u[12] = k.length, u[13] = w, u[14] = v, u[15] = A, u[16] = O) : (A = u[15], O = u[16]), Be(A, O);
3251
- const N = k.length === 0 || v, G = !C.initialized || d.submitting || d.environmentCurvesStatus === "loading", W = [d.resources.discountDefinitions.status, d.resources.customDiscountCurves.status, d.resources.carbonDefinitions.status, d.resources.customCarbonCurves.status].some(oo), U = d.environmentCurvesStatus === "loading";
3248
+ }, O = [k.length, w, v], t[12] = k.length, t[13] = w, t[14] = v, t[15] = A, t[16] = O) : (A = t[15], O = t[16]), Be(A, O);
3249
+ const N = k.length === 0 || v, G = !F.initialized || m.submitting || m.environmentCurvesStatus === "loading", W = [m.resources.discountDefinitions.status, m.resources.customDiscountCurves.status, m.resources.carbonDefinitions.status, m.resources.customCarbonCurves.status].some(oo), U = m.environmentCurvesStatus === "loading";
3252
3250
  let j;
3253
- u[17] !== N || u[18] !== l || u[19] !== c ? (j = () => N || l() ? !1 : (c(), !0), u[17] = N, u[18] = l, u[19] = c, u[20] = j) : j = u[20];
3251
+ t[17] !== N || t[18] !== l || t[19] !== s ? (j = () => N || l() ? !1 : (s(), !0), t[17] = N, t[18] = l, t[19] = s, t[20] = j) : j = t[20];
3254
3252
  const q = j;
3255
3253
  let Z;
3256
- u[21] !== x || u[22] !== N || u[23] !== i || u[24] !== E || u[25] !== l || u[26] !== w || u[27] !== p || u[28] !== s ? (Z = () => {
3254
+ t[21] !== x || t[22] !== N || t[23] !== i || t[24] !== d || t[25] !== l || t[26] !== w || t[27] !== p || t[28] !== c ? (Z = () => {
3257
3255
  if (N || l())
3258
3256
  return !1;
3259
- const re = E.map(ao).filter(io);
3257
+ const re = d.map(ao).filter(io);
3260
3258
  if (re.length === 0)
3261
3259
  return w.info("所选合约成交编号为空,请返回重新选择"), !1;
3262
- const le = re.length < E.length, se = `/price-contracts-list?productType=${encodeURIComponent(s)}&instrumentCodes=${encodeURIComponent(re.join("&"))}&partialInstrumentCodeEmpty=${le}`;
3260
+ const le = re.length < d.length, se = `/price-contracts-list?productType=${encodeURIComponent(c)}&instrumentCodes=${encodeURIComponent(re.join("&"))}&partialInstrumentCodeEmpty=${le}`;
3263
3261
  return p ? p(se) : window.parent?.postMessage({
3264
3262
  event: "g-navigate",
3265
3263
  appId: i,
@@ -3269,10 +3267,10 @@ const ro = ue(function(e, t) {
3269
3267
  },
3270
3268
  timestamp: Date.now()
3271
3269
  }, "*"), x && Promise.resolve().then(() => x()).catch(lo), !0;
3272
- }, u[21] = x, u[22] = N, u[23] = i, u[24] = E, u[25] = l, u[26] = w, u[27] = p, u[28] = s, u[29] = Z) : Z = u[29];
3270
+ }, t[21] = x, t[22] = N, t[23] = i, t[24] = d, t[25] = l, t[26] = w, t[27] = p, t[28] = c, t[29] = Z) : Z = t[29];
3273
3271
  const H = Z;
3274
3272
  let Q;
3275
- u[30] !== m || u[31] !== k.length || u[32] !== U || u[33] !== o || u[34] !== l || u[35] !== w || u[36] !== v ? (Q = async () => {
3273
+ t[30] !== E || t[31] !== k.length || t[32] !== U || t[33] !== o || t[34] !== l || t[35] !== w || t[36] !== v ? (Q = async () => {
3276
3274
  if (v)
3277
3275
  return {
3278
3276
  kind: "blocked",
@@ -3292,84 +3290,84 @@ const ro = ue(function(e, t) {
3292
3290
  kind: "blocked",
3293
3291
  reason: "loading"
3294
3292
  };
3295
- const re = await m();
3293
+ const re = await E();
3296
3294
  return re.kind === "invalid" ? w.error("请完成所有定价要素配置") : re.kind === "success" && re.hasExtraItems && w.warning("定价服务返回了多余结果,已按请求顺序忽略"), re;
3297
- }, u[30] = m, u[31] = k.length, u[32] = U, u[33] = o, u[34] = l, u[35] = w, u[36] = v, u[37] = Q) : Q = u[37];
3295
+ }, t[30] = E, t[31] = k.length, t[32] = U, t[33] = o, t[34] = l, t[35] = w, t[36] = v, t[37] = Q) : Q = t[37];
3298
3296
  const J = Q;
3299
3297
  let X, K;
3300
- u[38] !== J || u[39] !== H || u[40] !== q ? (X = () => ({
3298
+ t[38] !== J || t[39] !== H || t[40] !== q ? (X = () => ({
3301
3299
  reset: q,
3302
3300
  navigateToPricingPage: H,
3303
3301
  calculate: J
3304
- }), K = [J, H, q], u[38] = J, u[39] = H, u[40] = q, u[41] = X, u[42] = K) : (X = u[41], K = u[42]), qt(t, X, K);
3302
+ }), K = [J, H, q], t[38] = J, t[39] = H, t[40] = q, t[41] = X, t[42] = K) : (X = t[41], K = t[42]), qt(u, X, K);
3305
3303
  let te;
3306
3304
  e: {
3307
3305
  if (v) {
3308
3306
  let de;
3309
- u[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ f("div", { className: V.emptyState, children: /* @__PURE__ */ f(Ve, { description: "合约数量超出支持范围" }) }), u[43] = de) : de = u[43], te = de;
3307
+ t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ C("div", { className: V.emptyState, children: /* @__PURE__ */ C(Ve, { description: "合约数量超出支持范围" }) }), t[43] = de) : de = t[43], te = de;
3310
3308
  break e;
3311
3309
  }
3312
3310
  if (k.length === 0) {
3313
3311
  let de;
3314
- u[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ f("div", { className: V.emptyState, children: /* @__PURE__ */ f(Ve, { description: "请先选择一笔合约" }) }), u[44] = de) : de = u[44], te = de;
3312
+ t[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ C("div", { className: V.emptyState, children: /* @__PURE__ */ C(Ve, { description: "请先选择一笔合约" }) }), t[44] = de) : de = t[44], te = de;
3315
3313
  break e;
3316
3314
  }
3317
3315
  if (M) {
3318
- const de = k[0], ru = d.resultByContractId[de.contractId], nu = !C.initialized || d.submitting;
3316
+ const de = k[0], ru = m.resultByContractId[de.contractId], nu = !F.initialized || m.submitting;
3319
3317
  let We;
3320
- u[45] !== de || u[46] !== ru || u[47] !== nu ? (We = /* @__PURE__ */ f(pn, { contract: de, calculation: ru, loading: nu }), u[45] = de, u[46] = ru, u[47] = nu, u[48] = We) : We = u[48], te = We;
3318
+ t[45] !== de || t[46] !== ru || t[47] !== nu ? (We = /* @__PURE__ */ C(pn, { contract: de, calculation: ru, loading: nu }), t[45] = de, t[46] = ru, t[47] = nu, t[48] = We) : We = t[48], te = We;
3321
3319
  break e;
3322
3320
  }
3323
- const re = b === "single", le = !C.initialized || d.submitting;
3321
+ const re = b === "single", le = !F.initialized || m.submitting;
3324
3322
  let se;
3325
- u[49] !== k || u[50] !== d.resultByContractId || u[51] !== re || u[52] !== le ? (se = /* @__PURE__ */ f(bn, { single: re, contracts: k, results: d.resultByContractId, loading: le }), u[49] = k, u[50] = d.resultByContractId, u[51] = re, u[52] = le, u[53] = se) : se = u[53], te = se;
3323
+ t[49] !== k || t[50] !== m.resultByContractId || t[51] !== re || t[52] !== le ? (se = /* @__PURE__ */ C(bn, { single: re, contracts: k, results: m.resultByContractId, loading: le }), t[49] = k, t[50] = m.resultByContractId, t[51] = re, t[52] = le, t[53] = se) : se = t[53], te = se;
3326
3324
  }
3327
3325
  const ie = te;
3328
3326
  let ne;
3329
- u[54] !== S || u[55] !== P ? (ne = vu(V.root, P, S), u[54] = S, u[55] = P, u[56] = ne) : ne = u[56];
3330
- const De = d.submitting ? "submitting" : C.initialized ? "ready" : "loading", ce = !C.initialized;
3327
+ t[54] !== S || t[55] !== P ? (ne = vu(V.root, P, S), t[54] = S, t[55] = P, t[56] = ne) : ne = t[56];
3328
+ const De = m.submitting ? "submitting" : F.initialized ? "ready" : "loading", ce = !F.initialized;
3331
3329
  let be;
3332
- u[57] !== y ? (be = y ? null : /* @__PURE__ */ f("h3", { className: V.sectionTitle, children: "定价要素" }), u[57] = y, u[58] = be) : be = u[58];
3330
+ t[57] !== y ? (be = y ? null : /* @__PURE__ */ C("h3", { className: V.sectionTitle, children: "定价要素" }), t[57] = y, t[58] = be) : be = t[58];
3333
3331
  let Ee;
3334
- u[59] !== v || u[60] !== $ ? (Ee = v ? /* @__PURE__ */ f(Ge, { className: V.limitAlert, type: "error", showIcon: !0, title: `最多支持1000笔,当前${$}笔,请返回重新选择` }) : null, u[59] = v, u[60] = $, u[61] = Ee) : Ee = u[61];
3332
+ t[59] !== v || t[60] !== $ ? (Ee = v ? /* @__PURE__ */ C(Ge, { className: V.limitAlert, type: "error", showIcon: !0, title: `最多支持1000笔,当前${$}笔,请返回重新选择` }) : null, t[59] = v, t[60] = $, t[61] = Ee) : Ee = t[61];
3335
3333
  let Fe;
3336
- u[62] !== C ? (Fe = (re) => {
3337
- C.retryResource(re);
3338
- }, u[62] = C, u[63] = Fe) : Fe = u[63];
3334
+ t[62] !== F ? (Fe = (re) => {
3335
+ F.retryResource(re);
3336
+ }, t[62] = F, t[63] = Fe) : Fe = t[63];
3339
3337
  let Ce;
3340
- u[64] !== d.resources || u[65] !== Fe ? (Ce = /* @__PURE__ */ f(On, { resources: d.resources, onRetry: Fe }), u[64] = d.resources, u[65] = Fe, u[66] = Ce) : Ce = u[66];
3338
+ t[64] !== m.resources || t[65] !== Fe ? (Ce = /* @__PURE__ */ C(On, { resources: m.resources, onRetry: Fe }), t[64] = m.resources, t[65] = Fe, t[66] = Ce) : Ce = t[66];
3341
3339
  let fe;
3342
- u[67] !== C.retryEnvironmentCurves || u[68] !== d.environmentCurvesAttempts || u[69] !== d.environmentCurvesError || u[70] !== d.environmentCurvesStatus ? (fe = d.environmentCurvesStatus === "error" ? /* @__PURE__ */ f(Ge, { type: "error", showIcon: !0, title: "环境关联曲线加载失败", description: d.environmentCurvesError, action: /* @__PURE__ */ f(Ne, { size: "small", disabled: d.environmentCurvesAttempts >= 3, onClick: C.retryEnvironmentCurves, children: "重试" }) }) : null, u[67] = C.retryEnvironmentCurves, u[68] = d.environmentCurvesAttempts, u[69] = d.environmentCurvesError, u[70] = d.environmentCurvesStatus, u[71] = fe) : fe = u[71];
3343
- const Te = d.resources.environments.status === "loading", $e = W || U;
3340
+ t[67] !== F.retryEnvironmentCurves || t[68] !== m.environmentCurvesAttempts || t[69] !== m.environmentCurvesError || t[70] !== m.environmentCurvesStatus ? (fe = m.environmentCurvesStatus === "error" ? /* @__PURE__ */ C(Ge, { type: "error", showIcon: !0, title: "环境关联曲线加载失败", description: m.environmentCurvesError, action: /* @__PURE__ */ C(Ne, { size: "small", disabled: m.environmentCurvesAttempts >= 3, onClick: F.retryEnvironmentCurves, children: "重试" }) }) : null, t[67] = F.retryEnvironmentCurves, t[68] = m.environmentCurvesAttempts, t[69] = m.environmentCurvesError, t[70] = m.environmentCurvesStatus, t[71] = fe) : fe = t[71];
3341
+ const Te = m.resources.environments.status === "loading", $e = W || U;
3344
3342
  let _e;
3345
- u[72] !== C.carbonForwardCurves || u[73] !== C.discountCurves || u[74] !== C.setContext || u[75] !== U || u[76] !== g || u[77] !== b || u[78] !== d.context || u[79] !== d.contextErrors || u[80] !== d.resources.environments.data || u[81] !== d.submitting || u[82] !== Te || u[83] !== $e ? (_e = /* @__PURE__ */ f($n, { mode: b, layout: g, value: d.context, errors: d.contextErrors, environments: d.resources.environments.data, discountCurves: C.discountCurves, carbonForwardCurves: C.carbonForwardCurves, environmentsLoading: Te, curvesLoading: $e, curvesDisabled: U, disabled: d.submitting, onChange: C.setContext }), u[72] = C.carbonForwardCurves, u[73] = C.discountCurves, u[74] = C.setContext, u[75] = U, u[76] = g, u[77] = b, u[78] = d.context, u[79] = d.contextErrors, u[80] = d.resources.environments.data, u[81] = d.submitting, u[82] = Te, u[83] = $e, u[84] = _e) : _e = u[84];
3343
+ t[72] !== F.carbonForwardCurves || t[73] !== F.discountCurves || t[74] !== F.setContext || t[75] !== U || t[76] !== g || t[77] !== b || t[78] !== m.context || t[79] !== m.contextErrors || t[80] !== m.resources.environments.data || t[81] !== m.submitting || t[82] !== Te || t[83] !== $e ? (_e = /* @__PURE__ */ C($n, { mode: b, layout: g, value: m.context, errors: m.contextErrors, environments: m.resources.environments.data, discountCurves: F.discountCurves, carbonForwardCurves: F.carbonForwardCurves, environmentsLoading: Te, curvesLoading: $e, curvesDisabled: U, disabled: m.submitting, onChange: F.setContext }), t[72] = F.carbonForwardCurves, t[73] = F.discountCurves, t[74] = F.setContext, t[75] = U, t[76] = g, t[77] = b, t[78] = m.context, t[79] = m.contextErrors, t[80] = m.resources.environments.data, t[81] = m.submitting, t[82] = Te, t[83] = $e, t[84] = _e) : _e = t[84];
3346
3344
  let Ae;
3347
- u[85] !== be || u[86] !== Ee || u[87] !== Ce || u[88] !== fe || u[89] !== _e ? (Ae = /* @__PURE__ */ Me("div", { className: V.section, children: [
3345
+ t[85] !== be || t[86] !== Ee || t[87] !== Ce || t[88] !== fe || t[89] !== _e ? (Ae = /* @__PURE__ */ Me("div", { className: V.section, children: [
3348
3346
  be,
3349
3347
  Ee,
3350
3348
  Ce,
3351
3349
  fe,
3352
3350
  _e
3353
- ] }), u[85] = be, u[86] = Ee, u[87] = Ce, u[88] = fe, u[89] = _e, u[90] = Ae) : Ae = u[90];
3351
+ ] }), t[85] = be, t[86] = Ee, t[87] = Ce, t[88] = fe, t[89] = _e, t[90] = Ae) : Ae = t[90];
3354
3352
  let Se;
3355
- u[91] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ f("div", { className: V.sectionTitle, children: "定价结果" }), u[91] = Se) : Se = u[91];
3353
+ t[91] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ C("div", { className: V.sectionTitle, children: "定价结果" }), t[91] = Se) : Se = t[91];
3356
3354
  let ge;
3357
- u[92] !== ie ? (ge = /* @__PURE__ */ Me("div", { className: V.section, children: [
3355
+ t[92] !== ie ? (ge = /* @__PURE__ */ Me("div", { className: V.section, children: [
3358
3356
  Se,
3359
3357
  ie
3360
- ] }), u[92] = ie, u[93] = ge) : ge = u[93];
3358
+ ] }), t[92] = ie, t[93] = ge) : ge = t[93];
3361
3359
  let pe;
3362
- u[94] !== N || u[95] !== G || u[96] !== J || u[97] !== H || u[98] !== q || u[99] !== g || u[100] !== b || u[101] !== T || u[102] !== d.submitting ? (pe = T ? /* @__PURE__ */ f(Ln, { mode: b, layout: g, allDisabled: N, calculateDisabled: G, submitting: d.submitting, onReset: q, onNavigateToPricingPage: H, onCalculate: () => {
3360
+ t[94] !== N || t[95] !== G || t[96] !== J || t[97] !== H || t[98] !== q || t[99] !== g || t[100] !== b || t[101] !== T || t[102] !== m.submitting ? (pe = T ? /* @__PURE__ */ C(Ln, { mode: b, layout: g, allDisabled: N, calculateDisabled: G, submitting: m.submitting, onReset: q, onNavigateToPricingPage: H, onCalculate: () => {
3363
3361
  J();
3364
- } }) : null, u[94] = N, u[95] = G, u[96] = J, u[97] = H, u[98] = q, u[99] = g, u[100] = b, u[101] = T, u[102] = d.submitting, u[103] = pe) : pe = u[103];
3362
+ } }) : null, t[94] = N, t[95] = G, t[96] = J, t[97] = H, t[98] = q, t[99] = g, t[100] = b, t[101] = T, t[102] = m.submitting, t[103] = pe) : pe = t[103];
3365
3363
  let ve;
3366
- u[104] !== ce || u[105] !== Ae || u[106] !== ge || u[107] !== pe ? (ve = /* @__PURE__ */ Me(Du, { spinning: ce, description: "定价资源加载中", children: [
3364
+ t[104] !== ce || t[105] !== Ae || t[106] !== ge || t[107] !== pe ? (ve = /* @__PURE__ */ Me(Du, { spinning: ce, description: "定价资源加载中", children: [
3367
3365
  Ae,
3368
3366
  ge,
3369
3367
  pe
3370
- ] }), u[104] = ce, u[105] = Ae, u[106] = ge, u[107] = pe, u[108] = ve) : ve = u[108];
3368
+ ] }), t[104] = ce, t[105] = Ae, t[106] = ge, t[107] = pe, t[108] = ve) : ve = t[108];
3371
3369
  let xe;
3372
- return u[109] !== I || u[110] !== ne || u[111] !== De || u[112] !== ve ? (xe = /* @__PURE__ */ f("section", { className: ne, style: I, "aria-label": "交易合约试定价", "data-status": De, children: ve }), u[109] = I, u[110] = ne, u[111] = De, u[112] = ve, u[113] = xe) : xe = u[113], xe;
3370
+ return t[109] !== I || t[110] !== ne || t[111] !== De || t[112] !== ve ? (xe = /* @__PURE__ */ C("section", { className: ne, style: I, "aria-label": "交易合约试定价", "data-status": De, children: ve }), t[109] = I, t[110] = ne, t[111] = De, t[112] = ve, t[113] = xe) : xe = t[113], xe;
3373
3371
  });
3374
3372
  ro.displayName = "IndicativePricingforSelectedContracts";
3375
3373
  function no(r, e) {
@@ -3391,46 +3389,46 @@ function lo(r) {
3391
3389
  console.error("[IndicativePricingforSelectedContracts] afterJumpPricingPage 执行失败", r);
3392
3390
  }
3393
3391
  const Rt = ue((r, e) => {
3394
- const t = z.c(7);
3395
- let u, n;
3396
- t[0] !== r ? ({
3397
- children: u,
3392
+ const u = z.c(7);
3393
+ let t, n;
3394
+ u[0] !== r ? ({
3395
+ children: t,
3398
3396
  ...n
3399
- } = r, t[0] = r, t[1] = u, t[2] = n) : (u = t[1], n = t[2]);
3397
+ } = r, u[0] = r, u[1] = t, u[2] = n) : (t = u[1], n = u[2]);
3400
3398
  let a;
3401
- return t[3] !== u || t[4] !== e || t[5] !== n ? (a = /* @__PURE__ */ f(pu.Group, { ref: e, ...n, children: u }), t[3] = u, t[4] = e, t[5] = n, t[6] = a) : a = t[6], a;
3399
+ return u[3] !== t || u[4] !== e || u[5] !== n ? (a = /* @__PURE__ */ C(pu.Group, { ref: e, ...n, children: t }), u[3] = t, u[4] = e, u[5] = n, u[6] = a) : a = u[6], a;
3402
3400
  });
3403
3401
  Rt.displayName = "GZRadioGroup";
3404
3402
  const Pt = ue((r, e) => {
3405
- const t = z.c(7);
3406
- let u, n;
3407
- t[0] !== r ? ({
3408
- children: u,
3403
+ const u = z.c(7);
3404
+ let t, n;
3405
+ u[0] !== r ? ({
3406
+ children: t,
3409
3407
  ...n
3410
- } = r, t[0] = r, t[1] = u, t[2] = n) : (u = t[1], n = t[2]);
3408
+ } = r, u[0] = r, u[1] = t, u[2] = n) : (t = u[1], n = u[2]);
3411
3409
  const a = e;
3412
3410
  let i;
3413
- return t[3] !== u || t[4] !== n || t[5] !== a ? (i = /* @__PURE__ */ f(pu.Button, { ref: a, ...n, children: u }), t[3] = u, t[4] = n, t[5] = a, t[6] = i) : i = t[6], i;
3411
+ return u[3] !== t || u[4] !== n || u[5] !== a ? (i = /* @__PURE__ */ C(pu.Button, { ref: a, ...n, children: t }), u[3] = t, u[4] = n, u[5] = a, u[6] = i) : i = u[6], i;
3414
3412
  });
3415
3413
  Pt.displayName = "GZRadioButton";
3416
3414
  const so = ue((r, e) => {
3417
- const t = z.c(7);
3418
- let u, n;
3419
- t[0] !== r ? ({
3420
- children: u,
3415
+ const u = z.c(7);
3416
+ let t, n;
3417
+ u[0] !== r ? ({
3418
+ children: t,
3421
3419
  ...n
3422
- } = r, t[0] = r, t[1] = u, t[2] = n) : (u = t[1], n = t[2]);
3420
+ } = r, u[0] = r, u[1] = t, u[2] = n) : (t = u[1], n = u[2]);
3423
3421
  const a = e;
3424
3422
  let i;
3425
- return t[3] !== u || t[4] !== n || t[5] !== a ? (i = /* @__PURE__ */ f(pu, { ref: a, ...n, children: u }), t[3] = u, t[4] = n, t[5] = a, t[6] = i) : i = t[6], i;
3423
+ return u[3] !== t || u[4] !== n || u[5] !== a ? (i = /* @__PURE__ */ C(pu, { ref: a, ...n, children: t }), u[3] = t, u[4] = n, u[5] = a, u[6] = i) : i = u[6], i;
3426
3424
  }), tu = so;
3427
3425
  tu.Group = Rt;
3428
3426
  tu.Button = Pt;
3429
3427
  tu.displayName = "GZRadio";
3430
3428
  const Hu = "-";
3431
3429
  function co(r, e) {
3432
- const t = Date.parse(r), u = Date.parse(e);
3433
- return Number.isFinite(t) && Number.isFinite(u) ? t - u : r.localeCompare(e);
3430
+ const u = Date.parse(r), t = Date.parse(e);
3431
+ return Number.isFinite(u) && Number.isFinite(t) ? u - t : r.localeCompare(e);
3434
3432
  }
3435
3433
  function mo(r) {
3436
3434
  return r.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3");
@@ -3438,25 +3436,25 @@ function mo(r) {
3438
3436
  function Eo(r) {
3439
3437
  const e = new Date(r);
3440
3438
  e.setDate(e.getDate() - 1);
3441
- const t = e.getFullYear(), u = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
3442
- return `${t}${u}${n}`;
3439
+ const u = e.getFullYear(), t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
3440
+ return `${u}${t}${n}`;
3443
3441
  }
3444
3442
  function Fo(r) {
3445
3443
  return r.map(({
3446
3444
  busnsDate: e,
3447
- valtnPrice: t,
3448
- mval: u,
3445
+ valtnPrice: u,
3446
+ mval: t,
3449
3447
  tradeCrrc: n
3450
3448
  }) => ({
3451
3449
  date: mo(e),
3452
- price: t,
3453
- npv: u,
3450
+ price: u,
3451
+ npv: t,
3454
3452
  currency: n
3455
3453
  }));
3456
3454
  }
3457
3455
  function Lt(r, e) {
3458
- const t = e === "ascending" ? 1 : -1;
3459
- return [...r].sort((u, n) => t * co(u.date, n.date));
3456
+ const u = e === "ascending" ? 1 : -1;
3457
+ return [...r].sort((t, n) => u * co(t.date, n.date));
3460
3458
  }
3461
3459
  function Co(r) {
3462
3460
  if (r == null || typeof r == "string" && r.trim() === "")
@@ -3475,24 +3473,24 @@ function Nt(r) {
3475
3473
  return !1;
3476
3474
  }
3477
3475
  }
3478
- function Fu(r, e, t) {
3476
+ function Fu(r, e, u) {
3479
3477
  if (r == null || r === "") return Hu;
3480
- let u;
3478
+ let t;
3481
3479
  try {
3482
- u = new He(r).toFixed(2);
3480
+ t = new He(r).toFixed(2);
3483
3481
  } catch {
3484
3482
  return Hu;
3485
3483
  }
3486
- const n = u.startsWith("-"), [a, i] = (n ? u.slice(1) : u).split("."), s = a.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
3484
+ const n = t.startsWith("-"), [a, i] = (n ? t.slice(1) : t).split("."), c = a.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
3487
3485
  try {
3488
- const E = new Intl.NumberFormat(t, {
3486
+ const d = new Intl.NumberFormat(u, {
3489
3487
  style: "currency",
3490
3488
  currency: e,
3491
3489
  currencyDisplay: "narrowSymbol"
3492
- }).formatToParts(0).find((F) => F.type === "currency")?.value;
3493
- return `${n ? "-" : ""}${E ?? e}${s}.${i}`;
3490
+ }).formatToParts(0).find((f) => f.type === "currency")?.value;
3491
+ return `${n ? "-" : ""}${d ?? e}${c}.${i}`;
3494
3492
  } catch {
3495
- return `${n ? "-" : ""}${e} ${s}.${i}`;
3493
+ return `${n ? "-" : ""}${e} ${c}.${i}`;
3496
3494
  }
3497
3495
  }
3498
3496
  function fo(r) {
@@ -3506,16 +3504,16 @@ function zt(r) {
3506
3504
  function po(r) {
3507
3505
  const e = zt(r);
3508
3506
  if (e.length === 0) return {};
3509
- const t = Math.min(...e), u = Math.max(...e), n = u - t, a = n > 0 ? n * Uu : u !== 0 ? Math.abs(u) * Uu : 1, i = t - a, s = u + a;
3510
- return t >= 0 ? {
3507
+ const u = Math.min(...e), t = Math.max(...e), n = t - u, a = n > 0 ? n * Uu : t !== 0 ? Math.abs(t) * Uu : 1, i = u - a, c = t + a;
3508
+ return u >= 0 ? {
3511
3509
  min: Math.max(0, i),
3512
- max: s
3513
- } : u <= 0 ? {
3510
+ max: c
3511
+ } : t <= 0 ? {
3514
3512
  min: i,
3515
- max: Math.min(0, s)
3513
+ max: Math.min(0, c)
3516
3514
  } : {
3517
3515
  min: i,
3518
- max: s
3516
+ max: c
3519
3517
  };
3520
3518
  }
3521
3519
  function vo(r) {
@@ -3525,7 +3523,7 @@ function vo(r) {
3525
3523
  position: "bottom",
3526
3524
  onZero: !1
3527
3525
  };
3528
- const t = Math.min(...e), u = Math.max(...e), n = u <= 0 && t < 0 ? "top" : "bottom", a = t <= 0 && u >= 0;
3526
+ const u = Math.min(...e), t = Math.max(...e), n = t <= 0 && u < 0 ? "top" : "bottom", a = u <= 0 && t >= 0;
3529
3527
  return {
3530
3528
  position: n,
3531
3529
  onZero: a
@@ -3535,27 +3533,27 @@ function Ke(r, e) {
3535
3533
  return Number(r.toFixed(Math.min(Math.max(e, 0), 20)));
3536
3534
  }
3537
3535
  function ho(r, e) {
3538
- const t = (e - r) / Ot, u = Math.floor(Math.log10(t)), n = 10 ** u, a = t / n, i = a < 1.5 ? 1 : a < 2.5 ? 2 : a < 4 ? 3 : a < 7 ? 5 : 10;
3539
- return Ke(i * n, -u);
3536
+ const u = (e - r) / Ot, t = Math.floor(Math.log10(u)), n = 10 ** t, a = u / n, i = a < 1.5 ? 1 : a < 2.5 ? 2 : a < 4 ? 3 : a < 7 ? 5 : 10;
3537
+ return Ke(i * n, -t);
3540
3538
  }
3541
3539
  function Do({
3542
3540
  min: r,
3543
3541
  max: e
3544
3542
  }) {
3545
3543
  if (r == null || e == null || r >= e) return;
3546
- const t = ho(r, e), u = Math.max(0, -Math.floor(Math.log10(t))) + 2, n = Ke(Math.ceil(r / t) * t, u), a = Ke(Math.floor(e / t) * t, u), i = r < n ? [r] : [];
3547
- for (let s = n; s <= a; s = Ke(s + t, u))
3548
- i.push(s);
3549
- return e > a && i.push(e), r < 0 && e > 0 ? i.filter((s) => s !== 0) : i;
3544
+ const u = ho(r, e), t = Math.max(0, -Math.floor(Math.log10(u))) + 2, n = Ke(Math.ceil(r / u) * u, t), a = Ke(Math.floor(e / u) * u, t), i = r < n ? [r] : [];
3545
+ for (let c = n; c <= a; c = Ke(c + u, t))
3546
+ i.push(c);
3547
+ return e > a && i.push(e), r < 0 && e > 0 ? i.filter((c) => c !== 0) : i;
3550
3548
  }
3551
3549
  function Bo({
3552
3550
  data: r,
3553
3551
  metric: e,
3554
- currency: t,
3555
- locale: u,
3552
+ currency: u,
3553
+ locale: t,
3556
3554
  theme: n
3557
3555
  }) {
3558
- const a = Lt(r, "ascending"), i = e === "price" ? "价格" : "NPV", s = a.map((x) => Co(x[e])), E = po(s), F = vo(s), h = Do(E), p = a.map(({
3556
+ const a = Lt(r, "ascending"), i = e === "price" ? "价格" : "NPV", c = a.map((x) => Co(x[e])), d = po(c), f = vo(c), h = Do(d), p = a.map(({
3559
3557
  date: x
3560
3558
  }) => fo(x));
3561
3559
  return {
@@ -3601,7 +3599,7 @@ function Bo({
3601
3599
  fontSize: n.fontSize
3602
3600
  },
3603
3601
  // 按当前币种和区域格式化提示框中的金额。
3604
- valueFormatter: (x) => Fu(typeof x == "number" || typeof x == "string" ? x : null, t, u)
3602
+ valueFormatter: (x) => Fu(typeof x == "number" || typeof x == "string" ? x : null, u, t)
3605
3603
  },
3606
3604
  // 日期标签轴与符号基准线分离,避免全负数据把日期标签一起移动到顶部。
3607
3605
  xAxis: [{
@@ -3635,7 +3633,7 @@ function Bo({
3635
3633
  }
3636
3634
  }, {
3637
3635
  type: "category",
3638
- position: F.position,
3636
+ position: f.position,
3639
3637
  boundaryGap: !0,
3640
3638
  data: p,
3641
3639
  axisTick: {
@@ -3647,7 +3645,7 @@ function Bo({
3647
3645
  // 实线仅表达符号方向:全负在顶部、全正在底部、跨零时吸附 0。
3648
3646
  axisLine: {
3649
3647
  show: !0,
3650
- onZero: F.onZero,
3648
+ onZero: f.onZero,
3651
3649
  lineStyle: {
3652
3650
  color: n.baseline,
3653
3651
  type: "solid"
@@ -3659,7 +3657,7 @@ function Bo({
3659
3657
  // 使用连续数值轴,支持正数、负数和小数。
3660
3658
  type: "value",
3661
3659
  // 应用根据绘图值及 5% 留白计算出的固定上下限。
3662
- ...E,
3660
+ ...d,
3663
3661
  // 期望约分为 7 段,实际刻度数和间隔仍由 ECharts 取易读值。
3664
3662
  splitNumber: Ot,
3665
3663
  // 纵轴通过网格线表达刻度,不额外显示刻度短线。
@@ -3678,7 +3676,7 @@ function Bo({
3678
3676
  // 纵轴标签使用主题次级文字色。
3679
3677
  color: n.textSecondary,
3680
3678
  // 刻度最多展示两位小数,并按当前区域添加数字分组格式。
3681
- formatter: (x) => new Intl.NumberFormat(u, {
3679
+ formatter: (x) => new Intl.NumberFormat(t, {
3682
3680
  maximumFractionDigits: 2
3683
3681
  }).format(x)
3684
3682
  },
@@ -3705,7 +3703,7 @@ function Bo({
3705
3703
  // 使用折线图连接相邻日期的数据点。
3706
3704
  type: "line",
3707
3705
  // 传入已转换的数值、0 或空点序列。
3708
- data: s,
3706
+ data: c,
3709
3707
  // 每个有效数据点使用圆形标记。
3710
3708
  symbol: "circle",
3711
3709
  // 数据点直径固定为 5px。
@@ -3754,25 +3752,25 @@ et.use([rr, nr, or, ar]);
3754
3752
  const Wu = 10;
3755
3753
  function Lo(r) {
3756
3754
  const e = z.c(26), {
3757
- data: t,
3758
- metric: u,
3755
+ data: u,
3756
+ metric: t,
3759
3757
  currency: n,
3760
3758
  locale: a,
3761
3759
  theme: i,
3762
- className: s
3763
- } = r, E = ee(null), F = ee(null), h = ee(null), p = t.length > Wu, x = `${Math.max(t.length / Wu, 1) * 100}%`;
3760
+ className: c
3761
+ } = r, d = ee(null), f = ee(null), h = ee(null), p = u.length > Wu, x = `${Math.max(u.length / Wu, 1) * 100}%`;
3764
3762
  let S;
3765
- e[0] !== n || e[1] !== t || e[2] !== a || e[3] !== u || e[4] !== i ? (S = Bo({
3766
- data: t,
3767
- metric: u,
3763
+ e[0] !== n || e[1] !== u || e[2] !== a || e[3] !== t || e[4] !== i ? (S = Bo({
3764
+ data: u,
3765
+ metric: t,
3768
3766
  currency: n,
3769
3767
  locale: a,
3770
3768
  theme: i
3771
- }), e[0] = n, e[1] = t, e[2] = a, e[3] = u, e[4] = i, e[5] = S) : S = e[5];
3769
+ }), e[0] = n, e[1] = u, e[2] = a, e[3] = t, e[4] = i, e[5] = S) : S = e[5];
3772
3770
  const I = S;
3773
3771
  let b, g;
3774
3772
  e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => {
3775
- const v = F.current;
3773
+ const v = f.current;
3776
3774
  if (!v)
3777
3775
  return;
3778
3776
  const _ = et.init(v, void 0, {
@@ -3792,23 +3790,23 @@ function Lo(r) {
3792
3790
  }, y = [I], e[8] = I, e[9] = T, e[10] = y) : (T = e[9], y = e[10]), Be(T, y);
3793
3791
  let M;
3794
3792
  e[11] !== p ? (M = () => {
3795
- const v = E.current;
3793
+ const v = d.current;
3796
3794
  !v || !p || (v.scrollLeft = v.scrollWidth - v.clientWidth);
3797
3795
  }, e[11] = p, e[12] = M) : M = e[12];
3798
3796
  let P;
3799
- e[13] !== t || e[14] !== p ? (P = [t, p], e[13] = t, e[14] = p, e[15] = P) : P = e[15], Mu(M, P);
3800
- const w = u === "price" ? "价格" : "NPV";
3797
+ e[13] !== u || e[14] !== p ? (P = [u, p], e[13] = u, e[14] = p, e[15] = P) : P = e[15], Mu(M, P);
3798
+ const w = t === "price" ? "价格" : "NPV";
3801
3799
  let L;
3802
- e[16] !== s || e[17] !== p ? (L = vu(s, {
3800
+ e[16] !== c || e[17] !== p ? (L = vu(c, {
3803
3801
  [ae.chartScrollable]: p
3804
- }), e[16] = s, e[17] = p, e[18] = L) : L = e[18];
3802
+ }), e[16] = c, e[17] = p, e[18] = L) : L = e[18];
3805
3803
  const D = `按日期展示的${w}折线图`;
3806
3804
  let R;
3807
- e[19] !== x ? (R = /* @__PURE__ */ f("div", { ref: F, className: ae.chartCanvas, style: {
3805
+ e[19] !== x ? (R = /* @__PURE__ */ C("div", { ref: f, className: ae.chartCanvas, style: {
3808
3806
  width: x
3809
3807
  } }), e[19] = x, e[20] = R) : R = e[20];
3810
3808
  let $;
3811
- return e[21] !== p || e[22] !== R || e[23] !== L || e[24] !== D ? ($ = /* @__PURE__ */ f("div", { ref: E, className: L, role: "img", "aria-label": D, "data-scrollable": p, children: R }), e[21] = p, e[22] = R, e[23] = L, e[24] = D, e[25] = $) : $ = e[25], $;
3809
+ return e[21] !== p || e[22] !== R || e[23] !== L || e[24] !== D ? ($ = /* @__PURE__ */ C("div", { ref: d, className: L, role: "img", "aria-label": D, "data-scrollable": p, children: R }), e[21] = p, e[22] = R, e[23] = L, e[24] = D, e[25] = $) : $ = e[25], $;
3812
3810
  }
3813
3811
  const No = "数据加载失败,请稍后重试", lu = [], Oo = "CNY", su = "zh-CN", Vt = 32, Yt = 28, Gt = 7, zo = Vt + Yt * Gt + 2, Vo = {
3814
3812
  suppressHeaderMenuButton: !0,
@@ -3825,73 +3823,73 @@ const No = "数据加载失败,请稍后重试", lu = [], Oo = "CNY", su = "zh
3825
3823
  };
3826
3824
  function Ht(r) {
3827
3825
  const e = z.c(4), {
3828
- ariaLabel: t,
3829
- className: u
3826
+ ariaLabel: u,
3827
+ className: t
3830
3828
  } = r;
3831
3829
  let n;
3832
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ f(Ve, { image: Ve.PRESENTED_IMAGE_SIMPLE, description: "暂无数据", styles: Yo }), e[0] = n) : n = e[0];
3830
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ C(Ve, { image: Ve.PRESENTED_IMAGE_SIMPLE, description: "暂无数据", styles: Yo }), e[0] = n) : n = e[0];
3833
3831
  let a;
3834
- return e[1] !== t || e[2] !== u ? (a = /* @__PURE__ */ f("div", { className: u, role: "status", "aria-label": t, children: n }), e[1] = t, e[2] = u, e[3] = a) : a = e[3], a;
3832
+ return e[1] !== u || e[2] !== t ? (a = /* @__PURE__ */ C("div", { className: t, role: "status", "aria-label": u, children: n }), e[1] = u, e[2] = t, e[3] = a) : a = e[3], a;
3835
3833
  }
3836
3834
  function Go() {
3837
3835
  const r = z.c(1);
3838
3836
  let e;
3839
- return r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ f(Ht, { ariaLabel: "暂无估值日志数据" }), r[0] = e) : e = r[0], e;
3837
+ return r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ C(Ht, { ariaLabel: "暂无估值日志数据" }), r[0] = e) : e = r[0], e;
3840
3838
  }
3841
3839
  function Ho(r) {
3842
3840
  return r instanceof DOMException && r.name === "AbortError";
3843
3841
  }
3844
3842
  function aa(r) {
3845
3843
  const e = z.c(67), {
3846
- adapter: t,
3847
- allVarCodeSnum: u,
3844
+ adapter: u,
3845
+ allVarCodeSnum: t,
3848
3846
  className: n,
3849
3847
  style: a
3850
3848
  } = r, {
3851
3849
  message: i
3852
3850
  } = hu.useApp(), {
3853
- token: s
3851
+ token: c
3854
3852
  } = Ju.useToken();
3855
- let E;
3856
- e[0] !== t || e[1] !== u ? (E = () => ({
3857
- adapter: t,
3858
- allVarCodeSnum: u,
3853
+ let d;
3854
+ e[0] !== u || e[1] !== t ? (d = () => ({
3855
+ adapter: u,
3856
+ allVarCodeSnum: t,
3859
3857
  status: "loading",
3860
3858
  data: lu
3861
- }), e[0] = t, e[1] = u, e[2] = E) : E = e[2];
3862
- const [F, h] = ze(E), [p, x] = ze("price"), S = F.adapter === t && F.allVarCodeSnum === u, I = S ? F.status : "loading", b = S ? F.data : lu;
3859
+ }), e[0] = u, e[1] = t, e[2] = d) : d = e[2];
3860
+ const [f, h] = ze(d), [p, x] = ze("price"), S = f.adapter === u && f.allVarCodeSnum === t, I = S ? f.status : "loading", b = S ? f.data : lu;
3863
3861
  let g, T;
3864
- e[3] !== t || e[4] !== u || e[5] !== i ? (g = () => {
3862
+ e[3] !== u || e[4] !== t || e[5] !== i ? (g = () => {
3865
3863
  const X = new AbortController();
3866
3864
  let K = !0;
3867
3865
  const te = {
3868
- allVarCodeSnum: u,
3866
+ allVarCodeSnum: t,
3869
3867
  endTime: Eo(/* @__PURE__ */ new Date()),
3870
3868
  size: "30"
3871
3869
  };
3872
- return t.getValuationLogs(te, {
3870
+ return u.getValuationLogs(te, {
3873
3871
  signal: X.signal
3874
3872
  }).then((ie) => {
3875
3873
  if (!K)
3876
3874
  return;
3877
3875
  const ne = Fo(ie);
3878
3876
  h({
3879
- adapter: t,
3880
- allVarCodeSnum: u,
3877
+ adapter: u,
3878
+ allVarCodeSnum: t,
3881
3879
  status: ne.length === 0 ? "empty" : "success",
3882
3880
  data: ne
3883
3881
  });
3884
3882
  }).catch((ie) => {
3885
3883
  !K || X.signal.aborted || Ho(ie) || (h({
3886
- adapter: t,
3887
- allVarCodeSnum: u,
3884
+ adapter: u,
3885
+ allVarCodeSnum: t,
3888
3886
  status: "error",
3889
3887
  data: lu
3890
3888
  }), i.error(No));
3891
3889
  }), () => {
3892
3890
  K = !1, X.abort();
3893
3891
  };
3894
- }, T = [t, u, i], e[3] = t, e[4] = u, e[5] = i, e[6] = g, e[7] = T) : (g = e[6], T = e[7]), Be(g, T);
3892
+ }, T = [u, t, i], e[3] = u, e[4] = t, e[5] = i, e[6] = g, e[7] = T) : (g = e[6], T = e[7]), Be(g, T);
3895
3893
  let y;
3896
3894
  e[8] !== b ? (y = Lt(b, "descending").map(Zo), e[8] = b, e[9] = y) : y = e[9];
3897
3895
  const M = y, P = b[0]?.currency || Oo;
@@ -3947,32 +3945,32 @@ function aa(r) {
3947
3945
  e[17] !== D || e[18] !== $ ? (v = [w, D, $], e[17] = D, e[18] = $, e[19] = v) : v = e[19];
3948
3946
  const _ = v;
3949
3947
  let k;
3950
- e[20] !== s.colorBgElevated || e[21] !== s.colorBorder || e[22] !== s.colorPrimary || e[23] !== s.colorSplit || e[24] !== s.colorText || e[25] !== s.colorTextSecondary || e[26] !== s.fontFamily || e[27] !== s.fontSize ? (k = {
3951
- primary: s.colorPrimary,
3952
- baseline: s.colorBorder,
3953
- backgroundElevated: s.colorBgElevated,
3954
- text: s.colorText,
3955
- textSecondary: s.colorTextSecondary,
3956
- split: s.colorSplit,
3957
- fontFamily: s.fontFamily,
3958
- fontSize: s.fontSize
3959
- }, e[20] = s.colorBgElevated, e[21] = s.colorBorder, e[22] = s.colorPrimary, e[23] = s.colorSplit, e[24] = s.colorText, e[25] = s.colorTextSecondary, e[26] = s.fontFamily, e[27] = s.fontSize, e[28] = k) : k = e[28];
3960
- const Y = k, C = I === "success", m = M.length > Gt;
3948
+ e[20] !== c.colorBgElevated || e[21] !== c.colorBorder || e[22] !== c.colorPrimary || e[23] !== c.colorSplit || e[24] !== c.colorText || e[25] !== c.colorTextSecondary || e[26] !== c.fontFamily || e[27] !== c.fontSize ? (k = {
3949
+ primary: c.colorPrimary,
3950
+ baseline: c.colorBorder,
3951
+ backgroundElevated: c.colorBgElevated,
3952
+ text: c.colorText,
3953
+ textSecondary: c.colorTextSecondary,
3954
+ split: c.colorSplit,
3955
+ fontFamily: c.fontFamily,
3956
+ fontSize: c.fontSize
3957
+ }, e[20] = c.colorBgElevated, e[21] = c.colorBorder, e[22] = c.colorPrimary, e[23] = c.colorSplit, e[24] = c.colorText, e[25] = c.colorTextSecondary, e[26] = c.fontFamily, e[27] = c.fontSize, e[28] = k) : k = e[28];
3958
+ const Y = k, F = I === "success", E = M.length > Gt;
3961
3959
  let o;
3962
3960
  e[29] !== n ? (o = vu(ae.root, n), e[29] = n, e[30] = o) : o = e[30];
3963
3961
  const l = I === "loading";
3964
- let c;
3965
- e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ f("h2", { className: ae.title, children: "最大展示30条日志数据" }), e[31] = c) : c = e[31];
3966
- const d = I === "loading", B = m ? zo : "auto";
3962
+ let s;
3963
+ e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ C("h2", { className: ae.title, children: "最大展示30条日志数据" }), e[31] = s) : s = e[31];
3964
+ const m = I === "loading", B = E ? zo : "auto";
3967
3965
  let A;
3968
3966
  e[32] !== B ? (A = {
3969
3967
  height: B
3970
3968
  }, e[32] = B, e[33] = A) : A = e[33];
3971
- const O = m ? "normal" : "autoHeight";
3969
+ const O = E ? "normal" : "autoHeight";
3972
3970
  let N;
3973
- e[34] !== _ || e[35] !== A || e[36] !== O || e[37] !== m || e[38] !== M ? (N = /* @__PURE__ */ f("div", { className: ae.tablePanel, "aria-label": "估值日志表格", children: /* @__PURE__ */ f(bu, { className: ae.table, containerStyle: A, domLayout: O, rowData: M, columnDefs: _, defaultColDef: Vo, getRowId: Uo, headerHeight: Vt, rowHeight: Yt, pagination: !1, noRowsOverlayComponent: Go, suppressMovableColumns: !0, suppressCellFocus: !0, suppressContextMenu: !0, alwaysShowVerticalScroll: m }) }), e[34] = _, e[35] = A, e[36] = O, e[37] = m, e[38] = M, e[39] = N) : N = e[39];
3971
+ e[34] !== _ || e[35] !== A || e[36] !== O || e[37] !== E || e[38] !== M ? (N = /* @__PURE__ */ C("div", { className: ae.tablePanel, "aria-label": "估值日志表格", children: /* @__PURE__ */ C(bu, { className: ae.table, containerStyle: A, domLayout: O, rowData: M, columnDefs: _, defaultColDef: Vo, getRowId: Uo, headerHeight: Vt, rowHeight: Yt, pagination: !1, noRowsOverlayComponent: Go, suppressMovableColumns: !0, suppressCellFocus: !0, suppressContextMenu: !0, alwaysShowVerticalScroll: E }) }), e[34] = _, e[35] = A, e[36] = O, e[37] = E, e[38] = M, e[39] = N) : N = e[39];
3974
3972
  let G;
3975
- e[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ f("h3", { className: ae.chartTitle, children: "结果图形展示" }), e[40] = G) : G = e[40];
3973
+ e[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ C("h3", { className: ae.chartTitle, children: "结果图形展示" }), e[40] = G) : G = e[40];
3976
3974
  let W, U;
3977
3975
  e[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = [{
3978
3976
  label: "价格",
@@ -3989,10 +3987,10 @@ function aa(r) {
3989
3987
  let j;
3990
3988
  e[43] !== p ? (j = /* @__PURE__ */ Me("div", { className: ae.chartHeader, children: [
3991
3989
  G,
3992
- /* @__PURE__ */ f(tu.Group, { size: "small", optionType: "button", buttonStyle: "solid", "aria-label": "估值指标", value: p, options: W, onChange: U })
3990
+ /* @__PURE__ */ C(tu.Group, { size: "small", optionType: "button", buttonStyle: "solid", "aria-label": "估值指标", value: p, options: W, onChange: U })
3993
3991
  ] }), e[43] = p, e[44] = j) : j = e[44];
3994
3992
  let q;
3995
- e[45] !== Y || e[46] !== b || e[47] !== p || e[48] !== P || e[49] !== C || e[50] !== I ? (q = C ? /* @__PURE__ */ f(Lo, { className: ae.chart, data: b, metric: p, currency: P, locale: su, theme: Y }) : I === "empty" ? /* @__PURE__ */ f(Ht, { className: ae.chartEmpty, ariaLabel: "暂无估值曲线数据" }) : /* @__PURE__ */ f("div", { className: ae.chartEmpty, "aria-label": "暂无估值曲线数据" }), e[45] = Y, e[46] = b, e[47] = p, e[48] = P, e[49] = C, e[50] = I, e[51] = q) : q = e[51];
3993
+ e[45] !== Y || e[46] !== b || e[47] !== p || e[48] !== P || e[49] !== F || e[50] !== I ? (q = F ? /* @__PURE__ */ C(Lo, { className: ae.chart, data: b, metric: p, currency: P, locale: su, theme: Y }) : I === "empty" ? /* @__PURE__ */ C(Ht, { className: ae.chartEmpty, ariaLabel: "暂无估值曲线数据" }) : /* @__PURE__ */ C("div", { className: ae.chartEmpty, "aria-label": "暂无估值曲线数据" }), e[45] = Y, e[46] = b, e[47] = p, e[48] = P, e[49] = F, e[50] = I, e[51] = q) : q = e[51];
3996
3994
  let Z;
3997
3995
  e[52] !== j || e[53] !== q ? (Z = /* @__PURE__ */ Me("section", { className: ae.chartPanel, "aria-label": "估值日志图形展示", children: [
3998
3996
  j,
@@ -4004,10 +4002,10 @@ function aa(r) {
4004
4002
  Z
4005
4003
  ] }), e[55] = N, e[56] = Z, e[57] = H) : H = e[57];
4006
4004
  let Q;
4007
- e[58] !== d || e[59] !== H ? (Q = /* @__PURE__ */ f(Du, { className: ae.loading, spinning: d, description: "估值日志加载中", children: H }), e[58] = d, e[59] = H, e[60] = Q) : Q = e[60];
4005
+ e[58] !== m || e[59] !== H ? (Q = /* @__PURE__ */ C(Du, { className: ae.loading, spinning: m, description: "估值日志加载中", children: H }), e[58] = m, e[59] = H, e[60] = Q) : Q = e[60];
4008
4006
  let J;
4009
4007
  return e[61] !== I || e[62] !== a || e[63] !== o || e[64] !== l || e[65] !== Q ? (J = /* @__PURE__ */ Me("section", { className: o, style: a, "aria-label": "估值日志数据图表", "aria-busy": l, "data-status": I, children: [
4010
- c,
4008
+ s,
4011
4009
  Q
4012
4010
  ] }), e[61] = I, e[62] = a, e[63] = o, e[64] = l, e[65] = Q, e[66] = J) : J = e[66], J;
4013
4011
  }