@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.
@@ -2519,22 +2519,29 @@ function na() {
2519
2519
  return window.MathJax;
2520
2520
  }
2521
2521
  function ra(e) {
2522
- let t = e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e;
2523
- for (let [e, n] of Yi) if (t.startsWith(e) && t.endsWith(n)) return t.substring(e.length, t.length - n.length);
2524
- return t;
2522
+ for (let [t, n] of Yi) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
2523
+ return e;
2525
2524
  }
2526
2525
  function ia(e) {
2526
+ return ra(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
2527
+ }
2528
+ var aa = "mathjax_ignore", oa = "mathjax_process";
2529
+ function sa(e, t) {
2530
+ let n = e.closest(`.${aa}, .${oa}`);
2531
+ return n !== null && t.contains(n) && !n.classList.contains(oa);
2532
+ }
2533
+ function ca(e) {
2527
2534
  for (let t of e.querySelectorAll("[data-latex]")) {
2528
- if (t.dataset.mathHandled || t.closest("mjx-container")) continue;
2529
- let e = t.textContent;
2530
- e && (t.textContent = `\\(${ra(e)}\\)`.replace(Ji, "\\newline "), t.dataset.mathHandled = "true");
2535
+ if (t.dataset.mathHandled || t.closest("mjx-container") || sa(t, e)) continue;
2536
+ let n = t.textContent;
2537
+ n && (t.textContent = `\\(${ia(n)}\\)`.replace(Ji, "\\newline "), t.dataset.mathHandled = "true");
2531
2538
  }
2532
2539
  }
2533
- function aa(e, t) {
2540
+ function la(e, t) {
2534
2541
  for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
2535
2542
  return (t ? qi : Ki).test(e.textContent ?? "");
2536
2543
  }
2537
- function oa(e) {
2544
+ function ua(e) {
2538
2545
  return new Promise((t, n) => {
2539
2546
  let { useSingleDollar: r = !1, accessibility: i = !0, loadFonts: a = !0, srcUrl: o } = e, s = {
2540
2547
  loader: {
@@ -2545,7 +2552,7 @@ function oa(e) {
2545
2552
  typeset: !1,
2546
2553
  ready: () => {
2547
2554
  let e = na(), r = e?.startup, i = !!e?.version?.startsWith("4.");
2548
- i && sa(e), r?.defaultReady?.(), i && ca(r?.document), Promise.resolve(r?.promise).then(() => t(), n);
2555
+ i && da(e), r?.defaultReady?.(), i && fa(r?.document), Promise.resolve(r?.promise).then(() => t(), n);
2549
2556
  }
2550
2557
  },
2551
2558
  tex: { macros: { ...Wi } },
@@ -2563,11 +2570,11 @@ function oa(e) {
2563
2570
  c.src = o || Ui, c.async = !0, c.onerror = () => n(/* @__PURE__ */ Error("Failed to load MathJax")), document.head.appendChild(c);
2564
2571
  });
2565
2572
  }
2566
- function sa(e) {
2573
+ function da(e) {
2567
2574
  let t = e?._?.output?.chtml_ts?.CHTML;
2568
2575
  t && (t.STYLESHEETID = Zi);
2569
2576
  }
2570
- function ca(e) {
2577
+ function fa(e) {
2571
2578
  if (!e) return;
2572
2579
  let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
2573
2580
  let n = e.typesetRoot;
@@ -2581,32 +2588,32 @@ function ca(e) {
2581
2588
  return t && ta(t), !1;
2582
2589
  });
2583
2590
  let r = e.outputJax?.chtmlStyles;
2584
- r?.id === Qi && (r.id = Zi), da();
2591
+ r?.id === Qi && (r.id = Zi), ha();
2585
2592
  }
2586
- function la(e) {
2593
+ function pa(e) {
2587
2594
  return e instanceof HTMLStyleElement && $i.includes(e.id);
2588
2595
  }
2589
- function ua(e) {
2596
+ function ma(e) {
2590
2597
  Vi("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
2591
2598
  }
2592
- function da() {
2593
- let e = document.head, t = [...e.children].find(la);
2599
+ function ha() {
2600
+ let e = document.head, t = [...e.children].find(pa);
2594
2601
  if (t) {
2595
- ua(t);
2602
+ ma(t);
2596
2603
  return;
2597
2604
  }
2598
2605
  let n = new MutationObserver((e) => {
2599
2606
  for (let t of e) {
2600
- let e = [...t.addedNodes].find(la);
2607
+ let e = [...t.addedNodes].find(pa);
2601
2608
  if (e) {
2602
- ua(e), n.disconnect();
2609
+ ma(e), n.disconnect();
2603
2610
  return;
2604
2611
  }
2605
2612
  }
2606
2613
  });
2607
2614
  n.observe(e, { childList: !0 });
2608
2615
  }
2609
- function fa(e) {
2616
+ function ga(e) {
2610
2617
  return new Promise((t, n) => {
2611
2618
  let r = e.startup ?? {};
2612
2619
  e.startup = r;
@@ -2617,27 +2624,27 @@ function fa(e) {
2617
2624
  };
2618
2625
  });
2619
2626
  }
2620
- function pa(e) {
2627
+ function _a(e) {
2621
2628
  let t = na();
2622
- return t ? t.version ? t.startup?.promise ? Promise.resolve(t.startup.promise).then(() => void 0) : Promise.resolve() : fa(t) : oa(e);
2629
+ return t ? t.version ? t.startup?.promise ? Promise.resolve(t.startup.promise).then(() => void 0) : Promise.resolve() : ga(t) : ua(e);
2623
2630
  }
2624
- function ma(e) {
2625
- return pa(e).then(() => {
2631
+ function va(e) {
2632
+ return _a(e).then(() => {
2626
2633
  typeof na()?.typesetPromise != "function" && console.warn("[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.");
2627
2634
  });
2628
2635
  }
2629
- function ha(e) {
2636
+ function ya(e) {
2630
2637
  let t = globalThis, n = t[Xi];
2631
- return n || (n = ma(e), t[Xi] = n), n;
2638
+ return n || (n = va(e), t[Xi] = n), n;
2632
2639
  }
2633
- function ga(e = {}) {
2640
+ function ba(e = {}) {
2634
2641
  let t = e.useSingleDollar ?? !1;
2635
2642
  return async (n) => {
2636
2643
  if (typeof window > "u") return;
2637
2644
  let r = Hi();
2638
- r && Vi("mathjax-3-global", `window.MathJax is MathJax ${r}`), ia(n);
2639
- let i = ha(e);
2640
- if (!aa(n, t)) {
2645
+ r && Vi("mathjax-3-global", `window.MathJax is MathJax ${r}`), ca(n);
2646
+ let i = ya(e);
2647
+ if (!la(n, t)) {
2641
2648
  i.catch(() => {});
2642
2649
  return;
2643
2650
  }
@@ -2646,47 +2653,72 @@ function ga(e = {}) {
2646
2653
  await a?.startup?.promise, typeof a?.typesetPromise == "function" && (await a.typesetPromise([n]), ta(n));
2647
2654
  };
2648
2655
  }
2649
- var _a = "@pie-lib/math-rendering", va = "@pie-lib/math-rendering@2", ya = null;
2650
- function ba() {
2651
- return !!window[va]?.opts?.useSingleDollar;
2656
+ var xa = "@pie-lib/math-rendering", Sa = "@pie-lib/math-rendering@2", Ca = "pie-print", wa = 50, Ta = 1e4, Ea = null;
2657
+ function Da() {
2658
+ return !!window[Sa]?.opts?.useSingleDollar;
2652
2659
  }
2653
- function xa() {
2654
- return ya ||= ga({ useSingleDollar: ba() }), ya;
2660
+ function Oa() {
2661
+ return Ea ||= ba({ useSingleDollar: Da() }), Ea;
2655
2662
  }
2656
- function Sa() {
2663
+ function ka() {
2657
2664
  if (typeof window > "u") return null;
2658
- let e = window[_a];
2659
- return typeof e?.renderMath == "function" ? e : null;
2665
+ let e = window[xa];
2666
+ return typeof e?.renderMath == "function" && e.renderMath !== Na ? e : null;
2660
2667
  }
2661
- var Ca = async (e) => {
2668
+ function Aa(e) {
2669
+ let t = e;
2670
+ for (; t;) {
2671
+ if (t instanceof Element && t.localName === Ca) return t;
2672
+ t = t instanceof ShadowRoot ? t.host : t.parentNode;
2673
+ }
2674
+ return null;
2675
+ }
2676
+ function ja() {
2677
+ let e = window.renderMath;
2678
+ return typeof e == "function" ? e : null;
2679
+ }
2680
+ async function Ma(e) {
2681
+ let t = Aa(e);
2682
+ if (!t) return null;
2683
+ let n = ja();
2684
+ if (n || t.mathRenderingModuleUrlImported !== !0) return n;
2685
+ let r = Date.now() + Ta;
2686
+ for (; Date.now() < r;) {
2687
+ await new Promise((e) => setTimeout(e, wa));
2688
+ let e = ja();
2689
+ if (e) return e;
2690
+ }
2691
+ return null;
2692
+ }
2693
+ var Na = async (e) => {
2662
2694
  if (typeof window > "u") return;
2663
2695
  let t = typeof e == "string", n;
2664
2696
  t ? (n = document.createElement("div"), n.innerHTML = e) : n = e || document.body;
2665
- let r = Sa();
2666
- return r ? await r.renderMath?.(n) : await xa()(n), t ? n.innerHTML : void 0;
2697
+ let r = ka(), i = r || t ? null : await Ma(n);
2698
+ return r ? await r.renderMath?.(n) : i && i !== Na ? await i(n) : await Oa()(n), t ? n.innerHTML : void 0;
2667
2699
  };
2668
2700
  //#endregion
2669
2701
  //#region src/delivery/tile-accessible-name.ts
2670
- function wa(e) {
2702
+ function Pa(e) {
2671
2703
  return (e || "").replace(/<[^>]+>/g, " ").replace(/\s+/g, " ").trim();
2672
2704
  }
2673
- function Ta(e, n) {
2705
+ function Fa(e, n) {
2674
2706
  let r = (e.imageAlt ?? "").trim();
2675
- return (e.imageUrl ?? "").trim() && r ? r : wa(e.label ?? "") || t("tileFallbackName", n);
2707
+ return (e.imageUrl ?? "").trim() && r ? r : Pa(e.label ?? "") || t("tileFallbackName", n);
2676
2708
  }
2677
- function Ea(e, n, r, i) {
2678
- let a = [Ta(e, i), n === null ? t("tileNotPlaced", i) : t("tileInRegion", i, { region: n })];
2709
+ function Ia(e, n, r, i) {
2710
+ let a = [Fa(e, i), n === null ? t("tileNotPlaced", i) : t("tileInRegion", i, { region: n })];
2679
2711
  return r === "correct" && a.push(t("tileCorrect", i)), r === "incorrect" && a.push(t("tileIncorrect", i)), a.join(", ");
2680
2712
  }
2681
2713
  //#endregion
2682
2714
  //#region src/delivery/Tile.svelte
2683
- var Da = /* @__PURE__ */ Y("<img alt=\"\" class=\"tile-img svelte-1hgaksk\" aria-hidden=\"true\" draggable=\"false\"/>"), Oa = /* @__PURE__ */ Y("<span></span>"), ka = /* @__PURE__ */ Y("<span class=\"venn-badge venn-badge-correct svelte-1hgaksk\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"currentColor\"><path d=\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z\"></path></svg></span>"), Aa = /* @__PURE__ */ Y("<span class=\"venn-badge venn-badge-incorrect svelte-1hgaksk\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"currentColor\"><path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z\"></path></svg></span>"), ja = /* @__PURE__ */ Y("<button type=\"button\"><span><!> <!></span> <!></button>"), Ma = {
2715
+ var La = /* @__PURE__ */ Y("<img alt=\"\" class=\"tile-img svelte-1hgaksk\" aria-hidden=\"true\" draggable=\"false\"/>"), Ra = /* @__PURE__ */ Y("<span></span>"), za = /* @__PURE__ */ Y("<span class=\"venn-badge venn-badge-correct svelte-1hgaksk\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"currentColor\"><path d=\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z\"></path></svg></span>"), Ba = /* @__PURE__ */ Y("<span class=\"venn-badge venn-badge-incorrect svelte-1hgaksk\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"currentColor\"><path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z\"></path></svg></span>"), Va = /* @__PURE__ */ Y("<button type=\"button\"><span><!> <!></span> <!></button>"), Ha = {
2684
2716
  hash: "svelte-1hgaksk",
2685
2717
  code: ".venn-tile.svelte-1hgaksk {position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:44px;padding:8px 14px;border:1.5px solid #334155;border-radius:10px;background:#ffffff;color:#0f172a;font-size:14px;font-weight:500;box-shadow:0 1px 2px rgba(15, 23, 42, 0.06);cursor:grab;touch-action:none;user-select:none;transition:box-shadow 120ms ease, transform 120ms ease, background 120ms ease;}.venn-tile.svelte-1hgaksk:focus-visible,\n .venn-tile.focused.svelte-1hgaksk {outline:2px solid var(--vc-focus-ring, #1565c0);outline-offset:2px;}.venn-tile.svelte-1hgaksk:hover:not(:disabled) {background:#f8fafc;}.venn-tile.held.svelte-1hgaksk {cursor:grabbing;box-shadow:0 6px 18px rgba(15, 23, 42, 0.18);transform:translateY(-1px);background:#eef2ff;}.venn-tile.invisible.svelte-1hgaksk {visibility:hidden;}.venn-tile.ghost.svelte-1hgaksk {pointer-events:none;cursor:grabbing;box-shadow:0 10px 24px rgba(15, 23, 42, 0.22);transform:rotate(-1.5deg);background:#ffffff;opacity:0.96;}.venn-tile.correct.svelte-1hgaksk {border-color:#0ea449;}.venn-tile.incorrect.svelte-1hgaksk {border-color:#bf0d00;}.venn-tile.svelte-1hgaksk:disabled {cursor:default;}.tile-body.svelte-1hgaksk {display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;pointer-events:none;max-width:220px;}.tile-body-image.svelte-1hgaksk {flex-direction:column;gap:4px;}.tile-img.svelte-1hgaksk {width:40px;height:40px;object-fit:contain;flex-shrink:0;}.tile-label.svelte-1hgaksk {pointer-events:none;text-align:center;line-height:1.25;word-break:break-word;}.tile-label-below.svelte-1hgaksk {font-size:12px;font-weight:600;}.venn-tile.fit.svelte-1hgaksk {box-sizing:border-box;width:100%;height:100%;min-width:0;min-height:0;padding:6px 10px;}.fit.svelte-1hgaksk .tile-body:where(.svelte-1hgaksk) {max-width:100%;max-height:100%;overflow:hidden;}.fit.svelte-1hgaksk .tile-label:where(.svelte-1hgaksk) {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;}.fit.svelte-1hgaksk .tile-label-below:where(.svelte-1hgaksk) {-webkit-line-clamp:1;line-clamp:1;}.venn-badge.svelte-1hgaksk {position:absolute;top:-8px;right:-8px;width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#ffffff;}.venn-badge-correct.svelte-1hgaksk {background:#0ea449;}.venn-badge-incorrect.svelte-1hgaksk {background:#bf0d00;}\n @media (prefers-reduced-motion: reduce) {.venn-tile.svelte-1hgaksk {transition:none;}\n }"
2686
2718
  };
2687
- function Na(e, t) {
2688
- Xe(t, !0), si(e, Ma);
2689
- let n = $(t, "id", 7), r = $(t, "label", 7), i = $(t, "imageUrl", 7), a = $(t, "imageAlt", 7), o = $(t, "name", 7), s = $(t, "language", 7), c = $(t, "correctness", 7, "neutral"), l = $(t, "held", 7, !1), u = $(t, "invisible", 7, !1), d = $(t, "ghost", 7, !1), f = $(t, "disabled", 7, !1), p = $(t, "focused", 7, !1), m = $(t, "fit", 7, !1), h = $(t, "onpointerdown", 7), g = $(t, "onkeydown", 7), _ = $(t, "onkeyup", 7), v = $(t, "onfocus", 7), y = $(t, "onclick", 7), b = /* @__PURE__ */ I(() => o() ?? Ta({
2719
+ function Ua(e, t) {
2720
+ Xe(t, !0), si(e, Ha);
2721
+ let n = $(t, "id", 7), r = $(t, "label", 7), i = $(t, "imageUrl", 7), a = $(t, "imageAlt", 7), o = $(t, "name", 7), s = $(t, "language", 7), c = $(t, "correctness", 7, "neutral"), l = $(t, "held", 7, !1), u = $(t, "invisible", 7, !1), d = $(t, "ghost", 7, !1), f = $(t, "disabled", 7, !1), p = $(t, "focused", 7, !1), m = $(t, "fit", 7, !1), h = $(t, "onpointerdown", 7), g = $(t, "onkeydown", 7), _ = $(t, "onkeyup", 7), v = $(t, "onfocus", 7), y = $(t, "onclick", 7), b = /* @__PURE__ */ I(() => o() ?? Fa({
2690
2722
  label: r(),
2691
2723
  imageUrl: i(),
2692
2724
  imageAlt: a()
@@ -2800,19 +2832,19 @@ function Na(e, t) {
2800
2832
  set onclick(e) {
2801
2833
  y(e), R();
2802
2834
  }
2803
- }, C = ja();
2835
+ }, C = Va();
2804
2836
  let w;
2805
2837
  var te = H(C);
2806
2838
  let ne;
2807
2839
  var re = H(te), ie = (e) => {
2808
- var t = Da();
2840
+ var t = La();
2809
2841
  W(() => Q(t, "src", i())), X(e, t);
2810
2842
  };
2811
2843
  Z(re, (e) => {
2812
2844
  J(x) && e(ie);
2813
2845
  });
2814
2846
  var T = U(re, 2), E = (e) => {
2815
- var t = Oa();
2847
+ var t = Ra();
2816
2848
  let n;
2817
2849
  oi(t, r, !0), N(t), W(() => n = pi(t, 1, "tile-label svelte-1hgaksk", null, n, { "tile-label-below": J(x) })), X(e, t);
2818
2850
  };
@@ -2820,9 +2852,9 @@ function Na(e, t) {
2820
2852
  J(S) && e(E);
2821
2853
  }), N(te);
2822
2854
  var ae = U(te, 2), oe = (e) => {
2823
- X(e, ka());
2855
+ X(e, za());
2824
2856
  }, se = (e) => {
2825
- X(e, Aa());
2857
+ X(e, Ba());
2826
2858
  };
2827
2859
  return Z(ae, (e) => {
2828
2860
  c() === "correct" ? e(oe) : c() === "incorrect" && e(se, 1);
@@ -2853,7 +2885,7 @@ Sr([
2853
2885
  "keydown",
2854
2886
  "keyup",
2855
2887
  "click"
2856
- ]), Li(Na, {
2888
+ ]), Li(Ua, {
2857
2889
  id: {},
2858
2890
  label: {},
2859
2891
  imageUrl: {},
@@ -2875,12 +2907,12 @@ Sr([
2875
2907
  }, [], [], { mode: "open" });
2876
2908
  //#endregion
2877
2909
  //#region src/delivery/Tray.svelte
2878
- var Pa = /* @__PURE__ */ Y("<div role=\"region\" data-region-key=\"tray\"><div class=\"tray-label svelte-1ogsh8s\"> </div> <div class=\"tray-items svelte-1ogsh8s\"><!></div></div>"), Fa = {
2910
+ var Wa = /* @__PURE__ */ Y("<div role=\"region\" data-region-key=\"tray\"><div class=\"tray-label svelte-1ogsh8s\"> </div> <div class=\"tray-items svelte-1ogsh8s\"><!></div></div>"), Ga = {
2879
2911
  hash: "svelte-1ogsh8s",
2880
2912
  code: ".venn-tray.svelte-1ogsh8s {border:1.5px dashed #94a3b8;border-radius:12px;padding:14px 16px;background:#f8fafc;min-height:120px;transition:background 120ms ease, border-color 120ms ease;}.venn-tray.drop-target.svelte-1ogsh8s {background:#e0f2fe;border-color:#0ea5e9;}.venn-tray.focused.svelte-1ogsh8s {outline:2px solid var(--vc-focus-ring, #1565c0);outline-offset:2px;}.tray-label.svelte-1ogsh8s {font-size:12px;font-weight:600;color:#475569;text-transform:uppercase;letter-spacing:0.05em;margin-bottom:8px;}.tray-items.svelte-1ogsh8s {display:flex;flex-wrap:wrap;gap:10px;}\n @media (prefers-reduced-motion: reduce) {.venn-tray.svelte-1ogsh8s {transition:none;}\n }"
2881
2913
  };
2882
- function Ia(e, t) {
2883
- Xe(t, !0), si(e, Fa);
2914
+ function Ka(e, t) {
2915
+ Xe(t, !0), si(e, Ga);
2884
2916
  let n = $(t, "isDropTarget", 7, !1), r = $(t, "focused", 7, !1), i = $(t, "label", 7), a = $(t, "onpointerenter", 7), o = $(t, "onpointerleave", 7), s = $(t, "children", 7);
2885
2917
  var c = {
2886
2918
  get isDropTarget() {
@@ -2919,7 +2951,7 @@ function Ia(e, t) {
2919
2951
  set children(e) {
2920
2952
  s(e), R();
2921
2953
  }
2922
- }, l = Pa();
2954
+ }, l = Wa();
2923
2955
  let u;
2924
2956
  var d = H(l), f = ln(d, !0), p = U(d, 2), m = H(p), h = (e) => {
2925
2957
  var t = Mr();
@@ -2938,7 +2970,7 @@ function Ia(e, t) {
2938
2970
  o()?.apply(this, e);
2939
2971
  }), X(e, l), Ze(c);
2940
2972
  }
2941
- Li(Ia, {
2973
+ Li(Ka, {
2942
2974
  isDropTarget: {},
2943
2975
  focused: {},
2944
2976
  label: {},
@@ -2948,12 +2980,12 @@ Li(Ia, {
2948
2980
  }, [], [], { mode: "open" });
2949
2981
  //#endregion
2950
2982
  //#region src/delivery/TeacherInstructions.svelte
2951
- var La = /* @__PURE__ */ Y("<div class=\"teacher-instructions pie-teacher-instructions svelte-1jhejbv\"><button type=\"button\" class=\"teacher-instructions-toggle pie-teacher-instructions-toggle svelte-1jhejbv\"> </button> <div class=\"teacher-instructions-content pie-teacher-instructions-content svelte-1jhejbv\"></div></div>"), Ra = {
2983
+ var qa = /* @__PURE__ */ Y("<div class=\"teacher-instructions pie-teacher-instructions svelte-1jhejbv\"><button type=\"button\" class=\"teacher-instructions-toggle pie-teacher-instructions-toggle svelte-1jhejbv\"> </button> <div class=\"teacher-instructions-content pie-teacher-instructions-content svelte-1jhejbv\"></div></div>"), Ja = {
2952
2984
  hash: "svelte-1jhejbv",
2953
2985
  code: ".teacher-instructions.svelte-1jhejbv {margin-bottom:1rem;}.teacher-instructions-toggle.svelte-1jhejbv {padding:0;border:0;border-bottom:1px dotted currentColor;background:transparent;font:inherit;color:var(--pie-primary, #3f51b5);cursor:pointer;}.teacher-instructions-toggle.svelte-1jhejbv:focus-visible {outline:2px solid var(--vc-focus-ring, #1565c0);outline-offset:2px;}.teacher-instructions-content.svelte-1jhejbv {padding-top:1rem;}"
2954
2986
  };
2955
- function za(e, t) {
2956
- Xe(t, !0), si(e, Ra);
2987
+ function Ya(e, t) {
2988
+ Xe(t, !0), si(e, Ja);
2957
2989
  let n = $(t, "html", 7), r = $(t, "language", 7), i = /* @__PURE__ */ z(!1), a = `venn-teacher-instructions-${Math.random().toString(36).slice(2, 10)}`;
2958
2990
  var o = {
2959
2991
  get html() {
@@ -2968,37 +3000,37 @@ function za(e, t) {
2968
3000
  set language(e) {
2969
3001
  r(e), R();
2970
3002
  }
2971
- }, c = La(), l = H(c), u = ln(l, !0), d = U(l, 2);
3003
+ }, c = qa(), l = H(c), u = ln(l, !0), d = U(l, 2);
2972
3004
  return oi(d, n, !0), N(d), N(c), W((e) => {
2973
3005
  Q(l, "aria-expanded", J(i)), Q(l, "aria-controls", a), zr(u, e), Q(d, "id", a), Q(d, "hidden", !J(i));
2974
3006
  }, [() => s(J(i) ? "hideTeacherInstructions" : "showTeacherInstructions", r())]), xr("click", l, () => B(i, !J(i))), X(e, c), Ze(o);
2975
3007
  }
2976
- Sr(["click"]), Li(za, {
3008
+ Sr(["click"]), Li(Ya, {
2977
3009
  html: {},
2978
3010
  language: {}
2979
3011
  }, [], [], { mode: "open" });
2980
3012
  //#endregion
2981
3013
  //#region src/delivery/layout.ts
2982
- var Ba = {
3014
+ var Xa = {
2983
3015
  w: 120,
2984
3016
  h: 52
2985
- }, Va = {
3017
+ }, Za = {
2986
3018
  w: 120,
2987
3019
  h: 84
2988
- }, Ha = .6;
2989
- function Ua(e) {
3020
+ }, Qa = .6;
3021
+ function $a(e) {
2990
3022
  return Math.min(1, 44 / Math.min(e.w, e.h));
2991
3023
  }
2992
- var Wa = {
3024
+ var eo = {
2993
3025
  side: 24,
2994
3026
  top: 40,
2995
3027
  radius: 236,
2996
3028
  centerDistance: 200,
2997
3029
  outsideGap: 12,
2998
3030
  outsideStripHeight: 136
2999
- }, Ga = .05;
3000
- function Ka(e = 1, t = 0) {
3001
- let n = Wa.side * e, r = Wa.radius * e, i = Wa.centerDistance * e, a = Wa.top * e + r, o = Wa.outsideGap * e, s = Math.max(Wa.outsideStripHeight * e, t);
3031
+ }, to = .05;
3032
+ function no(e = 1, t = 0) {
3033
+ let n = eo.side * e, r = eo.radius * e, i = eo.centerDistance * e, a = eo.top * e + r, o = eo.outsideGap * e, s = Math.max(eo.outsideStripHeight * e, t);
3002
3034
  return {
3003
3035
  width: 2 * n + 2 * r + i,
3004
3036
  height: a + r + o + s,
@@ -3016,37 +3048,37 @@ function Ka(e = 1, t = 0) {
3016
3048
  }]
3017
3049
  };
3018
3050
  }
3019
- function qa() {
3020
- return Ka();
3051
+ function ro() {
3052
+ return no();
3021
3053
  }
3022
- function Ja(e, t) {
3023
- return `min(100%, max(min(720px, ${Ha * 100 * e.width / e.height}vh), ${e.width * Ua(t)}px))`;
3054
+ function io(e, t) {
3055
+ return `min(100%, max(min(720px, ${Qa * 100 * e.width / e.height}vh), ${e.width * $a(t)}px))`;
3024
3056
  }
3025
- function Ya(e, t, n) {
3026
- return e > 0 ? Math.max(Ua(n), Math.min(1, e / t.width)) : 1;
3057
+ function ao(e, t, n) {
3058
+ return e > 0 ? Math.max($a(n), Math.min(1, e / t.width)) : 1;
3027
3059
  }
3028
- function Xa(e, t) {
3060
+ function oo(e, t) {
3029
3061
  return Math.max(0, Math.floor((e + 8) / (t.w + 8) + 1e-9));
3030
3062
  }
3031
- function Za(e, t) {
3063
+ function so(e, t) {
3032
3064
  return t > e.r ? -1 : Math.sqrt(e.r * e.r - t * t);
3033
3065
  }
3034
- function Qa(e, t, n) {
3035
- let r = Za(e, Math.max(Math.abs(t - e.cy), Math.abs(n - e.cy)));
3066
+ function co(e, t, n) {
3067
+ let r = so(e, Math.max(Math.abs(t - e.cy), Math.abs(n - e.cy)));
3036
3068
  return r < 0 ? null : [e.cx - r, e.cx + r];
3037
3069
  }
3038
- function $a(e, t, n) {
3039
- return Za(e, t <= e.cy && e.cy <= n ? 0 : Math.min(Math.abs(t - e.cy), Math.abs(n - e.cy)));
3070
+ function lo(e, t, n) {
3071
+ return so(e, t <= e.cy && e.cy <= n ? 0 : Math.min(Math.abs(t - e.cy), Math.abs(n - e.cy)));
3040
3072
  }
3041
- function eo(e, t, n, r, i) {
3042
- let a = Qa(t, r, i), o = Qa(n, r, i), s, c;
3073
+ function uo(e, t, n, r, i) {
3074
+ let a = co(t, r, i), o = co(n, r, i), s, c;
3043
3075
  if (e === "0") {
3044
3076
  if (!a) return null;
3045
- let e = $a(n, r, i);
3077
+ let e = lo(n, r, i);
3046
3078
  [s, c] = [a[0], e < 0 ? a[1] : Math.min(a[1], n.cx - e)];
3047
3079
  } else if (e === "1") {
3048
3080
  if (!o) return null;
3049
- let e = $a(t, r, i);
3081
+ let e = lo(t, r, i);
3050
3082
  [s, c] = [e < 0 ? o[0] : Math.max(o[0], t.cx + e), o[1]];
3051
3083
  } else {
3052
3084
  if (!a || !o) return null;
@@ -3054,14 +3086,14 @@ function eo(e, t, n, r, i) {
3054
3086
  }
3055
3087
  return c > s ? [s, c] : null;
3056
3088
  }
3057
- function to(e, t, n, r) {
3089
+ function fo(e, t, n, r) {
3058
3090
  let i = r.h + 8, a = t.cy, o = Math.max(t.r, n.r);
3059
3091
  return [0, .5].map((s) => {
3060
3092
  let c = [], l = Math.ceil(o / i) + 1;
3061
3093
  for (let o = -l; o <= l; o++) {
3062
- let l = a + (o + s) * i, u = eo(e, t, n, l - r.h / 2 - 6, l + r.h / 2 + 6);
3094
+ let l = a + (o + s) * i, u = uo(e, t, n, l - r.h / 2 - 6, l + r.h / 2 + 6);
3063
3095
  if (!u) continue;
3064
- let d = u[0] + 6, f = u[1] - 6, p = Xa(f - d, r);
3096
+ let d = u[0] + 6, f = u[1] - 6, p = oo(f - d, r);
3065
3097
  p > 0 && c.push({
3066
3098
  y: l,
3067
3099
  lo: d,
@@ -3072,11 +3104,11 @@ function to(e, t, n, r) {
3072
3104
  return c;
3073
3105
  });
3074
3106
  }
3075
- function no(e) {
3107
+ function po(e) {
3076
3108
  return e.reduce((e, t) => e + t.n, 0);
3077
3109
  }
3078
- function ro(e, t, n) {
3079
- let r = e.width - 6, i = Xa(r - 6, n), a = n.h + 8, o = e.height - t, s = i * Math.max(0, Math.floor((o - 12 + 8) / a + 1e-9)), c = {
3110
+ function mo(e, t, n) {
3111
+ let r = e.width - 6, i = oo(r - 6, n), a = n.h + 8, o = e.height - t, s = i * Math.max(0, Math.floor((o - 12 + 8) / a + 1e-9)), c = {
3080
3112
  x: e.width / 2,
3081
3113
  y: t + o / 2
3082
3114
  };
@@ -3085,7 +3117,7 @@ function ro(e, t, n) {
3085
3117
  slots: (e) => {
3086
3118
  if (e <= 0) return [];
3087
3119
  let l = Math.min(e, s), u = i > 0 ? Math.ceil(l / i) : 0, d = t + (o - (u * a - 8)) / 2;
3088
- return co(so(Array.from({ length: u }, (e, t) => ({
3120
+ return yo(vo(Array.from({ length: u }, (e, t) => ({
3089
3121
  y: d + n.h / 2 + t * a,
3090
3122
  lo: 6,
3091
3123
  hi: r,
@@ -3094,20 +3126,20 @@ function ro(e, t, n) {
3094
3126
  }
3095
3127
  };
3096
3128
  }
3097
- function io(e) {
3129
+ function ho(e) {
3098
3130
  return {
3099
3131
  x: e.x + e.w / 2,
3100
3132
  y: e.y + e.h / 2
3101
3133
  };
3102
3134
  }
3103
- function ao(e, t, n) {
3135
+ function go(e, t, n) {
3104
3136
  let r = t * n.w + (t - 1) * 8, i = (e.lo + e.hi) / 2 - r / 2 + n.w / 2;
3105
3137
  return Array.from({ length: t }, (t, r) => ({
3106
3138
  x: i + r * (n.w + 8),
3107
3139
  y: e.y
3108
3140
  }));
3109
3141
  }
3110
- function oo(e, t, n) {
3142
+ function _o(e, t, n) {
3111
3143
  let r = [...e].sort((e, n) => Math.abs(e.y - t) - Math.abs(n.y - t) || e.y - n.y), i = [], a = 0;
3112
3144
  for (let e of r) {
3113
3145
  if (a >= n) break;
@@ -3115,39 +3147,39 @@ function oo(e, t, n) {
3115
3147
  }
3116
3148
  return i.sort((e, t) => e.y - t.y);
3117
3149
  }
3118
- function so(e, t, n) {
3150
+ function vo(e, t, n) {
3119
3151
  let r = [], i = t;
3120
3152
  for (let t of e) {
3121
3153
  let e = Math.min(t.n, i);
3122
- r.push(...ao(t, e, n)), i -= e;
3154
+ r.push(...go(t, e, n)), i -= e;
3123
3155
  }
3124
3156
  return r;
3125
3157
  }
3126
- function co(e, t, n) {
3158
+ function yo(e, t, n) {
3127
3159
  let r = e[e.length - 1] ?? n;
3128
3160
  for (; e.length < t;) e.push({ ...r });
3129
3161
  return e;
3130
3162
  }
3131
- function lo(e, t, n, r) {
3132
- let i = Math.max(...e.map(no));
3163
+ function bo(e, t, n, r) {
3164
+ let i = Math.max(...e.map(po));
3133
3165
  return (a) => {
3134
3166
  if (a <= 0) return [];
3135
3167
  let o = Math.min(a, i), s = null, c = [Infinity, Infinity];
3136
3168
  for (let n of e) {
3137
- if (no(n) < o) continue;
3138
- let e = oo(n, t, o), r = Math.abs(e.reduce((e, t) => e + t.y, 0) / e.length - t), i = [e.length, r];
3169
+ if (po(n) < o) continue;
3170
+ let e = _o(n, t, o), r = Math.abs(e.reduce((e, t) => e + t.y, 0) / e.length - t), i = [e.length, r];
3139
3171
  (i[0] < c[0] || i[0] === c[0] && i[1] < c[1] - 1e-9) && (s = e, c = i);
3140
3172
  }
3141
- return co(s ? so(s, o, n) : [], a, r);
3173
+ return yo(s ? vo(s, o, n) : [], a, r);
3142
3174
  };
3143
3175
  }
3144
- function uo(e, t, n) {
3176
+ function xo(e, t, n) {
3145
3177
  let r = t.cy, i = 0, a = Math.min(t.r, n.r);
3146
3178
  for (let o = 0; o < 40; o++) {
3147
- let o = (i + a) / 2, s = eo(e, t, n, r - o, r + o);
3179
+ let o = (i + a) / 2, s = uo(e, t, n, r - o, r + o);
3148
3180
  s && s[1] - s[0] >= 2 * o ? i = o : a = o;
3149
3181
  }
3150
- let o = eo(e, t, n, r - i, r + i) ?? [0, 0];
3182
+ let o = uo(e, t, n, r - i, r + i) ?? [0, 0];
3151
3183
  return {
3152
3184
  x: o[0] + 1,
3153
3185
  y: r - i + 1,
@@ -3155,26 +3187,26 @@ function uo(e, t, n) {
3155
3187
  h: 2 * i - 2
3156
3188
  };
3157
3189
  }
3158
- function fo(e, t, n) {
3190
+ function So(e, t, n) {
3159
3191
  let [r, i] = t.circles;
3160
- return Math.max(...to(e, r, i, n).map(no));
3192
+ return Math.max(...fo(e, r, i, n).map(po));
3161
3193
  }
3162
- var po = [
3194
+ var Co = [
3163
3195
  "0",
3164
3196
  "0,1",
3165
3197
  "1"
3166
3198
  ];
3167
- function mo(e, t = Ba) {
3168
- let n = Ka();
3199
+ function wo(e, t = Xa) {
3200
+ let n = no();
3169
3201
  for (let r = 1;; r++) {
3170
3202
  let i = n;
3171
- if (po.every((n) => fo(n, i, t) >= (e[n] ?? 0))) break;
3172
- n = Ka(1 + r * Ga);
3203
+ if (Co.every((n) => So(n, i, t) >= (e[n] ?? 0))) break;
3204
+ n = no(1 + r * to);
3173
3205
  }
3174
- let r = e[""] ?? 0, i = Xa(n.width - 12, t), a = Math.ceil(r / i) * (t.h + 8) - 8 + 12;
3175
- return a > n.outsideStripHeight ? Ka(n.scale, a) : n;
3206
+ let r = e[""] ?? 0, i = oo(n.width - 12, t), a = Math.ceil(r / i) * (t.h + 8) - 8 + 12;
3207
+ return a > n.outsideStripHeight ? no(n.scale, a) : n;
3176
3208
  }
3177
- function ho(e, t = qa(), n = Ba) {
3209
+ function To(e, t = ro(), n = Xa) {
3178
3210
  if (e.circles?.length !== 2) throw Error(`buildLayout2Set requires exactly 2 circles (got ${e.circles?.length ?? 0})`);
3179
3211
  let [a, s] = t.circles, c = i(2), l = Math.max(a.cy + a.r, s.cy + s.r), u = Math.min(t.height - t.outsideStripHeight, l + t.outsideGap), d = (e, t, n) => (r, i) => {
3180
3212
  let a = r - e, o = i - t;
@@ -3190,11 +3222,11 @@ function ho(e, t = qa(), n = Ba) {
3190
3222
  y: u,
3191
3223
  w: t.width,
3192
3224
  h: t.height - u
3193
- }, {capacity: g, slots: _} = ro(t, u, n);
3225
+ }, {capacity: g, slots: _} = mo(t, u, n);
3194
3226
  else if (c === "0" || c === "1" || c === "0,1") {
3195
- d = c === "0" ? (e, t) => f(e, t) && !p(e, t) : c === "1" ? (e, t) => p(e, t) && !f(e, t) : (e, t) => f(e, t) && p(e, t), h = uo(c, a, s);
3196
- let e = to(c, a, s, n);
3197
- g = Math.max(...e.map(no)), _ = lo(e, a.cy, n, io(h));
3227
+ d = c === "0" ? (e, t) => f(e, t) && !p(e, t) : c === "1" ? (e, t) => p(e, t) && !f(e, t) : (e, t) => f(e, t) && p(e, t), h = xo(c, a, s);
3228
+ let e = fo(c, a, s, n);
3229
+ g = Math.max(...e.map(po)), _ = bo(e, a.cy, n, ho(h));
3198
3230
  } else d = () => !1, h = {
3199
3231
  x: 0,
3200
3232
  y: 0,
@@ -3216,7 +3248,7 @@ function ho(e, t = qa(), n = Ba) {
3216
3248
  outsideStripTop: u
3217
3249
  };
3218
3250
  }
3219
- function go(e, t, n) {
3251
+ function Eo(e, t, n) {
3220
3252
  for (let r of [
3221
3253
  "0,1",
3222
3254
  "0",
@@ -3230,7 +3262,7 @@ function go(e, t, n) {
3230
3262
  }
3231
3263
  //#endregion
3232
3264
  //#region src/delivery/dnd.ts
3233
- function _o({ model: t, session: r, tileId: i, placement: o }) {
3265
+ function Do({ model: t, session: r, tileId: i, placement: o }) {
3234
3266
  let s = a(r, t), c = {
3235
3267
  ...s,
3236
3268
  placements: {
@@ -3240,19 +3272,19 @@ function _o({ model: t, session: r, tileId: i, placement: o }) {
3240
3272
  };
3241
3273
  return c.completed = n(t, c), c;
3242
3274
  }
3243
- function vo(t, n) {
3275
+ function Oo(t, n) {
3244
3276
  let r = t?.placements?.[n];
3245
3277
  return Array.isArray(r) ? e(r) : null;
3246
3278
  }
3247
- function yo(e, t, n) {
3248
- let r = vo(e, t);
3279
+ function ko(e, t, n) {
3280
+ let r = Oo(e, t);
3249
3281
  return r === null || n === null ? r === n : c(r, n);
3250
3282
  }
3251
- function bo(e, t) {
3283
+ function Ao(e, t) {
3252
3284
  let n = t?.placements ?? {};
3253
3285
  return (e.tiles || []).filter((e) => n[e.id] == null);
3254
3286
  }
3255
- function xo(t, n) {
3287
+ function jo(t, n) {
3256
3288
  let r = n?.placements ?? {}, i = {};
3257
3289
  for (let n of t.tiles || []) {
3258
3290
  let t = r[n.id];
@@ -3264,12 +3296,12 @@ function xo(t, n) {
3264
3296
  }
3265
3297
  //#endregion
3266
3298
  //#region src/delivery/VennClassification.svelte
3267
- var So = /* @__PURE__ */ Y("<div class=\"venn-prompt svelte-gkcqor\"></div>"), Co = /* @__PURE__ */ jr("<svg class=\"toggle-icon svelte-gkcqor\" preserveAspectRatio=\"xMinYMin meet\" version=\"1.1\" viewBox=\"-283 359 34 35\" aria-hidden=\"true\"><circle cx=\"-266\" cy=\"375.9\" r=\"14\" fill=\"#bce2ff\"></circle><path d=\"M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z\" fill=\"#bce2ff\"></path><polygon points=\"-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6\" fill=\"#1a9cff\"></polygon></svg>"), wo = /* @__PURE__ */ jr("<svg class=\"toggle-icon svelte-gkcqor\" preserveAspectRatio=\"xMinYMin meet\" version=\"1.1\" viewBox=\"-129.5 127 34 35\" aria-hidden=\"true\"><path style=\"fill: #D0CAC5; stroke: #E6E3E0; stroke-width: 0.75; stroke-miterlimit: 10;\" d=\"M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5 C-97.4,153.5-104.3,160.4-112.9,160.4z\"></path><path style=\"fill: #B3ABA4; stroke: #CDC7C2; stroke-width: 0.5; stroke-miterlimit: 10;\" d=\"M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z\"></path><circle cx=\"-114.2\" cy=\"143.5\" r=\"14\" fill=\"white\"></circle><path d=\"M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z\" fill=\"#bce2ff\"></path><polygon points=\"-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2\" fill=\"#1a9cff\"></polygon></svg>"), To = /* @__PURE__ */ Y("<button type=\"button\" class=\"toggle-correct svelte-gkcqor\"><!> <span class=\"toggle-label svelte-gkcqor\"> </span></button>"), Eo = /* @__PURE__ */ Y("<div class=\"venn-error svelte-gkcqor\" role=\"alert\"> </div>"), Do = /* @__PURE__ */ jr("<circle fill=\"rgba(14, 165, 233, 0.12)\"></circle>"), Oo = /* @__PURE__ */ jr("<rect x=\"0\" y=\"0\"></rect>"), ko = /* @__PURE__ */ jr("<circle></circle>"), Ao = /* @__PURE__ */ jr("<circle fill=\"none\" stroke=\"#1e293b\"></circle>"), jo = /* @__PURE__ */ jr("<text font-weight=\"600\" fill=\"#0f172a\"> </text>"), Mo = /* @__PURE__ */ Y("<div class=\"region-aria svelte-gkcqor\" role=\"region\"></div>"), No = /* @__PURE__ */ Y("<div class=\"tile-wrapper svelte-gkcqor\"><!></div>"), Po = /* @__PURE__ */ Y("<div class=\"venn-diagram svelte-gkcqor\"><svg preserveAspectRatio=\"xMidYMid meet\" aria-hidden=\"true\" class=\"svelte-gkcqor\"><defs><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"black\"></rect><circle fill=\"white\"></circle><circle fill=\"black\"></circle></mask><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"black\"></rect><circle fill=\"white\"></circle><circle fill=\"black\"></circle></mask><clipPath clipPathUnits=\"userSpaceOnUse\"><circle></circle></clipPath><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"white\"></rect><circle fill=\"black\"></circle><circle fill=\"black\"></circle></mask></defs><rect fill=\"#ffffff\" stroke=\"#cbd5e1\"></rect><!><!><!><!><!><!><!><line stroke=\"#cbd5e1\"></line></svg> <div class=\"region-labels svelte-gkcqor\" aria-hidden=\"false\"></div> <div class=\"placed-tiles svelte-gkcqor\"></div></div> <!>", 1), Fo = /* @__PURE__ */ Y("<div class=\"drag-ghost svelte-gkcqor\"><!></div>"), Io = /* @__PURE__ */ Y("<div class=\"venn-root svelte-gkcqor\"><!> <!> <!> <!> <!> <div class=\"sr-only svelte-gkcqor\" aria-live=\"polite\" aria-atomic=\"true\"></div></div>"), Lo = {
3299
+ var Mo = /* @__PURE__ */ Y("<div class=\"venn-prompt svelte-gkcqor\"></div>"), No = /* @__PURE__ */ jr("<svg class=\"toggle-icon svelte-gkcqor\" preserveAspectRatio=\"xMinYMin meet\" version=\"1.1\" viewBox=\"-283 359 34 35\" aria-hidden=\"true\"><circle cx=\"-266\" cy=\"375.9\" r=\"14\" fill=\"#bce2ff\"></circle><path d=\"M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z\" fill=\"#bce2ff\"></path><polygon points=\"-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6\" fill=\"#1a9cff\"></polygon></svg>"), Po = /* @__PURE__ */ jr("<svg class=\"toggle-icon svelte-gkcqor\" preserveAspectRatio=\"xMinYMin meet\" version=\"1.1\" viewBox=\"-129.5 127 34 35\" aria-hidden=\"true\"><path style=\"fill: #D0CAC5; stroke: #E6E3E0; stroke-width: 0.75; stroke-miterlimit: 10;\" d=\"M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5 C-97.4,153.5-104.3,160.4-112.9,160.4z\"></path><path style=\"fill: #B3ABA4; stroke: #CDC7C2; stroke-width: 0.5; stroke-miterlimit: 10;\" d=\"M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z\"></path><circle cx=\"-114.2\" cy=\"143.5\" r=\"14\" fill=\"white\"></circle><path d=\"M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z\" fill=\"#bce2ff\"></path><polygon points=\"-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2\" fill=\"#1a9cff\"></polygon></svg>"), Fo = /* @__PURE__ */ Y("<button type=\"button\" class=\"toggle-correct svelte-gkcqor\"><!> <span class=\"toggle-label svelte-gkcqor\"> </span></button>"), Io = /* @__PURE__ */ Y("<div class=\"venn-error svelte-gkcqor\" role=\"alert\"> </div>"), Lo = /* @__PURE__ */ jr("<circle fill=\"rgba(14, 165, 233, 0.12)\"></circle>"), Ro = /* @__PURE__ */ jr("<rect x=\"0\" y=\"0\"></rect>"), zo = /* @__PURE__ */ jr("<circle></circle>"), Bo = /* @__PURE__ */ jr("<circle fill=\"none\" stroke=\"#1e293b\"></circle>"), Vo = /* @__PURE__ */ jr("<text font-weight=\"600\" fill=\"#0f172a\"> </text>"), Ho = /* @__PURE__ */ Y("<div class=\"region-aria svelte-gkcqor\" role=\"region\"></div>"), Uo = /* @__PURE__ */ Y("<div class=\"tile-wrapper svelte-gkcqor\"><!></div>"), Wo = /* @__PURE__ */ Y("<div class=\"venn-diagram svelte-gkcqor\"><svg preserveAspectRatio=\"xMidYMid meet\" aria-hidden=\"true\" class=\"svelte-gkcqor\"><defs><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"black\"></rect><circle fill=\"white\"></circle><circle fill=\"black\"></circle></mask><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"black\"></rect><circle fill=\"white\"></circle><circle fill=\"black\"></circle></mask><clipPath clipPathUnits=\"userSpaceOnUse\"><circle></circle></clipPath><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"white\"></rect><circle fill=\"black\"></circle><circle fill=\"black\"></circle></mask></defs><rect fill=\"#ffffff\" stroke=\"#cbd5e1\"></rect><!><!><!><!><!><!><!><line stroke=\"#cbd5e1\"></line></svg> <div class=\"region-labels svelte-gkcqor\" aria-hidden=\"false\"></div> <div class=\"placed-tiles svelte-gkcqor\"></div></div> <!>", 1), Go = /* @__PURE__ */ Y("<div class=\"drag-ghost svelte-gkcqor\"><!></div>"), Ko = /* @__PURE__ */ Y("<div class=\"venn-root svelte-gkcqor\"><!> <!> <!> <!> <!> <div class=\"sr-only svelte-gkcqor\" aria-live=\"polite\" aria-atomic=\"true\"></div></div>"), qo = {
3268
3300
  hash: "svelte-gkcqor",
3269
3301
  code: ".venn-root.svelte-gkcqor {display:flex;flex-direction:column;gap:16px;padding:16px;color:#0f172a;font-family:system-ui, -apple-system, Segoe UI, Roboto, sans-serif;--vc-focus-ring: var(\n --pie-focus-outline,\n var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565c0))\n );}.venn-prompt.svelte-gkcqor {font-size:16px;line-height:1.5;}.venn-prompt.svelte-gkcqor p {margin:0 0 8px 0;}.toggle-correct.svelte-gkcqor {align-self:center;display:inline-flex;align-items:center;gap:8px;margin:0 0 4px 0;padding:0;background:transparent;border:0;color:inherit;font:inherit;font-size:14px;cursor:pointer;user-select:none;}.toggle-correct.svelte-gkcqor:focus-visible {outline:2px solid var(--vc-focus-ring, #1565c0);outline-offset:2px;border-radius:2px;}.toggle-icon.svelte-gkcqor {width:25px;height:25px;flex-shrink:0;}.toggle-label.svelte-gkcqor {line-height:1.2;}.toggle-correct.svelte-gkcqor:hover .toggle-label:where(.svelte-gkcqor),\n .toggle-correct.svelte-gkcqor:focus-visible .toggle-label:where(.svelte-gkcqor) {text-decoration:underline;}.venn-diagram.svelte-gkcqor {\n /*\n * Width and aspect ratio come from the geometry, inline. The width cap\n * keeps the diagram from dominating wide layouts, and the viewport-height\n * share keeps the prompt, toggle and tray in view in short windows, down\n * to the width that keeps tiles at 44 px (`diagramCssWidth`).\n */position:relative;margin:0 auto;}.venn-diagram.svelte-gkcqor svg:where(.svelte-gkcqor) {width:100%;height:100%;display:block;}.placed-tiles.svelte-gkcqor,\n .region-labels.svelte-gkcqor {position:absolute;inset:0;pointer-events:none;}.tile-wrapper.svelte-gkcqor {position:absolute;display:flex;pointer-events:auto;}.region-aria.svelte-gkcqor {position:absolute;width:1px;height:1px;transform:translate(-50%, -50%);opacity:0;pointer-events:none;}.venn-error.svelte-gkcqor {padding:12px 16px;border:1.5px solid #bf0d00;border-radius:8px;background:#fef2f2;color:#7f1d1d;font-size:14px;}\n /* Tailwind's `sr-only`, scoped: PIE players ship no Tailwind. */.sr-only.svelte-gkcqor {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}.drag-ghost.svelte-gkcqor {position:fixed;top:0;left:0;transform:translate(-50%, -50%);pointer-events:none;z-index:1000;}"
3270
3302
  };
3271
- function Ro(e, n) {
3272
- Xe(n, !0), si(e, Lo);
3303
+ function Jo(e, n) {
3304
+ Xe(n, !0), si(e, qo);
3273
3305
  let r = [{ label: "Set A" }, { label: "Set B" }], i = `venn-${Math.random().toString(36).slice(2, 10)}`, a = `${i}-mask-left-only`, c = `${i}-mask-right-only`, l = `${i}-mask-outside`, u = `${i}-clip-left`, d = null, f = /* @__PURE__ */ z(null), p = null, m = /* @__PURE__ */ z(!1), h = /* @__PURE__ */ z(null), g = /* @__PURE__ */ z(null), _ = /* @__PURE__ */ z(null), v = /* @__PURE__ */ z(null), y = /* @__PURE__ */ z(0), b = null, x = null, S = /* @__PURE__ */ I(() => n?.model?.circles ?? r), ee = /* @__PURE__ */ I(() => J(S).length === 2), C = /* @__PURE__ */ I(() => n?.model?.language), w = /* @__PURE__ */ I(() => ({
3274
3306
  circles: J(S),
3275
3307
  tiles: n?.model?.tiles ?? [],
@@ -3277,7 +3309,7 @@ function Ro(e, n) {
3277
3309
  language: J(C),
3278
3310
  scoringPolicy: "partialPerTile",
3279
3311
  promptEnabled: !0
3280
- })), te = /* @__PURE__ */ I(() => n?.model?.env?.mode === "evaluate"), ne = /* @__PURE__ */ I(() => n?.model?.disabled === !0), re = /* @__PURE__ */ I(() => n?.model?.prompt ?? null), T = /* @__PURE__ */ I(() => de(n?.session, n?.model, J(m))), E = /* @__PURE__ */ I(() => ({ placements: J(T) })), ae = /* @__PURE__ */ I(() => xo(J(w), J(E))), oe = /* @__PURE__ */ I(() => bo(J(w), J(E))), se = /* @__PURE__ */ I(() => (J(w).tiles ?? []).some((e) => (e.imageUrl ?? "").trim()) ? Va : Ba), D = /* @__PURE__ */ I(() => mo(Object.fromEntries(Object.entries(J(ae)).map(([e, t]) => [e, t.length])), J(se))), ce = /* @__PURE__ */ I(() => J(ee) ? ho(J(w), J(D), J(se)) : null), le = /* @__PURE__ */ I(() => Ya(J(y), J(D), J(se))), O = /* @__PURE__ */ I(() => [
3312
+ })), te = /* @__PURE__ */ I(() => n?.model?.env?.mode === "evaluate"), ne = /* @__PURE__ */ I(() => n?.model?.disabled === !0), re = /* @__PURE__ */ I(() => n?.model?.prompt ?? null), T = /* @__PURE__ */ I(() => de(n?.session, n?.model, J(m))), E = /* @__PURE__ */ I(() => ({ placements: J(T) })), ae = /* @__PURE__ */ I(() => jo(J(w), J(E))), oe = /* @__PURE__ */ I(() => Ao(J(w), J(E))), se = /* @__PURE__ */ I(() => (J(w).tiles ?? []).some((e) => (e.imageUrl ?? "").trim()) ? Za : Xa), D = /* @__PURE__ */ I(() => wo(Object.fromEntries(Object.entries(J(ae)).map(([e, t]) => [e, t.length])), J(se))), ce = /* @__PURE__ */ I(() => J(ee) ? To(J(w), J(D), J(se)) : null), le = /* @__PURE__ */ I(() => ao(J(y), J(D), J(se))), O = /* @__PURE__ */ I(() => [
3281
3313
  "0",
3282
3314
  "0,1",
3283
3315
  "1",
@@ -3321,7 +3353,7 @@ function Ro(e, n) {
3321
3353
  };
3322
3354
  }
3323
3355
  function me(e, t) {
3324
- let r = _o({
3356
+ let r = Do({
3325
3357
  model: J(w),
3326
3358
  session: n?.session,
3327
3359
  tileId: e,
@@ -3345,8 +3377,8 @@ function Ro(e, n) {
3345
3377
  b?.(), J(h) !== null && ve();
3346
3378
  }
3347
3379
  function be(e, r) {
3348
- let i = Ta(e, J(C)), a = r === "tray" ? null : r === null ? void 0 : ge(r)?.region;
3349
- if (a === void 0 || yo(n?.session, e.id, a)) {
3380
+ let i = Fa(e, J(C)), a = r === "tray" ? null : r === null ? void 0 : ge(r)?.region;
3381
+ if (a === void 0 || ko(n?.session, e.id, a)) {
3350
3382
  k(t("cancelled", J(C)));
3351
3383
  return;
3352
3384
  }
@@ -3360,7 +3392,7 @@ function Ro(e, n) {
3360
3392
  n.preventDefault(), b?.(), n.currentTarget.setPointerCapture?.(n.pointerId), B(h, e.id, !0), B(_, null), B(v, {
3361
3393
  x: n.clientX,
3362
3394
  y: n.clientY
3363
- }, !0), B(g, Se(n.clientX, n.clientY), !0), k(t("pickedUp", J(C), { name: Ta(e, J(C)) }));
3395
+ }, !0), B(g, Se(n.clientX, n.clientY), !0), k(t("pickedUp", J(C), { name: Fa(e, J(C)) }));
3364
3396
  let r = (e) => {
3365
3397
  B(v, {
3366
3398
  x: e.clientX,
@@ -3381,7 +3413,7 @@ function Ro(e, n) {
3381
3413
  if (Ce(e, t)) return "tray";
3382
3414
  let n = pe(e, t);
3383
3415
  if (!n || !J(ce)) return null;
3384
- let r = go(J(ce), n.x, n.y);
3416
+ let r = Eo(J(ce), n.x, n.y);
3385
3417
  return r ? r.key : null;
3386
3418
  }
3387
3419
  function Ce(e, t) {
@@ -3403,9 +3435,9 @@ function Ro(e, n) {
3403
3435
  let t = J(_);
3404
3436
  ve(), be(e, t), we(e.id);
3405
3437
  } else {
3406
- let n = vo(J(E), e.id), r = n === null ? J(O)[0] ?? null : o(n);
3438
+ let n = Oo(J(E), e.id), r = n === null ? J(O)[0] ?? null : o(n);
3407
3439
  B(h, e.id, !0), B(_, r, !0), k(t("pickedUpWithKeyboard", J(C), {
3408
- name: Ta(e, J(C)),
3440
+ name: Fa(e, J(C)),
3409
3441
  target: _e(r ?? "")
3410
3442
  }));
3411
3443
  }
@@ -3457,7 +3489,7 @@ function Ro(e, n) {
3457
3489
  if (!d) return;
3458
3490
  let e = (e) => console.warn("venn-classification: MathJax render failed", e);
3459
3491
  try {
3460
- Promise.resolve(Ca(d)).catch(e);
3492
+ Promise.resolve(Na(d)).catch(e);
3461
3493
  } catch (t) {
3462
3494
  e(t);
3463
3495
  }
@@ -3468,8 +3500,8 @@ function Ro(e, n) {
3468
3500
  J(T), J(w).tiles?.length, fr().then(M);
3469
3501
  });
3470
3502
  let ke = /* @__PURE__ */ I(() => J(te) ? Object.values(n?.model?.correctness ?? {}).filter((e) => e === "incorrect" || e === "unanswered").length : 0), Ae = /* @__PURE__ */ I(() => J(h) === null ? J(g) ?? null : J(g) ?? J(_) ?? null), je = /* @__PURE__ */ I(() => J(Ae) === "0"), Me = /* @__PURE__ */ I(() => J(Ae) === "1"), Ne = /* @__PURE__ */ I(() => J(Ae) === "0,1"), Pe = /* @__PURE__ */ I(() => J(Ae) === ""), Fe = "rgba(37, 99, 235, 0.18)", Ie = /* @__PURE__ */ I(() => J(h) !== null && J(v) !== null ? he(J(h)) : null);
3471
- var Le = Io(), Re = H(Le), ze = (e) => {
3472
- za(e, {
3503
+ var Le = Ko(), Re = H(Le), ze = (e) => {
3504
+ Ya(e, {
3473
3505
  get html() {
3474
3506
  return n.model.teacherInstructions;
3475
3507
  },
@@ -3482,17 +3514,17 @@ function Ro(e, n) {
3482
3514
  n?.model?.teacherInstructions && e(ze);
3483
3515
  });
3484
3516
  var Be = U(Re, 2), Ve = (e) => {
3485
- var t = So();
3517
+ var t = Mo();
3486
3518
  oi(t, () => J(re), !0), N(t), X(e, t);
3487
3519
  };
3488
3520
  Z(Be, (e) => {
3489
3521
  J(re) && e(Ve);
3490
3522
  });
3491
3523
  var He = U(Be, 2), Ue = (e) => {
3492
- var t = To(), n = H(t), r = (e) => {
3493
- X(e, Co());
3524
+ var t = Fo(), n = H(t), r = (e) => {
3525
+ X(e, No());
3494
3526
  }, i = (e) => {
3495
- X(e, wo());
3527
+ X(e, Po());
3496
3528
  };
3497
3529
  Z(n, (e) => {
3498
3530
  J(m) ? e(r) : e(i, -1);
@@ -3506,13 +3538,13 @@ function Ro(e, n) {
3506
3538
  J(te) && J(ke) > 0 && e(Ue);
3507
3539
  });
3508
3540
  var We = U(He, 2), Ge = (e) => {
3509
- var n = Eo(), r = ln(n, !0);
3541
+ var n = Io(), r = ln(n, !0);
3510
3542
  W((e) => zr(r, e), [() => t("unsupportedCircles", J(C), {
3511
3543
  count: J(S).length,
3512
3544
  supported: 2
3513
3545
  })]), X(e, n);
3514
3546
  }, Ke = (e) => {
3515
- var n = Po(), r = cn(n);
3547
+ var n = Wo(), r = cn(n);
3516
3548
  let i;
3517
3549
  var o = H(r), s = H(o), d = H(s), p = H(d), m = U(p), b = U(m);
3518
3550
  N(d);
@@ -3522,13 +3554,13 @@ function Ro(e, n) {
3522
3554
  N(E), N(s);
3523
3555
  var k = U(s), pe = U(k);
3524
3556
  ei(pe, 17, () => J(D).circles, Xr, (e, t) => {
3525
- var n = Do();
3557
+ var n = Lo();
3526
3558
  W(() => {
3527
3559
  Q(n, "cx", J(t).cx), Q(n, "cy", J(t).cy), Q(n, "r", J(t).r);
3528
3560
  }), X(e, n);
3529
3561
  });
3530
3562
  var me = U(pe), he = (e) => {
3531
- var t = Oo();
3563
+ var t = Ro();
3532
3564
  Q(t, "fill", Fe), W(() => {
3533
3565
  Q(t, "width", J(D).width), Q(t, "height", J(D).height), Q(t, "mask", `url(#${a})`);
3534
3566
  }), X(e, t);
@@ -3537,7 +3569,7 @@ function Ro(e, n) {
3537
3569
  J(je) && e(he);
3538
3570
  });
3539
3571
  var ge = U(me), _e = (e) => {
3540
- var t = Oo();
3572
+ var t = Ro();
3541
3573
  Q(t, "fill", Fe), W(() => {
3542
3574
  Q(t, "width", J(D).width), Q(t, "height", J(D).height), Q(t, "mask", `url(#${c})`);
3543
3575
  }), X(e, t);
@@ -3546,7 +3578,7 @@ function Ro(e, n) {
3546
3578
  J(Me) && e(_e);
3547
3579
  });
3548
3580
  var ve = U(ge), ye = (e) => {
3549
- var t = ko();
3581
+ var t = zo();
3550
3582
  Q(t, "fill", Fe), W(() => {
3551
3583
  Q(t, "cx", J(D).circles[1].cx), Q(t, "cy", J(D).circles[1].cy), Q(t, "r", J(D).circles[1].r), Q(t, "clip-path", `url(#${u})`);
3552
3584
  }), X(e, t);
@@ -3555,7 +3587,7 @@ function Ro(e, n) {
3555
3587
  J(Ne) && e(ye);
3556
3588
  });
3557
3589
  var be = U(ve), Se = (e) => {
3558
- var t = Oo();
3590
+ var t = Ro();
3559
3591
  Q(t, "fill", Fe), W(() => {
3560
3592
  Q(t, "width", J(D).width), Q(t, "height", J(D).height), Q(t, "mask", `url(#${l})`);
3561
3593
  }), X(e, t);
@@ -3565,14 +3597,14 @@ function Ro(e, n) {
3565
3597
  });
3566
3598
  var Ce = U(be);
3567
3599
  ei(Ce, 17, () => J(D).circles, Xr, (e, t) => {
3568
- var n = Ao();
3600
+ var n = Bo();
3569
3601
  W(() => {
3570
3602
  Q(n, "cx", J(t).cx), Q(n, "cy", J(t).cy), Q(n, "r", J(t).r), Q(n, "stroke-width", 2 * J(D).scale);
3571
3603
  }), X(e, n);
3572
3604
  });
3573
3605
  var we = U(Ce);
3574
3606
  ei(we, 17, () => J(D).circles, Xr, (e, t, n) => {
3575
- var r = jo();
3607
+ var r = Vo();
3576
3608
  Q(r, "text-anchor", n === 0 ? "start" : "end");
3577
3609
  var i = ln(r, !0);
3578
3610
  W((e, t) => {
@@ -3584,7 +3616,7 @@ function Ro(e, n) {
3584
3616
  var Oe = U(o, 2);
3585
3617
  ei(Oe, 21, () => J(ce).regions, Xr, (e, t) => {
3586
3618
  let n = /* @__PURE__ */ I(() => fe(J(t).hitRect.x + J(t).hitRect.w / 2, J(t).hitRect.y + J(t).hitRect.h / 2));
3587
- var r = Mo();
3619
+ var r = Ho();
3588
3620
  W(() => {
3589
3621
  Q(r, "aria-label", J(t).label), Q(r, "data-region-key", J(t).key), hi(r, `left: ${J(n).left ?? ""}%; top: ${J(n).top ?? ""}%;`);
3590
3622
  }), X(e, r);
@@ -3598,10 +3630,10 @@ function Ro(e, n) {
3598
3630
  var n = Mr();
3599
3631
  ei(cn(n), 19, i, (e) => e.id, (e, n, r) => {
3600
3632
  let i = /* @__PURE__ */ I(() => fe(J(t)[J(r)].x, J(t)[J(r)].y));
3601
- var o = No(), s = H(o);
3633
+ var o = Uo(), s = H(o);
3602
3634
  {
3603
- let e = /* @__PURE__ */ I(() => Ea(J(n), J(a).label, j(J(n).id), J(C))), t = /* @__PURE__ */ I(() => j(J(n).id) ?? "neutral"), r = /* @__PURE__ */ I(() => J(h) === J(n).id), i = /* @__PURE__ */ I(() => J(h) === J(n).id && J(v) !== null);
3604
- Na(s, {
3635
+ let e = /* @__PURE__ */ I(() => Ia(J(n), J(a).label, j(J(n).id), J(C))), t = /* @__PURE__ */ I(() => j(J(n).id) ?? "neutral"), r = /* @__PURE__ */ I(() => J(h) === J(n).id), i = /* @__PURE__ */ I(() => J(h) === J(n).id && J(v) !== null);
3636
+ Ua(s, {
3605
3637
  fit: !0,
3606
3638
  get id() {
3607
3639
  return J(n).id;
@@ -3646,7 +3678,7 @@ function Ro(e, n) {
3646
3678
  var ke = U(r, 2);
3647
3679
  {
3648
3680
  let e = /* @__PURE__ */ I(() => J(g) === "tray" || J(h) !== null && J(_) === "tray"), n = /* @__PURE__ */ I(() => t("tray", J(C)));
3649
- Ia(ke, {
3681
+ Ka(ke, {
3650
3682
  get isDropTarget() {
3651
3683
  return J(e);
3652
3684
  },
@@ -3657,8 +3689,8 @@ function Ro(e, n) {
3657
3689
  var n = Mr();
3658
3690
  ei(cn(n), 17, () => J(oe), (e) => e.id, (e, t) => {
3659
3691
  {
3660
- let n = /* @__PURE__ */ I(() => Ea(J(t), null, j(J(t).id), J(C))), r = /* @__PURE__ */ I(() => j(J(t).id) ?? "neutral"), i = /* @__PURE__ */ I(() => J(h) === J(t).id), a = /* @__PURE__ */ I(() => J(h) === J(t).id && J(v) !== null);
3661
- Na(e, {
3692
+ let n = /* @__PURE__ */ I(() => Ia(J(t), null, j(J(t).id), J(C))), r = /* @__PURE__ */ I(() => j(J(t).id) ?? "neutral"), i = /* @__PURE__ */ I(() => J(h) === J(t).id), a = /* @__PURE__ */ I(() => J(h) === J(t).id && J(v) !== null);
3693
+ Ua(e, {
3662
3694
  get id() {
3663
3695
  return J(t).id;
3664
3696
  },
@@ -3702,14 +3734,14 @@ function Ro(e, n) {
3702
3734
  width: e,
3703
3735
  "aspect-ratio": `${J(D).width ?? ""} / ${J(D).height ?? ""}`
3704
3736
  }), Q(o, "viewBox", `0 0 ${J(D).width ?? ""} ${J(D).height ?? ""}`), Q(d, "id", a), Q(d, "width", J(D).width), Q(d, "height", J(D).height), Q(p, "width", J(D).width), Q(p, "height", J(D).height), Q(m, "cx", J(D).circles[0].cx), Q(m, "cy", J(D).circles[0].cy), Q(m, "r", J(D).circles[0].r), Q(b, "cx", J(D).circles[1].cx), Q(b, "cy", J(D).circles[1].cy), Q(b, "r", J(D).circles[1].r), Q(x, "id", c), Q(x, "width", J(D).width), Q(x, "height", J(D).height), Q(S, "width", J(D).width), Q(S, "height", J(D).height), Q(ee, "cx", J(D).circles[1].cx), Q(ee, "cy", J(D).circles[1].cy), Q(ee, "r", J(D).circles[1].r), Q(te, "cx", J(D).circles[0].cx), Q(te, "cy", J(D).circles[0].cy), Q(te, "r", J(D).circles[0].r), Q(re, "id", u), Q(T, "cx", J(D).circles[0].cx), Q(T, "cy", J(D).circles[0].cy), Q(T, "r", J(D).circles[0].r), Q(E, "id", l), Q(E, "width", J(D).width), Q(E, "height", J(D).height), Q(O, "width", J(D).width), Q(O, "height", J(D).height), Q(ue, "cx", J(D).circles[0].cx), Q(ue, "cy", J(D).circles[0].cy), Q(ue, "r", J(D).circles[0].r), Q(de, "cx", J(D).circles[1].cx), Q(de, "cy", J(D).circles[1].cy), Q(de, "r", J(D).circles[1].r), Q(k, "x", J(D).scale), Q(k, "y", J(D).scale), Q(k, "width", J(D).width - 2 * J(D).scale), Q(k, "height", J(D).height - 2 * J(D).scale), Q(k, "stroke-width", 1.5 * J(D).scale), Q(k, "rx", 12 * J(D).scale), Q(Te, "x1", 16 * J(D).scale), Q(Te, "x2", J(D).width - 16 * J(D).scale), Q(Te, "y1", J(ce).outsideStripTop), Q(Te, "y2", J(ce).outsideStripTop), Q(Te, "stroke-width", J(D).scale), Q(Te, "stroke-dasharray", `${4 * J(D).scale} ${6 * J(D).scale}`);
3705
- }, [() => Ja(J(D), J(se))]), Di(r, "clientWidth", (e) => B(y, e)), X(e, n);
3737
+ }, [() => io(J(D), J(se))]), Di(r, "clientWidth", (e) => B(y, e)), X(e, n);
3706
3738
  };
3707
3739
  Z(We, (e) => {
3708
3740
  J(ce) ? e(Ke, -1) : e(Ge);
3709
3741
  });
3710
3742
  var qe = U(We, 2), Je = (e) => {
3711
- var t = Fo();
3712
- Na(H(t), {
3743
+ var t = Go();
3744
+ Ua(H(t), {
3713
3745
  get id() {
3714
3746
  return J(Ie).id;
3715
3747
  },
@@ -3733,12 +3765,12 @@ function Ro(e, n) {
3733
3765
  J(Ie) && J(v) && e(Je);
3734
3766
  }), ki(U(qe, 2), (e) => p = e, () => p), N(Le), ki(Le, (e) => d = e, () => d), xr("focusout", Le, Oe), X(e, Le), Ze();
3735
3767
  }
3736
- Sr(["focusout", "click"]), Li(Ro, {
3768
+ Sr(["focusout", "click"]), Li(Jo, {
3737
3769
  model: { type: "Object" },
3738
3770
  session: { type: "Object" },
3739
3771
  onSessionChange: {}
3740
3772
  }, [], []);
3741
3773
  //#endregion
3742
- export { H as A, Xe as B, Mr as C, J as D, xr as E, B as F, N as H, z as I, R as L, ln as M, U as N, W as O, $t as P, I as R, X as S, Sr as T, ie as U, Ae as V, Z as _, ki as a, qr as b, Q as c, hi as d, pi as f, Xr as g, ei as h, $ as i, cn as j, xn as k, Si as l, oi as m, wa as n, Di as o, si as p, Li as r, bi as s, Ro as t, xi as u, Yr as v, Y as w, zr as x, Jr as y, Ze as z };
3774
+ export { H as A, Xe as B, Mr as C, J as D, xr as E, B as F, N as H, z as I, R as L, ln as M, U as N, W as O, $t as P, I as R, X as S, Sr as T, ie as U, Ae as V, Z as _, ki as a, qr as b, Q as c, hi as d, pi as f, Xr as g, ei as h, $ as i, cn as j, xn as k, Si as l, oi as m, Pa as n, Di as o, si as p, Li as r, bi as s, Jo as t, xi as u, Yr as v, Y as w, zr as x, Jr as y, Ze as z };
3743
3775
 
3744
- //# sourceMappingURL=VennClassification-DrP-zXoc.js.map
3776
+ //# sourceMappingURL=VennClassification-Dh-jgyW3.js.map