@pie-element/venn-classification 0.1.3-next.20261006160832 → 0.1.3

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.
Files changed (26) hide show
  1. package/dist/author/index.js +3003 -343
  2. package/dist/author/index.js.map +1 -1
  3. package/dist/browser/VennClassification-CabX77pV.js +5298 -0
  4. package/dist/browser/VennClassification-CabX77pV.js.map +1 -0
  5. package/dist/browser/author/index.js +503 -503
  6. package/dist/browser/author/index.js.map +1 -1
  7. package/dist/browser/delivery/index.js +1 -1
  8. package/dist/browser/editor-runtime/VennClassification-CabX77pV.js +5298 -0
  9. package/dist/browser/editor-runtime/VennClassification-CabX77pV.js.map +1 -0
  10. package/dist/browser/editor-runtime/author/index.js +515 -515
  11. package/dist/browser/editor-runtime/author/index.js.map +1 -1
  12. package/dist/browser/editor-runtime/delivery/index.js +1 -1
  13. package/dist/browser/editor-runtime/{mathjax-D2JHb_R_-CnSar24F.js → mathjax-BKrHE4xs-DKFuLcoG.js} +3901 -3864
  14. package/dist/browser/editor-runtime/mathjax-BKrHE4xs-DKFuLcoG.js.map +1 -0
  15. package/dist/browser/{mathjax-D2JHb_R_-CnSar24F.js → mathjax-BKrHE4xs-DKFuLcoG.js} +3901 -3864
  16. package/dist/browser/mathjax-BKrHE4xs-DKFuLcoG.js.map +1 -0
  17. package/dist/delivery/index.js +2945 -285
  18. package/dist/delivery/index.js.map +1 -1
  19. package/dist/index.iife.js +23 -21
  20. package/package.json +4 -3
  21. package/dist/browser/VennClassification-DklXKmLP.js +0 -4241
  22. package/dist/browser/VennClassification-DklXKmLP.js.map +0 -1
  23. package/dist/browser/editor-runtime/VennClassification-DklXKmLP.js +0 -4241
  24. package/dist/browser/editor-runtime/VennClassification-DklXKmLP.js.map +0 -1
  25. package/dist/browser/editor-runtime/mathjax-D2JHb_R_-CnSar24F.js.map +0 -1
  26. package/dist/browser/mathjax-D2JHb_R_-CnSar24F.js.map +0 -1
@@ -1,21 +1,21 @@
1
- import { A as e, B as t, C as n, D as r, E as i, F as a, H as o, I as s, L as c, M as l, N as u, O as d, P as f, R as p, S as m, T as h, U as g, V as _, _ as v, a as y, b, c as x, d as S, f as C, g as w, h as T, i as E, j as D, k as O, l as k, m as A, n as j, o as M, p as N, r as P, s as F, t as ee, u as I, v as L, w as R, x as z, y as te, z as B } from "../VennClassification-DklXKmLP.js";
2
- import { _ as ne, g as re, h as ie, i as ae, m as oe, n as se, p as V, v as ce, y as le } from "../controller--P8AQebj.js";
3
- import { Editor as ue, Extension as de } from "@tiptap/core";
4
- import { Plugin as fe, PluginKey as H, TextSelection as pe } from "@tiptap/pm/state";
5
- import { Table as U, TableView as me } from "@tiptap/extension-table";
6
- import { TableHeader as W } from "@tiptap/extension-table-header";
7
- import G from "@tiptap/starter-kit";
8
- import { TextStyle as K } from "@tiptap/extension-text-style";
9
- import { CharacterCount as he } from "@tiptap/extension-character-count";
10
- import ge from "@tiptap/extension-superscript";
11
- import _e from "@tiptap/extension-subscript";
12
- import q from "@tiptap/extension-text-align";
13
- import J from "@tiptap/extension-image";
14
- import { TableRow as ve } from "@tiptap/extension-table-row";
15
- import { TableCell as ye } from "@tiptap/extension-table-cell";
16
- import { Placeholder as be } from "@tiptap/extensions";
1
+ import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as d, M as f, N as p, O as m, P as h, R as g, S as _, T as v, U as y, V as b, W as x, _ as S, b as C, c as w, d as T, f as E, g as D, h as O, j as k, k as A, l as j, m as M, n as ee, p as N, q as P, t as te, u as F, v as I, w as ne, x as re, y as L, z as ie } from "../VennClassification-CabX77pV.js";
2
+ import { _ as ae, g as oe, h as se, i as ce, m as le, n as ue, p as R, v as z, y as de } from "../controller--P8AQebj.js";
3
+ import { Editor as fe, Extension as pe } from "@tiptap/core";
4
+ import { Plugin as me, PluginKey as B, TextSelection as V } from "@tiptap/pm/state";
5
+ import { Table as H, TableView as he } from "@tiptap/extension-table";
6
+ import { TableHeader as U } from "@tiptap/extension-table-header";
7
+ import W from "@tiptap/starter-kit";
8
+ import { TextStyle as G } from "@tiptap/extension-text-style";
9
+ import { CharacterCount as ge } from "@tiptap/extension-character-count";
10
+ import _e from "@tiptap/extension-superscript";
11
+ import ve from "@tiptap/extension-subscript";
12
+ import K from "@tiptap/extension-text-align";
13
+ import q from "@tiptap/extension-image";
14
+ import { TableRow as ye } from "@tiptap/extension-table-row";
15
+ import { TableCell as be } from "@tiptap/extension-table-cell";
16
+ import { Placeholder as xe } from "@tiptap/extensions";
17
17
  //#region ../../shared/configure-events/dist/index.js
18
- var xe = class e extends CustomEvent {
18
+ var Se = class e extends CustomEvent {
19
19
  static {
20
20
  this.TYPE = "model.updated";
21
21
  }
@@ -78,22 +78,22 @@ var xe = class e extends CustomEvent {
78
78
  };
79
79
  //#endregion
80
80
  //#region ../../lib-svelte/config-ui-svelte/dist/index.js
81
- var Y = R("<aside class=\"pie-config-layout-settings svelte-9dr0jr\" aria-label=\"Settings\"><!></aside>"), X = R("<div class=\"pie-config-layout svelte-9dr0jr\"><div class=\"pie-config-layout-contents svelte-9dr0jr\"><div class=\"pie-config-layout-design svelte-9dr0jr\"><!></div> <!></div></div>"), Z = {
81
+ var J = A("<aside class=\"pie-config-layout-settings svelte-9dr0jr\" aria-label=\"Settings\"><!></aside>"), Y = A("<div class=\"pie-config-layout svelte-9dr0jr\"><div class=\"pie-config-layout-contents svelte-9dr0jr\"><div class=\"pie-config-layout-design svelte-9dr0jr\"><!></div> <!></div></div>"), X = {
82
82
  hash: "svelte-9dr0jr",
83
83
  code: ".pie-config-layout.svelte-9dr0jr {container-type:inline-size;}.pie-config-layout-contents.svelte-9dr0jr {display:flex;flex-direction:column;gap:16px;}.pie-config-layout-design.svelte-9dr0jr {flex:1 1 auto;min-width:0;}\n\n @container (min-width: 1135px) {.pie-config-layout-contents.svelte-9dr0jr {flex-direction:row;align-items:flex-start;}.pie-config-layout-settings.svelte-9dr0jr {flex:0 0 300px;position:sticky;top:0;}\n }"
84
84
  };
85
- function Se(t, n) {
86
- N(t, Z);
87
- let r = E(n, "hideSettings", 3, !1);
88
- var i = X(), a = e(i), s = e(a);
89
- b(e(s), () => n.children), o(s);
90
- var c = u(s, 2), l = (t) => {
91
- var r = Y();
92
- b(e(r), () => n.settings), o(r), m(t, r);
85
+ function Z(e, t) {
86
+ I(e, X);
87
+ let n = j(t, "hideSettings", 3, !1);
88
+ var i = Y(), o = a(i), s = a(o);
89
+ v(a(s), () => t.children), P(s);
90
+ var c = g(s, 2), l = (e) => {
91
+ var n = J();
92
+ v(a(n), () => t.settings), P(n), r(e, n);
93
93
  };
94
- v(c, (e) => {
95
- n.settings && !r() && e(l);
96
- }), o(a), o(i), m(t, i);
94
+ _(c, (e) => {
95
+ t.settings && !n() && e(l);
96
+ }), P(o), P(i), r(e, i);
97
97
  }
98
98
  var Q = (e) => typeof e == "object" && !!e && !Array.isArray(e);
99
99
  function Ce(e, t) {
@@ -140,48 +140,48 @@ function Oe(e, t, n) {
140
140
  [r]: o
141
141
  };
142
142
  }
143
- var ke = R("<label class=\"pie-settings-toggle svelte-1ang3sw\"><span> </span> <input type=\"checkbox\" role=\"switch\" class=\"svelte-1ang3sw\"/></label>"), Ae = R("<label class=\"pie-settings-choice-row svelte-1ang3sw\"><input type=\"radio\" class=\"svelte-1ang3sw\"/> <span> </span></label>"), je = R("<fieldset class=\"pie-settings-choice svelte-1ang3sw\"><legend class=\"svelte-1ang3sw\"> </legend> <!></fieldset>"), Me = R("<fieldset class=\"pie-settings-group svelte-1ang3sw\"><legend class=\"pie-settings-group-name svelte-1ang3sw\"> </legend> <!></fieldset>"), Ne = R("<div class=\"pie-settings-panel svelte-1ang3sw\"></div>"), Pe = {
143
+ var ke = A("<label class=\"pie-settings-toggle svelte-1ang3sw\"><span> </span> <input type=\"checkbox\" role=\"switch\" class=\"svelte-1ang3sw\"/></label>"), Ae = A("<label class=\"pie-settings-choice-row svelte-1ang3sw\"><input type=\"radio\" class=\"svelte-1ang3sw\"/> <span> </span></label>"), je = A("<fieldset class=\"pie-settings-choice svelte-1ang3sw\"><legend class=\"svelte-1ang3sw\"> </legend> <!></fieldset>"), Me = A("<fieldset class=\"pie-settings-group svelte-1ang3sw\"><legend class=\"pie-settings-group-name svelte-1ang3sw\"> </legend> <!></fieldset>"), Ne = A("<div class=\"pie-settings-panel svelte-1ang3sw\"></div>"), Pe = {
144
144
  hash: "svelte-1ang3sw",
145
145
  code: ".pie-settings-panel.svelte-1ang3sw {display:flex;flex-direction:column;gap:16px;padding:16px;border:1px solid var(--pie-border-light, #ccc);border-radius:4px;color:var(--pie-text, #212121);}fieldset.svelte-1ang3sw {margin:0;padding:0;border:0;min-width:0;}.pie-settings-group.svelte-1ang3sw {display:flex;flex-direction:column;gap:8px;}.pie-settings-group-name.svelte-1ang3sw {margin-bottom:8px;font-weight:600;}.pie-settings-toggle.svelte-1ang3sw {display:flex;align-items:center;justify-content:space-between;gap:12px;}.pie-settings-choice.svelte-1ang3sw legend:where(.svelte-1ang3sw) {margin-bottom:4px;}.pie-settings-choice-row.svelte-1ang3sw {display:flex;align-items:center;gap:8px;}input.svelte-1ang3sw {accent-color:var(--pie-primary, #3f51b5);}input.svelte-1ang3sw:focus-visible {outline:2px solid var(--pie-focus-outline, #1a73e8);outline-offset:2px;}"
146
146
  };
147
- function Fe(a, s) {
148
- t(s, !0), N(a, Pe);
149
- let c = E(s, "configuration", 19, () => ({})), f = Math.random().toString(36).slice(2, 10), h = p(() => Object.entries(s.groups).map(([e, t]) => [e, Object.entries(t).filter((e) => !!e[1])]).filter(([, e]) => e.length > 0)), _ = (e, t) => De(t.isConfigProperty ? c() : s.model, e);
150
- function y(e, t, n) {
151
- t.isConfigProperty ? s.onChangeConfiguration?.(Oe(c(), e, n), e) : s.onChangeModel(Oe(s.model, e, n), e);
147
+ function Fe(e, t) {
148
+ o(t, !0), I(e, Pe);
149
+ let n = j(t, "configuration", 19, () => ({})), s = Math.random().toString(36).slice(2, 10), u = y(() => Object.entries(t.groups).map(([e, t]) => [e, Object.entries(t).filter((e) => !!e[1])]).filter(([, e]) => e.length > 0)), h = (e, r) => De(r.isConfigProperty ? n() : t.model, e);
150
+ function v(e, r, i) {
151
+ r.isConfigProperty ? t.onChangeConfiguration?.(Oe(n(), e, i), e) : t.onChangeModel(Oe(t.model, e, i), e);
152
152
  }
153
153
  var b = Ne();
154
- T(b, 21, () => r(h), ([e, t]) => e, (t, a) => {
155
- var s = p(() => g(r(a), 2));
156
- let c = () => r(s)[0], h = () => r(s)[1];
157
- var b = Me(), S = e(b), C = l(S, !0);
158
- T(u(S, 2), 17, h, ([e, t]) => e, (t, a) => {
159
- var s = p(() => g(r(a), 2));
160
- let c = () => r(s)[0], h = () => r(s)[1];
161
- var b = n(), S = D(b), C = (t) => {
162
- var n = ke(), r = e(n), a = l(r, !0), s = u(r, 2);
163
- F(s), o(n), d((e) => {
164
- z(a, h().label), k(s, e), s.disabled = h().disabled;
165
- }, [() => !!_(c(), h())]), i("change", s, (e) => y(c(), h(), e.currentTarget.checked)), m(t, n);
166
- }, w = (t) => {
167
- var n = je(), a = e(n), s = l(a, !0);
168
- T(u(a, 2), 17, () => h().choices, (e) => e.value, (t, n) => {
169
- var a = Ae(), s = e(a);
170
- F(s);
171
- var p = l(u(s, 2), !0);
172
- o(a), d((e) => {
173
- x(s, "name", `${f}-${c()}`), I(s, r(n).value), k(s, e), z(p, r(n).label);
174
- }, [() => _(c(), h()) === r(n).value]), i("change", s, () => y(c(), h(), r(n).value)), m(t, a);
175
- }), o(n), d(() => z(s, h().label)), m(t, n);
154
+ C(b, 21, () => f(u), ([e, t]) => e, (e, t) => {
155
+ var n = y(() => l(f(t), 2));
156
+ let o = () => f(n)[0], u = () => f(n)[1];
157
+ var b = Me(), x = a(b), S = d(x, !0);
158
+ C(g(x, 2), 17, u, ([e, t]) => e, (e, t) => {
159
+ var n = y(() => l(f(t), 2));
160
+ let o = () => f(n)[0], u = () => f(n)[1];
161
+ var b = m(), x = c(b), S = (e) => {
162
+ var t = ke(), n = a(t), s = d(n, !0), c = g(n, 2);
163
+ E(c), P(t), p((e) => {
164
+ i(s, u().label), M(c, e), c.disabled = u().disabled;
165
+ }, [() => !!h(o(), u())]), k("change", c, (e) => v(o(), u(), e.currentTarget.checked)), r(e, t);
166
+ }, w = (e) => {
167
+ var t = je(), n = a(t), c = d(n, !0);
168
+ C(g(n, 2), 17, () => u().choices, (e) => e.value, (e, t) => {
169
+ var n = Ae(), c = a(n);
170
+ E(c);
171
+ var l = d(g(c, 2), !0);
172
+ P(n), p((e) => {
173
+ N(c, "name", `${s}-${o()}`), O(c, f(t).value), M(c, e), i(l, f(t).label);
174
+ }, [() => h(o(), u()) === f(t).value]), k("change", c, () => v(o(), u(), f(t).value)), r(e, n);
175
+ }), P(t), p(() => i(c, u().label)), r(e, t);
176
176
  };
177
- v(S, (e) => {
178
- h().type === "toggle" ? e(C) : h().type === "radio" && e(w, 1);
179
- }), m(t, b);
180
- }), o(b), d(() => z(C, c())), m(t, b);
181
- }), o(b), m(a, b), B();
177
+ _(x, (e) => {
178
+ u().type === "toggle" ? e(S) : u().type === "radio" && e(w, 1);
179
+ }), r(e, b);
180
+ }), P(b), p(() => i(S, o())), r(e, b);
181
+ }), P(b), r(e, b), x();
182
182
  }
183
- h(["change"]);
184
- var Ie = Se, Le = Fe, Re = /mso-list:\s*(l\d+)\s+level(\d+)/i, ze = /^\(?(?:\d+(?:\.\d+)*|[a-z]+|[A-Z]+)[.)]$|^\d+(?:\.\d+)+$/, Be = /^[ivxlcdm]+$/i, Ve = {
183
+ e(["change"]);
184
+ var Ie = Z, Le = Fe, Re = /mso-list:\s*(l\d+)\s+level(\d+)/i, ze = /^\(?(?:\d+(?:\.\d+)*|[a-z]+|[A-Z]+)[.)]$|^\d+(?:\.\d+)+$/, Be = /^[ivxlcdm]+$/i, Ve = {
185
185
  i: 1,
186
186
  v: 5,
187
187
  x: 10,
@@ -418,7 +418,7 @@ function ht(e, { text: t, html: n }, r) {
418
418
  }
419
419
  e.pasteText(i.$from.parent.type.spec.code ? at(t) : at(t).replace(/^$/gm, "\xA0"));
420
420
  }
421
- var gt = de.create({
421
+ var gt = pe.create({
422
422
  name: "externalPaste",
423
423
  priority: 1e3,
424
424
  addOptions() {
@@ -429,8 +429,8 @@ var gt = de.create({
429
429
  },
430
430
  addProseMirrorPlugins() {
431
431
  let { settings: e } = this.options;
432
- return [new fe({
433
- key: new H("externalPaste"),
432
+ return [new me({
433
+ key: new B("externalPaste"),
434
434
  props: {
435
435
  transformPasted(e, t) {
436
436
  return rt ? rt(e, t.state) : e;
@@ -444,7 +444,7 @@ var gt = de.create({
444
444
  left: n.clientX,
445
445
  top: n.clientY
446
446
  });
447
- return r === null || !i ? !1 : (t.dispatch(t.state.tr.setSelection(pe.near(t.state.doc.resolve(i.pos)))), ht(t, r, e()), t.focus(), !0);
447
+ return r === null || !i ? !1 : (t.dispatch(t.state.tr.setSelection(V.near(t.state.doc.resolve(i.pos)))), ht(t, r, e()), t.focus(), !0);
448
448
  }
449
449
  }
450
450
  })];
@@ -487,7 +487,7 @@ var St = [
487
487
  return St.includes(t) ? t : null;
488
488
  },
489
489
  renderHTML: (e) => e.scope ? { scope: e.scope } : {}
490
- }, wt = class extends me {
490
+ }, wt = class extends he {
491
491
  constructor(...e) {
492
492
  super(...e), xt(this.table, this.node.attrs.caption);
493
493
  }
@@ -495,7 +495,7 @@ var St = [
495
495
  let t = super.update(e);
496
496
  return t && xt(this.table, e.attrs.caption), t;
497
497
  }
498
- }, Tt = U.extend({
498
+ }, Tt = H.extend({
499
499
  addAttributes() {
500
500
  return {
501
501
  ...this.parent?.(),
@@ -509,27 +509,27 @@ var St = [
509
509
  let t = this.parent?.(e);
510
510
  return bt(t, e.node.attrs.caption);
511
511
  }
512
- }).configure({ View: wt }), Et = W.extend({ addAttributes() {
512
+ }).configure({ View: wt }), Et = U.extend({ addAttributes() {
513
513
  return {
514
514
  ...this.parent?.(),
515
515
  scope: Ct
516
516
  };
517
- } }), Dt = R("<button type=\"button\" class=\"pie-toolbar-btn\" title=\"Insert Table\"></button>"), Ot = R("<button type=\"button\" title=\"Add Row\"></button> <button type=\"button\" title=\"Delete Row\"></button> <button type=\"button\" title=\"Add Column\"></button> <button type=\"button\" title=\"Delete Column\"></button> <button type=\"button\" title=\"Delete Table\"></button> <button type=\"button\" title=\"Toggle Table Border\"></button>", 1), kt = R("<div class=\"align-menu\"><button type=\"button\" class=\"align-menu-btn\" title=\"Align Left\"></button> <button type=\"button\" class=\"align-menu-btn\" title=\"Align Center\"></button> <button type=\"button\" class=\"align-menu-btn\" title=\"Align Right\"></button></div>"), At = R("<button type=\"button\" title=\"Bold\"></button> <button type=\"button\" title=\"Italic\"></button> <button type=\"button\" title=\"Strikethrough\"></button> <button type=\"button\" title=\"Code\"></button> <button type=\"button\" title=\"Underline\"></button> <button type=\"button\" title=\"Subscript\"></button> <button type=\"button\" title=\"Superscript\"></button> <button type=\"button\" title=\"Heading\"></button> <button type=\"button\" class=\"pie-toolbar-btn\" title=\"Insert Image\"></button> <div class=\"align-dropdown\"><button type=\"button\" class=\"pie-toolbar-btn\" title=\"Text Alignment\"><!> <span class=\"dropdown-arrow\">▼</span></button> <!></div> <button type=\"button\" title=\"Bullet List\"></button> <button type=\"button\" title=\"Numbered List\"></button> <button type=\"button\" class=\"pie-toolbar-btn\" title=\"Undo\"></button> <button type=\"button\" class=\"pie-toolbar-btn\" title=\"Redo\"></button>", 1), jt = R("<div role=\"toolbar\" tabindex=\"-1\"><div class=\"toolbar-content\"><div class=\"toolbar-buttons\"><!> <!> <!></div> <button type=\"button\" class=\"done-btn\" title=\"Done\"></button></div></div>"), Mt = R("<div class=\"pie-editable-html editor-container editable-html svelte-rx7so6\"><div><div class=\"editor-children\"><div class=\"editor\"></div></div></div> <!></div>"), Nt = {
517
+ } }), Dt = A("<button type=\"button\" class=\"pie-toolbar-btn\" title=\"Insert Table\"></button>"), Ot = A("<button type=\"button\" title=\"Add Row\"></button> <button type=\"button\" title=\"Delete Row\"></button> <button type=\"button\" title=\"Add Column\"></button> <button type=\"button\" title=\"Delete Column\"></button> <button type=\"button\" title=\"Delete Table\"></button> <button type=\"button\" title=\"Toggle Table Border\"></button>", 1), kt = A("<div class=\"align-menu\"><button type=\"button\" class=\"align-menu-btn\" title=\"Align Left\"></button> <button type=\"button\" class=\"align-menu-btn\" title=\"Align Center\"></button> <button type=\"button\" class=\"align-menu-btn\" title=\"Align Right\"></button></div>"), At = A("<button type=\"button\" title=\"Bold\"></button> <button type=\"button\" title=\"Italic\"></button> <button type=\"button\" title=\"Strikethrough\"></button> <button type=\"button\" title=\"Code\"></button> <button type=\"button\" title=\"Underline\"></button> <button type=\"button\" title=\"Subscript\"></button> <button type=\"button\" title=\"Superscript\"></button> <button type=\"button\" title=\"Heading\"></button> <button type=\"button\" class=\"pie-toolbar-btn\" title=\"Insert Image\"></button> <div class=\"align-dropdown\"><button type=\"button\" class=\"pie-toolbar-btn\" title=\"Text Alignment\"><!> <span class=\"dropdown-arrow\">▼</span></button> <!></div> <button type=\"button\" title=\"Bullet List\"></button> <button type=\"button\" title=\"Numbered List\"></button> <button type=\"button\" class=\"pie-toolbar-btn\" title=\"Undo\"></button> <button type=\"button\" class=\"pie-toolbar-btn\" title=\"Redo\"></button>", 1), jt = A("<div role=\"toolbar\" tabindex=\"-1\"><div class=\"toolbar-content\"><div class=\"toolbar-buttons\"><!> <!> <!></div> <button type=\"button\" class=\"done-btn\" title=\"Done\"></button></div></div>"), Mt = A("<div class=\"pie-editable-html editor-container editable-html svelte-rx7so6\"><div><div class=\"editor-children\"><div class=\"editor\"></div></div></div> <!></div>"), Nt = {
518
518
  hash: "svelte-rx7so6",
519
519
  code: ".pie-editable-html.svelte-rx7so6 {position:relative;padding:0px;border:1px solid #ccc;border-radius:4px;cursor:text;background-color:var(--pie-background, rgba(255, 255, 255, 0));width:100%;}.pie-editable-html.svelte-rx7so6 .editor-holder {position:relative;padding:0px;overflow-y:auto;color:var(--pie-text, black);background-color:var(--pie-background, rgba(255, 255, 255, 0));min-height:120px;}.pie-editable-html.svelte-rx7so6 .editor-holder.disabled {cursor:not-allowed;}.pie-editable-html.svelte-rx7so6 .editor-children {padding:10px 16px;}.pie-editable-html.svelte-rx7so6 .editor {padding:5px;min-height:100px;}\n\n /* Toolbar styles matching React version EXACTLY */.pie-editable-html.svelte-rx7so6 .toolbar {position:absolute;z-index:20;cursor:pointer;justify-content:space-between;background:var(--editable-html-toolbar-bg, #efefef);min-width:280px;margin:5px 0 0 0;padding:2px;box-shadow:0px 1px 5px 0px rgba(0, 0, 0, 0.2),\n 0px 2px 2px 0px rgba(0, 0, 0, 0.14),\n 0px 3px 1px -2px rgba(0, 0, 0, 0.12);box-sizing:border-box;display:flex;opacity:0;pointer-events:none;top:100%;left:0;}.pie-editable-html.svelte-rx7so6 .toolbar.focused {opacity:1;pointer-events:auto;}.pie-editable-html.svelte-rx7so6 .toolbar-content {display:flex;width:100%;justify-content:space-between;}.pie-editable-html.svelte-rx7so6 .toolbar-buttons {align-items:center;display:flex;width:100%;}.pie-editable-html.svelte-rx7so6 .toolbar button.pie-toolbar-btn {\n /* Reset all browser defaults */appearance:none;-webkit-appearance:none;-moz-appearance:none;\n\n /* Core button styling - matching React MenuBar exactly */color:grey !important;display:inline-flex !important;padding:2px !important;background:none !important;border:0 !important;border-width:0 !important;border-style:none !important;outline:none !important;box-shadow:none !important;cursor:pointer !important;align-items:center !important;justify-content:center !important;min-width:auto !important;width:auto !important;height:auto !important;margin:0 !important;font:inherit !important;text-align:inherit !important;text-transform:none !important;}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn:hover:not(:disabled) {color:black;}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn:focus {outline:2px solid #666;}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn:disabled {opacity:0.7;cursor:not-allowed;}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn:disabled:hover {color:grey;}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn.active {background:var(--pie-primary, #3f51b5);color:var(--pie-white, #ffffff);}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn svg {width:24px;height:24px;}\n\n /* Done Button - matching React DoneButton component */.pie-editable-html.svelte-rx7so6 .done-btn {vertical-align:top;width:28px;height:28px;color:var(--editable-html-toolbar-check, #00bb00);padding:4px;display:inline-flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;}.pie-editable-html.svelte-rx7so6 .done-btn:hover {background-color:rgba(0, 187, 0, 0.08);border-radius:4px;}.pie-editable-html.svelte-rx7so6 .done-btn svg {width:24px;height:24px;}\n\n /* Text alignment dropdown */.pie-editable-html.svelte-rx7so6 .align-dropdown {position:relative;}.pie-editable-html.svelte-rx7so6 .dropdown-arrow {margin-left:2px;font-size:8px;}.pie-editable-html.svelte-rx7so6 .align-menu {position:absolute;top:100%;left:0;background:var(--pie-white, #ffffff);display:flex;flex-direction:row;padding:2px;box-shadow:0px 1px 5px 0px rgba(0, 0, 0, 0.2),\n 0px 2px 2px 0px rgba(0, 0, 0, 0.14),\n 0px 3px 1px -2px rgba(0, 0, 0, 0.12);z-index:30;}.pie-editable-html.svelte-rx7so6 .align-menu-btn {color:var(--pie-disabled, grey);display:inline-flex;padding:4px;background:none;border:none;cursor:pointer;align-items:center;justify-content:center;min-width:32px;min-height:32px;}.pie-editable-html.svelte-rx7so6 .align-menu-btn:hover {color:var(--pie-black, #000000);background-color:rgba(0, 0, 0, 0.04);}\n\n /* ProseMirror editor styles */.pie-editable-html.svelte-rx7so6 .ProseMirror {outline:none !important;min-height:100px;font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif;font-size:14px;line-height:1.6;color:var(--pie-text, black);}.pie-editable-html.svelte-rx7so6 .ProseMirror p {margin:0;}.pie-editable-html.svelte-rx7so6 .ProseMirror ul,\n .pie-editable-html.svelte-rx7so6 .ProseMirror ol {padding:0 1rem;margin:1.25rem 1rem 1.25rem 0.4rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror ul li p,\n .pie-editable-html.svelte-rx7so6 .ProseMirror ol li p {margin-top:0.25em;margin-bottom:0.25em;}.pie-editable-html.svelte-rx7so6 .ProseMirror h1,\n .pie-editable-html.svelte-rx7so6 .ProseMirror h2,\n .pie-editable-html.svelte-rx7so6 .ProseMirror h3,\n .pie-editable-html.svelte-rx7so6 .ProseMirror h4,\n .pie-editable-html.svelte-rx7so6 .ProseMirror h5,\n .pie-editable-html.svelte-rx7so6 .ProseMirror h6 {line-height:1.1;margin-top:2.5rem;text-wrap:pretty;}.pie-editable-html.svelte-rx7so6 .ProseMirror h1,\n .pie-editable-html.svelte-rx7so6 .ProseMirror h2 {margin-top:3.5rem;margin-bottom:1.5rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror h1 {font-size:1.4rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror h2 {font-size:1.2rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror h3 {font-size:1.1rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror h4,\n .pie-editable-html.svelte-rx7so6 .ProseMirror h5,\n .pie-editable-html.svelte-rx7so6 .ProseMirror h6 {font-size:1rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror code {background-color:rgba(88, 5, 255, 0.05);border-radius:0.4rem;color:#2e2b29;font-size:0.85rem;padding:0.25em 0.3em;}.pie-editable-html.svelte-rx7so6 .ProseMirror pre {background:#2e2b29;border-radius:0.5rem;color:#fff;font-family:'JetBrainsMono', monospace;margin:1.5rem 0;padding:0.75rem 1rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror pre code {background:none;color:inherit;font-size:0.8rem;padding:0;}.pie-editable-html.svelte-rx7so6 .ProseMirror blockquote {border-left:3px solid rgba(61, 37, 20, 0.12);margin:1.5rem 0;padding-left:1rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror hr {border:none;border-top:1px solid rgba(61, 37, 20, 0.08);margin:2rem 0;}.pie-editable-html.svelte-rx7so6 .ProseMirror img {max-width:100%;height:auto;}\n\n /* Table styles */.pie-editable-html.svelte-rx7so6 .ProseMirror table {table-layout:fixed;width:100%;border-collapse:collapse;color:var(--pie-text, black);background-color:var(--pie-background, rgba(255, 255, 255, 0));margin:1rem 0;}.pie-editable-html.svelte-rx7so6 .ProseMirror table:not([border=\"1\"]) tr {border-top:1px solid #dfe2e5;}.pie-editable-html.svelte-rx7so6 .ProseMirror td,\n .pie-editable-html.svelte-rx7so6 .ProseMirror th {padding:0.6em 1em;text-align:center;vertical-align:top;position:relative;}.pie-editable-html.svelte-rx7so6 .ProseMirror table:not([border=\"1\"]) td,\n .pie-editable-html.svelte-rx7so6 .ProseMirror table:not([border=\"1\"]) th {border:1px solid #dfe2e5;}.pie-editable-html.svelte-rx7so6 .ProseMirror table[border=\"1\"] {border:2px solid var(--pie-black, #000000);}.pie-editable-html.svelte-rx7so6 .ProseMirror table[border=\"1\"] td,\n .pie-editable-html.svelte-rx7so6 .ProseMirror table[border=\"1\"] th {border:1px solid var(--pie-black, #000000);}.pie-editable-html.svelte-rx7so6 .ProseMirror .selectedCell {background-color:rgba(200, 200, 255, 0.4);}\n\n /* Placeholder */.pie-editable-html.svelte-rx7so6 .ProseMirror p.is-editor-empty:first-child::before {content:attr(data-placeholder);float:left;color:#adb5bd;pointer-events:none;height:0;}.pie-editable-html.svelte-rx7so6 .ProseMirror:focus {outline:none;}"
520
520
  };
521
- function Pt(c, l) {
522
- t(l, !0), N(c, Nt);
523
- let p = E(l, "markup", 3, ""), h = E(l, "placeholder", 3, "Enter text here..."), g = E(l, "showToolbar", 3, !0), b = E(l, "disabled", 3, !1), x, S = s(null), w = s(!1), T = s(!1);
524
- function k() {
521
+ function Pt(e, i) {
522
+ o(i, !0), I(e, Nt);
523
+ let s = j(i, "markup", 3, ""), l = j(i, "placeholder", 3, "Enter text here..."), d = j(i, "showToolbar", 3, !0), v = j(i, "disabled", 3, !1), y, C = b(null), w = b(!1), T = b(!1);
524
+ function E() {
525
525
  return {
526
526
  role: "textbox",
527
527
  "aria-multiline": "true",
528
528
  class: "mathjax_ignore",
529
- ...l.ariaLabel ? { "aria-label": l.ariaLabel } : {}
529
+ ...i.ariaLabel ? { "aria-label": i.ariaLabel } : {}
530
530
  };
531
531
  }
532
- let j = s(f({
532
+ let D = b(ie({
533
533
  isBold: !1,
534
534
  canBold: !1,
535
535
  isItalic: !1,
@@ -551,35 +551,35 @@ function Pt(c, l) {
551
551
  tableHasBorder: !1,
552
552
  textAlign: "left"
553
553
  }));
554
- function M() {
555
- r(S) && a(j, {
556
- isBold: r(S).isActive("bold"),
557
- canBold: r(S).can().chain().focus().toggleBold().run(),
558
- isItalic: r(S).isActive("italic"),
559
- canItalic: r(S).can().chain().focus().toggleItalic().run(),
560
- isStrike: r(S).isActive("strike"),
561
- canStrike: r(S).can().chain().focus().toggleStrike().run(),
562
- isCode: r(S).isActive("code"),
563
- canCode: r(S).can().chain().focus().toggleCode().run(),
564
- isUnderline: r(S).isActive("underline"),
565
- isSubScript: r(S).isActive("subscript"),
566
- isSuperScript: r(S).isActive("superscript"),
567
- isHeading3: r(S).isActive("heading", { level: 3 }),
568
- isBulletList: r(S).isActive("bulletList"),
569
- isOrderedList: r(S).isActive("orderedList"),
570
- canUndo: r(S).can().chain().focus().undo().run(),
571
- canRedo: r(S).can().chain().focus().redo().run(),
572
- isTable: r(S).isActive("table"),
573
- canTable: r(S).can().chain().focus().insertTable().run(),
574
- tableHasBorder: r(S).getAttributes("table")?.border === "1",
575
- textAlign: r(S).isActive({ textAlign: "right" }) ? "right" : r(S).isActive({ textAlign: "center" }) ? "center" : r(S).isActive({ textAlign: "justify" }) ? "justify" : "left"
554
+ function O() {
555
+ f(C) && t(D, {
556
+ isBold: f(C).isActive("bold"),
557
+ canBold: f(C).can().chain().focus().toggleBold().run(),
558
+ isItalic: f(C).isActive("italic"),
559
+ canItalic: f(C).can().chain().focus().toggleItalic().run(),
560
+ isStrike: f(C).isActive("strike"),
561
+ canStrike: f(C).can().chain().focus().toggleStrike().run(),
562
+ isCode: f(C).isActive("code"),
563
+ canCode: f(C).can().chain().focus().toggleCode().run(),
564
+ isUnderline: f(C).isActive("underline"),
565
+ isSubScript: f(C).isActive("subscript"),
566
+ isSuperScript: f(C).isActive("superscript"),
567
+ isHeading3: f(C).isActive("heading", { level: 3 }),
568
+ isBulletList: f(C).isActive("bulletList"),
569
+ isOrderedList: f(C).isActive("orderedList"),
570
+ canUndo: f(C).can().chain().focus().undo().run(),
571
+ canRedo: f(C).can().chain().focus().redo().run(),
572
+ isTable: f(C).isActive("table"),
573
+ canTable: f(C).can().chain().focus().insertTable().run(),
574
+ tableHasBorder: f(C).getAttributes("table")?.border === "1",
575
+ textAlign: f(C).isActive({ textAlign: "right" }) ? "right" : f(C).isActive({ textAlign: "center" }) ? "center" : f(C).isActive({ textAlign: "justify" }) ? "justify" : "left"
576
576
  }, !0);
577
577
  }
578
- te(() => {
579
- a(S, new ue({
580
- element: x,
578
+ ne(() => {
579
+ t(C, new fe({
580
+ element: y,
581
581
  extensions: [
582
- G.configure({
582
+ W.configure({
583
583
  heading: { levels: [
584
584
  1,
585
585
  2,
@@ -594,12 +594,12 @@ function Pt(c, l) {
594
594
  shouldAutoLink: () => !1
595
595
  }
596
596
  }),
597
- K,
597
+ G,
598
598
  gt,
599
- he.configure({ limit: 1e6 }),
599
+ ge.configure({ limit: 1e6 }),
600
+ ve,
600
601
  _e,
601
- ge,
602
- q.configure({
602
+ K.configure({
603
603
  types: ["heading", "paragraph"],
604
604
  alignments: [
605
605
  "left",
@@ -607,246 +607,246 @@ function Pt(c, l) {
607
607
  "center"
608
608
  ]
609
609
  }),
610
- J,
610
+ q,
611
611
  Tt.configure({
612
612
  resizable: !0,
613
613
  HTMLAttributes: { border: "0" }
614
614
  }),
615
- ve,
616
- Et,
617
615
  ye,
618
- be.configure({ placeholder: () => h() })
616
+ Et,
617
+ be,
618
+ xe.configure({ placeholder: () => l() })
619
619
  ],
620
- content: p() || "",
621
- editable: !b(),
620
+ content: s() || "",
621
+ editable: !v(),
622
622
  autofocus: !1,
623
- editorProps: { attributes: k() },
623
+ editorProps: { attributes: E() },
624
624
  onUpdate: ({ editor: e }) => {
625
625
  let t = e.getHTML();
626
- l.onChange && l.onChange(t), M();
626
+ i.onChange && i.onChange(t), O();
627
627
  },
628
628
  onSelectionUpdate: () => {
629
- M();
629
+ O();
630
630
  },
631
631
  onFocus: () => {
632
- M();
632
+ O();
633
633
  }
634
- }), !0), M();
635
- }), L(() => {
636
- r(S) && r(S).destroy();
637
- }), O(() => {
638
- r(S) && p() !== r(S).getHTML() && r(S).commands.setContent(p() || "", { emitUpdate: !1 });
639
- }), O(() => {
640
- let e = !b();
641
- r(S) && r(S).isEditable !== e && r(S).setEditable(e, !1);
642
- }), O(() => {
643
- let e = k();
644
- r(S) && r(S).view.dom.getAttribute("aria-label") !== (e["aria-label"] ?? null) && r(S).setOptions({ editorProps: { attributes: e } });
634
+ }), !0), O();
635
+ }), n(() => {
636
+ f(C) && f(C).destroy();
637
+ }), h(() => {
638
+ f(C) && s() !== f(C).getHTML() && f(C).commands.setContent(s() || "", { emitUpdate: !1 });
639
+ }), h(() => {
640
+ let e = !v();
641
+ f(C) && f(C).isEditable !== e && f(C).setEditable(e, !1);
642
+ }), h(() => {
643
+ let e = E();
644
+ f(C) && f(C).view.dom.getAttribute("aria-label") !== (e["aria-label"] ?? null) && f(C).setOptions({ editorProps: { attributes: e } });
645
645
  });
646
- function P() {
647
- a(w, !0);
646
+ function A() {
647
+ t(w, !0);
648
648
  }
649
- function F(e) {
650
- e.currentTarget.contains(e.relatedTarget) || (a(w, !1), a(T, !1));
649
+ function M(e) {
650
+ e.currentTarget.contains(e.relatedTarget) || (t(w, !1), t(T, !1));
651
651
  }
652
652
  function ee() {
653
- r(S)?.chain().focus().toggleBold().run();
653
+ f(C)?.chain().focus().toggleBold().run();
654
654
  }
655
- function I() {
656
- r(S)?.chain().focus().toggleItalic().run();
655
+ function N() {
656
+ f(C)?.chain().focus().toggleItalic().run();
657
657
  }
658
- function R() {
659
- r(S)?.chain().focus().toggleStrike().run();
660
- }
661
- function z() {
662
- r(S)?.chain().focus().toggleCode().run();
663
- }
664
- function ne() {
665
- r(S)?.chain().focus().toggleUnderline().run();
658
+ function te() {
659
+ f(C)?.chain().focus().toggleStrike().run();
666
660
  }
667
661
  function re() {
668
- r(S)?.chain().focus().toggleSubscript().run();
669
- }
670
- function ie() {
671
- r(S)?.chain().focus().toggleSuperscript().run();
662
+ f(C)?.chain().focus().toggleCode().run();
672
663
  }
673
664
  function ae() {
674
- r(S)?.chain().focus().toggleHeading({ level: 3 }).run();
665
+ f(C)?.chain().focus().toggleUnderline().run();
675
666
  }
676
667
  function oe() {
677
- r(S)?.chain().focus().toggleBulletList().run();
668
+ f(C)?.chain().focus().toggleSubscript().run();
678
669
  }
679
670
  function se() {
680
- r(S)?.chain().focus().toggleOrderedList().run();
681
- }
682
- function V() {
683
- r(S)?.chain().focus().undo().run();
671
+ f(C)?.chain().focus().toggleSuperscript().run();
684
672
  }
685
673
  function ce() {
686
- r(S)?.chain().focus().redo().run();
674
+ f(C)?.chain().focus().toggleHeading({ level: 3 }).run();
687
675
  }
688
676
  function le() {
689
- r(S)?.chain().focus().insertTable({
677
+ f(C)?.chain().focus().toggleBulletList().run();
678
+ }
679
+ function ue() {
680
+ f(C)?.chain().focus().toggleOrderedList().run();
681
+ }
682
+ function R() {
683
+ f(C)?.chain().focus().undo().run();
684
+ }
685
+ function z() {
686
+ f(C)?.chain().focus().redo().run();
687
+ }
688
+ function de() {
689
+ f(C)?.chain().focus().insertTable({
690
690
  rows: 2,
691
691
  cols: 2,
692
692
  withHeaderRow: !1
693
693
  }).run();
694
694
  }
695
- function de() {
696
- r(S)?.chain().focus().addRowAfter().run();
695
+ function pe() {
696
+ f(C)?.chain().focus().addRowAfter().run();
697
697
  }
698
- function fe() {
699
- r(S)?.chain().focus().deleteRow().run();
698
+ function me() {
699
+ f(C)?.chain().focus().deleteRow().run();
700
700
  }
701
- function H() {
702
- r(S)?.chain().focus().addColumnAfter().run();
701
+ function B() {
702
+ f(C)?.chain().focus().addColumnAfter().run();
703
703
  }
704
- function pe() {
705
- r(S)?.chain().focus().deleteColumn().run();
704
+ function V() {
705
+ f(C)?.chain().focus().deleteColumn().run();
706
706
  }
707
- function U() {
708
- r(S)?.chain().focus().deleteTable().run();
707
+ function H() {
708
+ f(C)?.chain().focus().deleteTable().run();
709
709
  }
710
- function me() {
711
- if (!r(S)) return;
712
- let e = r(S).getAttributes("table"), t = {
710
+ function he() {
711
+ if (!f(C)) return;
712
+ let e = f(C).getAttributes("table"), t = {
713
713
  ...e,
714
714
  border: e.border === "0" ? "1" : "0"
715
715
  };
716
- r(S).commands.updateAttributes("table", t);
716
+ f(C).commands.updateAttributes("table", t);
717
717
  }
718
- function W(e) {
719
- r(S)?.chain().focus().setTextAlign(e).run(), a(T, !1);
718
+ function U(e) {
719
+ f(C)?.chain().focus().setTextAlign(e).run(), t(T, !1);
720
720
  }
721
- function xe() {
721
+ function Se() {
722
722
  let e = window.prompt("Enter image URL:");
723
- e && r(S)?.chain().focus().setImage({ src: e }).run();
723
+ e && f(C)?.chain().focus().setImage({ src: e }).run();
724
724
  }
725
- function Y(e) {
725
+ function J(e) {
726
726
  e.preventDefault();
727
727
  }
728
- function X() {
729
- if (r(S)) {
730
- let e = r(S).getHTML();
731
- e !== p() && l.onChange?.(e), r(S).commands.blur();
728
+ function Y() {
729
+ if (f(C)) {
730
+ let e = f(C).getHTML();
731
+ e !== s() && i.onChange?.(e), f(C).commands.blur();
732
732
  }
733
733
  }
734
- var Z = Mt(), Se = e(Z);
734
+ var X = Mt(), Z = a(X);
735
735
  let Q;
736
- var Ce = e(Se);
737
- y(e(Ce), (e) => x = e, () => x), o(Ce), o(Se);
738
- var we = u(Se, 2), Te = (t) => {
739
- var s = jt();
740
- let c;
741
- var l = e(s), f = e(l), p = e(f), h = (e) => {
736
+ var Ce = a(Z);
737
+ F(a(Ce), (e) => y = e, () => y), P(Ce), P(Z);
738
+ var we = g(Z, 2), Te = (e) => {
739
+ var n = jt();
740
+ let i;
741
+ var o = a(n), s = a(o), l = a(s), d = (e) => {
742
742
  var t = Dt();
743
- A(t, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10.02H3V19z\"/></svg>", !0), o(t), d(() => t.disabled = !r(j).canTable), i("click", t, le), m(e, t);
743
+ L(t, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10.02H3V19z\"/></svg>", !0), P(t), p(() => t.disabled = !f(D).canTable), k("click", t, de), r(e, t);
744
744
  };
745
- v(p, (e) => {
746
- r(j).isTable || e(h);
745
+ _(l, (e) => {
746
+ f(D).isTable || e(d);
747
747
  });
748
- var g = u(p, 2), y = (e) => {
749
- var t = Ot(), n = D(t);
750
- let a;
751
- A(n, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M22,10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V3H4V5H8V3H10V5H14V3H16V5H20V3H22V10M4,10H8V7H4V10M10,10H14V7H10V10M20,10V7H16V10H20M11,14H13V17H16V19H13V22H11V19H8V17H11V14Z\"/></svg>", !0), o(n);
752
- var s = u(n, 2);
753
- let c;
754
- A(s, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M9.41,13L12,15.59L14.59,13L16,14.41L13.41,17L16,19.59L14.59,21L12,18.41L9.41,21L8,19.59L10.59,17L8,14.41L9.41,13M22,9A2,2 0 0,1 20,11H4A2,2 0 0,1 2,9V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V9M4,9H8V6H4V9M10,9H14V6H10V9M16,9H20V6H16V9Z\"/></svg>", !0), o(s);
755
- var l = u(s, 2);
756
- let f;
757
- A(l, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M11,2A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H2V2H11M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M15,11H18V8H20V11H23V13H20V16H18V13H15V11Z\"/></svg>", !0), o(l);
758
- var p = u(l, 2);
748
+ var h = g(l, 2), v = (e) => {
749
+ var t = Ot(), n = c(t);
750
+ let i;
751
+ L(n, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M22,10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V3H4V5H8V3H10V5H14V3H16V5H20V3H22V10M4,10H8V7H4V10M10,10H14V7H10V10M20,10V7H16V10H20M11,14H13V17H16V19H13V22H11V19H8V17H11V14Z\"/></svg>", !0), P(n);
752
+ var a = g(n, 2);
753
+ let o;
754
+ L(a, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M9.41,13L12,15.59L14.59,13L16,14.41L13.41,17L16,19.59L14.59,21L12,18.41L9.41,21L8,19.59L10.59,17L8,14.41L9.41,13M22,9A2,2 0 0,1 20,11H4A2,2 0 0,1 2,9V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V9M4,9H8V6H4V9M10,9H14V6H10V9M16,9H20V6H16V9Z\"/></svg>", !0), P(a);
755
+ var s = g(a, 2);
756
+ let l;
757
+ L(s, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M11,2A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H2V2H11M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M15,11H18V8H20V11H23V13H20V16H18V13H15V11Z\"/></svg>", !0), P(s);
758
+ var u = g(s, 2);
759
+ let d;
760
+ L(u, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M4,2H11A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H4A2,2 0 0,1 2,20V4A2,2 0 0,1 4,2M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M17.59,12L15,9.41L16.41,8L19,10.59L21.59,8L23,9.41L20.41,12L23,14.59L21.59,16L19,13.41L16.41,16L15,14.59L17.59,12Z\"/></svg>", !0), P(u);
761
+ var m = g(u, 2);
759
762
  let h;
760
- A(p, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M4,2H11A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H4A2,2 0 0,1 2,20V4A2,2 0 0,1 4,2M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M17.59,12L15,9.41L16.41,8L19,10.59L21.59,8L23,9.41L20.41,12L23,14.59L21.59,16L19,13.41L16.41,16L15,14.59L17.59,12Z\"/></svg>", !0), o(p);
761
- var g = u(p, 2);
762
- let _;
763
- A(g, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M15.46,15.88L16.88,14.46L19,16.59L21.12,14.46L22.54,15.88L20.41,18L22.54,20.12L21.12,21.54L19,19.41L16.88,21.54L15.46,20.12L17.59,18L15.46,15.88M4,3H18A2,2 0 0,1 20,5V12.08C18.45,11.82 16.92,12.18 15.68,13H12V17H13.08C12.97,17.68 12.97,18.35 13.08,19H4A2,2 0 0,1 2,17V5A2,2 0 0,1 4,3M4,7V11H10V7H4M12,7V11H18V7H12M4,13V17H10V13H4Z\"/></svg>", !0), o(g);
764
- var v = u(g, 2);
765
- let y;
766
- A(v, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z\"/></svg>", !0), o(v), d(() => {
767
- a = C(n, 1, "pie-toolbar-btn", null, a, { active: r(j).isTable }), n.disabled = !r(j).canTable, c = C(s, 1, "pie-toolbar-btn", null, c, { active: r(j).isTable }), s.disabled = !r(j).canTable, f = C(l, 1, "pie-toolbar-btn", null, f, { active: r(j).isTable }), l.disabled = !r(j).canTable, h = C(p, 1, "pie-toolbar-btn", null, h, { active: r(j).isTable }), p.disabled = !r(j).canTable, _ = C(g, 1, "pie-toolbar-btn", null, _, { active: r(j).isTable }), g.disabled = !r(j).canTable, y = C(v, 1, "pie-toolbar-btn", null, y, { active: r(j).tableHasBorder }), v.disabled = !r(j).canTable;
768
- }), i("click", n, de), i("click", s, fe), i("click", l, H), i("click", p, pe), i("click", g, U), i("click", v, me), m(e, t);
763
+ L(m, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M15.46,15.88L16.88,14.46L19,16.59L21.12,14.46L22.54,15.88L20.41,18L22.54,20.12L21.12,21.54L19,19.41L16.88,21.54L15.46,20.12L17.59,18L15.46,15.88M4,3H18A2,2 0 0,1 20,5V12.08C18.45,11.82 16.92,12.18 15.68,13H12V17H13.08C12.97,17.68 12.97,18.35 13.08,19H4A2,2 0 0,1 2,17V5A2,2 0 0,1 4,3M4,7V11H10V7H4M12,7V11H18V7H12M4,13V17H10V13H4Z\"/></svg>", !0), P(m);
764
+ var _ = g(m, 2);
765
+ let v;
766
+ L(_, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z\"/></svg>", !0), P(_), p(() => {
767
+ i = S(n, 1, "pie-toolbar-btn", null, i, { active: f(D).isTable }), n.disabled = !f(D).canTable, o = S(a, 1, "pie-toolbar-btn", null, o, { active: f(D).isTable }), a.disabled = !f(D).canTable, l = S(s, 1, "pie-toolbar-btn", null, l, { active: f(D).isTable }), s.disabled = !f(D).canTable, d = S(u, 1, "pie-toolbar-btn", null, d, { active: f(D).isTable }), u.disabled = !f(D).canTable, h = S(m, 1, "pie-toolbar-btn", null, h, { active: f(D).isTable }), m.disabled = !f(D).canTable, v = S(_, 1, "pie-toolbar-btn", null, v, { active: f(D).tableHasBorder }), _.disabled = !f(D).canTable;
768
+ }), k("click", n, pe), k("click", a, me), k("click", s, B), k("click", u, V), k("click", m, H), k("click", _, he), r(e, t);
769
769
  };
770
- v(g, (e) => {
771
- r(j).isTable && e(y);
770
+ _(h, (e) => {
771
+ f(D).isTable && e(v);
772
772
  });
773
- var b = u(g, 2), x = (t) => {
774
- var s = At(), c = D(s);
773
+ var y = g(h, 2), b = (e) => {
774
+ var n = At(), i = c(n);
775
+ let o;
776
+ L(i, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z\"/></svg>", !0), P(i);
777
+ var s = g(i, 2);
775
778
  let l;
776
- A(c, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z\"/></svg>", !0), o(c);
777
- var f = u(c, 2);
778
- let p;
779
- A(f, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z\"/></svg>", !0), o(f);
780
- var h = u(f, 2);
781
- let g;
782
- A(h, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z\"/></svg>", !0), o(h);
783
- var y = u(h, 2);
784
- let b;
785
- A(y, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z\"/></svg>", !0), o(y);
786
- var x = u(y, 2);
787
- let S;
788
- A(x, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z\"/></svg>", !0), o(x);
789
- var w = u(x, 2);
790
- let E;
791
- A(w, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M22,18h-2v1h3v1h-4v-2c0-0.55,0.45-1,1-1h2v-1h-3v-1h3c0.55,0,1,0.45,1,1v1C23,17.55,22.55,18,22,18z M5.88,18h2.66 l3.4-5.42h0.12l3.4,5.42h2.66l-4.65-7.27L17.81,4h-2.68l-3.07,4.99h-0.12L8.85,4H6.19l4.32,6.73L5.88,18z\"/></svg>", !0), o(w);
792
- var O = u(w, 2);
793
- let k;
794
- A(O, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M22,7h-2v1h3v1h-4V7c0-0.55,0.45-1,1-1h2V5h-3V4h3c0.55,0,1,0.45,1,1v1C23,6.55,22.55,7,22,7z M5.88,20h2.66l3.4-5.42h0.12 l3.4,5.42h2.66l-4.65-7.27L17.81,6h-2.68l-3.07,4.99h-0.12L8.85,6H6.19l4.32,6.73L5.88,20z\"/></svg>", !0), o(O);
795
- var M = u(O, 2);
796
- let N;
797
- A(M, () => "<svg width=\"20\" height=\"18\" viewBox=\"0 0 30 28\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M27 4V24H29C29.5 24 30 24.5 30 25V27C30 27.5625 29.5 28 29 28H19C18.4375 28 18 27.5625 18 27V25C18 24.5 18.4375 24 19 24H21V16H9V24H11C11.5 24 12 24.5 12 25V27C12 27.5625 11.5 28 11 28H1C0.4375 28 0 27.5625 0 27V25C0 24.5 0.4375 24 1 24H3V4H1C0.4375 4 0 3.5625 0 3V1C0 0.5 0.4375 0 1 0H11C11.5 0 12 0.5 12 1V3C12 3.5625 11.5 4 11 4H9V12H21V4H19C18.4375 4 18 3.5625 18 3V1C18 0.5 18.4375 0 19 0H29C29.5 0 30 0.5 30 1V3C30 3.5625 29.5 4 29 4H27Z\"/></svg>", !0), o(M);
798
- var P = u(M, 2);
799
- A(P, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z\"/></svg>", !0), o(P);
800
- var F = u(P, 2), L = e(F), te = e(L), B = (e) => {
801
- var t = n();
802
- A(D(t), () => "<svg width=\"20\" height=\"20\" viewBox=\"0 0 66 66\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M65.625 4.75C65.625 7.38672 63.4277 9.4375 60.9375 9.4375H28.125C25.4883 9.4375 23.4375 7.38672 23.4375 4.75C23.4375 2.25977 25.4883 0.0625 28.125 0.0625H60.9375C63.4277 0.0625 65.625 2.25977 65.625 4.75ZM65.625 42.25C65.625 44.8867 63.4277 46.9375 60.9375 46.9375H28.125C25.4883 46.9375 23.4375 44.8867 23.4375 42.25C23.4375 39.7598 25.4883 37.5625 28.125 37.5625H60.9375C63.4277 37.5625 65.625 39.7598 65.625 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z\"/></svg>"), m(e, t);
803
- }, le = (e) => {
804
- var t = n();
805
- A(D(t), () => "<svg width=\"20\" height=\"20\" viewBox=\"0 0 66 66\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M51.5625 4.75C51.5625 7.38672 49.3652 9.4375 46.875 9.4375H18.75C16.1133 9.4375 14.0625 7.38672 14.0625 4.75C14.0625 2.25977 16.1133 0.0625 18.75 0.0625H46.875C49.3652 0.0625 51.5625 2.25977 51.5625 4.75ZM65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5ZM0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61ZM51.5625 42.25C51.5625 44.8867 49.3652 46.9375 46.875 46.9375H18.75C16.1133 46.9375 14.0625 44.8867 14.0625 42.25C14.0625 39.7598 16.1133 37.5625 18.75 37.5625H46.875C49.3652 37.5625 51.5625 39.7598 51.5625 42.25Z\"/></svg>"), m(e, t);
806
- }, ue = (e) => {
807
- var t = n();
808
- A(D(t), () => "<svg width=\"20\" height=\"20\" viewBox=\"0 0 66 66\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M42.1875 4.75C42.1875 7.38672 39.9902 9.4375 37.5 9.4375H4.6875C2.05078 9.4375 0 7.38672 0 4.75C0 2.25977 2.05078 0.0625 4.6875 0.0625H37.5C39.9902 0.0625 42.1875 2.25977 42.1875 4.75ZM42.1875 42.25C42.1875 44.8867 39.9902 46.9375 37.5 46.9375H4.6875C2.05078 46.9375 0 44.8867 0 42.25C0 39.7598 2.05078 37.5625 4.6875 37.5625H37.5C39.9902 37.5625 42.1875 39.7598 42.1875 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z\"/></svg>"), m(e, t);
779
+ L(s, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z\"/></svg>", !0), P(s);
780
+ var d = g(s, 2);
781
+ let h;
782
+ L(d, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z\"/></svg>", !0), P(d);
783
+ var v = g(d, 2);
784
+ let y;
785
+ L(v, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z\"/></svg>", !0), P(v);
786
+ var b = g(v, 2);
787
+ let x;
788
+ L(b, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z\"/></svg>", !0), P(b);
789
+ var C = g(b, 2);
790
+ let w;
791
+ L(C, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M22,18h-2v1h3v1h-4v-2c0-0.55,0.45-1,1-1h2v-1h-3v-1h3c0.55,0,1,0.45,1,1v1C23,17.55,22.55,18,22,18z M5.88,18h2.66 l3.4-5.42h0.12l3.4,5.42h2.66l-4.65-7.27L17.81,4h-2.68l-3.07,4.99h-0.12L8.85,4H6.19l4.32,6.73L5.88,18z\"/></svg>", !0), P(C);
792
+ var E = g(C, 2);
793
+ let O;
794
+ L(E, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M22,7h-2v1h3v1h-4V7c0-0.55,0.45-1,1-1h2V5h-3V4h3c0.55,0,1,0.45,1,1v1C23,6.55,22.55,7,22,7z M5.88,20h2.66l3.4-5.42h0.12 l3.4,5.42h2.66l-4.65-7.27L17.81,6h-2.68l-3.07,4.99h-0.12L8.85,6H6.19l4.32,6.73L5.88,20z\"/></svg>", !0), P(E);
795
+ var A = g(E, 2);
796
+ let j;
797
+ L(A, () => "<svg width=\"20\" height=\"18\" viewBox=\"0 0 30 28\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M27 4V24H29C29.5 24 30 24.5 30 25V27C30 27.5625 29.5 28 29 28H19C18.4375 28 18 27.5625 18 27V25C18 24.5 18.4375 24 19 24H21V16H9V24H11C11.5 24 12 24.5 12 25V27C12 27.5625 11.5 28 11 28H1C0.4375 28 0 27.5625 0 27V25C0 24.5 0.4375 24 1 24H3V4H1C0.4375 4 0 3.5625 0 3V1C0 0.5 0.4375 0 1 0H11C11.5 0 12 0.5 12 1V3C12 3.5625 11.5 4 11 4H9V12H21V4H19C18.4375 4 18 3.5625 18 3V1C18 0.5 18.4375 0 19 0H29C29.5 0 30 0.5 30 1V3C30 3.5625 29.5 4 29 4H27Z\"/></svg>", !0), P(A);
798
+ var M = g(A, 2);
799
+ L(M, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z\"/></svg>", !0), P(M);
800
+ var F = g(M, 2), I = a(F), ne = a(I), ie = (e) => {
801
+ var t = m();
802
+ L(c(t), () => "<svg width=\"20\" height=\"20\" viewBox=\"0 0 66 66\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M65.625 4.75C65.625 7.38672 63.4277 9.4375 60.9375 9.4375H28.125C25.4883 9.4375 23.4375 7.38672 23.4375 4.75C23.4375 2.25977 25.4883 0.0625 28.125 0.0625H60.9375C63.4277 0.0625 65.625 2.25977 65.625 4.75ZM65.625 42.25C65.625 44.8867 63.4277 46.9375 60.9375 46.9375H28.125C25.4883 46.9375 23.4375 44.8867 23.4375 42.25C23.4375 39.7598 25.4883 37.5625 28.125 37.5625H60.9375C63.4277 37.5625 65.625 39.7598 65.625 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z\"/></svg>"), r(e, t);
803
+ }, de = (e) => {
804
+ var t = m();
805
+ L(c(t), () => "<svg width=\"20\" height=\"20\" viewBox=\"0 0 66 66\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M51.5625 4.75C51.5625 7.38672 49.3652 9.4375 46.875 9.4375H18.75C16.1133 9.4375 14.0625 7.38672 14.0625 4.75C14.0625 2.25977 16.1133 0.0625 18.75 0.0625H46.875C49.3652 0.0625 51.5625 2.25977 51.5625 4.75ZM65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5ZM0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61ZM51.5625 42.25C51.5625 44.8867 49.3652 46.9375 46.875 46.9375H18.75C16.1133 46.9375 14.0625 44.8867 14.0625 42.25C14.0625 39.7598 16.1133 37.5625 18.75 37.5625H46.875C49.3652 37.5625 51.5625 39.7598 51.5625 42.25Z\"/></svg>"), r(e, t);
806
+ }, fe = (e) => {
807
+ var t = m();
808
+ L(c(t), () => "<svg width=\"20\" height=\"20\" viewBox=\"0 0 66 66\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M42.1875 4.75C42.1875 7.38672 39.9902 9.4375 37.5 9.4375H4.6875C2.05078 9.4375 0 7.38672 0 4.75C0 2.25977 2.05078 0.0625 4.6875 0.0625H37.5C39.9902 0.0625 42.1875 2.25977 42.1875 4.75ZM42.1875 42.25C42.1875 44.8867 39.9902 46.9375 37.5 46.9375H4.6875C2.05078 46.9375 0 44.8867 0 42.25C0 39.7598 2.05078 37.5625 4.6875 37.5625H37.5C39.9902 37.5625 42.1875 39.7598 42.1875 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z\"/></svg>"), r(e, t);
809
809
  };
810
- v(te, (e) => {
811
- r(j).textAlign === "right" ? e(B) : r(j).textAlign === "center" ? e(le, 1) : e(ue, -1);
812
- }), _(2), o(L);
813
- var de = u(L, 2), fe = (t) => {
814
- var n = kt(), r = e(n);
815
- A(r, () => "<svg width=\"20\" height=\"20\" viewBox=\"0 0 66 66\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M42.1875 4.75C42.1875 7.38672 39.9902 9.4375 37.5 9.4375H4.6875C2.05078 9.4375 0 7.38672 0 4.75C0 2.25977 2.05078 0.0625 4.6875 0.0625H37.5C39.9902 0.0625 42.1875 2.25977 42.1875 4.75ZM42.1875 42.25C42.1875 44.8867 39.9902 46.9375 37.5 46.9375H4.6875C2.05078 46.9375 0 44.8867 0 42.25C0 39.7598 2.05078 37.5625 4.6875 37.5625H37.5C39.9902 37.5625 42.1875 39.7598 42.1875 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z\"/></svg>", !0), o(r);
816
- var a = u(r, 2);
817
- A(a, () => "<svg width=\"20\" height=\"20\" viewBox=\"0 0 66 66\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M51.5625 4.75C51.5625 7.38672 49.3652 9.4375 46.875 9.4375H18.75C16.1133 9.4375 14.0625 7.38672 14.0625 4.75C14.0625 2.25977 16.1133 0.0625 18.75 0.0625H46.875C49.3652 0.0625 51.5625 2.25977 51.5625 4.75ZM65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5ZM0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61ZM51.5625 42.25C51.5625 44.8867 49.3652 46.9375 46.875 46.9375H18.75C16.1133 46.9375 14.0625 44.8867 14.0625 42.25C14.0625 39.7598 16.1133 37.5625 18.75 37.5625H46.875C49.3652 37.5625 51.5625 39.7598 51.5625 42.25Z\"/></svg>", !0), o(a);
818
- var s = u(a, 2);
819
- A(s, () => "<svg width=\"20\" height=\"20\" viewBox=\"0 0 66 66\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M65.625 4.75C65.625 7.38672 63.4277 9.4375 60.9375 9.4375H28.125C25.4883 9.4375 23.4375 7.38672 23.4375 4.75C23.4375 2.25977 25.4883 0.0625 28.125 0.0625H60.9375C63.4277 0.0625 65.625 2.25977 65.625 4.75ZM65.625 42.25C65.625 44.8867 63.4277 46.9375 60.9375 46.9375H28.125C25.4883 46.9375 23.4375 44.8867 23.4375 42.25C23.4375 39.7598 25.4883 37.5625 28.125 37.5625H60.9375C63.4277 37.5625 65.625 39.7598 65.625 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z\"/></svg>", !0), o(s), o(n), i("click", r, () => W("left")), i("click", a, () => W("center")), i("click", s, () => W("right")), m(t, n);
810
+ _(ne, (e) => {
811
+ f(D).textAlign === "right" ? e(ie) : f(D).textAlign === "center" ? e(de, 1) : e(fe, -1);
812
+ }), u(2), P(I);
813
+ var pe = g(I, 2), me = (e) => {
814
+ var t = kt(), n = a(t);
815
+ L(n, () => "<svg width=\"20\" height=\"20\" viewBox=\"0 0 66 66\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M42.1875 4.75C42.1875 7.38672 39.9902 9.4375 37.5 9.4375H4.6875C2.05078 9.4375 0 7.38672 0 4.75C0 2.25977 2.05078 0.0625 4.6875 0.0625H37.5C39.9902 0.0625 42.1875 2.25977 42.1875 4.75ZM42.1875 42.25C42.1875 44.8867 39.9902 46.9375 37.5 46.9375H4.6875C2.05078 46.9375 0 44.8867 0 42.25C0 39.7598 2.05078 37.5625 4.6875 37.5625H37.5C39.9902 37.5625 42.1875 39.7598 42.1875 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z\"/></svg>", !0), P(n);
816
+ var i = g(n, 2);
817
+ L(i, () => "<svg width=\"20\" height=\"20\" viewBox=\"0 0 66 66\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M51.5625 4.75C51.5625 7.38672 49.3652 9.4375 46.875 9.4375H18.75C16.1133 9.4375 14.0625 7.38672 14.0625 4.75C14.0625 2.25977 16.1133 0.0625 18.75 0.0625H46.875C49.3652 0.0625 51.5625 2.25977 51.5625 4.75ZM65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5ZM0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61ZM51.5625 42.25C51.5625 44.8867 49.3652 46.9375 46.875 46.9375H18.75C16.1133 46.9375 14.0625 44.8867 14.0625 42.25C14.0625 39.7598 16.1133 37.5625 18.75 37.5625H46.875C49.3652 37.5625 51.5625 39.7598 51.5625 42.25Z\"/></svg>", !0), P(i);
818
+ var o = g(i, 2);
819
+ L(o, () => "<svg width=\"20\" height=\"20\" viewBox=\"0 0 66 66\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M65.625 4.75C65.625 7.38672 63.4277 9.4375 60.9375 9.4375H28.125C25.4883 9.4375 23.4375 7.38672 23.4375 4.75C23.4375 2.25977 25.4883 0.0625 28.125 0.0625H60.9375C63.4277 0.0625 65.625 2.25977 65.625 4.75ZM65.625 42.25C65.625 44.8867 63.4277 46.9375 60.9375 46.9375H28.125C25.4883 46.9375 23.4375 44.8867 23.4375 42.25C23.4375 39.7598 25.4883 37.5625 28.125 37.5625H60.9375C63.4277 37.5625 65.625 39.7598 65.625 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z\"/></svg>", !0), P(o), P(t), k("click", n, () => U("left")), k("click", i, () => U("center")), k("click", o, () => U("right")), r(e, t);
820
820
  };
821
- v(de, (e) => {
822
- r(T) && e(fe);
823
- }), o(F);
824
- var H = u(F, 2);
825
- let pe;
826
- A(H, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z\"/></svg>", !0), o(H);
827
- var U = u(H, 2);
828
- let me;
829
- A(U, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z\"/></svg>", !0), o(U);
830
- var G = u(U, 2);
831
- A(G, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z\"/></svg>", !0), o(G);
832
- var K = u(G, 2);
833
- A(K, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z\"/></svg>", !0), o(K), d(() => {
834
- l = C(c, 1, "pie-toolbar-btn", null, l, { active: r(j).isBold }), c.disabled = !r(j).canBold, p = C(f, 1, "pie-toolbar-btn", null, p, { active: r(j).isItalic }), f.disabled = !r(j).canItalic, g = C(h, 1, "pie-toolbar-btn", null, g, { active: r(j).isStrike }), h.disabled = !r(j).canStrike, b = C(y, 1, "pie-toolbar-btn", null, b, { active: r(j).isCode }), y.disabled = !r(j).canCode, S = C(x, 1, "pie-toolbar-btn", null, S, { active: r(j).isUnderline }), E = C(w, 1, "pie-toolbar-btn", null, E, { active: r(j).isSubScript }), k = C(O, 1, "pie-toolbar-btn", null, k, { active: r(j).isSuperScript }), N = C(M, 1, "pie-toolbar-btn", null, N, { active: r(j).isHeading3 }), pe = C(H, 1, "pie-toolbar-btn", null, pe, { active: r(j).isBulletList }), me = C(U, 1, "pie-toolbar-btn", null, me, { active: r(j).isOrderedList }), G.disabled = !r(j).canUndo, K.disabled = !r(j).canRedo;
835
- }), i("click", c, ee), i("click", f, I), i("click", h, R), i("click", y, z), i("click", x, ne), i("click", w, re), i("click", O, ie), i("click", M, ae), i("click", P, xe), i("click", L, () => a(T, !r(T))), i("click", H, oe), i("click", U, se), i("click", G, V), i("click", K, ce), m(t, s);
821
+ _(pe, (e) => {
822
+ f(T) && e(me);
823
+ }), P(F);
824
+ var B = g(F, 2);
825
+ let V;
826
+ L(B, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z\"/></svg>", !0), P(B);
827
+ var H = g(B, 2);
828
+ let he;
829
+ L(H, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z\"/></svg>", !0), P(H);
830
+ var W = g(H, 2);
831
+ L(W, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z\"/></svg>", !0), P(W);
832
+ var G = g(W, 2);
833
+ L(G, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z\"/></svg>", !0), P(G), p(() => {
834
+ o = S(i, 1, "pie-toolbar-btn", null, o, { active: f(D).isBold }), i.disabled = !f(D).canBold, l = S(s, 1, "pie-toolbar-btn", null, l, { active: f(D).isItalic }), s.disabled = !f(D).canItalic, h = S(d, 1, "pie-toolbar-btn", null, h, { active: f(D).isStrike }), d.disabled = !f(D).canStrike, y = S(v, 1, "pie-toolbar-btn", null, y, { active: f(D).isCode }), v.disabled = !f(D).canCode, x = S(b, 1, "pie-toolbar-btn", null, x, { active: f(D).isUnderline }), w = S(C, 1, "pie-toolbar-btn", null, w, { active: f(D).isSubScript }), O = S(E, 1, "pie-toolbar-btn", null, O, { active: f(D).isSuperScript }), j = S(A, 1, "pie-toolbar-btn", null, j, { active: f(D).isHeading3 }), V = S(B, 1, "pie-toolbar-btn", null, V, { active: f(D).isBulletList }), he = S(H, 1, "pie-toolbar-btn", null, he, { active: f(D).isOrderedList }), W.disabled = !f(D).canUndo, G.disabled = !f(D).canRedo;
835
+ }), k("click", i, ee), k("click", s, N), k("click", d, te), k("click", v, re), k("click", b, ae), k("click", C, oe), k("click", E, se), k("click", A, ce), k("click", M, Se), k("click", I, () => t(T, !f(T))), k("click", B, le), k("click", H, ue), k("click", W, R), k("click", G, z), r(e, n);
836
836
  };
837
- v(b, (e) => {
838
- r(j).isTable || e(x);
839
- }), o(f);
840
- var S = u(f, 2);
841
- A(S, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\"/></svg>", !0), o(S), o(l), o(s), d(() => {
842
- c = C(s, 1, "toolbar", null, c, { focused: r(w) }), s.inert = !r(w);
843
- }), i("mousedown", s, Y), i("click", S, X), m(t, s);
837
+ _(y, (e) => {
838
+ f(D).isTable || e(b);
839
+ }), P(s);
840
+ var x = g(s, 2);
841
+ L(x, () => "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" fill=\"currentColor\"><path d=\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\"/></svg>", !0), P(x), P(o), P(n), p(() => {
842
+ i = S(n, 1, "toolbar", null, i, { focused: f(w) }), n.inert = !f(w);
843
+ }), k("mousedown", n, J), k("click", x, Y), r(e, n);
844
844
  };
845
- v(we, (e) => {
846
- g() && r(S) && e(Te);
847
- }), o(Z), d(() => Q = C(Se, 1, "editor-holder", null, Q, { disabled: b() })), i("focusin", Z, P), i("focusout", Z, F), m(c, Z), B();
845
+ _(we, (e) => {
846
+ d() && f(C) && e(Te);
847
+ }), P(X), p(() => Q = S(Z, 1, "editor-holder", null, Q, { disabled: v() })), k("focusin", X, A), k("focusout", X, M), r(e, X), x();
848
848
  }
849
- h([
849
+ e([
850
850
  "focusin",
851
851
  "focusout",
852
852
  "mousedown",
@@ -854,61 +854,61 @@ h([
854
854
  ]);
855
855
  //#endregion
856
856
  //#region ../../lib-svelte/editable-html-tiptap-svelte/dist/index.js
857
- var Ft = Pt, It = R("<button type=\"button\" role=\"radio\"><span class=\"cell-key svelte-1u97j9p\"> </span> <span class=\"cell-label svelte-1u97j9p\"> </span></button>"), Lt = R("<div class=\"region-picker svelte-1u97j9p\" role=\"radiogroup\" aria-label=\"Correct region\"></div>"), Rt = {
857
+ var Ft = Pt, It = A("<button type=\"button\" role=\"radio\"><span class=\"cell-key svelte-1u97j9p\"> </span> <span class=\"cell-label svelte-1u97j9p\"> </span></button>"), Lt = A("<div class=\"region-picker svelte-1u97j9p\" role=\"radiogroup\" aria-label=\"Correct region\"></div>"), Rt = {
858
858
  hash: "svelte-1u97j9p",
859
859
  code: ".region-picker.svelte-1u97j9p {display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:6px;}.region-cell.svelte-1u97j9p {display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 10px;border:1.5px solid #cbd5e1;border-radius:6px;background:#ffffff;cursor:pointer;text-align:left;font-size:12px;}.region-cell.svelte-1u97j9p:hover {background:#f1f5f9;}.region-cell.selected.svelte-1u97j9p {border-color:#2563eb;background:#eff6ff;}.cell-key.svelte-1u97j9p {font-family:ui-monospace, SFMono-Regular, Menlo, monospace;font-size:11px;color:#64748b;}.cell-label.svelte-1u97j9p {font-weight:500;color:#0f172a;}"
860
860
  };
861
- function zt(n, a) {
862
- t(a, !0), N(n, Rt);
863
- let s = E(a, "circles", 7), f = E(a, "regionLabels", 23, () => ({})), h = E(a, "value", 7), g = E(a, "onchange", 7), _ = p(() => ie(s()?.length || 0));
864
- function v(e) {
865
- let t = ce(e), n = f()?.[t];
866
- return n && n.trim().length > 0 ? n : oe(s() || [], e);
861
+ function zt(e, t) {
862
+ o(t, !0), I(e, Rt);
863
+ let n = j(t, "circles", 7), c = j(t, "regionLabels", 23, () => ({})), l = j(t, "value", 7), u = j(t, "onchange", 7), m = y(() => se(n()?.length || 0));
864
+ function h(e) {
865
+ let t = z(e), r = c()?.[t];
866
+ return r && r.trim().length > 0 ? r : le(n() || [], e);
867
867
  }
868
- function y(e) {
869
- return le(e, h());
868
+ function _(e) {
869
+ return de(e, l());
870
870
  }
871
- var b = {
871
+ var v = {
872
872
  get circles() {
873
- return s();
873
+ return n();
874
874
  },
875
875
  set circles(e) {
876
- s(e), c();
876
+ n(e), s();
877
877
  },
878
878
  get regionLabels() {
879
- return f();
879
+ return c();
880
880
  },
881
881
  set regionLabels(e = {}) {
882
- f(e), c();
882
+ c(e), s();
883
883
  },
884
884
  get value() {
885
- return h();
885
+ return l();
886
886
  },
887
887
  set value(e) {
888
- h(e), c();
888
+ l(e), s();
889
889
  },
890
890
  get onchange() {
891
- return g();
891
+ return u();
892
892
  },
893
893
  set onchange(e) {
894
- g(e), c();
894
+ u(e), s();
895
895
  }
896
- }, S = Lt();
897
- return T(S, 21, () => r(_), (e) => ce(e), (t, n) => {
898
- var a = It();
899
- let s;
900
- var c = e(a), f = l(c, !0), p = l(u(c, 2), !0);
901
- o(a), d((e, t, n, r) => {
902
- s = C(a, 1, "region-cell svelte-1u97j9p", null, s, { selected: e }), x(a, "aria-checked", t), z(f, n), z(p, r);
896
+ }, b = Lt();
897
+ return C(b, 21, () => f(m), (e) => z(e), (e, t) => {
898
+ var n = It();
899
+ let o;
900
+ var s = a(n), c = d(s, !0), l = d(g(s, 2), !0);
901
+ P(n), p((e, t, r, a) => {
902
+ o = S(n, 1, "region-cell svelte-1u97j9p", null, o, { selected: e }), N(n, "aria-checked", t), i(c, r), i(l, a);
903
903
  }, [
904
- () => y(r(n)),
905
- () => y(r(n)),
906
- () => ce(r(n)) || "—",
907
- () => v(r(n))
908
- ]), i("click", a, () => g()(r(n))), m(t, a);
909
- }), o(S), m(n, S), B(b);
904
+ () => _(f(t)),
905
+ () => _(f(t)),
906
+ () => z(f(t)) || "—",
907
+ () => h(f(t))
908
+ ]), k("click", n, () => u()(f(t))), r(e, n);
909
+ }), P(b), r(e, b), x(v);
910
910
  }
911
- h(["click"]), P(zt, {
911
+ e(["click"]), w(zt, {
912
912
  circles: {},
913
913
  regionLabels: {},
914
914
  value: {},
@@ -916,66 +916,66 @@ h(["click"]), P(zt, {
916
916
  }, [], [], { mode: "open" });
917
917
  //#endregion
918
918
  //#region src/author/Author.svelte
919
- var Bt = R("<div class=\"field-group svelte-13ppn6m\"><div class=\"field-header svelte-13ppn6m\"> </div> <!></div>"), Vt = R("<label class=\"circle-label-row svelte-13ppn6m\"><span></span> <input type=\"text\" class=\"svelte-13ppn6m\"/></label>"), Ht = R("<div class=\"hint svelte-13ppn6m\">Add at least one tile; each tile needs a correct region and either a label (text or simple HTML) or an\n image URL plus short alt text.</div>"), Ut = R("<div class=\"tile-field-full svelte-13ppn6m\"><button type=\"button\" class=\"btn-ghost svelte-13ppn6m\">Remove image</button></div>"), Wt = R("<li class=\"tile-row svelte-13ppn6m\"><div class=\"tile-row-header svelte-13ppn6m\"><div class=\"tile-inputs svelte-13ppn6m\"><label class=\"svelte-13ppn6m\"><span>ID</span> <input type=\"text\" class=\"svelte-13ppn6m\"/></label> <label class=\"label-input svelte-13ppn6m\"><span>Label</span> <input type=\"text\" class=\"svelte-13ppn6m\"/></label> <label class=\"label-input tile-field-full svelte-13ppn6m\"><span>Image URL (optional)</span> <input type=\"text\" placeholder=\"https://… or data:image/…\" class=\"svelte-13ppn6m\"/></label> <label class=\"label-input tile-field-full svelte-13ppn6m\"><span>Image alt (required if image URL is set)</span> <input type=\"text\" class=\"svelte-13ppn6m\"/></label> <!></div> <div class=\"tile-actions svelte-13ppn6m\"><button type=\"button\" class=\"btn-ghost svelte-13ppn6m\" aria-label=\"Move up\">↑</button> <button type=\"button\" class=\"btn-ghost svelte-13ppn6m\" aria-label=\"Move down\">↓</button> <button type=\"button\" class=\"btn-ghost danger svelte-13ppn6m\" aria-label=\"Remove\">✕</button></div></div> <div class=\"tile-region svelte-13ppn6m\"><div class=\"region-header svelte-13ppn6m\">Correct region</div> <!></div></li>"), Gt = R("<label class=\"override-row svelte-13ppn6m\"><span class=\"override-key svelte-13ppn6m\"> </span> <input type=\"text\" class=\"svelte-13ppn6m\"/></label>"), Kt = R("<div class=\"preview-diagram svelte-13ppn6m\"><!></div>"), qt = R("<p class=\"hint preview-diagram-placeholder svelte-13ppn6m\">Add at least one tile to see the diagram.</p>"), Jt = R("<p class=\"hint preview-diagram-placeholder svelte-13ppn6m\">Exactly two circles are required for the preview.</p>"), Yt = R("<img alt=\"\" class=\"preview-thumb svelte-13ppn6m\" aria-hidden=\"true\"/>"), Xt = R("<li class=\"svelte-13ppn6m\"><span class=\"preview-tile svelte-13ppn6m\"><!> </span> <span class=\"preview-arrow svelte-13ppn6m\">→</span> <span class=\"preview-region svelte-13ppn6m\"> </span></li>"), Zt = R("<div class=\"preview-list-heading svelte-13ppn6m\">Correct regions</div> <ol class=\"preview-list svelte-13ppn6m\"></ol>", 1), Qt = R("<div class=\"author-shell svelte-13ppn6m\"><div class=\"editor-column svelte-13ppn6m\"><!> <!> <div class=\"field-group svelte-13ppn6m\"><div class=\"field-header svelte-13ppn6m\">Circles</div> <p class=\"hint circle-count-note svelte-13ppn6m\">2 circles (4 regions).</p> <div class=\"circle-labels svelte-13ppn6m\"></div></div> <div class=\"field-group svelte-13ppn6m\"><div class=\"field-header-row svelte-13ppn6m\"><span class=\"field-header svelte-13ppn6m\">Tiles</span> <button type=\"button\" class=\"btn-add svelte-13ppn6m\">+ Add tile</button></div> <!> <ul class=\"tile-list svelte-13ppn6m\"></ul></div> <details class=\"field-group svelte-13ppn6m\"><summary class=\"field-header svelte-13ppn6m\">Region labels (advanced)</summary> <p class=\"hint svelte-13ppn6m\">Override the auto-composed region labels that delivery uses for aria-labels and visible region chrome.</p> <!></details></div> <button type=\"button\" class=\"split-gutter svelte-13ppn6m\" role=\"slider\" aria-orientation=\"vertical\" aria-label=\"Resize editor and preview panels\"></button> <div class=\"preview-column svelte-13ppn6m\"><div class=\"preview-header svelte-13ppn6m\">Preview</div> <div class=\"preview-note svelte-13ppn6m\">Live diagram with each tile in its authored <em>correct region</em>. Drag the vertical handle (or use\n arrow keys when it is focused) to change the editor / preview split.</div> <div class=\"preview-summary svelte-13ppn6m\"><div><strong>Circles:</strong> </div> <div><strong>Scoring:</strong> </div> <div><strong>Tiles:</strong> </div></div> <!> <!></div></div>"), $t = R("<div class=\"venn-author svelte-13ppn6m\"><!></div>"), en = {
919
+ var Bt = A("<div class=\"field-group svelte-13ppn6m\"><div class=\"field-header svelte-13ppn6m\"> </div> <!></div>"), Vt = A("<label class=\"circle-label-row svelte-13ppn6m\"><span></span> <input type=\"text\" class=\"svelte-13ppn6m\"/></label>"), Ht = A("<div class=\"hint svelte-13ppn6m\">Add at least one tile; each tile needs a correct region and either a label (text or simple HTML) or an\n image URL plus short alt text.</div>"), Ut = A("<div class=\"tile-field-full svelte-13ppn6m\"><button type=\"button\" class=\"btn-ghost svelte-13ppn6m\">Remove image</button></div>"), Wt = A("<li class=\"tile-row svelte-13ppn6m\"><div class=\"tile-row-header svelte-13ppn6m\"><div class=\"tile-inputs svelte-13ppn6m\"><label class=\"svelte-13ppn6m\"><span>ID</span> <input type=\"text\" class=\"svelte-13ppn6m\"/></label> <label class=\"label-input svelte-13ppn6m\"><span>Label</span> <input type=\"text\" class=\"svelte-13ppn6m\"/></label> <label class=\"label-input tile-field-full svelte-13ppn6m\"><span>Image URL (optional)</span> <input type=\"text\" placeholder=\"https://… or data:image/…\" class=\"svelte-13ppn6m\"/></label> <label class=\"label-input tile-field-full svelte-13ppn6m\"><span>Image alt (required if image URL is set)</span> <input type=\"text\" class=\"svelte-13ppn6m\"/></label> <!></div> <div class=\"tile-actions svelte-13ppn6m\"><button type=\"button\" class=\"btn-ghost svelte-13ppn6m\" aria-label=\"Move up\">↑</button> <button type=\"button\" class=\"btn-ghost svelte-13ppn6m\" aria-label=\"Move down\">↓</button> <button type=\"button\" class=\"btn-ghost danger svelte-13ppn6m\" aria-label=\"Remove\">✕</button></div></div> <div class=\"tile-region svelte-13ppn6m\"><div class=\"region-header svelte-13ppn6m\">Correct region</div> <!></div></li>"), Gt = A("<label class=\"override-row svelte-13ppn6m\"><span class=\"override-key svelte-13ppn6m\"> </span> <input type=\"text\" class=\"svelte-13ppn6m\"/></label>"), Kt = A("<div class=\"preview-diagram svelte-13ppn6m\"><!></div>"), qt = A("<p class=\"hint preview-diagram-placeholder svelte-13ppn6m\">Add at least one tile to see the diagram.</p>"), Jt = A("<p class=\"hint preview-diagram-placeholder svelte-13ppn6m\">Exactly two circles are required for the preview.</p>"), Yt = A("<img alt=\"\" class=\"preview-thumb svelte-13ppn6m\" aria-hidden=\"true\"/>"), Xt = A("<li class=\"svelte-13ppn6m\"><span class=\"preview-tile svelte-13ppn6m\"><!> </span> <span class=\"preview-arrow svelte-13ppn6m\">→</span> <span class=\"preview-region svelte-13ppn6m\"> </span></li>"), Zt = A("<div class=\"preview-list-heading svelte-13ppn6m\">Correct regions</div> <ol class=\"preview-list svelte-13ppn6m\"></ol>", 1), Qt = A("<div class=\"author-shell svelte-13ppn6m\"><div class=\"editor-column svelte-13ppn6m\"><!> <!> <div class=\"field-group svelte-13ppn6m\"><div class=\"field-header svelte-13ppn6m\">Circles</div> <p class=\"hint circle-count-note svelte-13ppn6m\">2 circles (4 regions).</p> <div class=\"circle-labels svelte-13ppn6m\"></div></div> <div class=\"field-group svelte-13ppn6m\"><div class=\"field-header-row svelte-13ppn6m\"><span class=\"field-header svelte-13ppn6m\">Tiles</span> <button type=\"button\" class=\"btn-add svelte-13ppn6m\">+ Add tile</button></div> <!> <ul class=\"tile-list svelte-13ppn6m\"></ul></div> <details class=\"field-group svelte-13ppn6m\"><summary class=\"field-header svelte-13ppn6m\">Region labels (advanced)</summary> <p class=\"hint svelte-13ppn6m\">Override the auto-composed region labels that delivery uses for aria-labels and visible region chrome.</p> <!></details></div> <button type=\"button\" class=\"split-gutter svelte-13ppn6m\" role=\"slider\" aria-orientation=\"vertical\" aria-label=\"Resize editor and preview panels\"></button> <div class=\"preview-column svelte-13ppn6m\"><div class=\"preview-header svelte-13ppn6m\">Preview</div> <div class=\"preview-note svelte-13ppn6m\">Live diagram with each tile in its authored <em>correct region</em>. Drag the vertical handle (or use\n arrow keys when it is focused) to change the editor / preview split.</div> <div class=\"preview-summary svelte-13ppn6m\"><div><strong>Circles:</strong> </div> <div><strong>Scoring:</strong> </div> <div><strong>Tiles:</strong> </div></div> <!> <!></div></div>"), $t = A("<div class=\"venn-author svelte-13ppn6m\"><!></div>"), en = {
920
920
  hash: "svelte-13ppn6m",
921
921
  code: ".venn-author.svelte-13ppn6m {padding:24px;font-family:system-ui, -apple-system, Segoe UI, Roboto, sans-serif;color:#0f172a;box-sizing:border-box;--vc-focus-ring: var(\n --pie-focus-outline,\n var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565c0))\n );}.author-shell.svelte-13ppn6m {display:flex;flex-direction:row;align-items:stretch;gap:0;width:100%;min-height:min(72vh, 720px);max-height:min(85vh, 960px);box-sizing:border-box;}.editor-column.svelte-13ppn6m {display:flex;flex-direction:column;gap:20px;flex-shrink:0;overflow:auto;min-width:0;}.split-gutter.svelte-13ppn6m {flex:0 0 6px;width:6px;margin:0;padding:0;border:none;border-left:1px solid #cbd5e1;border-right:1px solid #cbd5e1;cursor:col-resize;touch-action:none;background:#e2e8f0;align-self:stretch;}.split-gutter.svelte-13ppn6m:hover,\n .split-gutter.svelte-13ppn6m:focus-visible {background:#cbd5e1;}.split-gutter.svelte-13ppn6m:focus-visible {outline:2px solid var(--vc-focus-ring, #1565c0);outline-offset:2px;}\n @media (max-width: 900px) {.author-shell.svelte-13ppn6m {flex-direction:column;min-height:unset;max-height:unset;}.editor-column.svelte-13ppn6m {width:100% !important;flex:none;max-width:none;}.split-gutter.svelte-13ppn6m {display:none;}.preview-column.svelte-13ppn6m {flex:none;width:100%;}\n }.field-group.svelte-13ppn6m {border:1px solid #e2e8f0;border-radius:8px;padding:16px;background:#ffffff;}.field-header.svelte-13ppn6m,\n .field-header-row.svelte-13ppn6m {display:flex;align-items:center;justify-content:space-between;font-weight:600;font-size:14px;margin-bottom:12px;color:#0f172a;}.field-header-row.svelte-13ppn6m {gap:8px;}.btn-add.svelte-13ppn6m {background:#2563eb;color:#ffffff;border:none;padding:6px 10px;border-radius:6px;font-size:12px;cursor:pointer;}.btn-add.svelte-13ppn6m:hover {background:#1d4ed8;}.btn-ghost.svelte-13ppn6m {background:transparent;border:1px solid #cbd5e1;border-radius:4px;padding:2px 8px;cursor:pointer;font-size:13px;}.btn-ghost.svelte-13ppn6m:hover:not(:disabled) {background:#f1f5f9;}.btn-ghost.svelte-13ppn6m:disabled {opacity:0.4;cursor:not-allowed;}.btn-ghost.danger.svelte-13ppn6m {color:#bf0d00;}.circle-labels.svelte-13ppn6m {display:flex;flex-direction:column;gap:8px;}.circle-count-note.svelte-13ppn6m {margin:0 0 4px 0;}.circle-label-row.svelte-13ppn6m {display:grid;grid-template-columns:120px minmax(0, 1fr);align-items:center;gap:8px;font-size:13px;}.circle-label-row.svelte-13ppn6m input:where(.svelte-13ppn6m),\n .tile-inputs.svelte-13ppn6m input:where(.svelte-13ppn6m),\n .override-row.svelte-13ppn6m input:where(.svelte-13ppn6m) {padding:6px 8px;border:1px solid #cbd5e1;border-radius:4px;font-size:13px;width:100%;box-sizing:border-box;}.tile-list.svelte-13ppn6m {list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;}.tile-row.svelte-13ppn6m {border:1px solid #e2e8f0;border-radius:6px;padding:10px 12px;background:#f8fafc;}.tile-row-header.svelte-13ppn6m {display:flex;gap:8px;align-items:center;}.tile-inputs.svelte-13ppn6m {flex:1;display:grid;grid-template-columns:140px 1fr;gap:8px;}.tile-inputs.svelte-13ppn6m label:where(.svelte-13ppn6m) {display:flex;flex-direction:column;gap:2px;font-size:12px;color:#475569;}.tile-inputs.svelte-13ppn6m .tile-field-full:where(.svelte-13ppn6m) {grid-column:1 / -1;}.tile-actions.svelte-13ppn6m {display:flex;gap:4px;}.tile-region.svelte-13ppn6m {margin-top:8px;}.region-header.svelte-13ppn6m {font-size:12px;font-weight:600;color:#475569;margin-bottom:6px;}.override-row.svelte-13ppn6m {display:grid;grid-template-columns:100px minmax(0, 1fr);align-items:center;gap:8px;font-size:13px;margin-top:6px;}.override-key.svelte-13ppn6m {font-family:ui-monospace, SFMono-Regular, Menlo, monospace;font-size:12px;color:#64748b;}.hint.svelte-13ppn6m {font-size:12px;color:#64748b;margin:8px 0;}.preview-column.svelte-13ppn6m {flex:1 1 auto;min-width:0;overflow:auto;border:1px solid #e2e8f0;border-radius:8px;padding:16px;background:#ffffff;}.preview-diagram.svelte-13ppn6m {margin:12px 0 16px 0;max-width:100%;overflow-x:auto;}.preview-diagram.svelte-13ppn6m .venn-root {padding-top:8px;}.preview-list-heading.svelte-13ppn6m {font-size:12px;font-weight:600;color:#475569;margin:8px 0 6px 0;}.preview-diagram-placeholder.svelte-13ppn6m {margin:12px 0;}.preview-header.svelte-13ppn6m {font-weight:600;font-size:14px;margin-bottom:8px;}.preview-note.svelte-13ppn6m {font-size:12px;color:#64748b;margin-bottom:12px;}.preview-summary.svelte-13ppn6m {font-size:13px;line-height:1.5;color:#334155;margin-bottom:10px;}.preview-list.svelte-13ppn6m {list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px;}.preview-list.svelte-13ppn6m li:where(.svelte-13ppn6m) {display:flex;align-items:center;gap:6px;font-size:13px;}.preview-tile.svelte-13ppn6m {display:inline-flex;align-items:center;gap:6px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:4px;padding:2px 6px;color:#1d4ed8;}.preview-thumb.svelte-13ppn6m {width:22px;height:22px;object-fit:contain;flex-shrink:0;}.preview-arrow.svelte-13ppn6m {color:#94a3b8;}.preview-region.svelte-13ppn6m {color:#0f172a;}"
922
922
  };
923
- function tn(n, f) {
924
- t(f, !0), N(n, en);
925
- let h = E(f, "model", 7), g = E(f, "configuration", 7), _ = p(() => Ce(V.configuration, g())), b = [{
923
+ function tn(e, n) {
924
+ o(n, !0), I(e, en);
925
+ let l = j(n, "model", 7), u = j(n, "configuration", 7), m = y(() => Ce(R.configuration, u())), v = [{
926
926
  label: "Partial credit per tile",
927
927
  value: "partialPerTile"
928
928
  }, {
929
929
  label: "All or nothing",
930
930
  value: "allOrNothing"
931
931
  }];
932
- function C(e) {
933
- f.$$host.model = e, f.$$host.dispatchEvent(new xe(e));
932
+ function S(e) {
933
+ n.$$host.model = e, n.$$host.dispatchEvent(new Se(e));
934
934
  }
935
- function k() {
936
- return ae(h() || void 0);
935
+ function w() {
936
+ return ce(l() || void 0);
937
937
  }
938
938
  function A(e) {
939
- C({
940
- ...k(),
939
+ S({
940
+ ...w(),
941
941
  ...e
942
942
  });
943
943
  }
944
- function P(e) {
944
+ function M(e) {
945
945
  A({ prompt: e });
946
946
  }
947
- function L(e, t) {
948
- A({ circles: k().circles.map((n, r) => r === e ? {
947
+ function ne(e, t) {
948
+ A({ circles: w().circles.map((n, r) => r === e ? {
949
949
  ...n,
950
950
  label: t
951
951
  } : n) });
952
952
  }
953
- function R() {
954
- let e = k(), t = {
953
+ function L() {
954
+ let e = w(), t = {
955
955
  id: `tile-${Date.now().toString(36)}-${Math.floor(Math.random() * 1e3).toString(36)}`,
956
956
  label: "New tile",
957
957
  correctRegion: []
958
958
  };
959
959
  A({ tiles: [...e.tiles, t] });
960
960
  }
961
- function te(e) {
962
- let t = k().tiles.slice();
961
+ function ie(e) {
962
+ let t = w().tiles.slice();
963
963
  t.splice(e, 1), A({ tiles: t });
964
964
  }
965
- function le(e, t) {
966
- let n = k(), r = e + t;
965
+ function de(e, t) {
966
+ let n = w(), r = e + t;
967
967
  if (r < 0 || r >= n.tiles.length) return;
968
968
  let i = n.tiles.slice();
969
969
  [i[e], i[r]] = [i[r], i[e]], A({ tiles: i });
970
970
  }
971
- function ue(e, t) {
972
- A({ tiles: k().tiles.map((n, r) => r === e ? {
971
+ function fe(e, t) {
972
+ A({ tiles: w().tiles.map((n, r) => r === e ? {
973
973
  ...n,
974
974
  label: t
975
975
  } : n) });
976
976
  }
977
- function de(e, t) {
978
- let n = k(), r = t.trim();
977
+ function pe(e, t) {
978
+ let n = w(), r = t.trim();
979
979
  A({ tiles: n.tiles.map((t, n) => n === e ? {
980
980
  ...t,
981
981
  ...r ? { imageUrl: r } : {
@@ -984,281 +984,281 @@ function tn(n, f) {
984
984
  }
985
985
  } : t) });
986
986
  }
987
- function fe(e, t) {
988
- A({ tiles: k().tiles.map((n, r) => r === e ? {
987
+ function me(e, t) {
988
+ A({ tiles: w().tiles.map((n, r) => r === e ? {
989
989
  ...n,
990
990
  imageAlt: t.trim() || void 0
991
991
  } : n) });
992
992
  }
993
- function H(e) {
994
- A({ tiles: k().tiles.map((t, n) => {
993
+ function B(e) {
994
+ A({ tiles: w().tiles.map((t, n) => {
995
995
  if (n !== e) return t;
996
996
  let { imageUrl: r, imageAlt: i, ...a } = t;
997
997
  return a;
998
998
  }) });
999
999
  }
1000
- function pe(e, t) {
1001
- A({ tiles: k().tiles.map((n, r) => r === e ? {
1000
+ function V(e, t) {
1001
+ A({ tiles: w().tiles.map((n, r) => r === e ? {
1002
1002
  ...n,
1003
1003
  id: t
1004
1004
  } : n) });
1005
1005
  }
1006
- function U(e, t) {
1007
- A({ tiles: k().tiles.map((n, r) => r === e ? {
1006
+ function H(e, t) {
1007
+ A({ tiles: w().tiles.map((n, r) => r === e ? {
1008
1008
  ...n,
1009
- correctRegion: ne(t)
1009
+ correctRegion: ae(t)
1010
1010
  } : n) });
1011
1011
  }
1012
- function me(e, t) {
1013
- let n = { ...k().regionLabels || {} };
1012
+ function he(e, t) {
1013
+ let n = { ...w().regionLabels || {} };
1014
1014
  t.trim().length === 0 ? delete n[e] : n[e] = t, A({ regionLabels: n });
1015
1015
  }
1016
- let W = p(k), G = p(() => ie(r(W).circles?.length || 0)), K = p(() => {
1016
+ let U = y(w), W = y(() => se(f(U).circles?.length || 0)), G = y(() => {
1017
1017
  let e = /* @__PURE__ */ new Set();
1018
- return r(W).tiles.filter((t) => e.has(t.id) ? !1 : (e.add(t.id), !0));
1019
- }), he = p(() => se({
1020
- ...r(W),
1021
- tiles: r(K)
1022
- })), ge = p(() => ({
1023
- circles: r(W).circles,
1024
- tiles: r(K),
1025
- regionLabels: r(W).regionLabels ?? {},
1026
- prompt: r(W).promptEnabled === !1 ? null : r(W).prompt ?? null,
1018
+ return f(U).tiles.filter((t) => e.has(t.id) ? !1 : (e.add(t.id), !0));
1019
+ }), ge = y(() => ue({
1020
+ ...f(U),
1021
+ tiles: f(G)
1022
+ })), _e = y(() => ({
1023
+ circles: f(U).circles,
1024
+ tiles: f(G),
1025
+ regionLabels: f(U).regionLabels ?? {},
1026
+ prompt: f(U).promptEnabled === !1 ? null : f(U).prompt ?? null,
1027
1027
  disabled: !0,
1028
1028
  env: { mode: "view" }
1029
- })), _e = s(null), q = s(0), J = s(null);
1030
- O(() => {
1031
- r(q) > 0 && r(J) === null && a(J, Math.floor((r(q) - 6) / 2), !0);
1032
- }), O(() => {
1033
- if (r(q) <= 0 || r(J) === null) return;
1034
- let e = r(q) - 200 - 6;
1035
- r(J) > e && a(J, e), r(J) < 260 && a(J, 260);
1029
+ })), ve = b(null), K = b(0), q = b(null);
1030
+ h(() => {
1031
+ f(K) > 0 && f(q) === null && t(q, Math.floor((f(K) - 6) / 2), !0);
1032
+ }), h(() => {
1033
+ if (f(K) <= 0 || f(q) === null) return;
1034
+ let e = f(K) - 200 - 6;
1035
+ f(q) > e && t(q, e), f(q) < 260 && t(q, 260);
1036
1036
  });
1037
- let ve = p(() => {
1038
- let e = r(q);
1037
+ let ye = y(() => {
1038
+ let e = f(K);
1039
1039
  if (!e) return "50%";
1040
- let t = e - 200 - 6, n = r(J) ?? Math.floor((e - 6) / 2);
1040
+ let t = e - 200 - 6, n = f(q) ?? Math.floor((e - 6) / 2);
1041
1041
  return `${Math.min(Math.max(n, 260), t)}px`;
1042
1042
  });
1043
- function ye(e) {
1044
- let t = r(_e);
1045
- if (!t) return;
1043
+ function be(e) {
1044
+ let n = f(ve);
1045
+ if (!n) return;
1046
1046
  e.preventDefault();
1047
- let n = t, i = e.currentTarget;
1047
+ let r = n, i = e.currentTarget;
1048
1048
  i.setPointerCapture(e.pointerId);
1049
- let o = n.getBoundingClientRect(), s = e.clientX, c = r(J) ?? Math.floor((o.width - 6) / 2);
1050
- function l(e) {
1051
- let t = n.getBoundingClientRect().width - 200 - 6, r = e.clientX - s;
1052
- a(J, Math.min(Math.max(c + r, 260), t), !0);
1049
+ let a = r.getBoundingClientRect(), o = e.clientX, s = f(q) ?? Math.floor((a.width - 6) / 2);
1050
+ function c(e) {
1051
+ let n = r.getBoundingClientRect().width - 200 - 6, i = e.clientX - o;
1052
+ t(q, Math.min(Math.max(s + i, 260), n), !0);
1053
1053
  }
1054
- function u(e) {
1054
+ function l(e) {
1055
1055
  try {
1056
1056
  i.releasePointerCapture(e.pointerId);
1057
1057
  } catch {}
1058
- window.removeEventListener("pointermove", l), window.removeEventListener("pointerup", u), window.removeEventListener("pointercancel", u);
1058
+ window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l);
1059
1059
  }
1060
- window.addEventListener("pointermove", l), window.addEventListener("pointerup", u), window.addEventListener("pointercancel", u);
1060
+ window.addEventListener("pointermove", c), window.addEventListener("pointerup", l), window.addEventListener("pointercancel", l);
1061
1061
  }
1062
- function be(e) {
1063
- let t = r(_e);
1064
- if (!t || r(J) === null) return;
1065
- let n = t.getBoundingClientRect().width - 200 - 6;
1066
- e.key === "ArrowLeft" ? (e.preventDefault(), a(J, Math.max(260, r(J) - 24), !0)) : e.key === "ArrowRight" && (e.preventDefault(), a(J, Math.min(n, r(J) + 24), !0));
1062
+ function xe(e) {
1063
+ let n = f(ve);
1064
+ if (!n || f(q) === null) return;
1065
+ let r = n.getBoundingClientRect().width - 200 - 6;
1066
+ e.key === "ArrowLeft" ? (e.preventDefault(), t(q, Math.max(260, f(q) - 24), !0)) : e.key === "ArrowRight" && (e.preventDefault(), t(q, Math.min(r, f(q) + 24), !0));
1067
1067
  }
1068
- var Y = {
1068
+ var J = {
1069
1069
  get model() {
1070
- return h();
1070
+ return l();
1071
1071
  },
1072
1072
  set model(e) {
1073
- h(e), c();
1073
+ l(e), s();
1074
1074
  },
1075
1075
  get configuration() {
1076
- return g();
1076
+ return u();
1077
1077
  },
1078
1078
  set configuration(e) {
1079
- g(e), c();
1079
+ u(e), s();
1080
1080
  }
1081
- }, X = $t(), Z = e(X);
1081
+ }, Y = $t(), X = a(Y);
1082
1082
  {
1083
- let t = (e) => {
1083
+ let e = (e) => {
1084
1084
  {
1085
- let t = p(() => ({
1086
- Settings: { promptEnabled: r(_).prompt?.settings && Te(r(_).prompt.label) },
1085
+ let t = y(() => ({
1086
+ Settings: { promptEnabled: f(m).prompt?.settings && Te(f(m).prompt.label) },
1087
1087
  Properties: {
1088
- teacherInstructionsEnabled: r(_).teacherInstructions?.settings && Te(r(_).teacherInstructions.label),
1089
- scoringPolicy: r(_).scoringPolicy?.settings && Ee(r(_).scoringPolicy.label, b)
1088
+ teacherInstructionsEnabled: f(m).teacherInstructions?.settings && Te(f(m).teacherInstructions.label),
1089
+ scoringPolicy: f(m).scoringPolicy?.settings && Ee(f(m).scoringPolicy.label, v)
1090
1090
  }
1091
1091
  }));
1092
1092
  Le(e, {
1093
1093
  get model() {
1094
- return r(W);
1094
+ return f(U);
1095
1095
  },
1096
1096
  get configuration() {
1097
- return r(_);
1097
+ return f(m);
1098
1098
  },
1099
1099
  get groups() {
1100
- return r(t);
1100
+ return f(t);
1101
1101
  },
1102
1102
  onChangeModel: (e) => A(e)
1103
1103
  });
1104
1104
  }
1105
- }, n = p(() => r(_).settingsPanelDisabled === !0 || !we(r(_)));
1106
- Ie(Z, {
1105
+ }, n = y(() => f(m).settingsPanelDisabled === !0 || !we(f(m)));
1106
+ Ie(X, {
1107
1107
  get hideSettings() {
1108
- return r(n);
1108
+ return f(n);
1109
1109
  },
1110
- settings: t,
1111
- children: (t, n) => {
1112
- var s = Qt(), c = e(s);
1113
- let f;
1114
- var h = e(c), g = (t) => {
1115
- var n = Bt(), i = e(n), a = l(i, !0), s = u(i, 2);
1110
+ settings: e,
1111
+ children: (e, n) => {
1112
+ var o = Qt(), s = a(o);
1113
+ let l;
1114
+ var u = a(s), h = (e) => {
1115
+ var t = Bt(), n = a(t), o = d(n, !0), s = g(n, 2);
1116
1116
  {
1117
- let e = p(() => r(W).teacherInstructions || ""), t = p(() => r(_).teacherInstructions?.label);
1117
+ let e = y(() => f(U).teacherInstructions || ""), t = y(() => f(m).teacherInstructions?.label);
1118
1118
  Ft(s, {
1119
1119
  get markup() {
1120
- return r(e);
1120
+ return f(e);
1121
1121
  },
1122
1122
  onChange: (e) => A({ teacherInstructions: e }),
1123
1123
  get ariaLabel() {
1124
- return r(t);
1124
+ return f(t);
1125
1125
  }
1126
1126
  });
1127
1127
  }
1128
- o(n), d(() => z(a, r(_).teacherInstructions?.label)), m(t, n);
1128
+ P(t), p(() => i(o, f(m).teacherInstructions?.label)), r(e, t);
1129
1129
  };
1130
- v(h, (e) => {
1131
- r(W).teacherInstructionsEnabled !== !1 && e(g);
1130
+ _(u, (e) => {
1131
+ f(U).teacherInstructionsEnabled !== !1 && e(h);
1132
1132
  });
1133
- var b = u(h, 2), C = (t) => {
1134
- var n = Bt(), i = e(n), a = l(i, !0), s = u(i, 2);
1133
+ var v = g(u, 2), b = (e) => {
1134
+ var t = Bt(), n = a(t), o = d(n, !0), s = g(n, 2);
1135
1135
  {
1136
- let e = p(() => r(W).prompt || ""), t = p(() => r(_).prompt?.label);
1136
+ let e = y(() => f(U).prompt || ""), t = y(() => f(m).prompt?.label);
1137
1137
  Ft(s, {
1138
1138
  get markup() {
1139
- return r(e);
1139
+ return f(e);
1140
1140
  },
1141
- onChange: P,
1141
+ onChange: M,
1142
1142
  placeholder: "Enter a prompt for the Venn classification question...",
1143
1143
  get ariaLabel() {
1144
- return r(t);
1144
+ return f(t);
1145
1145
  }
1146
1146
  });
1147
1147
  }
1148
- o(n), d(() => z(a, r(_).prompt?.label)), m(t, n);
1148
+ P(t), p(() => i(o, f(m).prompt?.label)), r(e, t);
1149
1149
  };
1150
- v(b, (e) => {
1151
- r(W).promptEnabled !== !1 && e(C);
1150
+ _(v, (e) => {
1151
+ f(U).promptEnabled !== !1 && e(b);
1152
1152
  });
1153
- var E = u(b, 2), O = u(e(E), 4);
1154
- T(O, 21, () => r(W).circles, w, (t, n, a) => {
1155
- var s = Vt(), c = e(s);
1156
- c.textContent = `Circle ${a + 1} label`;
1157
- var l = u(c, 2);
1158
- F(l), o(s), d(() => I(l, r(n).label)), i("input", l, (e) => L(a, e.currentTarget.value)), m(t, s);
1159
- }), o(O), o(E);
1160
- var k = u(E, 2), N = e(k), B = u(e(N), 2);
1161
- o(N);
1162
- var ne = u(N, 2), ie = (e) => {
1163
- m(e, Ht());
1153
+ var x = g(v, 2), S = g(a(x), 4);
1154
+ C(S, 21, () => f(U).circles, re, (e, t, n) => {
1155
+ var i = Vt(), o = a(i);
1156
+ o.textContent = `Circle ${n + 1} label`;
1157
+ var s = g(o, 2);
1158
+ E(s), P(i), p(() => O(s, f(t).label)), k("input", s, (e) => ne(n, e.currentTarget.value)), r(e, i);
1159
+ }), P(S), P(x);
1160
+ var w = g(x, 2), j = a(w), I = g(a(j), 2);
1161
+ P(j);
1162
+ var ae = g(j, 2), se = (e) => {
1163
+ r(e, Ht());
1164
1164
  };
1165
- v(ne, (e) => {
1166
- r(W).tiles.length === 0 && e(ie);
1165
+ _(ae, (e) => {
1166
+ f(U).tiles.length === 0 && e(se);
1167
1167
  });
1168
- var ae = u(ne, 2);
1169
- T(ae, 21, () => r(W).tiles, w, (t, n, a) => {
1170
- var s = Wt(), c = e(s), f = e(c), h = e(f), g = u(e(h), 2);
1171
- F(g), o(h);
1172
- var _ = u(h, 2), y = u(e(_), 2);
1173
- F(y), o(_);
1174
- var b = u(_, 2), x = u(e(b), 2);
1175
- F(x), o(b);
1176
- var S = u(b, 2), C = u(e(S), 2);
1177
- F(C), o(S);
1178
- var w = u(S, 2), T = (e) => {
1168
+ var ce = g(ae, 2);
1169
+ C(ce, 21, () => f(U).tiles, re, (e, t, n) => {
1170
+ var i = Wt(), o = a(i), s = a(o), c = a(s), l = g(a(c), 2);
1171
+ E(l), P(c);
1172
+ var u = g(c, 2), m = g(a(u), 2);
1173
+ E(m), P(u);
1174
+ var h = g(u, 2), v = g(a(h), 2);
1175
+ E(v), P(h);
1176
+ var b = g(h, 2), x = g(a(b), 2);
1177
+ E(x), P(b);
1178
+ var S = g(b, 2), C = (e) => {
1179
1179
  var t = Ut();
1180
- i("click", l(t), () => H(a)), m(e, t);
1181
- }, E = p(() => (r(n).imageUrl ?? "").trim());
1182
- v(w, (e) => {
1183
- r(E) && e(T);
1184
- }), o(f);
1185
- var D = u(f, 2), O = e(D);
1186
- O.disabled = a === 0;
1187
- var k = u(O, 2), A = u(k, 2);
1188
- o(D), o(c);
1189
- var j = u(c, 2);
1190
- zt(u(e(j), 2), {
1180
+ k("click", d(t), () => B(n)), r(e, t);
1181
+ }, w = y(() => (f(t).imageUrl ?? "").trim());
1182
+ _(S, (e) => {
1183
+ f(w) && e(C);
1184
+ }), P(s);
1185
+ var T = g(s, 2), D = a(T);
1186
+ D.disabled = n === 0;
1187
+ var A = g(D, 2), j = g(A, 2);
1188
+ P(T), P(o);
1189
+ var M = g(o, 2);
1190
+ zt(g(a(M), 2), {
1191
1191
  get circles() {
1192
- return r(W).circles;
1192
+ return f(U).circles;
1193
1193
  },
1194
1194
  get regionLabels() {
1195
- return r(W).regionLabels;
1195
+ return f(U).regionLabels;
1196
1196
  },
1197
1197
  get value() {
1198
- return r(n).correctRegion;
1198
+ return f(t).correctRegion;
1199
1199
  },
1200
- onchange: (e) => U(a, e)
1201
- }), o(j), o(s), d(() => {
1202
- I(g, r(n).id), I(y, r(n).label), I(x, r(n).imageUrl ?? ""), I(C, r(n).imageAlt ?? ""), k.disabled = a === r(W).tiles.length - 1;
1203
- }), i("input", g, (e) => pe(a, e.currentTarget.value)), i("input", y, (e) => ue(a, e.currentTarget.value)), i("input", x, (e) => de(a, e.currentTarget.value)), i("input", C, (e) => fe(a, e.currentTarget.value)), i("click", O, () => le(a, -1)), i("click", k, () => le(a, 1)), i("click", A, () => te(a)), m(t, s);
1204
- }), o(ae), o(k);
1205
- var se = u(k, 2);
1206
- T(u(e(se), 4), 17, () => r(G), (e) => ce(e), (t, n) => {
1207
- let a = p(() => ce(r(n))), s = p(() => oe(r(W).circles || [], r(n)));
1208
- var c = Gt(), f = e(c), h = l(f, !0), g = u(f, 2);
1209
- F(g), o(c), d(() => {
1210
- z(h, r(a) || "(outside)"), x(g, "placeholder", r(s)), I(g, r(W).regionLabels?.[r(a)] ?? "");
1211
- }), i("input", g, (e) => me(r(a), e.currentTarget.value)), m(t, c);
1212
- }), o(se), o(c);
1213
- var V = u(c, 2);
1214
- x(V, "aria-valuemin", 260);
1215
- var K = u(V, 2), xe = u(e(K), 4), Y = e(xe), X = u(e(Y));
1216
- o(Y);
1217
- var Z = u(Y, 2), Se = u(e(Z));
1218
- o(Z);
1219
- var Q = u(Z, 2), Ce = u(e(Q));
1220
- o(Q), o(xe);
1221
- var we = u(xe, 2), Te = (t) => {
1222
- var n = Kt();
1223
- ee(e(n), {
1200
+ onchange: (e) => H(n, e)
1201
+ }), P(M), P(i), p(() => {
1202
+ O(l, f(t).id), O(m, f(t).label), O(v, f(t).imageUrl ?? ""), O(x, f(t).imageAlt ?? ""), A.disabled = n === f(U).tiles.length - 1;
1203
+ }), k("input", l, (e) => V(n, e.currentTarget.value)), k("input", m, (e) => fe(n, e.currentTarget.value)), k("input", v, (e) => pe(n, e.currentTarget.value)), k("input", x, (e) => me(n, e.currentTarget.value)), k("click", D, () => de(n, -1)), k("click", A, () => de(n, 1)), k("click", j, () => ie(n)), r(e, i);
1204
+ }), P(ce), P(w);
1205
+ var ue = g(w, 2);
1206
+ C(g(a(ue), 4), 17, () => f(W), (e) => z(e), (e, t) => {
1207
+ let n = y(() => z(f(t))), o = y(() => le(f(U).circles || [], f(t)));
1208
+ var s = Gt(), c = a(s), l = d(c, !0), u = g(c, 2);
1209
+ E(u), P(s), p(() => {
1210
+ i(l, f(n) || "(outside)"), N(u, "placeholder", f(o)), O(u, f(U).regionLabels?.[f(n)] ?? "");
1211
+ }), k("input", u, (e) => he(f(n), e.currentTarget.value)), r(e, s);
1212
+ }), P(ue), P(s);
1213
+ var R = g(s, 2);
1214
+ N(R, "aria-valuemin", 260);
1215
+ var G = g(R, 2), Se = g(a(G), 4), J = a(Se), Y = g(a(J));
1216
+ P(J);
1217
+ var X = g(J, 2), Z = g(a(X));
1218
+ P(X);
1219
+ var Q = g(X, 2), Ce = g(a(Q));
1220
+ P(Q), P(Se);
1221
+ var we = g(Se, 2), Te = (e) => {
1222
+ var t = Kt();
1223
+ te(a(t), {
1224
1224
  get model() {
1225
- return r(ge);
1225
+ return f(_e);
1226
1226
  },
1227
1227
  get session() {
1228
- return r(he);
1228
+ return f(ge);
1229
1229
  }
1230
- }), o(n), m(t, n);
1230
+ }), P(t), r(e, t);
1231
1231
  }, Ee = (e) => {
1232
- m(e, qt());
1232
+ r(e, qt());
1233
1233
  }, De = (e) => {
1234
- m(e, Jt());
1234
+ r(e, Jt());
1235
1235
  };
1236
- v(we, (e) => {
1237
- r(W).tiles.length > 0 && r(W).circles?.length === 2 ? e(Te) : r(W).tiles.length === 0 ? e(Ee, 1) : e(De, -1);
1236
+ _(we, (e) => {
1237
+ f(U).tiles.length > 0 && f(U).circles?.length === 2 ? e(Te) : f(U).tiles.length === 0 ? e(Ee, 1) : e(De, -1);
1238
1238
  });
1239
- var Oe = u(we, 2), ke = (t) => {
1240
- var n = Zt(), i = u(D(n), 2);
1241
- T(i, 21, () => r(W).tiles, w, (t, n) => {
1242
- var i = Xt(), a = e(i), s = e(a), c = (e) => {
1243
- var t = Yt();
1244
- d(() => x(t, "src", r(n).imageUrl)), m(e, t);
1245
- }, f = p(() => (r(n).imageUrl ?? "").trim());
1246
- v(s, (e) => {
1247
- r(f) && e(c);
1239
+ var Oe = g(we, 2), ke = (e) => {
1240
+ var t = Zt(), n = g(c(t), 2);
1241
+ C(n, 21, () => f(U).tiles, re, (e, t) => {
1242
+ var n = Xt(), o = a(n), s = a(o), c = (e) => {
1243
+ var n = Yt();
1244
+ p(() => N(n, "src", f(t).imageUrl)), r(e, n);
1245
+ }, l = y(() => (f(t).imageUrl ?? "").trim());
1246
+ _(s, (e) => {
1247
+ f(l) && e(c);
1248
1248
  });
1249
- var h = u(s);
1250
- o(a);
1251
- var g = l(u(a, 4), !0);
1252
- o(i), d((e, t) => {
1253
- z(h, ` ${e ?? ""}`), z(g, t);
1254
- }, [() => j(r(n).label) || (r(n).imageAlt ?? "").trim() || r(n).id, () => re(r(W), r(n).correctRegion)]), m(t, i);
1255
- }), o(i), m(t, n);
1249
+ var u = g(s);
1250
+ P(o);
1251
+ var m = d(g(o, 4), !0);
1252
+ P(n), p((e, t) => {
1253
+ i(u, ` ${e ?? ""}`), i(m, t);
1254
+ }, [() => ee(f(t).label) || (f(t).imageAlt ?? "").trim() || f(t).id, () => oe(f(U), f(t).correctRegion)]), r(e, n);
1255
+ }), P(n), r(e, t);
1256
1256
  };
1257
- v(Oe, (e) => {
1258
- r(W).tiles.length > 0 && e(ke);
1259
- }), o(K), o(s), y(s, (e) => a(_e, e), () => r(_e)), d((e, t) => {
1260
- f = S(c, "", f, { width: r(ve) }), x(V, "aria-valuemax", r(q) > 0 ? r(q) - 200 - 6 : 360), x(V, "aria-valuenow", e), z(X, ` ${t ?? ""}`), z(Se, ` ${r(W).scoringPolicy === "allOrNothing" ? "All or nothing" : "Partial per tile"}`), z(Ce, ` ${r(W).tiles.length ?? ""}`);
1261
- }, [() => r(J) ?? (r(q) > 0 ? Math.floor((r(q) - 6) / 2) : 260), () => r(W).circles.map((e) => e.label).join(", ")]), i("click", B, R), i("pointerdown", V, ye), i("keydown", V, be), M(s, "clientWidth", (e) => a(q, e)), m(t, s);
1257
+ _(Oe, (e) => {
1258
+ f(U).tiles.length > 0 && e(ke);
1259
+ }), P(G), P(o), F(o, (e) => t(ve, e), () => f(ve)), p((e, t) => {
1260
+ l = D(s, "", l, { width: f(ye) }), N(R, "aria-valuemax", f(K) > 0 ? f(K) - 200 - 6 : 360), N(R, "aria-valuenow", e), i(Y, ` ${t ?? ""}`), i(Z, ` ${f(U).scoringPolicy === "allOrNothing" ? "All or nothing" : "Partial per tile"}`), i(Ce, ` ${f(U).tiles.length ?? ""}`);
1261
+ }, [() => f(q) ?? (f(K) > 0 ? Math.floor((f(K) - 6) / 2) : 260), () => f(U).circles.map((e) => e.label).join(", ")]), k("click", I, L), k("pointerdown", R, be), k("keydown", R, xe), T(o, "clientWidth", (e) => t(K, e)), r(e, o);
1262
1262
  },
1263
1263
  $$slots: {
1264
1264
  settings: !0,
@@ -1266,14 +1266,14 @@ function tn(n, f) {
1266
1266
  }
1267
1267
  });
1268
1268
  }
1269
- return o(X), m(n, X), B(Y);
1269
+ return P(Y), r(e, Y), x(J);
1270
1270
  }
1271
- h([
1271
+ e([
1272
1272
  "input",
1273
1273
  "click",
1274
1274
  "pointerdown",
1275
1275
  "keydown"
1276
- ]), P(tn, {
1276
+ ]), w(tn, {
1277
1277
  model: { type: "Object" },
1278
1278
  configuration: { type: "Object" }
1279
1279
  }, [], []);