@vis3/kit 1.1.2 → 1.1.4
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.mjs +142 -137
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as q, jsxs as Ye, Fragment as r4 } from "react/jsx-runtime";
|
|
2
2
|
import * as Y from "react";
|
|
3
|
-
import A2, { forwardRef as jo, useContext as Qn, createContext as Ii, useEffect as tt, createElement as Ar, isValidElement as F7, cloneElement as WS, Children as sD, Fragment as lD, useCallback as
|
|
3
|
+
import A2, { forwardRef as jo, useContext as Qn, createContext as Ii, useEffect as tt, createElement as Ar, isValidElement as F7, cloneElement as WS, Children as sD, Fragment as lD, useCallback as Et, useState as st, useRef as Xt, useMemo as Ce, useLayoutEffect as GS, useImperativeHandle as YS } from "react";
|
|
4
4
|
import { Tooltip as C1, Button as A1, Card as uD, Divider as KS, Dropdown as cD, Image as eo, Table as QD, Form as T7, Popover as JS, Input as eE, Space as tE, List as rE, Tag as M9, message as TD, Spin as fD, Descriptions as hD } from "antd";
|
|
5
5
|
import IQ from "react-dom";
|
|
6
6
|
function to() {
|
|
@@ -3512,7 +3512,7 @@ const EI = (e, t) => {
|
|
|
3512
3512
|
return tt(() => {
|
|
3513
3513
|
r.current = e;
|
|
3514
3514
|
}, [e, t]), r.current;
|
|
3515
|
-
}, $E = (e, t, r, n) => e.getFixedT(t, r, n), HI = (e, t, r, n) =>
|
|
3515
|
+
}, $E = (e, t, r, n) => e.getFixedT(t, r, n), HI = (e, t, r, n) => Et($E(e, t, r, n), [e, t, r, n]), p1 = (e, t = {}) => {
|
|
3516
3516
|
const {
|
|
3517
3517
|
i18n: r
|
|
3518
3518
|
} = t, {
|
|
@@ -3535,7 +3535,7 @@ const EI = (e, t) => {
|
|
|
3535
3535
|
} = o;
|
|
3536
3536
|
let u = e || i || a.options?.defaultNS;
|
|
3537
3537
|
u = w2(u) ? [u] : u || ["translation"], a.reportNamespaces.addUsedNamespaces?.(u);
|
|
3538
|
-
const c = (a.isInitialized || a.initializedStoreOnce) && u.every((x) => lI(x, a, o)), Q = HI(a, t.lng || null, o.nsMode === "fallback" ? u : u[0], l), T = () => Q, f = () => $E(a, t.lng || null, o.nsMode === "fallback" ? u : u[0], l), [h, m] =
|
|
3538
|
+
const c = (a.isInitialized || a.initializedStoreOnce) && u.every((x) => lI(x, a, o)), Q = HI(a, t.lng || null, o.nsMode === "fallback" ? u : u[0], l), T = () => Q, f = () => $E(a, t.lng || null, o.nsMode === "fallback" ? u : u[0], l), [h, m] = st(T);
|
|
3539
3539
|
let g = u.join();
|
|
3540
3540
|
t.lng && (g = `${t.lng}${g}`);
|
|
3541
3541
|
const d = EI(g), p = Xt(!0);
|
|
@@ -5589,7 +5589,7 @@ function rc(e, ...t) {
|
|
|
5589
5589
|
return rc(e, ...t);
|
|
5590
5590
|
}
|
|
5591
5591
|
const N$ = (e, t) => {
|
|
5592
|
-
const [r, n] =
|
|
5592
|
+
const [r, n] = st(() => {
|
|
5593
5593
|
try {
|
|
5594
5594
|
const i = localStorage.getItem(e);
|
|
5595
5595
|
return typeof i != "string" ? (localStorage.setItem(e, JSON.stringify(t)), t) : JSON.parse(i);
|
|
@@ -5610,7 +5610,7 @@ function k9e(e) {
|
|
|
5610
5610
|
tt(() => {
|
|
5611
5611
|
n && (et.changeLanguage(n), i(n));
|
|
5612
5612
|
}, [n, i]);
|
|
5613
|
-
const a =
|
|
5613
|
+
const a = Et(
|
|
5614
5614
|
(o) => {
|
|
5615
5615
|
et.changeLanguage(o.detail), i(o.detail);
|
|
5616
5616
|
},
|
|
@@ -19200,9 +19200,9 @@ const oz = [];
|
|
|
19200
19200
|
function L6(e) {
|
|
19201
19201
|
return e == null ? oz : Array.isArray(e) ? e : [e];
|
|
19202
19202
|
}
|
|
19203
|
-
var
|
|
19203
|
+
var Ht = /* @__PURE__ */ function(e) {
|
|
19204
19204
|
return e[e.Word = 0] = "Word", e[e.Space = 1] = "Space", e[e.Other = 2] = "Other", e;
|
|
19205
|
-
}(
|
|
19205
|
+
}(Ht || (Ht = {}));
|
|
19206
19206
|
const sz = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
|
|
19207
19207
|
let vc;
|
|
19208
19208
|
try {
|
|
@@ -19222,13 +19222,13 @@ function lz(e) {
|
|
|
19222
19222
|
function uz(e) {
|
|
19223
19223
|
return (t) => {
|
|
19224
19224
|
if (!/\S/.test(t))
|
|
19225
|
-
return
|
|
19225
|
+
return Ht.Space;
|
|
19226
19226
|
if (lz(t))
|
|
19227
|
-
return
|
|
19227
|
+
return Ht.Word;
|
|
19228
19228
|
for (let r = 0; r < e.length; r++)
|
|
19229
19229
|
if (t.indexOf(e[r]) > -1)
|
|
19230
|
-
return
|
|
19231
|
-
return
|
|
19230
|
+
return Ht.Word;
|
|
19231
|
+
return Ht.Other;
|
|
19232
19232
|
};
|
|
19233
19233
|
}
|
|
19234
19234
|
class Fe {
|
|
@@ -19484,13 +19484,13 @@ class Fe {
|
|
|
19484
19484
|
let { text: r, from: n, length: i } = this.doc.lineAt(t), a = this.charCategorizer(t), o = t - n, s = t - n;
|
|
19485
19485
|
for (; o > 0; ) {
|
|
19486
19486
|
let l = l1(r, o, !1);
|
|
19487
|
-
if (a(r.slice(l, o)) !=
|
|
19487
|
+
if (a(r.slice(l, o)) != Ht.Word)
|
|
19488
19488
|
break;
|
|
19489
19489
|
o = l;
|
|
19490
19490
|
}
|
|
19491
19491
|
for (; s < i; ) {
|
|
19492
19492
|
let l = l1(r, s);
|
|
19493
|
-
if (a(r.slice(s, l)) !=
|
|
19493
|
+
if (a(r.slice(s, l)) != Ht.Word)
|
|
19494
19494
|
break;
|
|
19495
19495
|
s = l;
|
|
19496
19496
|
}
|
|
@@ -22788,7 +22788,7 @@ function Yz(e, t, r) {
|
|
|
22788
22788
|
let n = e.state.charCategorizer(t), i = n(r);
|
|
22789
22789
|
return (a) => {
|
|
22790
22790
|
let o = n(a);
|
|
22791
|
-
return i ==
|
|
22791
|
+
return i == Ht.Space && (i = o), i == o;
|
|
22792
22792
|
};
|
|
22793
22793
|
}
|
|
22794
22794
|
function Kz(e, t, r, n) {
|
|
@@ -29859,7 +29859,7 @@ const uG = ({ state: e, dispatch: t }) => e.field(Eo, !1) ? (t(e.update({ effect
|
|
|
29859
29859
|
return e.length ? e[0] : TG;
|
|
29860
29860
|
}
|
|
29861
29861
|
}), fG = /* @__PURE__ */ D3.highest(/* @__PURE__ */ Y6.compute([Zm], (e) => e.facet(Zm)));
|
|
29862
|
-
function
|
|
29862
|
+
function _t(e, t) {
|
|
29863
29863
|
return Object.assign(Object.assign({}, t), { apply: lG(e) });
|
|
29864
29864
|
}
|
|
29865
29865
|
const hG = /* @__PURE__ */ me.domEventHandlers({
|
|
@@ -30026,7 +30026,7 @@ function bG(e, t, r, n) {
|
|
|
30026
30026
|
effects: Si.of(l + t.length),
|
|
30027
30027
|
range: le.cursor(l + t.length)
|
|
30028
30028
|
};
|
|
30029
|
-
if (e.charCategorizer(l)(u) !=
|
|
30029
|
+
if (e.charCategorizer(l)(u) != Ht.Word && Xm(e, l, i) > -1 && !SG(e, l, t, i))
|
|
30030
30030
|
return {
|
|
30031
30031
|
changes: { insert: t + t, from: l },
|
|
30032
30032
|
effects: Si.of(l + t.length),
|
|
@@ -30066,11 +30066,11 @@ function SG(e, t, r, n) {
|
|
|
30066
30066
|
}
|
|
30067
30067
|
function Xm(e, t, r) {
|
|
30068
30068
|
let n = e.charCategorizer(t);
|
|
30069
|
-
if (n(e.sliceDoc(t - 1, t)) !=
|
|
30069
|
+
if (n(e.sliceDoc(t - 1, t)) != Ht.Word)
|
|
30070
30070
|
return t;
|
|
30071
30071
|
for (let i of r) {
|
|
30072
30072
|
let a = t - i.length;
|
|
30073
|
-
if (e.sliceDoc(a, t) == i && n(e.sliceDoc(a - 1, a)) !=
|
|
30073
|
+
if (e.sliceDoc(a, t) == i && n(e.sliceDoc(a - 1, a)) != Ht.Word)
|
|
30074
30074
|
return a;
|
|
30075
30075
|
}
|
|
30076
30076
|
return -1;
|
|
@@ -33047,32 +33047,32 @@ const NK = new m1((e, t) => {
|
|
|
33047
33047
|
specialized: [{ term: 326, get: (e) => $K[e] || -1 }, { term: 342, get: (e) => jK[e] || -1 }, { term: 95, get: (e) => FK[e] || -1 }],
|
|
33048
33048
|
tokenPrec: 15124
|
|
33049
33049
|
}), MC = [
|
|
33050
|
-
/* @__PURE__ */
|
|
33050
|
+
/* @__PURE__ */ _t("function ${name}(${params}) {\n ${}\n}", {
|
|
33051
33051
|
label: "function",
|
|
33052
33052
|
detail: "definition",
|
|
33053
33053
|
type: "keyword"
|
|
33054
33054
|
}),
|
|
33055
|
-
/* @__PURE__ */
|
|
33055
|
+
/* @__PURE__ */ _t("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}", {
|
|
33056
33056
|
label: "for",
|
|
33057
33057
|
detail: "loop",
|
|
33058
33058
|
type: "keyword"
|
|
33059
33059
|
}),
|
|
33060
|
-
/* @__PURE__ */
|
|
33060
|
+
/* @__PURE__ */ _t("for (let ${name} of ${collection}) {\n ${}\n}", {
|
|
33061
33061
|
label: "for",
|
|
33062
33062
|
detail: "of loop",
|
|
33063
33063
|
type: "keyword"
|
|
33064
33064
|
}),
|
|
33065
|
-
/* @__PURE__ */
|
|
33065
|
+
/* @__PURE__ */ _t("do {\n ${}\n} while (${})", {
|
|
33066
33066
|
label: "do",
|
|
33067
33067
|
detail: "loop",
|
|
33068
33068
|
type: "keyword"
|
|
33069
33069
|
}),
|
|
33070
|
-
/* @__PURE__ */
|
|
33070
|
+
/* @__PURE__ */ _t("while (${}) {\n ${}\n}", {
|
|
33071
33071
|
label: "while",
|
|
33072
33072
|
detail: "loop",
|
|
33073
33073
|
type: "keyword"
|
|
33074
33074
|
}),
|
|
33075
|
-
/* @__PURE__ */
|
|
33075
|
+
/* @__PURE__ */ _t(`try {
|
|
33076
33076
|
\${}
|
|
33077
33077
|
} catch (\${error}) {
|
|
33078
33078
|
\${}
|
|
@@ -33081,12 +33081,12 @@ const NK = new m1((e, t) => {
|
|
|
33081
33081
|
detail: "/ catch block",
|
|
33082
33082
|
type: "keyword"
|
|
33083
33083
|
}),
|
|
33084
|
-
/* @__PURE__ */
|
|
33084
|
+
/* @__PURE__ */ _t("if (${}) {\n ${}\n}", {
|
|
33085
33085
|
label: "if",
|
|
33086
33086
|
detail: "block",
|
|
33087
33087
|
type: "keyword"
|
|
33088
33088
|
}),
|
|
33089
|
-
/* @__PURE__ */
|
|
33089
|
+
/* @__PURE__ */ _t(`if (\${}) {
|
|
33090
33090
|
\${}
|
|
33091
33091
|
} else {
|
|
33092
33092
|
\${}
|
|
@@ -33095,7 +33095,7 @@ const NK = new m1((e, t) => {
|
|
|
33095
33095
|
detail: "/ else block",
|
|
33096
33096
|
type: "keyword"
|
|
33097
33097
|
}),
|
|
33098
|
-
/* @__PURE__ */
|
|
33098
|
+
/* @__PURE__ */ _t(`class \${name} {
|
|
33099
33099
|
constructor(\${params}) {
|
|
33100
33100
|
\${}
|
|
33101
33101
|
}
|
|
@@ -33104,28 +33104,28 @@ const NK = new m1((e, t) => {
|
|
|
33104
33104
|
detail: "definition",
|
|
33105
33105
|
type: "keyword"
|
|
33106
33106
|
}),
|
|
33107
|
-
/* @__PURE__ */
|
|
33107
|
+
/* @__PURE__ */ _t('import {${names}} from "${module}"\n${}', {
|
|
33108
33108
|
label: "import",
|
|
33109
33109
|
detail: "named",
|
|
33110
33110
|
type: "keyword"
|
|
33111
33111
|
}),
|
|
33112
|
-
/* @__PURE__ */
|
|
33112
|
+
/* @__PURE__ */ _t('import ${name} from "${module}"\n${}', {
|
|
33113
33113
|
label: "import",
|
|
33114
33114
|
detail: "default",
|
|
33115
33115
|
type: "keyword"
|
|
33116
33116
|
})
|
|
33117
33117
|
], ZK = /* @__PURE__ */ MC.concat([
|
|
33118
|
-
/* @__PURE__ */
|
|
33118
|
+
/* @__PURE__ */ _t("interface ${name} {\n ${}\n}", {
|
|
33119
33119
|
label: "interface",
|
|
33120
33120
|
detail: "definition",
|
|
33121
33121
|
type: "keyword"
|
|
33122
33122
|
}),
|
|
33123
|
-
/* @__PURE__ */
|
|
33123
|
+
/* @__PURE__ */ _t("type ${name} = ${type}", {
|
|
33124
33124
|
label: "type",
|
|
33125
33125
|
detail: "definition",
|
|
33126
33126
|
type: "keyword"
|
|
33127
33127
|
}),
|
|
33128
|
-
/* @__PURE__ */
|
|
33128
|
+
/* @__PURE__ */ _t("enum ${name} {\n ${}\n}", {
|
|
33129
33129
|
label: "enum",
|
|
33130
33130
|
detail: "definition",
|
|
33131
33131
|
type: "keyword"
|
|
@@ -34738,49 +34738,49 @@ const Dee = /* @__PURE__ */ [
|
|
|
34738
34738
|
"vars",
|
|
34739
34739
|
"zip"
|
|
34740
34740
|
].map((e) => ({ label: e, type: "function" }))), Vee = [
|
|
34741
|
-
/* @__PURE__ */
|
|
34741
|
+
/* @__PURE__ */ _t("def ${name}(${params}):\n ${}", {
|
|
34742
34742
|
label: "def",
|
|
34743
34743
|
detail: "function",
|
|
34744
34744
|
type: "keyword"
|
|
34745
34745
|
}),
|
|
34746
|
-
/* @__PURE__ */
|
|
34746
|
+
/* @__PURE__ */ _t("for ${name} in ${collection}:\n ${}", {
|
|
34747
34747
|
label: "for",
|
|
34748
34748
|
detail: "loop",
|
|
34749
34749
|
type: "keyword"
|
|
34750
34750
|
}),
|
|
34751
|
-
/* @__PURE__ */
|
|
34751
|
+
/* @__PURE__ */ _t("while ${}:\n ${}", {
|
|
34752
34752
|
label: "while",
|
|
34753
34753
|
detail: "loop",
|
|
34754
34754
|
type: "keyword"
|
|
34755
34755
|
}),
|
|
34756
|
-
/* @__PURE__ */
|
|
34756
|
+
/* @__PURE__ */ _t("try:\n ${}\nexcept ${error}:\n ${}", {
|
|
34757
34757
|
label: "try",
|
|
34758
34758
|
detail: "/ except block",
|
|
34759
34759
|
type: "keyword"
|
|
34760
34760
|
}),
|
|
34761
|
-
/* @__PURE__ */
|
|
34761
|
+
/* @__PURE__ */ _t(`if \${}:
|
|
34762
34762
|
|
|
34763
34763
|
`, {
|
|
34764
34764
|
label: "if",
|
|
34765
34765
|
detail: "block",
|
|
34766
34766
|
type: "keyword"
|
|
34767
34767
|
}),
|
|
34768
|
-
/* @__PURE__ */
|
|
34768
|
+
/* @__PURE__ */ _t("if ${}:\n ${}\nelse:\n ${}", {
|
|
34769
34769
|
label: "if",
|
|
34770
34770
|
detail: "/ else block",
|
|
34771
34771
|
type: "keyword"
|
|
34772
34772
|
}),
|
|
34773
|
-
/* @__PURE__ */
|
|
34773
|
+
/* @__PURE__ */ _t("class ${name}:\n def __init__(self, ${params}):\n ${}", {
|
|
34774
34774
|
label: "class",
|
|
34775
34775
|
detail: "definition",
|
|
34776
34776
|
type: "keyword"
|
|
34777
34777
|
}),
|
|
34778
|
-
/* @__PURE__ */
|
|
34778
|
+
/* @__PURE__ */ _t("import ${module}", {
|
|
34779
34779
|
label: "import",
|
|
34780
34780
|
detail: "statement",
|
|
34781
34781
|
type: "keyword"
|
|
34782
34782
|
}),
|
|
34783
|
-
/* @__PURE__ */
|
|
34783
|
+
/* @__PURE__ */ _t("from ${module} import ${names}", {
|
|
34784
34784
|
label: "from",
|
|
34785
34785
|
detail: "import",
|
|
34786
34786
|
type: "keyword"
|
|
@@ -35879,10 +35879,10 @@ function r1e(e) {
|
|
|
35879
35879
|
}
|
|
35880
35880
|
const n1e = /* @__PURE__ */ Le.mark({ class: "cm-selectionMatch" }), i1e = /* @__PURE__ */ Le.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
|
|
35881
35881
|
function zg(e, t, r, n) {
|
|
35882
|
-
return (r == 0 || e(t.sliceDoc(r - 1, r)) !=
|
|
35882
|
+
return (r == 0 || e(t.sliceDoc(r - 1, r)) != Ht.Word) && (n == t.doc.length || e(t.sliceDoc(n, n + 1)) != Ht.Word);
|
|
35883
35883
|
}
|
|
35884
35884
|
function a1e(e, t, r, n) {
|
|
35885
|
-
return e(t.sliceDoc(r, r + 1)) ==
|
|
35885
|
+
return e(t.sliceDoc(r, r + 1)) == Ht.Word && e(t.sliceDoc(n - 1, n)) == Ht.Word;
|
|
35886
35886
|
}
|
|
35887
35887
|
const o1e = /* @__PURE__ */ wt.fromClass(class {
|
|
35888
35888
|
constructor(e) {
|
|
@@ -36020,7 +36020,7 @@ function c6(e, t, r, n) {
|
|
|
36020
36020
|
return new F6(t.doc, e.unquoted, r, n, e.caseSensitive ? void 0 : (i) => i.toLowerCase(), e.wholeWord ? Q1e(t.doc, t.charCategorizer(t.selection.main.head)) : void 0);
|
|
36021
36021
|
}
|
|
36022
36022
|
function Q1e(e, t) {
|
|
36023
|
-
return (r, n, i, a) => ((a > r || a + i.length < n) && (a = Math.max(0, r - 2), i = e.sliceString(a, Math.min(e.length, n + 2))), (t(Hl(i, r - a)) !=
|
|
36023
|
+
return (r, n, i, a) => ((a > r || a + i.length < n) && (a = Math.max(0, r - 2), i = e.sliceString(a, Math.min(e.length, n + 2))), (t(Hl(i, r - a)) != Ht.Word || t(_l(i, r - a)) != Ht.Word) && (t(_l(i, n - a)) != Ht.Word || t(Hl(i, n - a)) != Ht.Word));
|
|
36024
36024
|
}
|
|
36025
36025
|
class T1e extends UA {
|
|
36026
36026
|
constructor(t) {
|
|
@@ -36083,7 +36083,7 @@ function _l(e, t) {
|
|
|
36083
36083
|
return e.slice(t, l1(e, t));
|
|
36084
36084
|
}
|
|
36085
36085
|
function f1e(e) {
|
|
36086
|
-
return (t, r, n) => !n[0].length || (e(Hl(n.input, n.index)) !=
|
|
36086
|
+
return (t, r, n) => !n[0].length || (e(Hl(n.input, n.index)) != Ht.Word || e(_l(n.input, n.index)) != Ht.Word) && (e(_l(n.input, n.index + n[0].length)) != Ht.Word || e(Hl(n.input, n.index + n[0].length)) != Ht.Word);
|
|
36087
36087
|
}
|
|
36088
36088
|
class h1e extends UA {
|
|
36089
36089
|
nextMatch(t, r, n) {
|
|
@@ -37105,7 +37105,7 @@ function e2e(e) {
|
|
|
37105
37105
|
basicSetup: x = !0,
|
|
37106
37106
|
root: O,
|
|
37107
37107
|
initialState: v
|
|
37108
|
-
} = e, [L, b] =
|
|
37108
|
+
} = e, [L, b] = st(), [S, E] = st(), [C, A] = st(), w = me.theme({
|
|
37109
37109
|
"&": {
|
|
37110
37110
|
height: c,
|
|
37111
37111
|
minHeight: Q,
|
|
@@ -37242,7 +37242,7 @@ var t2e = ["className", "value", "selection", "extensions", "onChange", "onStati
|
|
|
37242
37242
|
state: C,
|
|
37243
37243
|
view: A
|
|
37244
37244
|
}), [E, w, C, A]);
|
|
37245
|
-
var P =
|
|
37245
|
+
var P = Et((B) => {
|
|
37246
37246
|
E.current = B, M(B);
|
|
37247
37247
|
}, [M]);
|
|
37248
37248
|
if (typeof n != "string")
|
|
@@ -37524,13 +37524,13 @@ function Qf({ className: e }) {
|
|
|
37524
37524
|
}
|
|
37525
37525
|
const d2e = (e) => /* @__PURE__ */ Y.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M16.6667 17.4998H3.33333C2.87308 17.4998 2.5 17.1267 2.5 16.6664V3.33309C2.5 2.87285 2.87308 2.49976 3.33333 2.49976H16.6667C17.1269 2.49976 17.5 2.87285 17.5 3.33309V16.6664C17.5 17.1267 17.1269 17.4998 16.6667 17.4998Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.49919 3.33309C2.49919 2.87285 2.87227 2.49976 3.33252 2.49976H8.33252V8.33309H2.49919V3.33309Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { d: "M14.5825 14.5832L10.4159 10.4165M10.4159 10.4165V13.3332M10.4159 10.4165H13.3325", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), p2e = (e) => /* @__PURE__ */ Y.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M16.6667 17.4998H3.33333C2.87308 17.4998 2.5 17.1267 2.5 16.6664V3.33309C2.5 2.87285 2.87308 2.49976 3.33333 2.49976H16.6667C17.1269 2.49976 17.5 2.87285 17.5 3.33309V16.6664C17.5 17.1267 17.1269 17.4998 16.6667 17.4998Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.49919 3.33309C2.49919 2.87285 2.87227 2.49976 3.33252 2.49976H8.33252V8.33309H2.49919V3.33309Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { d: "M10.4159 10.4165L14.5825 14.5832M14.5825 14.5832V11.6665M14.5825 14.5832H11.6659", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
37526
37526
|
function m2e({ btnRef: e, activated: t, onChange: r, title: n, onTitle: i, offTitle: a, icon: o, placement: s, onIcon: l, offIcon: u, className: c }) {
|
|
37527
|
-
const [Q, T] =
|
|
37527
|
+
const [Q, T] = st(t);
|
|
37528
37528
|
YS(e, () => ({
|
|
37529
37529
|
setActivated: T
|
|
37530
37530
|
})), tt(() => {
|
|
37531
37531
|
T(t);
|
|
37532
37532
|
}, [t]);
|
|
37533
|
-
const f =
|
|
37533
|
+
const f = Et((g) => {
|
|
37534
37534
|
T(g), r?.(g);
|
|
37535
37535
|
}, [r]), h = Ce(() => l && u ? Q ? l : u : o, [Q, l, u, o]), m = Ce(() => i && a ? Q ? i : a : n, [Q, i, a, n]);
|
|
37536
37536
|
return /* @__PURE__ */ q(C1, { title: m, placement: s, children: /* @__PURE__ */ q(
|
|
@@ -37547,7 +37547,7 @@ function m2e({ btnRef: e, activated: t, onChange: r, title: n, onTitle: i, offTi
|
|
|
37547
37547
|
const is = jo(m2e);
|
|
37548
37548
|
is.displayName = "BinaryButton";
|
|
37549
37549
|
function Ir({ elementRef: e }) {
|
|
37550
|
-
const [t, r] =
|
|
37550
|
+
const [t, r] = st(!1), { t: n } = p1(), i = Et(() => {
|
|
37551
37551
|
if (r(!t), t)
|
|
37552
37552
|
try {
|
|
37553
37553
|
document.exitFullscreen();
|
|
@@ -37631,7 +37631,7 @@ function b2e() {
|
|
|
37631
37631
|
}
|
|
37632
37632
|
const aM = (e) => /* @__PURE__ */ Y.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M5.01415 2.0835C4.55392 2.0835 4.18082 2.45659 4.18082 2.91683V5.62578H2.91414C2.45391 5.62578 2.08081 5.99887 2.08081 6.45911V17.0835C2.08081 17.5438 2.45391 17.9169 2.91414 17.9169H13.5417C14.0019 17.9169 14.375 17.5438 14.375 17.0835V15.7735H17.0856C17.5458 15.7735 17.9189 15.4004 17.9189 14.9401V2.91683C17.9189 2.45659 17.5458 2.0835 17.0856 2.0835H5.01415ZM14.375 14.1068V6.45911C14.375 5.99887 14.0019 5.62578 13.5417 5.62578H5.84748V3.75016H16.2523V14.1068H14.375ZM3.74747 16.2502V7.29244H12.7084V16.2502H3.74747Z", fill: "currentColor" }));
|
|
37633
37633
|
function r5(e) {
|
|
37634
|
-
const { t } = p1(), [r, n] =
|
|
37634
|
+
const { t } = p1(), [r, n] = st(t("copy")), i = Et(() => {
|
|
37635
37635
|
try {
|
|
37636
37636
|
if (typeof e == "object") {
|
|
37637
37637
|
const o = JSON.stringify(e);
|
|
@@ -37650,7 +37650,7 @@ function r5(e) {
|
|
|
37650
37650
|
}
|
|
37651
37651
|
const S2e = (e) => /* @__PURE__ */ Y.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M2.5 6.6665C2.76447 7.17455 3.16519 7.64584 3.67615 8.06459C5.10875 9.23871 7.40792 9.99984 10 9.99984C12.5921 9.99984 14.8912 9.23871 16.3238 8.06459C16.8348 7.64584 17.2355 7.17455 17.5 6.6665", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { d: "M12.0742 10L12.9369 13.2197", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { d: "M15.5645 8.89746L17.9215 11.2545", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { d: "M2.08398 11.2545L4.44101 8.89746", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { d: "M7.05273 13.2198L7.91544 10", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), E2e = (e) => /* @__PURE__ */ Y.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M10.0013 15C14.6037 15 18.3346 10 18.3346 10C18.3346 10 14.6037 5 10.0013 5C5.39893 5 1.66797 10 1.66797 10C1.66797 10 5.39893 15 10.0013 15Z", stroke: "currentColor", strokeWidth: 2, strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { d: "M10.0013 12.0832C11.1519 12.0832 12.0846 11.1504 12.0846 9.99984C12.0846 8.84925 11.1519 7.9165 10.0013 7.9165C8.85072 7.9165 7.91797 8.84925 7.91797 9.99984C7.91797 11.1504 8.85072 12.0832 10.0013 12.0832Z", stroke: "currentColor", strokeWidth: 2, strokeLinejoin: "round" }));
|
|
37652
37652
|
function n5(e = !0, t) {
|
|
37653
|
-
const [r, n] =
|
|
37653
|
+
const [r, n] = st(e), { t: i } = p1(), a = Et((l) => {
|
|
37654
37654
|
n(l), t?.(l);
|
|
37655
37655
|
}, [t]), o = Ce(() => /* @__PURE__ */ q(is, { activated: r, onTitle: i("renderer.closePreview"), offTitle: i("renderer.openPreview"), onIcon: /* @__PURE__ */ q(E2e, {}), offIcon: /* @__PURE__ */ q(S2e, {}), onChange: a }), [r, a, i]), s = Ce(() => ({ preview: r }), [r]);
|
|
37656
37656
|
return [o, s, a];
|
|
@@ -37703,7 +37703,7 @@ const aO = [
|
|
|
37703
37703
|
|
|
37704
37704
|
`;
|
|
37705
37705
|
function _2e(e = "raw") {
|
|
37706
|
-
const [t, r] =
|
|
37706
|
+
const [t, r] = st(e), n = Ce(() => ({
|
|
37707
37707
|
items: aO,
|
|
37708
37708
|
onClick: ({ key: o }) => {
|
|
37709
37709
|
r(o);
|
|
@@ -37722,7 +37722,7 @@ function _2e(e = "raw") {
|
|
|
37722
37722
|
}
|
|
37723
37723
|
const oO = (e) => /* @__PURE__ */ Y.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M2.41797 3.53141C2.41797 3.02515 2.82837 2.61475 3.33464 2.61475H16.668C17.1742 2.61475 17.5846 3.02515 17.5846 3.53141C17.5846 4.03767 17.1742 4.44808 16.668 4.44808L3.33464 4.44808C2.82837 4.44808 2.41797 4.03767 2.41797 3.53141Z", fill: "currentColor" }), /* @__PURE__ */ Y.createElement("path", { d: "M2.41797 9.36475C2.41797 8.85849 2.82837 8.44808 3.33464 8.44808L13.7212 8.44808C15.8549 8.44808 17.5846 10.1778 17.5846 12.3115C17.5846 14.4452 15.8549 16.1749 13.7212 16.1749H13.1571C13.0944 16.1749 13.0332 16.1686 12.974 16.1566V17.2032C12.974 17.3541 12.8008 17.4393 12.6813 17.3473L10.0723 15.3389C9.97775 15.2661 9.97775 15.1235 10.0723 15.0507L12.6813 13.0423C12.8008 12.9503 12.974 13.0355 12.974 13.1864V14.3598C13.0332 14.3478 13.0944 14.3415 13.1571 14.3415H13.7212C14.8424 14.3415 15.7513 13.4326 15.7513 12.3115C15.7513 11.1903 14.8424 10.2814 13.7212 10.2814L3.33464 10.2814C2.82837 10.2814 2.41797 9.87101 2.41797 9.36475Z", fill: "currentColor" }), /* @__PURE__ */ Y.createElement("path", { d: "M2.41797 15.1948C2.41797 14.6886 2.82837 14.2782 3.33464 14.2782L7.48706 14.2782C7.99332 14.2782 8.40373 14.6886 8.40373 15.1948C8.40373 15.7011 7.99332 16.1115 7.48706 16.1115H3.33464C2.82837 16.1115 2.41797 15.7011 2.41797 15.1948Z", fill: "currentColor" }));
|
|
37724
37724
|
function i5(e = !1) {
|
|
37725
|
-
const [t, r] =
|
|
37725
|
+
const [t, r] = st(e), { t: n } = p1(), i = t ?? !1, a = Ce(() => /* @__PURE__ */ q(is, { activated: i, onTitle: n("renderer.cancelLineWrap"), offTitle: n("renderer.lineWrap"), onIcon: /* @__PURE__ */ q(oO, {}), offIcon: /* @__PURE__ */ q(oO, {}), onChange: r }), [i, n]), o = Ce(() => ({ wrap: i }), [i]);
|
|
37726
37726
|
return [a, o, r];
|
|
37727
37727
|
}
|
|
37728
37728
|
function sO(e) {
|
|
@@ -66682,7 +66682,7 @@ function bt() {
|
|
|
66682
66682
|
}(a || (a = {})), zr.default = a, zr;
|
|
66683
66683
|
}
|
|
66684
66684
|
var u7 = {}, VL;
|
|
66685
|
-
function
|
|
66685
|
+
function lt() {
|
|
66686
66686
|
if (VL) return u7;
|
|
66687
66687
|
VL = 1, Object.defineProperty(u7, "__esModule", { value: !0 });
|
|
66688
66688
|
var e = function() {
|
|
@@ -66743,7 +66743,7 @@ function gt() {
|
|
|
66743
66743
|
return u && u.__esModule ? u : { default: u };
|
|
66744
66744
|
};
|
|
66745
66745
|
Object.defineProperty(Zr, "__esModule", { value: !0 });
|
|
66746
|
-
var n = we(), i = r(bt()), a = r(y1()), o = r(
|
|
66746
|
+
var n = we(), i = r(bt()), a = r(y1()), o = r(lt()), s = Ts(), l;
|
|
66747
66747
|
return function(u) {
|
|
66748
66748
|
var c = 7.2, Q = 72, T = {
|
|
66749
66749
|
em: function(G) {
|
|
@@ -67168,7 +67168,7 @@ function y1() {
|
|
|
67168
67168
|
return u && u.__esModule ? u : { default: u };
|
|
67169
67169
|
};
|
|
67170
67170
|
Object.defineProperty(k2, "__esModule", { value: !0 });
|
|
67171
|
-
var i = n(gt()), a = n(_P()), o = n(
|
|
67171
|
+
var i = n(gt()), a = n(_P()), o = n(lt()), s = we(), l = function() {
|
|
67172
67172
|
function u(c, Q, T) {
|
|
67173
67173
|
var f, h;
|
|
67174
67174
|
this._string = c, this.configuration = T, this.macroCount = 0, this.i = 0, this.currentCS = "";
|
|
@@ -67791,7 +67791,7 @@ function Xe() {
|
|
|
67791
67791
|
e.ParserConfiguration = c;
|
|
67792
67792
|
}(li)), li;
|
|
67793
67793
|
}
|
|
67794
|
-
var
|
|
67794
|
+
var ut = {}, ci = {}, jL;
|
|
67795
67795
|
function l5() {
|
|
67796
67796
|
if (jL) return ci;
|
|
67797
67797
|
jL = 1, Object.defineProperty(ci, "__esModule", { value: !0 }), ci.Macro = ci.Symbol = void 0;
|
|
@@ -67848,9 +67848,9 @@ function l5() {
|
|
|
67848
67848
|
}
|
|
67849
67849
|
var FL;
|
|
67850
67850
|
function qe() {
|
|
67851
|
-
if (FL) return
|
|
67851
|
+
if (FL) return ut;
|
|
67852
67852
|
FL = 1;
|
|
67853
|
-
var e =
|
|
67853
|
+
var e = ut && ut.__extends || /* @__PURE__ */ function() {
|
|
67854
67854
|
var m = function(g, d) {
|
|
67855
67855
|
return m = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(p, y) {
|
|
67856
67856
|
p.__proto__ = y;
|
|
@@ -67867,7 +67867,7 @@ function qe() {
|
|
|
67867
67867
|
}
|
|
67868
67868
|
g.prototype = d === null ? Object.create(d) : (p.prototype = d.prototype, new p());
|
|
67869
67869
|
};
|
|
67870
|
-
}(), t =
|
|
67870
|
+
}(), t = ut && ut.__read || function(m, g) {
|
|
67871
67871
|
var d = typeof Symbol == "function" && m[Symbol.iterator];
|
|
67872
67872
|
if (!d) return m;
|
|
67873
67873
|
var p = d.call(m), y, x = [], O;
|
|
@@ -67883,7 +67883,7 @@ function qe() {
|
|
|
67883
67883
|
}
|
|
67884
67884
|
}
|
|
67885
67885
|
return x;
|
|
67886
|
-
}, r =
|
|
67886
|
+
}, r = ut && ut.__values || function(m) {
|
|
67887
67887
|
var g = typeof Symbol == "function" && Symbol.iterator, d = g && m[g], p = 0;
|
|
67888
67888
|
if (d) return d.call(m);
|
|
67889
67889
|
if (m && typeof m.length == "number") return {
|
|
@@ -67892,17 +67892,17 @@ function qe() {
|
|
|
67892
67892
|
}
|
|
67893
67893
|
};
|
|
67894
67894
|
throw new TypeError(g ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
67895
|
-
}, n =
|
|
67895
|
+
}, n = ut && ut.__spreadArray || function(m, g, d) {
|
|
67896
67896
|
if (d || arguments.length === 2) for (var p = 0, y = g.length, x; p < y; p++)
|
|
67897
67897
|
(x || !(p in g)) && (x || (x = Array.prototype.slice.call(g, 0, p)), x[p] = g[p]);
|
|
67898
67898
|
return m.concat(x || Array.prototype.slice.call(g));
|
|
67899
67899
|
};
|
|
67900
|
-
Object.defineProperty(
|
|
67900
|
+
Object.defineProperty(ut, "__esModule", { value: !0 }), ut.EnvironmentMap = ut.CommandMap = ut.MacroMap = ut.DelimiterMap = ut.CharacterMap = ut.AbstractParseMap = ut.RegExpMap = ut.AbstractSymbolMap = ut.parseResult = void 0;
|
|
67901
67901
|
var i = l5(), a = v8();
|
|
67902
67902
|
function o(m) {
|
|
67903
67903
|
return m === void 0 ? !0 : m;
|
|
67904
67904
|
}
|
|
67905
|
-
|
|
67905
|
+
ut.parseResult = o;
|
|
67906
67906
|
var s = function() {
|
|
67907
67907
|
function m(g, d) {
|
|
67908
67908
|
this._name = g, this._parser = d, a.MapHandler.register(this);
|
|
@@ -67929,7 +67929,7 @@ function qe() {
|
|
|
67929
67929
|
configurable: !0
|
|
67930
67930
|
}), m;
|
|
67931
67931
|
}();
|
|
67932
|
-
|
|
67932
|
+
ut.AbstractSymbolMap = s;
|
|
67933
67933
|
var l = function(m) {
|
|
67934
67934
|
e(g, m);
|
|
67935
67935
|
function g(d, p, y) {
|
|
@@ -67942,7 +67942,7 @@ function qe() {
|
|
|
67942
67942
|
return this.contains(d) ? d : null;
|
|
67943
67943
|
}, g;
|
|
67944
67944
|
}(s);
|
|
67945
|
-
|
|
67945
|
+
ut.RegExpMap = l;
|
|
67946
67946
|
var u = function(m) {
|
|
67947
67947
|
e(g, m);
|
|
67948
67948
|
function g() {
|
|
@@ -67959,7 +67959,7 @@ function qe() {
|
|
|
67959
67959
|
this.map.delete(d);
|
|
67960
67960
|
}, g;
|
|
67961
67961
|
}(s);
|
|
67962
|
-
|
|
67962
|
+
ut.AbstractParseMap = u;
|
|
67963
67963
|
var c = function(m) {
|
|
67964
67964
|
e(g, m);
|
|
67965
67965
|
function g(d, p, y) {
|
|
@@ -67982,7 +67982,7 @@ function qe() {
|
|
|
67982
67982
|
}
|
|
67983
67983
|
return g;
|
|
67984
67984
|
}(u);
|
|
67985
|
-
|
|
67985
|
+
ut.CharacterMap = c;
|
|
67986
67986
|
var Q = function(m) {
|
|
67987
67987
|
e(g, m);
|
|
67988
67988
|
function g() {
|
|
@@ -67993,7 +67993,7 @@ function qe() {
|
|
|
67993
67993
|
return m.prototype.parse.call(this, [y, "\\" + x]);
|
|
67994
67994
|
}, g;
|
|
67995
67995
|
}(c);
|
|
67996
|
-
|
|
67996
|
+
ut.DelimiterMap = Q;
|
|
67997
67997
|
var T = function(m) {
|
|
67998
67998
|
e(g, m);
|
|
67999
67999
|
function g(d, p, y) {
|
|
@@ -68022,7 +68022,7 @@ function qe() {
|
|
|
68022
68022
|
return !O || !v ? null : o(v.apply(void 0, n([y, O.symbol], t(O.args), !1)));
|
|
68023
68023
|
}, g;
|
|
68024
68024
|
}(u);
|
|
68025
|
-
|
|
68025
|
+
ut.MacroMap = T;
|
|
68026
68026
|
var f = function(m) {
|
|
68027
68027
|
e(g, m);
|
|
68028
68028
|
function g() {
|
|
@@ -68038,7 +68038,7 @@ function qe() {
|
|
|
68038
68038
|
return y.currentCS = L, o(b);
|
|
68039
68039
|
}, g;
|
|
68040
68040
|
}(T);
|
|
68041
|
-
|
|
68041
|
+
ut.CommandMap = f;
|
|
68042
68042
|
var h = function(m) {
|
|
68043
68043
|
e(g, m);
|
|
68044
68044
|
function g(d, p, y, x) {
|
|
@@ -68050,7 +68050,7 @@ function qe() {
|
|
|
68050
68050
|
return !O || !v ? null : o(this.parser(y, O.symbol, v, O.args));
|
|
68051
68051
|
}, g;
|
|
68052
68052
|
}(T);
|
|
68053
|
-
return
|
|
68053
|
+
return ut.EnvironmentMap = h, ut;
|
|
68054
68054
|
}
|
|
68055
68055
|
var He = {}, n1 = {}, qL;
|
|
68056
68056
|
function u5() {
|
|
@@ -68106,7 +68106,7 @@ function u5() {
|
|
|
68106
68106
|
return l && l.__esModule ? l : { default: l };
|
|
68107
68107
|
};
|
|
68108
68108
|
Object.defineProperty(n1, "__esModule", { value: !0 }), n1.BaseItem = n1.MmlStack = void 0;
|
|
68109
|
-
var a = i(
|
|
68109
|
+
var a = i(lt()), o = function() {
|
|
68110
68110
|
function l(u) {
|
|
68111
68111
|
this._nodes = u;
|
|
68112
68112
|
}
|
|
@@ -68298,7 +68298,7 @@ function R3() {
|
|
|
68298
68298
|
return R && R.__esModule ? R : { default: R };
|
|
68299
68299
|
};
|
|
68300
68300
|
Object.defineProperty(He, "__esModule", { value: !0 }), He.EquationItem = He.EqnArrayItem = He.ArrayItem = He.DotsItem = He.NonscriptItem = He.NotItem = He.FnItem = He.MmlItem = He.CellItem = He.PositionItem = He.StyleItem = He.EndItem = He.BeginItem = He.RightItem = He.Middle = He.LeftItem = He.OverItem = He.SubsupItem = He.PrimeItem = He.CloseItem = He.OpenItem = He.StopItem = He.StartItem = void 0;
|
|
68301
|
-
var i = v8(), a = Ts(), o = we(), s = n(
|
|
68301
|
+
var i = v8(), a = Ts(), o = we(), s = n(lt()), l = n(gt()), u = n(bt()), c = u5(), Q = function(R) {
|
|
68302
68302
|
e(V, R);
|
|
68303
68303
|
function V(_, D) {
|
|
68304
68304
|
var Z = R.call(this, _) || this;
|
|
@@ -69139,7 +69139,7 @@ function G2() {
|
|
|
69139
69139
|
return O && O.__esModule ? O : { default: O };
|
|
69140
69140
|
};
|
|
69141
69141
|
Object.defineProperty(u1, "__esModule", { value: !0 });
|
|
69142
|
-
var o = n(R3()), s = a(bt()), l = a(
|
|
69142
|
+
var o = n(R3()), s = a(bt()), l = a(lt()), u = a(y1()), c = v1(), Q = a(gt()), T = we(), f = y4(), h = V3(), m = Ts(), g = e1(), d = {}, p = 1.2 / 0.85, y = {
|
|
69143
69143
|
fontfamily: 1,
|
|
69144
69144
|
fontsize: 1,
|
|
69145
69145
|
fontweight: 1,
|
|
@@ -70396,7 +70396,7 @@ function Pf() {
|
|
|
70396
70396
|
return x && x.__esModule ? x : { default: x };
|
|
70397
70397
|
}, o;
|
|
70398
70398
|
Object.defineProperty(Pt, "__esModule", { value: !0 }), Pt.BaseConfiguration = Pt.BaseTags = Pt.Other = void 0;
|
|
70399
|
-
var s = Xe(), l = v8(), u = a(
|
|
70399
|
+
var s = Xe(), l = v8(), u = a(lt()), c = a(bt()), Q = qe(), T = n(R3()), f = y4();
|
|
70400
70400
|
R5e();
|
|
70401
70401
|
var h = zM();
|
|
70402
70402
|
new Q.CharacterMap("remap", null, {
|
|
@@ -70523,7 +70523,7 @@ function wP() {
|
|
|
70523
70523
|
return c && c.__esModule ? c : { default: c };
|
|
70524
70524
|
};
|
|
70525
70525
|
Object.defineProperty(O2, "__esModule", { value: !0 }), O2.FlalignItem = O2.MultlineItem = void 0;
|
|
70526
|
-
var n = R3(), i = r(gt()), a = r(bt()), o = r(
|
|
70526
|
+
var n = R3(), i = r(gt()), a = r(bt()), o = r(lt()), s = v1(), l = function(c) {
|
|
70527
70527
|
e(Q, c);
|
|
70528
70528
|
function Q(T) {
|
|
70529
70529
|
for (var f = [], h = 1; h < arguments.length; h++)
|
|
@@ -70629,7 +70629,7 @@ function fs() {
|
|
|
70629
70629
|
return m && m.__esModule ? m : { default: m };
|
|
70630
70630
|
};
|
|
70631
70631
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.NEW_OPS = e.AmsMethods = void 0;
|
|
70632
|
-
var i = n(gt()), a = n(I3()), o = n(bt()), s = v1(), l = n(y1()), u = n(
|
|
70632
|
+
var i = n(gt()), a = n(I3()), o = n(bt()), s = v1(), l = n(y1()), u = n(lt()), c = l5(), Q = n(G2()), T = we();
|
|
70633
70633
|
e.AmsMethods = {}, e.AmsMethods.AmsEqnArray = function(m, g, d, p, y, x, O) {
|
|
70634
70634
|
var v = m.GetBrackets("\\begin{" + g.getName() + "}"), L = Q.default.EqnArray(m, g, d, p, y, x, O);
|
|
70635
70635
|
return i.default.setArrayAlign(L, v);
|
|
@@ -71348,7 +71348,7 @@ function F5e() {
|
|
|
71348
71348
|
return s && s.__esModule ? s : { default: s };
|
|
71349
71349
|
};
|
|
71350
71350
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.BboxConfiguration = e.BboxMethods = void 0;
|
|
71351
|
-
var r = Xe(), n = qe(), i = t(
|
|
71351
|
+
var r = Xe(), n = qe(), i = t(lt());
|
|
71352
71352
|
e.BboxMethods = {}, e.BboxMethods.BBox = function(s, l) {
|
|
71353
71353
|
for (var u = s.GetBrackets(l, ""), c = s.ParseArg(l), Q = u.split(/,/), T, f, h, m = 0, g = Q.length; m < g; m++) {
|
|
71354
71354
|
var d = Q[m].trim(), p = d.match(/^(\.\d+|\d+(\.\d*)?)(pt|em|ex|mu|px|in|cm|mm)$/);
|
|
@@ -71570,7 +71570,7 @@ function z5e() {
|
|
|
71570
71570
|
return a && a.__esModule ? a : { default: a };
|
|
71571
71571
|
};
|
|
71572
71572
|
Object.defineProperty(i6, "__esModule", { value: !0 });
|
|
71573
|
-
var t = e(G2()), r = we(), n = e(
|
|
71573
|
+
var t = e(G2()), r = we(), n = e(lt()), i = {};
|
|
71574
71574
|
return i.Macro = t.default.Macro, i.Braket = function(a, o, s, l, u, c) {
|
|
71575
71575
|
var Q = a.GetNext();
|
|
71576
71576
|
if (Q === "")
|
|
@@ -71904,7 +71904,7 @@ function W5e() {
|
|
|
71904
71904
|
return c && c.__esModule ? c : { default: c };
|
|
71905
71905
|
};
|
|
71906
71906
|
Object.defineProperty(H1, "__esModule", { value: !0 }), H1.ProofTreeItem = void 0;
|
|
71907
|
-
var a = i(
|
|
71907
|
+
var a = i(lt()), o = u5(), s = i(_P()), l = n(Df()), u = function(c) {
|
|
71908
71908
|
e(Q, c);
|
|
71909
71909
|
function Q() {
|
|
71910
71910
|
var T = c !== null && c.apply(this, arguments) || this;
|
|
@@ -71980,7 +71980,7 @@ function G5e() {
|
|
|
71980
71980
|
return h && h.__esModule ? h : { default: h };
|
|
71981
71981
|
};
|
|
71982
71982
|
Object.defineProperty(c1, "__esModule", { value: !0 });
|
|
71983
|
-
var o = a(
|
|
71983
|
+
var o = a(lt()), s = a(y1()), l = a(gt()), u = r(Df()), c = {};
|
|
71984
71984
|
c.Prooftree = function(h, m) {
|
|
71985
71985
|
h.Push(m);
|
|
71986
71986
|
var g = h.itemFactory.create("proofTree").setProperties({
|
|
@@ -72370,7 +72370,7 @@ function e0e() {
|
|
|
72370
72370
|
return h && h.__esModule ? h : { default: h };
|
|
72371
72371
|
}, n;
|
|
72372
72372
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CasesConfiguration = e.CasesMethods = e.CasesTags = e.CasesBeginItem = void 0;
|
|
72373
|
-
var i = Xe(), a = qe(), o = r(gt()), s = r(G2()), l = r(
|
|
72373
|
+
var i = Xe(), a = qe(), o = r(gt()), s = r(G2()), l = r(lt()), u = R3(), c = CP(), Q = MP(), T = function(h) {
|
|
72374
72374
|
t(m, h);
|
|
72375
72375
|
function m() {
|
|
72376
72376
|
return h !== null && h.apply(this, arguments) || this;
|
|
@@ -72645,7 +72645,7 @@ function i0e() {
|
|
|
72645
72645
|
return o && o.__esModule ? o : { default: o };
|
|
72646
72646
|
};
|
|
72647
72647
|
Object.defineProperty(c3, "__esModule", { value: !0 }), c3.ColorModel = void 0;
|
|
72648
|
-
var r = t(
|
|
72648
|
+
var r = t(lt()), n = n0e(), i = /* @__PURE__ */ new Map(), a = function() {
|
|
72649
72649
|
function o() {
|
|
72650
72650
|
this.userColors = /* @__PURE__ */ new Map();
|
|
72651
72651
|
}
|
|
@@ -72796,7 +72796,7 @@ function s0e() {
|
|
|
72796
72796
|
return l && l.__esModule ? l : { default: l };
|
|
72797
72797
|
};
|
|
72798
72798
|
Object.defineProperty(_r, "__esModule", { value: !0 }), _r.ColortblConfiguration = _r.ColorArrayItem = void 0;
|
|
72799
|
-
var r = R3(), n = Xe(), i = qe(), a = t(
|
|
72799
|
+
var r = R3(), n = Xe(), i = qe(), a = t(lt()), o = function(l) {
|
|
72800
72800
|
e(u, l);
|
|
72801
72801
|
function u() {
|
|
72802
72802
|
var c = l !== null && l.apply(this, arguments) || this;
|
|
@@ -72852,7 +72852,7 @@ function x8() {
|
|
|
72852
72852
|
return a && a.__esModule ? a : { default: a };
|
|
72853
72853
|
};
|
|
72854
72854
|
Object.defineProperty(a6, "__esModule", { value: !0 });
|
|
72855
|
-
var t = e(gt()), r = e(
|
|
72855
|
+
var t = e(gt()), r = e(lt()), n = l5(), i;
|
|
72856
72856
|
return function(a) {
|
|
72857
72857
|
function o(d, p) {
|
|
72858
72858
|
var y = [d, p.char];
|
|
@@ -72973,7 +72973,7 @@ function Vf() {
|
|
|
72973
72973
|
return c && c.__esModule ? c : { default: c };
|
|
72974
72974
|
};
|
|
72975
72975
|
Object.defineProperty(V2, "__esModule", { value: !0 });
|
|
72976
|
-
var i = n(
|
|
72976
|
+
var i = n(lt()), a = r(qe()), o = n(G2()), s = n(gt()), l = n(x8()), u = {};
|
|
72977
72977
|
return u.NewCommand = function(c, Q) {
|
|
72978
72978
|
var T = l.default.GetCsNameArgument(c, Q), f = l.default.GetArgCount(c, Q), h = c.GetBrackets(Q), m = c.GetArgument(Q);
|
|
72979
72979
|
l.default.addMacro(c, T, u.Macro, [m, f, h]);
|
|
@@ -73076,7 +73076,7 @@ function PP() {
|
|
|
73076
73076
|
return a && a.__esModule ? a : { default: a };
|
|
73077
73077
|
};
|
|
73078
73078
|
Object.defineProperty(T3, "__esModule", { value: !0 }), T3.BeginEnvItem = void 0;
|
|
73079
|
-
var r = t(
|
|
73079
|
+
var r = t(lt()), n = u5(), i = function(a) {
|
|
73080
73080
|
e(o, a);
|
|
73081
73081
|
function o() {
|
|
73082
73082
|
return a !== null && a.apply(this, arguments) || this;
|
|
@@ -73220,7 +73220,7 @@ function u0e() {
|
|
|
73220
73220
|
return T && T.__esModule ? T : { default: T };
|
|
73221
73221
|
}, i;
|
|
73222
73222
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.EmpheqConfiguration = e.EmpheqMethods = e.EmpheqBeginItem = void 0;
|
|
73223
|
-
var a = Xe(), o = qe(), s = n(gt()), l = n(
|
|
73223
|
+
var a = Xe(), o = qe(), s = n(gt()), l = n(lt()), u = R3(), c = MP(), Q = function(T) {
|
|
73224
73224
|
t(f, T);
|
|
73225
73225
|
function f() {
|
|
73226
73226
|
return T !== null && T.apply(this, arguments) || this;
|
|
@@ -73379,7 +73379,7 @@ function Q0e() {
|
|
|
73379
73379
|
return u && u.__esModule ? u : { default: u };
|
|
73380
73380
|
};
|
|
73381
73381
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ExtpfeilConfiguration = e.ExtpfeilMethods = void 0;
|
|
73382
|
-
var r = Xe(), n = qe(), i = fs(), a = t(x8()), o = kP(), s = t(
|
|
73382
|
+
var r = Xe(), n = qe(), i = fs(), a = t(x8()), o = kP(), s = t(lt());
|
|
73383
73383
|
e.ExtpfeilMethods = {}, e.ExtpfeilMethods.xArrow = i.AmsMethods.xArrow, e.ExtpfeilMethods.NewExtArrow = function(u, c) {
|
|
73384
73384
|
var Q = u.GetArgument(c), T = u.GetArgument(c), f = u.GetArgument(c);
|
|
73385
73385
|
if (!Q.match(/^\\([a-z]+|.)$/i))
|
|
@@ -73503,7 +73503,7 @@ function DP() {
|
|
|
73503
73503
|
return c && c.__esModule ? c : { default: c };
|
|
73504
73504
|
};
|
|
73505
73505
|
Object.defineProperty(h3, "__esModule", { value: !0 }), h3.MathtoolsUtil = void 0;
|
|
73506
|
-
var r = R3(), n = t(gt()), i = t(y1()), a = t(
|
|
73506
|
+
var r = R3(), n = t(gt()), i = t(y1()), a = t(lt()), o = l5(), s = e1(), l = VP(), u = RP();
|
|
73507
73507
|
return h3.MathtoolsUtil = {
|
|
73508
73508
|
setDisplayLevel: function(c, Q) {
|
|
73509
73509
|
if (Q) {
|
|
@@ -73593,7 +73593,7 @@ function VP() {
|
|
|
73593
73593
|
return d && d.__esModule ? d : { default: d };
|
|
73594
73594
|
};
|
|
73595
73595
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.MathtoolsMethods = void 0;
|
|
73596
|
-
var a = i(gt()), o = fs(), s = i(G2()), l = i(y1()), u = i(
|
|
73596
|
+
var a = i(gt()), o = fs(), s = i(G2()), l = i(y1()), u = i(lt()), c = i(bt()), Q = we(), T = V3(), f = e1(), h = i(x8()), m = i(Vf()), g = DP();
|
|
73597
73597
|
e.MathtoolsMethods = {
|
|
73598
73598
|
MtMatrix: function(d, p, y, x) {
|
|
73599
73599
|
var O = d.GetBrackets("\\begin{".concat(p.getName(), "}"), "c");
|
|
@@ -74065,7 +74065,7 @@ function p0e() {
|
|
|
74065
74065
|
return l && l.__esModule ? l : { default: l };
|
|
74066
74066
|
};
|
|
74067
74067
|
Object.defineProperty(v2, "__esModule", { value: !0 }), v2.MathtoolsTagFormat = void 0;
|
|
74068
|
-
var i = n(
|
|
74068
|
+
var i = n(lt()), a = y4(), o = 0;
|
|
74069
74069
|
function s(l, u) {
|
|
74070
74070
|
var c = u.parseOptions.options.tags;
|
|
74071
74071
|
c !== "base" && l.tags.hasOwnProperty(c) && a.TagsFactory.add(c, l.tags[c]);
|
|
@@ -75824,7 +75824,7 @@ function O0e() {
|
|
|
75824
75824
|
return l && l.__esModule ? l : { default: l };
|
|
75825
75825
|
};
|
|
75826
75826
|
Object.defineProperty(di, "__esModule", { value: !0 }), di.MhchemConfiguration = void 0;
|
|
75827
|
-
var t = Xe(), r = qe(), n = e(
|
|
75827
|
+
var t = Xe(), r = qe(), n = e(lt()), i = e(G2()), a = fs(), o = g0e(), s = {};
|
|
75828
75828
|
return s.Macro = i.default.Macro, s.xArrow = a.AmsMethods.xArrow, s.Machine = function(l, u, c) {
|
|
75829
75829
|
var Q = l.GetArgument(u), T;
|
|
75830
75830
|
try {
|
|
@@ -76008,7 +76008,7 @@ function L0e() {
|
|
|
76008
76008
|
return v && v.__esModule ? v : { default: v };
|
|
76009
76009
|
};
|
|
76010
76010
|
Object.defineProperty(q3, "__esModule", { value: !0 });
|
|
76011
|
-
var r = t(G2()), n = t(y1()), i = t(
|
|
76011
|
+
var r = t(G2()), n = t(y1()), i = t(lt()), a = we(), o = t(gt()), s = t(bt()), l = kf(), u = {}, c = {
|
|
76012
76012
|
"(": ")",
|
|
76013
76013
|
"[": "]",
|
|
76014
76014
|
"{": "}",
|
|
@@ -76583,7 +76583,7 @@ function E0e() {
|
|
|
76583
76583
|
return T && T.__esModule ? T : { default: T };
|
|
76584
76584
|
};
|
|
76585
76585
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.SetOptionsConfiguration = e.SetOptionsUtil = void 0;
|
|
76586
|
-
var n = Xe(), i = qe(), a = r(
|
|
76586
|
+
var n = Xe(), i = qe(), a = r(lt()), o = r(gt()), s = l5(), l = r(G2()), u = e1();
|
|
76587
76587
|
e.SetOptionsUtil = {
|
|
76588
76588
|
filterPackage: function(T, f) {
|
|
76589
76589
|
if (f !== "tex" && !n.ConfigurationHandler.get(f))
|
|
@@ -76889,7 +76889,7 @@ function IP() {
|
|
|
76889
76889
|
return T && T.__esModule ? T : { default: T };
|
|
76890
76890
|
};
|
|
76891
76891
|
Object.defineProperty(_1, "__esModule", { value: !0 }), _1.TextParser = void 0;
|
|
76892
|
-
var a = i(y1()), o = i(
|
|
76892
|
+
var a = i(y1()), o = i(lt()), s = i(gt()), l = we(), u = i(bt()), c = R3(), Q = function(T) {
|
|
76893
76893
|
e(f, T);
|
|
76894
76894
|
function f(h, m, g, d) {
|
|
76895
76895
|
var p = T.call(this, h, m, g) || this;
|
|
@@ -77481,7 +77481,7 @@ function k0e() {
|
|
|
77481
77481
|
return u && u.__esModule ? u : { default: u };
|
|
77482
77482
|
};
|
|
77483
77483
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.UnicodeConfiguration = e.UnicodeMethods = void 0;
|
|
77484
|
-
var r = Xe(), n = t(
|
|
77484
|
+
var r = Xe(), n = t(lt()), i = qe(), a = t(gt()), o = t(bt()), s = Ts();
|
|
77485
77485
|
e.UnicodeMethods = {};
|
|
77486
77486
|
var l = {};
|
|
77487
77487
|
e.UnicodeMethods.Unicode = function(u, c) {
|
|
@@ -77506,7 +77506,7 @@ function D0e() {
|
|
|
77506
77506
|
return o && o.__esModule ? o : { default: o };
|
|
77507
77507
|
};
|
|
77508
77508
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.VerbConfiguration = e.VerbMethods = void 0;
|
|
77509
|
-
var r = Xe(), n = v1(), i = qe(), a = t(
|
|
77509
|
+
var r = Xe(), n = v1(), i = qe(), a = t(lt());
|
|
77510
77510
|
e.VerbMethods = {}, e.VerbMethods.Verb = function(o, s) {
|
|
77511
77511
|
var l = o.GetNext(), u = ++o.i;
|
|
77512
77512
|
if (l === "")
|
|
@@ -77914,7 +77914,7 @@ function $0e() {
|
|
|
77914
77914
|
return m && m.__esModule ? m : { default: m };
|
|
77915
77915
|
};
|
|
77916
77916
|
Object.defineProperty(x2, "__esModule", { value: !0 }), x2.TeX = void 0;
|
|
77917
|
-
var i = SP(), a = e1(), o = N0e(), s = n(B0e()), l = n(bt()), u = n(y1()), c = n(
|
|
77917
|
+
var i = SP(), a = e1(), o = N0e(), s = n(B0e()), l = n(bt()), u = n(y1()), c = n(lt()), Q = n(NP()), T = y4(), f = Xe();
|
|
77918
77918
|
Pf();
|
|
77919
77919
|
var h = function(m) {
|
|
77920
77920
|
e(g, m);
|
|
@@ -87865,7 +87865,7 @@ const nD = be.div`
|
|
|
87865
87865
|
align-items: center;
|
|
87866
87866
|
`;
|
|
87867
87867
|
function qS({ url: e, data: t }) {
|
|
87868
|
-
const [r, n] =
|
|
87868
|
+
const [r, n] = st(!1), { previewUrl: i } = Ni(), a = () => {
|
|
87869
87869
|
n(!0);
|
|
87870
87870
|
}, o = () => {
|
|
87871
87871
|
n(!1);
|
|
@@ -87885,7 +87885,7 @@ function M8e({ name: e, data: t }) {
|
|
|
87885
87885
|
}) }) : /* @__PURE__ */ q(nD, { children: r("renderer.arrayTypeRequired") });
|
|
87886
87886
|
}
|
|
87887
87887
|
function P8e({ className: e, name: t, value: r, extraTail: n }) {
|
|
87888
|
-
const i = Xt(null), [a, { wrap: o }] = i5(), [s, l] =
|
|
87888
|
+
const i = Xt(null), [a, { wrap: o }] = i5(), [s, l] = st(r), [u, { preview: c }] = n5(), [Q] = r5(r);
|
|
87889
87889
|
tt(() => {
|
|
87890
87890
|
l(r);
|
|
87891
87891
|
}, [r]);
|
|
@@ -87934,7 +87934,7 @@ const k8e = "_contentList_1avch_1", D8e = {
|
|
|
87934
87934
|
align-items: center;
|
|
87935
87935
|
`;
|
|
87936
87936
|
function B8e({ name: e, data: t }) {
|
|
87937
|
-
const { previewUrl: r } = Ni(), { t: n } = p1(), i =
|
|
87937
|
+
const { previewUrl: r } = Ni(), { t: n } = p1(), i = Et((a, o) => {
|
|
87938
87938
|
if (a.text_format === "md")
|
|
87939
87939
|
return /* @__PURE__ */ q(rD, { inline: !0, value: a?.md ?? a?.text ?? "" }, `${e}-${o}`);
|
|
87940
87940
|
if (a.type === "text")
|
|
@@ -87955,7 +87955,7 @@ function B8e({ name: e, data: t }) {
|
|
|
87955
87955
|
] }, o)) }) : /* @__PURE__ */ q(nD, { children: n("renderer.arrayTypeRequired") });
|
|
87956
87956
|
}
|
|
87957
87957
|
function $8e({ className: e, name: t, value: r, extraTail: n }) {
|
|
87958
|
-
const i = Xt(null), [a, { wrap: o }] = i5(), [s, l] =
|
|
87958
|
+
const i = Xt(null), [a, { wrap: o }] = i5(), [s, l] = st(r), [u, { preview: c }] = n5();
|
|
87959
87959
|
tt(() => {
|
|
87960
87960
|
l(r);
|
|
87961
87961
|
}, [r]);
|
|
@@ -88025,7 +88025,7 @@ const q8e = be(T7)`
|
|
|
88025
88025
|
flex: 1;
|
|
88026
88026
|
`;
|
|
88027
88027
|
function z8e(e) {
|
|
88028
|
-
const [t, r] =
|
|
88028
|
+
const [t, r] = st(""), [n] = T7.useForm(), [i, a] = st(!1), o = Xt(null), { t: s } = p1();
|
|
88029
88029
|
tt(() => {
|
|
88030
88030
|
n.setFieldsValue({
|
|
88031
88031
|
baseUrl: ""
|
|
@@ -88033,13 +88033,13 @@ function z8e(e) {
|
|
|
88033
88033
|
}, [e, n]);
|
|
88034
88034
|
const l = (h) => {
|
|
88035
88035
|
r(h.baseUrl), a(!1);
|
|
88036
|
-
}, u =
|
|
88036
|
+
}, u = Et((h) => {
|
|
88037
88037
|
r(h), n.setFieldsValue({
|
|
88038
88038
|
baseUrl: h
|
|
88039
88039
|
});
|
|
88040
|
-
}, [n]), c =
|
|
88040
|
+
}, [n]), c = Et(() => {
|
|
88041
88041
|
a((h) => !h), o.current?.setActivated(!!t);
|
|
88042
|
-
}, [t]), Q =
|
|
88042
|
+
}, [t]), Q = Et(() => {
|
|
88043
88043
|
n.resetFields(), r(""), a(!1);
|
|
88044
88044
|
}, [n]), T = Ce(() => /* @__PURE__ */ q(
|
|
88045
88045
|
JS,
|
|
@@ -88087,13 +88087,13 @@ function W8e(e) {
|
|
|
88087
88087
|
}
|
|
88088
88088
|
}
|
|
88089
88089
|
function G8e({ className: e, name: t, value: r, extraTail: n }) {
|
|
88090
|
-
const i = Xt(null), [a, { wrap: o }] = i5(), [s, l] =
|
|
88090
|
+
const i = Xt(null), [a, { wrap: o }] = i5(), [s, l] = st(r), [u, { base: c }, , Q] = z8e(), { value: T } = b2e(), [f, { preview: h }] = n5(), [m] = r5(r), g = Ce(() => T && W8e(T.url) ? new URL(T.url).origin : "", [T]);
|
|
88091
88091
|
tt(() => {
|
|
88092
88092
|
Q.setFieldsValue({
|
|
88093
88093
|
baseUrl: g
|
|
88094
88094
|
});
|
|
88095
88095
|
}, [g, Q]);
|
|
88096
|
-
const d =
|
|
88096
|
+
const d = Et((x) => {
|
|
88097
88097
|
l(x);
|
|
88098
88098
|
}, []);
|
|
88099
88099
|
tt(() => {
|
|
@@ -88180,7 +88180,7 @@ const eue = be.div`
|
|
|
88180
88180
|
overflow: auto;
|
|
88181
88181
|
`;
|
|
88182
88182
|
function sue({ className: e, name: t, value: r, extraTail: n, titleExtra: i }) {
|
|
88183
|
-
const [a, o] =
|
|
88183
|
+
const [a, o] = st(r), s = cf(), { id: l } = Ni(), [u] = r5(a), { t: c } = p1(), Q = Xt(null), T = Xt(null), [f, h] = st(""), m = Xt({
|
|
88184
88184
|
__root__: new Rl("")
|
|
88185
88185
|
}), g = aD(T.current), d = Ce(() => {
|
|
88186
88186
|
try {
|
|
@@ -88188,7 +88188,7 @@ function sue({ className: e, name: t, value: r, extraTail: n, titleExtra: i }) {
|
|
|
88188
88188
|
} catch (A) {
|
|
88189
88189
|
return a && a.length > 0 && h(A.toString()), a;
|
|
88190
88190
|
}
|
|
88191
|
-
}, [a]), [p, y] =
|
|
88191
|
+
}, [a]), [p, y] = st([]), x = Et((A) => {
|
|
88192
88192
|
A && y((w) => w.length === 0 ? [{ id: "whole", field: "__whole__", renderAs: "json" }] : w);
|
|
88193
88193
|
}, []), [, { preview: O }, v] = n5(!1, x), [L, { wrap: b }] = i5(s.wrap);
|
|
88194
88194
|
tt(() => {
|
|
@@ -88229,7 +88229,7 @@ function sue({ className: e, name: t, value: r, extraTail: n, titleExtra: i }) {
|
|
|
88229
88229
|
onChange: (A) => {
|
|
88230
88230
|
o(A), s?.onChange(A);
|
|
88231
88231
|
}
|
|
88232
|
-
}), [b, s, a]), C =
|
|
88232
|
+
}), [b, s, a]), C = Et((A) => {
|
|
88233
88233
|
y((w) => w.filter((M) => M.id !== A));
|
|
88234
88234
|
}, []);
|
|
88235
88235
|
return /* @__PURE__ */ q(m4.Provider, { value: E, children: /* @__PURE__ */ q(
|
|
@@ -88289,7 +88289,7 @@ const lue = be.div`
|
|
|
88289
88289
|
align-items: center;
|
|
88290
88290
|
`;
|
|
88291
88291
|
function uue({ className: e, name: t, value: r, extraTail: n }) {
|
|
88292
|
-
const i = Xt(null), [a, { preview: o }] = n5(), [s] = r5(r), [l, u] =
|
|
88292
|
+
const i = Xt(null), [a, { preview: o }] = n5(), [s] = r5(r), [l, u] = st(r);
|
|
88293
88293
|
tt(() => {
|
|
88294
88294
|
u(r);
|
|
88295
88295
|
}, [r]);
|
|
@@ -88322,7 +88322,7 @@ const cue = be.div`
|
|
|
88322
88322
|
align-items: center;
|
|
88323
88323
|
`;
|
|
88324
88324
|
function Que({ className: e, name: t, value: r, extraTail: n, titleExtra: i }) {
|
|
88325
|
-
const a = Xt(null), [o, { wrap: s }] = i5(), [l] = r5(r), [u, c] =
|
|
88325
|
+
const a = Xt(null), [o, { wrap: s }] = i5(), [l] = r5(r), [u, c] = st(r);
|
|
88326
88326
|
tt(() => {
|
|
88327
88327
|
c(r);
|
|
88328
88328
|
}, [r]);
|
|
@@ -88395,7 +88395,7 @@ function iD({ renderAs: e, ...t }) {
|
|
|
88395
88395
|
return /* @__PURE__ */ q(nM.Provider, { value: a, children: /* @__PURE__ */ q(i, { ...t }) });
|
|
88396
88396
|
}
|
|
88397
88397
|
function aD(e) {
|
|
88398
|
-
const [t, r] =
|
|
88398
|
+
const [t, r] = st({
|
|
88399
88399
|
width: 0,
|
|
88400
88400
|
height: 0
|
|
88401
88401
|
});
|
|
@@ -88406,8 +88406,8 @@ function aD(e) {
|
|
|
88406
88406
|
const a = () => {
|
|
88407
88407
|
n && window.clearTimeout(n), n = window.setTimeout(() => {
|
|
88408
88408
|
const s = e.getBoundingClientRect(), l = e.parentElement?.getBoundingClientRect(), u = Math.floor(s.width), c = Math.floor(l ? l.height : 0);
|
|
88409
|
-
(Math.abs(u - i.width) >
|
|
88410
|
-
},
|
|
88409
|
+
(Math.abs(u - i.width) > 20 || Math.abs(c - i.height) > 20) && (i = { width: u, height: c }, r(i));
|
|
88410
|
+
}, 200);
|
|
88411
88411
|
}, o = new ResizeObserver(() => {
|
|
88412
88412
|
requestAnimationFrame(a);
|
|
88413
88413
|
});
|
|
@@ -88453,13 +88453,13 @@ const jue = be.div`
|
|
|
88453
88453
|
border-radius: 0.25rem;
|
|
88454
88454
|
`;
|
|
88455
88455
|
function Wue({ className: e, name: t, value: r, extraTail: n, titleExtra: i }) {
|
|
88456
|
-
const { id: a, path: o, onKeyClick: s } = Ni(), [l, u] =
|
|
88456
|
+
const { id: a, path: o, onKeyClick: s } = Ni(), [l, u] = st(r), [c, { wrap: Q }] = i5(), T = Xt(null), [f, h] = st(""), m = Xt(null), [g, d] = st([]), { t: p } = p1(), y = Ce(() => {
|
|
88457
88457
|
try {
|
|
88458
88458
|
return h(""), JSON.parse(l);
|
|
88459
88459
|
} catch (V) {
|
|
88460
88460
|
return l && l.length > 0 && h(V.toString()), l;
|
|
88461
88461
|
}
|
|
88462
|
-
}, [l]), [x] = r5(y), O = Ce(() => Object.keys(y), [y]), v = Ce(() => kue.validate(y).length === 0, [y]), L = Ce(() => Pue.validate(y).length === 0, [y]), b = Ce(() => Due.validate(y).length === 0, [y]), S =
|
|
88462
|
+
}, [l]), [x] = r5(y), O = Ce(() => Object.keys(y), [y]), v = Ce(() => kue.validate(y).length === 0, [y]), L = Ce(() => Pue.validate(y).length === 0, [y]), b = Ce(() => Due.validate(y).length === 0, [y]), S = Et((V) => {
|
|
88463
88463
|
if (V) {
|
|
88464
88464
|
const _ = O.filter((D) => v ? Rue.includes(D) : L ? Iue.includes(D) : b ? Nue.includes(D) : Bue.includes(D)).map((D) => ({
|
|
88465
88465
|
id: Va(),
|
|
@@ -88508,7 +88508,7 @@ function Wue({ className: e, name: t, value: r, extraTail: n, titleExtra: i }) {
|
|
|
88508
88508
|
w: _,
|
|
88509
88509
|
h: D
|
|
88510
88510
|
}));
|
|
88511
|
-
}, [g, M.height]), R =
|
|
88511
|
+
}, [g, M.height]), R = Et((V) => {
|
|
88512
88512
|
d((_) => _.filter((D) => D.id !== V));
|
|
88513
88513
|
}, []);
|
|
88514
88514
|
return /* @__PURE__ */ q(iM.Provider, { value: N, children: /* @__PURE__ */ q(m4.Provider, { value: P, children: /* @__PURE__ */ q(
|
|
@@ -88561,7 +88561,7 @@ const XS = {
|
|
|
88561
88561
|
textLikePreviewer: Gue
|
|
88562
88562
|
};
|
|
88563
88563
|
function Kue({ name: e, type: t, className: r, extraTail: n, titleExtra: i }) {
|
|
88564
|
-
const { data: a, onNext: o, onPrev: s, prevable: l, nextable: u } = Ni(), [c, Q] =
|
|
88564
|
+
const { data: a, onNext: o, onPrev: s, prevable: l, nextable: u } = Ni(), [c, Q] = st(""), { t: T } = p1();
|
|
88565
88565
|
tt(() => {
|
|
88566
88566
|
Q(a?.content ?? "");
|
|
88567
88567
|
}, [a]);
|
|
@@ -88648,10 +88648,10 @@ const Jue = be(rE.Item)`
|
|
|
88648
88648
|
}
|
|
88649
88649
|
`;
|
|
88650
88650
|
function a9e({ path: e, onPathChange: t, name: r, extraTail: n, titleExtra: i, value: a, highlightCurrent: o, pathWithoutQuery: s, showBodyOnly: l = !1 }) {
|
|
88651
|
-
const u = Xt(null), { id: c, onDownload: Q, renderBucketItem: T } = Ni(), { t: f } = p1(), h =
|
|
88651
|
+
const u = Xt(null), { id: c, onDownload: Q, renderBucketItem: T } = Ni(), { t: f } = p1(), h = Et((d) => () => {
|
|
88652
88652
|
const p = o ? d.fullPath : $$(d, e);
|
|
88653
88653
|
t?.(p), document.dispatchEvent(new CustomEvent("close-bucket-list"));
|
|
88654
|
-
}, [e, t, o]), m =
|
|
88654
|
+
}, [e, t, o]), m = Et((d) => () => {
|
|
88655
88655
|
navigator.clipboard.writeText(d.fullPath || d.path), TD.success(f("renderer.copied"));
|
|
88656
88656
|
}, [f]), g = Ce(() => /* @__PURE__ */ q(
|
|
88657
88657
|
rE,
|
|
@@ -88752,9 +88752,14 @@ const o9e = be(eo)`
|
|
|
88752
88752
|
align-items: center;
|
|
88753
88753
|
`;
|
|
88754
88754
|
function Q9e({ type: e, className: t, name: r, value: n, extraTail: i, titleExtra: a }) {
|
|
88755
|
-
const o = Xt(null), { onDownload: s } = Ni(), { t: l } = p1(), u =
|
|
88755
|
+
const o = Xt(null), { onDownload: s } = Ni(), { t: l } = p1(), [u, c] = st(!1), Q = Et(() => {
|
|
88756
|
+
if (o.current) {
|
|
88757
|
+
const f = o.current.querySelector(".ant-card-body");
|
|
88758
|
+
f && c(f.scrollHeight > f.clientHeight);
|
|
88759
|
+
}
|
|
88760
|
+
}, []), T = Ce(() => {
|
|
88756
88761
|
if (e === "image")
|
|
88757
|
-
return /* @__PURE__ */ q(o9e, { src: n, alt: n });
|
|
88762
|
+
return /* @__PURE__ */ q(o9e, { onLoad: Q, src: n, alt: n });
|
|
88758
88763
|
if (e === "video")
|
|
88759
88764
|
return /* @__PURE__ */ q(s9e, { src: n, controls: !0 });
|
|
88760
88765
|
if (e === "audio")
|
|
@@ -88767,7 +88772,7 @@ function Q9e({ type: e, className: t, name: r, value: n, extraTail: i, titleExtr
|
|
|
88767
88772
|
return /* @__PURE__ */ q(A9, { src: n, title: "epub" });
|
|
88768
88773
|
if (e === "zip")
|
|
88769
88774
|
return /* @__PURE__ */ q(u9e, { icon: /* @__PURE__ */ q(ql, { type: "text" }), onClick: () => s?.(n), children: l("renderer.downloadZipFile") });
|
|
88770
|
-
}, [e, n, s, l]);
|
|
88775
|
+
}, [e, n, s, l, Q]);
|
|
88771
88776
|
return /* @__PURE__ */ q(
|
|
88772
88777
|
W2,
|
|
88773
88778
|
{
|
|
@@ -88778,13 +88783,13 @@ function Q9e({ type: e, className: t, name: r, value: n, extraTail: i, titleExtr
|
|
|
88778
88783
|
bodyStyle: {
|
|
88779
88784
|
display: "flex",
|
|
88780
88785
|
justifyContent: "center",
|
|
88781
|
-
alignItems: "center"
|
|
88786
|
+
alignItems: u ? "start" : "center"
|
|
88782
88787
|
},
|
|
88783
88788
|
extra: /* @__PURE__ */ Ye(c9e, { children: [
|
|
88784
88789
|
/* @__PURE__ */ q(Ir, { elementRef: o }),
|
|
88785
88790
|
i
|
|
88786
88791
|
] }),
|
|
88787
|
-
children:
|
|
88792
|
+
children: T
|
|
88788
88793
|
}
|
|
88789
88794
|
);
|
|
88790
88795
|
}
|
|
@@ -88864,7 +88869,7 @@ function ace({
|
|
|
88864
88869
|
onLinkClick: x,
|
|
88865
88870
|
onKeyClick: O
|
|
88866
88871
|
}) {
|
|
88867
|
-
const v = U$(t), { t: L } = p1(), b = !/\.\w+$/.test(v), [S, E] =
|
|
88872
|
+
const v = U$(t), { t: L } = p1(), b = !/\.\w+$/.test(v), [S, E] = st(), C = t.split("?")[0], A = Ce(() => Array.isArray(n) ? T9e(n, C) : [], [n, C]);
|
|
88868
88873
|
tt(() => {
|
|
88869
88874
|
const W = n?.mimetype;
|
|
88870
88875
|
E(W && b ? O9e(W) : void 0);
|
|
@@ -88876,26 +88881,26 @@ function ace({
|
|
|
88876
88881
|
document.removeEventListener("s3-path-click", W);
|
|
88877
88882
|
};
|
|
88878
88883
|
}, [x]);
|
|
88879
|
-
const [w, M] =
|
|
88884
|
+
const [w, M] = st([]), P = w.length > 0, N = n, B = N?.path ?? "", R = N?.size ?? 0, V = ic(B.split("?")[1]), _ = V ? V.byte + V.size : 0, D = W$(B), Z = _ < (R || 0), k = Ce(() => S || B$(t), [t, S]);
|
|
88880
88885
|
tt(() => {
|
|
88881
88886
|
const W = ic(B);
|
|
88882
88887
|
let ee = B;
|
|
88883
88888
|
Number(W?.byte) === 0 && (ee = B.split("?")[0]), !(!k || !B || !["jsonl", "csv", "txt"].includes(k)) && c?.(ee);
|
|
88884
88889
|
}, [k, B, c]);
|
|
88885
|
-
const te =
|
|
88890
|
+
const te = Et((W) => {
|
|
88886
88891
|
f?.({ pageNo: W });
|
|
88887
88892
|
}, [f]);
|
|
88888
88893
|
tt(() => {
|
|
88889
88894
|
M([]);
|
|
88890
88895
|
}, [v]);
|
|
88891
|
-
const ae = !k || !["image", "video", "audio", "zip", "jsonl", "pdf", "epub", "mobi"].includes(k), ie =
|
|
88896
|
+
const ae = !k || !["image", "video", "audio", "zip", "jsonl", "pdf", "epub", "mobi"].includes(k), ie = Et(async () => {
|
|
88892
88897
|
M([...w, V?.byte ?? 0]), f?.({ path: D });
|
|
88893
|
-
}, [e, D, w, V?.byte, f]), G =
|
|
88898
|
+
}, [e, D, w, V?.byte, f]), G = Et(async () => {
|
|
88894
88899
|
const W = w[w.length - 1] ?? 0, ee = `${B.split("?")[0]}?bytes=${W},0`;
|
|
88895
88900
|
M(w.slice(0, -1)), f?.({ path: ee });
|
|
88896
|
-
}, [e, w, f, B]), X =
|
|
88901
|
+
}, [e, w, f, B]), X = Et((W) => {
|
|
88897
88902
|
f?.({ path: W, pageNo: 1 });
|
|
88898
|
-
}, [e, f]), K =
|
|
88903
|
+
}, [e, f]), K = Et(() => {
|
|
88899
88904
|
let W = t;
|
|
88900
88905
|
t.endsWith("/") ? W = t.replace(/[^\/]+\/$/, "") : W = t.replace(/[^\/]+$/, ""), W === "s3://" && (W = ""), f?.({ path: W, pageNo: 1 });
|
|
88901
88906
|
}, [t, e, f]), re = Ce(() => ({
|
package/dist/index.umd.js
CHANGED
|
@@ -385,7 +385,7 @@ Valid keys: `+JSON.stringify(Object.keys(_),null," "));var I=se(Y,ne,re,oe,ae+"
|
|
|
385
385
|
`;function Yse({className:e,name:t,value:r,extraTail:n,titleExtra:i}){const a=G.useRef(null),[o,{wrap:s}]=ki(),[l]=Mi(r),[u,c]=G.useState(r);G.useEffect(()=>{c(r)},[r]);const Q=G.useMemo(()=>({wrap:s??!1,value:u,onChange:c}),[s,u]);return j.jsx(t4.Provider,{value:Q,children:j.jsx(R2,{ref:a,className:e,titleExtra:i,name:t,extra:j.jsxs(Gse,{children:[j.jsx(K2,{elementRef:a}),o,l,n]}),children:j.jsx(XQ,{})})})}const Mf={content_list:Hse,img_list:yse,html:Vse,markdown:Wse,json:Xse,image:Nse,raw:Yse,csv:wse},Kse={$schema:"http://json-schema.org/draft-07/schema#",type:"object",title:"文件类数据格式标准",properties:{track_id:{type:"string",description:"全局唯一id,不随获取、清洗方法的变化而变化。可以是uuid,也可以是hash值"},url:{type:"string",description:"文件的URL,通常适用于从互联网上获取的PDF/电子书,可为空。",default:""},path:{type:"string",description:"文件的存储路径,通常为S3路径。",default:""},date:{type:"integer",description:"采集的爬取时间"},content_length:{type:"integer",description:"文件大小,字节数"},content_type:{type:"string",description:"文件类型"},title:{type:"string",description:"网页的标题"},body_bytes:{type:"string",description:"文件的字节流采用base64编码表示"},remark:{type:"object",description:"备注信息,例如:点赞数,爬取时的主机名等。key-value结构体,key不要求在文档之间对其。"},doc_loc:{type:"string",description:"数据的唯一S3路径"},track_loc:{type:"array",description:"数据之前的S3路径列表",items:{type:"string"}}},required:["track_id","path","body_bytes"]},Jse={$schema:"http://json-schema.org/draft-07/schema#",type:"object",title:"HTML数据格式标准",properties:{track_id:{type:"string",description:"全局唯一id,不随获取、清洗方法的变化而变化。可以是uuid,也可以是hash值"},url:{type:"string",description:"网页的URL,电子书等网页数据,可留空。",default:""},status:{type:"integer",default:200,description:"采集的HTTP返回码",minimum:100,maximum:599},request_header:{type:"object",description:"采集的HTTP返回头"},response_header:{type:"object",description:"采集的HTTP返回头"},date:{type:"integer",description:"采集的爬取时间"},content_length:{type:"integer",description:"HTTP的响应体长度"},content_charset:{type:"string",description:"HTTP的响应体编码"},title:{type:"string",description:"网页的标题"},base_url:{type:"string",description:"网页的base url,如果有"},body_bytes:{type:"string",description:"网页的body部分的二进制数据"},html:{type:"string",description:"网页的完整HTML文本"},main_html:{type:"string",description:"网页的主要HTML文本"},remark:{type:"object",description:"备注信息,例如:点赞数,爬取时的主机名等。key-value结构体,key不要求在文档之间对其。"},doc_loc:{type:"string",description:"数据的唯一S3路径"},track_loc:{type:"array",description:"数据之前的S3路径列表",items:{type:"string"}}},anyOf:[{required:["main_html"]},{required:["body_bytes"]},{required:["html"]}],required:["track_id","url"]},e7e={$schema:"http://json-schema.org/draft-07/schema#",type:"object",title:"图文交错数据格式标准",properties:{track_id:{type:"string",description:"全局唯一id,不随获取、清洗方法的变化而变化。可以是uuid,也可以是hash值"},id:{type:"string",description:"全局唯一的数据ID。一条原始数据,经过多次清洗,其内容可能会发生变化,这种情况下,每次清洗出的数据,应该具有不同的ID。"},url:{type:"string",description:"来源URL。非网页数据,该字段可以留空。"},title:{type:"string",description:"网页的标题"},base_url:{type:"string",description:"网页的base url,如果有"},content_list:{type:"array",description:"文档中的内容列表,包含文本、图像、或其它媒体内容的信息。",items:{$ref:"#/definitions/ContentItem"}},language:{type:"string",description:"多语言数据集,可采用该字段标识每篇文档的语言。",enum:["zh","zh-Hans","en","zh-Hant","code-python","code-java","code-c","code-cpp"]},split:{type:"string",enum:["train","val","test","exam"]},data_source:{type:"string",enum:["code-github","zh-zhihu-article","zh-zhihu-answer","zh-baidu-jingyan","zh-cnnews","mm-laion-5b","zh-toutiao-news","mm-cc-12m"]},subset:{type:"string",description:"有些data_source,可能有多个子集,在这里记录。"},sub_path:{type:"string",description:"数据的子路径。"},labels:{type:"object",$ref:"#/definitions/LabelItem",description:"文档的标签。该字段是一个对象(字典),对象中的各个字段对应的值应该尽可能是基本类型(数值、布尔值、标签等)。"},pii:{type:"object",description:"个人隐私信息识别结果"},html:{type:"string",description:"网页的完整HTML文本"},main_html:{type:"string",description:"网页的主要HTML文本"},remark:{type:"object",description:"备注信息,例如:点赞数,爬取时的主机名等。key-value结构体,key不要求在文档之间对其。"},doc_loc:{type:"string",description:"数据的唯一S3路径"},track_loc:{type:"array",description:"数据之前的S3路径列表",items:{type:"string"}}},anyOf:[{required:["main_html"]},{required:["body_bytes"]},{required:["html"]}],required:["track_id","url"],definitions:{ContentItem:{type:"object",description:"content_list item",properties:{type:{type:"string",enum:["image","text","audio","video","table","list","code","quote","hr","equation"]},html:{type:"string"},text_level:{type:"integer",maximum:9,minimum:0,default:0,description:"文本的heading级别,0表示普通正文,1表示一级标题,以此类推。当type为text时,该字段才有意义。"},text_format:{type:"string",enum:["text","md","latex"]},text:{type:"string"},table_caption:{type:"string",description:"表格的caption,当type为table时,该字段才有意义。"},img_urls:{type:"array",items:{type:"string"},description:"当type为image时,该字段为图片的url"},img_url_hash:{type:"string",description:"当type为image时,该字段为图片的hash值"},img_path:{type:"string",description:"图像的s3路径"},img_alt:{type:"string",description:"图像的alt属性"},img_data:{type:"string",description:"当type为image,且图像链接为data url时,该字段为data url的内容。"},img_title:{type:"string",description:"图像的title属性"},img_caption:{type:"string",description:"图像的caption"},sources:{type:"array",items:{type:"string"},description:"当type为video/audio时,该字段包含了媒体文件的链接。"}},required:["type"]},LabelItem:{type:"object",properties:{is_safe:{type:"boolean",description:"表示内容是安全的,无需进行其他内容相关的过滤。"},pjwk_cates:{type:"object",description:"世界知识树分类"},subject_cates:{type:"object",description:"学科分类"},xp_num:{type:"string",description:"抽取时名中的规则"},drop_list:{type:"boolean",description:"抽取时是否有丢弃正文中的列表"},has_gov_cn:{type:"boolean",description:"是否有gov.cn域名"},is_url_gfwed:{type:"boolean",description:"域名是否在防火墙名单中"},source_charset:{type:"string",description:"源网页的字符集"},en_fluency_bert_prob:{type:"number",description:"英文流利度"},en_non_ad_bert_prob:{type:"number",description:"英文非广告概率"},en_politics_ft_prob:{type:"number",description:"涉政概率"},en_toxic_ft_prob:{type:"number",description:"毒害概率"},domain_level:{type:"string",description:"域名等级"},unsafe_word_min_level:{type:"string",description:"关键字等级"}}}}},t7e=new Au(e7e),r7e=new Au(Jse),n7e=new Au(Kse),i7e={html:"html",main_html:"html",content:"markdown",content_list:"content_list",img_list:"img_list"},a7e=["html","main_html","body_bytes"],o7e=["content_list"],s7e=["path","track_loc"],l7e=["content","img_list"],u7e=Ee(Yk)`
|
|
386
386
|
height: 100%;
|
|
387
387
|
overflow: auto;
|
|
388
|
-
`;function Yk({renderAs:e,...t}){const[r,{renderType:n}]=Hee(e),i=Mf[n??e]??Mf.raw,a=G.useMemo(()=>({builtIns:r}),[r]);return j.jsx(oS.Provider,{value:a,children:j.jsx(i,{...t})})}function Kk(e){const[t,r]=G.useState({width:0,height:0});return G.useLayoutEffect(()=>{if(!e)return;let n,i={width:0,height:0};const a=()=>{n&&window.clearTimeout(n),n=window.setTimeout(()=>{const s=e.getBoundingClientRect(),l=e.parentElement?.getBoundingClientRect(),u=Math.floor(s.width),c=Math.floor(l?l.height:0);(Math.abs(u-i.width)>
|
|
388
|
+
`;function Yk({renderAs:e,...t}){const[r,{renderType:n}]=Hee(e),i=Mf[n??e]??Mf.raw,a=G.useMemo(()=>({builtIns:r}),[r]);return j.jsx(oS.Provider,{value:a,children:j.jsx(i,{...t})})}function Kk(e){const[t,r]=G.useState({width:0,height:0});return G.useLayoutEffect(()=>{if(!e)return;let n,i={width:0,height:0};const a=()=>{n&&window.clearTimeout(n),n=window.setTimeout(()=>{const s=e.getBoundingClientRect(),l=e.parentElement?.getBoundingClientRect(),u=Math.floor(s.width),c=Math.floor(l?l.height:0);(Math.abs(u-i.width)>20||Math.abs(c-i.height)>20)&&(i={width:u,height:c},r(i))},200)},o=new ResizeObserver(()=>{requestAnimationFrame(a)});return o.observe(e),()=>{o.disconnect(),n&&window.clearTimeout(n)}},[e]),t}function Jk(e,t){return e==="content"?"markdown":typeof t=="string"&&t.replace(/\r|\n/g,"").startsWith("<!DOCTYPE html>")||e==="html"||e==="main_html"?"html":e==="content_list"||e==="img_list"?e:(Array.isArray(t),"raw")}class h8{current;parent;constructor(t,r){this.current=t,this.parent=r}get fullPath(){let t=this.current,r=this.parent;for(;r;)r.current!==""?t=`${r.current}.${t}`:t=`${t}`,r=r.parent;return t}}const c7e=Ee.div`
|
|
389
389
|
display: flex;
|
|
390
390
|
gap: 0.5rem;
|
|
391
391
|
align-items: center;
|
|
@@ -492,7 +492,7 @@ Valid keys: `+JSON.stringify(Object.keys(_),null," "));var I=se(Y,ne,re,oe,ae+"
|
|
|
492
492
|
display: flex;
|
|
493
493
|
gap: 0.5rem;
|
|
494
494
|
align-items: center;
|
|
495
|
-
`;function M7e({type:e,className:t,name:r,value:n,extraTail:i,titleExtra:a}){const o=G.useRef(null),{onDownload:s}=d4(),{t:l}=Jt(),u=G.useMemo(()=>{if(e==="image")return j.jsx(H7e,{src:n,alt:n});if(e==="video")return j.jsx(_7e,{src:n,controls:!0});if(e==="audio")return j.jsx(w7e,{src:n,controls:!0});if(e==="pdf")return j.jsx(kf,{src:n,title:"pdf"});if(e==="mobi")return j.jsx(kf,{src:n,title:"mobi"});if(e==="epub")return j.jsx(kf,{src:n,title:"epub"});if(e==="zip")return j.jsx(C7e,{icon:j.jsx(Ls,{type:"text"}),onClick:()=>s?.(n),children:l("renderer.downloadZipFile")})},[e,n,s,l]);return j.jsx(R2,{ref:o,className:t,name:r,titleExtra:a,bodyStyle:{display:"flex",justifyContent:"center",alignItems:"center"},extra:j.jsxs(A7e,{children:[j.jsx(K2,{elementRef:o}),i]}),children:
|
|
495
|
+
`;function M7e({type:e,className:t,name:r,value:n,extraTail:i,titleExtra:a}){const o=G.useRef(null),{onDownload:s}=d4(),{t:l}=Jt(),[u,c]=G.useState(!1),Q=G.useCallback(()=>{if(o.current){const f=o.current.querySelector(".ant-card-body");f&&c(f.scrollHeight>f.clientHeight)}},[]),T=G.useMemo(()=>{if(e==="image")return j.jsx(H7e,{onLoad:Q,src:n,alt:n});if(e==="video")return j.jsx(_7e,{src:n,controls:!0});if(e==="audio")return j.jsx(w7e,{src:n,controls:!0});if(e==="pdf")return j.jsx(kf,{src:n,title:"pdf"});if(e==="mobi")return j.jsx(kf,{src:n,title:"mobi"});if(e==="epub")return j.jsx(kf,{src:n,title:"epub"});if(e==="zip")return j.jsx(C7e,{icon:j.jsx(Ls,{type:"text"}),onClick:()=>s?.(n),children:l("renderer.downloadZipFile")})},[e,n,s,l,Q]);return j.jsx(R2,{ref:o,className:t,name:r,titleExtra:a,bodyStyle:{display:"flex",justifyContent:"center",alignItems:u?"start":"center"},extra:j.jsxs(A7e,{children:[j.jsx(K2,{elementRef:o}),i]}),children:T})}function P7e(e,t){return e.map(r=>({...r,path:r.path.replace(t,"").replace(/\/$/,""),fullPath:r.path}))}const k7e="vis3-pagenation-change",D7e="vis3-path-correction",V7e=Ee.div`
|
|
496
496
|
height: 100%;
|
|
497
497
|
position: relative;
|
|
498
498
|
min-width: calc(100% / 5);
|