bi-components-library 1.3.2-next.24 → 1.3.2-next.25
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 +714 -717
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +21 -21
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -559,26 +559,26 @@ const { Option: l0 } = Rl, a0 = ({
|
|
|
559
559
|
current: 1,
|
|
560
560
|
pageSize: a,
|
|
561
561
|
total: 0
|
|
562
|
-
}), [g, v] = ee({}), [
|
|
563
|
-
|
|
562
|
+
}), [g, v] = ee({}), [I, k] = ee({}), [R] = Gl.useForm(), N = re(m);
|
|
563
|
+
N.current = m;
|
|
564
564
|
const T = re(o);
|
|
565
565
|
T.current = o;
|
|
566
|
-
const A = re(!1),
|
|
566
|
+
const A = re(!1), w = Ge(() => e.map((D) => {
|
|
567
567
|
const { sortable: E, render: B, ...$ } = D;
|
|
568
568
|
return {
|
|
569
569
|
...$,
|
|
570
570
|
sorter: E ? !0 : void 0,
|
|
571
571
|
render: B || ((q) => q)
|
|
572
572
|
};
|
|
573
|
-
}), [e]),
|
|
573
|
+
}), [e]), _ = V(async (D = {}) => {
|
|
574
574
|
if (t) {
|
|
575
575
|
h(!0);
|
|
576
576
|
try {
|
|
577
577
|
const E = {
|
|
578
|
-
page:
|
|
579
|
-
pageSize:
|
|
580
|
-
sortField:
|
|
581
|
-
sortOrder:
|
|
578
|
+
page: N.current.current,
|
|
579
|
+
pageSize: N.current.pageSize,
|
|
580
|
+
sortField: I.field,
|
|
581
|
+
sortOrder: I.order,
|
|
582
582
|
searchParams: { ...g, ...T.current },
|
|
583
583
|
...D
|
|
584
584
|
}, B = await t(E);
|
|
@@ -593,13 +593,13 @@ const { Option: l0 } = Rl, a0 = ({
|
|
|
593
593
|
h(!1);
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
}, [t,
|
|
596
|
+
}, [t, I, g]), P = V((D) => {
|
|
597
597
|
v(D), b((E) => ({ ...E, current: 1 }));
|
|
598
598
|
}, []), L = V(() => {
|
|
599
599
|
R.resetFields(), v({}), b((D) => ({ ...D, current: 1 }));
|
|
600
600
|
}, [R]), F = V(() => {
|
|
601
|
-
|
|
602
|
-
}, [
|
|
601
|
+
_();
|
|
602
|
+
}, [_]), U = V((D, E, B) => {
|
|
603
603
|
const $ = {
|
|
604
604
|
current: D.current || 1,
|
|
605
605
|
pageSize: D.pageSize || a,
|
|
@@ -612,8 +612,8 @@ const { Option: l0 } = Rl, a0 = ({
|
|
|
612
612
|
}, [a]);
|
|
613
613
|
return ve(() => {
|
|
614
614
|
const D = Object.keys(o).length > 0;
|
|
615
|
-
(s && !A.current || D) && (
|
|
616
|
-
}, [s, o,
|
|
615
|
+
(s && !A.current || D) && (_(), A.current = !0);
|
|
616
|
+
}, [s, o, _]), /* @__PURE__ */ j("div", { children: [
|
|
617
617
|
r && n.length > 0 && /* @__PURE__ */ y(to, { size: "small", style: { marginBottom: 16 }, children: /* @__PURE__ */ j(
|
|
618
618
|
Gl,
|
|
619
619
|
{
|
|
@@ -649,7 +649,7 @@ const { Option: l0 } = Rl, a0 = ({
|
|
|
649
649
|
no,
|
|
650
650
|
{
|
|
651
651
|
...u,
|
|
652
|
-
columns:
|
|
652
|
+
columns: w,
|
|
653
653
|
dataSource: c,
|
|
654
654
|
loading: f,
|
|
655
655
|
pagination: {
|
|
@@ -2038,38 +2038,38 @@ function C0() {
|
|
|
2038
2038
|
throw new TypeError("First argument must be a string");
|
|
2039
2039
|
if (!g) return [];
|
|
2040
2040
|
v = v || {};
|
|
2041
|
-
var
|
|
2041
|
+
var I = 1, k = 1;
|
|
2042
2042
|
function R(D) {
|
|
2043
2043
|
var E = D.match(t);
|
|
2044
|
-
E && (
|
|
2044
|
+
E && (I += E.length);
|
|
2045
2045
|
var B = D.lastIndexOf(o);
|
|
2046
2046
|
k = ~B ? D.length - B : k + D.length;
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2049
|
-
var D = { line:
|
|
2048
|
+
function N() {
|
|
2049
|
+
var D = { line: I, column: k };
|
|
2050
2050
|
return function(E) {
|
|
2051
|
-
return E.position = new T(D),
|
|
2051
|
+
return E.position = new T(D), _(), E;
|
|
2052
2052
|
};
|
|
2053
2053
|
}
|
|
2054
2054
|
function T(D) {
|
|
2055
|
-
this.start = D, this.end = { line:
|
|
2055
|
+
this.start = D, this.end = { line: I, column: k }, this.source = v.source;
|
|
2056
2056
|
}
|
|
2057
2057
|
T.prototype.content = g;
|
|
2058
2058
|
function A(D) {
|
|
2059
2059
|
var E = new Error(
|
|
2060
|
-
v.source + ":" +
|
|
2060
|
+
v.source + ":" + I + ":" + k + ": " + D
|
|
2061
2061
|
);
|
|
2062
|
-
if (E.reason = D, E.filename = v.source, E.line =
|
|
2062
|
+
if (E.reason = D, E.filename = v.source, E.line = I, E.column = k, E.source = g, !v.silent) throw E;
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2064
|
+
function w(D) {
|
|
2065
2065
|
var E = D.exec(g);
|
|
2066
2066
|
if (E) {
|
|
2067
2067
|
var B = E[0];
|
|
2068
2068
|
return R(B), g = g.slice(B.length), E;
|
|
2069
2069
|
}
|
|
2070
2070
|
}
|
|
2071
|
-
function
|
|
2072
|
-
|
|
2071
|
+
function _() {
|
|
2072
|
+
w(n);
|
|
2073
2073
|
}
|
|
2074
2074
|
function P(D) {
|
|
2075
2075
|
var E;
|
|
@@ -2078,7 +2078,7 @@ function C0() {
|
|
|
2078
2078
|
return D;
|
|
2079
2079
|
}
|
|
2080
2080
|
function L() {
|
|
2081
|
-
var D =
|
|
2081
|
+
var D = N();
|
|
2082
2082
|
if (!(u != g.charAt(0) || c != g.charAt(1))) {
|
|
2083
2083
|
for (var E = 2; d != g.charAt(E) && (c != g.charAt(E) || u != g.charAt(E + 1)); )
|
|
2084
2084
|
++E;
|
|
@@ -2092,15 +2092,15 @@ function C0() {
|
|
|
2092
2092
|
}
|
|
2093
2093
|
}
|
|
2094
2094
|
function F() {
|
|
2095
|
-
var D =
|
|
2095
|
+
var D = N(), E = w(r);
|
|
2096
2096
|
if (E) {
|
|
2097
|
-
if (L(), !
|
|
2098
|
-
var B =
|
|
2097
|
+
if (L(), !w(l)) return A("property missing ':'");
|
|
2098
|
+
var B = w(a), $ = D({
|
|
2099
2099
|
type: h,
|
|
2100
2100
|
property: b(E[0].replace(e, d)),
|
|
2101
2101
|
value: B ? b(B[0].replace(e, d)) : d
|
|
2102
2102
|
});
|
|
2103
|
-
return
|
|
2103
|
+
return w(i), $;
|
|
2104
2104
|
}
|
|
2105
2105
|
}
|
|
2106
2106
|
function U() {
|
|
@@ -2110,7 +2110,7 @@ function C0() {
|
|
|
2110
2110
|
E !== !1 && (D.push(E), P(D));
|
|
2111
2111
|
return D;
|
|
2112
2112
|
}
|
|
2113
|
-
return
|
|
2113
|
+
return _(), U();
|
|
2114
2114
|
}
|
|
2115
2115
|
function b(g) {
|
|
2116
2116
|
return g ? g.replace(s, d) : d;
|
|
@@ -2796,12 +2796,12 @@ function og(e) {
|
|
|
2796
2796
|
}
|
|
2797
2797
|
function o(k) {
|
|
2798
2798
|
if (r++, t.containerState._closeFlow) {
|
|
2799
|
-
t.containerState._closeFlow = void 0, l &&
|
|
2799
|
+
t.containerState._closeFlow = void 0, l && I();
|
|
2800
2800
|
const R = t.events.length;
|
|
2801
|
-
let
|
|
2802
|
-
for (;
|
|
2803
|
-
if (t.events[
|
|
2804
|
-
T = t.events[
|
|
2801
|
+
let N = R, T;
|
|
2802
|
+
for (; N--; )
|
|
2803
|
+
if (t.events[N][0] === "exit" && t.events[N][1].type === "chunkFlow") {
|
|
2804
|
+
T = t.events[N][1].end;
|
|
2805
2805
|
break;
|
|
2806
2806
|
}
|
|
2807
2807
|
v(r);
|
|
@@ -2810,7 +2810,7 @@ function og(e) {
|
|
|
2810
2810
|
t.events[A][1].end = {
|
|
2811
2811
|
...T
|
|
2812
2812
|
}, A++;
|
|
2813
|
-
return tn(t.events,
|
|
2813
|
+
return tn(t.events, N + 1, 0, t.events.slice(R)), t.events.length = A, u(k);
|
|
2814
2814
|
}
|
|
2815
2815
|
return s(k);
|
|
2816
2816
|
}
|
|
@@ -2825,7 +2825,7 @@ function og(e) {
|
|
|
2825
2825
|
return t.containerState = {}, e.check(Du, c, d)(k);
|
|
2826
2826
|
}
|
|
2827
2827
|
function c(k) {
|
|
2828
|
-
return l &&
|
|
2828
|
+
return l && I(), v(r), f(k);
|
|
2829
2829
|
}
|
|
2830
2830
|
function d(k) {
|
|
2831
2831
|
return t.parser.lazy[t.now().line] = r !== n.length, i = t.now().offset, m(k);
|
|
@@ -2838,7 +2838,7 @@ function og(e) {
|
|
|
2838
2838
|
}
|
|
2839
2839
|
function m(k) {
|
|
2840
2840
|
if (k === null) {
|
|
2841
|
-
l &&
|
|
2841
|
+
l && I(), v(0), e.consume(k);
|
|
2842
2842
|
return;
|
|
2843
2843
|
}
|
|
2844
2844
|
return l = l || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
|
@@ -2855,8 +2855,8 @@ function og(e) {
|
|
|
2855
2855
|
return ae(k) ? (e.consume(k), g(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(k), b);
|
|
2856
2856
|
}
|
|
2857
2857
|
function g(k, R) {
|
|
2858
|
-
const
|
|
2859
|
-
if (R &&
|
|
2858
|
+
const N = t.sliceStream(k);
|
|
2859
|
+
if (R && N.push(null), k.previous = a, a && (a.next = k), a = k, l.defineSkip(k.start), l.write(N), t.parser.lazy[k.start.line]) {
|
|
2860
2860
|
let T = l.events.length;
|
|
2861
2861
|
for (; T--; )
|
|
2862
2862
|
if (
|
|
@@ -2867,31 +2867,31 @@ function og(e) {
|
|
|
2867
2867
|
)
|
|
2868
2868
|
return;
|
|
2869
2869
|
const A = t.events.length;
|
|
2870
|
-
let
|
|
2871
|
-
for (;
|
|
2872
|
-
if (t.events[
|
|
2873
|
-
if (
|
|
2874
|
-
P = t.events[
|
|
2870
|
+
let w = A, _, P;
|
|
2871
|
+
for (; w--; )
|
|
2872
|
+
if (t.events[w][0] === "exit" && t.events[w][1].type === "chunkFlow") {
|
|
2873
|
+
if (_) {
|
|
2874
|
+
P = t.events[w][1].end;
|
|
2875
2875
|
break;
|
|
2876
2876
|
}
|
|
2877
|
-
|
|
2877
|
+
_ = !0;
|
|
2878
2878
|
}
|
|
2879
2879
|
for (v(r), T = A; T < t.events.length; )
|
|
2880
2880
|
t.events[T][1].end = {
|
|
2881
2881
|
...P
|
|
2882
2882
|
}, T++;
|
|
2883
|
-
tn(t.events,
|
|
2883
|
+
tn(t.events, w + 1, 0, t.events.slice(A)), t.events.length = T;
|
|
2884
2884
|
}
|
|
2885
2885
|
}
|
|
2886
2886
|
function v(k) {
|
|
2887
2887
|
let R = n.length;
|
|
2888
2888
|
for (; R-- > k; ) {
|
|
2889
|
-
const
|
|
2890
|
-
t.containerState =
|
|
2889
|
+
const N = n[R];
|
|
2890
|
+
t.containerState = N[1], N[0].exit.call(t, e);
|
|
2891
2891
|
}
|
|
2892
2892
|
n.length = k;
|
|
2893
2893
|
}
|
|
2894
|
-
function
|
|
2894
|
+
function I() {
|
|
2895
2895
|
l.write([null]), a = void 0, l = void 0, t.containerState._closeFlow = void 0;
|
|
2896
2896
|
}
|
|
2897
2897
|
}
|
|
@@ -3128,7 +3128,7 @@ const Bu = {
|
|
|
3128
3128
|
function Eg(e, t, n) {
|
|
3129
3129
|
const r = this, l = {
|
|
3130
3130
|
partial: !0,
|
|
3131
|
-
tokenize:
|
|
3131
|
+
tokenize: N
|
|
3132
3132
|
};
|
|
3133
3133
|
let a = 0, i = 0, s;
|
|
3134
3134
|
return o;
|
|
@@ -3165,19 +3165,19 @@ function Eg(e, t, n) {
|
|
|
3165
3165
|
return e.enter("lineEnding"), e.consume(T), e.exit("lineEnding"), v;
|
|
3166
3166
|
}
|
|
3167
3167
|
function v(T) {
|
|
3168
|
-
return a > 0 && _e(T) ? Ie(e,
|
|
3168
|
+
return a > 0 && _e(T) ? Ie(e, I, "linePrefix", a + 1)(T) : I(T);
|
|
3169
3169
|
}
|
|
3170
|
-
function
|
|
3170
|
+
function I(T) {
|
|
3171
3171
|
return T === null || ae(T) ? e.check(Bu, b, R)(T) : (e.enter("codeFlowValue"), k(T));
|
|
3172
3172
|
}
|
|
3173
3173
|
function k(T) {
|
|
3174
|
-
return T === null || ae(T) ? (e.exit("codeFlowValue"),
|
|
3174
|
+
return T === null || ae(T) ? (e.exit("codeFlowValue"), I(T)) : (e.consume(T), k);
|
|
3175
3175
|
}
|
|
3176
3176
|
function R(T) {
|
|
3177
3177
|
return e.exit("codeFenced"), t(T);
|
|
3178
3178
|
}
|
|
3179
|
-
function
|
|
3180
|
-
let
|
|
3179
|
+
function N(T, A, w) {
|
|
3180
|
+
let _ = 0;
|
|
3181
3181
|
return P;
|
|
3182
3182
|
function P(E) {
|
|
3183
3183
|
return T.enter("lineEnding"), T.consume(E), T.exit("lineEnding"), L;
|
|
@@ -3186,13 +3186,13 @@ function Eg(e, t, n) {
|
|
|
3186
3186
|
return T.enter("codeFencedFence"), _e(E) ? Ie(T, F, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(E) : F(E);
|
|
3187
3187
|
}
|
|
3188
3188
|
function F(E) {
|
|
3189
|
-
return E === s ? (T.enter("codeFencedFenceSequence"), U(E)) :
|
|
3189
|
+
return E === s ? (T.enter("codeFencedFenceSequence"), U(E)) : w(E);
|
|
3190
3190
|
}
|
|
3191
3191
|
function U(E) {
|
|
3192
|
-
return E === s ? (
|
|
3192
|
+
return E === s ? (_++, T.consume(E), U) : _ >= i ? (T.exit("codeFencedFenceSequence"), _e(E) ? Ie(T, D, "whitespace")(E) : D(E)) : w(E);
|
|
3193
3193
|
}
|
|
3194
3194
|
function D(E) {
|
|
3195
|
-
return E === null || ae(E) ? (T.exit("codeFencedFence"), A(E)) :
|
|
3195
|
+
return E === null || ae(E) ? (T.exit("codeFencedFence"), A(E)) : w(E);
|
|
3196
3196
|
}
|
|
3197
3197
|
}
|
|
3198
3198
|
}
|
|
@@ -3499,8 +3499,8 @@ function Ig(e, t) {
|
|
|
3499
3499
|
// Find a void token that includes a break.
|
|
3500
3500
|
s[f][0] === "exit" && s[f - 1][0] === "enter" && s[f][1].type === s[f - 1][1].type && s[f][1].start.line !== s[f][1].end.line && (b = f + 1, g.push(b), h._tokenizer = void 0, h.previous = void 0, h = h.next);
|
|
3501
3501
|
for (i.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : g.pop(), f = g.length; f--; ) {
|
|
3502
|
-
const v = s.slice(g[f], g[f + 1]),
|
|
3503
|
-
o.push([
|
|
3502
|
+
const v = s.slice(g[f], g[f + 1]), I = a.pop();
|
|
3503
|
+
o.push([I, I + v.length - 1]), e.splice(I, 2, v);
|
|
3504
3504
|
}
|
|
3505
3505
|
for (o.reverse(), f = -1; ++f < o.length; )
|
|
3506
3506
|
u[m + o[f][0]] = m + o[f][1], m += o[f][1] - o[f][0] - 1;
|
|
@@ -3862,35 +3862,35 @@ function Qg(e, t, n) {
|
|
|
3862
3862
|
function g(M) {
|
|
3863
3863
|
if (M === null || M === 47 || M === 62 || qe(M)) {
|
|
3864
3864
|
const he = M === 47, Ne = i.toLowerCase();
|
|
3865
|
-
return !he && !a && Hu.includes(Ne) ? (l = 1, r.interrupt ? t(M) : F(M)) : Wg.includes(i.toLowerCase()) ? (l = 6, he ? (e.consume(M), v) : r.interrupt ? t(M) : F(M)) : (l = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(M) : a ?
|
|
3865
|
+
return !he && !a && Hu.includes(Ne) ? (l = 1, r.interrupt ? t(M) : F(M)) : Wg.includes(i.toLowerCase()) ? (l = 6, he ? (e.consume(M), v) : r.interrupt ? t(M) : F(M)) : (l = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(M) : a ? I(M) : k(M));
|
|
3866
3866
|
}
|
|
3867
3867
|
return M === 45 || Ot(M) ? (e.consume(M), i += String.fromCharCode(M), g) : n(M);
|
|
3868
3868
|
}
|
|
3869
3869
|
function v(M) {
|
|
3870
3870
|
return M === 62 ? (e.consume(M), r.interrupt ? t : F) : n(M);
|
|
3871
3871
|
}
|
|
3872
|
-
function
|
|
3873
|
-
return _e(M) ? (e.consume(M),
|
|
3872
|
+
function I(M) {
|
|
3873
|
+
return _e(M) ? (e.consume(M), I) : P(M);
|
|
3874
3874
|
}
|
|
3875
3875
|
function k(M) {
|
|
3876
3876
|
return M === 47 ? (e.consume(M), P) : M === 58 || M === 95 || Zt(M) ? (e.consume(M), R) : _e(M) ? (e.consume(M), k) : P(M);
|
|
3877
3877
|
}
|
|
3878
3878
|
function R(M) {
|
|
3879
|
-
return M === 45 || M === 46 || M === 58 || M === 95 || Ot(M) ? (e.consume(M), R) :
|
|
3879
|
+
return M === 45 || M === 46 || M === 58 || M === 95 || Ot(M) ? (e.consume(M), R) : N(M);
|
|
3880
3880
|
}
|
|
3881
|
-
function
|
|
3882
|
-
return M === 61 ? (e.consume(M), T) : _e(M) ? (e.consume(M),
|
|
3881
|
+
function N(M) {
|
|
3882
|
+
return M === 61 ? (e.consume(M), T) : _e(M) ? (e.consume(M), N) : k(M);
|
|
3883
3883
|
}
|
|
3884
3884
|
function T(M) {
|
|
3885
|
-
return M === null || M === 60 || M === 61 || M === 62 || M === 96 ? n(M) : M === 34 || M === 39 ? (e.consume(M), o = M, A) : _e(M) ? (e.consume(M), T) :
|
|
3885
|
+
return M === null || M === 60 || M === 61 || M === 62 || M === 96 ? n(M) : M === 34 || M === 39 ? (e.consume(M), o = M, A) : _e(M) ? (e.consume(M), T) : w(M);
|
|
3886
3886
|
}
|
|
3887
3887
|
function A(M) {
|
|
3888
|
-
return M === o ? (e.consume(M), o = null,
|
|
3889
|
-
}
|
|
3890
|
-
function N(M) {
|
|
3891
|
-
return M === null || M === 34 || M === 39 || M === 47 || M === 60 || M === 61 || M === 62 || M === 96 || qe(M) ? I(M) : (e.consume(M), N);
|
|
3888
|
+
return M === o ? (e.consume(M), o = null, _) : M === null || ae(M) ? n(M) : (e.consume(M), A);
|
|
3892
3889
|
}
|
|
3893
3890
|
function w(M) {
|
|
3891
|
+
return M === null || M === 34 || M === 39 || M === 47 || M === 60 || M === 61 || M === 62 || M === 96 || qe(M) ? N(M) : (e.consume(M), w);
|
|
3892
|
+
}
|
|
3893
|
+
function _(M) {
|
|
3894
3894
|
return M === 47 || M === 62 || _e(M) ? k(M) : n(M);
|
|
3895
3895
|
}
|
|
3896
3896
|
function P(M) {
|
|
@@ -3965,10 +3965,10 @@ function ev(e, t, n) {
|
|
|
3965
3965
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(x), o;
|
|
3966
3966
|
}
|
|
3967
3967
|
function o(x) {
|
|
3968
|
-
return x === 33 ? (e.consume(x), u) : x === 47 ? (e.consume(x),
|
|
3968
|
+
return x === 33 ? (e.consume(x), u) : x === 47 ? (e.consume(x), N) : x === 63 ? (e.consume(x), k) : Zt(x) ? (e.consume(x), w) : n(x);
|
|
3969
3969
|
}
|
|
3970
3970
|
function u(x) {
|
|
3971
|
-
return x === 45 ? (e.consume(x), c) : x === 91 ? (e.consume(x), a = 0, m) : Zt(x) ? (e.consume(x),
|
|
3971
|
+
return x === 45 ? (e.consume(x), c) : x === 91 ? (e.consume(x), a = 0, m) : Zt(x) ? (e.consume(x), I) : n(x);
|
|
3972
3972
|
}
|
|
3973
3973
|
function c(x) {
|
|
3974
3974
|
return x === 45 ? (e.consume(x), h) : n(x);
|
|
@@ -3995,8 +3995,8 @@ function ev(e, t, n) {
|
|
|
3995
3995
|
function v(x) {
|
|
3996
3996
|
return x === 62 ? B(x) : x === 93 ? (e.consume(x), v) : b(x);
|
|
3997
3997
|
}
|
|
3998
|
-
function
|
|
3999
|
-
return x === null || x === 62 ? B(x) : ae(x) ? (i =
|
|
3998
|
+
function I(x) {
|
|
3999
|
+
return x === null || x === 62 ? B(x) : ae(x) ? (i = I, $(x)) : (e.consume(x), I);
|
|
4000
4000
|
}
|
|
4001
4001
|
function k(x) {
|
|
4002
4002
|
return x === null ? n(x) : x === 63 ? (e.consume(x), R) : ae(x) ? (i = k, $(x)) : (e.consume(x), k);
|
|
@@ -4004,7 +4004,7 @@ function ev(e, t, n) {
|
|
|
4004
4004
|
function R(x) {
|
|
4005
4005
|
return x === 62 ? B(x) : k(x);
|
|
4006
4006
|
}
|
|
4007
|
-
function
|
|
4007
|
+
function N(x) {
|
|
4008
4008
|
return Zt(x) ? (e.consume(x), T) : n(x);
|
|
4009
4009
|
}
|
|
4010
4010
|
function T(x) {
|
|
@@ -4013,17 +4013,17 @@ function ev(e, t, n) {
|
|
|
4013
4013
|
function A(x) {
|
|
4014
4014
|
return ae(x) ? (i = A, $(x)) : _e(x) ? (e.consume(x), A) : B(x);
|
|
4015
4015
|
}
|
|
4016
|
-
function N(x) {
|
|
4017
|
-
return x === 45 || Ot(x) ? (e.consume(x), N) : x === 47 || x === 62 || qe(x) ? w(x) : n(x);
|
|
4018
|
-
}
|
|
4019
4016
|
function w(x) {
|
|
4020
|
-
return x ===
|
|
4017
|
+
return x === 45 || Ot(x) ? (e.consume(x), w) : x === 47 || x === 62 || qe(x) ? _(x) : n(x);
|
|
4018
|
+
}
|
|
4019
|
+
function _(x) {
|
|
4020
|
+
return x === 47 ? (e.consume(x), B) : x === 58 || x === 95 || Zt(x) ? (e.consume(x), P) : ae(x) ? (i = _, $(x)) : _e(x) ? (e.consume(x), _) : B(x);
|
|
4021
4021
|
}
|
|
4022
4022
|
function P(x) {
|
|
4023
4023
|
return x === 45 || x === 46 || x === 58 || x === 95 || Ot(x) ? (e.consume(x), P) : L(x);
|
|
4024
4024
|
}
|
|
4025
4025
|
function L(x) {
|
|
4026
|
-
return x === 61 ? (e.consume(x), F) : ae(x) ? (i = L, $(x)) : _e(x) ? (e.consume(x), L) :
|
|
4026
|
+
return x === 61 ? (e.consume(x), F) : ae(x) ? (i = L, $(x)) : _e(x) ? (e.consume(x), L) : _(x);
|
|
4027
4027
|
}
|
|
4028
4028
|
function F(x) {
|
|
4029
4029
|
return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), l = x, U) : ae(x) ? (i = F, $(x)) : _e(x) ? (e.consume(x), F) : (e.consume(x), D);
|
|
@@ -4032,10 +4032,10 @@ function ev(e, t, n) {
|
|
|
4032
4032
|
return x === l ? (e.consume(x), l = void 0, E) : x === null ? n(x) : ae(x) ? (i = U, $(x)) : (e.consume(x), U);
|
|
4033
4033
|
}
|
|
4034
4034
|
function D(x) {
|
|
4035
|
-
return x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 96 ? n(x) : x === 47 || x === 62 || qe(x) ?
|
|
4035
|
+
return x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 96 ? n(x) : x === 47 || x === 62 || qe(x) ? _(x) : (e.consume(x), D);
|
|
4036
4036
|
}
|
|
4037
4037
|
function E(x) {
|
|
4038
|
-
return x === 47 || x === 62 || qe(x) ?
|
|
4038
|
+
return x === 47 || x === 62 || qe(x) ? _(x) : n(x);
|
|
4039
4039
|
}
|
|
4040
4040
|
function B(x) {
|
|
4041
4041
|
return x === 62 ? (e.consume(x), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(x);
|
|
@@ -4581,9 +4581,9 @@ function zv(e, t, n) {
|
|
|
4581
4581
|
const l = {}, a = [];
|
|
4582
4582
|
let i = [], s = [];
|
|
4583
4583
|
const o = {
|
|
4584
|
-
attempt: A(
|
|
4584
|
+
attempt: A(N),
|
|
4585
4585
|
check: A(T),
|
|
4586
|
-
consume:
|
|
4586
|
+
consume: I,
|
|
4587
4587
|
enter: k,
|
|
4588
4588
|
exit: R,
|
|
4589
4589
|
interrupt: A(T, {
|
|
@@ -4604,7 +4604,7 @@ function zv(e, t, n) {
|
|
|
4604
4604
|
let c = t.tokenize.call(u, o);
|
|
4605
4605
|
return t.resolveAll && a.push(t), u;
|
|
4606
4606
|
function d(L) {
|
|
4607
|
-
return i = Ft(i, L), g(), i[i.length - 1] !== null ? [] : (
|
|
4607
|
+
return i = Ft(i, L), g(), i[i.length - 1] !== null ? [] : (w(t, 0), u.events = ho(a, u.events, u), u.events);
|
|
4608
4608
|
}
|
|
4609
4609
|
function f(L, F) {
|
|
4610
4610
|
return $v(h(L), F);
|
|
@@ -4645,7 +4645,7 @@ function zv(e, t, n) {
|
|
|
4645
4645
|
function v(L) {
|
|
4646
4646
|
c = c(L);
|
|
4647
4647
|
}
|
|
4648
|
-
function
|
|
4648
|
+
function I(L) {
|
|
4649
4649
|
ae(L) ? (r.line++, r.column = 1, r.offset += L === -3 ? 2 : 1, P()) : L !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
4650
4650
|
// strings.
|
|
4651
4651
|
/** @type {string} */
|
|
@@ -4659,8 +4659,8 @@ function zv(e, t, n) {
|
|
|
4659
4659
|
const F = s.pop();
|
|
4660
4660
|
return F.end = m(), u.events.push(["exit", F, u]), F;
|
|
4661
4661
|
}
|
|
4662
|
-
function
|
|
4663
|
-
|
|
4662
|
+
function N(L, F) {
|
|
4663
|
+
w(L, F.from);
|
|
4664
4664
|
}
|
|
4665
4665
|
function T(L, F) {
|
|
4666
4666
|
F.restore();
|
|
@@ -4697,7 +4697,7 @@ function zv(e, t, n) {
|
|
|
4697
4697
|
function M(Ce) {
|
|
4698
4698
|
return ue;
|
|
4699
4699
|
function ue(we) {
|
|
4700
|
-
return x =
|
|
4700
|
+
return x = _(), X = Ce, Ce.partial || (u.currentConstruct = Ce), Ce.name && u.parser.constructs.disable.null.includes(Ce.name) ? Ne() : Ce.tokenize.call(
|
|
4701
4701
|
// If we do have fields, create an object w/ `context` as its
|
|
4702
4702
|
// prototype.
|
|
4703
4703
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -4716,10 +4716,10 @@ function zv(e, t, n) {
|
|
|
4716
4716
|
}
|
|
4717
4717
|
}
|
|
4718
4718
|
}
|
|
4719
|
-
function
|
|
4719
|
+
function w(L, F) {
|
|
4720
4720
|
L.resolveAll && !a.includes(L) && a.push(L), L.resolve && tn(u.events, F, u.events.length - F, L.resolve(u.events.slice(F), u)), L.resolveTo && (u.events = L.resolveTo(u.events, u));
|
|
4721
4721
|
}
|
|
4722
|
-
function
|
|
4722
|
+
function _() {
|
|
4723
4723
|
const L = m(), F = u.previous, U = u.currentConstruct, D = u.events.length, E = Array.from(s);
|
|
4724
4724
|
return {
|
|
4725
4725
|
from: D,
|
|
@@ -4873,20 +4873,20 @@ function Xv(e) {
|
|
|
4873
4873
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
4874
4874
|
enter: {
|
|
4875
4875
|
autolink: a(qt),
|
|
4876
|
-
autolinkProtocol:
|
|
4877
|
-
autolinkEmail:
|
|
4876
|
+
autolinkProtocol: _,
|
|
4877
|
+
autolinkEmail: _,
|
|
4878
4878
|
atxHeading: a(Oe),
|
|
4879
4879
|
blockQuote: a(ge),
|
|
4880
|
-
characterEscape:
|
|
4881
|
-
characterReference:
|
|
4880
|
+
characterEscape: _,
|
|
4881
|
+
characterReference: _,
|
|
4882
4882
|
codeFenced: a(Ue),
|
|
4883
4883
|
codeFencedFenceInfo: i,
|
|
4884
4884
|
codeFencedFenceMeta: i,
|
|
4885
4885
|
codeIndented: a(Ue, i),
|
|
4886
4886
|
codeText: a(ze, i),
|
|
4887
|
-
codeTextData:
|
|
4888
|
-
data:
|
|
4889
|
-
codeFlowValue:
|
|
4887
|
+
codeTextData: _,
|
|
4888
|
+
data: _,
|
|
4889
|
+
codeFlowValue: _,
|
|
4890
4890
|
definition: a(Dt),
|
|
4891
4891
|
definitionDestinationString: i,
|
|
4892
4892
|
definitionLabelString: i,
|
|
@@ -4895,9 +4895,9 @@ function Xv(e) {
|
|
|
4895
4895
|
hardBreakEscape: a(Nt),
|
|
4896
4896
|
hardBreakTrailing: a(Nt),
|
|
4897
4897
|
htmlFlow: a(Lt, i),
|
|
4898
|
-
htmlFlowData:
|
|
4898
|
+
htmlFlowData: _,
|
|
4899
4899
|
htmlText: a(Lt, i),
|
|
4900
|
-
htmlTextData:
|
|
4900
|
+
htmlTextData: _,
|
|
4901
4901
|
image: a($t),
|
|
4902
4902
|
label: i,
|
|
4903
4903
|
link: a(qt),
|
|
@@ -4916,7 +4916,7 @@ function Xv(e) {
|
|
|
4916
4916
|
},
|
|
4917
4917
|
exit: {
|
|
4918
4918
|
atxHeading: o(),
|
|
4919
|
-
atxHeadingSequence:
|
|
4919
|
+
atxHeadingSequence: N,
|
|
4920
4920
|
autolink: o(),
|
|
4921
4921
|
autolinkEmail: De,
|
|
4922
4922
|
autolinkProtocol: we,
|
|
@@ -4937,7 +4937,7 @@ function Xv(e) {
|
|
|
4937
4937
|
data: P,
|
|
4938
4938
|
definition: o(),
|
|
4939
4939
|
definitionDestinationString: R,
|
|
4940
|
-
definitionLabelString:
|
|
4940
|
+
definitionLabelString: I,
|
|
4941
4941
|
definitionTitleString: k,
|
|
4942
4942
|
emphasis: o(),
|
|
4943
4943
|
hardBreakEscape: o(F),
|
|
@@ -4959,7 +4959,7 @@ function Xv(e) {
|
|
|
4959
4959
|
resourceDestinationString: x,
|
|
4960
4960
|
resourceTitleString: ne,
|
|
4961
4961
|
resource: ie,
|
|
4962
|
-
setextHeading: o(
|
|
4962
|
+
setextHeading: o(w),
|
|
4963
4963
|
setextHeadingLineSequence: A,
|
|
4964
4964
|
setextHeadingText: T,
|
|
4965
4965
|
strong: o(),
|
|
@@ -5134,7 +5134,7 @@ function Xv(e) {
|
|
|
5134
5134
|
const W = this.resume(), Z = this.stack[this.stack.length - 1];
|
|
5135
5135
|
Z.value = W.replace(/(\r?\n|\r)$/g, "");
|
|
5136
5136
|
}
|
|
5137
|
-
function
|
|
5137
|
+
function I(W) {
|
|
5138
5138
|
const Z = this.resume(), pe = this.stack[this.stack.length - 1];
|
|
5139
5139
|
pe.label = Z, pe.identifier = Nr(this.sliceSerialize(W)).toLowerCase();
|
|
5140
5140
|
}
|
|
@@ -5146,7 +5146,7 @@ function Xv(e) {
|
|
|
5146
5146
|
const W = this.resume(), Z = this.stack[this.stack.length - 1];
|
|
5147
5147
|
Z.url = W;
|
|
5148
5148
|
}
|
|
5149
|
-
function
|
|
5149
|
+
function N(W) {
|
|
5150
5150
|
const Z = this.stack[this.stack.length - 1];
|
|
5151
5151
|
if (!Z.depth) {
|
|
5152
5152
|
const pe = this.sliceSerialize(W).length;
|
|
@@ -5160,10 +5160,10 @@ function Xv(e) {
|
|
|
5160
5160
|
const Z = this.stack[this.stack.length - 1];
|
|
5161
5161
|
Z.depth = this.sliceSerialize(W).codePointAt(0) === 61 ? 1 : 2;
|
|
5162
5162
|
}
|
|
5163
|
-
function
|
|
5163
|
+
function w() {
|
|
5164
5164
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
5165
5165
|
}
|
|
5166
|
-
function
|
|
5166
|
+
function _(W) {
|
|
5167
5167
|
const pe = this.stack[this.stack.length - 1].children;
|
|
5168
5168
|
let ke = pe[pe.length - 1];
|
|
5169
5169
|
(!ke || ke.type !== "text") && (ke = qr(), ke.position = {
|
|
@@ -5183,7 +5183,7 @@ function Xv(e) {
|
|
|
5183
5183
|
pe.position.end = bn(W.end), this.data.atHardBreak = void 0;
|
|
5184
5184
|
return;
|
|
5185
5185
|
}
|
|
5186
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(Z.type) && (
|
|
5186
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(Z.type) && (_.call(this, W), P.call(this, W));
|
|
5187
5187
|
}
|
|
5188
5188
|
function F() {
|
|
5189
5189
|
this.data.atHardBreak = !0;
|
|
@@ -5987,8 +5987,8 @@ function M1(e) {
|
|
|
5987
5987
|
const m = [], b = e.footnoteCounts.get(d);
|
|
5988
5988
|
for (; b !== void 0 && ++h <= b; ) {
|
|
5989
5989
|
m.length > 0 && m.push({ type: "text", value: " " });
|
|
5990
|
-
let
|
|
5991
|
-
typeof
|
|
5990
|
+
let I = typeof n == "string" ? n : n(o, h);
|
|
5991
|
+
typeof I == "string" && (I = { type: "text", value: I }), m.push({
|
|
5992
5992
|
type: "element",
|
|
5993
5993
|
tagName: "a",
|
|
5994
5994
|
properties: {
|
|
@@ -5997,13 +5997,13 @@ function M1(e) {
|
|
|
5997
5997
|
ariaLabel: typeof r == "string" ? r : r(o, h),
|
|
5998
5998
|
className: ["data-footnote-backref"]
|
|
5999
5999
|
},
|
|
6000
|
-
children: Array.isArray(
|
|
6000
|
+
children: Array.isArray(I) ? I : [I]
|
|
6001
6001
|
});
|
|
6002
6002
|
}
|
|
6003
6003
|
const g = c[c.length - 1];
|
|
6004
6004
|
if (g && g.type === "element" && g.tagName === "p") {
|
|
6005
|
-
const
|
|
6006
|
-
|
|
6005
|
+
const I = g.children[g.children.length - 1];
|
|
6006
|
+
I && I.type === "text" ? I.value += " " : g.children.push({ type: "text", value: " " }), g.children.push(...m);
|
|
6007
6007
|
} else
|
|
6008
6008
|
c.push(...m);
|
|
6009
6009
|
const v = {
|
|
@@ -6165,8 +6165,8 @@ function Zf(e, t, n, r) {
|
|
|
6165
6165
|
);
|
|
6166
6166
|
if (v.children && h[0] !== H1)
|
|
6167
6167
|
for (b = (r ? v.children.length : -1) + i, g = c.concat(v); b > -1 && b < v.children.length; ) {
|
|
6168
|
-
const
|
|
6169
|
-
if (m = s(
|
|
6168
|
+
const I = v.children[b];
|
|
6169
|
+
if (m = s(I, b, g)(), m[0] === Gu)
|
|
6170
6170
|
return m;
|
|
6171
6171
|
b = typeof m[1] == "number" ? m[1] : b + i;
|
|
6172
6172
|
}
|
|
@@ -6337,11 +6337,11 @@ function K1() {
|
|
|
6337
6337
|
return u[c];
|
|
6338
6338
|
};
|
|
6339
6339
|
return Ai = function o() {
|
|
6340
|
-
var u, c, d, f, h, m, b = arguments[0], g = 1, v = arguments.length,
|
|
6341
|
-
for (typeof b == "boolean" && (
|
|
6340
|
+
var u, c, d, f, h, m, b = arguments[0], g = 1, v = arguments.length, I = !1;
|
|
6341
|
+
for (typeof b == "boolean" && (I = b, b = arguments[1] || {}, g = 2), (b == null || typeof b != "object" && typeof b != "function") && (b = {}); g < v; ++g)
|
|
6342
6342
|
if (u = arguments[g], u != null)
|
|
6343
6343
|
for (c in u)
|
|
6344
|
-
d = s(b, c), f = s(u, c), b !== f && (
|
|
6344
|
+
d = s(b, c), f = s(u, c), b !== f && (I && f && (a(f) || (h = l(f))) ? (h ? (h = !1, m = d && l(d) ? d : []) : m = d && a(d) ? d : {}, i(b, { name: c, newValue: o(I, m, f) })) : typeof f < "u" && i(b, { name: c, newValue: f }));
|
|
6345
6345
|
return b;
|
|
6346
6346
|
}, Ai;
|
|
6347
6347
|
}
|
|
@@ -14487,35 +14487,35 @@ function Ao(e, t) {
|
|
|
14487
14487
|
s += String.fromCharCode(h), d++;
|
|
14488
14488
|
continue;
|
|
14489
14489
|
}
|
|
14490
|
-
const
|
|
14491
|
-
let k =
|
|
14490
|
+
const I = a + 1;
|
|
14491
|
+
let k = I, R = I, N;
|
|
14492
14492
|
if (v === 35) {
|
|
14493
14493
|
R = ++k;
|
|
14494
14494
|
const U = e.charCodeAt(R);
|
|
14495
|
-
U === 88 || U === 120 ? (
|
|
14495
|
+
U === 88 || U === 120 ? (N = "hexadecimal", R = ++k) : N = "decimal";
|
|
14496
14496
|
} else
|
|
14497
|
-
|
|
14498
|
-
let T = "", A = "",
|
|
14499
|
-
const
|
|
14497
|
+
N = "named";
|
|
14498
|
+
let T = "", A = "", w = "";
|
|
14499
|
+
const _ = N === "named" ? Nc : N === "decimal" ? Uh : Yx;
|
|
14500
14500
|
for (R--; ++R <= e.length; ) {
|
|
14501
14501
|
const U = e.charCodeAt(R);
|
|
14502
|
-
if (!
|
|
14502
|
+
if (!_(U))
|
|
14503
14503
|
break;
|
|
14504
|
-
|
|
14504
|
+
w += String.fromCharCode(U), N === "named" && Wx.includes(w) && (T = w, A = vl(w));
|
|
14505
14505
|
}
|
|
14506
14506
|
let P = e.charCodeAt(R) === 59;
|
|
14507
14507
|
if (P) {
|
|
14508
14508
|
R++;
|
|
14509
|
-
const U =
|
|
14510
|
-
U && (T =
|
|
14509
|
+
const U = N === "named" ? vl(w) : !1;
|
|
14510
|
+
U && (T = w, A = U);
|
|
14511
14511
|
}
|
|
14512
|
-
let L = 1 + R -
|
|
14513
|
-
if (!(!P && n.nonTerminated === !1)) if (!
|
|
14514
|
-
|
|
14515
|
-
else if (
|
|
14512
|
+
let L = 1 + R - I, F = "";
|
|
14513
|
+
if (!(!P && n.nonTerminated === !1)) if (!w)
|
|
14514
|
+
N !== "named" && b(4, L);
|
|
14515
|
+
else if (N === "named") {
|
|
14516
14516
|
if (P && !A)
|
|
14517
14517
|
b(5, 1);
|
|
14518
|
-
else if (T !==
|
|
14518
|
+
else if (T !== w && (R = k + T.length, L = 1 + R - k, P = !1), !P) {
|
|
14519
14519
|
const U = T ? 1 : 3;
|
|
14520
14520
|
if (n.attribute) {
|
|
14521
14521
|
const D = e.charCodeAt(R);
|
|
@@ -14527,8 +14527,8 @@ function Ao(e, t) {
|
|
|
14527
14527
|
} else {
|
|
14528
14528
|
P || b(2, L);
|
|
14529
14529
|
let U = Number.parseInt(
|
|
14530
|
-
|
|
14531
|
-
|
|
14530
|
+
w,
|
|
14531
|
+
N === "hexadecimal" ? 16 : 10
|
|
14532
14532
|
);
|
|
14533
14533
|
if (Gx(U))
|
|
14534
14534
|
b(7, L), F = "�";
|
|
@@ -14542,16 +14542,16 @@ function Ao(e, t) {
|
|
|
14542
14542
|
}
|
|
14543
14543
|
}
|
|
14544
14544
|
if (F) {
|
|
14545
|
-
g(), f = m(), a = R - 1, d += R -
|
|
14545
|
+
g(), f = m(), a = R - 1, d += R - I + 1, l.push(F);
|
|
14546
14546
|
const U = m();
|
|
14547
14547
|
U.offset++, n.reference && n.reference.call(
|
|
14548
14548
|
n.referenceContext || void 0,
|
|
14549
14549
|
F,
|
|
14550
14550
|
{ start: f, end: U },
|
|
14551
|
-
e.slice(
|
|
14551
|
+
e.slice(I - 1, R)
|
|
14552
14552
|
), f = U;
|
|
14553
14553
|
} else
|
|
14554
|
-
|
|
14554
|
+
w = e.slice(I - 1, R), s += w, d += w.length, a = R - 1;
|
|
14555
14555
|
} else
|
|
14556
14556
|
h === 10 && (c++, i++, d = 0), Number.isNaN(h) ? g() : (s += String.fromCharCode(h), d++);
|
|
14557
14557
|
return l.join("");
|
|
@@ -14562,9 +14562,9 @@ function Ao(e, t) {
|
|
|
14562
14562
|
offset: a + ((o ? o.offset : 0) || 0)
|
|
14563
14563
|
};
|
|
14564
14564
|
}
|
|
14565
|
-
function b(v,
|
|
14565
|
+
function b(v, I) {
|
|
14566
14566
|
let k;
|
|
14567
|
-
n.warning && (k = m(), k.column +=
|
|
14567
|
+
n.warning && (k = m(), k.column += I, k.offset += I, n.warning.call(
|
|
14568
14568
|
n.warningContext || void 0,
|
|
14569
14569
|
Kx[v],
|
|
14570
14570
|
k,
|
|
@@ -14836,10 +14836,10 @@ function wo(e, t, n, r, l, a, i, s, o, u, c, d, f, h, m) {
|
|
|
14836
14836
|
let b, g;
|
|
14837
14837
|
return v;
|
|
14838
14838
|
function v(E) {
|
|
14839
|
-
return e.enter(r), e.enter(l), e.consume(E), e.exit(l),
|
|
14839
|
+
return e.enter(r), e.enter(l), e.consume(E), e.exit(l), I;
|
|
14840
14840
|
}
|
|
14841
|
-
function
|
|
14842
|
-
return E === 35 ? (b = i, k(E)) : E === 46 ? (b = s, k(E)) : m && _e(E) ? Ie(e,
|
|
14841
|
+
function I(E) {
|
|
14842
|
+
return E === 35 ? (b = i, k(E)) : E === 46 ? (b = s, k(E)) : m && _e(E) ? Ie(e, I, "whitespace")(E) : !m && qe(E) ? cn(e, I)(E) : E === null || ae(E) || El(E) || yl(E) && E !== 45 && E !== 95 ? D(E) : (e.enter(a), e.enter(o), e.consume(E), T);
|
|
14843
14843
|
}
|
|
14844
14844
|
function k(E) {
|
|
14845
14845
|
const B = (
|
|
@@ -14855,9 +14855,9 @@ function wo(e, t, n, r, l, a, i, s, o, u, c, d, f, h, m) {
|
|
|
14855
14855
|
/** @type {TokenType} */
|
|
14856
14856
|
b + "Value"
|
|
14857
14857
|
);
|
|
14858
|
-
return e.enter(B), e.consume(E),
|
|
14858
|
+
return e.enter(B), e.consume(E), N;
|
|
14859
14859
|
}
|
|
14860
|
-
function
|
|
14860
|
+
function N(E) {
|
|
14861
14861
|
if (E === null || E === 34 || E === 39 || E === 60 || E === 61 || E === 62 || E === 96)
|
|
14862
14862
|
return n(E);
|
|
14863
14863
|
if (E === 35 || E === 46 || E === 125 || qe(E)) {
|
|
@@ -14865,21 +14865,21 @@ function wo(e, t, n, r, l, a, i, s, o, u, c, d, f, h, m) {
|
|
|
14865
14865
|
/** @type {TokenType} */
|
|
14866
14866
|
b + "Value"
|
|
14867
14867
|
);
|
|
14868
|
-
return e.exit(B), e.exit(b), e.exit(a),
|
|
14868
|
+
return e.exit(B), e.exit(b), e.exit(a), I(E);
|
|
14869
14869
|
}
|
|
14870
|
-
return e.consume(E),
|
|
14870
|
+
return e.consume(E), N;
|
|
14871
14871
|
}
|
|
14872
14872
|
function T(E) {
|
|
14873
14873
|
return E === null || ae(E) || El(E) || yl(E) && E !== 45 && E !== 46 && E !== 58 && E !== 95 ? (e.exit(o), m && _e(E) ? Ie(e, A, "whitespace")(E) : !m && qe(E) ? cn(e, A)(E) : A(E)) : (e.consume(E), T);
|
|
14874
14874
|
}
|
|
14875
14875
|
function A(E) {
|
|
14876
|
-
return E === 61 ? (e.enter(u), e.consume(E), e.exit(u),
|
|
14877
|
-
}
|
|
14878
|
-
function N(E) {
|
|
14879
|
-
return E === null || E === 60 || E === 61 || E === 62 || E === 96 || E === 125 || m && ae(E) ? n(E) : E === 34 || E === 39 ? (e.enter(c), e.enter(f), e.consume(E), e.exit(f), g = E, P) : m && _e(E) ? Ie(e, N, "whitespace")(E) : !m && qe(E) ? cn(e, N)(E) : (e.enter(d), e.enter(h), e.consume(E), g = void 0, w);
|
|
14876
|
+
return E === 61 ? (e.enter(u), e.consume(E), e.exit(u), w) : (e.exit(a), I(E));
|
|
14880
14877
|
}
|
|
14881
14878
|
function w(E) {
|
|
14882
|
-
return E === null || E ===
|
|
14879
|
+
return E === null || E === 60 || E === 61 || E === 62 || E === 96 || E === 125 || m && ae(E) ? n(E) : E === 34 || E === 39 ? (e.enter(c), e.enter(f), e.consume(E), e.exit(f), g = E, P) : m && _e(E) ? Ie(e, w, "whitespace")(E) : !m && qe(E) ? cn(e, w)(E) : (e.enter(d), e.enter(h), e.consume(E), g = void 0, _);
|
|
14880
|
+
}
|
|
14881
|
+
function _(E) {
|
|
14882
|
+
return E === null || E === 34 || E === 39 || E === 60 || E === 61 || E === 62 || E === 96 ? n(E) : E === 125 || qe(E) ? (e.exit(h), e.exit(d), e.exit(a), I(E)) : (e.consume(E), _);
|
|
14883
14883
|
}
|
|
14884
14884
|
function P(E) {
|
|
14885
14885
|
return E === g ? (e.enter(f), e.consume(E), e.exit(f), e.exit(c), e.exit(a), U) : (e.enter(d), L(E));
|
|
@@ -14891,7 +14891,7 @@ function wo(e, t, n, r, l, a, i, s, o, u, c, d, f, h, m) {
|
|
|
14891
14891
|
return E === g || E === null || ae(E) ? (e.exit(h), L(E)) : (e.consume(E), F);
|
|
14892
14892
|
}
|
|
14893
14893
|
function U(E) {
|
|
14894
|
-
return E === 125 || qe(E) ?
|
|
14894
|
+
return E === 125 || qe(E) ? I(E) : D(E);
|
|
14895
14895
|
}
|
|
14896
14896
|
function D(E) {
|
|
14897
14897
|
return E === 125 ? (e.enter(l), e.consume(E), e.exit(l), e.exit(r), t) : n(E);
|
|
@@ -14953,79 +14953,79 @@ function TS(e, t, n) {
|
|
|
14953
14953
|
const r = this, l = r.events[r.events.length - 1], a = l && l[1].type === "linePrefix" ? l[2].sliceSerialize(l[1], !0).length : 0;
|
|
14954
14954
|
let i = 0, s;
|
|
14955
14955
|
return o;
|
|
14956
|
-
function o(
|
|
14957
|
-
return e.enter("directiveContainer"), e.enter("directiveContainerFence"), e.enter("directiveContainerSequence"), u(
|
|
14956
|
+
function o(_) {
|
|
14957
|
+
return e.enter("directiveContainer"), e.enter("directiveContainerFence"), e.enter("directiveContainerSequence"), u(_);
|
|
14958
14958
|
}
|
|
14959
|
-
function u(
|
|
14960
|
-
return
|
|
14959
|
+
function u(_) {
|
|
14960
|
+
return _ === 58 ? (e.consume(_), i++, u) : i < 3 ? n(_) : (e.exit("directiveContainerSequence"), Io.call(r, e, c, n, "directiveContainerName")(_));
|
|
14961
14961
|
}
|
|
14962
|
-
function c(
|
|
14963
|
-
return
|
|
14962
|
+
function c(_) {
|
|
14963
|
+
return _ === 91 ? e.attempt(yS, d, d)(_) : d(_);
|
|
14964
14964
|
}
|
|
14965
|
-
function d(
|
|
14966
|
-
return
|
|
14965
|
+
function d(_) {
|
|
14966
|
+
return _ === 123 ? e.attempt(ES, f, f)(_) : f(_);
|
|
14967
14967
|
}
|
|
14968
|
-
function f(
|
|
14969
|
-
return Ie(e, h, "whitespace")(
|
|
14968
|
+
function f(_) {
|
|
14969
|
+
return Ie(e, h, "whitespace")(_);
|
|
14970
14970
|
}
|
|
14971
|
-
function h(
|
|
14972
|
-
return e.exit("directiveContainerFence"),
|
|
14971
|
+
function h(_) {
|
|
14972
|
+
return e.exit("directiveContainerFence"), _ === null ? A(_) : ae(_) ? r.interrupt ? t(_) : e.attempt(ea, m, A)(_) : n(_);
|
|
14973
14973
|
}
|
|
14974
|
-
function m(
|
|
14975
|
-
return
|
|
14974
|
+
function m(_) {
|
|
14975
|
+
return _ === null ? A(_) : ae(_) ? e.check(ea, k, A)(_) : (e.enter("directiveContainerContent"), b(_));
|
|
14976
14976
|
}
|
|
14977
|
-
function b(
|
|
14977
|
+
function b(_) {
|
|
14978
14978
|
return e.attempt({
|
|
14979
|
-
tokenize:
|
|
14979
|
+
tokenize: w,
|
|
14980
14980
|
partial: !0
|
|
14981
|
-
}, T, a ? Ie(e, g, "linePrefix", a + 1) : g)(
|
|
14981
|
+
}, T, a ? Ie(e, g, "linePrefix", a + 1) : g)(_);
|
|
14982
14982
|
}
|
|
14983
|
-
function g(
|
|
14984
|
-
return
|
|
14983
|
+
function g(_) {
|
|
14984
|
+
return _ === null ? T(_) : ae(_) ? e.check(ea, I, T)(_) : I(_);
|
|
14985
14985
|
}
|
|
14986
|
-
function v(
|
|
14987
|
-
if (
|
|
14986
|
+
function v(_) {
|
|
14987
|
+
if (_ === null) {
|
|
14988
14988
|
const P = e.exit("chunkDocument");
|
|
14989
|
-
return r.parser.lazy[P.start.line] = !1, T(
|
|
14989
|
+
return r.parser.lazy[P.start.line] = !1, T(_);
|
|
14990
14990
|
}
|
|
14991
|
-
return ae(
|
|
14991
|
+
return ae(_) ? e.check(ea, R, N)(_) : (e.consume(_), v);
|
|
14992
14992
|
}
|
|
14993
|
-
function _
|
|
14993
|
+
function I(_) {
|
|
14994
14994
|
const P = e.enter("chunkDocument", {
|
|
14995
14995
|
contentType: "document",
|
|
14996
14996
|
previous: s
|
|
14997
14997
|
});
|
|
14998
|
-
return s && (s.next = P), s = P, v(
|
|
14998
|
+
return s && (s.next = P), s = P, v(_);
|
|
14999
14999
|
}
|
|
15000
|
-
function k(
|
|
15001
|
-
return e.enter("directiveContainerContent"), b(
|
|
15000
|
+
function k(_) {
|
|
15001
|
+
return e.enter("directiveContainerContent"), b(_);
|
|
15002
15002
|
}
|
|
15003
|
-
function R(
|
|
15004
|
-
e.consume(
|
|
15003
|
+
function R(_) {
|
|
15004
|
+
e.consume(_);
|
|
15005
15005
|
const P = e.exit("chunkDocument");
|
|
15006
15006
|
return r.parser.lazy[P.start.line] = !1, b;
|
|
15007
15007
|
}
|
|
15008
|
-
function
|
|
15008
|
+
function N(_) {
|
|
15009
15009
|
const P = e.exit("chunkDocument");
|
|
15010
|
-
return r.parser.lazy[P.start.line] = !1, T(
|
|
15010
|
+
return r.parser.lazy[P.start.line] = !1, T(_);
|
|
15011
15011
|
}
|
|
15012
|
-
function T(
|
|
15013
|
-
return e.exit("directiveContainerContent"), A(
|
|
15012
|
+
function T(_) {
|
|
15013
|
+
return e.exit("directiveContainerContent"), A(_);
|
|
15014
15014
|
}
|
|
15015
|
-
function A(
|
|
15016
|
-
return e.exit("directiveContainer"), t(
|
|
15015
|
+
function A(_) {
|
|
15016
|
+
return e.exit("directiveContainer"), t(_);
|
|
15017
15017
|
}
|
|
15018
|
-
function
|
|
15018
|
+
function w(_, P, L) {
|
|
15019
15019
|
let F = 0;
|
|
15020
|
-
return Ie(
|
|
15020
|
+
return Ie(_, U, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
15021
15021
|
function U(B) {
|
|
15022
|
-
return
|
|
15022
|
+
return _.enter("directiveContainerFence"), _.enter("directiveContainerSequence"), D(B);
|
|
15023
15023
|
}
|
|
15024
15024
|
function D(B) {
|
|
15025
|
-
return B === 58 ? (
|
|
15025
|
+
return B === 58 ? (_.consume(B), F++, D) : F < i ? L(B) : (_.exit("directiveContainerSequence"), Ie(_, E, "whitespace")(B));
|
|
15026
15026
|
}
|
|
15027
15027
|
function E(B) {
|
|
15028
|
-
return B === null || ae(B) ? (
|
|
15028
|
+
return B === null || ae(B) ? (_.exit("directiveContainerFence"), P(B)) : L(B);
|
|
15029
15029
|
}
|
|
15030
15030
|
}
|
|
15031
15031
|
}
|
|
@@ -15213,10 +15213,10 @@ const US = {
|
|
|
15213
15213
|
initialStepIndex: n = 0,
|
|
15214
15214
|
onClose: r
|
|
15215
15215
|
}) => {
|
|
15216
|
-
const l = zl(), a = Array.isArray(e.platforms) ? e.platforms : [], i = a.length, [s, o] = ee(t), [u, c] = ee(n), d = Math.min(Math.max(s, 0), Math.max(i - 1, 0)), f = a[d], h = Array.isArray(f?.images) ? f.images : [], m = Array.isArray(f?.stepDescriptions) ? f.stepDescriptions : [], b = Math.min(h.length, m.length), g = Math.min(Math.max(u, 0), Math.max(b - 1, 0)), v = h[g],
|
|
15216
|
+
const l = zl(), a = Array.isArray(e.platforms) ? e.platforms : [], i = a.length, [s, o] = ee(t), [u, c] = ee(n), d = Math.min(Math.max(s, 0), Math.max(i - 1, 0)), f = a[d], h = Array.isArray(f?.images) ? f.images : [], m = Array.isArray(f?.stepDescriptions) ? f.stepDescriptions : [], b = Math.min(h.length, m.length), g = Math.min(Math.max(u, 0), Math.max(b - 1, 0)), v = h[g], I = m[g] || "", k = (e.description || "").trim(), R = (e.disclaimer || "").trim(), N = i > 1;
|
|
15217
15217
|
ve(() => {
|
|
15218
|
-
const A = (
|
|
15219
|
-
|
|
15218
|
+
const A = (w) => {
|
|
15219
|
+
w.key === "Escape" ? r() : w.key === "ArrowLeft" && g > 0 ? c(g - 1) : w.key === "ArrowRight" && g < b - 1 && c(g + 1);
|
|
15220
15220
|
};
|
|
15221
15221
|
return window.addEventListener("keydown", A, !0), () => window.removeEventListener("keydown", A, !0);
|
|
15222
15222
|
}, [g, b, r]);
|
|
@@ -15248,22 +15248,22 @@ const US = {
|
|
|
15248
15248
|
)
|
|
15249
15249
|
] }),
|
|
15250
15250
|
/* @__PURE__ */ j("div", { className: "rte-steps-preview-body", children: [
|
|
15251
|
-
|
|
15251
|
+
N || k ? /* @__PURE__ */ j(
|
|
15252
15252
|
"div",
|
|
15253
15253
|
{
|
|
15254
|
-
className: "rte-steps-preview-top-row" + (!
|
|
15254
|
+
className: "rte-steps-preview-top-row" + (!N && k ? " is-description-only" : ""),
|
|
15255
15255
|
children: [
|
|
15256
|
-
|
|
15256
|
+
N ? /* @__PURE__ */ y("div", { className: "rte-steps-preview-platform-tabs", role: "tablist", children: a.map((A, w) => /* @__PURE__ */ y(
|
|
15257
15257
|
"button",
|
|
15258
15258
|
{
|
|
15259
15259
|
type: "button",
|
|
15260
15260
|
role: "tab",
|
|
15261
|
-
"aria-selected":
|
|
15262
|
-
className: "rte-steps-preview-platform-tab" + (
|
|
15263
|
-
onClick: () => T(
|
|
15261
|
+
"aria-selected": w === d,
|
|
15262
|
+
className: "rte-steps-preview-platform-tab" + (w === d ? " is-active" : ""),
|
|
15263
|
+
onClick: () => T(w),
|
|
15264
15264
|
children: A.label
|
|
15265
15265
|
},
|
|
15266
|
-
`${A.label}-${
|
|
15266
|
+
`${A.label}-${w}`
|
|
15267
15267
|
)) }) : null,
|
|
15268
15268
|
k ? /* @__PURE__ */ y("div", { className: "rte-steps-preview-description", children: Mc(k) }) : null
|
|
15269
15269
|
]
|
|
@@ -15306,15 +15306,15 @@ const US = {
|
|
|
15306
15306
|
children: /* @__PURE__ */ y("i", { className: "iconfont icon-qiehuan-xiayizhang", "aria-hidden": "true" })
|
|
15307
15307
|
}
|
|
15308
15308
|
) : null,
|
|
15309
|
-
b > 1 ? /* @__PURE__ */ y("div", { className: "rte-steps-preview-dots", role: "presentation", children: Array.from({ length: b }).map((A,
|
|
15309
|
+
b > 1 ? /* @__PURE__ */ y("div", { className: "rte-steps-preview-dots", role: "presentation", children: Array.from({ length: b }).map((A, w) => /* @__PURE__ */ y(
|
|
15310
15310
|
"span",
|
|
15311
15311
|
{
|
|
15312
|
-
className: "rte-steps-preview-dot" + (
|
|
15312
|
+
className: "rte-steps-preview-dot" + (w === g ? " is-active" : "")
|
|
15313
15313
|
},
|
|
15314
|
-
|
|
15314
|
+
w
|
|
15315
15315
|
)) }) : null
|
|
15316
15316
|
] }),
|
|
15317
|
-
|
|
15317
|
+
I ? /* @__PURE__ */ y("div", { className: "rte-steps-preview-step-text", children: Mc(I) }) : null,
|
|
15318
15318
|
R ? /* @__PURE__ */ j("div", { className: "rte-steps-preview-warning", children: [
|
|
15319
15319
|
/* @__PURE__ */ y(
|
|
15320
15320
|
"i",
|
|
@@ -15409,38 +15409,38 @@ const US = {
|
|
|
15409
15409
|
const a = GS(e.tooltip), i = t ?? "", s = e.placeholder || "", o = i.length > 0, u = Ul(e.tooltip), c = !!u, d = !!a && !c && !o, f = !!a && !c, h = re(null), m = re(null), b = re(i), [g, v] = ee(
|
|
15410
15410
|
() => i.includes(`
|
|
15411
15411
|
`)
|
|
15412
|
-
),
|
|
15413
|
-
(
|
|
15412
|
+
), I = e.allowNewline !== !1, k = V(
|
|
15413
|
+
(_) => {
|
|
15414
15414
|
if (!e.key) return;
|
|
15415
|
-
const P =
|
|
15415
|
+
const P = _.target.value, L = I ? P : P.replace(/\n+/g, " ");
|
|
15416
15416
|
n(e.key, L);
|
|
15417
15417
|
},
|
|
15418
|
-
[e.key, n,
|
|
15418
|
+
[e.key, n, I]
|
|
15419
15419
|
), R = V(
|
|
15420
|
-
(
|
|
15421
|
-
|
|
15420
|
+
(_) => {
|
|
15421
|
+
I || _.nativeEvent.isComposing || _.keyCode === 229 || _.key === "Enter" && _.preventDefault();
|
|
15422
15422
|
},
|
|
15423
|
-
[
|
|
15424
|
-
),
|
|
15425
|
-
(
|
|
15423
|
+
[I]
|
|
15424
|
+
), N = V(
|
|
15425
|
+
(_) => {
|
|
15426
15426
|
const P = m.current;
|
|
15427
15427
|
if (!P) return;
|
|
15428
15428
|
const L = window.getComputedStyle(P), F = Number.parseFloat(L.lineHeight) || 22, U = Number.parseFloat(L.paddingTop) || 0, D = Number.parseFloat(L.paddingBottom) || 0, E = F + U + D, B = P.offsetHeight > E + 1, $ = i.includes(`
|
|
15429
15429
|
`) || B;
|
|
15430
|
-
|
|
15430
|
+
_ ? $ && v((q) => q || !0) : v((q) => q === $ ? q : $);
|
|
15431
15431
|
},
|
|
15432
15432
|
[i]
|
|
15433
15433
|
);
|
|
15434
15434
|
tt(() => {
|
|
15435
|
-
b.current !== i ? (b.current = i,
|
|
15436
|
-
}, [
|
|
15437
|
-
const
|
|
15438
|
-
if (!
|
|
15439
|
-
const P =
|
|
15435
|
+
b.current !== i ? (b.current = i, N(!1)) : N(!0);
|
|
15436
|
+
}, [N, i, s]), ve(() => {
|
|
15437
|
+
const _ = h.current;
|
|
15438
|
+
if (!_ || typeof ResizeObserver > "u") return;
|
|
15439
|
+
const P = _.closest(".rte-editor");
|
|
15440
15440
|
if (!P) return;
|
|
15441
|
-
const L = new ResizeObserver(() =>
|
|
15441
|
+
const L = new ResizeObserver(() => N(!0));
|
|
15442
15442
|
return L.observe(P), () => L.disconnect();
|
|
15443
|
-
}, [
|
|
15443
|
+
}, [N]);
|
|
15444
15444
|
const T = (o ? i : s) + " ", A = /* @__PURE__ */ j(
|
|
15445
15445
|
"span",
|
|
15446
15446
|
{
|
|
@@ -15480,7 +15480,7 @@ const US = {
|
|
|
15480
15480
|
)
|
|
15481
15481
|
]
|
|
15482
15482
|
}
|
|
15483
|
-
),
|
|
15483
|
+
), w = c ? /* @__PURE__ */ j(ot, { children: [
|
|
15484
15484
|
A,
|
|
15485
15485
|
/* @__PURE__ */ y(Zn, { data: u, hidden: o })
|
|
15486
15486
|
] }) : A;
|
|
@@ -15491,10 +15491,10 @@ const US = {
|
|
|
15491
15491
|
"data-group": e.exclusionGroup,
|
|
15492
15492
|
children: [
|
|
15493
15493
|
/* @__PURE__ */ y("span", { className: "rte-text-required", children: /* @__PURE__ */ y("i", { className: "iconfont icon-bitian", style: { fontSize: 10 } }) }),
|
|
15494
|
-
|
|
15494
|
+
w
|
|
15495
15495
|
]
|
|
15496
15496
|
}
|
|
15497
|
-
) :
|
|
15497
|
+
) : w;
|
|
15498
15498
|
}
|
|
15499
15499
|
);
|
|
15500
15500
|
$h.displayName = "VariableNode";
|
|
@@ -15509,7 +15509,7 @@ const qh = ye.memo(
|
|
|
15509
15509
|
const P = g.indexOf(".");
|
|
15510
15510
|
g.length - P - 1 > 2 && (g = g.slice(0, P + 3));
|
|
15511
15511
|
}
|
|
15512
|
-
const
|
|
15512
|
+
const I = g.indexOf("."), k = I !== -1 ? g.length - I - 1 : 0, R = g.endsWith(".") || I !== -1 && k === 1;
|
|
15513
15513
|
if (g === "") {
|
|
15514
15514
|
n(e.key, "");
|
|
15515
15515
|
return;
|
|
@@ -15518,18 +15518,18 @@ const qh = ye.memo(
|
|
|
15518
15518
|
n(e.key, g);
|
|
15519
15519
|
return;
|
|
15520
15520
|
}
|
|
15521
|
-
const
|
|
15522
|
-
if (!Number.isFinite(
|
|
15521
|
+
const N = parseFloat(g);
|
|
15522
|
+
if (!Number.isFinite(N)) {
|
|
15523
15523
|
n(e.key, "");
|
|
15524
15524
|
return;
|
|
15525
15525
|
}
|
|
15526
15526
|
const T = typeof e.min == "number" ? e.min : 0, A = typeof e.max == "number" ? e.max : 1 / 0;
|
|
15527
|
-
if (
|
|
15527
|
+
if (N === 0 && 0 < T) {
|
|
15528
15528
|
n(e.key, "");
|
|
15529
15529
|
return;
|
|
15530
15530
|
}
|
|
15531
|
-
const
|
|
15532
|
-
n(e.key,
|
|
15531
|
+
const w = Math.min(Math.max(N, T), A), _ = k > 0 ? w.toFixed(k) : String(w);
|
|
15532
|
+
n(e.key, _);
|
|
15533
15533
|
},
|
|
15534
15534
|
[e.key, e.min, e.max, n]
|
|
15535
15535
|
), o = V(
|
|
@@ -15629,7 +15629,7 @@ const Wh = ye.memo(
|
|
|
15629
15629
|
}, [i, e.options, e.placeholder]), [o, u] = ee(64), c = re(null), d = V(() => {
|
|
15630
15630
|
const f = c.current;
|
|
15631
15631
|
if (!f) return;
|
|
15632
|
-
const h = f.querySelector(".ant-select-selection-item"), m = f.querySelector(".ant-select-selection-placeholder"), b = h || m, g = (b?.textContent || "").trim() || s, v = f.querySelector(".ant-select-selector"),
|
|
15632
|
+
const h = f.querySelector(".ant-select-selection-item"), m = f.querySelector(".ant-select-selection-placeholder"), b = h || m, g = (b?.textContent || "").trim() || s, v = f.querySelector(".ant-select-selector"), I = b || v || f, k = window.getComputedStyle(I), R = b ? k.fontSize : "16px", N = k.fontFamily || "sans-serif", T = k.fontWeight || "400", w = `${k.fontStyle || "normal"} ${T} ${R} ${N}`, P = document.createElement("canvas").getContext("2d"), L = P ? Math.ceil((P.font = w, P.measureText(g).width || 0)) : 0;
|
|
15633
15633
|
let F = 0;
|
|
15634
15634
|
if (v) {
|
|
15635
15635
|
const q = window.getComputedStyle(v);
|
|
@@ -15699,31 +15699,31 @@ const Yh = ye.memo(
|
|
|
15699
15699
|
const a = e.placeholder || "搜索或输入", i = Ge(
|
|
15700
15700
|
() => e.options ?? [],
|
|
15701
15701
|
[e.options]
|
|
15702
|
-
), s = t ?? e.defaultValue, o = Ge(() => s ? i.some((
|
|
15703
|
-
const
|
|
15704
|
-
return o && !i.some((
|
|
15702
|
+
), s = t ?? e.defaultValue, o = Ge(() => s ? i.some((w) => String(w.value) === String(s)) ? null : String(s) : null, [s, i]), u = Ge(() => {
|
|
15703
|
+
const w = [...i];
|
|
15704
|
+
return o && !i.some((_) => String(_.value) === o) && w.unshift({ label: o, value: o }), w;
|
|
15705
15705
|
}, [i, o]), [c, d] = ee(""), [f, h] = ee(80), m = re(null), b = Ge(() => {
|
|
15706
|
-
const
|
|
15707
|
-
if (!
|
|
15708
|
-
const
|
|
15709
|
-
(F) => F.label.toLowerCase().includes(
|
|
15706
|
+
const w = c.trim();
|
|
15707
|
+
if (!w) return u;
|
|
15708
|
+
const _ = w.toLowerCase(), P = u.filter(
|
|
15709
|
+
(F) => F.label.toLowerCase().includes(_) || String(F.value).toLowerCase().includes(_)
|
|
15710
15710
|
);
|
|
15711
15711
|
return u.some(
|
|
15712
|
-
(F) => F.label ===
|
|
15713
|
-
) ? P : [{ label:
|
|
15712
|
+
(F) => F.label === w || String(F.value) === w
|
|
15713
|
+
) ? P : [{ label: w, value: w, isCustom: !0 }, ...P];
|
|
15714
15714
|
}, [u, c]), g = V(
|
|
15715
|
-
(
|
|
15716
|
-
|
|
15715
|
+
(w) => {
|
|
15716
|
+
w != null && (d(""), n(e.key, w));
|
|
15717
15717
|
},
|
|
15718
15718
|
[e.key, n]
|
|
15719
|
-
), v = V((
|
|
15720
|
-
(
|
|
15721
|
-
if (
|
|
15722
|
-
|
|
15723
|
-
const
|
|
15724
|
-
(L) => L.label ===
|
|
15719
|
+
), v = V((w) => d(w), []), I = V(
|
|
15720
|
+
(w) => {
|
|
15721
|
+
if (w.key === "Enter" && c.trim()) {
|
|
15722
|
+
w.preventDefault(), w.stopPropagation();
|
|
15723
|
+
const _ = c.trim(), P = i.find(
|
|
15724
|
+
(L) => L.label === _ || String(L.value) === _
|
|
15725
15725
|
);
|
|
15726
|
-
d(""), n(e.key, P ? String(P.value) :
|
|
15726
|
+
d(""), n(e.key, P ? String(P.value) : _);
|
|
15727
15727
|
}
|
|
15728
15728
|
},
|
|
15729
15729
|
[c, i, e.key, n]
|
|
@@ -15731,22 +15731,22 @@ const Yh = ye.memo(
|
|
|
15731
15731
|
d(""), n(e.key, "");
|
|
15732
15732
|
}, [e.key, n]), R = V(() => {
|
|
15733
15733
|
if (s != null && s !== "") {
|
|
15734
|
-
const
|
|
15735
|
-
(
|
|
15734
|
+
const w = u.find(
|
|
15735
|
+
(_) => String(_.value) === String(s)
|
|
15736
15736
|
);
|
|
15737
|
-
return
|
|
15737
|
+
return w ? typeof w.label == "string" ? w.label : String(w.label ?? s) : String(s);
|
|
15738
15738
|
}
|
|
15739
15739
|
return a;
|
|
15740
|
-
}, [s, u, a]),
|
|
15741
|
-
const
|
|
15742
|
-
if (!
|
|
15743
|
-
const
|
|
15740
|
+
}, [s, u, a]), N = V(() => {
|
|
15741
|
+
const w = m.current;
|
|
15742
|
+
if (!w) return;
|
|
15743
|
+
const _ = w.querySelector(".ant-select-selection-item"), P = w.querySelector(".ant-select-selection-placeholder"), L = _ || P, F = (L?.textContent || "").trim() || R(), U = w.querySelector(".ant-select-selector"), D = L || U || w, E = window.getComputedStyle(D), B = L ? E.fontSize : "16px", $ = E.fontFamily || "sans-serif", q = E.fontWeight || "400", x = `${E.fontStyle || "normal"} ${q} ${B} ${$}`, ie = document.createElement("canvas").getContext("2d"), M = ie ? Math.ceil((ie.font = x, ie.measureText(F).width || 0)) : 0;
|
|
15744
15744
|
let he = 0;
|
|
15745
15745
|
if (U) {
|
|
15746
15746
|
const ge = window.getComputedStyle(U);
|
|
15747
15747
|
he = (Number.parseFloat(ge.paddingLeft) || 0) + (Number.parseFloat(ge.paddingRight) || 0);
|
|
15748
15748
|
}
|
|
15749
|
-
const Ne =
|
|
15749
|
+
const Ne = w.querySelector(".ant-select-arrow"), Ce = Ne ? Math.ceil(Ne.getBoundingClientRect().width) : 12, ue = w.querySelector(".ant-select-clear");
|
|
15750
15750
|
let we = 0;
|
|
15751
15751
|
if (ue) {
|
|
15752
15752
|
const ge = window.getComputedStyle(ue);
|
|
@@ -15756,21 +15756,21 @@ const Yh = ye.memo(
|
|
|
15756
15756
|
h((ge) => ge === De ? ge : De);
|
|
15757
15757
|
}, [R]);
|
|
15758
15758
|
tt(() => {
|
|
15759
|
-
const
|
|
15759
|
+
const w = window.requestAnimationFrame(() => N()), _ = window.setTimeout(() => N(), 60);
|
|
15760
15760
|
return () => {
|
|
15761
|
-
window.cancelAnimationFrame(
|
|
15761
|
+
window.cancelAnimationFrame(w), window.clearTimeout(_);
|
|
15762
15762
|
};
|
|
15763
|
-
}, [
|
|
15763
|
+
}, [N]), ve(() => {
|
|
15764
15764
|
if (!("fonts" in document)) return;
|
|
15765
|
-
let
|
|
15766
|
-
const
|
|
15767
|
-
if (
|
|
15768
|
-
return
|
|
15769
|
-
|
|
15765
|
+
let w = !1;
|
|
15766
|
+
const _ = document.fonts;
|
|
15767
|
+
if (_?.ready)
|
|
15768
|
+
return _.ready.then(() => {
|
|
15769
|
+
w || N();
|
|
15770
15770
|
}), () => {
|
|
15771
|
-
|
|
15771
|
+
w = !0;
|
|
15772
15772
|
};
|
|
15773
|
-
}, [
|
|
15773
|
+
}, [N]);
|
|
15774
15774
|
const T = s != null && s !== "", A = s || void 0;
|
|
15775
15775
|
return /* @__PURE__ */ y(Bn, { node: e, children: /* @__PURE__ */ y(
|
|
15776
15776
|
"span",
|
|
@@ -15795,7 +15795,7 @@ const Yh = ye.memo(
|
|
|
15795
15795
|
onChange: g,
|
|
15796
15796
|
onSearch: v,
|
|
15797
15797
|
onClear: k,
|
|
15798
|
-
onInputKeyDown:
|
|
15798
|
+
onInputKeyDown: I,
|
|
15799
15799
|
filterOption: !1,
|
|
15800
15800
|
options: b,
|
|
15801
15801
|
disabled: r,
|
|
@@ -15930,7 +15930,7 @@ function Kh() {
|
|
|
15930
15930
|
(function(n, r) {
|
|
15931
15931
|
e.exports = r();
|
|
15932
15932
|
})(nC, function() {
|
|
15933
|
-
var n = 1e3, r = 6e4, l = 36e5, a = "millisecond", i = "second", s = "minute", o = "hour", u = "day", c = "week", d = "month", f = "quarter", h = "year", m = "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+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
|
|
15933
|
+
var n = 1e3, r = 6e4, l = 36e5, a = "millisecond", i = "second", s = "minute", o = "hour", u = "day", c = "week", d = "month", f = "quarter", h = "year", m = "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+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, I = { 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(D) {
|
|
15934
15934
|
var E = ["th", "st", "nd", "rd"], B = D % 100;
|
|
15935
15935
|
return "[" + D + (E[(B - 20) % 10] || E[B] || E[0]) + "]";
|
|
15936
15936
|
} }, k = function(D, E, B) {
|
|
@@ -15949,13 +15949,13 @@ function Kh() {
|
|
|
15949
15949
|
return { M: d, y: h, w: c, d: u, D: m, h: o, m: s, s: i, ms: a, Q: f }[D] || String(D || "").toLowerCase().replace(/s$/, "");
|
|
15950
15950
|
}, u: function(D) {
|
|
15951
15951
|
return D === void 0;
|
|
15952
|
-
} },
|
|
15953
|
-
T[
|
|
15954
|
-
var A = "$isDayjsObject",
|
|
15952
|
+
} }, N = "en", T = {};
|
|
15953
|
+
T[N] = I;
|
|
15954
|
+
var A = "$isDayjsObject", w = function(D) {
|
|
15955
15955
|
return D instanceof F || !(!D || !D[A]);
|
|
15956
|
-
},
|
|
15956
|
+
}, _ = function D(E, B, $) {
|
|
15957
15957
|
var q;
|
|
15958
|
-
if (!E) return
|
|
15958
|
+
if (!E) return N;
|
|
15959
15959
|
if (typeof E == "string") {
|
|
15960
15960
|
var X = E.toLowerCase();
|
|
15961
15961
|
T[X] && (q = X), B && (T[X] = B, q = X);
|
|
@@ -15965,18 +15965,18 @@ function Kh() {
|
|
|
15965
15965
|
var ne = E.name;
|
|
15966
15966
|
T[ne] = E, q = ne;
|
|
15967
15967
|
}
|
|
15968
|
-
return !$ && q && (
|
|
15968
|
+
return !$ && q && (N = q), q || !$ && N;
|
|
15969
15969
|
}, P = function(D, E) {
|
|
15970
|
-
if (
|
|
15970
|
+
if (w(D)) return D.clone();
|
|
15971
15971
|
var B = typeof E == "object" ? E : {};
|
|
15972
15972
|
return B.date = D, B.args = arguments, new F(B);
|
|
15973
15973
|
}, L = R;
|
|
15974
|
-
L.l =
|
|
15974
|
+
L.l = _, L.i = w, L.w = function(D, E) {
|
|
15975
15975
|
return P(D, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
|
|
15976
15976
|
};
|
|
15977
15977
|
var F = function() {
|
|
15978
15978
|
function D(B) {
|
|
15979
|
-
this.$L =
|
|
15979
|
+
this.$L = _(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[A] = !0;
|
|
15980
15980
|
}
|
|
15981
15981
|
var E = D.prototype;
|
|
15982
15982
|
return E.parse = function(B) {
|
|
@@ -16176,7 +16176,7 @@ function Kh() {
|
|
|
16176
16176
|
return T[this.$L];
|
|
16177
16177
|
}, E.locale = function(B, $) {
|
|
16178
16178
|
if (!B) return this.$L;
|
|
16179
|
-
var q = this.clone(), X =
|
|
16179
|
+
var q = this.clone(), X = _(B, $, !0);
|
|
16180
16180
|
return X && (q.$L = X), q;
|
|
16181
16181
|
}, E.clone = function() {
|
|
16182
16182
|
return L.w(this.$d, this);
|
|
@@ -16196,9 +16196,9 @@ function Kh() {
|
|
|
16196
16196
|
};
|
|
16197
16197
|
}), P.extend = function(D, E) {
|
|
16198
16198
|
return D.$i || (D(E, F, P), D.$i = !0), P;
|
|
16199
|
-
}, P.locale =
|
|
16199
|
+
}, P.locale = _, P.isDayjs = w, P.unix = function(D) {
|
|
16200
16200
|
return P(1e3 * D);
|
|
16201
|
-
}, P.en = T[
|
|
16201
|
+
}, P.en = T[N], P.Ls = T, P.p = {}, P;
|
|
16202
16202
|
});
|
|
16203
16203
|
}(pa)), pa.exports;
|
|
16204
16204
|
}
|
|
@@ -22159,34 +22159,34 @@ const oC = [
|
|
|
22159
22159
|
u(qi(s));
|
|
22160
22160
|
}, [s]);
|
|
22161
22161
|
const b = o.length >= 2, g = V(
|
|
22162
|
-
(
|
|
22163
|
-
u(
|
|
22162
|
+
(N) => {
|
|
22163
|
+
u(N), n(e.key, N.join("-"));
|
|
22164
22164
|
},
|
|
22165
22165
|
[e.key, n]
|
|
22166
22166
|
), v = V(
|
|
22167
|
-
(
|
|
22168
|
-
if (!
|
|
22167
|
+
(N) => {
|
|
22168
|
+
if (!N || N.length === 0) {
|
|
22169
22169
|
g([]);
|
|
22170
22170
|
return;
|
|
22171
22171
|
}
|
|
22172
|
-
|
|
22172
|
+
N.length < 2 || g(N.map(String));
|
|
22173
22173
|
},
|
|
22174
22174
|
[g]
|
|
22175
|
-
),
|
|
22176
|
-
(
|
|
22177
|
-
|
|
22175
|
+
), I = V(
|
|
22176
|
+
(N) => {
|
|
22177
|
+
N || (u(qi(s)), d((T) => T + 1));
|
|
22178
22178
|
},
|
|
22179
22179
|
[s]
|
|
22180
22180
|
), k = V(() => {
|
|
22181
22181
|
if (o.length >= 2) {
|
|
22182
|
-
const
|
|
22183
|
-
return
|
|
22182
|
+
const N = uC(a, o);
|
|
22183
|
+
return N.length ? N.join("-") : o.join("-");
|
|
22184
22184
|
}
|
|
22185
22185
|
return i;
|
|
22186
22186
|
}, [o, a, i]), R = V(() => {
|
|
22187
|
-
const
|
|
22188
|
-
if (!
|
|
22189
|
-
const T = k(), A =
|
|
22187
|
+
const N = m.current;
|
|
22188
|
+
if (!N) return;
|
|
22189
|
+
const T = k(), A = N.querySelector(".ant-select-selector"), w = N.querySelector(".ant-select-selection-item") || N.querySelector(".ant-select-selection-placeholder"), _ = w || A || N, P = window.getComputedStyle(_), L = w ? P.fontSize : "16px", F = P.fontFamily || "sans-serif", U = P.fontWeight || "400", E = `${P.fontStyle || "normal"} ${U} ${L} ${F}`, $ = document.createElement("canvas").getContext("2d"), q = $ ? Math.ceil(($.font = E, $.measureText(T).width || 0)) : 0;
|
|
22190
22190
|
let X = 0;
|
|
22191
22191
|
if (A) {
|
|
22192
22192
|
const ie = window.getComputedStyle(A);
|
|
@@ -22196,19 +22196,19 @@ const oC = [
|
|
|
22196
22196
|
h((ie) => ie === ne ? ie : ne);
|
|
22197
22197
|
}, [k]);
|
|
22198
22198
|
return tt(() => {
|
|
22199
|
-
const
|
|
22199
|
+
const N = window.requestAnimationFrame(() => R()), T = window.setTimeout(() => R(), 60);
|
|
22200
22200
|
return () => {
|
|
22201
|
-
window.cancelAnimationFrame(
|
|
22201
|
+
window.cancelAnimationFrame(N), window.clearTimeout(T);
|
|
22202
22202
|
};
|
|
22203
22203
|
}, [R]), ve(() => {
|
|
22204
22204
|
if (!("fonts" in document)) return;
|
|
22205
|
-
let
|
|
22205
|
+
let N = !1;
|
|
22206
22206
|
const T = document.fonts;
|
|
22207
22207
|
if (T?.ready)
|
|
22208
22208
|
return T.ready.then(() => {
|
|
22209
|
-
|
|
22209
|
+
N || R();
|
|
22210
22210
|
}), () => {
|
|
22211
|
-
|
|
22211
|
+
N = !0;
|
|
22212
22212
|
};
|
|
22213
22213
|
}, [R]), /* @__PURE__ */ y(Bn, { node: e, children: /* @__PURE__ */ y(
|
|
22214
22214
|
"span",
|
|
@@ -22227,8 +22227,8 @@ const oC = [
|
|
|
22227
22227
|
"data-key": e.key,
|
|
22228
22228
|
options: a,
|
|
22229
22229
|
value: b ? o : void 0,
|
|
22230
|
-
onChange: (
|
|
22231
|
-
onOpenChange:
|
|
22230
|
+
onChange: (N) => v(N),
|
|
22231
|
+
onOpenChange: I,
|
|
22232
22232
|
disabled: r,
|
|
22233
22233
|
placeholder: i,
|
|
22234
22234
|
changeOnSelect: !0,
|
|
@@ -22236,12 +22236,12 @@ const oC = [
|
|
|
22236
22236
|
variant: "borderless",
|
|
22237
22237
|
allowClear: !0,
|
|
22238
22238
|
showSearch: {
|
|
22239
|
-
filter: (
|
|
22240
|
-
(A) => A.label.toLowerCase().includes(
|
|
22239
|
+
filter: (N, T) => T.some(
|
|
22240
|
+
(A) => A.label.toLowerCase().includes(N.toLowerCase())
|
|
22241
22241
|
)
|
|
22242
22242
|
},
|
|
22243
22243
|
popupClassName: "rte-cascader-dropdown",
|
|
22244
|
-
displayRender: (
|
|
22244
|
+
displayRender: (N) => N.join("-"),
|
|
22245
22245
|
style: { width: "100%" },
|
|
22246
22246
|
suffixIcon: /* @__PURE__ */ y(
|
|
22247
22247
|
"i",
|
|
@@ -22325,10 +22325,10 @@ const Oo = (e) => {
|
|
|
22325
22325
|
const T = ++b.current;
|
|
22326
22326
|
c(!0), n({ nodeKey: e, nodeType: t }).then((A) => {
|
|
22327
22327
|
if (T !== b.current) return;
|
|
22328
|
-
const
|
|
22329
|
-
f(
|
|
22330
|
-
const P =
|
|
22331
|
-
m(P?.key ??
|
|
22328
|
+
const w = i ? A.tabs.filter((L) => L.key !== "currentConversationReports") : A.tabs, _ = { ...A, tabs: w };
|
|
22329
|
+
f(_);
|
|
22330
|
+
const P = w.find((L) => L.items.length > 0);
|
|
22331
|
+
m(P?.key ?? w[0]?.key ?? "");
|
|
22332
22332
|
}).catch(() => {
|
|
22333
22333
|
T === b.current && f({ tabs: [] });
|
|
22334
22334
|
}).finally(() => {
|
|
@@ -22344,12 +22344,12 @@ const Oo = (e) => {
|
|
|
22344
22344
|
const T = d.tabs.find((A) => v(A.items).length > 0);
|
|
22345
22345
|
T && m((A) => A === T.key ? A : T.key);
|
|
22346
22346
|
}, [o, s, d, v]);
|
|
22347
|
-
const
|
|
22347
|
+
const I = d?.tabs.find((T) => T.key === h), k = I ? v(I.items) : [], R = V((T) => {
|
|
22348
22348
|
const A = T.currentTarget;
|
|
22349
22349
|
A.classList.add("is-scrolling"), g.current && window.clearTimeout(g.current), g.current = window.setTimeout(() => {
|
|
22350
22350
|
A.classList.remove("is-scrolling"), g.current = null;
|
|
22351
22351
|
}, 300);
|
|
22352
|
-
}, []),
|
|
22352
|
+
}, []), N = V(
|
|
22353
22353
|
(T, A) => {
|
|
22354
22354
|
T.stopPropagation(), a ? a(A) : window.open(A.viewUrl || A.url, "_blank");
|
|
22355
22355
|
},
|
|
@@ -22365,7 +22365,7 @@ const Oo = (e) => {
|
|
|
22365
22365
|
},
|
|
22366
22366
|
T.key
|
|
22367
22367
|
)) }) }),
|
|
22368
|
-
/* @__PURE__ */ y("div", { className: "rte-report-dropdown-list", onScroll: R, children: !
|
|
22368
|
+
/* @__PURE__ */ y("div", { className: "rte-report-dropdown-list", onScroll: R, children: !I || k.length === 0 ? /* @__PURE__ */ j("div", { className: "rte-report-dropdown-empty", children: [
|
|
22369
22369
|
/* @__PURE__ */ y(
|
|
22370
22370
|
"img",
|
|
22371
22371
|
{
|
|
@@ -22376,11 +22376,11 @@ const Oo = (e) => {
|
|
|
22376
22376
|
),
|
|
22377
22377
|
/* @__PURE__ */ j("div", { className: "rte-report-dropdown-empty-text", children: [
|
|
22378
22378
|
/* @__PURE__ */ y("span", { className: "rte-report-dropdown-empty-label", children: s ? "未找到匹配的报告" : "暂无生成的报告" }),
|
|
22379
|
-
l &&
|
|
22379
|
+
l && I?.agentType !== void 0 && /* @__PURE__ */ y(
|
|
22380
22380
|
"span",
|
|
22381
22381
|
{
|
|
22382
22382
|
className: "rte-report-dropdown-empty-link",
|
|
22383
|
-
onClick: () => l(
|
|
22383
|
+
onClick: () => l(I.agentType),
|
|
22384
22384
|
children: "去生成"
|
|
22385
22385
|
}
|
|
22386
22386
|
)
|
|
@@ -22403,7 +22403,7 @@ const Oo = (e) => {
|
|
|
22403
22403
|
"span",
|
|
22404
22404
|
{
|
|
22405
22405
|
className: "rte-report-dropdown-item-action",
|
|
22406
|
-
onClick: (
|
|
22406
|
+
onClick: (w) => N(w, T),
|
|
22407
22407
|
children: [
|
|
22408
22408
|
/* @__PURE__ */ y("i", { className: "iconfont icon-chakanbaogao" }),
|
|
22409
22409
|
"查看报告"
|
|
@@ -22430,10 +22430,10 @@ const Oo = (e) => {
|
|
|
22430
22430
|
}) => {
|
|
22431
22431
|
const d = zl(), [f, h] = ee(!1), m = re(null), [b, g] = ee(
|
|
22432
22432
|
null
|
|
22433
|
-
), v = re({}).current,
|
|
22434
|
-
const
|
|
22435
|
-
if (!
|
|
22436
|
-
const T =
|
|
22433
|
+
), v = re({}).current, I = V(() => {
|
|
22434
|
+
const N = e.current;
|
|
22435
|
+
if (!N) return;
|
|
22436
|
+
const T = N.getBoundingClientRect(), A = 236, _ = window.innerHeight - T.bottom < A + 8 ? Math.max(8, T.top - A - 4) : T.bottom + 4, P = T.left, L = d?.getBoundingClientRect(), F = _ - (L?.top ?? 0), U = P - (L?.left ?? 0);
|
|
22437
22437
|
g(
|
|
22438
22438
|
(D) => D && D.top === F && D.left === U ? D : { top: F, left: U }
|
|
22439
22439
|
);
|
|
@@ -22445,37 +22445,37 @@ const Oo = (e) => {
|
|
|
22445
22445
|
ve(() => {
|
|
22446
22446
|
c !== void 0 && k();
|
|
22447
22447
|
}, [c, k]), ve(() => {
|
|
22448
|
-
const
|
|
22448
|
+
const N = (T) => {
|
|
22449
22449
|
T.detail !== v && h(!1);
|
|
22450
22450
|
};
|
|
22451
|
-
return document.addEventListener("rte-report-dropdown-opening",
|
|
22451
|
+
return document.addEventListener("rte-report-dropdown-opening", N), () => document.removeEventListener("rte-report-dropdown-opening", N);
|
|
22452
22452
|
}, [v]), tt(() => {
|
|
22453
22453
|
if (!f) {
|
|
22454
22454
|
g(null);
|
|
22455
22455
|
return;
|
|
22456
22456
|
}
|
|
22457
|
-
|
|
22458
|
-
}, [f,
|
|
22457
|
+
I();
|
|
22458
|
+
}, [f, I]), ve(() => {
|
|
22459
22459
|
if (!f) return;
|
|
22460
|
-
const
|
|
22461
|
-
if (!
|
|
22462
|
-
const T = typeof window < "u" ? window.ResizeObserver : void 0, A = T ? new T(() =>
|
|
22463
|
-
A?.observe(
|
|
22464
|
-
const
|
|
22465
|
-
return window.addEventListener("scroll",
|
|
22466
|
-
A?.disconnect(), window.removeEventListener("scroll",
|
|
22460
|
+
const N = e.current;
|
|
22461
|
+
if (!N) return;
|
|
22462
|
+
const T = typeof window < "u" ? window.ResizeObserver : void 0, A = T ? new T(() => I()) : null;
|
|
22463
|
+
A?.observe(N);
|
|
22464
|
+
const w = () => I();
|
|
22465
|
+
return window.addEventListener("scroll", w, !0), window.addEventListener("resize", w), () => {
|
|
22466
|
+
A?.disconnect(), window.removeEventListener("scroll", w, !0), window.removeEventListener("resize", w);
|
|
22467
22467
|
};
|
|
22468
|
-
}, [f, e,
|
|
22468
|
+
}, [f, e, I]), ve(() => {
|
|
22469
22469
|
if (!f) return;
|
|
22470
|
-
const
|
|
22471
|
-
const A = e.current,
|
|
22472
|
-
A?.contains(
|
|
22470
|
+
const N = (T) => {
|
|
22471
|
+
const A = e.current, w = m.current, _ = T.target;
|
|
22472
|
+
A?.contains(_) || w?.contains(_) || h(!1);
|
|
22473
22473
|
};
|
|
22474
|
-
return document.addEventListener("mousedown",
|
|
22474
|
+
return document.addEventListener("mousedown", N), () => document.removeEventListener("mousedown", N);
|
|
22475
22475
|
}, [f, e]);
|
|
22476
22476
|
const R = V(
|
|
22477
|
-
(
|
|
22478
|
-
h(!1), l(
|
|
22477
|
+
(N) => {
|
|
22478
|
+
h(!1), l(N);
|
|
22479
22479
|
},
|
|
22480
22480
|
[l]
|
|
22481
22481
|
);
|
|
@@ -22490,8 +22490,8 @@ const Oo = (e) => {
|
|
|
22490
22490
|
"data-key": t,
|
|
22491
22491
|
"data-node-type": n,
|
|
22492
22492
|
contentEditable: !1,
|
|
22493
|
-
onClick: (
|
|
22494
|
-
|
|
22493
|
+
onClick: (N) => {
|
|
22494
|
+
N.stopPropagation(), f ? h(!1) : k();
|
|
22495
22495
|
},
|
|
22496
22496
|
children: /* @__PURE__ */ y(
|
|
22497
22497
|
"i",
|
|
@@ -22509,7 +22509,7 @@ const Oo = (e) => {
|
|
|
22509
22509
|
ref: m,
|
|
22510
22510
|
className: "rte-report-dropdown-overlay",
|
|
22511
22511
|
style: { position: "fixed", top: b.top, left: b.left },
|
|
22512
|
-
onClick: (
|
|
22512
|
+
onClick: (N) => N.stopPropagation(),
|
|
22513
22513
|
children: /* @__PURE__ */ y(
|
|
22514
22514
|
fC,
|
|
22515
22515
|
{
|
|
@@ -22556,61 +22556,58 @@ const Oo = (e) => {
|
|
|
22556
22556
|
onResolveName: c,
|
|
22557
22557
|
onClearReport: d
|
|
22558
22558
|
}) => {
|
|
22559
|
-
const f = e.maxCount ?? 9, h = e.minCount ?? 1, m = pC(e.tooltip), b = !1, g = !!m, v = Ge(() => t ?? [], [t]),
|
|
22560
|
-
const
|
|
22561
|
-
return Array.from({ length:
|
|
22559
|
+
const f = e.maxCount ?? 9, h = e.minCount ?? 1, m = pC(e.tooltip), b = !1, g = !!m, v = Ge(() => t ?? [], [t]), I = Ge(() => {
|
|
22560
|
+
const N = v.filter((w) => w && w.trim().length > 0), T = Math.max(h, Math.min(N.length + 1, f)), A = Math.min(Math.max(v.length, T), f);
|
|
22561
|
+
return Array.from({ length: A }, (w, _) => v[_] ?? "");
|
|
22562
22562
|
}, [v, h, f]), k = V(
|
|
22563
|
-
(
|
|
22564
|
-
const
|
|
22565
|
-
if (N
|
|
22566
|
-
const w =
|
|
22567
|
-
(P, L
|
|
22563
|
+
(N, T) => {
|
|
22564
|
+
const A = [...I];
|
|
22565
|
+
if (A[N] = T, T.trim() === "") {
|
|
22566
|
+
const w = A.reduce(
|
|
22567
|
+
(_, P, L) => P && P.trim() ? L : _,
|
|
22568
22568
|
-1
|
|
22569
22569
|
);
|
|
22570
|
-
|
|
22570
|
+
N < w && A.splice(N, 1), A.length = w + 1;
|
|
22571
22571
|
}
|
|
22572
|
-
n(e.key,
|
|
22572
|
+
n(e.key, A);
|
|
22573
22573
|
},
|
|
22574
|
-
[
|
|
22574
|
+
[I, e.key, n]
|
|
22575
22575
|
), R = V(
|
|
22576
|
-
(
|
|
22577
|
-
const
|
|
22578
|
-
N
|
|
22576
|
+
(N, T) => {
|
|
22577
|
+
const A = [...I];
|
|
22578
|
+
A[N] = T.url, n(e.key, A);
|
|
22579
22579
|
},
|
|
22580
|
-
[
|
|
22581
|
-
)
|
|
22582
|
-
|
|
22583
|
-
|
|
22580
|
+
[I, e.key, n]
|
|
22581
|
+
);
|
|
22582
|
+
return V(
|
|
22583
|
+
(N) => {
|
|
22584
|
+
k(N, ""), d?.(`${e.key}_${N}`);
|
|
22584
22585
|
},
|
|
22585
22586
|
[k, e.key, d]
|
|
22586
|
-
)
|
|
22587
|
-
|
|
22588
|
-
|
|
22589
|
-
|
|
22590
|
-
|
|
22591
|
-
|
|
22592
|
-
|
|
22593
|
-
|
|
22594
|
-
|
|
22595
|
-
|
|
22596
|
-
|
|
22597
|
-
|
|
22598
|
-
|
|
22599
|
-
|
|
22600
|
-
|
|
22601
|
-
|
|
22602
|
-
|
|
22603
|
-
|
|
22604
|
-
|
|
22605
|
-
|
|
22606
|
-
|
|
22607
|
-
|
|
22608
|
-
|
|
22609
|
-
|
|
22610
|
-
},
|
|
22611
|
-
A
|
|
22612
|
-
);
|
|
22613
|
-
}) }) });
|
|
22587
|
+
), /* @__PURE__ */ y(Bn, { node: e, children: /* @__PURE__ */ y("span", { className: `rte-multi-variable ${l ? "rte-multi-variable-error" : ""}`, children: I.map((N, T) => (`${e.key}${T}`, /* @__PURE__ */ y(
|
|
22588
|
+
Zh,
|
|
22589
|
+
{
|
|
22590
|
+
nodeKey: e.key,
|
|
22591
|
+
idx: T,
|
|
22592
|
+
row: N,
|
|
22593
|
+
placeholder: e.placeholder,
|
|
22594
|
+
disabled: r,
|
|
22595
|
+
tooltip: m,
|
|
22596
|
+
onUpdate: (A) => k(T, A),
|
|
22597
|
+
showDropdown: b,
|
|
22598
|
+
showInfoIcon: g,
|
|
22599
|
+
reportListFetch: a,
|
|
22600
|
+
onReportGoGenerate: i,
|
|
22601
|
+
onViewReport: s,
|
|
22602
|
+
hideCurrentSessionReport: o,
|
|
22603
|
+
onSelectReport: (A) => R(T, A),
|
|
22604
|
+
nodeType: "multi-variable",
|
|
22605
|
+
reportName: void 0,
|
|
22606
|
+
onResolveName: void 0,
|
|
22607
|
+
onClearName: void 0
|
|
22608
|
+
},
|
|
22609
|
+
T
|
|
22610
|
+
))) }) });
|
|
22614
22611
|
}
|
|
22615
22612
|
);
|
|
22616
22613
|
Jh.displayName = "MultiVariableNode";
|
|
@@ -22634,26 +22631,26 @@ const Zh = ({
|
|
|
22634
22631
|
onResolveName: g,
|
|
22635
22632
|
onClearName: v
|
|
22636
22633
|
}) => {
|
|
22637
|
-
const
|
|
22634
|
+
const I = re(null), k = `${e}_${t}`, R = !!b, N = !(n || "").trim(), T = o && N, A = s || T || R, w = re(""), _ = V(
|
|
22638
22635
|
async (X) => {
|
|
22639
22636
|
if (!g) return;
|
|
22640
22637
|
const x = (X || "").trim();
|
|
22641
|
-
if (!/^https?:\/\//i.test(x) ||
|
|
22642
|
-
|
|
22638
|
+
if (!/^https?:\/\//i.test(x) || w.current === x) return;
|
|
22639
|
+
w.current = x, (await g(x)).status === "failed" && (w.current = "", i(""), ar.error("报告链接解析失败,请检查链接是否正确"));
|
|
22643
22640
|
},
|
|
22644
22641
|
[g, i]
|
|
22645
22642
|
), P = V(() => {
|
|
22646
|
-
|
|
22647
|
-
}, [
|
|
22643
|
+
_(n);
|
|
22644
|
+
}, [_, n]), L = V(
|
|
22648
22645
|
(X) => {
|
|
22649
22646
|
if (!g) return;
|
|
22650
22647
|
const x = X.clipboardData.getData("text/plain");
|
|
22651
|
-
/^https?:\/\//i.test(x.trim()) && (X.preventDefault(), i(x), document.dispatchEvent(new CustomEvent("rte-report-dropdown-opening", { detail: null })),
|
|
22648
|
+
/^https?:\/\//i.test(x.trim()) && (X.preventDefault(), i(x), document.dispatchEvent(new CustomEvent("rte-report-dropdown-opening", { detail: null })), _(x));
|
|
22652
22649
|
},
|
|
22653
|
-
[g, i,
|
|
22650
|
+
[g, i, _]
|
|
22654
22651
|
);
|
|
22655
22652
|
tt(() => {
|
|
22656
|
-
(n || "").trim() || (
|
|
22653
|
+
(n || "").trim() || (w.current = "");
|
|
22657
22654
|
}, [n]);
|
|
22658
22655
|
const F = re(null), U = n || r || "", [D, E] = ee(0), B = V(() => {
|
|
22659
22656
|
F.current && E(F.current.offsetWidth);
|
|
@@ -22671,7 +22668,7 @@ const Zh = ({
|
|
|
22671
22668
|
return /* @__PURE__ */ j(
|
|
22672
22669
|
"span",
|
|
22673
22670
|
{
|
|
22674
|
-
ref:
|
|
22671
|
+
ref: I,
|
|
22675
22672
|
className: q,
|
|
22676
22673
|
"data-type": m === "multi-variable-select" ? "multi-variable-select" : "variable",
|
|
22677
22674
|
"data-key": k,
|
|
@@ -22679,7 +22676,7 @@ const Zh = ({
|
|
|
22679
22676
|
"data-index": t,
|
|
22680
22677
|
"data-report-url": R ? n || !0 : void 0,
|
|
22681
22678
|
"data-report-name": b || void 0,
|
|
22682
|
-
...a && !R &&
|
|
22679
|
+
...a && !R && N ? { "data-tooltip": a, "data-variable-key": e } : {},
|
|
22683
22680
|
children: [
|
|
22684
22681
|
/* @__PURE__ */ y(
|
|
22685
22682
|
"span",
|
|
@@ -22705,7 +22702,7 @@ const Zh = ({
|
|
|
22705
22702
|
className: "rte-report-name-chip-label",
|
|
22706
22703
|
onClick: () => {
|
|
22707
22704
|
if (!s) return;
|
|
22708
|
-
|
|
22705
|
+
I.current?.querySelector(".rte-report-dropdown-host")?.click();
|
|
22709
22706
|
},
|
|
22710
22707
|
children: b
|
|
22711
22708
|
}
|
|
@@ -22713,7 +22710,7 @@ const Zh = ({
|
|
|
22713
22710
|
s && u && /* @__PURE__ */ y(
|
|
22714
22711
|
Bc,
|
|
22715
22712
|
{
|
|
22716
|
-
chipRef:
|
|
22713
|
+
chipRef: I,
|
|
22717
22714
|
nodeKey: k,
|
|
22718
22715
|
nodeType: m,
|
|
22719
22716
|
fetch: u,
|
|
@@ -22745,7 +22742,7 @@ const Zh = ({
|
|
|
22745
22742
|
onPaste: L,
|
|
22746
22743
|
onClick: () => {
|
|
22747
22744
|
if (!s || n.trim()) return;
|
|
22748
|
-
|
|
22745
|
+
I.current?.querySelector(".rte-report-dropdown-host")?.click();
|
|
22749
22746
|
},
|
|
22750
22747
|
disabled: l,
|
|
22751
22748
|
placeholder: r,
|
|
@@ -22758,7 +22755,7 @@ const Zh = ({
|
|
|
22758
22755
|
!R && s && u && /* @__PURE__ */ y(
|
|
22759
22756
|
Bc,
|
|
22760
22757
|
{
|
|
22761
|
-
chipRef:
|
|
22758
|
+
chipRef: I,
|
|
22762
22759
|
nodeKey: k,
|
|
22763
22760
|
nodeType: m,
|
|
22764
22761
|
fetch: u,
|
|
@@ -22795,32 +22792,32 @@ const Zh = ({
|
|
|
22795
22792
|
onClearReport: d,
|
|
22796
22793
|
onAnalyzeReport: f
|
|
22797
22794
|
}) => {
|
|
22798
|
-
const h = e.maxCount ?? 9, m = e.minCount ?? 1, b = mC(e.tooltip), g = !!a && !!b, v = !g && !!b,
|
|
22799
|
-
const A = t ?? [],
|
|
22800
|
-
(
|
|
22795
|
+
const h = e.maxCount ?? 9, m = e.minCount ?? 1, b = mC(e.tooltip), g = !!a && !!b, v = !g && !!b, I = Ge(() => {
|
|
22796
|
+
const A = t ?? [], w = A.reduce(
|
|
22797
|
+
(_, P, L) => P && P.trim() ? L : _,
|
|
22801
22798
|
-1
|
|
22802
22799
|
);
|
|
22803
|
-
return A.slice(0,
|
|
22800
|
+
return A.slice(0, w + 1);
|
|
22804
22801
|
}, [t]), k = Ge(() => {
|
|
22805
|
-
const A =
|
|
22806
|
-
return Array.from({ length:
|
|
22807
|
-
}, [
|
|
22808
|
-
(A,
|
|
22809
|
-
const
|
|
22810
|
-
if (
|
|
22811
|
-
const P =
|
|
22802
|
+
const A = I.filter((P) => P && P.trim().length > 0), w = Math.max(m, Math.min(A.length + 1, h)), _ = Math.min(Math.max(I.length, w), h);
|
|
22803
|
+
return Array.from({ length: _ }, (P, L) => I[L] ?? "");
|
|
22804
|
+
}, [I, m, h]), R = V(
|
|
22805
|
+
(A, w) => {
|
|
22806
|
+
const _ = [...k];
|
|
22807
|
+
if (_[A] = w, w.trim() === "") {
|
|
22808
|
+
const P = _.reduce(
|
|
22812
22809
|
(L, F, U) => F && F.trim() ? U : L,
|
|
22813
22810
|
-1
|
|
22814
22811
|
);
|
|
22815
|
-
A < P &&
|
|
22812
|
+
A < P && _.splice(A, 1), _.length = P + 1;
|
|
22816
22813
|
}
|
|
22817
|
-
n(e.key,
|
|
22814
|
+
n(e.key, _);
|
|
22818
22815
|
},
|
|
22819
22816
|
[k, e.key, n]
|
|
22820
|
-
),
|
|
22821
|
-
(A,
|
|
22822
|
-
const
|
|
22823
|
-
|
|
22817
|
+
), N = V(
|
|
22818
|
+
(A, w) => {
|
|
22819
|
+
const _ = [...k];
|
|
22820
|
+
_[A] = w.url, n(e.key, _), f?.(`${e.key}_${A}`, w.url), c && /^https?:\/\//i.test(w.url) && c(`${e.key}_${A}`, w.url, "multi-variable-select");
|
|
22824
22821
|
},
|
|
22825
22822
|
[k, e.key, n, f, c]
|
|
22826
22823
|
), T = V(
|
|
@@ -22833,31 +22830,31 @@ const Zh = ({
|
|
|
22833
22830
|
"span",
|
|
22834
22831
|
{
|
|
22835
22832
|
className: `rte-multi-variable-select ${l ? "rte-multi-variable-select-error" : ""}`,
|
|
22836
|
-
children: k.map((A,
|
|
22837
|
-
const
|
|
22833
|
+
children: k.map((A, w) => {
|
|
22834
|
+
const _ = `${e.key}_${w}`;
|
|
22838
22835
|
return /* @__PURE__ */ y(
|
|
22839
22836
|
Zh,
|
|
22840
22837
|
{
|
|
22841
22838
|
nodeKey: e.key,
|
|
22842
|
-
idx:
|
|
22839
|
+
idx: w,
|
|
22843
22840
|
row: A,
|
|
22844
22841
|
placeholder: e.placeholder,
|
|
22845
22842
|
disabled: r,
|
|
22846
22843
|
tooltip: b,
|
|
22847
|
-
onUpdate: (P) => R(
|
|
22844
|
+
onUpdate: (P) => R(w, P),
|
|
22848
22845
|
showDropdown: g,
|
|
22849
22846
|
showInfoIcon: v,
|
|
22850
22847
|
reportListFetch: a,
|
|
22851
22848
|
onReportGoGenerate: i,
|
|
22852
22849
|
onViewReport: s,
|
|
22853
22850
|
hideCurrentSessionReport: o,
|
|
22854
|
-
onSelectReport: (P) =>
|
|
22851
|
+
onSelectReport: (P) => N(w, P),
|
|
22855
22852
|
nodeType: "multi-variable-select",
|
|
22856
|
-
reportName: u?.[
|
|
22857
|
-
onResolveName: c ? (P) => c(
|
|
22858
|
-
onClearName: d ? () => T(
|
|
22853
|
+
reportName: u?.[_],
|
|
22854
|
+
onResolveName: c ? (P) => c(_, P, "multi-variable-select") : void 0,
|
|
22855
|
+
onClearName: d ? () => T(w) : void 0
|
|
22859
22856
|
},
|
|
22860
|
-
|
|
22857
|
+
w
|
|
22861
22858
|
);
|
|
22862
22859
|
})
|
|
22863
22860
|
}
|
|
@@ -22889,7 +22886,7 @@ const bC = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, gC = (e) => bC.test(e), vC
|
|
|
22889
22886
|
onReplace: c,
|
|
22890
22887
|
onRemove: d
|
|
22891
22888
|
}) => {
|
|
22892
|
-
const f = re(null), h = re(null), m = zl(), [b, g] = ee(!1), v = t != null,
|
|
22889
|
+
const f = re(null), h = re(null), m = zl(), [b, g] = ee(!1), v = t != null, I = tp(t), [k, R] = ee(!1), N = V(() => {
|
|
22893
22890
|
a || f.current?.click();
|
|
22894
22891
|
}, [a]), T = V(
|
|
22895
22892
|
(q) => {
|
|
@@ -22899,20 +22896,20 @@ const bC = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, gC = (e) => bC.test(e), vC
|
|
|
22899
22896
|
[u, e]
|
|
22900
22897
|
), A = V(() => {
|
|
22901
22898
|
a || h.current?.click();
|
|
22902
|
-
}, [a]),
|
|
22899
|
+
}, [a]), w = V(
|
|
22903
22900
|
(q) => {
|
|
22904
22901
|
const X = q.target.files;
|
|
22905
22902
|
X && X.length > 0 && c(e, X), q.target.value = "";
|
|
22906
22903
|
},
|
|
22907
22904
|
[c, e]
|
|
22908
|
-
),
|
|
22905
|
+
), _ = V(() => {
|
|
22909
22906
|
a || g(!0);
|
|
22910
22907
|
}, [a]), P = V(
|
|
22911
22908
|
(q) => {
|
|
22912
22909
|
q.stopPropagation(), !a && d(e);
|
|
22913
22910
|
},
|
|
22914
22911
|
[d, e, a]
|
|
22915
|
-
), L = v ? typeof t == "string" ? decodeURIComponent(t.split("/").pop()?.split("?")[0] || "file") : t.name : null, F = (v ? L : n) ?? "", U = v && (typeof t == "string" && gC(t) || typeof t == "object" && t !== null && vC(t)), D = U ? /* @__PURE__ */ y("img", { className: "upload-icon-img upload-icon-preview", src:
|
|
22912
|
+
), L = v ? typeof t == "string" ? decodeURIComponent(t.split("/").pop()?.split("?")[0] || "file") : t.name : null, F = (v ? L : n) ?? "", U = v && (typeof t == "string" && gC(t) || typeof t == "object" && t !== null && vC(t)), D = U ? /* @__PURE__ */ y("img", { className: "upload-icon-img upload-icon-preview", src: I, alt: "preview" }) : v ? /* @__PURE__ */ y("i", { className: "iconfont icon-exlwenjian" }) : /* @__PURE__ */ y("i", { className: "iconfont icon-shangchuan1" }), E = /* @__PURE__ */ y("span", { className: "upload-label", "data-file-name": F, children: F }), B = /* @__PURE__ */ j("span", { className: `upload-inner-wrapper${v ? " has-file" : ""}`, children: [
|
|
22916
22913
|
/* @__PURE__ */ y("span", { className: "upload-icon", children: D }),
|
|
22917
22914
|
v && F && !U ? (
|
|
22918
22915
|
// 气泡往上推 8px 拉开与 chip 的间距:已填非图片 chip 点本体=重选替换,
|
|
@@ -22953,14 +22950,14 @@ const bC = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, gC = (e) => bC.test(e), vC
|
|
|
22953
22950
|
"data-key": e,
|
|
22954
22951
|
"data-group": o,
|
|
22955
22952
|
"data-tooltip": l || void 0,
|
|
22956
|
-
onClick:
|
|
22953
|
+
onClick: _,
|
|
22957
22954
|
children: [
|
|
22958
22955
|
B,
|
|
22959
22956
|
/* @__PURE__ */ y(
|
|
22960
22957
|
pf,
|
|
22961
22958
|
{
|
|
22962
22959
|
style: { display: "none" },
|
|
22963
|
-
src:
|
|
22960
|
+
src: I,
|
|
22964
22961
|
preview: {
|
|
22965
22962
|
visible: b,
|
|
22966
22963
|
onVisibleChange: (X) => g(X),
|
|
@@ -22976,7 +22973,7 @@ const bC = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, gC = (e) => bC.test(e), vC
|
|
|
22976
22973
|
return /* @__PURE__ */ y(
|
|
22977
22974
|
ao,
|
|
22978
22975
|
{
|
|
22979
|
-
title: /* @__PURE__ */ y("div", { className: "se-upload-preview", children: /* @__PURE__ */ y("img", { className: "se-upload-preview-img", src:
|
|
22976
|
+
title: /* @__PURE__ */ y("div", { className: "se-upload-preview", children: /* @__PURE__ */ y("img", { className: "se-upload-preview-img", src: I, alt: "preview" }) }),
|
|
22980
22977
|
placement: "topLeft",
|
|
22981
22978
|
arrow: !1,
|
|
22982
22979
|
overlayInnerStyle: {
|
|
@@ -23008,7 +23005,7 @@ const bC = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, gC = (e) => bC.test(e), vC
|
|
|
23008
23005
|
accept: r,
|
|
23009
23006
|
multiple: !1,
|
|
23010
23007
|
style: { display: "none" },
|
|
23011
|
-
onChange:
|
|
23008
|
+
onChange: w
|
|
23012
23009
|
}
|
|
23013
23010
|
)
|
|
23014
23011
|
]
|
|
@@ -23024,7 +23021,7 @@ const bC = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, gC = (e) => bC.test(e), vC
|
|
|
23024
23021
|
"data-key": e,
|
|
23025
23022
|
"data-group": o,
|
|
23026
23023
|
"data-tooltip": l || void 0,
|
|
23027
|
-
onClick:
|
|
23024
|
+
onClick: N,
|
|
23028
23025
|
disabled: a,
|
|
23029
23026
|
children: [
|
|
23030
23027
|
B,
|
|
@@ -23120,7 +23117,7 @@ const SC = (e = Date.now()) => e - Fc < xC ? !1 : (Fc = e, !0), CC = 32, kC = (e
|
|
|
23120
23117
|
n(`${L}-${D}`, D < U.length ? U[D] : null);
|
|
23121
23118
|
},
|
|
23122
23119
|
[i, t, e.key, e.maxCount, n]
|
|
23123
|
-
), { filledEntries:
|
|
23120
|
+
), { filledEntries: I, emptyKeys: k } = Ge(() => {
|
|
23124
23121
|
if (!i)
|
|
23125
23122
|
return { filledEntries: [], emptyKeys: [] };
|
|
23126
23123
|
const P = e.key, L = [], F = [];
|
|
@@ -23129,7 +23126,7 @@ const SC = (e = Date.now()) => e - Fc < xC ? !1 : (Fc = e, !0), CC = 32, kC = (e
|
|
|
23129
23126
|
E != null ? L.push({ key: D, file: E }) : F.push(D);
|
|
23130
23127
|
}
|
|
23131
23128
|
return { filledEntries: L, emptyKeys: F };
|
|
23132
|
-
}, [t, i, e.key, e.maxCount]), R =
|
|
23129
|
+
}, [t, i, e.key, e.maxCount]), R = I.length;
|
|
23133
23130
|
if (!i) {
|
|
23134
23131
|
const P = e.key, L = t[P] ?? null, F = L != null, U = (e.text || "").trim(), D = F && e.showHint === !0 && U.length >= wC, E = /* @__PURE__ */ y(
|
|
23135
23132
|
ba,
|
|
@@ -23173,12 +23170,12 @@ const SC = (e = Date.now()) => e - Fc < xC ? !1 : (Fc = e, !0), CC = 32, kC = (e
|
|
|
23173
23170
|
B
|
|
23174
23171
|
] });
|
|
23175
23172
|
}
|
|
23176
|
-
const
|
|
23173
|
+
const N = e.minCount ?? 1, T = e.maxCount ?? 0, A = Math.min(
|
|
23177
23174
|
T,
|
|
23178
|
-
Math.max(
|
|
23179
|
-
),
|
|
23180
|
-
for (const { key: P, file: L } of
|
|
23181
|
-
|
|
23175
|
+
Math.max(N, R + (R < T ? 1 : 0))
|
|
23176
|
+
), w = [];
|
|
23177
|
+
for (const { key: P, file: L } of I)
|
|
23178
|
+
w.push(
|
|
23182
23179
|
/* @__PURE__ */ y(
|
|
23183
23180
|
ba,
|
|
23184
23181
|
{
|
|
@@ -23198,9 +23195,9 @@ const SC = (e = Date.now()) => e - Fc < xC ? !1 : (Fc = e, !0), CC = 32, kC = (e
|
|
|
23198
23195
|
P
|
|
23199
23196
|
)
|
|
23200
23197
|
);
|
|
23201
|
-
const
|
|
23202
|
-
for (const P of k.slice(0,
|
|
23203
|
-
|
|
23198
|
+
const _ = Math.max(0, A - R);
|
|
23199
|
+
for (const P of k.slice(0, _))
|
|
23200
|
+
w.push(
|
|
23204
23201
|
/* @__PURE__ */ y(
|
|
23205
23202
|
ba,
|
|
23206
23203
|
{
|
|
@@ -23227,7 +23224,7 @@ const SC = (e = Date.now()) => e - Fc < xC ? !1 : (Fc = e, !0), CC = 32, kC = (e
|
|
|
23227
23224
|
"data-group": e.exclusionGroup,
|
|
23228
23225
|
children: [
|
|
23229
23226
|
/* @__PURE__ */ y("span", { className: "rte-text-required", children: /* @__PURE__ */ y("i", { className: "iconfont icon-bitian", style: { fontSize: 10 } }) }),
|
|
23230
|
-
/* @__PURE__ */ y("span", { className: "rte-upload-batch-chips", ref: o, children:
|
|
23227
|
+
/* @__PURE__ */ y("span", { className: "rte-upload-batch-chips", ref: o, children: w }),
|
|
23231
23228
|
d && c ? /* @__PURE__ */ y(Zn, { data: c, hidden: R > 0 }) : null
|
|
23232
23229
|
]
|
|
23233
23230
|
}
|
|
@@ -23237,7 +23234,7 @@ const SC = (e = Date.now()) => e - Fc < xC ? !1 : (Fc = e, !0), CC = 32, kC = (e
|
|
|
23237
23234
|
className: `rte-upload-batch-chips${u ? " rte-batch-wrapped" : ""}${l ? " rte-upload-error" : ""}`,
|
|
23238
23235
|
ref: o,
|
|
23239
23236
|
children: [
|
|
23240
|
-
|
|
23237
|
+
w,
|
|
23241
23238
|
d && c ? /* @__PURE__ */ y(Zn, { data: c, hidden: R > 0 }) : null
|
|
23242
23239
|
]
|
|
23243
23240
|
}
|
|
@@ -23386,17 +23383,17 @@ const Hc = 2 * Math.PI * 6.5, rp = "data:image/svg+xml,%3Csvg xmlns='http://www.
|
|
|
23386
23383
|
}) => {
|
|
23387
23384
|
const [o, u] = ee(
|
|
23388
23385
|
"idle"
|
|
23389
|
-
), [c, d] = ee(0), [f, h] = ee(""), [m, b] = ee(""), g = re(null), v = re(0),
|
|
23390
|
-
|
|
23386
|
+
), [c, d] = ee(0), [f, h] = ee(""), [m, b] = ee(""), g = re(null), v = re(0), I = re(null), k = t || e.placeholder || "", [R, N] = ee(0), T = V(() => {
|
|
23387
|
+
I.current && N(I.current.offsetWidth);
|
|
23391
23388
|
}, []);
|
|
23392
23389
|
tt(() => {
|
|
23393
23390
|
T();
|
|
23394
|
-
const x =
|
|
23391
|
+
const x = I.current;
|
|
23395
23392
|
if (!x || typeof ResizeObserver > "u") return;
|
|
23396
23393
|
const ne = new ResizeObserver(() => T());
|
|
23397
23394
|
return ne.observe(x), () => ne.disconnect();
|
|
23398
23395
|
}, [k, T]);
|
|
23399
|
-
const A = R > 0 ? Math.max(40, R + 2) : 40,
|
|
23396
|
+
const A = R > 0 ? Math.max(40, R + 2) : 40, w = Ul(e.tooltip), _ = !!w, P = _ ? "" : RC(e.tooltip), L = !!(t || n), F = V(() => {
|
|
23400
23397
|
g.current && (window.clearInterval(g.current), g.current = null);
|
|
23401
23398
|
}, []), U = V(() => {
|
|
23402
23399
|
F();
|
|
@@ -23451,7 +23448,7 @@ const Hc = 2 * Math.PI * 6.5, rp = "data:image/svg+xml,%3Csvg xmlns='http://www.
|
|
|
23451
23448
|
},
|
|
23452
23449
|
[e.key, r, l]
|
|
23453
23450
|
), q = (x) => {
|
|
23454
|
-
const ne =
|
|
23451
|
+
const ne = _ && w ? /* @__PURE__ */ y(Zn, { data: w, hidden: L }) : null;
|
|
23455
23452
|
return e.required ? /* @__PURE__ */ j(ot, { children: [
|
|
23456
23453
|
/* @__PURE__ */ j(
|
|
23457
23454
|
"span",
|
|
@@ -23563,7 +23560,7 @@ const Hc = 2 * Math.PI * 6.5, rp = "data:image/svg+xml,%3Csvg xmlns='http://www.
|
|
|
23563
23560
|
/* @__PURE__ */ y(
|
|
23564
23561
|
"span",
|
|
23565
23562
|
{
|
|
23566
|
-
ref:
|
|
23563
|
+
ref: I,
|
|
23567
23564
|
"aria-hidden": "true",
|
|
23568
23565
|
style: {
|
|
23569
23566
|
position: "absolute",
|
|
@@ -23617,9 +23614,9 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
|
|
|
23617
23614
|
disabled: i,
|
|
23618
23615
|
error: s
|
|
23619
23616
|
}) => {
|
|
23620
|
-
const o = re(null), [u, c] = ee("idle"), [d, f] = ee(0), [h, m] = ee(""), [b, g] = ee(""), [v,
|
|
23617
|
+
const o = re(null), [u, c] = ee("idle"), [d, f] = ee(0), [h, m] = ee(""), [b, g] = ee(""), [v, I] = ee(""), k = Ul(e.tooltip), R = !!k, N = R ? "" : DC(e.tooltip), T = !!t && !!n, A = u === "loading", w = V(() => {
|
|
23621
23618
|
i || A || !a || o.current?.click();
|
|
23622
|
-
}, [i, A, a]),
|
|
23619
|
+
}, [i, A, a]), _ = V(
|
|
23623
23620
|
async (F) => {
|
|
23624
23621
|
const U = F.target.files?.[0];
|
|
23625
23622
|
if (F.target.value = "", !U || !a) return;
|
|
@@ -23627,14 +23624,14 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
|
|
|
23627
23624
|
ar.warning(PC);
|
|
23628
23625
|
return;
|
|
23629
23626
|
}
|
|
23630
|
-
c("loading"), f(0), g(U.name),
|
|
23627
|
+
c("loading"), f(0), g(U.name), I(""), m("");
|
|
23631
23628
|
const D = await _C(U).catch(() => "");
|
|
23632
23629
|
D && m(D);
|
|
23633
23630
|
try {
|
|
23634
23631
|
const E = await a(U, (B) => f(B));
|
|
23635
23632
|
r(e.key, E.videoUrl), l?.(e.key, E.thumbnail || D || ""), c("idle"), m("");
|
|
23636
23633
|
} catch (E) {
|
|
23637
|
-
c("error"),
|
|
23634
|
+
c("error"), I(E instanceof Error ? E.message : "上传失败"), m("");
|
|
23638
23635
|
}
|
|
23639
23636
|
},
|
|
23640
23637
|
[a, e.key, r, l]
|
|
@@ -23670,7 +23667,7 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
|
|
|
23670
23667
|
className: `video-chip ${s ? "rte-video-error" : ""}`,
|
|
23671
23668
|
"data-type": "video-upload",
|
|
23672
23669
|
"data-key": e.key,
|
|
23673
|
-
"data-tooltip":
|
|
23670
|
+
"data-tooltip": N || void 0,
|
|
23674
23671
|
"data-group": e.exclusionGroup,
|
|
23675
23672
|
children: [
|
|
23676
23673
|
/* @__PURE__ */ j("span", { className: "video-inner-wrapper video-upload-inner has-video", children: [
|
|
@@ -23709,7 +23706,7 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
|
|
|
23709
23706
|
type: "file",
|
|
23710
23707
|
accept: "video/*",
|
|
23711
23708
|
style: { display: "none" },
|
|
23712
|
-
onChange:
|
|
23709
|
+
onChange: _
|
|
23713
23710
|
}
|
|
23714
23711
|
)
|
|
23715
23712
|
]
|
|
@@ -23726,7 +23723,7 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
|
|
|
23726
23723
|
className: `video-chip ${s ? "rte-video-error" : ""}`,
|
|
23727
23724
|
"data-type": "video-upload",
|
|
23728
23725
|
"data-key": e.key,
|
|
23729
|
-
"data-tooltip":
|
|
23726
|
+
"data-tooltip": N || void 0,
|
|
23730
23727
|
"data-group": e.exclusionGroup,
|
|
23731
23728
|
children: /* @__PURE__ */ j("span", { className: "video-inner-wrapper video-upload-inner video-uploading", children: [
|
|
23732
23729
|
/* @__PURE__ */ j("span", { className: "video-thumbnail-wrapper", children: [
|
|
@@ -23750,7 +23747,7 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
|
|
|
23750
23747
|
className: "video-chip rte-video-error",
|
|
23751
23748
|
"data-type": "video-upload",
|
|
23752
23749
|
"data-key": e.key,
|
|
23753
|
-
"data-tooltip":
|
|
23750
|
+
"data-tooltip": N || void 0,
|
|
23754
23751
|
"data-group": e.exclusionGroup,
|
|
23755
23752
|
children: [
|
|
23756
23753
|
/* @__PURE__ */ j("span", { className: "video-inner-wrapper video-upload-inner", children: [
|
|
@@ -23761,7 +23758,7 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
|
|
|
23761
23758
|
className: "video-remove-btn rte-video-remove",
|
|
23762
23759
|
title: "重试",
|
|
23763
23760
|
onClick: (F) => {
|
|
23764
|
-
F.stopPropagation(), c("idle"),
|
|
23761
|
+
F.stopPropagation(), c("idle"), I("");
|
|
23765
23762
|
},
|
|
23766
23763
|
children: "×"
|
|
23767
23764
|
}
|
|
@@ -23774,7 +23771,7 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
|
|
|
23774
23771
|
type: "file",
|
|
23775
23772
|
accept: "video/*",
|
|
23776
23773
|
style: { display: "none" },
|
|
23777
|
-
onChange:
|
|
23774
|
+
onChange: _
|
|
23778
23775
|
}
|
|
23779
23776
|
)
|
|
23780
23777
|
]
|
|
@@ -23786,18 +23783,18 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
|
|
|
23786
23783
|
className: `video-chip ${s ? "rte-video-error" : ""}`,
|
|
23787
23784
|
"data-type": "video-upload",
|
|
23788
23785
|
"data-key": e.key,
|
|
23789
|
-
"data-tooltip":
|
|
23786
|
+
"data-tooltip": N || void 0,
|
|
23790
23787
|
"data-group": e.exclusionGroup,
|
|
23791
|
-
onClick:
|
|
23788
|
+
onClick: w,
|
|
23792
23789
|
disabled: i,
|
|
23793
23790
|
children: [
|
|
23794
23791
|
/* @__PURE__ */ j("span", { className: "video-inner-wrapper video-upload-inner", children: [
|
|
23795
23792
|
/* @__PURE__ */ y("i", { className: "iconfont icon-shangchuan1", style: { fontSize: 16 } }),
|
|
23796
23793
|
/* @__PURE__ */ y("span", { className: "video-label", children: e.text ?? "请上传想要分析的视频文件" }),
|
|
23797
|
-
|
|
23794
|
+
N && /* @__PURE__ */ y(
|
|
23798
23795
|
Vr,
|
|
23799
23796
|
{
|
|
23800
|
-
tooltip:
|
|
23797
|
+
tooltip: N,
|
|
23801
23798
|
className: "upload-info-icon",
|
|
23802
23799
|
dataUploadKey: e.key
|
|
23803
23800
|
}
|
|
@@ -23810,7 +23807,7 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
|
|
|
23810
23807
|
type: "file",
|
|
23811
23808
|
accept: "video/*",
|
|
23812
23809
|
style: { display: "none" },
|
|
23813
|
-
onChange:
|
|
23810
|
+
onChange: _
|
|
23814
23811
|
}
|
|
23815
23812
|
)
|
|
23816
23813
|
]
|
|
@@ -23850,50 +23847,50 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
23850
23847
|
const [o, u] = ee(!1), [c, d] = ee(null), [f, h] = ee(""), m = re(0), b = re(null);
|
|
23851
23848
|
ve(() => {
|
|
23852
23849
|
if (!s) return;
|
|
23853
|
-
const
|
|
23850
|
+
const N = ++m.current;
|
|
23854
23851
|
u(!0), t({ nodeKey: e, nodeType: "report-url" }).then((T) => {
|
|
23855
|
-
if (
|
|
23856
|
-
const A = a ? T.tabs.filter((P) => P.key !== "currentConversationReports") : T.tabs,
|
|
23857
|
-
d(
|
|
23858
|
-
const
|
|
23859
|
-
h(
|
|
23852
|
+
if (N !== m.current) return;
|
|
23853
|
+
const A = a ? T.tabs.filter((P) => P.key !== "currentConversationReports") : T.tabs, w = { ...T, tabs: A };
|
|
23854
|
+
d(w);
|
|
23855
|
+
const _ = A.find((P) => P.items.length > 0);
|
|
23856
|
+
h(_?.key ?? A[0]?.key ?? "");
|
|
23860
23857
|
}).catch(() => {
|
|
23861
|
-
|
|
23858
|
+
N === m.current && d({ tabs: [] });
|
|
23862
23859
|
}).finally(() => {
|
|
23863
|
-
|
|
23860
|
+
N === m.current && u(!1);
|
|
23864
23861
|
});
|
|
23865
23862
|
}, [s, t, e, a]);
|
|
23866
23863
|
const g = V(
|
|
23867
|
-
(
|
|
23864
|
+
(N) => i ? N.filter((T) => up(T.url) === i) : N,
|
|
23868
23865
|
[i]
|
|
23869
23866
|
);
|
|
23870
23867
|
ve(() => {
|
|
23871
23868
|
if (!s || !i || !c) return;
|
|
23872
|
-
const
|
|
23873
|
-
|
|
23869
|
+
const N = c.tabs.find((T) => g(T.items).length > 0);
|
|
23870
|
+
N && h((T) => T === N.key ? T : N.key);
|
|
23874
23871
|
}, [s, i, c, g]);
|
|
23875
|
-
const v = c?.tabs.find((
|
|
23876
|
-
const T =
|
|
23872
|
+
const v = c?.tabs.find((N) => N.key === f), I = v ? g(v.items) : [], k = V((N) => {
|
|
23873
|
+
const T = N.currentTarget;
|
|
23877
23874
|
T.classList.add("is-scrolling"), b.current && window.clearTimeout(b.current), b.current = window.setTimeout(() => {
|
|
23878
23875
|
T.classList.remove("is-scrolling"), b.current = null;
|
|
23879
23876
|
}, 300);
|
|
23880
23877
|
}, []), R = V(
|
|
23881
|
-
(
|
|
23882
|
-
|
|
23878
|
+
(N, T) => {
|
|
23879
|
+
N.stopPropagation(), l ? l(T) : window.open(T.viewUrl || T.url, "_blank");
|
|
23883
23880
|
},
|
|
23884
23881
|
[l]
|
|
23885
23882
|
);
|
|
23886
|
-
return /* @__PURE__ */ y("div", { className: "rte-report-dropdown-panel", onMouseDown: (
|
|
23887
|
-
c.tabs.length > 1 && /* @__PURE__ */ y("div", { className: "rte-report-dropdown-tab-outer", children: /* @__PURE__ */ y("div", { className: "rte-report-dropdown-tab-inner", children: c.tabs.map((
|
|
23883
|
+
return /* @__PURE__ */ y("div", { className: "rte-report-dropdown-panel", onMouseDown: (N) => N.preventDefault(), children: o ? /* @__PURE__ */ y("div", { className: "rte-report-dropdown-loading", children: /* @__PURE__ */ y(ro, { size: "small" }) }) : c ? /* @__PURE__ */ j(ot, { children: [
|
|
23884
|
+
c.tabs.length > 1 && /* @__PURE__ */ y("div", { className: "rte-report-dropdown-tab-outer", children: /* @__PURE__ */ y("div", { className: "rte-report-dropdown-tab-inner", children: c.tabs.map((N) => /* @__PURE__ */ y(
|
|
23888
23885
|
"div",
|
|
23889
23886
|
{
|
|
23890
|
-
className: `rte-report-dropdown-tab-item${
|
|
23891
|
-
onClick: () => h(
|
|
23892
|
-
children:
|
|
23887
|
+
className: `rte-report-dropdown-tab-item${N.key === f ? " active" : ""}`,
|
|
23888
|
+
onClick: () => h(N.key),
|
|
23889
|
+
children: N.label
|
|
23893
23890
|
},
|
|
23894
|
-
|
|
23891
|
+
N.key
|
|
23895
23892
|
)) }) }),
|
|
23896
|
-
/* @__PURE__ */ y("div", { className: "rte-report-dropdown-list", onScroll: k, children: !v ||
|
|
23893
|
+
/* @__PURE__ */ y("div", { className: "rte-report-dropdown-list", onScroll: k, children: !v || I.length === 0 ? /* @__PURE__ */ j("div", { className: "rte-report-dropdown-empty", children: [
|
|
23897
23894
|
/* @__PURE__ */ y(
|
|
23898
23895
|
"img",
|
|
23899
23896
|
{
|
|
@@ -23913,25 +23910,25 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
23913
23910
|
}
|
|
23914
23911
|
)
|
|
23915
23912
|
] })
|
|
23916
|
-
] }) :
|
|
23913
|
+
] }) : I.map((N, T) => /* @__PURE__ */ j(
|
|
23917
23914
|
"div",
|
|
23918
23915
|
{
|
|
23919
23916
|
className: "rte-report-dropdown-item",
|
|
23920
|
-
onClick: () => n(
|
|
23917
|
+
onClick: () => n(N),
|
|
23921
23918
|
children: [
|
|
23922
23919
|
/* @__PURE__ */ y(
|
|
23923
23920
|
"span",
|
|
23924
23921
|
{
|
|
23925
23922
|
className: "rte-report-dropdown-item-name",
|
|
23926
|
-
title:
|
|
23927
|
-
children:
|
|
23923
|
+
title: N.name,
|
|
23924
|
+
children: N.name
|
|
23928
23925
|
}
|
|
23929
23926
|
),
|
|
23930
23927
|
/* @__PURE__ */ j(
|
|
23931
23928
|
"span",
|
|
23932
23929
|
{
|
|
23933
23930
|
className: "rte-report-dropdown-item-action",
|
|
23934
|
-
onClick: (A) => R(A,
|
|
23931
|
+
onClick: (A) => R(A, N),
|
|
23935
23932
|
children: [
|
|
23936
23933
|
/* @__PURE__ */ y("i", { className: "iconfont icon-chakanbaogao" }),
|
|
23937
23934
|
"查看报告"
|
|
@@ -23940,7 +23937,7 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
23940
23937
|
)
|
|
23941
23938
|
]
|
|
23942
23939
|
},
|
|
23943
|
-
`${
|
|
23940
|
+
`${N.url}-${T}`
|
|
23944
23941
|
)) })
|
|
23945
23942
|
] }) : null });
|
|
23946
23943
|
}, cp = ye.memo(
|
|
@@ -23958,7 +23955,7 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
23958
23955
|
disabled: c,
|
|
23959
23956
|
error: d
|
|
23960
23957
|
}) => {
|
|
23961
|
-
const f = zl(), h = FC(e.tooltip), m = t ?? "", b = !!i, g = !m && !b, v = !!l,
|
|
23958
|
+
const f = zl(), h = FC(e.tooltip), m = t ?? "", b = !!i, g = !m && !b, v = !!l, I = v && !c && (g || b), k = !v && !!h && g, R = I || k, [N, T] = ee(!1), [A, w] = ee(!1), _ = re({}).current, P = re(""), L = V(
|
|
23962
23959
|
async (de) => {
|
|
23963
23960
|
const Oe = de.trim();
|
|
23964
23961
|
if (!(!Oe || !r) && P.current !== Oe) {
|
|
@@ -23981,16 +23978,16 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
23981
23978
|
(de) => {
|
|
23982
23979
|
if (!e.key) return;
|
|
23983
23980
|
const Oe = de.clipboardData.getData("text/plain");
|
|
23984
|
-
Oe.trim() && (de.preventDefault(), n(e.key, Oe),
|
|
23981
|
+
Oe.trim() && (de.preventDefault(), n(e.key, Oe), w(!1), L(Oe));
|
|
23985
23982
|
},
|
|
23986
23983
|
[e.key, n, L]
|
|
23987
23984
|
), D = V(() => {
|
|
23988
23985
|
document.dispatchEvent(
|
|
23989
|
-
new CustomEvent("rte-report-dropdown-opening", { detail:
|
|
23990
|
-
),
|
|
23991
|
-
}, [
|
|
23986
|
+
new CustomEvent("rte-report-dropdown-opening", { detail: _ })
|
|
23987
|
+
), w(!0);
|
|
23988
|
+
}, [_]), E = V(
|
|
23992
23989
|
(de) => {
|
|
23993
|
-
e.key && (n(e.key, de.url),
|
|
23990
|
+
e.key && (n(e.key, de.url), w(!1), /^https?:\/\//i.test(de.url) && L(de.url));
|
|
23994
23991
|
},
|
|
23995
23992
|
[e.key, n, L]
|
|
23996
23993
|
), B = V(
|
|
@@ -24001,10 +23998,10 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24001
23998
|
);
|
|
24002
23999
|
ve(() => {
|
|
24003
24000
|
const de = (Oe) => {
|
|
24004
|
-
Oe.detail !==
|
|
24001
|
+
Oe.detail !== _ && w(!1);
|
|
24005
24002
|
};
|
|
24006
24003
|
return document.addEventListener("rte-report-dropdown-opening", de), () => document.removeEventListener("rte-report-dropdown-opening", de);
|
|
24007
|
-
}, [
|
|
24004
|
+
}, [_]);
|
|
24008
24005
|
const $ = [
|
|
24009
24006
|
"variable-chip",
|
|
24010
24007
|
"rte-report-url",
|
|
@@ -24041,11 +24038,11 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24041
24038
|
if (!A) return;
|
|
24042
24039
|
const de = (Oe) => {
|
|
24043
24040
|
const Nt = X.current, Lt = x.current, $t = Oe.target;
|
|
24044
|
-
Nt?.contains($t) || Lt?.contains($t) ||
|
|
24041
|
+
Nt?.contains($t) || Lt?.contains($t) || w(!1);
|
|
24045
24042
|
};
|
|
24046
24043
|
return document.addEventListener("mousedown", de), () => document.removeEventListener("mousedown", de);
|
|
24047
24044
|
}, [A]);
|
|
24048
|
-
const he =
|
|
24045
|
+
const he = I ? /* @__PURE__ */ y(
|
|
24049
24046
|
"span",
|
|
24050
24047
|
{
|
|
24051
24048
|
ref: q,
|
|
@@ -24057,7 +24054,7 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24057
24054
|
"data-node-type": "report-url",
|
|
24058
24055
|
contentEditable: !1,
|
|
24059
24056
|
onClick: (de) => {
|
|
24060
|
-
de.stopPropagation(), A ?
|
|
24057
|
+
de.stopPropagation(), A ? w(!1) : D();
|
|
24061
24058
|
},
|
|
24062
24059
|
children: /* @__PURE__ */ y(
|
|
24063
24060
|
"i",
|
|
@@ -24088,11 +24085,11 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24088
24085
|
return /^https?:\/\//i.test(de) ? up(de) : "";
|
|
24089
24086
|
}, [m, b]), Ue = V(
|
|
24090
24087
|
(de) => {
|
|
24091
|
-
if (!b || c || !
|
|
24088
|
+
if (!b || c || !I) return;
|
|
24092
24089
|
const Oe = de.target;
|
|
24093
|
-
Oe.closest(".rte-report-chip-clear-host") || Oe.closest(".rte-report-dropdown-host") || (de.stopPropagation(), A ?
|
|
24090
|
+
Oe.closest(".rte-report-chip-clear-host") || Oe.closest(".rte-report-dropdown-host") || (de.stopPropagation(), A ? w(!1) : D());
|
|
24094
24091
|
},
|
|
24095
|
-
[b, c,
|
|
24092
|
+
[b, c, I, A, D]
|
|
24096
24093
|
), ze = /* @__PURE__ */ j(
|
|
24097
24094
|
"span",
|
|
24098
24095
|
{
|
|
@@ -24117,10 +24114,10 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24117
24114
|
onBlur: F,
|
|
24118
24115
|
onPaste: U,
|
|
24119
24116
|
onClick: () => {
|
|
24120
|
-
if (!
|
|
24117
|
+
if (!I || m.trim()) return;
|
|
24121
24118
|
X.current?.querySelector(".rte-report-dropdown-host")?.click();
|
|
24122
24119
|
},
|
|
24123
|
-
disabled: c ||
|
|
24120
|
+
disabled: c || N,
|
|
24124
24121
|
placeholder: Ce,
|
|
24125
24122
|
style: { ...HC, width: De }
|
|
24126
24123
|
}
|
|
@@ -24129,7 +24126,7 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24129
24126
|
Ne
|
|
24130
24127
|
]
|
|
24131
24128
|
}
|
|
24132
|
-
), Dt =
|
|
24129
|
+
), Dt = I && A && ne ? io(
|
|
24133
24130
|
/* @__PURE__ */ y(
|
|
24134
24131
|
"div",
|
|
24135
24132
|
{
|
|
@@ -24252,11 +24249,11 @@ function fp(e, t) {
|
|
|
24252
24249
|
F.trim() && (L.preventDefault(), u.current && (u.current.textContent = F), a(r.key, F), b(F));
|
|
24253
24250
|
},
|
|
24254
24251
|
[i, r.key, a, b]
|
|
24255
|
-
),
|
|
24256
|
-
|
|
24257
|
-
const R = Ul(r.tooltip),
|
|
24258
|
-
T &&
|
|
24259
|
-
const A = r.placeholder ?? e.defaultPlaceholder,
|
|
24252
|
+
), I = !l, k = ["variable-chip", e.chipClass];
|
|
24253
|
+
I && k.push("show-placeholder"), o && k.push(e.errorClass);
|
|
24254
|
+
const R = Ul(r.tooltip), N = r.tooltip == null ? "" : typeof r.tooltip == "string" ? r.tooltip : JSON.stringify(r.tooltip), T = !!N && !Vh(N);
|
|
24255
|
+
T && I && k.push("rte-variable-with-icon");
|
|
24256
|
+
const A = r.placeholder ?? e.defaultPlaceholder, w = /* @__PURE__ */ y(
|
|
24260
24257
|
"span",
|
|
24261
24258
|
{
|
|
24262
24259
|
ref: u,
|
|
@@ -24270,20 +24267,20 @@ function fp(e, t) {
|
|
|
24270
24267
|
onBlur: g,
|
|
24271
24268
|
onPaste: v
|
|
24272
24269
|
}
|
|
24273
|
-
),
|
|
24274
|
-
|
|
24270
|
+
), _ = T ? /* @__PURE__ */ j("span", { className: "rte-markdown-host", children: [
|
|
24271
|
+
w,
|
|
24275
24272
|
/* @__PURE__ */ y(
|
|
24276
24273
|
Vr,
|
|
24277
24274
|
{
|
|
24278
|
-
tooltip:
|
|
24275
|
+
tooltip: N,
|
|
24279
24276
|
className: "variable-info-icon",
|
|
24280
|
-
hidden: !
|
|
24277
|
+
hidden: !I,
|
|
24281
24278
|
dataVariableKey: r.key
|
|
24282
24279
|
}
|
|
24283
24280
|
)
|
|
24284
|
-
] }) :
|
|
24285
|
-
|
|
24286
|
-
R ? /* @__PURE__ */ y(Zn, { data: R, hidden: !
|
|
24281
|
+
] }) : w, P = /* @__PURE__ */ j(ot, { children: [
|
|
24282
|
+
_,
|
|
24283
|
+
R ? /* @__PURE__ */ y(Zn, { data: R, hidden: !I }) : null
|
|
24287
24284
|
] });
|
|
24288
24285
|
return r.required ? /* @__PURE__ */ j(
|
|
24289
24286
|
"span",
|
|
@@ -28276,8 +28273,8 @@ function Lk(e, t, n, r) {
|
|
|
28276
28273
|
for (let b = 0; b < i.length; b++) {
|
|
28277
28274
|
let g = i[(b + o) % i.length], v = !0;
|
|
28278
28275
|
g < 0 && (v = !1, g = -g);
|
|
28279
|
-
let
|
|
28280
|
-
if (
|
|
28276
|
+
let I = l.node(g - 1), k = l.index(g - 1);
|
|
28277
|
+
if (I.canReplaceWith(k, k, m.type, m.marks))
|
|
28281
28278
|
return e.replace(l.before(g), v ? a.after(g) : n, new te(Vp(r.content, 0, r.openStart, h), h, r.openEnd));
|
|
28282
28279
|
}
|
|
28283
28280
|
}
|
|
@@ -32339,8 +32336,8 @@ function iN(e, t, n, r, l, a, i) {
|
|
|
32339
32336
|
n.maps[u].forEach((f, h, m, b) => {
|
|
32340
32337
|
let g = b - m - (h - f);
|
|
32341
32338
|
for (let v = 0; v < s.length; v += 3) {
|
|
32342
|
-
let
|
|
32343
|
-
if (
|
|
32339
|
+
let I = s[v + 1];
|
|
32340
|
+
if (I < 0 || f > I + c - d)
|
|
32344
32341
|
continue;
|
|
32345
32342
|
let k = s[v] + c - d;
|
|
32346
32343
|
h >= k ? s[v + 1] = f <= k ? -2 : -1 : f >= c && g && (s[v] += g, s[v + 1] += g);
|
|
@@ -32699,12 +32696,12 @@ function bN(e, t, n) {
|
|
|
32699
32696
|
let { node: r, fromOffset: l, toOffset: a, from: i, to: s } = e.docView.parseRange(t, n), o = e.domSelectionRange(), u, c = o.anchorNode;
|
|
32700
32697
|
if (c && e.dom.contains(c.nodeType == 1 ? c : c.parentNode) && (u = [{ node: c, offset: o.anchorOffset }], ri(o) || u.push({ node: o.focusNode, offset: o.focusOffset })), st && e.input.lastKeyCode === 8)
|
|
32701
32698
|
for (let g = a; g > l; g--) {
|
|
32702
|
-
let v = r.childNodes[g - 1],
|
|
32703
|
-
if (v.nodeName == "BR" && !
|
|
32699
|
+
let v = r.childNodes[g - 1], I = v.pmViewDesc;
|
|
32700
|
+
if (v.nodeName == "BR" && !I) {
|
|
32704
32701
|
a = g;
|
|
32705
32702
|
break;
|
|
32706
32703
|
}
|
|
32707
|
-
if (!
|
|
32704
|
+
if (!I || I.size)
|
|
32708
32705
|
break;
|
|
32709
32706
|
}
|
|
32710
32707
|
let d = e.state.doc, f = e.someProp("domParser") || _n.fromSchema(e.state.schema), h = d.resolve(i), m = null, b = f.parse(r, {
|
|
@@ -32742,12 +32739,12 @@ const vN = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
|
|
|
32742
32739
|
function yN(e, t, n, r, l) {
|
|
32743
32740
|
let a = e.input.compositionPendingChanges || (e.composing ? e.input.compositionID : 0);
|
|
32744
32741
|
if (e.input.compositionPendingChanges = 0, t < 0) {
|
|
32745
|
-
let A = e.input.lastSelectionTime > Date.now() - 50 ? e.input.lastSelectionOrigin : null,
|
|
32746
|
-
if (
|
|
32742
|
+
let A = e.input.lastSelectionTime > Date.now() - 50 ? e.input.lastSelectionOrigin : null, w = Bo(e, A);
|
|
32743
|
+
if (w && !e.state.selection.eq(w)) {
|
|
32747
32744
|
if (st && dn && e.input.lastKeyCode === 13 && Date.now() - 100 < e.input.lastKeyCodeTime && e.someProp("handleKeyDown", (P) => P(e, Wn(13, "Enter"))))
|
|
32748
32745
|
return;
|
|
32749
|
-
let
|
|
32750
|
-
A == "pointer" ?
|
|
32746
|
+
let _ = e.state.tr.setSelection(w);
|
|
32747
|
+
A == "pointer" ? _.setMeta("pointer", !0) : A == "key" && _.scrollIntoView(), a && _.setMeta("composition", a), e.dispatch(_);
|
|
32751
32748
|
}
|
|
32752
32749
|
return;
|
|
32753
32750
|
}
|
|
@@ -32767,15 +32764,15 @@ function yN(e, t, n, r, l) {
|
|
|
32767
32764
|
if (u.sel) {
|
|
32768
32765
|
let A = Md(e, e.state.doc, u.sel);
|
|
32769
32766
|
if (A && !A.eq(e.state.selection)) {
|
|
32770
|
-
let
|
|
32771
|
-
a &&
|
|
32767
|
+
let w = e.state.tr.setSelection(A);
|
|
32768
|
+
a && w.setMeta("composition", a), e.dispatch(w);
|
|
32772
32769
|
}
|
|
32773
32770
|
}
|
|
32774
32771
|
return;
|
|
32775
32772
|
}
|
|
32776
32773
|
e.state.selection.from < e.state.selection.to && m.start == m.endB && e.state.selection instanceof be && (m.start > e.state.selection.from && m.start <= e.state.selection.from + 2 && e.state.selection.from >= u.from ? m.start = e.state.selection.from : m.endA < e.state.selection.to && m.endA >= e.state.selection.to - 2 && e.state.selection.to <= u.to && (m.endB += e.state.selection.to - m.endA, m.endA = e.state.selection.to)), Ct && In <= 11 && m.endB == m.start + 1 && m.endA == m.start && m.start > u.from && u.doc.textBetween(m.start - u.from - 1, m.start - u.from + 1) == " " && (m.start--, m.endA--, m.endB--);
|
|
32777
|
-
let b = u.doc.resolveNoCache(m.start - u.from), g = u.doc.resolveNoCache(m.endB - u.from), v = c.resolve(m.start),
|
|
32778
|
-
if ((Rr && e.input.lastIOSEnter > Date.now() - 225 && (!
|
|
32774
|
+
let b = u.doc.resolveNoCache(m.start - u.from), g = u.doc.resolveNoCache(m.endB - u.from), v = c.resolve(m.start), I = b.sameParent(g) && b.parent.inlineContent && v.end() >= m.endA;
|
|
32775
|
+
if ((Rr && e.input.lastIOSEnter > Date.now() - 225 && (!I || l.some((A) => A.nodeName == "DIV" || A.nodeName == "P")) || !I && b.pos < u.doc.content.size && (!b.sameParent(g) || !b.parent.inlineContent) && b.pos < g.pos && !/\S/.test(u.doc.textBetween(b.pos, g.pos, "", ""))) && e.someProp("handleKeyDown", (A) => A(e, Wn(13, "Enter")))) {
|
|
32779
32776
|
e.input.lastIOSEnter = 0;
|
|
32780
32777
|
return;
|
|
32781
32778
|
}
|
|
@@ -32783,37 +32780,37 @@ function yN(e, t, n, r, l) {
|
|
|
32783
32780
|
dn && st && e.domObserver.suppressSelectionUpdates();
|
|
32784
32781
|
return;
|
|
32785
32782
|
}
|
|
32786
|
-
st && m.endB == m.start && (e.input.lastChromeDelete = Date.now()), dn && !
|
|
32783
|
+
st && m.endB == m.start && (e.input.lastChromeDelete = Date.now()), dn && !I && b.start() != g.start() && g.parentOffset == 0 && b.depth == g.depth && u.sel && u.sel.anchor == u.sel.head && u.sel.head == m.endA && (m.endB -= 2, g = u.doc.resolveNoCache(m.endB - u.from), setTimeout(() => {
|
|
32787
32784
|
e.someProp("handleKeyDown", function(A) {
|
|
32788
32785
|
return A(e, Wn(13, "Enter"));
|
|
32789
32786
|
});
|
|
32790
32787
|
}, 20));
|
|
32791
|
-
let k = m.start, R = m.endA,
|
|
32792
|
-
let
|
|
32788
|
+
let k = m.start, R = m.endA, N = (A) => {
|
|
32789
|
+
let w = A || e.state.tr.replace(k, R, u.doc.slice(m.start - u.from, m.endB - u.from));
|
|
32793
32790
|
if (u.sel) {
|
|
32794
|
-
let
|
|
32795
|
-
|
|
32791
|
+
let _ = Md(e, w.doc, u.sel);
|
|
32792
|
+
_ && !(st && e.composing && _.empty && (m.start != m.endB || e.input.lastChromeDelete < Date.now() - 100) && (_.head == k || _.head == w.mapping.map(R) - 1) || Ct && _.empty && _.head == k) && w.setSelection(_);
|
|
32796
32793
|
}
|
|
32797
|
-
return a &&
|
|
32794
|
+
return a && w.setMeta("composition", a), w.scrollIntoView();
|
|
32798
32795
|
}, T;
|
|
32799
|
-
if (
|
|
32796
|
+
if (I)
|
|
32800
32797
|
if (b.pos == g.pos) {
|
|
32801
32798
|
Ct && In <= 11 && b.parentOffset == 0 && (e.domObserver.suppressSelectionUpdates(), setTimeout(() => hn(e), 20));
|
|
32802
|
-
let A =
|
|
32803
|
-
|
|
32799
|
+
let A = N(e.state.tr.delete(k, R)), w = c.resolve(m.start).marksAcross(c.resolve(m.endA));
|
|
32800
|
+
w && A.ensureMarks(w), e.dispatch(A);
|
|
32804
32801
|
} else if (
|
|
32805
32802
|
// Adding or removing a mark
|
|
32806
32803
|
m.endA == m.endB && (T = EN(b.parent.content.cut(b.parentOffset, g.parentOffset), v.parent.content.cut(v.parentOffset, m.endA - v.start())))
|
|
32807
32804
|
) {
|
|
32808
|
-
let A =
|
|
32805
|
+
let A = N(e.state.tr);
|
|
32809
32806
|
T.type == "add" ? A.addMark(k, R, T.mark) : A.removeMark(k, R, T.mark), e.dispatch(A);
|
|
32810
32807
|
} else if (b.parent.child(b.index()).isText && b.index() == g.index() - (g.textOffset ? 0 : 1)) {
|
|
32811
|
-
let A = b.parent.textBetween(b.parentOffset, g.parentOffset),
|
|
32812
|
-
e.someProp("handleTextInput", (
|
|
32808
|
+
let A = b.parent.textBetween(b.parentOffset, g.parentOffset), w = () => N(e.state.tr.insertText(A, k, R));
|
|
32809
|
+
e.someProp("handleTextInput", (_) => _(e, k, R, A, w)) || e.dispatch(w());
|
|
32813
32810
|
} else
|
|
32814
|
-
e.dispatch(
|
|
32811
|
+
e.dispatch(N());
|
|
32815
32812
|
else
|
|
32816
|
-
e.dispatch(
|
|
32813
|
+
e.dispatch(N());
|
|
32817
32814
|
}
|
|
32818
32815
|
function Md(e, t, n) {
|
|
32819
32816
|
return Math.max(n.anchor, n.head) > t.content.size ? null : Fo(e, t.resolve(n.anchor), t.resolve(n.head));
|
|
@@ -33706,8 +33703,8 @@ function Fm(e, t, n, r) {
|
|
|
33706
33703
|
let v = G.empty;
|
|
33707
33704
|
for (let k = m.length - 1; k >= 0; k--)
|
|
33708
33705
|
v = G.from(m[k].copy(v));
|
|
33709
|
-
let
|
|
33710
|
-
n(
|
|
33706
|
+
let I = e.tr.step(new Ze(t.pos - m.length, t.pos + a.nodeSize, t.pos + g, t.pos + a.nodeSize - g, new te(v, m.length, 0), 0, !0));
|
|
33707
|
+
n(I.scrollIntoView());
|
|
33711
33708
|
}
|
|
33712
33709
|
return !0;
|
|
33713
33710
|
}
|
|
@@ -34114,8 +34111,8 @@ function n2(e, t) {
|
|
|
34114
34111
|
options: u.options,
|
|
34115
34112
|
storage: u.storage,
|
|
34116
34113
|
editor: t
|
|
34117
|
-
}, f = e.reduce((v,
|
|
34118
|
-
const k = le(
|
|
34114
|
+
}, f = e.reduce((v, I) => {
|
|
34115
|
+
const k = le(I, "extendNodeSchema", d);
|
|
34119
34116
|
return {
|
|
34120
34117
|
...v,
|
|
34121
34118
|
...k ? k(u) : {}
|
|
@@ -34135,8 +34132,8 @@ function n2(e, t) {
|
|
|
34135
34132
|
defining: xe(le(u, "defining", d)),
|
|
34136
34133
|
isolating: xe(le(u, "isolating", d)),
|
|
34137
34134
|
attrs: Object.fromEntries(c.map((v) => {
|
|
34138
|
-
var
|
|
34139
|
-
return [v.name, { default: (
|
|
34135
|
+
var I;
|
|
34136
|
+
return [v.name, { default: (I = v?.attribute) === null || I === void 0 ? void 0 : I.default }];
|
|
34140
34137
|
}))
|
|
34141
34138
|
}), m = xe(le(u, "parseHTML", d));
|
|
34142
34139
|
m && (h.parseDOM = m.map((v) => Ud(v, c)));
|
|
@@ -34154,10 +34151,10 @@ function n2(e, t) {
|
|
|
34154
34151
|
storage: u.storage,
|
|
34155
34152
|
editor: t
|
|
34156
34153
|
}, f = e.reduce((g, v) => {
|
|
34157
|
-
const
|
|
34154
|
+
const I = le(v, "extendMarkSchema", d);
|
|
34158
34155
|
return {
|
|
34159
34156
|
...g,
|
|
34160
|
-
...
|
|
34157
|
+
...I ? I(u) : {}
|
|
34161
34158
|
};
|
|
34162
34159
|
}, {}), h = zd({
|
|
34163
34160
|
...f,
|
|
@@ -34250,7 +34247,7 @@ function aa(e) {
|
|
|
34250
34247
|
}), g = {
|
|
34251
34248
|
from: r - (h[0].length - a.length),
|
|
34252
34249
|
to: l
|
|
34253
|
-
}, { commands: v, chain:
|
|
34250
|
+
}, { commands: v, chain: I, can: k } = new si({
|
|
34254
34251
|
editor: n,
|
|
34255
34252
|
state: b
|
|
34256
34253
|
});
|
|
@@ -34259,7 +34256,7 @@ function aa(e) {
|
|
|
34259
34256
|
range: g,
|
|
34260
34257
|
match: h,
|
|
34261
34258
|
commands: v,
|
|
34262
|
-
chain:
|
|
34259
|
+
chain: I,
|
|
34263
34260
|
can: k
|
|
34264
34261
|
}) === null || !m.steps.length || (m.setMeta(s, {
|
|
34265
34262
|
transform: m,
|
|
@@ -34428,9 +34425,9 @@ function c2(e) {
|
|
|
34428
34425
|
u2(v, a.find, i).forEach((k) => {
|
|
34429
34426
|
if (k.index === void 0)
|
|
34430
34427
|
return;
|
|
34431
|
-
const R = b + k.index + 1,
|
|
34428
|
+
const R = b + k.index + 1, N = R + k[0].length, T = {
|
|
34432
34429
|
from: n.tr.mapping.map(R),
|
|
34433
|
-
to: n.tr.mapping.map(
|
|
34430
|
+
to: n.tr.mapping.map(N)
|
|
34434
34431
|
}, A = a.handler({
|
|
34435
34432
|
state: n,
|
|
34436
34433
|
range: T,
|
|
@@ -34518,19 +34515,19 @@ function f2(e) {
|
|
|
34518
34515
|
}
|
|
34519
34516
|
},
|
|
34520
34517
|
appendTransaction: (d, f, h) => {
|
|
34521
|
-
const m = d[0], b = m.getMeta("uiEvent") === "paste" && !l, g = m.getMeta("uiEvent") === "drop" && !a, v = m.getMeta("applyPasteRules"),
|
|
34522
|
-
if (!b && !g && !
|
|
34518
|
+
const m = d[0], b = m.getMeta("uiEvent") === "paste" && !l, g = m.getMeta("uiEvent") === "drop" && !a, v = m.getMeta("applyPasteRules"), I = !!v;
|
|
34519
|
+
if (!b && !g && !I)
|
|
34523
34520
|
return;
|
|
34524
|
-
if (
|
|
34525
|
-
let { text:
|
|
34526
|
-
typeof
|
|
34527
|
-
const { from: T } = v, A = T +
|
|
34521
|
+
if (I) {
|
|
34522
|
+
let { text: N } = v;
|
|
34523
|
+
typeof N == "string" ? N = N : N = Qo(G.from(N), h.schema);
|
|
34524
|
+
const { from: T } = v, A = T + N.length, w = d2(N);
|
|
34528
34525
|
return o({
|
|
34529
34526
|
rule: c,
|
|
34530
34527
|
state: h,
|
|
34531
34528
|
from: T,
|
|
34532
34529
|
to: { b: A },
|
|
34533
|
-
pasteEvt:
|
|
34530
|
+
pasteEvt: w
|
|
34534
34531
|
});
|
|
34535
34532
|
}
|
|
34536
34533
|
const k = f.doc.content.findDiffStart(h.doc.content), R = f.doc.content.findDiffEnd(h.doc.content);
|
|
@@ -35297,11 +35294,11 @@ function Ks(e, t, n = {}) {
|
|
|
35297
35294
|
e.doc.nodesBetween(h, m, (b, g) => {
|
|
35298
35295
|
if (!b.isText && !b.marks.length)
|
|
35299
35296
|
return;
|
|
35300
|
-
const v = Math.max(h, g),
|
|
35297
|
+
const v = Math.max(h, g), I = Math.min(m, g + b.nodeSize), k = I - v;
|
|
35301
35298
|
i += k, s.push(...b.marks.map((R) => ({
|
|
35302
35299
|
mark: R,
|
|
35303
35300
|
from: v,
|
|
35304
|
-
to:
|
|
35301
|
+
to: I
|
|
35305
35302
|
})));
|
|
35306
35303
|
});
|
|
35307
35304
|
}), i === 0)
|
|
@@ -35463,21 +35460,21 @@ const yw = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35463
35460
|
return !1;
|
|
35464
35461
|
if (l) {
|
|
35465
35462
|
let v = G.empty;
|
|
35466
|
-
const
|
|
35467
|
-
for (let
|
|
35468
|
-
v = G.from(o.node(
|
|
35463
|
+
const I = o.index(-1) ? 1 : o.index(-2) ? 2 : 3;
|
|
35464
|
+
for (let w = o.depth - I; w >= o.depth - 3; w -= 1)
|
|
35465
|
+
v = G.from(o.node(w).copy(v));
|
|
35469
35466
|
const k = o.indexAfter(-1) < o.node(-2).childCount ? 1 : o.indexAfter(-2) < o.node(-3).childCount ? 2 : 3, R = {
|
|
35470
35467
|
...ya(f, o.node().type.name, o.node().attrs),
|
|
35471
35468
|
...t
|
|
35472
|
-
},
|
|
35473
|
-
v = v.append(G.from(s.createAndFill(null,
|
|
35474
|
-
const T = o.before(o.depth - (
|
|
35475
|
-
n.replace(T, o.after(-k), new te(v, 4 -
|
|
35469
|
+
}, N = ((i = s.contentMatch.defaultType) === null || i === void 0 ? void 0 : i.createAndFill(R)) || void 0;
|
|
35470
|
+
v = v.append(G.from(s.createAndFill(null, N) || void 0));
|
|
35471
|
+
const T = o.before(o.depth - (I - 1));
|
|
35472
|
+
n.replace(T, o.after(-k), new te(v, 4 - I, 0));
|
|
35476
35473
|
let A = -1;
|
|
35477
|
-
n.doc.nodesBetween(T, n.doc.content.size, (
|
|
35474
|
+
n.doc.nodesBetween(T, n.doc.content.size, (w, _) => {
|
|
35478
35475
|
if (A > -1)
|
|
35479
35476
|
return !1;
|
|
35480
|
-
|
|
35477
|
+
w.isTextblock && w.content.size === 0 && (A = _ + 1);
|
|
35481
35478
|
}), A > -1 && n.setSelection(be.near(n.doc.resolve(A))), n.scrollIntoView();
|
|
35482
35479
|
}
|
|
35483
35480
|
return !0;
|
|
@@ -35497,11 +35494,11 @@ const yw = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35497
35494
|
if (!fn(n.doc, o.pos, 2))
|
|
35498
35495
|
return !1;
|
|
35499
35496
|
if (l) {
|
|
35500
|
-
const { selection: v, storedMarks:
|
|
35497
|
+
const { selection: v, storedMarks: I } = r, { splittableMarks: k } = a.extensionManager, R = I || v.$to.parentOffset && v.$from.marks();
|
|
35501
35498
|
if (n.split(o.pos, 2, g).scrollIntoView(), !R || !l)
|
|
35502
35499
|
return !0;
|
|
35503
|
-
const
|
|
35504
|
-
n.ensureMarks(
|
|
35500
|
+
const N = R.filter((T) => k.includes(T.type.name));
|
|
35501
|
+
n.ensureMarks(N);
|
|
35505
35502
|
}
|
|
35506
35503
|
return !0;
|
|
35507
35504
|
}, is = (e, t) => {
|
|
@@ -35523,18 +35520,18 @@ const yw = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35523
35520
|
const l = e.doc.nodeAt(r);
|
|
35524
35521
|
return n.node.type === l?.type && Fn(e.doc, r) && e.join(r), !0;
|
|
35525
35522
|
}, Tw = (e, t, n, r = {}) => ({ editor: l, tr: a, state: i, dispatch: s, chain: o, commands: u, can: c }) => {
|
|
35526
|
-
const { extensions: d, splittableMarks: f } = l.extensionManager, h = nt(e, i.schema), m = nt(t, i.schema), { selection: b, storedMarks: g } = i, { $from: v, $to:
|
|
35523
|
+
const { extensions: d, splittableMarks: f } = l.extensionManager, h = nt(e, i.schema), m = nt(t, i.schema), { selection: b, storedMarks: g } = i, { $from: v, $to: I } = b, k = v.blockRange(I), R = g || b.$to.parentOffset && b.$from.marks();
|
|
35527
35524
|
if (!k)
|
|
35528
35525
|
return !1;
|
|
35529
|
-
const
|
|
35530
|
-
if (k.depth >= 1 &&
|
|
35531
|
-
if (
|
|
35526
|
+
const N = Zo((T) => Yd(T.type.name, d))(b);
|
|
35527
|
+
if (k.depth >= 1 && N && k.depth - N.depth <= 1) {
|
|
35528
|
+
if (N.node.type === h)
|
|
35532
35529
|
return u.liftListItem(m);
|
|
35533
|
-
if (Yd(
|
|
35534
|
-
return o().command(() => (a.setNodeMarkup(
|
|
35530
|
+
if (Yd(N.node.type.name, d) && h.validContent(N.node.content) && s)
|
|
35531
|
+
return o().command(() => (a.setNodeMarkup(N.pos, h), !0)).command(() => is(a, h)).command(() => ss(a, h)).run();
|
|
35535
35532
|
}
|
|
35536
35533
|
return !n || !R || !s ? o().command(() => c().wrapInList(h, r) ? !0 : u.clearNodes()).wrapInList(h, r).command(() => is(a, h)).command(() => ss(a, h)).run() : o().command(() => {
|
|
35537
|
-
const T = c().wrapInList(h, r), A = R.filter((
|
|
35534
|
+
const T = c().wrapInList(h, r), A = R.filter((w) => f.includes(w.type.name));
|
|
35538
35535
|
return a.ensureMarks(A), T ? !0 : u.clearNodes();
|
|
35539
35536
|
}).wrapInList(h, r).command(() => is(a, h)).command(() => ss(a, h)).run();
|
|
35540
35537
|
}, xw = (e, t = {}, n = {}) => ({ state: r, commands: l }) => {
|
|
@@ -35600,8 +35597,8 @@ const yw = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35600
35597
|
...t
|
|
35601
35598
|
}), i && b.marks.length && b.marks.forEach((v) => {
|
|
35602
35599
|
if (i === v.type) {
|
|
35603
|
-
const
|
|
35604
|
-
n.addMark(
|
|
35600
|
+
const I = Math.max(g, u), k = Math.min(g + b.nodeSize, c);
|
|
35601
|
+
n.addMark(I, k, i.create({
|
|
35605
35602
|
...v.attrs,
|
|
35606
35603
|
...t
|
|
35607
35604
|
}));
|
|
@@ -36618,68 +36615,68 @@ function jw() {
|
|
|
36618
36615
|
var e = ye, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
36619
36616
|
function n(k) {
|
|
36620
36617
|
{
|
|
36621
|
-
for (var R = arguments.length,
|
|
36622
|
-
|
|
36623
|
-
r("error", k,
|
|
36618
|
+
for (var R = arguments.length, N = new Array(R > 1 ? R - 1 : 0), T = 1; T < R; T++)
|
|
36619
|
+
N[T - 1] = arguments[T];
|
|
36620
|
+
r("error", k, N);
|
|
36624
36621
|
}
|
|
36625
36622
|
}
|
|
36626
|
-
function r(k, R,
|
|
36623
|
+
function r(k, R, N) {
|
|
36627
36624
|
{
|
|
36628
36625
|
var T = t.ReactDebugCurrentFrame, A = T.getStackAddendum();
|
|
36629
|
-
A !== "" && (R += "%s",
|
|
36630
|
-
var
|
|
36631
|
-
return String(
|
|
36626
|
+
A !== "" && (R += "%s", N = N.concat([A]));
|
|
36627
|
+
var w = N.map(function(_) {
|
|
36628
|
+
return String(_);
|
|
36632
36629
|
});
|
|
36633
|
-
|
|
36630
|
+
w.unshift("Warning: " + R), Function.prototype.apply.call(console[k], console, w);
|
|
36634
36631
|
}
|
|
36635
36632
|
}
|
|
36636
36633
|
function l(k, R) {
|
|
36637
36634
|
return k === R && (k !== 0 || 1 / k === 1 / R) || k !== k && R !== R;
|
|
36638
36635
|
}
|
|
36639
36636
|
var a = typeof Object.is == "function" ? Object.is : l, i = e.useState, s = e.useEffect, o = e.useLayoutEffect, u = e.useDebugValue, c = !1, d = !1;
|
|
36640
|
-
function f(k, R,
|
|
36637
|
+
function f(k, R, N) {
|
|
36641
36638
|
c || e.startTransition !== void 0 && (c = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
36642
36639
|
var T = R();
|
|
36643
36640
|
if (!d) {
|
|
36644
36641
|
var A = R();
|
|
36645
36642
|
a(T, A) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), d = !0);
|
|
36646
36643
|
}
|
|
36647
|
-
var
|
|
36644
|
+
var w = i({
|
|
36648
36645
|
inst: {
|
|
36649
36646
|
value: T,
|
|
36650
36647
|
getSnapshot: R
|
|
36651
36648
|
}
|
|
36652
|
-
}),
|
|
36649
|
+
}), _ = w[0].inst, P = w[1];
|
|
36653
36650
|
return o(function() {
|
|
36654
|
-
|
|
36655
|
-
inst:
|
|
36651
|
+
_.value = T, _.getSnapshot = R, h(_) && P({
|
|
36652
|
+
inst: _
|
|
36656
36653
|
});
|
|
36657
36654
|
}, [k, T, R]), s(function() {
|
|
36658
|
-
h(
|
|
36659
|
-
inst:
|
|
36655
|
+
h(_) && P({
|
|
36656
|
+
inst: _
|
|
36660
36657
|
});
|
|
36661
36658
|
var L = function() {
|
|
36662
|
-
h(
|
|
36663
|
-
inst:
|
|
36659
|
+
h(_) && P({
|
|
36660
|
+
inst: _
|
|
36664
36661
|
});
|
|
36665
36662
|
};
|
|
36666
36663
|
return k(L);
|
|
36667
36664
|
}, [k]), u(T), T;
|
|
36668
36665
|
}
|
|
36669
36666
|
function h(k) {
|
|
36670
|
-
var R = k.getSnapshot,
|
|
36667
|
+
var R = k.getSnapshot, N = k.value;
|
|
36671
36668
|
try {
|
|
36672
36669
|
var T = R();
|
|
36673
|
-
return !a(
|
|
36670
|
+
return !a(N, T);
|
|
36674
36671
|
} catch {
|
|
36675
36672
|
return !0;
|
|
36676
36673
|
}
|
|
36677
36674
|
}
|
|
36678
|
-
function m(k, R,
|
|
36675
|
+
function m(k, R, N) {
|
|
36679
36676
|
return R();
|
|
36680
36677
|
}
|
|
36681
|
-
var b = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", g = !b, v = g ? m : f,
|
|
36682
|
-
cs.useSyncExternalStore =
|
|
36678
|
+
var b = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", g = !b, v = g ? m : f, I = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : v;
|
|
36679
|
+
cs.useSyncExternalStore = I, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
36683
36680
|
}()), cs;
|
|
36684
36681
|
}
|
|
36685
36682
|
process.env.NODE_ENV === "production" ? Qs.exports = Yw() : Qs.exports = jw();
|
|
@@ -36857,22 +36854,22 @@ function n_() {
|
|
|
36857
36854
|
} else b = m.current;
|
|
36858
36855
|
m = s(function() {
|
|
36859
36856
|
function v(T) {
|
|
36860
|
-
if (!
|
|
36861
|
-
if (
|
|
36857
|
+
if (!I) {
|
|
36858
|
+
if (I = !0, k = T, T = f(T), h !== void 0 && b.hasValue) {
|
|
36862
36859
|
var A = b.value;
|
|
36863
36860
|
if (h(A, T)) return R = A;
|
|
36864
36861
|
}
|
|
36865
36862
|
return R = T;
|
|
36866
36863
|
}
|
|
36867
36864
|
if (A = R, r(k, T)) return A;
|
|
36868
|
-
var
|
|
36869
|
-
return h !== void 0 && h(A,
|
|
36865
|
+
var w = f(T);
|
|
36866
|
+
return h !== void 0 && h(A, w) ? A : (k = T, R = w);
|
|
36870
36867
|
}
|
|
36871
|
-
var
|
|
36868
|
+
var I = !1, k, R, N = d === void 0 ? null : d;
|
|
36872
36869
|
return [function() {
|
|
36873
36870
|
return v(c());
|
|
36874
|
-
},
|
|
36875
|
-
return v(
|
|
36871
|
+
}, N === null ? void 0 : function() {
|
|
36872
|
+
return v(N());
|
|
36876
36873
|
}];
|
|
36877
36874
|
}, [c, d, f, h]);
|
|
36878
36875
|
var g = l(u, m[0], m[1]);
|
|
@@ -36907,9 +36904,9 @@ function r_() {
|
|
|
36907
36904
|
value: null
|
|
36908
36905
|
}, b.current = g) : g = b.current;
|
|
36909
36906
|
var v = s(function() {
|
|
36910
|
-
var
|
|
36911
|
-
if (!
|
|
36912
|
-
|
|
36907
|
+
var N = !1, T, A, w = function(F) {
|
|
36908
|
+
if (!N) {
|
|
36909
|
+
N = !0, T = F;
|
|
36913
36910
|
var U = h(F);
|
|
36914
36911
|
if (m !== void 0 && g.hasValue) {
|
|
36915
36912
|
var D = g.value;
|
|
@@ -36923,13 +36920,13 @@ function r_() {
|
|
|
36923
36920
|
return B;
|
|
36924
36921
|
var $ = h(F);
|
|
36925
36922
|
return m !== void 0 && m(B, $) ? B : (T = F, A = $, $);
|
|
36926
|
-
},
|
|
36927
|
-
return
|
|
36928
|
-
}, L =
|
|
36929
|
-
return
|
|
36923
|
+
}, _ = f === void 0 ? null : f, P = function() {
|
|
36924
|
+
return w(d());
|
|
36925
|
+
}, L = _ === null ? void 0 : function() {
|
|
36926
|
+
return w(_());
|
|
36930
36927
|
};
|
|
36931
36928
|
return [P, L];
|
|
36932
|
-
}, [d, f, h, m]),
|
|
36929
|
+
}, [d, f, h, m]), I = v[0], k = v[1], R = l(c, I, k);
|
|
36933
36930
|
return i(function() {
|
|
36934
36931
|
g.hasValue = !0, g.value = R;
|
|
36935
36932
|
}, [R]), o(R), R;
|
|
@@ -38668,7 +38665,7 @@ const mI = ({ expanded: e, onToggle: t }) => /* @__PURE__ */ j(
|
|
|
38668
38665
|
const v = {
|
|
38669
38666
|
"--rte-richtext-min-height": `${s}px`,
|
|
38670
38667
|
"--rte-richtext-max-height": `${u}px`
|
|
38671
|
-
},
|
|
38668
|
+
}, I = [
|
|
38672
38669
|
"rte-richtext-wrapper",
|
|
38673
38670
|
c ? "rte-richtext-toggleable" : "",
|
|
38674
38671
|
d ? "rte-richtext-expanded" : ""
|
|
@@ -38678,7 +38675,7 @@ const mI = ({ expanded: e, onToggle: t }) => /* @__PURE__ */ j(
|
|
|
38678
38675
|
{
|
|
38679
38676
|
className: `rte-richtext-container ${d ? "rte-richtext-host-expanded" : ""} ${l ? "rte-richtext-error" : ""}`,
|
|
38680
38677
|
"data-key": e.key,
|
|
38681
|
-
children: /* @__PURE__ */ j("div", { className:
|
|
38678
|
+
children: /* @__PURE__ */ j("div", { className: I, style: v, children: [
|
|
38682
38679
|
/* @__PURE__ */ y(Zw, { editor: b }),
|
|
38683
38680
|
c && /* @__PURE__ */ y(mI, { expanded: d, onToggle: g })
|
|
38684
38681
|
] })
|
|
@@ -39479,12 +39476,12 @@ const ub = ye.memo(
|
|
|
39479
39476
|
}) => {
|
|
39480
39477
|
const h = V(
|
|
39481
39478
|
(m) => {
|
|
39482
|
-
if (m.reduce((v,
|
|
39479
|
+
if (m.reduce((v, I) => v + I.size, 0) > 52428800) {
|
|
39483
39480
|
const v = [];
|
|
39484
|
-
let
|
|
39481
|
+
let I = 0;
|
|
39485
39482
|
for (const k of m) {
|
|
39486
|
-
if (
|
|
39487
|
-
v.push(k),
|
|
39483
|
+
if (I + k.size > 52428800) break;
|
|
39484
|
+
v.push(k), I += k.size;
|
|
39488
39485
|
}
|
|
39489
39486
|
i(v);
|
|
39490
39487
|
} else
|
|
@@ -39626,14 +39623,14 @@ const cf = 9999, bO = (e) => {
|
|
|
39626
39623
|
editorMinHeight: b,
|
|
39627
39624
|
editorPadding: g,
|
|
39628
39625
|
className: v,
|
|
39629
|
-
videoUrlParse:
|
|
39626
|
+
videoUrlParse: I,
|
|
39630
39627
|
videoUpload: k,
|
|
39631
39628
|
reportAnalyze: R,
|
|
39632
|
-
reportListFetch:
|
|
39629
|
+
reportListFetch: N,
|
|
39633
39630
|
onReportGoGenerate: T,
|
|
39634
39631
|
reportNameResolve: A,
|
|
39635
|
-
onViewReport:
|
|
39636
|
-
hideCurrentSessionReport:
|
|
39632
|
+
onViewReport: w,
|
|
39633
|
+
hideCurrentSessionReport: _,
|
|
39637
39634
|
markdownAnalyze: P,
|
|
39638
39635
|
markdownNameAnalyze: L,
|
|
39639
39636
|
agentOptions: F,
|
|
@@ -40116,12 +40113,12 @@ const cf = 9999, bO = (e) => {
|
|
|
40116
40113
|
onFileChange: mb,
|
|
40117
40114
|
thumbnails: Nt,
|
|
40118
40115
|
onThumbnailChange: bb,
|
|
40119
|
-
videoUrlParse:
|
|
40116
|
+
videoUrlParse: I,
|
|
40120
40117
|
videoUpload: k,
|
|
40121
|
-
reportListFetch:
|
|
40118
|
+
reportListFetch: N,
|
|
40122
40119
|
onReportGoGenerate: T,
|
|
40123
|
-
onViewReport:
|
|
40124
|
-
hideCurrentSessionReport:
|
|
40120
|
+
onViewReport: w,
|
|
40121
|
+
hideCurrentSessionReport: _,
|
|
40125
40122
|
reportNames: Vn,
|
|
40126
40123
|
onClearReport: gb,
|
|
40127
40124
|
onResolveMultiName: vb,
|
|
@@ -40287,8 +40284,8 @@ const cf = 9999, bO = (e) => {
|
|
|
40287
40284
|
onBatchSizeChange: h,
|
|
40288
40285
|
onLoadNextPage: () => u?.(),
|
|
40289
40286
|
onStartAutoLoad: () => {
|
|
40290
|
-
const
|
|
40291
|
-
c?.(
|
|
40287
|
+
const I = g();
|
|
40288
|
+
c?.(I);
|
|
40292
40289
|
},
|
|
40293
40290
|
onStopLoad: () => d?.()
|
|
40294
40291
|
}
|
|
@@ -40300,23 +40297,23 @@ const cf = 9999, bO = (e) => {
|
|
|
40300
40297
|
current: e,
|
|
40301
40298
|
pageSize: n,
|
|
40302
40299
|
total: r,
|
|
40303
|
-
onChange: (
|
|
40300
|
+
onChange: (I) => o(I),
|
|
40304
40301
|
showSizeChanger: !1,
|
|
40305
40302
|
showQuickJumper: !1,
|
|
40306
40303
|
showTotal: () => "",
|
|
40307
|
-
itemRender: (
|
|
40308
|
-
const
|
|
40304
|
+
itemRender: (I, k, R) => {
|
|
40305
|
+
const N = l.includes(I);
|
|
40309
40306
|
return k === "prev" || k === "next" || k === "jump-prev" || k === "jump-next" ? /* @__PURE__ */ y("div", { className: "pageBox", children: R }) : /* @__PURE__ */ j(
|
|
40310
40307
|
"div",
|
|
40311
40308
|
{
|
|
40312
40309
|
className: "pageBox",
|
|
40313
40310
|
style: {
|
|
40314
|
-
backgroundColor: e ===
|
|
40315
|
-
color: e ===
|
|
40311
|
+
backgroundColor: e === I ? "#2563EB" : "#f5f5f5",
|
|
40312
|
+
color: e === I ? "#fff" : N ? "#171717" : "#a3a3a3"
|
|
40316
40313
|
},
|
|
40317
40314
|
children: [
|
|
40318
|
-
|
|
40319
|
-
!
|
|
40315
|
+
I,
|
|
40316
|
+
!N && /* @__PURE__ */ y("span", { className: "unload_spot" })
|
|
40320
40317
|
]
|
|
40321
40318
|
}
|
|
40322
40319
|
);
|
|
@@ -40495,28 +40492,28 @@ const GI = ({
|
|
|
40495
40492
|
onChange: a,
|
|
40496
40493
|
...i
|
|
40497
40494
|
}) => {
|
|
40498
|
-
const [s, o] = ee(""), [u, c] = ee(0), [d, f] = ee(!1), [h, m] = ee(!1), [b, g] = ee(!1), v = re(void 0),
|
|
40495
|
+
const [s, o] = ee(""), [u, c] = ee(0), [d, f] = ee(!1), [h, m] = ee(!1), [b, g] = ee(!1), v = re(void 0), I = re(void 0), k = re(e), R = re(u), N = re(h), T = re(s);
|
|
40499
40496
|
ve(() => {
|
|
40500
|
-
k.current = e, R.current = u,
|
|
40497
|
+
k.current = e, R.current = u, N.current = h, T.current = s;
|
|
40501
40498
|
});
|
|
40502
40499
|
const A = V((D, E) => {
|
|
40503
40500
|
let B = 0;
|
|
40504
40501
|
g(!0);
|
|
40505
40502
|
const $ = () => {
|
|
40506
|
-
B < D.length ? (o(D.slice(0, B + 1)), B++,
|
|
40503
|
+
B < D.length ? (o(D.slice(0, B + 1)), B++, I.current = window.setTimeout($, n)) : (g(!1), E?.());
|
|
40507
40504
|
};
|
|
40508
40505
|
$();
|
|
40509
|
-
}, [n]),
|
|
40506
|
+
}, [n]), w = V((D) => {
|
|
40510
40507
|
let E = T.current.length;
|
|
40511
40508
|
const B = () => {
|
|
40512
|
-
E > 0 ? (o(T.current.slice(0, E - 1)), E--,
|
|
40509
|
+
E > 0 ? (o(T.current.slice(0, E - 1)), E--, I.current = window.setTimeout(B, n / 2)) : D?.();
|
|
40513
40510
|
};
|
|
40514
40511
|
B();
|
|
40515
|
-
}, [n]),
|
|
40516
|
-
if (k.current.length === 0 ||
|
|
40512
|
+
}, [n]), _ = V(() => {
|
|
40513
|
+
if (k.current.length === 0 || N.current) return;
|
|
40517
40514
|
f(!0);
|
|
40518
40515
|
const D = k.current[R.current];
|
|
40519
|
-
T.current ?
|
|
40516
|
+
T.current ? w(() => {
|
|
40520
40517
|
A(D, () => {
|
|
40521
40518
|
v.current = window.setTimeout(() => {
|
|
40522
40519
|
c((E) => (E + 1) % k.current.length), f(!1);
|
|
@@ -40527,12 +40524,12 @@ const GI = ({
|
|
|
40527
40524
|
c((E) => (E + 1) % k.current.length), f(!1);
|
|
40528
40525
|
}, 2e3);
|
|
40529
40526
|
});
|
|
40530
|
-
}, [
|
|
40531
|
-
return ve(() => (r && e.length > 0 && !h &&
|
|
40532
|
-
v.current && window.clearTimeout(v.current),
|
|
40533
|
-
}), [u, h, r, e.length,
|
|
40534
|
-
!d && r && e.length > 0 && !h &&
|
|
40535
|
-
}, [u, d, r, e.length, h,
|
|
40527
|
+
}, [w, A]);
|
|
40528
|
+
return ve(() => (r && e.length > 0 && !h && _(), () => {
|
|
40529
|
+
v.current && window.clearTimeout(v.current), I.current && window.clearTimeout(I.current);
|
|
40530
|
+
}), [u, h, r, e.length, _]), ve(() => {
|
|
40531
|
+
!d && r && e.length > 0 && !h && _();
|
|
40532
|
+
}, [u, d, r, e.length, h, _]), /* @__PURE__ */ j("div", { style: { position: "relative" }, children: [
|
|
40536
40533
|
/* @__PURE__ */ y(
|
|
40537
40534
|
lo,
|
|
40538
40535
|
{
|
|
@@ -40542,7 +40539,7 @@ const GI = ({
|
|
|
40542
40539
|
a?.(D.target.value), i.onChange?.(D);
|
|
40543
40540
|
},
|
|
40544
40541
|
onFocus: (D) => {
|
|
40545
|
-
m(!0), v.current && window.clearTimeout(v.current),
|
|
40542
|
+
m(!0), v.current && window.clearTimeout(v.current), I.current && window.clearTimeout(I.current), f(!1), g(!1), i.onFocus?.(D);
|
|
40546
40543
|
},
|
|
40547
40544
|
onBlur: (D) => {
|
|
40548
40545
|
m(!1), !l && e.length > 0 && (o(""), c(0)), i.onBlur?.(D);
|
|
@@ -40676,7 +40673,7 @@ const QI = ({
|
|
|
40676
40673
|
...h
|
|
40677
40674
|
// 其他原生属性
|
|
40678
40675
|
}) => {
|
|
40679
|
-
const [m, b] = ee(""), [g, v] = ee(0), [
|
|
40676
|
+
const [m, b] = ee(""), [g, v] = ee(0), [I, k] = ee(!1), [R, N] = ee(!1), [T, A] = ee(!1), [w, _] = ee(l || ""), P = re(void 0), L = re(void 0), F = re(e), U = re(g), D = re(R), E = re(m), B = re(null);
|
|
40680
40677
|
ve(() => {
|
|
40681
40678
|
F.current = e, U.current = g, D.current = R, E.current = m;
|
|
40682
40679
|
});
|
|
@@ -40712,28 +40709,28 @@ const QI = ({
|
|
|
40712
40709
|
ve(() => (r && e.length > 0 && !R && X(), () => {
|
|
40713
40710
|
P.current && window.clearTimeout(P.current), L.current && window.clearTimeout(L.current);
|
|
40714
40711
|
}), [g, R, r, e.length, X]), ve(() => {
|
|
40715
|
-
!
|
|
40716
|
-
}, [g,
|
|
40712
|
+
!I && r && e.length > 0 && !R && X();
|
|
40713
|
+
}, [g, I, r, e.length, R, X]);
|
|
40717
40714
|
const x = (ue) => {
|
|
40718
|
-
|
|
40715
|
+
N(!0), P.current && window.clearTimeout(P.current), L.current && window.clearTimeout(L.current), k(!1), A(!1), h.onFocus?.(ue);
|
|
40719
40716
|
}, ne = (ue) => {
|
|
40720
|
-
|
|
40717
|
+
N(!1), !l && e.length > 0 && (b(""), v(0)), h.onBlur?.(ue);
|
|
40721
40718
|
}, ie = (ue) => {
|
|
40722
40719
|
const we = ue.target.value;
|
|
40723
|
-
s && we.length > s || (a ? a(we) :
|
|
40720
|
+
s && we.length > s || (a ? a(we) : _(we), h.onChange?.(ue));
|
|
40724
40721
|
}, M = () => {
|
|
40725
|
-
const ue = a ? l :
|
|
40726
|
-
ue.trim() && !c && (i?.(ue), a ||
|
|
40722
|
+
const ue = a ? l : w;
|
|
40723
|
+
ue.trim() && !c && (i?.(ue), a || _(""));
|
|
40727
40724
|
}, he = (ue) => {
|
|
40728
40725
|
(ue.ctrlKey || ue.metaKey) && ue.key === "Enter" && (ue.preventDefault(), M()), h.onKeyDown?.(ue);
|
|
40729
|
-
}, Ne = a ? l :
|
|
40726
|
+
}, Ne = a ? l : w, Ce = c || !Ne.trim() || (s ? Ne.length > s : !1);
|
|
40730
40727
|
return /* @__PURE__ */ j("div", { style: { position: "relative", ...f }, children: [
|
|
40731
40728
|
/* @__PURE__ */ j("div", { style: { position: "relative" }, children: [
|
|
40732
40729
|
/* @__PURE__ */ y(
|
|
40733
40730
|
"textarea",
|
|
40734
40731
|
{
|
|
40735
40732
|
ref: B,
|
|
40736
|
-
value: a ? l :
|
|
40733
|
+
value: a ? l : w,
|
|
40737
40734
|
onChange: ie,
|
|
40738
40735
|
onFocus: (ue) => {
|
|
40739
40736
|
ue.target.style.borderColor = "#1890ff", ue.target.style.boxShadow = "0 0 0 2px rgba(24, 144, 255, 0.2)", x(ue);
|
|
@@ -40966,24 +40963,24 @@ const db = ({
|
|
|
40966
40963
|
style: m,
|
|
40967
40964
|
...b
|
|
40968
40965
|
}) => {
|
|
40969
|
-
const g = re(null), [v,
|
|
40970
|
-
g.current && (g.current.play(),
|
|
40971
|
-
}, [c]),
|
|
40972
|
-
g.current && (g.current.pause(),
|
|
40973
|
-
}, [d]),
|
|
40974
|
-
$.stopPropagation(), v ?
|
|
40975
|
-
}, [v, A,
|
|
40966
|
+
const g = re(null), [v, I] = ee(!1), [k, R] = ee(!1), [N, T] = ee(!1), A = V(() => {
|
|
40967
|
+
g.current && (g.current.play(), I(!0), c?.());
|
|
40968
|
+
}, [c]), w = V(() => {
|
|
40969
|
+
g.current && (g.current.pause(), I(!1), d?.());
|
|
40970
|
+
}, [d]), _ = V(($) => {
|
|
40971
|
+
$.stopPropagation(), v ? w() : A();
|
|
40972
|
+
}, [v, A, w]), P = V(() => {
|
|
40976
40973
|
R(!0), s && !v && A();
|
|
40977
40974
|
}, [s, v, A]), L = V(() => {
|
|
40978
|
-
R(!1), s && v &&
|
|
40979
|
-
}, [s, v,
|
|
40975
|
+
R(!1), s && v && w();
|
|
40976
|
+
}, [s, v, w]), F = V(() => {
|
|
40980
40977
|
T(!0), u?.();
|
|
40981
40978
|
}, [u]), U = V(() => {
|
|
40982
|
-
|
|
40979
|
+
I(!0), c?.();
|
|
40983
40980
|
}, [c]), D = V(() => {
|
|
40984
|
-
|
|
40981
|
+
I(!1), d?.();
|
|
40985
40982
|
}, [d]), E = V(() => {
|
|
40986
|
-
|
|
40983
|
+
I(!1), f?.();
|
|
40987
40984
|
}, [f]), B = V(($) => {
|
|
40988
40985
|
o?.($);
|
|
40989
40986
|
}, [o]);
|
|
@@ -41026,11 +41023,11 @@ const db = ({
|
|
|
41026
41023
|
"div",
|
|
41027
41024
|
{
|
|
41028
41025
|
className: `video-play-button ${k ? "hovered" : ""}`,
|
|
41029
|
-
onClick:
|
|
41026
|
+
onClick: _,
|
|
41030
41027
|
children: v ? /* @__PURE__ */ y(Wb, { className: "play-icon" }) : /* @__PURE__ */ y(Yb, { className: "play-icon" })
|
|
41031
41028
|
}
|
|
41032
41029
|
),
|
|
41033
|
-
!
|
|
41030
|
+
!N && /* @__PURE__ */ y("div", { className: "video-loading-mask", children: /* @__PURE__ */ y("div", { className: "loading-spinner" }) })
|
|
41034
41031
|
] })
|
|
41035
41032
|
}
|
|
41036
41033
|
);
|
|
@@ -41162,13 +41159,13 @@ const XI = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
41162
41159
|
if (!o.current) return;
|
|
41163
41160
|
const g = u, v = o.current, k = (v.offsetWidth - n * (g - 1)) / g, R = new Array(g).fill(0);
|
|
41164
41161
|
e.forEach((T, A) => {
|
|
41165
|
-
const
|
|
41166
|
-
if (!
|
|
41162
|
+
const w = T.id || A, _ = d.current.get(w);
|
|
41163
|
+
if (!_) return;
|
|
41167
41164
|
const P = Math.min(...R), L = R.indexOf(P), F = L * (k + n), U = R[L];
|
|
41168
|
-
|
|
41165
|
+
_.style.position = "absolute", _.style.left = `${F}px`, _.style.top = `${U}px`, _.style.width = `${k}px`, R[L] += _.offsetHeight + n;
|
|
41169
41166
|
});
|
|
41170
|
-
const
|
|
41171
|
-
v.style.height = `${
|
|
41167
|
+
const N = Math.max(...R);
|
|
41168
|
+
v.style.height = `${N}px`;
|
|
41172
41169
|
}, [e, u, n]);
|
|
41173
41170
|
ve(() => {
|
|
41174
41171
|
const g = () => {
|
|
@@ -41199,12 +41196,12 @@ const XI = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
41199
41196
|
...i
|
|
41200
41197
|
},
|
|
41201
41198
|
children: e.map((g, v) => {
|
|
41202
|
-
const
|
|
41199
|
+
const I = g.id || v, k = JI(g);
|
|
41203
41200
|
return /* @__PURE__ */ y(
|
|
41204
41201
|
"div",
|
|
41205
41202
|
{
|
|
41206
41203
|
ref: (R) => {
|
|
41207
|
-
R ? d.current.set(
|
|
41204
|
+
R ? d.current.set(I, R) : d.current.delete(I);
|
|
41208
41205
|
},
|
|
41209
41206
|
className: "waterfall-item",
|
|
41210
41207
|
children: k === "video" ? /* @__PURE__ */ y("div", { style: {
|
|
@@ -41244,7 +41241,7 @@ const XI = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
41244
41241
|
}
|
|
41245
41242
|
)
|
|
41246
41243
|
},
|
|
41247
|
-
|
|
41244
|
+
I
|
|
41248
41245
|
);
|
|
41249
41246
|
})
|
|
41250
41247
|
}
|
|
@@ -41458,22 +41455,22 @@ const ca = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
41458
41455
|
if (r.length === 0)
|
|
41459
41456
|
return { markdown: "", jsonData: [] };
|
|
41460
41457
|
const l = t.split(n).filter((v) => v.trim() !== ""), a = l.length > 0 ? nO(l[0]) : [], i = a.length >= 2, s = i ? a : eO, o = i || l.length > 0 && l[0].includes("展现量") ? 1 : 0, u = s.filter((v) => v !== "日期"), c = u.length, d = [];
|
|
41461
|
-
r.forEach((v,
|
|
41462
|
-
const k =
|
|
41458
|
+
r.forEach((v, I) => {
|
|
41459
|
+
const k = I + o;
|
|
41463
41460
|
if (k >= l.length) return;
|
|
41464
41461
|
const R = l[k];
|
|
41465
|
-
let
|
|
41466
|
-
|
|
41467
|
-
const T = (
|
|
41468
|
-
A[rl("日期")] = v, u.forEach((
|
|
41469
|
-
const P = T(
|
|
41462
|
+
let N = R.split(/[\r\n]+/).map((w) => w.trim()).filter((w) => w !== "");
|
|
41463
|
+
N.length < c && (N = lO(R));
|
|
41464
|
+
const T = (w) => N.length === c * 2 ? N[w * 2] ?? "" : N[w] ?? "", A = {};
|
|
41465
|
+
A[rl("日期")] = v, u.forEach((w, _) => {
|
|
41466
|
+
const P = T(_), L = rO(P), F = rl(w);
|
|
41470
41467
|
A[F] = L;
|
|
41471
41468
|
}), d.push(A);
|
|
41472
41469
|
});
|
|
41473
41470
|
const f = s.filter((v) => {
|
|
41474
|
-
const
|
|
41471
|
+
const I = rl(v);
|
|
41475
41472
|
return d.some((k) => {
|
|
41476
|
-
const R = k[
|
|
41473
|
+
const R = k[I];
|
|
41477
41474
|
return R !== void 0 && String(R).trim() !== "";
|
|
41478
41475
|
});
|
|
41479
41476
|
}), h = `| ${f.join(" | ")} |`, m = `| ${f.map(() => "---").join(" | ")} |`, b = d.map((v) => `| ${f.map((k) => {
|