bi-components-library 1.3.2-next.52 → 1.3.2-next.53

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,7 +906,7 @@ Nt.prototype.property = "";
906
906
  Nt.prototype.spaceSeparated = !1;
907
907
  Nt.prototype.space = void 0;
908
908
  let Jb = 0;
909
- const Ce = fr(), Ye = fr(), Os = fr(), Z = fr(), Fe = fr(), wr = fr(), _t = fr();
909
+ const Ce = fr(), Ye = fr(), Os = fr(), Z = fr(), Fe = fr(), wr = fr(), It = fr();
910
910
  function fr() {
911
911
  return 2 ** ++Jb;
912
912
  }
@@ -914,7 +914,7 @@ const Ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
914
914
  __proto__: null,
915
915
  boolean: Ce,
916
916
  booleanish: Ye,
917
- commaOrSpaceSeparated: _t,
917
+ commaOrSpaceSeparated: It,
918
918
  commaSeparated: wr,
919
919
  number: Z,
920
920
  overloadedBoolean: Os,
@@ -1563,7 +1563,7 @@ const Zb = Ur({
1563
1563
  timelineBegin: "timelinebegin"
1564
1564
  },
1565
1565
  properties: {
1566
- about: _t,
1566
+ about: It,
1567
1567
  accentHeight: Z,
1568
1568
  accumulate: null,
1569
1569
  additive: null,
@@ -1675,7 +1675,7 @@ const Zb = Ur({
1675
1675
  k2: Z,
1676
1676
  k3: Z,
1677
1677
  k4: Z,
1678
- kernelMatrix: _t,
1678
+ kernelMatrix: It,
1679
1679
  kernelUnitLength: null,
1680
1680
  keyPoints: null,
1681
1681
  // SEMI_COLON_SEPARATED
@@ -1832,21 +1832,21 @@ const Zb = Ur({
1832
1832
  preserveAspectRatio: null,
1833
1833
  primitiveUnits: null,
1834
1834
  propagate: null,
1835
- property: _t,
1835
+ property: It,
1836
1836
  r: null,
1837
1837
  radius: null,
1838
1838
  referrerPolicy: null,
1839
1839
  refX: null,
1840
1840
  refY: null,
1841
- rel: _t,
1842
- rev: _t,
1841
+ rel: It,
1842
+ rev: It,
1843
1843
  renderingIntent: null,
1844
1844
  repeatCount: null,
1845
1845
  repeatDur: null,
1846
- requiredExtensions: _t,
1847
- requiredFeatures: _t,
1848
- requiredFonts: _t,
1849
- requiredFormats: _t,
1846
+ requiredExtensions: It,
1847
+ requiredFeatures: It,
1848
+ requiredFonts: It,
1849
+ requiredFormats: It,
1850
1850
  resource: null,
1851
1851
  restart: null,
1852
1852
  result: null,
@@ -1874,7 +1874,7 @@ const Zb = Ur({
1874
1874
  strikethroughThickness: Z,
1875
1875
  string: null,
1876
1876
  stroke: null,
1877
- strokeDashArray: _t,
1877
+ strokeDashArray: It,
1878
1878
  strokeDashOffset: null,
1879
1879
  strokeLineCap: null,
1880
1880
  strokeLineJoin: null,
@@ -1888,7 +1888,7 @@ const Zb = Ur({
1888
1888
  syncMaster: null,
1889
1889
  syncTolerance: null,
1890
1890
  syncToleranceDefault: null,
1891
- systemLanguage: _t,
1891
+ systemLanguage: It,
1892
1892
  tabIndex: Z,
1893
1893
  tableValues: null,
1894
1894
  target: null,
@@ -1902,7 +1902,7 @@ const Zb = Ur({
1902
1902
  title: null,
1903
1903
  transformBehavior: null,
1904
1904
  type: null,
1905
- typeOf: _t,
1905
+ typeOf: It,
1906
1906
  to: null,
1907
1907
  transform: null,
1908
1908
  transformOrigin: null,
@@ -2690,7 +2690,7 @@ function ih(e, t) {
2690
2690
  function _r(e) {
2691
2691
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
2692
2692
  }
2693
- const Zt = Pn(/[A-Za-z]/), Ot = Pn(/[\dA-Za-z]/), F1 = Pn(/[#-'*+\--9=?A-Z^-~]/);
2693
+ const Zt = Pn(/[A-Za-z]/), Mt = Pn(/[\dA-Za-z]/), F1 = Pn(/[#-'*+\--9=?A-Z^-~]/);
2694
2694
  function Ds(e) {
2695
2695
  return (
2696
2696
  // Special whitespace codes (which have negative values), C0 and Control
@@ -2721,7 +2721,7 @@ function zr(e) {
2721
2721
  for (; ++n < e.length; ) {
2722
2722
  const a = e.charCodeAt(n);
2723
2723
  let i = "";
2724
- if (a === 37 && Ot(e.charCodeAt(n + 1)) && Ot(e.charCodeAt(n + 2)))
2724
+ if (a === 37 && Mt(e.charCodeAt(n + 1)) && Mt(e.charCodeAt(n + 2)))
2725
2725
  l = 2;
2726
2726
  else if (a < 128)
2727
2727
  /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a)) || (i = String.fromCharCode(a));
@@ -3003,10 +3003,10 @@ function K1(e, t, n) {
3003
3003
  return Zt(h) ? (e.consume(h), i) : h === 64 ? n(h) : u(h);
3004
3004
  }
3005
3005
  function i(h) {
3006
- return h === 43 || h === 45 || h === 46 || Ot(h) ? (r = 1, s(h)) : u(h);
3006
+ return h === 43 || h === 45 || h === 46 || Mt(h) ? (r = 1, s(h)) : u(h);
3007
3007
  }
3008
3008
  function s(h) {
3009
- return h === 58 ? (e.consume(h), r = 0, o) : (h === 43 || h === 45 || h === 46 || Ot(h)) && r++ < 32 ? (e.consume(h), s) : (r = 0, u(h));
3009
+ return h === 58 ? (e.consume(h), r = 0, o) : (h === 43 || h === 45 || h === 46 || Mt(h)) && r++ < 32 ? (e.consume(h), s) : (r = 0, u(h));
3010
3010
  }
3011
3011
  function o(h) {
3012
3012
  return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || Ds(h) ? n(h) : (e.consume(h), o);
@@ -3015,13 +3015,13 @@ function K1(e, t, n) {
3015
3015
  return h === 64 ? (e.consume(h), c) : F1(h) ? (e.consume(h), u) : n(h);
3016
3016
  }
3017
3017
  function c(h) {
3018
- return Ot(h) ? d(h) : n(h);
3018
+ return Mt(h) ? d(h) : n(h);
3019
3019
  }
3020
3020
  function d(h) {
3021
3021
  return h === 46 ? (e.consume(h), r = 0, c) : h === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : f(h);
3022
3022
  }
3023
3023
  function f(h) {
3024
- if ((h === 45 || Ot(h)) && r++ < 63) {
3024
+ if ((h === 45 || Mt(h)) && r++ < 63) {
3025
3025
  const m = h === 45 ? f : d;
3026
3026
  return e.consume(h), m;
3027
3027
  }
@@ -3103,7 +3103,7 @@ function tg(e, t, n) {
3103
3103
  return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), o;
3104
3104
  }
3105
3105
  function o(d) {
3106
- return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, i = Ot, c(d));
3106
+ return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, i = Mt, c(d));
3107
3107
  }
3108
3108
  function u(d) {
3109
3109
  return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, i = H1, c) : (e.enter("characterReferenceValue"), a = 7, i = Ls, c(d));
@@ -3111,7 +3111,7 @@ function tg(e, t, n) {
3111
3111
  function c(d) {
3112
3112
  if (d === 59 && l) {
3113
3113
  const f = e.exit("characterReferenceValue");
3114
- return i === Ot && !Sl(r.sliceSerialize(f)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
3114
+ return i === Mt && !Sl(r.sliceSerialize(f)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
3115
3115
  }
3116
3116
  return i(d) && l++ < a ? (e.consume(d), c) : n(d);
3117
3117
  }
@@ -3863,7 +3863,7 @@ function Mg(e, t, n) {
3863
3863
  const me = D === 47, Ie = i.toLowerCase();
3864
3864
  return !me && !a && uc.includes(Ie) ? (l = 1, r.interrupt ? t(D) : B(D)) : Ng.includes(i.toLowerCase()) ? (l = 6, me ? (e.consume(D), y) : r.interrupt ? t(D) : B(D)) : (l = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(D) : a ? I(D) : k(D));
3865
3865
  }
3866
- return D === 45 || Ot(D) ? (e.consume(D), i += String.fromCharCode(D), g) : n(D);
3866
+ return D === 45 || Mt(D) ? (e.consume(D), i += String.fromCharCode(D), g) : n(D);
3867
3867
  }
3868
3868
  function y(D) {
3869
3869
  return D === 62 ? (e.consume(D), r.interrupt ? t : B) : n(D);
@@ -3875,7 +3875,7 @@ function Mg(e, t, n) {
3875
3875
  return D === 47 ? (e.consume(D), P) : D === 58 || D === 95 || Zt(D) ? (e.consume(D), R) : Re(D) ? (e.consume(D), k) : P(D);
3876
3876
  }
3877
3877
  function R(D) {
3878
- return D === 45 || D === 46 || D === 58 || D === 95 || Ot(D) ? (e.consume(D), R) : w(D);
3878
+ return D === 45 || D === 46 || D === 58 || D === 95 || Mt(D) ? (e.consume(D), R) : w(D);
3879
3879
  }
3880
3880
  function w(D) {
3881
3881
  return D === 61 ? (e.consume(D), T) : Re(D) ? (e.consume(D), w) : k(D);
@@ -4007,19 +4007,19 @@ function Pg(e, t, n) {
4007
4007
  return Zt(C) ? (e.consume(C), T) : n(C);
4008
4008
  }
4009
4009
  function T(C) {
4010
- return C === 45 || Ot(C) ? (e.consume(C), T) : O(C);
4010
+ return C === 45 || Mt(C) ? (e.consume(C), T) : O(C);
4011
4011
  }
4012
4012
  function O(C) {
4013
4013
  return ue(C) ? (i = O, $(C)) : Re(C) ? (e.consume(C), O) : F(C);
4014
4014
  }
4015
4015
  function _(C) {
4016
- return C === 45 || Ot(C) ? (e.consume(C), _) : C === 47 || C === 62 || $e(C) ? A(C) : n(C);
4016
+ return C === 45 || Mt(C) ? (e.consume(C), _) : C === 47 || C === 62 || $e(C) ? A(C) : n(C);
4017
4017
  }
4018
4018
  function A(C) {
4019
4019
  return C === 47 ? (e.consume(C), F) : C === 58 || C === 95 || Zt(C) ? (e.consume(C), P) : ue(C) ? (i = A, $(C)) : Re(C) ? (e.consume(C), A) : F(C);
4020
4020
  }
4021
4021
  function P(C) {
4022
- return C === 45 || C === 46 || C === 58 || C === 95 || Ot(C) ? (e.consume(C), P) : S(C);
4022
+ return C === 45 || C === 46 || C === 58 || C === 95 || Mt(C) ? (e.consume(C), P) : S(C);
4023
4023
  }
4024
4024
  function S(C) {
4025
4025
  return C === 61 ? (e.consume(C), B) : ue(C) ? (i = S, $(C)) : Re(C) ? (e.consume(C), S) : A(C);
@@ -4882,7 +4882,7 @@ function Rv(e) {
4882
4882
  codeFencedFenceInfo: i,
4883
4883
  codeFencedFenceMeta: i,
4884
4884
  codeIndented: a(nt, i),
4885
- codeText: a(Dt, i),
4885
+ codeText: a(Lt, i),
4886
4886
  codeTextData: A,
4887
4887
  data: A,
4888
4888
  codeFlowValue: A,
@@ -5018,7 +5018,7 @@ function Rv(e) {
5018
5018
  return ee;
5019
5019
  }
5020
5020
  function l(j, ee, ge) {
5021
- let ke = ee - 1, Pe = -1, rt = !1, Lt, qt, Vn, an;
5021
+ let ke = ee - 1, Pe = -1, rt = !1, Pt, qt, Vn, an;
5022
5022
  for (; ++ke <= ge; ) {
5023
5023
  const Qe = j[ke];
5024
5024
  switch (Qe[1].type) {
@@ -5029,7 +5029,7 @@ function Rv(e) {
5029
5029
  break;
5030
5030
  }
5031
5031
  case "lineEndingBlank": {
5032
- Qe[0] === "enter" && (Lt && !an && !Pe && !Vn && (Vn = ke), an = void 0);
5032
+ Qe[0] === "enter" && (Pt && !an && !Pe && !Vn && (Vn = ke), an = void 0);
5033
5033
  break;
5034
5034
  }
5035
5035
  case "linePrefix":
@@ -5042,7 +5042,7 @@ function Rv(e) {
5042
5042
  an = void 0;
5043
5043
  }
5044
5044
  if (!Pe && Qe[0] === "enter" && Qe[1].type === "listItemPrefix" || Pe === -1 && Qe[0] === "exit" && (Qe[1].type === "listUnordered" || Qe[1].type === "listOrdered")) {
5045
- if (Lt) {
5045
+ if (Pt) {
5046
5046
  let bn = ke;
5047
5047
  for (qt = void 0; bn--; ) {
5048
5048
  const Wt = j[bn];
@@ -5051,7 +5051,7 @@ function Rv(e) {
5051
5051
  qt && (j[qt][1].type = "lineEndingBlank", rt = !0), Wt[1].type = "lineEnding", qt = bn;
5052
5052
  } else if (!(Wt[1].type === "linePrefix" || Wt[1].type === "blockQuotePrefix" || Wt[1].type === "blockQuotePrefixWhitespace" || Wt[1].type === "blockQuoteMarker" || Wt[1].type === "listItemIndent")) break;
5053
5053
  }
5054
- Vn && (!qt || Vn < qt) && (Lt._spread = !0), Lt.end = Object.assign({}, qt ? j[qt][1].start : Qe[1].end), j.splice(qt || ke, 0, ["exit", Lt, Qe[2]]), ke++, ge++;
5054
+ Vn && (!qt || Vn < qt) && (Pt._spread = !0), Pt.end = Object.assign({}, qt ? j[qt][1].start : Qe[1].end), j.splice(qt || ke, 0, ["exit", Pt, Qe[2]]), ke++, ge++;
5055
5055
  }
5056
5056
  if (Qe[1].type === "listItemPrefix") {
5057
5057
  const bn = {
@@ -5061,7 +5061,7 @@ function Rv(e) {
5061
5061
  // @ts-expect-error: we’ll add `end` in a second.
5062
5062
  end: void 0
5063
5063
  };
5064
- Lt = bn, j.splice(ke, 0, ["enter", bn, Qe[2]]), ke++, ge++, Vn = void 0, an = !0;
5064
+ Pt = bn, j.splice(ke, 0, ["enter", bn, Qe[2]]), ke++, ge++, Vn = void 0, an = !0;
5065
5065
  }
5066
5066
  }
5067
5067
  }
@@ -5285,7 +5285,7 @@ function Rv(e) {
5285
5285
  value: ""
5286
5286
  };
5287
5287
  }
5288
- function Dt() {
5288
+ function Lt() {
5289
5289
  return {
5290
5290
  type: "inlineCode",
5291
5291
  value: ""
@@ -16086,17 +16086,17 @@ function Ep() {
16086
16086
  }, E.format = function(F) {
16087
16087
  var $ = this, q = this.$locale();
16088
16088
  if (!this.isValid()) return q.invalidDate || b;
16089
- var K = F || "YYYY-MM-DDTHH:mm:ssZ", C = S.z(this), se = this.$H, ce = this.$m, D = this.$M, me = q.weekdays, Ie = q.months, Ne = q.meridiem, fe = function(Te, nt, Dt, $t) {
16090
- return Te && (Te[nt] || Te($, K)) || Dt[nt].slice(0, $t);
16089
+ var K = F || "YYYY-MM-DDTHH:mm:ssZ", C = S.z(this), se = this.$H, ce = this.$m, D = this.$M, me = q.weekdays, Ie = q.months, Ne = q.meridiem, fe = function(Te, nt, Lt, $t) {
16090
+ return Te && (Te[nt] || Te($, K)) || Lt[nt].slice(0, $t);
16091
16091
  }, pe = function(Te) {
16092
16092
  return S.s(se % 12 || 12, Te, "0");
16093
- }, Le = Ne || function(Te, nt, Dt) {
16093
+ }, Le = Ne || function(Te, nt, Lt) {
16094
16094
  var $t = Te < 12 ? "AM" : "PM";
16095
- return Dt ? $t.toLowerCase() : $t;
16095
+ return Lt ? $t.toLowerCase() : $t;
16096
16096
  };
16097
16097
  return K.replace(y, function(Te, nt) {
16098
- return nt || function(Dt) {
16099
- switch (Dt) {
16098
+ return nt || function(Lt) {
16099
+ switch (Lt) {
16100
16100
  case "YY":
16101
16101
  return String($.$y).slice(-2);
16102
16102
  case "YYYY":
@@ -24086,7 +24086,7 @@ const yx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24086
24086
  We(() => {
24087
24087
  pe.current && Te(pe.current.offsetWidth);
24088
24088
  });
24089
- const nt = Le > 0 ? Math.max(60, Le + 2) : Cx(fe) + 6, Dt = Ue(() => {
24089
+ const nt = Le > 0 ? Math.max(60, Le + 2) : Cx(fe) + 6, Lt = Ue(() => {
24090
24090
  if (b) return "";
24091
24091
  const Oe = m.trim();
24092
24092
  return /^https?:\/\//i.test(Oe) ? Lp(Oe) : "";
@@ -24159,7 +24159,7 @@ const yx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24159
24159
  onGoGenerate: a,
24160
24160
  onViewReport: o,
24161
24161
  hideCurrentSessionReport: u,
24162
- preciseMatchKey: Dt,
24162
+ preciseMatchKey: Lt,
24163
24163
  open: O
24164
24164
  }
24165
24165
  ) : null;
@@ -27218,15 +27218,15 @@ class Qs {
27218
27218
  return (this.delInfo & wa) > 0;
27219
27219
  }
27220
27220
  }
27221
- class It {
27221
+ class Ot {
27222
27222
  /**
27223
27223
  Create a position map. The modifications to the document are
27224
27224
  represented as an array of numbers, in which each group of three
27225
27225
  represents a modified chunk as `[start, oldSize, newSize]`.
27226
27226
  */
27227
27227
  constructor(t, n = !1) {
27228
- if (this.ranges = t, this.inverted = n, !t.length && It.empty)
27229
- return It.empty;
27228
+ if (this.ranges = t, this.inverted = n, !t.length && Ot.empty)
27229
+ return Ot.empty;
27230
27230
  }
27231
27231
  /**
27232
27232
  @internal
@@ -27297,7 +27297,7 @@ class It {
27297
27297
  map positions in the post-step document to the pre-step document.
27298
27298
  */
27299
27299
  invert() {
27300
- return new It(this.ranges, !this.inverted);
27300
+ return new Ot(this.ranges, !this.inverted);
27301
27301
  }
27302
27302
  /**
27303
27303
  @internal
@@ -27311,10 +27311,10 @@ class It {
27311
27311
  sub-document to a larger document, or vice-versa.
27312
27312
  */
27313
27313
  static offset(t) {
27314
- return t == 0 ? It.empty : new It(t < 0 ? [0, -t, 0] : [0, 0, t]);
27314
+ return t == 0 ? Ot.empty : new Ot(t < 0 ? [0, -t, 0] : [0, 0, t]);
27315
27315
  }
27316
27316
  }
27317
- It.empty = new It([]);
27317
+ Ot.empty = new Ot([]);
27318
27318
  class Ol {
27319
27319
  /**
27320
27320
  Create a new mapping with the given position maps.
@@ -27430,7 +27430,7 @@ class pt {
27430
27430
  and the new document.
27431
27431
  */
27432
27432
  getMap() {
27433
- return It.empty;
27433
+ return Ot.empty;
27434
27434
  }
27435
27435
  /**
27436
27436
  Try to merge this step with another one, to be applied directly
@@ -27680,7 +27680,7 @@ class je extends pt {
27680
27680
  return this.structure && Xs(t, this.from, this.to) ? Ke.fail("Structure replace would overwrite content") : Ke.fromReplace(t, this.from, this.to, this.slice);
27681
27681
  }
27682
27682
  getMap() {
27683
- return new It([this.from, this.to - this.from, this.slice.size]);
27683
+ return new Ot([this.from, this.to - this.from, this.slice.size]);
27684
27684
  }
27685
27685
  invert(t) {
27686
27686
  return new je(this.from, this.from + this.slice.size, t.slice(this.from, this.to));
@@ -27736,7 +27736,7 @@ class Ze extends pt {
27736
27736
  return r ? Ke.fromReplace(t, this.from, this.to, r) : Ke.fail("Content does not fit in gap");
27737
27737
  }
27738
27738
  getMap() {
27739
- return new It([
27739
+ return new Ot([
27740
27740
  this.from,
27741
27741
  this.gapFrom - this.from,
27742
27742
  this.insert,
@@ -28394,7 +28394,7 @@ class Ir extends pt {
28394
28394
  return Ke.fromReplace(t, this.pos, this.pos + 1, new ae(Q.from(l), 0, n.isLeaf ? 0 : 1));
28395
28395
  }
28396
28396
  getMap() {
28397
- return It.empty;
28397
+ return Ot.empty;
28398
28398
  }
28399
28399
  invert(t) {
28400
28400
  return new Ir(this.pos, this.attr, t.nodeAt(this.pos).attrs[this.attr]);
@@ -28429,7 +28429,7 @@ class Ml extends pt {
28429
28429
  return Ke.ok(r);
28430
28430
  }
28431
28431
  getMap() {
28432
- return It.empty;
28432
+ return Ot.empty;
28433
28433
  }
28434
28434
  invert(t) {
28435
28435
  return new Ml(this.attr, t.attrs[this.attr]);
@@ -28808,7 +28808,7 @@ class xe {
28808
28808
  negative, it will search backwards first.
28809
28809
  */
28810
28810
  static near(t, n = 1) {
28811
- return this.findFrom(t, n) || this.findFrom(t, -n) || new Rt(t.node(0));
28811
+ return this.findFrom(t, n) || this.findFrom(t, -n) || new Dt(t.node(0));
28812
28812
  }
28813
28813
  /**
28814
28814
  Find the cursor or leaf node selection closest to the start of
@@ -28817,14 +28817,14 @@ class xe {
28817
28817
  exists.
28818
28818
  */
28819
28819
  static atStart(t) {
28820
- return Cr(t, t, 0, 0, 1) || new Rt(t);
28820
+ return Cr(t, t, 0, 0, 1) || new Dt(t);
28821
28821
  }
28822
28822
  /**
28823
28823
  Find the cursor or leaf node selection closest to the end of the
28824
28824
  given document.
28825
28825
  */
28826
28826
  static atEnd(t) {
28827
- return Cr(t, t, t.content.size, t.childCount, -1) || new Rt(t);
28827
+ return Cr(t, t, t.content.size, t.childCount, -1) || new Dt(t);
28828
28828
  }
28829
28829
  /**
28830
28830
  Deserialize the JSON representation of a selection. Must be
@@ -29020,7 +29020,7 @@ class Xo {
29020
29020
  return r && de.isSelectable(r) ? new de(n) : xe.near(n);
29021
29021
  }
29022
29022
  }
29023
- class Rt extends xe {
29023
+ class Dt extends xe {
29024
29024
  /**
29025
29025
  Create an all-selection over the given document.
29026
29026
  */
@@ -29042,25 +29042,25 @@ class Rt extends xe {
29042
29042
  @internal
29043
29043
  */
29044
29044
  static fromJSON(t) {
29045
- return new Rt(t);
29045
+ return new Dt(t);
29046
29046
  }
29047
29047
  map(t) {
29048
- return new Rt(t);
29048
+ return new Dt(t);
29049
29049
  }
29050
29050
  eq(t) {
29051
- return t instanceof Rt;
29051
+ return t instanceof Dt;
29052
29052
  }
29053
29053
  getBookmark() {
29054
29054
  return C6;
29055
29055
  }
29056
29056
  }
29057
- xe.jsonID("all", Rt);
29057
+ xe.jsonID("all", Dt);
29058
29058
  const C6 = {
29059
29059
  map() {
29060
29060
  return this;
29061
29061
  },
29062
29062
  resolve(e) {
29063
- return new Rt(e);
29063
+ return new Dt(e);
29064
29064
  }
29065
29065
  };
29066
29066
  function Cr(e, t, n, r, l, a = !1) {
@@ -31292,7 +31292,7 @@ function jd(e, t, n) {
31292
31292
  return Cn(e, i);
31293
31293
  }
31294
31294
  if (!l.parent.inlineContent) {
31295
- let i = t < 0 ? l : a, s = r instanceof Rt ? xe.near(i, t) : xe.findFrom(i, t);
31295
+ let i = t < 0 ? l : a, s = r instanceof Dt ? xe.near(i, t) : xe.findFrom(i, t);
31296
31296
  return s ? Cn(e, s) : !1;
31297
31297
  }
31298
31298
  return !1;
@@ -32006,7 +32006,7 @@ class Wa {
32006
32006
  }
32007
32007
  map(t, n, r, l) {
32008
32008
  let { pos: a, deleted: i } = t.mapResult(n.from + l, this.side < 0 ? -1 : 1);
32009
- return i ? null : new Mt(a - r, a - r, this);
32009
+ return i ? null : new Rt(a - r, a - r, this);
32010
32010
  }
32011
32011
  valid() {
32012
32012
  return !0;
@@ -32024,7 +32024,7 @@ class Mn {
32024
32024
  }
32025
32025
  map(t, n, r, l) {
32026
32026
  let a = t.map(n.from + l, this.spec.inclusiveStart ? -1 : 1) - r, i = t.map(n.to + l, this.spec.inclusiveEnd ? 1 : -1) - r;
32027
- return a >= i ? null : new Mt(a, i, this);
32027
+ return a >= i ? null : new Rt(a, i, this);
32028
32028
  }
32029
32029
  valid(t, n) {
32030
32030
  return n.from < n.to;
@@ -32047,7 +32047,7 @@ class au {
32047
32047
  if (a.deleted)
32048
32048
  return null;
32049
32049
  let i = t.mapResult(n.to + l, -1);
32050
- return i.deleted || i.pos <= a.pos ? null : new Mt(a.pos - r, i.pos - r, this);
32050
+ return i.deleted || i.pos <= a.pos ? null : new Rt(a.pos - r, i.pos - r, this);
32051
32051
  }
32052
32052
  valid(t, n) {
32053
32053
  let { index: r, offset: l } = t.content.findIndex(n.from), a;
@@ -32059,7 +32059,7 @@ class au {
32059
32059
  destroy() {
32060
32060
  }
32061
32061
  }
32062
- class Mt {
32062
+ class Rt {
32063
32063
  /**
32064
32064
  @internal
32065
32065
  */
@@ -32070,7 +32070,7 @@ class Mt {
32070
32070
  @internal
32071
32071
  */
32072
32072
  copy(t, n) {
32073
- return new Mt(t, n, this.type);
32073
+ return new Rt(t, n, this.type);
32074
32074
  }
32075
32075
  /**
32076
32076
  @internal
@@ -32093,14 +32093,14 @@ class Mt {
32093
32093
  widget's current document position.
32094
32094
  */
32095
32095
  static widget(t, n, r) {
32096
- return new Mt(t, t, new Wa(n, r));
32096
+ return new Rt(t, t, new Wa(n, r));
32097
32097
  }
32098
32098
  /**
32099
32099
  Creates an inline decoration, which adds the given attributes to
32100
32100
  each inline node between `from` and `to`.
32101
32101
  */
32102
32102
  static inline(t, n, r, l) {
32103
- return new Mt(t, n, new Mn(r, l));
32103
+ return new Rt(t, n, new Mn(r, l));
32104
32104
  }
32105
32105
  /**
32106
32106
  Creates a node decoration. `from` and `to` should point precisely
@@ -32108,7 +32108,7 @@ class Mt {
32108
32108
  node, will receive the given attributes.
32109
32109
  */
32110
32110
  static node(t, n, r, l) {
32111
- return new Mt(t, n, new au(r, l));
32111
+ return new Rt(t, n, new au(r, l));
32112
32112
  }
32113
32113
  /**
32114
32114
  The spec provided when creating this decoration. Can be useful
@@ -32418,7 +32418,7 @@ function Km(e, t) {
32418
32418
  let n = [];
32419
32419
  for (let r = 0; r < e.length; r++) {
32420
32420
  let l = e[r];
32421
- n.push(new Mt(l.from + t, l.to + t, l.type));
32421
+ n.push(new Rt(l.from + t, l.to + t, l.type));
32422
32422
  }
32423
32423
  return n;
32424
32424
  }
@@ -33261,12 +33261,12 @@ function lf(e) {
33261
33261
  if (typeof n == "function" && (n = n(e.state)), n)
33262
33262
  for (let r in n)
33263
33263
  r == "class" ? t.class += " " + n[r] : r == "style" ? t.style = (t.style ? t.style + ";" : "") + n[r] : !t[r] && r != "contenteditable" && r != "nodeName" && (t[r] = String(n[r]));
33264
- }), t.translate || (t.translate = "no"), [Mt.node(0, e.state.doc.content.size, t)];
33264
+ }), t.translate || (t.translate = "no"), [Rt.node(0, e.state.doc.content.size, t)];
33265
33265
  }
33266
33266
  function af(e) {
33267
33267
  if (e.markCursor) {
33268
33268
  let t = document.createElement("img");
33269
- t.className = "ProseMirror-separator", t.setAttribute("mark-placeholder", "true"), t.setAttribute("alt", ""), e.cursorWrapper = { dom: t, deco: Mt.widget(e.state.selection.from, t, { raw: !0, marks: e.markCursor }) };
33269
+ t.className = "ProseMirror-separator", t.setAttribute("mark-placeholder", "true"), t.setAttribute("alt", ""), e.cursorWrapper = { dom: t, deco: Rt.widget(e.state.selection.from, t, { raw: !0, marks: e.markCursor }) };
33270
33270
  } else
33271
33271
  e.cursorWrapper = null;
33272
33272
  }
@@ -33647,7 +33647,7 @@ const Ek = (e, t) => {
33647
33647
  return !0;
33648
33648
  }, o0 = (e, t) => {
33649
33649
  let n = e.selection, { $from: r, $to: l } = n;
33650
- if (n instanceof Rt || r.parent.inlineContent || l.parent.inlineContent)
33650
+ if (n instanceof Dt || r.parent.inlineContent || l.parent.inlineContent)
33651
33651
  return !1;
33652
33652
  let a = cu(l.parent.contentMatchAt(l.indexAfter()));
33653
33653
  if (!a || !a.isTextblock)
@@ -33687,7 +33687,7 @@ function Tk(e) {
33687
33687
  a.unshift(null);
33688
33688
  }
33689
33689
  let c = t.tr;
33690
- (t.selection instanceof Ee || t.selection instanceof Rt) && c.deleteSelection();
33690
+ (t.selection instanceof Ee || t.selection instanceof Dt) && c.deleteSelection();
33691
33691
  let d = c.mapping.map(r.pos), f = fn(c.doc, d, a.length, a);
33692
33692
  if (f || (a[0] = s ? { type: s } : null, f = fn(c.doc, d, a.length, a)), !f)
33693
33693
  return !1;
@@ -35219,7 +35219,7 @@ const MA = (e, t) => ({ tr: n, state: r, dispatch: l }) => {
35219
35219
  }), !0) : !1;
35220
35220
  }, RA = () => ({ tr: e, dispatch: t }) => (t && e.scrollIntoView(), !0), DA = () => ({ tr: e, dispatch: t }) => {
35221
35221
  if (t) {
35222
- const n = new Rt(e.doc);
35222
+ const n = new Dt(e.doc);
35223
35223
  e.setSelection(n);
35224
35224
  }
35225
35225
  return !0;
@@ -37798,7 +37798,7 @@ function E4(e) {
37798
37798
  if (!(e.selection instanceof ze))
37799
37799
  return null;
37800
37800
  let t = document.createElement("div");
37801
- return t.className = "ProseMirror-gapcursor", Ge.create(e.doc, [Mt.widget(e.selection.head, t, { key: "gapcursor" })]);
37801
+ return t.className = "ProseMirror-gapcursor", Ge.create(e.doc, [Rt.widget(e.selection.head, t, { key: "gapcursor" })]);
37802
37802
  }
37803
37803
  const T4 = dt.create({
37804
37804
  name: "gapCursor",
@@ -38614,7 +38614,7 @@ const A0 = k0(!1, !0), N0 = k0(!0, !0), R4 = dt.create({
38614
38614
  if ((o || !this.options.showOnlyCurrent) && u) {
38615
38615
  const c = [this.options.emptyNodeClass];
38616
38616
  a && c.push(this.options.emptyEditorClass);
38617
- const d = Mt.node(s, s + i.nodeSize, {
38617
+ const d = Rt.node(s, s + i.nodeSize, {
38618
38618
  class: c.join(" "),
38619
38619
  "data-placeholder": typeof this.options.placeholder == "function" ? this.options.placeholder({
38620
38620
  editor: this.editor,
@@ -40204,7 +40204,7 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40204
40204
  collapseTransitionMs: Te = 260,
40205
40205
  nodeDefaults: nt,
40206
40206
  // 展开态真实高度变化回调:消费端据此算对话列表底部留白,避免最后一条消息被输入框遮挡。
40207
- onExpandedHeightChange: Dt,
40207
+ onExpandedHeightChange: Lt,
40208
40208
  // 折叠态固定总高度(px):传入则折叠 max-height 直接用该值,不传则内部测第一行可视高度。
40209
40209
  collapsedTotalHeight: $t,
40210
40210
  // 点击空白处是否切换折叠态(默认 true)。消费端在非贴底等场景下可传 false 禁用该切换。
@@ -40218,9 +40218,9 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40218
40218
  scrollContainerRef: Oe,
40219
40219
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
40220
40220
  autoCollapseOnScroll: Ve
40221
- } = e, [mt, Tt] = J({}), [bt, Ql] = J({}), [wt, mn] = J(u ?? []), [ki, Ai] = J({}), [j, ee] = J(mw), [ge, ke] = J(() => /* @__PURE__ */ new Set()), [Pe, rt] = J({}), [Lt, qt] = J(null), Vn = V(
40222
- () => pn?.() ?? Lt ?? document.body,
40223
- [pn, Lt]
40221
+ } = e, [mt, Tt] = J({}), [bt, Ql] = J({}), [wt, mn] = J(u ?? []), [ki, Ai] = J({}), [j, ee] = J(mw), [ge, ke] = J(() => /* @__PURE__ */ new Set()), [Pe, rt] = J({}), [Pt, qt] = J(null), Vn = V(
40222
+ () => pn?.() ?? Pt ?? document.body,
40223
+ [pn, Pt]
40224
40224
  ), an = te(null), [Qe, bn] = J(null), Wt = V((U, ie) => {
40225
40225
  bn(ie ? U : null);
40226
40226
  }, []), br = te(null), [z0, V0] = J(58), [$n, vu] = J(58), [Ni, yu] = J(!1), Eu = te(0), Tu = te(pe), [Xl, Cu] = J(!1);
@@ -40270,7 +40270,7 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40270
40270
  ew(i, mt, Tt, Ct, bt, Ql);
40271
40271
  const Gr = te(/* @__PURE__ */ new Map()), Nu = te(""), wu = (t.find((U) => U.type === "tag")?.text || "") + "||" + t.filter((U) => U.key && U.type !== "report-module" && U.type !== "markdown-module").map((U) => `${U.type}:${U.key}`).join("|");
40272
40272
  Nu.current !== wu && (Nu.current = wu, Gr.current = /* @__PURE__ */ new Map());
40273
- const [Pt, Kr] = J(null);
40273
+ const [_t, Kr] = J(null);
40274
40274
  be(() => {
40275
40275
  ce !== void 0 && Kr(ce);
40276
40276
  }, [ce]);
@@ -40482,11 +40482,11 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40482
40482
  }, [wt, o]);
40483
40483
  const Li = V(async () => {
40484
40484
  if (r || l) return;
40485
- const U = Pt ? { skillCode: Pt.id } : void 0;
40485
+ const U = _t ? { skillCode: _t.id, skillName: _t.title } : void 0;
40486
40486
  if (t.length === 0) {
40487
40487
  const ne = qn.trim();
40488
40488
  if (!ne) return;
40489
- const le = Pt ? `【${Pt.title}】${ne}` : ne;
40489
+ const le = _t ? `【${_t.title}】${ne}` : ne;
40490
40490
  n(ne, le, U), xu("");
40491
40491
  return;
40492
40492
  }
@@ -40502,7 +40502,7 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40502
40502
  }, [
40503
40503
  t.length,
40504
40504
  qn,
40505
- Pt,
40505
+ _t,
40506
40506
  Ct,
40507
40507
  mt,
40508
40508
  bt,
@@ -40520,7 +40520,7 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40520
40520
  [Li]
40521
40521
  ), rb = Ue(() => t.length === 0 ? qn.trim().length > 0 : nw(Ct, mt, bt, Qr), [t.length, qn, Ct, mt, bt, Qr]);
40522
40522
  We(() => {
40523
- if (!Pt) {
40523
+ if (!_t) {
40524
40524
  ku(0);
40525
40525
  return;
40526
40526
  }
@@ -40528,7 +40528,7 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40528
40528
  if (!U) return;
40529
40529
  const ie = U.getBoundingClientRect().width - 2;
40530
40530
  ku(Math.max(0, ie));
40531
- }, [Pt, t.length]), We(() => {
40531
+ }, [_t, t.length]), We(() => {
40532
40532
  const U = wi.current;
40533
40533
  U && (U.style.height = "auto", U.style.height = `${U.scrollHeight}px`);
40534
40534
  }, [qn, _i]);
@@ -40629,8 +40629,8 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40629
40629
  }, [ta, Ct, bt, wt.length, Pe, pe, gr, qn]);
40630
40630
  const Hu = te(-1);
40631
40631
  be(() => {
40632
- pe || $n <= 0 || $n >= Pf || Hu.current !== $n && (Hu.current = $n, Dt?.($n));
40633
- }, [$n, pe, Dt]);
40632
+ pe || $n <= 0 || $n >= Pf || Hu.current !== $n && (Hu.current = $n, Lt?.($n));
40633
+ }, [$n, pe, Lt]);
40634
40634
  const Uu = Ue(
40635
40635
  () => /* @__PURE__ */ new Set([
40636
40636
  "pdf",
@@ -40718,9 +40718,9 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40718
40718
  },
40719
40719
  [Uu, t, wt]
40720
40720
  );
40721
- return /* @__PURE__ */ v(gb, { getPopupContainer: Vn, children: /* @__PURE__ */ W(dr, { component: !1, message: { getContainer: () => Lt ?? document.body }, children: [
40721
+ return /* @__PURE__ */ v(gb, { getPopupContainer: Vn, children: /* @__PURE__ */ W(dr, { component: !1, message: { getContainer: () => Pt ?? document.body }, children: [
40722
40722
  /* @__PURE__ */ v(Xw, { messageRef: an }),
40723
- /* @__PURE__ */ W(hp.Provider, { value: Lt, children: [
40723
+ /* @__PURE__ */ W(hp.Provider, { value: Pt, children: [
40724
40724
  /* @__PURE__ */ W(
40725
40725
  "div",
40726
40726
  {
@@ -40734,14 +40734,14 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40734
40734
  "div",
40735
40735
  {
40736
40736
  ref: br,
40737
- className: `rte-editor rte-editor-default${Pt ? " rte-editor-default-with-skill" : ""}`,
40737
+ className: `rte-editor rte-editor-default${_t ? " rte-editor-default-with-skill" : ""}`,
40738
40738
  style: Lu,
40739
40739
  onClick: Pu,
40740
40740
  children: [
40741
- Pt && /* @__PURE__ */ v("span", { ref: Su, className: "rte-skill-inline-tag-wrap", contentEditable: !1, children: /* @__PURE__ */ v(
40741
+ _t && /* @__PURE__ */ v("span", { ref: Su, className: "rte-skill-inline-tag-wrap", contentEditable: !1, children: /* @__PURE__ */ v(
40742
40742
  Co,
40743
40743
  {
40744
- node: { type: "tag", text: Pt.title, tooltip: "点击退出技能" },
40744
+ node: { type: "tag", text: _t.title, tooltip: "点击退出技能" },
40745
40745
  onClose: () => Kr(null)
40746
40746
  }
40747
40747
  ) }),
@@ -40753,7 +40753,7 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40753
40753
  value: qn,
40754
40754
  onChange: (U) => xu(U.target.value),
40755
40755
  onKeyDown: nb,
40756
- placeholder: Pt?.usageInstruction || a || "",
40756
+ placeholder: _t?.usageInstruction || a || "",
40757
40757
  disabled: l,
40758
40758
  rows: 1,
40759
40759
  style: _i ? { textIndent: `${_i}px` } : void 0
@@ -40823,7 +40823,7 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40823
40823
  onAgentSelect: Y0,
40824
40824
  hideAgentButton: me === "hideAgent",
40825
40825
  currentAgent: jr,
40826
- selectedSkill: Pt,
40826
+ selectedSkill: _t,
40827
40827
  onSkillSelect: W0,
40828
40828
  onSkillCardClick: F,
40829
40829
  onSkillAction: E,