@pie-element/charting 13.0.6-next.20261018193205 → 13.0.6

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.
@@ -190,7 +190,7 @@ var b = (e, t) => new Promise((n) => {
190
190
  }), c.length < 1 || c.length > 20 ? u.categoriesError = "The correct answer should include between 1 and 20 categories." : t(o.map((e) => n(e, "value", "label")), s.map((e) => n(e, "value", "label"))) && (u.identicalError = "Correct answer should not be identical to the chart’s initial state"), r(d) || (l.categoryErrors = d), r(u) || (l.correctAnswerErrors = u), l;
191
191
  }, w = Object.freeze({
192
192
  name: "@pie-element/charting",
193
- version: "13.0.6-next.20261018193205"
193
+ version: "13.0.6"
194
194
  });
195
195
  //#endregion
196
196
  export { f as checkLabelsEquality, b as createCorrectResponseSession, _ as filterCategories, g as getLogTrace, h as getScore, v as model, m as normalize, y as outcome, w as piePackage, p as setCorrectness, C as validate };
@@ -1,5 +1,5 @@
1
1
  import { i as e } from "../rolldown-runtime-CWhphoD1.js";
2
- import { K as t, M as n, N as r, S as i, U as a, W as o, a as s, b as c, g as l, h as u, j as d, k as f, o as p, t as m, tt as h, v as g, x as _, y as v } from "../chart-gzuIztXJ.js";
2
+ import { K as t, M as n, N as r, S as i, U as a, W as o, a as s, b as c, g as l, h as u, j as d, k as f, o as p, t as m, tt as h, v as g, x as _, y as v } from "../chart-CX7vDvbm.js";
3
3
  import { g as y } from "../dist-kMt4MdSv.js";
4
4
  import b, { useRef as x } from "react";
5
5
  import { createRoot as S } from "react-dom/client";
@@ -602,7 +602,7 @@ var W = g, G = W.default, K = G && typeof G == "object" ? G : W, me = U(f, "UiLa
602
602
  }
603
603
  }, ve = Object.freeze({
604
604
  name: "@pie-element/charting",
605
- version: "13.0.6-next.20261018193205"
605
+ version: "13.0.6"
606
606
  });
607
607
  //#endregion
608
608
  export { Z as Component, _e as default, ve as piePackage };
@@ -1,5 +1,5 @@
1
1
  import { a as e } from "../rolldown-runtime-CHQKHQ89.js";
2
- import { $ as t, A as n, B as r, C as i, D as a, E as o, F as s, G as c, H as l, I as u, J as d, K as f, L as p, M as m, O as h, P as g, Q as _, R as v, T as y, V as b, W as x, X as S, Y as C, Z as w, _ as T, a as E, c as D, d as O, et as k, f as A, i as j, l as M, m as N, n as P, p as F, q as I, r as L, s as R, t as z, tt as ee, u as B, v as V, w as te, z as ne } from "../chart-DWCN-Eso.js";
2
+ import { $ as t, A as n, B as r, C as i, D as a, E as o, F as s, G as c, H as l, I as u, J as d, K as f, L as p, M as m, O as h, P as g, Q as _, R as v, T as y, V as b, W as x, X as S, Y as C, Z as w, _ as T, a as E, c as D, d as O, et as k, f as A, i as j, l as M, m as N, n as P, p as F, q as I, r as L, s as R, t as z, tt as ee, u as B, v as V, w as te, z as ne } from "../chart-CwvlidAB.js";
3
3
  import { f as re, g as ie, l as H, m as U, n as W, v as ae } from "../dist-BZ6FX8Co.js";
4
4
  import * as G from "react";
5
5
  import K, { Component as oe, createElement as se, useEffect as ce, useId as le, useState as ue } from "react";
@@ -3188,7 +3188,7 @@ var Dr = class e extends CustomEvent {
3188
3188
  }
3189
3189
  }, mi = Object.freeze({
3190
3190
  name: "@pie-element/charting",
3191
- version: "13.0.6-next.20261018193205"
3191
+ version: "13.0.6"
3192
3192
  });
3193
3193
  //#endregion
3194
3194
  export { pi as default, mi as piePackage };
@@ -7858,7 +7858,7 @@ var lh;
7858
7858
  function uh() {
7859
7859
  return lh;
7860
7860
  }
7861
- var dh = import("./mathjax-CptWnMbQ-CR_i7r9X.js");
7861
+ var dh = import("./mathjax-DqXi3q4c-C6UsRdhB.js");
7862
7862
  dh.catch(() => {});
7863
7863
  async function fh(e, t) {
7864
7864
  let { createMathJax: n } = await dh;
@@ -8557,25 +8557,7 @@ function qg(e) {
8557
8557
  function Jg(e) {
8558
8558
  for (let t of e.querySelectorAll("mjx-container")) qg(t);
8559
8559
  }
8560
- var Yg = "https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page", Xg = "pie-mathjax-version-conflict", Zg = Symbol.for("@pie-element/shared-math-rendering-mathjax/unsupported-page");
8561
- function Qg(e, t) {
8562
- if (typeof window > "u") return;
8563
- let n = globalThis;
8564
- n[Zg] ??= {
8565
- logged: !1,
8566
- conditions: []
8567
- };
8568
- let r = n[Zg];
8569
- if (r.conditions.includes(e)) return;
8570
- r.conditions.push(e);
8571
- 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 ${Yg}`;
8572
- r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(Xg, { detail: {
8573
- condition: e,
8574
- message: i,
8575
- docsUrl: Yg
8576
- } }));
8577
- }
8578
- var $g = {
8560
+ var Yg = {
8579
8561
  parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
8580
8562
  overarc: "\\overparen",
8581
8563
  napprox: "\\not\\approx",
@@ -8583,36 +8565,54 @@ var $g = {
8583
8565
  abs: ["\\left|#1\\right|", 1],
8584
8566
  perpendicular: "\\perp",
8585
8567
  divide: "\\div"
8586
- }, e_ = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", t_ = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, n_ = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, r_ = /\\embed\{newLine\}\[\]/g, i_ = [
8568
+ }, Xg = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, Zg = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, Qg = /\\embed\{newLine\}\[\]/g, $g = [
8587
8569
  ["$$", "$$"],
8588
8570
  ["$", "$"],
8589
8571
  ["\\[", "\\]"],
8590
8572
  ["\\(", "\\)"]
8591
- ], a_ = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), o_ = "MJX-CHTML-styles", s_ = "PIE-MJX-SVG-styles", c_ = "PIE-MathJax-Menu-Settings", l_ = { "mjx-container[overflow=\"linebreak\"][display]": {
8573
+ ];
8574
+ function e_(e) {
8575
+ for (let [t, n] of $g) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
8576
+ return e;
8577
+ }
8578
+ function t_(e) {
8579
+ return `\\(${e_(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e)}\\)`.replace(Qg, "\\newline ");
8580
+ }
8581
+ var n_ = "mathjax_ignore", r_ = "mathjax_process", i_ = "https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page", a_ = "pie-mathjax-version-conflict", o_ = Symbol.for("@pie-element/shared-math-rendering-mathjax/unsupported-page");
8582
+ function s_(e, t) {
8583
+ if (typeof window > "u") return;
8584
+ let n = globalThis;
8585
+ n[o_] ??= {
8586
+ logged: !1,
8587
+ conditions: []
8588
+ };
8589
+ let r = n[o_];
8590
+ if (r.conditions.includes(e)) return;
8591
+ r.conditions.push(e);
8592
+ 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 ${i_}`;
8593
+ r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(a_, { detail: {
8594
+ condition: e,
8595
+ message: i,
8596
+ docsUrl: i_
8597
+ } }));
8598
+ }
8599
+ var c_ = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", l_ = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), u_ = "MJX-CHTML-styles", d_ = "PIE-MJX-SVG-styles", f_ = "PIE-MathJax-Menu-Settings", p_ = { "mjx-container[overflow=\"linebreak\"][display]": {
8592
8600
  overflow: "auto clip",
8593
8601
  "min-width": "initial !important"
8594
- } }, u_ = 200, d_ = 201, f_ = 202;
8595
- function p_(e) {
8602
+ } }, m_ = 200, h_ = 201, g_ = 202;
8603
+ function __(e) {
8596
8604
  let t = [...e.matches("mjx-container") ? [e] : [], ...e.querySelectorAll("mjx-container")];
8597
8605
  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");
8598
8606
  }
8599
- function m_(e) {
8600
- for (let [t, n] of i_) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
8601
- return e;
8602
- }
8603
- function h_(e) {
8604
- return m_(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
8605
- }
8606
- var g_ = "mathjax_ignore", __ = "mathjax_process";
8607
8607
  function v_(e, t) {
8608
- let n = e.closest(`.${g_}, .${__}`);
8609
- return n !== null && t.contains(n) && !n.classList.contains(__);
8608
+ let n = e.closest(`.${n_}, .${r_}`);
8609
+ return n !== null && t.contains(n) && !n.classList.contains("mathjax_process");
8610
8610
  }
8611
8611
  function y_(e) {
8612
8612
  for (let t of e.querySelectorAll("[data-latex]")) {
8613
8613
  if (t.dataset.mathHandled || t.closest("mjx-container") || v_(t, e)) continue;
8614
8614
  let n = t.textContent;
8615
- n && (t.textContent = `\\(${h_(n)}\\)`.replace(r_, "\\newline "), t.dataset.mathHandled = "true");
8615
+ n && (t.textContent = t_(n), t.dataset.mathHandled = "true");
8616
8616
  }
8617
8617
  }
8618
8618
  function b_(e) {
@@ -8620,7 +8620,7 @@ function b_(e) {
8620
8620
  }
8621
8621
  function x_(e, t) {
8622
8622
  for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
8623
- return (t ? n_ : t_).test(e.textContent ?? "");
8623
+ return (t ? Zg : Xg).test(e.textContent ?? "");
8624
8624
  }
8625
8625
  function S_(e) {
8626
8626
  return new Promise((t, n) => {
@@ -8637,10 +8637,10 @@ function S_(e) {
8637
8637
  typeset: !1,
8638
8638
  ready: () => {
8639
8639
  let e = uh(), r = e?.startup, i = C_(e);
8640
- i && (w_(e), T_(e, s.speechLocales), b(e?._?.a11y?.sre_ts?.locales, s.speechLocales)), r?.defaultReady?.(), i && (E_(r?.document), D_(r?.document), r?.document?.addStyles?.(l_), w(r?.document)), Promise.resolve(r?.promise).then(() => t(), n);
8640
+ i && (w_(e), T_(e, s.speechLocales), b(e?._?.a11y?.sre_ts?.locales, s.speechLocales)), r?.defaultReady?.(), i && (E_(r?.document), D_(r?.document), r?.document?.addStyles?.(p_), w(r?.document)), Promise.resolve(r?.promise).then(() => t(), n);
8641
8641
  }
8642
8642
  },
8643
- tex: { macros: { ...$g } },
8643
+ tex: { macros: { ...Yg } },
8644
8644
  output: { displayOverflow: "linebreak" },
8645
8645
  options: {
8646
8646
  enableMenu: i,
@@ -8652,7 +8652,7 @@ function S_(e) {
8652
8652
  a11y: { inTabOrder: c }
8653
8653
  }
8654
8654
  };
8655
- r && l.tex && (console.warn(e_), l.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], l.tex.processEscapes = !0), a || (l.chtml = { fontURL: "" });
8655
+ r && l.tex && (console.warn(c_), l.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], l.tex.processEscapes = !0), a || (l.chtml = { fontURL: "" });
8656
8656
  let u = C(s.speechLocales);
8657
8657
  u && l.options && (l.options.sre = { locale: u }), fh(l, {
8658
8658
  ...s,
@@ -8669,18 +8669,18 @@ function w_(e) {
8669
8669
  let t = e?._?.output, n = t?.chtml_ts?.CHTML;
8670
8670
  n && (n.STYLESHEETID = _h);
8671
8671
  let r = t?.svg_ts?.SVG;
8672
- r && (r.STYLESHEETID = s_);
8672
+ r && (r.STYLESHEETID = d_);
8673
8673
  }
8674
8674
  function T_(e, t) {
8675
8675
  let n = e?._?.ui?.menu?.Menu?.Menu;
8676
8676
  if (n) {
8677
- n.MENU_STORAGE = c_;
8677
+ n.MENU_STORAGE = f_;
8678
8678
  try {
8679
- let e = localStorage.getItem(c_);
8679
+ let e = localStorage.getItem(f_);
8680
8680
  if (!e) return;
8681
8681
  let { assistiveMml: n, locale: r, ...i } = JSON.parse(e), a = r === void 0 || !t || t.has(r);
8682
8682
  if (n === void 0 && a) return;
8683
- a && r !== void 0 && (i.locale = r), Object.keys(i).length ? localStorage.setItem(c_, JSON.stringify(i)) : localStorage.removeItem(c_);
8683
+ a && r !== void 0 && (i.locale = r), Object.keys(i).length ? localStorage.setItem(f_, JSON.stringify(i)) : localStorage.removeItem(f_);
8684
8684
  } catch {}
8685
8685
  }
8686
8686
  }
@@ -8688,23 +8688,23 @@ function E_(e) {
8688
8688
  if (!e) return;
8689
8689
  let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
8690
8690
  let n = e.typesetRoot;
8691
- !n || t.has(n) || (p_(n), t.add(n));
8691
+ !n || t.has(n) || (__(n), t.add(n));
8692
8692
  };
8693
- e.addRenderAction?.("pie-strip-latex", d_, (e) => {
8693
+ e.addRenderAction?.("pie-strip-latex", h_, (e) => {
8694
8694
  for (let t of e.math ?? []) n(t);
8695
8695
  return !1;
8696
8696
  }, (e) => {
8697
8697
  let t = e.typesetRoot;
8698
- return t && p_(t), !1;
8698
+ return t && __(t), !1;
8699
8699
  });
8700
8700
  let r = e.outputJax?.chtmlStyles;
8701
- r?.id === o_ && (r.id = _h), A_();
8701
+ r?.id === u_ && (r.id = _h), A_();
8702
8702
  }
8703
8703
  function D_(e) {
8704
8704
  let t = (e) => {
8705
8705
  e.typesetRoot && qg(e.typesetRoot);
8706
8706
  };
8707
- e?.addRenderAction?.("pie-name-math", f_, (e) => {
8707
+ e?.addRenderAction?.("pie-name-math", g_, (e) => {
8708
8708
  for (let n of e.math ?? []) t(n);
8709
8709
  return !1;
8710
8710
  }, (e) => (t(e), !1));
@@ -8713,7 +8713,7 @@ function O_(e) {
8713
8713
  return e instanceof HTMLStyleElement && vh.includes(e.id);
8714
8714
  }
8715
8715
  function k_(e) {
8716
- Qg("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
8716
+ s_("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
8717
8717
  }
8718
8718
  function A_() {
8719
8719
  let e = document.head, t = [...e.children].find(O_);
@@ -8735,7 +8735,7 @@ function A_() {
8735
8735
  function j_(e) {
8736
8736
  let t = e?.math;
8737
8737
  if (!t?.remove) return;
8738
- let n = [...t].filter((e) => (e.state?.() ?? 0) >= u_ && e.typesetRoot?.isConnected === !1);
8738
+ let n = [...t].filter((e) => (e.state?.() ?? 0) >= m_ && e.typesetRoot?.isConnected === !1);
8739
8739
  if (n.length !== 0) {
8740
8740
  for (let e of [...n].reverse()) e.clear?.();
8741
8741
  t.remove(...n);
@@ -8763,8 +8763,8 @@ function P_(e) {
8763
8763
  });
8764
8764
  }
8765
8765
  function F_(e) {
8766
- let t = ph, n = t[a_];
8767
- return n || (n = P_(e), t[a_] = n), n;
8766
+ let t = ph, n = t[l_];
8767
+ return n || (n = P_(e), t[l_] = n), n;
8768
8768
  }
8769
8769
  function I_(e = {}) {
8770
8770
  let t = e.useSingleDollar ?? !1;
@@ -8785,7 +8785,7 @@ function I_(e = {}) {
8785
8785
  } catch (e) {
8786
8786
  throw i.typesetClear?.([n]), e;
8787
8787
  }
8788
- p_(n), Jg(n);
8788
+ __(n), Jg(n);
8789
8789
  }
8790
8790
  };
8791
8791
  }
@@ -8836,7 +8836,7 @@ var Y_ = async (e) => {
8836
8836
  let n = G_()?.wrapMath?.(e, t);
8837
8837
  if (n != null) return n;
8838
8838
  let [r, i] = t === "dollar" || t === "double_dollar" ? ["$", "$"] : ["\\(", "\\)"];
8839
- return `${r}${m_(e)}${i}`;
8839
+ return `${r}${e_(e)}${i}`;
8840
8840
  }, Z_ = (e) => {
8841
8841
  let t = e.trim();
8842
8842
  return t.startsWith("\\[") && t.endsWith("\\]") ? {
@@ -40145,4 +40145,4 @@ var r6 = class extends E.Component {
40145
40145
  //#endregion
40146
40146
  export { Gi as $, Cv as A, Mp as B, ky as C, cy as D, ly as E, Fm as F, Ls as G, Af as H, hm as I, Es as J, H as K, sm as L, Y_ as M, th as N, sy as O, Im as P, qi as Q, G as R, Ly as S, yy as T, yl as U, Ep as V, U as W, go as X, yo as Y, Ji as Z, MA as _, l4 as a, Hy as b, $W as c, TH as d, or as et, bH as f, NA as g, Lj as h, S3 as i, tv as j, ry as k, JW as l, nV as m, I3 as n, i$ as o, ZV as p, As as q, N3 as r, nY as s, p6 as t, Ge as tt, AU as u, mb as v, Ey as w, Ry as x, Wy as y, Vp as z };
40147
40147
 
40148
- //# sourceMappingURL=chart-DWCN-Eso.js.map
40148
+ //# sourceMappingURL=chart-CwvlidAB.js.map