@mxmweb/rtext 1.3.7 → 1.3.8
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/index.js +340 -340
- package/package.json +1 -1
- package/stats.html +1 -1
package/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var ah = Object.defineProperty;
|
|
2
2
|
var sh = (e, t, r) => t in e ? ah(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var kt = (e, t, r) => sh(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import Ue, { useContext as
|
|
4
|
+
import Ue, { useContext as za, createContext as pn, forwardRef as $a, useCallback as Ze, useEffect as Pt, useState as ut, useLayoutEffect as ih, useRef as Bt, useReducer as oh, useMemo as at, Component as lh, memo as uh, useDebugValue as Yl, createElement as Ps } from "react";
|
|
5
5
|
import ch, { createPortal as dh } from "react-dom";
|
|
6
6
|
import { Spin as fh, Table as hh, Pagination as mh, Tooltip as ph } from "antd";
|
|
7
|
-
import { useTheme as Zs, Icon as
|
|
8
|
-
var
|
|
7
|
+
import { useTheme as Zs, Icon as zs } from "@mxmweb/zui";
|
|
8
|
+
var rs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
9
9
|
function Js(e) {
|
|
10
10
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var ns = { exports: {} }, ha = {};
|
|
13
13
|
/**
|
|
14
14
|
* @license React
|
|
15
15
|
* react-jsx-runtime.production.min.js
|
|
@@ -21,7 +21,7 @@ var as = { exports: {} }, ma = {};
|
|
|
21
21
|
*/
|
|
22
22
|
var Kl;
|
|
23
23
|
function gh() {
|
|
24
|
-
if (Kl) return
|
|
24
|
+
if (Kl) return ha;
|
|
25
25
|
Kl = 1;
|
|
26
26
|
var e = Ue, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
27
27
|
function c(f, y, p) {
|
|
@@ -31,9 +31,9 @@ function gh() {
|
|
|
31
31
|
if (f && f.defaultProps) for (w in y = f.defaultProps, y) C[w] === void 0 && (C[w] = y[w]);
|
|
32
32
|
return { $$typeof: t, type: f, key: E, ref: T, props: C, _owner: s.current };
|
|
33
33
|
}
|
|
34
|
-
return
|
|
34
|
+
return ha.Fragment = r, ha.jsx = c, ha.jsxs = c, ha;
|
|
35
35
|
}
|
|
36
|
-
var
|
|
36
|
+
var ma = {};
|
|
37
37
|
/**
|
|
38
38
|
* @license React
|
|
39
39
|
* react-jsx-runtime.development.js
|
|
@@ -630,12 +630,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
630
630
|
return Ct(v, Y, _, !1);
|
|
631
631
|
}
|
|
632
632
|
var Q = m, x = d;
|
|
633
|
-
|
|
634
|
-
})()),
|
|
633
|
+
ma.Fragment = n, ma.jsx = Q, ma.jsxs = x;
|
|
634
|
+
})()), ma;
|
|
635
635
|
}
|
|
636
636
|
var Zl;
|
|
637
637
|
function bh() {
|
|
638
|
-
return Zl || (Zl = 1, process.env.NODE_ENV === "production" ?
|
|
638
|
+
return Zl || (Zl = 1, process.env.NODE_ENV === "production" ? ns.exports = gh() : ns.exports = vh()), ns.exports;
|
|
639
639
|
}
|
|
640
640
|
var N = bh();
|
|
641
641
|
/*!
|
|
@@ -691,12 +691,12 @@ function vr(e, ...t) {
|
|
|
691
691
|
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
692
692
|
);
|
|
693
693
|
}
|
|
694
|
-
var
|
|
694
|
+
var Ba = Object.getPrototypeOf;
|
|
695
695
|
function On(e) {
|
|
696
696
|
return !!e && !!e[Dr];
|
|
697
697
|
}
|
|
698
698
|
function Mn(e) {
|
|
699
|
-
return e ? yd(e) || Array.isArray(e) || !!e[Ql] || !!e.constructor?.[Ql] ||
|
|
699
|
+
return e ? yd(e) || Array.isArray(e) || !!e[Ql] || !!e.constructor?.[Ql] || ja(e) || ei(e) : !1;
|
|
700
700
|
}
|
|
701
701
|
var xh = Object.prototype.constructor.toString(), eu = /* @__PURE__ */ new WeakMap();
|
|
702
702
|
function yd(e) {
|
|
@@ -720,7 +720,7 @@ function $s(e, t, r = !0) {
|
|
|
720
720
|
}
|
|
721
721
|
function Qs(e) {
|
|
722
722
|
const t = e[Dr];
|
|
723
|
-
return t ? t.type_ : Array.isArray(e) ? 1 :
|
|
723
|
+
return t ? t.type_ : Array.isArray(e) ? 1 : ja(e) ? 2 : ei(e) ? 3 : 0;
|
|
724
724
|
}
|
|
725
725
|
function M0(e, t) {
|
|
726
726
|
return Qs(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
|
|
@@ -732,7 +732,7 @@ function xd(e, t, r) {
|
|
|
732
732
|
function wh(e, t) {
|
|
733
733
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function ja(e) {
|
|
736
736
|
return e instanceof Map;
|
|
737
737
|
}
|
|
738
738
|
function ei(e) {
|
|
@@ -742,7 +742,7 @@ function wn(e) {
|
|
|
742
742
|
return e.copy_ || e.base_;
|
|
743
743
|
}
|
|
744
744
|
function N0(e, t) {
|
|
745
|
-
if (
|
|
745
|
+
if (ja(e))
|
|
746
746
|
return new Map(e);
|
|
747
747
|
if (ei(e))
|
|
748
748
|
return new Set(e);
|
|
@@ -763,9 +763,9 @@ function N0(e, t) {
|
|
|
763
763
|
value: e[c]
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
|
-
return Object.create(
|
|
766
|
+
return Object.create(Ba(e), n);
|
|
767
767
|
} else {
|
|
768
|
-
const n =
|
|
768
|
+
const n = Ba(e);
|
|
769
769
|
if (n !== null && r)
|
|
770
770
|
return { ...e };
|
|
771
771
|
const s = Object.create(n);
|
|
@@ -774,16 +774,16 @@ function N0(e, t) {
|
|
|
774
774
|
}
|
|
775
775
|
function no(e, t = !1) {
|
|
776
776
|
return ti(e) || On(e) || !Mn(e) || (Qs(e) > 1 && Object.defineProperties(e, {
|
|
777
|
-
set:
|
|
778
|
-
add:
|
|
779
|
-
clear:
|
|
780
|
-
delete:
|
|
777
|
+
set: as,
|
|
778
|
+
add: as,
|
|
779
|
+
clear: as,
|
|
780
|
+
delete: as
|
|
781
781
|
}), Object.freeze(e), t && Object.values(e).forEach((r) => no(r, !0))), e;
|
|
782
782
|
}
|
|
783
783
|
function Dh() {
|
|
784
784
|
vr(2);
|
|
785
785
|
}
|
|
786
|
-
var
|
|
786
|
+
var as = {
|
|
787
787
|
value: Dh
|
|
788
788
|
};
|
|
789
789
|
function ti(e) {
|
|
@@ -794,9 +794,9 @@ function Nn(e) {
|
|
|
794
794
|
const t = Ch[e];
|
|
795
795
|
return t || vr(0, e), t;
|
|
796
796
|
}
|
|
797
|
-
var
|
|
797
|
+
var Sa;
|
|
798
798
|
function wd() {
|
|
799
|
-
return
|
|
799
|
+
return Sa;
|
|
800
800
|
}
|
|
801
801
|
function Ah(e, t) {
|
|
802
802
|
return {
|
|
@@ -816,10 +816,10 @@ function R0(e) {
|
|
|
816
816
|
P0(e), e.drafts_.forEach(Eh), e.drafts_ = null;
|
|
817
817
|
}
|
|
818
818
|
function P0(e) {
|
|
819
|
-
e ===
|
|
819
|
+
e === Sa && (Sa = e.parent_);
|
|
820
820
|
}
|
|
821
821
|
function ru(e) {
|
|
822
|
-
return
|
|
822
|
+
return Sa = Ah(Sa, e);
|
|
823
823
|
}
|
|
824
824
|
function Eh(e) {
|
|
825
825
|
const t = e[Dr];
|
|
@@ -890,7 +890,7 @@ function au(e, t, r, n, s, l, c) {
|
|
|
890
890
|
if (Mn(s) && !f) {
|
|
891
891
|
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[n] === s && f)
|
|
892
892
|
return;
|
|
893
|
-
js(e, s), (!t || !t.scope_.parent_) && typeof n != "symbol" && (
|
|
893
|
+
js(e, s), (!t || !t.scope_.parent_) && typeof n != "symbol" && (ja(r) ? r.has(n) : Object.prototype.propertyIsEnumerable.call(r, n)) && Is(e, s);
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
896
|
}
|
|
@@ -922,7 +922,7 @@ function kh(e, t) {
|
|
|
922
922
|
isManual_: !1
|
|
923
923
|
};
|
|
924
924
|
let s = n, l = ao;
|
|
925
|
-
r && (s = [n], l =
|
|
925
|
+
r && (s = [n], l = Fa);
|
|
926
926
|
const { revoke: c, proxy: f } = Proxy.revocable(s, l);
|
|
927
927
|
return n.draft_ = f, n.revoke_ = c, f;
|
|
928
928
|
}
|
|
@@ -976,21 +976,21 @@ var ao = {
|
|
|
976
976
|
vr(11);
|
|
977
977
|
},
|
|
978
978
|
getPrototypeOf(e) {
|
|
979
|
-
return
|
|
979
|
+
return Ba(e.base_);
|
|
980
980
|
},
|
|
981
981
|
setPrototypeOf() {
|
|
982
982
|
vr(12);
|
|
983
983
|
}
|
|
984
|
-
},
|
|
984
|
+
}, Fa = {};
|
|
985
985
|
$s(ao, (e, t) => {
|
|
986
|
-
|
|
986
|
+
Fa[e] = function() {
|
|
987
987
|
return arguments[0] = arguments[0][0], t.apply(this, arguments);
|
|
988
988
|
};
|
|
989
989
|
});
|
|
990
|
-
|
|
991
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && vr(13),
|
|
990
|
+
Fa.deleteProperty = function(e, t) {
|
|
991
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && vr(13), Fa.set.call(this, e, t, void 0);
|
|
992
992
|
};
|
|
993
|
-
|
|
993
|
+
Fa.set = function(e, t, r) {
|
|
994
994
|
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && vr(14), ao.set.call(this, e[0], t, r, e[0]);
|
|
995
995
|
};
|
|
996
996
|
function Wi(e, t) {
|
|
@@ -1008,12 +1008,12 @@ function Bh(e, t, r) {
|
|
|
1008
1008
|
function Dd(e, t) {
|
|
1009
1009
|
if (!(t in e))
|
|
1010
1010
|
return;
|
|
1011
|
-
let r =
|
|
1011
|
+
let r = Ba(e);
|
|
1012
1012
|
for (; r; ) {
|
|
1013
1013
|
const n = Object.getOwnPropertyDescriptor(r, t);
|
|
1014
1014
|
if (n)
|
|
1015
1015
|
return n;
|
|
1016
|
-
r =
|
|
1016
|
+
r = Ba(r);
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
1019
|
function z0(e) {
|
|
@@ -1121,7 +1121,7 @@ var Sh = class {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
};
|
|
1123
1123
|
function $0(e, t) {
|
|
1124
|
-
const r =
|
|
1124
|
+
const r = ja(e) ? Nn("MapSet").proxyMap_(e, t) : ei(e) ? Nn("MapSet").proxySet_(e, t) : kh(e, t);
|
|
1125
1125
|
return (t ? t.scope_ : wd()).drafts_.push(r), r;
|
|
1126
1126
|
}
|
|
1127
1127
|
function Fh(e) {
|
|
@@ -1146,7 +1146,7 @@ function Cd(e) {
|
|
|
1146
1146
|
n
|
|
1147
1147
|
), t && (t.finalized_ = !1), r;
|
|
1148
1148
|
}
|
|
1149
|
-
var
|
|
1149
|
+
var Ta = new Sh(), so = Ta.produce, su = /* @__PURE__ */ Ta.createDraft.bind(Ta), iu = /* @__PURE__ */ Ta.finishDraft.bind(Ta), Th = {
|
|
1150
1150
|
transform(e, t) {
|
|
1151
1151
|
var {
|
|
1152
1152
|
current: r,
|
|
@@ -1185,7 +1185,7 @@ var Oa = new Sh(), so = Oa.produce, su = /* @__PURE__ */ Oa.createDraft.bind(Oa)
|
|
|
1185
1185
|
e.current = s, s == null && e.unref();
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
|
-
}, Ls = /* @__PURE__ */ new WeakMap(), qs = /* @__PURE__ */ new WeakMap(),
|
|
1188
|
+
}, Ls = /* @__PURE__ */ new WeakMap(), qs = /* @__PURE__ */ new WeakMap(), wa = /* @__PURE__ */ new WeakMap(), Ad = /* @__PURE__ */ new WeakMap(), ou = /* @__PURE__ */ new WeakMap(), lu = /* @__PURE__ */ new WeakMap(), uu = /* @__PURE__ */ new WeakMap(), H = {
|
|
1189
1189
|
ancestors(e) {
|
|
1190
1190
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
|
|
1191
1191
|
reverse: r = !1
|
|
@@ -1361,27 +1361,27 @@ var Oa = new Sh(), so = Oa.produce, su = /* @__PURE__ */ Oa.createDraft.bind(Oa)
|
|
|
1361
1361
|
return n;
|
|
1362
1362
|
}
|
|
1363
1363
|
};
|
|
1364
|
-
function
|
|
1364
|
+
function Oa(e) {
|
|
1365
1365
|
"@babel/helpers - typeof";
|
|
1366
|
-
return
|
|
1366
|
+
return Oa = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1367
1367
|
return typeof t;
|
|
1368
1368
|
} : function(t) {
|
|
1369
1369
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1370
|
-
},
|
|
1370
|
+
}, Oa(e);
|
|
1371
1371
|
}
|
|
1372
1372
|
function Nh(e, t) {
|
|
1373
|
-
if (
|
|
1373
|
+
if (Oa(e) !== "object" || e === null) return e;
|
|
1374
1374
|
var r = e[Symbol.toPrimitive];
|
|
1375
1375
|
if (r !== void 0) {
|
|
1376
1376
|
var n = r.call(e, t);
|
|
1377
|
-
if (
|
|
1377
|
+
if (Oa(n) !== "object") return n;
|
|
1378
1378
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1379
1379
|
}
|
|
1380
1380
|
return (t === "string" ? String : Number)(e);
|
|
1381
1381
|
}
|
|
1382
1382
|
function Rh(e) {
|
|
1383
1383
|
var t = Nh(e, "string");
|
|
1384
|
-
return
|
|
1384
|
+
return Oa(t) === "symbol" ? t : String(t);
|
|
1385
1385
|
}
|
|
1386
1386
|
function cr(e, t, r) {
|
|
1387
1387
|
return t = Rh(t), t in e ? Object.defineProperty(e, t, {
|
|
@@ -1401,7 +1401,7 @@ function cu(e, t) {
|
|
|
1401
1401
|
}
|
|
1402
1402
|
return r;
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function pa(e) {
|
|
1405
1405
|
for (var t = 1; t < arguments.length; t++) {
|
|
1406
1406
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
1407
1407
|
t % 2 ? cu(Object(r), !0).forEach(function(n) {
|
|
@@ -1535,7 +1535,7 @@ var Ph = (e, t, r) => {
|
|
|
1535
1535
|
if (t == null) {
|
|
1536
1536
|
if (!me.isRange(nt))
|
|
1537
1537
|
throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(tr.stringify(nt), " when there is no current selection."));
|
|
1538
|
-
t =
|
|
1538
|
+
t = pa({}, nt);
|
|
1539
1539
|
}
|
|
1540
1540
|
for (var st in nt) {
|
|
1541
1541
|
var Lt = nt[st];
|
|
@@ -1560,12 +1560,12 @@ var Ph = (e, t, r) => {
|
|
|
1560
1560
|
var ht = Re.get(e, Ht), Qe = Re.parent(e, Ht), Ne = Ht[Ht.length - 1], Gt;
|
|
1561
1561
|
if (Ie.isText(ht)) {
|
|
1562
1562
|
var zr = ht.text.slice(0, Wt), rn = ht.text.slice(Wt);
|
|
1563
|
-
ht.text = zr, Gt =
|
|
1563
|
+
ht.text = zr, Gt = pa(pa({}, ct), {}, {
|
|
1564
1564
|
text: rn
|
|
1565
1565
|
});
|
|
1566
1566
|
} else {
|
|
1567
1567
|
var vn = ht.children.slice(0, Wt), yr = ht.children.slice(Wt);
|
|
1568
|
-
ht.children = vn, Gt =
|
|
1568
|
+
ht.children = vn, Gt = pa(pa({}, ct), {}, {
|
|
1569
1569
|
children: yr
|
|
1570
1570
|
});
|
|
1571
1571
|
}
|
|
@@ -2032,9 +2032,9 @@ function Nt(e) {
|
|
|
2032
2032
|
}
|
|
2033
2033
|
return e;
|
|
2034
2034
|
}
|
|
2035
|
-
var
|
|
2035
|
+
var ba = {
|
|
2036
2036
|
isNodeOperation(e) {
|
|
2037
|
-
return
|
|
2037
|
+
return ba.isOperation(e) && e.type.endsWith("_node");
|
|
2038
2038
|
},
|
|
2039
2039
|
isOperation(e) {
|
|
2040
2040
|
if (!sr(e))
|
|
@@ -2063,13 +2063,13 @@ var ya = {
|
|
|
2063
2063
|
}
|
|
2064
2064
|
},
|
|
2065
2065
|
isOperationList(e) {
|
|
2066
|
-
return Array.isArray(e) && e.every((t) =>
|
|
2066
|
+
return Array.isArray(e) && e.every((t) => ba.isOperation(t));
|
|
2067
2067
|
},
|
|
2068
2068
|
isSelectionOperation(e) {
|
|
2069
|
-
return
|
|
2069
|
+
return ba.isOperation(e) && e.type.endsWith("_selection");
|
|
2070
2070
|
},
|
|
2071
2071
|
isTextOperation(e) {
|
|
2072
|
-
return
|
|
2072
|
+
return ba.isOperation(e) && e.type.endsWith("_text");
|
|
2073
2073
|
},
|
|
2074
2074
|
inverse(e) {
|
|
2075
2075
|
switch (e.type) {
|
|
@@ -2151,7 +2151,7 @@ var ya = {
|
|
|
2151
2151
|
return t;
|
|
2152
2152
|
if (!sr(e))
|
|
2153
2153
|
return !1;
|
|
2154
|
-
var r = typeof e.addMark == "function" && typeof e.apply == "function" && typeof e.deleteFragment == "function" && typeof e.insertBreak == "function" && typeof e.insertSoftBreak == "function" && typeof e.insertFragment == "function" && typeof e.insertNode == "function" && typeof e.insertText == "function" && typeof e.isElementReadOnly == "function" && typeof e.isInline == "function" && typeof e.isSelectable == "function" && typeof e.isVoid == "function" && typeof e.normalizeNode == "function" && typeof e.onChange == "function" && typeof e.removeMark == "function" && typeof e.getDirtyPaths == "function" && (e.marks === null || sr(e.marks)) && (e.selection === null || me.isRange(e.selection)) && Re.isNodeList(e.children) &&
|
|
2154
|
+
var r = typeof e.addMark == "function" && typeof e.apply == "function" && typeof e.deleteFragment == "function" && typeof e.insertBreak == "function" && typeof e.insertSoftBreak == "function" && typeof e.insertFragment == "function" && typeof e.insertNode == "function" && typeof e.insertText == "function" && typeof e.isElementReadOnly == "function" && typeof e.isInline == "function" && typeof e.isSelectable == "function" && typeof e.isVoid == "function" && typeof e.normalizeNode == "function" && typeof e.onChange == "function" && typeof e.removeMark == "function" && typeof e.getDirtyPaths == "function" && (e.marks === null || sr(e.marks)) && (e.selection === null || me.isRange(e.selection)) && Re.isNodeList(e.children) && ba.isOperationList(e.operations);
|
|
2155
2155
|
return pu.set(e, r), r;
|
|
2156
2156
|
}, A = {
|
|
2157
2157
|
above(e, t) {
|
|
@@ -2681,7 +2681,7 @@ function wu(e, t) {
|
|
|
2681
2681
|
}
|
|
2682
2682
|
return r;
|
|
2683
2683
|
}
|
|
2684
|
-
function
|
|
2684
|
+
function ss(e) {
|
|
2685
2685
|
for (var t = 1; t < arguments.length; t++) {
|
|
2686
2686
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
2687
2687
|
t % 2 ? wu(Object(r), !0).forEach(function(n) {
|
|
@@ -2692,13 +2692,13 @@ function is(e) {
|
|
|
2692
2692
|
}
|
|
2693
2693
|
return e;
|
|
2694
2694
|
}
|
|
2695
|
-
var Fe =
|
|
2696
|
-
var n =
|
|
2697
|
-
|
|
2695
|
+
var Fe = ss(ss(ss(ss({}, zh), $h), jh), vm), Cs = /* @__PURE__ */ new WeakMap(), bm = (e) => Cs.get(e) || !1, ym = (e, t, r) => {
|
|
2696
|
+
var n = Cs.get(e) || !1;
|
|
2697
|
+
Cs.set(e, !0);
|
|
2698
2698
|
try {
|
|
2699
2699
|
t(), r();
|
|
2700
2700
|
} finally {
|
|
2701
|
-
|
|
2701
|
+
Cs.set(e, n);
|
|
2702
2702
|
}
|
|
2703
2703
|
};
|
|
2704
2704
|
function kd(e, t, r) {
|
|
@@ -2733,8 +2733,8 @@ var xm = (e, t) => {
|
|
|
2733
2733
|
}
|
|
2734
2734
|
Fe.transform(e, t), e.operations.push(t), A.normalize(e, {
|
|
2735
2735
|
operation: t
|
|
2736
|
-
}), t.type === "set_selection" && (e.marks = null),
|
|
2737
|
-
|
|
2736
|
+
}), t.type === "set_selection" && (e.marks = null), wa.get(e) || (wa.set(e, !0), Promise.resolve().then(() => {
|
|
2737
|
+
wa.set(e, !1), e.onChange({
|
|
2738
2738
|
operation: t
|
|
2739
2739
|
}), e.operations = [];
|
|
2740
2740
|
}));
|
|
@@ -2949,7 +2949,7 @@ var km = (e, t, r) => {
|
|
|
2949
2949
|
var w = Cu(Cu({}, A.marks(e) || {}), {}, {
|
|
2950
2950
|
[t]: r
|
|
2951
2951
|
});
|
|
2952
|
-
e.marks = w,
|
|
2952
|
+
e.marks = w, wa.get(e) || e.onChange();
|
|
2953
2953
|
}
|
|
2954
2954
|
}
|
|
2955
2955
|
};
|
|
@@ -3645,7 +3645,7 @@ var Dp = (e, t) => {
|
|
|
3645
3645
|
});
|
|
3646
3646
|
else {
|
|
3647
3647
|
var p = wp({}, A.marks(e) || {});
|
|
3648
|
-
delete p[t], e.marks = p,
|
|
3648
|
+
delete p[t], e.marks = p, wa.get(e) || e.onChange();
|
|
3649
3649
|
}
|
|
3650
3650
|
}
|
|
3651
3651
|
}, Cp = (e, t) => {
|
|
@@ -5102,7 +5102,7 @@ var Yi, Lu;
|
|
|
5102
5102
|
function Qp() {
|
|
5103
5103
|
if (Lu) return Yi;
|
|
5104
5104
|
Lu = 1;
|
|
5105
|
-
var e = typeof
|
|
5105
|
+
var e = typeof rs == "object" && rs && rs.Object === Object && rs;
|
|
5106
5106
|
return Yi = e, Yi;
|
|
5107
5107
|
}
|
|
5108
5108
|
var Ki, qu;
|
|
@@ -5302,7 +5302,7 @@ function d4() {
|
|
|
5302
5302
|
return o0 = n, o0;
|
|
5303
5303
|
}
|
|
5304
5304
|
var f4 = d4();
|
|
5305
|
-
const h4 = /* @__PURE__ */ Js(f4), ec = (e) => typeof e == "object" && e != null && e.nodeType === 1, tc = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip",
|
|
5305
|
+
const h4 = /* @__PURE__ */ Js(f4), ec = (e) => typeof e == "object" && e != null && e.nodeType === 1, tc = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", is = (e, t) => {
|
|
5306
5306
|
if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
|
|
5307
5307
|
const r = getComputedStyle(e, null);
|
|
5308
5308
|
return tc(r.overflowY, t) || tc(r.overflowX, t) || ((n) => {
|
|
@@ -5318,7 +5318,7 @@ const h4 = /* @__PURE__ */ Js(f4), ec = (e) => typeof e == "object" && e != null
|
|
|
5318
5318
|
})(e);
|
|
5319
5319
|
}
|
|
5320
5320
|
return !1;
|
|
5321
|
-
},
|
|
5321
|
+
}, os = (e, t, r, n, s, l, c, f) => l < e && c > t || l > e && c < t ? 0 : l <= e && f <= r || c >= t && f >= r ? l - e - n : c > t && f < r || l < e && f > r ? c - t + s : 0, m4 = (e) => {
|
|
5322
5322
|
const t = e.parentElement;
|
|
5323
5323
|
return t ?? (e.getRootNode().host || null);
|
|
5324
5324
|
}, rc = (e, t) => {
|
|
@@ -5333,7 +5333,7 @@ const h4 = /* @__PURE__ */ Js(f4), ec = (e) => typeof e == "object" && e != null
|
|
|
5333
5333
|
T.push(M);
|
|
5334
5334
|
break;
|
|
5335
5335
|
}
|
|
5336
|
-
M != null && M === document.body &&
|
|
5336
|
+
M != null && M === document.body && is(M) && !is(document.documentElement) || M != null && is(M, w) && T.push(M);
|
|
5337
5337
|
}
|
|
5338
5338
|
const S = (n = (r = window.visualViewport) == null ? void 0 : r.width) != null ? n : innerWidth, g = (l = (s = window.visualViewport) == null ? void 0 : s.height) != null ? l : innerHeight, { scrollX: I, scrollY: $ } = window, { height: W, width: q, top: V, right: G, bottom: U, left: ue } = e.getBoundingClientRect(), { top: ve, right: pe, bottom: fe, left: ne } = ((se) => {
|
|
5339
5339
|
const J = window.getComputedStyle(se);
|
|
@@ -5343,13 +5343,13 @@ const h4 = /* @__PURE__ */ Js(f4), ec = (e) => typeof e == "object" && e != null
|
|
|
5343
5343
|
const X = [];
|
|
5344
5344
|
for (let se = 0; se < T.length; se++) {
|
|
5345
5345
|
const J = T[se], { height: ye, width: we, top: P, right: he, bottom: Ae, left: re } = J.getBoundingClientRect();
|
|
5346
|
-
if (c === "if-needed" && V >= 0 && ue >= 0 && U <= g && G <= S && (J === E && !
|
|
5346
|
+
if (c === "if-needed" && V >= 0 && ue >= 0 && U <= g && G <= S && (J === E && !is(J) || V >= P && U <= Ae && ue >= re && G <= he)) return X;
|
|
5347
5347
|
const Ee = getComputedStyle(J), be = parseInt(Ee.borderLeftWidth, 10), z = parseInt(Ee.borderTopWidth, 10), de = parseInt(Ee.borderRightWidth, 10), ae = parseInt(Ee.borderBottomWidth, 10);
|
|
5348
5348
|
let le = 0, ge = 0;
|
|
5349
5349
|
const ke = "offsetWidth" in J ? J.offsetWidth - J.clientWidth - be - de : 0, Pe = "offsetHeight" in J ? J.offsetHeight - J.clientHeight - z - ae : 0, Le = "offsetWidth" in J ? J.offsetWidth === 0 ? 0 : we / J.offsetWidth : 0, De = "offsetHeight" in J ? J.offsetHeight === 0 ? 0 : ye / J.offsetHeight : 0;
|
|
5350
|
-
if (E === J) le = f === "start" ? oe : f === "end" ? oe - g : f === "nearest" ?
|
|
5350
|
+
if (E === J) le = f === "start" ? oe : f === "end" ? oe - g : f === "nearest" ? os($, $ + g, g, z, ae, $ + oe, $ + oe + W, W) : oe - g / 2, ge = y === "start" ? ee : y === "center" ? ee - S / 2 : y === "end" ? ee - S : os(I, I + S, S, be, de, I + ee, I + ee + q, q), le = Math.max(0, le + $), ge = Math.max(0, ge + I);
|
|
5351
5351
|
else {
|
|
5352
|
-
le = f === "start" ? oe - P - z : f === "end" ? oe - Ae + ae + Pe : f === "nearest" ?
|
|
5352
|
+
le = f === "start" ? oe - P - z : f === "end" ? oe - Ae + ae + Pe : f === "nearest" ? os(P, Ae, ye, z, ae + Pe, oe, oe + W, W) : oe - (P + ye / 2) + Pe / 2, ge = y === "start" ? ee - re - be : y === "center" ? ee - (re + we / 2) + ke / 2 : y === "end" ? ee - he + de + ke : os(re, he, we, be, de + ke, ee, ee + q, q);
|
|
5353
5353
|
const { scrollLeft: qe, scrollTop: Ge } = J;
|
|
5354
5354
|
le = De === 0 ? 0 : Math.max(0, Math.min(Ge + le / De, J.scrollHeight - ye / De + Pe)), ge = Le === 0 ? 0 : Math.max(0, Math.min(qe + ge / Le, J.scrollWidth - we / Le + ke)), oe += Ge - le, ee += qe - ge;
|
|
5355
5355
|
}
|
|
@@ -5390,10 +5390,10 @@ var kn = [], v4 = function() {
|
|
|
5390
5390
|
typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
|
|
5391
5391
|
message: nc
|
|
5392
5392
|
}) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = nc), window.dispatchEvent(e);
|
|
5393
|
-
},
|
|
5393
|
+
}, Ma;
|
|
5394
5394
|
(function(e) {
|
|
5395
5395
|
e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
5396
|
-
})(
|
|
5396
|
+
})(Ma || (Ma = {}));
|
|
5397
5397
|
var Bn = function(e) {
|
|
5398
5398
|
return Object.freeze(e);
|
|
5399
5399
|
}, x4 = /* @__PURE__ */ (function() {
|
|
@@ -5441,7 +5441,7 @@ var Bn = function(e) {
|
|
|
5441
5441
|
return !0;
|
|
5442
5442
|
}
|
|
5443
5443
|
return !1;
|
|
5444
|
-
},
|
|
5444
|
+
}, Da = typeof window < "u" ? window : {}, ls = /* @__PURE__ */ new WeakMap(), sc = /auto|scroll/, D4 = /^tb|vertical/, C4 = /msie|trident/i.test(Da.navigator && Da.navigator.userAgent), qr = function(e) {
|
|
5445
5445
|
return parseFloat(e || "0");
|
|
5446
5446
|
}, Gn = function(e, t, r) {
|
|
5447
5447
|
return e === void 0 && (e = 0), t === void 0 && (t = 0), r === void 0 && (r = !1), new x4((r ? t : e) || 0, (r ? e : t) || 0);
|
|
@@ -5451,23 +5451,23 @@ var Bn = function(e) {
|
|
|
5451
5451
|
contentBoxSize: Gn(),
|
|
5452
5452
|
contentRect: new Md(0, 0, 0, 0)
|
|
5453
5453
|
}), Rd = function(e, t) {
|
|
5454
|
-
if (t === void 0 && (t = !1),
|
|
5455
|
-
return
|
|
5454
|
+
if (t === void 0 && (t = !1), ls.has(e) && !t)
|
|
5455
|
+
return ls.get(e);
|
|
5456
5456
|
if (Nd(e))
|
|
5457
|
-
return
|
|
5457
|
+
return ls.set(e, ic), ic;
|
|
5458
5458
|
var r = getComputedStyle(e), n = co(e) && e.ownerSVGElement && e.getBBox(), s = !C4 && r.boxSizing === "border-box", l = D4.test(r.writingMode || ""), c = !n && sc.test(r.overflowY || ""), f = !n && sc.test(r.overflowX || ""), y = n ? 0 : qr(r.paddingTop), p = n ? 0 : qr(r.paddingRight), w = n ? 0 : qr(r.paddingBottom), C = n ? 0 : qr(r.paddingLeft), E = n ? 0 : qr(r.borderTopWidth), T = n ? 0 : qr(r.borderRightWidth), M = n ? 0 : qr(r.borderBottomWidth), S = n ? 0 : qr(r.borderLeftWidth), g = C + p, I = y + w, $ = S + T, W = E + M, q = f ? e.offsetHeight - W - e.clientHeight : 0, V = c ? e.offsetWidth - $ - e.clientWidth : 0, G = s ? g + $ : 0, U = s ? I + W : 0, ue = n ? n.width : qr(r.width) - G - V, ve = n ? n.height : qr(r.height) - U - q, pe = ue + g + V + $, fe = ve + I + q + W, ne = Bn({
|
|
5459
5459
|
devicePixelContentBoxSize: Gn(Math.round(ue * devicePixelRatio), Math.round(ve * devicePixelRatio), l),
|
|
5460
5460
|
borderBoxSize: Gn(pe, fe, l),
|
|
5461
5461
|
contentBoxSize: Gn(ue, ve, l),
|
|
5462
5462
|
contentRect: new Md(C, y, ue, ve)
|
|
5463
5463
|
});
|
|
5464
|
-
return
|
|
5464
|
+
return ls.set(e, ne), ne;
|
|
5465
5465
|
}, Pd = function(e, t, r) {
|
|
5466
5466
|
var n = Rd(e, r), s = n.borderBoxSize, l = n.contentBoxSize, c = n.devicePixelContentBoxSize;
|
|
5467
5467
|
switch (t) {
|
|
5468
|
-
case
|
|
5468
|
+
case Ma.DEVICE_PIXEL_CONTENT_BOX:
|
|
5469
5469
|
return c;
|
|
5470
|
-
case
|
|
5470
|
+
case Ma.BORDER_BOX:
|
|
5471
5471
|
return s;
|
|
5472
5472
|
default:
|
|
5473
5473
|
return l;
|
|
@@ -5531,8 +5531,8 @@ var Bn = function(e) {
|
|
|
5531
5531
|
S4(function() {
|
|
5532
5532
|
requestAnimationFrame(e);
|
|
5533
5533
|
});
|
|
5534
|
-
},
|
|
5535
|
-
return !!
|
|
5534
|
+
}, As = 0, T4 = function() {
|
|
5535
|
+
return !!As;
|
|
5536
5536
|
}, O4 = 250, M4 = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, lc = [
|
|
5537
5537
|
"resize",
|
|
5538
5538
|
"load",
|
|
@@ -5579,25 +5579,25 @@ var Bn = function(e) {
|
|
|
5579
5579
|
var t = this, r = function() {
|
|
5580
5580
|
return t.observer && t.observer.observe(document.body, M4);
|
|
5581
5581
|
};
|
|
5582
|
-
document.body ? r() :
|
|
5582
|
+
document.body ? r() : Da.addEventListener("DOMContentLoaded", r);
|
|
5583
5583
|
}, e.prototype.start = function() {
|
|
5584
5584
|
var t = this;
|
|
5585
5585
|
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), lc.forEach(function(r) {
|
|
5586
|
-
return
|
|
5586
|
+
return Da.addEventListener(r, t.listener, !0);
|
|
5587
5587
|
}));
|
|
5588
5588
|
}, e.prototype.stop = function() {
|
|
5589
5589
|
var t = this;
|
|
5590
5590
|
this.stopped || (this.observer && this.observer.disconnect(), lc.forEach(function(r) {
|
|
5591
|
-
return
|
|
5591
|
+
return Da.removeEventListener(r, t.listener, !0);
|
|
5592
5592
|
}), this.stopped = !0);
|
|
5593
5593
|
}, e;
|
|
5594
5594
|
})(), j0 = new N4(), cc = function(e) {
|
|
5595
|
-
!
|
|
5595
|
+
!As && e > 0 && j0.start(), As += e, !As && j0.stop();
|
|
5596
5596
|
}, R4 = function(e) {
|
|
5597
5597
|
return !co(e) && !w4(e) && getComputedStyle(e).display === "inline";
|
|
5598
5598
|
}, P4 = (function() {
|
|
5599
5599
|
function e(t, r) {
|
|
5600
|
-
this.target = t, this.observedBox = r ||
|
|
5600
|
+
this.target = t, this.observedBox = r || Ma.CONTENT_BOX, this.lastReportedSize = {
|
|
5601
5601
|
inlineSize: 0,
|
|
5602
5602
|
blockSize: 0
|
|
5603
5603
|
};
|
|
@@ -5611,25 +5611,25 @@ var Bn = function(e) {
|
|
|
5611
5611
|
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = t, this.callback = r;
|
|
5612
5612
|
}
|
|
5613
5613
|
return e;
|
|
5614
|
-
})(),
|
|
5614
|
+
})(), us = /* @__PURE__ */ new WeakMap(), dc = function(e, t) {
|
|
5615
5615
|
for (var r = 0; r < e.length; r += 1)
|
|
5616
5616
|
if (e[r].target === t)
|
|
5617
5617
|
return r;
|
|
5618
5618
|
return -1;
|
|
5619
|
-
},
|
|
5619
|
+
}, cs = (function() {
|
|
5620
5620
|
function e() {
|
|
5621
5621
|
}
|
|
5622
5622
|
return e.connect = function(t, r) {
|
|
5623
5623
|
var n = new z4(t, r);
|
|
5624
|
-
|
|
5624
|
+
us.set(t, n);
|
|
5625
5625
|
}, e.observe = function(t, r, n) {
|
|
5626
|
-
var s =
|
|
5626
|
+
var s = us.get(t), l = s.observationTargets.length === 0;
|
|
5627
5627
|
dc(s.observationTargets, r) < 0 && (l && kn.push(s), s.observationTargets.push(new P4(r, n && n.box)), cc(1), j0.schedule());
|
|
5628
5628
|
}, e.unobserve = function(t, r) {
|
|
5629
|
-
var n =
|
|
5629
|
+
var n = us.get(t), s = dc(n.observationTargets, r), l = n.observationTargets.length === 1;
|
|
5630
5630
|
s >= 0 && (l && kn.splice(kn.indexOf(n), 1), n.observationTargets.splice(s, 1), cc(-1));
|
|
5631
5631
|
}, e.disconnect = function(t) {
|
|
5632
|
-
var r = this, n =
|
|
5632
|
+
var r = this, n = us.get(t);
|
|
5633
5633
|
n.observationTargets.slice().forEach(function(s) {
|
|
5634
5634
|
return r.unobserve(t, s.target);
|
|
5635
5635
|
}), n.activeTargets.splice(0, n.activeTargets.length);
|
|
@@ -5640,22 +5640,22 @@ var Bn = function(e) {
|
|
|
5640
5640
|
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
5641
5641
|
if (typeof t != "function")
|
|
5642
5642
|
throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
5643
|
-
|
|
5643
|
+
cs.connect(this, t);
|
|
5644
5644
|
}
|
|
5645
5645
|
return e.prototype.observe = function(t, r) {
|
|
5646
5646
|
if (arguments.length === 0)
|
|
5647
5647
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
5648
5648
|
if (!ac(t))
|
|
5649
5649
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
5650
|
-
|
|
5650
|
+
cs.observe(this, t, r);
|
|
5651
5651
|
}, e.prototype.unobserve = function(t) {
|
|
5652
5652
|
if (arguments.length === 0)
|
|
5653
5653
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
5654
5654
|
if (!ac(t))
|
|
5655
5655
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
5656
|
-
|
|
5656
|
+
cs.unobserve(this, t);
|
|
5657
5657
|
}, e.prototype.disconnect = function() {
|
|
5658
|
-
|
|
5658
|
+
cs.disconnect(this);
|
|
5659
5659
|
}, e.toString = function() {
|
|
5660
5660
|
return "function ResizeObserver () { [polyfill code] }";
|
|
5661
5661
|
}, e;
|
|
@@ -5810,27 +5810,27 @@ function Kn(e, t) {
|
|
|
5810
5810
|
}
|
|
5811
5811
|
return r;
|
|
5812
5812
|
}
|
|
5813
|
-
function
|
|
5813
|
+
function Na(e) {
|
|
5814
5814
|
"@babel/helpers - typeof";
|
|
5815
|
-
return
|
|
5815
|
+
return Na = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
5816
5816
|
return typeof t;
|
|
5817
5817
|
} : function(t) {
|
|
5818
5818
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
5819
|
-
},
|
|
5819
|
+
}, Na(e);
|
|
5820
5820
|
}
|
|
5821
5821
|
function L4(e, t) {
|
|
5822
|
-
if (
|
|
5822
|
+
if (Na(e) !== "object" || e === null) return e;
|
|
5823
5823
|
var r = e[Symbol.toPrimitive];
|
|
5824
5824
|
if (r !== void 0) {
|
|
5825
5825
|
var n = r.call(e, t);
|
|
5826
|
-
if (
|
|
5826
|
+
if (Na(n) !== "object") return n;
|
|
5827
5827
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
5828
5828
|
}
|
|
5829
5829
|
return (t === "string" ? String : Number)(e);
|
|
5830
5830
|
}
|
|
5831
5831
|
function q4(e) {
|
|
5832
5832
|
var t = L4(e, "string");
|
|
5833
|
-
return
|
|
5833
|
+
return Na(t) === "symbol" ? t : String(t);
|
|
5834
5834
|
}
|
|
5835
5835
|
function Fr(e, t, r) {
|
|
5836
5836
|
return t = q4(t), t in e ? Object.defineProperty(e, t, {
|
|
@@ -5841,15 +5841,15 @@ function Fr(e, t, r) {
|
|
|
5841
5841
|
}) : e[t] = r, e;
|
|
5842
5842
|
}
|
|
5843
5843
|
var fo = /* @__PURE__ */ pn(null), gn = () => {
|
|
5844
|
-
var e =
|
|
5844
|
+
var e = za(fo);
|
|
5845
5845
|
if (!e)
|
|
5846
5846
|
throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");
|
|
5847
5847
|
return e;
|
|
5848
|
-
}, d0, f0, jd = parseInt(Ue.version.split(".")[0], 10), Id = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, hc = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), lr = typeof navigator < "u" && /Android/.test(navigator.userAgent), Vn = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Dn = typeof navigator < "u" && /AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent), _4 = typeof navigator < "u" && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), Ld = typeof navigator < "u" && /Chrome/i.test(navigator.userAgent), H4 = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), W4 = lr && typeof navigator < "u" && /Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent), U4 = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent), V4 = typeof navigator < "u" && /.*UCBrowser/.test(navigator.userAgent), G4 = typeof navigator < "u" && /.*Wechat/.test(navigator.userAgent) && !/.*MacWechat/.test(navigator.userAgent),
|
|
5848
|
+
}, d0, f0, jd = parseInt(Ue.version.split(".")[0], 10), Id = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, hc = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), lr = typeof navigator < "u" && /Android/.test(navigator.userAgent), Vn = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Dn = typeof navigator < "u" && /AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent), _4 = typeof navigator < "u" && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), Ld = typeof navigator < "u" && /Chrome/i.test(navigator.userAgent), H4 = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), W4 = lr && typeof navigator < "u" && /Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent), U4 = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent), V4 = typeof navigator < "u" && /.*UCBrowser/.test(navigator.userAgent), G4 = typeof navigator < "u" && /.*Wechat/.test(navigator.userAgent) && !/.*MacWechat/.test(navigator.userAgent), Es = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
5849
5849
|
typeof navigator < "u" && /Safari/.test(navigator.userAgent) && /Version\/(\d+)/.test(navigator.userAgent) && ((d0 = navigator.userAgent.match(/Version\/(\d+)/)) !== null && d0 !== void 0 && d0[1] && parseInt((f0 = navigator.userAgent.match(/Version\/(\d+)/)) === null || f0 === void 0 ? void 0 : f0[1], 10) < 17);
|
|
5850
5850
|
var un = (!H4 || !W4) && !_4 && // globalThis is undefined in older browsers
|
|
5851
5851
|
typeof globalThis < "u" && globalThis.InputEvent && // @ts-ignore The `getTargetRanges` property isn't recognized.
|
|
5852
|
-
typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Yn = /* @__PURE__ */ new WeakMap(), ho = /* @__PURE__ */ new WeakMap(), mo = /* @__PURE__ */ new WeakMap(), qd = /* @__PURE__ */ new WeakMap(),
|
|
5852
|
+
typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Yn = /* @__PURE__ */ new WeakMap(), ho = /* @__PURE__ */ new WeakMap(), mo = /* @__PURE__ */ new WeakMap(), qd = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(), I0 = /* @__PURE__ */ new WeakMap(), Ra = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), _s = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap(), L0 = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakMap(), Ca = /* @__PURE__ */ new WeakMap(), q0 = /* @__PURE__ */ new WeakMap(), po = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), _d = /* @__PURE__ */ new WeakMap(), Xn = Symbol("placeholder"), Hd = Symbol("mark-placeholder"), Wd = globalThis.Node, Y4 = globalThis.Text, go = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, K4 = (e) => mn(e) && e.nodeType === 8, Sr = (e) => mn(e) && e.nodeType === 1, mn = (e) => {
|
|
5853
5853
|
var t = go(e);
|
|
5854
5854
|
return !!t && e instanceof t.Node;
|
|
5855
5855
|
}, _0 = (e) => {
|
|
@@ -5906,7 +5906,7 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Yn = /* @_
|
|
|
5906
5906
|
}, eg = /data-slate-fragment="(.+?)"/m, tg = (e) => {
|
|
5907
5907
|
var t = e.getData("text/html"), [, r] = t.match(eg) || [];
|
|
5908
5908
|
return r;
|
|
5909
|
-
},
|
|
5909
|
+
}, Aa = (e) => e.getSelection != null ? e.getSelection() : document.getSelection(), vo = (e, t, r) => {
|
|
5910
5910
|
var {
|
|
5911
5911
|
target: n
|
|
5912
5912
|
} = t;
|
|
@@ -5957,7 +5957,7 @@ var xe = {
|
|
|
5957
5957
|
deselect: (e) => {
|
|
5958
5958
|
var {
|
|
5959
5959
|
selection: t
|
|
5960
|
-
} = e, r = xe.findDocumentOrShadowRoot(e), n =
|
|
5960
|
+
} = e, r = xe.findDocumentOrShadowRoot(e), n = Aa(r);
|
|
5961
5961
|
n && n.rangeCount > 0 && n.removeAllRanges(), t && Fe.deselect(e);
|
|
5962
5962
|
},
|
|
5963
5963
|
findDocumentOrShadowRoot: (e) => {
|
|
@@ -6037,7 +6037,7 @@ var xe = {
|
|
|
6037
6037
|
var n = xe.toDOMNode(t, t), s = xe.findDocumentOrShadowRoot(t);
|
|
6038
6038
|
if (s.activeElement !== n) {
|
|
6039
6039
|
if (t.selection && s instanceof Document) {
|
|
6040
|
-
var l =
|
|
6040
|
+
var l = Aa(s), c = xe.toDOMRange(t, t.selection);
|
|
6041
6041
|
l?.removeAllRanges(), l?.addRange(c);
|
|
6042
6042
|
}
|
|
6043
6043
|
t.selection || Fe.select(t, A.start(t, [])), hn.set(t, !0), n.focus({
|
|
@@ -6093,7 +6093,7 @@ var xe = {
|
|
|
6093
6093
|
},
|
|
6094
6094
|
setFragmentData: (e, t, r) => e.setFragmentData(t, r),
|
|
6095
6095
|
toDOMNode: (e, t) => {
|
|
6096
|
-
var r = ri.get(e), n = A.isEditor(t) ?
|
|
6096
|
+
var r = ri.get(e), n = A.isEditor(t) ? ks.get(e) : r?.get(xe.findKey(e, t));
|
|
6097
6097
|
if (!n)
|
|
6098
6098
|
throw new Error("Cannot resolve a DOM node from Slate node: ".concat(tr.stringify(t)));
|
|
6099
6099
|
return n;
|
|
@@ -6147,7 +6147,7 @@ var xe = {
|
|
|
6147
6147
|
toSlateNode: (e, t) => {
|
|
6148
6148
|
var r = Sr(t) ? t : t.parentElement;
|
|
6149
6149
|
r && !r.hasAttribute("data-slate-node") && (r = r.closest("[data-slate-node]"));
|
|
6150
|
-
var n = r ?
|
|
6150
|
+
var n = r ? Ra.get(r) : null;
|
|
6151
6151
|
if (!n)
|
|
6152
6152
|
throw new Error("Cannot resolve a Slate node from DOM node: ".concat(r));
|
|
6153
6153
|
return n;
|
|
@@ -6562,7 +6562,7 @@ function vc(e, t) {
|
|
|
6562
6562
|
}
|
|
6563
6563
|
return r;
|
|
6564
6564
|
}
|
|
6565
|
-
function
|
|
6565
|
+
function ds(e) {
|
|
6566
6566
|
for (var t = 1; t < arguments.length; t++) {
|
|
6567
6567
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
6568
6568
|
t % 2 ? vc(Object(r), !0).forEach(function(n) {
|
|
@@ -6662,7 +6662,7 @@ function gg(e) {
|
|
|
6662
6662
|
X.splice(J, 1), S();
|
|
6663
6663
|
return;
|
|
6664
6664
|
}
|
|
6665
|
-
X[J] =
|
|
6665
|
+
X[J] = ds(ds({}, X[J]), {}, {
|
|
6666
6666
|
diff: we
|
|
6667
6667
|
});
|
|
6668
6668
|
}, I = function(oe) {
|
|
@@ -6853,7 +6853,7 @@ function gg(e) {
|
|
|
6853
6853
|
if (Xe && p && ee === "insertCompositionText") {
|
|
6854
6854
|
var st = p.start + p.text.search(/\S|$/), Lt = nt.start + nt.text.search(/\S|$/);
|
|
6855
6855
|
Lt === st + 1 && nt.end === p.start + p.text.length ? (nt.start -= 1, p = null, pe()) : p = !1;
|
|
6856
|
-
} else ee === "insertText" ? p === null ? p = nt : p && me.isCollapsed(X) && p.end + p.text.length === rr.offset ? p =
|
|
6856
|
+
} else ee === "insertText" ? p === null ? p = nt : p && me.isCollapsed(X) && p.end + p.text.length === rr.offset ? p = ds(ds({}, p), {}, {
|
|
6857
6857
|
text: p.text + Xe
|
|
6858
6858
|
}) : p = !1 : p = !1;
|
|
6859
6859
|
if (P) {
|
|
@@ -6914,10 +6914,10 @@ function vg() {
|
|
|
6914
6914
|
e.current = !1;
|
|
6915
6915
|
}), []), e.current;
|
|
6916
6916
|
}
|
|
6917
|
-
var
|
|
6917
|
+
var Pa = Es ? ih : Pt;
|
|
6918
6918
|
function bg(e, t, r) {
|
|
6919
6919
|
var [n] = ut(() => new MutationObserver(t));
|
|
6920
|
-
|
|
6920
|
+
Pa(() => {
|
|
6921
6921
|
n.takeRecords();
|
|
6922
6922
|
}), Pt(() => {
|
|
6923
6923
|
if (!e.current)
|
|
@@ -7031,13 +7031,13 @@ var Fg = (e) => {
|
|
|
7031
7031
|
isTrailing: r = !1
|
|
7032
7032
|
} = e, n = Bt(null), s = () => "".concat(t ?? "").concat(r ? `
|
|
7033
7033
|
` : ""), [l] = ut(s);
|
|
7034
|
-
return
|
|
7034
|
+
return Pa(() => {
|
|
7035
7035
|
var c = s();
|
|
7036
7036
|
n.current && n.current.textContent !== c && (n.current.textContent = c);
|
|
7037
7037
|
}), /* @__PURE__ */ Ue.createElement(Tg, {
|
|
7038
7038
|
ref: n
|
|
7039
7039
|
}, l);
|
|
7040
|
-
}, Tg = /* @__PURE__ */ uh(/* @__PURE__ */
|
|
7040
|
+
}, Tg = /* @__PURE__ */ uh(/* @__PURE__ */ $a((e, t) => /* @__PURE__ */ Ue.createElement("span", {
|
|
7041
7041
|
"data-slate-string": !0,
|
|
7042
7042
|
ref: t
|
|
7043
7043
|
}, e.children))), h0 = (e) => {
|
|
@@ -7170,7 +7170,7 @@ var Ng = (e) => {
|
|
|
7170
7170
|
}
|
|
7171
7171
|
var M = Ze((S) => {
|
|
7172
7172
|
var g = ri.get(f);
|
|
7173
|
-
S ? (g?.set(w, S), Sn.set(c, S),
|
|
7173
|
+
S ? (g?.set(w, S), Sn.set(c, S), Ra.set(S, c)) : (g?.delete(w), Sn.delete(c), y.current && Ra.delete(y.current)), y.current = S;
|
|
7174
7174
|
}, [y, f, w, c]);
|
|
7175
7175
|
return /* @__PURE__ */ Ue.createElement("span", {
|
|
7176
7176
|
"data-slate-node": "text",
|
|
@@ -7208,7 +7208,7 @@ var $g = (e) => {
|
|
|
7208
7208
|
selection: c
|
|
7209
7209
|
} = e, f = gn(), y = _g(), p = f.isInline(r), w = xe.findKey(f, r), C = Ze(($) => {
|
|
7210
7210
|
var W = ri.get(f);
|
|
7211
|
-
$ ? (W?.set(w, $), Sn.set(r, $),
|
|
7211
|
+
$ ? (W?.set(w, $), Sn.set(r, $), Ra.set($, r)) : (W?.delete(w), Sn.delete(r));
|
|
7212
7212
|
}, [f, w, r]), E = ef({
|
|
7213
7213
|
decorations: t,
|
|
7214
7214
|
node: r,
|
|
@@ -7259,7 +7259,7 @@ var $g = (e) => {
|
|
|
7259
7259
|
position: "relative"
|
|
7260
7260
|
}
|
|
7261
7261
|
}), r);
|
|
7262
|
-
}, Qd = /* @__PURE__ */ pn(() => []), Lg = () =>
|
|
7262
|
+
}, Qd = /* @__PURE__ */ pn(() => []), Lg = () => za(Qd), qg = /* @__PURE__ */ pn(!1), ef = (e) => {
|
|
7263
7263
|
var {
|
|
7264
7264
|
decorations: t,
|
|
7265
7265
|
node: r,
|
|
@@ -7297,8 +7297,8 @@ var $g = (e) => {
|
|
|
7297
7297
|
})), ho.set(M, E), mo.set(M, r);
|
|
7298
7298
|
}
|
|
7299
7299
|
return w;
|
|
7300
|
-
}, tf = /* @__PURE__ */ pn(!1), _g = () =>
|
|
7301
|
-
var e =
|
|
7300
|
+
}, tf = /* @__PURE__ */ pn(!1), _g = () => za(tf), rf = /* @__PURE__ */ pn(null), nf = () => {
|
|
7301
|
+
var e = za(rf);
|
|
7302
7302
|
if (!e)
|
|
7303
7303
|
throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");
|
|
7304
7304
|
var {
|
|
@@ -7478,7 +7478,7 @@ function _r(e) {
|
|
|
7478
7478
|
}
|
|
7479
7479
|
return e;
|
|
7480
7480
|
}
|
|
7481
|
-
var e2 = (e) => /* @__PURE__ */ Ue.createElement(Ue.Fragment, null, ef(e)), m0 = /* @__PURE__ */
|
|
7481
|
+
var e2 = (e) => /* @__PURE__ */ Ue.createElement(Ue.Fragment, null, ef(e)), m0 = /* @__PURE__ */ $a((e, t) => {
|
|
7482
7482
|
var r = Ze((z) => /* @__PURE__ */ Ue.createElement(t2, _r({}, z)), []), {
|
|
7483
7483
|
autoFocus: n,
|
|
7484
7484
|
decorate: s = r2,
|
|
@@ -7522,7 +7522,7 @@ var e2 = (e) => /* @__PURE__ */ Ue.createElement(Ue.Fragment, null, ef(e)), m0 =
|
|
|
7522
7522
|
if ((lr || !xe.isComposing(g)) && (!fe.isUpdatingSelection || le != null && le.isFlushing()) && !fe.isDraggingInternally) {
|
|
7523
7523
|
var ge = xe.findDocumentOrShadowRoot(g), {
|
|
7524
7524
|
activeElement: ke
|
|
7525
|
-
} = ge, Pe = xe.toDOMNode(g, g), Le =
|
|
7525
|
+
} = ge, Pe = xe.toDOMNode(g, g), Le = Aa(ge);
|
|
7526
7526
|
if (ke === Pe ? (fe.latestElement = ke, hn.set(g, !0)) : hn.delete(g), !Le)
|
|
7527
7527
|
return Fe.deselect(g);
|
|
7528
7528
|
var {
|
|
@@ -7543,12 +7543,12 @@ var e2 = (e) => /* @__PURE__ */ Ue.createElement(Ue.Fragment, null, ef(e)), m0 =
|
|
|
7543
7543
|
node: W,
|
|
7544
7544
|
onDOMSelectionChange: oe,
|
|
7545
7545
|
scheduleOnDOMSelectionChange: ee
|
|
7546
|
-
}),
|
|
7546
|
+
}), Pa(() => {
|
|
7547
7547
|
var z, de, ae;
|
|
7548
|
-
W.current && (ae = go(W.current)) ? (qd.set(g, ae),
|
|
7548
|
+
W.current && (ae = go(W.current)) ? (qd.set(g, ae), ks.set(g, W.current), Sn.set(g, W.current), Ra.set(W.current, g)) : Sn.delete(g);
|
|
7549
7549
|
var {
|
|
7550
7550
|
selection: le
|
|
7551
|
-
} = g, ge = xe.findDocumentOrShadowRoot(g), ke =
|
|
7551
|
+
} = g, ge = xe.findDocumentOrShadowRoot(g), ke = Aa(ge);
|
|
7552
7552
|
if (!(!ke || !xe.isFocused(g) || (z = ne.current) !== null && z !== void 0 && z.hasPendingAction())) {
|
|
7553
7553
|
var Pe = (Ge) => {
|
|
7554
7554
|
var We = ke.type !== "None";
|
|
@@ -7559,7 +7559,7 @@ var e2 = (e) => /* @__PURE__ */ Ue.createElement(Ue.Fragment, null, ef(e)), m0 =
|
|
|
7559
7559
|
At.startContainer === Ke ? ot = St.endContainer : ot = At.startContainer;
|
|
7560
7560
|
} else
|
|
7561
7561
|
ot = ke.anchorNode;
|
|
7562
|
-
var Xe =
|
|
7562
|
+
var Xe = ks.get(g), rr = !1;
|
|
7563
7563
|
if (Xe.contains(ot) && Xe.contains(Ke) && (rr = !0), We && rr && le && !Ge) {
|
|
7564
7564
|
var nr = xe.toSlateRange(g, ke, {
|
|
7565
7565
|
exactMatch: !0,
|
|
@@ -7669,7 +7669,7 @@ var e2 = (e) => /* @__PURE__ */ Ue.createElement(Ue.Fragment, null, ef(e)), m0 =
|
|
|
7669
7669
|
if (!De || !me.equals(De, ct)) {
|
|
7670
7670
|
Ke = !1;
|
|
7671
7671
|
var ht = !We && g.selection && A.rangeRef(g, g.selection);
|
|
7672
|
-
Fe.select(g, ct), ht &&
|
|
7672
|
+
Fe.select(g, ct), ht && Ca.set(g, ht);
|
|
7673
7673
|
}
|
|
7674
7674
|
}
|
|
7675
7675
|
}
|
|
@@ -7759,13 +7759,13 @@ var e2 = (e) => /* @__PURE__ */ Ue.createElement(Ue.Fragment, null, ef(e)), m0 =
|
|
|
7759
7759
|
break;
|
|
7760
7760
|
}
|
|
7761
7761
|
}
|
|
7762
|
-
var Ne = (Le =
|
|
7763
|
-
|
|
7762
|
+
var Ne = (Le = Ca.get(g)) === null || Le === void 0 ? void 0 : Le.unref();
|
|
7763
|
+
Ca.delete(g), Ne && (!g.selection || !me.equals(g.selection, Ne)) && Fe.select(g, Ne);
|
|
7764
7764
|
}
|
|
7765
7765
|
}, [g, oe, ue, l, f, ee]), se = Ze((z) => {
|
|
7766
|
-
z == null ? (oe.cancel(), ee.cancel(),
|
|
7766
|
+
z == null ? (oe.cancel(), ee.cancel(), ks.delete(g), Sn.delete(g), W.current && un && W.current.removeEventListener("beforeinput", X)) : un && z.addEventListener("beforeinput", X), W.current = z, typeof t == "function" ? t(z) : t && (t.current = z);
|
|
7767
7767
|
}, [oe, ee, g, X, t]);
|
|
7768
|
-
|
|
7768
|
+
Pa(() => {
|
|
7769
7769
|
var z = xe.getWindow(g);
|
|
7770
7770
|
z.document.addEventListener("selectionchange", ee);
|
|
7771
7771
|
var de = () => {
|
|
@@ -7848,9 +7848,9 @@ var e2 = (e) => /* @__PURE__ */ Ue.createElement(Ue.Fragment, null, ef(e)), m0 =
|
|
|
7848
7848
|
// For SSR situations HAS_BEFORE_INPUT_SUPPORT is false and results in prop
|
|
7849
7849
|
// mismatch warning app moves to browser. Pass-through consumer props when
|
|
7850
7850
|
// not CAN_USE_DOM (SSR) and default to falsy value
|
|
7851
|
-
spellCheck: un || !
|
|
7852
|
-
autoCorrect: un || !
|
|
7853
|
-
autoCapitalize: un || !
|
|
7851
|
+
spellCheck: un || !Es ? S.spellCheck : !1,
|
|
7852
|
+
autoCorrect: un || !Es ? S.autoCorrect : "false",
|
|
7853
|
+
autoCapitalize: un || !Es ? S.autoCapitalize : "false",
|
|
7854
7854
|
"data-slate-editor": !0,
|
|
7855
7855
|
"data-slate-node": "value",
|
|
7856
7856
|
// explicitly set this
|
|
@@ -7912,7 +7912,7 @@ var e2 = (e) => /* @__PURE__ */ Ue.createElement(Ue.Fragment, null, ef(e)), m0 =
|
|
|
7912
7912
|
return;
|
|
7913
7913
|
}
|
|
7914
7914
|
if (Dn) {
|
|
7915
|
-
var ke =
|
|
7915
|
+
var ke = Aa(de);
|
|
7916
7916
|
ke?.removeAllRanges();
|
|
7917
7917
|
}
|
|
7918
7918
|
hn.delete(g);
|
|
@@ -8298,7 +8298,7 @@ var l2 = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
|
|
|
8298
8298
|
var [T, M] = ut(xe.isFocused(t));
|
|
8299
8299
|
return Pt(() => {
|
|
8300
8300
|
M(xe.isFocused(t));
|
|
8301
|
-
}, [t]),
|
|
8301
|
+
}, [t]), Pa(() => {
|
|
8302
8302
|
var S = () => M(xe.isFocused(t));
|
|
8303
8303
|
return jd >= 17 ? (document.addEventListener("focusin", S), document.addEventListener("focusout", S), () => {
|
|
8304
8304
|
document.removeEventListener("focusin", S), document.removeEventListener("focusout", S);
|
|
@@ -8407,7 +8407,7 @@ var c2 = function(t) {
|
|
|
8407
8407
|
}
|
|
8408
8408
|
case "set_selection": {
|
|
8409
8409
|
var I;
|
|
8410
|
-
(I =
|
|
8410
|
+
(I = Ca.get(n)) === null || I === void 0 || I.unref(), Ca.delete(n);
|
|
8411
8411
|
break;
|
|
8412
8412
|
}
|
|
8413
8413
|
case "insert_node":
|
|
@@ -8536,7 +8536,7 @@ var zn = bo();
|
|
|
8536
8536
|
function sf(e) {
|
|
8537
8537
|
zn = e;
|
|
8538
8538
|
}
|
|
8539
|
-
var
|
|
8539
|
+
var Ea = { exec: () => null };
|
|
8540
8540
|
function yt(e, t = "") {
|
|
8541
8541
|
let r = typeof e == "string" ? e : e.source;
|
|
8542
8542
|
const n = {
|
|
@@ -8605,30 +8605,30 @@ var ur = {
|
|
|
8605
8605
|
fencesBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
|
|
8606
8606
|
headingBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
8607
8607
|
htmlBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
8608
|
-
}, d2 = /^(?:[ \t]*(?:\n|$))+/, f2 = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, h2 = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,
|
|
8608
|
+
}, d2 = /^(?:[ \t]*(?:\n|$))+/, f2 = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, h2 = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ia = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, m2 = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, yo = /(?:[*+-]|\d{1,9}[.)])/, of = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, lf = yt(of).replace(/bull/g, yo).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), p2 = yt(of).replace(/bull/g, yo).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), xo = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, g2 = /^[^\n]+/, wo = /(?!\s*\])(?:\\.|[^\[\]\\])+/, v2 = yt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", wo).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), b2 = yt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, yo).getRegex(), ni = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Do = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, y2 = yt(
|
|
8609
8609
|
"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))",
|
|
8610
8610
|
"i"
|
|
8611
|
-
).replace("comment", Do).replace("tag", ni).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), uf = yt(xo).replace("hr",
|
|
8611
|
+
).replace("comment", Do).replace("tag", ni).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), uf = yt(xo).replace("hr", Ia).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ni).getRegex(), x2 = yt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", uf).getRegex(), Co = {
|
|
8612
8612
|
blockquote: x2,
|
|
8613
8613
|
code: f2,
|
|
8614
8614
|
def: v2,
|
|
8615
8615
|
fences: h2,
|
|
8616
8616
|
heading: m2,
|
|
8617
|
-
hr:
|
|
8617
|
+
hr: Ia,
|
|
8618
8618
|
html: y2,
|
|
8619
8619
|
lheading: lf,
|
|
8620
8620
|
list: b2,
|
|
8621
8621
|
newline: d2,
|
|
8622
8622
|
paragraph: uf,
|
|
8623
|
-
table:
|
|
8623
|
+
table: Ea,
|
|
8624
8624
|
text: g2
|
|
8625
8625
|
}, Tc = yt(
|
|
8626
8626
|
"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"
|
|
8627
|
-
).replace("hr",
|
|
8627
|
+
).replace("hr", Ia).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ni).getRegex(), w2 = {
|
|
8628
8628
|
...Co,
|
|
8629
8629
|
lheading: p2,
|
|
8630
8630
|
table: Tc,
|
|
8631
|
-
paragraph: yt(xo).replace("hr",
|
|
8631
|
+
paragraph: yt(xo).replace("hr", Ia).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Tc).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ni).getRegex()
|
|
8632
8632
|
}, D2 = {
|
|
8633
8633
|
...Co,
|
|
8634
8634
|
html: yt(
|
|
@@ -8636,10 +8636,10 @@ var ur = {
|
|
|
8636
8636
|
).replace("comment", Do).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
8637
8637
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
8638
8638
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
8639
|
-
fences:
|
|
8639
|
+
fences: Ea,
|
|
8640
8640
|
// fences not supported
|
|
8641
8641
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
8642
|
-
paragraph: yt(xo).replace("hr",
|
|
8642
|
+
paragraph: yt(xo).replace("hr", Ia).replace("heading", ` *#{1,6} *[^
|
|
8643
8643
|
]`).replace("lheading", lf).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
8644
8644
|
}, C2 = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, A2 = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, cf = /^( {2,}|\\)\n(?!\s*$)/, E2 = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ai = /[\p{P}\p{S}]/u, Ao = /[\s\p{P}\p{S}]/u, df = /[^\s\p{P}\p{S}]/u, k2 = yt(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ao).getRegex(), ff = /(?!~)[\p{P}\p{S}]/u, B2 = /(?!~)[\s\p{P}\p{S}]/u, S2 = /(?:[^\s\p{P}\p{S}]|~)/u, F2 = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, hf = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, T2 = yt(hf, "u").replace(/punct/g, ai).getRegex(), O2 = yt(hf, "u").replace(/punct/g, ff).getRegex(), mf = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", M2 = yt(mf, "gu").replace(/notPunctSpace/g, df).replace(/punctSpace/g, Ao).replace(/punct/g, ai).getRegex(), N2 = yt(mf, "gu").replace(/notPunctSpace/g, S2).replace(/punctSpace/g, B2).replace(/punct/g, ff).getRegex(), R2 = yt(
|
|
8645
8645
|
"^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
|
|
@@ -8647,14 +8647,14 @@ var ur = {
|
|
|
8647
8647
|
).replace(/notPunctSpace/g, df).replace(/punctSpace/g, Ao).replace(/punct/g, ai).getRegex(), P2 = yt(/\\(punct)/, "gu").replace(/punct/g, ai).getRegex(), z2 = yt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), $2 = yt(Do).replace("(?:-->|$)", "-->").getRegex(), j2 = yt(
|
|
8648
8648
|
"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
|
|
8649
8649
|
).replace("comment", $2).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Hs = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, I2 = yt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Hs).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), pf = yt(/^!?\[(label)\]\[(ref)\]/).replace("label", Hs).replace("ref", wo).getRegex(), gf = yt(/^!?\[(ref)\](?:\[\])?/).replace("ref", wo).getRegex(), L2 = yt("reflink|nolink(?!\\()", "g").replace("reflink", pf).replace("nolink", gf).getRegex(), Eo = {
|
|
8650
|
-
_backpedal:
|
|
8650
|
+
_backpedal: Ea,
|
|
8651
8651
|
// only used for GFM url
|
|
8652
8652
|
anyPunctuation: P2,
|
|
8653
8653
|
autolink: z2,
|
|
8654
8654
|
blockSkip: F2,
|
|
8655
8655
|
br: cf,
|
|
8656
8656
|
code: A2,
|
|
8657
|
-
del:
|
|
8657
|
+
del: Ea,
|
|
8658
8658
|
emStrongLDelim: T2,
|
|
8659
8659
|
emStrongRDelimAst: M2,
|
|
8660
8660
|
emStrongRDelimUnd: R2,
|
|
@@ -8666,7 +8666,7 @@ var ur = {
|
|
|
8666
8666
|
reflinkSearch: L2,
|
|
8667
8667
|
tag: j2,
|
|
8668
8668
|
text: E2,
|
|
8669
|
-
url:
|
|
8669
|
+
url: Ea
|
|
8670
8670
|
}, q2 = {
|
|
8671
8671
|
...Eo,
|
|
8672
8672
|
link: yt(/^!?\[(label)\]\((.*?)\)/).replace("label", Hs).getRegex(),
|
|
@@ -8683,11 +8683,11 @@ var ur = {
|
|
|
8683
8683
|
...V0,
|
|
8684
8684
|
br: yt(cf).replace("{2,}", "*").getRegex(),
|
|
8685
8685
|
text: yt(V0.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
8686
|
-
},
|
|
8686
|
+
}, fs = {
|
|
8687
8687
|
normal: Co,
|
|
8688
8688
|
gfm: w2,
|
|
8689
8689
|
pedantic: D2
|
|
8690
|
-
},
|
|
8690
|
+
}, ga = {
|
|
8691
8691
|
normal: Eo,
|
|
8692
8692
|
gfm: V0,
|
|
8693
8693
|
breaks: _2,
|
|
@@ -8731,7 +8731,7 @@ function Nc(e, t) {
|
|
|
8731
8731
|
n[s] = n[s].trim().replace(ur.slashPipe, "|");
|
|
8732
8732
|
return n;
|
|
8733
8733
|
}
|
|
8734
|
-
function
|
|
8734
|
+
function va(e, t, r) {
|
|
8735
8735
|
const n = e.length;
|
|
8736
8736
|
if (n === 0)
|
|
8737
8737
|
return "";
|
|
@@ -8806,7 +8806,7 @@ var Ws = class {
|
|
|
8806
8806
|
type: "code",
|
|
8807
8807
|
raw: t[0],
|
|
8808
8808
|
codeBlockStyle: "indented",
|
|
8809
|
-
text: this.options.pedantic ? r :
|
|
8809
|
+
text: this.options.pedantic ? r : va(r, `
|
|
8810
8810
|
`)
|
|
8811
8811
|
};
|
|
8812
8812
|
}
|
|
@@ -8828,7 +8828,7 @@ var Ws = class {
|
|
|
8828
8828
|
if (t) {
|
|
8829
8829
|
let r = t[2].trim();
|
|
8830
8830
|
if (this.rules.other.endingHash.test(r)) {
|
|
8831
|
-
const n =
|
|
8831
|
+
const n = va(r, "#");
|
|
8832
8832
|
(this.options.pedantic || !n || this.rules.other.endingSpaceChar.test(n)) && (r = n.trim());
|
|
8833
8833
|
}
|
|
8834
8834
|
return {
|
|
@@ -8845,14 +8845,14 @@ var Ws = class {
|
|
|
8845
8845
|
if (t)
|
|
8846
8846
|
return {
|
|
8847
8847
|
type: "hr",
|
|
8848
|
-
raw:
|
|
8848
|
+
raw: va(t[0], `
|
|
8849
8849
|
`)
|
|
8850
8850
|
};
|
|
8851
8851
|
}
|
|
8852
8852
|
blockquote(e) {
|
|
8853
8853
|
const t = this.rules.block.blockquote.exec(e);
|
|
8854
8854
|
if (t) {
|
|
8855
|
-
let r =
|
|
8855
|
+
let r = va(t[0], `
|
|
8856
8856
|
`).split(`
|
|
8857
8857
|
`), n = "", s = "";
|
|
8858
8858
|
const l = [];
|
|
@@ -9095,7 +9095,7 @@ ${w}` : w;
|
|
|
9095
9095
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(r)) {
|
|
9096
9096
|
if (!this.rules.other.endAngleBracket.test(r))
|
|
9097
9097
|
return;
|
|
9098
|
-
const l =
|
|
9098
|
+
const l = va(r.slice(0, -1), "\\");
|
|
9099
9099
|
if ((r.length - l.length) % 2 === 0)
|
|
9100
9100
|
return;
|
|
9101
9101
|
} else {
|
|
@@ -9275,18 +9275,18 @@ ${w}` : w;
|
|
|
9275
9275
|
};
|
|
9276
9276
|
const r = {
|
|
9277
9277
|
other: ur,
|
|
9278
|
-
block:
|
|
9279
|
-
inline:
|
|
9278
|
+
block: fs.normal,
|
|
9279
|
+
inline: ga.normal
|
|
9280
9280
|
};
|
|
9281
|
-
this.options.pedantic ? (r.block =
|
|
9281
|
+
this.options.pedantic ? (r.block = fs.pedantic, r.inline = ga.pedantic) : this.options.gfm && (r.block = fs.gfm, this.options.breaks ? r.inline = ga.breaks : r.inline = ga.gfm), this.tokenizer.rules = r;
|
|
9282
9282
|
}
|
|
9283
9283
|
/**
|
|
9284
9284
|
* Expose Rules
|
|
9285
9285
|
*/
|
|
9286
9286
|
static get rules() {
|
|
9287
9287
|
return {
|
|
9288
|
-
block:
|
|
9289
|
-
inline:
|
|
9288
|
+
block: fs,
|
|
9289
|
+
inline: ga
|
|
9290
9290
|
};
|
|
9291
9291
|
}
|
|
9292
9292
|
/**
|
|
@@ -9825,7 +9825,7 @@ ${e}</tr>
|
|
|
9825
9825
|
}
|
|
9826
9826
|
return n;
|
|
9827
9827
|
}
|
|
9828
|
-
}, O0,
|
|
9828
|
+
}, O0, Bs = (O0 = class {
|
|
9829
9829
|
constructor(e) {
|
|
9830
9830
|
kt(this, "options");
|
|
9831
9831
|
kt(this, "block");
|
|
@@ -9876,7 +9876,7 @@ ${e}</tr>
|
|
|
9876
9876
|
kt(this, "TextRenderer", ko);
|
|
9877
9877
|
kt(this, "Lexer", Qr);
|
|
9878
9878
|
kt(this, "Tokenizer", Ws);
|
|
9879
|
-
kt(this, "Hooks",
|
|
9879
|
+
kt(this, "Hooks", Bs);
|
|
9880
9880
|
this.use(...e);
|
|
9881
9881
|
}
|
|
9882
9882
|
/**
|
|
@@ -9962,14 +9962,14 @@ ${e}</tr>
|
|
|
9962
9962
|
n.tokenizer = s;
|
|
9963
9963
|
}
|
|
9964
9964
|
if (r.hooks) {
|
|
9965
|
-
const s = this.defaults.hooks || new
|
|
9965
|
+
const s = this.defaults.hooks || new Bs();
|
|
9966
9966
|
for (const l in r.hooks) {
|
|
9967
9967
|
if (!(l in s))
|
|
9968
9968
|
throw new Error(`hook '${l}' does not exist`);
|
|
9969
9969
|
if (["options", "block"].includes(l))
|
|
9970
9970
|
continue;
|
|
9971
9971
|
const c = l, f = r.hooks[c], y = s[c];
|
|
9972
|
-
|
|
9972
|
+
Bs.passThroughHooks.has(l) ? s[c] = (p) => {
|
|
9973
9973
|
if (this.defaults.async)
|
|
9974
9974
|
return Promise.resolve(f.call(s, p)).then((C) => y.call(s, C));
|
|
9975
9975
|
const w = f.call(s, p);
|
|
@@ -10059,7 +10059,7 @@ pt.TextRenderer = ko;
|
|
|
10059
10059
|
pt.Lexer = Qr;
|
|
10060
10060
|
pt.lexer = Qr.lex;
|
|
10061
10061
|
pt.Tokenizer = Ws;
|
|
10062
|
-
pt.Hooks =
|
|
10062
|
+
pt.Hooks = Bs;
|
|
10063
10063
|
pt.parse = pt;
|
|
10064
10064
|
pt.options;
|
|
10065
10065
|
pt.setOptions;
|
|
@@ -10093,7 +10093,7 @@ var Y2 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
10093
10093
|
return Y2.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
10094
10094
|
}
|
|
10095
10095
|
/* Z+1 */
|
|
10096
|
-
), Ot = "-ms-",
|
|
10096
|
+
), Ot = "-ms-", ka = "-moz-", bt = "-webkit-", vf = "comm", si = "rule", Bo = "decl", X2 = "@import", bf = "@keyframes", Z2 = "@layer", yf = Math.abs, So = String.fromCharCode, K0 = Object.assign;
|
|
10097
10097
|
function J2(e, t) {
|
|
10098
10098
|
return er(e, 0) ^ 45 ? (((t << 2 ^ er(e, 0)) << 2 ^ er(e, 1)) << 2 ^ er(e, 2)) << 2 ^ er(e, 3) : 0;
|
|
10099
10099
|
}
|
|
@@ -10106,7 +10106,7 @@ function Zr(e, t) {
|
|
|
10106
10106
|
function et(e, t, r) {
|
|
10107
10107
|
return e.replace(t, r);
|
|
10108
10108
|
}
|
|
10109
|
-
function
|
|
10109
|
+
function Ss(e, t, r) {
|
|
10110
10110
|
return e.indexOf(t, r);
|
|
10111
10111
|
}
|
|
10112
10112
|
function er(e, t) {
|
|
@@ -10121,7 +10121,7 @@ function Wr(e) {
|
|
|
10121
10121
|
function wf(e) {
|
|
10122
10122
|
return e.length;
|
|
10123
10123
|
}
|
|
10124
|
-
function
|
|
10124
|
+
function ya(e, t) {
|
|
10125
10125
|
return t.push(e), e;
|
|
10126
10126
|
}
|
|
10127
10127
|
function Q2(e, t) {
|
|
@@ -10142,7 +10142,7 @@ function cn(e, t) {
|
|
|
10142
10142
|
function qn(e) {
|
|
10143
10143
|
for (; e.root; )
|
|
10144
10144
|
e = cn(e.root, { children: [e] });
|
|
10145
|
-
|
|
10145
|
+
ya(e, e.siblings);
|
|
10146
10146
|
}
|
|
10147
10147
|
function e5() {
|
|
10148
10148
|
return Yt;
|
|
@@ -10156,7 +10156,7 @@ function Pr() {
|
|
|
10156
10156
|
function Fn() {
|
|
10157
10157
|
return er(aa, Tr);
|
|
10158
10158
|
}
|
|
10159
|
-
function
|
|
10159
|
+
function Fs() {
|
|
10160
10160
|
return Tr;
|
|
10161
10161
|
}
|
|
10162
10162
|
function li(e, t) {
|
|
@@ -10217,7 +10217,7 @@ function a5(e) {
|
|
|
10217
10217
|
function s5(e, t) {
|
|
10218
10218
|
for (; --t && Pr() && !(Yt < 48 || Yt > 102 || Yt > 57 && Yt < 65 || Yt > 70 && Yt < 97); )
|
|
10219
10219
|
;
|
|
10220
|
-
return li(e,
|
|
10220
|
+
return li(e, Fs() + (t < 6 && Fn() == 32 && Pr() == 32));
|
|
10221
10221
|
}
|
|
10222
10222
|
function Z0(e) {
|
|
10223
10223
|
for (; Pr(); )
|
|
@@ -10253,15 +10253,15 @@ function o5(e) {
|
|
|
10253
10253
|
return li(e, Tr);
|
|
10254
10254
|
}
|
|
10255
10255
|
function l5(e) {
|
|
10256
|
-
return n5(
|
|
10256
|
+
return n5(Ts("", null, null, null, [""], e = r5(e), 0, [0], e));
|
|
10257
10257
|
}
|
|
10258
|
-
function
|
|
10258
|
+
function Ts(e, t, r, n, s, l, c, f, y) {
|
|
10259
10259
|
for (var p = 0, w = 0, C = c, E = 0, T = 0, M = 0, S = 1, g = 1, I = 1, $ = 0, W = "", q = s, V = l, G = n, U = W; g; )
|
|
10260
10260
|
switch (M = $, $ = Pr()) {
|
|
10261
10261
|
// (
|
|
10262
10262
|
case 40:
|
|
10263
10263
|
if (M != 108 && er(U, C - 1) == 58) {
|
|
10264
|
-
|
|
10264
|
+
Ss(U += et(g0($), "&", "&\f"), "&\f", yf(p ? f[p - 1] : 0)) != -1 && (I = -1);
|
|
10265
10265
|
break;
|
|
10266
10266
|
}
|
|
10267
10267
|
// " ' [
|
|
@@ -10279,14 +10279,14 @@ function Os(e, t, r, n, s, l, c, f, y) {
|
|
|
10279
10279
|
break;
|
|
10280
10280
|
// \
|
|
10281
10281
|
case 92:
|
|
10282
|
-
U += s5(
|
|
10282
|
+
U += s5(Fs() - 1, 7);
|
|
10283
10283
|
continue;
|
|
10284
10284
|
// /
|
|
10285
10285
|
case 47:
|
|
10286
10286
|
switch (Fn()) {
|
|
10287
10287
|
case 42:
|
|
10288
10288
|
case 47:
|
|
10289
|
-
|
|
10289
|
+
ya(u5(i5(Pr(), Fs()), t, r, y), y);
|
|
10290
10290
|
break;
|
|
10291
10291
|
default:
|
|
10292
10292
|
U += "/";
|
|
@@ -10306,16 +10306,16 @@ function Os(e, t, r, n, s, l, c, f, y) {
|
|
|
10306
10306
|
g = 0;
|
|
10307
10307
|
// ;
|
|
10308
10308
|
case 59 + w:
|
|
10309
|
-
I == -1 && (U = et(U, /\f/g, "")), T > 0 && Wr(U) - C &&
|
|
10309
|
+
I == -1 && (U = et(U, /\f/g, "")), T > 0 && Wr(U) - C && ya(T > 32 ? $c(U + ";", n, r, C - 1, y) : $c(et(U, " ", "") + ";", n, r, C - 2, y), y);
|
|
10310
10310
|
break;
|
|
10311
10311
|
// @ ;
|
|
10312
10312
|
case 59:
|
|
10313
10313
|
U += ";";
|
|
10314
10314
|
// { rule/at-rule
|
|
10315
10315
|
default:
|
|
10316
|
-
if (
|
|
10316
|
+
if (ya(G = zc(U, t, r, p, w, s, f, W, q = [], V = [], C, l), l), $ === 123)
|
|
10317
10317
|
if (w === 0)
|
|
10318
|
-
|
|
10318
|
+
Ts(U, t, G, G, q, l, C, f, V);
|
|
10319
10319
|
else
|
|
10320
10320
|
switch (E === 99 && er(U, 3) === 110 ? 100 : E) {
|
|
10321
10321
|
// d l m s
|
|
@@ -10323,10 +10323,10 @@ function Os(e, t, r, n, s, l, c, f, y) {
|
|
|
10323
10323
|
case 108:
|
|
10324
10324
|
case 109:
|
|
10325
10325
|
case 115:
|
|
10326
|
-
|
|
10326
|
+
Ts(e, G, G, n && ya(zc(e, G, G, 0, 0, s, f, W, s, q = [], C, V), V), s, V, C, f, n ? q : V);
|
|
10327
10327
|
break;
|
|
10328
10328
|
default:
|
|
10329
|
-
|
|
10329
|
+
Ts(U, G, G, G, [""], V, 0, f, V);
|
|
10330
10330
|
}
|
|
10331
10331
|
}
|
|
10332
10332
|
p = w = T = 0, S = I = 1, W = U = "", C = c;
|
|
@@ -10352,7 +10352,7 @@ function Os(e, t, r, n, s, l, c, f, y) {
|
|
|
10352
10352
|
break;
|
|
10353
10353
|
// @
|
|
10354
10354
|
case 64:
|
|
10355
|
-
Fn() === 45 && (U += g0(Pr())), E = Fn(), w = C = Wr(W = U += o5(
|
|
10355
|
+
Fn() === 45 && (U += g0(Pr())), E = Fn(), w = C = Wr(W = U += o5(Fs())), $++;
|
|
10356
10356
|
break;
|
|
10357
10357
|
// -
|
|
10358
10358
|
case 45:
|
|
@@ -10410,14 +10410,14 @@ function Cf(e, t, r) {
|
|
|
10410
10410
|
return bt + e + e;
|
|
10411
10411
|
// tab-size
|
|
10412
10412
|
case 4789:
|
|
10413
|
-
return
|
|
10413
|
+
return ka + e + e;
|
|
10414
10414
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
10415
10415
|
case 5349:
|
|
10416
10416
|
case 4246:
|
|
10417
10417
|
case 4810:
|
|
10418
10418
|
case 6968:
|
|
10419
10419
|
case 2756:
|
|
10420
|
-
return bt + e +
|
|
10420
|
+
return bt + e + ka + e + Ot + e + e;
|
|
10421
10421
|
// writing-mode
|
|
10422
10422
|
case 5936:
|
|
10423
10423
|
switch (er(e, t + 11)) {
|
|
@@ -10483,7 +10483,7 @@ function Cf(e, t, r) {
|
|
|
10483
10483
|
case 3616:
|
|
10484
10484
|
return r && r.some(function(n, s) {
|
|
10485
10485
|
return t = s, Zr(n.props, /grid-\w+-end/);
|
|
10486
|
-
}) ? ~
|
|
10486
|
+
}) ? ~Ss(e + (r = r[t].value), "span", 0) ? e : Ot + et(e, "-start", "") + e + Ot + "grid-row-span:" + (~Ss(r, "span", 0) ? Zr(r, /\d+/) : +Zr(r, /\d+/) - +Zr(e, /\d+/)) + ";" : Ot + et(e, "-start", "") + e;
|
|
10487
10487
|
// grid-(row|column)-end
|
|
10488
10488
|
case 4896:
|
|
10489
10489
|
case 4128:
|
|
@@ -10517,10 +10517,10 @@ function Cf(e, t, r) {
|
|
|
10517
10517
|
break;
|
|
10518
10518
|
// (f)ill-available, (f)it-content
|
|
10519
10519
|
case 102:
|
|
10520
|
-
return et(e, /(.+:)(.+)-([^]+)/, "$1" + bt + "$2-$3$1" +
|
|
10520
|
+
return et(e, /(.+:)(.+)-([^]+)/, "$1" + bt + "$2-$3$1" + ka + (er(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
10521
10521
|
// (s)tretch
|
|
10522
10522
|
case 115:
|
|
10523
|
-
return ~
|
|
10523
|
+
return ~Ss(e, "stretch", 0) ? Cf(et(e, "stretch", "fill-available"), t, r) + e : e;
|
|
10524
10524
|
}
|
|
10525
10525
|
break;
|
|
10526
10526
|
// grid-(column|row)
|
|
@@ -10604,11 +10604,11 @@ function h5(e, t, r, n) {
|
|
|
10604
10604
|
// :read-(only|write)
|
|
10605
10605
|
case ":read-only":
|
|
10606
10606
|
case ":read-write":
|
|
10607
|
-
qn(cn(e, { props: [et(s, /:(read-\w+)/, ":" +
|
|
10607
|
+
qn(cn(e, { props: [et(s, /:(read-\w+)/, ":" + ka + "$1")] })), qn(cn(e, { props: [s] })), K0(e, { props: Pc(r, n) });
|
|
10608
10608
|
break;
|
|
10609
10609
|
// :placeholder
|
|
10610
10610
|
case "::placeholder":
|
|
10611
|
-
qn(cn(e, { props: [et(s, /:(plac\w+)/, ":" + bt + "input-$1")] })), qn(cn(e, { props: [et(s, /:(plac\w+)/, ":" +
|
|
10611
|
+
qn(cn(e, { props: [et(s, /:(plac\w+)/, ":" + bt + "input-$1")] })), qn(cn(e, { props: [et(s, /:(plac\w+)/, ":" + ka + "$1")] })), qn(cn(e, { props: [et(s, /:(plac\w+)/, Ot + "input-$1")] })), qn(cn(e, { props: [s] })), K0(e, { props: Pc(r, n) });
|
|
10612
10612
|
break;
|
|
10613
10613
|
}
|
|
10614
10614
|
return "";
|
|
@@ -10664,7 +10664,7 @@ var m5 = {
|
|
|
10664
10664
|
strokeOpacity: 1,
|
|
10665
10665
|
strokeWidth: 1
|
|
10666
10666
|
}, Pn = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Af = "active", Ef = "data-styled-version", ui = "6.1.19", Fo = `/*!sc*/
|
|
10667
|
-
`, Gs = typeof window < "u" && typeof document < "u", p5 = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), jc = /invalid hook call/i,
|
|
10667
|
+
`, Gs = typeof window < "u" && typeof document < "u", p5 = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), jc = /invalid hook call/i, hs = /* @__PURE__ */ new Set(), g5 = function(e, t) {
|
|
10668
10668
|
if (process.env.NODE_ENV !== "production") {
|
|
10669
10669
|
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
10670
10670
|
`) + `You may see this warning because you've called styled inside another component.
|
|
@@ -10675,10 +10675,10 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
10675
10675
|
var l = !0;
|
|
10676
10676
|
console.error = function(c) {
|
|
10677
10677
|
for (var f = [], y = 1; y < arguments.length; y++) f[y - 1] = arguments[y];
|
|
10678
|
-
jc.test(c) ? (l = !1,
|
|
10679
|
-
}, Bt(), l && !
|
|
10678
|
+
jc.test(c) ? (l = !1, hs.delete(n)) : s.apply(void 0, Zn([c], f, !1));
|
|
10679
|
+
}, Bt(), l && !hs.has(n) && (console.warn(n), hs.add(n));
|
|
10680
10680
|
} catch (c) {
|
|
10681
|
-
jc.test(c.message) &&
|
|
10681
|
+
jc.test(c.message) && hs.delete(n);
|
|
10682
10682
|
} finally {
|
|
10683
10683
|
console.error = s;
|
|
10684
10684
|
}
|
|
@@ -10691,13 +10691,13 @@ var J0 = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "as
|
|
|
10691
10691
|
function Ic(e) {
|
|
10692
10692
|
return e.replace(b5, "-").replace(y5, "");
|
|
10693
10693
|
}
|
|
10694
|
-
var x5 = /(a)(d)/gi,
|
|
10694
|
+
var x5 = /(a)(d)/gi, ms = 52, Lc = function(e) {
|
|
10695
10695
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
10696
10696
|
};
|
|
10697
10697
|
function Q0(e) {
|
|
10698
10698
|
var t, r = "";
|
|
10699
|
-
for (t = Math.abs(e); t >
|
|
10700
|
-
return (Lc(t %
|
|
10699
|
+
for (t = Math.abs(e); t > ms; t = t / ms | 0) r = Lc(t % ms) + r;
|
|
10700
|
+
return (Lc(t % ms) + r).replace(x5, "$1-$2");
|
|
10701
10701
|
}
|
|
10702
10702
|
var v0, kf = 5381, Cn = function(e, t) {
|
|
10703
10703
|
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
@@ -10846,14 +10846,14 @@ var M5 = (function() {
|
|
|
10846
10846
|
for (var n = this.groupSizes[t], s = this.indexOfGroup(t), l = s + n, c = s; c < l; c++) r += "".concat(this.tag.getRule(c)).concat(Fo);
|
|
10847
10847
|
return r;
|
|
10848
10848
|
}, e;
|
|
10849
|
-
})(), N5 = 1 << 30,
|
|
10850
|
-
if (
|
|
10851
|
-
for (; Ys.has(
|
|
10852
|
-
var t =
|
|
10849
|
+
})(), N5 = 1 << 30, Os = /* @__PURE__ */ new Map(), Ys = /* @__PURE__ */ new Map(), Ms = 1, ps = function(e) {
|
|
10850
|
+
if (Os.has(e)) return Os.get(e);
|
|
10851
|
+
for (; Ys.has(Ms); ) Ms++;
|
|
10852
|
+
var t = Ms++;
|
|
10853
10853
|
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > N5)) throw sa(16, "".concat(t));
|
|
10854
|
-
return
|
|
10854
|
+
return Os.set(e, t), Ys.set(t, e), t;
|
|
10855
10855
|
}, R5 = function(e, t) {
|
|
10856
|
-
|
|
10856
|
+
Ms = t + 1, Os.set(e, t), Ys.set(t, e);
|
|
10857
10857
|
}, P5 = "style[".concat(Pn, "][").concat(Ef, '="').concat(ui, '"]'), z5 = new RegExp("^".concat(Pn, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), $5 = function(e, t, r) {
|
|
10858
10858
|
for (var n, s = r.split(","), l = 0, c = s.length; l < c; l++) (n = s[l]) && e.registerName(t, n);
|
|
10859
10859
|
}, j5 = function(e, t) {
|
|
@@ -10956,7 +10956,7 @@ var Nf = function(e) {
|
|
|
10956
10956
|
});
|
|
10957
10957
|
}
|
|
10958
10958
|
return e.registerId = function(t) {
|
|
10959
|
-
return
|
|
10959
|
+
return ps(t);
|
|
10960
10960
|
}, e.prototype.rehydrate = function() {
|
|
10961
10961
|
!this.server && Gs && Uc(this);
|
|
10962
10962
|
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
@@ -10972,17 +10972,17 @@ var Nf = function(e) {
|
|
|
10972
10972
|
}, e.prototype.hasNameForId = function(t, r) {
|
|
10973
10973
|
return this.names.has(t) && this.names.get(t).has(r);
|
|
10974
10974
|
}, e.prototype.registerName = function(t, r) {
|
|
10975
|
-
if (
|
|
10975
|
+
if (ps(t), this.names.has(t)) this.names.get(t).add(r);
|
|
10976
10976
|
else {
|
|
10977
10977
|
var n = /* @__PURE__ */ new Set();
|
|
10978
10978
|
n.add(r), this.names.set(t, n);
|
|
10979
10979
|
}
|
|
10980
10980
|
}, e.prototype.insertRules = function(t, r, n) {
|
|
10981
|
-
this.registerName(t, r), this.getTag().insertRules(
|
|
10981
|
+
this.registerName(t, r), this.getTag().insertRules(ps(t), n);
|
|
10982
10982
|
}, e.prototype.clearNames = function(t) {
|
|
10983
10983
|
this.names.has(t) && this.names.get(t).clear();
|
|
10984
10984
|
}, e.prototype.clearRules = function(t) {
|
|
10985
|
-
this.getTag().clearGroup(
|
|
10985
|
+
this.getTag().clearGroup(ps(t)), this.clearNames(t);
|
|
10986
10986
|
}, e.prototype.clearTag = function() {
|
|
10987
10987
|
this.tag = void 0;
|
|
10988
10988
|
}, e;
|
|
@@ -11018,7 +11018,7 @@ var G5 = new Rf(), to = V5(), zf = Ue.createContext({ shouldForwardProp: void 0,
|
|
|
11018
11018
|
zf.Consumer;
|
|
11019
11019
|
Ue.createContext(void 0);
|
|
11020
11020
|
function Gc() {
|
|
11021
|
-
return
|
|
11021
|
+
return za(zf);
|
|
11022
11022
|
}
|
|
11023
11023
|
var Yc = (function() {
|
|
11024
11024
|
function e(t, r) {
|
|
@@ -11146,7 +11146,7 @@ function J5(e, t, r) {
|
|
|
11146
11146
|
})(pe, we);
|
|
11147
11147
|
process.env.NODE_ENV !== "production" && G.warnTooManyClasses && G.warnTooManyClasses(re);
|
|
11148
11148
|
var Ee = En(ne, oe);
|
|
11149
|
-
return re && (Ee += " " + re), we.className && (Ee += " " + we.className), he[b0(P) && !J0.has(P) ? "class" : "className"] = Ee, ue && (he.ref = ue),
|
|
11149
|
+
return re && (Ee += " " + re), we.className && (Ee += " " + we.className), he[b0(P) && !J0.has(P) ? "class" : "className"] = Ee, ue && (he.ref = ue), Ps(P, he);
|
|
11150
11150
|
})(W, q, V);
|
|
11151
11151
|
}
|
|
11152
11152
|
$.displayName = C;
|
|
@@ -11214,10 +11214,10 @@ J0.forEach(function(e) {
|
|
|
11214
11214
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
11215
11215
|
Perhaps you're looking to import 'styled-components/native'?
|
|
11216
11216
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
11217
|
-
var
|
|
11218
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[
|
|
11217
|
+
var gs = "__sc-".concat(Pn, "__");
|
|
11218
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[gs] || (window[gs] = 0), window[gs] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
11219
11219
|
|
|
11220
|
-
See https://s-c.sh/2BAXzed for more info.`), window[
|
|
11220
|
+
See https://s-c.sh/2BAXzed for more info.`), window[gs] += 1);
|
|
11221
11221
|
const e3 = Dt.span.attrs({
|
|
11222
11222
|
className: "unified-rich-text-template-container"
|
|
11223
11223
|
})`
|
|
@@ -11309,7 +11309,7 @@ const e3 = Dt.span.attrs({
|
|
|
11309
11309
|
border-color: ${(e) => e.$styles?.templateField?.borderColor || "#84ADFF"};
|
|
11310
11310
|
box-shadow: 0 0 0 3px ${(e) => e.$styles?.templateField?.borderColor || "#84ADFF"}20;
|
|
11311
11311
|
}
|
|
11312
|
-
`, qf =
|
|
11312
|
+
`, qf = $a(({ element: e, attributes: t, children: r, styles: n, onTemplateChange: s }, l) => {
|
|
11313
11313
|
const c = nf(), [f, y] = ut(!1), [p, w] = ut(e.value || ""), [C, E] = ut(
|
|
11314
11314
|
e.value && e.value !== "" ? e.value : e.placeholder || "\u6A21\u7248\u5B57\u7B26\u5185\u5BB9"
|
|
11315
11315
|
), [T, M] = ut(600), S = Bt(null), g = Ze(() => {
|
|
@@ -11748,7 +11748,7 @@ const r3 = ({ children: e, attributes: t, styles: r, extraProps: n }) => {
|
|
|
11748
11748
|
] }) : /* @__PURE__ */ N.jsx("div", { className: "text-center py-4 text-gray-500", children: "\u6682\u65E0\u6570\u636E" }) });
|
|
11749
11749
|
});
|
|
11750
11750
|
_f.displayName = "RetrieveSqlDataElement";
|
|
11751
|
-
var
|
|
11751
|
+
var xa = { exports: {} }, vs = { exports: {} }, bs = { exports: {} }, gt = {};
|
|
11752
11752
|
/**
|
|
11753
11753
|
* @license React
|
|
11754
11754
|
* react-is.production.min.js
|
|
@@ -11928,7 +11928,7 @@ function a3() {
|
|
|
11928
11928
|
}
|
|
11929
11929
|
var td;
|
|
11930
11930
|
function Hf() {
|
|
11931
|
-
return td || (td = 1, process.env.NODE_ENV === "production" ?
|
|
11931
|
+
return td || (td = 1, process.env.NODE_ENV === "production" ? bs.exports = n3() : bs.exports = a3()), bs.exports;
|
|
11932
11932
|
}
|
|
11933
11933
|
/*
|
|
11934
11934
|
object-assign
|
|
@@ -12412,15 +12412,15 @@ function l3() {
|
|
|
12412
12412
|
}
|
|
12413
12413
|
var ld;
|
|
12414
12414
|
function u3() {
|
|
12415
|
-
if (ld) return
|
|
12415
|
+
if (ld) return vs.exports;
|
|
12416
12416
|
if (ld = 1, process.env.NODE_ENV !== "production") {
|
|
12417
12417
|
var e = Hf(), t = !0;
|
|
12418
|
-
|
|
12418
|
+
vs.exports = /* @__PURE__ */ o3()(e.isElement, t);
|
|
12419
12419
|
} else
|
|
12420
|
-
|
|
12421
|
-
return
|
|
12420
|
+
vs.exports = /* @__PURE__ */ l3()();
|
|
12421
|
+
return vs.exports;
|
|
12422
12422
|
}
|
|
12423
|
-
var
|
|
12423
|
+
var Ns = { exports: {} }, c3 = Ns.exports, ud;
|
|
12424
12424
|
function d3() {
|
|
12425
12425
|
return ud || (ud = 1, (function(e, t) {
|
|
12426
12426
|
(function(n, s) {
|
|
@@ -16018,7 +16018,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
16018
16018
|
const a = oa.charAt(i);
|
|
16019
16019
|
d(m, x, R, a, a), d(Q, x, j, a, a);
|
|
16020
16020
|
}
|
|
16021
|
-
const
|
|
16021
|
+
const La = [
|
|
16022
16022
|
["mathbf", "textbf", "Main-Bold"],
|
|
16023
16023
|
// A-Z bold upright
|
|
16024
16024
|
["mathbf", "textbf", "Main-Bold"],
|
|
@@ -16089,13 +16089,13 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
16089
16089
|
const o = i.charCodeAt(0), u = i.charCodeAt(1), h = (o - 55296) * 1024 + (u - 56320) + 65536, b = a === "math" ? 0 : 1;
|
|
16090
16090
|
if (119808 <= h && h < 120484) {
|
|
16091
16091
|
const D = Math.floor((h - 119808) / 26);
|
|
16092
|
-
return [
|
|
16092
|
+
return [La[D][2], La[D][b]];
|
|
16093
16093
|
} else if (120782 <= h && h <= 120831) {
|
|
16094
16094
|
const D = Math.floor((h - 120782) / 10);
|
|
16095
16095
|
return [Ro[D][2], Ro[D][b]];
|
|
16096
16096
|
} else {
|
|
16097
16097
|
if (h === 120485 || h === 120486)
|
|
16098
|
-
return [
|
|
16098
|
+
return [La[0][2], La[0][b]];
|
|
16099
16099
|
if (120486 < h && h < 120782)
|
|
16100
16100
|
return ["", ""];
|
|
16101
16101
|
throw new l("Unsupported character: " + i);
|
|
@@ -16132,13 +16132,13 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
16132
16132
|
return this.children.map(a).join("");
|
|
16133
16133
|
}
|
|
16134
16134
|
}
|
|
16135
|
-
const
|
|
16135
|
+
const qa = function(i, a, o) {
|
|
16136
16136
|
return Ct[o][i] && Ct[o][i].replace && (i = Ct[o][i].replace), {
|
|
16137
16137
|
value: i,
|
|
16138
16138
|
metrics: St(i, a, o)
|
|
16139
16139
|
};
|
|
16140
16140
|
}, Mr = function(i, a, o, u, h) {
|
|
16141
|
-
const b =
|
|
16141
|
+
const b = qa(i, a, o), D = b.metrics;
|
|
16142
16142
|
i = b.value;
|
|
16143
16143
|
let k;
|
|
16144
16144
|
if (D) {
|
|
@@ -16153,9 +16153,9 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
16153
16153
|
}
|
|
16154
16154
|
return k;
|
|
16155
16155
|
}, Xf = function(i, a, o, u) {
|
|
16156
|
-
return u === void 0 && (u = []), o.font === "boldsymbol" &&
|
|
16156
|
+
return u === void 0 && (u = []), o.font === "boldsymbol" && qa(i, "Main-Bold", a).metrics ? Mr(i, "Main-Bold", a, o, u.concat(["mathbf"])) : i === "\\" || Ct[a][i].font === "main" ? Mr(i, "Main-Regular", a, o, u) : Mr(i, "AMS-Regular", a, o, u.concat(["amsrm"]));
|
|
16157
16157
|
}, Zf = function(i, a, o, u, h) {
|
|
16158
|
-
return h !== "textord" &&
|
|
16158
|
+
return h !== "textord" && qa(i, "Math-BoldItalic", a).metrics ? {
|
|
16159
16159
|
fontName: "Math-BoldItalic",
|
|
16160
16160
|
fontClass: "boldsymbol"
|
|
16161
16161
|
} : {
|
|
@@ -16172,8 +16172,8 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
16172
16172
|
if (k === "boldsymbol") {
|
|
16173
16173
|
const ce = Zf(h, u, a, b, o);
|
|
16174
16174
|
K = ce.fontName, te = [ce.fontClass];
|
|
16175
|
-
} else D ? (K = $o[k].fontName, te = [k]) : (K =
|
|
16176
|
-
if (
|
|
16175
|
+
} else D ? (K = $o[k].fontName, te = [k]) : (K = _a(k, a.fontWeight, a.fontShape), te = [k, a.fontWeight, a.fontShape]);
|
|
16176
|
+
if (qa(h, K, u).metrics)
|
|
16177
16177
|
return Mr(h, K, u, a, b.concat(te));
|
|
16178
16178
|
if (xt.hasOwnProperty(h) && K.slice(0, 10) === "Typewriter") {
|
|
16179
16179
|
const ce = [];
|
|
@@ -16187,13 +16187,13 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
16187
16187
|
if (o === "textord") {
|
|
16188
16188
|
const K = Ct[u][h] && Ct[u][h].font;
|
|
16189
16189
|
if (K === "ams") {
|
|
16190
|
-
const te =
|
|
16190
|
+
const te = _a("amsrm", a.fontWeight, a.fontShape);
|
|
16191
16191
|
return Mr(h, te, u, a, b.concat("amsrm", a.fontWeight, a.fontShape));
|
|
16192
16192
|
} else if (K === "main" || !K) {
|
|
16193
|
-
const te =
|
|
16193
|
+
const te = _a("textrm", a.fontWeight, a.fontShape);
|
|
16194
16194
|
return Mr(h, te, u, a, b.concat(a.fontWeight, a.fontShape));
|
|
16195
16195
|
} else {
|
|
16196
|
-
const te =
|
|
16196
|
+
const te = _a(K, a.fontWeight, a.fontShape);
|
|
16197
16197
|
return Mr(h, te, u, a, b.concat(te, a.fontWeight, a.fontShape));
|
|
16198
16198
|
}
|
|
16199
16199
|
} else
|
|
@@ -16324,7 +16324,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
16324
16324
|
}, i1 = (i, a) => {
|
|
16325
16325
|
const o = hr(["mspace"], [], a), u = Qe(i, a);
|
|
16326
16326
|
return o.style.marginRight = Ne(u), o;
|
|
16327
|
-
},
|
|
16327
|
+
}, _a = function(i, a, o) {
|
|
16328
16328
|
let u = "";
|
|
16329
16329
|
switch (i) {
|
|
16330
16330
|
case "amsrm":
|
|
@@ -16512,7 +16512,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
16512
16512
|
minner: {
|
|
16513
16513
|
mop: $t
|
|
16514
16514
|
}
|
|
16515
|
-
}, Io = {},
|
|
16515
|
+
}, Io = {}, Ha = {}, Wa = {};
|
|
16516
16516
|
function ze(i) {
|
|
16517
16517
|
let {
|
|
16518
16518
|
type: a,
|
|
@@ -16536,7 +16536,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
16536
16536
|
};
|
|
16537
16537
|
for (let O = 0; O < o.length; ++O)
|
|
16538
16538
|
Io[o[O]] = k;
|
|
16539
|
-
a && (b && (
|
|
16539
|
+
a && (b && (Ha[a] = b), D && (Wa[a] = D));
|
|
16540
16540
|
}
|
|
16541
16541
|
function xn(i) {
|
|
16542
16542
|
let {
|
|
@@ -16557,7 +16557,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
16557
16557
|
mathmlBuilder: u
|
|
16558
16558
|
});
|
|
16559
16559
|
}
|
|
16560
|
-
const
|
|
16560
|
+
const Ua = function(i) {
|
|
16561
16561
|
return i.type === "ordgroup" && i.body.length === 1 ? i.body[0] : i;
|
|
16562
16562
|
}, Vt = function(i) {
|
|
16563
16563
|
return i.type === "ordgroup" ? i.body : [i];
|
|
@@ -16647,8 +16647,8 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
16647
16647
|
}, dt = function(i, a, o) {
|
|
16648
16648
|
if (!i)
|
|
16649
16649
|
return Gr();
|
|
16650
|
-
if (
|
|
16651
|
-
let u =
|
|
16650
|
+
if (Ha[i.type]) {
|
|
16651
|
+
let u = Ha[i.type](i, a);
|
|
16652
16652
|
if (o && a.size !== o.size) {
|
|
16653
16653
|
u = Gr(a.sizingClasses(o), [u], a);
|
|
16654
16654
|
const h = a.sizeMultiplier / o.sizeMultiplier;
|
|
@@ -16658,7 +16658,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
16658
16658
|
} else
|
|
16659
16659
|
throw new l("Got group of unknown type: '" + i.type + "'");
|
|
16660
16660
|
};
|
|
16661
|
-
function
|
|
16661
|
+
function Va(i, a) {
|
|
16662
16662
|
const o = Gr(["base"], i, a), u = Gr(["strut"]);
|
|
16663
16663
|
return u.style.height = Ne(o.height + o.depth), o.depth && (u.style.verticalAlign = Ne(-o.depth)), o.children.unshift(u), o;
|
|
16664
16664
|
}
|
|
@@ -16675,11 +16675,11 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
16675
16675
|
let K = !1;
|
|
16676
16676
|
for (; L < u.length - 1 && u[L + 1].hasClass("mspace") && !u[L + 1].hasClass("newline"); )
|
|
16677
16677
|
L++, D.push(u[L]), u[L].hasClass("nobreak") && (K = !0);
|
|
16678
|
-
K || (b.push(
|
|
16679
|
-
} else u[L].hasClass("newline") && (D.pop(), D.length > 0 && (b.push(
|
|
16680
|
-
D.length > 0 && b.push(
|
|
16678
|
+
K || (b.push(Va(D, a)), D = []);
|
|
16679
|
+
} else u[L].hasClass("newline") && (D.pop(), D.length > 0 && (b.push(Va(D, a)), D = []), b.push(u[L]));
|
|
16680
|
+
D.length > 0 && b.push(Va(D, a));
|
|
16681
16681
|
let k;
|
|
16682
|
-
o ? (k =
|
|
16682
|
+
o ? (k = Va(Kt(o, a, !0)), k.classes = ["tag"], b.push(k)) : h && b.push(h);
|
|
16683
16683
|
const O = Gr(["katex-html"], b);
|
|
16684
16684
|
if (O.setAttribute("aria-hidden", "true"), k) {
|
|
16685
16685
|
const L = k.children[0];
|
|
@@ -16902,8 +16902,8 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
16902
16902
|
}, Et = function(i, a) {
|
|
16903
16903
|
if (!i)
|
|
16904
16904
|
return new Me.MathNode("mrow");
|
|
16905
|
-
if (
|
|
16906
|
-
return
|
|
16905
|
+
if (Wa[i.type])
|
|
16906
|
+
return Wa[i.type](i, a);
|
|
16907
16907
|
throw new l("Got group of unknown type: '" + i.type + "'");
|
|
16908
16908
|
};
|
|
16909
16909
|
function _o(i, a, o, u, h) {
|
|
@@ -17149,12 +17149,12 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
17149
17149
|
return i;
|
|
17150
17150
|
}
|
|
17151
17151
|
function yi(i) {
|
|
17152
|
-
const a =
|
|
17152
|
+
const a = Ga(i);
|
|
17153
17153
|
if (!a)
|
|
17154
17154
|
throw new Error("Expected node of symbol group type, but got " + (i ? "node of type " + i.type : String(i)));
|
|
17155
17155
|
return a;
|
|
17156
17156
|
}
|
|
17157
|
-
function
|
|
17157
|
+
function Ga(i) {
|
|
17158
17158
|
return i && (i.type === "atom" || ia.hasOwnProperty(i.type)) ? i : null;
|
|
17159
17159
|
}
|
|
17160
17160
|
const xi = (i, a) => {
|
|
@@ -17220,7 +17220,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
17220
17220
|
numArgs: 1
|
|
17221
17221
|
},
|
|
17222
17222
|
handler: (i, a) => {
|
|
17223
|
-
const o =
|
|
17223
|
+
const o = Ua(a[0]), u = !x1.test(i.funcName), h = !u || i.funcName === "\\widehat" || i.funcName === "\\widetilde" || i.funcName === "\\widecheck";
|
|
17224
17224
|
return {
|
|
17225
17225
|
type: "accent",
|
|
17226
17226
|
mode: i.parser.mode,
|
|
@@ -17298,7 +17298,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
17298
17298
|
return u.setAttribute("accentunder", "true"), u;
|
|
17299
17299
|
}
|
|
17300
17300
|
});
|
|
17301
|
-
const
|
|
17301
|
+
const Ya = (i) => {
|
|
17302
17302
|
const a = new Me.MathNode("mpadded", i ? [i] : []);
|
|
17303
17303
|
return a.setAttribute("width", "+0.6em"), a.setAttribute("lspace", "0.3em"), a;
|
|
17304
17304
|
};
|
|
@@ -17402,17 +17402,17 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
17402
17402
|
o.setAttribute("minsize", i.label.charAt(0) === "x" ? "1.75em" : "3.0em");
|
|
17403
17403
|
let u;
|
|
17404
17404
|
if (i.body) {
|
|
17405
|
-
const h =
|
|
17405
|
+
const h = Ya(Et(i.body, a));
|
|
17406
17406
|
if (i.below) {
|
|
17407
|
-
const b =
|
|
17407
|
+
const b = Ya(Et(i.below, a));
|
|
17408
17408
|
u = new Me.MathNode("munderover", [o, b, h]);
|
|
17409
17409
|
} else
|
|
17410
17410
|
u = new Me.MathNode("mover", [o, h]);
|
|
17411
17411
|
} else if (i.below) {
|
|
17412
|
-
const h =
|
|
17412
|
+
const h = Ya(Et(i.below, a));
|
|
17413
17413
|
u = new Me.MathNode("munder", [o, h]);
|
|
17414
17414
|
} else
|
|
17415
|
-
u =
|
|
17415
|
+
u = Ya(), u = new Me.MathNode("mover", [o, u]);
|
|
17416
17416
|
return u;
|
|
17417
17417
|
}
|
|
17418
17418
|
});
|
|
@@ -17451,7 +17451,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
17451
17451
|
htmlBuilder: Vo,
|
|
17452
17452
|
mathmlBuilder: Go
|
|
17453
17453
|
});
|
|
17454
|
-
const
|
|
17454
|
+
const Ka = (i) => {
|
|
17455
17455
|
const a = i.type === "ordgroup" && i.body.length ? i.body[0] : i;
|
|
17456
17456
|
return a.type === "atom" && (a.family === "bin" || a.family === "rel") ? "m" + a.family : "mord";
|
|
17457
17457
|
};
|
|
@@ -17468,7 +17468,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
17468
17468
|
return {
|
|
17469
17469
|
type: "mclass",
|
|
17470
17470
|
mode: o.mode,
|
|
17471
|
-
mclass:
|
|
17471
|
+
mclass: Ka(a[0]),
|
|
17472
17472
|
body: Vt(a[1]),
|
|
17473
17473
|
isCharacterBox: g.isCharacterBox(a[1])
|
|
17474
17474
|
};
|
|
@@ -17486,7 +17486,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
17486
17486
|
} = i;
|
|
17487
17487
|
const h = a[1], b = a[0];
|
|
17488
17488
|
let D;
|
|
17489
|
-
u !== "\\stackrel" ? D =
|
|
17489
|
+
u !== "\\stackrel" ? D = Ka(h) : D = "mrel";
|
|
17490
17490
|
const k = {
|
|
17491
17491
|
type: "op",
|
|
17492
17492
|
mode: h.mode,
|
|
@@ -17527,7 +17527,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
17527
17527
|
return {
|
|
17528
17528
|
type: "pmb",
|
|
17529
17529
|
mode: o.mode,
|
|
17530
|
-
mclass:
|
|
17530
|
+
mclass: Ka(a[0]),
|
|
17531
17531
|
body: Vt(a[0])
|
|
17532
17532
|
};
|
|
17533
17533
|
},
|
|
@@ -18019,7 +18019,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
18019
18019
|
type: "elem",
|
|
18020
18020
|
elem: D
|
|
18021
18021
|
};
|
|
18022
|
-
}, Ei = 8e-3,
|
|
18022
|
+
}, Ei = 8e-3, Xa = {
|
|
18023
18023
|
type: "kern",
|
|
18024
18024
|
size: -1 * Ei
|
|
18025
18025
|
}, F1 = ["|", "\\lvert", "\\rvert", "\\vert"], T1 = ["\\|", "\\lVert", "\\rVert", "\\Vert"], rl = function(i, a, o, u, h, b) {
|
|
@@ -18042,20 +18042,20 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
18042
18042
|
width: Vl,
|
|
18043
18043
|
height: Gl,
|
|
18044
18044
|
viewBox: "0 0 " + te + " " + jt
|
|
18045
|
-
}),
|
|
18046
|
-
|
|
18045
|
+
}), ts = ie.makeSvgSpan([], [nh], u);
|
|
18046
|
+
ts.height = jt / 1e3, ts.style.width = Vl, ts.style.height = Gl, wt.push({
|
|
18047
18047
|
type: "elem",
|
|
18048
|
-
elem:
|
|
18048
|
+
elem: ts
|
|
18049
18049
|
});
|
|
18050
18050
|
} else {
|
|
18051
|
-
if (wt.push(Ci(L, ce, h)), wt.push(
|
|
18051
|
+
if (wt.push(Ci(L, ce, h)), wt.push(Xa), k === null) {
|
|
18052
18052
|
const _t = kr - je - lt + 2 * Ei;
|
|
18053
18053
|
wt.push(Ai(O, _t, u));
|
|
18054
18054
|
} else {
|
|
18055
18055
|
const _t = (kr - je - lt - mt) / 2 + 2 * Ei;
|
|
18056
|
-
wt.push(Ai(O, _t, u)), wt.push(
|
|
18056
|
+
wt.push(Ai(O, _t, u)), wt.push(Xa), wt.push(Ci(k, ce, h)), wt.push(Xa), wt.push(Ai(O, _t, u));
|
|
18057
18057
|
}
|
|
18058
|
-
wt.push(
|
|
18058
|
+
wt.push(Xa), wt.push(Ci(D, ce, h));
|
|
18059
18059
|
}
|
|
18060
18060
|
const Tt = u.havingBaseStyle(P.TEXT), Mt = ie.makeVList({
|
|
18061
18061
|
positionType: "bottom",
|
|
@@ -18263,8 +18263,8 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
18263
18263
|
size: 4
|
|
18264
18264
|
}
|
|
18265
18265
|
}, $1 = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "<", ">", "\\langle", "\u27E8", "\\rangle", "\u27E9", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."];
|
|
18266
|
-
function
|
|
18267
|
-
const o =
|
|
18266
|
+
function Za(i, a) {
|
|
18267
|
+
const o = Ga(i);
|
|
18268
18268
|
if (o && $1.includes(o.text))
|
|
18269
18269
|
return o;
|
|
18270
18270
|
throw o ? new l("Invalid delimiter '" + o.text + "' after '" + a.funcName + "'", i) : new l("Invalid delimiter type '" + i.type + "'", i);
|
|
@@ -18277,7 +18277,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
18277
18277
|
argTypes: ["primitive"]
|
|
18278
18278
|
},
|
|
18279
18279
|
handler: (i, a) => {
|
|
18280
|
-
const o =
|
|
18280
|
+
const o = Za(a[0], i);
|
|
18281
18281
|
return {
|
|
18282
18282
|
type: "delimsizing",
|
|
18283
18283
|
mode: i.parser.mode,
|
|
@@ -18314,7 +18314,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
18314
18314
|
return {
|
|
18315
18315
|
type: "leftright-right",
|
|
18316
18316
|
mode: i.parser.mode,
|
|
18317
|
-
delim:
|
|
18317
|
+
delim: Za(a[0], i).text,
|
|
18318
18318
|
color: o
|
|
18319
18319
|
// undefined if not set via \color
|
|
18320
18320
|
};
|
|
@@ -18327,7 +18327,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
18327
18327
|
primitive: !0
|
|
18328
18328
|
},
|
|
18329
18329
|
handler: (i, a) => {
|
|
18330
|
-
const o =
|
|
18330
|
+
const o = Za(a[0], i), u = i.parser;
|
|
18331
18331
|
++u.leftrightDepth;
|
|
18332
18332
|
const h = u.parseExpression(!1);
|
|
18333
18333
|
--u.leftrightDepth, u.expect("\\right", !1);
|
|
@@ -18384,7 +18384,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
18384
18384
|
primitive: !0
|
|
18385
18385
|
},
|
|
18386
18386
|
handler: (i, a) => {
|
|
18387
|
-
const o =
|
|
18387
|
+
const o = Za(a[0], i);
|
|
18388
18388
|
if (!i.parser.leftrightDepth)
|
|
18389
18389
|
throw new l("\\middle without preceding \\left", o);
|
|
18390
18390
|
return {
|
|
@@ -18653,7 +18653,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
18653
18653
|
};
|
|
18654
18654
|
for (let O = 0; O < o.length; ++O)
|
|
18655
18655
|
cl[o[O]] = k;
|
|
18656
|
-
b && (
|
|
18656
|
+
b && (Ha[a] = b), D && (Wa[a] = D);
|
|
18657
18657
|
}
|
|
18658
18658
|
const dl = {};
|
|
18659
18659
|
function B(i, a) {
|
|
@@ -18701,7 +18701,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
18701
18701
|
i.consume(), a.push(o === "\\hdashline"), i.consumeSpaces(), o = i.fetch().text;
|
|
18702
18702
|
return a;
|
|
18703
18703
|
}
|
|
18704
|
-
const
|
|
18704
|
+
const Ja = (i) => {
|
|
18705
18705
|
if (!i.parser.settings.displayMode)
|
|
18706
18706
|
throw new l("{" + i.envName + "} can be used only in display mode.");
|
|
18707
18707
|
};
|
|
@@ -18945,7 +18945,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
18945
18945
|
L += K[te].length === 0 ? "none " : K[te][0] ? "dashed " : "solid ";
|
|
18946
18946
|
return /[sd]/.test(L) && b.setAttribute("rowlines", L.trim()), k !== "" && (b = new Me.MathNode("menclose", [b]), b.setAttribute("notation", k.trim())), i.arraystretch && i.arraystretch < 1 && (b = new Me.MathNode("mstyle", [b]), b.setAttribute("scriptlevel", "1")), b;
|
|
18947
18947
|
}, hl = function(i, a) {
|
|
18948
|
-
i.envName.indexOf("ed") === -1 &&
|
|
18948
|
+
i.envName.indexOf("ed") === -1 && Ja(i);
|
|
18949
18949
|
const o = [], u = i.envName.indexOf("at") > -1 ? "alignat" : "align", h = i.envName === "split", b = on(i.parser, {
|
|
18950
18950
|
cols: o,
|
|
18951
18951
|
addJot: !0,
|
|
@@ -19001,7 +19001,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
19001
19001
|
numArgs: 1
|
|
19002
19002
|
},
|
|
19003
19003
|
handler(i, a) {
|
|
19004
|
-
const h = (
|
|
19004
|
+
const h = (Ga(a[0]) ? [a[0]] : Je(a[0], "ordgroup").body).map(function(D) {
|
|
19005
19005
|
const O = yi(D).text;
|
|
19006
19006
|
if ("lcr".indexOf(O) !== -1)
|
|
19007
19007
|
return {
|
|
@@ -19100,7 +19100,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
19100
19100
|
numArgs: 1
|
|
19101
19101
|
},
|
|
19102
19102
|
handler(i, a) {
|
|
19103
|
-
const h = (
|
|
19103
|
+
const h = (Ga(a[0]) ? [a[0]] : Je(a[0], "ordgroup").body).map(function(D) {
|
|
19104
19104
|
const O = yi(D).text;
|
|
19105
19105
|
if ("lc".indexOf(O) !== -1)
|
|
19106
19106
|
return {
|
|
@@ -19175,7 +19175,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
19175
19175
|
numArgs: 0
|
|
19176
19176
|
},
|
|
19177
19177
|
handler(i) {
|
|
19178
|
-
["gather", "gather*"].includes(i.envName) &&
|
|
19178
|
+
["gather", "gather*"].includes(i.envName) && Ja(i);
|
|
19179
19179
|
const a = {
|
|
19180
19180
|
cols: [{
|
|
19181
19181
|
type: "align",
|
|
@@ -19207,7 +19207,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
19207
19207
|
numArgs: 0
|
|
19208
19208
|
},
|
|
19209
19209
|
handler(i) {
|
|
19210
|
-
|
|
19210
|
+
Ja(i);
|
|
19211
19211
|
const a = {
|
|
19212
19212
|
autoTag: Oi(i.envName),
|
|
19213
19213
|
emptySingleRow: !0,
|
|
@@ -19226,7 +19226,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
19226
19226
|
numArgs: 0
|
|
19227
19227
|
},
|
|
19228
19228
|
handler(i) {
|
|
19229
|
-
return
|
|
19229
|
+
return Ja(i), E1(i.parser);
|
|
19230
19230
|
},
|
|
19231
19231
|
htmlBuilder: Ir,
|
|
19232
19232
|
mathmlBuilder: Lr
|
|
@@ -19329,7 +19329,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
19329
19329
|
parser: o,
|
|
19330
19330
|
funcName: u
|
|
19331
19331
|
} = i;
|
|
19332
|
-
const h =
|
|
19332
|
+
const h = Ua(a[0]);
|
|
19333
19333
|
let b = u;
|
|
19334
19334
|
return b in vl && (b = vl[b]), {
|
|
19335
19335
|
type: "font",
|
|
@@ -19354,7 +19354,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
19354
19354
|
return {
|
|
19355
19355
|
type: "mclass",
|
|
19356
19356
|
mode: o.mode,
|
|
19357
|
-
mclass:
|
|
19357
|
+
mclass: Ka(u),
|
|
19358
19358
|
body: [{
|
|
19359
19359
|
type: "font",
|
|
19360
19360
|
mode: o.mode,
|
|
@@ -19636,7 +19636,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
19636
19636
|
let {
|
|
19637
19637
|
parser: o
|
|
19638
19638
|
} = i;
|
|
19639
|
-
const u = a[4], h = a[5], b =
|
|
19639
|
+
const u = a[4], h = a[5], b = Ua(a[0]), D = b.type === "atom" && b.family === "open" ? xl(b.text) : null, k = Ua(a[1]), O = k.type === "atom" && k.family === "close" ? xl(k.text) : null, L = Je(a[2], "size");
|
|
19640
19640
|
let K, te = null;
|
|
19641
19641
|
L.isBlank ? K = !0 : (te = L.value, K = te.number > 0);
|
|
19642
19642
|
let ce = "auto", Se = a[3];
|
|
@@ -22075,7 +22075,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
22075
22075
|
return o != null ? typeof o == "string" || typeof o == "function" || !o.unexpandable : ln.hasOwnProperty(a) && !ln[a].primitive;
|
|
22076
22076
|
}
|
|
22077
22077
|
}
|
|
22078
|
-
const _l = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,
|
|
22078
|
+
const _l = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, Qa = Object.freeze({
|
|
22079
22079
|
"\u208A": "+",
|
|
22080
22080
|
"\u208B": "-",
|
|
22081
22081
|
"\u208C": "=",
|
|
@@ -22571,7 +22571,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
22571
22571
|
\u038F: "\u03A9\u0301",
|
|
22572
22572
|
\u1FFA: "\u03A9\u0300"
|
|
22573
22573
|
};
|
|
22574
|
-
class
|
|
22574
|
+
class es {
|
|
22575
22575
|
constructor(a, o) {
|
|
22576
22576
|
this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new Z1(a, o, this.mode), this.settings = o, this.leftrightDepth = 0;
|
|
22577
22577
|
}
|
|
@@ -22642,7 +22642,7 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
22642
22642
|
for (; ; ) {
|
|
22643
22643
|
this.mode === "math" && this.consumeSpaces();
|
|
22644
22644
|
const h = this.fetch();
|
|
22645
|
-
if (
|
|
22645
|
+
if (es.endOfExpression.indexOf(h.text) !== -1 || o && h.text === o || a && ln[h.text] && ln[h.text].infix)
|
|
22646
22646
|
break;
|
|
22647
22647
|
const b = this.parseAtom(o);
|
|
22648
22648
|
if (b) {
|
|
@@ -22767,13 +22767,13 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
22767
22767
|
mode: this.mode,
|
|
22768
22768
|
body: k
|
|
22769
22769
|
};
|
|
22770
|
-
} else if (
|
|
22770
|
+
} else if (Qa[b.text]) {
|
|
22771
22771
|
const D = _l.test(b.text), k = [];
|
|
22772
|
-
for (k.push(new wr(
|
|
22772
|
+
for (k.push(new wr(Qa[b.text])), this.consume(); ; ) {
|
|
22773
22773
|
const L = this.fetch().text;
|
|
22774
|
-
if (!
|
|
22774
|
+
if (!Qa[L] || _l.test(L) !== D)
|
|
22775
22775
|
break;
|
|
22776
|
-
k.unshift(new wr(
|
|
22776
|
+
k.unshift(new wr(Qa[L])), this.consume();
|
|
22777
22777
|
}
|
|
22778
22778
|
const O = this.subparse(k);
|
|
22779
22779
|
D ? h = {
|
|
@@ -23156,11 +23156,11 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
23156
23156
|
return h;
|
|
23157
23157
|
}
|
|
23158
23158
|
}
|
|
23159
|
-
|
|
23159
|
+
es.endOfExpression = ["}", "\\endgroup", "\\end", "\\right", "&"];
|
|
23160
23160
|
var _i = function(i, a) {
|
|
23161
23161
|
if (!(typeof i == "string" || i instanceof String))
|
|
23162
23162
|
throw new TypeError("KaTeX can only parse string typed expression");
|
|
23163
|
-
const o = new
|
|
23163
|
+
const o = new es(i, a);
|
|
23164
23164
|
delete o.gullet.macros.current["\\df@tag"];
|
|
23165
23165
|
let u = o.parse();
|
|
23166
23166
|
if (delete o.gullet.macros.current["\\current@color"], delete o.gullet.macros.current["\\color"], o.gullet.macros.get("\\df@tag")) {
|
|
@@ -23299,9 +23299,9 @@ l0,-` + (a + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
23299
23299
|
})()
|
|
23300
23300
|
);
|
|
23301
23301
|
});
|
|
23302
|
-
})(
|
|
23302
|
+
})(Ns)), Ns.exports;
|
|
23303
23303
|
}
|
|
23304
|
-
var f3 =
|
|
23304
|
+
var f3 = xa.exports, cd;
|
|
23305
23305
|
function h3() {
|
|
23306
23306
|
return cd || (cd = 1, (function(e, t) {
|
|
23307
23307
|
(function(r, n) {
|
|
@@ -23408,7 +23408,7 @@ function h3() {
|
|
|
23408
23408
|
displayMode: !1
|
|
23409
23409
|
});
|
|
23410
23410
|
});
|
|
23411
|
-
})(
|
|
23411
|
+
})(xa, xa.exports)), xa.exports;
|
|
23412
23412
|
}
|
|
23413
23413
|
var Uf = h3();
|
|
23414
23414
|
const m3 = Dt.span.attrs({
|
|
@@ -25049,7 +25049,7 @@ const No = ({
|
|
|
25049
25049
|
n += `<tr ${r.row}><td colspan="100" style="padding: 0.75rem 1.5rem; text-align: center; color: #6b7280;">\u6682\u65E0\u6570\u636E</td></tr>`;
|
|
25050
25050
|
return n += "</tbody></table></div>", n;
|
|
25051
25051
|
};
|
|
25052
|
-
var
|
|
25052
|
+
var Rs = { exports: {} }, N3 = Rs.exports, pd;
|
|
25053
25053
|
function R3() {
|
|
25054
25054
|
return pd || (pd = 1, (function(e, t) {
|
|
25055
25055
|
(function(r, n) {
|
|
@@ -25325,7 +25325,7 @@ function R3() {
|
|
|
25325
25325
|
return pe(1e3 * ee);
|
|
25326
25326
|
}, pe.en = G[V], pe.Ls = G, pe.p = {}, pe;
|
|
25327
25327
|
}));
|
|
25328
|
-
})(
|
|
25328
|
+
})(Rs)), Rs.exports;
|
|
25329
25329
|
}
|
|
25330
25330
|
var P3 = R3();
|
|
25331
25331
|
const z3 = /* @__PURE__ */ Js(P3);
|
|
@@ -25359,7 +25359,7 @@ var j3 = {
|
|
|
25359
25359
|
* This source code is licensed under the ISC license.
|
|
25360
25360
|
* See the LICENSE file in the root directory of this source tree.
|
|
25361
25361
|
*/
|
|
25362
|
-
const I3 =
|
|
25362
|
+
const I3 = $a(
|
|
25363
25363
|
({
|
|
25364
25364
|
color: e = "currentColor",
|
|
25365
25365
|
size: t = 24,
|
|
@@ -25369,7 +25369,7 @@ const I3 = ja(
|
|
|
25369
25369
|
children: l,
|
|
25370
25370
|
iconNode: c,
|
|
25371
25371
|
...f
|
|
25372
|
-
}, y) =>
|
|
25372
|
+
}, y) => Ps(
|
|
25373
25373
|
"svg",
|
|
25374
25374
|
{
|
|
25375
25375
|
ref: y,
|
|
@@ -25382,7 +25382,7 @@ const I3 = ja(
|
|
|
25382
25382
|
...f
|
|
25383
25383
|
},
|
|
25384
25384
|
[
|
|
25385
|
-
...c.map(([p, w]) =>
|
|
25385
|
+
...c.map(([p, w]) => Ps(p, w)),
|
|
25386
25386
|
...Array.isArray(l) ? l : [l]
|
|
25387
25387
|
]
|
|
25388
25388
|
)
|
|
@@ -25394,8 +25394,8 @@ const I3 = ja(
|
|
|
25394
25394
|
* See the LICENSE file in the root directory of this source tree.
|
|
25395
25395
|
*/
|
|
25396
25396
|
const dr = (e, t) => {
|
|
25397
|
-
const r =
|
|
25398
|
-
({ className: n, ...s }, l) =>
|
|
25397
|
+
const r = $a(
|
|
25398
|
+
({ className: n, ...s }, l) => Ps(I3, {
|
|
25399
25399
|
ref: l,
|
|
25400
25400
|
iconNode: t,
|
|
25401
25401
|
className: Yf(`lucide-${$3(e)}`, n),
|
|
@@ -25410,7 +25410,7 @@ const dr = (e, t) => {
|
|
|
25410
25410
|
* This source code is licensed under the ISC license.
|
|
25411
25411
|
* See the LICENSE file in the root directory of this source tree.
|
|
25412
25412
|
*/
|
|
25413
|
-
const
|
|
25413
|
+
const ys = dr("ChevronDown", [
|
|
25414
25414
|
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
25415
25415
|
]);
|
|
25416
25416
|
/**
|
|
@@ -25428,7 +25428,7 @@ const L3 = dr("ChevronRight", [
|
|
|
25428
25428
|
* This source code is licensed under the ISC license.
|
|
25429
25429
|
* See the LICENSE file in the root directory of this source tree.
|
|
25430
25430
|
*/
|
|
25431
|
-
const
|
|
25431
|
+
const xs = dr("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
|
|
25432
25432
|
/**
|
|
25433
25433
|
* @license lucide-react v0.456.0 - ISC
|
|
25434
25434
|
*
|
|
@@ -25577,9 +25577,21 @@ const J3 = dr("Trash2", [
|
|
|
25577
25577
|
["line", { x1: "10", x2: "10", y1: "11", y2: "17", key: "1uufr5" }],
|
|
25578
25578
|
["line", { x1: "14", x2: "14", y1: "11", y2: "17", key: "xtxkd" }]
|
|
25579
25579
|
]);
|
|
25580
|
-
function S0(e) {
|
|
25581
|
-
const
|
|
25582
|
-
|
|
25580
|
+
function S0(e, t, r = 18) {
|
|
25581
|
+
const n = (e || "").toLowerCase(), s = t?.theme?.icons || {}, l = (c, f, y) => {
|
|
25582
|
+
const p = [c, ...y || []];
|
|
25583
|
+
for (const w of p) {
|
|
25584
|
+
const C = s[w];
|
|
25585
|
+
if (C) {
|
|
25586
|
+
if (Ue.isValidElement(C))
|
|
25587
|
+
return C;
|
|
25588
|
+
if (typeof C == "string")
|
|
25589
|
+
return /* @__PURE__ */ N.jsx("img", { src: C, alt: w, style: { width: r, height: r } });
|
|
25590
|
+
}
|
|
25591
|
+
}
|
|
25592
|
+
return /* @__PURE__ */ N.jsx(zs, { type: f, size: r });
|
|
25593
|
+
};
|
|
25594
|
+
return ["png", "jpg", "jpeg", "gif", "bmp", "webp", "svg", "ico"].includes(n) ? l("image", "Files/tupian_color", ["png", "jpg", "jpeg"]) : n === "pdf" ? l("pdf", "Files/pdf_color") : ["doc", "docx"].includes(n) ? l("docx", "Files/docx_color", ["doc"]) : ["xls", "xlsx", "xlsm", "xlsb", "xltx", "xltm", "xlt", "xlam"].includes(n) ? l("sheets", "Files/xls_color", ["excel", "xls", "xlsx"]) : n === "csv" ? l("csv", "Files/csv_color", ["sheets", "excel"]) : ["ppt", "pptx"].includes(n) ? l("pptx", "Files/ppt_color", ["ppt"]) : n === "txt" || n === "md" ? l("txt", "Files/txt_color", ["md"]) : ["zip", "rar", "7z"].includes(n) ? l("archive", "Files/yasuobao_color", ["zip", "rar"]) : ["odt", "ods", "odp", "odf"].includes(n) ? l("odt", "Files/odt_color") : ["html", "htm", "url"].includes(n) ? l("html", "Files/lianjie_color", ["htm", "url"]) : n === "json" ? l("json", "Files/unknow_color") : /* @__PURE__ */ N.jsx(zs, { type: "Files/unknow_color", size: r });
|
|
25583
25595
|
}
|
|
25584
25596
|
function Wn(e) {
|
|
25585
25597
|
let t = [];
|
|
@@ -25601,7 +25613,7 @@ function Q3(e) {
|
|
|
25601
25613
|
}
|
|
25602
25614
|
return Array.from(new Set(t));
|
|
25603
25615
|
}
|
|
25604
|
-
function
|
|
25616
|
+
function ws(e) {
|
|
25605
25617
|
if (e == null) return null;
|
|
25606
25618
|
const t = Number(e);
|
|
25607
25619
|
return Number.isNaN(t) ? null : t;
|
|
@@ -25784,7 +25796,7 @@ const t6 = Dt.div.attrs({
|
|
|
25784
25796
|
transform: translateY(1px);
|
|
25785
25797
|
}
|
|
25786
25798
|
}
|
|
25787
|
-
`,
|
|
25799
|
+
`, Ds = Dt.div.attrs({
|
|
25788
25800
|
className: "chat-message-reference-container"
|
|
25789
25801
|
})`
|
|
25790
25802
|
|
|
@@ -26024,7 +26036,7 @@ const t6 = Dt.div.attrs({
|
|
|
26024
26036
|
analyzing: { text: "\u77E5\u8BC6\u89E3\u6790\u4E2D...", icon: "\u{1F50D}" },
|
|
26025
26037
|
error: { text: T || "\u62B1\u6B49\uFF0C\u672C\u6B21\u8BF7\u6C42\u51FA\u9519\u4E86\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5", icon: "\u274C" },
|
|
26026
26038
|
initializing: { text: "\u6B63\u5728\u521D\u59CB\u5316...", icon: "\u2699\uFE0F" },
|
|
26027
|
-
ready: { text: "\u601D\u8003\u5B8C\u6210", icon: /* @__PURE__ */ N.jsx(
|
|
26039
|
+
ready: { text: "\u601D\u8003\u5B8C\u6210", icon: /* @__PURE__ */ N.jsx(zs, { type: "rag/think", size: 16 }) }
|
|
26028
26040
|
}[s] || { text: "\u5904\u7406\u4E2D...", icon: "\u{1F4AD}" }, Q = ne ? `(\u7528\u65F6 ${Math.round(ne / 1e3)} \u79D2)` : "";
|
|
26029
26041
|
return /* @__PURE__ */ N.jsx("div", { className: "think-header", children: /* @__PURE__ */ N.jsx("div", { className: "think-header-left ml-[16px]", children: /* @__PURE__ */ N.jsxs("div", { className: "flex items-center gap-x-1 bg-[#F5F7FA] p-2 rounded w-full", children: [
|
|
26030
26042
|
/* @__PURE__ */ N.jsx("div", { className: "think-icon", children: m.icon }),
|
|
@@ -26376,7 +26388,7 @@ const t6 = Dt.div.attrs({
|
|
|
26376
26388
|
const F = v.file_path.split(".").pop();
|
|
26377
26389
|
F && (Ce = F.toLowerCase());
|
|
26378
26390
|
}
|
|
26379
|
-
const Z = v.parsedFilePath || Y.file_path || v.file_path || v.convertedFilePath || Y.link || Y.source_link || "", { metadata: R, ...Be } = v, Te = Y.source || "", $e =
|
|
26391
|
+
const Z = v.parsedFilePath || Y.file_path || v.file_path || v.convertedFilePath || Y.link || Y.source_link || "", { metadata: R, ...Be } = v, Te = Y.source || "", $e = ws(v.score ?? Y.score);
|
|
26380
26392
|
return {
|
|
26381
26393
|
file_id: Y.id || v.uid || "",
|
|
26382
26394
|
file_name: _,
|
|
@@ -26391,7 +26403,7 @@ const t6 = Dt.div.attrs({
|
|
|
26391
26403
|
};
|
|
26392
26404
|
} catch (Y) {
|
|
26393
26405
|
console.warn("\u89E3\u6790\u5F15\u7528\u6587\u6863\u65F6\u51FA\u9519:", Y, v);
|
|
26394
|
-
const { metadata: _, ...Ce } = v, Z = v.metadata?.source || v.file_path || v.convertedFilePath || "", R =
|
|
26406
|
+
const { metadata: _, ...Ce } = v, Z = v.metadata?.source || v.file_path || v.convertedFilePath || "", R = ws(v.score);
|
|
26395
26407
|
return {
|
|
26396
26408
|
file_id: v.uid || "",
|
|
26397
26409
|
file_name: v.name || "\u672A\u77E5\u6587\u6863",
|
|
@@ -26464,7 +26476,7 @@ const t6 = Dt.div.attrs({
|
|
|
26464
26476
|
return {
|
|
26465
26477
|
link: x?.metadata?.link,
|
|
26466
26478
|
file_name: x?.metadata?.title,
|
|
26467
|
-
score:
|
|
26479
|
+
score: ws(v),
|
|
26468
26480
|
tags: []
|
|
26469
26481
|
};
|
|
26470
26482
|
});
|
|
@@ -26673,7 +26685,7 @@ const t6 = Dt.div.attrs({
|
|
|
26673
26685
|
databaseName: $e.databaseName || zt?.databaseName || "",
|
|
26674
26686
|
tableName: $e.tableName || zt?.tableName || "",
|
|
26675
26687
|
fetchUrl: $e.fetchUrl || zt?.dataFetchUrl || "",
|
|
26676
|
-
score:
|
|
26688
|
+
score: ws($e.score),
|
|
26677
26689
|
tags: $e.tags || [],
|
|
26678
26690
|
referenceIndex: $e.referenceIndex,
|
|
26679
26691
|
// 保留 metadata 中的基本信息,但不包含数据行
|
|
@@ -26837,13 +26849,7 @@ const t6 = Dt.div.attrs({
|
|
|
26837
26849
|
},
|
|
26838
26850
|
children: [
|
|
26839
26851
|
Ce.map((Z, R) => {
|
|
26840
|
-
const Be = (Z.name || "").split(".").pop() || "", Te =
|
|
26841
|
-
ha,
|
|
26842
|
-
{
|
|
26843
|
-
type: S0(Be),
|
|
26844
|
-
size: 18
|
|
26845
|
-
}
|
|
26846
|
-
);
|
|
26852
|
+
const Be = (Z.name || "").split(".").pop() || "", Te = S0(Be, M, 18);
|
|
26847
26853
|
return /* @__PURE__ */ N.jsxs(
|
|
26848
26854
|
"div",
|
|
26849
26855
|
{
|
|
@@ -26870,13 +26876,7 @@ const t6 = Dt.div.attrs({
|
|
|
26870
26876
|
);
|
|
26871
26877
|
}),
|
|
26872
26878
|
_.map((Z) => {
|
|
26873
|
-
const R = (Z.name || "").split(".").pop() || "", Be = Z.size ?? Z.file?.size ?? Z.fileSize, Te = d(Be), $e =
|
|
26874
|
-
ha,
|
|
26875
|
-
{
|
|
26876
|
-
type: S0(R),
|
|
26877
|
-
size: 18
|
|
26878
|
-
}
|
|
26879
|
-
);
|
|
26879
|
+
const R = (Z.name || "").split(".").pop() || "", Be = Z.size ?? Z.file?.size ?? Z.fileSize, Te = d(Be), $e = S0(R, M, 18);
|
|
26880
26880
|
return /* @__PURE__ */ N.jsxs(
|
|
26881
26881
|
"div",
|
|
26882
26882
|
{
|
|
@@ -27036,7 +27036,7 @@ const t6 = Dt.div.attrs({
|
|
|
27036
27036
|
},
|
|
27037
27037
|
R + Be
|
|
27038
27038
|
)) }) }),
|
|
27039
|
-
x && /* @__PURE__ */ N.jsxs(
|
|
27039
|
+
x && /* @__PURE__ */ N.jsxs(Ds, { $theme: P, children: [
|
|
27040
27040
|
/* @__PURE__ */ N.jsx("div", { className: "reference-title justify-between items-center flex", children: /* @__PURE__ */ N.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
27041
27041
|
/* @__PURE__ */ N.jsx("span", { className: "text-[#374151]", children: "\u77E5\u8BC6\u5E93\u6587\u6863\u5F15\u7528" }),
|
|
27042
27042
|
/* @__PURE__ */ N.jsx("span", { className: "text-[#b4b4b4] text-xs", children: ` (${d.length})` }),
|
|
@@ -27045,7 +27045,7 @@ const t6 = Dt.div.attrs({
|
|
|
27045
27045
|
{
|
|
27046
27046
|
onClick: () => de(!z),
|
|
27047
27047
|
className: "cursor-pointer hover:text-[#86909C] transition-colors",
|
|
27048
|
-
children: z ? /* @__PURE__ */ N.jsx(
|
|
27048
|
+
children: z ? /* @__PURE__ */ N.jsx(xs, { size: 16, className: "text-[#b4b4b4]" }) : /* @__PURE__ */ N.jsx(ys, { size: 16, className: "text-[#b4b4b4]" })
|
|
27049
27049
|
}
|
|
27050
27050
|
)
|
|
27051
27051
|
] }) }),
|
|
@@ -27056,7 +27056,7 @@ const t6 = Dt.div.attrs({
|
|
|
27056
27056
|
children: /* @__PURE__ */ N.jsxs("div", { className: "file-info flex items-end gap-2", children: [
|
|
27057
27057
|
/* @__PURE__ */ N.jsx("div", { className: "flex-shrink-0", children: (() => {
|
|
27058
27058
|
const Te = R.file_type || (R.file_name || "").split(".").pop() || "pdf", $e = (R.file_name || "").split(".").pop() || "file";
|
|
27059
|
-
return Te === "video" || ["mp4", "avi", "mov", "wmv", "flv", "webm", "mkv"].includes(Te) ? /* @__PURE__ */ N.jsx("div", { className: "w-6 h-6 rounded flex items-center justify-center bg-red-100", children: /* @__PURE__ */ N.jsx(G3, { size: 16, className: "text-red-600" }) }) : /* @__PURE__ */ N.jsx("div", { className: "w-6 h-6 rounded flex items-center justify-center", children:
|
|
27059
|
+
return Te === "video" || ["mp4", "avi", "mov", "wmv", "flv", "webm", "mkv"].includes(Te) ? /* @__PURE__ */ N.jsx("div", { className: "w-6 h-6 rounded flex items-center justify-center bg-red-100", children: /* @__PURE__ */ N.jsx(G3, { size: 16, className: "text-red-600" }) }) : /* @__PURE__ */ N.jsx("div", { className: "w-6 h-6 rounded flex items-center justify-center", children: S0($e, M, 16) });
|
|
27060
27060
|
})() }),
|
|
27061
27061
|
/* @__PURE__ */ N.jsx("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ N.jsx(
|
|
27062
27062
|
"div",
|
|
@@ -27150,7 +27150,7 @@ const t6 = Dt.div.attrs({
|
|
|
27150
27150
|
R.file_id || Be
|
|
27151
27151
|
)) })
|
|
27152
27152
|
] }),
|
|
27153
|
-
Ce && /* @__PURE__ */ N.jsxs(
|
|
27153
|
+
Ce && /* @__PURE__ */ N.jsxs(Ds, { $theme: P, children: [
|
|
27154
27154
|
/* @__PURE__ */ N.jsx("div", { className: "reference-title justify-between items-center flex", children: /* @__PURE__ */ N.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
27155
27155
|
/* @__PURE__ */ N.jsx("span", { className: "text-[#374151]", children: "\u6570\u636E\u5E93\u5F15\u7528" }),
|
|
27156
27156
|
/* @__PURE__ */ N.jsx("span", { className: "text-[#b4b4b4] text-xs", children: ` (${We.length || 0})` }),
|
|
@@ -27159,7 +27159,7 @@ const t6 = Dt.div.attrs({
|
|
|
27159
27159
|
{
|
|
27160
27160
|
onClick: () => ke(!ge),
|
|
27161
27161
|
className: "cursor-pointer hover:text-[#86909C] transition-colors",
|
|
27162
|
-
children: ge ? /* @__PURE__ */ N.jsx(
|
|
27162
|
+
children: ge ? /* @__PURE__ */ N.jsx(xs, { size: 16, className: "text-[#b4b4b4]" }) : /* @__PURE__ */ N.jsx(ys, { size: 16, className: "text-[#b4b4b4]" })
|
|
27163
27163
|
}
|
|
27164
27164
|
)
|
|
27165
27165
|
] }) }),
|
|
@@ -27212,7 +27212,7 @@ const t6 = Dt.div.attrs({
|
|
|
27212
27212
|
R.tableName || Be
|
|
27213
27213
|
)) })
|
|
27214
27214
|
] }),
|
|
27215
|
-
v && /* @__PURE__ */ N.jsxs(
|
|
27215
|
+
v && /* @__PURE__ */ N.jsxs(Ds, { $theme: P, children: [
|
|
27216
27216
|
/* @__PURE__ */ N.jsx("div", { className: "reference-title justify-between items-center flex", children: /* @__PURE__ */ N.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
27217
27217
|
/* @__PURE__ */ N.jsx("span", { className: "text-[#374151]", children: "\u4E92\u8054\u7F51\u641C\u7D22\u5F15\u7528" }),
|
|
27218
27218
|
/* @__PURE__ */ N.jsx("span", { className: "text-[#b4b4b4] text-xs", children: ` (${m.length})` }),
|
|
@@ -27221,7 +27221,7 @@ const t6 = Dt.div.attrs({
|
|
|
27221
27221
|
{
|
|
27222
27222
|
onClick: () => le(!ae),
|
|
27223
27223
|
className: "cursor-pointer hover:text-[#86909C] transition-colors",
|
|
27224
|
-
children: ae ? /* @__PURE__ */ N.jsx(
|
|
27224
|
+
children: ae ? /* @__PURE__ */ N.jsx(xs, { size: 16, className: "text-[#b4b4b4]" }) : /* @__PURE__ */ N.jsx(ys, { size: 16, className: "text-[#b4b4b4]" })
|
|
27225
27225
|
}
|
|
27226
27226
|
)
|
|
27227
27227
|
] }) }),
|
|
@@ -27230,7 +27230,7 @@ const t6 = Dt.div.attrs({
|
|
|
27230
27230
|
{
|
|
27231
27231
|
className: "reference-item",
|
|
27232
27232
|
children: /* @__PURE__ */ N.jsxs("div", { className: "file-info flex items-end gap-2", children: [
|
|
27233
|
-
/* @__PURE__ */ N.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ N.jsx("div", { className: "w-6 h-6 rounded-full flex items-center justify-center", children: /* @__PURE__ */ N.jsx(
|
|
27233
|
+
/* @__PURE__ */ N.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ N.jsx("div", { className: "w-6 h-6 rounded-full flex items-center justify-center", children: /* @__PURE__ */ N.jsx(zs, { type: "rag/netretrive", size: 32, className: "text-green-600" }) }) }),
|
|
27234
27234
|
/* @__PURE__ */ N.jsx("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ N.jsx(
|
|
27235
27235
|
"div",
|
|
27236
27236
|
{
|
|
@@ -27291,7 +27291,7 @@ const t6 = Dt.div.attrs({
|
|
|
27291
27291
|
(R.link || "") + Be
|
|
27292
27292
|
)) })
|
|
27293
27293
|
] }),
|
|
27294
|
-
Y && /* @__PURE__ */ N.jsxs(
|
|
27294
|
+
Y && /* @__PURE__ */ N.jsxs(Ds, { $theme: P, children: [
|
|
27295
27295
|
/* @__PURE__ */ N.jsx("div", { className: "reference-title justify-between items-center flex", children: /* @__PURE__ */ N.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
27296
27296
|
/* @__PURE__ */ N.jsx("span", { className: "text-[#374151]", children: "\u56FE\u8C31\u5F15\u7528" }),
|
|
27297
27297
|
/* @__PURE__ */ N.jsx("span", { className: "text-[#b4b4b4] text-xs", children: ` (${Q.length})` }),
|
|
@@ -27300,7 +27300,7 @@ const t6 = Dt.div.attrs({
|
|
|
27300
27300
|
{
|
|
27301
27301
|
onClick: () => Le(!Pe),
|
|
27302
27302
|
className: "cursor-pointer hover:text-[#86909C] transition-colors",
|
|
27303
|
-
children: Pe ? /* @__PURE__ */ N.jsx(
|
|
27303
|
+
children: Pe ? /* @__PURE__ */ N.jsx(xs, { size: 16, className: "text-[#b4b4b4]" }) : /* @__PURE__ */ N.jsx(ys, { size: 16, className: "text-[#b4b4b4]" })
|
|
27304
27304
|
}
|
|
27305
27305
|
)
|
|
27306
27306
|
] }) }),
|