@pie-element/matrix 5.0.3 → 5.0.4-next.20261009061152
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/browser/{Radio-BRHK8FCI.js → Radio-DBfbnY_9.js} +3263 -3263
- package/dist/browser/Radio-DBfbnY_9.js.map +1 -0
- package/dist/browser/author/index.js +14 -14
- package/dist/browser/delivery/index.js +2 -2
- package/dist/browser/editor-runtime/{Radio-DqZH96xq.js → Radio-CvVmVk60.js} +3263 -3263
- package/dist/browser/editor-runtime/Radio-CvVmVk60.js.map +1 -0
- package/dist/browser/editor-runtime/author/index.js +10 -10
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +2 -2
- package/dist/browser/{mathjax-BKrHE4xs-DMJdB93L.js → editor-runtime/mathjax-CptWnMbQ-BymmkoDr.js} +21 -21
- package/dist/browser/editor-runtime/{mathjax-BKrHE4xs-olIoaCQN.js.map → mathjax-CptWnMbQ-BymmkoDr.js.map} +1 -1
- package/dist/browser/{speech-worker-CP5P4gRS-G4rtBs8u.js → editor-runtime/speech-worker-CTpOB9m5-pwCKeQ9c.js} +46 -43
- package/dist/browser/editor-runtime/speech-worker-CTpOB9m5-pwCKeQ9c.js.map +1 -0
- package/dist/browser/{editor-runtime/mathjax-BKrHE4xs-olIoaCQN.js → mathjax-CptWnMbQ-ncPHVakS.js} +25 -25
- package/dist/browser/{mathjax-BKrHE4xs-DMJdB93L.js.map → mathjax-CptWnMbQ-ncPHVakS.js.map} +1 -1
- package/dist/browser/{editor-runtime/speech-worker-CP5P4gRS-OkQyXQak.js → speech-worker-CTpOB9m5-BIgcSm3A.js} +20 -17
- package/dist/browser/speech-worker-CTpOB9m5-BIgcSm3A.js.map +1 -0
- package/dist/index.iife.js +55 -55
- package/package.json +10 -10
- package/dist/browser/Radio-BRHK8FCI.js.map +0 -1
- package/dist/browser/editor-runtime/Radio-DqZH96xq.js.map +0 -1
- package/dist/browser/editor-runtime/speech-worker-CP5P4gRS-OkQyXQak.js.map +0 -1
- package/dist/browser/speech-worker-CP5P4gRS-G4rtBs8u.js.map +0 -1
|
@@ -24,11 +24,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
24
24
|
enumerable: !(s = n(i, d)) || s.enumerable
|
|
25
25
|
});
|
|
26
26
|
return e;
|
|
27
|
-
}, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
|
|
27
|
+
}, l = (e, t, n) => (c(e, t, "default"), n && c(n, t, "default")), u = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
|
|
28
28
|
value: n,
|
|
29
29
|
enumerable: !0
|
|
30
|
-
}) : a, n)),
|
|
31
|
-
function
|
|
30
|
+
}) : a, n)), d = __pieBrowserCjsRequire, f = "4.1.3", p = "https://github.com/pie-framework/pie-elements-ng/blob/develop/docs/MATH-RENDERING.md#assets", m = "@pie-lib/math-rendering@2", h = ["nemeth", "euro"], g = `mathjax@${f}/sre`, _ = /^[^@]+@[^@]+$/;
|
|
31
|
+
function v(e) {
|
|
32
32
|
if (!e) return;
|
|
33
33
|
let t;
|
|
34
34
|
try {
|
|
@@ -41,16 +41,19 @@ function _(e) {
|
|
|
41
41
|
for (let e = n.length - 1; e > 0; e--) {
|
|
42
42
|
let r = n[e];
|
|
43
43
|
if (r === "node_modules") return;
|
|
44
|
-
if (!
|
|
44
|
+
if (!_.test(r)) continue;
|
|
45
45
|
let i = n[e - 1]?.startsWith("@") ? e - 1 : e;
|
|
46
46
|
return t.origin + n.slice(0, i).join("/");
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
let e = globalThis[
|
|
49
|
+
function y() {
|
|
50
|
+
let e = globalThis[m]?.opts;
|
|
51
51
|
return e && typeof e == "object" ? e : {};
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function b() {
|
|
54
|
+
return y().inTabOrder === !0;
|
|
55
|
+
}
|
|
56
|
+
function x(e) {
|
|
54
57
|
if (typeof e != "string" || !e) return;
|
|
55
58
|
let t = typeof document > "u" ? void 0 : document.baseURI;
|
|
56
59
|
try {
|
|
@@ -59,90 +62,90 @@ function y(e) {
|
|
|
59
62
|
return;
|
|
60
63
|
}
|
|
61
64
|
}
|
|
62
|
-
function
|
|
65
|
+
function S(e) {
|
|
63
66
|
if (!e || typeof e != "object") return;
|
|
64
67
|
let t = /* @__PURE__ */ new Map();
|
|
65
68
|
for (let [n, r] of Object.entries(e)) {
|
|
66
|
-
let e =
|
|
69
|
+
let e = x(r);
|
|
67
70
|
e && t.set(n, e);
|
|
68
71
|
}
|
|
69
72
|
return t.size ? t : void 0;
|
|
70
73
|
}
|
|
71
|
-
function
|
|
74
|
+
function C(e) {
|
|
72
75
|
if (Array.isArray(e)) return new Map(e.filter((e) => typeof e == "string").map((e) => [e, void 0]));
|
|
73
76
|
if (e && typeof e == "object") return new Map(Object.entries(e).map(([e, t]) => [e, typeof t == "string" ? t : void 0]));
|
|
74
77
|
}
|
|
75
|
-
function
|
|
76
|
-
let n =
|
|
78
|
+
function w(e, t) {
|
|
79
|
+
let n = y(), r = x(e.assetRoot ?? n.assetRoot) ?? v(t);
|
|
77
80
|
return {
|
|
78
81
|
root: r,
|
|
79
|
-
speechPath:
|
|
80
|
-
speechLocales:
|
|
81
|
-
urls:
|
|
82
|
+
speechPath: x(e.speechPath ?? n.speechPath) ?? (r ? `${r}/${g}` : void 0),
|
|
83
|
+
speechLocales: C(e.speechLocales ?? n.speechLocales),
|
|
84
|
+
urls: S(e.assetUrls ?? n.assetUrls)
|
|
82
85
|
};
|
|
83
86
|
}
|
|
84
|
-
function
|
|
87
|
+
function T({ root: e, urls: t }, n) {
|
|
85
88
|
return t?.get(n) ?? (e ? `${e}/${n}` : void 0);
|
|
86
89
|
}
|
|
87
|
-
function
|
|
88
|
-
return t?.get(`${
|
|
90
|
+
function E({ speechPath: e, urls: t }, n) {
|
|
91
|
+
return t?.get(`${g}/${n}`) ?? (e ? `${e}/${n}` : void 0);
|
|
89
92
|
}
|
|
90
|
-
function
|
|
93
|
+
function D(e, t) {
|
|
91
94
|
if (!(!e || !t)) {
|
|
92
|
-
for (let n of [...e.keys()]) !t.has(n) && !
|
|
95
|
+
for (let n of [...e.keys()]) !t.has(n) && !h.includes(n) && e.delete(n);
|
|
93
96
|
for (let [n, r] of t) (r || !e.has(n)) && e.set(n, r ?? n);
|
|
94
97
|
}
|
|
95
98
|
}
|
|
96
|
-
function
|
|
97
|
-
if (!(!e || e.has("en"))) return [...e.keys()].find((e) => !
|
|
99
|
+
function O(e) {
|
|
100
|
+
if (!(!e || e.has("en"))) return [...e.keys()].find((e) => !h.includes(e));
|
|
98
101
|
}
|
|
99
|
-
var
|
|
102
|
+
var k = {
|
|
100
103
|
untypeset: "no MathJax loads, so math stays untypeset",
|
|
101
104
|
"no-web-fonts": "math renders without web fonts",
|
|
102
105
|
"no-web-fonts-or-speech": "math renders without web fonts and speech"
|
|
103
|
-
},
|
|
104
|
-
function
|
|
106
|
+
}, A = Symbol.for("@pie-element/shared-math-rendering-mathjax/no-assets");
|
|
107
|
+
function j(e) {
|
|
105
108
|
let t = globalThis;
|
|
106
|
-
t[
|
|
107
|
-
let n = t[
|
|
109
|
+
t[A] ??= [];
|
|
110
|
+
let n = t[A];
|
|
108
111
|
if (n.includes(e)) return;
|
|
109
112
|
n.push(e);
|
|
110
|
-
let r = `[math-rendering] No asset root for MathJax: ${
|
|
113
|
+
let r = `[math-rendering] No asset root for MathJax: ${k[e]}. Set window['${m}'].opts.assetRoot to an npm root. See ${p}`;
|
|
111
114
|
e === "untypeset" ? console.error(r) : console.warn(r), !(typeof window > "u") && window.dispatchEvent(new CustomEvent("pie-mathjax-no-asset-root", { detail: {
|
|
112
115
|
effect: e,
|
|
113
116
|
message: r,
|
|
114
|
-
docsUrl:
|
|
117
|
+
docsUrl: p
|
|
115
118
|
} }));
|
|
116
119
|
}
|
|
117
|
-
var
|
|
118
|
-
function
|
|
120
|
+
var M = Symbol.for("@pie-element/shared-math-rendering-mathjax/speech-worker-failed");
|
|
121
|
+
function N() {
|
|
119
122
|
let e = globalThis;
|
|
120
|
-
e[
|
|
123
|
+
e[M] || (e[M] = !0, console.warn(`[math-rendering] MathJax's speech worker did not start, so speech, braille and the explorer are off. A content security policy must allow blob: workers, and scripts and fetches from the asset root. See ${p}`));
|
|
121
124
|
}
|
|
122
|
-
function
|
|
125
|
+
function P(e) {
|
|
123
126
|
let t = e.webworker;
|
|
124
127
|
if (!t || t.ready) return;
|
|
125
128
|
e.options ??= {};
|
|
126
129
|
let n = e.options;
|
|
127
|
-
n.enableSpeech = !1, n.enableBraille = !1, n.speechError = () => {}, t.Post = () => Promise.reject(/* @__PURE__ */ Error("The speech worker did not start")), t.Terminate(),
|
|
130
|
+
n.enableSpeech = !1, n.enableBraille = !1, n.speechError = () => {}, t.Post = () => Promise.reject(/* @__PURE__ */ Error("The speech worker did not start")), t.Terminate(), N();
|
|
128
131
|
}
|
|
129
|
-
function
|
|
132
|
+
function F(e) {
|
|
130
133
|
let t = e?.adaptor, n = t?.createWorker;
|
|
131
134
|
!e || !t || !n || (t.createWorker = async (r, i) => {
|
|
132
135
|
let a = await n.call(t, r, i);
|
|
133
|
-
return a.addEventListener("error", () =>
|
|
136
|
+
return a.addEventListener("error", () => P(e), { once: !0 }), a;
|
|
134
137
|
});
|
|
135
138
|
}
|
|
136
|
-
var
|
|
137
|
-
function
|
|
138
|
-
let t =
|
|
139
|
+
var I = `${g}/mathmaps/`;
|
|
140
|
+
function L(e) {
|
|
141
|
+
let t = E(e, "speech-worker.js");
|
|
139
142
|
if (!t) return;
|
|
140
143
|
let n = e.speechPath ? `${e.speechPath}/mathmaps` : "mathmaps", r = {};
|
|
141
|
-
for (let [t, i] of e.urls ?? []) t.startsWith(
|
|
144
|
+
for (let [t, i] of e.urls ?? []) t.startsWith(I) && (r[`${n}/${t.slice(I.length)}`] = i);
|
|
142
145
|
let i = [`self.maps = ${JSON.stringify(n)};`];
|
|
143
146
|
return Object.keys(r).length && i.push("{", ` const urls = new Map(Object.entries(${JSON.stringify(r)}));`, " const fetchFile = self.fetch.bind(self);", " self.fetch = (input, init) => fetchFile(urls.get(input) ?? input, init);", "}"), i.push(`importScripts(${JSON.stringify(t)});`), i.join("\n");
|
|
144
147
|
}
|
|
145
|
-
function
|
|
148
|
+
function R(e, t) {
|
|
146
149
|
let n = URL.createObjectURL(new Blob([e], { type: "text/javascript" }));
|
|
147
150
|
try {
|
|
148
151
|
let e = new Worker(n);
|
|
@@ -152,6 +155,6 @@ function I(e, t) {
|
|
|
152
155
|
}
|
|
153
156
|
}
|
|
154
157
|
//#endregion
|
|
155
|
-
export {
|
|
158
|
+
export { f as a, D as c, o as d, s as f, u as h, b as i, T as l, d as m, L as n, w as o, l as p, j as r, O as s, R as t, F as u };
|
|
156
159
|
|
|
157
|
-
//# sourceMappingURL=speech-worker-
|
|
160
|
+
//# sourceMappingURL=speech-worker-CTpOB9m5-pwCKeQ9c.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"speech-worker-CTpOB9m5-pwCKeQ9c.js","names":[],"sources":["../../../../../shared/math-rendering-mathjax/dist/browser/speech-worker-CTpOB9m5.js"],"sourcesContent":["//#region src/assets.ts\nvar e = \"4.1.3\", t = \"https://github.com/pie-framework/pie-elements-ng/blob/develop/docs/MATH-RENDERING.md#assets\", n = \"@pie-lib/math-rendering@2\", r = [\"nemeth\", \"euro\"], i = `mathjax@${e}/sre`, a = /^[^@]+@[^@]+$/;\nfunction o(e) {\n\tif (!e) return;\n\tlet t;\n\ttry {\n\t\tt = new URL(e);\n\t} catch {\n\t\treturn;\n\t}\n\tif (t.origin === \"null\") return;\n\tlet n = t.pathname.split(\"/\");\n\tfor (let e = n.length - 1; e > 0; e--) {\n\t\tlet r = n[e];\n\t\tif (r === \"node_modules\") return;\n\t\tif (!a.test(r)) continue;\n\t\tlet i = n[e - 1]?.startsWith(\"@\") ? e - 1 : e;\n\t\treturn t.origin + n.slice(0, i).join(\"/\");\n\t}\n}\nfunction s() {\n\tlet e = globalThis[n]?.opts;\n\treturn e && typeof e == \"object\" ? e : {};\n}\nfunction c() {\n\treturn s().inTabOrder === !0;\n}\nfunction l(e) {\n\tif (typeof e != \"string\" || !e) return;\n\tlet t = typeof document > \"u\" ? void 0 : document.baseURI;\n\ttry {\n\t\treturn new URL(e, t).href.replace(/\\/+$/, \"\");\n\t} catch {\n\t\treturn;\n\t}\n}\nfunction u(e) {\n\tif (!e || typeof e != \"object\") return;\n\tlet t = /* @__PURE__ */ new Map();\n\tfor (let [n, r] of Object.entries(e)) {\n\t\tlet e = l(r);\n\t\te && t.set(n, e);\n\t}\n\treturn t.size ? t : void 0;\n}\nfunction d(e) {\n\tif (Array.isArray(e)) return new Map(e.filter((e) => typeof e == \"string\").map((e) => [e, void 0]));\n\tif (e && typeof e == \"object\") return new Map(Object.entries(e).map(([e, t]) => [e, typeof t == \"string\" ? t : void 0]));\n}\nfunction f(e, t) {\n\tlet n = s(), r = l(e.assetRoot ?? n.assetRoot) ?? o(t);\n\treturn {\n\t\troot: r,\n\t\tspeechPath: l(e.speechPath ?? n.speechPath) ?? (r ? `${r}/${i}` : void 0),\n\t\tspeechLocales: d(e.speechLocales ?? n.speechLocales),\n\t\turls: u(e.assetUrls ?? n.assetUrls)\n\t};\n}\nfunction p({ root: e, urls: t }, n) {\n\treturn t?.get(n) ?? (e ? `${e}/${n}` : void 0);\n}\nfunction m({ speechPath: e, urls: t }, n) {\n\treturn t?.get(`${i}/${n}`) ?? (e ? `${e}/${n}` : void 0);\n}\nfunction h(e, t) {\n\tif (!(!e || !t)) {\n\t\tfor (let n of [...e.keys()]) !t.has(n) && !r.includes(n) && e.delete(n);\n\t\tfor (let [n, r] of t) (r || !e.has(n)) && e.set(n, r ?? n);\n\t}\n}\nfunction g(e) {\n\tif (!(!e || e.has(\"en\"))) return [...e.keys()].find((e) => !r.includes(e));\n}\nvar _ = \"pie-mathjax-no-asset-root\", v = {\n\tuntypeset: \"no MathJax loads, so math stays untypeset\",\n\t\"no-web-fonts\": \"math renders without web fonts\",\n\t\"no-web-fonts-or-speech\": \"math renders without web fonts and speech\"\n}, y = Symbol.for(\"@pie-element/shared-math-rendering-mathjax/no-assets\");\nfunction b(e) {\n\tlet r = globalThis;\n\tr[y] ??= [];\n\tlet i = r[y];\n\tif (i.includes(e)) return;\n\ti.push(e);\n\tlet a = `[math-rendering] No asset root for MathJax: ${v[e]}. Set window['${n}'].opts.assetRoot to an npm root. See ${t}`;\n\te === \"untypeset\" ? console.error(a) : console.warn(a), !(typeof window > \"u\") && window.dispatchEvent(new CustomEvent(_, { detail: {\n\t\teffect: e,\n\t\tmessage: a,\n\t\tdocsUrl: t\n\t} }));\n}\n//#endregion\n//#region src/speech-worker.ts\nvar x = Symbol.for(\"@pie-element/shared-math-rendering-mathjax/speech-worker-failed\");\nfunction S() {\n\tlet e = globalThis;\n\te[x] || (e[x] = !0, console.warn(`[math-rendering] MathJax's speech worker did not start, so speech, braille and the explorer are off. A content security policy must allow blob: workers, and scripts and fetches from the asset root. See ${t}`));\n}\nfunction C(e) {\n\tlet t = e.webworker;\n\tif (!t || t.ready) return;\n\te.options ??= {};\n\tlet n = e.options;\n\tn.enableSpeech = !1, n.enableBraille = !1, n.speechError = () => {}, t.Post = () => Promise.reject(/* @__PURE__ */ Error(\"The speech worker did not start\")), t.Terminate(), S();\n}\nfunction w(e) {\n\tlet t = e?.adaptor, n = t?.createWorker;\n\t!e || !t || !n || (t.createWorker = async (r, i) => {\n\t\tlet a = await n.call(t, r, i);\n\t\treturn a.addEventListener(\"error\", () => C(e), { once: !0 }), a;\n\t});\n}\nvar T = `${i}/mathmaps/`;\nfunction E(e) {\n\tlet t = m(e, \"speech-worker.js\");\n\tif (!t) return;\n\tlet n = e.speechPath ? `${e.speechPath}/mathmaps` : \"mathmaps\", r = {};\n\tfor (let [t, i] of e.urls ?? []) t.startsWith(T) && (r[`${n}/${t.slice(T.length)}`] = i);\n\tlet i = [`self.maps = ${JSON.stringify(n)};`];\n\treturn Object.keys(r).length && i.push(\"{\", ` const urls = new Map(Object.entries(${JSON.stringify(r)}));`, \" const fetchFile = self.fetch.bind(self);\", \" self.fetch = (input, init) => fetchFile(urls.get(input) ?? input, init);\", \"}\"), i.push(`importScripts(${JSON.stringify(t)});`), i.join(\"\\n\");\n}\nfunction D(e, t) {\n\tlet n = URL.createObjectURL(new Blob([e], { type: \"text/javascript\" }));\n\ttry {\n\t\tlet e = new Worker(n);\n\t\treturn e.onmessage = t, e;\n\t} finally {\n\t\tURL.revokeObjectURL(n);\n\t}\n}\n//#endregion\nexport { _ as a, h as c, f as d, e as i, c as l, E as n, p as o, D as r, g as s, w as t, b as u };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;IACI,IAAI,SAAS,IAAI,+FAA+F,IAAI,6BAA6B,IAAI,CAAC,UAAU,MAAM,GAAG,IAAI,WAAW,EAAE,OAAO,IAAI;AACzM,SAAS,EAAE,GAAG;CACb,IAAI,CAAC,GAAG;CACR,IAAI;CACJ,IAAI;EACH,IAAI,IAAI,IAAI,CAAC;CACd,QAAQ;EACP;CACD;CACA,IAAI,EAAE,WAAW,QAAQ;CACzB,IAAI,IAAI,EAAE,SAAS,MAAM,GAAG;CAC5B,KAAK,IAAI,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,KAAK;EACtC,IAAI,IAAI,EAAE;EACV,IAAI,MAAM,gBAAgB;EAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,GAAG;EAChB,IAAI,IAAI,EAAE,IAAI,EAAE,EAAE,WAAW,GAAG,IAAI,IAAI,IAAI;EAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG;CACzC;AACD;AACA,SAAS,IAAI;CACZ,IAAI,IAAI,WAAW,EAAE,EAAE;CACvB,OAAO,KAAK,OAAO,KA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,CAAC,CAAC,CAAC,UAAU,EAAE,KAAK,KAAK,yCAAyC,KAAK,UAAU,CAAC,EAAE,MAAM,8CAA8C,8EAA8E,GAAG,GAAG,EAAE,KAAK,iBAAiB,KAAK,UAAU,CAAC,EAAE,GAAG,GAAG,EAAE,KAAK,IAAI;AAC3S;AACA,SAAS,EAAE,GAAG,GAAG;CAChB,IAAI,IAAI,IAAI,gBAAgB,IAAI,KAAK,CAAC,CAAC,GAAG,EAAE,MAAM,kBAAkB,CAAC,CAAC;CACtE,IAAI;EACH,IAAI,IAAI,IAAI,OAAO,CAAC;EACpB,OAAO,EAAE,YAAY,GAAG;CACzB,UAAU;EACT,IAAI,gBAAgB,CAAC;CACtB;AACD"}
|
package/dist/browser/{editor-runtime/mathjax-BKrHE4xs-olIoaCQN.js → mathjax-CptWnMbQ-ncPHVakS.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as e, l as t, n,
|
|
1
|
+
import { a as e, l as t, n, p as r, r as i, t as a } from "./speech-worker-CTpOB9m5-BIgcSm3A.js";
|
|
2
2
|
import { A as o, C as s, D as c, E as l, O as u, S as d, T as f, _ as p, a as m, b as h, c as g, d as _, f as ee, g as v, h as y, i as b, j as te, k as ne, l as x, m as re, n as ie, o as S, p as ae, s as oe, t as se, u as ce, v as le, w as ue, x as de, y as fe } from "./chtml-CbqemTOM-x0_YISTK.js";
|
|
3
|
-
//#region ../../shared/math-rendering-mathjax/dist/browser/mathjax-
|
|
3
|
+
//#region ../../shared/math-rendering-mathjax/dist/browser/mathjax-CptWnMbQ.js
|
|
4
4
|
var pe = Object.create, me = Object.defineProperty, he = Object.getOwnPropertyDescriptor, ge = Object.getOwnPropertyNames, _e = Object.getPrototypeOf, C = Object.prototype.hasOwnProperty, ve = (e, t, n) => () => {
|
|
5
5
|
if (n) throw n[0];
|
|
6
6
|
try {
|
|
@@ -24,8 +24,8 @@ var pe = Object.create, me = Object.defineProperty, he = Object.getOwnPropertyDe
|
|
|
24
24
|
}, Se = (e, t, n) => (n = e == null ? {} : pe(_e(e)), xe(t || !e || !e.__esModule ? me(n, "default", {
|
|
25
25
|
value: e,
|
|
26
26
|
enumerable: !0
|
|
27
|
-
}) : n, e)), Ce = /* @__PURE__ */ ((e) => typeof
|
|
28
|
-
if (typeof
|
|
27
|
+
}) : n, e)), Ce = /* @__PURE__ */ ((e) => typeof r < "u" ? r : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof r < "u" ? r : e)[t] }) : e)(function(e) {
|
|
28
|
+
if (typeof r < "u") return r.apply(this, arguments);
|
|
29
29
|
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
30
30
|
});
|
|
31
31
|
function we(e, t, n, r, i, a, o = null) {
|
|
@@ -36599,24 +36599,24 @@ function W_(t) {
|
|
|
36599
36599
|
}
|
|
36600
36600
|
var G_ = ["mathjax-newcm-font", "mathjax-mhchem-font-extension"].map(W_), K_ = /%%URL%%\/([^"')]+)/g;
|
|
36601
36601
|
function q_(e) {
|
|
36602
|
-
let
|
|
36603
|
-
H_ = !!
|
|
36604
|
-
let
|
|
36605
|
-
se.addFontURLs = (
|
|
36606
|
-
if (!G_.includes(
|
|
36607
|
-
for (let [
|
|
36608
|
-
let
|
|
36609
|
-
let o =
|
|
36610
|
-
return o || (
|
|
36602
|
+
let r = n(e);
|
|
36603
|
+
H_ = !!r;
|
|
36604
|
+
let a = se.addFontURLs.bind(se);
|
|
36605
|
+
se.addFontURLs = (n, r, i) => {
|
|
36606
|
+
if (!G_.includes(i)) return a(n, r, i);
|
|
36607
|
+
for (let [a, o] of Object.entries(r)) {
|
|
36608
|
+
let r = !0, s = String(o.src).replace(K_, (n, a) => {
|
|
36609
|
+
let o = t(e, `${i}/${a}`);
|
|
36610
|
+
return o || (r = !1), o ?? "";
|
|
36611
36611
|
});
|
|
36612
|
-
|
|
36612
|
+
r && (n[a] = {
|
|
36613
36613
|
...o,
|
|
36614
36614
|
src: s
|
|
36615
36615
|
});
|
|
36616
36616
|
}
|
|
36617
36617
|
};
|
|
36618
36618
|
let o = [...e.urls?.keys() ?? []];
|
|
36619
|
-
return e.root || o.some((e) => G_.some((t) => e.startsWith(`${t}/`))) ||
|
|
36619
|
+
return e.root || o.some((e) => G_.some((t) => e.startsWith(`${t}/`))) || i(H_ ? "no-web-fonts" : "no-web-fonts-or-speech"), r;
|
|
36620
36620
|
}
|
|
36621
36621
|
function J_() {
|
|
36622
36622
|
return new Promise((e) => {
|
|
@@ -36630,16 +36630,16 @@ function J_() {
|
|
|
36630
36630
|
function Y_(e) {
|
|
36631
36631
|
for (let [t, n] of Object.entries(Oc)) (n === kc || n.prototype instanceof kc) && Object.defineProperty(n, "sheetId", { value: `PIE-MJX-${t}-styles-${e}` });
|
|
36632
36632
|
}
|
|
36633
|
-
function X_(e, t,
|
|
36633
|
+
function X_(e, t, n) {
|
|
36634
36634
|
if (Cm.startup) throw Error("[math-rendering] The bundled MathJax starts once");
|
|
36635
|
-
z_(e), de.asyncLoad = V_, Y_(
|
|
36636
|
-
let
|
|
36635
|
+
z_(e), de.asyncLoad = V_, Y_(n);
|
|
36636
|
+
let r = q_(t), i = e.loader?.load?.includes("a11y/assistive-mml") ?? !1;
|
|
36637
36637
|
Cm.config = e, Cm._ = {
|
|
36638
36638
|
a11y: {
|
|
36639
36639
|
explorer: { Region: Oc },
|
|
36640
36640
|
explorer_ts: gl,
|
|
36641
36641
|
sre_ts: Js,
|
|
36642
|
-
...
|
|
36642
|
+
...i ? { "assistive-mml": qt } : {}
|
|
36643
36643
|
},
|
|
36644
36644
|
output: { chtml_ts: { CHTML: ym } },
|
|
36645
36645
|
ui: { menu: { Menu: { Menu: Ah } } }
|
|
@@ -36657,20 +36657,20 @@ function X_(e, t, r) {
|
|
|
36657
36657
|
let t = new of({
|
|
36658
36658
|
packages: I_,
|
|
36659
36659
|
...e.tex
|
|
36660
|
-
}),
|
|
36660
|
+
}), n = new lu(), l = new ym(Sm({ chtml: { ...e.chtml } }, "chtml", {
|
|
36661
36661
|
...e.output,
|
|
36662
36662
|
fontData: se,
|
|
36663
36663
|
fontURL: W_("mathjax-newcm-font")
|
|
36664
36664
|
})), u = Dl();
|
|
36665
|
-
|
|
36665
|
+
r && (u.createWorker = async (e) => a(r, e));
|
|
36666
36666
|
let d = new Ql(u, 5);
|
|
36667
|
-
d = oc(d, new lu({ allowHtmlInTokenNodes: !0 })), d = Dc(d, null), d = bl(d),
|
|
36667
|
+
d = oc(d, new lu({ allowHtmlInTokenNodes: !0 })), d = Dc(d, null), d = bl(d), i && (d = Zt(d)), d = Yh(d), de.handlers.register(d);
|
|
36668
36668
|
let f = { ...e.options };
|
|
36669
|
-
|
|
36669
|
+
r || (f.enableEnrichment = !1);
|
|
36670
36670
|
let p = de.document(document, {
|
|
36671
36671
|
...f,
|
|
36672
36672
|
MenuClass: U_,
|
|
36673
|
-
InputJax: [t,
|
|
36673
|
+
InputJax: [t, n],
|
|
36674
36674
|
OutputJax: l
|
|
36675
36675
|
});
|
|
36676
36676
|
c.document = p, J_().then(() => p.menu?.loadingPromise).then(o, s);
|
|
@@ -36689,4 +36689,4 @@ function X_(e, t, r) {
|
|
|
36689
36689
|
//#endregion
|
|
36690
36690
|
export { I_ as TEX_PACKAGES, X_ as createMathJax };
|
|
36691
36691
|
|
|
36692
|
-
//# sourceMappingURL=mathjax-
|
|
36692
|
+
//# sourceMappingURL=mathjax-CptWnMbQ-ncPHVakS.js.map
|