manim-web 0.3.19 → 0.3.21
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/README.md +1 -1
- package/dist/AmsConfiguration-BMyoprhk.js +847 -0
- package/dist/AmsConfiguration-BdxxYRby.js +847 -0
- package/dist/ConfigMacrosConfiguration-B8X_JSVI.js +46 -0
- package/dist/ConfigMacrosConfiguration-DUxp6DUV.js +46 -0
- package/dist/Entities-B1o7gN0J.js +429 -0
- package/dist/Entities-C82lnCux.js +429 -0
- package/dist/Factory-BKM7FEO-.js +107 -0
- package/dist/Factory-D-whCqrb.js +107 -0
- package/dist/{GifExporter-7EpPGupp.js → GifExporter-BrxY_q7e.js} +1 -1
- package/dist/{GifExporter-DCrSD6FV.js → GifExporter-S2pbxMc5.js} +1 -1
- package/dist/HtmlNode-BLmQ2r7U.js +981 -0
- package/dist/HtmlNode-DXGeKrcW.js +981 -0
- package/dist/InputJax-DL9oUQY4.js +41 -0
- package/dist/InputJax-DnDWM3Y0.js +41 -0
- package/dist/NewcommandConfiguration-BPjclFig.js +32 -0
- package/dist/NewcommandConfiguration-bJ6P1rBY.js +32 -0
- package/dist/NewcommandMethods-C_E3iLoK.js +187 -0
- package/dist/NewcommandMethods-Cb7yFm5P.js +187 -0
- package/dist/Options-DRlTi0G8.js +63 -0
- package/dist/Options-XPptO-6X.js +63 -0
- package/dist/ParseMethods-BMPfzfQC.js +2636 -0
- package/dist/ParseMethods-D3_HeS1K.js +2636 -0
- package/dist/Styles-Dky5jZUe.js +293 -0
- package/dist/Styles-J-6R3Vr8.js +293 -0
- package/dist/{VideoExporter-6w8xBpcV.js → VideoExporter-6ikT3u9H.js} +1 -1
- package/dist/{VideoExporter-DdQb18dC.js → VideoExporter-D_RxVahH.js} +1 -1
- package/dist/animation/Animation.d.ts +15 -0
- package/dist/animation/Animation.d.ts.map +1 -1
- package/dist/animation/transform/FadeMorphStrategy.d.ts +18 -0
- package/dist/animation/transform/FadeMorphStrategy.d.ts.map +1 -0
- package/dist/animation/transform/FadeTransforms.d.ts +2 -0
- package/dist/animation/transform/FadeTransforms.d.ts.map +1 -1
- package/dist/animation/transform/MorphStrategy.d.ts +8 -0
- package/dist/animation/transform/MorphStrategy.d.ts.map +1 -0
- package/dist/animation/transform/MovementTransforms.d.ts +8 -0
- package/dist/animation/transform/MovementTransforms.d.ts.map +1 -1
- package/dist/animation/transform/PointMorphStrategy.d.ts +36 -0
- package/dist/animation/transform/PointMorphStrategy.d.ts.map +1 -0
- package/dist/animation/transform/ShapeMorphStrategy.d.ts +39 -0
- package/dist/animation/transform/ShapeMorphStrategy.d.ts.map +1 -0
- package/dist/animation/transform/Transform.d.ts +9 -88
- package/dist/animation/transform/Transform.d.ts.map +1 -1
- package/dist/animation/transform/TransformMatching.d.ts.map +1 -1
- package/dist/animation/transform/TransformMatchingBase.d.ts +1 -0
- package/dist/animation/transform/TransformMatchingBase.d.ts.map +1 -1
- package/dist/animation/transform/TransformMatchingShared.d.ts +37 -0
- package/dist/animation/transform/TransformMatchingShared.d.ts.map +1 -0
- package/dist/animation/transform/TransformPairing.d.ts +19 -0
- package/dist/animation/transform/TransformPairing.d.ts.map +1 -0
- package/dist/constants/fontRender.d.ts +19 -0
- package/dist/constants/fontRender.d.ts.map +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/core/AnimateProxy.d.ts +1 -0
- package/dist/core/AnimateProxy.d.ts.map +1 -1
- package/dist/core/Camera.d.ts +19 -6
- package/dist/core/Camera.d.ts.map +1 -1
- package/dist/core/CameraFrame.d.ts +0 -2
- package/dist/core/CameraFrame.d.ts.map +1 -1
- package/dist/core/Group.d.ts +2 -0
- package/dist/core/Group.d.ts.map +1 -1
- package/dist/core/Mobject.d.ts +6 -0
- package/dist/core/Mobject.d.ts.map +1 -1
- package/dist/core/MobjectTraversal.d.ts +25 -0
- package/dist/core/MobjectTraversal.d.ts.map +1 -0
- package/dist/core/Scene.d.ts.map +1 -1
- package/dist/core/TexturedMobject.d.ts +38 -0
- package/dist/core/TexturedMobject.d.ts.map +1 -0
- package/dist/core/ThreeDScene.d.ts +18 -3
- package/dist/core/ThreeDScene.d.ts.map +1 -1
- package/dist/core/VMobject.d.ts +54 -110
- package/dist/core/VMobject.d.ts.map +1 -1
- package/dist/core/VMobjectCurveUtils.d.ts +106 -0
- package/dist/core/VMobjectCurveUtils.d.ts.map +1 -0
- package/dist/core/VMobjectGeometry.d.ts +4 -16
- package/dist/core/VMobjectGeometry.d.ts.map +1 -1
- package/dist/core/VMobjectRendering.d.ts.map +1 -1
- package/dist/core/VMobjectStrokeGeometry.d.ts +20 -0
- package/dist/core/VMobjectStrokeGeometry.d.ts.map +1 -0
- package/dist/core/VMobjectTransformAlignment.d.ts +11 -0
- package/dist/core/VMobjectTransformAlignment.d.ts.map +1 -0
- package/dist/html-DU38zqaN.js +829 -0
- package/dist/html-DjkQuIHJ.js +829 -0
- package/dist/index.js +4 -4
- package/dist/integrations/react.js +5 -5
- package/dist/integrations/vue.js +7 -7
- package/dist/interaction/Draggable.d.ts +2 -0
- package/dist/interaction/Draggable.d.ts.map +1 -1
- package/dist/interaction/OrbitControls.d.ts +2 -0
- package/dist/interaction/OrbitControls.d.ts.map +1 -1
- package/dist/lengths-CP7zmbxJ.js +54 -0
- package/dist/lengths-D4tR1gYA.js +54 -0
- package/dist/liteAdaptor-BLgze3o2.js +616 -0
- package/dist/liteAdaptor-zXv-jsO1.js +616 -0
- package/dist/manim-web.browser.js +35324 -31248
- package/dist/mathjax-7LgaTjtj.js +121 -0
- package/dist/mathjax-CoSFlQ0H.js +121 -0
- package/dist/mo-C5uLT3Z9.js +2675 -0
- package/dist/mo-CNYDGAsg.js +2675 -0
- package/dist/mobjects/geometry/AngleShapes.d.ts +8 -0
- package/dist/mobjects/geometry/AngleShapes.d.ts.map +1 -1
- package/dist/mobjects/geometry/BooleanOperations.d.ts +1 -1
- package/dist/mobjects/geometry/BooleanOperations.d.ts.map +1 -1
- package/dist/mobjects/geometry/PolygonExtensions.d.ts +1 -1
- package/dist/mobjects/geometry/PolygonExtensions.d.ts.map +1 -1
- package/dist/mobjects/graphing/ComplexPlane.d.ts +18 -0
- package/dist/mobjects/graphing/ComplexPlane.d.ts.map +1 -1
- package/dist/mobjects/image/index.d.ts +9 -2
- package/dist/mobjects/image/index.d.ts.map +1 -1
- package/dist/mobjects/text/MarkupText.d.ts.map +1 -1
- package/dist/mobjects/text/MathJaxRenderer.d.ts +4 -2
- package/dist/mobjects/text/MathJaxRenderer.d.ts.map +1 -1
- package/dist/mobjects/text/MathTex.d.ts +9 -2
- package/dist/mobjects/text/MathTex.d.ts.map +1 -1
- package/dist/mobjects/text/MathTexImage.d.ts +14 -4
- package/dist/mobjects/text/MathTexImage.d.ts.map +1 -1
- package/dist/mobjects/text/Text.d.ts +10 -5
- package/dist/mobjects/text/Text.d.ts.map +1 -1
- package/dist/mobjects/text/katexStyles.d.ts.map +1 -1
- package/dist/mobjects/text/svgPathParser.d.ts.map +1 -1
- package/dist/mobjects/three-d/ThreeDAxes.d.ts +121 -9
- package/dist/mobjects/three-d/ThreeDAxes.d.ts.map +1 -1
- package/dist/{chunk-DeC0fbbY.js → rolldown-runtime-DnwLefa7.js} +1 -1
- package/dist/{src-0ifQdJUj.js → src-CW4pfZdP.js} +33071 -29118
- package/dist/svg-CYweEoZ1.js +28698 -0
- package/dist/svg-swSF_J59.js +28698 -0
- package/dist/tex-C4_queV-.js +1423 -0
- package/dist/tex-CA5MLeEe.js +1423 -0
- package/dist/utils/math.d.ts +50 -5
- package/dist/utils/math.d.ts.map +1 -1
- package/package.json +6 -5
- package/dist/AllPackages-C4Ha3Jps.js +0 -7912
- package/dist/AllPackages-Dwxf_-Ps.js +0 -7912
- package/dist/BaseConfiguration-D2fikupy.js +0 -4402
- package/dist/BaseConfiguration-DYpI8zxb.js +0 -4402
- package/dist/Entities-BxzKxtF2.js +0 -458
- package/dist/Entities-gIbwAkB6.js +0 -458
- package/dist/InputJax-BszJvLkW.js +0 -43
- package/dist/InputJax-CgHBfQsv.js +0 -43
- package/dist/MathItem-4gYKatZT.js +0 -77
- package/dist/MathItem-BGJUnd1K.js +0 -77
- package/dist/Options-CQim5zsr.js +0 -188
- package/dist/Options-Cn9jv1mh.js +0 -188
- package/dist/PrioritizedList-C1R4aNEC.js +0 -36
- package/dist/PrioritizedList-lIkFMNlo.js +0 -36
- package/dist/Styles-Bi9Db-2J.js +0 -411
- package/dist/Styles-CzHPc-An.js +0 -411
- package/dist/TeXAtom-Cinii27y.js +0 -2025
- package/dist/TeXAtom-DFdvwkN2.js +0 -2025
- package/dist/html-DKkfg_ss.js +0 -1587
- package/dist/html-DpiYkktJ.js +0 -1587
- package/dist/lengths-C0YS8_KC.js +0 -65
- package/dist/lengths-eBH2o1TO.js +0 -65
- package/dist/liteAdaptor-CB8lQj3d.js +0 -828
- package/dist/liteAdaptor-DvuW8HsZ.js +0 -828
- package/dist/mathjax-BVz9WLAG.js +0 -105
- package/dist/mathjax-BbWkqal4.js +0 -2
- package/dist/mathjax-BrFZxFhK.js +0 -2
- package/dist/mathjax-DdKmwllV.js +0 -105
- package/dist/mo-B60kIOAG.js +0 -3271
- package/dist/mo-cSv2058o.js +0 -3271
- package/dist/svg-BDTt4xHZ.js +0 -23879
- package/dist/svg-DzbC3CbJ.js +0 -23879
- package/dist/tex-CRhAZgfS.js +0 -401
- package/dist/tex-D3LEgNlQ.js +0 -401
|
@@ -0,0 +1,1423 @@
|
|
|
1
|
+
import { a as e, o as t, r as n, t as r } from "./Options-DRlTi0G8.js";
|
|
2
|
+
import { r as i } from "./mathjax-7LgaTjtj.js";
|
|
3
|
+
import { a, h as o, l as s, r as c } from "./mo-C5uLT3Z9.js";
|
|
4
|
+
import { t as l } from "./InputJax-DL9oUQY4.js";
|
|
5
|
+
import { a as u, t as d } from "./Factory-BKM7FEO-.js";
|
|
6
|
+
import { A as ee, C as te, D as ne, E as f, F as re, G as ie, H as ae, I as oe, J as se, K as ce, L as le, M as ue, O as p, P as m, Q as h, R as de, S as fe, T as pe, U as g, W as _, X as v, Y as y, Z as b, _ as x, a as S, b as C, c as w, d as T, f as E, g as D, h as O, i as k, j as me, k as A, l as j, m as M, n as N, o as P, p as F, q as I, s as L, t as R, u as z, v as B, w as he, x as V, y as H, z as U } from "./ParseMethods-D3_HeS1K.js";
|
|
7
|
+
import { n as W, r as ge } from "./lengths-D4tR1gYA.js";
|
|
8
|
+
//#region node_modules/@mathjax/src/mjs/core/FindMath.js
|
|
9
|
+
var G = class {
|
|
10
|
+
constructor(e) {
|
|
11
|
+
let n = this.constructor;
|
|
12
|
+
this.options = t(r({}, n.OPTIONS), e);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
G.OPTIONS = {};
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region node_modules/@mathjax/src/mjs/input/tex/FindTeX.js
|
|
18
|
+
var K = class extends G {
|
|
19
|
+
constructor(e) {
|
|
20
|
+
super(e), this.getPatterns();
|
|
21
|
+
}
|
|
22
|
+
getPatterns() {
|
|
23
|
+
let e = this.options, t = [], n = [], r = [];
|
|
24
|
+
this.end = {}, this.env = this.sub = 0;
|
|
25
|
+
let i = 1;
|
|
26
|
+
e.inlineMath.forEach((e) => this.addPattern(t, e, !1)), e.displayMath.forEach((e) => this.addPattern(t, e, !0)), t.length && n.push(t.sort(a).join("|")), e.processEnvironments && (n.push("\\\\begin\\s*\\{([^}]*)\\}"), this.env = i, i++), e.processEscapes && r.push("\\\\([\\\\$])"), e.processRefs && r.push("(\\\\(?:eq)?ref\\s*\\{[^}]*\\})"), r.length && (n.push("(" + r.join("|") + ")"), this.sub = i), this.start = new RegExp(n.join("|"), "g"), this.hasPatterns = n.length > 0;
|
|
27
|
+
}
|
|
28
|
+
addPattern(e, t, n) {
|
|
29
|
+
let [r, i] = t;
|
|
30
|
+
e.push(c(r)), this.end[r] = [
|
|
31
|
+
i,
|
|
32
|
+
n,
|
|
33
|
+
this.endPattern(i)
|
|
34
|
+
];
|
|
35
|
+
}
|
|
36
|
+
endPattern(e, t) {
|
|
37
|
+
return RegExp((t || c(e)) + "|\\\\(?:[a-zA-Z]|.)|[{}]", "g");
|
|
38
|
+
}
|
|
39
|
+
findEnd(e, t, n, r) {
|
|
40
|
+
let [i, a, o] = r, s = o.lastIndex = n.index + n[0].length, c, l = 0;
|
|
41
|
+
for (; c = o.exec(e);) if ((c[1] || c[0]) === i && l === 0) return u(n[0], e.substring(s, c.index), c[0], t, n.index, c.index + c[0].length, a);
|
|
42
|
+
else c[0] === "{" ? l++ : c[0] === "}" && l && l--;
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
findMathInString(e, t, n) {
|
|
46
|
+
let r, i;
|
|
47
|
+
for (this.start.lastIndex = 0; r = this.start.exec(n);) {
|
|
48
|
+
if (r[this.env] !== void 0 && this.env) {
|
|
49
|
+
let e = "\\\\end\\s*(\\{" + c(r[this.env]) + "\\})";
|
|
50
|
+
i = this.findEnd(n, t, r, [
|
|
51
|
+
"{" + r[this.env] + "}",
|
|
52
|
+
!0,
|
|
53
|
+
this.endPattern(null, e)
|
|
54
|
+
]), i && (i.math = i.open + i.math + i.close, i.open = i.close = "");
|
|
55
|
+
} else if (r[this.sub] !== void 0 && this.sub) {
|
|
56
|
+
let e = r[this.sub], n = r.index + r[this.sub].length;
|
|
57
|
+
i = e.length === 2 ? u("\\", e.substring(1), "", t, r.index, n) : u("", e, "", t, r.index, n, !1);
|
|
58
|
+
} else i = this.findEnd(n, t, r, this.end[r[0]]);
|
|
59
|
+
i && (e.push(i), this.start.lastIndex = i.end.n);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
findMath(e) {
|
|
63
|
+
let t = [];
|
|
64
|
+
if (this.hasPatterns) for (let n = 0, r = e.length; n < r; n++) this.findMathInString(t, n, e[n]);
|
|
65
|
+
return t;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
K.OPTIONS = {
|
|
69
|
+
inlineMath: [["\\(", "\\)"]],
|
|
70
|
+
displayMath: [["$$", "$$"], ["\\[", "\\]"]],
|
|
71
|
+
processEscapes: !0,
|
|
72
|
+
processEnvironments: !0,
|
|
73
|
+
processRefs: !0
|
|
74
|
+
};
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region node_modules/@mathjax/src/mjs/input/tex/FilterUtil.js
|
|
77
|
+
function _e(e, t, n) {
|
|
78
|
+
let r = t.attributes, i = n.attributes;
|
|
79
|
+
e.forEach((e) => {
|
|
80
|
+
let t = i.getExplicit(e);
|
|
81
|
+
t != null && r.set(e, t);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function ve(e, t) {
|
|
85
|
+
let n = (e, t) => e.getExplicitNames().filter((n) => n !== t && (n !== "stretchy" || e.getExplicit("stretchy")) && n !== "data-latex" && n !== "data-latex-item"), r = e.attributes, i = t.attributes, a = n(r, "lspace"), o = n(i, "rspace");
|
|
86
|
+
if (a.length !== o.length) return !1;
|
|
87
|
+
for (let e of a) if (r.getExplicit(e) !== i.getExplicit(e)) return !1;
|
|
88
|
+
return !0;
|
|
89
|
+
}
|
|
90
|
+
function ye(e, t, n) {
|
|
91
|
+
let r = [];
|
|
92
|
+
for (let i of e.getList("m" + t + n)) {
|
|
93
|
+
let a = i.childNodes;
|
|
94
|
+
if (a[i[t]] && a[i[n]]) continue;
|
|
95
|
+
let o = i.parent, s = a[i[t]] ? e.nodeFactory.create("node", "m" + t, [a[i.base], a[i[t]]]) : e.nodeFactory.create("node", "m" + n, [a[i.base], a[i[n]]]);
|
|
96
|
+
h.copyAttributes(i, s), o.replaceChild(s, i), r.push(i);
|
|
97
|
+
}
|
|
98
|
+
e.removeFromList("m" + t + n, r);
|
|
99
|
+
}
|
|
100
|
+
function q(e, t, n) {
|
|
101
|
+
let r = [];
|
|
102
|
+
for (let i of e.getList(t)) {
|
|
103
|
+
if (i.attributes.get("displaystyle")) continue;
|
|
104
|
+
let t = i.childNodes[i.base], a = t.coreMO();
|
|
105
|
+
if (t.getProperty("movablelimits") && !a.attributes.hasExplicit("movablelimits")) {
|
|
106
|
+
let t = e.nodeFactory.create("node", n, i.childNodes);
|
|
107
|
+
h.copyAttributes(i, t), i.parent.replaceChild(t, i), r.push(i);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
e.removeFromList(t, r);
|
|
111
|
+
}
|
|
112
|
+
var J = {
|
|
113
|
+
cleanStretchy(e) {
|
|
114
|
+
let t = e.data;
|
|
115
|
+
for (let e of t.getList("fixStretchy")) h.getProperty(e, "fixStretchy") && (h.getForm(e)?.[3]?.stretchy && h.setAttribute(e, "stretchy", !1), h.removeProperties(e, "fixStretchy"));
|
|
116
|
+
},
|
|
117
|
+
cleanAttributes(e) {
|
|
118
|
+
e.data.root.walkTree((e) => {
|
|
119
|
+
let t = new Set((e.getProperty("keep-attrs") || "").split(/ /)), n = e.attributes;
|
|
120
|
+
n.unset(b.Attr.LATEXITEM);
|
|
121
|
+
for (let e of n.getExplicitNames()) !t.has(e) && n.get(e) === n.getInherited(e) && n.unset(e);
|
|
122
|
+
});
|
|
123
|
+
},
|
|
124
|
+
combineRelations(e) {
|
|
125
|
+
let t = [];
|
|
126
|
+
for (let n of e.data.getList("mo")) {
|
|
127
|
+
if (n.getProperty("relationsCombined") || !n.parent || n.parent && !h.isType(n.parent, "mrow") || h.getTexClass(n) !== o.REL) continue;
|
|
128
|
+
let e = n.parent, r, i = e.childNodes, a = i.indexOf(n) + 1, s = h.getProperty(n, "variantForm");
|
|
129
|
+
for (; a < i.length && (r = i[a]) && h.isType(r, "mo") && h.getTexClass(r) === o.REL;) if (s === h.getProperty(r, "variantForm") && ve(n, r)) {
|
|
130
|
+
h.appendChildren(n, h.getChildren(r)), _e(["stretchy", "rspace"], n, r);
|
|
131
|
+
for (let e of r.getPropertyNames()) n.setProperty(e, r.getProperty(e));
|
|
132
|
+
r.attributes.get("data-latex") && n.attributes.set("data-latex", n.attributes.get("data-latex") + r.attributes.get("data-latex")), i.splice(a, 1), t.push(r), r.parent = null, r.setProperty("relationsCombined", !0), n.setProperty("texClass", o.REL);
|
|
133
|
+
} else {
|
|
134
|
+
n.attributes.hasExplicit("rspace") || h.setAttribute(n, "rspace", "0pt"), r.attributes.hasExplicit("lspace") || h.setAttribute(r, "lspace", "0pt");
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
n.attributes.setInherited("form", n.getForms()[0]);
|
|
138
|
+
}
|
|
139
|
+
e.data.removeFromList("mo", t);
|
|
140
|
+
},
|
|
141
|
+
cleanSubSup(e) {
|
|
142
|
+
let t = e.data;
|
|
143
|
+
t.error || (ye(t, "sub", "sup"), ye(t, "under", "over"));
|
|
144
|
+
},
|
|
145
|
+
moveLimits(e) {
|
|
146
|
+
let t = e.data;
|
|
147
|
+
q(t, "munderover", "msubsup"), q(t, "munder", "msub"), q(t, "mover", "msup");
|
|
148
|
+
},
|
|
149
|
+
setInherited(e) {
|
|
150
|
+
e.data.root.setInheritedAttributes({}, e.math.display, 0, !1);
|
|
151
|
+
},
|
|
152
|
+
checkScriptlevel(e) {
|
|
153
|
+
let t = e.data, n = [];
|
|
154
|
+
for (let e of t.getList("mstyle")) {
|
|
155
|
+
if (e.childNodes[0].childNodes.length !== 1) continue;
|
|
156
|
+
let t = e.attributes;
|
|
157
|
+
for (let e of ["displaystyle", "scriptlevel"]) t.getExplicit(e) === t.getInherited(e) && t.unset(e);
|
|
158
|
+
let r = t.getExplicitNames();
|
|
159
|
+
if (r.filter((e) => e.substring(0, 10) !== "data-latex").length === 0) {
|
|
160
|
+
let i = e.childNodes[0].childNodes[0];
|
|
161
|
+
r.forEach((e) => i.attributes.set(e, t.get(e))), e.parent.replaceChild(i, e), n.push(e);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
t.removeFromList("mstyle", n);
|
|
165
|
+
}
|
|
166
|
+
}, be = class extends ce {}, Y = class extends d {
|
|
167
|
+
constructor() {
|
|
168
|
+
super(...arguments), this.defaultKind = "dummy", this.configuration = null;
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
Y.DefaultStackItems = { [be.prototype.kind]: be };
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region node_modules/@mathjax/src/mjs/input/tex/NodeFactory.js
|
|
174
|
+
var xe = class e {
|
|
175
|
+
constructor() {
|
|
176
|
+
this.mmlFactory = null, this.factory = {
|
|
177
|
+
node: e.createNode,
|
|
178
|
+
token: e.createToken,
|
|
179
|
+
text: e.createText,
|
|
180
|
+
error: e.createError
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
static createNode(e, t, n = [], r = {}, i) {
|
|
184
|
+
let a = e.mmlFactory.create(t);
|
|
185
|
+
return a.setChildren(n), i && a.appendChild(i), h.setProperties(a, r), a;
|
|
186
|
+
}
|
|
187
|
+
static createToken(e, t, n = {}, r = "") {
|
|
188
|
+
let i = e.create("text", r);
|
|
189
|
+
return e.create("node", t, [], n, i);
|
|
190
|
+
}
|
|
191
|
+
static createText(e, t) {
|
|
192
|
+
return t == null ? null : e.mmlFactory.create("text").setText(t);
|
|
193
|
+
}
|
|
194
|
+
static createError(e, t) {
|
|
195
|
+
let n = e.create("text", t), r = e.create("node", "mtext", [], {}, n);
|
|
196
|
+
return e.create("node", "merror", [r], { "data-mjx-error": t });
|
|
197
|
+
}
|
|
198
|
+
setMmlFactory(e) {
|
|
199
|
+
this.mmlFactory = e;
|
|
200
|
+
}
|
|
201
|
+
set(e, t) {
|
|
202
|
+
this.factory[e] = t;
|
|
203
|
+
}
|
|
204
|
+
setCreators(e) {
|
|
205
|
+
for (let t in e) this.set(t, e[t]);
|
|
206
|
+
}
|
|
207
|
+
create(e, ...t) {
|
|
208
|
+
let n = (this.factory[e] || this.factory.node)(this, t[0], ...t.slice(1));
|
|
209
|
+
return e === "node" && this.configuration.addNode(t[0], n), n;
|
|
210
|
+
}
|
|
211
|
+
get(e) {
|
|
212
|
+
return this.factory[e];
|
|
213
|
+
}
|
|
214
|
+
}, Se = class {
|
|
215
|
+
constructor() {
|
|
216
|
+
this.columnHandler = {
|
|
217
|
+
l: (e) => e.calign[e.j++] = "left",
|
|
218
|
+
c: (e) => e.calign[e.j++] = "center",
|
|
219
|
+
r: (e) => e.calign[e.j++] = "right",
|
|
220
|
+
p: (e) => this.getColumn(e, "top"),
|
|
221
|
+
m: (e) => this.getColumn(e, "middle"),
|
|
222
|
+
b: (e) => this.getColumn(e, "bottom"),
|
|
223
|
+
w: (e) => this.getColumn(e, "top", ""),
|
|
224
|
+
W: (e) => this.getColumn(e, "top", ""),
|
|
225
|
+
"|": (e) => this.addRule(e, "solid"),
|
|
226
|
+
":": (e) => this.addRule(e, "dashed"),
|
|
227
|
+
">": (e) => e.cstart[e.j] = (e.cstart[e.j] || "") + this.getBraces(e),
|
|
228
|
+
"<": (e) => e.cend[e.j - 1] = (e.cend[e.j - 1] || "") + this.getBraces(e),
|
|
229
|
+
"@": (e) => this.addAt(e, this.getBraces(e)),
|
|
230
|
+
"!": (e) => this.addBang(e, this.getBraces(e)),
|
|
231
|
+
"*": (e) => this.repeat(e),
|
|
232
|
+
P: (e) => this.macroColumn(e, ">{$}p{#1}<{$}", 1),
|
|
233
|
+
M: (e) => this.macroColumn(e, ">{$}m{#1}<{$}", 1),
|
|
234
|
+
B: (e) => this.macroColumn(e, ">{$}b{#1}<{$}", 1),
|
|
235
|
+
" ": (e) => {}
|
|
236
|
+
}, this.MAXCOLUMNS = 1e4;
|
|
237
|
+
}
|
|
238
|
+
process(e, t, n) {
|
|
239
|
+
let r = {
|
|
240
|
+
parser: e,
|
|
241
|
+
template: t,
|
|
242
|
+
i: 0,
|
|
243
|
+
j: 0,
|
|
244
|
+
c: "",
|
|
245
|
+
cwidth: [],
|
|
246
|
+
calign: [],
|
|
247
|
+
cspace: [],
|
|
248
|
+
clines: [],
|
|
249
|
+
cstart: n.cstart,
|
|
250
|
+
cend: n.cend,
|
|
251
|
+
ralign: n.ralign,
|
|
252
|
+
cextra: n.cextra
|
|
253
|
+
}, i = 0;
|
|
254
|
+
for (; r.i < r.template.length;) {
|
|
255
|
+
if (i++ > this.MAXCOLUMNS) throw new I("MaxColumns", "Too many column specifiers (perhaps looping column definitions?)");
|
|
256
|
+
let e = r.template.codePointAt(r.i), t = r.c = String.fromCodePoint(e);
|
|
257
|
+
if (r.i += t.length, !Object.hasOwn(this.columnHandler, t)) throw new I("BadPreamToken", "Illegal pream-token (%1)", t);
|
|
258
|
+
this.columnHandler[t](r);
|
|
259
|
+
}
|
|
260
|
+
this.setColumnAlign(r, n), this.setColumnWidths(r, n), this.setColumnSpacing(r, n), this.setColumnLines(r, n), this.setPadding(r, n);
|
|
261
|
+
}
|
|
262
|
+
setColumnAlign(e, t) {
|
|
263
|
+
t.arraydef.columnalign = e.calign.join(" ");
|
|
264
|
+
}
|
|
265
|
+
setColumnWidths(e, t) {
|
|
266
|
+
if (!e.cwidth.length) return;
|
|
267
|
+
let n = [...e.cwidth];
|
|
268
|
+
n.length < e.calign.length && n.push("auto"), t.arraydef.columnwidth = n.map((e) => e || "auto").join(" ");
|
|
269
|
+
}
|
|
270
|
+
setColumnSpacing(e, t) {
|
|
271
|
+
if (!e.cspace.length) return;
|
|
272
|
+
let n = [...e.cspace];
|
|
273
|
+
n.length < e.calign.length && n.push("1em"), t.arraydef.columnspacing = n.slice(1).map((e) => e || "1em").join(" ");
|
|
274
|
+
}
|
|
275
|
+
setColumnLines(e, t) {
|
|
276
|
+
if (!e.clines.length) return;
|
|
277
|
+
let n = [...e.clines];
|
|
278
|
+
n[0] && t.frame.push(["left", n[0]]), n.length > e.calign.length ? t.frame.push(["right", n.pop()]) : n.length < e.calign.length && n.push("none"), n.length > 1 && (t.arraydef.columnlines = n.slice(1).map((e) => e || "none").join(" "));
|
|
279
|
+
}
|
|
280
|
+
setPadding(e, t) {
|
|
281
|
+
if (!e.cextra[0] && !e.cextra[e.calign.length - 1]) return;
|
|
282
|
+
let n = e.calign.length - 1, r = e.cspace, i = e.cextra[n] ? r[n] : null;
|
|
283
|
+
t.arraydef["data-array-padding"] = `${r[0] || ".5em"} ${i || ".5em"}`;
|
|
284
|
+
}
|
|
285
|
+
getColumn(e, t, n = "left") {
|
|
286
|
+
e.calign[e.j] = n || this.getAlign(e), e.cwidth[e.j] = this.getDimen(e), e.ralign[e.j] = [
|
|
287
|
+
t,
|
|
288
|
+
e.cwidth[e.j],
|
|
289
|
+
e.calign[e.j]
|
|
290
|
+
], e.j++;
|
|
291
|
+
}
|
|
292
|
+
getDimen(e) {
|
|
293
|
+
let t = this.getBraces(e);
|
|
294
|
+
if (!se.matchDimen(t)[0]) throw new I("MissingColumnDimOrUnits", "Missing dimension or its units for %1 column declaration", e.c);
|
|
295
|
+
return t;
|
|
296
|
+
}
|
|
297
|
+
getAlign(e) {
|
|
298
|
+
return n(this.getBraces(e).toLowerCase(), {
|
|
299
|
+
l: "left",
|
|
300
|
+
c: "center",
|
|
301
|
+
r: "right"
|
|
302
|
+
}, "");
|
|
303
|
+
}
|
|
304
|
+
getBraces(e) {
|
|
305
|
+
for (; e.template[e.i] === " ";) e.i++;
|
|
306
|
+
if (e.i >= e.template.length) throw new I("MissingArgForColumn", "Missing argument for %1 column declaration", e.c);
|
|
307
|
+
if (e.template[e.i] !== "{") return e.template[e.i++];
|
|
308
|
+
let t = ++e.i, n = 1;
|
|
309
|
+
for (; e.i < e.template.length;) switch (e.template.charAt(e.i++)) {
|
|
310
|
+
case "\\":
|
|
311
|
+
e.i++;
|
|
312
|
+
break;
|
|
313
|
+
case "{":
|
|
314
|
+
n++;
|
|
315
|
+
break;
|
|
316
|
+
case "}":
|
|
317
|
+
if (--n === 0) return e.template.slice(t, e.i - 1);
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
320
|
+
throw new I("MissingCloseBrace", "Missing close brace");
|
|
321
|
+
}
|
|
322
|
+
macroColumn(e, t, n) {
|
|
323
|
+
let r = [];
|
|
324
|
+
for (; n > 0 && n--;) r.push(this.getBraces(e));
|
|
325
|
+
e.template = _.substituteArgs(e.parser, r, t) + e.template.slice(e.i), e.i = 0;
|
|
326
|
+
}
|
|
327
|
+
addRule(e, t) {
|
|
328
|
+
e.clines[e.j] && this.addAt(e, "\\,"), e.clines[e.j] = t, e.cspace[e.j] === "0" && (e.cstart[e.j] = "\\hspace{.5em}");
|
|
329
|
+
}
|
|
330
|
+
addAt(e, t) {
|
|
331
|
+
let { cstart: n, cspace: r, j: i } = e;
|
|
332
|
+
e.cextra[i] = !0, e.calign[i] = "center", e.clines[i] && (r[i] === ".5em" ? n[i - 1] += "\\hspace{.25em}" : r[i] || (e.cend[i - 1] = (e.cend[i - 1] || "") + "\\hspace{.5em}")), n[i] = t, r[i] = "0", r[++e.j] = "0";
|
|
333
|
+
}
|
|
334
|
+
addBang(e, t) {
|
|
335
|
+
let { cstart: n, cspace: r, j: i } = e;
|
|
336
|
+
e.cextra[i] = !0, e.calign[i] = "center", n[i] = (r[i] === "0" && e.clines[i] ? "\\hspace{.25em}" : "") + t, r[i] || (r[i] = ".5em"), r[++e.j] = ".5em";
|
|
337
|
+
}
|
|
338
|
+
repeat(e) {
|
|
339
|
+
let t = this.getBraces(e), n = this.getBraces(e), r = parseInt(t);
|
|
340
|
+
if (String(r) !== t) throw new I("ColArgNotNum", "First argument to %1 column specifier must be a number", "*");
|
|
341
|
+
e.template = Array(r).fill(n).join("") + e.template.substring(e.i), e.i = 0;
|
|
342
|
+
}
|
|
343
|
+
}, X = b.Variant, Ce = class e {
|
|
344
|
+
constructor(t, n = []) {
|
|
345
|
+
this.options = {}, this.columnParser = new Se(), this.packageData = /* @__PURE__ */ new Map(), this.parsers = [], this.root = null, this.nodeLists = {}, this.error = !1, this.handlers = t.handlers, this.nodeFactory = new xe(), this.nodeFactory.configuration = this, this.nodeFactory.setCreators(t.nodes), this.itemFactory = new Y(t.items), this.itemFactory.configuration = this, r(this.options, ...n), r(this.options, t.options), this.mathStyle = e.getVariant.get(this.options.mathStyle) || e.getVariant.get("TeX");
|
|
346
|
+
}
|
|
347
|
+
pushParser(e) {
|
|
348
|
+
this.parsers.unshift(e);
|
|
349
|
+
}
|
|
350
|
+
popParser() {
|
|
351
|
+
this.parsers.shift();
|
|
352
|
+
}
|
|
353
|
+
get parser() {
|
|
354
|
+
return this.parsers[0];
|
|
355
|
+
}
|
|
356
|
+
clear() {
|
|
357
|
+
this.parsers = [], this.root = null, this.nodeLists = {}, this.error = !1, this.tags.resetTag();
|
|
358
|
+
}
|
|
359
|
+
addNode(e, t) {
|
|
360
|
+
let n = this.nodeLists[e];
|
|
361
|
+
if (n ||= this.nodeLists[e] = [], n.push(t), t.kind !== e) {
|
|
362
|
+
let n = h.getProperty(t, "in-lists") || "", r = (n ? n.split(/,/) : []).concat(e).join(",");
|
|
363
|
+
h.setProperty(t, "in-lists", r);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
getList(e) {
|
|
367
|
+
let t = this.nodeLists[e] || [], n = [];
|
|
368
|
+
for (let e of t) this.inTree(e) && n.push(e);
|
|
369
|
+
return this.nodeLists[e] = n, n;
|
|
370
|
+
}
|
|
371
|
+
removeFromList(e, t) {
|
|
372
|
+
let n = this.nodeLists[e] || [];
|
|
373
|
+
for (let e of t) {
|
|
374
|
+
let t = n.indexOf(e);
|
|
375
|
+
t >= 0 && n.splice(t, 1);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
inTree(e) {
|
|
379
|
+
for (; e && e !== this.root;) e = e.parent;
|
|
380
|
+
return !!e;
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
Ce.getVariant = new Map([
|
|
384
|
+
["TeX", (e, t) => t && e.match(/^[\u0391-\u03A9\u03F4]/) ? X.NORMAL : ""],
|
|
385
|
+
["ISO", (e) => X.ITALIC],
|
|
386
|
+
["French", (e) => e.normalize("NFD").match(/^[a-z]/) ? X.ITALIC : X.NORMAL],
|
|
387
|
+
["upright", (e) => X.NORMAL]
|
|
388
|
+
]);
|
|
389
|
+
//#endregion
|
|
390
|
+
//#region node_modules/@mathjax/src/mjs/input/tex/base/BaseMappings.js
|
|
391
|
+
var Z = ge(W.thickmathspace), Q = b.Variant;
|
|
392
|
+
new U("letter", R.variable, /[a-z]/i), new U("digit", R.digit, /[0-9.,]/), new U("command", R.controlSequence, /^\\/), new de("special", {
|
|
393
|
+
"{": N.Open,
|
|
394
|
+
"}": N.Close,
|
|
395
|
+
"~": N.Tilde,
|
|
396
|
+
"^": N.Superscript,
|
|
397
|
+
_: N.Subscript,
|
|
398
|
+
"|": N.Bar,
|
|
399
|
+
" ": N.Space,
|
|
400
|
+
" ": N.Space,
|
|
401
|
+
"\r": N.Space,
|
|
402
|
+
"\n": N.Space,
|
|
403
|
+
"'": N.Prime,
|
|
404
|
+
"%": N.Comment,
|
|
405
|
+
"&": N.Entry,
|
|
406
|
+
"#": N.Hash,
|
|
407
|
+
"\xA0": N.Space,
|
|
408
|
+
"’": N.Prime
|
|
409
|
+
}), new m("lcGreek", R.lcGreek, {
|
|
410
|
+
alpha: "α",
|
|
411
|
+
beta: "β",
|
|
412
|
+
gamma: "γ",
|
|
413
|
+
delta: "δ",
|
|
414
|
+
epsilon: "ϵ",
|
|
415
|
+
zeta: "ζ",
|
|
416
|
+
eta: "η",
|
|
417
|
+
theta: "θ",
|
|
418
|
+
iota: "ι",
|
|
419
|
+
kappa: "κ",
|
|
420
|
+
lambda: "λ",
|
|
421
|
+
mu: "μ",
|
|
422
|
+
nu: "ν",
|
|
423
|
+
xi: "ξ",
|
|
424
|
+
omicron: "ο",
|
|
425
|
+
pi: "π",
|
|
426
|
+
rho: "ρ",
|
|
427
|
+
sigma: "σ",
|
|
428
|
+
tau: "τ",
|
|
429
|
+
upsilon: "υ",
|
|
430
|
+
phi: "ϕ",
|
|
431
|
+
chi: "χ",
|
|
432
|
+
psi: "ψ",
|
|
433
|
+
omega: "ω",
|
|
434
|
+
varepsilon: "ε",
|
|
435
|
+
vartheta: "ϑ",
|
|
436
|
+
varpi: "ϖ",
|
|
437
|
+
varrho: "ϱ",
|
|
438
|
+
varsigma: "ς",
|
|
439
|
+
varphi: "φ"
|
|
440
|
+
}), new m("ucGreek", R.ucGreek, {
|
|
441
|
+
Gamma: "Γ",
|
|
442
|
+
Delta: "Δ",
|
|
443
|
+
Theta: "Θ",
|
|
444
|
+
Lambda: "Λ",
|
|
445
|
+
Xi: "Ξ",
|
|
446
|
+
Pi: "Π",
|
|
447
|
+
Sigma: "Σ",
|
|
448
|
+
Upsilon: "Υ",
|
|
449
|
+
Phi: "Φ",
|
|
450
|
+
Psi: "Ψ",
|
|
451
|
+
Omega: "Ω"
|
|
452
|
+
}), new m("mathchar0mi", R.mathchar0mi, {
|
|
453
|
+
AA: "Å",
|
|
454
|
+
S: ["§", { mathvariant: Q.NORMAL }],
|
|
455
|
+
aleph: ["ℵ", { mathvariant: Q.NORMAL }],
|
|
456
|
+
hbar: ["ℏ", { variantForm: !0 }],
|
|
457
|
+
imath: "ı",
|
|
458
|
+
jmath: "ȷ",
|
|
459
|
+
ell: "ℓ",
|
|
460
|
+
wp: ["℘", { mathvariant: Q.NORMAL }],
|
|
461
|
+
Re: ["ℜ", { mathvariant: Q.NORMAL }],
|
|
462
|
+
Im: ["ℑ", { mathvariant: Q.NORMAL }],
|
|
463
|
+
partial: ["∂", { mathvariant: Q.ITALIC }],
|
|
464
|
+
infty: ["∞", { mathvariant: Q.NORMAL }],
|
|
465
|
+
prime: ["′", { variantForm: !0 }],
|
|
466
|
+
emptyset: ["∅", { mathvariant: Q.NORMAL }],
|
|
467
|
+
nabla: ["∇", { mathvariant: Q.NORMAL }],
|
|
468
|
+
top: ["⊤", { mathvariant: Q.NORMAL }],
|
|
469
|
+
bot: ["⊥", { mathvariant: Q.NORMAL }],
|
|
470
|
+
angle: ["∠", { mathvariant: Q.NORMAL }],
|
|
471
|
+
triangle: ["△", { mathvariant: Q.NORMAL }],
|
|
472
|
+
backslash: ["\\", { mathvariant: Q.NORMAL }],
|
|
473
|
+
forall: ["∀", { mathvariant: Q.NORMAL }],
|
|
474
|
+
exists: ["∃", { mathvariant: Q.NORMAL }],
|
|
475
|
+
neg: ["¬", { mathvariant: Q.NORMAL }],
|
|
476
|
+
lnot: ["¬", { mathvariant: Q.NORMAL }],
|
|
477
|
+
flat: ["♭", { mathvariant: Q.NORMAL }],
|
|
478
|
+
natural: ["♮", { mathvariant: Q.NORMAL }],
|
|
479
|
+
sharp: ["♯", { mathvariant: Q.NORMAL }],
|
|
480
|
+
clubsuit: ["♣", { mathvariant: Q.NORMAL }],
|
|
481
|
+
diamondsuit: ["♢", { mathvariant: Q.NORMAL }],
|
|
482
|
+
heartsuit: ["♡", { mathvariant: Q.NORMAL }],
|
|
483
|
+
spadesuit: ["♠", { mathvariant: Q.NORMAL }]
|
|
484
|
+
}), new m("mathchar0mo", R.mathchar0mo, {
|
|
485
|
+
surd: ["√", { symmetric: !0 }],
|
|
486
|
+
coprod: ["∐", { movesupsub: !0 }],
|
|
487
|
+
bigvee: ["⋁", { movesupsub: !0 }],
|
|
488
|
+
bigwedge: ["⋀", { movesupsub: !0 }],
|
|
489
|
+
biguplus: ["⨄", { movesupsub: !0 }],
|
|
490
|
+
bigcap: ["⋂", { movesupsub: !0 }],
|
|
491
|
+
bigcup: ["⋃", { movesupsub: !0 }],
|
|
492
|
+
int: "∫",
|
|
493
|
+
intop: ["∫", {
|
|
494
|
+
movesupsub: !0,
|
|
495
|
+
movablelimits: !0
|
|
496
|
+
}],
|
|
497
|
+
iint: "∬",
|
|
498
|
+
iiint: "∭",
|
|
499
|
+
prod: ["∏", { movesupsub: !0 }],
|
|
500
|
+
sum: ["∑", { movesupsub: !0 }],
|
|
501
|
+
bigotimes: ["⨂", { movesupsub: !0 }],
|
|
502
|
+
bigoplus: ["⨁", { movesupsub: !0 }],
|
|
503
|
+
bigodot: ["⨀", { movesupsub: !0 }],
|
|
504
|
+
oint: "∮",
|
|
505
|
+
ointop: ["∮", {
|
|
506
|
+
movesupsub: !0,
|
|
507
|
+
movablelimits: !0
|
|
508
|
+
}],
|
|
509
|
+
oiint: "∯",
|
|
510
|
+
oiiint: "∰",
|
|
511
|
+
bigsqcup: ["⨆", { movesupsub: !0 }],
|
|
512
|
+
smallint: ["∫", { largeop: !1 }],
|
|
513
|
+
triangleleft: "◃",
|
|
514
|
+
triangleright: "▹",
|
|
515
|
+
bigtriangleup: "△",
|
|
516
|
+
bigtriangledown: "▽",
|
|
517
|
+
wedge: "∧",
|
|
518
|
+
land: "∧",
|
|
519
|
+
vee: "∨",
|
|
520
|
+
lor: "∨",
|
|
521
|
+
cap: "∩",
|
|
522
|
+
cup: "∪",
|
|
523
|
+
ddagger: "‡",
|
|
524
|
+
dagger: "†",
|
|
525
|
+
sqcap: "⊓",
|
|
526
|
+
sqcup: "⊔",
|
|
527
|
+
uplus: "⊎",
|
|
528
|
+
amalg: "⨿",
|
|
529
|
+
diamond: "⋄",
|
|
530
|
+
bullet: "∙",
|
|
531
|
+
wr: "≀",
|
|
532
|
+
div: "÷",
|
|
533
|
+
odot: ["⊙", { largeop: !1 }],
|
|
534
|
+
oslash: ["⊘", { largeop: !1 }],
|
|
535
|
+
otimes: ["⊗", { largeop: !1 }],
|
|
536
|
+
ominus: ["⊖", { largeop: !1 }],
|
|
537
|
+
oplus: ["⊕", { largeop: !1 }],
|
|
538
|
+
mp: "∓",
|
|
539
|
+
pm: "±",
|
|
540
|
+
circ: "∘",
|
|
541
|
+
bigcirc: "◯",
|
|
542
|
+
setminus: "∖",
|
|
543
|
+
cdot: "⋅",
|
|
544
|
+
ast: "∗",
|
|
545
|
+
times: "×",
|
|
546
|
+
star: "⋆",
|
|
547
|
+
propto: "∝",
|
|
548
|
+
sqsubseteq: "⊑",
|
|
549
|
+
sqsupseteq: "⊒",
|
|
550
|
+
parallel: "∥",
|
|
551
|
+
mid: "∣",
|
|
552
|
+
dashv: "⊣",
|
|
553
|
+
vdash: "⊢",
|
|
554
|
+
leq: "≤",
|
|
555
|
+
le: "≤",
|
|
556
|
+
geq: "≥",
|
|
557
|
+
ge: "≥",
|
|
558
|
+
lt: "<",
|
|
559
|
+
gt: ">",
|
|
560
|
+
succ: "≻",
|
|
561
|
+
prec: "≺",
|
|
562
|
+
approx: "≈",
|
|
563
|
+
succeq: "⪰",
|
|
564
|
+
preceq: "⪯",
|
|
565
|
+
supset: "⊃",
|
|
566
|
+
subset: "⊂",
|
|
567
|
+
supseteq: "⊇",
|
|
568
|
+
subseteq: "⊆",
|
|
569
|
+
in: "∈",
|
|
570
|
+
ni: "∋",
|
|
571
|
+
notin: "∉",
|
|
572
|
+
owns: "∋",
|
|
573
|
+
gg: "≫",
|
|
574
|
+
ll: "≪",
|
|
575
|
+
sim: "∼",
|
|
576
|
+
simeq: "≃",
|
|
577
|
+
perp: "⟂",
|
|
578
|
+
equiv: "≡",
|
|
579
|
+
asymp: "≍",
|
|
580
|
+
smile: "⌣",
|
|
581
|
+
frown: "⌢",
|
|
582
|
+
ne: "≠",
|
|
583
|
+
neq: "≠",
|
|
584
|
+
cong: "≅",
|
|
585
|
+
doteq: "≐",
|
|
586
|
+
bowtie: "⋈",
|
|
587
|
+
models: "⊧",
|
|
588
|
+
notChar: "⧸",
|
|
589
|
+
Leftrightarrow: "⇔",
|
|
590
|
+
Leftarrow: "⇐",
|
|
591
|
+
Rightarrow: "⇒",
|
|
592
|
+
leftrightarrow: "↔",
|
|
593
|
+
leftarrow: "←",
|
|
594
|
+
gets: "←",
|
|
595
|
+
rightarrow: "→",
|
|
596
|
+
to: ["→", { accent: !1 }],
|
|
597
|
+
mapsto: "↦",
|
|
598
|
+
leftharpoonup: "↼",
|
|
599
|
+
leftharpoondown: "↽",
|
|
600
|
+
rightharpoonup: "⇀",
|
|
601
|
+
rightharpoondown: "⇁",
|
|
602
|
+
nearrow: "↗",
|
|
603
|
+
searrow: "↘",
|
|
604
|
+
nwarrow: "↖",
|
|
605
|
+
swarrow: "↙",
|
|
606
|
+
rightleftharpoons: "⇌",
|
|
607
|
+
hookrightarrow: "↪",
|
|
608
|
+
hookleftarrow: "↩",
|
|
609
|
+
longleftarrow: "⟵",
|
|
610
|
+
Longleftarrow: "⟸",
|
|
611
|
+
longrightarrow: "⟶",
|
|
612
|
+
Longrightarrow: "⟹",
|
|
613
|
+
Longleftrightarrow: "⟺",
|
|
614
|
+
longleftrightarrow: "⟷",
|
|
615
|
+
longmapsto: "⟼",
|
|
616
|
+
ldots: "…",
|
|
617
|
+
cdots: "⋯",
|
|
618
|
+
vdots: "⋮",
|
|
619
|
+
ddots: "⋱",
|
|
620
|
+
iddots: "⋰",
|
|
621
|
+
dotsc: "…",
|
|
622
|
+
dotsb: "⋯",
|
|
623
|
+
dotsm: "⋯",
|
|
624
|
+
dotsi: "⋯",
|
|
625
|
+
dotso: "…",
|
|
626
|
+
ldotp: [".", { texClass: o.PUNCT }],
|
|
627
|
+
cdotp: ["⋅", { texClass: o.PUNCT }],
|
|
628
|
+
colon: [":", { texClass: o.PUNCT }]
|
|
629
|
+
}), new m("mathchar7", R.mathchar7, {
|
|
630
|
+
_: "_",
|
|
631
|
+
"#": "#",
|
|
632
|
+
$: "$",
|
|
633
|
+
"%": "%",
|
|
634
|
+
"&": "&",
|
|
635
|
+
And: "&"
|
|
636
|
+
}), new oe("delimiter", R.delimiter, {
|
|
637
|
+
"(": "(",
|
|
638
|
+
")": ")",
|
|
639
|
+
"[": "[",
|
|
640
|
+
"]": "]",
|
|
641
|
+
"<": "⟨",
|
|
642
|
+
">": "⟩",
|
|
643
|
+
"\\lt": "⟨",
|
|
644
|
+
"\\gt": "⟩",
|
|
645
|
+
"/": "/",
|
|
646
|
+
"|": ["|", { texClass: o.ORD }],
|
|
647
|
+
".": "",
|
|
648
|
+
"\\lmoustache": "⎰",
|
|
649
|
+
"\\rmoustache": "⎱",
|
|
650
|
+
"\\lgroup": "⟮",
|
|
651
|
+
"\\rgroup": "⟯",
|
|
652
|
+
"\\arrowvert": "⏐",
|
|
653
|
+
"\\Arrowvert": "‖",
|
|
654
|
+
"\\bracevert": "⎪",
|
|
655
|
+
"\\Vert": ["‖", { texClass: o.ORD }],
|
|
656
|
+
"\\|": ["‖", { texClass: o.ORD }],
|
|
657
|
+
"\\vert": ["|", { texClass: o.ORD }],
|
|
658
|
+
"\\uparrow": "↑",
|
|
659
|
+
"\\downarrow": "↓",
|
|
660
|
+
"\\updownarrow": "↕",
|
|
661
|
+
"\\Uparrow": "⇑",
|
|
662
|
+
"\\Downarrow": "⇓",
|
|
663
|
+
"\\Updownarrow": "⇕",
|
|
664
|
+
"\\backslash": "\\",
|
|
665
|
+
"\\rangle": "⟩",
|
|
666
|
+
"\\langle": "⟨",
|
|
667
|
+
"\\rbrace": "}",
|
|
668
|
+
"\\lbrace": "{",
|
|
669
|
+
"\\}": "}",
|
|
670
|
+
"\\{": "{",
|
|
671
|
+
"\\rceil": "⌉",
|
|
672
|
+
"\\lceil": "⌈",
|
|
673
|
+
"\\rfloor": "⌋",
|
|
674
|
+
"\\lfloor": "⌊",
|
|
675
|
+
"\\lbrack": "[",
|
|
676
|
+
"\\rbrack": "]"
|
|
677
|
+
}), new re("macros", {
|
|
678
|
+
displaystyle: [
|
|
679
|
+
N.SetStyle,
|
|
680
|
+
"D",
|
|
681
|
+
!0,
|
|
682
|
+
0
|
|
683
|
+
],
|
|
684
|
+
textstyle: [
|
|
685
|
+
N.SetStyle,
|
|
686
|
+
"T",
|
|
687
|
+
!1,
|
|
688
|
+
0
|
|
689
|
+
],
|
|
690
|
+
scriptstyle: [
|
|
691
|
+
N.SetStyle,
|
|
692
|
+
"S",
|
|
693
|
+
!1,
|
|
694
|
+
1
|
|
695
|
+
],
|
|
696
|
+
scriptscriptstyle: [
|
|
697
|
+
N.SetStyle,
|
|
698
|
+
"SS",
|
|
699
|
+
!1,
|
|
700
|
+
2
|
|
701
|
+
],
|
|
702
|
+
rm: [N.SetFont, Q.NORMAL],
|
|
703
|
+
mit: [N.SetFont, Q.ITALIC],
|
|
704
|
+
oldstyle: [N.SetFont, Q.OLDSTYLE],
|
|
705
|
+
cal: [N.SetFont, Q.CALLIGRAPHIC],
|
|
706
|
+
it: [N.SetFont, Q.MATHITALIC],
|
|
707
|
+
bf: [N.SetFont, Q.BOLD],
|
|
708
|
+
sf: [N.SetFont, Q.SANSSERIF],
|
|
709
|
+
tt: [N.SetFont, Q.MONOSPACE],
|
|
710
|
+
frak: [N.MathFont, Q.FRAKTUR],
|
|
711
|
+
Bbb: [N.MathFont, Q.DOUBLESTRUCK],
|
|
712
|
+
mathrm: [N.MathFont, Q.NORMAL],
|
|
713
|
+
mathup: [N.MathFont, Q.NORMAL],
|
|
714
|
+
mathnormal: [N.MathFont, ""],
|
|
715
|
+
mathbf: [N.MathFont, Q.BOLD],
|
|
716
|
+
mathbfup: [N.MathFont, Q.BOLD],
|
|
717
|
+
mathit: [N.MathFont, Q.MATHITALIC],
|
|
718
|
+
mathbfit: [N.MathFont, Q.BOLDITALIC],
|
|
719
|
+
mathbb: [N.MathFont, Q.DOUBLESTRUCK],
|
|
720
|
+
mathfrak: [N.MathFont, Q.FRAKTUR],
|
|
721
|
+
mathbffrak: [N.MathFont, Q.BOLDFRAKTUR],
|
|
722
|
+
mathscr: [N.MathFont, Q.SCRIPT],
|
|
723
|
+
mathbfscr: [N.MathFont, Q.BOLDSCRIPT],
|
|
724
|
+
mathsf: [N.MathFont, Q.SANSSERIF],
|
|
725
|
+
mathsfup: [N.MathFont, Q.SANSSERIF],
|
|
726
|
+
mathbfsf: [N.MathFont, Q.BOLDSANSSERIF],
|
|
727
|
+
mathbfsfup: [N.MathFont, Q.BOLDSANSSERIF],
|
|
728
|
+
mathsfit: [N.MathFont, Q.SANSSERIFITALIC],
|
|
729
|
+
mathbfsfit: [N.MathFont, Q.SANSSERIFBOLDITALIC],
|
|
730
|
+
mathtt: [N.MathFont, Q.MONOSPACE],
|
|
731
|
+
mathcal: [N.MathFont, Q.CALLIGRAPHIC],
|
|
732
|
+
mathbfcal: [N.MathFont, Q.BOLDCALLIGRAPHIC],
|
|
733
|
+
symrm: [N.MathFont, Q.NORMAL],
|
|
734
|
+
symup: [N.MathFont, Q.NORMAL],
|
|
735
|
+
symnormal: [N.MathFont, ""],
|
|
736
|
+
symbf: [
|
|
737
|
+
N.MathFont,
|
|
738
|
+
Q.BOLD,
|
|
739
|
+
Q.BOLDITALIC
|
|
740
|
+
],
|
|
741
|
+
symbfup: [N.MathFont, Q.BOLD],
|
|
742
|
+
symit: [N.MathFont, Q.ITALIC],
|
|
743
|
+
symbfit: [N.MathFont, Q.BOLDITALIC],
|
|
744
|
+
symbb: [N.MathFont, Q.DOUBLESTRUCK],
|
|
745
|
+
symfrak: [N.MathFont, Q.FRAKTUR],
|
|
746
|
+
symbffrak: [N.MathFont, Q.BOLDFRAKTUR],
|
|
747
|
+
symscr: [N.MathFont, Q.SCRIPT],
|
|
748
|
+
symbfscr: [N.MathFont, Q.BOLDSCRIPT],
|
|
749
|
+
symsf: [
|
|
750
|
+
N.MathFont,
|
|
751
|
+
Q.SANSSERIF,
|
|
752
|
+
Q.SANSSERIFITALIC
|
|
753
|
+
],
|
|
754
|
+
symsfup: [N.MathFont, Q.SANSSERIF],
|
|
755
|
+
symbfsf: [N.MathFont, Q.BOLDSANSSERIF],
|
|
756
|
+
symbfsfup: [N.MathFont, Q.BOLDSANSSERIF],
|
|
757
|
+
symsfit: [N.MathFont, Q.SANSSERIFITALIC],
|
|
758
|
+
symbfsfit: [N.MathFont, Q.SANSSERIFBOLDITALIC],
|
|
759
|
+
symtt: [N.MathFont, Q.MONOSPACE],
|
|
760
|
+
symcal: [N.MathFont, Q.CALLIGRAPHIC],
|
|
761
|
+
symbfcal: [N.MathFont, Q.BOLDCALLIGRAPHIC],
|
|
762
|
+
textrm: [
|
|
763
|
+
N.HBox,
|
|
764
|
+
null,
|
|
765
|
+
Q.NORMAL
|
|
766
|
+
],
|
|
767
|
+
textup: [
|
|
768
|
+
N.HBox,
|
|
769
|
+
null,
|
|
770
|
+
Q.NORMAL
|
|
771
|
+
],
|
|
772
|
+
textnormal: [N.HBox],
|
|
773
|
+
textit: [
|
|
774
|
+
N.HBox,
|
|
775
|
+
null,
|
|
776
|
+
Q.ITALIC
|
|
777
|
+
],
|
|
778
|
+
textbf: [
|
|
779
|
+
N.HBox,
|
|
780
|
+
null,
|
|
781
|
+
Q.BOLD
|
|
782
|
+
],
|
|
783
|
+
textsf: [
|
|
784
|
+
N.HBox,
|
|
785
|
+
null,
|
|
786
|
+
Q.SANSSERIF
|
|
787
|
+
],
|
|
788
|
+
texttt: [
|
|
789
|
+
N.HBox,
|
|
790
|
+
null,
|
|
791
|
+
Q.MONOSPACE
|
|
792
|
+
],
|
|
793
|
+
tiny: [N.SetSize, .5],
|
|
794
|
+
Tiny: [N.SetSize, .6],
|
|
795
|
+
scriptsize: [N.SetSize, .7],
|
|
796
|
+
small: [N.SetSize, .85],
|
|
797
|
+
normalsize: [N.SetSize, 1],
|
|
798
|
+
large: [N.SetSize, 1.2],
|
|
799
|
+
Large: [N.SetSize, 1.44],
|
|
800
|
+
LARGE: [N.SetSize, 1.73],
|
|
801
|
+
huge: [N.SetSize, 2.07],
|
|
802
|
+
Huge: [N.SetSize, 2.49],
|
|
803
|
+
arcsin: N.NamedFn,
|
|
804
|
+
arccos: N.NamedFn,
|
|
805
|
+
arctan: N.NamedFn,
|
|
806
|
+
arg: N.NamedFn,
|
|
807
|
+
cos: N.NamedFn,
|
|
808
|
+
cosh: N.NamedFn,
|
|
809
|
+
cot: N.NamedFn,
|
|
810
|
+
coth: N.NamedFn,
|
|
811
|
+
csc: N.NamedFn,
|
|
812
|
+
deg: N.NamedFn,
|
|
813
|
+
det: N.NamedOp,
|
|
814
|
+
dim: N.NamedFn,
|
|
815
|
+
exp: N.NamedFn,
|
|
816
|
+
gcd: N.NamedOp,
|
|
817
|
+
hom: N.NamedFn,
|
|
818
|
+
inf: N.NamedOp,
|
|
819
|
+
ker: N.NamedFn,
|
|
820
|
+
lg: N.NamedFn,
|
|
821
|
+
lim: N.NamedOp,
|
|
822
|
+
liminf: [N.NamedOp, "lim inf"],
|
|
823
|
+
limsup: [N.NamedOp, "lim sup"],
|
|
824
|
+
ln: N.NamedFn,
|
|
825
|
+
log: N.NamedFn,
|
|
826
|
+
max: N.NamedOp,
|
|
827
|
+
min: N.NamedOp,
|
|
828
|
+
Pr: N.NamedOp,
|
|
829
|
+
sec: N.NamedFn,
|
|
830
|
+
sin: N.NamedFn,
|
|
831
|
+
sinh: N.NamedFn,
|
|
832
|
+
sup: N.NamedOp,
|
|
833
|
+
tan: N.NamedFn,
|
|
834
|
+
tanh: N.NamedFn,
|
|
835
|
+
limits: [N.Limits, !0],
|
|
836
|
+
nolimits: [N.Limits, !1],
|
|
837
|
+
overline: [N.UnderOver, "2015"],
|
|
838
|
+
underline: [N.UnderOver, "2015"],
|
|
839
|
+
overbrace: [
|
|
840
|
+
N.UnderOver,
|
|
841
|
+
"23DE",
|
|
842
|
+
!0
|
|
843
|
+
],
|
|
844
|
+
underbrace: [
|
|
845
|
+
N.UnderOver,
|
|
846
|
+
"23DF",
|
|
847
|
+
!0
|
|
848
|
+
],
|
|
849
|
+
overparen: [N.UnderOver, "23DC"],
|
|
850
|
+
underparen: [N.UnderOver, "23DD"],
|
|
851
|
+
overrightarrow: [N.UnderOver, "2192"],
|
|
852
|
+
underrightarrow: [N.UnderOver, "2192"],
|
|
853
|
+
overleftarrow: [N.UnderOver, "2190"],
|
|
854
|
+
underleftarrow: [N.UnderOver, "2190"],
|
|
855
|
+
overleftrightarrow: [N.UnderOver, "2194"],
|
|
856
|
+
underleftrightarrow: [N.UnderOver, "2194"],
|
|
857
|
+
overset: N.Overset,
|
|
858
|
+
underset: N.Underset,
|
|
859
|
+
overunderset: N.Overunderset,
|
|
860
|
+
stackrel: [
|
|
861
|
+
N.Macro,
|
|
862
|
+
"\\mathrel{\\mathop{#2}\\limits^{#1}}",
|
|
863
|
+
2
|
|
864
|
+
],
|
|
865
|
+
stackbin: [
|
|
866
|
+
N.Macro,
|
|
867
|
+
"\\mathbin{\\mathop{#2}\\limits^{#1}}",
|
|
868
|
+
2
|
|
869
|
+
],
|
|
870
|
+
over: N.Over,
|
|
871
|
+
overwithdelims: N.Over,
|
|
872
|
+
atop: N.Over,
|
|
873
|
+
atopwithdelims: N.Over,
|
|
874
|
+
above: N.Over,
|
|
875
|
+
abovewithdelims: N.Over,
|
|
876
|
+
brace: [
|
|
877
|
+
N.Over,
|
|
878
|
+
"{",
|
|
879
|
+
"}"
|
|
880
|
+
],
|
|
881
|
+
brack: [
|
|
882
|
+
N.Over,
|
|
883
|
+
"[",
|
|
884
|
+
"]"
|
|
885
|
+
],
|
|
886
|
+
choose: [
|
|
887
|
+
N.Over,
|
|
888
|
+
"(",
|
|
889
|
+
")"
|
|
890
|
+
],
|
|
891
|
+
frac: N.Frac,
|
|
892
|
+
sqrt: N.Sqrt,
|
|
893
|
+
root: N.Root,
|
|
894
|
+
uproot: [N.MoveRoot, "upRoot"],
|
|
895
|
+
leftroot: [N.MoveRoot, "leftRoot"],
|
|
896
|
+
left: N.LeftRight,
|
|
897
|
+
right: N.LeftRight,
|
|
898
|
+
middle: N.LeftRight,
|
|
899
|
+
llap: N.Lap,
|
|
900
|
+
rlap: N.Lap,
|
|
901
|
+
raise: N.RaiseLower,
|
|
902
|
+
lower: N.RaiseLower,
|
|
903
|
+
moveleft: N.MoveLeftRight,
|
|
904
|
+
moveright: N.MoveLeftRight,
|
|
905
|
+
",": [N.Spacer, W.thinmathspace],
|
|
906
|
+
":": [N.Spacer, W.mediummathspace],
|
|
907
|
+
">": [N.Spacer, W.mediummathspace],
|
|
908
|
+
";": [N.Spacer, W.thickmathspace],
|
|
909
|
+
"!": [N.Spacer, W.negativethinmathspace],
|
|
910
|
+
enspace: [N.Spacer, .5],
|
|
911
|
+
quad: [N.Spacer, 1],
|
|
912
|
+
qquad: [N.Spacer, 2],
|
|
913
|
+
thinspace: [N.Spacer, W.thinmathspace],
|
|
914
|
+
negthinspace: [N.Spacer, W.negativethinmathspace],
|
|
915
|
+
"*": N.DiscretionaryTimes,
|
|
916
|
+
allowbreak: N.AllowBreak,
|
|
917
|
+
goodbreak: [N.Linebreak, b.LineBreak.GOODBREAK],
|
|
918
|
+
badbreak: [N.Linebreak, b.LineBreak.BADBREAK],
|
|
919
|
+
nobreak: [N.Linebreak, b.LineBreak.NOBREAK],
|
|
920
|
+
break: N.Break,
|
|
921
|
+
hskip: N.Hskip,
|
|
922
|
+
hspace: N.Hskip,
|
|
923
|
+
kern: [N.Hskip, !0],
|
|
924
|
+
mskip: N.Hskip,
|
|
925
|
+
mspace: N.Hskip,
|
|
926
|
+
mkern: [N.Hskip, !0],
|
|
927
|
+
rule: N.rule,
|
|
928
|
+
Rule: [N.Rule],
|
|
929
|
+
Space: [N.Rule, "blank"],
|
|
930
|
+
nonscript: N.Nonscript,
|
|
931
|
+
big: [
|
|
932
|
+
N.MakeBig,
|
|
933
|
+
o.ORD,
|
|
934
|
+
.85
|
|
935
|
+
],
|
|
936
|
+
Big: [
|
|
937
|
+
N.MakeBig,
|
|
938
|
+
o.ORD,
|
|
939
|
+
1.15
|
|
940
|
+
],
|
|
941
|
+
bigg: [
|
|
942
|
+
N.MakeBig,
|
|
943
|
+
o.ORD,
|
|
944
|
+
1.45
|
|
945
|
+
],
|
|
946
|
+
Bigg: [
|
|
947
|
+
N.MakeBig,
|
|
948
|
+
o.ORD,
|
|
949
|
+
1.75
|
|
950
|
+
],
|
|
951
|
+
bigl: [
|
|
952
|
+
N.MakeBig,
|
|
953
|
+
o.OPEN,
|
|
954
|
+
.85
|
|
955
|
+
],
|
|
956
|
+
Bigl: [
|
|
957
|
+
N.MakeBig,
|
|
958
|
+
o.OPEN,
|
|
959
|
+
1.15
|
|
960
|
+
],
|
|
961
|
+
biggl: [
|
|
962
|
+
N.MakeBig,
|
|
963
|
+
o.OPEN,
|
|
964
|
+
1.45
|
|
965
|
+
],
|
|
966
|
+
Biggl: [
|
|
967
|
+
N.MakeBig,
|
|
968
|
+
o.OPEN,
|
|
969
|
+
1.75
|
|
970
|
+
],
|
|
971
|
+
bigr: [
|
|
972
|
+
N.MakeBig,
|
|
973
|
+
o.CLOSE,
|
|
974
|
+
.85
|
|
975
|
+
],
|
|
976
|
+
Bigr: [
|
|
977
|
+
N.MakeBig,
|
|
978
|
+
o.CLOSE,
|
|
979
|
+
1.15
|
|
980
|
+
],
|
|
981
|
+
biggr: [
|
|
982
|
+
N.MakeBig,
|
|
983
|
+
o.CLOSE,
|
|
984
|
+
1.45
|
|
985
|
+
],
|
|
986
|
+
Biggr: [
|
|
987
|
+
N.MakeBig,
|
|
988
|
+
o.CLOSE,
|
|
989
|
+
1.75
|
|
990
|
+
],
|
|
991
|
+
bigm: [
|
|
992
|
+
N.MakeBig,
|
|
993
|
+
o.REL,
|
|
994
|
+
.85
|
|
995
|
+
],
|
|
996
|
+
Bigm: [
|
|
997
|
+
N.MakeBig,
|
|
998
|
+
o.REL,
|
|
999
|
+
1.15
|
|
1000
|
+
],
|
|
1001
|
+
biggm: [
|
|
1002
|
+
N.MakeBig,
|
|
1003
|
+
o.REL,
|
|
1004
|
+
1.45
|
|
1005
|
+
],
|
|
1006
|
+
Biggm: [
|
|
1007
|
+
N.MakeBig,
|
|
1008
|
+
o.REL,
|
|
1009
|
+
1.75
|
|
1010
|
+
],
|
|
1011
|
+
mathord: [N.TeXAtom, o.ORD],
|
|
1012
|
+
mathop: [N.TeXAtom, o.OP],
|
|
1013
|
+
mathopen: [N.TeXAtom, o.OPEN],
|
|
1014
|
+
mathclose: [N.TeXAtom, o.CLOSE],
|
|
1015
|
+
mathbin: [N.TeXAtom, o.BIN],
|
|
1016
|
+
mathrel: [N.TeXAtom, o.REL],
|
|
1017
|
+
mathpunct: [N.TeXAtom, o.PUNCT],
|
|
1018
|
+
mathinner: [N.TeXAtom, o.INNER],
|
|
1019
|
+
vtop: [N.VBox, "top"],
|
|
1020
|
+
vcenter: [N.VBox, "center"],
|
|
1021
|
+
vbox: [N.VBox, "bottom"],
|
|
1022
|
+
hsize: N.Hsize,
|
|
1023
|
+
parbox: N.ParBox,
|
|
1024
|
+
breakAlign: N.BreakAlign,
|
|
1025
|
+
buildrel: N.BuildRel,
|
|
1026
|
+
hbox: [N.HBox, 0],
|
|
1027
|
+
text: N.HBox,
|
|
1028
|
+
mbox: [N.HBox, 0],
|
|
1029
|
+
fbox: N.FBox,
|
|
1030
|
+
boxed: [
|
|
1031
|
+
N.Macro,
|
|
1032
|
+
"\\fbox{$\\displaystyle{#1}$}",
|
|
1033
|
+
1
|
|
1034
|
+
],
|
|
1035
|
+
framebox: N.FrameBox,
|
|
1036
|
+
makebox: N.MakeBox,
|
|
1037
|
+
strut: N.Strut,
|
|
1038
|
+
mathstrut: [N.Macro, "\\vphantom{(}"],
|
|
1039
|
+
phantom: N.Phantom,
|
|
1040
|
+
vphantom: [
|
|
1041
|
+
N.Phantom,
|
|
1042
|
+
1,
|
|
1043
|
+
0
|
|
1044
|
+
],
|
|
1045
|
+
hphantom: [
|
|
1046
|
+
N.Phantom,
|
|
1047
|
+
0,
|
|
1048
|
+
1
|
|
1049
|
+
],
|
|
1050
|
+
smash: N.Smash,
|
|
1051
|
+
acute: [N.Accent, "00B4"],
|
|
1052
|
+
grave: [N.Accent, "0060"],
|
|
1053
|
+
ddot: [N.Accent, "00A8"],
|
|
1054
|
+
dddot: [N.Accent, "20DB"],
|
|
1055
|
+
ddddot: [N.Accent, "20DC"],
|
|
1056
|
+
tilde: [N.Accent, "007E"],
|
|
1057
|
+
bar: [N.Accent, "00AF"],
|
|
1058
|
+
breve: [N.Accent, "02D8"],
|
|
1059
|
+
check: [N.Accent, "02C7"],
|
|
1060
|
+
hat: [N.Accent, "005E"],
|
|
1061
|
+
vec: [
|
|
1062
|
+
N.Accent,
|
|
1063
|
+
"2192",
|
|
1064
|
+
!1
|
|
1065
|
+
],
|
|
1066
|
+
dot: [N.Accent, "02D9"],
|
|
1067
|
+
widetilde: [
|
|
1068
|
+
N.Accent,
|
|
1069
|
+
"007E",
|
|
1070
|
+
!0
|
|
1071
|
+
],
|
|
1072
|
+
widehat: [
|
|
1073
|
+
N.Accent,
|
|
1074
|
+
"005E",
|
|
1075
|
+
!0
|
|
1076
|
+
],
|
|
1077
|
+
matrix: N.Matrix,
|
|
1078
|
+
array: N.Matrix,
|
|
1079
|
+
pmatrix: [
|
|
1080
|
+
N.Matrix,
|
|
1081
|
+
"(",
|
|
1082
|
+
")"
|
|
1083
|
+
],
|
|
1084
|
+
cases: [
|
|
1085
|
+
N.Matrix,
|
|
1086
|
+
"{",
|
|
1087
|
+
"",
|
|
1088
|
+
"left left",
|
|
1089
|
+
null,
|
|
1090
|
+
".2em",
|
|
1091
|
+
null,
|
|
1092
|
+
!0
|
|
1093
|
+
],
|
|
1094
|
+
eqalign: [
|
|
1095
|
+
N.Matrix,
|
|
1096
|
+
null,
|
|
1097
|
+
null,
|
|
1098
|
+
"right left",
|
|
1099
|
+
Z,
|
|
1100
|
+
".5em",
|
|
1101
|
+
"D"
|
|
1102
|
+
],
|
|
1103
|
+
displaylines: [
|
|
1104
|
+
N.Matrix,
|
|
1105
|
+
null,
|
|
1106
|
+
null,
|
|
1107
|
+
"center",
|
|
1108
|
+
null,
|
|
1109
|
+
".5em",
|
|
1110
|
+
"D"
|
|
1111
|
+
],
|
|
1112
|
+
cr: N.Cr,
|
|
1113
|
+
"\\": N.CrLaTeX,
|
|
1114
|
+
newline: [N.CrLaTeX, !0],
|
|
1115
|
+
hline: N.HLine,
|
|
1116
|
+
hdashline: [N.HLine, "dashed"],
|
|
1117
|
+
eqalignno: [
|
|
1118
|
+
N.Matrix,
|
|
1119
|
+
null,
|
|
1120
|
+
null,
|
|
1121
|
+
"right left",
|
|
1122
|
+
Z,
|
|
1123
|
+
".5em",
|
|
1124
|
+
"D",
|
|
1125
|
+
null,
|
|
1126
|
+
"right"
|
|
1127
|
+
],
|
|
1128
|
+
leqalignno: [
|
|
1129
|
+
N.Matrix,
|
|
1130
|
+
null,
|
|
1131
|
+
null,
|
|
1132
|
+
"right left",
|
|
1133
|
+
Z,
|
|
1134
|
+
".5em",
|
|
1135
|
+
"D",
|
|
1136
|
+
null,
|
|
1137
|
+
"left"
|
|
1138
|
+
],
|
|
1139
|
+
hfill: N.HFill,
|
|
1140
|
+
hfil: N.HFill,
|
|
1141
|
+
hfilll: N.HFill,
|
|
1142
|
+
bmod: [N.Macro, `\\mmlToken{mo}[lspace="${Z}" rspace="${Z}"]{mod}`],
|
|
1143
|
+
pmod: [
|
|
1144
|
+
N.Macro,
|
|
1145
|
+
"\\pod{\\mmlToken{mi}{mod}\\kern 6mu #1}",
|
|
1146
|
+
1
|
|
1147
|
+
],
|
|
1148
|
+
mod: [
|
|
1149
|
+
N.Macro,
|
|
1150
|
+
"\\mathchoice{\\kern18mu}{\\kern12mu}{\\kern12mu}{\\kern12mu}\\mmlToken{mi}{mod}\\,\\,#1",
|
|
1151
|
+
1
|
|
1152
|
+
],
|
|
1153
|
+
pod: [
|
|
1154
|
+
N.Macro,
|
|
1155
|
+
"\\mathchoice{\\kern18mu}{\\kern8mu}{\\kern8mu}{\\kern8mu}(#1)",
|
|
1156
|
+
1
|
|
1157
|
+
],
|
|
1158
|
+
iff: [N.Macro, "\\;\\Longleftrightarrow\\;"],
|
|
1159
|
+
skew: [
|
|
1160
|
+
N.Macro,
|
|
1161
|
+
"{{#2{#3\\mkern#1mu}\\mkern-#1mu}{}}",
|
|
1162
|
+
3
|
|
1163
|
+
],
|
|
1164
|
+
pmb: [
|
|
1165
|
+
N.Macro,
|
|
1166
|
+
"\\rlap{#1}\\kern1px{#1}",
|
|
1167
|
+
1
|
|
1168
|
+
],
|
|
1169
|
+
TeX: [N.Macro, "T\\kern-.14em\\lower.5ex{E}\\kern-.115em X"],
|
|
1170
|
+
LaTeX: [N.Macro, "L\\kern-.325em\\raise.21em{\\scriptstyle{A}}\\kern-.17em\\TeX"],
|
|
1171
|
+
not: N.Not,
|
|
1172
|
+
dots: N.Dots,
|
|
1173
|
+
space: N.Tilde,
|
|
1174
|
+
"\xA0": N.Tilde,
|
|
1175
|
+
" ": N.Tilde,
|
|
1176
|
+
begin: N.BeginEnd,
|
|
1177
|
+
end: N.BeginEnd,
|
|
1178
|
+
label: N.HandleLabel,
|
|
1179
|
+
ref: N.HandleRef,
|
|
1180
|
+
nonumber: N.HandleNoTag,
|
|
1181
|
+
newcolumntype: N.NewColumnType,
|
|
1182
|
+
mathchoice: N.MathChoice,
|
|
1183
|
+
mmlToken: N.MmlToken
|
|
1184
|
+
}), new le("environment", R.environment, {
|
|
1185
|
+
displaymath: [
|
|
1186
|
+
N.Equation,
|
|
1187
|
+
null,
|
|
1188
|
+
!1
|
|
1189
|
+
],
|
|
1190
|
+
math: [
|
|
1191
|
+
N.Equation,
|
|
1192
|
+
null,
|
|
1193
|
+
!1,
|
|
1194
|
+
!1
|
|
1195
|
+
],
|
|
1196
|
+
array: [N.AlignedArray],
|
|
1197
|
+
darray: [
|
|
1198
|
+
N.AlignedArray,
|
|
1199
|
+
null,
|
|
1200
|
+
"D"
|
|
1201
|
+
],
|
|
1202
|
+
equation: [
|
|
1203
|
+
N.Equation,
|
|
1204
|
+
null,
|
|
1205
|
+
!0
|
|
1206
|
+
],
|
|
1207
|
+
eqnarray: [
|
|
1208
|
+
N.EqnArray,
|
|
1209
|
+
null,
|
|
1210
|
+
!0,
|
|
1211
|
+
!0,
|
|
1212
|
+
"rcl",
|
|
1213
|
+
"bmt",
|
|
1214
|
+
_.cols(0, W.thickmathspace),
|
|
1215
|
+
".5em"
|
|
1216
|
+
],
|
|
1217
|
+
indentalign: [N.IndentAlign]
|
|
1218
|
+
}), new m("not_remap", null, {
|
|
1219
|
+
"←": "↚",
|
|
1220
|
+
"→": "↛",
|
|
1221
|
+
"↔": "↮",
|
|
1222
|
+
"⇐": "⇍",
|
|
1223
|
+
"⇒": "⇏",
|
|
1224
|
+
"⇔": "⇎",
|
|
1225
|
+
"∈": "∉",
|
|
1226
|
+
"∋": "∌",
|
|
1227
|
+
"∣": "∤",
|
|
1228
|
+
"∥": "∦",
|
|
1229
|
+
"∼": "≁",
|
|
1230
|
+
"~": "≁",
|
|
1231
|
+
"≃": "≄",
|
|
1232
|
+
"≅": "≇",
|
|
1233
|
+
"≈": "≉",
|
|
1234
|
+
"≍": "≭",
|
|
1235
|
+
"=": "≠",
|
|
1236
|
+
"≡": "≢",
|
|
1237
|
+
"<": "≮",
|
|
1238
|
+
">": "≯",
|
|
1239
|
+
"≤": "≰",
|
|
1240
|
+
"≥": "≱",
|
|
1241
|
+
"≲": "≴",
|
|
1242
|
+
"≳": "≵",
|
|
1243
|
+
"≶": "≸",
|
|
1244
|
+
"≷": "≹",
|
|
1245
|
+
"≺": "⊀",
|
|
1246
|
+
"≻": "⊁",
|
|
1247
|
+
"⊂": "⊄",
|
|
1248
|
+
"⊃": "⊅",
|
|
1249
|
+
"⊆": "⊈",
|
|
1250
|
+
"⊇": "⊉",
|
|
1251
|
+
"⊢": "⊬",
|
|
1252
|
+
"⊨": "⊭",
|
|
1253
|
+
"⊩": "⊮",
|
|
1254
|
+
"⊫": "⊯",
|
|
1255
|
+
"≼": "⋠",
|
|
1256
|
+
"≽": "⋡",
|
|
1257
|
+
"⊑": "⋢",
|
|
1258
|
+
"⊒": "⋣",
|
|
1259
|
+
"⊲": "⋪",
|
|
1260
|
+
"⊳": "⋫",
|
|
1261
|
+
"⊴": "⋬",
|
|
1262
|
+
"⊵": "⋭",
|
|
1263
|
+
"∃": "∄"
|
|
1264
|
+
});
|
|
1265
|
+
//#endregion
|
|
1266
|
+
//#region node_modules/@mathjax/src/mjs/input/tex/base/BaseConfiguration.js
|
|
1267
|
+
var we = b.Variant;
|
|
1268
|
+
new m("remap", null, {
|
|
1269
|
+
"-": "−",
|
|
1270
|
+
"*": "∗",
|
|
1271
|
+
"`": "‘"
|
|
1272
|
+
});
|
|
1273
|
+
function Te(e, t) {
|
|
1274
|
+
let n = e.stack.env.font, r = e.stack.env.italicFont, i = n ? { mathvariant: n } : {}, a = ue.getMap("remap").lookup(t), o = s(t), c = o[3], l = e.create("token", c, i, a ? a.char : t), u = _.isLatinOrGreekChar(t) ? e.configuration.mathStyle(t, !0) || r : "", d = o[4] || (n && u === we.NORMAL ? "" : u);
|
|
1275
|
+
d && l.attributes.set("mathvariant", d), c === "mo" && (h.setProperty(l, "fixStretchy", !0), e.configuration.addNode("fixStretchy", l)), e.Push(l);
|
|
1276
|
+
}
|
|
1277
|
+
function Ee(e, t) {
|
|
1278
|
+
throw new I("UndefinedControlSequence", "Undefined control sequence %1", "\\" + t);
|
|
1279
|
+
}
|
|
1280
|
+
function De(e, t) {
|
|
1281
|
+
throw new I("UnknownEnv", "Unknown environment '%1'", t);
|
|
1282
|
+
}
|
|
1283
|
+
function Oe({ data: e }) {
|
|
1284
|
+
for (let t of e.getList("nonscript")) if (t.attributes.get("scriptlevel") > 0) {
|
|
1285
|
+
let n = t.parent;
|
|
1286
|
+
if (n.childNodes.splice(n.childIndex(t), 1), e.removeFromList(t.kind, [t]), t.isKind("mrow")) {
|
|
1287
|
+
let n = t.childNodes[0];
|
|
1288
|
+
e.removeFromList("mstyle", [n]), e.removeFromList("mspace", n.childNodes[0].childNodes);
|
|
1289
|
+
}
|
|
1290
|
+
} else t.isKind("mrow") && (t.parent.replaceChild(t.childNodes[0], t), e.removeFromList("mrow", [t]));
|
|
1291
|
+
}
|
|
1292
|
+
var ke = class extends ae {};
|
|
1293
|
+
ee.create("base", {
|
|
1294
|
+
[y.CONFIG]: function(e, t) {
|
|
1295
|
+
let n = t.parseOptions.options;
|
|
1296
|
+
n.digits && (n.numberPattern = n.digits), new U("digit", R.digit, n.initialDigit), new U("letter", R.variable, n.initialLetter), e.handlers.get(v.CHARACTER).add(["letter", "digit"], null, 4);
|
|
1297
|
+
},
|
|
1298
|
+
[y.HANDLER]: {
|
|
1299
|
+
[v.CHARACTER]: ["command", "special"],
|
|
1300
|
+
[v.DELIMITER]: ["delimiter"],
|
|
1301
|
+
[v.MACRO]: [
|
|
1302
|
+
"delimiter",
|
|
1303
|
+
"macros",
|
|
1304
|
+
"lcGreek",
|
|
1305
|
+
"ucGreek",
|
|
1306
|
+
"mathchar0mi",
|
|
1307
|
+
"mathchar0mo",
|
|
1308
|
+
"mathchar7"
|
|
1309
|
+
],
|
|
1310
|
+
[v.ENVIRONMENT]: ["environment"]
|
|
1311
|
+
},
|
|
1312
|
+
[y.FALLBACK]: {
|
|
1313
|
+
[v.CHARACTER]: Te,
|
|
1314
|
+
[v.MACRO]: Ee,
|
|
1315
|
+
[v.ENVIRONMENT]: De
|
|
1316
|
+
},
|
|
1317
|
+
[y.ITEMS]: {
|
|
1318
|
+
[f.prototype.kind]: f,
|
|
1319
|
+
[ne.prototype.kind]: ne,
|
|
1320
|
+
[V.prototype.kind]: V,
|
|
1321
|
+
[w.prototype.kind]: w,
|
|
1322
|
+
[C.prototype.kind]: C,
|
|
1323
|
+
[he.prototype.kind]: he,
|
|
1324
|
+
[A.prototype.kind]: A,
|
|
1325
|
+
[fe.prototype.kind]: fe,
|
|
1326
|
+
[M.prototype.kind]: M,
|
|
1327
|
+
[O.prototype.kind]: O,
|
|
1328
|
+
[pe.prototype.kind]: pe,
|
|
1329
|
+
[P.prototype.kind]: P,
|
|
1330
|
+
[S.prototype.kind]: S,
|
|
1331
|
+
[z.prototype.kind]: z,
|
|
1332
|
+
[p.prototype.kind]: p,
|
|
1333
|
+
[te.prototype.kind]: te,
|
|
1334
|
+
[L.prototype.kind]: L,
|
|
1335
|
+
[D.prototype.kind]: D,
|
|
1336
|
+
[F.prototype.kind]: F,
|
|
1337
|
+
[H.prototype.kind]: H,
|
|
1338
|
+
[B.prototype.kind]: B,
|
|
1339
|
+
[j.prototype.kind]: j,
|
|
1340
|
+
[k.prototype.kind]: k,
|
|
1341
|
+
[T.prototype.kind]: T,
|
|
1342
|
+
[E.prototype.kind]: E,
|
|
1343
|
+
[x.prototype.kind]: x
|
|
1344
|
+
},
|
|
1345
|
+
[y.OPTIONS]: {
|
|
1346
|
+
maxMacros: 1e3,
|
|
1347
|
+
digits: "",
|
|
1348
|
+
numberPattern: /^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)?|\.[0-9]+)/,
|
|
1349
|
+
initialDigit: /[0-9.,]/,
|
|
1350
|
+
identifierPattern: /^[a-zA-Z]+/,
|
|
1351
|
+
initialLetter: /[a-zA-Z]/,
|
|
1352
|
+
baseURL: !i.document || i.document.getElementsByTagName("base").length === 0 ? "" : String(i.document.location).replace(/#.*$/, "")
|
|
1353
|
+
},
|
|
1354
|
+
[y.TAGS]: { base: ke },
|
|
1355
|
+
[y.POSTPROCESSORS]: [[Oe, -4]]
|
|
1356
|
+
});
|
|
1357
|
+
//#endregion
|
|
1358
|
+
//#region node_modules/@mathjax/src/mjs/input/tex.js
|
|
1359
|
+
var $ = class n extends l {
|
|
1360
|
+
static configure(e) {
|
|
1361
|
+
let t = new me(e, ["tex"]);
|
|
1362
|
+
return t.init(), t;
|
|
1363
|
+
}
|
|
1364
|
+
static tags(e, t) {
|
|
1365
|
+
g.addTags(t.tags), g.setDefault(e.options.tags), e.tags = g.getDefault(), e.tags.configuration = e;
|
|
1366
|
+
}
|
|
1367
|
+
constructor(r = {}) {
|
|
1368
|
+
let [i, a, o] = e(r, n.OPTIONS, K.OPTIONS);
|
|
1369
|
+
super(a), this.findTeX = this.options.FindTeX || new K(o);
|
|
1370
|
+
let s = this.options.packages, c = this.configuration = n.configure(s), l = this._parseOptions = new Ce(c, [this.options, g.OPTIONS]);
|
|
1371
|
+
t(l.options, i), c.config(this), n.tags(l, c), this.postFilters.addList([
|
|
1372
|
+
[J.cleanSubSup, -7],
|
|
1373
|
+
[J.setInherited, -6],
|
|
1374
|
+
[J.checkScriptlevel, -5],
|
|
1375
|
+
[J.moveLimits, -4],
|
|
1376
|
+
[J.cleanStretchy, -3],
|
|
1377
|
+
[J.cleanAttributes, -2],
|
|
1378
|
+
[J.combineRelations, -1]
|
|
1379
|
+
]);
|
|
1380
|
+
}
|
|
1381
|
+
setMmlFactory(e) {
|
|
1382
|
+
super.setMmlFactory(e), this._parseOptions.nodeFactory.setMmlFactory(e);
|
|
1383
|
+
}
|
|
1384
|
+
get parseOptions() {
|
|
1385
|
+
return this._parseOptions;
|
|
1386
|
+
}
|
|
1387
|
+
reset(e = 0) {
|
|
1388
|
+
this.parseOptions.tags.reset(e);
|
|
1389
|
+
}
|
|
1390
|
+
compile(e, t) {
|
|
1391
|
+
this.parseOptions.clear(), this.parseOptions.mathItem = e, this.executeFilters(this.preFilters, e, t, this.parseOptions), this.latex = e.math;
|
|
1392
|
+
let n;
|
|
1393
|
+
this.parseOptions.tags.startEquation(e);
|
|
1394
|
+
let r;
|
|
1395
|
+
try {
|
|
1396
|
+
r = new ie(this.latex, {
|
|
1397
|
+
display: e.display,
|
|
1398
|
+
isInner: !1
|
|
1399
|
+
}, this.parseOptions), n = r.mml();
|
|
1400
|
+
} catch (e) {
|
|
1401
|
+
if (!(e instanceof I)) throw e;
|
|
1402
|
+
this.parseOptions.error = !0, n = this.options.formatError(this, e);
|
|
1403
|
+
}
|
|
1404
|
+
return n = this.parseOptions.nodeFactory.create("node", "math", [n]), n.attributes.set(b.Attr.LATEX, this.latex), e.display && h.setAttribute(n, "display", "block"), this.parseOptions.tags.finishEquation(e), this.parseOptions.root = n, this.executeFilters(this.postFilters, e, t, this.parseOptions), r && r.stack.env.hsize && (h.setAttribute(n, "maxwidth", r.stack.env.hsize), h.setAttribute(n, "overflow", "linebreak")), this.mathNode = this.parseOptions.root, this.mathNode;
|
|
1405
|
+
}
|
|
1406
|
+
findMath(e) {
|
|
1407
|
+
return this.findTeX.findMath(e);
|
|
1408
|
+
}
|
|
1409
|
+
formatError(e) {
|
|
1410
|
+
let t = e.message.replace(/\n.*/, "");
|
|
1411
|
+
return this.parseOptions.nodeFactory.create("error", t, e.id, this.latex);
|
|
1412
|
+
}
|
|
1413
|
+
};
|
|
1414
|
+
$.NAME = "TeX", $.OPTIONS = Object.assign(Object.assign({}, l.OPTIONS), {
|
|
1415
|
+
FindTeX: null,
|
|
1416
|
+
packages: ["base"],
|
|
1417
|
+
maxBuffer: 5 * 1024,
|
|
1418
|
+
maxTemplateSubtitutions: 1e4,
|
|
1419
|
+
mathStyle: "TeX",
|
|
1420
|
+
formatError: (e, t) => e.formatError(t)
|
|
1421
|
+
});
|
|
1422
|
+
//#endregion
|
|
1423
|
+
export { $ as TeX };
|