@pie-element/venn-classification 0.1.1-next.17 → 0.1.1-next.19
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 +81 -44
- package/dist/author/index.js.map +1 -1
- package/dist/browser/{VennClassification-DrP-zXoc.js → VennClassification-Dh-jgyW3.js} +204 -172
- package/dist/browser/{VennClassification-DrP-zXoc.js.map → VennClassification-Dh-jgyW3.js.map} +1 -1
- package/dist/browser/author/index.js +2 -1
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/editor-runtime/{VennClassification-DrP-zXoc.js → VennClassification-Dh-jgyW3.js} +204 -172
- package/dist/browser/editor-runtime/{VennClassification-DrP-zXoc.js.map → VennClassification-Dh-jgyW3.js.map} +1 -1
- package/dist/browser/editor-runtime/author/index.js +2 -1
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +1 -1
- package/dist/delivery/index.js +80 -44
- package/dist/delivery/index.js.map +1 -1
- package/dist/index.iife.js +4 -4
- package/package.json +1 -1
package/dist/author/index.js
CHANGED
|
@@ -32139,6 +32139,7 @@ function EditableHtml$1($$anchor, $$props) {
|
|
|
32139
32139
|
return {
|
|
32140
32140
|
role: "textbox",
|
|
32141
32141
|
"aria-multiline": "true",
|
|
32142
|
+
class: "mathjax_ignore",
|
|
32142
32143
|
...$$props.ariaLabel ? { "aria-label": $$props.ariaLabel } : {}
|
|
32143
32144
|
};
|
|
32144
32145
|
}
|
|
@@ -35170,22 +35171,30 @@ function v() {
|
|
|
35170
35171
|
return window.MathJax;
|
|
35171
35172
|
}
|
|
35172
35173
|
function y(e) {
|
|
35173
|
-
let t
|
|
35174
|
-
|
|
35175
|
-
return t;
|
|
35174
|
+
for (let [t, n] of d) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
|
|
35175
|
+
return e;
|
|
35176
35176
|
}
|
|
35177
35177
|
function b(e) {
|
|
35178
|
+
return y(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
|
|
35179
|
+
}
|
|
35180
|
+
var x = "mathjax_ignore";
|
|
35181
|
+
var S = "mathjax_process";
|
|
35182
|
+
function C(e, t) {
|
|
35183
|
+
let n = e.closest(`.${x}, .${S}`);
|
|
35184
|
+
return n !== null && t.contains(n) && !n.classList.contains(S);
|
|
35185
|
+
}
|
|
35186
|
+
function w(e) {
|
|
35178
35187
|
for (let t of e.querySelectorAll("[data-latex]")) {
|
|
35179
|
-
if (t.dataset.mathHandled || t.closest("mjx-container")) continue;
|
|
35180
|
-
let
|
|
35181
|
-
|
|
35188
|
+
if (t.dataset.mathHandled || t.closest("mjx-container") || C(t, e)) continue;
|
|
35189
|
+
let n = t.textContent;
|
|
35190
|
+
n && (t.textContent = `\\(${b(n)}\\)`.replace(u, "\\newline "), t.dataset.mathHandled = "true");
|
|
35182
35191
|
}
|
|
35183
35192
|
}
|
|
35184
|
-
function
|
|
35193
|
+
function T(e, t) {
|
|
35185
35194
|
for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
|
|
35186
35195
|
return (t ? l : c).test(e.textContent ?? "");
|
|
35187
35196
|
}
|
|
35188
|
-
function
|
|
35197
|
+
function E(e) {
|
|
35189
35198
|
return new Promise((t, n) => {
|
|
35190
35199
|
let { useSingleDollar: r = !1, accessibility: i = !0, loadFonts: c = !0, srcUrl: l } = e, u = {
|
|
35191
35200
|
loader: {
|
|
@@ -35196,7 +35205,7 @@ function S(e) {
|
|
|
35196
35205
|
typeset: !1,
|
|
35197
35206
|
ready: () => {
|
|
35198
35207
|
let e = v(), r = e?.startup, i = !!e?.version?.startsWith("4.");
|
|
35199
|
-
i &&
|
|
35208
|
+
i && D(e), r?.defaultReady?.(), i && O(r?.document), Promise.resolve(r?.promise).then(() => t(), n);
|
|
35200
35209
|
}
|
|
35201
35210
|
},
|
|
35202
35211
|
tex: { macros: { ...o } },
|
|
@@ -35214,11 +35223,11 @@ function S(e) {
|
|
|
35214
35223
|
d.src = l || a, d.async = !0, d.onerror = () => n(/* @__PURE__ */ Error("Failed to load MathJax")), document.head.appendChild(d);
|
|
35215
35224
|
});
|
|
35216
35225
|
}
|
|
35217
|
-
function
|
|
35226
|
+
function D(e) {
|
|
35218
35227
|
let t = e?._?.output?.chtml_ts?.CHTML;
|
|
35219
35228
|
t && (t.STYLESHEETID = p);
|
|
35220
35229
|
}
|
|
35221
|
-
function
|
|
35230
|
+
function O(e) {
|
|
35222
35231
|
if (!e) return;
|
|
35223
35232
|
let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
|
|
35224
35233
|
let n = e.typesetRoot;
|
|
@@ -35232,32 +35241,32 @@ function w(e) {
|
|
|
35232
35241
|
return t && _(t), !1;
|
|
35233
35242
|
});
|
|
35234
35243
|
let r = e.outputJax?.chtmlStyles;
|
|
35235
|
-
r?.id === m && (r.id = p),
|
|
35244
|
+
r?.id === m && (r.id = p), j();
|
|
35236
35245
|
}
|
|
35237
|
-
function
|
|
35246
|
+
function k(e) {
|
|
35238
35247
|
return e instanceof HTMLStyleElement && h.includes(e.id);
|
|
35239
35248
|
}
|
|
35240
|
-
function
|
|
35249
|
+
function A(e) {
|
|
35241
35250
|
r("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
|
|
35242
35251
|
}
|
|
35243
|
-
function
|
|
35244
|
-
let e = document.head, t = [...e.children].find(
|
|
35252
|
+
function j() {
|
|
35253
|
+
let e = document.head, t = [...e.children].find(k);
|
|
35245
35254
|
if (t) {
|
|
35246
|
-
|
|
35255
|
+
A(t);
|
|
35247
35256
|
return;
|
|
35248
35257
|
}
|
|
35249
35258
|
let n = new MutationObserver((e) => {
|
|
35250
35259
|
for (let t of e) {
|
|
35251
|
-
let e = [...t.addedNodes].find(
|
|
35260
|
+
let e = [...t.addedNodes].find(k);
|
|
35252
35261
|
if (e) {
|
|
35253
|
-
|
|
35262
|
+
A(e), n.disconnect();
|
|
35254
35263
|
return;
|
|
35255
35264
|
}
|
|
35256
35265
|
}
|
|
35257
35266
|
});
|
|
35258
35267
|
n.observe(e, { childList: !0 });
|
|
35259
35268
|
}
|
|
35260
|
-
function
|
|
35269
|
+
function M(e) {
|
|
35261
35270
|
return new Promise((t, n) => {
|
|
35262
35271
|
let r = e.startup ?? {};
|
|
35263
35272
|
e.startup = r;
|
|
@@ -35268,27 +35277,27 @@ function O(e) {
|
|
|
35268
35277
|
};
|
|
35269
35278
|
});
|
|
35270
35279
|
}
|
|
35271
|
-
function
|
|
35280
|
+
function N(e) {
|
|
35272
35281
|
let t = v();
|
|
35273
|
-
return t ? t.version ? t.startup?.promise ? Promise.resolve(t.startup.promise).then(() => void 0) : Promise.resolve() :
|
|
35282
|
+
return t ? t.version ? t.startup?.promise ? Promise.resolve(t.startup.promise).then(() => void 0) : Promise.resolve() : M(t) : E(e);
|
|
35274
35283
|
}
|
|
35275
|
-
function
|
|
35276
|
-
return
|
|
35284
|
+
function P(e) {
|
|
35285
|
+
return N(e).then(() => {
|
|
35277
35286
|
typeof v()?.typesetPromise != "function" && console.warn("[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.");
|
|
35278
35287
|
});
|
|
35279
35288
|
}
|
|
35280
|
-
function
|
|
35289
|
+
function F(e) {
|
|
35281
35290
|
let t = globalThis, n = t[f];
|
|
35282
|
-
return n || (n =
|
|
35291
|
+
return n || (n = P(e), t[f] = n), n;
|
|
35283
35292
|
}
|
|
35284
|
-
function
|
|
35293
|
+
function I(e = {}) {
|
|
35285
35294
|
let t = e.useSingleDollar ?? !1;
|
|
35286
35295
|
return async (n) => {
|
|
35287
35296
|
if (typeof window > "u") return;
|
|
35288
35297
|
let a = i();
|
|
35289
|
-
a && r("mathjax-3-global", `window.MathJax is MathJax ${a}`),
|
|
35290
|
-
let o =
|
|
35291
|
-
if (!
|
|
35298
|
+
a && r("mathjax-3-global", `window.MathJax is MathJax ${a}`), w(n);
|
|
35299
|
+
let o = F(e);
|
|
35300
|
+
if (!T(n, t)) {
|
|
35292
35301
|
o.catch(() => {});
|
|
35293
35302
|
return;
|
|
35294
35303
|
}
|
|
@@ -35297,26 +35306,54 @@ function M(e = {}) {
|
|
|
35297
35306
|
await s?.startup?.promise, typeof s?.typesetPromise == "function" && (await s.typesetPromise([n]), _(n));
|
|
35298
35307
|
};
|
|
35299
35308
|
}
|
|
35300
|
-
var
|
|
35301
|
-
var
|
|
35302
|
-
var
|
|
35303
|
-
|
|
35304
|
-
|
|
35309
|
+
var R = "@pie-lib/math-rendering";
|
|
35310
|
+
var z = "@pie-lib/math-rendering@2";
|
|
35311
|
+
var B = "pie-print";
|
|
35312
|
+
var V = 50;
|
|
35313
|
+
var H = 1e4;
|
|
35314
|
+
var U = null;
|
|
35315
|
+
function W() {
|
|
35316
|
+
return !!window[z]?.opts?.useSingleDollar;
|
|
35305
35317
|
}
|
|
35306
|
-
function
|
|
35307
|
-
return
|
|
35318
|
+
function G() {
|
|
35319
|
+
return U || (U = I({ useSingleDollar: W() })), U;
|
|
35308
35320
|
}
|
|
35309
|
-
function
|
|
35321
|
+
function K() {
|
|
35310
35322
|
if (typeof window > "u") return null;
|
|
35311
|
-
let e = window[
|
|
35312
|
-
return typeof e?.renderMath == "function" ? e : null;
|
|
35323
|
+
let e = window[R];
|
|
35324
|
+
return typeof e?.renderMath == "function" && e.renderMath !== X ? e : null;
|
|
35325
|
+
}
|
|
35326
|
+
function q(e) {
|
|
35327
|
+
let t = e;
|
|
35328
|
+
for (; t;) {
|
|
35329
|
+
if (t instanceof Element && t.localName === B) return t;
|
|
35330
|
+
t = t instanceof ShadowRoot ? t.host : t.parentNode;
|
|
35331
|
+
}
|
|
35332
|
+
return null;
|
|
35333
|
+
}
|
|
35334
|
+
function J() {
|
|
35335
|
+
let e = window.renderMath;
|
|
35336
|
+
return typeof e == "function" ? e : null;
|
|
35337
|
+
}
|
|
35338
|
+
async function Y(e) {
|
|
35339
|
+
let t = q(e);
|
|
35340
|
+
if (!t) return null;
|
|
35341
|
+
let n = J();
|
|
35342
|
+
if (n || t.mathRenderingModuleUrlImported !== !0) return n;
|
|
35343
|
+
let r = Date.now() + H;
|
|
35344
|
+
for (; Date.now() < r;) {
|
|
35345
|
+
await new Promise((e) => setTimeout(e, V));
|
|
35346
|
+
let e = J();
|
|
35347
|
+
if (e) return e;
|
|
35348
|
+
}
|
|
35349
|
+
return null;
|
|
35313
35350
|
}
|
|
35314
|
-
var
|
|
35351
|
+
var X = async (e) => {
|
|
35315
35352
|
if (typeof window > "u") return;
|
|
35316
35353
|
let t = typeof e == "string", n;
|
|
35317
35354
|
t ? (n = document.createElement("div"), n.innerHTML = e) : n = e || document.body;
|
|
35318
|
-
let r =
|
|
35319
|
-
return r ? await r.renderMath?.(n) : await
|
|
35355
|
+
let r = K(), i = r || t ? null : await Y(n);
|
|
35356
|
+
return r ? await r.renderMath?.(n) : i && i !== X ? await i(n) : await G()(n), t ? n.innerHTML : void 0;
|
|
35320
35357
|
};
|
|
35321
35358
|
//#endregion
|
|
35322
35359
|
//#region src/delivery/tile-accessible-name.ts
|
|
@@ -36637,7 +36674,7 @@ function VennClassification($$anchor, $$props) {
|
|
|
36637
36674
|
if (!containerEl) return;
|
|
36638
36675
|
const warn = (err) => console.warn("venn-classification: MathJax render failed", err);
|
|
36639
36676
|
try {
|
|
36640
|
-
Promise.resolve(
|
|
36677
|
+
Promise.resolve(X(containerEl)).catch(warn);
|
|
36641
36678
|
} catch (err) {
|
|
36642
36679
|
warn(err);
|
|
36643
36680
|
}
|