@algorisys/yappydraw 0.8.256 → 0.8.266
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 +2 -2
- package/chunks/{AllPackages-DNX4gUvL.js → AllPackages-DytsA6Gg.js} +2 -2
- package/chunks/{BaseConfiguration-iE_YypNt.js → BaseConfiguration-B0Un-ANd.js} +1 -1
- package/chunks/{Factory--zguTNZ7.js → Factory-B4kWsy6c.js} +2 -2
- package/chunks/{InputJax-BYq2tqUz.js → InputJax-DQpRzuU2.js} +1 -1
- package/chunks/{TeXAtom-Bp5xoo7F.js → TeXAtom-COgv6VHH.js} +1 -1
- package/chunks/{canva-ai-DOxR5API.js → canva-ai-UpVMQarc.js} +1 -1
- package/chunks/choice-dialog-state-BFM7BBz5.js +9 -0
- package/chunks/{design-generator-BLpVV44C.js → design-generator-CiQYDZjA.js} +1 -1
- package/chunks/{drawing-engine-FYkFVtxF.js → drawing-engine-BktTiCZV.js} +1 -1
- package/chunks/{drawings-store-BjA6li-6.js → drawings-store-D5mbcLQn.js} +1 -1
- package/chunks/{ds-operations-DuIF6ydV.js → ds-operations-OyLD46yb.js} +1 -1
- package/chunks/{export-game-hGZnveUN.js → export-game-BBgAsjhS.js} +1 -1
- package/chunks/{game-runtime-CwWkAeXJ.js → game-runtime-BhdBQqjO.js} +5 -5
- package/chunks/{html-DxnOvKy4.js → html-CEj6ZeJc.js} +50 -50
- package/chunks/{index-CUI7LOoj.js → index-CVs7nX1L.js} +30142 -27930
- package/chunks/{lucide-solid-aWHwPmHl.js → lucide-solid-D_zf20b2.js} +1 -1
- package/chunks/{markdown-to-slides-C1DHnL4n.js → markdown-to-slides-yicTrSpC.js} +1 -1
- package/chunks/{morph-animator-BG7b1adF.js → morph-animator-Pks9uJ8t.js} +1 -1
- package/chunks/{onboarding-tour-CWT8N3i9.js → onboarding-tour-BTrlUedf.js} +1 -1
- package/chunks/{search-C_xchBRT.js → search-Dihy8o9q.js} +2 -2
- package/chunks/{slide-generator-C6pN5wEY.js → slide-generator-CkgdLW6B.js} +1 -1
- package/chunks/{svg-BvVc02XL.js → svg-B2urwbCV.js} +2 -2
- package/chunks/{tex-Cfi4Kfun.js → tex-BTCIQDRb.js} +3 -3
- package/chunks/{turntable-ai-DYWk5DKw.js → turntable-ai-BXOOuHSI.js} +1 -1
- package/package.json +1 -1
- package/yappy.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as o, b as m, d as b, f as a, z as W, w as z, x as U, y as B } from "./index-
|
|
1
|
+
import { s as o, b as m, d as b, f as a, z as W, w as z, x as U, y as B } from "./index-CVs7nX1L.js";
|
|
2
2
|
const h = /* @__PURE__ */ new Set(), x = [], G = {
|
|
3
3
|
ArrowLeft: "left",
|
|
4
4
|
a: "left",
|
|
@@ -240,17 +240,17 @@ function Z() {
|
|
|
240
240
|
t && B(t.id);
|
|
241
241
|
},
|
|
242
242
|
playAnim: (n, t) => {
|
|
243
|
-
n?.alive && import("./index-
|
|
243
|
+
n?.alive && import("./index-CVs7nX1L.js").then((r) => r.ao).then((r) => r.sequenceAnimator.playAnimation(n.id, { id: `bhv-${Date.now()}`, type: "preset", name: t, trigger: "programmatic" }, () => {
|
|
244
244
|
}));
|
|
245
245
|
},
|
|
246
246
|
goToPage: (n) => {
|
|
247
247
|
n >= 0 && n < o.slides.length && U(n);
|
|
248
248
|
},
|
|
249
249
|
sound: (n) => {
|
|
250
|
-
import("./index-
|
|
250
|
+
import("./index-CVs7nX1L.js").then((t) => t.ap).then((t) => t.playSfx(n));
|
|
251
251
|
},
|
|
252
252
|
music: (n) => {
|
|
253
|
-
import("./index-
|
|
253
|
+
import("./index-CVs7nX1L.js").then((t) => t.ap).then((t) => n ? t.startMusic() : t.stopMusic());
|
|
254
254
|
},
|
|
255
255
|
end: (n) => {
|
|
256
256
|
if (P(!0), n) {
|
|
@@ -316,7 +316,7 @@ ${i}`);
|
|
|
316
316
|
return y = requestAnimationFrame(n), !0;
|
|
317
317
|
}
|
|
318
318
|
function p() {
|
|
319
|
-
if (y !== null && (cancelAnimationFrame(y), y = null), window.removeEventListener("keydown", K, !0), window.removeEventListener("keyup", O, !0), import("./index-
|
|
319
|
+
if (y !== null && (cancelAnimationFrame(y), y = null), window.removeEventListener("keydown", K, !0), window.removeEventListener("keyup", O, !0), import("./index-CVs7nX1L.js").then((e) => e.ap).then((e) => e.stopMusic()), h.clear(), w = [], x.length = 0, v.length = 0, g) {
|
|
320
320
|
const e = g;
|
|
321
321
|
g = null, b(() => {
|
|
322
322
|
a("elements", JSON.parse(e.elements)), a("selection", e.selection), a("activeSlideIndex", e.activeSlideIndex), a("appMode", e.appMode), a("gameActive", !1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as bt, g as Et } from "./PrioritizedList-TjDg4i-s.js";
|
|
2
2
|
import { r as Dt } from "./mathjax-CnUrFnFS.js";
|
|
3
3
|
import { r as it } from "./Options-BStFr0zv.js";
|
|
4
|
-
import { r as Pt } from "./InputJax-
|
|
5
|
-
import { a as Ht, c as kt, d as It, f as qt, h as Nt, e as Rt, b as Ct, k as Ft, l as Jt, m as Bt, g as $t, i as Xt, j as zt, n as Wt, w as Yt, v as Kt, o as Ut, p as Gt, q as Qt, s as Vt, t as Zt, u as te, y as ee, x as re, z as ne, r as ie } from "./TeXAtom-
|
|
4
|
+
import { r as Pt } from "./InputJax-DQpRzuU2.js";
|
|
5
|
+
import { a as Ht, c as kt, d as It, f as qt, h as Nt, e as Rt, b as Ct, k as Ft, l as Jt, m as Bt, g as $t, i as Xt, j as zt, n as Wt, w as Yt, v as Kt, o as Ut, p as Gt, q as Qt, s as Vt, t as Zt, u as te, y as ee, x as re, z as ne, r as ie } from "./TeXAtom-COgv6VHH.js";
|
|
6
6
|
import { r as ot } from "./MathItem-DD5NNBjZ.js";
|
|
7
|
-
import {
|
|
7
|
+
import { d as oe, a as rt, f as jt, c as ae } from "./Factory-B4kWsy6c.js";
|
|
8
8
|
function se(f, O) {
|
|
9
9
|
for (var w = 0; w < O.length; w++) {
|
|
10
10
|
const h = O[w];
|
|
@@ -180,8 +180,8 @@ function ue() {
|
|
|
180
180
|
var x = _.value;
|
|
181
181
|
c.set(x, !0);
|
|
182
182
|
}
|
|
183
|
-
} catch (
|
|
184
|
-
e = { error:
|
|
183
|
+
} catch (b) {
|
|
184
|
+
e = { error: b };
|
|
185
185
|
} finally {
|
|
186
186
|
try {
|
|
187
187
|
_ && !_.done && (i = p.return) && i.call(p);
|
|
@@ -568,8 +568,8 @@ function de() {
|
|
|
568
568
|
ht = 1;
|
|
569
569
|
var f;
|
|
570
570
|
Object.defineProperty(et, "__esModule", { value: !0 }), et.MML = void 0;
|
|
571
|
-
var O = rt(), w = Ht(), h = kt(), o = It(), n = ae(), t = qt(), r = Nt(), e = Rt(), i = Ct(), y = Ft(), u = Jt(), c = Bt(), p = ce(), _ = $t(), x = Xt(), d = zt(), T = Wt(),
|
|
572
|
-
return et.MML = (f = {}, f[w.MmlMath.prototype.kind] = w.MmlMath, f[h.MmlMi.prototype.kind] = h.MmlMi, f[o.MmlMn.prototype.kind] = o.MmlMn, f[n.MmlMo.prototype.kind] = n.MmlMo, f[t.MmlMtext.prototype.kind] = t.MmlMtext, f[r.MmlMspace.prototype.kind] = r.MmlMspace, f[e.MmlMs.prototype.kind] = e.MmlMs, f[i.MmlMrow.prototype.kind] = i.MmlMrow, f[i.MmlInferredMrow.prototype.kind] = i.MmlInferredMrow, f[y.MmlMfrac.prototype.kind] = y.MmlMfrac, f[u.MmlMsqrt.prototype.kind] = u.MmlMsqrt, f[c.MmlMroot.prototype.kind] = c.MmlMroot, f[p.MmlMstyle.prototype.kind] = p.MmlMstyle, f[_.MmlMerror.prototype.kind] = _.MmlMerror, f[x.MmlMpadded.prototype.kind] = x.MmlMpadded, f[d.MmlMphantom.prototype.kind] = d.MmlMphantom, f[T.MmlMfenced.prototype.kind] = T.MmlMfenced, f[
|
|
571
|
+
var O = rt(), w = Ht(), h = kt(), o = It(), n = ae(), t = qt(), r = Nt(), e = Rt(), i = Ct(), y = Ft(), u = Jt(), c = Bt(), p = ce(), _ = $t(), x = Xt(), d = zt(), T = Wt(), b = Yt(), v = Kt(), a = Ut(), l = Gt(), s = Qt(), m = Vt(), M = Zt(), g = te(), j = fe(), S = pe(), A = ee(), L = re(), D = ne(), E = he();
|
|
572
|
+
return et.MML = (f = {}, f[w.MmlMath.prototype.kind] = w.MmlMath, f[h.MmlMi.prototype.kind] = h.MmlMi, f[o.MmlMn.prototype.kind] = o.MmlMn, f[n.MmlMo.prototype.kind] = n.MmlMo, f[t.MmlMtext.prototype.kind] = t.MmlMtext, f[r.MmlMspace.prototype.kind] = r.MmlMspace, f[e.MmlMs.prototype.kind] = e.MmlMs, f[i.MmlMrow.prototype.kind] = i.MmlMrow, f[i.MmlInferredMrow.prototype.kind] = i.MmlInferredMrow, f[y.MmlMfrac.prototype.kind] = y.MmlMfrac, f[u.MmlMsqrt.prototype.kind] = u.MmlMsqrt, f[c.MmlMroot.prototype.kind] = c.MmlMroot, f[p.MmlMstyle.prototype.kind] = p.MmlMstyle, f[_.MmlMerror.prototype.kind] = _.MmlMerror, f[x.MmlMpadded.prototype.kind] = x.MmlMpadded, f[d.MmlMphantom.prototype.kind] = d.MmlMphantom, f[T.MmlMfenced.prototype.kind] = T.MmlMfenced, f[b.MmlMenclose.prototype.kind] = b.MmlMenclose, f[v.MmlMaction.prototype.kind] = v.MmlMaction, f[a.MmlMsub.prototype.kind] = a.MmlMsub, f[a.MmlMsup.prototype.kind] = a.MmlMsup, f[a.MmlMsubsup.prototype.kind] = a.MmlMsubsup, f[l.MmlMunder.prototype.kind] = l.MmlMunder, f[l.MmlMover.prototype.kind] = l.MmlMover, f[l.MmlMunderover.prototype.kind] = l.MmlMunderover, f[s.MmlMmultiscripts.prototype.kind] = s.MmlMmultiscripts, f[s.MmlMprescripts.prototype.kind] = s.MmlMprescripts, f[s.MmlNone.prototype.kind] = s.MmlNone, f[m.MmlMtable.prototype.kind] = m.MmlMtable, f[M.MmlMlabeledtr.prototype.kind] = M.MmlMlabeledtr, f[M.MmlMtr.prototype.kind] = M.MmlMtr, f[g.MmlMtd.prototype.kind] = g.MmlMtd, f[j.MmlMaligngroup.prototype.kind] = j.MmlMaligngroup, f[S.MmlMalignmark.prototype.kind] = S.MmlMalignmark, f[A.MmlMglyph.prototype.kind] = A.MmlMglyph, f[L.MmlSemantics.prototype.kind] = L.MmlSemantics, f[L.MmlAnnotation.prototype.kind] = L.MmlAnnotation, f[L.MmlAnnotationXML.prototype.kind] = L.MmlAnnotationXML, f[D.TeXAtom.prototype.kind] = D.TeXAtom, f[E.MathChoice.prototype.kind] = E.MathChoice, f[O.TextNode.prototype.kind] = O.TextNode, f[O.XMLNode.prototype.kind] = O.XMLNode, f), et;
|
|
573
573
|
}
|
|
574
574
|
var dt;
|
|
575
575
|
function ye() {
|
|
@@ -769,7 +769,7 @@ function Tt() {
|
|
|
769
769
|
return v.concat(M || Array.prototype.slice.call(a));
|
|
770
770
|
};
|
|
771
771
|
Object.defineProperty(f, "__esModule", { value: !0 }), f.AbstractMathDocument = f.resetAllOptions = f.resetOptions = f.RenderList = void 0;
|
|
772
|
-
var n = it(), t = Pt(), r = ie(), e = St(), i = ot(), y = ye(), u = ve(), c =
|
|
772
|
+
var n = it(), t = Pt(), r = ie(), e = St(), i = ot(), y = ye(), u = ve(), c = bt(), p = (function(v) {
|
|
773
773
|
O(a, v);
|
|
774
774
|
function a() {
|
|
775
775
|
return v !== null && v.apply(this, arguments) || this;
|
|
@@ -778,8 +778,8 @@ function Tt() {
|
|
|
778
778
|
var s, m, M = new this();
|
|
779
779
|
try {
|
|
780
780
|
for (var g = w(Object.keys(l)), j = g.next(); !j.done; j = g.next()) {
|
|
781
|
-
var S = j.value, A = h(this.action(S, l[S]), 2),
|
|
782
|
-
D && M.add(
|
|
781
|
+
var S = j.value, A = h(this.action(S, l[S]), 2), L = A[0], D = A[1];
|
|
782
|
+
D && M.add(L, D);
|
|
783
783
|
}
|
|
784
784
|
} catch (E) {
|
|
785
785
|
s = { error: E };
|
|
@@ -792,19 +792,19 @@ function Tt() {
|
|
|
792
792
|
}
|
|
793
793
|
return M;
|
|
794
794
|
}, a.action = function(l, s) {
|
|
795
|
-
var m, M, g, j, S, A,
|
|
795
|
+
var m, M, g, j, S, A, L = !0, D = s[0];
|
|
796
796
|
if (s.length === 1 || typeof s[1] == "boolean")
|
|
797
|
-
s.length === 2 && (
|
|
797
|
+
s.length === 2 && (L = s[1]), m = h(this.methodActions(l), 2), S = m[0], A = m[1];
|
|
798
798
|
else if (typeof s[1] == "string")
|
|
799
799
|
if (typeof s[2] == "string") {
|
|
800
|
-
s.length === 4 && (
|
|
800
|
+
s.length === 4 && (L = s[3]);
|
|
801
801
|
var E = h(s.slice(1), 2), k = E[0], P = E[1];
|
|
802
802
|
M = h(this.methodActions(k, P), 2), S = M[0], A = M[1];
|
|
803
803
|
} else
|
|
804
|
-
s.length === 3 && (
|
|
804
|
+
s.length === 3 && (L = s[2]), g = h(this.methodActions(s[1]), 2), S = g[0], A = g[1];
|
|
805
805
|
else
|
|
806
|
-
s.length === 4 && (
|
|
807
|
-
return [{ id: l, renderDoc: S, renderMath: A, convert:
|
|
806
|
+
s.length === 4 && (L = s[3]), j = h(s.slice(1), 2), S = j[0], A = j[1];
|
|
807
|
+
return [{ id: l, renderDoc: S, renderMath: A, convert: L }, D];
|
|
808
808
|
}, a.methodActions = function(l, s) {
|
|
809
809
|
return s === void 0 && (s = l), [
|
|
810
810
|
function(m) {
|
|
@@ -841,8 +841,8 @@ function Tt() {
|
|
|
841
841
|
if (A.priority >= m && A.item.renderMath(l, s))
|
|
842
842
|
return;
|
|
843
843
|
}
|
|
844
|
-
} catch (
|
|
845
|
-
M = { error:
|
|
844
|
+
} catch (L) {
|
|
845
|
+
M = { error: L };
|
|
846
846
|
} finally {
|
|
847
847
|
try {
|
|
848
848
|
S && !S.done && (g = j.return) && g.call(j);
|
|
@@ -859,8 +859,8 @@ function Tt() {
|
|
|
859
859
|
if (A.priority > m || A.item.convert && A.item.renderMath(l, s))
|
|
860
860
|
return;
|
|
861
861
|
}
|
|
862
|
-
} catch (
|
|
863
|
-
M = { error:
|
|
862
|
+
} catch (L) {
|
|
863
|
+
M = { error: L };
|
|
864
864
|
} finally {
|
|
865
865
|
try {
|
|
866
866
|
S && !S.done && (g = j.return) && g.call(j);
|
|
@@ -929,7 +929,7 @@ function Tt() {
|
|
|
929
929
|
return v !== null && v.apply(this, arguments) || this;
|
|
930
930
|
}
|
|
931
931
|
return a;
|
|
932
|
-
})(i.AbstractMathItem),
|
|
932
|
+
})(i.AbstractMathItem), b = (function() {
|
|
933
933
|
function v(a, l, s) {
|
|
934
934
|
var m = this, M = this.constructor;
|
|
935
935
|
this.document = a, this.options = (0, n.userOptions)((0, n.defaultOptions)({}, M.OPTIONS), s), this.math = new (this.options.MathList || d)(), this.renderActions = p.create(this.options.renderActions), this.processed = new v.ProcessBits(), this.outputJax = this.options.OutputJax || new x();
|
|
@@ -972,12 +972,12 @@ function Tt() {
|
|
|
972
972
|
lineWidth: 1e6,
|
|
973
973
|
scale: 1,
|
|
974
974
|
family: ""
|
|
975
|
-
}, l), m = s.format, M = s.display, g = s.end, j = s.ex, S = s.em, A = s.containerWidth,
|
|
975
|
+
}, l), m = s.format, M = s.display, g = s.end, j = s.ex, S = s.em, A = s.containerWidth, L = s.lineWidth, D = s.scale, E = s.family;
|
|
976
976
|
A === null && (A = 80 * j);
|
|
977
977
|
var k = this.inputJax.reduce(function(q, C) {
|
|
978
978
|
return C.name === m ? C : q;
|
|
979
979
|
}, null), P = new this.options.MathItem(a, k, M);
|
|
980
|
-
return P.start.node = this.adaptor.body(this.document), P.setMetrics(S, j, A,
|
|
980
|
+
return P.start.node = this.adaptor.body(this.document), P.setMetrics(S, j, A, L, D), this.outputJax.options.mtextInheritFont && (P.outputData.mtextFamily = E), this.outputJax.options.merrorInheritFont && (P.outputData.merrorFamily = E), P.convert(this, g), P.typesetRoot || P.root;
|
|
981
981
|
}, v.prototype.findMath = function(a) {
|
|
982
982
|
return this.processed.set("findMath"), this;
|
|
983
983
|
}, v.prototype.compile = function() {
|
|
@@ -999,15 +999,15 @@ function Tt() {
|
|
|
999
999
|
}
|
|
1000
1000
|
}
|
|
1001
1001
|
try {
|
|
1002
|
-
for (var A = w(M),
|
|
1003
|
-
var S =
|
|
1002
|
+
for (var A = w(M), L = A.next(); !L.done; L = A.next()) {
|
|
1003
|
+
var S = L.value, D = S.inputData.recompile;
|
|
1004
1004
|
S.state(D.state), S.inputData.recompile = D, this.compileMath(S);
|
|
1005
1005
|
}
|
|
1006
1006
|
} catch (E) {
|
|
1007
1007
|
s = { error: E };
|
|
1008
1008
|
} finally {
|
|
1009
1009
|
try {
|
|
1010
|
-
|
|
1010
|
+
L && !L.done && (m = A.return) && m.call(A);
|
|
1011
1011
|
} finally {
|
|
1012
1012
|
if (s) throw s.error;
|
|
1013
1013
|
}
|
|
@@ -1139,8 +1139,8 @@ function Tt() {
|
|
|
1139
1139
|
Array.isArray(a) || (a = [a]);
|
|
1140
1140
|
var g = this.adaptor, j = [], S = g.getElements(a, this.document);
|
|
1141
1141
|
try {
|
|
1142
|
-
t: for (var A = w(this.math),
|
|
1143
|
-
var D =
|
|
1142
|
+
t: for (var A = w(this.math), L = A.next(); !L.done; L = A.next()) {
|
|
1143
|
+
var D = L.value;
|
|
1144
1144
|
try {
|
|
1145
1145
|
for (var E = (m = void 0, w(S)), k = E.next(); !k.done; k = E.next()) {
|
|
1146
1146
|
var P = k.value;
|
|
@@ -1163,7 +1163,7 @@ function Tt() {
|
|
|
1163
1163
|
l = { error: q };
|
|
1164
1164
|
} finally {
|
|
1165
1165
|
try {
|
|
1166
|
-
|
|
1166
|
+
L && !L.done && (s = A.return) && s.call(A);
|
|
1167
1167
|
} finally {
|
|
1168
1168
|
if (l) throw l.error;
|
|
1169
1169
|
}
|
|
@@ -1190,7 +1190,7 @@ function Tt() {
|
|
|
1190
1190
|
})
|
|
1191
1191
|
}, v.ProcessBits = (0, u.BitFieldClass)("findMath", "compile", "getMetrics", "typeset", "updateDocument"), v;
|
|
1192
1192
|
})();
|
|
1193
|
-
f.AbstractMathDocument =
|
|
1193
|
+
f.AbstractMathDocument = b;
|
|
1194
1194
|
})(N)), N;
|
|
1195
1195
|
}
|
|
1196
1196
|
var mt;
|
|
@@ -1449,8 +1449,8 @@ function xe() {
|
|
|
1449
1449
|
var _ = p.call(u), x, d = [], T;
|
|
1450
1450
|
try {
|
|
1451
1451
|
for (; (c === void 0 || c-- > 0) && !(x = _.next()).done; ) d.push(x.value);
|
|
1452
|
-
} catch (
|
|
1453
|
-
T = { error:
|
|
1452
|
+
} catch (b) {
|
|
1453
|
+
T = { error: b };
|
|
1454
1454
|
} finally {
|
|
1455
1455
|
try {
|
|
1456
1456
|
x && !x.done && (p = _.return) && p.call(_);
|
|
@@ -1473,11 +1473,11 @@ function xe() {
|
|
|
1473
1473
|
var o = Tt(), n = it(), t = Me(), r = _e(), e = ge(), i = ot(), y = (function(u) {
|
|
1474
1474
|
f(c, u);
|
|
1475
1475
|
function c(p, _, x) {
|
|
1476
|
-
var d = this, T = w((0, n.separateOptions)(x, e.HTMLDomStrings.OPTIONS), 2),
|
|
1477
|
-
return d = u.call(this, p, _,
|
|
1476
|
+
var d = this, T = w((0, n.separateOptions)(x, e.HTMLDomStrings.OPTIONS), 2), b = T[0], v = T[1];
|
|
1477
|
+
return d = u.call(this, p, _, b) || this, d.domStrings = d.options.DomStrings || new e.HTMLDomStrings(v), d.domStrings.adaptor = _, d.styles = [], d;
|
|
1478
1478
|
}
|
|
1479
1479
|
return c.prototype.findPosition = function(p, _, x, d) {
|
|
1480
|
-
var T,
|
|
1480
|
+
var T, b, v = this.adaptor;
|
|
1481
1481
|
try {
|
|
1482
1482
|
for (var a = h(d[p]), l = a.next(); !l.done; l = a.next()) {
|
|
1483
1483
|
var s = l.value, m = w(s, 2), M = m[0], g = m[1];
|
|
@@ -1489,27 +1489,27 @@ function xe() {
|
|
|
1489
1489
|
T = { error: j };
|
|
1490
1490
|
} finally {
|
|
1491
1491
|
try {
|
|
1492
|
-
l && !l.done && (
|
|
1492
|
+
l && !l.done && (b = a.return) && b.call(a);
|
|
1493
1493
|
} finally {
|
|
1494
1494
|
if (T) throw T.error;
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
1497
1497
|
return { node: null, n: 0, delim: x };
|
|
1498
1498
|
}, c.prototype.mathItem = function(p, _, x) {
|
|
1499
|
-
var d = p.math, T = this.findPosition(p.n, p.start.n, p.open, x),
|
|
1500
|
-
return new this.options.MathItem(d, _, p.display, T,
|
|
1499
|
+
var d = p.math, T = this.findPosition(p.n, p.start.n, p.open, x), b = this.findPosition(p.n, p.end.n, p.close, x);
|
|
1500
|
+
return new this.options.MathItem(d, _, p.display, T, b);
|
|
1501
1501
|
}, c.prototype.findMath = function(p) {
|
|
1502
|
-
var _, x, d, T,
|
|
1502
|
+
var _, x, d, T, b, v, a, l, s;
|
|
1503
1503
|
if (!this.processed.isSet("findMath")) {
|
|
1504
1504
|
this.adaptor.document = this.document, p = (0, n.userOptions)({ elements: this.options.elements || [this.adaptor.body(this.document)] }, p);
|
|
1505
1505
|
try {
|
|
1506
1506
|
for (var m = h(this.adaptor.getElements(p.elements, this.document)), M = m.next(); !M.done; M = m.next()) {
|
|
1507
1507
|
var g = M.value, j = w([null, null], 2), S = j[0], A = j[1];
|
|
1508
1508
|
try {
|
|
1509
|
-
for (var
|
|
1509
|
+
for (var L = (d = void 0, h(this.inputJax)), D = L.next(); !D.done; D = L.next()) {
|
|
1510
1510
|
var E = D.value, k = new this.options.MathList();
|
|
1511
1511
|
if (E.processStrings) {
|
|
1512
|
-
S === null && (
|
|
1512
|
+
S === null && (b = w(this.domStrings.find(g), 2), S = b[0], A = b[1]);
|
|
1513
1513
|
try {
|
|
1514
1514
|
for (var P = (v = void 0, h(E.findMath(S))), q = P.next(); !q.done; q = P.next()) {
|
|
1515
1515
|
var C = q.value;
|
|
@@ -1527,8 +1527,8 @@ function xe() {
|
|
|
1527
1527
|
} else
|
|
1528
1528
|
try {
|
|
1529
1529
|
for (var nt = (l = void 0, h(E.findMath(g))), Z = nt.next(); !Z.done; Z = nt.next()) {
|
|
1530
|
-
var C = Z.value,
|
|
1531
|
-
k.push(
|
|
1530
|
+
var C = Z.value, Lt = new this.options.MathItem(C.math, E, C.display, C.start, C.end);
|
|
1531
|
+
k.push(Lt);
|
|
1532
1532
|
}
|
|
1533
1533
|
} catch (X) {
|
|
1534
1534
|
l = { error: X };
|
|
@@ -1545,7 +1545,7 @@ function xe() {
|
|
|
1545
1545
|
d = { error: X };
|
|
1546
1546
|
} finally {
|
|
1547
1547
|
try {
|
|
1548
|
-
D && !D.done && (T =
|
|
1548
|
+
D && !D.done && (T = L.return) && T.call(L);
|
|
1549
1549
|
} finally {
|
|
1550
1550
|
if (d) throw d.error;
|
|
1551
1551
|
}
|
|
@@ -1578,8 +1578,8 @@ function xe() {
|
|
|
1578
1578
|
var x, d;
|
|
1579
1579
|
if (_)
|
|
1580
1580
|
try {
|
|
1581
|
-
for (var T = h(this.adaptor.tags(p, "style")),
|
|
1582
|
-
var v =
|
|
1581
|
+
for (var T = h(this.adaptor.tags(p, "style")), b = T.next(); !b.done; b = T.next()) {
|
|
1582
|
+
var v = b.value;
|
|
1583
1583
|
if (this.adaptor.getAttribute(v, "id") === _)
|
|
1584
1584
|
return v;
|
|
1585
1585
|
}
|
|
@@ -1587,7 +1587,7 @@ function xe() {
|
|
|
1587
1587
|
x = { error: a };
|
|
1588
1588
|
} finally {
|
|
1589
1589
|
try {
|
|
1590
|
-
|
|
1590
|
+
b && !b.done && (d = T.return) && d.call(T);
|
|
1591
1591
|
} finally {
|
|
1592
1592
|
if (x) throw x.error;
|
|
1593
1593
|
}
|
|
@@ -1598,8 +1598,8 @@ function xe() {
|
|
|
1598
1598
|
if (p === void 0 && (p = !1), this.processed.isSet("updateDocument"))
|
|
1599
1599
|
try {
|
|
1600
1600
|
for (var d = h(this.math), T = d.next(); !T.done; T = d.next()) {
|
|
1601
|
-
var
|
|
1602
|
-
|
|
1601
|
+
var b = T.value;
|
|
1602
|
+
b.state() >= i.STATE.INSERTED && b.state(i.STATE.TYPESET, p);
|
|
1603
1603
|
}
|
|
1604
1604
|
} catch (v) {
|
|
1605
1605
|
_ = { error: v };
|