@pie-element/venn-classification 0.1.7-next.20261016234357 → 0.1.7
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/author/index.js +332 -332
- package/dist/author/index.js.map +1 -1
- package/dist/browser/{VennClassification-CsXLwEPr.js → VennClassification-BYEE2loD.js} +55 -55
- package/dist/browser/{VennClassification-CsXLwEPr.js.map → VennClassification-BYEE2loD.js.map} +1 -1
- package/dist/browser/author/index.js +3 -3
- package/dist/browser/controller/index.js +1 -1
- package/dist/browser/{editor-runtime/controller-CbhEQES0.js → controller-De5tttno.js} +2 -2
- package/dist/browser/{controller-CbhEQES0.js.map → controller-De5tttno.js.map} +1 -1
- package/dist/browser/delivery/index.js +3 -3
- package/dist/browser/editor-runtime/{VennClassification-CsXLwEPr.js → VennClassification-BYEE2loD.js} +55 -55
- package/dist/browser/editor-runtime/{VennClassification-CsXLwEPr.js.map → VennClassification-BYEE2loD.js.map} +1 -1
- package/dist/browser/editor-runtime/author/index.js +3 -3
- package/dist/browser/editor-runtime/controller/index.js +1 -1
- package/dist/browser/{controller-CbhEQES0.js → editor-runtime/controller-De5tttno.js} +2 -2
- package/dist/browser/editor-runtime/{controller-CbhEQES0.js.map → controller-De5tttno.js.map} +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +3 -3
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-DV8h7p1z.js → mathjax-DqXi3q4c-DS0E0Esn.js} +3 -3
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-DV8h7p1z.js.map → mathjax-DqXi3q4c-DS0E0Esn.js.map} +1 -1
- package/dist/browser/{mathjax-CptWnMbQ-DV8h7p1z.js → mathjax-DqXi3q4c-DS0E0Esn.js} +3 -3
- package/dist/browser/{mathjax-CptWnMbQ-DV8h7p1z.js.map → mathjax-DqXi3q4c-DS0E0Esn.js.map} +1 -1
- package/dist/delivery/index.js +332 -332
- package/dist/delivery/index.js.map +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/schemas/configuration.schema.json +1 -1
- package/dist/schemas/model.schema.json +1 -1
- package/dist/schemas/session.schema.json +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../VennClassification-
|
|
2
|
-
import { c as t } from "../controller-
|
|
1
|
+
import { t as e } from "../VennClassification-BYEE2loD.js";
|
|
2
|
+
import { c as t } from "../controller-De5tttno.js";
|
|
3
3
|
//#region ../../lib-svelte/delivery-events/dist/index2.js
|
|
4
4
|
function n(e) {
|
|
5
5
|
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
@@ -90,7 +90,7 @@ function o(e, t) {
|
|
|
90
90
|
//#region src/delivery/index.ts
|
|
91
91
|
var s = o(e, { isComplete: t }), c = Object.freeze({
|
|
92
92
|
name: "@pie-element/venn-classification",
|
|
93
|
-
version: "0.1.7
|
|
93
|
+
version: "0.1.7"
|
|
94
94
|
});
|
|
95
95
|
//#endregion
|
|
96
96
|
export { s as default, c as piePackage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as e, _ as t, b as n, c as r, g as i, u as a, v as o, x as s, y as c } from "./controller-
|
|
1
|
+
import { S as e, _ as t, b as n, c as r, g as i, u as a, v as o, x as s, y as c } from "./controller-De5tttno.js";
|
|
2
2
|
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/disclose-version.js
|
|
3
3
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
4
4
|
//#endregion
|
|
@@ -3804,7 +3804,7 @@ var Is;
|
|
|
3804
3804
|
function Ls() {
|
|
3805
3805
|
return Is;
|
|
3806
3806
|
}
|
|
3807
|
-
var Rs = import("./mathjax-
|
|
3807
|
+
var Rs = import("./mathjax-DqXi3q4c-DS0E0Esn.js");
|
|
3808
3808
|
Rs.catch(() => {});
|
|
3809
3809
|
async function zs(e, t) {
|
|
3810
3810
|
let { createMathJax: n } = await Rs;
|
|
@@ -4503,25 +4503,7 @@ function yl(e) {
|
|
|
4503
4503
|
function bl(e) {
|
|
4504
4504
|
for (let t of e.querySelectorAll("mjx-container")) yl(t);
|
|
4505
4505
|
}
|
|
4506
|
-
var xl =
|
|
4507
|
-
function wl(e, t) {
|
|
4508
|
-
if (typeof window > "u") return;
|
|
4509
|
-
let n = globalThis;
|
|
4510
|
-
n[Cl] ??= {
|
|
4511
|
-
logged: !1,
|
|
4512
|
-
conditions: []
|
|
4513
|
-
};
|
|
4514
|
-
let r = n[Cl];
|
|
4515
|
-
if (r.conditions.includes(e)) return;
|
|
4516
|
-
r.conditions.push(e);
|
|
4517
|
-
let i = `[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${xl}`;
|
|
4518
|
-
r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(Sl, { detail: {
|
|
4519
|
-
condition: e,
|
|
4520
|
-
message: i,
|
|
4521
|
-
docsUrl: xl
|
|
4522
|
-
} }));
|
|
4523
|
-
}
|
|
4524
|
-
var Tl = {
|
|
4506
|
+
var xl = {
|
|
4525
4507
|
parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
|
|
4526
4508
|
overarc: "\\overparen",
|
|
4527
4509
|
napprox: "\\not\\approx",
|
|
@@ -4529,36 +4511,54 @@ var Tl = {
|
|
|
4529
4511
|
abs: ["\\left|#1\\right|", 1],
|
|
4530
4512
|
perpendicular: "\\perp",
|
|
4531
4513
|
divide: "\\div"
|
|
4532
|
-
},
|
|
4514
|
+
}, Sl = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, Cl = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, wl = /\\embed\{newLine\}\[\]/g, Tl = [
|
|
4533
4515
|
["$$", "$$"],
|
|
4534
4516
|
["$", "$"],
|
|
4535
4517
|
["\\[", "\\]"],
|
|
4536
4518
|
["\\(", "\\)"]
|
|
4537
|
-
]
|
|
4519
|
+
];
|
|
4520
|
+
function El(e) {
|
|
4521
|
+
for (let [t, n] of Tl) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
|
|
4522
|
+
return e;
|
|
4523
|
+
}
|
|
4524
|
+
function Dl(e) {
|
|
4525
|
+
return `\\(${El(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e)}\\)`.replace(wl, "\\newline ");
|
|
4526
|
+
}
|
|
4527
|
+
var Ol = "mathjax_ignore", kl = "mathjax_process", Al = "https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page", jl = "pie-mathjax-version-conflict", Ml = Symbol.for("@pie-element/shared-math-rendering-mathjax/unsupported-page");
|
|
4528
|
+
function Nl(e, t) {
|
|
4529
|
+
if (typeof window > "u") return;
|
|
4530
|
+
let n = globalThis;
|
|
4531
|
+
n[Ml] ??= {
|
|
4532
|
+
logged: !1,
|
|
4533
|
+
conditions: []
|
|
4534
|
+
};
|
|
4535
|
+
let r = n[Ml];
|
|
4536
|
+
if (r.conditions.includes(e)) return;
|
|
4537
|
+
r.conditions.push(e);
|
|
4538
|
+
let i = `[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${Al}`;
|
|
4539
|
+
r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(jl, { detail: {
|
|
4540
|
+
condition: e,
|
|
4541
|
+
message: i,
|
|
4542
|
+
docsUrl: Al
|
|
4543
|
+
} }));
|
|
4544
|
+
}
|
|
4545
|
+
var Pl = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", Fl = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), Il = "MJX-CHTML-styles", Ll = "PIE-MJX-SVG-styles", Rl = "PIE-MathJax-Menu-Settings", zl = { "mjx-container[overflow=\"linebreak\"][display]": {
|
|
4538
4546
|
overflow: "auto clip",
|
|
4539
4547
|
"min-width": "initial !important"
|
|
4540
|
-
} },
|
|
4541
|
-
function
|
|
4548
|
+
} }, Bl = 200, Vl = 201, Hl = 202;
|
|
4549
|
+
function Ul(e) {
|
|
4542
4550
|
let t = [...e.matches("mjx-container") ? [e] : [], ...e.querySelectorAll("mjx-container")];
|
|
4543
4551
|
for (let e of t) for (let t of [e, ...e.querySelectorAll("[data-latex],[data-latex-item]")]) t.removeAttribute("data-latex"), t.removeAttribute("data-latex-item");
|
|
4544
4552
|
}
|
|
4545
|
-
function Bl(e) {
|
|
4546
|
-
for (let [t, n] of Al) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
|
|
4547
|
-
return e;
|
|
4548
|
-
}
|
|
4549
|
-
function Vl(e) {
|
|
4550
|
-
return Bl(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
|
|
4551
|
-
}
|
|
4552
|
-
var Hl = "mathjax_ignore", Ul = "mathjax_process";
|
|
4553
4553
|
function Wl(e, t) {
|
|
4554
|
-
let n = e.closest(`.${
|
|
4555
|
-
return n !== null && t.contains(n) && !n.classList.contains(
|
|
4554
|
+
let n = e.closest(`.${Ol}, .${kl}`);
|
|
4555
|
+
return n !== null && t.contains(n) && !n.classList.contains("mathjax_process");
|
|
4556
4556
|
}
|
|
4557
4557
|
function Gl(e) {
|
|
4558
4558
|
for (let t of e.querySelectorAll("[data-latex]")) {
|
|
4559
4559
|
if (t.dataset.mathHandled || t.closest("mjx-container") || Wl(t, e)) continue;
|
|
4560
4560
|
let n = t.textContent;
|
|
4561
|
-
n && (t.textContent =
|
|
4561
|
+
n && (t.textContent = Dl(n), t.dataset.mathHandled = "true");
|
|
4562
4562
|
}
|
|
4563
4563
|
}
|
|
4564
4564
|
function Kl(e) {
|
|
@@ -4566,7 +4566,7 @@ function Kl(e) {
|
|
|
4566
4566
|
}
|
|
4567
4567
|
function ql(e, t) {
|
|
4568
4568
|
for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
|
|
4569
|
-
return (t ?
|
|
4569
|
+
return (t ? Cl : Sl).test(e.textContent ?? "");
|
|
4570
4570
|
}
|
|
4571
4571
|
function Jl(e) {
|
|
4572
4572
|
return new Promise((t, n) => {
|
|
@@ -4583,10 +4583,10 @@ function Jl(e) {
|
|
|
4583
4583
|
typeset: !1,
|
|
4584
4584
|
ready: () => {
|
|
4585
4585
|
let e = Ls(), r = e?.startup, i = Yl(e);
|
|
4586
|
-
i && (Xl(e), Zl(e, s.speechLocales), ws(e?._?.a11y?.sre_ts?.locales, s.speechLocales)), r?.defaultReady?.(), i && (Ql(r?.document), $l(r?.document), r?.document?.addStyles?.(
|
|
4586
|
+
i && (Xl(e), Zl(e, s.speechLocales), ws(e?._?.a11y?.sre_ts?.locales, s.speechLocales)), r?.defaultReady?.(), i && (Ql(r?.document), $l(r?.document), r?.document?.addStyles?.(zl), Ms(r?.document)), Promise.resolve(r?.promise).then(() => t(), n);
|
|
4587
4587
|
}
|
|
4588
4588
|
},
|
|
4589
|
-
tex: { macros: { ...
|
|
4589
|
+
tex: { macros: { ...xl } },
|
|
4590
4590
|
output: { displayOverflow: "linebreak" },
|
|
4591
4591
|
options: {
|
|
4592
4592
|
enableMenu: i,
|
|
@@ -4598,7 +4598,7 @@ function Jl(e) {
|
|
|
4598
4598
|
a11y: { inTabOrder: c }
|
|
4599
4599
|
}
|
|
4600
4600
|
};
|
|
4601
|
-
r && l.tex && (console.warn(
|
|
4601
|
+
r && l.tex && (console.warn(Pl), l.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], l.tex.processEscapes = !0), a || (l.chtml = { fontURL: "" });
|
|
4602
4602
|
let u = Ts(s.speechLocales);
|
|
4603
4603
|
u && l.options && (l.options.sre = { locale: u }), zs(l, {
|
|
4604
4604
|
...s,
|
|
@@ -4615,18 +4615,18 @@ function Xl(e) {
|
|
|
4615
4615
|
let t = e?._?.output, n = t?.chtml_ts?.CHTML;
|
|
4616
4616
|
n && (n.STYLESHEETID = Ws);
|
|
4617
4617
|
let r = t?.svg_ts?.SVG;
|
|
4618
|
-
r && (r.STYLESHEETID =
|
|
4618
|
+
r && (r.STYLESHEETID = Ll);
|
|
4619
4619
|
}
|
|
4620
4620
|
function Zl(e, t) {
|
|
4621
4621
|
let n = e?._?.ui?.menu?.Menu?.Menu;
|
|
4622
4622
|
if (n) {
|
|
4623
|
-
n.MENU_STORAGE =
|
|
4623
|
+
n.MENU_STORAGE = Rl;
|
|
4624
4624
|
try {
|
|
4625
|
-
let e = localStorage.getItem(
|
|
4625
|
+
let e = localStorage.getItem(Rl);
|
|
4626
4626
|
if (!e) return;
|
|
4627
4627
|
let { assistiveMml: n, locale: r, ...i } = JSON.parse(e), a = r === void 0 || !t || t.has(r);
|
|
4628
4628
|
if (n === void 0 && a) return;
|
|
4629
|
-
a && r !== void 0 && (i.locale = r), Object.keys(i).length ? localStorage.setItem(
|
|
4629
|
+
a && r !== void 0 && (i.locale = r), Object.keys(i).length ? localStorage.setItem(Rl, JSON.stringify(i)) : localStorage.removeItem(Rl);
|
|
4630
4630
|
} catch {}
|
|
4631
4631
|
}
|
|
4632
4632
|
}
|
|
@@ -4634,23 +4634,23 @@ function Ql(e) {
|
|
|
4634
4634
|
if (!e) return;
|
|
4635
4635
|
let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
|
|
4636
4636
|
let n = e.typesetRoot;
|
|
4637
|
-
!n || t.has(n) || (
|
|
4637
|
+
!n || t.has(n) || (Ul(n), t.add(n));
|
|
4638
4638
|
};
|
|
4639
|
-
e.addRenderAction?.("pie-strip-latex",
|
|
4639
|
+
e.addRenderAction?.("pie-strip-latex", Vl, (e) => {
|
|
4640
4640
|
for (let t of e.math ?? []) n(t);
|
|
4641
4641
|
return !1;
|
|
4642
4642
|
}, (e) => {
|
|
4643
4643
|
let t = e.typesetRoot;
|
|
4644
|
-
return t &&
|
|
4644
|
+
return t && Ul(t), !1;
|
|
4645
4645
|
});
|
|
4646
4646
|
let r = e.outputJax?.chtmlStyles;
|
|
4647
|
-
r?.id ===
|
|
4647
|
+
r?.id === Il && (r.id = Ws), nu();
|
|
4648
4648
|
}
|
|
4649
4649
|
function $l(e) {
|
|
4650
4650
|
let t = (e) => {
|
|
4651
4651
|
e.typesetRoot && yl(e.typesetRoot);
|
|
4652
4652
|
};
|
|
4653
|
-
e?.addRenderAction?.("pie-name-math",
|
|
4653
|
+
e?.addRenderAction?.("pie-name-math", Hl, (e) => {
|
|
4654
4654
|
for (let n of e.math ?? []) t(n);
|
|
4655
4655
|
return !1;
|
|
4656
4656
|
}, (e) => (t(e), !1));
|
|
@@ -4659,7 +4659,7 @@ function eu(e) {
|
|
|
4659
4659
|
return e instanceof HTMLStyleElement && Gs.includes(e.id);
|
|
4660
4660
|
}
|
|
4661
4661
|
function tu(e) {
|
|
4662
|
-
|
|
4662
|
+
Nl("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
|
|
4663
4663
|
}
|
|
4664
4664
|
function nu() {
|
|
4665
4665
|
let e = document.head, t = [...e.children].find(eu);
|
|
@@ -4681,7 +4681,7 @@ function nu() {
|
|
|
4681
4681
|
function ru(e) {
|
|
4682
4682
|
let t = e?.math;
|
|
4683
4683
|
if (!t?.remove) return;
|
|
4684
|
-
let n = [...t].filter((e) => (e.state?.() ?? 0) >=
|
|
4684
|
+
let n = [...t].filter((e) => (e.state?.() ?? 0) >= Bl && e.typesetRoot?.isConnected === !1);
|
|
4685
4685
|
if (n.length !== 0) {
|
|
4686
4686
|
for (let e of [...n].reverse()) e.clear?.();
|
|
4687
4687
|
t.remove(...n);
|
|
@@ -4709,8 +4709,8 @@ function ou(e) {
|
|
|
4709
4709
|
});
|
|
4710
4710
|
}
|
|
4711
4711
|
function su(e) {
|
|
4712
|
-
let t = Bs, n = t[
|
|
4713
|
-
return n || (n = ou(e), t[
|
|
4712
|
+
let t = Bs, n = t[Fl];
|
|
4713
|
+
return n || (n = ou(e), t[Fl] = n), n;
|
|
4714
4714
|
}
|
|
4715
4715
|
function cu(e = {}) {
|
|
4716
4716
|
let t = e.useSingleDollar ?? !1;
|
|
@@ -4731,7 +4731,7 @@ function cu(e = {}) {
|
|
|
4731
4731
|
} catch (e) {
|
|
4732
4732
|
throw i.typesetClear?.([n]), e;
|
|
4733
4733
|
}
|
|
4734
|
-
|
|
4734
|
+
Ul(n), bl(n);
|
|
4735
4735
|
}
|
|
4736
4736
|
};
|
|
4737
4737
|
}
|
|
@@ -5855,4 +5855,4 @@ Cr(["focusout", "click"]), Bi(Fd, {
|
|
|
5855
5855
|
//#endregion
|
|
5856
5856
|
export { Cr as A, H as B, Zr as C, J as D, Vr as E, sn as F, Je as G, V as H, cn as I, re as J, Oe as K, ln as L, q as M, W as N, Pr as O, xn as P, U as R, Qr as S, Yr as T, z as U, Ut as V, Ye as W, gi as _, Os as a, ri as b, Bi as c, Ai as d, Ci as f, vi as g, wi as h, Ps as i, Sr as j, jr as k, X as l, Ti as m, Su as n, ls as o, Y as p, F as q, Fs as r, Ss as s, Fd as t, Mi as u, ui as v, Xr as w, $r as x, li as y, Zt as z };
|
|
5857
5857
|
|
|
5858
|
-
//# sourceMappingURL=VennClassification-
|
|
5858
|
+
//# sourceMappingURL=VennClassification-BYEE2loD.js.map
|