bi-components-library 1.3.8-next.1 → 1.3.8-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +604 -604
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +33 -33
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as v, jsxs as W, Fragment as it } from "react/jsx-runtime";
|
|
2
2
|
import ve, { useState as K, useRef as J, useMemo as Fe, useCallback as $, useEffect as he, createContext as Wo, useContext as Ah, useLayoutEffect as ze, useDebugValue as Nh, forwardRef as mb } from "react";
|
|
3
3
|
import { Button as or, Card as Yo, Modal as bb, Table as jo, Flex as wc, Spin as Jl, Empty as gb, Select as Zl, Form as Ca, Input as Ko, Space as vb, unstableSetRender as yb, Tooltip as Go, DatePicker as Eb, Cascader as Tb, Popover as Xa, Image as Qo, App as zn, Dropdown as Xo, Popconfirm as Cb, ConfigProvider as xb, Progress as Sb, Pagination as kb, theme as Ab } from "antd";
|
|
4
|
-
import { createFromIconfontCN as Nb, LeftOutlined as wb, SearchOutlined as Ib, ReloadOutlined as _b, CloseCircleFilled as wh, InfoCircleOutlined as Ob, SendOutlined as Mb, PauseCircleOutlined as Rb, PlayCircleOutlined as
|
|
5
|
-
import { createRoot as
|
|
4
|
+
import { createFromIconfontCN as Nb, LeftOutlined as wb, SearchOutlined as Ib, ReloadOutlined as _b, CloseCircleFilled as wh, InfoCircleOutlined as Ob, SendOutlined as Mb, PauseCircleOutlined as Rb, PlayCircleOutlined as Db } from "@ant-design/icons";
|
|
5
|
+
import { createRoot as Lb } from "react-dom/client";
|
|
6
6
|
import Pb, { createPortal as Ih } from "react-dom";
|
|
7
7
|
const Bb = ({
|
|
8
8
|
variant: e = "primary",
|
|
@@ -734,7 +734,7 @@ jb.__docgenInfo = {
|
|
|
734
734
|
};
|
|
735
735
|
yb((e, t) => {
|
|
736
736
|
const n = t;
|
|
737
|
-
n._reactRootForAntd ||=
|
|
737
|
+
n._reactRootForAntd ||= Lb(n);
|
|
738
738
|
const r = n._reactRootForAntd;
|
|
739
739
|
return r.render(e), async () => {
|
|
740
740
|
await new Promise((l) => setTimeout(l, 0)), r.unmount();
|
|
@@ -883,7 +883,7 @@ function Rh(e, t) {
|
|
|
883
883
|
Object.assign(n, l.property), Object.assign(r, l.normal);
|
|
884
884
|
return new ea(n, r, t);
|
|
885
885
|
}
|
|
886
|
-
function
|
|
886
|
+
function Ll(e) {
|
|
887
887
|
return e.toLowerCase();
|
|
888
888
|
}
|
|
889
889
|
class _t {
|
|
@@ -965,11 +965,11 @@ function Qr(e) {
|
|
|
965
965
|
l,
|
|
966
966
|
e.space
|
|
967
967
|
);
|
|
968
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[
|
|
968
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[Ll(r)] = r, n[Ll(a.attribute)] = r;
|
|
969
969
|
}
|
|
970
970
|
return new ea(t, n, e.space);
|
|
971
971
|
}
|
|
972
|
-
const
|
|
972
|
+
const Dh = Qr({
|
|
973
973
|
properties: {
|
|
974
974
|
ariaActiveDescendant: null,
|
|
975
975
|
ariaAtomic: Ge,
|
|
@@ -1025,11 +1025,11 @@ const Lh = Qr({
|
|
|
1025
1025
|
return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
|
|
1026
1026
|
}
|
|
1027
1027
|
});
|
|
1028
|
-
function
|
|
1028
|
+
function Lh(e, t) {
|
|
1029
1029
|
return t in e ? e[t] : t;
|
|
1030
1030
|
}
|
|
1031
1031
|
function Ph(e, t) {
|
|
1032
|
-
return
|
|
1032
|
+
return Lh(e, t.toLowerCase());
|
|
1033
1033
|
}
|
|
1034
1034
|
const sg = Qr({
|
|
1035
1035
|
attributes: {
|
|
@@ -1950,7 +1950,7 @@ const sg = Qr({
|
|
|
1950
1950
|
zoomAndPan: null
|
|
1951
1951
|
},
|
|
1952
1952
|
space: "svg",
|
|
1953
|
-
transform:
|
|
1953
|
+
transform: Lh
|
|
1954
1954
|
}), Bh = Qr({
|
|
1955
1955
|
properties: {
|
|
1956
1956
|
xLinkActuate: null,
|
|
@@ -1996,7 +1996,7 @@ const sg = Qr({
|
|
|
1996
1996
|
xmlnsXLink: "xmlnsXlink"
|
|
1997
1997
|
}, cg = /[A-Z]/g, Rc = /-[a-z]/g, dg = /^data[-\w.:]+$/i;
|
|
1998
1998
|
function Ei(e, t) {
|
|
1999
|
-
const n =
|
|
1999
|
+
const n = Ll(t);
|
|
2000
2000
|
let r = t, l = _t;
|
|
2001
2001
|
if (n in e.normal)
|
|
2002
2002
|
return e.property[e.normal[n]];
|
|
@@ -2021,8 +2021,8 @@ function fg(e) {
|
|
|
2021
2021
|
function hg(e) {
|
|
2022
2022
|
return e.charAt(1).toUpperCase();
|
|
2023
2023
|
}
|
|
2024
|
-
const ta = Rh([
|
|
2025
|
-
function
|
|
2024
|
+
const ta = Rh([Dh, sg, Bh, Fh, Hh], "html"), Vn = Rh([Dh, og, Bh, Fh, Hh], "svg");
|
|
2025
|
+
function Dc(e) {
|
|
2026
2026
|
const t = String(e || "").trim();
|
|
2027
2027
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
|
2028
2028
|
}
|
|
@@ -2032,10 +2032,10 @@ function Uh(e) {
|
|
|
2032
2032
|
function Zo(e) {
|
|
2033
2033
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2034
2034
|
}
|
|
2035
|
-
var Ir = {}, us,
|
|
2035
|
+
var Ir = {}, us, Lc;
|
|
2036
2036
|
function pg() {
|
|
2037
|
-
if (
|
|
2038
|
-
|
|
2037
|
+
if (Lc) return us;
|
|
2038
|
+
Lc = 1;
|
|
2039
2039
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, l = /^:\s*/, a = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, i = /^[;\s]*/, s = /^\s+|\s+$/g, o = `
|
|
2040
2040
|
`, u = "/", c = "*", d = "", h = "comment", f = "declaration";
|
|
2041
2041
|
function m(b, y) {
|
|
@@ -2378,7 +2378,7 @@ function wg(e, t, n) {
|
|
|
2378
2378
|
const r = e.schema;
|
|
2379
2379
|
let l = r;
|
|
2380
2380
|
t.name === "svg" && r.space === "html" && (l = Vn, e.schema = l), e.ancestors.push(t);
|
|
2381
|
-
const a = t.name === null ? e.Fragment : Yh(e, t.name, !0), i =
|
|
2381
|
+
const a = t.name === null ? e.Fragment : Yh(e, t.name, !0), i = Dg(e, t), s = nu(e, t);
|
|
2382
2382
|
return Wh(e, i, a, t), tu(i, s), e.ancestors.pop(), e.schema = r, e.create(t, a, i, n);
|
|
2383
2383
|
}
|
|
2384
2384
|
function Ig(e, t, n) {
|
|
@@ -2427,7 +2427,7 @@ function Rg(e, t) {
|
|
|
2427
2427
|
let r, l;
|
|
2428
2428
|
for (l in t.properties)
|
|
2429
2429
|
if (l !== "children" && eu.call(t.properties, l)) {
|
|
2430
|
-
const a =
|
|
2430
|
+
const a = Lg(e, l, t.properties[l]);
|
|
2431
2431
|
if (a) {
|
|
2432
2432
|
const [i, s] = a;
|
|
2433
2433
|
e.tableCellAlignToStyle && i === "align" && typeof s == "string" && xg.has(t.tagName) ? r = s : n[i] = s;
|
|
@@ -2442,7 +2442,7 @@ function Rg(e, t) {
|
|
|
2442
2442
|
}
|
|
2443
2443
|
return n;
|
|
2444
2444
|
}
|
|
2445
|
-
function
|
|
2445
|
+
function Dg(e, t) {
|
|
2446
2446
|
const n = {};
|
|
2447
2447
|
for (const r of t.attributes)
|
|
2448
2448
|
if (r.type === "mdxJsxExpressionAttribute")
|
|
@@ -2493,7 +2493,7 @@ function nu(e, t) {
|
|
|
2493
2493
|
}
|
|
2494
2494
|
return n;
|
|
2495
2495
|
}
|
|
2496
|
-
function
|
|
2496
|
+
function Lg(e, t, n) {
|
|
2497
2497
|
const r = Ei(e.schema, t);
|
|
2498
2498
|
if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
|
|
2499
2499
|
if (Array.isArray(n) && (n = r.commaSeparated ? Mh(n) : Uh(n)), r.property === "style") {
|
|
@@ -2696,7 +2696,7 @@ function Kh(e, t) {
|
|
|
2696
2696
|
function Ur(e) {
|
|
2697
2697
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
2698
2698
|
}
|
|
2699
|
-
const Zt = $n(/[A-Za-z]/),
|
|
2699
|
+
const Zt = $n(/[A-Za-z]/), Dt = $n(/[\dA-Za-z]/), Yg = $n(/[#-'*+\--9=?A-Z^-~]/);
|
|
2700
2700
|
function io(e) {
|
|
2701
2701
|
return (
|
|
2702
2702
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -2727,7 +2727,7 @@ function Xr(e) {
|
|
|
2727
2727
|
for (; ++n < e.length; ) {
|
|
2728
2728
|
const a = e.charCodeAt(n);
|
|
2729
2729
|
let i = "";
|
|
2730
|
-
if (a === 37 &&
|
|
2730
|
+
if (a === 37 && Dt(e.charCodeAt(n + 1)) && Dt(e.charCodeAt(n + 2)))
|
|
2731
2731
|
l = 2;
|
|
2732
2732
|
else if (a < 128)
|
|
2733
2733
|
/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a)) || (i = String.fromCharCode(a));
|
|
@@ -2740,7 +2740,7 @@ function Xr(e) {
|
|
|
2740
2740
|
}
|
|
2741
2741
|
return t.join("") + e.slice(r);
|
|
2742
2742
|
}
|
|
2743
|
-
function
|
|
2743
|
+
function De(e, t, n, r) {
|
|
2744
2744
|
const l = r ? r - 1 : Number.POSITIVE_INFINITY;
|
|
2745
2745
|
let a = 0;
|
|
2746
2746
|
return i;
|
|
@@ -2763,7 +2763,7 @@ function Qg(e) {
|
|
|
2763
2763
|
e.consume(s);
|
|
2764
2764
|
return;
|
|
2765
2765
|
}
|
|
2766
|
-
return e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"),
|
|
2766
|
+
return e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), De(e, t, "linePrefix");
|
|
2767
2767
|
}
|
|
2768
2768
|
function l(s) {
|
|
2769
2769
|
return e.enter("paragraph"), a(s);
|
|
@@ -2901,7 +2901,7 @@ function Jg(e) {
|
|
|
2901
2901
|
}
|
|
2902
2902
|
}
|
|
2903
2903
|
function Zg(e, t, n) {
|
|
2904
|
-
return
|
|
2904
|
+
return De(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
2905
2905
|
}
|
|
2906
2906
|
function Wc(e) {
|
|
2907
2907
|
if (e === null || Ye(e) || Hl(e))
|
|
@@ -3009,10 +3009,10 @@ function rv(e, t, n) {
|
|
|
3009
3009
|
return Zt(f) ? (e.consume(f), i) : f === 64 ? n(f) : u(f);
|
|
3010
3010
|
}
|
|
3011
3011
|
function i(f) {
|
|
3012
|
-
return f === 43 || f === 45 || f === 46 ||
|
|
3012
|
+
return f === 43 || f === 45 || f === 46 || Dt(f) ? (r = 1, s(f)) : u(f);
|
|
3013
3013
|
}
|
|
3014
3014
|
function s(f) {
|
|
3015
|
-
return f === 58 ? (e.consume(f), r = 0, o) : (f === 43 || f === 45 || f === 46 ||
|
|
3015
|
+
return f === 58 ? (e.consume(f), r = 0, o) : (f === 43 || f === 45 || f === 46 || Dt(f)) && r++ < 32 ? (e.consume(f), s) : (r = 0, u(f));
|
|
3016
3016
|
}
|
|
3017
3017
|
function o(f) {
|
|
3018
3018
|
return f === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : f === null || f === 32 || f === 60 || io(f) ? n(f) : (e.consume(f), o);
|
|
@@ -3021,13 +3021,13 @@ function rv(e, t, n) {
|
|
|
3021
3021
|
return f === 64 ? (e.consume(f), c) : Yg(f) ? (e.consume(f), u) : n(f);
|
|
3022
3022
|
}
|
|
3023
3023
|
function c(f) {
|
|
3024
|
-
return
|
|
3024
|
+
return Dt(f) ? d(f) : n(f);
|
|
3025
3025
|
}
|
|
3026
3026
|
function d(f) {
|
|
3027
3027
|
return f === 46 ? (e.consume(f), r = 0, c) : f === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : h(f);
|
|
3028
3028
|
}
|
|
3029
3029
|
function h(f) {
|
|
3030
|
-
if ((f === 45 ||
|
|
3030
|
+
if ((f === 45 || Dt(f)) && r++ < 63) {
|
|
3031
3031
|
const m = f === 45 ? h : d;
|
|
3032
3032
|
return e.consume(f), m;
|
|
3033
3033
|
}
|
|
@@ -3041,7 +3041,7 @@ const Ci = {
|
|
|
3041
3041
|
function lv(e, t, n) {
|
|
3042
3042
|
return r;
|
|
3043
3043
|
function r(a) {
|
|
3044
|
-
return Re(a) ?
|
|
3044
|
+
return Re(a) ? De(e, l, "linePrefix")(a) : l(a);
|
|
3045
3045
|
}
|
|
3046
3046
|
function l(a) {
|
|
3047
3047
|
return a === null || fe(a) ? t(a) : n(a);
|
|
@@ -3075,7 +3075,7 @@ function iv(e, t, n) {
|
|
|
3075
3075
|
const r = this;
|
|
3076
3076
|
return l;
|
|
3077
3077
|
function l(i) {
|
|
3078
|
-
return Re(i) ?
|
|
3078
|
+
return Re(i) ? De(e, a, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(i) : a(i);
|
|
3079
3079
|
}
|
|
3080
3080
|
function a(i) {
|
|
3081
3081
|
return e.attempt(Gh, t, n)(i);
|
|
@@ -3109,7 +3109,7 @@ function uv(e, t, n) {
|
|
|
3109
3109
|
return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), o;
|
|
3110
3110
|
}
|
|
3111
3111
|
function o(d) {
|
|
3112
|
-
return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, i =
|
|
3112
|
+
return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, i = Dt, c(d));
|
|
3113
3113
|
}
|
|
3114
3114
|
function u(d) {
|
|
3115
3115
|
return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, i = jg, c) : (e.enter("characterReferenceValue"), a = 7, i = so, c(d));
|
|
@@ -3117,7 +3117,7 @@ function uv(e, t, n) {
|
|
|
3117
3117
|
function c(d) {
|
|
3118
3118
|
if (d === 59 && l) {
|
|
3119
3119
|
const h = e.exit("characterReferenceValue");
|
|
3120
|
-
return i ===
|
|
3120
|
+
return i === Dt && !Bl(r.sliceSerialize(h)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
|
3121
3121
|
}
|
|
3122
3122
|
return i(d) && l++ < a ? (e.consume(d), c) : n(d);
|
|
3123
3123
|
}
|
|
@@ -3145,7 +3145,7 @@ function cv(e, t, n) {
|
|
|
3145
3145
|
return a = w && w[1].type === "linePrefix" ? w[2].sliceSerialize(w[1], !0).length : 0, s = x, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(x);
|
|
3146
3146
|
}
|
|
3147
3147
|
function c(x) {
|
|
3148
|
-
return x === s ? (i++, e.consume(x), c) : i < 3 ? n(x) : (e.exit("codeFencedFenceSequence"), Re(x) ?
|
|
3148
|
+
return x === s ? (i++, e.consume(x), c) : i < 3 ? n(x) : (e.exit("codeFencedFenceSequence"), Re(x) ? De(e, d, "whitespace")(x) : d(x));
|
|
3149
3149
|
}
|
|
3150
3150
|
function d(x) {
|
|
3151
3151
|
return x === null || fe(x) ? (e.exit("codeFencedFence"), r.interrupt ? t(x) : e.check(jc, g, I)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
@@ -3153,7 +3153,7 @@ function cv(e, t, n) {
|
|
|
3153
3153
|
}), h(x));
|
|
3154
3154
|
}
|
|
3155
3155
|
function h(x) {
|
|
3156
|
-
return x === null || fe(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(x)) : Re(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"),
|
|
3156
|
+
return x === null || fe(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(x)) : Re(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), De(e, f, "whitespace")(x)) : x === 96 && x === s ? n(x) : (e.consume(x), h);
|
|
3157
3157
|
}
|
|
3158
3158
|
function f(x) {
|
|
3159
3159
|
return x === null || fe(x) ? d(x) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
@@ -3170,7 +3170,7 @@ function cv(e, t, n) {
|
|
|
3170
3170
|
return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), y;
|
|
3171
3171
|
}
|
|
3172
3172
|
function y(x) {
|
|
3173
|
-
return a > 0 && Re(x) ?
|
|
3173
|
+
return a > 0 && Re(x) ? De(e, A, "linePrefix", a + 1)(x) : A(x);
|
|
3174
3174
|
}
|
|
3175
3175
|
function A(x) {
|
|
3176
3176
|
return x === null || fe(x) ? e.check(jc, g, I)(x) : (e.enter("codeFlowValue"), C(x));
|
|
@@ -3188,13 +3188,13 @@ function cv(e, t, n) {
|
|
|
3188
3188
|
return x.enter("lineEnding"), x.consume(E), x.exit("lineEnding"), _;
|
|
3189
3189
|
}
|
|
3190
3190
|
function _(E) {
|
|
3191
|
-
return x.enter("codeFencedFence"), Re(E) ?
|
|
3191
|
+
return x.enter("codeFencedFence"), Re(E) ? De(x, F, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(E) : F(E);
|
|
3192
3192
|
}
|
|
3193
3193
|
function F(E) {
|
|
3194
3194
|
return E === s ? (x.enter("codeFencedFenceSequence"), V(E)) : N(E);
|
|
3195
3195
|
}
|
|
3196
3196
|
function V(E) {
|
|
3197
|
-
return E === s ? (k++, x.consume(E), V) : k >= i ? (x.exit("codeFencedFenceSequence"), Re(E) ?
|
|
3197
|
+
return E === s ? (k++, x.consume(E), V) : k >= i ? (x.exit("codeFencedFenceSequence"), Re(E) ? De(x, P, "whitespace")(E) : P(E)) : N(E);
|
|
3198
3198
|
}
|
|
3199
3199
|
function P(E) {
|
|
3200
3200
|
return E === null || fe(E) ? (x.exit("codeFencedFence"), w(E)) : N(E);
|
|
@@ -3222,7 +3222,7 @@ function hv(e, t, n) {
|
|
|
3222
3222
|
const r = this;
|
|
3223
3223
|
return l;
|
|
3224
3224
|
function l(u) {
|
|
3225
|
-
return e.enter("codeIndented"),
|
|
3225
|
+
return e.enter("codeIndented"), De(e, a, "linePrefix", 5)(u);
|
|
3226
3226
|
}
|
|
3227
3227
|
function a(u) {
|
|
3228
3228
|
const c = r.events[r.events.length - 1];
|
|
@@ -3242,7 +3242,7 @@ function pv(e, t, n) {
|
|
|
3242
3242
|
const r = this;
|
|
3243
3243
|
return l;
|
|
3244
3244
|
function l(i) {
|
|
3245
|
-
return r.parser.lazy[r.now().line] ? n(i) : fe(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), l) :
|
|
3245
|
+
return r.parser.lazy[r.now().line] ? n(i) : fe(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), l) : De(e, a, "linePrefix", 5)(i);
|
|
3246
3246
|
}
|
|
3247
3247
|
function a(i) {
|
|
3248
3248
|
const s = r.events[r.events.length - 1];
|
|
@@ -3546,7 +3546,7 @@ function kv(e, t, n) {
|
|
|
3546
3546
|
const r = this;
|
|
3547
3547
|
return l;
|
|
3548
3548
|
function l(i) {
|
|
3549
|
-
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"),
|
|
3549
|
+
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), De(e, a, "linePrefix");
|
|
3550
3550
|
}
|
|
3551
3551
|
function a(i) {
|
|
3552
3552
|
if (i === null || fe(i))
|
|
@@ -3616,7 +3616,7 @@ function tp(e, t, n, r, l, a) {
|
|
|
3616
3616
|
return h === i ? (e.enter(l), e.consume(h), e.exit(l), e.exit(r), t) : (e.enter(a), u(h));
|
|
3617
3617
|
}
|
|
3618
3618
|
function u(h) {
|
|
3619
|
-
return h === i ? (e.exit(a), o(i)) : h === null ? n(h) : fe(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"),
|
|
3619
|
+
return h === i ? (e.exit(a), o(i)) : h === null ? n(h) : fe(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), De(e, u, "linePrefix")) : (e.enter("chunkString", {
|
|
3620
3620
|
contentType: "string"
|
|
3621
3621
|
}), c(h));
|
|
3622
3622
|
}
|
|
@@ -3631,7 +3631,7 @@ function dn(e, t) {
|
|
|
3631
3631
|
let n;
|
|
3632
3632
|
return r;
|
|
3633
3633
|
function r(l) {
|
|
3634
|
-
return fe(l) ? (e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), n = !0, r) : Re(l) ?
|
|
3634
|
+
return fe(l) ? (e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), n = !0, r) : Re(l) ? De(e, r, n ? "linePrefix" : "lineSuffix")(l) : t(l);
|
|
3635
3635
|
}
|
|
3636
3636
|
}
|
|
3637
3637
|
const Av = {
|
|
@@ -3683,7 +3683,7 @@ function wv(e, t, n) {
|
|
|
3683
3683
|
return e.attempt(Nv, d, d)(f);
|
|
3684
3684
|
}
|
|
3685
3685
|
function d(f) {
|
|
3686
|
-
return Re(f) ?
|
|
3686
|
+
return Re(f) ? De(e, h, "whitespace")(f) : h(f);
|
|
3687
3687
|
}
|
|
3688
3688
|
function h(f) {
|
|
3689
3689
|
return f === null || fe(f) ? (e.exit("definition"), r.parser.defined.push(l), t(f)) : n(f);
|
|
@@ -3698,7 +3698,7 @@ function Iv(e, t, n) {
|
|
|
3698
3698
|
return tp(e, a, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(s);
|
|
3699
3699
|
}
|
|
3700
3700
|
function a(s) {
|
|
3701
|
-
return Re(s) ?
|
|
3701
|
+
return Re(s) ? De(e, i, "whitespace")(s) : i(s);
|
|
3702
3702
|
}
|
|
3703
3703
|
function i(s) {
|
|
3704
3704
|
return s === null || fe(s) ? t(s) : n(s);
|
|
@@ -3720,7 +3720,7 @@ function Ov(e, t, n) {
|
|
|
3720
3720
|
const Mv = {
|
|
3721
3721
|
name: "headingAtx",
|
|
3722
3722
|
resolve: Rv,
|
|
3723
|
-
tokenize:
|
|
3723
|
+
tokenize: Dv
|
|
3724
3724
|
};
|
|
3725
3725
|
function Rv(e, t) {
|
|
3726
3726
|
let n = e.length - 2, r = 3, l, a;
|
|
@@ -3735,7 +3735,7 @@ function Rv(e, t) {
|
|
|
3735
3735
|
contentType: "text"
|
|
3736
3736
|
}, tn(e, r, n - r + 1, [["enter", l, t], ["enter", a, t], ["exit", a, t], ["exit", l, t]])), e;
|
|
3737
3737
|
}
|
|
3738
|
-
function
|
|
3738
|
+
function Dv(e, t, n) {
|
|
3739
3739
|
let r = 0;
|
|
3740
3740
|
return l;
|
|
3741
3741
|
function l(c) {
|
|
@@ -3748,7 +3748,7 @@ function Lv(e, t, n) {
|
|
|
3748
3748
|
return c === 35 && r++ < 6 ? (e.consume(c), i) : c === null || Ye(c) ? (e.exit("atxHeadingSequence"), s(c)) : n(c);
|
|
3749
3749
|
}
|
|
3750
3750
|
function s(c) {
|
|
3751
|
-
return c === 35 ? (e.enter("atxHeadingSequence"), o(c)) : c === null || fe(c) ? (e.exit("atxHeading"), t(c)) : Re(c) ?
|
|
3751
|
+
return c === 35 ? (e.enter("atxHeadingSequence"), o(c)) : c === null || fe(c) ? (e.exit("atxHeading"), t(c)) : Re(c) ? De(e, s, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
|
|
3752
3752
|
}
|
|
3753
3753
|
function o(c) {
|
|
3754
3754
|
return c === 35 ? (e.consume(c), o) : (e.exit("atxHeadingSequence"), s(c));
|
|
@@ -3757,7 +3757,7 @@ function Lv(e, t, n) {
|
|
|
3757
3757
|
return c === null || c === 35 || Ye(c) ? (e.exit("atxHeadingText"), s(c)) : (e.consume(c), u);
|
|
3758
3758
|
}
|
|
3759
3759
|
}
|
|
3760
|
-
const
|
|
3760
|
+
const Lv = [
|
|
3761
3761
|
"address",
|
|
3762
3762
|
"article",
|
|
3763
3763
|
"aside",
|
|
@@ -3842,104 +3842,104 @@ function Uv(e, t, n) {
|
|
|
3842
3842
|
const r = this;
|
|
3843
3843
|
let l, a, i, s, o;
|
|
3844
3844
|
return u;
|
|
3845
|
-
function u(
|
|
3846
|
-
return c(
|
|
3845
|
+
function u(D) {
|
|
3846
|
+
return c(D);
|
|
3847
3847
|
}
|
|
3848
|
-
function c(
|
|
3849
|
-
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(
|
|
3848
|
+
function c(D) {
|
|
3849
|
+
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(D), d;
|
|
3850
3850
|
}
|
|
3851
|
-
function d(
|
|
3852
|
-
return
|
|
3851
|
+
function d(D) {
|
|
3852
|
+
return D === 33 ? (e.consume(D), h) : D === 47 ? (e.consume(D), a = !0, g) : D === 63 ? (e.consume(D), l = 3, r.interrupt ? t : T) : Zt(D) ? (e.consume(D), i = String.fromCharCode(D), b) : n(D);
|
|
3853
3853
|
}
|
|
3854
|
-
function h(
|
|
3855
|
-
return
|
|
3854
|
+
function h(D) {
|
|
3855
|
+
return D === 45 ? (e.consume(D), l = 2, f) : D === 91 ? (e.consume(D), l = 5, s = 0, m) : Zt(D) ? (e.consume(D), l = 4, r.interrupt ? t : T) : n(D);
|
|
3856
3856
|
}
|
|
3857
|
-
function f(
|
|
3858
|
-
return
|
|
3857
|
+
function f(D) {
|
|
3858
|
+
return D === 45 ? (e.consume(D), r.interrupt ? t : T) : n(D);
|
|
3859
3859
|
}
|
|
3860
|
-
function m(
|
|
3860
|
+
function m(D) {
|
|
3861
3861
|
const pe = "CDATA[";
|
|
3862
|
-
return
|
|
3862
|
+
return D === pe.charCodeAt(s++) ? (e.consume(D), s === pe.length ? r.interrupt ? t : F : m) : n(D);
|
|
3863
3863
|
}
|
|
3864
|
-
function g(
|
|
3865
|
-
return Zt(
|
|
3864
|
+
function g(D) {
|
|
3865
|
+
return Zt(D) ? (e.consume(D), i = String.fromCharCode(D), b) : n(D);
|
|
3866
3866
|
}
|
|
3867
|
-
function b(
|
|
3868
|
-
if (
|
|
3869
|
-
const pe =
|
|
3870
|
-
return !pe && !a && Gc.includes(ye) ? (l = 1, r.interrupt ? t(
|
|
3867
|
+
function b(D) {
|
|
3868
|
+
if (D === null || D === 47 || D === 62 || Ye(D)) {
|
|
3869
|
+
const pe = D === 47, ye = i.toLowerCase();
|
|
3870
|
+
return !pe && !a && Gc.includes(ye) ? (l = 1, r.interrupt ? t(D) : F(D)) : Lv.includes(i.toLowerCase()) ? (l = 6, pe ? (e.consume(D), y) : r.interrupt ? t(D) : F(D)) : (l = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(D) : a ? A(D) : C(D));
|
|
3871
3871
|
}
|
|
3872
|
-
return
|
|
3872
|
+
return D === 45 || Dt(D) ? (e.consume(D), i += String.fromCharCode(D), b) : n(D);
|
|
3873
3873
|
}
|
|
3874
|
-
function y(
|
|
3875
|
-
return
|
|
3874
|
+
function y(D) {
|
|
3875
|
+
return D === 62 ? (e.consume(D), r.interrupt ? t : F) : n(D);
|
|
3876
3876
|
}
|
|
3877
|
-
function A(
|
|
3878
|
-
return Re(
|
|
3877
|
+
function A(D) {
|
|
3878
|
+
return Re(D) ? (e.consume(D), A) : R(D);
|
|
3879
3879
|
}
|
|
3880
|
-
function C(
|
|
3881
|
-
return
|
|
3880
|
+
function C(D) {
|
|
3881
|
+
return D === 47 ? (e.consume(D), R) : D === 58 || D === 95 || Zt(D) ? (e.consume(D), I) : Re(D) ? (e.consume(D), C) : R(D);
|
|
3882
3882
|
}
|
|
3883
|
-
function I(
|
|
3884
|
-
return
|
|
3883
|
+
function I(D) {
|
|
3884
|
+
return D === 45 || D === 46 || D === 58 || D === 95 || Dt(D) ? (e.consume(D), I) : M(D);
|
|
3885
3885
|
}
|
|
3886
|
-
function M(
|
|
3887
|
-
return
|
|
3886
|
+
function M(D) {
|
|
3887
|
+
return D === 61 ? (e.consume(D), x) : Re(D) ? (e.consume(D), M) : C(D);
|
|
3888
3888
|
}
|
|
3889
|
-
function x(
|
|
3890
|
-
return
|
|
3889
|
+
function x(D) {
|
|
3890
|
+
return D === null || D === 60 || D === 61 || D === 62 || D === 96 ? n(D) : D === 34 || D === 39 ? (e.consume(D), o = D, w) : Re(D) ? (e.consume(D), x) : N(D);
|
|
3891
3891
|
}
|
|
3892
|
-
function w(
|
|
3893
|
-
return
|
|
3892
|
+
function w(D) {
|
|
3893
|
+
return D === o ? (e.consume(D), o = null, k) : D === null || fe(D) ? n(D) : (e.consume(D), w);
|
|
3894
3894
|
}
|
|
3895
|
-
function N(
|
|
3896
|
-
return
|
|
3895
|
+
function N(D) {
|
|
3896
|
+
return D === null || D === 34 || D === 39 || D === 47 || D === 60 || D === 61 || D === 62 || D === 96 || Ye(D) ? M(D) : (e.consume(D), N);
|
|
3897
3897
|
}
|
|
3898
|
-
function k(
|
|
3899
|
-
return
|
|
3898
|
+
function k(D) {
|
|
3899
|
+
return D === 47 || D === 62 || Re(D) ? C(D) : n(D);
|
|
3900
3900
|
}
|
|
3901
|
-
function R(
|
|
3902
|
-
return
|
|
3901
|
+
function R(D) {
|
|
3902
|
+
return D === 62 ? (e.consume(D), _) : n(D);
|
|
3903
3903
|
}
|
|
3904
|
-
function _(
|
|
3905
|
-
return
|
|
3904
|
+
function _(D) {
|
|
3905
|
+
return D === null || fe(D) ? F(D) : Re(D) ? (e.consume(D), _) : n(D);
|
|
3906
3906
|
}
|
|
3907
|
-
function F(
|
|
3908
|
-
return
|
|
3907
|
+
function F(D) {
|
|
3908
|
+
return D === 45 && l === 2 ? (e.consume(D), B) : D === 60 && l === 1 ? (e.consume(D), U) : D === 62 && l === 4 ? (e.consume(D), ne) : D === 63 && l === 3 ? (e.consume(D), T) : D === 93 && l === 5 ? (e.consume(D), G) : fe(D) && (l === 6 || l === 7) ? (e.exit("htmlFlowData"), e.check(Bv, ie, V)(D)) : D === null || fe(D) ? (e.exit("htmlFlowData"), V(D)) : (e.consume(D), F);
|
|
3909
3909
|
}
|
|
3910
|
-
function V(
|
|
3911
|
-
return e.check(Fv, P, ie)(
|
|
3910
|
+
function V(D) {
|
|
3911
|
+
return e.check(Fv, P, ie)(D);
|
|
3912
3912
|
}
|
|
3913
|
-
function P(
|
|
3914
|
-
return e.enter("lineEnding"), e.consume(
|
|
3913
|
+
function P(D) {
|
|
3914
|
+
return e.enter("lineEnding"), e.consume(D), e.exit("lineEnding"), E;
|
|
3915
3915
|
}
|
|
3916
|
-
function E(
|
|
3917
|
-
return
|
|
3916
|
+
function E(D) {
|
|
3917
|
+
return D === null || fe(D) ? V(D) : (e.enter("htmlFlowData"), F(D));
|
|
3918
3918
|
}
|
|
3919
|
-
function B(
|
|
3920
|
-
return
|
|
3919
|
+
function B(D) {
|
|
3920
|
+
return D === 45 ? (e.consume(D), T) : F(D);
|
|
3921
3921
|
}
|
|
3922
|
-
function U(
|
|
3923
|
-
return
|
|
3922
|
+
function U(D) {
|
|
3923
|
+
return D === 47 ? (e.consume(D), i = "", q) : F(D);
|
|
3924
3924
|
}
|
|
3925
|
-
function q(
|
|
3926
|
-
if (
|
|
3925
|
+
function q(D) {
|
|
3926
|
+
if (D === 62) {
|
|
3927
3927
|
const pe = i.toLowerCase();
|
|
3928
|
-
return Gc.includes(pe) ? (e.consume(
|
|
3928
|
+
return Gc.includes(pe) ? (e.consume(D), ne) : F(D);
|
|
3929
3929
|
}
|
|
3930
|
-
return Zt(
|
|
3930
|
+
return Zt(D) && i.length < 8 ? (e.consume(D), i += String.fromCharCode(D), q) : F(D);
|
|
3931
3931
|
}
|
|
3932
|
-
function G(
|
|
3933
|
-
return
|
|
3932
|
+
function G(D) {
|
|
3933
|
+
return D === 93 ? (e.consume(D), T) : F(D);
|
|
3934
3934
|
}
|
|
3935
|
-
function T(
|
|
3936
|
-
return
|
|
3935
|
+
function T(D) {
|
|
3936
|
+
return D === 62 ? (e.consume(D), ne) : D === 45 && l === 2 ? (e.consume(D), T) : F(D);
|
|
3937
3937
|
}
|
|
3938
|
-
function ne(
|
|
3939
|
-
return
|
|
3938
|
+
function ne(D) {
|
|
3939
|
+
return D === null || fe(D) ? (e.exit("htmlFlowData"), ie(D)) : (e.consume(D), ne);
|
|
3940
3940
|
}
|
|
3941
|
-
function ie(
|
|
3942
|
-
return e.exit("htmlFlow"), t(
|
|
3941
|
+
function ie(D) {
|
|
3942
|
+
return e.exit("htmlFlow"), t(D);
|
|
3943
3943
|
}
|
|
3944
3944
|
}
|
|
3945
3945
|
function zv(e, t, n) {
|
|
@@ -4013,19 +4013,19 @@ function qv(e, t, n) {
|
|
|
4013
4013
|
return Zt(T) ? (e.consume(T), x) : n(T);
|
|
4014
4014
|
}
|
|
4015
4015
|
function x(T) {
|
|
4016
|
-
return T === 45 ||
|
|
4016
|
+
return T === 45 || Dt(T) ? (e.consume(T), x) : w(T);
|
|
4017
4017
|
}
|
|
4018
4018
|
function w(T) {
|
|
4019
4019
|
return fe(T) ? (i = w, U(T)) : Re(T) ? (e.consume(T), w) : B(T);
|
|
4020
4020
|
}
|
|
4021
4021
|
function N(T) {
|
|
4022
|
-
return T === 45 ||
|
|
4022
|
+
return T === 45 || Dt(T) ? (e.consume(T), N) : T === 47 || T === 62 || Ye(T) ? k(T) : n(T);
|
|
4023
4023
|
}
|
|
4024
4024
|
function k(T) {
|
|
4025
4025
|
return T === 47 ? (e.consume(T), B) : T === 58 || T === 95 || Zt(T) ? (e.consume(T), R) : fe(T) ? (i = k, U(T)) : Re(T) ? (e.consume(T), k) : B(T);
|
|
4026
4026
|
}
|
|
4027
4027
|
function R(T) {
|
|
4028
|
-
return T === 45 || T === 46 || T === 58 || T === 95 ||
|
|
4028
|
+
return T === 45 || T === 46 || T === 58 || T === 95 || Dt(T) ? (e.consume(T), R) : _(T);
|
|
4029
4029
|
}
|
|
4030
4030
|
function _(T) {
|
|
4031
4031
|
return T === 61 ? (e.consume(T), F) : fe(T) ? (i = _, U(T)) : Re(T) ? (e.consume(T), _) : k(T);
|
|
@@ -4049,7 +4049,7 @@ function qv(e, t, n) {
|
|
|
4049
4049
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(T), e.exit("lineEnding"), q;
|
|
4050
4050
|
}
|
|
4051
4051
|
function q(T) {
|
|
4052
|
-
return Re(T) ?
|
|
4052
|
+
return Re(T) ? De(e, G, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(T) : G(T);
|
|
4053
4053
|
}
|
|
4054
4054
|
function G(T) {
|
|
4055
4055
|
return e.enter("htmlTextData"), i(T);
|
|
@@ -4236,7 +4236,7 @@ const fs = {
|
|
|
4236
4236
|
function l2(e, t) {
|
|
4237
4237
|
return n;
|
|
4238
4238
|
function n(r) {
|
|
4239
|
-
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"),
|
|
4239
|
+
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), De(e, t, "linePrefix");
|
|
4240
4240
|
}
|
|
4241
4241
|
}
|
|
4242
4242
|
const za = {
|
|
@@ -4256,7 +4256,7 @@ function a2(e, t, n) {
|
|
|
4256
4256
|
return u === l ? (e.enter("thematicBreakSequence"), o(u)) : r >= 3 && (u === null || fe(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
|
|
4257
4257
|
}
|
|
4258
4258
|
function o(u) {
|
|
4259
|
-
return u === l ? (e.consume(u), r++, o) : (e.exit("thematicBreakSequence"), Re(u) ?
|
|
4259
|
+
return u === l ? (e.consume(u), r++, o) : (e.exit("thematicBreakSequence"), Re(u) ? De(e, s, "whitespace")(u) : s(u));
|
|
4260
4260
|
}
|
|
4261
4261
|
}
|
|
4262
4262
|
const Nt = {
|
|
@@ -4314,18 +4314,18 @@ function u2(e, t, n) {
|
|
|
4314
4314
|
const r = this;
|
|
4315
4315
|
return r.containerState._closeFlow = void 0, e.check(Ci, l, a);
|
|
4316
4316
|
function l(s) {
|
|
4317
|
-
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine,
|
|
4317
|
+
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, De(e, t, "listItemIndent", r.containerState.size + 1)(s);
|
|
4318
4318
|
}
|
|
4319
4319
|
function a(s) {
|
|
4320
4320
|
return r.containerState.furtherBlankLines || !Re(s) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, i(s)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(s2, t, i)(s));
|
|
4321
4321
|
}
|
|
4322
4322
|
function i(s) {
|
|
4323
|
-
return r.containerState._closeFlow = !0, r.interrupt = void 0,
|
|
4323
|
+
return r.containerState._closeFlow = !0, r.interrupt = void 0, De(e, e.attempt(Nt, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s);
|
|
4324
4324
|
}
|
|
4325
4325
|
}
|
|
4326
4326
|
function c2(e, t, n) {
|
|
4327
4327
|
const r = this;
|
|
4328
|
-
return
|
|
4328
|
+
return De(e, l, "listItemIndent", r.containerState.size + 1);
|
|
4329
4329
|
function l(a) {
|
|
4330
4330
|
const i = r.events[r.events.length - 1];
|
|
4331
4331
|
return i && i[1].type === "listItemIndent" && i[2].sliceSerialize(i[1], !0).length === r.containerState.size ? t(a) : n(a);
|
|
@@ -4336,7 +4336,7 @@ function d2(e) {
|
|
|
4336
4336
|
}
|
|
4337
4337
|
function f2(e, t, n) {
|
|
4338
4338
|
const r = this;
|
|
4339
|
-
return
|
|
4339
|
+
return De(e, l, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
4340
4340
|
function l(a) {
|
|
4341
4341
|
const i = r.events[r.events.length - 1];
|
|
4342
4342
|
return !Re(a) && i && i[1].type === "listItemPrefixWhitespace" ? t(a) : n(a);
|
|
@@ -4388,7 +4388,7 @@ function p2(e, t, n) {
|
|
|
4388
4388
|
return e.enter("setextHeadingLineSequence"), s(u);
|
|
4389
4389
|
}
|
|
4390
4390
|
function s(u) {
|
|
4391
|
-
return u === l ? (e.consume(u), s) : (e.exit("setextHeadingLineSequence"), Re(u) ?
|
|
4391
|
+
return u === l ? (e.consume(u), s) : (e.exit("setextHeadingLineSequence"), Re(u) ? De(e, o, "lineSuffix")(u) : o(u));
|
|
4392
4392
|
}
|
|
4393
4393
|
function o(u) {
|
|
4394
4394
|
return u === null || fe(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
|
|
@@ -4403,7 +4403,7 @@ function b2(e) {
|
|
|
4403
4403
|
Ci,
|
|
4404
4404
|
r,
|
|
4405
4405
|
// Try to parse initial flow (essentially, only code).
|
|
4406
|
-
e.attempt(this.parser.constructs.flowInitial, l,
|
|
4406
|
+
e.attempt(this.parser.constructs.flowInitial, l, De(e, e.attempt(this.parser.constructs.flow, l, e.attempt(Tv, l)), "linePrefix"))
|
|
4407
4407
|
);
|
|
4408
4408
|
return n;
|
|
4409
4409
|
function r(a) {
|
|
@@ -4687,19 +4687,19 @@ function O2(e, t, n) {
|
|
|
4687
4687
|
function ne(Ce) {
|
|
4688
4688
|
return de;
|
|
4689
4689
|
function de(Ie) {
|
|
4690
|
-
const
|
|
4690
|
+
const Le = Ie !== null && Ce[Ie], xe = Ie !== null && Ce.null, et = [
|
|
4691
4691
|
// To do: add more extension tests.
|
|
4692
4692
|
/* c8 ignore next 2 */
|
|
4693
|
-
...Array.isArray(
|
|
4693
|
+
...Array.isArray(Le) ? Le : Le ? [Le] : [],
|
|
4694
4694
|
...Array.isArray(xe) ? xe : xe ? [xe] : []
|
|
4695
4695
|
];
|
|
4696
4696
|
return ie(et)(Ie);
|
|
4697
4697
|
}
|
|
4698
4698
|
}
|
|
4699
4699
|
function ie(Ce) {
|
|
4700
|
-
return U = Ce, q = 0, Ce.length === 0 ? B :
|
|
4700
|
+
return U = Ce, q = 0, Ce.length === 0 ? B : D(Ce[q]);
|
|
4701
4701
|
}
|
|
4702
|
-
function
|
|
4702
|
+
function D(Ce) {
|
|
4703
4703
|
return de;
|
|
4704
4704
|
function de(Ie) {
|
|
4705
4705
|
return T = k(), G = Ce, Ce.partial || (u.currentConstruct = Ce), Ce.name && u.parser.constructs.disable.null.includes(Ce.name) ? ye() : Ce.tokenize.call(
|
|
@@ -4717,7 +4717,7 @@ function O2(e, t, n) {
|
|
|
4717
4717
|
return _(G, T), E;
|
|
4718
4718
|
}
|
|
4719
4719
|
function ye(Ce) {
|
|
4720
|
-
return T.restore(), ++q < U.length ?
|
|
4720
|
+
return T.restore(), ++q < U.length ? D(U[q]) : B;
|
|
4721
4721
|
}
|
|
4722
4722
|
}
|
|
4723
4723
|
}
|
|
@@ -4792,7 +4792,7 @@ function R2(e, t) {
|
|
|
4792
4792
|
}
|
|
4793
4793
|
return r.join("");
|
|
4794
4794
|
}
|
|
4795
|
-
function
|
|
4795
|
+
function D2(e) {
|
|
4796
4796
|
const r = {
|
|
4797
4797
|
constructs: (
|
|
4798
4798
|
/** @type {FullNormalizedExtension} */
|
|
@@ -4814,7 +4814,7 @@ function L2(e) {
|
|
|
4814
4814
|
}
|
|
4815
4815
|
}
|
|
4816
4816
|
}
|
|
4817
|
-
function
|
|
4817
|
+
function L2(e) {
|
|
4818
4818
|
for (; !Jh(e); )
|
|
4819
4819
|
;
|
|
4820
4820
|
return e;
|
|
@@ -4870,7 +4870,7 @@ function H2(e, t, n) {
|
|
|
4870
4870
|
}
|
|
4871
4871
|
const lp = {}.hasOwnProperty;
|
|
4872
4872
|
function U2(e, t, n) {
|
|
4873
|
-
return typeof t != "string" && (n = t, t = void 0), z2(n)(D2(
|
|
4873
|
+
return typeof t != "string" && (n = t, t = void 0), z2(n)(L2(D2(n).document().write(P2()(e, t, !0))));
|
|
4874
4874
|
}
|
|
4875
4875
|
function z2(e) {
|
|
4876
4876
|
const t = {
|
|
@@ -4911,7 +4911,7 @@ function z2(e) {
|
|
|
4911
4911
|
listOrdered: a(qe, d),
|
|
4912
4912
|
listUnordered: a(qe),
|
|
4913
4913
|
paragraph: a(an),
|
|
4914
|
-
reference:
|
|
4914
|
+
reference: D,
|
|
4915
4915
|
referenceString: i,
|
|
4916
4916
|
resourceDestinationString: i,
|
|
4917
4917
|
resourceTitleString: i,
|
|
@@ -4923,7 +4923,7 @@ function z2(e) {
|
|
|
4923
4923
|
atxHeading: o(),
|
|
4924
4924
|
atxHeadingSequence: M,
|
|
4925
4925
|
autolink: o(),
|
|
4926
|
-
autolinkEmail:
|
|
4926
|
+
autolinkEmail: Le,
|
|
4927
4927
|
autolinkProtocol: Ie,
|
|
4928
4928
|
blockQuote: o(),
|
|
4929
4929
|
characterEscapeValue: R,
|
|
@@ -5246,7 +5246,7 @@ function z2(e) {
|
|
|
5246
5246
|
function ie() {
|
|
5247
5247
|
this.data.inReference = void 0;
|
|
5248
5248
|
}
|
|
5249
|
-
function
|
|
5249
|
+
function D() {
|
|
5250
5250
|
this.data.referenceType = "collapsed";
|
|
5251
5251
|
}
|
|
5252
5252
|
function pe(j) {
|
|
@@ -5272,7 +5272,7 @@ function z2(e) {
|
|
|
5272
5272
|
const le = this.stack[this.stack.length - 1];
|
|
5273
5273
|
le.url = this.sliceSerialize(j);
|
|
5274
5274
|
}
|
|
5275
|
-
function
|
|
5275
|
+
function Le(j) {
|
|
5276
5276
|
R.call(this, j);
|
|
5277
5277
|
const le = this.stack[this.stack.length - 1];
|
|
5278
5278
|
le.url = "mailto:" + this.sliceSerialize(j);
|
|
@@ -6195,7 +6195,7 @@ const uo = {}.hasOwnProperty, Oy = {};
|
|
|
6195
6195
|
function My(e, t) {
|
|
6196
6196
|
const n = t || Oy, r = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), i = { ...my, ...n.handlers }, s = {
|
|
6197
6197
|
all: u,
|
|
6198
|
-
applyData:
|
|
6198
|
+
applyData: Dy,
|
|
6199
6199
|
definitionById: r,
|
|
6200
6200
|
footnoteById: l,
|
|
6201
6201
|
footnoteCounts: a,
|
|
@@ -6223,7 +6223,7 @@ function My(e, t) {
|
|
|
6223
6223
|
}
|
|
6224
6224
|
return gr(c);
|
|
6225
6225
|
}
|
|
6226
|
-
return (s.options.unknownHandler ||
|
|
6226
|
+
return (s.options.unknownHandler || Ly)(s, c, d);
|
|
6227
6227
|
}
|
|
6228
6228
|
function u(c) {
|
|
6229
6229
|
const d = [];
|
|
@@ -6247,7 +6247,7 @@ function My(e, t) {
|
|
|
6247
6247
|
function Ry(e, t) {
|
|
6248
6248
|
e.position && (t.position = Vh(e));
|
|
6249
6249
|
}
|
|
6250
|
-
function
|
|
6250
|
+
function Dy(e, t) {
|
|
6251
6251
|
let n = t;
|
|
6252
6252
|
if (e && e.data) {
|
|
6253
6253
|
const r = e.data.hName, l = e.data.hChildren, a = e.data.hProperties;
|
|
@@ -6262,7 +6262,7 @@ function Ly(e, t) {
|
|
|
6262
6262
|
}
|
|
6263
6263
|
return n;
|
|
6264
6264
|
}
|
|
6265
|
-
function
|
|
6265
|
+
function Ly(e, t) {
|
|
6266
6266
|
const n = t.data || {}, r = "value" in t && !(uo.call(n, "hProperties") || uo.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
|
6267
6267
|
type: "element",
|
|
6268
6268
|
tagName: "div",
|
|
@@ -7664,7 +7664,7 @@ function m3(e, t, n, r) {
|
|
|
7664
7664
|
if (typeof r == "number") {
|
|
7665
7665
|
if (Number.isNaN(r)) return;
|
|
7666
7666
|
a = r;
|
|
7667
|
-
} else typeof r == "boolean" ? a = r : typeof r == "string" ? l.spaceSeparated ? a =
|
|
7667
|
+
} else typeof r == "boolean" ? a = r : typeof r == "string" ? l.spaceSeparated ? a = Dc(r) : l.commaSeparated ? a = Ic(r) : l.commaOrSpaceSeparated ? a = Dc(Ic(r).join(" ")) : a = bd(l, l.property, r) : Array.isArray(r) ? a = [...r] : a = l.property === "style" ? b3(r) : String(r);
|
|
7668
7668
|
if (Array.isArray(a)) {
|
|
7669
7669
|
const i = [];
|
|
7670
7670
|
for (const s of a)
|
|
@@ -7695,7 +7695,7 @@ function bd(e, t, n) {
|
|
|
7695
7695
|
if (typeof n == "string") {
|
|
7696
7696
|
if (e.number && n && !Number.isNaN(Number(n)))
|
|
7697
7697
|
return Number(n);
|
|
7698
|
-
if ((e.boolean || e.overloadedBoolean) && (n === "" ||
|
|
7698
|
+
if ((e.boolean || e.overloadedBoolean) && (n === "" || Ll(n) === Ll(t)))
|
|
7699
7699
|
return !0;
|
|
7700
7700
|
}
|
|
7701
7701
|
return n;
|
|
@@ -7887,7 +7887,7 @@ function S3(e, t) {
|
|
|
7887
7887
|
const s = (
|
|
7888
7888
|
/** @type {DefaultTreeAdapterMap['template']} */
|
|
7889
7889
|
t
|
|
7890
|
-
), o = s.sourceCodeLocation, u = o && o.startTag &&
|
|
7890
|
+
), o = s.sourceCodeLocation, u = o && o.startTag && Lr(o.startTag), c = o && o.endTag && Lr(o.endTag), d = (
|
|
7891
7891
|
/** @type {Root} */
|
|
7892
7892
|
cu(e, s.content)
|
|
7893
7893
|
);
|
|
@@ -7902,7 +7902,7 @@ function Va(e, t, n) {
|
|
|
7902
7902
|
}
|
|
7903
7903
|
}
|
|
7904
7904
|
function k3(e, t, n) {
|
|
7905
|
-
const r =
|
|
7905
|
+
const r = Lr(n);
|
|
7906
7906
|
if (t.type === "element") {
|
|
7907
7907
|
const l = t.children[t.children.length - 1];
|
|
7908
7908
|
if (r && !n.endTag && l && l.position && l.position.end && (r.end = Object.assign({}, l.position.end)), e.verbose) {
|
|
@@ -7910,17 +7910,17 @@ function k3(e, t, n) {
|
|
|
7910
7910
|
let i;
|
|
7911
7911
|
if (n.attrs)
|
|
7912
7912
|
for (i in n.attrs)
|
|
7913
|
-
bp.call(n.attrs, i) && (a[Ei(e.schema, i).property] =
|
|
7913
|
+
bp.call(n.attrs, i) && (a[Ei(e.schema, i).property] = Lr(
|
|
7914
7914
|
n.attrs[i]
|
|
7915
7915
|
));
|
|
7916
7916
|
n.startTag;
|
|
7917
|
-
const s =
|
|
7917
|
+
const s = Lr(n.startTag), o = n.endTag ? Lr(n.endTag) : void 0, u = { opening: s };
|
|
7918
7918
|
o && (u.closing = o), u.properties = a, t.data = { position: u };
|
|
7919
7919
|
}
|
|
7920
7920
|
}
|
|
7921
7921
|
return r;
|
|
7922
7922
|
}
|
|
7923
|
-
function
|
|
7923
|
+
function Lr(e) {
|
|
7924
7924
|
const t = vd({
|
|
7925
7925
|
line: e.startLine,
|
|
7926
7926
|
column: e.startCol,
|
|
@@ -7950,7 +7950,7 @@ function vp(e, t) {
|
|
|
7950
7950
|
}
|
|
7951
7951
|
return r.handlers = n.handlers || {}, r.invalid = n.invalid, r.unknown = n.unknown, r;
|
|
7952
7952
|
}
|
|
7953
|
-
const A3 = {}, N3 = {}.hasOwnProperty, yp = vp("type", { handlers: { root: I3, element:
|
|
7953
|
+
const A3 = {}, N3 = {}.hasOwnProperty, yp = vp("type", { handlers: { root: I3, element: D3, text: M3, comment: R3, doctype: O3 } });
|
|
7954
7954
|
function w3(e, t) {
|
|
7955
7955
|
const r = (t || A3).space;
|
|
7956
7956
|
return yp(e, r === "svg" ? Vn : ta);
|
|
@@ -7994,7 +7994,7 @@ function R3(e) {
|
|
|
7994
7994
|
};
|
|
7995
7995
|
return Jr(e, t), t;
|
|
7996
7996
|
}
|
|
7997
|
-
function
|
|
7997
|
+
function D3(e, t) {
|
|
7998
7998
|
const n = t;
|
|
7999
7999
|
let r = n;
|
|
8000
8000
|
e.type === "element" && e.tagName.toLowerCase() === "svg" && n.space === "html" && (r = Vn);
|
|
@@ -8003,7 +8003,7 @@ function L3(e, t) {
|
|
|
8003
8003
|
if (e.properties) {
|
|
8004
8004
|
for (a in e.properties)
|
|
8005
8005
|
if (a !== "children" && N3.call(e.properties, a)) {
|
|
8006
|
-
const o =
|
|
8006
|
+
const o = L3(
|
|
8007
8007
|
r,
|
|
8008
8008
|
a,
|
|
8009
8009
|
e.properties[a]
|
|
@@ -8022,7 +8022,7 @@ function L3(e, t) {
|
|
|
8022
8022
|
};
|
|
8023
8023
|
return s.childNodes = du(e.children, s, r), Jr(e, s), e.tagName === "template" && e.content && (s.content = _3(e.content, r)), s;
|
|
8024
8024
|
}
|
|
8025
|
-
function
|
|
8025
|
+
function L3(e, t, n) {
|
|
8026
8026
|
const r = Ei(e, t);
|
|
8027
8027
|
if (n === !1 || n === null || n === void 0 || typeof n == "number" && Number.isNaN(n) || !n && r.boolean)
|
|
8028
8028
|
return;
|
|
@@ -11451,10 +11451,10 @@ function wE(e, t, n, r) {
|
|
|
11451
11451
|
return (!r || r === Q.HTML) && NE(e, t, n) || (!r || r === Q.MATHML) && AE(e, t);
|
|
11452
11452
|
}
|
|
11453
11453
|
const IE = "hidden", _E = 8, OE = 3;
|
|
11454
|
-
var
|
|
11454
|
+
var L;
|
|
11455
11455
|
(function(e) {
|
|
11456
11456
|
e[e.INITIAL = 0] = "INITIAL", e[e.BEFORE_HTML = 1] = "BEFORE_HTML", e[e.BEFORE_HEAD = 2] = "BEFORE_HEAD", e[e.IN_HEAD = 3] = "IN_HEAD", e[e.IN_HEAD_NO_SCRIPT = 4] = "IN_HEAD_NO_SCRIPT", e[e.AFTER_HEAD = 5] = "AFTER_HEAD", e[e.IN_BODY = 6] = "IN_BODY", e[e.TEXT = 7] = "TEXT", e[e.IN_TABLE = 8] = "IN_TABLE", e[e.IN_TABLE_TEXT = 9] = "IN_TABLE_TEXT", e[e.IN_CAPTION = 10] = "IN_CAPTION", e[e.IN_COLUMN_GROUP = 11] = "IN_COLUMN_GROUP", e[e.IN_TABLE_BODY = 12] = "IN_TABLE_BODY", e[e.IN_ROW = 13] = "IN_ROW", e[e.IN_CELL = 14] = "IN_CELL", e[e.IN_SELECT = 15] = "IN_SELECT", e[e.IN_SELECT_IN_TABLE = 16] = "IN_SELECT_IN_TABLE", e[e.IN_TEMPLATE = 17] = "IN_TEMPLATE", e[e.AFTER_BODY = 18] = "AFTER_BODY", e[e.IN_FRAMESET = 19] = "IN_FRAMESET", e[e.AFTER_FRAMESET = 20] = "AFTER_FRAMESET", e[e.AFTER_AFTER_BODY = 21] = "AFTER_AFTER_BODY", e[e.AFTER_AFTER_FRAMESET = 22] = "AFTER_AFTER_FRAMESET";
|
|
11457
|
-
})(
|
|
11457
|
+
})(L || (L = {}));
|
|
11458
11458
|
const ME = {
|
|
11459
11459
|
startLine: -1,
|
|
11460
11460
|
startCol: -1,
|
|
@@ -11470,7 +11470,7 @@ const ME = {
|
|
|
11470
11470
|
};
|
|
11471
11471
|
class Id {
|
|
11472
11472
|
constructor(t, n, r = null, l = null) {
|
|
11473
|
-
this.fragmentContext = r, this.scriptHandler = l, this.currentToken = null, this.stopped = !1, this.insertionMode =
|
|
11473
|
+
this.fragmentContext = r, this.scriptHandler = l, this.currentToken = null, this.stopped = !1, this.insertionMode = L.INITIAL, this.originalInsertionMode = L.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
|
|
11474
11474
|
...wd,
|
|
11475
11475
|
...t
|
|
11476
11476
|
}, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new nE(this.options, this), this.activeFormattingElements = new cE(this.treeAdapter), this.fragmentContextID = r ? Zr(this.treeAdapter.getTagName(r)) : p.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new uE(this.document, this.treeAdapter, this);
|
|
@@ -11487,7 +11487,7 @@ class Id {
|
|
|
11487
11487
|
};
|
|
11488
11488
|
t ?? (t = r.treeAdapter.createElement(z.TEMPLATE, Q.HTML, []));
|
|
11489
11489
|
const l = r.treeAdapter.createElement("documentmock", Q.HTML, []), a = new this(r, l, t);
|
|
11490
|
-
return a.fragmentContextID === p.TEMPLATE && a.tmplInsertionModeStack.unshift(
|
|
11490
|
+
return a.fragmentContextID === p.TEMPLATE && a.tmplInsertionModeStack.unshift(L.IN_TEMPLATE), a._initTokenizerForFragmentParsing(), a._insertFakeRootElement(), a._resetInsertionMode(), a._findFormInFragmentContext(), a;
|
|
11491
11491
|
}
|
|
11492
11492
|
getFragment() {
|
|
11493
11493
|
const t = this.treeAdapter.getFirstChild(this.document), n = this.treeAdapter.createDocumentFragment();
|
|
@@ -11530,10 +11530,10 @@ class Id {
|
|
|
11530
11530
|
}
|
|
11531
11531
|
/** @protected */
|
|
11532
11532
|
_switchToTextParsing(t, n) {
|
|
11533
|
-
this._insertElement(t, Q.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode =
|
|
11533
|
+
this._insertElement(t, Q.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode = L.TEXT;
|
|
11534
11534
|
}
|
|
11535
11535
|
switchToPlaintextParsing() {
|
|
11536
|
-
this.insertionMode =
|
|
11536
|
+
this.insertionMode = L.TEXT, this.originalInsertionMode = L.IN_BODY, this.tokenizer.state = je.PLAINTEXT;
|
|
11537
11537
|
}
|
|
11538
11538
|
//Fragment parsing
|
|
11539
11539
|
/** @protected */
|
|
@@ -11743,7 +11743,7 @@ class Id {
|
|
|
11743
11743
|
//Close elements
|
|
11744
11744
|
/** @protected */
|
|
11745
11745
|
_closeTableCell() {
|
|
11746
|
-
this.openElements.generateImpliedEndTags(), this.openElements.popUntilTableCellPopped(), this.activeFormattingElements.clearToLastMarker(), this.insertionMode =
|
|
11746
|
+
this.openElements.generateImpliedEndTags(), this.openElements.popUntilTableCellPopped(), this.activeFormattingElements.clearToLastMarker(), this.insertionMode = L.IN_ROW;
|
|
11747
11747
|
}
|
|
11748
11748
|
/** @protected */
|
|
11749
11749
|
_closePElement() {
|
|
@@ -11755,33 +11755,33 @@ class Id {
|
|
|
11755
11755
|
for (let t = this.openElements.stackTop; t >= 0; t--)
|
|
11756
11756
|
switch (t === 0 && this.fragmentContext ? this.fragmentContextID : this.openElements.tagIDs[t]) {
|
|
11757
11757
|
case p.TR: {
|
|
11758
|
-
this.insertionMode =
|
|
11758
|
+
this.insertionMode = L.IN_ROW;
|
|
11759
11759
|
return;
|
|
11760
11760
|
}
|
|
11761
11761
|
case p.TBODY:
|
|
11762
11762
|
case p.THEAD:
|
|
11763
11763
|
case p.TFOOT: {
|
|
11764
|
-
this.insertionMode =
|
|
11764
|
+
this.insertionMode = L.IN_TABLE_BODY;
|
|
11765
11765
|
return;
|
|
11766
11766
|
}
|
|
11767
11767
|
case p.CAPTION: {
|
|
11768
|
-
this.insertionMode =
|
|
11768
|
+
this.insertionMode = L.IN_CAPTION;
|
|
11769
11769
|
return;
|
|
11770
11770
|
}
|
|
11771
11771
|
case p.COLGROUP: {
|
|
11772
|
-
this.insertionMode =
|
|
11772
|
+
this.insertionMode = L.IN_COLUMN_GROUP;
|
|
11773
11773
|
return;
|
|
11774
11774
|
}
|
|
11775
11775
|
case p.TABLE: {
|
|
11776
|
-
this.insertionMode =
|
|
11776
|
+
this.insertionMode = L.IN_TABLE;
|
|
11777
11777
|
return;
|
|
11778
11778
|
}
|
|
11779
11779
|
case p.BODY: {
|
|
11780
|
-
this.insertionMode =
|
|
11780
|
+
this.insertionMode = L.IN_BODY;
|
|
11781
11781
|
return;
|
|
11782
11782
|
}
|
|
11783
11783
|
case p.FRAMESET: {
|
|
11784
|
-
this.insertionMode =
|
|
11784
|
+
this.insertionMode = L.IN_FRAMESET;
|
|
11785
11785
|
return;
|
|
11786
11786
|
}
|
|
11787
11787
|
case p.SELECT: {
|
|
@@ -11793,26 +11793,26 @@ class Id {
|
|
|
11793
11793
|
return;
|
|
11794
11794
|
}
|
|
11795
11795
|
case p.HTML: {
|
|
11796
|
-
this.insertionMode = this.headElement ?
|
|
11796
|
+
this.insertionMode = this.headElement ? L.AFTER_HEAD : L.BEFORE_HEAD;
|
|
11797
11797
|
return;
|
|
11798
11798
|
}
|
|
11799
11799
|
case p.TD:
|
|
11800
11800
|
case p.TH: {
|
|
11801
11801
|
if (t > 0) {
|
|
11802
|
-
this.insertionMode =
|
|
11802
|
+
this.insertionMode = L.IN_CELL;
|
|
11803
11803
|
return;
|
|
11804
11804
|
}
|
|
11805
11805
|
break;
|
|
11806
11806
|
}
|
|
11807
11807
|
case p.HEAD: {
|
|
11808
11808
|
if (t > 0) {
|
|
11809
|
-
this.insertionMode =
|
|
11809
|
+
this.insertionMode = L.IN_HEAD;
|
|
11810
11810
|
return;
|
|
11811
11811
|
}
|
|
11812
11812
|
break;
|
|
11813
11813
|
}
|
|
11814
11814
|
}
|
|
11815
|
-
this.insertionMode =
|
|
11815
|
+
this.insertionMode = L.IN_BODY;
|
|
11816
11816
|
}
|
|
11817
11817
|
/** @protected */
|
|
11818
11818
|
_resetInsertionModeForSelect(t) {
|
|
@@ -11822,11 +11822,11 @@ class Id {
|
|
|
11822
11822
|
if (r === p.TEMPLATE)
|
|
11823
11823
|
break;
|
|
11824
11824
|
if (r === p.TABLE) {
|
|
11825
|
-
this.insertionMode =
|
|
11825
|
+
this.insertionMode = L.IN_SELECT_IN_TABLE;
|
|
11826
11826
|
return;
|
|
11827
11827
|
}
|
|
11828
11828
|
}
|
|
11829
|
-
this.insertionMode =
|
|
11829
|
+
this.insertionMode = L.IN_SELECT;
|
|
11830
11830
|
}
|
|
11831
11831
|
//Foster parenting
|
|
11832
11832
|
/** @protected */
|
|
@@ -11873,62 +11873,62 @@ class Id {
|
|
|
11873
11873
|
return;
|
|
11874
11874
|
}
|
|
11875
11875
|
switch (this.insertionMode) {
|
|
11876
|
-
case
|
|
11876
|
+
case L.INITIAL: {
|
|
11877
11877
|
pl(this, t);
|
|
11878
11878
|
break;
|
|
11879
11879
|
}
|
|
11880
|
-
case
|
|
11880
|
+
case L.BEFORE_HTML: {
|
|
11881
11881
|
Sl(this, t);
|
|
11882
11882
|
break;
|
|
11883
11883
|
}
|
|
11884
|
-
case
|
|
11884
|
+
case L.BEFORE_HEAD: {
|
|
11885
11885
|
kl(this, t);
|
|
11886
11886
|
break;
|
|
11887
11887
|
}
|
|
11888
|
-
case
|
|
11888
|
+
case L.IN_HEAD: {
|
|
11889
11889
|
Al(this, t);
|
|
11890
11890
|
break;
|
|
11891
11891
|
}
|
|
11892
|
-
case
|
|
11892
|
+
case L.IN_HEAD_NO_SCRIPT: {
|
|
11893
11893
|
Nl(this, t);
|
|
11894
11894
|
break;
|
|
11895
11895
|
}
|
|
11896
|
-
case
|
|
11896
|
+
case L.AFTER_HEAD: {
|
|
11897
11897
|
wl(this, t);
|
|
11898
11898
|
break;
|
|
11899
11899
|
}
|
|
11900
|
-
case
|
|
11901
|
-
case
|
|
11902
|
-
case
|
|
11903
|
-
case
|
|
11900
|
+
case L.IN_BODY:
|
|
11901
|
+
case L.IN_CAPTION:
|
|
11902
|
+
case L.IN_CELL:
|
|
11903
|
+
case L.IN_TEMPLATE: {
|
|
11904
11904
|
Rp(this, t);
|
|
11905
11905
|
break;
|
|
11906
11906
|
}
|
|
11907
|
-
case
|
|
11908
|
-
case
|
|
11909
|
-
case
|
|
11907
|
+
case L.TEXT:
|
|
11908
|
+
case L.IN_SELECT:
|
|
11909
|
+
case L.IN_SELECT_IN_TABLE: {
|
|
11910
11910
|
this._insertCharacters(t);
|
|
11911
11911
|
break;
|
|
11912
11912
|
}
|
|
11913
|
-
case
|
|
11914
|
-
case
|
|
11915
|
-
case
|
|
11913
|
+
case L.IN_TABLE:
|
|
11914
|
+
case L.IN_TABLE_BODY:
|
|
11915
|
+
case L.IN_ROW: {
|
|
11916
11916
|
Cs(this, t);
|
|
11917
11917
|
break;
|
|
11918
11918
|
}
|
|
11919
|
-
case
|
|
11919
|
+
case L.IN_TABLE_TEXT: {
|
|
11920
11920
|
Hp(this, t);
|
|
11921
11921
|
break;
|
|
11922
11922
|
}
|
|
11923
|
-
case
|
|
11923
|
+
case L.IN_COLUMN_GROUP: {
|
|
11924
11924
|
ei(this, t);
|
|
11925
11925
|
break;
|
|
11926
11926
|
}
|
|
11927
|
-
case
|
|
11927
|
+
case L.AFTER_BODY: {
|
|
11928
11928
|
ti(this, t);
|
|
11929
11929
|
break;
|
|
11930
11930
|
}
|
|
11931
|
-
case
|
|
11931
|
+
case L.AFTER_AFTER_BODY: {
|
|
11932
11932
|
$a(this, t);
|
|
11933
11933
|
break;
|
|
11934
11934
|
}
|
|
@@ -11941,49 +11941,49 @@ class Id {
|
|
|
11941
11941
|
return;
|
|
11942
11942
|
}
|
|
11943
11943
|
switch (this.insertionMode) {
|
|
11944
|
-
case
|
|
11944
|
+
case L.INITIAL: {
|
|
11945
11945
|
pl(this, t);
|
|
11946
11946
|
break;
|
|
11947
11947
|
}
|
|
11948
|
-
case
|
|
11948
|
+
case L.BEFORE_HTML: {
|
|
11949
11949
|
Sl(this, t);
|
|
11950
11950
|
break;
|
|
11951
11951
|
}
|
|
11952
|
-
case
|
|
11952
|
+
case L.BEFORE_HEAD: {
|
|
11953
11953
|
kl(this, t);
|
|
11954
11954
|
break;
|
|
11955
11955
|
}
|
|
11956
|
-
case
|
|
11956
|
+
case L.IN_HEAD: {
|
|
11957
11957
|
Al(this, t);
|
|
11958
11958
|
break;
|
|
11959
11959
|
}
|
|
11960
|
-
case
|
|
11960
|
+
case L.IN_HEAD_NO_SCRIPT: {
|
|
11961
11961
|
Nl(this, t);
|
|
11962
11962
|
break;
|
|
11963
11963
|
}
|
|
11964
|
-
case
|
|
11964
|
+
case L.AFTER_HEAD: {
|
|
11965
11965
|
wl(this, t);
|
|
11966
11966
|
break;
|
|
11967
11967
|
}
|
|
11968
|
-
case
|
|
11968
|
+
case L.TEXT: {
|
|
11969
11969
|
this._insertCharacters(t);
|
|
11970
11970
|
break;
|
|
11971
11971
|
}
|
|
11972
|
-
case
|
|
11973
|
-
case
|
|
11974
|
-
case
|
|
11972
|
+
case L.IN_TABLE:
|
|
11973
|
+
case L.IN_TABLE_BODY:
|
|
11974
|
+
case L.IN_ROW: {
|
|
11975
11975
|
Cs(this, t);
|
|
11976
11976
|
break;
|
|
11977
11977
|
}
|
|
11978
|
-
case
|
|
11978
|
+
case L.IN_COLUMN_GROUP: {
|
|
11979
11979
|
ei(this, t);
|
|
11980
11980
|
break;
|
|
11981
11981
|
}
|
|
11982
|
-
case
|
|
11982
|
+
case L.AFTER_BODY: {
|
|
11983
11983
|
ti(this, t);
|
|
11984
11984
|
break;
|
|
11985
11985
|
}
|
|
11986
|
-
case
|
|
11986
|
+
case L.AFTER_AFTER_BODY: {
|
|
11987
11987
|
$a(this, t);
|
|
11988
11988
|
break;
|
|
11989
11989
|
}
|
|
@@ -11996,37 +11996,37 @@ class Id {
|
|
|
11996
11996
|
return;
|
|
11997
11997
|
}
|
|
11998
11998
|
switch (this.insertionMode) {
|
|
11999
|
-
case
|
|
12000
|
-
case
|
|
12001
|
-
case
|
|
12002
|
-
case
|
|
12003
|
-
case
|
|
12004
|
-
case
|
|
12005
|
-
case
|
|
12006
|
-
case
|
|
12007
|
-
case
|
|
12008
|
-
case
|
|
12009
|
-
case
|
|
12010
|
-
case
|
|
12011
|
-
case
|
|
12012
|
-
case
|
|
12013
|
-
case
|
|
12014
|
-
case
|
|
12015
|
-
case
|
|
12016
|
-
case
|
|
11999
|
+
case L.INITIAL:
|
|
12000
|
+
case L.BEFORE_HTML:
|
|
12001
|
+
case L.BEFORE_HEAD:
|
|
12002
|
+
case L.IN_HEAD:
|
|
12003
|
+
case L.IN_HEAD_NO_SCRIPT:
|
|
12004
|
+
case L.AFTER_HEAD:
|
|
12005
|
+
case L.IN_BODY:
|
|
12006
|
+
case L.IN_TABLE:
|
|
12007
|
+
case L.IN_CAPTION:
|
|
12008
|
+
case L.IN_COLUMN_GROUP:
|
|
12009
|
+
case L.IN_TABLE_BODY:
|
|
12010
|
+
case L.IN_ROW:
|
|
12011
|
+
case L.IN_CELL:
|
|
12012
|
+
case L.IN_SELECT:
|
|
12013
|
+
case L.IN_SELECT_IN_TABLE:
|
|
12014
|
+
case L.IN_TEMPLATE:
|
|
12015
|
+
case L.IN_FRAMESET:
|
|
12016
|
+
case L.AFTER_FRAMESET: {
|
|
12017
12017
|
bo(this, t);
|
|
12018
12018
|
break;
|
|
12019
12019
|
}
|
|
12020
|
-
case
|
|
12020
|
+
case L.IN_TABLE_TEXT: {
|
|
12021
12021
|
ml(this, t);
|
|
12022
12022
|
break;
|
|
12023
12023
|
}
|
|
12024
|
-
case
|
|
12024
|
+
case L.AFTER_BODY: {
|
|
12025
12025
|
HE(this, t);
|
|
12026
12026
|
break;
|
|
12027
12027
|
}
|
|
12028
|
-
case
|
|
12029
|
-
case
|
|
12028
|
+
case L.AFTER_AFTER_BODY:
|
|
12029
|
+
case L.AFTER_AFTER_FRAMESET: {
|
|
12030
12030
|
UE(this, t);
|
|
12031
12031
|
break;
|
|
12032
12032
|
}
|
|
@@ -12035,18 +12035,18 @@ class Id {
|
|
|
12035
12035
|
/** @internal */
|
|
12036
12036
|
onDoctype(t) {
|
|
12037
12037
|
switch (this.skipNextNewLine = !1, this.insertionMode) {
|
|
12038
|
-
case
|
|
12038
|
+
case L.INITIAL: {
|
|
12039
12039
|
zE(this, t);
|
|
12040
12040
|
break;
|
|
12041
12041
|
}
|
|
12042
|
-
case
|
|
12043
|
-
case
|
|
12044
|
-
case
|
|
12045
|
-
case
|
|
12042
|
+
case L.BEFORE_HEAD:
|
|
12043
|
+
case L.IN_HEAD:
|
|
12044
|
+
case L.IN_HEAD_NO_SCRIPT:
|
|
12045
|
+
case L.AFTER_HEAD: {
|
|
12046
12046
|
this._err(t, Y.misplacedDoctype);
|
|
12047
12047
|
break;
|
|
12048
12048
|
}
|
|
12049
|
-
case
|
|
12049
|
+
case L.IN_TABLE_TEXT: {
|
|
12050
12050
|
ml(this, t);
|
|
12051
12051
|
break;
|
|
12052
12052
|
}
|
|
@@ -12073,91 +12073,91 @@ class Id {
|
|
|
12073
12073
|
/** @protected */
|
|
12074
12074
|
_startTagOutsideForeignContent(t) {
|
|
12075
12075
|
switch (this.insertionMode) {
|
|
12076
|
-
case
|
|
12076
|
+
case L.INITIAL: {
|
|
12077
12077
|
pl(this, t);
|
|
12078
12078
|
break;
|
|
12079
12079
|
}
|
|
12080
|
-
case
|
|
12080
|
+
case L.BEFORE_HTML: {
|
|
12081
12081
|
VE(this, t);
|
|
12082
12082
|
break;
|
|
12083
12083
|
}
|
|
12084
|
-
case
|
|
12084
|
+
case L.BEFORE_HEAD: {
|
|
12085
12085
|
qE(this, t);
|
|
12086
12086
|
break;
|
|
12087
12087
|
}
|
|
12088
|
-
case
|
|
12088
|
+
case L.IN_HEAD: {
|
|
12089
12089
|
jt(this, t);
|
|
12090
12090
|
break;
|
|
12091
12091
|
}
|
|
12092
|
-
case
|
|
12092
|
+
case L.IN_HEAD_NO_SCRIPT: {
|
|
12093
12093
|
jE(this, t);
|
|
12094
12094
|
break;
|
|
12095
12095
|
}
|
|
12096
|
-
case
|
|
12096
|
+
case L.AFTER_HEAD: {
|
|
12097
12097
|
GE(this, t);
|
|
12098
12098
|
break;
|
|
12099
12099
|
}
|
|
12100
|
-
case
|
|
12100
|
+
case L.IN_BODY: {
|
|
12101
12101
|
gt(this, t);
|
|
12102
12102
|
break;
|
|
12103
12103
|
}
|
|
12104
|
-
case
|
|
12104
|
+
case L.IN_TABLE: {
|
|
12105
12105
|
$r(this, t);
|
|
12106
12106
|
break;
|
|
12107
12107
|
}
|
|
12108
|
-
case
|
|
12108
|
+
case L.IN_TABLE_TEXT: {
|
|
12109
12109
|
ml(this, t);
|
|
12110
12110
|
break;
|
|
12111
12111
|
}
|
|
12112
|
-
case
|
|
12112
|
+
case L.IN_CAPTION: {
|
|
12113
12113
|
WT(this, t);
|
|
12114
12114
|
break;
|
|
12115
12115
|
}
|
|
12116
|
-
case
|
|
12116
|
+
case L.IN_COLUMN_GROUP: {
|
|
12117
12117
|
mu(this, t);
|
|
12118
12118
|
break;
|
|
12119
12119
|
}
|
|
12120
|
-
case
|
|
12120
|
+
case L.IN_TABLE_BODY: {
|
|
12121
12121
|
wi(this, t);
|
|
12122
12122
|
break;
|
|
12123
12123
|
}
|
|
12124
|
-
case
|
|
12124
|
+
case L.IN_ROW: {
|
|
12125
12125
|
Ii(this, t);
|
|
12126
12126
|
break;
|
|
12127
12127
|
}
|
|
12128
|
-
case
|
|
12128
|
+
case L.IN_CELL: {
|
|
12129
12129
|
KT(this, t);
|
|
12130
12130
|
break;
|
|
12131
12131
|
}
|
|
12132
|
-
case
|
|
12132
|
+
case L.IN_SELECT: {
|
|
12133
12133
|
Vp(this, t);
|
|
12134
12134
|
break;
|
|
12135
12135
|
}
|
|
12136
|
-
case
|
|
12136
|
+
case L.IN_SELECT_IN_TABLE: {
|
|
12137
12137
|
QT(this, t);
|
|
12138
12138
|
break;
|
|
12139
12139
|
}
|
|
12140
|
-
case
|
|
12140
|
+
case L.IN_TEMPLATE: {
|
|
12141
12141
|
JT(this, t);
|
|
12142
12142
|
break;
|
|
12143
12143
|
}
|
|
12144
|
-
case
|
|
12144
|
+
case L.AFTER_BODY: {
|
|
12145
12145
|
e6(this, t);
|
|
12146
12146
|
break;
|
|
12147
12147
|
}
|
|
12148
|
-
case
|
|
12148
|
+
case L.IN_FRAMESET: {
|
|
12149
12149
|
t6(this, t);
|
|
12150
12150
|
break;
|
|
12151
12151
|
}
|
|
12152
|
-
case
|
|
12152
|
+
case L.AFTER_FRAMESET: {
|
|
12153
12153
|
r6(this, t);
|
|
12154
12154
|
break;
|
|
12155
12155
|
}
|
|
12156
|
-
case
|
|
12156
|
+
case L.AFTER_AFTER_BODY: {
|
|
12157
12157
|
a6(this, t);
|
|
12158
12158
|
break;
|
|
12159
12159
|
}
|
|
12160
|
-
case
|
|
12160
|
+
case L.AFTER_AFTER_FRAMESET: {
|
|
12161
12161
|
i6(this, t);
|
|
12162
12162
|
break;
|
|
12163
12163
|
}
|
|
@@ -12170,91 +12170,91 @@ class Id {
|
|
|
12170
12170
|
/** @protected */
|
|
12171
12171
|
_endTagOutsideForeignContent(t) {
|
|
12172
12172
|
switch (this.insertionMode) {
|
|
12173
|
-
case
|
|
12173
|
+
case L.INITIAL: {
|
|
12174
12174
|
pl(this, t);
|
|
12175
12175
|
break;
|
|
12176
12176
|
}
|
|
12177
|
-
case
|
|
12177
|
+
case L.BEFORE_HTML: {
|
|
12178
12178
|
$E(this, t);
|
|
12179
12179
|
break;
|
|
12180
12180
|
}
|
|
12181
|
-
case
|
|
12181
|
+
case L.BEFORE_HEAD: {
|
|
12182
12182
|
WE(this, t);
|
|
12183
12183
|
break;
|
|
12184
12184
|
}
|
|
12185
|
-
case
|
|
12185
|
+
case L.IN_HEAD: {
|
|
12186
12186
|
YE(this, t);
|
|
12187
12187
|
break;
|
|
12188
12188
|
}
|
|
12189
|
-
case
|
|
12189
|
+
case L.IN_HEAD_NO_SCRIPT: {
|
|
12190
12190
|
KE(this, t);
|
|
12191
12191
|
break;
|
|
12192
12192
|
}
|
|
12193
|
-
case
|
|
12193
|
+
case L.AFTER_HEAD: {
|
|
12194
12194
|
QE(this, t);
|
|
12195
12195
|
break;
|
|
12196
12196
|
}
|
|
12197
|
-
case
|
|
12197
|
+
case L.IN_BODY: {
|
|
12198
12198
|
Ni(this, t);
|
|
12199
12199
|
break;
|
|
12200
12200
|
}
|
|
12201
|
-
case
|
|
12202
|
-
|
|
12201
|
+
case L.TEXT: {
|
|
12202
|
+
LT(this, t);
|
|
12203
12203
|
break;
|
|
12204
12204
|
}
|
|
12205
|
-
case
|
|
12205
|
+
case L.IN_TABLE: {
|
|
12206
12206
|
Ul(this, t);
|
|
12207
12207
|
break;
|
|
12208
12208
|
}
|
|
12209
|
-
case
|
|
12209
|
+
case L.IN_TABLE_TEXT: {
|
|
12210
12210
|
ml(this, t);
|
|
12211
12211
|
break;
|
|
12212
12212
|
}
|
|
12213
|
-
case
|
|
12213
|
+
case L.IN_CAPTION: {
|
|
12214
12214
|
YT(this, t);
|
|
12215
12215
|
break;
|
|
12216
12216
|
}
|
|
12217
|
-
case
|
|
12217
|
+
case L.IN_COLUMN_GROUP: {
|
|
12218
12218
|
jT(this, t);
|
|
12219
12219
|
break;
|
|
12220
12220
|
}
|
|
12221
|
-
case
|
|
12221
|
+
case L.IN_TABLE_BODY: {
|
|
12222
12222
|
go(this, t);
|
|
12223
12223
|
break;
|
|
12224
12224
|
}
|
|
12225
|
-
case
|
|
12225
|
+
case L.IN_ROW: {
|
|
12226
12226
|
zp(this, t);
|
|
12227
12227
|
break;
|
|
12228
12228
|
}
|
|
12229
|
-
case
|
|
12229
|
+
case L.IN_CELL: {
|
|
12230
12230
|
GT(this, t);
|
|
12231
12231
|
break;
|
|
12232
12232
|
}
|
|
12233
|
-
case
|
|
12233
|
+
case L.IN_SELECT: {
|
|
12234
12234
|
$p(this, t);
|
|
12235
12235
|
break;
|
|
12236
12236
|
}
|
|
12237
|
-
case
|
|
12237
|
+
case L.IN_SELECT_IN_TABLE: {
|
|
12238
12238
|
XT(this, t);
|
|
12239
12239
|
break;
|
|
12240
12240
|
}
|
|
12241
|
-
case
|
|
12241
|
+
case L.IN_TEMPLATE: {
|
|
12242
12242
|
ZT(this, t);
|
|
12243
12243
|
break;
|
|
12244
12244
|
}
|
|
12245
|
-
case
|
|
12245
|
+
case L.AFTER_BODY: {
|
|
12246
12246
|
Wp(this, t);
|
|
12247
12247
|
break;
|
|
12248
12248
|
}
|
|
12249
|
-
case
|
|
12249
|
+
case L.IN_FRAMESET: {
|
|
12250
12250
|
n6(this, t);
|
|
12251
12251
|
break;
|
|
12252
12252
|
}
|
|
12253
|
-
case
|
|
12253
|
+
case L.AFTER_FRAMESET: {
|
|
12254
12254
|
l6(this, t);
|
|
12255
12255
|
break;
|
|
12256
12256
|
}
|
|
12257
|
-
case
|
|
12257
|
+
case L.AFTER_AFTER_BODY: {
|
|
12258
12258
|
$a(this, t);
|
|
12259
12259
|
break;
|
|
12260
12260
|
}
|
|
@@ -12263,59 +12263,59 @@ class Id {
|
|
|
12263
12263
|
/** @internal */
|
|
12264
12264
|
onEof(t) {
|
|
12265
12265
|
switch (this.insertionMode) {
|
|
12266
|
-
case
|
|
12266
|
+
case L.INITIAL: {
|
|
12267
12267
|
pl(this, t);
|
|
12268
12268
|
break;
|
|
12269
12269
|
}
|
|
12270
|
-
case
|
|
12270
|
+
case L.BEFORE_HTML: {
|
|
12271
12271
|
Sl(this, t);
|
|
12272
12272
|
break;
|
|
12273
12273
|
}
|
|
12274
|
-
case
|
|
12274
|
+
case L.BEFORE_HEAD: {
|
|
12275
12275
|
kl(this, t);
|
|
12276
12276
|
break;
|
|
12277
12277
|
}
|
|
12278
|
-
case
|
|
12278
|
+
case L.IN_HEAD: {
|
|
12279
12279
|
Al(this, t);
|
|
12280
12280
|
break;
|
|
12281
12281
|
}
|
|
12282
|
-
case
|
|
12282
|
+
case L.IN_HEAD_NO_SCRIPT: {
|
|
12283
12283
|
Nl(this, t);
|
|
12284
12284
|
break;
|
|
12285
12285
|
}
|
|
12286
|
-
case
|
|
12286
|
+
case L.AFTER_HEAD: {
|
|
12287
12287
|
wl(this, t);
|
|
12288
12288
|
break;
|
|
12289
12289
|
}
|
|
12290
|
-
case
|
|
12291
|
-
case
|
|
12292
|
-
case
|
|
12293
|
-
case
|
|
12294
|
-
case
|
|
12295
|
-
case
|
|
12296
|
-
case
|
|
12297
|
-
case
|
|
12298
|
-
case
|
|
12290
|
+
case L.IN_BODY:
|
|
12291
|
+
case L.IN_TABLE:
|
|
12292
|
+
case L.IN_CAPTION:
|
|
12293
|
+
case L.IN_COLUMN_GROUP:
|
|
12294
|
+
case L.IN_TABLE_BODY:
|
|
12295
|
+
case L.IN_ROW:
|
|
12296
|
+
case L.IN_CELL:
|
|
12297
|
+
case L.IN_SELECT:
|
|
12298
|
+
case L.IN_SELECT_IN_TABLE: {
|
|
12299
12299
|
Bp(this, t);
|
|
12300
12300
|
break;
|
|
12301
12301
|
}
|
|
12302
|
-
case
|
|
12302
|
+
case L.TEXT: {
|
|
12303
12303
|
PT(this, t);
|
|
12304
12304
|
break;
|
|
12305
12305
|
}
|
|
12306
|
-
case
|
|
12306
|
+
case L.IN_TABLE_TEXT: {
|
|
12307
12307
|
ml(this, t);
|
|
12308
12308
|
break;
|
|
12309
12309
|
}
|
|
12310
|
-
case
|
|
12310
|
+
case L.IN_TEMPLATE: {
|
|
12311
12311
|
qp(this, t);
|
|
12312
12312
|
break;
|
|
12313
12313
|
}
|
|
12314
|
-
case
|
|
12315
|
-
case
|
|
12316
|
-
case
|
|
12317
|
-
case
|
|
12318
|
-
case
|
|
12314
|
+
case L.AFTER_BODY:
|
|
12315
|
+
case L.IN_FRAMESET:
|
|
12316
|
+
case L.AFTER_FRAMESET:
|
|
12317
|
+
case L.AFTER_AFTER_BODY:
|
|
12318
|
+
case L.AFTER_AFTER_FRAMESET: {
|
|
12319
12319
|
pu(this, t);
|
|
12320
12320
|
break;
|
|
12321
12321
|
}
|
|
@@ -12333,35 +12333,35 @@ class Id {
|
|
|
12333
12333
|
return;
|
|
12334
12334
|
}
|
|
12335
12335
|
switch (this.insertionMode) {
|
|
12336
|
-
case
|
|
12337
|
-
case
|
|
12338
|
-
case
|
|
12339
|
-
case
|
|
12340
|
-
case
|
|
12341
|
-
case
|
|
12342
|
-
case
|
|
12343
|
-
case
|
|
12344
|
-
case
|
|
12336
|
+
case L.IN_HEAD:
|
|
12337
|
+
case L.IN_HEAD_NO_SCRIPT:
|
|
12338
|
+
case L.AFTER_HEAD:
|
|
12339
|
+
case L.TEXT:
|
|
12340
|
+
case L.IN_COLUMN_GROUP:
|
|
12341
|
+
case L.IN_SELECT:
|
|
12342
|
+
case L.IN_SELECT_IN_TABLE:
|
|
12343
|
+
case L.IN_FRAMESET:
|
|
12344
|
+
case L.AFTER_FRAMESET: {
|
|
12345
12345
|
this._insertCharacters(t);
|
|
12346
12346
|
break;
|
|
12347
12347
|
}
|
|
12348
|
-
case
|
|
12349
|
-
case
|
|
12350
|
-
case
|
|
12351
|
-
case
|
|
12352
|
-
case
|
|
12353
|
-
case
|
|
12354
|
-
case
|
|
12348
|
+
case L.IN_BODY:
|
|
12349
|
+
case L.IN_CAPTION:
|
|
12350
|
+
case L.IN_CELL:
|
|
12351
|
+
case L.IN_TEMPLATE:
|
|
12352
|
+
case L.AFTER_BODY:
|
|
12353
|
+
case L.AFTER_AFTER_BODY:
|
|
12354
|
+
case L.AFTER_AFTER_FRAMESET: {
|
|
12355
12355
|
Mp(this, t);
|
|
12356
12356
|
break;
|
|
12357
12357
|
}
|
|
12358
|
-
case
|
|
12359
|
-
case
|
|
12360
|
-
case
|
|
12358
|
+
case L.IN_TABLE:
|
|
12359
|
+
case L.IN_TABLE_BODY:
|
|
12360
|
+
case L.IN_ROW: {
|
|
12361
12361
|
Cs(this, t);
|
|
12362
12362
|
break;
|
|
12363
12363
|
}
|
|
12364
|
-
case
|
|
12364
|
+
case L.IN_TABLE_TEXT: {
|
|
12365
12365
|
Fp(this, t);
|
|
12366
12366
|
break;
|
|
12367
12367
|
}
|
|
@@ -12372,7 +12372,7 @@ function RE(e, t) {
|
|
|
12372
12372
|
let n = e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);
|
|
12373
12373
|
return n ? e.openElements.contains(n.element) ? e.openElements.hasInScope(t.tagID) || (n = null) : (e.activeFormattingElements.removeEntry(n), n = null) : Pp(e, t), n;
|
|
12374
12374
|
}
|
|
12375
|
-
function
|
|
12375
|
+
function DE(e, t) {
|
|
12376
12376
|
let n = null, r = e.openElements.stackTop;
|
|
12377
12377
|
for (; r >= 0; r--) {
|
|
12378
12378
|
const l = e.openElements.items[r];
|
|
@@ -12382,7 +12382,7 @@ function LE(e, t) {
|
|
|
12382
12382
|
}
|
|
12383
12383
|
return n || (e.openElements.shortenToLength(Math.max(r, 0)), e.activeFormattingElements.removeEntry(t)), n;
|
|
12384
12384
|
}
|
|
12385
|
-
function
|
|
12385
|
+
function LE(e, t, n) {
|
|
12386
12386
|
let r = t, l = e.openElements.getCommonAncestor(t);
|
|
12387
12387
|
for (let a = 0, i = l; i !== n; a++, i = l) {
|
|
12388
12388
|
l = e.openElements.getCommonAncestor(i);
|
|
@@ -12413,11 +12413,11 @@ function hu(e, t) {
|
|
|
12413
12413
|
const r = RE(e, t);
|
|
12414
12414
|
if (!r)
|
|
12415
12415
|
break;
|
|
12416
|
-
const l =
|
|
12416
|
+
const l = DE(e, r);
|
|
12417
12417
|
if (!l)
|
|
12418
12418
|
break;
|
|
12419
12419
|
e.activeFormattingElements.bookmark = r;
|
|
12420
|
-
const a =
|
|
12420
|
+
const a = LE(e, l, r.element), i = e.openElements.getCommonAncestor(r.element);
|
|
12421
12421
|
e.treeAdapter.detachNode(a), i && BE(e, i, a), FE(e, l, r);
|
|
12422
12422
|
}
|
|
12423
12423
|
}
|
|
@@ -12447,20 +12447,20 @@ function pu(e, t) {
|
|
|
12447
12447
|
function zE(e, t) {
|
|
12448
12448
|
e._setDocumentType(t);
|
|
12449
12449
|
const n = t.forceQuirks ? Vt.QUIRKS : gE(t);
|
|
12450
|
-
bE(t) || e._err(t, Y.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode =
|
|
12450
|
+
bE(t) || e._err(t, Y.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = L.BEFORE_HTML;
|
|
12451
12451
|
}
|
|
12452
12452
|
function pl(e, t) {
|
|
12453
|
-
e._err(t, Y.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, Vt.QUIRKS), e.insertionMode =
|
|
12453
|
+
e._err(t, Y.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, Vt.QUIRKS), e.insertionMode = L.BEFORE_HTML, e._processToken(t);
|
|
12454
12454
|
}
|
|
12455
12455
|
function VE(e, t) {
|
|
12456
|
-
t.tagID === p.HTML ? (e._insertElement(t, Q.HTML), e.insertionMode =
|
|
12456
|
+
t.tagID === p.HTML ? (e._insertElement(t, Q.HTML), e.insertionMode = L.BEFORE_HEAD) : Sl(e, t);
|
|
12457
12457
|
}
|
|
12458
12458
|
function $E(e, t) {
|
|
12459
12459
|
const n = t.tagID;
|
|
12460
12460
|
(n === p.HTML || n === p.HEAD || n === p.BODY || n === p.BR) && Sl(e, t);
|
|
12461
12461
|
}
|
|
12462
12462
|
function Sl(e, t) {
|
|
12463
|
-
e._insertFakeRootElement(), e.insertionMode =
|
|
12463
|
+
e._insertFakeRootElement(), e.insertionMode = L.BEFORE_HEAD, e._processToken(t);
|
|
12464
12464
|
}
|
|
12465
12465
|
function qE(e, t) {
|
|
12466
12466
|
switch (t.tagID) {
|
|
@@ -12469,7 +12469,7 @@ function qE(e, t) {
|
|
|
12469
12469
|
break;
|
|
12470
12470
|
}
|
|
12471
12471
|
case p.HEAD: {
|
|
12472
|
-
e._insertElement(t, Q.HTML), e.headElement = e.openElements.current, e.insertionMode =
|
|
12472
|
+
e._insertElement(t, Q.HTML), e.headElement = e.openElements.current, e.insertionMode = L.IN_HEAD;
|
|
12473
12473
|
break;
|
|
12474
12474
|
}
|
|
12475
12475
|
default:
|
|
@@ -12481,7 +12481,7 @@ function WE(e, t) {
|
|
|
12481
12481
|
n === p.HEAD || n === p.BODY || n === p.HTML || n === p.BR ? kl(e, t) : e._err(t, Y.endTagWithoutMatchingOpenElement);
|
|
12482
12482
|
}
|
|
12483
12483
|
function kl(e, t) {
|
|
12484
|
-
e._insertFakeElement(z.HEAD, p.HEAD), e.headElement = e.openElements.current, e.insertionMode =
|
|
12484
|
+
e._insertFakeElement(z.HEAD, p.HEAD), e.headElement = e.openElements.current, e.insertionMode = L.IN_HEAD, e._processToken(t);
|
|
12485
12485
|
}
|
|
12486
12486
|
function jt(e, t) {
|
|
12487
12487
|
switch (t.tagID) {
|
|
@@ -12502,7 +12502,7 @@ function jt(e, t) {
|
|
|
12502
12502
|
break;
|
|
12503
12503
|
}
|
|
12504
12504
|
case p.NOSCRIPT: {
|
|
12505
|
-
e.options.scriptingEnabled ? e._switchToTextParsing(t, je.RAWTEXT) : (e._insertElement(t, Q.HTML), e.insertionMode =
|
|
12505
|
+
e.options.scriptingEnabled ? e._switchToTextParsing(t, je.RAWTEXT) : (e._insertElement(t, Q.HTML), e.insertionMode = L.IN_HEAD_NO_SCRIPT);
|
|
12506
12506
|
break;
|
|
12507
12507
|
}
|
|
12508
12508
|
case p.NOFRAMES:
|
|
@@ -12515,7 +12515,7 @@ function jt(e, t) {
|
|
|
12515
12515
|
break;
|
|
12516
12516
|
}
|
|
12517
12517
|
case p.TEMPLATE: {
|
|
12518
|
-
e._insertTemplate(t), e.activeFormattingElements.insertMarker(), e.framesetOk = !1, e.insertionMode =
|
|
12518
|
+
e._insertTemplate(t), e.activeFormattingElements.insertMarker(), e.framesetOk = !1, e.insertionMode = L.IN_TEMPLATE, e.tmplInsertionModeStack.unshift(L.IN_TEMPLATE);
|
|
12519
12519
|
break;
|
|
12520
12520
|
}
|
|
12521
12521
|
case p.HEAD: {
|
|
@@ -12529,7 +12529,7 @@ function jt(e, t) {
|
|
|
12529
12529
|
function YE(e, t) {
|
|
12530
12530
|
switch (t.tagID) {
|
|
12531
12531
|
case p.HEAD: {
|
|
12532
|
-
e.openElements.pop(), e.insertionMode =
|
|
12532
|
+
e.openElements.pop(), e.insertionMode = L.AFTER_HEAD;
|
|
12533
12533
|
break;
|
|
12534
12534
|
}
|
|
12535
12535
|
case p.BODY:
|
|
@@ -12550,7 +12550,7 @@ function xr(e, t) {
|
|
|
12550
12550
|
e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== p.TEMPLATE && e._err(t, Y.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(p.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, Y.endTagWithoutMatchingOpenElement);
|
|
12551
12551
|
}
|
|
12552
12552
|
function Al(e, t) {
|
|
12553
|
-
e.openElements.pop(), e.insertionMode =
|
|
12553
|
+
e.openElements.pop(), e.insertionMode = L.AFTER_HEAD, e._processToken(t);
|
|
12554
12554
|
}
|
|
12555
12555
|
function jE(e, t) {
|
|
12556
12556
|
switch (t.tagID) {
|
|
@@ -12579,7 +12579,7 @@ function jE(e, t) {
|
|
|
12579
12579
|
function KE(e, t) {
|
|
12580
12580
|
switch (t.tagID) {
|
|
12581
12581
|
case p.NOSCRIPT: {
|
|
12582
|
-
e.openElements.pop(), e.insertionMode =
|
|
12582
|
+
e.openElements.pop(), e.insertionMode = L.IN_HEAD;
|
|
12583
12583
|
break;
|
|
12584
12584
|
}
|
|
12585
12585
|
case p.BR: {
|
|
@@ -12592,7 +12592,7 @@ function KE(e, t) {
|
|
|
12592
12592
|
}
|
|
12593
12593
|
function Nl(e, t) {
|
|
12594
12594
|
const n = t.type === we.EOF ? Y.openElementsLeftAfterEof : Y.disallowedContentInNoscriptInHead;
|
|
12595
|
-
e._err(t, n), e.openElements.pop(), e.insertionMode =
|
|
12595
|
+
e._err(t, n), e.openElements.pop(), e.insertionMode = L.IN_HEAD, e._processToken(t);
|
|
12596
12596
|
}
|
|
12597
12597
|
function GE(e, t) {
|
|
12598
12598
|
switch (t.tagID) {
|
|
@@ -12601,11 +12601,11 @@ function GE(e, t) {
|
|
|
12601
12601
|
break;
|
|
12602
12602
|
}
|
|
12603
12603
|
case p.BODY: {
|
|
12604
|
-
e._insertElement(t, Q.HTML), e.framesetOk = !1, e.insertionMode =
|
|
12604
|
+
e._insertElement(t, Q.HTML), e.framesetOk = !1, e.insertionMode = L.IN_BODY;
|
|
12605
12605
|
break;
|
|
12606
12606
|
}
|
|
12607
12607
|
case p.FRAMESET: {
|
|
12608
|
-
e._insertElement(t, Q.HTML), e.insertionMode =
|
|
12608
|
+
e._insertElement(t, Q.HTML), e.insertionMode = L.IN_FRAMESET;
|
|
12609
12609
|
break;
|
|
12610
12610
|
}
|
|
12611
12611
|
case p.BASE:
|
|
@@ -12646,7 +12646,7 @@ function QE(e, t) {
|
|
|
12646
12646
|
}
|
|
12647
12647
|
}
|
|
12648
12648
|
function wl(e, t) {
|
|
12649
|
-
e._insertFakeElement(z.BODY, p.BODY), e.insertionMode =
|
|
12649
|
+
e._insertFakeElement(z.BODY, p.BODY), e.insertionMode = L.IN_BODY, Ai(e, t);
|
|
12650
12650
|
}
|
|
12651
12651
|
function Ai(e, t) {
|
|
12652
12652
|
switch (t.type) {
|
|
@@ -12691,7 +12691,7 @@ function JE(e, t) {
|
|
|
12691
12691
|
}
|
|
12692
12692
|
function ZE(e, t) {
|
|
12693
12693
|
const n = e.openElements.tryPeekProperlyNestedBodyElement();
|
|
12694
|
-
e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, Q.HTML), e.insertionMode =
|
|
12694
|
+
e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, Q.HTML), e.insertionMode = L.IN_FRAMESET);
|
|
12695
12695
|
}
|
|
12696
12696
|
function eT(e, t) {
|
|
12697
12697
|
e.openElements.hasInButtonScope(p.P) && e._closePElement(), e._insertElement(t, Q.HTML);
|
|
@@ -12740,17 +12740,17 @@ function cT(e, t) {
|
|
|
12740
12740
|
e._reconstructActiveFormattingElements(), e._insertElement(t, Q.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
|
|
12741
12741
|
}
|
|
12742
12742
|
function dT(e, t) {
|
|
12743
|
-
e.treeAdapter.getDocumentMode(e.document) !== Vt.QUIRKS && e.openElements.hasInButtonScope(p.P) && e._closePElement(), e._insertElement(t, Q.HTML), e.framesetOk = !1, e.insertionMode =
|
|
12743
|
+
e.treeAdapter.getDocumentMode(e.document) !== Vt.QUIRKS && e.openElements.hasInButtonScope(p.P) && e._closePElement(), e._insertElement(t, Q.HTML), e.framesetOk = !1, e.insertionMode = L.IN_TABLE;
|
|
12744
12744
|
}
|
|
12745
|
-
function
|
|
12745
|
+
function Dp(e, t) {
|
|
12746
12746
|
e._reconstructActiveFormattingElements(), e._appendElement(t, Q.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
|
|
12747
12747
|
}
|
|
12748
|
-
function
|
|
12748
|
+
function Lp(e) {
|
|
12749
12749
|
const t = xp(e, ur.TYPE);
|
|
12750
12750
|
return t != null && t.toLowerCase() === IE;
|
|
12751
12751
|
}
|
|
12752
12752
|
function fT(e, t) {
|
|
12753
|
-
e._reconstructActiveFormattingElements(), e._appendElement(t, Q.HTML),
|
|
12753
|
+
e._reconstructActiveFormattingElements(), e._appendElement(t, Q.HTML), Lp(t) || (e.framesetOk = !1), t.ackSelfClosing = !0;
|
|
12754
12754
|
}
|
|
12755
12755
|
function hT(e, t) {
|
|
12756
12756
|
e._appendElement(t, Q.HTML), t.ackSelfClosing = !0;
|
|
@@ -12759,10 +12759,10 @@ function pT(e, t) {
|
|
|
12759
12759
|
e.openElements.hasInButtonScope(p.P) && e._closePElement(), e._appendElement(t, Q.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
|
|
12760
12760
|
}
|
|
12761
12761
|
function mT(e, t) {
|
|
12762
|
-
t.tagName = z.IMG, t.tagID = p.IMG,
|
|
12762
|
+
t.tagName = z.IMG, t.tagID = p.IMG, Dp(e, t);
|
|
12763
12763
|
}
|
|
12764
12764
|
function bT(e, t) {
|
|
12765
|
-
e._insertElement(t, Q.HTML), e.skipNextNewLine = !0, e.tokenizer.state = je.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode =
|
|
12765
|
+
e._insertElement(t, Q.HTML), e.skipNextNewLine = !0, e.tokenizer.state = je.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = L.TEXT;
|
|
12766
12766
|
}
|
|
12767
12767
|
function gT(e, t) {
|
|
12768
12768
|
e.openElements.hasInButtonScope(p.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, je.RAWTEXT);
|
|
@@ -12774,7 +12774,7 @@ function _d(e, t) {
|
|
|
12774
12774
|
e._switchToTextParsing(t, je.RAWTEXT);
|
|
12775
12775
|
}
|
|
12776
12776
|
function yT(e, t) {
|
|
12777
|
-
e._reconstructActiveFormattingElements(), e._insertElement(t, Q.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode ===
|
|
12777
|
+
e._reconstructActiveFormattingElements(), e._insertElement(t, Q.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === L.IN_TABLE || e.insertionMode === L.IN_CAPTION || e.insertionMode === L.IN_TABLE_BODY || e.insertionMode === L.IN_ROW || e.insertionMode === L.IN_CELL ? L.IN_SELECT_IN_TABLE : L.IN_SELECT;
|
|
12778
12778
|
}
|
|
12779
12779
|
function ET(e, t) {
|
|
12780
12780
|
e.openElements.currentTagId === p.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, Q.HTML);
|
|
@@ -12864,7 +12864,7 @@ function gt(e, t) {
|
|
|
12864
12864
|
case p.AREA:
|
|
12865
12865
|
case p.EMBED:
|
|
12866
12866
|
case p.KEYGEN: {
|
|
12867
|
-
|
|
12867
|
+
Dp(e, t);
|
|
12868
12868
|
break;
|
|
12869
12869
|
}
|
|
12870
12870
|
case p.HR: {
|
|
@@ -13005,13 +13005,13 @@ function gt(e, t) {
|
|
|
13005
13005
|
}
|
|
13006
13006
|
}
|
|
13007
13007
|
function kT(e, t) {
|
|
13008
|
-
if (e.openElements.hasInScope(p.BODY) && (e.insertionMode =
|
|
13008
|
+
if (e.openElements.hasInScope(p.BODY) && (e.insertionMode = L.AFTER_BODY, e.options.sourceCodeLocationInfo)) {
|
|
13009
13009
|
const n = e.openElements.tryPeekProperlyNestedBodyElement();
|
|
13010
13010
|
n && e._setEndLocation(n, t);
|
|
13011
13011
|
}
|
|
13012
13012
|
}
|
|
13013
13013
|
function AT(e, t) {
|
|
13014
|
-
e.openElements.hasInScope(p.BODY) && (e.insertionMode =
|
|
13014
|
+
e.openElements.hasInScope(p.BODY) && (e.insertionMode = L.AFTER_BODY, Wp(e, t));
|
|
13015
13015
|
}
|
|
13016
13016
|
function NT(e, t) {
|
|
13017
13017
|
const n = t.tagID;
|
|
@@ -13038,7 +13038,7 @@ function RT(e, t) {
|
|
|
13038
13038
|
const n = t.tagID;
|
|
13039
13039
|
e.openElements.hasInScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker());
|
|
13040
13040
|
}
|
|
13041
|
-
function
|
|
13041
|
+
function DT(e) {
|
|
13042
13042
|
e._reconstructActiveFormattingElements(), e._insertFakeElement(z.BR, p.BR), e.openElements.pop(), e.framesetOk = !1;
|
|
13043
13043
|
}
|
|
13044
13044
|
function Pp(e, t) {
|
|
@@ -13125,7 +13125,7 @@ function Ni(e, t) {
|
|
|
13125
13125
|
break;
|
|
13126
13126
|
}
|
|
13127
13127
|
case p.BR: {
|
|
13128
|
-
|
|
13128
|
+
DT(e);
|
|
13129
13129
|
break;
|
|
13130
13130
|
}
|
|
13131
13131
|
case p.BODY: {
|
|
@@ -13157,7 +13157,7 @@ function Ni(e, t) {
|
|
|
13157
13157
|
function Bp(e, t) {
|
|
13158
13158
|
e.tmplInsertionModeStack.length > 0 ? qp(e, t) : pu(e, t);
|
|
13159
13159
|
}
|
|
13160
|
-
function
|
|
13160
|
+
function LT(e, t) {
|
|
13161
13161
|
var n;
|
|
13162
13162
|
t.tagID === p.SCRIPT && ((n = e.scriptHandler) === null || n === void 0 || n.call(e, e.openElements.current)), e.openElements.pop(), e.insertionMode = e.originalInsertionMode;
|
|
13163
13163
|
}
|
|
@@ -13166,7 +13166,7 @@ function PT(e, t) {
|
|
|
13166
13166
|
}
|
|
13167
13167
|
function Cs(e, t) {
|
|
13168
13168
|
if (e.openElements.currentTagId !== void 0 && Op.has(e.openElements.currentTagId))
|
|
13169
|
-
switch (e.pendingCharacterTokens.length = 0, e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode =
|
|
13169
|
+
switch (e.pendingCharacterTokens.length = 0, e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode = L.IN_TABLE_TEXT, t.type) {
|
|
13170
13170
|
case we.CHARACTER: {
|
|
13171
13171
|
Hp(e, t);
|
|
13172
13172
|
break;
|
|
@@ -13180,25 +13180,25 @@ function Cs(e, t) {
|
|
|
13180
13180
|
ra(e, t);
|
|
13181
13181
|
}
|
|
13182
13182
|
function BT(e, t) {
|
|
13183
|
-
e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, Q.HTML), e.insertionMode =
|
|
13183
|
+
e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, Q.HTML), e.insertionMode = L.IN_CAPTION;
|
|
13184
13184
|
}
|
|
13185
13185
|
function FT(e, t) {
|
|
13186
|
-
e.openElements.clearBackToTableContext(), e._insertElement(t, Q.HTML), e.insertionMode =
|
|
13186
|
+
e.openElements.clearBackToTableContext(), e._insertElement(t, Q.HTML), e.insertionMode = L.IN_COLUMN_GROUP;
|
|
13187
13187
|
}
|
|
13188
13188
|
function HT(e, t) {
|
|
13189
|
-
e.openElements.clearBackToTableContext(), e._insertFakeElement(z.COLGROUP, p.COLGROUP), e.insertionMode =
|
|
13189
|
+
e.openElements.clearBackToTableContext(), e._insertFakeElement(z.COLGROUP, p.COLGROUP), e.insertionMode = L.IN_COLUMN_GROUP, mu(e, t);
|
|
13190
13190
|
}
|
|
13191
13191
|
function UT(e, t) {
|
|
13192
|
-
e.openElements.clearBackToTableContext(), e._insertElement(t, Q.HTML), e.insertionMode =
|
|
13192
|
+
e.openElements.clearBackToTableContext(), e._insertElement(t, Q.HTML), e.insertionMode = L.IN_TABLE_BODY;
|
|
13193
13193
|
}
|
|
13194
13194
|
function zT(e, t) {
|
|
13195
|
-
e.openElements.clearBackToTableContext(), e._insertFakeElement(z.TBODY, p.TBODY), e.insertionMode =
|
|
13195
|
+
e.openElements.clearBackToTableContext(), e._insertFakeElement(z.TBODY, p.TBODY), e.insertionMode = L.IN_TABLE_BODY, wi(e, t);
|
|
13196
13196
|
}
|
|
13197
13197
|
function VT(e, t) {
|
|
13198
13198
|
e.openElements.hasInTableScope(p.TABLE) && (e.openElements.popUntilTagNamePopped(p.TABLE), e._resetInsertionMode(), e._processStartTag(t));
|
|
13199
13199
|
}
|
|
13200
13200
|
function $T(e, t) {
|
|
13201
|
-
|
|
13201
|
+
Lp(t) ? e._appendElement(t, Q.HTML) : ra(e, t), t.ackSelfClosing = !0;
|
|
13202
13202
|
}
|
|
13203
13203
|
function qT(e, t) {
|
|
13204
13204
|
!e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, Q.HTML), e.formElement = e.openElements.current, e.openElements.pop());
|
|
@@ -13300,14 +13300,14 @@ function ml(e, t) {
|
|
|
13300
13300
|
const Up = /* @__PURE__ */ new Set([p.CAPTION, p.COL, p.COLGROUP, p.TBODY, p.TD, p.TFOOT, p.TH, p.THEAD, p.TR]);
|
|
13301
13301
|
function WT(e, t) {
|
|
13302
13302
|
const n = t.tagID;
|
|
13303
|
-
Up.has(n) ? e.openElements.hasInTableScope(p.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(p.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode =
|
|
13303
|
+
Up.has(n) ? e.openElements.hasInTableScope(p.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(p.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = L.IN_TABLE, $r(e, t)) : gt(e, t);
|
|
13304
13304
|
}
|
|
13305
13305
|
function YT(e, t) {
|
|
13306
13306
|
const n = t.tagID;
|
|
13307
13307
|
switch (n) {
|
|
13308
13308
|
case p.CAPTION:
|
|
13309
13309
|
case p.TABLE: {
|
|
13310
|
-
e.openElements.hasInTableScope(p.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(p.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode =
|
|
13310
|
+
e.openElements.hasInTableScope(p.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(p.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = L.IN_TABLE, n === p.TABLE && Ul(e, t));
|
|
13311
13311
|
break;
|
|
13312
13312
|
}
|
|
13313
13313
|
case p.BODY:
|
|
@@ -13346,7 +13346,7 @@ function mu(e, t) {
|
|
|
13346
13346
|
function jT(e, t) {
|
|
13347
13347
|
switch (t.tagID) {
|
|
13348
13348
|
case p.COLGROUP: {
|
|
13349
|
-
e.openElements.currentTagId === p.COLGROUP && (e.openElements.pop(), e.insertionMode =
|
|
13349
|
+
e.openElements.currentTagId === p.COLGROUP && (e.openElements.pop(), e.insertionMode = L.IN_TABLE);
|
|
13350
13350
|
break;
|
|
13351
13351
|
}
|
|
13352
13352
|
case p.TEMPLATE: {
|
|
@@ -13360,17 +13360,17 @@ function jT(e, t) {
|
|
|
13360
13360
|
}
|
|
13361
13361
|
}
|
|
13362
13362
|
function ei(e, t) {
|
|
13363
|
-
e.openElements.currentTagId === p.COLGROUP && (e.openElements.pop(), e.insertionMode =
|
|
13363
|
+
e.openElements.currentTagId === p.COLGROUP && (e.openElements.pop(), e.insertionMode = L.IN_TABLE, e._processToken(t));
|
|
13364
13364
|
}
|
|
13365
13365
|
function wi(e, t) {
|
|
13366
13366
|
switch (t.tagID) {
|
|
13367
13367
|
case p.TR: {
|
|
13368
|
-
e.openElements.clearBackToTableBodyContext(), e._insertElement(t, Q.HTML), e.insertionMode =
|
|
13368
|
+
e.openElements.clearBackToTableBodyContext(), e._insertElement(t, Q.HTML), e.insertionMode = L.IN_ROW;
|
|
13369
13369
|
break;
|
|
13370
13370
|
}
|
|
13371
13371
|
case p.TH:
|
|
13372
13372
|
case p.TD: {
|
|
13373
|
-
e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(z.TR, p.TR), e.insertionMode =
|
|
13373
|
+
e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(z.TR, p.TR), e.insertionMode = L.IN_ROW, Ii(e, t);
|
|
13374
13374
|
break;
|
|
13375
13375
|
}
|
|
13376
13376
|
case p.CAPTION:
|
|
@@ -13379,7 +13379,7 @@ function wi(e, t) {
|
|
|
13379
13379
|
case p.TBODY:
|
|
13380
13380
|
case p.TFOOT:
|
|
13381
13381
|
case p.THEAD: {
|
|
13382
|
-
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode =
|
|
13382
|
+
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = L.IN_TABLE, $r(e, t));
|
|
13383
13383
|
break;
|
|
13384
13384
|
}
|
|
13385
13385
|
default:
|
|
@@ -13392,11 +13392,11 @@ function go(e, t) {
|
|
|
13392
13392
|
case p.TBODY:
|
|
13393
13393
|
case p.TFOOT:
|
|
13394
13394
|
case p.THEAD: {
|
|
13395
|
-
e.openElements.hasInTableScope(n) && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode =
|
|
13395
|
+
e.openElements.hasInTableScope(n) && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = L.IN_TABLE);
|
|
13396
13396
|
break;
|
|
13397
13397
|
}
|
|
13398
13398
|
case p.TABLE: {
|
|
13399
|
-
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode =
|
|
13399
|
+
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = L.IN_TABLE, Ul(e, t));
|
|
13400
13400
|
break;
|
|
13401
13401
|
}
|
|
13402
13402
|
case p.BODY:
|
|
@@ -13416,7 +13416,7 @@ function Ii(e, t) {
|
|
|
13416
13416
|
switch (t.tagID) {
|
|
13417
13417
|
case p.TH:
|
|
13418
13418
|
case p.TD: {
|
|
13419
|
-
e.openElements.clearBackToTableRowContext(), e._insertElement(t, Q.HTML), e.insertionMode =
|
|
13419
|
+
e.openElements.clearBackToTableRowContext(), e._insertElement(t, Q.HTML), e.insertionMode = L.IN_CELL, e.activeFormattingElements.insertMarker();
|
|
13420
13420
|
break;
|
|
13421
13421
|
}
|
|
13422
13422
|
case p.CAPTION:
|
|
@@ -13426,7 +13426,7 @@ function Ii(e, t) {
|
|
|
13426
13426
|
case p.TFOOT:
|
|
13427
13427
|
case p.THEAD:
|
|
13428
13428
|
case p.TR: {
|
|
13429
|
-
e.openElements.hasInTableScope(p.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode =
|
|
13429
|
+
e.openElements.hasInTableScope(p.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = L.IN_TABLE_BODY, wi(e, t));
|
|
13430
13430
|
break;
|
|
13431
13431
|
}
|
|
13432
13432
|
default:
|
|
@@ -13436,17 +13436,17 @@ function Ii(e, t) {
|
|
|
13436
13436
|
function zp(e, t) {
|
|
13437
13437
|
switch (t.tagID) {
|
|
13438
13438
|
case p.TR: {
|
|
13439
|
-
e.openElements.hasInTableScope(p.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode =
|
|
13439
|
+
e.openElements.hasInTableScope(p.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = L.IN_TABLE_BODY);
|
|
13440
13440
|
break;
|
|
13441
13441
|
}
|
|
13442
13442
|
case p.TABLE: {
|
|
13443
|
-
e.openElements.hasInTableScope(p.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode =
|
|
13443
|
+
e.openElements.hasInTableScope(p.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = L.IN_TABLE_BODY, go(e, t));
|
|
13444
13444
|
break;
|
|
13445
13445
|
}
|
|
13446
13446
|
case p.TBODY:
|
|
13447
13447
|
case p.TFOOT:
|
|
13448
13448
|
case p.THEAD: {
|
|
13449
|
-
(e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(p.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode =
|
|
13449
|
+
(e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(p.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = L.IN_TABLE_BODY, go(e, t));
|
|
13450
13450
|
break;
|
|
13451
13451
|
}
|
|
13452
13452
|
case p.BODY:
|
|
@@ -13470,7 +13470,7 @@ function GT(e, t) {
|
|
|
13470
13470
|
switch (n) {
|
|
13471
13471
|
case p.TD:
|
|
13472
13472
|
case p.TH: {
|
|
13473
|
-
e.openElements.hasInTableScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker(), e.insertionMode =
|
|
13473
|
+
e.openElements.hasInTableScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = L.IN_ROW);
|
|
13474
13474
|
break;
|
|
13475
13475
|
}
|
|
13476
13476
|
case p.TABLE:
|
|
@@ -13573,24 +13573,24 @@ function JT(e, t) {
|
|
|
13573
13573
|
case p.TBODY:
|
|
13574
13574
|
case p.TFOOT:
|
|
13575
13575
|
case p.THEAD: {
|
|
13576
|
-
e.tmplInsertionModeStack[0] =
|
|
13576
|
+
e.tmplInsertionModeStack[0] = L.IN_TABLE, e.insertionMode = L.IN_TABLE, $r(e, t);
|
|
13577
13577
|
break;
|
|
13578
13578
|
}
|
|
13579
13579
|
case p.COL: {
|
|
13580
|
-
e.tmplInsertionModeStack[0] =
|
|
13580
|
+
e.tmplInsertionModeStack[0] = L.IN_COLUMN_GROUP, e.insertionMode = L.IN_COLUMN_GROUP, mu(e, t);
|
|
13581
13581
|
break;
|
|
13582
13582
|
}
|
|
13583
13583
|
case p.TR: {
|
|
13584
|
-
e.tmplInsertionModeStack[0] =
|
|
13584
|
+
e.tmplInsertionModeStack[0] = L.IN_TABLE_BODY, e.insertionMode = L.IN_TABLE_BODY, wi(e, t);
|
|
13585
13585
|
break;
|
|
13586
13586
|
}
|
|
13587
13587
|
case p.TD:
|
|
13588
13588
|
case p.TH: {
|
|
13589
|
-
e.tmplInsertionModeStack[0] =
|
|
13589
|
+
e.tmplInsertionModeStack[0] = L.IN_ROW, e.insertionMode = L.IN_ROW, Ii(e, t);
|
|
13590
13590
|
break;
|
|
13591
13591
|
}
|
|
13592
13592
|
default:
|
|
13593
|
-
e.tmplInsertionModeStack[0] =
|
|
13593
|
+
e.tmplInsertionModeStack[0] = L.IN_BODY, e.insertionMode = L.IN_BODY, gt(e, t);
|
|
13594
13594
|
}
|
|
13595
13595
|
}
|
|
13596
13596
|
function ZT(e, t) {
|
|
@@ -13605,7 +13605,7 @@ function e6(e, t) {
|
|
|
13605
13605
|
function Wp(e, t) {
|
|
13606
13606
|
var n;
|
|
13607
13607
|
if (t.tagID === p.HTML) {
|
|
13608
|
-
if (e.fragmentContext || (e.insertionMode =
|
|
13608
|
+
if (e.fragmentContext || (e.insertionMode = L.AFTER_AFTER_BODY), e.options.sourceCodeLocationInfo && e.openElements.tagIDs[0] === p.HTML) {
|
|
13609
13609
|
e._setEndLocation(e.openElements.items[0], t);
|
|
13610
13610
|
const r = e.openElements.items[1];
|
|
13611
13611
|
r && !(!((n = e.treeAdapter.getNodeSourceCodeLocation(r)) === null || n === void 0) && n.endTag) && e._setEndLocation(r, t);
|
|
@@ -13614,7 +13614,7 @@ function Wp(e, t) {
|
|
|
13614
13614
|
ti(e, t);
|
|
13615
13615
|
}
|
|
13616
13616
|
function ti(e, t) {
|
|
13617
|
-
e.insertionMode =
|
|
13617
|
+
e.insertionMode = L.IN_BODY, Ai(e, t);
|
|
13618
13618
|
}
|
|
13619
13619
|
function t6(e, t) {
|
|
13620
13620
|
switch (t.tagID) {
|
|
@@ -13637,7 +13637,7 @@ function t6(e, t) {
|
|
|
13637
13637
|
}
|
|
13638
13638
|
}
|
|
13639
13639
|
function n6(e, t) {
|
|
13640
|
-
t.tagID === p.FRAMESET && !e.openElements.isRootHtmlElementCurrent() && (e.openElements.pop(), !e.fragmentContext && e.openElements.currentTagId !== p.FRAMESET && (e.insertionMode =
|
|
13640
|
+
t.tagID === p.FRAMESET && !e.openElements.isRootHtmlElementCurrent() && (e.openElements.pop(), !e.fragmentContext && e.openElements.currentTagId !== p.FRAMESET && (e.insertionMode = L.AFTER_FRAMESET));
|
|
13641
13641
|
}
|
|
13642
13642
|
function r6(e, t) {
|
|
13643
13643
|
switch (t.tagID) {
|
|
@@ -13652,13 +13652,13 @@ function r6(e, t) {
|
|
|
13652
13652
|
}
|
|
13653
13653
|
}
|
|
13654
13654
|
function l6(e, t) {
|
|
13655
|
-
t.tagID === p.HTML && (e.insertionMode =
|
|
13655
|
+
t.tagID === p.HTML && (e.insertionMode = L.AFTER_AFTER_FRAMESET);
|
|
13656
13656
|
}
|
|
13657
13657
|
function a6(e, t) {
|
|
13658
13658
|
t.tagID === p.HTML ? gt(e, t) : $a(e, t);
|
|
13659
13659
|
}
|
|
13660
13660
|
function $a(e, t) {
|
|
13661
|
-
e.insertionMode =
|
|
13661
|
+
e.insertionMode = L.IN_BODY, Ai(e, t);
|
|
13662
13662
|
}
|
|
13663
13663
|
function i6(e, t) {
|
|
13664
13664
|
switch (t.tagID) {
|
|
@@ -14213,11 +14213,11 @@ function O6(e, t) {
|
|
|
14213
14213
|
const c = s[u];
|
|
14214
14214
|
let d = Rd(
|
|
14215
14215
|
e,
|
|
14216
|
-
|
|
14216
|
+
Dd(a, u),
|
|
14217
14217
|
u,
|
|
14218
14218
|
c
|
|
14219
14219
|
);
|
|
14220
|
-
d == null && (d = Rd(e,
|
|
14220
|
+
d == null && (d = Rd(e, Dd(i, u), u, c)), d != null && (o[u] = d);
|
|
14221
14221
|
}
|
|
14222
14222
|
if (l && Nn.call(l, n)) {
|
|
14223
14223
|
const c = l[n];
|
|
@@ -14282,7 +14282,7 @@ function aa(e, t) {
|
|
|
14282
14282
|
);
|
|
14283
14283
|
t.data && (e.data = gr(t.data)), n && (e.position = n);
|
|
14284
14284
|
}
|
|
14285
|
-
function
|
|
14285
|
+
function Dd(e, t) {
|
|
14286
14286
|
let n, r = -1;
|
|
14287
14287
|
if (e)
|
|
14288
14288
|
for (; ++r < e.length; ) {
|
|
@@ -14294,7 +14294,7 @@ function Ld(e, t) {
|
|
|
14294
14294
|
if (t.length > 4 && t.slice(0, 4).toLowerCase() === "data")
|
|
14295
14295
|
return n;
|
|
14296
14296
|
}
|
|
14297
|
-
function
|
|
14297
|
+
function D6(e) {
|
|
14298
14298
|
return function(t) {
|
|
14299
14299
|
return (
|
|
14300
14300
|
/** @type {Root} */
|
|
@@ -14302,7 +14302,7 @@ function L6(e) {
|
|
|
14302
14302
|
);
|
|
14303
14303
|
};
|
|
14304
14304
|
}
|
|
14305
|
-
function
|
|
14305
|
+
function Ld(e, t) {
|
|
14306
14306
|
const n = String(e);
|
|
14307
14307
|
if (typeof t != "string")
|
|
14308
14308
|
throw new TypeError("Expected character");
|
|
@@ -14311,7 +14311,7 @@ function Dd(e, t) {
|
|
|
14311
14311
|
r++, l = n.indexOf(t, l + t.length);
|
|
14312
14312
|
return r;
|
|
14313
14313
|
}
|
|
14314
|
-
const
|
|
14314
|
+
const L6 = [
|
|
14315
14315
|
"AElig",
|
|
14316
14316
|
"AMP",
|
|
14317
14317
|
"Aacute",
|
|
@@ -14506,7 +14506,7 @@ function bu(e, t) {
|
|
|
14506
14506
|
const V = e.charCodeAt(I);
|
|
14507
14507
|
if (!k(V))
|
|
14508
14508
|
break;
|
|
14509
|
-
N += String.fromCharCode(V), M === "named" &&
|
|
14509
|
+
N += String.fromCharCode(V), M === "named" && L6.includes(N) && (x = N, w = Bl(N));
|
|
14510
14510
|
}
|
|
14511
14511
|
let R = e.charCodeAt(I) === 59;
|
|
14512
14512
|
if (R) {
|
|
@@ -14752,7 +14752,7 @@ function eC(e) {
|
|
|
14752
14752
|
if (t.collapseEmptyAttributes !== !1 && !i) return a;
|
|
14753
14753
|
if (t.preferUnquoted && J6.test(i))
|
|
14754
14754
|
return a + "=" + i;
|
|
14755
|
-
const u = t.quote || o.options.quote || '"', c = u === '"' ? "'" : '"', d = t.quoteSmart &&
|
|
14755
|
+
const u = t.quote || o.options.quote || '"', c = u === '"' ? "'" : '"', d = t.quoteSmart && Ld(i, u) > Ld(i, c) ? c : u, h = s.type === "textDirective" ? [d] : [d, `
|
|
14756
14756
|
`, "\r"];
|
|
14757
14757
|
return a + "=" + d + G6(i, { subset: h }) + d;
|
|
14758
14758
|
}
|
|
@@ -14844,7 +14844,7 @@ function vu(e, t, n, r, l, a, i, s, o, u, c, d, h, f, m) {
|
|
|
14844
14844
|
return e.enter(r), e.enter(l), e.consume(E), e.exit(l), A;
|
|
14845
14845
|
}
|
|
14846
14846
|
function A(E) {
|
|
14847
|
-
return E === 35 ? (g = i, C(E)) : E === 46 ? (g = s, C(E)) : m && Re(E) ?
|
|
14847
|
+
return E === 35 ? (g = i, C(E)) : E === 46 ? (g = s, C(E)) : m && Re(E) ? De(e, A, "whitespace")(E) : !m && Ye(E) ? dn(e, A)(E) : E === null || fe(E) || Hl(E) || Fl(E) && E !== 45 && E !== 95 ? P(E) : (e.enter(a), e.enter(o), e.consume(E), x);
|
|
14848
14848
|
}
|
|
14849
14849
|
function C(E) {
|
|
14850
14850
|
const B = (
|
|
@@ -14875,13 +14875,13 @@ function vu(e, t, n, r, l, a, i, s, o, u, c, d, h, f, m) {
|
|
|
14875
14875
|
return e.consume(E), M;
|
|
14876
14876
|
}
|
|
14877
14877
|
function x(E) {
|
|
14878
|
-
return E === null || fe(E) || Hl(E) || Fl(E) && E !== 45 && E !== 46 && E !== 58 && E !== 95 ? (e.exit(o), m && Re(E) ?
|
|
14878
|
+
return E === null || fe(E) || Hl(E) || Fl(E) && E !== 45 && E !== 46 && E !== 58 && E !== 95 ? (e.exit(o), m && Re(E) ? De(e, w, "whitespace")(E) : !m && Ye(E) ? dn(e, w)(E) : w(E)) : (e.consume(E), x);
|
|
14879
14879
|
}
|
|
14880
14880
|
function w(E) {
|
|
14881
14881
|
return E === 61 ? (e.enter(u), e.consume(E), e.exit(u), N) : (e.exit(a), A(E));
|
|
14882
14882
|
}
|
|
14883
14883
|
function N(E) {
|
|
14884
|
-
return E === null || E === 60 || E === 61 || E === 62 || E === 96 || E === 125 || m && fe(E) ? n(E) : E === 34 || E === 39 ? (e.enter(c), e.enter(h), e.consume(E), e.exit(h), b = E, R) : m && Re(E) ?
|
|
14884
|
+
return E === null || E === 60 || E === 61 || E === 62 || E === 96 || E === 125 || m && fe(E) ? n(E) : E === 34 || E === 39 ? (e.enter(c), e.enter(h), e.consume(E), e.exit(h), b = E, R) : m && Re(E) ? De(e, N, "whitespace")(E) : !m && Ye(E) ? dn(e, N)(E) : (e.enter(d), e.enter(f), e.consume(E), b = void 0, k);
|
|
14885
14885
|
}
|
|
14886
14886
|
function k(E) {
|
|
14887
14887
|
return E === null || E === 34 || E === 39 || E === 60 || E === 61 || E === 62 || E === 96 ? n(E) : E === 125 || Ye(E) ? (e.exit(f), e.exit(d), e.exit(a), A(E)) : (e.consume(E), k);
|
|
@@ -14971,7 +14971,7 @@ function dC(e, t, n) {
|
|
|
14971
14971
|
return k === 123 ? e.attempt(cC, h, h)(k) : h(k);
|
|
14972
14972
|
}
|
|
14973
14973
|
function h(k) {
|
|
14974
|
-
return
|
|
14974
|
+
return De(e, f, "whitespace")(k);
|
|
14975
14975
|
}
|
|
14976
14976
|
function f(k) {
|
|
14977
14977
|
return e.exit("directiveContainerFence"), k === null ? w(k) : fe(k) ? r.interrupt ? t(k) : e.attempt(Na, m, w)(k) : n(k);
|
|
@@ -14983,7 +14983,7 @@ function dC(e, t, n) {
|
|
|
14983
14983
|
return e.attempt({
|
|
14984
14984
|
tokenize: N,
|
|
14985
14985
|
partial: !0
|
|
14986
|
-
}, x, a ?
|
|
14986
|
+
}, x, a ? De(e, b, "linePrefix", a + 1) : b)(k);
|
|
14987
14987
|
}
|
|
14988
14988
|
function b(k) {
|
|
14989
14989
|
return k === null ? x(k) : fe(k) ? e.check(Na, A, x)(k) : A(k);
|
|
@@ -15022,12 +15022,12 @@ function dC(e, t, n) {
|
|
|
15022
15022
|
}
|
|
15023
15023
|
function N(k, R, _) {
|
|
15024
15024
|
let F = 0;
|
|
15025
|
-
return
|
|
15025
|
+
return De(k, V, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
15026
15026
|
function V(B) {
|
|
15027
15027
|
return k.enter("directiveContainerFence"), k.enter("directiveContainerSequence"), P(B);
|
|
15028
15028
|
}
|
|
15029
15029
|
function P(B) {
|
|
15030
|
-
return B === 58 ? (k.consume(B), F++, P) : F < i ? _(B) : (k.exit("directiveContainerSequence"),
|
|
15030
|
+
return B === 58 ? (k.consume(B), F++, P) : F < i ? _(B) : (k.exit("directiveContainerSequence"), De(k, E, "whitespace")(B));
|
|
15031
15031
|
}
|
|
15032
15032
|
function E(B) {
|
|
15033
15033
|
return B === null || fe(B) ? (k.exit("directiveContainerFence"), R(B)) : _(B);
|
|
@@ -15075,7 +15075,7 @@ function vC(e, t, n) {
|
|
|
15075
15075
|
return c === 123 ? e.attempt(gC, o, o)(c) : o(c);
|
|
15076
15076
|
}
|
|
15077
15077
|
function o(c) {
|
|
15078
|
-
return
|
|
15078
|
+
return De(e, u, "whitespace")(c);
|
|
15079
15079
|
}
|
|
15080
15080
|
function u(c) {
|
|
15081
15081
|
return c === null || fe(c) ? (e.exit("directiveLeaf"), t(c)) : n(c);
|
|
@@ -15175,7 +15175,7 @@ const _C = {
|
|
|
15175
15175
|
});
|
|
15176
15176
|
}, MC = (e) => e.replace(/\*\*([^*\n]+?)\*\*/g, "<strong>$1</strong>"), RC = ({
|
|
15177
15177
|
children: e
|
|
15178
|
-
}) => /* @__PURE__ */ v("p", { style: { margin: 0 }, children: e }),
|
|
15178
|
+
}) => /* @__PURE__ */ v("p", { style: { margin: 0 }, children: e }), DC = ({
|
|
15179
15179
|
href: e,
|
|
15180
15180
|
children: t
|
|
15181
15181
|
}) => /* @__PURE__ */ W(
|
|
@@ -15198,18 +15198,18 @@ const _C = {
|
|
|
15198
15198
|
)
|
|
15199
15199
|
]
|
|
15200
15200
|
}
|
|
15201
|
-
),
|
|
15201
|
+
), LC = {
|
|
15202
15202
|
p: RC,
|
|
15203
|
-
a:
|
|
15203
|
+
a: DC
|
|
15204
15204
|
}, PC = [IC, OC], BC = [
|
|
15205
15205
|
S6,
|
|
15206
|
-
[
|
|
15206
|
+
[D6, _C]
|
|
15207
15207
|
], Vd = (e) => /* @__PURE__ */ v(
|
|
15208
15208
|
o3,
|
|
15209
15209
|
{
|
|
15210
15210
|
remarkPlugins: PC,
|
|
15211
15211
|
rehypePlugins: BC,
|
|
15212
|
-
components:
|
|
15212
|
+
components: LC,
|
|
15213
15213
|
children: MC(e)
|
|
15214
15214
|
}
|
|
15215
15215
|
), t0 = Wo(null), tl = () => Ah(t0), FC = (e) => document.body ?? e ?? document.documentElement, HC = ({
|
|
@@ -15780,7 +15780,7 @@ const i0 = ve.memo(
|
|
|
15780
15780
|
}, [s, u, a]), M = $(() => {
|
|
15781
15781
|
const N = m.current;
|
|
15782
15782
|
if (!N) return;
|
|
15783
|
-
const k = N.querySelector(".ant-select-selection-item"), R = N.querySelector(".ant-select-selection-placeholder"), _ = k || R, F = (_?.textContent || "").trim() || I(), V = N.querySelector(".ant-select-selector"), P = _ || V || N, E = window.getComputedStyle(P), B = _ ? E.fontSize : "16px", U = E.fontFamily || "sans-serif", q = E.fontWeight || "400", T = `${E.fontStyle || "normal"} ${q} ${B} ${U}`, ie = document.createElement("canvas").getContext("2d"),
|
|
15783
|
+
const k = N.querySelector(".ant-select-selection-item"), R = N.querySelector(".ant-select-selection-placeholder"), _ = k || R, F = (_?.textContent || "").trim() || I(), V = N.querySelector(".ant-select-selector"), P = _ || V || N, E = window.getComputedStyle(P), B = _ ? E.fontSize : "16px", U = E.fontFamily || "sans-serif", q = E.fontWeight || "400", T = `${E.fontStyle || "normal"} ${q} ${B} ${U}`, ie = document.createElement("canvas").getContext("2d"), D = ie ? Math.ceil((ie.font = T, ie.measureText(F).width || 0)) : 0;
|
|
15784
15784
|
let pe = 0;
|
|
15785
15785
|
if (V) {
|
|
15786
15786
|
const xe = window.getComputedStyle(V);
|
|
@@ -15792,8 +15792,8 @@ const i0 = ve.memo(
|
|
|
15792
15792
|
const xe = window.getComputedStyle(de);
|
|
15793
15793
|
xe.display !== "none" && xe.visibility !== "hidden" && (Ie = Math.ceil(de.getBoundingClientRect().width));
|
|
15794
15794
|
}
|
|
15795
|
-
const
|
|
15796
|
-
f((xe) => xe ===
|
|
15795
|
+
const Le = Math.min(240, Math.max(80, D + pe + Ce + Ie + 4));
|
|
15796
|
+
f((xe) => xe === Le ? xe : Le);
|
|
15797
15797
|
}, [I]);
|
|
15798
15798
|
ze(() => {
|
|
15799
15799
|
const N = window.requestAnimationFrame(() => M()), k = window.setTimeout(() => M(), 60);
|
|
@@ -16058,19 +16058,19 @@ function o0() {
|
|
|
16058
16058
|
}, E.valueOf = function() {
|
|
16059
16059
|
return this.$d.getTime();
|
|
16060
16060
|
}, E.startOf = function(B, U) {
|
|
16061
|
-
var q = this, G = !!_.u(U) || U, T = _.p(B), ne = function(
|
|
16062
|
-
var et = _.w(q.$u ? Date.UTC(q.$y, xe,
|
|
16061
|
+
var q = this, G = !!_.u(U) || U, T = _.p(B), ne = function(Le, xe) {
|
|
16062
|
+
var et = _.w(q.$u ? Date.UTC(q.$y, xe, Le) : new Date(q.$y, xe, Le), q);
|
|
16063
16063
|
return G ? et : et.endOf(u);
|
|
16064
|
-
}, ie = function(
|
|
16065
|
-
return _.w(q.toDate()[
|
|
16066
|
-
},
|
|
16064
|
+
}, ie = function(Le, xe) {
|
|
16065
|
+
return _.w(q.toDate()[Le].apply(q.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(xe)), q);
|
|
16066
|
+
}, D = this.$W, pe = this.$M, ye = this.$D, Ce = "set" + (this.$u ? "UTC" : "");
|
|
16067
16067
|
switch (T) {
|
|
16068
16068
|
case f:
|
|
16069
16069
|
return G ? ne(1, 0) : ne(31, 11);
|
|
16070
16070
|
case d:
|
|
16071
16071
|
return G ? ne(1, pe) : ne(0, pe + 1);
|
|
16072
16072
|
case c:
|
|
16073
|
-
var de = this.$locale().weekStart || 0, Ie = (
|
|
16073
|
+
var de = this.$locale().weekStart || 0, Ie = (D < de ? D + 7 : D) - de;
|
|
16074
16074
|
return ne(G ? ye - Ie : ye + (6 - Ie), pe);
|
|
16075
16075
|
case u:
|
|
16076
16076
|
case m:
|
|
@@ -16089,8 +16089,8 @@ function o0() {
|
|
|
16089
16089
|
}, E.$set = function(B, U) {
|
|
16090
16090
|
var q, G = _.p(B), T = "set" + (this.$u ? "UTC" : ""), ne = (q = {}, q[u] = T + "Date", q[m] = T + "Date", q[d] = T + "Month", q[f] = T + "FullYear", q[o] = T + "Hours", q[s] = T + "Minutes", q[i] = T + "Seconds", q[a] = T + "Milliseconds", q)[G], ie = G === u ? this.$D + (U - this.$W) : U;
|
|
16091
16091
|
if (G === d || G === f) {
|
|
16092
|
-
var
|
|
16093
|
-
|
|
16092
|
+
var D = this.clone().set(m, 1);
|
|
16093
|
+
D.$d[ne](ie), D.init(), this.$d = D.set(m, Math.min(this.$D, D.daysInMonth())).$d;
|
|
16094
16094
|
} else ne && this.$d[ne](ie);
|
|
16095
16095
|
return this.init(), this;
|
|
16096
16096
|
}, E.set = function(B, U) {
|
|
@@ -16108,18 +16108,18 @@ function o0() {
|
|
|
16108
16108
|
if (T === f) return this.set(f, this.$y + B);
|
|
16109
16109
|
if (T === u) return ne(1);
|
|
16110
16110
|
if (T === c) return ne(7);
|
|
16111
|
-
var ie = (q = {}, q[s] = r, q[o] = l, q[i] = n, q)[T] || 1,
|
|
16112
|
-
return _.w(
|
|
16111
|
+
var ie = (q = {}, q[s] = r, q[o] = l, q[i] = n, q)[T] || 1, D = this.$d.getTime() + B * ie;
|
|
16112
|
+
return _.w(D, this);
|
|
16113
16113
|
}, E.subtract = function(B, U) {
|
|
16114
16114
|
return this.add(-1 * B, U);
|
|
16115
16115
|
}, E.format = function(B) {
|
|
16116
16116
|
var U = this, q = this.$locale();
|
|
16117
16117
|
if (!this.isValid()) return q.invalidDate || g;
|
|
16118
|
-
var G = B || "YYYY-MM-DDTHH:mm:ssZ", T = _.z(this), ne = this.$H, ie = this.$m,
|
|
16118
|
+
var G = B || "YYYY-MM-DDTHH:mm:ssZ", T = _.z(this), ne = this.$H, ie = this.$m, D = this.$M, pe = q.weekdays, ye = q.months, Ce = q.meridiem, de = function(xe, et, Ot, Bt) {
|
|
16119
16119
|
return xe && (xe[et] || xe(U, G)) || Ot[et].slice(0, Bt);
|
|
16120
16120
|
}, Ie = function(xe) {
|
|
16121
16121
|
return _.s(ne % 12 || 12, xe, "0");
|
|
16122
|
-
},
|
|
16122
|
+
}, Le = Ce || function(xe, et, Ot) {
|
|
16123
16123
|
var Bt = xe < 12 ? "AM" : "PM";
|
|
16124
16124
|
return Ot ? Bt.toLowerCase() : Bt;
|
|
16125
16125
|
};
|
|
@@ -16131,13 +16131,13 @@ function o0() {
|
|
|
16131
16131
|
case "YYYY":
|
|
16132
16132
|
return _.s(U.$y, 4, "0");
|
|
16133
16133
|
case "M":
|
|
16134
|
-
return
|
|
16134
|
+
return D + 1;
|
|
16135
16135
|
case "MM":
|
|
16136
|
-
return _.s(
|
|
16136
|
+
return _.s(D + 1, 2, "0");
|
|
16137
16137
|
case "MMM":
|
|
16138
|
-
return de(q.monthsShort,
|
|
16138
|
+
return de(q.monthsShort, D, ye, 3);
|
|
16139
16139
|
case "MMMM":
|
|
16140
|
-
return de(ye,
|
|
16140
|
+
return de(ye, D);
|
|
16141
16141
|
case "D":
|
|
16142
16142
|
return U.$D;
|
|
16143
16143
|
case "DD":
|
|
@@ -16159,9 +16159,9 @@ function o0() {
|
|
|
16159
16159
|
case "hh":
|
|
16160
16160
|
return Ie(2);
|
|
16161
16161
|
case "a":
|
|
16162
|
-
return
|
|
16162
|
+
return Le(ne, ie, !0);
|
|
16163
16163
|
case "A":
|
|
16164
|
-
return
|
|
16164
|
+
return Le(ne, ie, !1);
|
|
16165
16165
|
case "m":
|
|
16166
16166
|
return String(ie);
|
|
16167
16167
|
case "mm":
|
|
@@ -16181,7 +16181,7 @@ function o0() {
|
|
|
16181
16181
|
}, E.utcOffset = function() {
|
|
16182
16182
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
16183
16183
|
}, E.diff = function(B, U, q) {
|
|
16184
|
-
var G, T = this, ne = _.p(U), ie = R(B),
|
|
16184
|
+
var G, T = this, ne = _.p(U), ie = R(B), D = (ie.utcOffset() - this.utcOffset()) * r, pe = this - ie, ye = function() {
|
|
16185
16185
|
return _.m(T, ie);
|
|
16186
16186
|
};
|
|
16187
16187
|
switch (ne) {
|
|
@@ -16195,10 +16195,10 @@ function o0() {
|
|
|
16195
16195
|
G = ye() / 3;
|
|
16196
16196
|
break;
|
|
16197
16197
|
case c:
|
|
16198
|
-
G = (pe -
|
|
16198
|
+
G = (pe - D) / 6048e5;
|
|
16199
16199
|
break;
|
|
16200
16200
|
case u:
|
|
16201
|
-
G = (pe -
|
|
16201
|
+
G = (pe - D) / 864e5;
|
|
16202
16202
|
break;
|
|
16203
16203
|
case o:
|
|
16204
16204
|
G = pe / l;
|
|
@@ -22707,8 +22707,8 @@ const h0 = ({
|
|
|
22707
22707
|
}
|
|
22708
22708
|
if (s && /[\n\s]/.test(ne)) {
|
|
22709
22709
|
T.preventDefault();
|
|
22710
|
-
const
|
|
22711
|
-
|
|
22710
|
+
const D = ne.split(/[\n\s]+/).filter((pe) => pe.trim().length > 0);
|
|
22711
|
+
D.length > 1 ? s(D) : D.length === 1 && i(D[0]);
|
|
22712
22712
|
return;
|
|
22713
22713
|
}
|
|
22714
22714
|
},
|
|
@@ -23498,13 +23498,13 @@ const Qd = 2 * Math.PI * 6.5, g0 = "data:image/svg+xml,%3Csvg xmlns='http://www.
|
|
|
23498
23498
|
if (!a) return;
|
|
23499
23499
|
const ne = T.trim();
|
|
23500
23500
|
if (!ne) return;
|
|
23501
|
-
const ie = Xd(ne),
|
|
23501
|
+
const ie = Xd(ne), D = y.current += 1;
|
|
23502
23502
|
c("loading"), f(0), g(ie), V(), i?.(e.key, !0);
|
|
23503
23503
|
try {
|
|
23504
23504
|
const pe = await a({ url: ie });
|
|
23505
23505
|
if (F(), r(e.key, pe.videoUrl), l?.(e.key, pe.thumbnail || ""), c("success"), !pe.thumbnail && pe.videoUrl) {
|
|
23506
23506
|
const ye = `/api/download-report-pdf?url=${encodeURIComponent(pe.videoUrl)}`, Ce = await C4(ye);
|
|
23507
|
-
Ce && y.current ===
|
|
23507
|
+
Ce && y.current === D && l?.(e.key, Ce);
|
|
23508
23508
|
}
|
|
23509
23509
|
} catch (pe) {
|
|
23510
23510
|
F(), y.current += 1, r(e.key, ""), l?.(e.key, ""), g(""), c("idle"), d.error(pe instanceof Error ? pe.message : "视频解析失败,请检查链接是否正确");
|
|
@@ -24092,7 +24092,7 @@ const I4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24092
24092
|
ze(() => {
|
|
24093
24093
|
w && ie();
|
|
24094
24094
|
}, [w, ie]);
|
|
24095
|
-
const
|
|
24095
|
+
const D = Fe(
|
|
24096
24096
|
() => ({
|
|
24097
24097
|
offset: [0, T === "bottomLeft" ? 4 : -4],
|
|
24098
24098
|
overflow: { adjustX: !1, adjustY: !1 }
|
|
@@ -24148,11 +24148,11 @@ const I4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24148
24148
|
onMouseDown: B,
|
|
24149
24149
|
children: /* @__PURE__ */ v("span", { className: "rte-report-chip-clear-icon", title: "清除", children: /* @__PURE__ */ v(wh, {}) })
|
|
24150
24150
|
}
|
|
24151
|
-
) : null, Ce = e.placeholder ?? "粘贴报告链接", de = m || Ce, Ie = J(null), [
|
|
24151
|
+
) : null, Ce = e.placeholder ?? "粘贴报告链接", de = m || Ce, Ie = J(null), [Le, xe] = K(0);
|
|
24152
24152
|
ze(() => {
|
|
24153
24153
|
Ie.current && xe(Ie.current.offsetWidth);
|
|
24154
24154
|
});
|
|
24155
|
-
const et =
|
|
24155
|
+
const et = Le > 0 ? Math.max(60, Le + 2) : M4(de) + 6, Ot = Fe(() => {
|
|
24156
24156
|
if (g) return "";
|
|
24157
24157
|
const _e = m.trim();
|
|
24158
24158
|
return /^https?:\/\//i.test(_e) ? x0(_e) : "";
|
|
@@ -24243,7 +24243,7 @@ const I4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24243
24243
|
trigger: [],
|
|
24244
24244
|
open: A && w,
|
|
24245
24245
|
placement: T,
|
|
24246
|
-
align:
|
|
24246
|
+
align: D,
|
|
24247
24247
|
autoAdjustOverflow: !1,
|
|
24248
24248
|
getPopupContainer: () => h ?? document.body,
|
|
24249
24249
|
overlayClassName: "rte-report-dropdown-overlay",
|
|
@@ -24260,7 +24260,7 @@ const I4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24260
24260
|
trigger: [],
|
|
24261
24261
|
open: A && w,
|
|
24262
24262
|
placement: T,
|
|
24263
|
-
align:
|
|
24263
|
+
align: D,
|
|
24264
24264
|
autoAdjustOverflow: !1,
|
|
24265
24265
|
getPopupContainer: () => h ?? document.body,
|
|
24266
24266
|
overlayClassName: "rte-report-dropdown-overlay",
|
|
@@ -24271,7 +24271,7 @@ const I4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24271
24271
|
}
|
|
24272
24272
|
);
|
|
24273
24273
|
S0.displayName = "ReportUrlNode";
|
|
24274
|
-
function
|
|
24274
|
+
function D4(e, t) {
|
|
24275
24275
|
const n = ve.memo(({ node: r, value: l, onChange: a, disabled: i, error: s }) => {
|
|
24276
24276
|
const o = r.moduleIndex ?? 0, u = `${r.key}__module_${o}`, c = J(null), d = l ?? r.text ?? "";
|
|
24277
24277
|
ze(() => {
|
|
@@ -24308,7 +24308,7 @@ function L4(e, t) {
|
|
|
24308
24308
|
});
|
|
24309
24309
|
return n.displayName = t, n;
|
|
24310
24310
|
}
|
|
24311
|
-
const k0 = { createModuleNode:
|
|
24311
|
+
const k0 = { createModuleNode: D4 }, L4 = k0.createModuleNode(
|
|
24312
24312
|
"report-module",
|
|
24313
24313
|
"ReportModuleNode"
|
|
24314
24314
|
);
|
|
@@ -25413,7 +25413,7 @@ class si {
|
|
|
25413
25413
|
}
|
|
25414
25414
|
}
|
|
25415
25415
|
const $4 = /* @__PURE__ */ Object.create(null);
|
|
25416
|
-
let
|
|
25416
|
+
let Ln = class Eo {
|
|
25417
25417
|
/**
|
|
25418
25418
|
@internal
|
|
25419
25419
|
*/
|
|
@@ -25690,7 +25690,7 @@ let Dn = class Eo {
|
|
|
25690
25690
|
if (this.type.spec.toDebugString)
|
|
25691
25691
|
return this.type.spec.toDebugString(this);
|
|
25692
25692
|
let t = this.type.name;
|
|
25693
|
-
return this.content.size && (t += "(" + this.content.toStringInner() + ")"),
|
|
25693
|
+
return this.content.size && (t += "(" + this.content.toStringInner() + ")"), D0(this.marks, t);
|
|
25694
25694
|
}
|
|
25695
25695
|
/**
|
|
25696
25696
|
Get the content match in this node at the given index.
|
|
@@ -25783,8 +25783,8 @@ let Dn = class Eo {
|
|
|
25783
25783
|
return a.type.checkAttrs(a.attrs), a;
|
|
25784
25784
|
}
|
|
25785
25785
|
};
|
|
25786
|
-
|
|
25787
|
-
class oi extends
|
|
25786
|
+
Ln.prototype.text = void 0;
|
|
25787
|
+
class oi extends Ln {
|
|
25788
25788
|
/**
|
|
25789
25789
|
@internal
|
|
25790
25790
|
*/
|
|
@@ -25794,7 +25794,7 @@ class oi extends Dn {
|
|
|
25794
25794
|
this.text = r;
|
|
25795
25795
|
}
|
|
25796
25796
|
toString() {
|
|
25797
|
-
return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) :
|
|
25797
|
+
return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : D0(this.marks, JSON.stringify(this.text));
|
|
25798
25798
|
}
|
|
25799
25799
|
get textContent() {
|
|
25800
25800
|
return this.text;
|
|
@@ -25822,7 +25822,7 @@ class oi extends Dn {
|
|
|
25822
25822
|
return t.text = this.text, t;
|
|
25823
25823
|
}
|
|
25824
25824
|
}
|
|
25825
|
-
function
|
|
25825
|
+
function D0(e, t) {
|
|
25826
25826
|
for (let n = e.length - 1; n >= 0; n--)
|
|
25827
25827
|
t = e[n].type.name + "(" + t + ")";
|
|
25828
25828
|
return t;
|
|
@@ -25841,7 +25841,7 @@ class vr {
|
|
|
25841
25841
|
let r = new q4(t, n);
|
|
25842
25842
|
if (r.next == null)
|
|
25843
25843
|
return vr.empty;
|
|
25844
|
-
let l =
|
|
25844
|
+
let l = L0(r);
|
|
25845
25845
|
r.next && r.err("Unexpected trailing text");
|
|
25846
25846
|
let a = X4(Q4(l));
|
|
25847
25847
|
return J4(a, r), a;
|
|
@@ -26004,7 +26004,7 @@ class q4 {
|
|
|
26004
26004
|
throw new SyntaxError(t + " (in content expression '" + this.string + "')");
|
|
26005
26005
|
}
|
|
26006
26006
|
}
|
|
26007
|
-
function
|
|
26007
|
+
function L0(e) {
|
|
26008
26008
|
let t = [];
|
|
26009
26009
|
do
|
|
26010
26010
|
t.push(W4(e));
|
|
@@ -26055,7 +26055,7 @@ function K4(e, t) {
|
|
|
26055
26055
|
}
|
|
26056
26056
|
function G4(e) {
|
|
26057
26057
|
if (e.eat("(")) {
|
|
26058
|
-
let t =
|
|
26058
|
+
let t = L0(e);
|
|
26059
26059
|
return e.eat(")") || e.err("Missing closing paren"), t;
|
|
26060
26060
|
} else if (/\W/.test(e.next))
|
|
26061
26061
|
e.err("Unexpected token '" + e.next + "'");
|
|
@@ -26290,7 +26290,7 @@ let tf = class z0 {
|
|
|
26290
26290
|
create(t = null, n, r) {
|
|
26291
26291
|
if (this.isText)
|
|
26292
26292
|
throw new Error("NodeType.create can't construct text nodes");
|
|
26293
|
-
return new
|
|
26293
|
+
return new Ln(this, this.computeAttrs(t), X.from(n), Pe.setFrom(r));
|
|
26294
26294
|
}
|
|
26295
26295
|
/**
|
|
26296
26296
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -26298,7 +26298,7 @@ let tf = class z0 {
|
|
|
26298
26298
|
if it doesn't match.
|
|
26299
26299
|
*/
|
|
26300
26300
|
createChecked(t = null, n, r) {
|
|
26301
|
-
return n = X.from(n), this.checkContent(n), new
|
|
26301
|
+
return n = X.from(n), this.checkContent(n), new Ln(this, this.computeAttrs(t), n, Pe.setFrom(r));
|
|
26302
26302
|
}
|
|
26303
26303
|
/**
|
|
26304
26304
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -26316,7 +26316,7 @@ let tf = class z0 {
|
|
|
26316
26316
|
n = i.append(n);
|
|
26317
26317
|
}
|
|
26318
26318
|
let l = this.contentMatch.matchFragment(n), a = l && l.fillBefore(X.empty, !0);
|
|
26319
|
-
return a ? new
|
|
26319
|
+
return a ? new Ln(this, t, n.append(a), Pe.setFrom(r)) : null;
|
|
26320
26320
|
}
|
|
26321
26321
|
/**
|
|
26322
26322
|
Returns true if the given fragment is valid content for this node
|
|
@@ -26489,7 +26489,7 @@ class V0 {
|
|
|
26489
26489
|
let a = this.marks[l], i = a.spec.excludes;
|
|
26490
26490
|
a.excluded = i == null ? [a] : i == "" ? [] : nf(this, i.split(" "));
|
|
26491
26491
|
}
|
|
26492
|
-
this.nodeFromJSON = (l) =>
|
|
26492
|
+
this.nodeFromJSON = (l) => Ln.fromJSON(this, l), this.markFromJSON = (l) => Pe.fromJSON(this, l), this.topNodeType = this.nodes[this.spec.topNode || "doc"], this.cached.wrappings = /* @__PURE__ */ Object.create(null);
|
|
26493
26493
|
}
|
|
26494
26494
|
/**
|
|
26495
26495
|
Create a node in this schema. The `type` may be a string or a
|
|
@@ -28203,7 +28203,7 @@ class Sx {
|
|
|
28203
28203
|
for (let n = 1; n <= 2; n++)
|
|
28204
28204
|
for (let r = n == 1 ? t : this.unplaced.openStart; r >= 0; r--) {
|
|
28205
28205
|
let l, a = null;
|
|
28206
|
-
r ? (a =
|
|
28206
|
+
r ? (a = Ds(this.unplaced.content, r - 1).firstChild, l = a.content) : l = this.unplaced.content;
|
|
28207
28207
|
let i = l.firstChild;
|
|
28208
28208
|
for (let s = this.depth; s >= 0; s--) {
|
|
28209
28209
|
let { type: o, match: u } = this.frontier[s], c, d = null;
|
|
@@ -28217,11 +28217,11 @@ class Sx {
|
|
|
28217
28217
|
}
|
|
28218
28218
|
}
|
|
28219
28219
|
openMore() {
|
|
28220
|
-
let { content: t, openStart: n, openEnd: r } = this.unplaced, l =
|
|
28220
|
+
let { content: t, openStart: n, openEnd: r } = this.unplaced, l = Ds(t, n);
|
|
28221
28221
|
return !l.childCount || l.firstChild.isLeaf ? !1 : (this.unplaced = new ue(t, n + 1, Math.max(r, l.size + n >= t.size - r ? n + 1 : 0)), !0);
|
|
28222
28222
|
}
|
|
28223
28223
|
dropNode() {
|
|
28224
|
-
let { content: t, openStart: n, openEnd: r } = this.unplaced, l =
|
|
28224
|
+
let { content: t, openStart: n, openEnd: r } = this.unplaced, l = Ds(t, n);
|
|
28225
28225
|
if (l.childCount <= 1 && n > 0) {
|
|
28226
28226
|
let a = t.size - n <= n + l.size;
|
|
28227
28227
|
this.unplaced = new ue(vl(t, n - 1, 1), n - 1, a ? n - 1 : r);
|
|
@@ -28262,7 +28262,7 @@ class Sx {
|
|
|
28262
28262
|
if (!this.$to.parent.isTextblock)
|
|
28263
28263
|
return -1;
|
|
28264
28264
|
let t = this.frontier[this.depth], n;
|
|
28265
|
-
if (!t.type.isTextblock || !
|
|
28265
|
+
if (!t.type.isTextblock || !Ls(this.$to, this.$to.depth, t.type, t.match, !1) || this.$to.depth == this.depth && (n = this.findCloseLevel(this.$to)) && n.depth == this.depth)
|
|
28266
28266
|
return -1;
|
|
28267
28267
|
let { depth: r } = this.$to, l = this.$to.after(r);
|
|
28268
28268
|
for (; r > 1 && l == this.$to.end(--r); )
|
|
@@ -28271,10 +28271,10 @@ class Sx {
|
|
|
28271
28271
|
}
|
|
28272
28272
|
findCloseLevel(t) {
|
|
28273
28273
|
e: for (let n = Math.min(this.depth, t.depth); n >= 0; n--) {
|
|
28274
|
-
let { match: r, type: l } = this.frontier[n], a = n < t.depth && t.end(n + 1) == t.pos + (t.depth - (n + 1)), i =
|
|
28274
|
+
let { match: r, type: l } = this.frontier[n], a = n < t.depth && t.end(n + 1) == t.pos + (t.depth - (n + 1)), i = Ls(t, n, l, r, a);
|
|
28275
28275
|
if (i) {
|
|
28276
28276
|
for (let s = n - 1; s >= 0; s--) {
|
|
28277
|
-
let { match: o, type: u } = this.frontier[s], c =
|
|
28277
|
+
let { match: o, type: u } = this.frontier[s], c = Ls(t, s, u, o, !0);
|
|
28278
28278
|
if (!c || c.childCount)
|
|
28279
28279
|
continue e;
|
|
28280
28280
|
}
|
|
@@ -28310,7 +28310,7 @@ function vl(e, t, n) {
|
|
|
28310
28310
|
function yl(e, t, n) {
|
|
28311
28311
|
return t == 0 ? e.append(n) : e.replaceChild(e.childCount - 1, e.lastChild.copy(yl(e.lastChild.content, t - 1, n)));
|
|
28312
28312
|
}
|
|
28313
|
-
function
|
|
28313
|
+
function Ds(e, t) {
|
|
28314
28314
|
for (let n = 0; n < t; n++)
|
|
28315
28315
|
e = e.firstChild.content;
|
|
28316
28316
|
return e;
|
|
@@ -28321,7 +28321,7 @@ function tm(e, t, n) {
|
|
|
28321
28321
|
let r = e.content;
|
|
28322
28322
|
return t > 1 && (r = r.replaceChild(0, tm(r.firstChild, t - 1, r.childCount == 1 ? n - 1 : 0))), t > 0 && (r = e.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(e.type.contentMatch.matchFragment(r).fillBefore(X.empty, !0)))), e.copy(r);
|
|
28323
28323
|
}
|
|
28324
|
-
function
|
|
28324
|
+
function Ls(e, t, n, r, l) {
|
|
28325
28325
|
let a = e.node(t), i = l ? e.indexAfter(t) : e.index(t);
|
|
28326
28326
|
if (i == a.childCount && !n.compatibleContent(a.type))
|
|
28327
28327
|
return null;
|
|
@@ -29318,7 +29318,7 @@ class El {
|
|
|
29318
29318
|
this.name = t, this.init = gf(n.init, r), this.apply = gf(n.apply, r);
|
|
29319
29319
|
}
|
|
29320
29320
|
}
|
|
29321
|
-
const
|
|
29321
|
+
const Dx = [
|
|
29322
29322
|
new El("doc", {
|
|
29323
29323
|
init(e) {
|
|
29324
29324
|
return e.doc || e.schema.topNodeType.createAndFill();
|
|
@@ -29354,7 +29354,7 @@ const Lx = [
|
|
|
29354
29354
|
];
|
|
29355
29355
|
class Bs {
|
|
29356
29356
|
constructor(t, n) {
|
|
29357
|
-
this.schema = t, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields =
|
|
29357
|
+
this.schema = t, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = Dx.slice(), n && n.forEach((r) => {
|
|
29358
29358
|
if (this.pluginsByKey[r.key])
|
|
29359
29359
|
throw new RangeError("Adding different instances of a keyed plugin (" + r.key + ")");
|
|
29360
29360
|
this.plugins.push(r), this.pluginsByKey[r.key] = r, r.spec.state && this.fields.push(new El(r.key, r.spec.state, r));
|
|
@@ -29507,7 +29507,7 @@ class Br {
|
|
|
29507
29507
|
let l = new Bs(t.schema, t.plugins), a = new Br(l);
|
|
29508
29508
|
return l.fields.forEach((i) => {
|
|
29509
29509
|
if (i.name == "doc")
|
|
29510
|
-
a.doc =
|
|
29510
|
+
a.doc = Ln.fromJSON(t.schema, n.doc);
|
|
29511
29511
|
else if (i.name == "selection")
|
|
29512
29512
|
a.selection = Ae.fromJSON(a.doc, n.selection);
|
|
29513
29513
|
else if (i.name == "storedMarks")
|
|
@@ -29584,7 +29584,7 @@ let ko = null;
|
|
|
29584
29584
|
const un = function(e, t, n) {
|
|
29585
29585
|
let r = ko || (ko = document.createRange());
|
|
29586
29586
|
return r.setEnd(e, n ?? e.nodeValue.length), r.setStart(e, t || 0), r;
|
|
29587
|
-
},
|
|
29587
|
+
}, Lx = function() {
|
|
29588
29588
|
ko = null;
|
|
29589
29589
|
}, Er = function(e, t, n, r) {
|
|
29590
29590
|
return n && (vf(e, t, n, r, -1) || vf(e, t, n, r, 1));
|
|
@@ -29658,7 +29658,7 @@ function sa(e) {
|
|
|
29658
29658
|
;
|
|
29659
29659
|
return t && t.node && t.node.isBlock && (t.dom == e || t.contentDOM == e);
|
|
29660
29660
|
}
|
|
29661
|
-
const
|
|
29661
|
+
const Di = function(e) {
|
|
29662
29662
|
return e.focusNode && Er(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset);
|
|
29663
29663
|
};
|
|
29664
29664
|
function nr(e, t) {
|
|
@@ -30492,7 +30492,7 @@ class Bn extends ua {
|
|
|
30492
30492
|
} else c || ({ dom: c, contentDOM: d } = Sr.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
|
|
30493
30493
|
!d && !n.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), n.type.spec.draggable && (c.draggable = !0));
|
|
30494
30494
|
let h = c;
|
|
30495
|
-
return c = ym(c, r, n), u ? o = new a5(t, n, r, l, c, d || null, h, u, a, i + 1) : n.isText ? new
|
|
30495
|
+
return c = ym(c, r, n), u ? o = new a5(t, n, r, l, c, d || null, h, u, a, i + 1) : n.isText ? new Li(t, n, r, l, c, h, a) : new Bn(t, n, r, l, c, d || null, h, a, i + 1);
|
|
30496
30496
|
}
|
|
30497
30497
|
parseRule() {
|
|
30498
30498
|
if (this.node.type.spec.reparseInView)
|
|
@@ -30595,7 +30595,7 @@ function Af(e, t, n, r, l) {
|
|
|
30595
30595
|
let a = new Bn(void 0, e, t, n, r, r, r, l, 0);
|
|
30596
30596
|
return a.contentDOM && a.updateChildren(l, 0), a;
|
|
30597
30597
|
}
|
|
30598
|
-
class
|
|
30598
|
+
class Li extends Bn {
|
|
30599
30599
|
constructor(t, n, r, l, a, i, s) {
|
|
30600
30600
|
super(t, n, r, l, a, null, i, s, 0);
|
|
30601
30601
|
}
|
|
@@ -30626,7 +30626,7 @@ class Di extends Bn {
|
|
|
30626
30626
|
}
|
|
30627
30627
|
slice(t, n, r) {
|
|
30628
30628
|
let l = this.node.cut(t, n), a = document.createTextNode(l.text);
|
|
30629
|
-
return new
|
|
30629
|
+
return new Li(this.parent, l, this.outerDeco, this.innerDeco, a, a, r);
|
|
30630
30630
|
}
|
|
30631
30631
|
markDirty(t, n) {
|
|
30632
30632
|
super.markDirty(t, n), this.dom != this.nodeDOM && (t == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty = rn);
|
|
@@ -30912,7 +30912,7 @@ class s5 {
|
|
|
30912
30912
|
for (; t instanceof Tr; )
|
|
30913
30913
|
n = t, t = n.children[n.children.length - 1];
|
|
30914
30914
|
(!t || // Empty textblock
|
|
30915
|
-
!(t instanceof
|
|
30915
|
+
!(t instanceof Li) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((pt || dt) && t && t.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
|
|
30916
30916
|
}
|
|
30917
30917
|
addHackNode(t, n) {
|
|
30918
30918
|
if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(t))
|
|
@@ -31052,7 +31052,7 @@ function wu(e, t = null) {
|
|
|
31052
31052
|
if (i < 0)
|
|
31053
31053
|
return null;
|
|
31054
31054
|
let s = r.resolve(i), o, u;
|
|
31055
|
-
if (
|
|
31055
|
+
if (Di(n)) {
|
|
31056
31056
|
for (o = i; l && !l.node; )
|
|
31057
31057
|
l = l.parent;
|
|
31058
31058
|
let d = l.node;
|
|
@@ -31320,7 +31320,7 @@ function Mo(e, t, n) {
|
|
|
31320
31320
|
let r = e.domSelection();
|
|
31321
31321
|
if (!r)
|
|
31322
31322
|
return;
|
|
31323
|
-
if (
|
|
31323
|
+
if (Di(r)) {
|
|
31324
31324
|
let a = document.createRange();
|
|
31325
31325
|
a.setEnd(t, n), a.setStart(t, n), r.removeAllRanges(), r.addRange(a);
|
|
31326
31326
|
} else r.extend && r.extend(t, n);
|
|
@@ -31330,7 +31330,7 @@ function Mo(e, t, n) {
|
|
|
31330
31330
|
e.state == l && pn(e);
|
|
31331
31331
|
}, 50);
|
|
31332
31332
|
}
|
|
31333
|
-
function
|
|
31333
|
+
function Df(e, t) {
|
|
31334
31334
|
let n = e.state.doc.resolve(t);
|
|
31335
31335
|
if (!(dt || om) && n.parent.inlineContent) {
|
|
31336
31336
|
let l = e.coordsAtPos(t);
|
|
@@ -31347,7 +31347,7 @@ function Lf(e, t) {
|
|
|
31347
31347
|
}
|
|
31348
31348
|
return getComputedStyle(e.dom).direction == "rtl" ? "rtl" : "ltr";
|
|
31349
31349
|
}
|
|
31350
|
-
function
|
|
31350
|
+
function Lf(e, t, n) {
|
|
31351
31351
|
let r = e.state.selection;
|
|
31352
31352
|
if (r instanceof Ee && !r.empty || n.indexOf("s") > -1 || Ut && n.indexOf("m") > -1)
|
|
31353
31353
|
return !1;
|
|
@@ -31406,16 +31406,16 @@ function C5(e, t) {
|
|
|
31406
31406
|
if (n == 13 || n == 27)
|
|
31407
31407
|
return !0;
|
|
31408
31408
|
if (n == 37 || Ut && n == 66 && r == "c") {
|
|
31409
|
-
let l = n == 37 ?
|
|
31409
|
+
let l = n == 37 ? Df(e, e.state.selection.from) == "ltr" ? -1 : 1 : -1;
|
|
31410
31410
|
return Rf(e, l, r) || Mr(e, l);
|
|
31411
31411
|
} else if (n == 39 || Ut && n == 70 && r == "c") {
|
|
31412
|
-
let l = n == 39 ?
|
|
31412
|
+
let l = n == 39 ? Df(e, e.state.selection.from) == "ltr" ? 1 : -1 : 1;
|
|
31413
31413
|
return Rf(e, l, r) || Mr(e, l);
|
|
31414
31414
|
} else {
|
|
31415
31415
|
if (n == 38 || Ut && n == 80 && r == "c")
|
|
31416
|
-
return
|
|
31416
|
+
return Lf(e, -1, r) || Mr(e, -1);
|
|
31417
31417
|
if (n == 40 || Ut && n == 78 && r == "c")
|
|
31418
|
-
return E5(e) ||
|
|
31418
|
+
return E5(e) || Lf(e, 1, r) || Mr(e, 1);
|
|
31419
31419
|
if (r == (Ut ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
|
|
31420
31420
|
return !0;
|
|
31421
31421
|
}
|
|
@@ -31624,9 +31624,9 @@ function O5(e) {
|
|
|
31624
31624
|
R5(e, r) && !Ou(e, r) && (e.editable || !(r.type in Tt)) && n(e, r);
|
|
31625
31625
|
}, I5[t] ? { passive: !0 } : void 0);
|
|
31626
31626
|
}
|
|
31627
|
-
pt && e.dom.addEventListener("input", () => null),
|
|
31627
|
+
pt && e.dom.addEventListener("input", () => null), Do(e);
|
|
31628
31628
|
}
|
|
31629
|
-
function
|
|
31629
|
+
function Dn(e, t) {
|
|
31630
31630
|
e.input.lastSelectionOrigin = t, e.input.lastSelectionTime = Date.now();
|
|
31631
31631
|
}
|
|
31632
31632
|
function M5(e) {
|
|
@@ -31635,7 +31635,7 @@ function M5(e) {
|
|
|
31635
31635
|
e.dom.removeEventListener(t, e.input.eventHandlers[t]);
|
|
31636
31636
|
clearTimeout(e.input.composingTimeout), clearTimeout(e.input.lastIOSEnterFallbackTimeout);
|
|
31637
31637
|
}
|
|
31638
|
-
function
|
|
31638
|
+
function Do(e) {
|
|
31639
31639
|
e.someProp("handleDOMEvents", (t) => {
|
|
31640
31640
|
for (let n in t)
|
|
31641
31641
|
e.input.eventHandlers[n] || e.dom.addEventListener(n, e.input.eventHandlers[n] = (r) => Ou(e, r));
|
|
@@ -31657,7 +31657,7 @@ function R5(e, t) {
|
|
|
31657
31657
|
return !1;
|
|
31658
31658
|
return !0;
|
|
31659
31659
|
}
|
|
31660
|
-
function
|
|
31660
|
+
function D5(e, t) {
|
|
31661
31661
|
!Ou(e, t) && Et[t.type] && (e.editable || !(t.type in Tt)) && Et[t.type](e, t);
|
|
31662
31662
|
}
|
|
31663
31663
|
Tt.keydown = (e, t) => {
|
|
@@ -31668,7 +31668,7 @@ Tt.keydown = (e, t) => {
|
|
|
31668
31668
|
e.input.lastIOSEnter = r, e.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
31669
31669
|
e.input.lastIOSEnter == r && (e.someProp("handleKeyDown", (l) => l(e, nr(13, "Enter"))), e.input.lastIOSEnter = 0);
|
|
31670
31670
|
}, 200);
|
|
31671
|
-
} else e.someProp("handleKeyDown", (r) => r(e, n)) || C5(e, n) ? n.preventDefault() :
|
|
31671
|
+
} else e.someProp("handleKeyDown", (r) => r(e, n)) || C5(e, n) ? n.preventDefault() : Dn(e, "key");
|
|
31672
31672
|
};
|
|
31673
31673
|
Tt.keyup = (e, t) => {
|
|
31674
31674
|
t.keyCode == 16 && (e.input.shiftKey = !1);
|
|
@@ -31690,7 +31690,7 @@ Tt.keypress = (e, t) => {
|
|
|
31690
31690
|
function Pi(e) {
|
|
31691
31691
|
return { left: e.clientX, top: e.clientY };
|
|
31692
31692
|
}
|
|
31693
|
-
function
|
|
31693
|
+
function L5(e, t) {
|
|
31694
31694
|
let n = t.x - e.clientX, r = t.y - e.clientY;
|
|
31695
31695
|
return n * n + r * r < 100;
|
|
31696
31696
|
}
|
|
@@ -31765,9 +31765,9 @@ Et.mousedown = (e, t) => {
|
|
|
31765
31765
|
let n = t;
|
|
31766
31766
|
e.input.shiftKey = n.shiftKey;
|
|
31767
31767
|
let r = Ru(e), l = Date.now(), a = "singleClick";
|
|
31768
|
-
l - e.input.lastClick.time < 500 &&
|
|
31768
|
+
l - e.input.lastClick.time < 500 && L5(n, e.input.lastClick) && !n[_m] && e.input.lastClick.button == n.button && (e.input.lastClick.type == "singleClick" ? a = "doubleClick" : e.input.lastClick.type == "doubleClick" && (a = "tripleClick")), e.input.lastClick = { time: l, x: n.clientX, y: n.clientY, type: a, button: n.button };
|
|
31769
31769
|
let i = e.posAtCoords(Pi(n));
|
|
31770
|
-
i && (a == "singleClick" ? (e.input.mouseDown && e.input.mouseDown.done(), e.input.mouseDown = new V5(e, i, n, !!r)) : (a == "doubleClick" ? H5 : U5)(e, i.pos, i.inside, n) ? n.preventDefault() :
|
|
31770
|
+
i && (a == "singleClick" ? (e.input.mouseDown && e.input.mouseDown.done(), e.input.mouseDown = new V5(e, i, n, !!r)) : (a == "doubleClick" ? H5 : U5)(e, i.pos, i.inside, n) ? n.preventDefault() : Dn(e, "pointer"));
|
|
31771
31771
|
};
|
|
31772
31772
|
class V5 {
|
|
31773
31773
|
constructor(t, n, r, l) {
|
|
@@ -31789,7 +31789,7 @@ class V5 {
|
|
|
31789
31789
|
setUneditable: !!(this.target && qt && !this.target.hasAttribute("contentEditable"))
|
|
31790
31790
|
}), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
|
|
31791
31791
|
this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
|
|
31792
|
-
}, 20), this.view.domObserver.start()), t.root.addEventListener("mouseup", this.up = this.up.bind(this)), t.root.addEventListener("mousemove", this.move = this.move.bind(this)),
|
|
31792
|
+
}, 20), this.view.domObserver.start()), t.root.addEventListener("mouseup", this.up = this.up.bind(this)), t.root.addEventListener("mousemove", this.move = this.move.bind(this)), Dn(t, "pointer");
|
|
31793
31793
|
}
|
|
31794
31794
|
done() {
|
|
31795
31795
|
this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => pn(this.view)), this.view.input.mouseDown = null;
|
|
@@ -31798,7 +31798,7 @@ class V5 {
|
|
|
31798
31798
|
if (this.done(), !this.view.dom.contains(t.target))
|
|
31799
31799
|
return;
|
|
31800
31800
|
let n = this.pos;
|
|
31801
|
-
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Pi(t))), this.updateAllowDefault(t), this.allowDefault || !n ?
|
|
31801
|
+
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Pi(t))), this.updateAllowDefault(t), this.allowDefault || !n ? Dn(this.view, "pointer") : F5(this.view, n.pos, n.inside, t, this.selectNode) ? t.preventDefault() : t.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
31802
31802
|
pt && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
31803
31803
|
// cursor, but still report that the node is selected
|
|
31804
31804
|
// when asked through getSelection. You'll then get a
|
|
@@ -31806,20 +31806,20 @@ class V5 {
|
|
|
31806
31806
|
// (hidden) cursor is doesn't change the selection, and
|
|
31807
31807
|
// thus doesn't get a reaction from ProseMirror. This
|
|
31808
31808
|
// works around that.
|
|
31809
|
-
dt && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (Vr(this.view, Ae.near(this.view.state.doc.resolve(n.pos))), t.preventDefault()) :
|
|
31809
|
+
dt && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (Vr(this.view, Ae.near(this.view.state.doc.resolve(n.pos))), t.preventDefault()) : Dn(this.view, "pointer");
|
|
31810
31810
|
}
|
|
31811
31811
|
move(t) {
|
|
31812
|
-
this.updateAllowDefault(t),
|
|
31812
|
+
this.updateAllowDefault(t), Dn(this.view, "pointer"), t.buttons == 0 && this.done();
|
|
31813
31813
|
}
|
|
31814
31814
|
updateAllowDefault(t) {
|
|
31815
31815
|
!this.allowDefault && (Math.abs(this.event.x - t.clientX) > 4 || Math.abs(this.event.y - t.clientY) > 4) && (this.allowDefault = !0);
|
|
31816
31816
|
}
|
|
31817
31817
|
}
|
|
31818
31818
|
Et.touchstart = (e) => {
|
|
31819
|
-
e.input.lastTouch = Date.now(), Ru(e),
|
|
31819
|
+
e.input.lastTouch = Date.now(), Ru(e), Dn(e, "pointer");
|
|
31820
31820
|
};
|
|
31821
31821
|
Et.touchmove = (e) => {
|
|
31822
|
-
e.input.lastTouch = Date.now(),
|
|
31822
|
+
e.input.lastTouch = Date.now(), Dn(e, "pointer");
|
|
31823
31823
|
};
|
|
31824
31824
|
Et.contextmenu = (e) => Ru(e);
|
|
31825
31825
|
function Om(e, t) {
|
|
@@ -31939,7 +31939,7 @@ function jl(e, t, n, r, l) {
|
|
|
31939
31939
|
let i = K5(a), s = i ? e.state.tr.replaceSelectionWith(i, r) : e.state.tr.replaceSelection(a);
|
|
31940
31940
|
return e.dispatch(s.scrollIntoView().setMeta("paste", !0).setMeta("uiEvent", "paste")), !0;
|
|
31941
31941
|
}
|
|
31942
|
-
function
|
|
31942
|
+
function Dm(e) {
|
|
31943
31943
|
let t = e.getData("text/plain") || e.getData("Text");
|
|
31944
31944
|
if (t)
|
|
31945
31945
|
return t;
|
|
@@ -31951,9 +31951,9 @@ Tt.paste = (e, t) => {
|
|
|
31951
31951
|
if (e.composing && !fn)
|
|
31952
31952
|
return;
|
|
31953
31953
|
let r = Yl ? null : n.clipboardData, l = e.input.shiftKey && e.input.lastKeyCode != 45;
|
|
31954
|
-
r && jl(e,
|
|
31954
|
+
r && jl(e, Dm(r), r.getData("text/html"), l, n) ? n.preventDefault() : G5(e, n);
|
|
31955
31955
|
};
|
|
31956
|
-
class
|
|
31956
|
+
class Lm {
|
|
31957
31957
|
constructor(t, n, r) {
|
|
31958
31958
|
this.slice = t, this.move = n, this.node = r;
|
|
31959
31959
|
}
|
|
@@ -31979,7 +31979,7 @@ Et.dragstart = (e, t) => {
|
|
|
31979
31979
|
}
|
|
31980
31980
|
}
|
|
31981
31981
|
let s = (i || e.state.selection).content(), { dom: o, text: u, slice: c } = _u(e, s);
|
|
31982
|
-
(!n.dataTransfer.files.length || !dt || sm > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Yl ? "Text" : "text/html", o.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Yl || n.dataTransfer.setData("text/plain", u), e.dragging = new
|
|
31982
|
+
(!n.dataTransfer.files.length || !dt || sm > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Yl ? "Text" : "text/html", o.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Yl || n.dataTransfer.setData("text/plain", u), e.dragging = new Lm(c, Pm(e, n), i);
|
|
31983
31983
|
};
|
|
31984
31984
|
Et.dragend = (e) => {
|
|
31985
31985
|
let t = e.dragging;
|
|
@@ -32004,7 +32004,7 @@ function X5(e, t, n) {
|
|
|
32004
32004
|
let l = e.state.doc.resolve(r.pos), a = n && n.slice;
|
|
32005
32005
|
a ? e.someProp("transformPasted", (f) => {
|
|
32006
32006
|
a = f(a, e, !1);
|
|
32007
|
-
}) : a = Sm(e,
|
|
32007
|
+
}) : a = Sm(e, Dm(t.dataTransfer), Yl ? null : t.dataTransfer.getData("text/html"), !1, l);
|
|
32008
32008
|
let i = !!(n && Pm(e, t));
|
|
32009
32009
|
if (e.someProp("handleDrop", (f) => f(e, t, a || ue.empty, i))) {
|
|
32010
32010
|
t.preventDefault();
|
|
@@ -32072,7 +32072,7 @@ class fi {
|
|
|
32072
32072
|
}
|
|
32073
32073
|
map(t, n, r, l) {
|
|
32074
32074
|
let { pos: a, deleted: i } = t.mapResult(n.from + l, this.side < 0 ? -1 : 1);
|
|
32075
|
-
return i ? null : new
|
|
32075
|
+
return i ? null : new Lt(a - r, a - r, this);
|
|
32076
32076
|
}
|
|
32077
32077
|
valid() {
|
|
32078
32078
|
return !0;
|
|
@@ -32090,7 +32090,7 @@ class Fn {
|
|
|
32090
32090
|
}
|
|
32091
32091
|
map(t, n, r, l) {
|
|
32092
32092
|
let a = t.map(n.from + l, this.spec.inclusiveStart ? -1 : 1) - r, i = t.map(n.to + l, this.spec.inclusiveEnd ? 1 : -1) - r;
|
|
32093
|
-
return a >= i ? null : new
|
|
32093
|
+
return a >= i ? null : new Lt(a, i, this);
|
|
32094
32094
|
}
|
|
32095
32095
|
valid(t, n) {
|
|
32096
32096
|
return n.from < n.to;
|
|
@@ -32104,7 +32104,7 @@ class Fn {
|
|
|
32104
32104
|
destroy() {
|
|
32105
32105
|
}
|
|
32106
32106
|
}
|
|
32107
|
-
class
|
|
32107
|
+
class Du {
|
|
32108
32108
|
constructor(t, n) {
|
|
32109
32109
|
this.attrs = t, this.spec = n || hr;
|
|
32110
32110
|
}
|
|
@@ -32113,19 +32113,19 @@ class Lu {
|
|
|
32113
32113
|
if (a.deleted)
|
|
32114
32114
|
return null;
|
|
32115
32115
|
let i = t.mapResult(n.to + l, -1);
|
|
32116
|
-
return i.deleted || i.pos <= a.pos ? null : new
|
|
32116
|
+
return i.deleted || i.pos <= a.pos ? null : new Lt(a.pos - r, i.pos - r, this);
|
|
32117
32117
|
}
|
|
32118
32118
|
valid(t, n) {
|
|
32119
32119
|
let { index: r, offset: l } = t.content.findIndex(n.from), a;
|
|
32120
32120
|
return l == n.from && !(a = t.child(r)).isText && l + a.nodeSize == n.to;
|
|
32121
32121
|
}
|
|
32122
32122
|
eq(t) {
|
|
32123
|
-
return this == t || t instanceof
|
|
32123
|
+
return this == t || t instanceof Du && Kl(this.attrs, t.attrs) && Kl(this.spec, t.spec);
|
|
32124
32124
|
}
|
|
32125
32125
|
destroy() {
|
|
32126
32126
|
}
|
|
32127
32127
|
}
|
|
32128
|
-
class
|
|
32128
|
+
class Lt {
|
|
32129
32129
|
/**
|
|
32130
32130
|
@internal
|
|
32131
32131
|
*/
|
|
@@ -32136,7 +32136,7 @@ class Dt {
|
|
|
32136
32136
|
@internal
|
|
32137
32137
|
*/
|
|
32138
32138
|
copy(t, n) {
|
|
32139
|
-
return new
|
|
32139
|
+
return new Lt(t, n, this.type);
|
|
32140
32140
|
}
|
|
32141
32141
|
/**
|
|
32142
32142
|
@internal
|
|
@@ -32159,14 +32159,14 @@ class Dt {
|
|
|
32159
32159
|
widget's current document position.
|
|
32160
32160
|
*/
|
|
32161
32161
|
static widget(t, n, r) {
|
|
32162
|
-
return new
|
|
32162
|
+
return new Lt(t, t, new fi(n, r));
|
|
32163
32163
|
}
|
|
32164
32164
|
/**
|
|
32165
32165
|
Creates an inline decoration, which adds the given attributes to
|
|
32166
32166
|
each inline node between `from` and `to`.
|
|
32167
32167
|
*/
|
|
32168
32168
|
static inline(t, n, r, l) {
|
|
32169
|
-
return new
|
|
32169
|
+
return new Lt(t, n, new Fn(r, l));
|
|
32170
32170
|
}
|
|
32171
32171
|
/**
|
|
32172
32172
|
Creates a node decoration. `from` and `to` should point precisely
|
|
@@ -32174,7 +32174,7 @@ class Dt {
|
|
|
32174
32174
|
node, will receive the given attributes.
|
|
32175
32175
|
*/
|
|
32176
32176
|
static node(t, n, r, l) {
|
|
32177
|
-
return new
|
|
32177
|
+
return new Lt(t, n, new Du(r, l));
|
|
32178
32178
|
}
|
|
32179
32179
|
/**
|
|
32180
32180
|
The spec provided when creating this decoration. Can be useful
|
|
@@ -32196,13 +32196,13 @@ class Dt {
|
|
|
32196
32196
|
return this.type instanceof fi;
|
|
32197
32197
|
}
|
|
32198
32198
|
}
|
|
32199
|
-
const
|
|
32199
|
+
const Dr = [], hr = {};
|
|
32200
32200
|
class Xe {
|
|
32201
32201
|
/**
|
|
32202
32202
|
@internal
|
|
32203
32203
|
*/
|
|
32204
32204
|
constructor(t, n) {
|
|
32205
|
-
this.local = t.length ? t :
|
|
32205
|
+
this.local = t.length ? t : Dr, this.children = n.length ? n : Dr;
|
|
32206
32206
|
}
|
|
32207
32207
|
/**
|
|
32208
32208
|
Create a set of decorations, using the structure of the given
|
|
@@ -32251,7 +32251,7 @@ class Xe {
|
|
|
32251
32251
|
let o = this.local[s].map(t, r, l);
|
|
32252
32252
|
o && o.type.valid(n, o) ? (i || (i = [])).push(o) : a.onRemove && a.onRemove(this.local[s].spec);
|
|
32253
32253
|
}
|
|
32254
|
-
return this.children.length ? J5(this.children, i || [], t, n, r, l, a) : i ? new Xe(i.sort(pr),
|
|
32254
|
+
return this.children.length ? J5(this.children, i || [], t, n, r, l, a) : i ? new Xe(i.sort(pr), Dr) : ht;
|
|
32255
32255
|
}
|
|
32256
32256
|
/**
|
|
32257
32257
|
Add the given array of decorations to the ones in the set,
|
|
@@ -32324,7 +32324,7 @@ class Xe {
|
|
|
32324
32324
|
}
|
|
32325
32325
|
}
|
|
32326
32326
|
if (l) {
|
|
32327
|
-
let s = new Xe(l.sort(pr),
|
|
32327
|
+
let s = new Xe(l.sort(pr), Dr);
|
|
32328
32328
|
return r ? new _n([s, r]) : s;
|
|
32329
32329
|
}
|
|
32330
32330
|
return r || ht;
|
|
@@ -32349,14 +32349,14 @@ class Xe {
|
|
|
32349
32349
|
@internal
|
|
32350
32350
|
*/
|
|
32351
32351
|
locals(t) {
|
|
32352
|
-
return
|
|
32352
|
+
return Lu(this.localsInner(t));
|
|
32353
32353
|
}
|
|
32354
32354
|
/**
|
|
32355
32355
|
@internal
|
|
32356
32356
|
*/
|
|
32357
32357
|
localsInner(t) {
|
|
32358
32358
|
if (this == ht)
|
|
32359
|
-
return
|
|
32359
|
+
return Dr;
|
|
32360
32360
|
if (t.inlineContent || !this.local.some(Fn.is))
|
|
32361
32361
|
return this.local;
|
|
32362
32362
|
let n = [];
|
|
@@ -32369,7 +32369,7 @@ class Xe {
|
|
|
32369
32369
|
}
|
|
32370
32370
|
}
|
|
32371
32371
|
Xe.empty = new Xe([], []);
|
|
32372
|
-
Xe.removeOverlap =
|
|
32372
|
+
Xe.removeOverlap = Lu;
|
|
32373
32373
|
const ht = Xe.empty;
|
|
32374
32374
|
class _n {
|
|
32375
32375
|
constructor(t) {
|
|
@@ -32410,7 +32410,7 @@ class _n {
|
|
|
32410
32410
|
n.push(a[i]);
|
|
32411
32411
|
}
|
|
32412
32412
|
}
|
|
32413
|
-
return n ?
|
|
32413
|
+
return n ? Lu(r ? n : n.sort(pr)) : Dr;
|
|
32414
32414
|
}
|
|
32415
32415
|
// Create a group for the given array of decoration sets, or return
|
|
32416
32416
|
// a single set when possible.
|
|
@@ -32484,7 +32484,7 @@ function Bm(e, t) {
|
|
|
32484
32484
|
let n = [];
|
|
32485
32485
|
for (let r = 0; r < e.length; r++) {
|
|
32486
32486
|
let l = e[r];
|
|
32487
|
-
n.push(new
|
|
32487
|
+
n.push(new Lt(l.from + t, l.to + t, l.type));
|
|
32488
32488
|
}
|
|
32489
32489
|
return n;
|
|
32490
32490
|
}
|
|
@@ -32533,7 +32533,7 @@ function hi(e, t, n, r) {
|
|
|
32533
32533
|
function pr(e, t) {
|
|
32534
32534
|
return e.from - t.from || e.to - t.to;
|
|
32535
32535
|
}
|
|
32536
|
-
function
|
|
32536
|
+
function Lu(e) {
|
|
32537
32537
|
let t = e;
|
|
32538
32538
|
for (let n = 0; n < t.length - 1; n++) {
|
|
32539
32539
|
let r = t[n];
|
|
@@ -32704,7 +32704,7 @@ class rS {
|
|
|
32704
32704
|
}
|
|
32705
32705
|
}
|
|
32706
32706
|
let u = null;
|
|
32707
|
-
a < 0 && l && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 &&
|
|
32707
|
+
a < 0 && l && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 && Di(r) && (u = wu(t)) && u.eq(Ae.near(t.state.doc.resolve(0), 1)) ? (t.input.lastFocus = 0, pn(t), this.currentSelection.set(r), t.scrollToSelection()) : (a > -1 || l) && (a > -1 && (t.docView.markDirty(a, i), lS(t)), t.input.badSafariComposition && (t.input.badSafariComposition = !1, sS(t, o)), this.handleDOMChange(a, i, s, o), t.docView && t.docView.dirty ? t.updateState(t.state) : this.currentSelection.eq(r) || pn(t), this.currentSelection.set(r));
|
|
32708
32708
|
}
|
|
32709
32709
|
registerMutation(t, n) {
|
|
32710
32710
|
if (n.indexOf(t.target) > -1)
|
|
@@ -32794,7 +32794,7 @@ function sS(e, t) {
|
|
|
32794
32794
|
}
|
|
32795
32795
|
function oS(e, t, n) {
|
|
32796
32796
|
let { node: r, fromOffset: l, toOffset: a, from: i, to: s } = e.docView.parseRange(t, n), o = e.domSelectionRange(), u, c = o.anchorNode;
|
|
32797
|
-
if (c && e.dom.contains(c.nodeType == 1 ? c : c.parentNode) && (u = [{ node: c, offset: o.anchorOffset }],
|
|
32797
|
+
if (c && e.dom.contains(c.nodeType == 1 ? c : c.parentNode) && (u = [{ node: c, offset: o.anchorOffset }], Di(o) || u.push({ node: o.focusNode, offset: o.focusOffset })), dt && e.input.lastKeyCode === 8)
|
|
32798
32798
|
for (let b = a; b > l; b--) {
|
|
32799
32799
|
let y = r.childNodes[b - 1], A = y.pmViewDesc;
|
|
32800
32800
|
if (y.nodeName == "BR" && !A) {
|
|
@@ -33022,7 +33022,7 @@ class Um {
|
|
|
33022
33022
|
the DOM.
|
|
33023
33023
|
*/
|
|
33024
33024
|
update(t) {
|
|
33025
|
-
t.handleDOMEvents != this._props.handleDOMEvents &&
|
|
33025
|
+
t.handleDOMEvents != this._props.handleDOMEvents && Do(this);
|
|
33026
33026
|
let n = this._props;
|
|
33027
33027
|
this._props = t, t.plugins && (t.plugins.forEach(Qf), this.directPlugins = t.plugins), this.updateStateInner(t.state, n);
|
|
33028
33028
|
}
|
|
@@ -33056,7 +33056,7 @@ class Um {
|
|
|
33056
33056
|
let f = Gf(this);
|
|
33057
33057
|
bS(f, this.nodeViews) && (this.nodeViews = f, a = !0);
|
|
33058
33058
|
}
|
|
33059
|
-
(s || n.handleDOMEvents != this._props.handleDOMEvents) &&
|
|
33059
|
+
(s || n.handleDOMEvents != this._props.handleDOMEvents) && Do(this), this.editable = Kf(this), jf(this);
|
|
33060
33060
|
let o = Vs(this), u = Yf(this), c = l.plugins != t.plugins && !l.doc.eq(t.doc) ? "reset" : t.scrollToSelection > l.scrollToSelection ? "to selection" : "preserve", d = a || !this.docView.matchesNode(t.doc, u, o);
|
|
33061
33061
|
(d || !t.selection.eq(l.selection)) && (i = !0);
|
|
33062
33062
|
let h = c == "preserve" && i && this.dom.style.overflowAnchor == null && Wx(this);
|
|
@@ -33114,7 +33114,7 @@ class Um {
|
|
|
33114
33114
|
let a = r.from + (this.state.doc.content.size - n.doc.content.size);
|
|
33115
33115
|
(a > 0 && a < this.state.doc.content.size && this.state.doc.nodeAt(a)) == r.node && (l = a);
|
|
33116
33116
|
}
|
|
33117
|
-
this.dragging = new
|
|
33117
|
+
this.dragging = new Lm(t.slice, t.move, l < 0 ? void 0 : be.create(this.state.doc, l));
|
|
33118
33118
|
}
|
|
33119
33119
|
someProp(t, n) {
|
|
33120
33120
|
let r = this._props && this._props[t], l;
|
|
@@ -33287,7 +33287,7 @@ class Um {
|
|
|
33287
33287
|
views](https://prosemirror.net/docs/ref/#view.NodeView).
|
|
33288
33288
|
*/
|
|
33289
33289
|
destroy() {
|
|
33290
|
-
this.docView && (M5(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], Vs(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null,
|
|
33290
|
+
this.docView && (M5(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], Vs(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, Lx());
|
|
33291
33291
|
}
|
|
33292
33292
|
/**
|
|
33293
33293
|
This is true when the view has been
|
|
@@ -33301,7 +33301,7 @@ class Um {
|
|
|
33301
33301
|
Used for testing.
|
|
33302
33302
|
*/
|
|
33303
33303
|
dispatchEvent(t) {
|
|
33304
|
-
return
|
|
33304
|
+
return D5(this, t);
|
|
33305
33305
|
}
|
|
33306
33306
|
/**
|
|
33307
33307
|
@internal
|
|
@@ -33327,12 +33327,12 @@ function Yf(e) {
|
|
|
33327
33327
|
if (typeof n == "function" && (n = n(e.state)), n)
|
|
33328
33328
|
for (let r in n)
|
|
33329
33329
|
r == "class" ? t.class += " " + n[r] : r == "style" ? t.style = (t.style ? t.style + ";" : "") + n[r] : !t[r] && r != "contenteditable" && r != "nodeName" && (t[r] = String(n[r]));
|
|
33330
|
-
}), t.translate || (t.translate = "no"), [
|
|
33330
|
+
}), t.translate || (t.translate = "no"), [Lt.node(0, e.state.doc.content.size, t)];
|
|
33331
33331
|
}
|
|
33332
33332
|
function jf(e) {
|
|
33333
33333
|
if (e.markCursor) {
|
|
33334
33334
|
let t = document.createElement("img");
|
|
33335
|
-
t.className = "ProseMirror-separator", t.setAttribute("mark-placeholder", "true"), t.setAttribute("alt", ""), e.cursorWrapper = { dom: t, deco:
|
|
33335
|
+
t.className = "ProseMirror-separator", t.setAttribute("mark-placeholder", "true"), t.setAttribute("alt", ""), e.cursorWrapper = { dom: t, deco: Lt.widget(e.state.selection.from, t, { raw: !0, marks: e.markCursor }) };
|
|
33336
33336
|
} else
|
|
33337
33337
|
e.cursorWrapper = null;
|
|
33338
33338
|
}
|
|
@@ -33768,13 +33768,13 @@ const MS = OS(), RS = (e, t) => {
|
|
|
33768
33768
|
let { $from: n, to: r } = e.selection, l, a = n.sharedDepth(r);
|
|
33769
33769
|
return a == 0 ? !1 : (l = n.before(a), t && t(e.tr.setSelection(be.create(e.doc, l))), !0);
|
|
33770
33770
|
};
|
|
33771
|
-
function
|
|
33771
|
+
function DS(e, t, n) {
|
|
33772
33772
|
let r = t.nodeBefore, l = t.nodeAfter, a = t.index();
|
|
33773
33773
|
return !r || !l || !r.type.compatibleContent(l.type) ? !1 : !r.content.size && t.parent.canReplace(a - 1, a) ? (n && n(e.tr.delete(t.pos - r.nodeSize, t.pos).scrollIntoView()), !0) : !t.parent.canReplace(a, a + 1) || !(l.isTextblock || Wn(e.doc, t.pos)) ? !1 : (n && n(e.tr.join(t.pos).scrollIntoView()), !0);
|
|
33774
33774
|
}
|
|
33775
33775
|
function Jm(e, t, n, r) {
|
|
33776
33776
|
let l = t.nodeBefore, a = t.nodeAfter, i, s, o = l.type.spec.isolating || a.type.spec.isolating;
|
|
33777
|
-
if (!o &&
|
|
33777
|
+
if (!o && DS(e, t, n))
|
|
33778
33778
|
return !0;
|
|
33779
33779
|
let u = !o && t.parent.canReplace(t.index(), t.index() + 1);
|
|
33780
33780
|
if (u && (i = (s = l.contentMatchAt(l.childCount)).findWrapping(a.type)) && s.matchType(i[0] || a.type).validEnd) {
|
|
@@ -33822,7 +33822,7 @@ function Zm(e) {
|
|
|
33822
33822
|
return l.node(a).isTextblock ? (n && n(t.tr.setSelection(Ee.create(t.doc, e < 0 ? l.start(a) : l.end(a)))), !0) : !1;
|
|
33823
33823
|
};
|
|
33824
33824
|
}
|
|
33825
|
-
const
|
|
33825
|
+
const LS = Zm(-1), PS = Zm(1);
|
|
33826
33826
|
function BS(e, t = null) {
|
|
33827
33827
|
return function(n, r) {
|
|
33828
33828
|
let { $from: l, $to: a } = n.selection, i = l.blockRange(a), s = i && ku(i, e, t);
|
|
@@ -34162,7 +34162,7 @@ function Ct(...e) {
|
|
|
34162
34162
|
}), r;
|
|
34163
34163
|
}, {});
|
|
34164
34164
|
}
|
|
34165
|
-
function
|
|
34165
|
+
function Lo(e, t) {
|
|
34166
34166
|
return t.filter((n) => n.type === e.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(e.attrs) || {} : {
|
|
34167
34167
|
[n.name]: e.attrs[n.name]
|
|
34168
34168
|
}).reduce((n, r) => Ct(n, r), {});
|
|
@@ -34240,7 +34240,7 @@ function KS(e, t) {
|
|
|
34240
34240
|
const g = ce(u, "renderHTML", d);
|
|
34241
34241
|
g && (f.toDOM = (y) => g({
|
|
34242
34242
|
node: y,
|
|
34243
|
-
HTMLAttributes:
|
|
34243
|
+
HTMLAttributes: Lo(y, c)
|
|
34244
34244
|
}));
|
|
34245
34245
|
const b = ce(u, "renderText", d);
|
|
34246
34246
|
return b && (f.toText = b), [u.name, f];
|
|
@@ -34272,7 +34272,7 @@ function KS(e, t) {
|
|
|
34272
34272
|
const g = ce(u, "renderHTML", d);
|
|
34273
34273
|
return g && (f.toDOM = (b) => g({
|
|
34274
34274
|
mark: b,
|
|
34275
|
-
HTMLAttributes:
|
|
34275
|
+
HTMLAttributes: Lo(b, c)
|
|
34276
34276
|
})), [u.name, f];
|
|
34277
34277
|
}));
|
|
34278
34278
|
return new V0({
|
|
@@ -34441,13 +34441,13 @@ function XS(e) {
|
|
|
34441
34441
|
function JS(e) {
|
|
34442
34442
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
34443
34443
|
}
|
|
34444
|
-
function
|
|
34444
|
+
function Da(e) {
|
|
34445
34445
|
return JS(e) !== "Object" ? !1 : e.constructor === Object && Object.getPrototypeOf(e) === Object.prototype;
|
|
34446
34446
|
}
|
|
34447
34447
|
function zi(e, t) {
|
|
34448
34448
|
const n = { ...e };
|
|
34449
|
-
return
|
|
34450
|
-
|
|
34449
|
+
return Da(e) && Da(t) && Object.keys(t).forEach((r) => {
|
|
34450
|
+
Da(t[r]) && Da(e[r]) ? n[r] = zi(e[r], t[r]) : n[r] = t[r];
|
|
34451
34451
|
}), n;
|
|
34452
34452
|
}
|
|
34453
34453
|
class Un {
|
|
@@ -34542,7 +34542,7 @@ function nk(e) {
|
|
|
34542
34542
|
});
|
|
34543
34543
|
}), d.every((f) => f !== null);
|
|
34544
34544
|
}
|
|
34545
|
-
let
|
|
34545
|
+
let La = null;
|
|
34546
34546
|
const rk = (e) => {
|
|
34547
34547
|
var t;
|
|
34548
34548
|
const n = new ClipboardEvent("paste", {
|
|
@@ -34585,9 +34585,9 @@ function lk(e) {
|
|
|
34585
34585
|
view(d) {
|
|
34586
34586
|
const h = (m) => {
|
|
34587
34587
|
var g;
|
|
34588
|
-
r = !((g = d.dom.parentElement) === null || g === void 0) && g.contains(m.target) ? d.dom.parentElement : null, r && (
|
|
34588
|
+
r = !((g = d.dom.parentElement) === null || g === void 0) && g.contains(m.target) ? d.dom.parentElement : null, r && (La = t);
|
|
34589
34589
|
}, f = () => {
|
|
34590
|
-
|
|
34590
|
+
La && (La = null);
|
|
34591
34591
|
};
|
|
34592
34592
|
return window.addEventListener("dragstart", h), window.addEventListener("dragend", f), {
|
|
34593
34593
|
destroy() {
|
|
@@ -34599,7 +34599,7 @@ function lk(e) {
|
|
|
34599
34599
|
handleDOMEvents: {
|
|
34600
34600
|
drop: (d, h) => {
|
|
34601
34601
|
if (a = r === d.dom.parentElement, s = h, !a) {
|
|
34602
|
-
const f =
|
|
34602
|
+
const f = La;
|
|
34603
34603
|
f?.isEditable && setTimeout(() => {
|
|
34604
34604
|
const m = f.state.selection;
|
|
34605
34605
|
m && f.commands.deleteRange({ from: m.from, to: m.to });
|
|
@@ -34772,7 +34772,7 @@ class Fr {
|
|
|
34772
34772
|
if (!i)
|
|
34773
34773
|
return [];
|
|
34774
34774
|
const s = (o, u, c, d, h) => {
|
|
34775
|
-
const f =
|
|
34775
|
+
const f = Lo(o, l);
|
|
34776
34776
|
return i()({
|
|
34777
34777
|
// pass-through
|
|
34778
34778
|
node: o,
|
|
@@ -35063,7 +35063,7 @@ function Pa(e) {
|
|
|
35063
35063
|
return s1(n);
|
|
35064
35064
|
}
|
|
35065
35065
|
function Gl(e, t, n) {
|
|
35066
|
-
if (e instanceof
|
|
35066
|
+
if (e instanceof Ln || e instanceof X)
|
|
35067
35067
|
return e;
|
|
35068
35068
|
n = {
|
|
35069
35069
|
slice: !0,
|
|
@@ -35201,7 +35201,7 @@ const Ak = (e) => !("type" in e), Nk = (e, t, n) => ({ tr: r, dispatch: l, edito
|
|
|
35201
35201
|
} catch {
|
|
35202
35202
|
return !1;
|
|
35203
35203
|
}
|
|
35204
|
-
},
|
|
35204
|
+
}, Dk = () => ({ state: e, dispatch: t }) => kS(e, t), Lk = () => ({ state: e, dispatch: t }) => AS(e, t);
|
|
35205
35205
|
function o1() {
|
|
35206
35206
|
return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
|
|
35207
35207
|
}
|
|
@@ -35289,7 +35289,7 @@ const Vk = (e, t) => ({ tr: n, state: r, dispatch: l }) => {
|
|
|
35289
35289
|
e.setSelection(n);
|
|
35290
35290
|
}
|
|
35291
35291
|
return !0;
|
|
35292
|
-
}, Wk = () => ({ state: e, dispatch: t }) => Wm(e, t), Yk = () => ({ state: e, dispatch: t }) => Km(e, t), jk = () => ({ state: e, dispatch: t }) => RS(e, t), Kk = () => ({ state: e, dispatch: t }) => PS(e, t), Gk = () => ({ state: e, dispatch: t }) =>
|
|
35292
|
+
}, Wk = () => ({ state: e, dispatch: t }) => Wm(e, t), Yk = () => ({ state: e, dispatch: t }) => Km(e, t), jk = () => ({ state: e, dispatch: t }) => RS(e, t), Kk = () => ({ state: e, dispatch: t }) => PS(e, t), Gk = () => ({ state: e, dispatch: t }) => LS(e, t);
|
|
35293
35293
|
function Po(e, t, n = {}, r = {}) {
|
|
35294
35294
|
return Gl(e, t, {
|
|
35295
35295
|
slice: !1,
|
|
@@ -35746,8 +35746,8 @@ var x8 = /* @__PURE__ */ Object.freeze({
|
|
|
35746
35746
|
joinForward: Ok,
|
|
35747
35747
|
joinItemBackward: Mk,
|
|
35748
35748
|
joinItemForward: Rk,
|
|
35749
|
-
joinTextblockBackward:
|
|
35750
|
-
joinTextblockForward:
|
|
35749
|
+
joinTextblockBackward: Dk,
|
|
35750
|
+
joinTextblockForward: Lk,
|
|
35751
35751
|
joinUp: wk,
|
|
35752
35752
|
keyboardShortcut: Bk,
|
|
35753
35753
|
lift: Fk,
|
|
@@ -36161,7 +36161,7 @@ function R8(e, t, n) {
|
|
|
36161
36161
|
const l = document.createElement("style");
|
|
36162
36162
|
return t && l.setAttribute("nonce", t), l.setAttribute("data-tiptap-style", ""), l.innerHTML = e, document.getElementsByTagName("head")[0].appendChild(l), l;
|
|
36163
36163
|
}
|
|
36164
|
-
class
|
|
36164
|
+
class D8 extends WS {
|
|
36165
36165
|
constructor(t = {}) {
|
|
36166
36166
|
super(), this.isFocused = !1, this.isInitialized = !1, this.extensionStorage = {}, this.options = {
|
|
36167
36167
|
element: document.createElement("div"),
|
|
@@ -36527,7 +36527,7 @@ function Kr(e) {
|
|
|
36527
36527
|
}
|
|
36528
36528
|
});
|
|
36529
36529
|
}
|
|
36530
|
-
function
|
|
36530
|
+
function L8(e) {
|
|
36531
36531
|
return new Ui({
|
|
36532
36532
|
find: e.find,
|
|
36533
36533
|
handler: ({ state: t, range: n, match: r }) => {
|
|
@@ -37147,7 +37147,7 @@ class Wu {
|
|
|
37147
37147
|
return (a = (l = this.options.current).onPaste) === null || a === void 0 ? void 0 : a.call(l, ...r);
|
|
37148
37148
|
}
|
|
37149
37149
|
};
|
|
37150
|
-
return new
|
|
37150
|
+
return new D8(t);
|
|
37151
37151
|
}
|
|
37152
37152
|
/**
|
|
37153
37153
|
* Get the current editor instance.
|
|
@@ -37864,7 +37864,7 @@ function _A(e) {
|
|
|
37864
37864
|
if (!(e.selection instanceof We))
|
|
37865
37865
|
return null;
|
|
37866
37866
|
let t = document.createElement("div");
|
|
37867
|
-
return t.className = "ProseMirror-gapcursor", Xe.create(e.doc, [
|
|
37867
|
+
return t.className = "ProseMirror-gapcursor", Xe.create(e.doc, [Lt.widget(e.selection.head, t, { key: "gapcursor" })]);
|
|
37868
37868
|
}
|
|
37869
37869
|
const OA = mt.create({
|
|
37870
37870
|
name: "gapCursor",
|
|
@@ -37993,7 +37993,7 @@ at.prototype.prepend = function(t) {
|
|
|
37993
37993
|
return t.length ? at.from(t).append(this) : this;
|
|
37994
37994
|
};
|
|
37995
37995
|
at.prototype.appendInner = function(t) {
|
|
37996
|
-
return new
|
|
37996
|
+
return new DA(this, t);
|
|
37997
37997
|
};
|
|
37998
37998
|
at.prototype.slice = function(t, n) {
|
|
37999
37999
|
return t === void 0 && (t = 0), n === void 0 && (n = this.length), t >= n ? at.empty : this.sliceInner(Math.max(0, t), Math.min(this.length, n));
|
|
@@ -38048,7 +38048,7 @@ var f1 = /* @__PURE__ */ function(e) {
|
|
|
38048
38048
|
}, Object.defineProperties(t.prototype, n), t;
|
|
38049
38049
|
}(at);
|
|
38050
38050
|
at.empty = new f1([]);
|
|
38051
|
-
var
|
|
38051
|
+
var DA = /* @__PURE__ */ function(e) {
|
|
38052
38052
|
function t(n, r) {
|
|
38053
38053
|
e.call(this), this.left = n, this.right = r, this.length = n.length + r.length, this.depth = Math.max(n.depth, r.depth) + 1;
|
|
38054
38054
|
}
|
|
@@ -38081,7 +38081,7 @@ var LA = /* @__PURE__ */ function(e) {
|
|
|
38081
38081
|
return this.left.depth >= Math.max(this.right.depth, r.depth) + 1 ? new t(this.left, new t(this.right, r)) : new t(this, r);
|
|
38082
38082
|
}, t;
|
|
38083
38083
|
}(at);
|
|
38084
|
-
const
|
|
38084
|
+
const LA = 500;
|
|
38085
38085
|
class Yt {
|
|
38086
38086
|
constructor(t, n) {
|
|
38087
38087
|
this.items = t, this.eventCount = n;
|
|
@@ -38163,7 +38163,7 @@ class Yt {
|
|
|
38163
38163
|
for (let h = n; h < i; h++)
|
|
38164
38164
|
u.push(new Xt(a.maps[h]));
|
|
38165
38165
|
let c = this.items.slice(0, l).append(u).append(r), d = new Yt(c, s);
|
|
38166
|
-
return d.emptyItemCount() >
|
|
38166
|
+
return d.emptyItemCount() > LA && (d = d.compress(this.items.length - r.length)), d;
|
|
38167
38167
|
}
|
|
38168
38168
|
emptyItemCount() {
|
|
38169
38169
|
let t = 0;
|
|
@@ -38395,7 +38395,7 @@ const p1 = h1(!1, !0), m1 = h1(!0, !0), $A = mt.create({
|
|
|
38395
38395
|
},
|
|
38396
38396
|
addInputRules() {
|
|
38397
38397
|
return [
|
|
38398
|
-
|
|
38398
|
+
L8({
|
|
38399
38399
|
find: /^(?:---|—-|___\s|\*\*\*\s)$/,
|
|
38400
38400
|
type: this.type
|
|
38401
38401
|
})
|
|
@@ -38680,7 +38680,7 @@ const p1 = h1(!1, !0), m1 = h1(!0, !0), $A = mt.create({
|
|
|
38680
38680
|
if ((o || !this.options.showOnlyCurrent) && u) {
|
|
38681
38681
|
const c = [this.options.emptyNodeClass];
|
|
38682
38682
|
a && c.push(this.options.emptyEditorClass);
|
|
38683
|
-
const d =
|
|
38683
|
+
const d = Lt.node(s, s + i.nodeSize, {
|
|
38684
38684
|
class: c.join(" "),
|
|
38685
38685
|
"data-placeholder": typeof this.options.placeholder == "function" ? this.options.placeholder({
|
|
38686
38686
|
editor: this.editor,
|
|
@@ -39005,7 +39005,7 @@ const oN = (e) => {
|
|
|
39005
39005
|
);
|
|
39006
39006
|
case "report-module":
|
|
39007
39007
|
return /* @__PURE__ */ v(
|
|
39008
|
-
|
|
39008
|
+
L4,
|
|
39009
39009
|
{
|
|
39010
39010
|
node: t,
|
|
39011
39011
|
value: typeof e.value == "string" ? e.value : void 0,
|
|
@@ -39613,7 +39613,7 @@ function Th(e = "width") {
|
|
|
39613
39613
|
}, [e]);
|
|
39614
39614
|
return [t, n, l];
|
|
39615
39615
|
}
|
|
39616
|
-
const MN = ["全部技能", "我的技能", "订阅技能", "系统技能"], RN = ["all", "mine", "subscribe", "system"],
|
|
39616
|
+
const MN = ["全部技能", "我的技能", "订阅技能", "系统技能"], RN = ["all", "mine", "subscribe", "system"], DN = 20, LN = {
|
|
39617
39617
|
system: "系统技能",
|
|
39618
39618
|
mine: "我的技能",
|
|
39619
39619
|
subscribe: "订阅技能"
|
|
@@ -39789,7 +39789,7 @@ const MN = ["全部技能", "我的技能", "订阅技能", "系统技能"], RN
|
|
|
39789
39789
|
}
|
|
39790
39790
|
),
|
|
39791
39791
|
/* @__PURE__ */ W("div", { className: `rte-skill-card-aside${M ? " rte-skill-card-aside-pinned" : ""}`, children: [
|
|
39792
|
-
/* @__PURE__ */ v("span", { className: `rte-skill-card-badge rte-skill-card-badge-${e.badge}`, children:
|
|
39792
|
+
/* @__PURE__ */ v("span", { className: `rte-skill-card-badge rte-skill-card-badge-${e.badge}`, children: LN[e.badge] }),
|
|
39793
39793
|
/* @__PURE__ */ W("div", { className: `rte-skill-card-actions${M ? " rte-skill-card-actions-pinned" : ""}`, children: [
|
|
39794
39794
|
e.badge === "mine" && /* @__PURE__ */ v(
|
|
39795
39795
|
Xa,
|
|
@@ -39918,7 +39918,7 @@ const MN = ["全部技能", "我的技能", "订阅技能", "系统技能"], RN
|
|
|
39918
39918
|
const ne = await l({
|
|
39919
39919
|
skillType: RN[u],
|
|
39920
39920
|
pageIndex: 1,
|
|
39921
|
-
pageSize:
|
|
39921
|
+
pageSize: DN,
|
|
39922
39922
|
keyword: x || void 0
|
|
39923
39923
|
});
|
|
39924
39924
|
if (T !== R.current) return;
|
|
@@ -40061,7 +40061,7 @@ const Ha = 4, x1 = () => /* @__PURE__ */ v(
|
|
|
40061
40061
|
}, [m, A, u]), [I, M] = K(null), x = J(null), w = J(null), N = tl(), k = $(() => (x.current?.closest(".rich-text-editor") ?? x.current)?.getBoundingClientRect() ?? null, []), R = $(() => {
|
|
40062
40062
|
const E = k();
|
|
40063
40063
|
if (!E) return;
|
|
40064
|
-
const B = Math.max(0, window.innerHeight - E.bottom - Ha * 2), U = Math.max(0, E.top - Ha * 2), G = (w.current?.scrollHeight ?? 0) > B && U > B, T = G ? U : B, ie = (w.current?.offsetParent ?? N)?.getBoundingClientRect(),
|
|
40064
|
+
const B = Math.max(0, window.innerHeight - E.bottom - Ha * 2), U = Math.max(0, E.top - Ha * 2), G = (w.current?.scrollHeight ?? 0) > B && U > B, T = G ? U : B, ie = (w.current?.offsetParent ?? N)?.getBoundingClientRect(), D = ie?.left ?? 0, pe = ie?.top ?? 0, ye = E.left - D;
|
|
40065
40065
|
if (G) {
|
|
40066
40066
|
const de = (ie?.height ?? window.innerHeight) - (E.top - Ha - pe);
|
|
40067
40067
|
M({ left: ye, bottom: de, width: E.width, maxHeight: T });
|
|
@@ -40537,12 +40537,12 @@ const u9 = { points: ["tl", "tr"], offset: [4, 0] }, _1 = ve.memo(
|
|
|
40537
40537
|
key: "agent",
|
|
40538
40538
|
// 选中智能体后置顶常驻、不折叠进「更多」(与技能一致)。智能体与技能互斥,不会同时置顶。
|
|
40539
40539
|
pinned: !!h,
|
|
40540
|
-
node: ({ close:
|
|
40540
|
+
node: ({ close: D, inMenu: pe }) => /* @__PURE__ */ v(
|
|
40541
40541
|
T1,
|
|
40542
40542
|
{
|
|
40543
40543
|
options: o,
|
|
40544
40544
|
onSelect: (ye) => {
|
|
40545
|
-
u?.(ye),
|
|
40545
|
+
u?.(ye), D();
|
|
40546
40546
|
},
|
|
40547
40547
|
disabled: n || e,
|
|
40548
40548
|
currentAgent: h,
|
|
@@ -40576,12 +40576,12 @@ const u9 = { points: ["tl", "tr"], offset: [4, 0] }, _1 = ve.memo(
|
|
|
40576
40576
|
}
|
|
40577
40577
|
),
|
|
40578
40578
|
// 「更多」里的技能代理行:点击 → 触发内联的真实技能按钮打开面板 + 收起菜单
|
|
40579
|
-
renderMenuItem: ({ close:
|
|
40579
|
+
renderMenuItem: ({ close: D, activate: pe }) => /* @__PURE__ */ W(
|
|
40580
40580
|
"div",
|
|
40581
40581
|
{
|
|
40582
40582
|
className: `rte-skill-badge${f ? " rte-skill-badge-selected" : ""}`,
|
|
40583
40583
|
onClick: () => {
|
|
40584
|
-
n || e || (pe(),
|
|
40584
|
+
n || e || (pe(), D());
|
|
40585
40585
|
},
|
|
40586
40586
|
style: { cursor: n || e ? "not-allowed" : "pointer" },
|
|
40587
40587
|
children: [
|
|
@@ -40594,12 +40594,12 @@ const u9 = { points: ["tl", "tr"], offset: [4, 0] }, _1 = ve.memo(
|
|
|
40594
40594
|
key: "ai-image",
|
|
40595
40595
|
// 选中 AI生图 后置顶常驻、不折叠进「更多」(与技能/智能体一致)。
|
|
40596
40596
|
pinned: !!k,
|
|
40597
|
-
node: ({ close:
|
|
40597
|
+
node: ({ close: D }) => /* @__PURE__ */ v(
|
|
40598
40598
|
A1,
|
|
40599
40599
|
{
|
|
40600
40600
|
selected: k,
|
|
40601
40601
|
onClick: () => {
|
|
40602
|
-
N?.(),
|
|
40602
|
+
N?.(), D();
|
|
40603
40603
|
},
|
|
40604
40604
|
onExit: _,
|
|
40605
40605
|
disabled: n || e
|
|
@@ -40713,14 +40713,14 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40713
40713
|
r || (r = !0, i(), t(d));
|
|
40714
40714
|
}, o = () => {
|
|
40715
40715
|
try {
|
|
40716
|
-
const
|
|
40717
|
-
|
|
40718
|
-
const
|
|
40719
|
-
if (!
|
|
40716
|
+
const h = n.videoWidth || 32, f = n.videoHeight || 32, m = Math.min(1, 160 / Math.max(h, f)), g = document.createElement("canvas");
|
|
40717
|
+
g.width = Math.max(1, Math.round(h * m)), g.height = Math.max(1, Math.round(f * m));
|
|
40718
|
+
const b = g.getContext("2d");
|
|
40719
|
+
if (!b || g.width <= 0 || g.height <= 0) {
|
|
40720
40720
|
s("");
|
|
40721
40721
|
return;
|
|
40722
40722
|
}
|
|
40723
|
-
|
|
40723
|
+
b.drawImage(n, 0, 0, g.width, g.height), s(g.toDataURL("image/jpeg", 0.72));
|
|
40724
40724
|
} catch {
|
|
40725
40725
|
s("");
|
|
40726
40726
|
}
|
|
@@ -40843,7 +40843,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40843
40843
|
}
|
|
40844
40844
|
)
|
|
40845
40845
|
] });
|
|
40846
|
-
},
|
|
40846
|
+
}, D1 = ve.memo(({ files: e, onChange: t, reports: n, onReportRemove: r, fileUrls: l, onFileUrlRemove: a }) => {
|
|
40847
40847
|
const i = J(null), s = J([]), o = J(/* @__PURE__ */ new WeakMap()), u = J(0), c = J(null), [d, h] = K({
|
|
40848
40848
|
showLeft: !1,
|
|
40849
40849
|
showRight: !1
|
|
@@ -40942,7 +40942,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40942
40942
|
) })
|
|
40943
40943
|
] });
|
|
40944
40944
|
});
|
|
40945
|
-
|
|
40945
|
+
D1.displayName = "FooterFilesList";
|
|
40946
40946
|
const Sh = 9999, E9 = ({ messageRef: e }) => {
|
|
40947
40947
|
const { message: t } = zn.useApp();
|
|
40948
40948
|
return e.current = t, null;
|
|
@@ -41005,13 +41005,13 @@ const Y9 = (e) => {
|
|
|
41005
41005
|
onSkillAction: T,
|
|
41006
41006
|
onSkillCardClick: ne,
|
|
41007
41007
|
onSkillHeaderAction: ie,
|
|
41008
|
-
skillListFetch:
|
|
41008
|
+
skillListFetch: D,
|
|
41009
41009
|
showCreateSkill: pe,
|
|
41010
41010
|
createDisabled: ye,
|
|
41011
41011
|
skillPanelOpen: Ce,
|
|
41012
41012
|
onSkillPanelOpenChange: de,
|
|
41013
41013
|
skillPanelOpenDelay: Ie,
|
|
41014
|
-
selectedSkill:
|
|
41014
|
+
selectedSkill: Le,
|
|
41015
41015
|
onSkillSelect: xe,
|
|
41016
41016
|
onAIImageClick: et,
|
|
41017
41017
|
aiImageSelected: Ot,
|
|
@@ -41113,8 +41113,8 @@ const Y9 = (e) => {
|
|
|
41113
41113
|
oc.current !== uc && (oc.current = uc, ol.current = /* @__PURE__ */ new Map());
|
|
41114
41114
|
const [yt, ul] = K(null), [Gt, Jn] = K(!1);
|
|
41115
41115
|
he(() => {
|
|
41116
|
-
|
|
41117
|
-
}, [
|
|
41116
|
+
Le !== void 0 && ul(Le);
|
|
41117
|
+
}, [Le]), he(() => {
|
|
41118
41118
|
Ot !== void 0 && Jn(Ot);
|
|
41119
41119
|
}, [Ot]);
|
|
41120
41120
|
const cc = $(
|
|
@@ -41684,7 +41684,7 @@ const Y9 = (e) => {
|
|
|
41684
41684
|
onPaste: fb,
|
|
41685
41685
|
children: [
|
|
41686
41686
|
/* @__PURE__ */ v(
|
|
41687
|
-
|
|
41687
|
+
D1,
|
|
41688
41688
|
{
|
|
41689
41689
|
files: Ke,
|
|
41690
41690
|
onChange: St,
|
|
@@ -41793,7 +41793,7 @@ const Y9 = (e) => {
|
|
|
41793
41793
|
onSkillSelect: cc,
|
|
41794
41794
|
onSkillCardClick: ne,
|
|
41795
41795
|
onSkillAction: T,
|
|
41796
|
-
skillListFetch:
|
|
41796
|
+
skillListFetch: D,
|
|
41797
41797
|
onSkillHeaderAction: ie,
|
|
41798
41798
|
showCreateSkill: Y1,
|
|
41799
41799
|
createDisabled: ye,
|
|
@@ -42330,18 +42330,18 @@ const A9 = ({
|
|
|
42330
42330
|
F.current = e, V.current = b, P.current = I, E.current = m;
|
|
42331
42331
|
});
|
|
42332
42332
|
const U = $((de, Ie) => {
|
|
42333
|
-
let
|
|
42333
|
+
let Le = 0;
|
|
42334
42334
|
w(!0);
|
|
42335
42335
|
const xe = () => {
|
|
42336
|
-
|
|
42336
|
+
Le < de.length ? (g(de.slice(0, Le + 1)), Le++, _.current = window.setTimeout(xe, n)) : (w(!1), Ie?.());
|
|
42337
42337
|
};
|
|
42338
42338
|
xe();
|
|
42339
42339
|
}, [n]), q = $((de) => {
|
|
42340
42340
|
let Ie = E.current.length;
|
|
42341
|
-
const
|
|
42342
|
-
Ie > 0 ? (g(E.current.slice(0, Ie - 1)), Ie--, _.current = window.setTimeout(
|
|
42341
|
+
const Le = () => {
|
|
42342
|
+
Ie > 0 ? (g(E.current.slice(0, Ie - 1)), Ie--, _.current = window.setTimeout(Le, n / 2)) : de?.();
|
|
42343
42343
|
};
|
|
42344
|
-
|
|
42344
|
+
Le();
|
|
42345
42345
|
}, [n]), G = $(() => {
|
|
42346
42346
|
if (F.current.length === 0 || P.current) return;
|
|
42347
42347
|
C(!0);
|
|
@@ -42370,11 +42370,11 @@ const A9 = ({
|
|
|
42370
42370
|
}, ie = (de) => {
|
|
42371
42371
|
const Ie = de.target.value;
|
|
42372
42372
|
s && Ie.length > s || (a ? a(Ie) : k(Ie), f.onChange?.(de));
|
|
42373
|
-
},
|
|
42373
|
+
}, D = () => {
|
|
42374
42374
|
const de = a ? l : N;
|
|
42375
42375
|
de.trim() && !c && (i?.(de), a || k(""));
|
|
42376
42376
|
}, pe = (de) => {
|
|
42377
|
-
(de.ctrlKey || de.metaKey) && de.key === "Enter" && (de.preventDefault(),
|
|
42377
|
+
(de.ctrlKey || de.metaKey) && de.key === "Enter" && (de.preventDefault(), D()), f.onKeyDown?.(de);
|
|
42378
42378
|
}, ye = a ? l : N, Ce = c || !ye.trim() || (s ? ye.length > s : !1);
|
|
42379
42379
|
return /* @__PURE__ */ W("div", { style: { position: "relative", ...h }, children: [
|
|
42380
42380
|
/* @__PURE__ */ W("div", { style: { position: "relative" }, children: [
|
|
@@ -42469,7 +42469,7 @@ const A9 = ({
|
|
|
42469
42469
|
type: "primary",
|
|
42470
42470
|
size: "small",
|
|
42471
42471
|
icon: /* @__PURE__ */ v(Mb, {}),
|
|
42472
|
-
onClick:
|
|
42472
|
+
onClick: D,
|
|
42473
42473
|
disabled: Ce,
|
|
42474
42474
|
style: {
|
|
42475
42475
|
borderRadius: 6,
|
|
@@ -42595,7 +42595,7 @@ A9.__docgenInfo = {
|
|
|
42595
42595
|
}
|
|
42596
42596
|
}
|
|
42597
42597
|
};
|
|
42598
|
-
const
|
|
42598
|
+
const L1 = ({
|
|
42599
42599
|
src: e,
|
|
42600
42600
|
poster: t,
|
|
42601
42601
|
width: n = 300,
|
|
@@ -42676,7 +42676,7 @@ const D1 = ({
|
|
|
42676
42676
|
{
|
|
42677
42677
|
className: `video-play-button ${C ? "hovered" : ""}`,
|
|
42678
42678
|
onClick: k,
|
|
42679
|
-
children: y ? /* @__PURE__ */ v(Rb, { className: "play-icon" }) : /* @__PURE__ */ v(
|
|
42679
|
+
children: y ? /* @__PURE__ */ v(Rb, { className: "play-icon" }) : /* @__PURE__ */ v(Db, { className: "play-icon" })
|
|
42680
42680
|
}
|
|
42681
42681
|
),
|
|
42682
42682
|
!M && /* @__PURE__ */ v("div", { className: "video-loading-mask", children: /* @__PURE__ */ v("div", { className: "loading-spinner" }) })
|
|
@@ -42684,7 +42684,7 @@ const D1 = ({
|
|
|
42684
42684
|
}
|
|
42685
42685
|
);
|
|
42686
42686
|
};
|
|
42687
|
-
|
|
42687
|
+
L1.__docgenInfo = {
|
|
42688
42688
|
displayName: "VideoCard",
|
|
42689
42689
|
description: "视频卡片组件,支持鼠标悬浮播放控制",
|
|
42690
42690
|
props: {
|
|
@@ -42862,7 +42862,7 @@ const N9 = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
42862
42862
|
paddingBottom: "56.25%",
|
|
42863
42863
|
cursor: s || b.onClick ? "pointer" : "default"
|
|
42864
42864
|
}, children: /* @__PURE__ */ v("div", { style: { position: "absolute", top: 0, left: 0, width: "100%", height: "100%" }, children: /* @__PURE__ */ v(
|
|
42865
|
-
|
|
42865
|
+
L1,
|
|
42866
42866
|
{
|
|
42867
42867
|
src: b.url,
|
|
42868
42868
|
poster: b.poster,
|
|
@@ -42955,7 +42955,7 @@ I9.__docgenInfo = {
|
|
|
42955
42955
|
}
|
|
42956
42956
|
}
|
|
42957
42957
|
};
|
|
42958
|
-
const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"),
|
|
42958
|
+
const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), Dl = {
|
|
42959
42959
|
日期: "date",
|
|
42960
42960
|
展现量: "impressions",
|
|
42961
42961
|
点击量: "clicks",
|
|
@@ -43077,32 +43077,32 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43077
43077
|
"成交新客占比",
|
|
43078
43078
|
"自然流量转化金额",
|
|
43079
43079
|
"自然流量曝光量"
|
|
43080
|
-
], Tl = (e) =>
|
|
43080
|
+
], Tl = (e) => Dl[e] ?? e, O9 = (e) => e ? !!(Dl[e] !== void 0 || e.length <= 20 && /[\u4e00-\u9fff]/.test(e)) : !1, M9 = (e) => {
|
|
43081
43081
|
const t = e.trim();
|
|
43082
43082
|
if (!t) return [];
|
|
43083
43083
|
const n = t.split(/[\r\n]+/).map((i) => i.trim()).filter(Boolean);
|
|
43084
43084
|
if (n.length === 0) return [];
|
|
43085
43085
|
const r = n[0];
|
|
43086
43086
|
if (r.includes(" ")) {
|
|
43087
|
-
const i = r.split(/\t/).map((o) => o.trim()).filter(Boolean), s = i.some((o) =>
|
|
43087
|
+
const i = r.split(/\t/).map((o) => o.trim()).filter(Boolean), s = i.some((o) => Dl[o] !== void 0);
|
|
43088
43088
|
if (i.length >= 2 && s)
|
|
43089
43089
|
return i;
|
|
43090
43090
|
}
|
|
43091
43091
|
if (n.length === 1) {
|
|
43092
43092
|
let i = r.split(/\s{2,}/).map((o) => o.trim()).filter(Boolean);
|
|
43093
43093
|
i.length <= 1 && (i = r.split(/\s+/).filter(Boolean));
|
|
43094
|
-
const s = i.some((o) =>
|
|
43094
|
+
const s = i.some((o) => Dl[o] !== void 0);
|
|
43095
43095
|
return i.length >= 2 && s ? i : [];
|
|
43096
43096
|
}
|
|
43097
43097
|
const l = n.filter(O9);
|
|
43098
|
-
return l.some((i) =>
|
|
43098
|
+
return l.some((i) => Dl[i] !== void 0) && l.length >= 2 && l.length / n.length >= 0.5 ? l : [];
|
|
43099
43099
|
}, R9 = (e) => {
|
|
43100
43100
|
if (!e || e.trim() === "") return "";
|
|
43101
43101
|
const t = e.trim();
|
|
43102
43102
|
if (t.toLowerCase() === "nan") return "NaN";
|
|
43103
43103
|
const n = t.match(/^(.+?)([+-]\d)/);
|
|
43104
43104
|
return n ? n[1].trim() : t;
|
|
43105
|
-
},
|
|
43105
|
+
}, D9 = (e) => e.replace(/[\u00a0\u3000]/g, " ").replace(/[–—]/g, "-").replace(/%(\d)/g, "% $1").replace(/NaN(\d)/gi, "NaN $1").replace(/(\.\d+)(\d,\d{3})/g, "$1 $2").replace(/(\.\d+)(\d+\.)/g, "$1 $2").replace(/(\.\d{2})(\d+[+-]\d+\.?\d*%)/g, "$1 $2").replace(/(,\d{3})(\d+[+-]\d+\.?\d*%)/g, "$1 $2").split(/\s+/).map((n) => n.trim()).filter((n) => n !== ""), L9 = (e) => {
|
|
43106
43106
|
const t = (e || "").replace(/[\u00a0\u3000]/g, " "), n = /20\d{2}-\d{2}-\d{2}/g, r = t.match(n) || [];
|
|
43107
43107
|
if (r.length === 0)
|
|
43108
43108
|
return { markdown: "", jsonData: [] };
|
|
@@ -43112,7 +43112,7 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43112
43112
|
if (C >= l.length) return;
|
|
43113
43113
|
const I = l[C];
|
|
43114
43114
|
let M = I.split(/[\r\n]+/).map((N) => N.trim()).filter((N) => N !== "");
|
|
43115
|
-
M.length < c && (M =
|
|
43115
|
+
M.length < c && (M = D9(I));
|
|
43116
43116
|
const x = (N) => M.length === c * 2 ? M[N * 2] ?? "" : M[N] ?? "", w = {};
|
|
43117
43117
|
w[Tl("日期")] = y, u.forEach((N, k) => {
|
|
43118
43118
|
const R = x(k), _ = R9(R), F = Tl(N);
|
|
@@ -43170,7 +43170,7 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43170
43170
|
}), Object.keys(i).length > 0 && t.push(i);
|
|
43171
43171
|
}), t;
|
|
43172
43172
|
}, j9 = (e) => async (t) => {
|
|
43173
|
-
const n =
|
|
43173
|
+
const n = L9(t.text);
|
|
43174
43174
|
return e && e(n.jsonData), {
|
|
43175
43175
|
modules: [
|
|
43176
43176
|
{
|
|
@@ -43267,12 +43267,12 @@ export {
|
|
|
43267
43267
|
k9 as DynamicInput,
|
|
43268
43268
|
A9 as DynamicTextArea,
|
|
43269
43269
|
$b as EmptyAndSpin,
|
|
43270
|
-
|
|
43270
|
+
Dl as HEADER_TO_FIELD,
|
|
43271
43271
|
Wb as LinkButton,
|
|
43272
43272
|
Ub as PageTable,
|
|
43273
43273
|
Y9 as RichTextEditor,
|
|
43274
43274
|
Y9 as StructuredEditor,
|
|
43275
|
-
|
|
43275
|
+
L1 as VideoCard,
|
|
43276
43276
|
S9 as VirtualTable,
|
|
43277
43277
|
I9 as Waterfall,
|
|
43278
43278
|
Vb as XcIcon,
|
|
@@ -43281,7 +43281,7 @@ export {
|
|
|
43281
43281
|
Ua as escapeHtml,
|
|
43282
43282
|
B9 as extractTableDataFromHtml,
|
|
43283
43283
|
G9 as lightTheme,
|
|
43284
|
-
|
|
43284
|
+
L9 as parsePromotionTableMarkdown,
|
|
43285
43285
|
P9 as renderMarkdownToHtml
|
|
43286
43286
|
};
|
|
43287
43287
|
//# sourceMappingURL=index.es.js.map
|