@pie-element/drag-in-the-blank 10.1.2-next.7 → 10.1.2-next.9

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.
@@ -1,5 +1,5 @@
1
1
  import { i as e, r as t, t as n } from "../rolldown-runtime-CWhphoD1.js";
2
- import { $ as r, A as i, At as a, B as o, Bt as s, C as c, Ct as l, D as u, Dt as d, E as f, Et as p, F as m, Ft as h, G as g, H as _, I as v, It as y, J as b, K as x, L as S, Lt as C, Mt as w, N as ee, Nt as T, O as te, Ot as ne, P as re, Pt as ie, Q as ae, R as E, Rt as D, S as O, St as oe, Tt as k, U as se, V as A, Vt as ce, W as le, X as ue, Y as j, Z as de, _t as fe, at as pe, b as me, bt as he, c as ge, ct as _e, d as ve, dt as ye, et as be, f as xe, ft as Se, gt as Ce, ht as M, it as we, j as Te, jt as Ee, k as De, kt as Oe, l as ke, lt as Ae, mt as je, n as Me, nt as Ne, o as Pe, ot as Fe, q as Ie, rt as Le, s as Re, st as ze, t as Be, tt as Ve, u as He, ut as Ue, v as We, vt as Ge, w as Ke, wt as qe, x as Je, xt as Ye, y as Xe, yt as Ze, z as Qe, zt as $e } from "../drag-provider-BbQMM4wo.js";
2
+ import { $ as r, A as i, At as a, B as o, Bt as s, C as c, Ct as l, D as u, Dt as d, E as f, Et as p, F as m, Ft as h, G as g, H as _, I as v, It as y, J as b, K as x, L as S, Lt as C, Mt as w, N as ee, Nt as T, O as te, Ot as E, P as ne, Pt as re, Q as ie, R as D, Rt as O, S as ae, St as oe, Tt as k, U as se, V as A, Vt as ce, W as le, X as ue, Y as j, Z as de, _t as fe, at as pe, b as me, bt as he, c as ge, ct as _e, d as ve, dt as ye, et as be, f as xe, ft as Se, gt as Ce, ht as M, it as we, j as Te, jt as Ee, k as De, kt as Oe, l as ke, lt as Ae, mt as je, n as Me, nt as Ne, o as Pe, ot as Fe, q as Ie, rt as Le, s as Re, st as ze, t as Be, tt as Ve, u as He, ut as Ue, v as We, vt as Ge, w as Ke, wt as qe, x as Je, xt as Ye, y as Xe, yt as Ze, z as Qe, zt as $e } from "../drag-provider-C--v2fW9.js";
3
3
  import { a as et, c as tt, d as nt, f as rt, g as it, h as at, i as ot, n as st, o as ct, p as lt, s as ut, t as dt, u as ft } from "../dist-CqufoV2m.js";
4
4
  import * as N from "react";
5
5
  import pt, { Component as mt, createContext as ht, createElement as gt, createRef as _t, forwardRef as vt, memo as yt, useCallback as bt, useContext as xt, useDebugValue as St, useEffect as Ct, useLayoutEffect as wt, useMemo as Tt, useRef as Et, useState as Dt, version as Ot } from "react";
@@ -35,7 +35,7 @@ function Pt(e) {
35
35
  //#endregion
36
36
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/GlobalStyles/GlobalStyles.js
37
37
  function Ft(e) {
38
- return /*#__PURE__*/ P(ne, {
38
+ return /*#__PURE__*/ P(E, {
39
39
  ...e,
40
40
  defaultTheme: Ze,
41
41
  themeId: h
@@ -67,7 +67,7 @@ function zt(e) {
67
67
  }
68
68
  //#endregion
69
69
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/utils/useControlled.js
70
- var Bt = zt, Vt = /* @__PURE__ */ e(re(), 1), Ht = (0, Vt.default)("@pie-lib:editable-html:plugins"), Ut = [
70
+ var Bt = zt, Vt = /* @__PURE__ */ e(ne(), 1), Ht = (0, Vt.default)("@pie-lib:editable-html:plugins"), Ut = [
71
71
  "bold",
72
72
  "html",
73
73
  "extraCSSRules",
@@ -18531,7 +18531,7 @@ function lw({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
18531
18531
  });
18532
18532
  } else !r && c && l(null);
18533
18533
  }, [r, c]);
18534
- let f = i && r ? i.value.value : a.value || "\xA0", p = n ? "\xA0" : f, m = p !== "\xA0", h = i && r, g = o ? `2px solid ${D.primaryDark()}` : h ? `1px solid ${D.defaults.BORDER_DARK}` : `1px solid ${D.defaults.BORDER_LIGHT}`;
18534
+ let f = i && r ? i.value.value : a.value || "\xA0", p = n ? "\xA0" : f, m = p !== "\xA0", h = i && r, g = o ? `2px solid ${O.primaryDark()}` : h ? `1px solid ${O.defaults.BORDER_DARK}` : `1px solid ${O.defaults.BORDER_LIGHT}`;
18535
18535
  return /* @__PURE__ */ F("div", {
18536
18536
  ref: u,
18537
18537
  className: o ? "selected" : void 0,
@@ -18539,7 +18539,7 @@ function lw({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
18539
18539
  display: "inline-flex",
18540
18540
  minWidth: "178px",
18541
18541
  minHeight: "36px",
18542
- background: h ? `${D.defaults.BORDER_LIGHT}` : `${D.defaults.WHITE}`,
18542
+ background: h ? `${O.defaults.BORDER_LIGHT}` : `${O.defaults.WHITE}`,
18543
18543
  border: g,
18544
18544
  boxSizing: "border-box",
18545
18545
  borderRadius: "3px",
@@ -22621,10 +22621,10 @@ var WO = class extends pt.Component {
22621
22621
  let t = {
22622
22622
  pointerEvents: "none",
22623
22623
  textTransform: "none !important",
22624
- color: D.text(),
22624
+ color: O.text(),
22625
22625
  "& .mq-scaled.mq-sqrt-prefix": { transform: "scale(1, 0.9) !important" },
22626
22626
  "& .mq-sup-only .mq-sup": { marginBottom: "0.9px !important" },
22627
- "& .mq-empty": { backgroundColor: `${D.keypadEmptyPlaceholder()} !important` },
22627
+ "& .mq-empty": { backgroundColor: `${O.keypadEmptyPlaceholder()} !important` },
22628
22628
  "& .mq-overline .mq-overline-inner": { borderTop: "2px solid black" },
22629
22629
  "& .mq-non-leaf.mq-overline": { borderTop: "none !important" },
22630
22630
  "& .mq-overarrow": {
@@ -22741,9 +22741,9 @@ var ek = (e) => e ? {
22741
22741
  textTransform: "none",
22742
22742
  fontSize: n || r ? "200% !important" : "140% !important",
22743
22743
  lineHeight: n || r ? "100%" : "normal",
22744
- color: D.text(),
22745
- backgroundColor: e === "operators" ? D.keypadButtonOperator() : D.keypadButton(),
22746
- "&:hover": { backgroundColor: e === "operators" ? D.keypadButtonOperatorHover() : D.keypadButtonHover() },
22744
+ color: O.text(),
22745
+ backgroundColor: e === "operators" ? O.keypadButtonOperator() : O.keypadButton(),
22746
+ "&:hover": { backgroundColor: e === "operators" ? O.keypadButtonOperatorHover() : O.keypadButtonHover() },
22747
22747
  borderRadius: 0,
22748
22748
  ...t && { fontFamily: "Roboto, Helvetica, Arial, sans-serif !important" }
22749
22749
  })), rk = M(u)(({ category: e }) => ({
@@ -22753,12 +22753,12 @@ var ek = (e) => e ? {
22753
22753
  fontSize: "110% !important",
22754
22754
  minWidth: "auto",
22755
22755
  borderRadius: 0,
22756
- backgroundColor: e === "operators" ? D.keypadButtonOperator() : D.keypadButton(),
22757
- "&:hover": { backgroundColor: e === "operators" ? D.keypadButtonOperatorHover() : D.keypadButtonHover() }
22756
+ backgroundColor: e === "operators" ? O.keypadButtonOperator() : O.keypadButton(),
22757
+ "&:hover": { backgroundColor: e === "operators" ? O.keypadButtonOperatorHover() : O.keypadButtonHover() }
22758
22758
  })), ik = M(fS)(({ category: e }) => ({
22759
22759
  minWidth: "auto",
22760
- backgroundColor: e === "operators" ? D.keypadButtonOperator() : D.keypadButton(),
22761
- "&:hover": { backgroundColor: e === "operators" ? D.keypadButtonOperatorHover() : D.keypadButtonHover() },
22760
+ backgroundColor: e === "operators" ? O.keypadButtonOperator() : O.keypadButton(),
22761
+ "&:hover": { backgroundColor: e === "operators" ? O.keypadButtonOperatorHover() : O.keypadButtonHover() },
22762
22762
  borderRadius: 0,
22763
22763
  "& .icon": { height: "30px" }
22764
22764
  })), ak = class extends pt.Component {
@@ -22924,7 +22924,7 @@ var ek = (e) => e ? {
22924
22924
  }
22925
22925
  }, ck = M("span")(() => ({
22926
22926
  display: "inline-flex",
22927
- border: `1px solid ${D.border()}`,
22927
+ border: `1px solid ${O.border()}`,
22928
22928
  margin: "1px 5px",
22929
22929
  cursor: "pointer",
22930
22930
  alignItems: "center",
@@ -22933,10 +22933,10 @@ var ek = (e) => e ? {
22933
22933
  minHeight: "36px",
22934
22934
  height: "fit-content"
22935
22935
  })), lk = M("div")(() => ({
22936
- background: D.backgroundDark(),
22937
- color: D.text(),
22936
+ background: O.backgroundDark(),
22937
+ color: O.text(),
22938
22938
  display: "inline-flex",
22939
- borderRight: `2px solid ${D.border()}`,
22939
+ borderRight: `2px solid ${O.border()}`,
22940
22940
  boxSizing: "border-box",
22941
22941
  overflow: "hidden",
22942
22942
  fontSize: "12px",
@@ -23683,15 +23683,15 @@ var Qk = Xk.Provider, $k, eA = M(Bk, {
23683
23683
  nativeInput: ["nativeInput"]
23684
23684
  }, Gk, t);
23685
23685
  }, iA = /*#__PURE__*/ N.forwardRef(function(e, t) {
23686
- let { "aria-describedby": n, "aria-label": r, autoFocus: i, autoWidth: a, children: o, className: s, defaultOpen: c, defaultValue: l, disabled: u, displayEmpty: f, error: p = !1, IconComponent: m, inputRef: h, labelId: g, MenuProps: _ = {}, multiple: v, name: b, onBlur: x, onChange: S, onClose: C, onFocus: w, onKeyDown: ee, onMouseDown: T, onOpen: te, open: ne, readOnly: re, renderValue: ie, required: ae, SelectDisplayProps: E = {}, tabIndex: D, type: O, value: k, variant: se = "standard", ...A } = e, [ce, le] = Bt({
23686
+ let { "aria-describedby": n, "aria-label": r, autoFocus: i, autoWidth: a, children: o, className: s, defaultOpen: c, defaultValue: l, disabled: u, displayEmpty: f, error: p = !1, IconComponent: m, inputRef: h, labelId: g, MenuProps: _ = {}, multiple: v, name: b, onBlur: x, onChange: S, onClose: C, onFocus: w, onKeyDown: ee, onMouseDown: T, onOpen: te, open: E, readOnly: ne, renderValue: re, required: ie, SelectDisplayProps: D = {}, tabIndex: O, type: ae, value: k, variant: se = "standard", ...A } = e, [ce, le] = Bt({
23687
23687
  controlled: k,
23688
23688
  default: l,
23689
23689
  name: "Select"
23690
23690
  }), [ue, j] = Bt({
23691
- controlled: ne,
23691
+ controlled: E,
23692
23692
  default: c,
23693
23693
  name: "Select"
23694
- }), de = N.useRef(null), fe = N.useRef(null), [pe, he] = N.useState(null), { current: ge } = N.useRef(ne != null), [_e, ve] = N.useState(), [ye, xe] = N.useState(null), Se = be(t, h), Ce = N.useCallback((e) => {
23694
+ }), de = N.useRef(null), fe = N.useRef(null), [pe, he] = N.useState(null), { current: ge } = N.useRef(E != null), [_e, ve] = N.useState(), [ye, xe] = N.useState(null), Se = be(t, h), Ce = N.useCallback((e) => {
23695
23695
  fe.current = e, e && he(e);
23696
23696
  }, []), M = pe?.parentNode;
23697
23697
  N.useImperativeHandle(Se, () => ({
@@ -23760,7 +23760,7 @@ var Qk = Xk.Provider, $k, eA = M(Bk, {
23760
23760
  v || Te(!1, t);
23761
23761
  }
23762
23762
  }, Me = (e) => {
23763
- re || ([
23763
+ ne || ([
23764
23764
  " ",
23765
23765
  "ArrowUp",
23766
23766
  "ArrowDown",
@@ -23777,7 +23777,7 @@ var Qk = Xk.Provider, $k, eA = M(Bk, {
23777
23777
  };
23778
23778
  delete A["aria-invalid"];
23779
23779
  let Pe, Fe, Ie = [], Le = !1;
23780
- (me({ value: ce }) || f) && (ie ? Pe = ie(ce) : Le = !0);
23780
+ (me({ value: ce }) || f) && (re ? Pe = re(ce) : Le = !0);
23781
23781
  let Re = Oe.map((e) => {
23782
23782
  if (!/*#__PURE__*/ N.isValidElement(e)) return null;
23783
23783
  let t;
@@ -23801,8 +23801,8 @@ var Qk = Xk.Provider, $k, eA = M(Bk, {
23801
23801
  let Be = _e;
23802
23802
  !a && ge && pe && (Be = M.clientWidth);
23803
23803
  let Ve;
23804
- Ve = D === void 0 ? u ? null : 0 : D;
23805
- let He = E.id || (b ? `mui-component-select-${b}` : void 0), Ue = {
23804
+ Ve = O === void 0 ? u ? null : 0 : O;
23805
+ let He = D.id || (b ? `mui-component-select-${b}` : void 0), Ue = {
23806
23806
  ...e,
23807
23807
  variant: se,
23808
23808
  value: ce,
@@ -23828,15 +23828,15 @@ var Qk = Xk.Provider, $k, eA = M(Bk, {
23828
23828
  "aria-label": r,
23829
23829
  "aria-labelledby": [g, He].filter(Boolean).join(" ") || void 0,
23830
23830
  "aria-describedby": n,
23831
- "aria-required": ae ? "true" : void 0,
23831
+ "aria-required": ie ? "true" : void 0,
23832
23832
  "aria-invalid": p ? "true" : void 0,
23833
23833
  onKeyDown: Me,
23834
- onMouseDown: u || re ? null : Ee,
23834
+ onMouseDown: u || ne ? null : Ee,
23835
23835
  onBlur: Ne,
23836
23836
  onFocus: w,
23837
- ...E,
23837
+ ...D,
23838
23838
  ownerState: Ue,
23839
- className: d(E.className, We.select, s),
23839
+ className: d(D.className, We.select, s),
23840
23840
  id: He,
23841
23841
  children: Jk(Pe) ? $k ||= /*#__PURE__*/ P("span", {
23842
23842
  className: "notranslate",
@@ -23855,7 +23855,7 @@ var Qk = Xk.Provider, $k, eA = M(Bk, {
23855
23855
  disabled: u,
23856
23856
  className: We.nativeInput,
23857
23857
  autoFocus: i,
23858
- required: ae,
23858
+ required: ie,
23859
23859
  ...A,
23860
23860
  ownerState: Ue
23861
23861
  }),
@@ -24192,7 +24192,7 @@ var fA = k("MuiInputBase", [
24192
24192
  let n = ye({
24193
24193
  props: e,
24194
24194
  name: "MuiInputBase"
24195
- }), { "aria-describedby": r, autoComplete: i, autoFocus: a, className: o, color: s, components: l = {}, componentsProps: u = {}, defaultValue: f, disabled: p, disableInjectingGlobalStyles: m, endAdornment: h, error: g, fullWidth: _ = !1, id: v, inputComponent: b = "input", inputProps: x = {}, inputRef: S, margin: C, maxRows: w, minRows: ee, multiline: T = !1, name: te, onBlur: ne, onChange: re, onClick: ie, onFocus: D, onKeyDown: oe, onKeyUp: k, placeholder: se, readOnly: A, renderSuffix: ce, rows: le, size: ue, slotProps: j = {}, slots: de = {}, startAdornment: fe, type: pe = "text", value: he, ...ge } = n, _e = x.value == null ? he : x.value, { current: ve } = N.useRef(_e != null), xe = N.useRef(), Ce = N.useCallback((e) => {}, []), M = be(xe, S, x.ref, Ce), [we, Te] = N.useState(!1), Ee = O(), De = Ke({
24195
+ }), { "aria-describedby": r, autoComplete: i, autoFocus: a, className: o, color: s, components: l = {}, componentsProps: u = {}, defaultValue: f, disabled: p, disableInjectingGlobalStyles: m, endAdornment: h, error: g, fullWidth: _ = !1, id: v, inputComponent: b = "input", inputProps: x = {}, inputRef: S, margin: C, maxRows: w, minRows: ee, multiline: T = !1, name: te, onBlur: E, onChange: ne, onClick: re, onFocus: O, onKeyDown: oe, onKeyUp: k, placeholder: se, readOnly: A, renderSuffix: ce, rows: le, size: ue, slotProps: j = {}, slots: de = {}, startAdornment: fe, type: pe = "text", value: he, ...ge } = n, _e = x.value == null ? he : x.value, { current: ve } = N.useRef(_e != null), xe = N.useRef(), Ce = N.useCallback((e) => {}, []), M = be(xe, S, x.ref, Ce), [we, Te] = N.useState(!1), Ee = ae(), De = Ke({
24196
24196
  props: n,
24197
24197
  muiFormControl: Ee,
24198
24198
  states: [
@@ -24206,46 +24206,46 @@ var fA = k("MuiInputBase", [
24206
24206
  ]
24207
24207
  });
24208
24208
  De.focused = Ee ? Ee.focused : we, N.useEffect(() => {
24209
- !Ee && p && we && (Te(!1), ne && ne());
24209
+ !Ee && p && we && (Te(!1), E && E());
24210
24210
  }, [
24211
24211
  Ee,
24212
24212
  p,
24213
24213
  we,
24214
- ne
24214
+ E
24215
24215
  ]);
24216
24216
  let Oe = Ee && Ee.onFilled, ke = Ee && Ee.onEmpty, Ae = N.useCallback((e) => {
24217
24217
  me(e) ? Oe && Oe() : ke && ke();
24218
24218
  }, [Oe, ke]);
24219
- E(() => {
24219
+ D(() => {
24220
24220
  ve && Ae({ value: _e });
24221
24221
  }, [
24222
24222
  _e,
24223
24223
  Ae,
24224
24224
  ve
24225
- ]), E(() => {
24225
+ ]), D(() => {
24226
24226
  if (!a) return;
24227
24227
  let e = xe.current;
24228
24228
  if (!e) return;
24229
- let t = ze(e), n = ae(t), r = n == null || n === t.body || n === t.documentElement;
24229
+ let t = ze(e), n = ie(t), r = n == null || n === t.body || n === t.documentElement;
24230
24230
  e === n ? Ee && Ee.onFocus ? Ee.onFocus() : Te(!0) : r && e.focus();
24231
24231
  }, [a]);
24232
24232
  let je = (e) => {
24233
- D && D(e), x.onFocus && x.onFocus(e), Ee && Ee.onFocus ? Ee.onFocus(e) : Te(!0);
24233
+ O && O(e), x.onFocus && x.onFocus(e), Ee && Ee.onFocus ? Ee.onFocus(e) : Te(!0);
24234
24234
  }, Me = (e) => {
24235
- ne && ne(e), x.onBlur && x.onBlur(e), Ee && Ee.onBlur ? Ee.onBlur(e) : Te(!1);
24235
+ E && E(e), x.onBlur && x.onBlur(e), Ee && Ee.onBlur ? Ee.onBlur(e) : Te(!1);
24236
24236
  }, Ne = (e, ...t) => {
24237
24237
  if (!ve) {
24238
24238
  let t = e.target || xe.current;
24239
24239
  if (t == null) throw Error(y(1));
24240
24240
  Ae({ value: t.value });
24241
24241
  }
24242
- x.onChange && x.onChange(e, ...t), re && re(e, ...t);
24242
+ x.onChange && x.onChange(e, ...t), ne && ne(e, ...t);
24243
24243
  };
24244
24244
  N.useEffect(() => {
24245
24245
  Ae(xe.current);
24246
24246
  }, []);
24247
24247
  let Pe = (e) => {
24248
- xe.current && e.currentTarget === e.target && xe.current.focus(), ie && ie(e);
24248
+ xe.current && e.currentTarget === e.target && xe.current.focus(), re && re(e);
24249
24249
  }, Fe = b, Ie = x;
24250
24250
  T && Fe === "input" && (Ie = le ? {
24251
24251
  type: void 0,
@@ -24885,7 +24885,7 @@ var BA = {
24885
24885
  let n = ye({
24886
24886
  props: e,
24887
24887
  name: "MuiOutlinedInput"
24888
- }), { components: r = {}, fullWidth: i = !1, inputComponent: a = "input", label: o, multiline: s = !1, notched: c, slots: l = {}, slotProps: u = {}, type: d = "text", ...f } = n, p = VA(n), m = O(), h = Ke({
24888
+ }), { components: r = {}, fullWidth: i = !1, inputComponent: a = "input", label: o, multiline: s = !1, notched: c, slots: l = {}, slotProps: u = {}, type: d = "text", ...f } = n, p = VA(n), m = ae(), h = Ke({
24889
24889
  props: n,
24890
24890
  muiFormControl: m,
24891
24891
  states: [
@@ -24963,29 +24963,29 @@ var KA = (e) => {
24963
24963
  let n = ye({
24964
24964
  name: "MuiSelect",
24965
24965
  props: e
24966
- }), { autoWidth: r = !1, children: i, classes: o = {}, className: s, defaultOpen: c = !1, displayEmpty: l = !1, IconComponent: u = aA, id: f, input: p, inputProps: m, label: h, labelId: g, MenuProps: _, multiple: v = !1, native: y = !1, onClose: b, onOpen: x, open: S, renderValue: C, SelectDisplayProps: w, variant: ee = "outlined", ...T } = n, te = y ? Wk : iA, ne = Ke({
24966
+ }), { autoWidth: r = !1, children: i, classes: o = {}, className: s, defaultOpen: c = !1, displayEmpty: l = !1, IconComponent: u = aA, id: f, input: p, inputProps: m, label: h, labelId: g, MenuProps: _, multiple: v = !1, native: y = !1, onClose: b, onOpen: x, open: S, renderValue: C, SelectDisplayProps: w, variant: ee = "outlined", ...T } = n, te = y ? Wk : iA, E = Ke({
24967
24967
  props: n,
24968
- muiFormControl: O(),
24968
+ muiFormControl: ae(),
24969
24969
  states: ["variant", "error"]
24970
- }), re = ne.variant || ee, ie = {
24970
+ }), ne = E.variant || ee, re = {
24971
24971
  ...n,
24972
- variant: re,
24972
+ variant: ne,
24973
24973
  classes: o
24974
- }, ae = KA(ie), { root: E, ...D } = ae, oe = p || {
24975
- standard: /*#__PURE__*/ P(JA, { ownerState: ie }),
24974
+ }, ie = KA(re), { root: D, ...O } = ie, oe = p || {
24975
+ standard: /*#__PURE__*/ P(JA, { ownerState: re }),
24976
24976
  outlined: /*#__PURE__*/ P(YA, {
24977
24977
  label: h,
24978
- ownerState: ie
24978
+ ownerState: re
24979
24979
  }),
24980
- filled: /*#__PURE__*/ P(XA, { ownerState: ie })
24981
- }[re], k = be(t, Ne(oe));
24980
+ filled: /*#__PURE__*/ P(XA, { ownerState: re })
24981
+ }[ne], k = be(t, Ne(oe));
24982
24982
  return /*#__PURE__*/ P(N.Fragment, { children: /*#__PURE__*/ N.cloneElement(oe, {
24983
24983
  inputComponent: te,
24984
24984
  inputProps: {
24985
24985
  children: i,
24986
- error: ne.error,
24986
+ error: E.error,
24987
24987
  IconComponent: u,
24988
- variant: re,
24988
+ variant: ne,
24989
24989
  type: void 0,
24990
24990
  multiple: v,
24991
24991
  ...y ? { id: f } : {
@@ -25004,13 +25004,13 @@ var KA = (e) => {
25004
25004
  }
25005
25005
  },
25006
25006
  ...m,
25007
- classes: m ? a(D, m.classes) : D,
25007
+ classes: m ? a(O, m.classes) : O,
25008
25008
  ...p ? p.props.inputProps : {}
25009
25009
  },
25010
- ...(v && y || l) && re === "outlined" ? { notched: !0 } : {},
25010
+ ...(v && y || l) && ne === "outlined" ? { notched: !0 } : {},
25011
25011
  ref: k,
25012
- className: d(oe.props.className, s, ae.root),
25013
- ...!p && { variant: re },
25012
+ className: d(oe.props.className, s, ie.root),
25013
+ ...!p && { variant: ne },
25014
25014
  ...T
25015
25015
  }) });
25016
25016
  });
@@ -25134,7 +25134,7 @@ var $A = (e, t) => {
25134
25134
  a,
25135
25135
  s
25136
25136
  ]), _ = N.useRef(null);
25137
- E(() => {
25137
+ D(() => {
25138
25138
  r && _.current && QA(_.current, m);
25139
25139
  }, [r]);
25140
25140
  let v = {
@@ -25271,14 +25271,14 @@ var $A = (e, t) => {
25271
25271
  "& .mq-sqrt-prefix .mq-scaled": { verticalAlign: "middle !important" }
25272
25272
  })), mj = M(XO.Input)(({ controlledKeypadMode: e }) => ({
25273
25273
  maxWidth: e ? "400px" : "500px",
25274
- color: D.text(),
25275
- backgroundColor: D.background(),
25274
+ color: O.text(),
25275
+ backgroundColor: O.background(),
25276
25276
  padding: "2px"
25277
25277
  })), hj = M(u)({
25278
25278
  position: "absolute",
25279
25279
  right: "12px",
25280
25280
  border: "1px solid lightgrey",
25281
- color: D.text()
25281
+ color: O.text()
25282
25282
  }), gj = M("hr")(({ theme: e }) => ({
25283
25283
  padding: 0,
25284
25284
  margin: 0,
@@ -25497,8 +25497,8 @@ var $A = (e, t) => {
25497
25497
  height: "28px",
25498
25498
  color: "#00bb00",
25499
25499
  ...e && {
25500
- backgroundColor: D.white(),
25501
- "&:hover": { backgroundColor: D.backgroundDark() }
25500
+ backgroundColor: O.white(),
25501
+ "&:hover": { backgroundColor: O.backgroundDark() }
25502
25502
  },
25503
25503
  "& .MuiIconButton-label": {
25504
25504
  position: "absolute",
@@ -26142,7 +26142,7 @@ var Xj = k("MuiFormHelperText", [
26142
26142
  name: "MuiFormHelperText"
26143
26143
  }), { children: r, className: i, component: a = "p", disabled: o, error: s, filled: c, focused: l, margin: u, required: f, variant: p, ...m } = n, h = Ke({
26144
26144
  props: n,
26145
- muiFormControl: O(),
26145
+ muiFormControl: ae(),
26146
26146
  states: [
26147
26147
  "variant",
26148
26148
  "size",
@@ -26199,7 +26199,7 @@ var nM = {
26199
26199
  let n = ye({
26200
26200
  props: e,
26201
26201
  name: "MuiTextField"
26202
- }), { autoComplete: r, autoFocus: i = !1, children: a, className: o, color: s = "primary", defaultValue: c, disabled: l = !1, error: u = !1, FormHelperTextProps: f, fullWidth: p = !1, helperText: m, id: h, InputLabelProps: g, inputProps: _, InputProps: v, inputRef: y, label: x, maxRows: S, minRows: C, multiline: w = !1, name: ee, onBlur: T, onChange: te, onFocus: ne, placeholder: re, required: ie = !1, rows: ae, select: E = !1, SelectProps: D, slots: O = {}, slotProps: k = {}, type: se, value: A, variant: ce = "outlined", ...le } = n, ue = {
26202
+ }), { autoComplete: r, autoFocus: i = !1, children: a, className: o, color: s = "primary", defaultValue: c, disabled: l = !1, error: u = !1, FormHelperTextProps: f, fullWidth: p = !1, helperText: m, id: h, InputLabelProps: g, inputProps: _, InputProps: v, inputRef: y, label: x, maxRows: S, minRows: C, multiline: w = !1, name: ee, onBlur: T, onChange: te, onFocus: E, placeholder: ne, required: re = !1, rows: ie, select: D = !1, SelectProps: O, slots: ae = {}, slotProps: k = {}, type: se, value: A, variant: ce = "outlined", ...le } = n, ue = {
26203
26203
  ...n,
26204
26204
  autoFocus: i,
26205
26205
  color: s,
@@ -26207,21 +26207,21 @@ var nM = {
26207
26207
  error: u,
26208
26208
  fullWidth: p,
26209
26209
  multiline: w,
26210
- required: ie,
26211
- select: E,
26210
+ required: re,
26211
+ select: D,
26212
26212
  variant: ce
26213
26213
  }, j = rM(ue), de = oe(h), fe = m && de ? `${de}-helper-text` : void 0, pe = x && de ? `${de}-label` : void 0, me = nM[ce], he = {
26214
- slots: O,
26214
+ slots: ae,
26215
26215
  slotProps: {
26216
26216
  input: v,
26217
26217
  inputLabel: g,
26218
26218
  htmlInput: _,
26219
26219
  formHelperText: f,
26220
- select: D,
26220
+ select: O,
26221
26221
  ...k
26222
26222
  }
26223
26223
  }, ge = {}, _e = he.slotProps.inputLabel;
26224
- ce === "outlined" && (_e && _e.shrink !== void 0 && (ge.notched = _e.shrink), ge.label = x), E && ((!D || !D.native) && (ge.id = void 0), ge["aria-describedby"] = void 0);
26224
+ ce === "outlined" && (_e && _e.shrink !== void 0 && (ge.notched = _e.shrink), ge.label = x), D && ((!O || !O.native) && (ge.id = void 0), ge["aria-describedby"] = void 0);
26225
26225
  let [ve, be] = b("root", {
26226
26226
  elementType: iM,
26227
26227
  shouldForwardComponentProp: !0,
@@ -26236,7 +26236,7 @@ var nM = {
26236
26236
  disabled: l,
26237
26237
  error: u,
26238
26238
  fullWidth: p,
26239
- required: ie,
26239
+ required: re,
26240
26240
  color: s,
26241
26241
  variant: ce
26242
26242
  }
@@ -26269,7 +26269,7 @@ var nM = {
26269
26269
  fullWidth: p,
26270
26270
  multiline: w,
26271
26271
  name: ee,
26272
- rows: ae,
26272
+ rows: ie,
26273
26273
  maxRows: S,
26274
26274
  minRows: C,
26275
26275
  type: se,
@@ -26278,10 +26278,10 @@ var nM = {
26278
26278
  inputRef: y,
26279
26279
  onBlur: T,
26280
26280
  onChange: te,
26281
- onFocus: ne,
26282
- placeholder: re,
26281
+ onFocus: E,
26282
+ placeholder: ne,
26283
26283
  inputProps: Te,
26284
- slots: { input: O.htmlInput ? we : void 0 },
26284
+ slots: { input: ae.htmlInput ? we : void 0 },
26285
26285
  ...Se
26286
26286
  });
26287
26287
  return /*#__PURE__*/ F(ve, {
@@ -26293,7 +26293,7 @@ var nM = {
26293
26293
  ...M,
26294
26294
  children: x
26295
26295
  }),
26296
- E ? /*#__PURE__*/ P(Oe, {
26296
+ D ? /*#__PURE__*/ P(Oe, {
26297
26297
  "aria-describedby": fe,
26298
26298
  id: de,
26299
26299
  labelId: pe,
@@ -26511,24 +26511,24 @@ var dM = k("MuiDialog", [
26511
26511
  }), r = Ge(), i = {
26512
26512
  enter: r.transitions.duration.enteringScreen,
26513
26513
  exit: r.transitions.duration.leavingScreen
26514
- }, { "aria-describedby": a, "aria-labelledby": o, "aria-modal": s = !0, BackdropComponent: c, BackdropProps: l, children: u, className: f, disableEscapeKeyDown: p = !1, fullScreen: m = !1, fullWidth: h = !1, maxWidth: g = "sm", onClick: v, onClose: y, open: x, PaperComponent: S = _, PaperProps: C = {}, role: w = "dialog", scroll: ee = "paper", slots: T = {}, slotProps: te = {}, TransitionComponent: ne = Ie, transitionDuration: re = i, TransitionProps: ie, ...ae } = n, E = {
26514
+ }, { "aria-describedby": a, "aria-labelledby": o, "aria-modal": s = !0, BackdropComponent: c, BackdropProps: l, children: u, className: f, disableEscapeKeyDown: p = !1, fullScreen: m = !1, fullWidth: h = !1, maxWidth: g = "sm", onClick: v, onClose: y, open: x, PaperComponent: S = _, PaperProps: C = {}, role: w = "dialog", scroll: ee = "paper", slots: T = {}, slotProps: te = {}, TransitionComponent: E = Ie, transitionDuration: ne = i, TransitionProps: re, ...ie } = n, D = {
26515
26515
  ...n,
26516
26516
  disableEscapeKeyDown: p,
26517
26517
  fullScreen: m,
26518
26518
  fullWidth: h,
26519
26519
  maxWidth: g,
26520
26520
  scroll: ee
26521
- }, D = mM(E), O = N.useRef(), k = (e) => {
26522
- O.current = e.target === e.currentTarget;
26521
+ }, O = mM(D), ae = N.useRef(), k = (e) => {
26522
+ ae.current = e.target === e.currentTarget;
26523
26523
  }, se = (e) => {
26524
- v && v(e), O.current && (O.current = null, y && y(e, "backdropClick"));
26524
+ v && v(e), ae.current && (ae.current = null, y && y(e, "backdropClick"));
26525
26525
  }, A = oe(o), ce = N.useMemo(() => ({ titleId: A }), [A]), le = {
26526
26526
  slots: {
26527
- transition: ne,
26527
+ transition: E,
26528
26528
  ...T
26529
26529
  },
26530
26530
  slotProps: {
26531
- transition: ie,
26531
+ transition: re,
26532
26532
  paper: C,
26533
26533
  backdrop: l,
26534
26534
  ...te
@@ -26537,21 +26537,21 @@ var dM = k("MuiDialog", [
26537
26537
  elementType: hM,
26538
26538
  shouldForwardComponentProp: !0,
26539
26539
  externalForwardedProps: le,
26540
- ownerState: E,
26541
- className: d(D.root, f),
26540
+ ownerState: D,
26541
+ className: d(O.root, f),
26542
26542
  ref: t
26543
26543
  }), [fe, pe] = b("backdrop", {
26544
26544
  elementType: pM,
26545
26545
  shouldForwardComponentProp: !0,
26546
26546
  externalForwardedProps: le,
26547
- ownerState: E,
26548
- className: D.backdrop
26547
+ ownerState: D,
26548
+ className: O.backdrop
26549
26549
  }), [me, he] = b("paper", {
26550
26550
  elementType: _M,
26551
26551
  shouldForwardComponentProp: !0,
26552
26552
  externalForwardedProps: le,
26553
- ownerState: E,
26554
- className: D.paper,
26553
+ ownerState: D,
26554
+ className: O.paper,
26555
26555
  additionalProps: {
26556
26556
  elevation: 24,
26557
26557
  role: w,
@@ -26564,16 +26564,16 @@ var dM = k("MuiDialog", [
26564
26564
  }), [ge, _e] = b("container", {
26565
26565
  elementType: gM,
26566
26566
  externalForwardedProps: le,
26567
- ownerState: E,
26568
- className: D.container
26567
+ ownerState: D,
26568
+ className: O.container
26569
26569
  }), [ve, be] = b("transition", {
26570
26570
  elementType: Ie,
26571
26571
  externalForwardedProps: le,
26572
- ownerState: E,
26572
+ ownerState: D,
26573
26573
  additionalProps: {
26574
26574
  appear: !0,
26575
26575
  in: x,
26576
- timeout: re,
26576
+ timeout: ne,
26577
26577
  role: "presentation"
26578
26578
  }
26579
26579
  });
@@ -26581,7 +26581,7 @@ var dM = k("MuiDialog", [
26581
26581
  closeAfterTransition: !0,
26582
26582
  slots: { backdrop: fe },
26583
26583
  slotProps: { backdrop: {
26584
- transitionDuration: re,
26584
+ transitionDuration: ne,
26585
26585
  as: c,
26586
26586
  ...pe
26587
26587
  } },
@@ -26590,7 +26590,7 @@ var dM = k("MuiDialog", [
26590
26590
  open: x,
26591
26591
  onClick: se,
26592
26592
  ...j,
26593
- ...ae,
26593
+ ...ie,
26594
26594
  children: /*#__PURE__*/ P(ve, {
26595
26595
  ...be,
26596
26596
  children: /*#__PURE__*/ P(ge, {
@@ -26660,7 +26660,7 @@ var dM = k("MuiDialog", [
26660
26660
  "disabled",
26661
26661
  "extraStyles"
26662
26662
  ].includes(e) })(({ active: e, disabled: t }) => ({
26663
- color: e ? D.text() : D.disabled(),
26663
+ color: e ? O.text() : O.disabled(),
26664
26664
  display: "inline-flex",
26665
26665
  padding: "2px",
26666
26666
  background: "none",
@@ -26670,8 +26670,8 @@ var dM = k("MuiDialog", [
26670
26670
  width: "24px",
26671
26671
  height: "24px"
26672
26672
  },
26673
- "&:hover": { color: t ? D.disabled() : D.text() },
26674
- "&:focus": { outline: `2px solid ${D.buttonFocusOutline()}` },
26673
+ "&:hover": { color: t ? O.disabled() : O.text() },
26674
+ "&:focus": { outline: `2px solid ${O.buttonFocusOutline()}` },
26675
26675
  ...t && { opacity: .7 }
26676
26676
  })), xM = (0, Vt.default)("pie-elements:editable-html:raw-button");
26677
26677
  (class extends pt.Component {
@@ -26839,7 +26839,7 @@ k("MuiLinearProgress", [
26839
26839
  ]);
26840
26840
  //#endregion
26841
26841
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/LinearProgress/LinearProgress.js
26842
- var kM = 4, AM = ie`
26842
+ var kM = 4, AM = re`
26843
26843
  0% {
26844
26844
  left: -35%;
26845
26845
  right: 100%;
@@ -26856,7 +26856,7 @@ var kM = 4, AM = ie`
26856
26856
  }
26857
26857
  `, jM = typeof AM == "string" ? null : T`
26858
26858
  animation: ${AM} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
26859
- `, MM = ie`
26859
+ `, MM = re`
26860
26860
  0% {
26861
26861
  left: -200%;
26862
26862
  right: 100%;
@@ -26873,7 +26873,7 @@ var kM = 4, AM = ie`
26873
26873
  }
26874
26874
  `, NM = typeof MM == "string" ? null : T`
26875
26875
  animation: ${MM} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
26876
- `, PM = ie`
26876
+ `, PM = re`
26877
26877
  0% {
26878
26878
  opacity: 1;
26879
26879
  background-position: 0 -23px;
@@ -27224,8 +27224,8 @@ function YM(e) {
27224
27224
  ]), Ct(() => {
27225
27225
  w();
27226
27226
  let e = y?.current;
27227
- return e && n.isEditable && e.addEventListener("mousedown", ie, !1), () => {
27228
- e && e.removeEventListener("mousedown", ie, !1);
27227
+ return e && n.isEditable && e.addEventListener("mousedown", re, !1), () => {
27228
+ e && e.removeEventListener("mousedown", re, !1);
27229
27229
  };
27230
27230
  }, []), Ct(() => {
27231
27231
  w();
@@ -27276,17 +27276,17 @@ function YM(e) {
27276
27276
  width: i.width,
27277
27277
  height: i.height
27278
27278
  }));
27279
- }, [n, C]), ne = bt((e) => {
27279
+ }, [n, C]), E = bt((e) => {
27280
27280
  C(e);
27281
- }, [n, C]), re = bt(() => {
27282
- window.removeEventListener("mousemove", te), window.removeEventListener("mouseup", re);
27283
- }, [te]), ie = bt(() => {
27284
- window.addEventListener("mousemove", te), window.addEventListener("mouseup", re);
27285
- }, [te, re]), ae = {
27281
+ }, [n, C]), ne = bt(() => {
27282
+ window.removeEventListener("mousemove", te), window.removeEventListener("mouseup", ne);
27283
+ }, [te]), re = bt(() => {
27284
+ window.addEventListener("mousemove", te), window.addEventListener("mouseup", ne);
27285
+ }, [te, ne]), ie = {
27286
27286
  width: JM(t.attrs.width),
27287
27287
  height: JM(t.attrs.height),
27288
27288
  objectFit: "contain"
27289
- }, E = {
27289
+ }, D = {
27290
27290
  left: "flex-start",
27291
27291
  center: "center",
27292
27292
  right: "flex-end"
@@ -27295,7 +27295,7 @@ function YM(e) {
27295
27295
  onFocus: i,
27296
27296
  loading: !t.attrs.loaded,
27297
27297
  pendingDelete: t.attrs.deleteStatus === "pending",
27298
- style: { justifyContent: E },
27298
+ style: { justifyContent: D },
27299
27299
  children: [/* @__PURE__ */ P(UM, {
27300
27300
  mode: "determinate",
27301
27301
  value: t.attrs.percent || 0,
@@ -27308,7 +27308,7 @@ function YM(e) {
27308
27308
  draggable: !1,
27309
27309
  ref: v,
27310
27310
  src: t.attrs.src,
27311
- style: ae,
27311
+ style: ie,
27312
27312
  onLoad: ee,
27313
27313
  alt: t.attrs.alt
27314
27314
  }), /* @__PURE__ */ P(qM, {
@@ -27341,7 +27341,7 @@ function YM(e) {
27341
27341
  alt: t.attrs.alt,
27342
27342
  imageLoaded: t.attrs.loaded,
27343
27343
  alignment: t.attrs.alignment || "left",
27344
- onChange: ne
27344
+ onChange: E
27345
27345
  })
27346
27346
  })
27347
27347
  }), n._tiptapContainerEl)] });
@@ -27453,7 +27453,7 @@ function eN(e) {
27453
27453
  let { onChange: t, ...n } = e, r = N.useRef(), i = N.useRef(null), a = () => {
27454
27454
  r.current = i.current.offsetHeight - i.current.clientHeight;
27455
27455
  };
27456
- return E(() => {
27456
+ return D(() => {
27457
27457
  let e = Ae(() => {
27458
27458
  let e = r.current;
27459
27459
  a(), e !== r.current && t(r.current);
@@ -27728,22 +27728,22 @@ var lN = k("MuiTabs", [
27728
27728
  let n = ye({
27729
27729
  props: e,
27730
27730
  name: "MuiTabs"
27731
- }), r = Ge(), i = l(), { "aria-label": a, "aria-labelledby": o, action: s, centered: c = !1, children: u, className: f, component: p = "div", allowScrollButtonsMobile: m = !1, indicatorColor: h = "primary", onChange: g, orientation: _ = "horizontal", ScrollButtonComponent: y, scrollButtons: x = "auto", selectionFollowsFocus: S, slots: C = {}, slotProps: w = {}, TabIndicatorProps: ee = {}, TabScrollButtonProps: T = {}, textColor: te = "primary", value: ne, variant: re = "standard", visibleScrollbar: ie = !1, ...E } = n, D = re === "scrollable", O = _ === "vertical", oe = O ? "scrollTop" : "scrollLeft", k = O ? "top" : "left", se = O ? "bottom" : "right", A = O ? "clientHeight" : "clientWidth", ce = O ? "height" : "width", le = {
27731
+ }), r = Ge(), i = l(), { "aria-label": a, "aria-labelledby": o, action: s, centered: c = !1, children: u, className: f, component: p = "div", allowScrollButtonsMobile: m = !1, indicatorColor: h = "primary", onChange: g, orientation: _ = "horizontal", ScrollButtonComponent: y, scrollButtons: x = "auto", selectionFollowsFocus: S, slots: C = {}, slotProps: w = {}, TabIndicatorProps: ee = {}, TabScrollButtonProps: T = {}, textColor: te = "primary", value: E, variant: ne = "standard", visibleScrollbar: re = !1, ...D } = n, O = ne === "scrollable", ae = _ === "vertical", oe = ae ? "scrollTop" : "scrollLeft", k = ae ? "top" : "left", se = ae ? "bottom" : "right", A = ae ? "clientHeight" : "clientWidth", ce = ae ? "height" : "width", le = {
27732
27732
  ...n,
27733
27733
  component: p,
27734
27734
  allowScrollButtonsMobile: m,
27735
27735
  indicatorColor: h,
27736
27736
  orientation: _,
27737
- vertical: O,
27737
+ vertical: ae,
27738
27738
  scrollButtons: x,
27739
27739
  textColor: te,
27740
- variant: re,
27741
- visibleScrollbar: ie,
27742
- fixed: !D,
27743
- hideScrollbar: D && !ie,
27744
- scrollableX: D && !O,
27745
- scrollableY: D && O,
27746
- centered: c && !D,
27740
+ variant: ne,
27741
+ visibleScrollbar: re,
27742
+ fixed: !O,
27743
+ hideScrollbar: O && !re,
27744
+ scrollableX: O && !ae,
27745
+ scrollableY: O && ae,
27746
+ centered: c && !O,
27747
27747
  scrollButtonsHideMobile: !m
27748
27748
  }, ue = pN(le), j = xe({
27749
27749
  elementType: C.StartScrollButtonIcon,
@@ -27779,10 +27779,10 @@ var lN = k("MuiTabs", [
27779
27779
  };
27780
27780
  }
27781
27781
  let n;
27782
- if (e && ne !== !1) {
27782
+ if (e && E !== !1) {
27783
27783
  let e = Oe.current.children;
27784
27784
  if (e.length > 0) {
27785
- let t = e[Ee.get(ne)];
27785
+ let t = e[Ee.get(E)];
27786
27786
  n = t ? t.getBoundingClientRect() : null;
27787
27787
  }
27788
27788
  }
@@ -27792,7 +27792,7 @@ var lN = k("MuiTabs", [
27792
27792
  };
27793
27793
  }, Me = v(() => {
27794
27794
  let { tabsMeta: e, tabMeta: t } = je(), n = 0, r;
27795
- O ? (r = "top", t && e && (n = t.top - e.top + e.scrollTop)) : (r = i ? "right" : "left", t && e && (n = (i ? -1 : 1) * (t[r] - e[r] + e.scrollLeft)));
27795
+ ae ? (r = "top", t && e && (n = t.top - e.top + e.scrollTop)) : (r = i ? "right" : "left", t && e && (n = (i ? -1 : 1) * (t[r] - e[r] + e.scrollLeft)));
27796
27796
  let a = {
27797
27797
  [r]: n,
27798
27798
  [ce]: t ? t[ce] : 0
@@ -27806,7 +27806,7 @@ var lN = k("MuiTabs", [
27806
27806
  t ? QM(oe, De.current, e, { duration: r.transitions.duration.standard }) : De.current[oe] = e;
27807
27807
  }, Pe = (e) => {
27808
27808
  let t = De.current[oe];
27809
- O ? t += e : t += e * (i ? -1 : 1), Ne(t);
27809
+ ae ? t += e : t += e * (i ? -1 : 1), Ne(t);
27810
27810
  }, Fe = () => {
27811
27811
  let e = De.current[A], t = 0, n = Array.from(Oe.current.children);
27812
27812
  for (let r = 0; r < n.length; r += 1) {
@@ -27851,11 +27851,11 @@ var lN = k("MuiTabs", [
27851
27851
  }
27852
27852
  }), Ke = () => {
27853
27853
  let e = {};
27854
- e.scrollbarSizeListener = D ? /*#__PURE__*/ P(Re, {
27854
+ e.scrollbarSizeListener = O ? /*#__PURE__*/ P(Re, {
27855
27855
  ...Ve,
27856
27856
  onChange: He
27857
27857
  }) : null;
27858
- let t = D && (x === "auto" && (_e || be) || x === !0);
27858
+ let t = O && (x === "auto" && (_e || be) || x === !0);
27859
27859
  return e.scrollButtonStart = t ? /*#__PURE__*/ P(Ue, {
27860
27860
  direction: i ? "right" : "left",
27861
27861
  onClick: Ie,
@@ -27879,7 +27879,7 @@ var lN = k("MuiTabs", [
27879
27879
  }
27880
27880
  }
27881
27881
  }), Je = v(() => {
27882
- D && x !== !1 && M(!Ce);
27882
+ O && x !== !1 && M(!Ce);
27883
27883
  });
27884
27884
  N.useEffect(() => {
27885
27885
  let e = Ae(() => {
@@ -27902,7 +27902,7 @@ var lN = k("MuiTabs", [
27902
27902
  };
27903
27903
  }, [Me, Je]), N.useEffect(() => {
27904
27904
  let e = Array.from(Oe.current.children), t = e.length;
27905
- if (typeof IntersectionObserver < "u" && t > 0 && D && x !== !1) {
27905
+ if (typeof IntersectionObserver < "u" && t > 0 && O && x !== !1) {
27906
27906
  let n = e[0], r = e[t - 1], i = {
27907
27907
  root: De.current,
27908
27908
  threshold: .99
@@ -27918,7 +27918,7 @@ var lN = k("MuiTabs", [
27918
27918
  };
27919
27919
  }
27920
27920
  }, [
27921
- D,
27921
+ O,
27922
27922
  x,
27923
27923
  Ce,
27924
27924
  u?.length
@@ -27942,20 +27942,20 @@ var lN = k("MuiTabs", [
27942
27942
  if (!/*#__PURE__*/ N.isValidElement(e)) return null;
27943
27943
  let t = e.props.value === void 0 ? Qe : e.props.value;
27944
27944
  Ee.set(t, Qe);
27945
- let n = t === ne;
27945
+ let n = t === E;
27946
27946
  return Qe += 1, /*#__PURE__*/ N.cloneElement(e, {
27947
- fullWidth: re === "fullWidth",
27947
+ fullWidth: ne === "fullWidth",
27948
27948
  indicator: n && !fe && Ze,
27949
27949
  selected: n,
27950
27950
  selectionFollowsFocus: S,
27951
27951
  onChange: g,
27952
27952
  textColor: te,
27953
27953
  value: t,
27954
- ...Qe === 1 && ne === !1 && !e.props.tabIndex ? { tabIndex: 0 } : {}
27954
+ ...Qe === 1 && E === !1 && !e.props.tabIndex ? { tabIndex: 0 } : {}
27955
27955
  });
27956
27956
  }), et = (e) => {
27957
27957
  if (e.altKey || e.shiftKey || e.ctrlKey || e.metaKey) return;
27958
- let t = Oe.current, n = ae(ze(t));
27958
+ let t = Oe.current, n = ie(ze(t));
27959
27959
  if (n?.getAttribute("role") !== "tab") return;
27960
27960
  let r = _ === "horizontal" ? "ArrowLeft" : "ArrowUp", a = _ === "horizontal" ? "ArrowRight" : "ArrowDown";
27961
27961
  switch (_ === "horizontal" && i && (r = "ArrowRight", a = "ArrowLeft"), e.key) {
@@ -27979,7 +27979,7 @@ var lN = k("MuiTabs", [
27979
27979
  elementType: mN,
27980
27980
  externalForwardedProps: {
27981
27981
  ...ke,
27982
- ...E,
27982
+ ...D,
27983
27983
  component: p
27984
27984
  },
27985
27985
  ownerState: le
@@ -27991,7 +27991,7 @@ var lN = k("MuiTabs", [
27991
27991
  ownerState: le,
27992
27992
  additionalProps: { style: {
27993
27993
  overflow: we.overflow,
27994
- [O ? `margin${i ? "Left" : "Right"}` : "marginBottom"]: ie ? void 0 : -we.scrollbarWidth
27994
+ [ae ? `margin${i ? "Left" : "Right"}` : "marginBottom"]: re ? void 0 : -we.scrollbarWidth
27995
27995
  } }
27996
27996
  }), [ot, st] = b("list", {
27997
27997
  ref: Oe,
@@ -28979,52 +28979,52 @@ var lP = (e, t) => {
28979
28979
  disablePadding: h,
28980
28980
  divider: g,
28981
28981
  hasSecondaryAction: T
28982
- }, ne = uP(te), re = be(w, t), [ie, ae] = b("secondaryAction", {
28982
+ }, E = uP(te), ne = be(w, t), [re, ie] = b("secondaryAction", {
28983
28983
  elementType: cP,
28984
28984
  externalForwardedProps: {
28985
28985
  slots: y,
28986
28986
  slotProps: v
28987
28987
  },
28988
28988
  ownerState: te,
28989
- className: ne.secondaryAction
28990
- }), E = y.root || s.Root || dP, D = v.root || c.root || {}, O = {
28991
- className: d(ne.root, D.className, a),
28989
+ className: E.secondaryAction
28990
+ }), D = y.root || s.Root || dP, O = v.root || c.root || {}, ae = {
28991
+ className: d(E.root, O.className, a),
28992
28992
  ...x
28993
28993
  }, oe = o || "li";
28994
- return T ? (oe = !O.component && !o ? "div" : oe, l === "li" && (oe === "li" ? oe = "div" : O.component === "li" && (O.component = "div")), /*#__PURE__*/ P(ve.Provider, {
28994
+ return T ? (oe = !ae.component && !o ? "div" : oe, l === "li" && (oe === "li" ? oe = "div" : ae.component === "li" && (ae.component = "div")), /*#__PURE__*/ P(ve.Provider, {
28995
28995
  value: C,
28996
28996
  children: /*#__PURE__*/ F(fP, {
28997
28997
  as: l,
28998
- className: d(ne.container, u),
28999
- ref: re,
28998
+ className: d(E.container, u),
28999
+ ref: ne,
29000
29000
  ownerState: te,
29001
29001
  ...f,
29002
- children: [/*#__PURE__*/ P(E, {
29003
- ...D,
29004
- ...!Se(E) && {
29002
+ children: [/*#__PURE__*/ P(D, {
29003
+ ...O,
29004
+ ...!Se(D) && {
29005
29005
  as: oe,
29006
29006
  ownerState: {
29007
29007
  ...te,
29008
- ...D.ownerState
29008
+ ...O.ownerState
29009
29009
  }
29010
29010
  },
29011
- ...O,
29011
+ ...ae,
29012
29012
  children: ee
29013
29013
  }), ee.pop()]
29014
29014
  })
29015
29015
  })) : /*#__PURE__*/ P(ve.Provider, {
29016
29016
  value: C,
29017
- children: /*#__PURE__*/ F(E, {
29018
- ...D,
29017
+ children: /*#__PURE__*/ F(D, {
29018
+ ...O,
29019
29019
  as: oe,
29020
- ref: re,
29021
- ...!Se(E) && { ownerState: {
29020
+ ref: ne,
29021
+ ...!Se(D) && { ownerState: {
29022
29022
  ...te,
29023
- ...D.ownerState
29023
+ ...O.ownerState
29024
29024
  } },
29025
- ...O,
29026
- children: [ee, _ && /*#__PURE__*/ P(ie, {
29027
- ...ae,
29025
+ ...ae,
29026
+ children: [ee, _ && /*#__PURE__*/ P(re, {
29027
+ ...ie,
29028
29028
  children: _
29029
29029
  })]
29030
29030
  })
@@ -30792,16 +30792,16 @@ function mI(e) {
30792
30792
  p -= T - r.width, p *= c ? 1 : -1;
30793
30793
  }
30794
30794
  }
30795
- var te = Object.assign({ position: s }, l && fI), ne = u === !0 ? pI({
30795
+ var te = Object.assign({ position: s }, l && fI), E = u === !0 ? pI({
30796
30796
  x: p,
30797
30797
  y: h
30798
30798
  }, MF(n)) : {
30799
30799
  x: p,
30800
30800
  y: h
30801
30801
  };
30802
- if (p = ne.x, h = ne.y, c) {
30803
- var re;
30804
- return Object.assign({}, te, (re = {}, re[b] = v ? "0" : "", re[y] = _ ? "0" : "", re.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", re));
30802
+ if (p = E.x, h = E.y, c) {
30803
+ var ne;
30804
+ return Object.assign({}, te, (ne = {}, ne[b] = v ? "0" : "", ne[y] = _ ? "0" : "", ne.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", ne));
30805
30805
  }
30806
30806
  return Object.assign({}, te, (t = {}, t[b] = v ? h + "px" : "", t[y] = _ ? p + "px" : "", t.transform = "", t));
30807
30807
  }
@@ -31032,10 +31032,10 @@ function LI(e, t) {
31032
31032
  right: ee.right - x.right + _.right
31033
31033
  }, te = e.modifiersData.offset;
31034
31034
  if (f === "popper" && te) {
31035
- var ne = te[i];
31035
+ var E = te[i];
31036
31036
  Object.keys(T).forEach(function(e) {
31037
31037
  var t = ["right", "bottom"].indexOf(e) >= 0 ? 1 : -1, n = ["top", "bottom"].indexOf(e) >= 0 ? "y" : "x";
31038
- T[e] += ne[n] * t;
31038
+ T[e] += E[n] * t;
31039
31039
  });
31040
31040
  }
31041
31041
  return T;
@@ -31086,22 +31086,22 @@ function BI(e) {
31086
31086
  allowedAutoPlacements: h
31087
31087
  }) : n);
31088
31088
  }, []), b = t.rects.reference, x = t.rects.popper, S = /* @__PURE__ */ new Map(), C = !0, w = y[0], ee = 0; ee < y.length; ee++) {
31089
- var T = y[ee], te = zF(T), ne = dI(T) === CF, re = ["top", vF].indexOf(te) >= 0, ie = re ? "width" : "height", ae = LI(t, {
31089
+ var T = y[ee], te = zF(T), E = dI(T) === CF, ne = ["top", vF].indexOf(te) >= 0, re = ne ? "width" : "height", ie = LI(t, {
31090
31090
  placement: T,
31091
31091
  boundary: u,
31092
31092
  rootBoundary: d,
31093
31093
  altBoundary: f,
31094
31094
  padding: l
31095
- }), E = re ? ne ? yF : bF : ne ? vF : "top";
31096
- b[ie] > x[ie] && (E = xI(E));
31097
- var D = xI(E), O = [];
31098
- if (a && O.push(ae[te] <= 0), s && O.push(ae[E] <= 0, ae[D] <= 0), O.every(function(e) {
31095
+ }), D = ne ? E ? yF : bF : E ? vF : "top";
31096
+ b[re] > x[re] && (D = xI(D));
31097
+ var O = xI(D), ae = [];
31098
+ if (a && ae.push(ie[te] <= 0), s && ae.push(ie[D] <= 0, ie[O] <= 0), ae.every(function(e) {
31099
31099
  return e;
31100
31100
  })) {
31101
31101
  w = T, C = !1;
31102
31102
  break;
31103
31103
  }
31104
- S.set(T, O);
31104
+ S.set(T, ae);
31105
31105
  }
31106
31106
  if (C) for (var oe = m ? 3 : 1, k = function(e) {
31107
31107
  var t = y.find(function(t) {
@@ -31227,23 +31227,23 @@ function QI(e) {
31227
31227
  } : Object.assign({
31228
31228
  mainAxis: 0,
31229
31229
  altAxis: 0
31230
- }, ee), te = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, ne = {
31230
+ }, ee), te = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, E = {
31231
31231
  x: 0,
31232
31232
  y: 0
31233
31233
  };
31234
31234
  if (S) {
31235
31235
  if (a) {
31236
- var re = b === "y" ? "top" : bF, ie = b === "y" ? vF : yF, ae = b === "y" ? "height" : "width", E = S[b], D = E + g[re], O = E - g[ie], oe = p ? -w[ae] / 2 : 0, k = v === "start" ? C[ae] : w[ae], se = v === "start" ? -w[ae] : -C[ae], A = t.elements.arrow, ce = p && A ? KF(A) : {
31236
+ var ne = b === "y" ? "top" : bF, re = b === "y" ? vF : yF, ie = b === "y" ? "height" : "width", D = S[b], O = D + g[ne], ae = D - g[re], oe = p ? -w[ie] / 2 : 0, k = v === "start" ? C[ie] : w[ie], se = v === "start" ? -w[ie] : -C[ie], A = t.elements.arrow, ce = p && A ? KF(A) : {
31237
31237
  width: 0,
31238
31238
  height: 0
31239
- }, le = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : iI(), ue = le[re], j = le[ie], de = nI(0, C[ae], ce[ae]), fe = y ? C[ae] / 2 - oe - de - ue - T.mainAxis : k - de - ue - T.mainAxis, pe = y ? -C[ae] / 2 + oe + de + j + T.mainAxis : se + de + j + T.mainAxis, me = t.elements.arrow && eI(t.elements.arrow), he = me ? b === "y" ? me.clientTop || 0 : me.clientLeft || 0 : 0, ge = te?.[b] ?? 0, _e = E + fe - ge - he, ve = E + pe - ge, ye = nI(p ? VF(D, _e) : D, E, p ? BF(O, ve) : O);
31240
- S[b] = ye, ne[b] = ye - E;
31239
+ }, le = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : iI(), ue = le[ne], j = le[re], de = nI(0, C[ie], ce[ie]), fe = y ? C[ie] / 2 - oe - de - ue - T.mainAxis : k - de - ue - T.mainAxis, pe = y ? -C[ie] / 2 + oe + de + j + T.mainAxis : se + de + j + T.mainAxis, me = t.elements.arrow && eI(t.elements.arrow), he = me ? b === "y" ? me.clientTop || 0 : me.clientLeft || 0 : 0, ge = te?.[b] ?? 0, _e = D + fe - ge - he, ve = D + pe - ge, ye = nI(p ? VF(O, _e) : O, D, p ? BF(ae, ve) : ae);
31240
+ S[b] = ye, E[b] = ye - D;
31241
31241
  }
31242
31242
  if (s) {
31243
31243
  var be = b === "x" ? "top" : bF, xe = b === "x" ? vF : yF, Se = S[x], Ce = x === "y" ? "height" : "width", M = Se + g[be], we = Se - g[xe], Te = ["top", bF].indexOf(_) !== -1, Ee = te?.[x] ?? 0, De = Te ? M : Se - C[Ce] - w[Ce] - Ee + T.altAxis, Oe = Te ? Se + C[Ce] + w[Ce] - Ee - T.altAxis : we, ke = p && Te ? rI(De, Se, Oe) : nI(p ? De : M, Se, p ? Oe : we);
31244
- S[x] = ke, ne[x] = ke - Se;
31244
+ S[x] = ke, E[x] = ke - Se;
31245
31245
  }
31246
- t.modifiersData[r] = ne;
31246
+ t.modifiersData[r] = E;
31247
31247
  }
31248
31248
  }
31249
31249
  var $I = {
@@ -31538,10 +31538,10 @@ var gL = (e) => {
31538
31538
  ]);
31539
31539
  let T = { placement: S };
31540
31540
  p !== null && (T.TransitionProps = p);
31541
- let te = gL(e), ne = f.root ?? "div";
31542
- return /*#__PURE__*/ P(ne, {
31541
+ let te = gL(e), E = f.root ?? "div";
31542
+ return /*#__PURE__*/ P(E, {
31543
31543
  ...xe({
31544
- elementType: ne,
31544
+ elementType: E,
31545
31545
  externalSlotProps: d.root,
31546
31546
  externalForwardedProps: h,
31547
31547
  additionalProps: {
@@ -32221,14 +32221,14 @@ var GL = (e) => {
32221
32221
  width: "24px",
32222
32222
  height: "24px"
32223
32223
  },
32224
- "&:hover": { color: D.text() },
32225
- "&:focus": { outline: `2px solid ${D.buttonFocusOutline()}` }
32224
+ "&:hover": { color: O.text() },
32225
+ "&:focus": { outline: `2px solid ${O.buttonFocusOutline()}` }
32226
32226
  },
32227
- "& .active": { color: D.text() },
32227
+ "& .active": { color: O.text() },
32228
32228
  "& .disabled": {
32229
32229
  opacity: .7,
32230
32230
  cursor: "not-allowed",
32231
- "& :hover": { color: D.disabled() }
32231
+ "& :hover": { color: O.disabled() }
32232
32232
  },
32233
32233
  "& .isActive": {
32234
32234
  background: "var(--purple)",
@@ -32333,22 +32333,22 @@ var GL = (e) => {
32333
32333
  tableLayout: "fixed",
32334
32334
  width: "100%",
32335
32335
  borderCollapse: "collapse",
32336
- color: D.text(),
32337
- backgroundColor: D.background()
32336
+ color: O.text(),
32337
+ backgroundColor: O.background()
32338
32338
  },
32339
- "& table:not([border=\"1\"]) tr": { borderTop: `1px solid ${D.tableGridLight()}` },
32339
+ "& table:not([border=\"1\"]) tr": { borderTop: `1px solid ${O.tableGridLight()}` },
32340
32340
  "& td, th": {
32341
32341
  padding: ".6em 1em",
32342
32342
  textAlign: "center"
32343
32343
  },
32344
- "& table:not([border=\"1\"]) td, th": { border: `1px solid ${D.tableGridLight()}` },
32344
+ "& table:not([border=\"1\"]) td, th": { border: `1px solid ${O.tableGridLight()}` },
32345
32345
  ...n && { border: `2px solid ${e.palette.error.main} !important` }
32346
32346
  })), JL = M("div", { shouldForwardProp: (e) => !["disableScrollbar", "highlightShape"].includes(e) })(({ theme: e, disableScrollbar: t, highlightShape: n }) => ({
32347
32347
  position: "relative",
32348
32348
  padding: "0px",
32349
32349
  overflowY: "auto",
32350
- color: D.text(),
32351
- backgroundColor: n ? e.palette.action.selected : D.background(),
32350
+ color: O.text(),
32351
+ backgroundColor: n ? e.palette.action.selected : O.background(),
32352
32352
  ...t && {
32353
32353
  "&::-webkit-scrollbar": { display: "none" },
32354
32354
  scrollbarWidth: "none",
@@ -33685,9 +33685,9 @@ var yB = (e, t, n, r = {}) => ({ editor: i, tr: a, state: o, dispatch: s, chain:
33685
33685
  node: w,
33686
33686
  pos: 0,
33687
33687
  depth: 0
33688
- } : null, T = x ?? ee, te = !!x && y.depth >= 1 && y.depth - x.depth <= 1, ne = !!ee;
33689
- if ((te || ne) && T) {
33690
- if (T.node.type === p) return S && ne ? c().command(({ tr: e, dispatch: t }) => {
33688
+ } : null, T = x ?? ee, te = !!x && y.depth >= 1 && y.depth - x.depth <= 1, E = !!ee;
33689
+ if ((te || E) && T) {
33690
+ if (T.node.type === p) return S && E ? c().command(({ tr: e, dispatch: t }) => {
33691
33691
  let n = vB(e);
33692
33692
  return n ? (e.setSelection(n), t && t(e), !0) : !1;
33693
33693
  }).liftListItem(m).run() : l.liftListItem(m);
@@ -38313,8 +38313,8 @@ Ym.create({
38313
38313
  })) ?? null };
38314
38314
  }
38315
38315
  });
38316
- var cK = "placeholder", lK = new ea("tiptap__placeholder"), uK = 200;
38317
- function dK(e) {
38316
+ var cK = "placeholder", lK = new ea("tiptap__placeholder");
38317
+ function uK(e) {
38318
38318
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
38319
38319
  return o && u.push(l), Zu.node(i, i + a.nodeSize, {
38320
38320
  class: u.join(" "),
@@ -38326,156 +38326,198 @@ function dK(e) {
38326
38326
  }) : n
38327
38327
  });
38328
38328
  }
38329
- function fK({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
38329
+ function dK(e, t) {
38330
+ return typeof e == "function" ? e(t) : e;
38331
+ }
38332
+ function fK({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
38333
+ let { anchor: s } = i, c = [], l = e.isEmpty;
38334
+ return r.nodesBetween(a, o, (r, i) => {
38335
+ let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && rm(r);
38336
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(uK({
38337
+ editor: e,
38338
+ isEmptyDoc: l,
38339
+ dataAttribute: n,
38340
+ hasAnchor: a,
38341
+ placeholder: t.placeholder,
38342
+ classes: {
38343
+ emptyEditor: t.emptyEditorClass,
38344
+ emptyNode: dK(t.emptyNodeClass, {
38345
+ editor: e,
38346
+ node: r,
38347
+ pos: i,
38348
+ hasAnchor: a
38349
+ })
38350
+ },
38351
+ node: r,
38352
+ pos: i
38353
+ })), t.includeChildren;
38354
+ }), c;
38355
+ }
38356
+ function pK({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
38330
38357
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
38331
- let { anchor: a } = i, o = [], s = e.isEmpty, c = {
38332
- emptyEditor: t.emptyEditorClass,
38333
- emptyNode: t.emptyNodeClass
38334
- };
38358
+ let { anchor: a } = i, o = [], s = e.isEmpty;
38335
38359
  if (t.showOnlyCurrent && !t.includeChildren) {
38336
- let i = r.resolve(a), l = i.depth > 0 ? i.node(1) : i.nodeAfter, u = i.depth > 0 ? i.before(1) : a;
38337
- if (l && l.type.isTextblock && rm(l)) {
38338
- let r = a >= u && a <= u + l.nodeSize;
38339
- o.push(dK({
38360
+ let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
38361
+ if (c && c.type.isTextblock && rm(c)) {
38362
+ let r = a >= l && a <= l + c.nodeSize;
38363
+ o.push(uK({
38340
38364
  editor: e,
38341
38365
  isEmptyDoc: s,
38342
38366
  dataAttribute: n,
38343
38367
  hasAnchor: r,
38344
38368
  placeholder: t.placeholder,
38345
- classes: c,
38346
- node: l,
38347
- pos: u
38369
+ classes: {
38370
+ emptyEditor: t.emptyEditorClass,
38371
+ emptyNode: dK(t.emptyNodeClass, {
38372
+ editor: e,
38373
+ node: c,
38374
+ pos: l,
38375
+ hasAnchor: r
38376
+ })
38377
+ },
38378
+ node: c,
38379
+ pos: l
38348
38380
  }));
38349
38381
  }
38350
- } else {
38351
- let i = lK.getState(e.state), l = i?.topPos ?? 0, u = i?.bottomPos ?? r.content.size;
38352
- r.nodesBetween(l, u, (r, i) => {
38353
- let l = a >= i && a <= i + r.nodeSize, u = !r.isLeaf && rm(r);
38354
- return r.type.isTextblock && (l || !t.showOnlyCurrent) && u && o.push(dK({
38355
- editor: e,
38356
- isEmptyDoc: s,
38357
- dataAttribute: n,
38358
- hasAnchor: l,
38359
- placeholder: t.placeholder,
38360
- classes: c,
38361
- node: r,
38362
- pos: i
38363
- })), t.includeChildren;
38364
- });
38365
- }
38382
+ } else o.push(...fK({
38383
+ editor: e,
38384
+ options: t,
38385
+ dataAttribute: n,
38386
+ doc: r,
38387
+ selection: i,
38388
+ from: 0,
38389
+ to: r.content.size
38390
+ }));
38366
38391
  return ed.create(r, o);
38367
38392
  }
38368
- function pK(e) {
38369
- return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
38393
+ function mK(e, t) {
38394
+ let n = e.resolve(t);
38395
+ if (n.depth === 0) {
38396
+ let e = n.nodeAfter ?? n.nodeBefore;
38397
+ if (!e) return {
38398
+ from: t,
38399
+ to: t
38400
+ };
38401
+ let r = n.nodeAfter ? t : t - e.nodeSize;
38402
+ return {
38403
+ from: r,
38404
+ to: r + e.nodeSize
38405
+ };
38406
+ }
38407
+ let r = n.before(1);
38408
+ return {
38409
+ from: r,
38410
+ to: r + n.node(1).nodeSize
38411
+ };
38370
38412
  }
38371
- function mK(e) {
38372
- let t = getComputedStyle(e), n = `${t.overflow} ${t.overflowY} ${t.overflowX}`;
38373
- return /auto|scroll|overlay/.test(n);
38413
+ function hK(e, t) {
38414
+ return {
38415
+ from: Math.max(0, t.from - 1),
38416
+ to: Math.min(e.content.size, t.to - 1)
38417
+ };
38374
38418
  }
38375
- function hK(e) {
38376
- let t = e;
38377
- for (; t;) {
38378
- if (mK(t)) return t;
38379
- let e = t.parentElement;
38380
- if (!e) {
38381
- let e = t.getRootNode();
38382
- if (e instanceof ShadowRoot) {
38383
- t = e.host;
38384
- continue;
38385
- }
38386
- return window;
38387
- }
38388
- t = e;
38419
+ function gK(e, t, n) {
38420
+ let r = [];
38421
+ return e.forEach((e, i) => {
38422
+ let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
38423
+ s < n && c > t && r.push({
38424
+ from: a,
38425
+ to: o
38426
+ });
38427
+ }), r;
38428
+ }
38429
+ function _K(e) {
38430
+ if (e.length === 0) return [];
38431
+ let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
38432
+ for (let e = 1; e < t.length; e += 1) {
38433
+ let r = n[n.length - 1], i = t[e];
38434
+ i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
38389
38435
  }
38390
- return window;
38436
+ return n;
38391
38437
  }
38392
- function gK(e) {
38393
- return e === window ? {
38394
- top: 0,
38395
- bottom: window.innerHeight
38396
- } : e.getBoundingClientRect();
38438
+ function vK(e, t) {
38439
+ let n = gK(e, t.from, t.to);
38440
+ return n.push(hK(e, mK(e, t.from))), t.to > t.from ? n.push(hK(e, mK(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(hK(e, mK(e, Math.min(t.from + 1, e.content.size)))), n;
38397
38441
  }
38398
- function _K({ doc: e, view: t, scrollContainer: n }) {
38399
- let r = t.dom.getBoundingClientRect(), i = n ? gK(n) : {
38400
- top: 0,
38401
- bottom: window.innerHeight
38402
- }, a = Math.max(r.top, i.top) - uK, o = Math.min(r.bottom, i.bottom) + uK;
38403
- if (a >= o) return {
38404
- top: 0,
38405
- bottom: e.content.size
38406
- };
38407
- let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
38408
- left: s,
38409
- top: a + 2
38410
- }), l = t.posAtCoords({
38411
- left: s,
38412
- top: o - 2
38413
- });
38414
- return {
38415
- top: c ? c.pos : 0,
38416
- bottom: l ? l.pos : e.content.size
38417
- };
38442
+ function yK(e, t, n) {
38443
+ let r = [];
38444
+ if (e.docChanged) {
38445
+ let t = Kp(e);
38446
+ for (let e of t) r.push(...vK(n.doc, e.newRange));
38447
+ }
38448
+ return e.selectionSet && (r.push(hK(n.doc, mK(n.doc, e.mapping.map(t.selection.anchor)))), r.push(hK(n.doc, mK(n.doc, n.selection.anchor)))), _K(r);
38418
38449
  }
38419
- var vK = {
38420
- init() {
38421
- return {
38422
- topPos: null,
38423
- bottomPos: null
38424
- };
38425
- },
38426
- apply(e, t) {
38427
- let n = e.getMeta(lK);
38428
- return n?.positions ? {
38429
- topPos: n.positions.top,
38430
- bottomPos: n.positions.bottom
38431
- } : e.docChanged ? {
38432
- topPos: t.topPos === null ? null : e.mapping.map(t.topPos),
38433
- bottomPos: t.bottomPos === null ? null : e.mapping.map(t.bottomPos)
38434
- } : t;
38450
+ function bK(e, t, n) {
38451
+ let r = Math.max(0, Math.min(e, n.content.size));
38452
+ return {
38453
+ from: r,
38454
+ to: Math.max(r, Math.min(t, n.content.size))
38455
+ };
38456
+ }
38457
+ function xK({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
38458
+ let s = e;
38459
+ for (let e of t) {
38460
+ let { from: t, to: c } = bK(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
38461
+ l.length && (s = s.remove(l));
38462
+ let u = fK({
38463
+ editor: n,
38464
+ options: r,
38465
+ dataAttribute: i,
38466
+ doc: a,
38467
+ selection: o,
38468
+ from: t,
38469
+ to: c
38470
+ });
38471
+ u.length && (s = s.add(a, u));
38435
38472
  }
38436
- };
38437
- function yK(e) {
38438
- let t = hK(e.dom), n = () => {
38439
- let n = _K({
38440
- view: e,
38441
- doc: e.state.doc,
38442
- scrollContainer: t
38443
- }), r = lK.getState(e.state);
38444
- if (r?.topPos === n.top && r?.bottomPos === n.bottom) return;
38445
- let i = e.state.tr.setMeta(lK, { positions: n });
38446
- e.dispatch(i);
38447
- }, r = null, i = 0, a = () => {
38448
- r === null && (r = requestAnimationFrame(() => {
38449
- r = null;
38450
- let e = performance.now();
38451
- e - i >= 150 ? (i = e, n()) : a();
38452
- }));
38453
- };
38454
- return t.addEventListener("scroll", a, { passive: !0 }), n(), {
38455
- update(t, n) {
38456
- e.state.doc.content.size !== n.doc.content.size && a();
38473
+ return s;
38474
+ }
38475
+ function SK({ editor: e, options: t, dataAttribute: n }) {
38476
+ return {
38477
+ init(r, i) {
38478
+ return pK({
38479
+ editor: e,
38480
+ options: t,
38481
+ dataAttribute: n,
38482
+ doc: i.doc,
38483
+ selection: i.selection
38484
+ }) ?? ed.empty;
38457
38485
  },
38458
- destroy: () => {
38459
- r !== null && cancelAnimationFrame(r), t.removeEventListener("scroll", a);
38486
+ apply(r, i, a, o) {
38487
+ return !r.docChanged && !r.selectionSet ? i : xK({
38488
+ decorations: i.map(r.mapping, r.doc),
38489
+ ranges: yK(r, a, o),
38490
+ editor: e,
38491
+ options: t,
38492
+ dataAttribute: n,
38493
+ doc: o.doc,
38494
+ selection: o.selection
38495
+ });
38460
38496
  }
38461
38497
  };
38462
38498
  }
38463
- function bK({ editor: e, options: t }) {
38464
- let n = t.dataAttribute ? `data-${pK(t.dataAttribute)}` : `data-${cK}`;
38499
+ function CK(e) {
38500
+ return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
38501
+ }
38502
+ function wK({ editor: e, options: t }) {
38503
+ let n = t.dataAttribute ? `data-${CK(t.dataAttribute)}` : `data-${cK}`, r = t.showOnlyCurrent && !t.includeChildren;
38465
38504
  return new V({
38466
38505
  key: lK,
38467
- state: vK,
38468
- view: yK,
38469
- props: { decorations: ({ doc: r, selection: i }) => fK({
38506
+ ...r ? {} : { state: SK({
38507
+ editor: e,
38508
+ options: t,
38509
+ dataAttribute: n
38510
+ }) },
38511
+ props: { decorations: r ? ({ doc: r, selection: i }) => pK({
38470
38512
  editor: e,
38471
38513
  options: t,
38472
38514
  dataAttribute: n,
38473
38515
  doc: r,
38474
38516
  selection: i
38475
- }) }
38517
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? ed.empty : lK.getState(n) ?? ed.empty }
38476
38518
  });
38477
38519
  }
38478
- var xK = Ym.create({
38520
+ var TK = Ym.create({
38479
38521
  name: "placeholder",
38480
38522
  addOptions() {
38481
38523
  return {
@@ -38489,12 +38531,25 @@ var xK = Ym.create({
38489
38531
  };
38490
38532
  },
38491
38533
  addProseMirrorPlugins() {
38492
- return [bK({
38534
+ return [wK({
38493
38535
  editor: this.editor,
38494
38536
  options: this.options
38495
38537
  })];
38496
38538
  }
38497
38539
  });
38540
+ function EK(e, t) {
38541
+ return !e.selection.empty && !im(e.selection) && t.isEditable;
38542
+ }
38543
+ function DK(e, t) {
38544
+ return EK(e, t) && !t.isFocused && !t.view.dragging;
38545
+ }
38546
+ function OK() {
38547
+ var e;
38548
+ (e = window.getSelection()) == null || e.removeAllRanges();
38549
+ }
38550
+ function kK(e) {
38551
+ e.focus();
38552
+ }
38498
38553
  Ym.create({
38499
38554
  name: "selection",
38500
38555
  addOptions() {
@@ -38504,13 +38559,25 @@ Ym.create({
38504
38559
  let { editor: e, options: t } = this;
38505
38560
  return [new V({
38506
38561
  key: new ea("selection"),
38507
- props: { decorations(n) {
38508
- return n.selection.empty || e.isFocused || !e.isEditable || im(n.selection) || e.view.dragging ? null : ed.create(n.doc, [Zu.inline(n.selection.from, n.selection.to, { class: t.className })]);
38509
- } }
38562
+ props: {
38563
+ decorations(n) {
38564
+ return DK(n, e) ? ed.create(n.doc, [Zu.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
38565
+ },
38566
+ handleDOMEvents: {
38567
+ blur(t) {
38568
+ return EK(t.state, e) && OK(), !1;
38569
+ },
38570
+ focus(t) {
38571
+ return EK(t.state, e) && requestAnimationFrame(() => {
38572
+ !e.isDestroyed && t.hasFocus() && kK(t);
38573
+ }), !1;
38574
+ }
38575
+ }
38576
+ }
38510
38577
  })];
38511
38578
  }
38512
38579
  });
38513
- function SK({ types: e, node: t }) {
38580
+ function AK({ types: e, node: t }) {
38514
38581
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
38515
38582
  }
38516
38583
  Ym.create({
@@ -38532,7 +38599,7 @@ Ym.create({
38532
38599
  state: {
38533
38600
  init: (e, t) => {
38534
38601
  let r = t.tr.doc.lastChild;
38535
- return !SK({
38602
+ return !AK({
38536
38603
  node: r,
38537
38604
  types: n
38538
38605
  });
@@ -38540,7 +38607,7 @@ Ym.create({
38540
38607
  apply: (e, t) => {
38541
38608
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
38542
38609
  let r = e.doc.lastChild;
38543
- return !SK({
38610
+ return !AK({
38544
38611
  node: r,
38545
38612
  types: n
38546
38613
  });
@@ -38575,7 +38642,7 @@ Ym.create({
38575
38642
  };
38576
38643
  }
38577
38644
  });
38578
- var CK = Vm.create({
38645
+ var jK = Vm.create({
38579
38646
  name: "superscript",
38580
38647
  addOptions() {
38581
38648
  return { HTMLAttributes: {} };
@@ -38605,7 +38672,7 @@ var CK = Vm.create({
38605
38672
  addKeyboardShortcuts() {
38606
38673
  return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
38607
38674
  }
38608
- }), wK = Vm.create({
38675
+ }), MK = Vm.create({
38609
38676
  name: "subscript",
38610
38677
  addOptions() {
38611
38678
  return { HTMLAttributes: {} };
@@ -38635,7 +38702,7 @@ var CK = Vm.create({
38635
38702
  addKeyboardShortcuts() {
38636
38703
  return { "Mod-,": () => this.editor.commands.toggleSubscript() };
38637
38704
  }
38638
- }), TK = Ym.create({
38705
+ }), NK = Ym.create({
38639
38706
  name: "textAlign",
38640
38707
  addOptions() {
38641
38708
  return {
@@ -38677,7 +38744,7 @@ var CK = Vm.create({
38677
38744
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
38678
38745
  };
38679
38746
  }
38680
- }), EK = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, DK = Th.create({
38747
+ }), PK = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, FK = Th.create({
38681
38748
  name: "image",
38682
38749
  addOptions() {
38683
38750
  return {
@@ -38720,34 +38787,55 @@ var CK = Vm.create({
38720
38787
  },
38721
38788
  addNodeView() {
38722
38789
  if (!this.options.resize || !this.options.resize.enabled || typeof document > "u") return null;
38723
- let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize;
38724
- return ({ node: i, getPos: a, HTMLAttributes: o, editor: s }) => {
38725
- let c = document.createElement("img");
38726
- Object.entries(o).forEach(([e, t]) => {
38790
+ let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize, i = /* @__PURE__ */ new Set([
38791
+ "src",
38792
+ "width",
38793
+ "height"
38794
+ ]);
38795
+ return ({ node: a, getPos: o, HTMLAttributes: s, editor: c }) => {
38796
+ let l = document.createElement("img");
38797
+ l.draggable = !1;
38798
+ let u = kp(this.options.HTMLAttributes, s);
38799
+ Object.entries(u).forEach(([e, t]) => {
38727
38800
  if (t != null) switch (e) {
38801
+ case "src":
38728
38802
  case "width":
38729
38803
  case "height": break;
38730
- default:
38731
- c.setAttribute(e, t);
38732
- break;
38804
+ default: l.setAttribute(e, t);
38733
38805
  }
38734
- }), c.src = o.src;
38735
- let l = new mh({
38736
- element: c,
38737
- editor: s,
38738
- node: i,
38739
- getPos: a,
38806
+ }), u.src !== null && (l.src = u.src);
38807
+ let d = { ...s }, f = (e) => {
38808
+ if (typeof e == "string" && e !== "") {
38809
+ l.getAttribute("src") !== e && (l.src = e);
38810
+ return;
38811
+ }
38812
+ l.hasAttribute("src") && l.removeAttribute("src"), l.src !== "" && (l.src = "");
38813
+ };
38814
+ f(s.src);
38815
+ let p = new mh({
38816
+ element: l,
38817
+ editor: c,
38818
+ node: a,
38819
+ getPos: o,
38740
38820
  onResize: (e, t) => {
38741
- c.style.width = `${e}px`, c.style.height = `${t}px`;
38821
+ l.style.width = `${e}px`, l.style.height = `${t}px`;
38742
38822
  },
38743
38823
  onCommit: (e, t) => {
38744
- let n = a();
38824
+ let n = o();
38745
38825
  n !== void 0 && this.editor.chain().setNodeSelection(n).updateAttributes(this.name, {
38746
38826
  width: e,
38747
38827
  height: t
38748
38828
  }).run();
38749
38829
  },
38750
- onUpdate: (e, t, n) => e.type === i.type,
38830
+ onUpdate: (e) => {
38831
+ if (e.type !== a.type) return !1;
38832
+ let t = Ap(e, c.extensionManager.attributes.filter((t) => t.type === e.type.name));
38833
+ return Object.keys(d).forEach((e) => {
38834
+ !i.has(e) && !(e in t) && l.removeAttribute(e);
38835
+ }), Object.entries(t).forEach(([e, t]) => {
38836
+ i.has(e) || (t == null ? l.removeAttribute(e) : l.setAttribute(e, t));
38837
+ }), f(t.src), d = t, !0;
38838
+ },
38751
38839
  options: {
38752
38840
  directions: e,
38753
38841
  min: {
@@ -38756,10 +38844,10 @@ var CK = Vm.create({
38756
38844
  },
38757
38845
  preserveAspectRatio: r === !0
38758
38846
  }
38759
- }), u = l.dom;
38760
- return u.style.visibility = "hidden", u.style.pointerEvents = "none", c.onload = () => {
38761
- u.style.visibility = "", u.style.pointerEvents = "";
38762
- }, l;
38847
+ }), m = p.dom, h = () => {
38848
+ m.style.visibility = "", m.style.pointerEvents = "";
38849
+ };
38850
+ return m.style.visibility = "hidden", m.style.pointerEvents = "none", l.complete && l.naturalWidth > 0 ? h() : (l.onload = h, l.onerror = h), p;
38763
38851
  };
38764
38852
  },
38765
38853
  addCommands() {
@@ -38770,7 +38858,7 @@ var CK = Vm.create({
38770
38858
  },
38771
38859
  addInputRules() {
38772
38860
  return [dh({
38773
- find: EK,
38861
+ find: PK,
38774
38862
  type: this.type,
38775
38863
  getAttributes: (e) => {
38776
38864
  let [, , t, n, r] = e;
@@ -38782,17 +38870,17 @@ var CK = Vm.create({
38782
38870
  }
38783
38871
  })];
38784
38872
  }
38785
- }), OK = xK, kK = {
38873
+ }), IK = TK, LK = {
38786
38874
  position: "bottom",
38787
38875
  alignment: "left",
38788
38876
  alwaysVisible: !1,
38789
38877
  showDone: !0,
38790
38878
  doneOn: "blur"
38791
- }, AK = {
38879
+ }, RK = {
38792
38880
  options: {},
38793
38881
  respAreaToolbar: () => {},
38794
38882
  onHandleAreaChange: () => {}
38795
- }, jK = [
38883
+ }, zK = [
38796
38884
  "bold",
38797
38885
  "italic",
38798
38886
  "underline",
@@ -38814,7 +38902,7 @@ var CK = Vm.create({
38814
38902
  "h3",
38815
38903
  "undo",
38816
38904
  "redo"
38817
- ], MK = {
38905
+ ], BK = {
38818
38906
  "--white": "#fff",
38819
38907
  "--black": "#2e2b29",
38820
38908
  "--black-contrast": "#110f0e",
@@ -38833,14 +38921,18 @@ var CK = Vm.create({
38833
38921
  "--red": "#ff5c33",
38834
38922
  "--red-light": "#ffebe5",
38835
38923
  "--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
38836
- }, NK = (e) => {
38924
+ }, VK = (e) => ({
38925
+ spellcheck: e ? "true" : "false",
38926
+ autocorrect: e ? "on" : "off",
38927
+ autocapitalize: e ? "on" : "off"
38928
+ }), HK = (e) => {
38837
38929
  let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = Dt([]), [a, o] = Dt(!1), { toolbarOpts: s } = e, c = bt((e) => {
38838
38930
  i((t) => {
38839
38931
  let n = t.filter((t) => t.pos !== e);
38840
38932
  return n.length === 0 && o(!1), n;
38841
38933
  });
38842
38934
  }, [i]), l = {
38843
- ...kK,
38935
+ ...LK,
38844
38936
  ...s
38845
38937
  }, u = bt((t) => {
38846
38938
  let n = t.getHTML();
@@ -38851,13 +38943,13 @@ var CK = Vm.create({
38851
38943
  e.onDone,
38852
38944
  l.doneOn
38853
38945
  ]), d = Tt(() => ({
38854
- ...AK,
38946
+ ...RK,
38855
38947
  ...e.responseAreaProps,
38856
38948
  onInlineDropdownToolbarClose: u
38857
38949
  }), [e.responseAreaProps, u]), f = Tt(() => {
38858
38950
  let { customPlugins: t, ...n } = e.pluginProps || {};
38859
38951
  t ||= [];
38860
- let r = (e.activePlugins || jK)?.filter((e) => {
38952
+ let r = (e.activePlugins || zK)?.filter((e) => {
38861
38953
  let t = Wt[e] || e, r = n[t] || {};
38862
38954
  return !r || !r.disabled;
38863
38955
  });
@@ -38875,103 +38967,112 @@ var CK = Vm.create({
38875
38967
  setKeypadInteraction: {},
38876
38968
  media: {}
38877
38969
  });
38878
- }, [e, d.type]), p = LC({
38879
- extensions: [
38880
- TK.configure({
38881
- types: [
38882
- "heading",
38883
- "paragraph",
38884
- "div",
38885
- "headingParagraph",
38886
- "h1",
38887
- "h2",
38888
- "h3",
38889
- "h4",
38890
- "h5",
38891
- "h6",
38892
- "td",
38893
- "th"
38894
- ],
38895
- alignments: [
38896
- "left",
38897
- "right",
38898
- "center",
38899
- "justify"
38900
- ]
38901
- }),
38902
- oK,
38903
- sK.configure({ limit: e.charactersLimit || 1e6 }),
38904
- XG.configure({ trailingNode: {
38970
+ }, [e, d.type]), p = [
38971
+ NK.configure({
38972
+ types: [
38973
+ "heading",
38974
+ "paragraph",
38975
+ "div",
38976
+ "headingParagraph",
38977
+ "h1",
38978
+ "h2",
38979
+ "h3",
38980
+ "h4",
38981
+ "h5",
38982
+ "h6",
38983
+ "td",
38984
+ "th"
38985
+ ],
38986
+ alignments: [
38987
+ "left",
38988
+ "right",
38989
+ "center",
38990
+ "justify"
38991
+ ]
38992
+ }),
38993
+ oK,
38994
+ sK.configure({ limit: e.charactersLimit || 1e6 }),
38995
+ XG.configure({
38996
+ trailingNode: {
38905
38997
  node: "paragraph",
38906
38998
  notAfter: ["paragraph", "div"]
38907
- } }),
38908
- ZP,
38909
- rS,
38910
- QP,
38911
- iS,
38912
- aS,
38913
- OK.configure({
38914
- placeholder: e.placeholder,
38915
- showOnlyWhenEditable: !0,
38916
- showOnlyCurrent: !1,
38917
- includeChildren: !0
38918
- }),
38919
- $x,
38920
- Lx,
38921
- nS,
38922
- tS,
38923
- yk.configure(d),
38924
- bk.configure(d),
38925
- Sk.configure(d),
38926
- Ck.configure(d),
38927
- xk.configure(d),
38928
- Rj.configure({
38929
- toolbarOpts: l,
38930
- math: e.pluginProps?.math || {}
38931
- }),
38932
- wK,
38933
- CK,
38934
- DK,
38935
- XM.configure({
38936
- toolbarOpts: l,
38937
- imageHandling: {
38938
- disableImageAlignmentButtons: e.disableImageAlignmentButtons,
38939
- onDone: (t) => e.onDone?.(t.getHTML()),
38940
- onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
38941
- let { src: n } = t.attrs;
38942
- e.imageSupport.delete(n, (e) => {
38943
- c(t.pos);
38944
- });
38945
- }),
38946
- insertImageRequested: e.imageSupport && ((t, n, r) => {
38947
- let [o, s] = n, l = (n) => {
38948
- let r;
38949
- a && n && (r = e.onChange), c(s), r?.(t.getHTML());
38950
- };
38951
- t._insertingImage = !0, i((e) => [...e, o]), (() => {
38952
- let n = r(l), i = tt(() => {
38953
- let e = () => window.removeEventListener("focus", i);
38954
- if (!t._insertingImage) {
38955
- e();
38956
- return;
38957
- }
38958
- c(s), t._insertingImage = !1, e();
38959
- }, 500);
38960
- window.addEventListener("focus", i), e.imageSupport.add(n);
38961
- })();
38962
- }),
38963
- maxImageWidth: e.maxImageWidth,
38964
- maxImageHeight: e.maxImageHeight
38965
- },
38966
- limit: 3
38967
- }),
38968
- $N.configure({ uploadSoundSupport: e.uploadSoundSupport }),
38969
- gP.configure({ extraCSSRules: e.extraCSSRules })
38970
- ],
38999
+ },
39000
+ link: {
39001
+ autolink: !1,
39002
+ linkOnPaste: !1
39003
+ }
39004
+ }),
39005
+ ZP,
39006
+ rS,
39007
+ QP,
39008
+ iS,
39009
+ aS,
39010
+ IK.configure({
39011
+ placeholder: e.placeholder,
39012
+ showOnlyWhenEditable: !0,
39013
+ showOnlyCurrent: !1,
39014
+ includeChildren: !0
39015
+ }),
39016
+ $x,
39017
+ Lx,
39018
+ nS,
39019
+ tS,
39020
+ yk.configure(d),
39021
+ bk.configure(d),
39022
+ Sk.configure(d),
39023
+ Ck.configure(d),
39024
+ xk.configure(d),
39025
+ Rj.configure({
39026
+ toolbarOpts: l,
39027
+ math: e.pluginProps?.math || {}
39028
+ }),
39029
+ MK,
39030
+ jK,
39031
+ FK,
39032
+ XM.configure({
39033
+ toolbarOpts: l,
39034
+ imageHandling: {
39035
+ disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39036
+ onDone: (t) => e.onDone?.(t.getHTML()),
39037
+ onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39038
+ let { src: n } = t.attrs;
39039
+ e.imageSupport.delete(n, (e) => {
39040
+ c(t.pos);
39041
+ });
39042
+ }),
39043
+ insertImageRequested: e.imageSupport && ((t, n, r) => {
39044
+ let [o, s] = n, l = (n) => {
39045
+ let r;
39046
+ a && n && (r = e.onChange), c(s), r?.(t.getHTML());
39047
+ };
39048
+ t._insertingImage = !0, i((e) => [...e, o]), (() => {
39049
+ let n = r(l), i = tt(() => {
39050
+ let e = () => window.removeEventListener("focus", i);
39051
+ if (!t._insertingImage) {
39052
+ e();
39053
+ return;
39054
+ }
39055
+ c(s), t._insertingImage = !1, e();
39056
+ }, 500);
39057
+ window.addEventListener("focus", i), e.imageSupport.add(n);
39058
+ })();
39059
+ }),
39060
+ maxImageWidth: e.maxImageWidth,
39061
+ maxImageHeight: e.maxImageHeight
39062
+ },
39063
+ limit: 3
39064
+ }),
39065
+ $N.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39066
+ gP.configure({ extraCSSRules: e.extraCSSRules })
39067
+ ], m = e.spellCheck !== !1, h = LC({
39068
+ extensions: p,
38971
39069
  immediatelyRender: !1,
38972
- editorProps: { handleKeyDown(t, n) {
38973
- return e.onKeyDown ? e.onKeyDown(n) : !1;
38974
- } },
39070
+ editorProps: {
39071
+ attributes: VK(m),
39072
+ handleKeyDown(t, n) {
39073
+ return e.onKeyDown ? e.onKeyDown(n) : !1;
39074
+ }
39075
+ },
38975
39076
  editable: !e.disabled,
38976
39077
  content: Yt(e.markup),
38977
39078
  onUpdate: ({ editor: t, transaction: n }) => {
@@ -38982,22 +39083,29 @@ var CK = Vm.create({
38982
39083
  }
38983
39084
  }, [e.charactersLimit]);
38984
39085
  Ct(() => {
38985
- e.editorRef && e.editorRef(p);
38986
- }, [e.editorRef, p]), Ct(() => {
38987
- p?.setEditable(!e.disabled);
38988
- }, [e.disabled, p]), Ct(() => {
38989
- if (!p) return;
39086
+ e.editorRef && e.editorRef(h);
39087
+ }, [e.editorRef, h]), Ct(() => {
39088
+ h?.setEditable(!e.disabled);
39089
+ }, [e.disabled, h]), Ct(() => {
39090
+ if (!h) return;
39091
+ let e = h.options?.editorProps, t = VK(m);
39092
+ e?.attributes?.spellcheck !== t.spellcheck && h.setOptions({ editorProps: {
39093
+ ...e,
39094
+ attributes: t
39095
+ } });
39096
+ }, [m, h]), Ct(() => {
39097
+ if (!h) return;
38990
39098
  let t = Yt(e.markup);
38991
- t !== p.getHTML() && p.commands.setContent(t, { emitUpdate: !1 });
38992
- }, [e.markup, p]), Ct(() => {
38993
- Object.entries(MK).forEach(([e, t]) => {
39099
+ t !== h.getHTML() && h.commands.setContent(t, { emitUpdate: !1 });
39100
+ }, [e.markup, h]), Ct(() => {
39101
+ Object.entries(BK).forEach(([e, t]) => {
38994
39102
  document.documentElement.style.setProperty(e, t);
38995
39103
  });
38996
39104
  }, []);
38997
- let m = NC({
38998
- editor: p,
39105
+ let g = NC({
39106
+ editor: h,
38999
39107
  selector: (e) => ({ isFocused: e.editor?.isFocused })
39000
- }), h = Tt(() => {
39108
+ }), _ = Tt(() => {
39001
39109
  let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
39002
39110
  return {
39003
39111
  width: $P(n),
@@ -39012,20 +39120,20 @@ var CK = Vm.create({
39012
39120
  ...e,
39013
39121
  activePlugins: f,
39014
39122
  toolbarOpts: l,
39015
- editorState: m,
39016
- editor: p,
39017
- children: p && /* @__PURE__ */ P(PK, {
39123
+ editorState: g,
39124
+ editor: h,
39125
+ children: h && /* @__PURE__ */ P(UK, {
39018
39126
  style: {
39019
- minHeight: h.minHeight,
39020
- height: h.height,
39021
- maxHeight: h.maxHeight
39127
+ minHeight: _.minHeight,
39128
+ height: _.height,
39129
+ maxHeight: _.maxHeight
39022
39130
  },
39023
39131
  showParagraph: t && !t.disabled,
39024
39132
  separateParagraph: n && !n.disabled,
39025
- editor: p
39133
+ editor: h
39026
39134
  })
39027
39135
  });
39028
- }, PK = M(AC, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39136
+ }, UK = M(AC, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39029
39137
  display: "flex",
39030
39138
  outline: "none !important",
39031
39139
  "& .ProseMirror": {
@@ -39053,7 +39161,7 @@ var CK = Vm.create({
39053
39161
  } },
39054
39162
  ...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
39055
39163
  }
39056
- })), FK = NK, IK = class e extends CustomEvent {
39164
+ })), WK = HK, GK = class e extends CustomEvent {
39057
39165
  static {
39058
39166
  this.TYPE = "model.updated";
39059
39167
  }
@@ -39066,7 +39174,7 @@ var CK = Vm.create({
39066
39174
  }
39067
39175
  }), this.update = t, this.reset = n;
39068
39176
  }
39069
- }, LK = class e extends CustomEvent {
39177
+ }, KK = class e extends CustomEvent {
39070
39178
  static {
39071
39179
  this.TYPE = "delete.image";
39072
39180
  }
@@ -39079,7 +39187,7 @@ var CK = Vm.create({
39079
39187
  }
39080
39188
  }), this.src = t, this.done = n;
39081
39189
  }
39082
- }, RK = class e extends CustomEvent {
39190
+ }, qK = class e extends CustomEvent {
39083
39191
  static {
39084
39192
  this.TYPE = "insert.image";
39085
39193
  }
@@ -39089,7 +39197,7 @@ var CK = Vm.create({
39089
39197
  detail: t
39090
39198
  }), this.handler = t;
39091
39199
  }
39092
- }, zK = class e extends CustomEvent {
39200
+ }, JK = class e extends CustomEvent {
39093
39201
  static {
39094
39202
  this.TYPE = "delete.sound";
39095
39203
  }
@@ -39102,7 +39210,7 @@ var CK = Vm.create({
39102
39210
  }
39103
39211
  }), this.src = t, this.done = n;
39104
39212
  }
39105
- }, BK = class e extends CustomEvent {
39213
+ }, YK = class e extends CustomEvent {
39106
39214
  static {
39107
39215
  this.TYPE = "insert.sound";
39108
39216
  }
@@ -39115,7 +39223,7 @@ var CK = Vm.create({
39115
39223
  };
39116
39224
  //#endregion
39117
39225
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/switchBaseClasses.js
39118
- function VK(e) {
39226
+ function XK(e) {
39119
39227
  return p("PrivateSwitchBase", e);
39120
39228
  }
39121
39229
  k("PrivateSwitchBase", [
@@ -39128,7 +39236,7 @@ k("PrivateSwitchBase", [
39128
39236
  ]);
39129
39237
  //#endregion
39130
39238
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/SwitchBase.js
39131
- var HK = (e) => {
39239
+ var ZK = (e) => {
39132
39240
  let { classes: t, checked: n, disabled: r, edge: i } = e;
39133
39241
  return Ye({
39134
39242
  root: [
@@ -39138,8 +39246,8 @@ var HK = (e) => {
39138
39246
  i && `edge${A(i)}`
39139
39247
  ],
39140
39248
  input: ["input"]
39141
- }, VK, t);
39142
- }, UK = M(i, { name: "MuiSwitchBase" })({
39249
+ }, XK, t);
39250
+ }, QK = M(i, { name: "MuiSwitchBase" })({
39143
39251
  padding: 9,
39144
39252
  borderRadius: "50%",
39145
39253
  variants: [
@@ -39166,7 +39274,7 @@ var HK = (e) => {
39166
39274
  style: { marginRight: -12 }
39167
39275
  }
39168
39276
  ]
39169
- }), WK = M("input", {
39277
+ }), $K = M("input", {
39170
39278
  name: "MuiSwitchBase",
39171
39279
  shouldForwardProp: Ce
39172
39280
  })({
@@ -39180,29 +39288,29 @@ var HK = (e) => {
39180
39288
  margin: 0,
39181
39289
  padding: 0,
39182
39290
  zIndex: 1
39183
- }), GK = /*#__PURE__*/ N.forwardRef(function(e, t) {
39291
+ }), eq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39184
39292
  let { autoFocus: n, checked: r, checkedIcon: i, defaultChecked: a, disabled: o, disableFocusRipple: s = !1, edge: c = !1, icon: l, id: u, inputProps: d, inputRef: f, name: p, onBlur: m, onChange: h, onFocus: g, readOnly: _, required: v = !1, tabIndex: y, type: x, value: S, slots: C = {}, slotProps: w = {}, ...ee } = e, [T, te] = Bt({
39185
39293
  controlled: r,
39186
39294
  default: !!a,
39187
39295
  name: "SwitchBase",
39188
39296
  state: "checked"
39189
- }), ne = O(), re = (e) => {
39190
- g && g(e), ne && ne.onFocus && ne.onFocus(e);
39297
+ }), E = ae(), ne = (e) => {
39298
+ g && g(e), E && E.onFocus && E.onFocus(e);
39299
+ }, re = (e) => {
39300
+ m && m(e), E && E.onBlur && E.onBlur(e);
39191
39301
  }, ie = (e) => {
39192
- m && m(e), ne && ne.onBlur && ne.onBlur(e);
39193
- }, ae = (e) => {
39194
39302
  if (e.nativeEvent.defaultPrevented || _) return;
39195
39303
  let t = e.target.checked;
39196
39304
  te(t), h && h(e, t);
39197
- }, E = o;
39198
- ne && E === void 0 && (E = ne.disabled);
39199
- let D = x === "checkbox" || x === "radio", oe = {
39305
+ }, D = o;
39306
+ E && D === void 0 && (D = E.disabled);
39307
+ let O = x === "checkbox" || x === "radio", oe = {
39200
39308
  ...e,
39201
39309
  checked: T,
39202
- disabled: E,
39310
+ disabled: D,
39203
39311
  disableFocusRipple: s,
39204
39312
  edge: c
39205
- }, k = HK(oe), se = {
39313
+ }, k = ZK(oe), se = {
39206
39314
  slots: C,
39207
39315
  slotProps: {
39208
39316
  input: d,
@@ -39210,7 +39318,7 @@ var HK = (e) => {
39210
39318
  }
39211
39319
  }, [A, ce] = b("root", {
39212
39320
  ref: t,
39213
- elementType: UK,
39321
+ elementType: QK,
39214
39322
  className: k.root,
39215
39323
  shouldForwardComponentProp: !0,
39216
39324
  externalForwardedProps: {
@@ -39221,10 +39329,10 @@ var HK = (e) => {
39221
39329
  getSlotProps: (e) => ({
39222
39330
  ...e,
39223
39331
  onFocus: (t) => {
39224
- e.onFocus?.(t), re(t);
39332
+ e.onFocus?.(t), ne(t);
39225
39333
  },
39226
39334
  onBlur: (t) => {
39227
- e.onBlur?.(t), ie(t);
39335
+ e.onBlur?.(t), re(t);
39228
39336
  }
39229
39337
  }),
39230
39338
  ownerState: oe,
@@ -39236,13 +39344,13 @@ var HK = (e) => {
39236
39344
  }
39237
39345
  }), [le, ue] = b("input", {
39238
39346
  ref: f,
39239
- elementType: WK,
39347
+ elementType: $K,
39240
39348
  className: k.input,
39241
39349
  externalForwardedProps: se,
39242
39350
  getSlotProps: (e) => ({
39243
39351
  ...e,
39244
39352
  onChange: (t) => {
39245
- e.onChange?.(t), ae(t);
39353
+ e.onChange?.(t), ie(t);
39246
39354
  }
39247
39355
  }),
39248
39356
  ownerState: oe,
@@ -39250,8 +39358,8 @@ var HK = (e) => {
39250
39358
  autoFocus: n,
39251
39359
  checked: r,
39252
39360
  defaultChecked: a,
39253
- disabled: E,
39254
- id: D ? u : void 0,
39361
+ disabled: D,
39362
+ id: O ? u : void 0,
39255
39363
  name: p,
39256
39364
  readOnly: _,
39257
39365
  required: v,
@@ -39264,13 +39372,13 @@ var HK = (e) => {
39264
39372
  ...ce,
39265
39373
  children: [/*#__PURE__*/ P(le, { ...ue }), T ? i : l]
39266
39374
  });
39267
- }), KK = o(/*#__PURE__*/ P("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" }), "CheckBoxOutlineBlank"), qK = o(/*#__PURE__*/ P("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }), "CheckBox"), JK = o(/*#__PURE__*/ P("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z" }), "IndeterminateCheckBox");
39375
+ }), tq = o(/*#__PURE__*/ P("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" }), "CheckBoxOutlineBlank"), nq = o(/*#__PURE__*/ P("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }), "CheckBox"), rq = o(/*#__PURE__*/ P("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z" }), "IndeterminateCheckBox");
39268
39376
  //#endregion
39269
39377
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js
39270
- function YK(e) {
39378
+ function iq(e) {
39271
39379
  return p("MuiCheckbox", e);
39272
39380
  }
39273
- var XK = k("MuiCheckbox", [
39381
+ var aq = k("MuiCheckbox", [
39274
39382
  "root",
39275
39383
  "checked",
39276
39384
  "disabled",
@@ -39279,18 +39387,18 @@ var XK = k("MuiCheckbox", [
39279
39387
  "colorSecondary",
39280
39388
  "sizeSmall",
39281
39389
  "sizeMedium"
39282
- ]), ZK = (e) => {
39390
+ ]), oq = (e) => {
39283
39391
  let { classes: t, indeterminate: n, color: r, size: i } = e, a = Ye({ root: [
39284
39392
  "root",
39285
39393
  n && "indeterminate",
39286
39394
  `color${A(r)}`,
39287
39395
  `size${A(i)}`
39288
- ] }, YK, t);
39396
+ ] }, iq, t);
39289
39397
  return {
39290
39398
  ...t,
39291
39399
  ...a
39292
39400
  };
39293
- }, QK = M(GK, {
39401
+ }, sq = M(eq, {
39294
39402
  shouldForwardProp: (e) => Ce(e) || e === "classes",
39295
39403
  name: "MuiCheckbox",
39296
39404
  slot: "Root",
@@ -39323,8 +39431,8 @@ var XK = k("MuiCheckbox", [
39323
39431
  ...Object.entries(e.palette).filter(De()).map(([t]) => ({
39324
39432
  props: { color: t },
39325
39433
  style: {
39326
- [`&.${XK.checked}, &.${XK.indeterminate}`]: { color: (e.vars || e).palette[t].main },
39327
- [`&.${XK.disabled}`]: { color: (e.vars || e).palette.action.disabled }
39434
+ [`&.${aq.checked}, &.${aq.indeterminate}`]: { color: (e.vars || e).palette[t].main },
39435
+ [`&.${aq.disabled}`]: { color: (e.vars || e).palette.action.disabled }
39328
39436
  }
39329
39437
  })),
39330
39438
  {
@@ -39332,19 +39440,19 @@ var XK = k("MuiCheckbox", [
39332
39440
  style: { "&:hover": { "@media (hover: none)": { backgroundColor: "transparent" } } }
39333
39441
  }
39334
39442
  ]
39335
- }))), $K = /*#__PURE__*/ P(qK, {}), eq = /*#__PURE__*/ P(KK, {}), tq = /*#__PURE__*/ P(JK, {}), nq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39443
+ }))), cq = /*#__PURE__*/ P(nq, {}), lq = /*#__PURE__*/ P(tq, {}), uq = /*#__PURE__*/ P(rq, {}), dq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39336
39444
  let n = ye({
39337
39445
  props: e,
39338
39446
  name: "MuiCheckbox"
39339
- }), { checkedIcon: r = $K, color: i = "primary", icon: a = eq, indeterminate: o = !1, indeterminateIcon: s = tq, inputProps: c, size: l = "medium", disableRipple: u = !1, className: f, slots: p = {}, slotProps: h = {}, ...g } = n, _ = o ? s : a, v = o ? s : r, y = {
39447
+ }), { checkedIcon: r = cq, color: i = "primary", icon: a = lq, indeterminate: o = !1, indeterminateIcon: s = uq, inputProps: c, size: l = "medium", disableRipple: u = !1, className: f, slots: p = {}, slotProps: h = {}, ...g } = n, _ = o ? s : a, v = o ? s : r, y = {
39340
39448
  ...n,
39341
39449
  disableRipple: u,
39342
39450
  color: i,
39343
39451
  indeterminate: o,
39344
39452
  size: l
39345
- }, x = ZK(y), S = h.input ?? c, [C, w] = b("root", {
39453
+ }, x = oq(y), S = h.input ?? c, [C, w] = b("root", {
39346
39454
  ref: t,
39347
- elementType: QK,
39455
+ elementType: sq,
39348
39456
  className: d(x.root, f),
39349
39457
  shouldForwardComponentProp: !0,
39350
39458
  externalForwardedProps: {
@@ -39372,10 +39480,10 @@ var XK = k("MuiCheckbox", [
39372
39480
  });
39373
39481
  //#endregion
39374
39482
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js
39375
- function rq(e) {
39483
+ function fq(e) {
39376
39484
  return p("MuiFormControlLabel", e);
39377
39485
  }
39378
- var iq = k("MuiFormControlLabel", [
39486
+ var pq = k("MuiFormControlLabel", [
39379
39487
  "root",
39380
39488
  "labelPlacementStart",
39381
39489
  "labelPlacementTop",
@@ -39385,7 +39493,7 @@ var iq = k("MuiFormControlLabel", [
39385
39493
  "error",
39386
39494
  "required",
39387
39495
  "asterisk"
39388
- ]), aq = (e) => {
39496
+ ]), mq = (e) => {
39389
39497
  let { classes: t, disabled: n, labelPlacement: r, error: i, required: a } = e;
39390
39498
  return Ye({
39391
39499
  root: [
@@ -39397,14 +39505,14 @@ var iq = k("MuiFormControlLabel", [
39397
39505
  ],
39398
39506
  label: ["label", n && "disabled"],
39399
39507
  asterisk: ["asterisk", i && "error"]
39400
- }, rq, t);
39401
- }, oq = M("label", {
39508
+ }, fq, t);
39509
+ }, hq = M("label", {
39402
39510
  name: "MuiFormControlLabel",
39403
39511
  slot: "Root",
39404
39512
  overridesResolver: (e, t) => {
39405
39513
  let { ownerState: n } = e;
39406
39514
  return [
39407
- { [`& .${iq.label}`]: t.label },
39515
+ { [`& .${pq.label}`]: t.label },
39408
39516
  t.root,
39409
39517
  t[`labelPlacement${A(n.labelPlacement)}`]
39410
39518
  ];
@@ -39417,8 +39525,8 @@ var iq = k("MuiFormControlLabel", [
39417
39525
  WebkitTapHighlightColor: "transparent",
39418
39526
  marginLeft: -11,
39419
39527
  marginRight: 16,
39420
- [`&.${iq.disabled}`]: { cursor: "default" },
39421
- [`& .${iq.label}`]: { [`&.${iq.disabled}`]: { color: (e.vars || e).palette.text.disabled } },
39528
+ [`&.${pq.disabled}`]: { cursor: "default" },
39529
+ [`& .${pq.label}`]: { [`&.${pq.disabled}`]: { color: (e.vars || e).palette.text.disabled } },
39422
39530
  variants: [
39423
39531
  {
39424
39532
  props: { labelPlacement: "start" },
@@ -39440,14 +39548,14 @@ var iq = k("MuiFormControlLabel", [
39440
39548
  style: { marginLeft: 16 }
39441
39549
  }
39442
39550
  ]
39443
- }))), sq = M("span", {
39551
+ }))), gq = M("span", {
39444
39552
  name: "MuiFormControlLabel",
39445
39553
  slot: "Asterisk"
39446
- })(j(({ theme: e }) => ({ [`&.${iq.error}`]: { color: (e.vars || e).palette.error.main } }))), cq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39554
+ })(j(({ theme: e }) => ({ [`&.${pq.error}`]: { color: (e.vars || e).palette.error.main } }))), _q = /*#__PURE__*/ N.forwardRef(function(e, t) {
39447
39555
  let n = ye({
39448
39556
  props: e,
39449
39557
  name: "MuiFormControlLabel"
39450
- }), { checked: r, className: i, componentsProps: a = {}, control: o, disabled: s, disableTypography: c, inputRef: l, label: u, labelPlacement: f = "end", name: p, onChange: m, required: h, slots: g = {}, slotProps: _ = {}, value: v, ...y } = n, x = O(), S = s ?? o.props.disabled ?? x?.disabled, C = h ?? o.props.required, w = {
39558
+ }), { checked: r, className: i, componentsProps: a = {}, control: o, disabled: s, disableTypography: c, inputRef: l, label: u, labelPlacement: f = "end", name: p, onChange: m, required: h, slots: g = {}, slotProps: _ = {}, value: v, ...y } = n, x = ae(), S = s ?? o.props.disabled ?? x?.disabled, C = h ?? o.props.required, w = {
39451
39559
  disabled: S,
39452
39560
  required: C
39453
39561
  };
@@ -39470,7 +39578,7 @@ var iq = k("MuiFormControlLabel", [
39470
39578
  labelPlacement: f,
39471
39579
  required: C,
39472
39580
  error: ee.error
39473
- }, te = aq(T), [ne, re] = b("typography", {
39581
+ }, te = mq(T), [E, ne] = b("typography", {
39474
39582
  elementType: Nk,
39475
39583
  externalForwardedProps: {
39476
39584
  slots: g,
@@ -39480,31 +39588,31 @@ var iq = k("MuiFormControlLabel", [
39480
39588
  }
39481
39589
  },
39482
39590
  ownerState: T
39483
- }), ie = u;
39484
- return ie != null && ie.type !== Nk && !c && (ie = /*#__PURE__*/ P(ne, {
39591
+ }), re = u;
39592
+ return re != null && re.type !== Nk && !c && (re = /*#__PURE__*/ P(E, {
39485
39593
  component: "span",
39486
- ...re,
39487
- className: d(te.label, re?.className),
39488
- children: ie
39489
- })), /*#__PURE__*/ F(oq, {
39594
+ ...ne,
39595
+ className: d(te.label, ne?.className),
39596
+ children: re
39597
+ })), /*#__PURE__*/ F(hq, {
39490
39598
  className: d(te.root, i),
39491
39599
  ownerState: T,
39492
39600
  ref: t,
39493
39601
  ...y,
39494
- children: [/*#__PURE__*/ N.cloneElement(o, w), C ? /*#__PURE__*/ F("div", { children: [ie, /*#__PURE__*/ F(sq, {
39602
+ children: [/*#__PURE__*/ N.cloneElement(o, w), C ? /*#__PURE__*/ F("div", { children: [re, /*#__PURE__*/ F(gq, {
39495
39603
  ownerState: T,
39496
39604
  "aria-hidden": !0,
39497
39605
  className: te.asterisk,
39498
39606
  children: [" ", "*"]
39499
- })] }) : ie]
39607
+ })] }) : re]
39500
39608
  });
39501
39609
  });
39502
39610
  //#endregion
39503
39611
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
39504
- function lq(e) {
39612
+ function vq(e) {
39505
39613
  return p("MuiInputAdornment", e);
39506
39614
  }
39507
- var uq = k("MuiInputAdornment", [
39615
+ var yq = k("MuiInputAdornment", [
39508
39616
  "root",
39509
39617
  "filled",
39510
39618
  "standard",
@@ -39514,7 +39622,7 @@ var uq = k("MuiInputAdornment", [
39514
39622
  "disablePointerEvents",
39515
39623
  "hiddenLabel",
39516
39624
  "sizeSmall"
39517
- ]), dq, fq = (e, t) => {
39625
+ ]), bq, xq = (e, t) => {
39518
39626
  let { ownerState: n } = e;
39519
39627
  return [
39520
39628
  t.root,
@@ -39522,7 +39630,7 @@ var uq = k("MuiInputAdornment", [
39522
39630
  n.disablePointerEvents === !0 && t.disablePointerEvents,
39523
39631
  t[n.variant]
39524
39632
  ];
39525
- }, pq = (e) => {
39633
+ }, Sq = (e) => {
39526
39634
  let { classes: t, disablePointerEvents: n, hiddenLabel: r, position: i, size: a, variant: o } = e;
39527
39635
  return Ye({ root: [
39528
39636
  "root",
@@ -39531,11 +39639,11 @@ var uq = k("MuiInputAdornment", [
39531
39639
  o,
39532
39640
  r && "hiddenLabel",
39533
39641
  a && `size${A(a)}`
39534
- ] }, lq, t);
39535
- }, mq = M("div", {
39642
+ ] }, vq, t);
39643
+ }, Cq = M("div", {
39536
39644
  name: "MuiInputAdornment",
39537
39645
  slot: "Root",
39538
- overridesResolver: fq
39646
+ overridesResolver: xq
39539
39647
  })(j(({ theme: e }) => ({
39540
39648
  display: "flex",
39541
39649
  maxHeight: "2em",
@@ -39545,7 +39653,7 @@ var uq = k("MuiInputAdornment", [
39545
39653
  variants: [
39546
39654
  {
39547
39655
  props: { variant: "filled" },
39548
- style: { [`&.${uq.positionStart}&:not(.${uq.hiddenLabel})`]: { marginTop: 16 } }
39656
+ style: { [`&.${yq.positionStart}&:not(.${yq.hiddenLabel})`]: { marginTop: 16 } }
39549
39657
  },
39550
39658
  {
39551
39659
  props: { position: "start" },
@@ -39560,11 +39668,11 @@ var uq = k("MuiInputAdornment", [
39560
39668
  style: { pointerEvents: "none" }
39561
39669
  }
39562
39670
  ]
39563
- }))), hq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39671
+ }))), wq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39564
39672
  let n = ye({
39565
39673
  props: e,
39566
39674
  name: "MuiInputAdornment"
39567
- }), { children: r, className: i, component: a = "div", disablePointerEvents: o = !1, disableTypography: s = !1, position: l, variant: u, ...f } = n, p = O() || {}, m = u;
39675
+ }), { children: r, className: i, component: a = "div", disablePointerEvents: o = !1, disableTypography: s = !1, position: l, variant: u, ...f } = n, p = ae() || {}, m = u;
39568
39676
  u && p.variant, p && !m && (m = p.variant);
39569
39677
  let h = {
39570
39678
  ...n,
@@ -39573,10 +39681,10 @@ var uq = k("MuiInputAdornment", [
39573
39681
  disablePointerEvents: o,
39574
39682
  position: l,
39575
39683
  variant: m
39576
- }, g = pq(h);
39684
+ }, g = Sq(h);
39577
39685
  return /*#__PURE__*/ P(c.Provider, {
39578
39686
  value: null,
39579
- children: /*#__PURE__*/ P(mq, {
39687
+ children: /*#__PURE__*/ P(Cq, {
39580
39688
  as: a,
39581
39689
  ownerState: h,
39582
39690
  className: d(g.root, i),
@@ -39585,20 +39693,20 @@ var uq = k("MuiInputAdornment", [
39585
39693
  children: typeof r == "string" && !s ? /*#__PURE__*/ P(Nk, {
39586
39694
  color: "textSecondary",
39587
39695
  children: r
39588
- }) : /*#__PURE__*/ F(N.Fragment, { children: [l === "start" ? dq ||= /*#__PURE__*/ P("span", {
39696
+ }) : /*#__PURE__*/ F(N.Fragment, { children: [l === "start" ? bq ||= /*#__PURE__*/ P("span", {
39589
39697
  className: "notranslate",
39590
39698
  "aria-hidden": !0,
39591
39699
  children: "​"
39592
39700
  }) : null, r] })
39593
39701
  })
39594
39702
  });
39595
- }), gq = o(/*#__PURE__*/ P("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), "RadioButtonUnchecked"), _q = o(/*#__PURE__*/ P("path", { d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z" }), "RadioButtonChecked"), vq = M("span", {
39703
+ }), Tq = o(/*#__PURE__*/ P("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), "RadioButtonUnchecked"), Eq = o(/*#__PURE__*/ P("path", { d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z" }), "RadioButtonChecked"), Dq = M("span", {
39596
39704
  name: "MuiRadioButtonIcon",
39597
39705
  shouldForwardProp: Ce
39598
39706
  })({
39599
39707
  position: "relative",
39600
39708
  display: "flex"
39601
- }), yq = M(gq, { name: "MuiRadioButtonIcon" })({ transform: "scale(1)" }), bq = M(_q, { name: "MuiRadioButtonIcon" })(j(({ theme: e }) => ({
39709
+ }), Oq = M(Tq, { name: "MuiRadioButtonIcon" })({ transform: "scale(1)" }), kq = M(Eq, { name: "MuiRadioButtonIcon" })(j(({ theme: e }) => ({
39602
39710
  left: 0,
39603
39711
  position: "absolute",
39604
39712
  transform: "scale(0)",
@@ -39617,19 +39725,19 @@ var uq = k("MuiInputAdornment", [
39617
39725
  }
39618
39726
  }]
39619
39727
  })));
39620
- function xq(e) {
39728
+ function Aq(e) {
39621
39729
  let { checked: t = !1, classes: n = {}, fontSize: r } = e, i = {
39622
39730
  ...e,
39623
39731
  checked: t
39624
39732
  };
39625
- return /*#__PURE__*/ F(vq, {
39733
+ return /*#__PURE__*/ F(Dq, {
39626
39734
  className: n.root,
39627
39735
  ownerState: i,
39628
- children: [/*#__PURE__*/ P(yq, {
39736
+ children: [/*#__PURE__*/ P(Oq, {
39629
39737
  fontSize: r,
39630
39738
  className: n.background,
39631
39739
  ownerState: i
39632
- }), /*#__PURE__*/ P(bq, {
39740
+ }), /*#__PURE__*/ P(kq, {
39633
39741
  fontSize: r,
39634
39742
  className: n.dot,
39635
39743
  ownerState: i
@@ -39638,25 +39746,25 @@ function xq(e) {
39638
39746
  }
39639
39747
  //#endregion
39640
39748
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/RadioGroupContext.js
39641
- var Sq = /*#__PURE__*/ N.createContext(void 0);
39749
+ var jq = /*#__PURE__*/ N.createContext(void 0);
39642
39750
  //#endregion
39643
39751
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/useRadioGroup.js
39644
- function Cq() {
39645
- return N.useContext(Sq);
39752
+ function Mq() {
39753
+ return N.useContext(jq);
39646
39754
  }
39647
39755
  //#endregion
39648
39756
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Radio/radioClasses.js
39649
- function wq(e) {
39757
+ function Nq(e) {
39650
39758
  return p("MuiRadio", e);
39651
39759
  }
39652
- var Tq = k("MuiRadio", [
39760
+ var Pq = k("MuiRadio", [
39653
39761
  "root",
39654
39762
  "checked",
39655
39763
  "disabled",
39656
39764
  "colorPrimary",
39657
39765
  "colorSecondary",
39658
39766
  "sizeSmall"
39659
- ]), Eq = (e) => {
39767
+ ]), Fq = (e) => {
39660
39768
  let { classes: t, color: n, size: r } = e, i = { root: [
39661
39769
  "root",
39662
39770
  `color${A(n)}`,
@@ -39664,9 +39772,9 @@ var Tq = k("MuiRadio", [
39664
39772
  ] };
39665
39773
  return {
39666
39774
  ...t,
39667
- ...Ye(i, wq, t)
39775
+ ...Ye(i, Nq, t)
39668
39776
  };
39669
- }, Dq = M(GK, {
39777
+ }, Iq = M(eq, {
39670
39778
  shouldForwardProp: (e) => Ce(e) || e === "classes",
39671
39779
  name: "MuiRadio",
39672
39780
  slot: "Root",
@@ -39680,7 +39788,7 @@ var Tq = k("MuiRadio", [
39680
39788
  }
39681
39789
  })(j(({ theme: e }) => ({
39682
39790
  color: (e.vars || e).palette.text.secondary,
39683
- [`&.${Tq.disabled}`]: { color: (e.vars || e).palette.action.disabled },
39791
+ [`&.${Pq.disabled}`]: { color: (e.vars || e).palette.action.disabled },
39684
39792
  variants: [
39685
39793
  {
39686
39794
  props: {
@@ -39703,7 +39811,7 @@ var Tq = k("MuiRadio", [
39703
39811
  color: t,
39704
39812
  disabled: !1
39705
39813
  },
39706
- style: { [`&.${Tq.checked}`]: { color: (e.vars || e).palette[t].main } }
39814
+ style: { [`&.${Pq.checked}`]: { color: (e.vars || e).palette[t].main } }
39707
39815
  })),
39708
39816
  {
39709
39817
  props: { disableRipple: !1 },
@@ -39711,14 +39819,14 @@ var Tq = k("MuiRadio", [
39711
39819
  }
39712
39820
  ]
39713
39821
  })));
39714
- function Oq(e, t) {
39822
+ function Lq(e, t) {
39715
39823
  return typeof t == "object" && t ? e === t : String(e) === String(t);
39716
39824
  }
39717
- var kq = /*#__PURE__*/ P(xq, { checked: !0 }), Aq = /*#__PURE__*/ P(xq, {}), jq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39825
+ var Rq = /*#__PURE__*/ P(Aq, { checked: !0 }), zq = /*#__PURE__*/ P(Aq, {}), Bq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39718
39826
  let n = ye({
39719
39827
  props: e,
39720
39828
  name: "MuiRadio"
39721
- }), { checked: r, checkedIcon: i = kq, color: a = "primary", icon: o = Aq, name: s, onChange: c, size: l = "medium", className: u, disabled: f, disableRipple: p = !1, slots: m = {}, slotProps: h = {}, inputProps: g, ..._ } = n, v = O(), y = f;
39829
+ }), { checked: r, checkedIcon: i = Rq, color: a = "primary", icon: o = zq, name: s, onChange: c, size: l = "medium", className: u, disabled: f, disableRipple: p = !1, slots: m = {}, slotProps: h = {}, inputProps: g, ..._ } = n, v = ae(), y = f;
39722
39830
  v && y === void 0 && (y = v.disabled), y ??= !1;
39723
39831
  let x = {
39724
39832
  ...n,
@@ -39726,11 +39834,11 @@ var kq = /*#__PURE__*/ P(xq, { checked: !0 }), Aq = /*#__PURE__*/ P(xq, {}), jq
39726
39834
  disableRipple: p,
39727
39835
  color: a,
39728
39836
  size: l
39729
- }, S = Eq(x), C = Cq(), w = r, ee = Rt(c, C && C.onChange), T = s;
39730
- C && (w === void 0 && (w = Oq(C.value, n.value)), T === void 0 && (T = C.name));
39731
- let te = h.input ?? g, [ne, re] = b("root", {
39837
+ }, S = Fq(x), C = Mq(), w = r, ee = Rt(c, C && C.onChange), T = s;
39838
+ C && (w === void 0 && (w = Lq(C.value, n.value)), T === void 0 && (T = C.name));
39839
+ let te = h.input ?? g, [E, ne] = b("root", {
39732
39840
  ref: t,
39733
- elementType: Dq,
39841
+ elementType: Iq,
39734
39842
  className: d(S.root, u),
39735
39843
  shouldForwardComponentProp: !0,
39736
39844
  externalForwardedProps: {
@@ -39756,17 +39864,17 @@ var kq = /*#__PURE__*/ P(xq, { checked: !0 }), Aq = /*#__PURE__*/ P(xq, {}), jq
39756
39864
  slotProps: { input: typeof te == "function" ? te(x) : te }
39757
39865
  }
39758
39866
  });
39759
- return /*#__PURE__*/ P(ne, {
39760
- ...re,
39867
+ return /*#__PURE__*/ P(E, {
39868
+ ...ne,
39761
39869
  classes: S
39762
39870
  });
39763
39871
  });
39764
39872
  //#endregion
39765
39873
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/tooltipClasses.js
39766
- function Mq(e) {
39874
+ function Vq(e) {
39767
39875
  return p("MuiTooltip", e);
39768
39876
  }
39769
- var Nq = k("MuiTooltip", [
39877
+ var Hq = k("MuiTooltip", [
39770
39878
  "popper",
39771
39879
  "popperInteractive",
39772
39880
  "popperArrow",
@@ -39782,10 +39890,10 @@ var Nq = k("MuiTooltip", [
39782
39890
  ]);
39783
39891
  //#endregion
39784
39892
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/Tooltip.js
39785
- function Pq(e) {
39893
+ function Uq(e) {
39786
39894
  return Math.round(e * 1e5) / 1e5;
39787
39895
  }
39788
- var Fq = (e) => {
39896
+ var Wq = (e) => {
39789
39897
  let { classes: t, disableInteractive: n, arrow: r, touch: i, placement: a } = e;
39790
39898
  return Ye({
39791
39899
  popper: [
@@ -39800,8 +39908,8 @@ var Fq = (e) => {
39800
39908
  `tooltipPlacement${A(a.split("-")[0])}`
39801
39909
  ],
39802
39910
  arrow: ["arrow"]
39803
- }, Mq, t);
39804
- }, Iq = M(bL, {
39911
+ }, Vq, t);
39912
+ }, Gq = M(bL, {
39805
39913
  name: "MuiTooltip",
39806
39914
  slot: "Popper",
39807
39915
  overridesResolver: (e, t) => {
@@ -39828,22 +39936,22 @@ var Fq = (e) => {
39828
39936
  {
39829
39937
  props: ({ ownerState: e }) => e.arrow,
39830
39938
  style: {
39831
- [`&[data-popper-placement*="bottom"] .${Nq.arrow}`]: {
39939
+ [`&[data-popper-placement*="bottom"] .${Hq.arrow}`]: {
39832
39940
  top: 0,
39833
39941
  marginTop: "-0.71em",
39834
39942
  "&::before": { transformOrigin: "0 100%" }
39835
39943
  },
39836
- [`&[data-popper-placement*="top"] .${Nq.arrow}`]: {
39944
+ [`&[data-popper-placement*="top"] .${Hq.arrow}`]: {
39837
39945
  bottom: 0,
39838
39946
  marginBottom: "-0.71em",
39839
39947
  "&::before": { transformOrigin: "100% 0" }
39840
39948
  },
39841
- [`&[data-popper-placement*="right"] .${Nq.arrow}`]: {
39949
+ [`&[data-popper-placement*="right"] .${Hq.arrow}`]: {
39842
39950
  height: "1em",
39843
39951
  width: "0.71em",
39844
39952
  "&::before": { transformOrigin: "100% 100%" }
39845
39953
  },
39846
- [`&[data-popper-placement*="left"] .${Nq.arrow}`]: {
39954
+ [`&[data-popper-placement*="left"] .${Hq.arrow}`]: {
39847
39955
  height: "1em",
39848
39956
  width: "0.71em",
39849
39957
  "&::before": { transformOrigin: "0 0" }
@@ -39852,34 +39960,34 @@ var Fq = (e) => {
39852
39960
  },
39853
39961
  {
39854
39962
  props: ({ ownerState: e }) => e.arrow && !e.isRtl,
39855
- style: { [`&[data-popper-placement*="right"] .${Nq.arrow}`]: {
39963
+ style: { [`&[data-popper-placement*="right"] .${Hq.arrow}`]: {
39856
39964
  left: 0,
39857
39965
  marginLeft: "-0.71em"
39858
39966
  } }
39859
39967
  },
39860
39968
  {
39861
39969
  props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
39862
- style: { [`&[data-popper-placement*="right"] .${Nq.arrow}`]: {
39970
+ style: { [`&[data-popper-placement*="right"] .${Hq.arrow}`]: {
39863
39971
  right: 0,
39864
39972
  marginRight: "-0.71em"
39865
39973
  } }
39866
39974
  },
39867
39975
  {
39868
39976
  props: ({ ownerState: e }) => e.arrow && !e.isRtl,
39869
- style: { [`&[data-popper-placement*="left"] .${Nq.arrow}`]: {
39977
+ style: { [`&[data-popper-placement*="left"] .${Hq.arrow}`]: {
39870
39978
  right: 0,
39871
39979
  marginRight: "-0.71em"
39872
39980
  } }
39873
39981
  },
39874
39982
  {
39875
39983
  props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
39876
- style: { [`&[data-popper-placement*="left"] .${Nq.arrow}`]: {
39984
+ style: { [`&[data-popper-placement*="left"] .${Hq.arrow}`]: {
39877
39985
  left: 0,
39878
39986
  marginLeft: "-0.71em"
39879
39987
  } }
39880
39988
  }
39881
39989
  ]
39882
- }))), Lq = M("div", {
39990
+ }))), Kq = M("div", {
39883
39991
  name: "MuiTooltip",
39884
39992
  slot: "Tooltip",
39885
39993
  overridesResolver: (e, t) => {
@@ -39902,13 +40010,13 @@ var Fq = (e) => {
39902
40010
  margin: 2,
39903
40011
  wordWrap: "break-word",
39904
40012
  fontWeight: e.typography.fontWeightMedium,
39905
- [`.${Nq.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
39906
- [`.${Nq.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
39907
- [`.${Nq.popper}[data-popper-placement*="top"] &`]: {
40013
+ [`.${Hq.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
40014
+ [`.${Hq.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
40015
+ [`.${Hq.popper}[data-popper-placement*="top"] &`]: {
39908
40016
  transformOrigin: "center bottom",
39909
40017
  marginBottom: "14px"
39910
40018
  },
39911
- [`.${Nq.popper}[data-popper-placement*="bottom"] &`]: {
40019
+ [`.${Hq.popper}[data-popper-placement*="bottom"] &`]: {
39912
40020
  transformOrigin: "center top",
39913
40021
  marginTop: "14px"
39914
40022
  },
@@ -39925,48 +40033,48 @@ var Fq = (e) => {
39925
40033
  style: {
39926
40034
  padding: "8px 16px",
39927
40035
  fontSize: e.typography.pxToRem(14),
39928
- lineHeight: `${Pq(16 / 14)}em`,
40036
+ lineHeight: `${Uq(16 / 14)}em`,
39929
40037
  fontWeight: e.typography.fontWeightRegular
39930
40038
  }
39931
40039
  },
39932
40040
  {
39933
40041
  props: ({ ownerState: e }) => !e.isRtl,
39934
40042
  style: {
39935
- [`.${Nq.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
39936
- [`.${Nq.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
40043
+ [`.${Hq.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
40044
+ [`.${Hq.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
39937
40045
  }
39938
40046
  },
39939
40047
  {
39940
40048
  props: ({ ownerState: e }) => !e.isRtl && e.touch,
39941
40049
  style: {
39942
- [`.${Nq.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
39943
- [`.${Nq.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
40050
+ [`.${Hq.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
40051
+ [`.${Hq.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
39944
40052
  }
39945
40053
  },
39946
40054
  {
39947
40055
  props: ({ ownerState: e }) => !!e.isRtl,
39948
40056
  style: {
39949
- [`.${Nq.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
39950
- [`.${Nq.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
40057
+ [`.${Hq.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
40058
+ [`.${Hq.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
39951
40059
  }
39952
40060
  },
39953
40061
  {
39954
40062
  props: ({ ownerState: e }) => !!e.isRtl && e.touch,
39955
40063
  style: {
39956
- [`.${Nq.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
39957
- [`.${Nq.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
40064
+ [`.${Hq.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
40065
+ [`.${Hq.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
39958
40066
  }
39959
40067
  },
39960
40068
  {
39961
40069
  props: ({ ownerState: e }) => e.touch,
39962
- style: { [`.${Nq.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
40070
+ style: { [`.${Hq.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
39963
40071
  },
39964
40072
  {
39965
40073
  props: ({ ownerState: e }) => e.touch,
39966
- style: { [`.${Nq.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
40074
+ style: { [`.${Hq.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
39967
40075
  }
39968
40076
  ]
39969
- }))), Rq = M("span", {
40077
+ }))), qq = M("span", {
39970
40078
  name: "MuiTooltip",
39971
40079
  slot: "Arrow"
39972
40080
  })(j(({ theme: e }) => ({
@@ -39985,21 +40093,21 @@ var Fq = (e) => {
39985
40093
  backgroundColor: "currentColor",
39986
40094
  transform: "rotate(45deg)"
39987
40095
  }
39988
- }))), zq = !1, Bq = new Le(), Vq = {
40096
+ }))), Jq = !1, Yq = new Le(), Xq = {
39989
40097
  x: 0,
39990
40098
  y: 0
39991
40099
  };
39992
- function Hq(e, t) {
40100
+ function Zq(e, t) {
39993
40101
  return (n, ...r) => {
39994
40102
  t && t(n, ...r), e(n, ...r);
39995
40103
  };
39996
40104
  }
39997
- var Uq = /*#__PURE__*/ N.forwardRef(function(e, t) {
40105
+ var Qq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39998
40106
  let n = ye({
39999
40107
  props: e,
40000
40108
  name: "MuiTooltip"
40001
- }), { arrow: i = !1, children: a, classes: o, components: s = {}, componentsProps: c = {}, describeChild: u = !1, disableFocusListener: f = !1, disableHoverListener: p = !1, disableInteractive: m = !1, disableTouchListener: h = !1, enterDelay: g = 100, enterNextDelay: _ = 0, enterTouchDelay: y = 700, followCursor: x = !1, id: C, leaveDelay: w = 0, leaveTouchDelay: ee = 1500, onClose: T, onOpen: te, open: ne, placement: re = "bottom", PopperComponent: ie, PopperProps: ae = {}, slotProps: E = {}, slots: D = {}, title: O, TransitionComponent: oe, TransitionProps: k, ...se } = n, A = /*#__PURE__*/ N.isValidElement(a) ? a : /*#__PURE__*/ P("span", { children: a }), ce = Ge(), le = l(), [ue, j] = N.useState(), [de, fe] = N.useState(null), pe = N.useRef(!1), me = m || x, he = we(), ge = we(), _e = we(), ve = we(), [xe, Se] = Bt({
40002
- controlled: ne,
40109
+ }), { arrow: i = !1, children: a, classes: o, components: s = {}, componentsProps: c = {}, describeChild: u = !1, disableFocusListener: f = !1, disableHoverListener: p = !1, disableInteractive: m = !1, disableTouchListener: h = !1, enterDelay: g = 100, enterNextDelay: _ = 0, enterTouchDelay: y = 700, followCursor: x = !1, id: C, leaveDelay: w = 0, leaveTouchDelay: ee = 1500, onClose: T, onOpen: te, open: E, placement: ne = "bottom", PopperComponent: re, PopperProps: ie = {}, slotProps: D = {}, slots: O = {}, title: ae, TransitionComponent: oe, TransitionProps: k, ...se } = n, A = /*#__PURE__*/ N.isValidElement(a) ? a : /*#__PURE__*/ P("span", { children: a }), ce = Ge(), le = l(), [ue, j] = N.useState(), [de, fe] = N.useState(null), pe = N.useRef(!1), me = m || x, he = we(), ge = we(), _e = we(), ve = we(), [xe, Se] = Bt({
40110
+ controlled: E,
40003
40111
  default: !1,
40004
40112
  name: "Tooltip",
40005
40113
  state: "open"
@@ -40008,15 +40116,15 @@ var Uq = /*#__PURE__*/ N.forwardRef(function(e, t) {
40008
40116
  });
40009
40117
  N.useEffect(() => De, [De]);
40010
40118
  let Oe = (e) => {
40011
- Bq.clear(), zq = !0, Se(!0), te && !Ce && te(e);
40119
+ Yq.clear(), Jq = !0, Se(!0), te && !Ce && te(e);
40012
40120
  }, ke = v((e) => {
40013
- Bq.start(800 + w, () => {
40014
- zq = !1;
40121
+ Yq.start(800 + w, () => {
40122
+ Jq = !1;
40015
40123
  }), Se(!1), T && Ce && T(e), he.start(ce.transitions.duration.shortest, () => {
40016
40124
  pe.current = !1;
40017
40125
  });
40018
40126
  }), Ae = (e) => {
40019
- pe.current && e.type !== "touchstart" || (ue && ue.removeAttribute("title"), ge.clear(), _e.clear(), g || zq && _ ? ge.start(zq ? _ : g, () => {
40127
+ pe.current && e.type !== "touchstart" || (ue && ue.removeAttribute("title"), ge.clear(), _e.clear(), g || Jq && _ ? ge.start(Jq ? _ : g, () => {
40020
40128
  Oe(e);
40021
40129
  }) : Oe(e));
40022
40130
  }, je = (e) => {
@@ -40055,15 +40163,15 @@ var Uq = /*#__PURE__*/ N.forwardRef(function(e, t) {
40055
40163
  };
40056
40164
  }, [ke, Ce]);
40057
40165
  let ze = be(Ne(A), j, t);
40058
- !O && O !== 0 && (Ce = !1);
40166
+ !ae && ae !== 0 && (Ce = !1);
40059
40167
  let Be = N.useRef(), Ve = (e) => {
40060
40168
  let t = A.props;
40061
- t.onMouseMove && t.onMouseMove(e), Vq = {
40169
+ t.onMouseMove && t.onMouseMove(e), Xq = {
40062
40170
  x: e.clientX,
40063
40171
  y: e.clientY
40064
40172
  }, Be.current && Be.current.update();
40065
- }, He = {}, Ue = typeof O == "string";
40066
- u ? (He.title = !Ce && Ue && !p ? O : null, He["aria-describedby"] = Ce ? M : null) : (He["aria-label"] = Ue ? O : null, He["aria-labelledby"] = Ce && !Ue ? M : null);
40173
+ }, He = {}, Ue = typeof ae == "string";
40174
+ u ? (He.title = !Ce && Ue && !p ? ae : null, He["aria-describedby"] = Ce ? M : null) : (He["aria-label"] = Ue ? ae : null, He["aria-labelledby"] = Ce && !Ue ? M : null);
40067
40175
  let We = {
40068
40176
  ...He,
40069
40177
  ...se,
@@ -40073,16 +40181,16 @@ var Uq = /*#__PURE__*/ N.forwardRef(function(e, t) {
40073
40181
  ref: ze,
40074
40182
  ...x ? { onMouseMove: Ve } : {}
40075
40183
  }, Ke = {};
40076
- h || (We.onTouchStart = Le, We.onTouchEnd = Re), p || (We.onMouseOver = Hq(Ae, We.onMouseOver), We.onMouseLeave = Hq(je, We.onMouseLeave), me || (Ke.onMouseOver = Ae, Ke.onMouseLeave = je)), f || (We.onFocus = Hq(Fe, We.onFocus), We.onBlur = Hq(Pe, We.onBlur), me || (Ke.onFocus = Fe, Ke.onBlur = Pe));
40184
+ h || (We.onTouchStart = Le, We.onTouchEnd = Re), p || (We.onMouseOver = Zq(Ae, We.onMouseOver), We.onMouseLeave = Zq(je, We.onMouseLeave), me || (Ke.onMouseOver = Ae, Ke.onMouseLeave = je)), f || (We.onFocus = Zq(Fe, We.onFocus), We.onBlur = Zq(Pe, We.onBlur), me || (Ke.onFocus = Fe, Ke.onBlur = Pe));
40077
40185
  let qe = {
40078
40186
  ...n,
40079
40187
  isRtl: le,
40080
40188
  arrow: i,
40081
40189
  disableInteractive: me,
40082
- placement: re,
40083
- PopperComponentProp: ie,
40190
+ placement: ne,
40191
+ PopperComponentProp: re,
40084
40192
  touch: pe.current
40085
- }, Je = typeof E.popper == "function" ? E.popper(qe) : E.popper, Ye = N.useMemo(() => {
40193
+ }, Je = typeof D.popper == "function" ? D.popper(qe) : D.popper, Ye = N.useMemo(() => {
40086
40194
  let e = [{
40087
40195
  name: "arrow",
40088
40196
  enabled: !!de,
@@ -40091,64 +40199,64 @@ var Uq = /*#__PURE__*/ N.forwardRef(function(e, t) {
40091
40199
  padding: 4
40092
40200
  }
40093
40201
  }];
40094
- return ae.popperOptions?.modifiers && (e = e.concat(ae.popperOptions.modifiers)), Je?.popperOptions?.modifiers && (e = e.concat(Je.popperOptions.modifiers)), {
40095
- ...ae.popperOptions,
40202
+ return ie.popperOptions?.modifiers && (e = e.concat(ie.popperOptions.modifiers)), Je?.popperOptions?.modifiers && (e = e.concat(Je.popperOptions.modifiers)), {
40203
+ ...ie.popperOptions,
40096
40204
  ...Je?.popperOptions,
40097
40205
  modifiers: e
40098
40206
  };
40099
40207
  }, [
40100
40208
  de,
40101
- ae.popperOptions,
40209
+ ie.popperOptions,
40102
40210
  Je?.popperOptions
40103
- ]), Xe = Fq(qe), Ze = typeof E.transition == "function" ? E.transition(qe) : E.transition, Qe = {
40211
+ ]), Xe = Wq(qe), Ze = typeof D.transition == "function" ? D.transition(qe) : D.transition, Qe = {
40104
40212
  slots: {
40105
40213
  popper: s.Popper,
40106
40214
  transition: s.Transition ?? oe,
40107
40215
  tooltip: s.Tooltip,
40108
40216
  arrow: s.Arrow,
40109
- ...D
40217
+ ...O
40110
40218
  },
40111
40219
  slotProps: {
40112
- arrow: E.arrow ?? c.arrow,
40220
+ arrow: D.arrow ?? c.arrow,
40113
40221
  popper: {
40114
- ...ae,
40222
+ ...ie,
40115
40223
  ...Je ?? c.popper
40116
40224
  },
40117
- tooltip: E.tooltip ?? c.tooltip,
40225
+ tooltip: D.tooltip ?? c.tooltip,
40118
40226
  transition: {
40119
40227
  ...k,
40120
40228
  ...Ze ?? c.transition
40121
40229
  }
40122
40230
  }
40123
40231
  }, [$e, et] = b("popper", {
40124
- elementType: Iq,
40232
+ elementType: Gq,
40125
40233
  externalForwardedProps: Qe,
40126
40234
  ownerState: qe,
40127
- className: d(Xe.popper, ae?.className)
40235
+ className: d(Xe.popper, ie?.className)
40128
40236
  }), [tt, nt] = b("transition", {
40129
40237
  elementType: r,
40130
40238
  externalForwardedProps: Qe,
40131
40239
  ownerState: qe
40132
40240
  }), [rt, it] = b("tooltip", {
40133
- elementType: Lq,
40241
+ elementType: Kq,
40134
40242
  className: Xe.tooltip,
40135
40243
  externalForwardedProps: Qe,
40136
40244
  ownerState: qe
40137
40245
  }), [at, ot] = b("arrow", {
40138
- elementType: Rq,
40246
+ elementType: qq,
40139
40247
  className: Xe.arrow,
40140
40248
  externalForwardedProps: Qe,
40141
40249
  ownerState: qe,
40142
40250
  ref: fe
40143
40251
  });
40144
40252
  return /*#__PURE__*/ F(N.Fragment, { children: [/*#__PURE__*/ N.cloneElement(A, We), /*#__PURE__*/ P($e, {
40145
- as: ie ?? bL,
40146
- placement: re,
40253
+ as: re ?? bL,
40254
+ placement: ne,
40147
40255
  anchorEl: x ? { getBoundingClientRect: () => ({
40148
- top: Vq.y,
40149
- left: Vq.x,
40150
- right: Vq.x,
40151
- bottom: Vq.y,
40256
+ top: Xq.y,
40257
+ left: Xq.x,
40258
+ right: Xq.x,
40259
+ bottom: Xq.y,
40152
40260
  width: 0,
40153
40261
  height: 0
40154
40262
  }) } : ue,
@@ -40165,17 +40273,17 @@ var Uq = /*#__PURE__*/ N.forwardRef(function(e, t) {
40165
40273
  ...nt,
40166
40274
  children: /*#__PURE__*/ F(rt, {
40167
40275
  ...it,
40168
- children: [O, i ? /*#__PURE__*/ P(at, { ...ot }) : null]
40276
+ children: [ae, i ? /*#__PURE__*/ P(at, { ...ot }) : null]
40169
40277
  })
40170
40278
  })
40171
40279
  })] });
40172
40280
  });
40173
40281
  //#endregion
40174
40282
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js
40175
- function Wq(e) {
40283
+ function $q(e) {
40176
40284
  return p("MuiSwitch", e);
40177
40285
  }
40178
- var Gq = k("MuiSwitch", [
40286
+ var eJ = k("MuiSwitch", [
40179
40287
  "root",
40180
40288
  "edgeStart",
40181
40289
  "edgeEnd",
@@ -40189,7 +40297,7 @@ var Gq = k("MuiSwitch", [
40189
40297
  "input",
40190
40298
  "thumb",
40191
40299
  "track"
40192
- ]), Kq = (e) => {
40300
+ ]), tJ = (e) => {
40193
40301
  let { classes: t, edge: n, size: r, color: i, checked: a, disabled: o } = e, s = Ye({
40194
40302
  root: [
40195
40303
  "root",
@@ -40205,12 +40313,12 @@ var Gq = k("MuiSwitch", [
40205
40313
  thumb: ["thumb"],
40206
40314
  track: ["track"],
40207
40315
  input: ["input"]
40208
- }, Wq, t);
40316
+ }, $q, t);
40209
40317
  return {
40210
40318
  ...t,
40211
40319
  ...s
40212
40320
  };
40213
- }, qq = M("span", {
40321
+ }, nJ = M("span", {
40214
40322
  name: "MuiSwitch",
40215
40323
  slot: "Root",
40216
40324
  overridesResolver: (e, t) => {
@@ -40248,25 +40356,25 @@ var Gq = k("MuiSwitch", [
40248
40356
  width: 40,
40249
40357
  height: 24,
40250
40358
  padding: 7,
40251
- [`& .${Gq.thumb}`]: {
40359
+ [`& .${eJ.thumb}`]: {
40252
40360
  width: 16,
40253
40361
  height: 16
40254
40362
  },
40255
- [`& .${Gq.switchBase}`]: {
40363
+ [`& .${eJ.switchBase}`]: {
40256
40364
  padding: 4,
40257
- [`&.${Gq.checked}`]: { transform: "translateX(16px)" }
40365
+ [`&.${eJ.checked}`]: { transform: "translateX(16px)" }
40258
40366
  }
40259
40367
  }
40260
40368
  }
40261
40369
  ]
40262
- }), Jq = M(GK, {
40370
+ }), rJ = M(eq, {
40263
40371
  name: "MuiSwitch",
40264
40372
  slot: "SwitchBase",
40265
40373
  overridesResolver: (e, t) => {
40266
40374
  let { ownerState: n } = e;
40267
40375
  return [
40268
40376
  t.switchBase,
40269
- { [`& .${Gq.input}`]: t.input },
40377
+ { [`& .${eJ.input}`]: t.input },
40270
40378
  n.color !== "default" && t[`color${A(n.color)}`]
40271
40379
  ];
40272
40380
  }
@@ -40277,11 +40385,11 @@ var Gq = k("MuiSwitch", [
40277
40385
  zIndex: 1,
40278
40386
  color: e.vars ? e.vars.palette.Switch.defaultColor : `${e.palette.mode === "light" ? e.palette.common.white : e.palette.grey[300]}`,
40279
40387
  transition: e.transitions.create(["left", "transform"], { duration: e.transitions.duration.shortest }),
40280
- [`&.${Gq.checked}`]: { transform: "translateX(20px)" },
40281
- [`&.${Gq.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
40282
- [`&.${Gq.checked} + .${Gq.track}`]: { opacity: .5 },
40283
- [`&.${Gq.disabled} + .${Gq.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
40284
- [`& .${Gq.input}`]: {
40388
+ [`&.${eJ.checked}`]: { transform: "translateX(20px)" },
40389
+ [`&.${eJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
40390
+ [`&.${eJ.checked} + .${eJ.track}`]: { opacity: .5 },
40391
+ [`&.${eJ.disabled} + .${eJ.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
40392
+ [`& .${eJ.input}`]: {
40285
40393
  left: "-100%",
40286
40394
  width: "300%"
40287
40395
  }
@@ -40293,18 +40401,18 @@ var Gq = k("MuiSwitch", [
40293
40401
  variants: [...Object.entries(e.palette).filter(De(["light"])).map(([t]) => ({
40294
40402
  props: { color: t },
40295
40403
  style: {
40296
- [`&.${Gq.checked}`]: {
40404
+ [`&.${eJ.checked}`]: {
40297
40405
  color: (e.vars || e).palette[t].main,
40298
40406
  "&:hover": {
40299
40407
  backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity),
40300
40408
  "@media (hover: none)": { backgroundColor: "transparent" }
40301
40409
  },
40302
- [`&.${Gq.disabled}`]: { color: e.vars ? e.vars.palette.Switch[`${t}DisabledColor`] : `${e.palette.mode === "light" ? e.lighten(e.palette[t].main, .62) : e.darken(e.palette[t].main, .55)}` }
40410
+ [`&.${eJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch[`${t}DisabledColor`] : `${e.palette.mode === "light" ? e.lighten(e.palette[t].main, .62) : e.darken(e.palette[t].main, .55)}` }
40303
40411
  },
40304
- [`&.${Gq.checked} + .${Gq.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
40412
+ [`&.${eJ.checked} + .${eJ.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
40305
40413
  }
40306
40414
  }))]
40307
- }))), Yq = M("span", {
40415
+ }))), iJ = M("span", {
40308
40416
  name: "MuiSwitch",
40309
40417
  slot: "Track"
40310
40418
  })(j(({ theme: e }) => ({
@@ -40317,7 +40425,7 @@ var Gq = k("MuiSwitch", [
40317
40425
  transition: e.transitions.create(["opacity", "background-color"], { duration: e.transitions.duration.shortest }),
40318
40426
  backgroundColor: e.vars ? e.vars.palette.common.onBackground : `${e.palette.mode === "light" ? e.palette.common.black : e.palette.common.white}`,
40319
40427
  opacity: e.vars ? e.vars.opacity.switchTrack : `${e.palette.mode === "light" ? .38 : .3}`
40320
- }))), Xq = M("span", {
40428
+ }))), aJ = M("span", {
40321
40429
  name: "MuiSwitch",
40322
40430
  slot: "Thumb"
40323
40431
  })(j(({ theme: e }) => ({
@@ -40328,7 +40436,7 @@ var Gq = k("MuiSwitch", [
40328
40436
  width: 20,
40329
40437
  height: 20,
40330
40438
  borderRadius: "50%"
40331
- }))), Zq = /*#__PURE__*/ N.forwardRef(function(e, t) {
40439
+ }))), oJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40332
40440
  let n = ye({
40333
40441
  props: e,
40334
40442
  name: "MuiSwitch"
@@ -40337,29 +40445,29 @@ var Gq = k("MuiSwitch", [
40337
40445
  color: i,
40338
40446
  edge: a,
40339
40447
  size: o
40340
- }, p = Kq(f), h = l.input, g = {
40448
+ }, p = tJ(f), h = l.input, g = {
40341
40449
  slots: c,
40342
40450
  slotProps: l
40343
40451
  }, [_, v] = b("root", {
40344
40452
  className: d(p.root, r),
40345
- elementType: qq,
40453
+ elementType: nJ,
40346
40454
  externalForwardedProps: g,
40347
40455
  ownerState: f,
40348
40456
  additionalProps: { sx: s }
40349
40457
  }), [y, x] = b("thumb", {
40350
40458
  className: p.thumb,
40351
- elementType: Xq,
40459
+ elementType: aJ,
40352
40460
  externalForwardedProps: g,
40353
40461
  ownerState: f
40354
40462
  }), S = /*#__PURE__*/ P(y, { ...x }), [C, w] = b("track", {
40355
40463
  className: p.track,
40356
- elementType: Yq,
40464
+ elementType: iJ,
40357
40465
  externalForwardedProps: g,
40358
40466
  ownerState: f
40359
40467
  });
40360
40468
  return /*#__PURE__*/ F(_, {
40361
40469
  ...v,
40362
- children: [/*#__PURE__*/ P(Jq, {
40470
+ children: [/*#__PURE__*/ P(rJ, {
40363
40471
  type: "checkbox",
40364
40472
  icon: S,
40365
40473
  checkedIcon: S,
@@ -40380,15 +40488,15 @@ var Gq = k("MuiSwitch", [
40380
40488
  }
40381
40489
  }), /*#__PURE__*/ P(C, { ...w })]
40382
40490
  });
40383
- }), Qq = M(ON)(() => ({ fontSize: "max(1.25rem, 18px)" })), $q = M(MN)(() => ({ fontSize: "max(1rem, 14px)" })), eJ = ({ text: e, title: t, onClose: n, onConfirm: r, open: i, onCloseText: a, onConfirmText: o, disableAutoFocus: s, disableEnforceFocus: c, disableRestoreFocus: l }) => /* @__PURE__ */ F(vM, {
40491
+ }), sJ = M(ON)(() => ({ fontSize: "max(1.25rem, 18px)" })), cJ = M(MN)(() => ({ fontSize: "max(1rem, 14px)" })), lJ = ({ text: e, title: t, onClose: n, onConfirm: r, open: i, onCloseText: a, onConfirmText: o, disableAutoFocus: s, disableEnforceFocus: c, disableRestoreFocus: l }) => /* @__PURE__ */ F(vM, {
40384
40492
  open: i,
40385
40493
  disableAutoFocus: s,
40386
40494
  disableEnforceFocus: c,
40387
40495
  disableRestoreFocus: l,
40388
40496
  onClose: n,
40389
40497
  children: [
40390
- t && /* @__PURE__ */ P(Qq, { children: t }),
40391
- e && /* @__PURE__ */ P(qj, { children: /* @__PURE__ */ P($q, { children: e }) }),
40498
+ t && /* @__PURE__ */ P(sJ, { children: t }),
40499
+ e && /* @__PURE__ */ P(qj, { children: /* @__PURE__ */ P(cJ, { children: e }) }),
40392
40500
  /* @__PURE__ */ F(lM, { children: [n && /* @__PURE__ */ P(u, {
40393
40501
  onClick: n,
40394
40502
  color: "primary",
@@ -40401,13 +40509,13 @@ var Gq = k("MuiSwitch", [
40401
40509
  })] })
40402
40510
  ]
40403
40511
  });
40404
- eJ.defaultProps = {
40512
+ lJ.defaultProps = {
40405
40513
  onCloseText: "CANCEL",
40406
40514
  onConfirmText: "OK",
40407
40515
  disableAutoFocus: !1,
40408
40516
  disableEnforceFocus: !1,
40409
40517
  disableRestoreFocus: !1
40410
- }, eJ.propTypes = {
40518
+ }, lJ.propTypes = {
40411
40519
  text: U.default.oneOfType([U.default.string, U.default.object]),
40412
40520
  title: U.default.string,
40413
40521
  onClose: U.default.func,
@@ -40421,18 +40529,18 @@ eJ.defaultProps = {
40421
40529
  };
40422
40530
  //#endregion
40423
40531
  //#region ../../lib-react/config-ui/dist/radio-with-label.js
40424
- var tJ = M(cq)(() => ({ "& .MuiFormControlLabel-label": {
40532
+ var uJ = M(_q)(() => ({ "& .MuiFormControlLabel-label": {
40425
40533
  left: "-5px",
40426
40534
  position: "relative"
40427
- } })), nJ = M(jq)(() => ({ color: `${D.tertiary()} !important` })), rJ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(tJ, {
40535
+ } })), dJ = M(Bq)(() => ({ color: `${O.tertiary()} !important` })), fJ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(uJ, {
40428
40536
  value: t,
40429
- control: /* @__PURE__ */ P(nJ, {
40537
+ control: /* @__PURE__ */ P(dJ, {
40430
40538
  checked: n,
40431
40539
  onChange: r
40432
40540
  }),
40433
40541
  label: e
40434
40542
  });
40435
- rJ.propTypes = {
40543
+ fJ.propTypes = {
40436
40544
  label: U.default.string,
40437
40545
  value: U.default.string,
40438
40546
  checked: U.default.bool,
@@ -40440,7 +40548,7 @@ rJ.propTypes = {
40440
40548
  };
40441
40549
  //#endregion
40442
40550
  //#region ../../lib-react/config-ui/dist/tabs/index.js
40443
- var iJ = M(TN)(() => ({})), aJ = class extends pt.Component {
40551
+ var pJ = M(TN)(() => ({})), mJ = class extends pt.Component {
40444
40552
  static propTypes = {
40445
40553
  className: U.default.string,
40446
40554
  contentClassName: U.default.string,
@@ -40461,7 +40569,7 @@ var iJ = M(TN)(() => ({})), aJ = class extends pt.Component {
40461
40569
  indicatorColor: "primary",
40462
40570
  value: e,
40463
40571
  onChange: this.handleChange,
40464
- children: pt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ P(iJ, { label: e.props.title }, t) : null)
40572
+ children: pt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ P(pJ, { label: e.props.title }, t) : null)
40465
40573
  }), /* @__PURE__ */ P("div", {
40466
40574
  className: r,
40467
40575
  style: i,
@@ -40469,7 +40577,7 @@ var iJ = M(TN)(() => ({})), aJ = class extends pt.Component {
40469
40577
  })]
40470
40578
  });
40471
40579
  }
40472
- }, oJ = M(cq)(({ theme: e, mini: t }) => ({
40580
+ }, hJ = M(_q)(({ theme: e, mini: t }) => ({
40473
40581
  margin: 0,
40474
40582
  marginLeft: 0,
40475
40583
  padding: 0,
@@ -40483,8 +40591,8 @@ var iJ = M(TN)(() => ({})), aJ = class extends pt.Component {
40483
40591
  fontSize: e.typography.fontSize - 3
40484
40592
  }
40485
40593
  }
40486
- })), sJ = M(nq)(({ theme: e, mini: t, error: n }) => ({
40487
- color: `${D.tertiary()} !important`,
40594
+ })), gJ = M(dq)(({ theme: e, mini: t, error: n }) => ({
40595
+ color: `${O.tertiary()} !important`,
40488
40596
  ...t && {
40489
40597
  margin: 0,
40490
40598
  padding: 0,
@@ -40492,9 +40600,9 @@ var iJ = M(TN)(() => ({})), aJ = class extends pt.Component {
40492
40600
  height: e.spacing(3)
40493
40601
  },
40494
40602
  ...n && { color: `${e.palette.error.main} !important` }
40495
- })), cJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ P(oJ, {
40603
+ })), _J = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ P(hJ, {
40496
40604
  mini: e,
40497
- control: /* @__PURE__ */ P(sJ, {
40605
+ control: /* @__PURE__ */ P(gJ, {
40498
40606
  checked: t,
40499
40607
  onChange: n,
40500
40608
  value: r,
@@ -40503,21 +40611,21 @@ var iJ = M(TN)(() => ({})), aJ = class extends pt.Component {
40503
40611
  }),
40504
40612
  label: i
40505
40613
  });
40506
- cJ.propTypes = {
40614
+ _J.propTypes = {
40507
40615
  mini: U.default.bool,
40508
40616
  checked: U.default.bool.isRequired,
40509
40617
  onChange: U.default.func.isRequired,
40510
40618
  value: U.default.string,
40511
40619
  label: U.default.string.isRequired,
40512
40620
  error: U.default.bool
40513
- }, cJ.defaultProps = {
40621
+ }, _J.defaultProps = {
40514
40622
  value: "",
40515
40623
  mini: !1,
40516
40624
  error: !1
40517
40625
  };
40518
40626
  //#endregion
40519
40627
  //#region ../../lib-react/config-ui/dist/number-text-field.js
40520
- var lJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), uJ = M(aM)(({ theme: e }) => ({
40628
+ var vJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), yJ = M(aM)(({ theme: e }) => ({
40521
40629
  marginRight: e.spacing(1),
40522
40630
  "& .MuiInputLabel-root": {
40523
40631
  width: "auto",
@@ -40539,11 +40647,11 @@ var lJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), uJ = M(aM)(({
40539
40647
  minHeight: "auto",
40540
40648
  padding: "6px 0 7px"
40541
40649
  }
40542
- })), dJ = (e, t) => {
40650
+ })), bJ = (e, t) => {
40543
40651
  if (!ot(e) && !ot(t)) return 0;
40544
40652
  if (!ot(e) && ot(t)) return t;
40545
40653
  if (ot(e)) return e;
40546
- }, fJ = class extends pt.Component {
40654
+ }, xJ = class extends pt.Component {
40547
40655
  static propTypes = {
40548
40656
  disabled: U.default.bool,
40549
40657
  className: U.default.string,
@@ -40569,13 +40677,13 @@ var lJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), uJ = M(aM)(({
40569
40677
  this.setState({ value: t });
40570
40678
  }
40571
40679
  clamp(e, t = this.props.min, n = this.props.max) {
40572
- return ot(e) ? (ot(n) && (e = Math.min(e, n)), ot(t) && (e = Math.max(e, t)), e) : dJ(t, n);
40680
+ return ot(e) ? (ot(n) && (e = Math.min(e, n)), ot(t) && (e = Math.max(e, t)), e) : bJ(t, n);
40573
40681
  }
40574
40682
  onBlur = (e) => {
40575
40683
  let t = e.target.value, n = parseFloat(t);
40576
- lJ("rawNumber: ", n);
40684
+ vJ("rawNumber: ", n);
40577
40685
  let r = this.clamp(n);
40578
- lJ("number: ", r), r !== this.state.value && (lJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40686
+ vJ("number: ", r), r !== this.state.value && (vJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40579
40687
  this.props.onChange(e, r);
40580
40688
  }));
40581
40689
  };
@@ -40595,7 +40703,7 @@ var lJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), uJ = M(aM)(({
40595
40703
  };
40596
40704
  render() {
40597
40705
  let { className: e, label: t, disabled: n, suffix: r, min: i, max: a, inputClassName: o, disableUnderline: s, showErrorWhenOutsideRange: c, variant: l } = this.props, u = c && this.getError();
40598
- return /* @__PURE__ */ P(uJ, {
40706
+ return /* @__PURE__ */ P(yJ, {
40599
40707
  variant: s ? "filled" : l || "standard",
40600
40708
  inputRef: (e) => {
40601
40709
  this.inputRef = e;
@@ -40614,7 +40722,7 @@ var lJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), uJ = M(aM)(({
40614
40722
  type: "number",
40615
40723
  className: e,
40616
40724
  slotProps: { input: {
40617
- endAdornment: r && /* @__PURE__ */ P(hq, {
40725
+ endAdornment: r && /* @__PURE__ */ P(wq, {
40618
40726
  position: "end",
40619
40727
  children: r
40620
40728
  }),
@@ -40630,19 +40738,19 @@ var lJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), uJ = M(aM)(({
40630
40738
  };
40631
40739
  //#endregion
40632
40740
  //#region ../../lib-react/config-ui/dist/two-choice.js
40633
- function pJ(e) {
40741
+ function SJ(e) {
40634
40742
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40635
40743
  }
40636
- function mJ(e, t) {
40637
- return !e || pJ(e) ? e : pJ(e.default) ? e.default : t && pJ(e[t]) ? e[t] : t && pJ(e[t]?.default) ? e[t].default : e;
40744
+ function CJ(e, t) {
40745
+ return !e || SJ(e) ? e : SJ(e.default) ? e.default : t && SJ(e[t]) ? e[t] : t && SJ(e[t]?.default) ? e[t].default : e;
40638
40746
  }
40639
- var hJ = mJ(We, "InputContainer") || mJ(vJ.InputContainer, "InputContainer"), gJ = ge, _J = gJ.default, vJ = _J && typeof _J == "object" ? _J : gJ, yJ = M("div")(({ theme: e, direction: t }) => ({
40747
+ var wJ = CJ(We, "InputContainer") || CJ(DJ.InputContainer, "InputContainer"), TJ = ge, EJ = TJ.default, DJ = EJ && typeof EJ == "object" ? EJ : TJ, OJ = M("div")(({ theme: e, direction: t }) => ({
40640
40748
  display: "flex",
40641
40749
  flexWrap: "wrap",
40642
40750
  paddingLeft: 0,
40643
40751
  marginTop: e.spacing(1),
40644
40752
  ...t === "vertical" && { flexDirection: "column" }
40645
- })), bJ = class extends pt.Component {
40753
+ })), kJ = class extends pt.Component {
40646
40754
  static propTypes = {
40647
40755
  header: U.default.string.isRequired,
40648
40756
  className: U.default.string,
@@ -40659,11 +40767,11 @@ var hJ = mJ(We, "InputContainer") || mJ(vJ.InputContainer, "InputContainer"), gJ
40659
40767
  let { header: e, className: t, customLabel: n, opts: r, value: i, direction: a } = this.props, o = r.map((e) => typeof e == "string" ? {
40660
40768
  label: e,
40661
40769
  value: e
40662
- } : e), s = n || rJ;
40663
- return /* @__PURE__ */ P(hJ, {
40770
+ } : e), s = n || fJ;
40771
+ return /* @__PURE__ */ P(wJ, {
40664
40772
  label: e,
40665
40773
  className: t,
40666
- children: /* @__PURE__ */ P(yJ, {
40774
+ children: /* @__PURE__ */ P(OJ, {
40667
40775
  direction: a,
40668
40776
  children: o.map((e, t) => /* @__PURE__ */ P(s, {
40669
40777
  value: e.value,
@@ -40674,7 +40782,7 @@ var hJ = mJ(We, "InputContainer") || mJ(vJ.InputContainer, "InputContainer"), gJ
40674
40782
  })
40675
40783
  });
40676
40784
  }
40677
- }, xJ = U.default.shape({
40785
+ }, AJ = U.default.shape({
40678
40786
  label: U.default.string,
40679
40787
  value: U.default.string
40680
40788
  });
@@ -40683,14 +40791,14 @@ var hJ = mJ(We, "InputContainer") || mJ(vJ.InputContainer, "InputContainer"), gJ
40683
40791
  header: U.default.string.isRequired,
40684
40792
  value: U.default.string.isRequired,
40685
40793
  onChange: U.default.func.isRequired,
40686
- one: U.default.oneOfType([xJ, U.default.string]),
40687
- two: U.default.oneOfType([xJ, U.default.string]),
40794
+ one: U.default.oneOfType([AJ, U.default.string]),
40795
+ two: U.default.oneOfType([AJ, U.default.string]),
40688
40796
  className: U.default.string,
40689
40797
  customLabel: U.default.func
40690
40798
  };
40691
40799
  render() {
40692
40800
  let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
40693
- return /* @__PURE__ */ P(bJ, {
40801
+ return /* @__PURE__ */ P(kJ, {
40694
40802
  customLabel: i,
40695
40803
  header: n,
40696
40804
  className: r,
@@ -40702,21 +40810,21 @@ var hJ = mJ(We, "InputContainer") || mJ(vJ.InputContainer, "InputContainer"), gJ
40702
40810
  });
40703
40811
  //#endregion
40704
40812
  //#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
40705
- var SJ = Object.defineProperty, CJ = (e, t) => {
40813
+ var jJ = Object.defineProperty, MJ = (e, t) => {
40706
40814
  let n = {};
40707
- for (var r in e) SJ(n, r, {
40815
+ for (var r in e) jJ(n, r, {
40708
40816
  get: e[r],
40709
40817
  enumerable: !0
40710
40818
  });
40711
- return t || SJ(n, Symbol.toStringTag, { value: "Module" }), n;
40712
- }, wJ = M("div")(() => ({
40819
+ return t || jJ(n, Symbol.toStringTag, { value: "Module" }), n;
40820
+ }, NJ = M("div")(() => ({
40713
40821
  display: "flex",
40714
40822
  flexDirection: "column",
40715
40823
  position: "relative"
40716
- })), TJ = M("div")(() => ({
40824
+ })), PJ = M("div")(() => ({
40717
40825
  display: "flex",
40718
40826
  justifyContent: "space-between"
40719
- })), EJ = M("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), DJ = M("div")(() => ({ flex: "1" })), OJ = M("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), kJ = class extends pt.Component {
40827
+ })), FJ = M("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), IJ = M("div")(() => ({ flex: "1" })), LJ = M("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), RJ = class extends pt.Component {
40720
40828
  static propTypes = {
40721
40829
  mode: U.default.oneOf(["tabbed", "inline"]),
40722
40830
  secondary: U.default.oneOfType([U.default.arrayOf(U.default.node), U.default.node]),
@@ -40734,7 +40842,7 @@ var SJ = Object.defineProperty, CJ = (e, t) => {
40734
40842
  } catch (e) {
40735
40843
  console.log(e.toString());
40736
40844
  }
40737
- return /* @__PURE__ */ F(wJ, {
40845
+ return /* @__PURE__ */ F(NJ, {
40738
40846
  style: {
40739
40847
  minHeight: i,
40740
40848
  minWidth: a,
@@ -40742,28 +40850,28 @@ var SJ = Object.defineProperty, CJ = (e, t) => {
40742
40850
  maxWidth: s
40743
40851
  },
40744
40852
  children: [
40745
- e === "inline" && /* @__PURE__ */ F(TJ, { children: [/* @__PURE__ */ P(DJ, {
40853
+ e === "inline" && /* @__PURE__ */ F(PJ, { children: [/* @__PURE__ */ P(IJ, {
40746
40854
  className: "design-container",
40747
40855
  children: n
40748
- }), l && /* @__PURE__ */ P(OJ, {
40856
+ }), l && /* @__PURE__ */ P(LJ, {
40749
40857
  className: "settings-container",
40750
40858
  children: t
40751
40859
  })] }),
40752
- e === "tabbed" && l && /* @__PURE__ */ F(aJ, {
40860
+ e === "tabbed" && l && /* @__PURE__ */ F(mJ, {
40753
40861
  onChange: this.onTabsChange,
40754
40862
  contentClassName: "content-container",
40755
40863
  indicatorColor: "primary",
40756
- children: [/* @__PURE__ */ P(EJ, {
40864
+ children: [/* @__PURE__ */ P(FJ, {
40757
40865
  title: "Design",
40758
40866
  className: "design-container",
40759
40867
  children: n
40760
- }), /* @__PURE__ */ P(EJ, {
40868
+ }), /* @__PURE__ */ P(FJ, {
40761
40869
  title: "Settings",
40762
40870
  className: "settings-container",
40763
40871
  children: t
40764
40872
  })]
40765
40873
  }),
40766
- e === "tabbed" && !l && /* @__PURE__ */ P(EJ, {
40874
+ e === "tabbed" && !l && /* @__PURE__ */ P(FJ, {
40767
40875
  className: "design-container",
40768
40876
  children: n
40769
40877
  })
@@ -40773,18 +40881,18 @@ var SJ = Object.defineProperty, CJ = (e, t) => {
40773
40881
  };
40774
40882
  //#endregion
40775
40883
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
40776
- function AJ() {
40777
- return AJ = Object.assign ? Object.assign.bind() : function(e) {
40884
+ function zJ() {
40885
+ return zJ = Object.assign ? Object.assign.bind() : function(e) {
40778
40886
  for (var t = 1; t < arguments.length; t++) {
40779
40887
  var n = arguments[t];
40780
40888
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
40781
40889
  }
40782
40890
  return e;
40783
- }, AJ.apply(null, arguments);
40891
+ }, zJ.apply(null, arguments);
40784
40892
  }
40785
40893
  //#endregion
40786
40894
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
40787
- function jJ(e, t) {
40895
+ function BJ(e, t) {
40788
40896
  if (e == null) return {};
40789
40897
  var n = {};
40790
40898
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -40795,19 +40903,19 @@ function jJ(e, t) {
40795
40903
  }
40796
40904
  //#endregion
40797
40905
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
40798
- function MJ(e, t) {
40799
- return MJ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
40906
+ function VJ(e, t) {
40907
+ return VJ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
40800
40908
  return e.__proto__ = t, e;
40801
- }, MJ(e, t);
40909
+ }, VJ(e, t);
40802
40910
  }
40803
40911
  //#endregion
40804
40912
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
40805
- function NJ(e, t) {
40806
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, MJ(e, t);
40913
+ function HJ(e, t) {
40914
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, VJ(e, t);
40807
40915
  }
40808
40916
  //#endregion
40809
40917
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
40810
- var PJ = (function() {
40918
+ var UJ = (function() {
40811
40919
  if (typeof Map < "u") return Map;
40812
40920
  function e(e, t) {
40813
40921
  var n = -1;
@@ -40846,34 +40954,34 @@ var PJ = (function() {
40846
40954
  }
40847
40955
  }, t;
40848
40956
  }();
40849
- })(), FJ = typeof window < "u" && typeof document < "u" && window.document === document, IJ = (function() {
40957
+ })(), WJ = typeof window < "u" && typeof document < "u" && window.document === document, GJ = (function() {
40850
40958
  return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
40851
- })(), LJ = (function() {
40852
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(IJ) : function(e) {
40959
+ })(), KJ = (function() {
40960
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(GJ) : function(e) {
40853
40961
  return setTimeout(function() {
40854
40962
  return e(Date.now());
40855
40963
  }, 1e3 / 60);
40856
40964
  };
40857
- })(), RJ = 2;
40858
- function zJ(e, t) {
40965
+ })(), qJ = 2;
40966
+ function JJ(e, t) {
40859
40967
  var n = !1, r = !1, i = 0;
40860
40968
  function a() {
40861
40969
  n && (n = !1, e()), r && s();
40862
40970
  }
40863
40971
  function o() {
40864
- LJ(a);
40972
+ KJ(a);
40865
40973
  }
40866
40974
  function s() {
40867
40975
  var e = Date.now();
40868
40976
  if (n) {
40869
- if (e - i < RJ) return;
40977
+ if (e - i < qJ) return;
40870
40978
  r = !0;
40871
40979
  } else n = !0, r = !1, setTimeout(o, t);
40872
40980
  i = e;
40873
40981
  }
40874
40982
  return s;
40875
40983
  }
40876
- var BJ = 20, VJ = [
40984
+ var YJ = 20, XJ = [
40877
40985
  "top",
40878
40986
  "right",
40879
40987
  "bottom",
@@ -40882,9 +40990,9 @@ var BJ = 20, VJ = [
40882
40990
  "height",
40883
40991
  "size",
40884
40992
  "weight"
40885
- ], HJ = typeof MutationObserver < "u", UJ = function() {
40993
+ ], ZJ = typeof MutationObserver < "u", QJ = function() {
40886
40994
  function e() {
40887
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = zJ(this.refresh.bind(this), BJ);
40995
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = JJ(this.refresh.bind(this), YJ);
40888
40996
  }
40889
40997
  return e.prototype.addObserver = function(e) {
40890
40998
  ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
@@ -40901,23 +41009,23 @@ var BJ = 20, VJ = [
40901
41009
  return e.broadcastActive();
40902
41010
  }), e.length > 0;
40903
41011
  }, e.prototype.connect_ = function() {
40904
- !FJ || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), HJ ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
41012
+ !WJ || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), ZJ ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
40905
41013
  attributes: !0,
40906
41014
  childList: !0,
40907
41015
  characterData: !0,
40908
41016
  subtree: !0
40909
41017
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
40910
41018
  }, e.prototype.disconnect_ = function() {
40911
- !FJ || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
41019
+ !WJ || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
40912
41020
  }, e.prototype.onTransitionEnd_ = function(e) {
40913
41021
  var t = e.propertyName, n = t === void 0 ? "" : t;
40914
- VJ.some(function(e) {
41022
+ XJ.some(function(e) {
40915
41023
  return !!~n.indexOf(e);
40916
41024
  }) && this.refresh();
40917
41025
  }, e.getInstance = function() {
40918
41026
  return this.instance_ ||= new e(), this.instance_;
40919
41027
  }, e.instance_ = null, e;
40920
- }(), WJ = (function(e, t) {
41028
+ }(), $J = (function(e, t) {
40921
41029
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
40922
41030
  var i = r[n];
40923
41031
  Object.defineProperty(e, i, {
@@ -40928,19 +41036,19 @@ var BJ = 20, VJ = [
40928
41036
  });
40929
41037
  }
40930
41038
  return e;
40931
- }), GJ = (function(e) {
40932
- return e && e.ownerDocument && e.ownerDocument.defaultView || IJ;
40933
- }), KJ = nY(0, 0, 0, 0);
40934
- function qJ(e) {
41039
+ }), eY = (function(e) {
41040
+ return e && e.ownerDocument && e.ownerDocument.defaultView || GJ;
41041
+ }), tY = dY(0, 0, 0, 0);
41042
+ function nY(e) {
40935
41043
  return parseFloat(e) || 0;
40936
41044
  }
40937
- function JJ(e) {
41045
+ function rY(e) {
40938
41046
  return [...arguments].slice(1).reduce(function(t, n) {
40939
41047
  var r = e["border-" + n + "-width"];
40940
- return t + qJ(r);
41048
+ return t + nY(r);
40941
41049
  }, 0);
40942
41050
  }
40943
- function YJ(e) {
41051
+ function iY(e) {
40944
41052
  for (var t = [
40945
41053
  "top",
40946
41054
  "right",
@@ -40948,40 +41056,40 @@ function YJ(e) {
40948
41056
  "left"
40949
41057
  ], n = {}, r = 0, i = t; r < i.length; r++) {
40950
41058
  var a = i[r], o = e["padding-" + a];
40951
- n[a] = qJ(o);
41059
+ n[a] = nY(o);
40952
41060
  }
40953
41061
  return n;
40954
41062
  }
40955
- function XJ(e) {
41063
+ function aY(e) {
40956
41064
  var t = e.getBBox();
40957
- return nY(0, 0, t.width, t.height);
41065
+ return dY(0, 0, t.width, t.height);
40958
41066
  }
40959
- function ZJ(e) {
41067
+ function oY(e) {
40960
41068
  var t = e.clientWidth, n = e.clientHeight;
40961
- if (!t && !n) return KJ;
40962
- var r = GJ(e).getComputedStyle(e), i = YJ(r), a = i.left + i.right, o = i.top + i.bottom, s = qJ(r.width), c = qJ(r.height);
40963
- if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= JJ(r, "left", "right") + a), Math.round(c + o) !== n && (c -= JJ(r, "top", "bottom") + o)), !$J(e)) {
41069
+ if (!t && !n) return tY;
41070
+ var r = eY(e).getComputedStyle(e), i = iY(r), a = i.left + i.right, o = i.top + i.bottom, s = nY(r.width), c = nY(r.height);
41071
+ if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= rY(r, "left", "right") + a), Math.round(c + o) !== n && (c -= rY(r, "top", "bottom") + o)), !cY(e)) {
40964
41072
  var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
40965
41073
  Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
40966
41074
  }
40967
- return nY(i.left, i.top, s, c);
41075
+ return dY(i.left, i.top, s, c);
40968
41076
  }
40969
- var QJ = (function() {
41077
+ var sY = (function() {
40970
41078
  return typeof SVGGraphicsElement < "u" ? function(e) {
40971
- return e instanceof GJ(e).SVGGraphicsElement;
41079
+ return e instanceof eY(e).SVGGraphicsElement;
40972
41080
  } : function(e) {
40973
- return e instanceof GJ(e).SVGElement && typeof e.getBBox == "function";
41081
+ return e instanceof eY(e).SVGElement && typeof e.getBBox == "function";
40974
41082
  };
40975
41083
  })();
40976
- function $J(e) {
40977
- return e === GJ(e).document.documentElement;
41084
+ function cY(e) {
41085
+ return e === eY(e).document.documentElement;
40978
41086
  }
40979
- function eY(e) {
40980
- return FJ ? QJ(e) ? XJ(e) : ZJ(e) : KJ;
41087
+ function lY(e) {
41088
+ return WJ ? sY(e) ? aY(e) : oY(e) : tY;
40981
41089
  }
40982
- function tY(e) {
41090
+ function uY(e) {
40983
41091
  var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
40984
- return WJ(a, {
41092
+ return $J(a, {
40985
41093
  x: t,
40986
41094
  y: n,
40987
41095
  width: r,
@@ -40992,7 +41100,7 @@ function tY(e) {
40992
41100
  left: t
40993
41101
  }), a;
40994
41102
  }
40995
- function nY(e, t, n, r) {
41103
+ function dY(e, t, n, r) {
40996
41104
  return {
40997
41105
  x: e,
40998
41106
  y: t,
@@ -41000,42 +41108,42 @@ function nY(e, t, n, r) {
41000
41108
  height: r
41001
41109
  };
41002
41110
  }
41003
- var rY = function() {
41111
+ var fY = function() {
41004
41112
  function e(e) {
41005
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = nY(0, 0, 0, 0), this.target = e;
41113
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = dY(0, 0, 0, 0), this.target = e;
41006
41114
  }
41007
41115
  return e.prototype.isActive = function() {
41008
- var e = eY(this.target);
41116
+ var e = lY(this.target);
41009
41117
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
41010
41118
  }, e.prototype.broadcastRect = function() {
41011
41119
  var e = this.contentRect_;
41012
41120
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
41013
41121
  }, e;
41014
- }(), iY = function() {
41122
+ }(), pY = function() {
41015
41123
  function e(e, t) {
41016
- var n = tY(t);
41017
- WJ(this, {
41124
+ var n = uY(t);
41125
+ $J(this, {
41018
41126
  target: e,
41019
41127
  contentRect: n
41020
41128
  });
41021
41129
  }
41022
41130
  return e;
41023
- }(), aY = function() {
41131
+ }(), mY = function() {
41024
41132
  function e(e, t, n) {
41025
- if (this.activeObservations_ = [], this.observations_ = new PJ(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
41133
+ if (this.activeObservations_ = [], this.observations_ = new UJ(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
41026
41134
  this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
41027
41135
  }
41028
41136
  return e.prototype.observe = function(e) {
41029
41137
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41030
41138
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41031
- if (!(e instanceof GJ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41139
+ if (!(e instanceof eY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41032
41140
  var t = this.observations_;
41033
- t.has(e) || (t.set(e, new rY(e)), this.controller_.addObserver(this), this.controller_.refresh());
41141
+ t.has(e) || (t.set(e, new fY(e)), this.controller_.addObserver(this), this.controller_.refresh());
41034
41142
  }
41035
41143
  }, e.prototype.unobserve = function(e) {
41036
41144
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41037
41145
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41038
- if (!(e instanceof GJ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41146
+ if (!(e instanceof eY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41039
41147
  var t = this.observations_;
41040
41148
  t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
41041
41149
  }
@@ -41049,7 +41157,7 @@ var rY = function() {
41049
41157
  }, e.prototype.broadcastActive = function() {
41050
41158
  if (this.hasActive()) {
41051
41159
  var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
41052
- return new iY(e.target, e.broadcastRect());
41160
+ return new pY(e.target, e.broadcastRect());
41053
41161
  });
41054
41162
  this.callback_.call(e, t, e), this.clearActive();
41055
41163
  }
@@ -41058,12 +41166,12 @@ var rY = function() {
41058
41166
  }, e.prototype.hasActive = function() {
41059
41167
  return this.activeObservations_.length > 0;
41060
41168
  }, e;
41061
- }(), oY = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new PJ(), sY = function() {
41169
+ }(), hY = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new UJ(), gY = function() {
41062
41170
  function e(t) {
41063
41171
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
41064
41172
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41065
- var n = new aY(t, UJ.getInstance(), this);
41066
- oY.set(this, n);
41173
+ var n = new mY(t, QJ.getInstance(), this);
41174
+ hY.set(this, n);
41067
41175
  }
41068
41176
  return e;
41069
41177
  }();
@@ -41072,27 +41180,27 @@ var rY = function() {
41072
41180
  "unobserve",
41073
41181
  "disconnect"
41074
41182
  ].forEach(function(e) {
41075
- sY.prototype[e] = function() {
41183
+ gY.prototype[e] = function() {
41076
41184
  var t;
41077
- return (t = oY.get(this))[e].apply(t, arguments);
41185
+ return (t = hY.get(this))[e].apply(t, arguments);
41078
41186
  };
41079
41187
  });
41080
- var cY = (function() {
41081
- return IJ.ResizeObserver === void 0 ? sY : IJ.ResizeObserver;
41082
- })(), lY = [
41188
+ var _Y = (function() {
41189
+ return GJ.ResizeObserver === void 0 ? gY : GJ.ResizeObserver;
41190
+ })(), vY = [
41083
41191
  "client",
41084
41192
  "offset",
41085
41193
  "scroll",
41086
41194
  "bounds",
41087
41195
  "margin"
41088
41196
  ];
41089
- function uY(e) {
41197
+ function yY(e) {
41090
41198
  var t = [];
41091
- return lY.forEach(function(n) {
41199
+ return vY.forEach(function(n) {
41092
41200
  e[n] && t.push(n);
41093
41201
  }), t;
41094
41202
  }
41095
- function dY(e, t) {
41203
+ function bY(e, t) {
41096
41204
  var n = {};
41097
41205
  if (t.indexOf("client") > -1 && (n.client = {
41098
41206
  top: e.clientTop,
@@ -41131,14 +41239,14 @@ function dY(e, t) {
41131
41239
  }
41132
41240
  return n;
41133
41241
  }
41134
- function fY(e) {
41242
+ function xY(e) {
41135
41243
  return e && e.ownerDocument && e.ownerDocument.defaultView || window;
41136
41244
  }
41137
- function pY(e) {
41245
+ function SY(e) {
41138
41246
  return function(t) {
41139
41247
  var n, r;
41140
41248
  return r = n = /*#__PURE__*/ function(n) {
41141
- NJ(r, n);
41249
+ HJ(r, n);
41142
41250
  function r() {
41143
41251
  var t, r = [...arguments];
41144
41252
  return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
@@ -41149,24 +41257,24 @@ function pY(e) {
41149
41257
  bounds: {},
41150
41258
  margin: {}
41151
41259
  } }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
41152
- var r = dY(t._node, e || uY(t.props));
41260
+ var r = bY(t._node, e || yY(t.props));
41153
41261
  n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
41154
41262
  t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
41155
41263
  });
41156
41264
  }, t._handleRef = function(e) {
41157
- t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = fY(t._node);
41265
+ t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = xY(t._node);
41158
41266
  var n = t.props.innerRef;
41159
41267
  n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
41160
41268
  }, t;
41161
41269
  }
41162
41270
  var i = r.prototype;
41163
41271
  return i.componentDidMount = function() {
41164
- this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new cY(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(dY(this._node, e || uY(this.props))));
41272
+ this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new _Y(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(bY(this._node, e || yY(this.props))));
41165
41273
  }, i.componentWillUnmount = function() {
41166
41274
  this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
41167
41275
  }, i.render = function() {
41168
41276
  var e = this.props;
41169
- return e.innerRef, e.onResize, gt(t, AJ({}, jJ(e, ["innerRef", "onResize"]), {
41277
+ return e.innerRef, e.onResize, gt(t, zJ({}, BJ(e, ["innerRef", "onResize"]), {
41170
41278
  measureRef: this._handleRef,
41171
41279
  measure: this.measure,
41172
41280
  contentRect: this.state.contentRect
@@ -41183,7 +41291,7 @@ function pY(e) {
41183
41291
  }, r;
41184
41292
  };
41185
41293
  }
41186
- var mY = pY()(function(e) {
41294
+ var CY = SY()(function(e) {
41187
41295
  var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
41188
41296
  return i({
41189
41297
  measure: t,
@@ -41191,12 +41299,12 @@ var mY = pY()(function(e) {
41191
41299
  contentRect: r
41192
41300
  });
41193
41301
  });
41194
- mY.displayName = "Measure", mY.propTypes.children = U.default.func;
41302
+ CY.displayName = "Measure", CY.propTypes.children = U.default.func;
41195
41303
  //#endregion
41196
41304
  //#region ../../lib-react/config-ui/dist/layout/settings-box.js
41197
- var hY = M("div")(() => ({
41198
- backgroundColor: D.white(),
41199
- border: `2px solid ${D.border()}`,
41305
+ var wY = M("div")(() => ({
41306
+ backgroundColor: O.white(),
41307
+ border: `2px solid ${O.border()}`,
41200
41308
  display: "flex",
41201
41309
  flexDirection: "column",
41202
41310
  justifyContent: "flex-start",
@@ -41204,7 +41312,7 @@ var hY = M("div")(() => ({
41204
41312
  maxWidth: "300px",
41205
41313
  padding: "20px 4px 4px 20px",
41206
41314
  zIndex: 99
41207
- })), gY = class extends pt.Component {
41315
+ })), TY = class extends pt.Component {
41208
41316
  static propTypes = {
41209
41317
  className: U.default.string,
41210
41318
  children: U.default.oneOfType([U.default.arrayOf(U.default.node), U.default.node]).isRequired
@@ -41212,19 +41320,19 @@ var hY = M("div")(() => ({
41212
41320
  static defaultProps = {};
41213
41321
  render() {
41214
41322
  let { className: e, children: t } = this.props;
41215
- return /* @__PURE__ */ P(hY, {
41323
+ return /* @__PURE__ */ P(wY, {
41216
41324
  className: e,
41217
41325
  children: t
41218
41326
  });
41219
41327
  }
41220
- }, _Y = he({
41328
+ }, EY = he({
41221
41329
  typography: { fontFamily: "inherit" },
41222
41330
  components: { MuiButton: { styleOverrides: { contained: {
41223
41331
  backgroundColor: "#e0e0e0",
41224
41332
  color: "#000000",
41225
41333
  "&:hover": { backgroundColor: "#bdbdbd" }
41226
41334
  } } } }
41227
- }), vY = class extends pt.Component {
41335
+ }), DY = class extends pt.Component {
41228
41336
  static propTypes = {
41229
41337
  children: U.default.oneOfType([
41230
41338
  U.default.string,
@@ -41257,19 +41365,19 @@ var hY = M("div")(() => ({
41257
41365
  return /* @__PURE__ */ P(w, {
41258
41366
  injectFirst: !0,
41259
41367
  children: /* @__PURE__ */ P(je, {
41260
- theme: _Y,
41261
- children: /* @__PURE__ */ P(mY, {
41368
+ theme: EY,
41369
+ children: /* @__PURE__ */ P(CY, {
41262
41370
  bounds: !0,
41263
41371
  onResize: this.onResize,
41264
41372
  children: ({ measureRef: e }) => {
41265
- let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ P(gY, {
41373
+ let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ P(TY, {
41266
41374
  className: "settings-box",
41267
41375
  children: n
41268
41376
  }) : n;
41269
41377
  return /* @__PURE__ */ F("div", {
41270
41378
  ref: e,
41271
41379
  className: "main-container extraCSSRules",
41272
- children: [a?.rules ? /* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ P(kJ, {
41380
+ children: [a?.rules ? /* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ P(RJ, {
41273
41381
  mode: o,
41274
41382
  secondary: s,
41275
41383
  dimensions: i,
@@ -41281,27 +41389,27 @@ var hY = M("div")(() => ({
41281
41389
  })
41282
41390
  });
41283
41391
  }
41284
- }, yY = pY("bounds")(vY), bY = /* @__PURE__ */ CJ({
41285
- ConfigLayout: () => yY,
41286
- LayoutContents: () => kJ
41287
- }), xY = M("div")(() => ({
41392
+ }, OY = SY("bounds")(DY), kY = /* @__PURE__ */ MJ({
41393
+ ConfigLayout: () => OY,
41394
+ LayoutContents: () => RJ
41395
+ }), AY = M("div")(() => ({
41288
41396
  display: "flex",
41289
41397
  width: "100%",
41290
41398
  justifyContent: "space-between"
41291
- })), SY = M(Je)(({ theme: e }) => ({
41399
+ })), jY = M(Je)(({ theme: e }) => ({
41292
41400
  color: "rgba(0, 0, 0, 0.89)",
41293
41401
  fontSize: e.typography.fontSize,
41294
41402
  paddingTop: e.spacing(2)
41295
- })), CY = M(Zq)(({ checked: e }) => ({
41296
- "&.Mui-checked .MuiSwitch-thumb": { color: `${D.tertiary()} !important` },
41297
- "&.Mui-checked .MuiSwitch-track": { backgroundColor: `${D.tertiaryLight()} !important` },
41298
- "& .MuiSwitch-track": { backgroundColor: e ? `${D.tertiaryLight()} !important` : void 0 }
41299
- })), wY = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ F(xY, { children: [/* @__PURE__ */ P(SY, { children: n }), /* @__PURE__ */ P(CY, {
41403
+ })), MY = M(oJ)(({ checked: e }) => ({
41404
+ "&.Mui-checked .MuiSwitch-thumb": { color: `${O.tertiary()} !important` },
41405
+ "&.Mui-checked .MuiSwitch-track": { backgroundColor: `${O.tertiaryLight()} !important` },
41406
+ "& .MuiSwitch-track": { backgroundColor: e ? `${O.tertiaryLight()} !important` : void 0 }
41407
+ })), NY = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ F(AY, { children: [/* @__PURE__ */ P(jY, { children: n }), /* @__PURE__ */ P(MY, {
41300
41408
  checked: e,
41301
41409
  disabled: t,
41302
41410
  onChange: (e) => r(e.target.checked)
41303
41411
  })] });
41304
- wY.propTypes = {
41412
+ NY.propTypes = {
41305
41413
  checked: U.default.bool,
41306
41414
  disabled: U.default.bool,
41307
41415
  label: U.default.string.isRequired,
@@ -41309,20 +41417,20 @@ wY.propTypes = {
41309
41417
  };
41310
41418
  //#endregion
41311
41419
  //#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
41312
- var TY = M(cq)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
41420
+ var PY = M(_q)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
41313
41421
  color: "rgba(0, 0, 0, 0.89)",
41314
41422
  fontSize: e.typography.fontSize - 2,
41315
41423
  left: "-5px",
41316
41424
  position: "relative"
41317
- } })), EY = M(jq)(() => ({ color: `${D.tertiary()} !important` })), DY = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(TY, {
41425
+ } })), FY = M(Bq)(() => ({ color: `${O.tertiary()} !important` })), IY = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(PY, {
41318
41426
  value: t,
41319
- control: /* @__PURE__ */ P(EY, {
41427
+ control: /* @__PURE__ */ P(FY, {
41320
41428
  checked: n,
41321
41429
  onChange: r
41322
41430
  }),
41323
41431
  label: e
41324
41432
  });
41325
- DY.propTypes = {
41433
+ IY.propTypes = {
41326
41434
  label: U.default.string,
41327
41435
  value: U.default.string,
41328
41436
  checked: U.default.bool,
@@ -41330,26 +41438,26 @@ DY.propTypes = {
41330
41438
  };
41331
41439
  //#endregion
41332
41440
  //#region ../../lib-react/config-ui/dist/settings/panel.js
41333
- var OY = (0, Vt.default)("pie-lib:config-ui:settings:panel"), kY = {
41441
+ var LY = (0, Vt.default)("pie-lib:config-ui:settings:panel"), RY = {
41334
41442
  label: U.default.string,
41335
41443
  value: U.default.string
41336
- }, AY = {
41444
+ }, zY = {
41337
41445
  label: U.default.string,
41338
41446
  value: U.default.string,
41339
41447
  onChange: U.default.func
41340
- }, jY = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ P(cJ, {
41448
+ }, BY = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ P(_J, {
41341
41449
  checked: t,
41342
41450
  label: e,
41343
41451
  onChange: (e) => {
41344
41452
  n(e.target.checked);
41345
41453
  }
41346
41454
  });
41347
- jY.propTypes = {
41455
+ BY.propTypes = {
41348
41456
  label: U.default.string,
41349
41457
  value: U.default.bool,
41350
41458
  onChange: U.default.func
41351
41459
  };
41352
- var MY = M(bJ)(({ theme: e }) => ({
41460
+ var VY = M(kJ)(({ theme: e }) => ({
41353
41461
  marginTop: e.spacing(.5),
41354
41462
  paddingBottom: e.spacing(.5),
41355
41463
  width: "100%",
@@ -41360,29 +41468,29 @@ var MY = M(bJ)(({ theme: e }) => ({
41360
41468
  marginTop: e.spacing(2.5)
41361
41469
  },
41362
41470
  "& > div": { marginTop: e.spacing(2.5) }
41363
- })), NY = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ P(MY, {
41471
+ })), HY = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ P(VY, {
41364
41472
  direction: "horizontal",
41365
- customLabel: DY,
41473
+ customLabel: IY,
41366
41474
  value: t,
41367
41475
  header: e,
41368
41476
  opts: r,
41369
41477
  onChange: n
41370
41478
  });
41371
- NY.propTypes = {
41372
- ...AY,
41373
- choices: U.default.arrayOf(U.default.shape(kY))
41479
+ HY.propTypes = {
41480
+ ...zY,
41481
+ choices: U.default.arrayOf(U.default.shape(RY))
41374
41482
  };
41375
- var PY = NY, FY = M("p")(({ theme: e }) => ({
41483
+ var UY = HY, WY = M("p")(({ theme: e }) => ({
41376
41484
  margin: 0,
41377
41485
  fontSize: e.typography.fontSize
41378
- })), IY = M(ZA)(({ theme: e }) => ({
41486
+ })), GY = M(ZA)(({ theme: e }) => ({
41379
41487
  marginTop: e.spacing(.5),
41380
41488
  border: "2px solid lightgrey",
41381
41489
  padding: `0 ${e.spacing(1)}`,
41382
41490
  borderRadius: "4px"
41383
- })), LY = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41491
+ })), KY = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41384
41492
  let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
41385
- return /* @__PURE__ */ F("div", { children: [e && /* @__PURE__ */ P(FY, { children: e }), /* @__PURE__ */ P(IY, {
41493
+ return /* @__PURE__ */ F("div", { children: [e && /* @__PURE__ */ P(WY, { children: e }), /* @__PURE__ */ P(GY, {
41386
41494
  value: t || r && r[0],
41387
41495
  onChange: ({ target: e }) => n(e.value),
41388
41496
  input: /* @__PURE__ */ P(OA, { id: `dropdown-${e}` }),
@@ -41397,14 +41505,14 @@ var PY = NY, FY = M("p")(({ theme: e }) => ({
41397
41505
  }, t))
41398
41506
  })] });
41399
41507
  };
41400
- LY.propTypes = {
41401
- ...AY,
41508
+ KY.propTypes = {
41509
+ ...zY,
41402
41510
  choices: U.default.arrayOf(U.default.string)
41403
41511
  };
41404
- var RY = M(Nk)(({ theme: e }) => ({
41512
+ var qY = M(Nk)(({ theme: e }) => ({
41405
41513
  marginRight: e.spacing(3),
41406
41514
  marginTop: e.spacing(1)
41407
- })), zY = ({ label: e }) => /* @__PURE__ */ P(RY, { children: e }), BY = M(fJ)(({ theme: e }) => ({
41515
+ })), JY = ({ label: e }) => /* @__PURE__ */ P(qY, { children: e }), YY = M(xJ)(({ theme: e }) => ({
41408
41516
  width: "35%",
41409
41517
  marginRight: e.spacing(3),
41410
41518
  marginTop: e.spacing(1),
@@ -41415,7 +41523,7 @@ var RY = M(Nk)(({ theme: e }) => ({
41415
41523
  padding: `0 ${e.spacing(1)}`,
41416
41524
  backgroundColor: "transparent"
41417
41525
  }
41418
- })), VY = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ P(BY, {
41526
+ })), XY = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ P(YY, {
41419
41527
  variant: "standard",
41420
41528
  label: e || "Label",
41421
41529
  value: t,
@@ -41426,45 +41534,45 @@ var RY = M(Nk)(({ theme: e }) => ({
41426
41534
  showErrorWhenOutsideRange: !0,
41427
41535
  disableUnderline: !0
41428
41536
  });
41429
- VY.propTypes = {
41430
- ...AY,
41537
+ XY.propTypes = {
41538
+ ...zY,
41431
41539
  suffix: U.default.string,
41432
41540
  min: U.default.number,
41433
41541
  max: U.default.number,
41434
41542
  value: U.default.number
41435
- }, zY.propTypes = { ...AY };
41436
- var HY = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ P(wY, {
41543
+ }, JY.propTypes = { ...zY };
41544
+ var ZY = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ P(NY, {
41437
41545
  label: t,
41438
41546
  checked: !!n,
41439
41547
  disabled: !!e,
41440
41548
  toggle: r
41441
41549
  });
41442
- HY.propTypes = {
41443
- ...AY,
41550
+ ZY.propTypes = {
41551
+ ...zY,
41444
41552
  value: U.default.bool
41445
41553
  };
41446
- var UY = {
41447
- toggle: HY,
41448
- radio: PY,
41449
- dropdown: LY,
41450
- numberField: VY,
41451
- checkbox: jY,
41452
- textField: zY
41453
- }, WY = M("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), GY = M("div")(({ theme: e }) => ({
41554
+ var QY = {
41555
+ toggle: ZY,
41556
+ radio: UY,
41557
+ dropdown: KY,
41558
+ numberField: XY,
41559
+ checkbox: BY,
41560
+ textField: JY
41561
+ }, $Y = M("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), eX = M("div")(({ theme: e }) => ({
41454
41562
  color: "#495B8F",
41455
41563
  fontSize: e.typography.fontSize + 2,
41456
41564
  fontWeight: 600,
41457
41565
  marginBottom: e.spacing(1)
41458
- })), KY = M("p")(({ theme: e }) => ({
41566
+ })), tX = M("p")(({ theme: e }) => ({
41459
41567
  fontSize: e.typography.fontSize,
41460
41568
  marginBottom: 0
41461
- })), qY = (e) => {
41569
+ })), nX = (e) => {
41462
41570
  let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
41463
41571
  let { isConfigProperty: o, ...s } = at(e, r || n), c = at(o ? i : t, n), l = {
41464
41572
  ...s,
41465
41573
  key: n,
41466
41574
  value: c
41467
- }, u = UY[l.type];
41575
+ }, u = QY[l.type];
41468
41576
  return /* @__PURE__ */ P(u, {
41469
41577
  ...l,
41470
41578
  onChange: (e) => a(n, e, o)
@@ -41473,18 +41581,18 @@ var UY = {
41473
41581
  let n = e[t];
41474
41582
  if (!n) return null;
41475
41583
  let { type: r, label: i, fields: a, choices: s } = n;
41476
- return r === "numberFields" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P(KY, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41584
+ return r === "numberFields" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P(tX, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41477
41585
  };
41478
- return /* @__PURE__ */ F(WY, { children: [/* @__PURE__ */ P(GY, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41586
+ return /* @__PURE__ */ F($Y, { children: [/* @__PURE__ */ P(eX, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41479
41587
  };
41480
- qY.propTypes = {
41588
+ nX.propTypes = {
41481
41589
  model: U.default.object,
41482
41590
  label: U.default.string,
41483
41591
  group: U.default.object,
41484
41592
  configuration: U.default.object,
41485
41593
  onChange: U.default.func
41486
41594
  };
41487
- var JY = class extends pt.Component {
41595
+ var rX = class extends pt.Component {
41488
41596
  static propTypes = {
41489
41597
  model: U.default.object,
41490
41598
  configuration: U.default.object,
@@ -41498,13 +41606,13 @@ var JY = class extends pt.Component {
41498
41606
  onChangeConfiguration: () => {}
41499
41607
  };
41500
41608
  change = (e, t, n = !1) => {
41501
- OY("[changeModel]", e, t);
41609
+ LY("[changeModel]", e, t);
41502
41610
  let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
41503
41611
  n ? (st(o, e, t), i(o, e)) : (st(a, e, t), r(a, e));
41504
41612
  };
41505
41613
  render() {
41506
41614
  let { groups: e, model: t, configuration: n, modal: r } = this.props;
41507
- return OY("render:", t), /* @__PURE__ */ F("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ P(qY, {
41615
+ return LY("render:", t), /* @__PURE__ */ F("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ P(nX, {
41508
41616
  label: r,
41509
41617
  model: t,
41510
41618
  configuration: n,
@@ -41512,68 +41620,68 @@ var JY = class extends pt.Component {
41512
41620
  onChange: this.change
41513
41621
  }, r) : null), r] });
41514
41622
  }
41515
- }, YY = /* @__PURE__ */ CJ({
41516
- Panel: () => JY,
41517
- checkbox: () => rX,
41518
- checkboxes: () => iX,
41519
- dropdown: () => eX,
41520
- numberField: () => tX,
41521
- numberFields: () => nX,
41522
- radio: () => $Y,
41523
- textField: () => XY,
41524
- toggle: () => ZY
41525
- }), XY = (e, t = !0) => ({
41623
+ }, iX = /* @__PURE__ */ MJ({
41624
+ Panel: () => rX,
41625
+ checkbox: () => fX,
41626
+ checkboxes: () => pX,
41627
+ dropdown: () => lX,
41628
+ numberField: () => uX,
41629
+ numberFields: () => dX,
41630
+ radio: () => cX,
41631
+ textField: () => aX,
41632
+ toggle: () => oX
41633
+ }), aX = (e, t = !0) => ({
41526
41634
  label: e,
41527
41635
  type: "textField",
41528
41636
  isConfigProperty: t
41529
- }), ZY = (e, t = !1, n = !1) => ({
41637
+ }), oX = (e, t = !1, n = !1) => ({
41530
41638
  type: "toggle",
41531
41639
  label: e,
41532
41640
  isConfigProperty: t,
41533
41641
  disabled: n
41534
- }), QY = (e) => typeof e == "string" ? {
41642
+ }), sX = (e) => typeof e == "string" ? {
41535
41643
  label: e,
41536
41644
  value: e
41537
- } : e, $Y = function() {
41645
+ } : e, cX = function() {
41538
41646
  let [e, t, n = !1] = Array.prototype.slice.call(arguments);
41539
41647
  return {
41540
41648
  type: "radio",
41541
41649
  label: e,
41542
- choices: t && t.map((e) => QY(e)),
41650
+ choices: t && t.map((e) => sX(e)),
41543
41651
  isConfigProperty: n
41544
41652
  };
41545
- }, eX = (e, t, n = !1) => ({
41653
+ }, lX = (e, t, n = !1) => ({
41546
41654
  type: "dropdown",
41547
41655
  label: e,
41548
41656
  choices: t,
41549
41657
  isConfigProperty: n
41550
- }), tX = (e, t, n = !1) => ({
41658
+ }), uX = (e, t, n = !1) => ({
41551
41659
  ...t,
41552
41660
  label: e,
41553
41661
  type: "numberField",
41554
41662
  isConfigProperty: n
41555
- }), nX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41556
- t[e] = tX(t[e].label, t[e], n);
41663
+ }), dX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41664
+ t[e] = uX(t[e].label, t[e], n);
41557
41665
  }), {
41558
41666
  type: "numberFields",
41559
41667
  label: e,
41560
41668
  fields: t
41561
- }), rX = (e, t, n = !1) => ({
41669
+ }), fX = (e, t, n = !1) => ({
41562
41670
  ...t,
41563
41671
  label: e,
41564
41672
  type: "checkbox",
41565
41673
  isConfigProperty: n
41566
- }), iX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41567
- t[e] = rX(t[e].label, t[e], n);
41674
+ }), pX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41675
+ t[e] = fX(t[e].label, t[e], n);
41568
41676
  }), {
41569
41677
  type: "checkboxes",
41570
41678
  label: e,
41571
41679
  choices: t
41572
- }), aX = o(/*#__PURE__*/ P("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), oX = (e) => {
41680
+ }), mX = o(/*#__PURE__*/ P("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), hX = (e) => {
41573
41681
  let t = document.createElement("div");
41574
41682
  return t.innerHTML = e.trim(), t;
41575
- }, sX = "imes|riangle|an|heta|herefore", cX = "throot|parallel|cong|approx|eq|e|sim", lX = RegExp(`(\\t(?!${sX}))|(\\n(?!${cX}))|(\\\\t(?!${sX}))|(\\\\n(?!${cX}))`, "g"), uX = (e) => e.replace(lX, "").replace(/\\"/g, "\"").replace(/\\\//g, "/"), dX = (e) => {
41576
- let t = oX(uX(e)), n = [], r = 0;
41683
+ }, gX = "imes|riangle|an|heta|herefore", _X = "throot|parallel|cong|approx|eq|e|sim", vX = RegExp(`(\\t(?!${gX}))|(\\n(?!${_X}))|(\\\\t(?!${gX}))|(\\\\n(?!${_X}))`, "g"), yX = (e) => e.replace(vX, "").replace(/\\"/g, "\"").replace(/\\\//g, "/"), bX = (e) => {
41684
+ let t = hX(yX(e)), n = [], r = 0;
41577
41685
  return t.querySelectorAll("[data-type=\"drag_in_the_blank\"]").forEach((e) => {
41578
41686
  let t = e.dataset.value && e.dataset.value.replace(/&nbsp;/g, " ").trim();
41579
41687
  t ||= "", n.push({
@@ -41585,29 +41693,29 @@ var JY = class extends pt.Component {
41585
41693
  choices: n,
41586
41694
  correctResponse: n.reduce((e, t, n) => (e[n] = t.id !== void 0 && t.id || "", e), {})
41587
41695
  };
41588
- }, fX = /\{\{(\d+)\}\}/g, pX = (e, t, n) => {
41589
- let r = uX(e), i = 0;
41590
- return r.replace(fX, (e, r) => {
41696
+ }, xX = /\{\{(\d+)\}\}/g, SX = (e, t, n) => {
41697
+ let r = yX(e), i = 0;
41698
+ return r.replace(xX, (e, r) => {
41591
41699
  let a = n[r], o = t.find((e) => e.id === a);
41592
41700
  return (!o || !o.value) && (o = {
41593
41701
  id: "",
41594
41702
  value: ""
41595
41703
  }), `<span data-type="drag_in_the_blank" data-index="${i++}" data-id="${o.id}" data-value="${ut(o.value)}"></span>`;
41596
41704
  });
41597
- }, mX = (e) => {
41705
+ }, CX = (e) => {
41598
41706
  if (e) {
41599
- let { value: t = "" } = e, n = oX(t);
41707
+ let { value: t = "" } = e, n = hX(t);
41600
41708
  return Array.from(n.querySelectorAll("*")).forEach((e) => {
41601
41709
  e.tagName !== "IMG" && e.childNodes.length === 0 && e.remove();
41602
41710
  }), n.innerHTML.trim() === "";
41603
41711
  }
41604
41712
  return !1;
41605
- }, hX = ({ style: e }) => /* @__PURE__ */ F("span", {
41713
+ }, wX = ({ style: e }) => /* @__PURE__ */ F("span", {
41606
41714
  style: e,
41607
41715
  children: [/* @__PURE__ */ P(iw, { style: { margin: "0 -16px" } }), /* @__PURE__ */ P(iw, {})]
41608
41716
  });
41609
- hX.propTypes = { style: U.default.object };
41610
- var gX = M("div", { shouldForwardProp: (e) => !["error", "isDragging"].includes(e) })(({ theme: e, error: t }) => ({
41717
+ wX.propTypes = { style: U.default.object };
41718
+ var TX = M("div", { shouldForwardProp: (e) => !["error", "isDragging"].includes(e) })(({ theme: e, error: t }) => ({
41611
41719
  display: "inline-flex",
41612
41720
  minWidth: "178px",
41613
41721
  minHeight: "36px",
@@ -41618,21 +41726,21 @@ var gX = M("div", { shouldForwardProp: (e) => !["error", "isDragging"].includes(
41618
41726
  position: "relative",
41619
41727
  padding: "8px 35px 8px 35px",
41620
41728
  cursor: "grab",
41621
- border: `1px solid ${t ? "#f44336" : D.border()}`,
41729
+ border: `1px solid ${t ? "#f44336" : O.border()}`,
41622
41730
  "& img": { display: "flex" },
41623
41731
  "& p": { margin: 0 },
41624
41732
  "& mjx-frac": { fontSize: "120% !important" }
41625
- })), _X = M(_S)(({ theme: e }) => ({
41733
+ })), EX = M(_S)(({ theme: e }) => ({
41626
41734
  position: "absolute",
41627
41735
  top: "6px",
41628
41736
  right: "0",
41629
- color: D.text(),
41737
+ color: O.text(),
41630
41738
  zIndex: 2,
41631
41739
  "&:hover": {
41632
41740
  cursor: "pointer",
41633
41741
  color: e.palette.common.black
41634
41742
  }
41635
- })), vX = (e) => {
41743
+ })), DX = (e) => {
41636
41744
  let { choice: t, onClick: n, onRemoveChoice: r, error: i, instanceId: a, disabled: o } = e, { attributes: s, listeners: c, setNodeRef: l, isDragging: u } = Pe({
41637
41745
  id: `choice-${t.id}-${a || "default"}`,
41638
41746
  data: {
@@ -41641,14 +41749,14 @@ var gX = M("div", { shouldForwardProp: (e) => !["error", "isDragging"].includes(
41641
41749
  value: t,
41642
41750
  instanceId: a
41643
41751
  },
41644
- disabled: o || mX(t)
41752
+ disabled: o || CX(t)
41645
41753
  }), d = (e) => {
41646
- if (mX(t)) {
41754
+ if (CX(t)) {
41647
41755
  e.preventDefault(), alert("You need to define a value for an answer choice before it can be associated with a response area.");
41648
41756
  return;
41649
41757
  }
41650
41758
  };
41651
- return /* @__PURE__ */ F(gX, {
41759
+ return /* @__PURE__ */ F(TX, {
41652
41760
  ref: l,
41653
41761
  error: i,
41654
41762
  isDragging: u,
@@ -41657,21 +41765,21 @@ var gX = M("div", { shouldForwardProp: (e) => !["error", "isDragging"].includes(
41657
41765
  ...c,
41658
41766
  onDragStart: d,
41659
41767
  children: [
41660
- /* @__PURE__ */ P(hX, { style: {
41768
+ /* @__PURE__ */ P(wX, { style: {
41661
41769
  position: "absolute",
41662
41770
  top: "6px",
41663
41771
  left: "15px",
41664
- color: D.borderGray(),
41772
+ color: O.borderGray(),
41665
41773
  zIndex: 2
41666
41774
  } }),
41667
41775
  /* @__PURE__ */ P("span", { dangerouslySetInnerHTML: { __html: t.value } }),
41668
- /* @__PURE__ */ P(_X, { onClick: (e) => {
41776
+ /* @__PURE__ */ P(EX, { onClick: (e) => {
41669
41777
  e.preventDefault(), e.stopPropagation(), r(e);
41670
41778
  } })
41671
41779
  ]
41672
41780
  });
41673
41781
  };
41674
- vX.propTypes = {
41782
+ DX.propTypes = {
41675
41783
  choice: U.default.object.isRequired,
41676
41784
  onClick: U.default.func,
41677
41785
  onRemoveChoice: U.default.func.isRequired,
@@ -41681,22 +41789,22 @@ vX.propTypes = {
41681
41789
  };
41682
41790
  //#endregion
41683
41791
  //#region src/author/choices.tsx
41684
- var yX = M("div")(({ theme: e }) => ({
41792
+ var OX = M("div")(({ theme: e }) => ({
41685
41793
  display: "flex",
41686
41794
  flexDirection: "column",
41687
41795
  marginBottom: e.spacing(1.5)
41688
- })), bX = M(u)({ marginLeft: "auto" }), xX = M("div")(({ theme: e }) => ({
41796
+ })), kX = M(u)({ marginLeft: "auto" }), AX = M("div")(({ theme: e }) => ({
41689
41797
  alignItems: "flex-start",
41690
41798
  display: "flex",
41691
41799
  flexWrap: "wrap",
41692
41800
  justifyContent: "space-evenly",
41693
41801
  marginTop: e.spacing(1),
41694
41802
  "& > *": { margin: e.spacing(1) }
41695
- })), SX = M("div")(({ theme: e }) => ({
41803
+ })), jX = M("div")(({ theme: e }) => ({
41696
41804
  fontSize: e.typography.fontSize - 2,
41697
41805
  color: e.palette.error.main,
41698
41806
  paddingBottom: e.spacing(2)
41699
- })), CX = class extends pt.Component {
41807
+ })), MX = class extends pt.Component {
41700
41808
  static propTypes = {
41701
41809
  duplicates: U.default.bool,
41702
41810
  error: U.default.string,
@@ -41718,7 +41826,7 @@ var yX = M("div")(({ theme: e }) => ({
41718
41826
  }
41719
41827
  onChoiceChanged = (e, t, n) => {
41720
41828
  let { onChange: r, model: i } = this.props, { choices: a, correctResponse: o, alternateResponses: s } = i;
41721
- if (mX({ value: e }) && mX({ value: t })) return;
41829
+ if (CX({ value: e }) && CX({ value: t })) return;
41722
41830
  if ((a || []).find((e) => e.value === t && e.id !== n)) {
41723
41831
  e === "" && r((a || []).filter((e) => e.id !== n)), this.setState({ warning: {
41724
41832
  open: !0,
@@ -41730,7 +41838,7 @@ var yX = M("div")(({ theme: e }) => ({
41730
41838
  ...e,
41731
41839
  value: t
41732
41840
  } : e) || [];
41733
- if (!mX({ value: t })) {
41841
+ if (!CX({ value: t })) {
41734
41842
  r(c);
41735
41843
  return;
41736
41844
  }
@@ -41750,7 +41858,7 @@ var yX = M("div")(({ theme: e }) => ({
41750
41858
  };
41751
41859
  onChoiceDone = (e, t) => {
41752
41860
  let { onChange: n, model: r } = this.props, { choices: i } = r, a = (i || []).find((t) => t.id === e), o = t === void 0 ? a && a.value : t;
41753
- if (!a || !mX({ value: o })) {
41861
+ if (!a || !CX({ value: o })) {
41754
41862
  a && a.value !== o && n((i || []).map((t) => t.id === e ? {
41755
41863
  ...t,
41756
41864
  value: o
@@ -41785,22 +41893,22 @@ var yX = M("div")(({ theme: e }) => ({
41785
41893
  };
41786
41894
  render() {
41787
41895
  let { focusedEl: e, warning: t } = this.state, { duplicates: n, error: r, mathMlOptions: i = {}, maxChoices: a, model: { choices: o }, toolbarOpts: s, uploadSoundSupport: c, imageSupport: l = {}, pluginProps: u = {}, maxImageWidth: d, maxImageHeight: f, maxLength: p } = this.props, m = this.getVisibleChoices() || [];
41788
- return /* @__PURE__ */ F(yX, {
41896
+ return /* @__PURE__ */ F(OX, {
41789
41897
  ref: this.wrapperRef,
41790
41898
  children: [
41791
- /* @__PURE__ */ P(bX, {
41899
+ /* @__PURE__ */ P(kX, {
41792
41900
  variant: "contained",
41793
41901
  color: "primary",
41794
41902
  onClick: this.onAddChoice,
41795
41903
  disabled: a && o && a === o.length,
41796
41904
  children: "Add Choice"
41797
41905
  }),
41798
- /* @__PURE__ */ P(xX, { children: m.map((t, a) => !t || !t.id ? null : e === t.id ? /* @__PURE__ */ P("div", {
41906
+ /* @__PURE__ */ P(AX, { children: m.map((t, a) => !t || !t.id ? null : e === t.id ? /* @__PURE__ */ P("div", {
41799
41907
  style: {
41800
41908
  minWidth: "100%",
41801
41909
  zIndex: "100"
41802
41910
  },
41803
- children: /* @__PURE__ */ P(FK, {
41911
+ children: /* @__PURE__ */ P(WK, {
41804
41912
  ref: (e) => this.focusedNodeRef = e,
41805
41913
  autoFocus: !0,
41806
41914
  imageSupport: l,
@@ -41825,15 +41933,15 @@ var yX = M("div")(({ theme: e }) => ({
41825
41933
  maxImageWidth: d,
41826
41934
  charactersLimit: p
41827
41935
  })
41828
- }, a) : /* @__PURE__ */ P(vX, {
41936
+ }, a) : /* @__PURE__ */ P(DX, {
41829
41937
  duplicates: n,
41830
41938
  choice: t,
41831
41939
  error: r,
41832
41940
  onClick: () => this.onChoiceFocus(t.id),
41833
41941
  onRemoveChoice: () => this.onChoiceRemove(t.id)
41834
41942
  }, a)) }),
41835
- r && /* @__PURE__ */ P(SX, { children: r }),
41836
- /* @__PURE__ */ P(eJ, {
41943
+ r && /* @__PURE__ */ P(jX, { children: r }),
41944
+ /* @__PURE__ */ P(lJ, {
41837
41945
  open: t.open,
41838
41946
  title: "Warning",
41839
41947
  text: t.text,
@@ -41842,19 +41950,19 @@ var yX = M("div")(({ theme: e }) => ({
41842
41950
  ]
41843
41951
  });
41844
41952
  }
41845
- }, wX = (e) => {
41953
+ }, NX = (e) => {
41846
41954
  let { maxResponseAreas: t, minChoices: n, maxChoices: r } = e;
41847
41955
  return n ||= 2, "Validation requirements:" + ("\nThe tokens should not be empty and should be unique.\nThere should be at least 1 " + (t ? `and at most ${t} ` : "") + "response area" + (t ? "s" : "") + ` defined.\nThere should be at least ${n} ` + (r ? `and at most ${r} ` : "") + "tokens defined.");
41848
41956
  };
41849
41957
  //#endregion
41850
41958
  //#region src/author/main.tsx
41851
- function TX(e) {
41959
+ function PX(e) {
41852
41960
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
41853
41961
  }
41854
- function EX(e, t) {
41855
- return !e || TX(e) ? e : TX(e.default) ? e.default : t && TX(e[t]) ? e[t] : t && TX(e[t]?.default) ? e[t].default : e;
41962
+ function FX(e, t) {
41963
+ return !e || PX(e) ? e : PX(e.default) ? e.default : t && PX(e[t]) ? e[t] : t && PX(e[t]?.default) ? e[t].default : e;
41856
41964
  }
41857
- var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX = ge, kX = OX.default, AX = kX && typeof kX == "object" ? kX : OX, jX = class extends pt.Component {
41965
+ var IX = FX(We, "InputContainer") || FX(zX.InputContainer, "InputContainer"), LX = ge, RX = LX.default, zX = RX && typeof RX == "object" ? RX : LX, BX = class extends pt.Component {
41858
41966
  containerRef = pt.createRef();
41859
41967
  componentDidMount() {
41860
41968
  setTimeout(() => {
@@ -41872,28 +41980,28 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
41872
41980
  children: this.props.children
41873
41981
  });
41874
41982
  }
41875
- }, { dropdown: MX, toggle: NX, Panel: PX } = YY, FX = M(DX)(({ theme: e }) => ({
41983
+ }, { dropdown: VX, toggle: HX, Panel: UX } = iX, WX = M(IX)(({ theme: e }) => ({
41876
41984
  width: "100%",
41877
41985
  paddingTop: e.spacing(2),
41878
41986
  marginBottom: e.spacing(2)
41879
- })), IX = M("div")(({ theme: e }) => ({
41987
+ })), GX = M("div")(({ theme: e }) => ({
41880
41988
  minHeight: "235px",
41881
41989
  paddingTop: e.spacing(1),
41882
41990
  paddingBottom: e.spacing(2),
41883
41991
  width: "100%",
41884
41992
  "& [data-slate-editor=\"true\"]": { minHeight: "235px" }
41885
- })), LX = M(Nk)(({ theme: e }) => ({ fontSize: e.typography.fontSize + 2 })), RX = M(Uq)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
41993
+ })), KX = M(Nk)(({ theme: e }) => ({ fontSize: e.typography.fontSize + 2 })), qX = M(Qq)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
41886
41994
  fontSize: e.typography.fontSize - 2,
41887
41995
  whiteSpace: "pre",
41888
41996
  maxWidth: "500px"
41889
- } })), zX = M("div")(({ theme: e }) => ({
41997
+ } })), JX = M("div")(({ theme: e }) => ({
41890
41998
  fontSize: e.typography.fontSize - 2,
41891
41999
  color: e.palette.error.main,
41892
42000
  paddingTop: e.spacing(1)
41893
- })), BX = M("div")({
42001
+ })), YX = M("div")({
41894
42002
  display: "flex",
41895
42003
  alignItems: "center"
41896
- }), VX = class extends pt.Component {
42004
+ }), XX = class extends pt.Component {
41897
42005
  static propTypes = {
41898
42006
  configuration: U.default.object.isRequired,
41899
42007
  model: U.default.object.isRequired,
@@ -41941,7 +42049,7 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
41941
42049
  });
41942
42050
  };
41943
42051
  onResponsesChanged = (e) => {
41944
- let { model: { correctResponse: t, markup: n } } = this.props, r = pX(n, e, t);
42052
+ let { model: { correctResponse: t, markup: n } } = this.props, r = SX(n, e, t);
41945
42053
  this.props.onModelChanged({
41946
42054
  ...this.props.model,
41947
42055
  slateMarkup: r,
@@ -41949,24 +42057,24 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
41949
42057
  });
41950
42058
  };
41951
42059
  render() {
41952
- let { model: e, configuration: t, onConfigurationChanged: n, imageSupport: r, uploadSoundSupport: i } = this.props, { addChoice: a = {}, baseInputConfiguration: o = {}, contentDimensions: s = {}, duplicates: c = {}, prompt: l = {}, partialScoring: u = {}, lockChoiceOrder: d = {}, rationale: f = {}, teacherInstructions: p = {}, choicesPosition: m = {}, spellCheck: h = {}, settingsPanelDisabled: g, maxChoices: _, maxResponseAreas: v, maxImageWidth: y = {}, maxImageHeight: b = {}, withRubric: x = {}, mathMlOptions: S = {}, language: C = {}, languageChoices: w = {}, maxLength: ee = {} } = t || {}, { rationaleEnabled: T, promptEnabled: te, teacherInstructionsEnabled: ne, spellCheckEnabled: re, toolbarEditorPosition: ie, errors: ae, extraCSSRules: E } = e || {}, { choicesError: D, correctResponseError: O, prompt: oe, rationale: k, responseAreasError: se, teacherInstructions: A } = ae || {}, ce = wX(t), le = y && y.prompt, ue = b && b.prompt, j = { position: ie === "top" ? "top" : "bottom" }, de = {
41953
- partialScoring: u.settings && NX(u.label),
41954
- duplicates: c.settings && NX(c.label),
41955
- lockChoiceOrder: d.settings && NX(d.label),
41956
- choicesPosition: m.settings && MX(m.label, [
42060
+ let { model: e, configuration: t, onConfigurationChanged: n, imageSupport: r, uploadSoundSupport: i } = this.props, { addChoice: a = {}, baseInputConfiguration: o = {}, contentDimensions: s = {}, duplicates: c = {}, prompt: l = {}, partialScoring: u = {}, lockChoiceOrder: d = {}, rationale: f = {}, teacherInstructions: p = {}, choicesPosition: m = {}, spellCheck: h = {}, settingsPanelDisabled: g, maxChoices: _, maxResponseAreas: v, maxImageWidth: y = {}, maxImageHeight: b = {}, withRubric: x = {}, mathMlOptions: S = {}, language: C = {}, languageChoices: w = {}, maxLength: ee = {} } = t || {}, { rationaleEnabled: T, promptEnabled: te, teacherInstructionsEnabled: E, spellCheckEnabled: ne, toolbarEditorPosition: re, errors: ie, extraCSSRules: D } = e || {}, { choicesError: O, correctResponseError: ae, prompt: oe, rationale: k, responseAreasError: se, teacherInstructions: A } = ie || {}, ce = NX(t), le = y && y.prompt, ue = b && b.prompt, j = { position: re === "top" ? "top" : "bottom" }, de = {
42061
+ partialScoring: u.settings && HX(u.label),
42062
+ duplicates: c.settings && HX(c.label),
42063
+ lockChoiceOrder: d.settings && HX(d.label),
42064
+ choicesPosition: m.settings && VX(m.label, [
41957
42065
  "above",
41958
42066
  "below",
41959
42067
  "left",
41960
42068
  "right"
41961
42069
  ]),
41962
- "language.enabled": C.settings && NX(C.label, !0),
41963
- language: C.settings && C.enabled && MX(w.label, w.options)
42070
+ "language.enabled": C.settings && HX(C.label, !0),
42071
+ language: C.settings && C.enabled && VX(w.label, w.options)
41964
42072
  }, fe = {
41965
- teacherInstructionsEnabled: p.settings && NX(p.label),
41966
- rationaleEnabled: f.settings && NX(f.label),
41967
- spellCheckEnabled: h.settings && NX(h.label),
41968
- promptEnabled: l.settings && NX(l.label),
41969
- rubricEnabled: x?.settings && NX(x?.label)
42073
+ teacherInstructionsEnabled: p.settings && HX(p.label),
42074
+ rationaleEnabled: f.settings && HX(f.label),
42075
+ spellCheckEnabled: h.settings && HX(h.label),
42076
+ promptEnabled: l.settings && HX(l.label),
42077
+ rubricEnabled: x?.settings && HX(x?.label)
41970
42078
  }, pe = (e) => Object.assign({ ...o }, e || {});
41971
42079
  return /* @__PURE__ */ F(Be, {
41972
42080
  onDragEnd: ({ active: e, over: t }) => {
@@ -41992,11 +42100,11 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
41992
42100
  let { active: t } = e;
41993
42101
  t?.data?.current && this.setState({ activeDragItem: t.data.current });
41994
42102
  },
41995
- children: [/* @__PURE__ */ F(bY.ConfigLayout, {
41996
- extraCSSRules: E,
42103
+ children: [/* @__PURE__ */ F(kY.ConfigLayout, {
42104
+ extraCSSRules: D,
41997
42105
  dimensions: s,
41998
42106
  hideSettings: g,
41999
- settings: /* @__PURE__ */ P(PX, {
42107
+ settings: /* @__PURE__ */ P(UX, {
42000
42108
  model: e,
42001
42109
  configuration: t,
42002
42110
  onChangeModel: (e) => this.onModelChange(e),
@@ -42007,9 +42115,9 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42007
42115
  }
42008
42116
  }),
42009
42117
  children: [
42010
- ne && /* @__PURE__ */ F(FX, {
42118
+ E && /* @__PURE__ */ F(WX, {
42011
42119
  label: p.label,
42012
- children: [/* @__PURE__ */ P(FK, {
42120
+ children: [/* @__PURE__ */ P(WK, {
42013
42121
  markup: e.teacherInstructions || "",
42014
42122
  onChange: this.onTeacherInstructionsChanged,
42015
42123
  imageSupport: r,
@@ -42017,17 +42125,17 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42017
42125
  error: A,
42018
42126
  toolbarOpts: j,
42019
42127
  pluginProps: pe(p?.inputConfiguration),
42020
- spellCheck: re,
42128
+ spellCheck: ne,
42021
42129
  maxImageWidth: y && y.teacherInstructions || le,
42022
42130
  maxImageHeight: b && b.teacherInstructions || ue,
42023
42131
  uploadSoundSupport: i,
42024
42132
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42025
42133
  mathMlOptions: S
42026
- }), A && /* @__PURE__ */ P(zX, { children: A })]
42134
+ }), A && /* @__PURE__ */ P(JX, { children: A })]
42027
42135
  }),
42028
- te && /* @__PURE__ */ F(FX, {
42136
+ te && /* @__PURE__ */ F(WX, {
42029
42137
  label: l.label,
42030
- children: [/* @__PURE__ */ P(FK, {
42138
+ children: [/* @__PURE__ */ P(WK, {
42031
42139
  markup: e.prompt,
42032
42140
  onChange: this.onPromptChanged,
42033
42141
  imageSupport: r,
@@ -42036,31 +42144,31 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42036
42144
  error: oe,
42037
42145
  toolbarOpts: j,
42038
42146
  pluginProps: pe(l?.inputConfiguration),
42039
- spellCheck: re,
42147
+ spellCheck: ne,
42040
42148
  maxImageWidth: le,
42041
42149
  maxImageHeight: ue,
42042
42150
  uploadSoundSupport: i,
42043
42151
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42044
42152
  mathMlOptions: S
42045
- }), oe && /* @__PURE__ */ P(zX, { children: oe })]
42153
+ }), oe && /* @__PURE__ */ P(JX, { children: oe })]
42046
42154
  }),
42047
- /* @__PURE__ */ F(BX, { children: [/* @__PURE__ */ P(LX, {
42155
+ /* @__PURE__ */ F(YX, { children: [/* @__PURE__ */ P(KX, {
42048
42156
  component: "div",
42049
42157
  children: "Define Template, Choices, and Correct Responses"
42050
- }), /* @__PURE__ */ P(RX, {
42158
+ }), /* @__PURE__ */ P(qX, {
42051
42159
  disableFocusListener: !0,
42052
42160
  disableTouchListener: !0,
42053
42161
  placement: "right",
42054
42162
  title: ce,
42055
- children: /* @__PURE__ */ P(aX, {
42163
+ children: /* @__PURE__ */ P(mX, {
42056
42164
  fontSize: "small",
42057
42165
  color: "primary",
42058
42166
  style: { marginLeft: "5px" }
42059
42167
  })
42060
42168
  })] }),
42061
- /* @__PURE__ */ P(IX, {
42169
+ /* @__PURE__ */ P(GX, {
42062
42170
  ref: this.markupRef,
42063
- children: /* @__PURE__ */ P(FK, {
42171
+ children: /* @__PURE__ */ P(WK, {
42064
42172
  activePlugins: Ut,
42065
42173
  responseAreaProps: {
42066
42174
  type: "drag-in-the-blank",
@@ -42074,21 +42182,21 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42074
42182
  disableImageAlignmentButtons: !0,
42075
42183
  nonEmpty: !1,
42076
42184
  disableUnderline: !0,
42077
- error: se || O,
42185
+ error: se || ae,
42078
42186
  toolbarOpts: j,
42079
- spellCheck: re,
42187
+ spellCheck: ne,
42080
42188
  uploadSoundSupport: i,
42081
42189
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42082
42190
  mathMlOptions: S
42083
42191
  })
42084
42192
  }),
42085
- se && /* @__PURE__ */ P(zX, { children: se }),
42086
- O && /* @__PURE__ */ P(zX, { children: O }),
42087
- /* @__PURE__ */ P(CX, {
42193
+ se && /* @__PURE__ */ P(JX, { children: se }),
42194
+ ae && /* @__PURE__ */ P(JX, { children: ae }),
42195
+ /* @__PURE__ */ P(MX, {
42088
42196
  model: e,
42089
42197
  imageSupport: r,
42090
42198
  duplicates: e.duplicates,
42091
- error: D,
42199
+ error: O,
42092
42200
  onChange: this.onResponsesChanged,
42093
42201
  toolbarOpts: j,
42094
42202
  maxChoices: _,
@@ -42099,35 +42207,35 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42099
42207
  maxImageHeight: b && b.choice || ue,
42100
42208
  maxLength: ee
42101
42209
  }),
42102
- T && /* @__PURE__ */ F(FX, {
42210
+ T && /* @__PURE__ */ F(WX, {
42103
42211
  label: f.label,
42104
- children: [/* @__PURE__ */ P(FK, {
42212
+ children: [/* @__PURE__ */ P(WK, {
42105
42213
  markup: e.rationale || "",
42106
42214
  onChange: this.onRationaleChanged,
42107
42215
  imageSupport: r,
42108
42216
  error: k,
42109
42217
  toolbarOpts: j,
42110
42218
  pluginProps: pe(f?.inputConfiguration),
42111
- spellCheck: re,
42219
+ spellCheck: ne,
42112
42220
  maxImageWidth: y && y.rationale || le,
42113
42221
  maxImageHeight: b && b.rationale || ue,
42114
42222
  uploadSoundSupport: i,
42115
42223
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42116
42224
  mathMlOptions: S
42117
- }), k && /* @__PURE__ */ P(zX, { children: k })]
42225
+ }), k && /* @__PURE__ */ P(JX, { children: k })]
42118
42226
  })
42119
42227
  ]
42120
- }), /* @__PURE__ */ P(Me, { children: /* @__PURE__ */ P(jX, { children: (() => {
42228
+ }), /* @__PURE__ */ P(Me, { children: /* @__PURE__ */ P(BX, { children: (() => {
42121
42229
  let { activeDragItem: e } = this.state, { model: t } = this.props;
42122
42230
  if (!e) return null;
42123
42231
  if ((e.type === "drag-in-the-blank-choice" || e.type === "drag-in-the-blank-placed-choice") && e.value) {
42124
42232
  let n = t.choices?.find((t) => t.id === e.value.id);
42125
- return n ? /* @__PURE__ */ P(vX, { choice: n }) : null;
42233
+ return n ? /* @__PURE__ */ P(DX, { choice: n }) : null;
42126
42234
  }
42127
42235
  })() }) })]
42128
42236
  });
42129
42237
  }
42130
- }, HX = {
42238
+ }, ZX = {
42131
42239
  model: {
42132
42240
  choices: [],
42133
42241
  choicesPosition: "below",
@@ -42246,12 +42354,12 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42246
42354
  },
42247
42355
  maxLength: 200
42248
42356
  }
42249
- }, UX = (0, Vt.default)("multiple-choice:configure"), WX = class e extends HTMLElement {
42357
+ }, QX = (0, Vt.default)("multiple-choice:configure"), $X = class e extends HTMLElement {
42250
42358
  static prepareModel = (e = {}) => {
42251
42359
  let t = {
42252
- ...HX.model,
42360
+ ...ZX.model,
42253
42361
  ...e
42254
- }, n = e.slateMarkup || pX(t.markup, t.choices, t.correctResponse), r = dX(n);
42362
+ }, n = e.slateMarkup || SX(t.markup, t.choices, t.correctResponse), r = bX(n);
42255
42363
  return {
42256
42364
  ...t,
42257
42365
  slateMarkup: n,
@@ -42260,17 +42368,17 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42260
42368
  };
42261
42369
  };
42262
42370
  constructor() {
42263
- super(), this._root = null, this._model = e.prepareModel(), this._configuration = HX.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
42371
+ super(), this._root = null, this._model = e.prepareModel(), this._configuration = ZX.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
42264
42372
  }
42265
42373
  set model(t) {
42266
42374
  let n = {
42267
42375
  ...t,
42268
- markup: `<div>${t.markup || HX.model.markup}</div>`
42376
+ markup: `<div>${t.markup || ZX.model.markup}</div>`
42269
42377
  };
42270
42378
  this._model = e.prepareModel(n), this._render();
42271
42379
  }
42272
42380
  set configuration(e) {
42273
- let t = rt(e, HX.configuration);
42381
+ let t = rt(e, ZX.configuration);
42274
42382
  this._configuration = t, t?.language?.enabled ? t?.languageChoices?.options?.length && (this._model.language = t?.languageChoices.options[0].value) : t.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
42275
42383
  value: this._model.language,
42276
42384
  label: this._model.language
@@ -42281,7 +42389,7 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42281
42389
  }
42282
42390
  dispatchModelUpdated(e) {
42283
42391
  let t = !!e;
42284
- this.dispatchEvent(new IK(this._model, t));
42392
+ this.dispatchEvent(new GK(this._model, t));
42285
42393
  }
42286
42394
  onModelChanged(t, n) {
42287
42395
  this._model = e.prepareModel(t), this._render(), this.dispatchModelUpdated(n);
@@ -42290,20 +42398,20 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42290
42398
  this._configuration = e, this._render();
42291
42399
  }
42292
42400
  insertImage(e) {
42293
- this.dispatchEvent(new RK(e));
42401
+ this.dispatchEvent(new qK(e));
42294
42402
  }
42295
42403
  onDeleteImage(e, t) {
42296
- this.dispatchEvent(new LK(e, t));
42404
+ this.dispatchEvent(new KK(e, t));
42297
42405
  }
42298
42406
  insertSound(e) {
42299
- this.dispatchEvent(new BK(e));
42407
+ this.dispatchEvent(new YK(e));
42300
42408
  }
42301
42409
  onDeleteSound(e, t) {
42302
- this.dispatchEvent(new zK(e, t));
42410
+ this.dispatchEvent(new JK(e, t));
42303
42411
  }
42304
42412
  _render() {
42305
- UX("_render");
42306
- let e = pt.createElement(VX, {
42413
+ QX("_render");
42414
+ let e = pt.createElement(XX, {
42307
42415
  model: this._model,
42308
42416
  configuration: this._configuration,
42309
42417
  onModelChanged: this.onModelChanged,
@@ -42330,6 +42438,6 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42330
42438
  }
42331
42439
  };
42332
42440
  //#endregion
42333
- export { WX as default };
42441
+ export { $X as default };
42334
42442
 
42335
42443
  //# sourceMappingURL=index.js.map