bi-components-library 1.3.6-next.9 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -906,13 +906,13 @@ wt.prototype.property = "";
906
906
  wt.prototype.spaceSeparated = !1;
907
907
  wt.prototype.space = void 0;
908
908
  let D1 = 0;
909
- const Se = Cr(), je = Cr(), Gs = Cr(), J = Cr(), Fe = Cr(), Fr = Cr(), _t = Cr();
909
+ const ke = Cr(), je = Cr(), Gs = Cr(), J = Cr(), Fe = Cr(), Fr = Cr(), _t = Cr();
910
910
  function Cr() {
911
911
  return 2 ** ++D1;
912
912
  }
913
913
  const Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
914
914
  __proto__: null,
915
- boolean: Se,
915
+ boolean: ke,
916
916
  booleanish: je,
917
917
  commaOrSpaceSeparated: _t,
918
918
  commaSeparated: Fr,
@@ -1041,38 +1041,38 @@ const L1 = Gr({
1041
1041
  accessKey: Fe,
1042
1042
  action: null,
1043
1043
  allow: null,
1044
- allowFullScreen: Se,
1045
- allowPaymentRequest: Se,
1046
- allowUserMedia: Se,
1044
+ allowFullScreen: ke,
1045
+ allowPaymentRequest: ke,
1046
+ allowUserMedia: ke,
1047
1047
  alt: null,
1048
1048
  as: null,
1049
- async: Se,
1049
+ async: ke,
1050
1050
  autoCapitalize: null,
1051
1051
  autoComplete: Fe,
1052
- autoFocus: Se,
1053
- autoPlay: Se,
1052
+ autoFocus: ke,
1053
+ autoPlay: ke,
1054
1054
  blocking: Fe,
1055
1055
  capture: null,
1056
1056
  charSet: null,
1057
- checked: Se,
1057
+ checked: ke,
1058
1058
  cite: null,
1059
1059
  className: Fe,
1060
1060
  cols: J,
1061
1061
  colSpan: null,
1062
1062
  content: null,
1063
1063
  contentEditable: je,
1064
- controls: Se,
1064
+ controls: ke,
1065
1065
  controlsList: Fe,
1066
1066
  coords: J | Fr,
1067
1067
  crossOrigin: null,
1068
1068
  data: null,
1069
1069
  dateTime: null,
1070
1070
  decoding: null,
1071
- default: Se,
1072
- defer: Se,
1071
+ default: ke,
1072
+ defer: ke,
1073
1073
  dir: null,
1074
1074
  dirName: null,
1075
- disabled: Se,
1075
+ disabled: ke,
1076
1076
  download: Gs,
1077
1077
  draggable: je,
1078
1078
  encType: null,
@@ -1082,7 +1082,7 @@ const L1 = Gr({
1082
1082
  formAction: null,
1083
1083
  formEncType: null,
1084
1084
  formMethod: null,
1085
- formNoValidate: Se,
1085
+ formNoValidate: ke,
1086
1086
  formTarget: null,
1087
1087
  headers: Fe,
1088
1088
  height: J,
@@ -1095,15 +1095,15 @@ const L1 = Gr({
1095
1095
  id: null,
1096
1096
  imageSizes: null,
1097
1097
  imageSrcSet: null,
1098
- inert: Se,
1098
+ inert: ke,
1099
1099
  inputMode: null,
1100
1100
  integrity: null,
1101
1101
  is: null,
1102
- isMap: Se,
1102
+ isMap: ke,
1103
1103
  itemId: null,
1104
1104
  itemProp: Fe,
1105
1105
  itemRef: Fe,
1106
- itemScope: Se,
1106
+ itemScope: ke,
1107
1107
  itemType: Fe,
1108
1108
  kind: null,
1109
1109
  label: null,
@@ -1111,7 +1111,7 @@ const L1 = Gr({
1111
1111
  language: null,
1112
1112
  list: null,
1113
1113
  loading: null,
1114
- loop: Se,
1114
+ loop: ke,
1115
1115
  low: J,
1116
1116
  manifest: null,
1117
1117
  max: null,
@@ -1120,12 +1120,12 @@ const L1 = Gr({
1120
1120
  method: null,
1121
1121
  min: null,
1122
1122
  minLength: J,
1123
- multiple: Se,
1124
- muted: Se,
1123
+ multiple: ke,
1124
+ muted: ke,
1125
1125
  name: null,
1126
1126
  nonce: null,
1127
- noModule: Se,
1128
- noValidate: Se,
1127
+ noModule: ke,
1128
+ noValidate: ke,
1129
1129
  onAbort: null,
1130
1130
  onAfterPrint: null,
1131
1131
  onAuxClick: null,
@@ -1214,31 +1214,31 @@ const L1 = Gr({
1214
1214
  onVolumeChange: null,
1215
1215
  onWaiting: null,
1216
1216
  onWheel: null,
1217
- open: Se,
1217
+ open: ke,
1218
1218
  optimum: J,
1219
1219
  pattern: null,
1220
1220
  ping: Fe,
1221
1221
  placeholder: null,
1222
- playsInline: Se,
1222
+ playsInline: ke,
1223
1223
  popover: null,
1224
1224
  popoverTarget: null,
1225
1225
  popoverTargetAction: null,
1226
1226
  poster: null,
1227
1227
  preload: null,
1228
- readOnly: Se,
1228
+ readOnly: ke,
1229
1229
  referrerPolicy: null,
1230
1230
  rel: Fe,
1231
- required: Se,
1232
- reversed: Se,
1231
+ required: ke,
1232
+ reversed: ke,
1233
1233
  rows: J,
1234
1234
  rowSpan: J,
1235
1235
  sandbox: Fe,
1236
1236
  scope: null,
1237
- scoped: Se,
1238
- seamless: Se,
1239
- selected: Se,
1240
- shadowRootClonable: Se,
1241
- shadowRootDelegatesFocus: Se,
1237
+ scoped: ke,
1238
+ seamless: ke,
1239
+ selected: ke,
1240
+ shadowRootClonable: ke,
1241
+ shadowRootDelegatesFocus: ke,
1242
1242
  shadowRootMode: null,
1243
1243
  shape: null,
1244
1244
  size: J,
@@ -1258,7 +1258,7 @@ const L1 = Gr({
1258
1258
  title: null,
1259
1259
  translate: null,
1260
1260
  type: null,
1261
- typeMustMatch: Se,
1261
+ typeMustMatch: ke,
1262
1262
  useMap: null,
1263
1263
  value: je,
1264
1264
  width: J,
@@ -1304,9 +1304,9 @@ const L1 = Gr({
1304
1304
  // `<object>`
1305
1305
  color: null,
1306
1306
  // `<font>` and `<hr>`. Use CSS instead
1307
- compact: Se,
1307
+ compact: ke,
1308
1308
  // Lists. Use CSS to reduce space between items instead
1309
- declare: Se,
1309
+ declare: ke,
1310
1310
  // `<object>`
1311
1311
  event: null,
1312
1312
  // `<script>`
@@ -1330,13 +1330,13 @@ const L1 = Gr({
1330
1330
  // `<body>`
1331
1331
  marginWidth: J,
1332
1332
  // `<body>`
1333
- noResize: Se,
1333
+ noResize: ke,
1334
1334
  // `<frame>`
1335
- noHref: Se,
1335
+ noHref: ke,
1336
1336
  // `<area>`. Use no href instead of an explicit `nohref`
1337
- noShade: Se,
1337
+ noShade: ke,
1338
1338
  // `<hr>`. Use background-color and height instead of borders
1339
- noWrap: Se,
1339
+ noWrap: ke,
1340
1340
  // `<td>` and `<th>`
1341
1341
  object: null,
1342
1342
  // `<applet>`
@@ -1376,8 +1376,8 @@ const L1 = Gr({
1376
1376
  allowTransparency: null,
1377
1377
  autoCorrect: null,
1378
1378
  autoSave: null,
1379
- disablePictureInPicture: Se,
1380
- disableRemotePlayback: Se,
1379
+ disablePictureInPicture: ke,
1380
+ disableRemotePlayback: ke,
1381
1381
  prefix: null,
1382
1382
  property: null,
1383
1383
  results: J,
@@ -1612,7 +1612,7 @@ const L1 = Gr({
1612
1612
  dur: null,
1613
1613
  divisor: J,
1614
1614
  dominantBaseline: null,
1615
- download: Se,
1615
+ download: ke,
1616
1616
  dx: null,
1617
1617
  dy: null,
1618
1618
  edgeMode: null,
@@ -3860,8 +3860,8 @@ function pv(e, t, n) {
3860
3860
  }
3861
3861
  function b(M) {
3862
3862
  if (M === null || M === 47 || M === 62 || We(M)) {
3863
- const be = M === 47, Ae = i.toLowerCase();
3864
- return !be && !a && Dc.includes(Ae) ? (l = 1, r.interrupt ? t(M) : F(M)) : uv.includes(i.toLowerCase()) ? (l = 6, be ? (e.consume(M), E) : r.interrupt ? t(M) : F(M)) : (l = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(M) : a ? A(M) : k(M));
3863
+ const be = M === 47, Te = i.toLowerCase();
3864
+ return !be && !a && Dc.includes(Te) ? (l = 1, r.interrupt ? t(M) : F(M)) : uv.includes(i.toLowerCase()) ? (l = 6, be ? (e.consume(M), E) : r.interrupt ? t(M) : F(M)) : (l = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(M) : a ? A(M) : k(M));
3865
3865
  }
3866
3866
  return M === 45 || Mt(M) ? (e.consume(M), i += String.fromCharCode(M), b) : n(M);
3867
3867
  }
@@ -4696,21 +4696,21 @@ function ay(e, t, n) {
4696
4696
  function M(we) {
4697
4697
  return fe;
4698
4698
  function fe(Oe) {
4699
- return T = S(), Z = we, we.partial || (u.currentConstruct = we), we.name && u.parser.constructs.disable.null.includes(we.name) ? Ae() : we.tokenize.call(
4699
+ return T = S(), Z = we, we.partial || (u.currentConstruct = we), we.name && u.parser.constructs.disable.null.includes(we.name) ? Te() : we.tokenize.call(
4700
4700
  // If we do have fields, create an object w/ `context` as its
4701
4701
  // prototype.
4702
4702
  // This allows a “live binding”, which is needed for `interrupt`.
4703
4703
  F ? Object.assign(Object.create(u), F) : u,
4704
4704
  o,
4705
4705
  be,
4706
- Ae
4706
+ Te
4707
4707
  )(Oe);
4708
4708
  }
4709
4709
  }
4710
4710
  function be(we) {
4711
4711
  return O(Z, T), y;
4712
4712
  }
4713
- function Ae(we) {
4713
+ function Te(we) {
4714
4714
  return T.restore(), ++$ < z.length ? M(z[$]) : P;
4715
4715
  }
4716
4716
  }
@@ -4891,8 +4891,8 @@ function my(e) {
4891
4891
  definitionLabelString: i,
4892
4892
  definitionTitleString: i,
4893
4893
  emphasis: a(qe),
4894
- hardBreakEscape: a(Ce),
4895
- hardBreakTrailing: a(Ce),
4894
+ hardBreakEscape: a(xe),
4895
+ hardBreakTrailing: a(xe),
4896
4896
  htmlFlow: a(Ve, i),
4897
4897
  htmlFlowData: S,
4898
4898
  htmlText: a(Ve, i),
@@ -4921,8 +4921,8 @@ function my(e) {
4921
4921
  autolinkProtocol: Oe,
4922
4922
  blockQuote: o(),
4923
4923
  characterEscapeValue: B,
4924
- characterReferenceMarkerHexadecimal: Ae,
4925
- characterReferenceMarkerNumeric: Ae,
4924
+ characterReferenceMarkerHexadecimal: Te,
4925
+ characterReferenceMarkerNumeric: Te,
4926
4926
  characterReferenceValue: we,
4927
4927
  characterReference: fe,
4928
4928
  codeFenced: o(b),
@@ -5247,7 +5247,7 @@ function my(e) {
5247
5247
  const le = this.resume(), he = this.stack[this.stack.length - 1];
5248
5248
  he.label = le, he.identifier = Hr(this.sliceSerialize(j)).toLowerCase(), this.data.referenceType = "full";
5249
5249
  }
5250
- function Ae(j) {
5250
+ function Te(j) {
5251
5251
  this.data.characterReferenceType = j.type;
5252
5252
  }
5253
5253
  function we(j) {
@@ -5314,7 +5314,7 @@ function my(e) {
5314
5314
  children: []
5315
5315
  };
5316
5316
  }
5317
- function Ce() {
5317
+ function xe() {
5318
5318
  return {
5319
5319
  type: "break"
5320
5320
  };
@@ -15780,7 +15780,7 @@ const $p = ve.memo(
15780
15780
  const Ie = window.getComputedStyle(q);
15781
15781
  be = (Number.parseFloat(Ie.paddingLeft) || 0) + (Number.parseFloat(Ie.paddingRight) || 0);
15782
15782
  }
15783
- const Ae = w.querySelector(".ant-select-arrow"), we = Ae ? Math.ceil(Ae.getBoundingClientRect().width) : 12, fe = w.querySelector(".ant-select-clear");
15783
+ const Te = w.querySelector(".ant-select-arrow"), we = Te ? Math.ceil(Te.getBoundingClientRect().width) : 12, fe = w.querySelector(".ant-select-clear");
15784
15784
  let Oe = 0;
15785
15785
  if (fe) {
15786
15786
  const Ie = window.getComputedStyle(fe);
@@ -16057,7 +16057,7 @@ function Wp() {
16057
16057
  return Z ? lt : lt.endOf(u);
16058
16058
  }, ue = function(De, Ie) {
16059
16059
  return O.w($.toDate()[De].apply($.toDate("s"), (Z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ie)), $);
16060
- }, M = this.$W, be = this.$M, Ae = this.$D, we = "set" + (this.$u ? "UTC" : "");
16060
+ }, M = this.$W, be = this.$M, Te = this.$D, we = "set" + (this.$u ? "UTC" : "");
16061
16061
  switch (T) {
16062
16062
  case h:
16063
16063
  return Z ? te(1, 0) : te(31, 11);
@@ -16065,7 +16065,7 @@ function Wp() {
16065
16065
  return Z ? te(1, be) : te(0, be + 1);
16066
16066
  case c:
16067
16067
  var fe = this.$locale().weekStart || 0, Oe = (M < fe ? M + 7 : M) - fe;
16068
- return te(Z ? Ae - Oe : Ae + (6 - Oe), be);
16068
+ return te(Z ? Te - Oe : Te + (6 - Oe), be);
16069
16069
  case u:
16070
16070
  case m:
16071
16071
  return ue(we + "Hours", 0);
@@ -16095,8 +16095,8 @@ function Wp() {
16095
16095
  var $, Z = this;
16096
16096
  P = Number(P);
16097
16097
  var T = O.p(z), te = function(be) {
16098
- var Ae = B(Z);
16099
- return O.w(Ae.date(Ae.date() + Math.round(be * P)), Z);
16098
+ var Te = B(Z);
16099
+ return O.w(Te.date(Te.date() + Math.round(be * P)), Z);
16100
16100
  };
16101
16101
  if (T === d) return this.set(d, this.$M + P);
16102
16102
  if (T === h) return this.set(h, this.$y + P);
@@ -16109,7 +16109,7 @@ function Wp() {
16109
16109
  }, y.format = function(P) {
16110
16110
  var z = this, $ = this.$locale();
16111
16111
  if (!this.isValid()) return $.invalidDate || g;
16112
- var Z = P || "YYYY-MM-DDTHH:mm:ssZ", T = O.z(this), te = this.$H, ue = this.$m, M = this.$M, be = $.weekdays, Ae = $.months, we = $.meridiem, fe = function(Ie, lt, Vt, ln) {
16112
+ var Z = P || "YYYY-MM-DDTHH:mm:ssZ", T = O.z(this), te = this.$H, ue = this.$m, M = this.$M, be = $.weekdays, Te = $.months, we = $.meridiem, fe = function(Ie, lt, Vt, ln) {
16113
16113
  return Ie && (Ie[lt] || Ie(z, Z)) || Vt[lt].slice(0, ln);
16114
16114
  }, Oe = function(Ie) {
16115
16115
  return O.s(te % 12 || 12, Ie, "0");
@@ -16129,9 +16129,9 @@ function Wp() {
16129
16129
  case "MM":
16130
16130
  return O.s(M + 1, 2, "0");
16131
16131
  case "MMM":
16132
- return fe($.monthsShort, M, Ae, 3);
16132
+ return fe($.monthsShort, M, Te, 3);
16133
16133
  case "MMMM":
16134
- return fe(Ae, M);
16134
+ return fe(Te, M);
16135
16135
  case "D":
16136
16136
  return z.$D;
16137
16137
  case "DD":
@@ -16175,18 +16175,18 @@ function Wp() {
16175
16175
  }, y.utcOffset = function() {
16176
16176
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
16177
16177
  }, y.diff = function(P, z, $) {
16178
- var Z, T = this, te = O.p(z), ue = B(P), M = (ue.utcOffset() - this.utcOffset()) * r, be = this - ue, Ae = function() {
16178
+ var Z, T = this, te = O.p(z), ue = B(P), M = (ue.utcOffset() - this.utcOffset()) * r, be = this - ue, Te = function() {
16179
16179
  return O.m(T, ue);
16180
16180
  };
16181
16181
  switch (te) {
16182
16182
  case h:
16183
- Z = Ae() / 12;
16183
+ Z = Te() / 12;
16184
16184
  break;
16185
16185
  case d:
16186
- Z = Ae();
16186
+ Z = Te();
16187
16187
  break;
16188
16188
  case f:
16189
- Z = Ae() / 3;
16189
+ Z = Te() / 3;
16190
16190
  break;
16191
16191
  case c:
16192
16192
  Z = (be - M) / 6048e5;
@@ -23476,7 +23476,7 @@ const Dd = 2 * Math.PI * 6.5, em = "data:image/svg+xml,%3Csvg xmlns='http://www.
23476
23476
  try {
23477
23477
  const be = await a({ url: ue });
23478
23478
  if (F(), r(e.key, be.videoUrl), l?.(e.key, be.thumbnail || ""), c("success"), !be.thumbnail && be.videoUrl) {
23479
- const Ae = `/api/download-report-pdf?url=${encodeURIComponent(be.videoUrl)}`, we = await G6(Ae);
23479
+ const Te = `/api/download-report-pdf?url=${encodeURIComponent(be.videoUrl)}`, we = await G6(Te);
23480
23480
  we && E.current === M && l?.(e.key, we);
23481
23481
  }
23482
23482
  } catch (be) {
@@ -24004,8 +24004,8 @@ const nx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24004
24004
  error: d
24005
24005
  }) => {
24006
24006
  const f = el(), h = rx(e.tooltip), m = t ?? "", g = !!i, b = !m && !g, E = !!l, A = E && !c && (b || g), k = !E && !!h && b, R = A || k, [_, C] = K(!1), [I, w] = K(!1), S = re({}).current, B = re(""), O = V(
24007
- async (Ce) => {
24008
- const Ve = Ce.trim();
24007
+ async (xe) => {
24008
+ const Ve = xe.trim();
24009
24009
  if (!(!Ve || !r) && B.current !== Ve) {
24010
24010
  B.current = Ve, C(!0);
24011
24011
  try {
@@ -24023,10 +24023,10 @@ const nx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24023
24023
  const F = V(() => {
24024
24024
  O(m);
24025
24025
  }, [O, m]), q = V(
24026
- (Ce) => {
24026
+ (xe) => {
24027
24027
  if (!e.key) return;
24028
- const Ve = Ce.clipboardData.getData("text/plain");
24029
- Ve.trim() && (Ce.preventDefault(), n(e.key, Ve), w(!1), O(Ve));
24028
+ const Ve = xe.clipboardData.getData("text/plain");
24029
+ Ve.trim() && (xe.preventDefault(), n(e.key, Ve), w(!1), O(Ve));
24030
24030
  },
24031
24031
  [e.key, n, O]
24032
24032
  ), L = V(() => {
@@ -24034,21 +24034,21 @@ const nx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24034
24034
  new CustomEvent("rte-report-dropdown-opening", { detail: S })
24035
24035
  ), w(!0);
24036
24036
  }, [S]), y = V(
24037
- (Ce) => {
24038
- e.key && (n(e.key, Ce.url), w(!1), /^https?:\/\//i.test(Ce.url) && O(Ce.url));
24037
+ (xe) => {
24038
+ e.key && (n(e.key, xe.url), w(!1), /^https?:\/\//i.test(xe.url) && O(xe.url));
24039
24039
  },
24040
24040
  [e.key, n, O]
24041
24041
  ), P = V(
24042
- (Ce) => {
24043
- Ce.preventDefault(), Ce.stopPropagation(), e.key && n(e.key, ""), s?.();
24042
+ (xe) => {
24043
+ xe.preventDefault(), xe.stopPropagation(), e.key && n(e.key, ""), s?.();
24044
24044
  },
24045
24045
  [e.key, n, s]
24046
24046
  );
24047
24047
  ge(() => {
24048
- const Ce = (Ve) => {
24048
+ const xe = (Ve) => {
24049
24049
  Ve.detail !== S && w(!1);
24050
24050
  };
24051
- return document.addEventListener("rte-report-dropdown-opening", Ce), () => document.removeEventListener("rte-report-dropdown-opening", Ce);
24051
+ return document.addEventListener("rte-report-dropdown-opening", xe), () => document.removeEventListener("rte-report-dropdown-opening", xe);
24052
24052
  }, [S]);
24053
24053
  const z = [
24054
24054
  "variable-chip",
@@ -24057,9 +24057,9 @@ const nx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24057
24057
  d ? "rte-report-url-error" : "",
24058
24058
  R ? "rte-variable-with-icon" : ""
24059
24059
  ].filter(Boolean).join(" "), $ = re(null), Z = re(null), [T, te] = K("bottomLeft"), ue = V(() => {
24060
- const Ce = Z.current;
24061
- if (!Ce) return;
24062
- const Ve = Ce.getBoundingClientRect(), an = 236, Yt = window.innerHeight - Ve.bottom;
24060
+ const xe = Z.current;
24061
+ if (!xe) return;
24062
+ const Ve = xe.getBoundingClientRect(), an = 236, Yt = window.innerHeight - Ve.bottom;
24063
24063
  te(Yt < an ? "topLeft" : "bottomLeft");
24064
24064
  }, []);
24065
24065
  ze(() => {
@@ -24074,7 +24074,7 @@ const nx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24074
24074
  );
24075
24075
  ge(() => {
24076
24076
  if (!I) return;
24077
- const Ce = (Ve) => {
24077
+ const xe = (Ve) => {
24078
24078
  const an = Z.current, Yt = Ve.target;
24079
24079
  if (an?.contains(Yt)) return;
24080
24080
  const bn = document.querySelectorAll(".rte-report-dropdown-overlay");
@@ -24082,7 +24082,7 @@ const nx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24082
24082
  if (bn[gn].contains(Yt)) return;
24083
24083
  w(!1);
24084
24084
  };
24085
- return document.addEventListener("mousedown", Ce), () => document.removeEventListener("mousedown", Ce);
24085
+ return document.addEventListener("mousedown", xe), () => document.removeEventListener("mousedown", xe);
24086
24086
  }, [I]);
24087
24087
  const be = A ? /* @__PURE__ */ v(
24088
24088
  "span",
@@ -24095,8 +24095,8 @@ const nx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24095
24095
  "data-key": e.key,
24096
24096
  "data-node-type": "report-url",
24097
24097
  contentEditable: !1,
24098
- onClick: (Ce) => {
24099
- Ce.stopPropagation(), I ? w(!1) : L();
24098
+ onClick: (xe) => {
24099
+ xe.stopPropagation(), I ? w(!1) : L();
24100
24100
  },
24101
24101
  children: /* @__PURE__ */ v(
24102
24102
  "i",
@@ -24113,7 +24113,7 @@ const nx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24113
24113
  className: "variable-info-icon",
24114
24114
  dataVariableKey: e.key
24115
24115
  }
24116
- ) : null, Ae = g ? /* @__PURE__ */ v(
24116
+ ) : null, Te = g ? /* @__PURE__ */ v(
24117
24117
  "span",
24118
24118
  {
24119
24119
  className: "rte-report-chip-clear-host",
@@ -24127,13 +24127,13 @@ const nx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24127
24127
  });
24128
24128
  const lt = De > 0 ? Math.max(60, De + 2) : ax(fe) + 6, Vt = Ue(() => {
24129
24129
  if (g) return "";
24130
- const Ce = m.trim();
24131
- return /^https?:\/\//i.test(Ce) ? im(Ce) : "";
24130
+ const xe = m.trim();
24131
+ return /^https?:\/\//i.test(xe) ? im(xe) : "";
24132
24132
  }, [m, g]), ln = V(
24133
- (Ce) => {
24133
+ (xe) => {
24134
24134
  if (!g || c || !A) return;
24135
- const Ve = Ce.target;
24136
- Ve.closest(".rte-report-chip-clear-host") || Ve.closest(".rte-report-dropdown-host") || (Ce.stopPropagation(), I ? w(!1) : L());
24135
+ const Ve = xe.target;
24136
+ Ve.closest(".rte-report-chip-clear-host") || Ve.closest(".rte-report-dropdown-host") || (xe.stopPropagation(), I ? w(!1) : L());
24137
24137
  },
24138
24138
  [g, c, A, I, L]
24139
24139
  ), qe = /* @__PURE__ */ W(
@@ -24173,7 +24173,7 @@ const nx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24173
24173
  "data-type": "report-url",
24174
24174
  "data-key": e.key,
24175
24175
  value: m,
24176
- onChange: (Ce) => n(e.key, Ce.target.value),
24176
+ onChange: (xe) => n(e.key, xe.target.value),
24177
24177
  onBlur: F,
24178
24178
  onPaste: q,
24179
24179
  onClick: () => {
@@ -24186,7 +24186,7 @@ const nx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24186
24186
  }
24187
24187
  ),
24188
24188
  be,
24189
- Ae
24189
+ Te
24190
24190
  ]
24191
24191
  }
24192
24192
  ), mn = A && I ? /* @__PURE__ */ v(
@@ -28737,7 +28737,7 @@ class rS {
28737
28737
  }
28738
28738
  }
28739
28739
  const Is = /* @__PURE__ */ Object.create(null);
28740
- class ke {
28740
+ class Ae {
28741
28741
  /**
28742
28742
  Initialize a selection with the head and anchor and ranges. If no
28743
28743
  ranges are given, constructs a single range across `$anchor` and
@@ -28901,7 +28901,7 @@ class ke {
28901
28901
  return ye.between(this.$anchor, this.$head).getBookmark();
28902
28902
  }
28903
28903
  }
28904
- ke.prototype.visible = !0;
28904
+ Ae.prototype.visible = !0;
28905
28905
  class lS {
28906
28906
  /**
28907
28907
  Create a range.
@@ -28914,7 +28914,7 @@ let Gd = !1;
28914
28914
  function Qd(e) {
28915
28915
  !Gd && !e.parent.inlineContent && (Gd = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + e.parent.type.name + ")"));
28916
28916
  }
28917
- class ye extends ke {
28917
+ class ye extends Ae {
28918
28918
  /**
28919
28919
  Construct a text selection between the given points.
28920
28920
  */
@@ -28931,7 +28931,7 @@ class ye extends ke {
28931
28931
  map(t, n) {
28932
28932
  let r = t.resolve(n.map(this.head));
28933
28933
  if (!r.parent.inlineContent)
28934
- return ke.near(r);
28934
+ return Ae.near(r);
28935
28935
  let l = t.resolve(n.map(this.anchor));
28936
28936
  return new ye(l.parent.inlineContent ? l : r, r);
28937
28937
  }
@@ -28976,16 +28976,16 @@ class ye extends ke {
28976
28976
  static between(t, n, r) {
28977
28977
  let l = t.pos - n.pos;
28978
28978
  if ((!r || l) && (r = l >= 0 ? 1 : -1), !n.parent.inlineContent) {
28979
- let a = ke.findFrom(n, r, !0) || ke.findFrom(n, -r, !0);
28979
+ let a = Ae.findFrom(n, r, !0) || Ae.findFrom(n, -r, !0);
28980
28980
  if (a)
28981
28981
  n = a.$head;
28982
28982
  else
28983
- return ke.near(n, r);
28983
+ return Ae.near(n, r);
28984
28984
  }
28985
- return t.parent.inlineContent || (l == 0 ? t = n : (t = (ke.findFrom(t, -r, !0) || ke.findFrom(t, r, !0)).$anchor, t.pos < n.pos != l < 0 && (t = n))), new ye(t, n);
28985
+ return t.parent.inlineContent || (l == 0 ? t = n : (t = (Ae.findFrom(t, -r, !0) || Ae.findFrom(t, r, !0)).$anchor, t.pos < n.pos != l < 0 && (t = n))), new ye(t, n);
28986
28986
  }
28987
28987
  }
28988
- ke.jsonID("text", ye);
28988
+ Ae.jsonID("text", ye);
28989
28989
  class Ai {
28990
28990
  constructor(t, n) {
28991
28991
  this.anchor = t, this.head = n;
@@ -28997,7 +28997,7 @@ class Ai {
28997
28997
  return ye.between(t.resolve(this.anchor), t.resolve(this.head));
28998
28998
  }
28999
28999
  }
29000
- class me extends ke {
29000
+ class me extends Ae {
29001
29001
  /**
29002
29002
  Create a node selection. Does not verify the validity of its
29003
29003
  argument.
@@ -29008,7 +29008,7 @@ class me extends ke {
29008
29008
  }
29009
29009
  map(t, n) {
29010
29010
  let { deleted: r, pos: l } = n.mapResult(this.anchor), a = t.resolve(l);
29011
- return r ? ke.near(a) : new me(a);
29011
+ return r ? Ae.near(a) : new me(a);
29012
29012
  }
29013
29013
  content() {
29014
29014
  return new oe(Q.from(this.node), 0, 0);
@@ -29045,7 +29045,7 @@ class me extends ke {
29045
29045
  }
29046
29046
  }
29047
29047
  me.prototype.visible = !1;
29048
- ke.jsonID("node", me);
29048
+ Ae.jsonID("node", me);
29049
29049
  class mu {
29050
29050
  constructor(t) {
29051
29051
  this.anchor = t;
@@ -29056,10 +29056,10 @@ class mu {
29056
29056
  }
29057
29057
  resolve(t) {
29058
29058
  let n = t.resolve(this.anchor), r = n.nodeAfter;
29059
- return r && me.isSelectable(r) ? new me(n) : ke.near(n);
29059
+ return r && me.isSelectable(r) ? new me(n) : Ae.near(n);
29060
29060
  }
29061
29061
  }
29062
- class Dt extends ke {
29062
+ class Dt extends Ae {
29063
29063
  /**
29064
29064
  Create an all-selection over the given document.
29065
29065
  */
@@ -29069,7 +29069,7 @@ class Dt extends ke {
29069
29069
  replace(t, n = oe.empty) {
29070
29070
  if (n == oe.empty) {
29071
29071
  t.delete(0, t.doc.content.size);
29072
- let r = ke.atStart(t.doc);
29072
+ let r = Ae.atStart(t.doc);
29073
29073
  r.eq(t.selection) || t.setSelection(r);
29074
29074
  } else
29075
29075
  super.replace(t, n);
@@ -29093,7 +29093,7 @@ class Dt extends ke {
29093
29093
  return aS;
29094
29094
  }
29095
29095
  }
29096
- ke.jsonID("all", Dt);
29096
+ Ae.jsonID("all", Dt);
29097
29097
  const aS = {
29098
29098
  map() {
29099
29099
  return this;
@@ -29129,7 +29129,7 @@ function Xd(e, t, n) {
29129
29129
  let a = e.mapping.maps[r], i;
29130
29130
  a.forEach((s, o, u, c) => {
29131
29131
  i == null && (i = c);
29132
- }), e.setSelection(ke.near(e.doc.resolve(i), n));
29132
+ }), e.setSelection(Ae.near(e.doc.resolve(i), n));
29133
29133
  }
29134
29134
  const Jd = 1, ka = 2, Zd = 4;
29135
29135
  class iS extends rS {
@@ -29244,7 +29244,7 @@ class iS extends rS {
29244
29244
  let i = this.doc.resolve(n);
29245
29245
  a = r == n ? i.marks() : i.marksAcross(this.doc.resolve(r));
29246
29246
  }
29247
- return this.replaceRangeWith(n, r, l.text(t, a)), !this.selection.empty && this.selection.to == n + t.length && this.setSelection(ke.near(this.selection.$to)), this;
29247
+ return this.replaceRangeWith(n, r, l.text(t, a)), !this.selection.empty && this.selection.to == n + t.length && this.setSelection(Ae.near(this.selection.$to)), this;
29248
29248
  }
29249
29249
  }
29250
29250
  /**
@@ -29302,7 +29302,7 @@ const sS = [
29302
29302
  }),
29303
29303
  new vl("selection", {
29304
29304
  init(e, t) {
29305
- return e.selection || ke.atStart(t.doc);
29305
+ return e.selection || Ae.atStart(t.doc);
29306
29306
  },
29307
29307
  apply(e) {
29308
29308
  return e.selection;
@@ -29482,7 +29482,7 @@ class Pr {
29482
29482
  if (i.name == "doc")
29483
29483
  a.doc = Pn.fromJSON(t.schema, n.doc);
29484
29484
  else if (i.name == "selection")
29485
- a.selection = ke.fromJSON(a.doc, n.selection);
29485
+ a.selection = Ae.fromJSON(a.doc, n.selection);
29486
29486
  else if (i.name == "storedMarks")
29487
29487
  n.storedMarks && (a.storedMarks = n.storedMarks.map(t.schema.markFromJSON));
29488
29488
  else {
@@ -31144,7 +31144,7 @@ function VS(e) {
31144
31144
  }
31145
31145
  function xo(e, t) {
31146
31146
  let { $anchor: n, $head: r } = e.selection, l = t > 0 ? n.max(r) : n.min(r), a = l.parent.inlineContent ? l.depth ? e.doc.resolve(t > 0 ? l.after() : l.before()) : null : l;
31147
- return a && ke.findFrom(a, t);
31147
+ return a && Ae.findFrom(a, t);
31148
31148
  }
31149
31149
  function In(e, t) {
31150
31150
  return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()), !0;
@@ -31331,7 +31331,7 @@ function yf(e, t, n) {
31331
31331
  return In(e, i);
31332
31332
  }
31333
31333
  if (!l.parent.inlineContent) {
31334
- let i = t < 0 ? l : a, s = r instanceof Dt ? ke.near(i, t) : ke.findFrom(i, t);
31334
+ let i = t < 0 ? l : a, s = r instanceof Dt ? Ae.near(i, t) : Ae.findFrom(i, t);
31335
31335
  return s ? In(e, s) : !1;
31336
31336
  }
31337
31337
  return !1;
@@ -31779,7 +31779,7 @@ class mk {
31779
31779
  // (hidden) cursor is doesn't change the selection, and
31780
31780
  // thus doesn't get a reaction from ProseMirror. This
31781
31781
  // works around that.
31782
- ut && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (zr(this.view, ke.near(this.view.state.doc.resolve(n.pos))), t.preventDefault()) : Ln(this.view, "pointer");
31782
+ ut && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (zr(this.view, Ae.near(this.view.state.doc.resolve(n.pos))), t.preventDefault()) : Ln(this.view, "pointer");
31783
31783
  }
31784
31784
  move(t) {
31785
31785
  this.updateAllowDefault(t), Ln(this.view, "pointer"), t.buttons == 0 && this.done();
@@ -32677,7 +32677,7 @@ class _k {
32677
32677
  }
32678
32678
  }
32679
32679
  let u = null;
32680
- a < 0 && l && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 && Ni(r) && (u = gu(t)) && u.eq(ke.near(t.state.doc.resolve(0), 1)) ? (t.input.lastFocus = 0, pn(t), this.currentSelection.set(r), t.scrollToSelection()) : (a > -1 || l) && (a > -1 && (t.docView.markDirty(a, i), Ok(t)), t.input.badSafariComposition && (t.input.badSafariComposition = !1, Dk(t, o)), this.handleDOMChange(a, i, s, o), t.docView && t.docView.dirty ? t.updateState(t.state) : this.currentSelection.eq(r) || pn(t), this.currentSelection.set(r));
32680
+ a < 0 && l && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 && Ni(r) && (u = gu(t)) && u.eq(Ae.near(t.state.doc.resolve(0), 1)) ? (t.input.lastFocus = 0, pn(t), this.currentSelection.set(r), t.scrollToSelection()) : (a > -1 || l) && (a > -1 && (t.docView.markDirty(a, i), Ok(t)), t.input.badSafariComposition && (t.input.badSafariComposition = !1, Dk(t, o)), this.handleDOMChange(a, i, s, o), t.docView && t.docView.dirty ? t.updateState(t.state) : this.currentSelection.eq(r) || pn(t), this.currentSelection.set(r));
32681
32681
  }
32682
32682
  registerMutation(t, n) {
32683
32683
  if (n.indexOf(t.target) > -1)
@@ -33506,7 +33506,7 @@ const A0 = (e, t, n) => {
33506
33506
  if (s && s.slice.size < s.to - s.from) {
33507
33507
  if (t) {
33508
33508
  let o = e.tr.step(s);
33509
- o.setSelection(Yr(a, "end") ? ke.findFrom(o.doc.resolve(o.mapping.map(l.pos, -1)), -1) : me.create(o.doc, l.pos - a.nodeSize)), t(o.scrollIntoView());
33509
+ o.setSelection(Yr(a, "end") ? Ae.findFrom(o.doc.resolve(o.mapping.map(l.pos, -1)), -1) : me.create(o.doc, l.pos - a.nodeSize)), t(o.scrollIntoView());
33510
33510
  }
33511
33511
  return !0;
33512
33512
  }
@@ -33605,7 +33605,7 @@ const _0 = (e, t, n) => {
33605
33605
  if (i && i.slice.size < i.to - i.from) {
33606
33606
  if (t) {
33607
33607
  let s = e.tr.step(i);
33608
- s.setSelection(Yr(a, "start") ? ke.findFrom(s.doc.resolve(s.mapping.map(l.pos)), 1) : me.create(s.doc, s.mapping.map(l.pos))), t(s.scrollIntoView());
33608
+ s.setSelection(Yr(a, "start") ? Ae.findFrom(s.doc.resolve(s.mapping.map(l.pos)), 1) : me.create(s.doc, s.mapping.map(l.pos))), t(s.scrollIntoView());
33609
33609
  }
33610
33610
  return !0;
33611
33611
  }
@@ -33681,7 +33681,7 @@ const rA = (e, t) => {
33681
33681
  return !1;
33682
33682
  if (t) {
33683
33683
  let s = n.after(), o = e.tr.replaceWith(s, s, i.createAndFill());
33684
- o.setSelection(ke.near(o.doc.resolve(s), 1)), t(o.scrollIntoView());
33684
+ o.setSelection(Ae.near(o.doc.resolve(s), 1)), t(o.scrollIntoView());
33685
33685
  }
33686
33686
  return !0;
33687
33687
  }, R0 = (e, t) => {
@@ -33761,7 +33761,7 @@ function L0(e, t, n, r) {
33761
33761
  }
33762
33762
  return !0;
33763
33763
  }
33764
- let c = a.type.spec.isolating || r > 0 && o ? null : ke.findFrom(t, 1), d = c && c.$from.blockRange(c.$to), f = d && nl(d);
33764
+ let c = a.type.spec.isolating || r > 0 && o ? null : Ae.findFrom(t, 1), d = c && c.$from.blockRange(c.$to), f = d && nl(d);
33765
33765
  if (f != null && f >= t.depth)
33766
33766
  return n && n(e.tr.lift(d, f).scrollIntoView()), !0;
33767
33767
  if (u && Yr(a, "start", !0) && Yr(l, "end")) {
@@ -34983,7 +34983,7 @@ function sr(e = 0, t = 0, n = 0) {
34983
34983
  function $0(e, t = null) {
34984
34984
  if (!t)
34985
34985
  return null;
34986
- const n = ke.atStart(e), r = ke.atEnd(e);
34986
+ const n = Ae.atStart(e), r = Ae.atEnd(e);
34987
34987
  if (t === "start" || t === !0)
34988
34988
  return n;
34989
34989
  if (t === "end")
@@ -35095,7 +35095,7 @@ function JA(e, t, n) {
35095
35095
  let i = 0;
35096
35096
  a.forEach((s, o, u, c) => {
35097
35097
  i === 0 && (i = c);
35098
- }), e.setSelection(ke.near(e.doc.resolve(i), n));
35098
+ }), e.setSelection(Ae.near(e.doc.resolve(i), n));
35099
35099
  }
35100
35100
  const ZA = (e) => !("type" in e), e4 = (e, t, n) => ({ tr: r, dispatch: l, editor: a }) => {
35101
35101
  var i;
@@ -35824,7 +35824,7 @@ const X4 = pt.create({
35824
35824
  () => i.undoInputRule(),
35825
35825
  // maybe convert first text block node to default node
35826
35826
  () => i.command(({ tr: s }) => {
35827
- const { selection: o, doc: u } = s, { empty: c, $anchor: d } = o, { pos: f, parent: h } = d, m = d.parent.isTextblock && f > 0 ? s.doc.resolve(f - 1) : d, g = m.parent.type.spec.isolating, b = d.pos - d.parentOffset, E = g && m.parent.childCount === 1 ? b === d.pos : ke.atStart(u).from === f;
35827
+ const { selection: o, doc: u } = s, { empty: c, $anchor: d } = o, { pos: f, parent: h } = d, m = d.parent.isTextblock && f > 0 ? s.doc.resolve(f - 1) : d, g = m.parent.type.spec.isolating, b = d.pos - d.parentOffset, E = g && m.parent.childCount === 1 ? b === d.pos : Ae.atStart(u).from === f;
35828
35828
  return !c || !h.type.isTextblock || h.textContent.length || !E || E && d.parent.type.name === "paragraph" ? !1 : i.clearNodes();
35829
35829
  }),
35830
35830
  () => i.deleteSelection(),
@@ -35879,7 +35879,7 @@ const X4 = pt.create({
35879
35879
  const r = e.some((g) => g.docChanged) && !t.doc.eq(n.doc), l = e.some((g) => g.getMeta("preventClearDocument"));
35880
35880
  if (!r || l)
35881
35881
  return;
35882
- const { empty: a, from: i, to: s } = t.selection, o = ke.atStart(t.doc).from, u = ke.atEnd(t.doc).to;
35882
+ const { empty: a, from: i, to: s } = t.selection, o = Ae.atStart(t.doc).from, u = Ae.atEnd(t.doc).to;
35883
35883
  if (a || !(i === o && s === u) || !Pi(n.doc))
35884
35884
  return;
35885
35885
  const f = n.tr, h = _i({
@@ -37499,7 +37499,7 @@ const MN = /^\s*>\s$/, RN = Nt.create({
37499
37499
  if (!a || l.parent.type !== this.type || !(l.parentOffset === l.parent.nodeSize - 2))
37500
37500
  return !1;
37501
37501
  const s = l.after();
37502
- return s === void 0 ? !1 : r.nodeAt(s) ? e.commands.command(({ tr: u }) => (u.setSelection(ke.near(r.resolve(s))), !0)) : e.commands.exitCode();
37502
+ return s === void 0 ? !1 : r.nodeAt(s) ? e.commands.command(({ tr: u }) => (u.setSelection(Ae.near(r.resolve(s))), !0)) : e.commands.exitCode();
37503
37503
  }
37504
37504
  };
37505
37505
  },
@@ -37643,7 +37643,7 @@ const QN = pt.create({
37643
37643
  ];
37644
37644
  }
37645
37645
  });
37646
- class $e extends ke {
37646
+ class $e extends Ae {
37647
37647
  /**
37648
37648
  Create a gap cursor.
37649
37649
  */
@@ -37652,7 +37652,7 @@ class $e extends ke {
37652
37652
  }
37653
37653
  map(t, n) {
37654
37654
  let r = t.resolve(n.map(this.head));
37655
- return $e.valid(r) ? new $e(r) : ke.near(r);
37655
+ return $e.valid(r) ? new $e(r) : Ae.near(r);
37656
37656
  }
37657
37657
  content() {
37658
37658
  return oe.empty;
@@ -37730,7 +37730,7 @@ class $e extends ke {
37730
37730
  }
37731
37731
  $e.prototype.visible = !1;
37732
37732
  $e.findFrom = $e.findGapCursorFrom;
37733
- ke.jsonID("gapcursor", $e);
37733
+ Ae.jsonID("gapcursor", $e);
37734
37734
  class Lu {
37735
37735
  constructor(t) {
37736
37736
  this.pos = t;
@@ -37740,7 +37740,7 @@ class Lu {
37740
37740
  }
37741
37741
  resolve(t) {
37742
37742
  let n = t.resolve(this.pos);
37743
- return $e.valid(n) ? new $e(n) : ke.near(n);
37743
+ return $e.valid(n) ? new $e(n) : Ae.near(n);
37744
37744
  }
37745
37745
  }
37746
37746
  function K0(e) {
@@ -40019,12 +40019,12 @@ const Ma = 4, A5 = () => /* @__PURE__ */ v(
40019
40019
  }, [m, A, u]), [R, _] = K(null), C = re(null), I = re(null), w = el(), S = V(() => (C.current?.closest(".rich-text-editor") ?? C.current)?.getBoundingClientRect() ?? null, []), B = V(() => {
40020
40020
  const y = S();
40021
40021
  if (!y) return;
40022
- const P = Math.max(0, window.innerHeight - y.bottom - Ma * 2), z = Math.max(0, y.top - Ma * 2), Z = (I.current?.scrollHeight ?? 0) > P && z > P, T = Z ? z : P, ue = (I.current?.offsetParent ?? w)?.getBoundingClientRect(), M = ue?.left ?? 0, be = ue?.top ?? 0, Ae = y.left - M;
40022
+ const P = Math.max(0, window.innerHeight - y.bottom - Ma * 2), z = Math.max(0, y.top - Ma * 2), Z = (I.current?.scrollHeight ?? 0) > P && z > P, T = Z ? z : P, ue = (I.current?.offsetParent ?? w)?.getBoundingClientRect(), M = ue?.left ?? 0, be = ue?.top ?? 0, Te = y.left - M;
40023
40023
  if (Z) {
40024
40024
  const fe = (ue?.height ?? window.innerHeight) - (y.top - Ma - be);
40025
- _({ left: Ae, bottom: fe, width: y.width, maxHeight: T });
40025
+ _({ left: Te, bottom: fe, width: y.width, maxHeight: T });
40026
40026
  } else
40027
- _({ left: Ae, top: y.bottom + Ma - be, width: y.width, maxHeight: T });
40027
+ _({ left: Te, top: y.bottom + Ma - be, width: y.width, maxHeight: T });
40028
40028
  }, [S, w]);
40029
40029
  ze(() => {
40030
40030
  if (!A) return;
@@ -40478,7 +40478,7 @@ const c8 = (e) => {
40478
40478
  onSkillPanelOpenChange: ue,
40479
40479
  skillPanelOpenDelay: M,
40480
40480
  selectedSkill: be,
40481
- onSkillSelect: Ae,
40481
+ onSkillSelect: Te,
40482
40482
  onAIImageClick: we,
40483
40483
  aiImageSelected: fe,
40484
40484
  onAIImageExit: Oe,
@@ -40492,7 +40492,7 @@ const c8 = (e) => {
40492
40492
  lockStructure: ln = !0,
40493
40493
  collapsed: qe = !1,
40494
40494
  onCollapsedChange: mn,
40495
- collapseTransitionMs: Ce = 260,
40495
+ collapseTransitionMs: xe = 260,
40496
40496
  nodeDefaults: Ve,
40497
40497
  // 展开态真实高度变化回调:消费端据此算对话列表底部留白,避免最后一条消息被输入框遮挡。
40498
40498
  onExpandedHeightChange: an,
@@ -40522,11 +40522,11 @@ const c8 = (e) => {
40522
40522
  ), Hi = re(null), [oa, vb] = K(null), yb = V((H, ee) => {
40523
40523
  vb(ee ? H : null);
40524
40524
  }, []), Qn = re(null), [Eb, Tb] = K(58), [Xn, Uu] = K(58), [Ui, zu] = K(!1), Vu = re(0), $u = re(qe), [ua, qu] = K(!1);
40525
- $u.current !== qe && ($u.current = qe, Vu.current = (typeof performance < "u" ? performance.now() : Date.now()) + Ce, qu(!0)), ge(() => {
40525
+ $u.current !== qe && ($u.current = qe, Vu.current = (typeof performance < "u" ? performance.now() : Date.now()) + xe, qu(!0)), ge(() => {
40526
40526
  if (!ua) return;
40527
- const H = setTimeout(() => qu(!1), Ce);
40527
+ const H = setTimeout(() => qu(!1), xe);
40528
40528
  return () => clearTimeout(H);
40529
- }, [ua, qe, Ce]);
40529
+ }, [ua, qe, xe]);
40530
40530
  const [Jn, Wu] = K(""), ll = re(null), zi = re(null), [al, Yu] = K(0), [Vi, ju] = K(0), $i = re(!1);
40531
40531
  ge(() => {
40532
40532
  if (!u || u.length === he.length && u.every((ae, ie) => {
@@ -40576,17 +40576,17 @@ const c8 = (e) => {
40576
40576
  }, [fe]);
40577
40577
  const Xu = V(
40578
40578
  (H) => {
40579
- sl(H), H && kr(!1), Ae?.(H), H && Zn && L?.("skill-switch");
40579
+ sl(H), H && kr(!1), Te?.(H), H && Zn && L?.("skill-switch");
40580
40580
  },
40581
- [Zn, L, Ae]
40581
+ [Zn, L, Te]
40582
40582
  ), xb = V(
40583
40583
  (H) => {
40584
- sl(null), kr(!1), q?.(H);
40584
+ sl(null), kr(!1), Te?.(null), q?.(H);
40585
40585
  },
40586
- [q]
40586
+ [q, Te]
40587
40587
  ), Sb = V(() => {
40588
- kr(!0), sl(null), Zn && L?.("ai-image-switch"), we?.();
40589
- }, [Zn, L, we]);
40588
+ kr(!0), sl(null), Te?.(null), Zn && L?.("ai-image-switch"), we?.();
40589
+ }, [Zn, L, we, Te]);
40590
40590
  ge(() => {
40591
40591
  Zn && (sl(null), kr(!1));
40592
40592
  }, [Zn]);
@@ -40604,11 +40604,11 @@ const c8 = (e) => {
40604
40604
  (ne) => ne.key === ae && ne.type === "markdown-module"
40605
40605
  ) && vn((ne) => {
40606
40606
  const pe = { ...ne, [H]: ee };
40607
- return Object.keys(pe).filter((xe) => xe.startsWith(`${ae}__module_`)).every((xe) => nc(pe[xe])) && (ct((xe) => {
40608
- if (!xe.markdownModules[ae]) return xe;
40609
- const Pe = { ...xe.markdownModules };
40610
- return delete Pe[ae], { ...xe, markdownModules: Pe };
40611
- }), Object.keys(pe).filter((xe) => xe.startsWith(`${ae}__module_`)).forEach((xe) => delete pe[xe]), pe[ae] = ""), pe;
40607
+ return Object.keys(pe).filter((Se) => Se.startsWith(`${ae}__module_`)).every((Se) => nc(pe[Se])) && (ct((Se) => {
40608
+ if (!Se.markdownModules[ae]) return Se;
40609
+ const Pe = { ...Se.markdownModules };
40610
+ return delete Pe[ae], { ...Se, markdownModules: Pe };
40611
+ }), Object.keys(pe).filter((Se) => Se.startsWith(`${ae}__module_`)).forEach((Se) => delete pe[Se]), pe[ae] = ""), pe;
40612
40612
  });
40613
40613
  return;
40614
40614
  }
@@ -40641,18 +40641,18 @@ const c8 = (e) => {
40641
40641
  if (!(H in ee)) return ee;
40642
40642
  const se = H.match(/^(.+)_(\d+)$/);
40643
40643
  if (!se) {
40644
- const Te = { ...ee };
40645
- return delete Te[H], Te;
40644
+ const Ce = { ...ee };
40645
+ return delete Ce[H], Ce;
40646
40646
  }
40647
40647
  const [, ae, ie] = se, ne = parseInt(ie, 10), pe = {};
40648
- for (const [Te, xe] of Object.entries(ee)) {
40649
- if (Te === H) continue;
40650
- const Pe = Te.match(/^(.+)_(\d+)$/);
40648
+ for (const [Ce, Se] of Object.entries(ee)) {
40649
+ if (Ce === H) continue;
40650
+ const Pe = Ce.match(/^(.+)_(\d+)$/);
40651
40651
  if (Pe && Pe[1] === ae) {
40652
40652
  const dt = parseInt(Pe[2], 10);
40653
- dt > ne ? pe[`${ae}_${dt - 1}`] = xe : pe[Te] = xe;
40653
+ dt > ne ? pe[`${ae}_${dt - 1}`] = Se : pe[Ce] = Se;
40654
40654
  } else
40655
- pe[Te] = xe;
40655
+ pe[Ce] = Se;
40656
40656
  }
40657
40657
  return pe;
40658
40658
  });
@@ -40661,16 +40661,16 @@ const c8 = (e) => {
40661
40661
  const ae = `${H}_`, ie = [];
40662
40662
  for (const pe of Object.keys(se)) {
40663
40663
  if (!pe.startsWith(ae)) continue;
40664
- const Te = pe.slice(ae.length);
40665
- /^\d+$/.test(Te) && ie.push([Number(Te), se[pe]]);
40664
+ const Ce = pe.slice(ae.length);
40665
+ /^\d+$/.test(Ce) && ie.push([Number(Ce), se[pe]]);
40666
40666
  }
40667
40667
  if (ie.length === 0) return se;
40668
40668
  const ne = { ...se };
40669
40669
  for (const [pe] of ie) delete ne[`${H}_${pe}`];
40670
- for (const [pe, Te] of ie) {
40670
+ for (const [pe, Ce] of ie) {
40671
40671
  if (pe === ee) continue;
40672
- const xe = pe > ee ? pe - 1 : pe;
40673
- ne[`${H}_${xe}`] = Te;
40672
+ const Se = pe > ee ? pe - 1 : pe;
40673
+ ne[`${H}_${Se}`] = Ce;
40674
40674
  }
40675
40675
  return ne;
40676
40676
  });
@@ -40705,15 +40705,15 @@ const c8 = (e) => {
40705
40705
  reportModules: { ...ne.reportModules, [H]: ie.modules }
40706
40706
  })), vn((ne) => {
40707
40707
  const pe = { ...ne };
40708
- return ie.modules.forEach((Te, xe) => {
40709
- pe[`${H}__module_${xe}`] = Te.content;
40708
+ return ie.modules.forEach((Ce, Se) => {
40709
+ pe[`${H}__module_${Se}`] = Ce.content;
40710
40710
  }), pe;
40711
40711
  })) : ie.status === "failed" && (ji(H, ""), vn((ne) => {
40712
40712
  let pe = !1;
40713
- const Te = { ...ne };
40714
- for (const xe of Object.keys(Te))
40715
- xe.startsWith(`${H}__module_`) && (delete Te[xe], pe = !0);
40716
- return pe ? Te : ne;
40713
+ const Ce = { ...ne };
40714
+ for (const Se of Object.keys(Ce))
40715
+ Se.startsWith(`${H}__module_`) && (delete Ce[Se], pe = !0);
40716
+ return pe ? Ce : ne;
40717
40717
  }));
40718
40718
  });
40719
40719
  await Promise.all([se, ae]);
@@ -40747,11 +40747,11 @@ const c8 = (e) => {
40747
40747
  for (const se of ee) {
40748
40748
  const ae = se.key, ie = i[ae];
40749
40749
  !Array.isArray(ie) || ie.length === 0 || ie.forEach((ne, pe) => {
40750
- const Te = typeof ne == "string" ? ne.trim() : "";
40751
- if (!Te) return;
40752
- const xe = `${ae}_${pe}`;
40753
- il.current.get(xe) !== Te && (il.current.set(xe, Te), setTimeout(() => {
40754
- Ki(xe, Te, "multi-variable-select");
40750
+ const Ce = typeof ne == "string" ? ne.trim() : "";
40751
+ if (!Ce) return;
40752
+ const Se = `${ae}_${pe}`;
40753
+ il.current.get(Se) !== Ce && (il.current.set(Se, Ce), setTimeout(() => {
40754
+ Ki(Se, Ce, "multi-variable-select");
40755
40755
  }, 100));
40756
40756
  });
40757
40757
  }
@@ -40766,14 +40766,14 @@ const c8 = (e) => {
40766
40766
  });
40767
40767
  try {
40768
40768
  const ne = await se(H, ee), pe = Date.now() - ie;
40769
- pe < 500 && await new Promise((Te) => setTimeout(Te, 500 - pe)), ne && (ct((Te) => ({
40770
- ...Te,
40771
- markdownModules: { ...Te.markdownModules, [H]: ne.modules }
40772
- })), vn((Te) => {
40773
- const xe = { ...Te };
40769
+ pe < 500 && await new Promise((Ce) => setTimeout(Ce, 500 - pe)), ne && (ct((Ce) => ({
40770
+ ...Ce,
40771
+ markdownModules: { ...Ce.markdownModules, [H]: ne.modules }
40772
+ })), vn((Ce) => {
40773
+ const Se = { ...Ce };
40774
40774
  return ne.modules.forEach((Pe, dt) => {
40775
- xe[`${H}__module_${dt}`] = Pe.content;
40776
- }), xe;
40775
+ Se[`${H}__module_${dt}`] = Pe.content;
40776
+ }), Se;
40777
40777
  }));
40778
40778
  } finally {
40779
40779
  En((ne) => {
@@ -40811,8 +40811,8 @@ const c8 = (e) => {
40811
40811
  if (!ne && !he.length) return;
40812
40812
  const pe = at ? `【${at.title}】${ne}` : ne;
40813
40813
  if (he.length) {
40814
- const Te = new FormData();
40815
- pe && Te.append("prompt", pe), he.forEach((xe) => Te.append("files", xe)), n(Te, pe, ee);
40814
+ const Ce = new FormData();
40815
+ pe && Ce.append("prompt", pe), he.forEach((Se) => Ce.append("files", Se)), n(Ce, pe, ee);
40816
40816
  } else
40817
40817
  n(ne, pe, ee);
40818
40818
  Wu(""), Ee([]);
@@ -40952,7 +40952,7 @@ const c8 = (e) => {
40952
40952
  overflow: qe || ua ? "hidden" : "auto",
40953
40953
  // min-height 必须与 max-height 同步过渡:展开动画用 min-height 把空框顶到目标高(见 minHeight 注释),
40954
40954
  // 不纳入 transition 则 min-height 0→122 会瞬间生效、首帧 snap,失去动画。
40955
- transition: Ui ? "none" : `max-height ${Ce}ms cubic-bezier(0.4, 0, 0.2, 1), min-height ${Ce}ms cubic-bezier(0.4, 0, 0.2, 1)`,
40955
+ transition: Ui ? "none" : `max-height ${xe}ms cubic-bezier(0.4, 0, 0.2, 1), min-height ${xe}ms cubic-bezier(0.4, 0, 0.2, 1)`,
40956
40956
  willChange: "max-height, min-height"
40957
40957
  }, oc = V(() => {
40958
40958
  qe && bn && mn?.(!1), ll.current?.focus();
@@ -40975,19 +40975,19 @@ const c8 = (e) => {
40975
40975
  pe = Math.max(0, ne.clientHeight - Pe - Ji);
40976
40976
  }
40977
40977
  H.style.maxHeight = se;
40978
- const Te = Math.max(Math.ceil(ie || 0), Math.ceil(ae || 0)), xe = Math.min(Te, Math.ceil(pe));
40979
- xe > 0 && Uu((Pe) => Pe === xe ? Pe : xe);
40978
+ const Ce = Math.max(Math.ceil(ie || 0), Math.ceil(ae || 0)), Se = Math.min(Ce, Math.ceil(pe));
40979
+ Se > 0 && Uu((Pe) => Pe === Se ? Pe : Se);
40980
40980
  }
40981
40981
  try {
40982
40982
  const se = H.getBoundingClientRect(), ae = H.querySelector(".rte-config-fade") ?? H, ie = document.createRange();
40983
40983
  ie.selectNodeContents(ae);
40984
40984
  const ne = Array.from(ie.getClientRects()).filter((pe) => pe.height > 0);
40985
40985
  if (ne.length > 0) {
40986
- const pe = Math.min(...ne.map((er) => er.top)), Te = parseFloat(getComputedStyle(H).lineHeight) || 34, xe = Math.max(Te, 1), Pe = pe + xe * 0.5;
40986
+ const pe = Math.min(...ne.map((er) => er.top)), Ce = parseFloat(getComputedStyle(H).lineHeight) || 34, Se = Math.max(Ce, 1), Pe = pe + Se * 0.5;
40987
40987
  let dt = 0;
40988
40988
  for (const er of ne)
40989
40989
  er.top < Pe && (dt = Math.max(dt, er.bottom));
40990
- const Ji = dt > 0 ? Math.ceil(dt - se.top) : 0, pa = getComputedStyle(H), Vb = parseFloat(pa.paddingTop) || 0, $b = Math.ceil(Vb + xe), Zi = Math.max(Ji, $b);
40990
+ const Ji = dt > 0 ? Math.ceil(dt - se.top) : 0, pa = getComputedStyle(H), Vb = parseFloat(pa.paddingTop) || 0, $b = Math.ceil(Vb + Se), Zi = Math.max(Ji, $b);
40991
40991
  Zi > 0 && Tb((er) => er === Zi ? er : Zi);
40992
40992
  }
40993
40993
  } catch {
@@ -40999,9 +40999,9 @@ const c8 = (e) => {
40999
40999
  ), cc = re(Nr);
41000
41000
  cc.current !== Nr && (cc.current = Nr, qe || (Uu(ih), zu(!0))), ge(() => {
41001
41001
  if (!Ui) return;
41002
- const H = setTimeout(() => zu(!1), Ce);
41002
+ const H = setTimeout(() => zu(!1), xe);
41003
41003
  return () => clearTimeout(H);
41004
- }, [Ui, Nr, Ce]), ze(() => {
41004
+ }, [Ui, Nr, xe]), ze(() => {
41005
41005
  const H = Qn.current;
41006
41006
  if (!H || (ha(), typeof ResizeObserver > "u")) return;
41007
41007
  const ee = () => {
@@ -41095,16 +41095,16 @@ const c8 = (e) => {
41095
41095
  fc.has(dt) ? ae.push(Pe) : ie = !0;
41096
41096
  }
41097
41097
  if (ie && Hi.current?.error("粘贴文件中含不支持的类型,已自动过滤"), ae.length === 0) return;
41098
- const ne = 50 * 1024 * 1024, pe = he.reduce((Pe, dt) => Pe + dt.size, 0), Te = [];
41099
- let xe = pe;
41098
+ const ne = 50 * 1024 * 1024, pe = he.reduce((Pe, dt) => Pe + dt.size, 0), Ce = [];
41099
+ let Se = pe;
41100
41100
  for (const Pe of ae) {
41101
- if (xe + Pe.size > ne) {
41101
+ if (Se + Pe.size > ne) {
41102
41102
  Hi.current?.error("文件总大小不能超过 50MB");
41103
41103
  break;
41104
41104
  }
41105
- Te.push(Pe), xe += Pe.size;
41105
+ Ce.push(Pe), Se += Pe.size;
41106
41106
  }
41107
- Te.length > 0 && Ee((Pe) => [...Te, ...Pe]);
41107
+ Ce.length > 0 && Ee((Pe) => [...Ce, ...Pe]);
41108
41108
  },
41109
41109
  [fc, t, he]
41110
41110
  );
@@ -41798,7 +41798,7 @@ const q5 = ({
41798
41798
  fe.trim() && !c && (i?.(fe), a || S(""));
41799
41799
  }, be = (fe) => {
41800
41800
  (fe.ctrlKey || fe.metaKey) && fe.key === "Enter" && (fe.preventDefault(), M()), h.onKeyDown?.(fe);
41801
- }, Ae = a ? l : w, we = c || !Ae.trim() || (s ? Ae.length > s : !1);
41801
+ }, Te = a ? l : w, we = c || !Te.trim() || (s ? Te.length > s : !1);
41802
41802
  return /* @__PURE__ */ W("div", { style: { position: "relative", ...f }, children: [
41803
41803
  /* @__PURE__ */ W("div", { style: { position: "relative" }, children: [
41804
41804
  /* @__PURE__ */ v(
@@ -41814,7 +41814,7 @@ const q5 = ({
41814
41814
  fe.target.style.borderColor = "#d9d9d9", fe.target.style.boxShadow = "none", te(fe);
41815
41815
  },
41816
41816
  onKeyDown: be,
41817
- placeholder: R || Ae ? t : "",
41817
+ placeholder: R || Te ? t : "",
41818
41818
  maxLength: s,
41819
41819
  rows: d,
41820
41820
  disabled: c,
@@ -41838,7 +41838,7 @@ const q5 = ({
41838
41838
  ...h
41839
41839
  }
41840
41840
  ),
41841
- !R && !Ae && m && /* @__PURE__ */ W(
41841
+ !R && !Te && m && /* @__PURE__ */ W(
41842
41842
  "div",
41843
41843
  {
41844
41844
  style: {
@@ -41918,7 +41918,7 @@ const q5 = ({
41918
41918
  color: "#999"
41919
41919
  },
41920
41920
  children: [
41921
- Ae.length,
41921
+ Te.length,
41922
41922
  "/",
41923
41923
  s
41924
41924
  ]