@pie-element/complex-rubric 7.1.2-next.19 → 7.1.2-next.20

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.
@@ -17,7 +17,7 @@
17
17
  }
18
18
  })([["cb0f0518b022d739", (url) => "@font-face{font-family:Symbola;src:local(Symbola Regular),local(Symbola),url(\"" + url(() => new URL("../assets/Symbola-4c507403.woff2", import.meta.url)) + "\")format(\"woff2\")}.mq-editable-field{display:inline-block}.mq-editable-field .mq-cursor{z-index:1;border-left:1px solid #000;margin-left:-1px;padding:0;display:inline-block;position:relative}.mq-editable-field .mq-cursor.mq-blink{visibility:hidden}.mq-editable-field,.mq-math-mode .mq-editable-field{border:1px solid gray}.mq-editable-field.mq-focused,.mq-math-mode .mq-editable-field.mq-focused{border-color:#709ac0;border-radius:1px;box-shadow:0 0 1px 2px #8bd,inset 0 0 2px #6ae}.mq-math-mode .mq-editable-field{margin:1px}.mq-editable-field .mq-latex-command-input{color:inherit;border:1px solid gray;margin-left:2px;margin-right:1px;padding-right:1px;font-family:Courier New,monospace}.mq-editable-field .mq-latex-command-input.mq-empty{background:0 0}.mq-editable-field .mq-latex-command-input.mq-hasCursor{border-color:activeborder}.mq-editable-field.mq-empty:after,.mq-editable-field.mq-text-mode:after,.mq-math-mode .mq-empty:after,.mq-editable-field .mq-cursor:only-child:after,.mq-editable-field .mq-textarea+.mq-cursor:last-child:after{visibility:hidden;content:\"c\"}.mq-editable-field .mq-text-mode .mq-cursor:only-child:after{content:\"\"}.mq-editable-field.mq-text-mode{overflow:auto hidden}.mq-root-block,.mq-math-mode .mq-root-block{box-sizing:border-box;white-space:nowrap;vertical-align:middle;width:100%;padding:2px;display:inline-block;overflow:hidden}.mq-math-mode{font-variant:normal;font-size:115%;font-style:normal;font-weight:400;line-height:1;display:inline-block}.mq-math-mode .mq-non-leaf,.mq-math-mode .mq-scaled{display:inline-block}.mq-math-mode var,.mq-math-mode .mq-text-mode,.mq-math-mode .mq-nonSymbola{font-family:Times New Roman,Symbola,serif;line-height:.9}.mq-math-mode *{font-size:inherit;line-height:inherit;-webkit-user-select:none;user-select:none;box-sizing:border-box;border-color:#000;margin:0;padding:0}.mq-math-mode .mq-empty,.mq-math-mode.mq-empty{background:0 0}.mq-math-mode .mq-text-mode{white-space:pre;display:inline-block}.mq-math-mode .mq-text-mode.mq-hasCursor{min-width:1ex;margin:0 -.1em;padding:0 .1em;box-shadow:inset 0 .1em .2em #a9a9a9}.mq-math-mode .mq-font{font:1em Times New Roman,Symbola,serif}.mq-math-mode .mq-font *{font-family:inherit;font-style:inherit}.mq-math-mode b,.mq-math-mode b.mq-font{font-weight:bolder}.mq-math-mode var,.mq-math-mode i,.mq-math-mode i.mq-font{font-style:italic}.mq-math-mode var.mq-f{margin-left:.1em;margin-right:.2em}.mq-math-mode .mq-roman var.mq-f{margin:0}.mq-math-mode big{font-size:200%}.mq-math-mode .mq-int>big{vertical-align:-.16em;display:inline-block;transform:scaleX(.7)}.mq-math-mode .mq-int>.mq-supsub{vertical-align:-1.1em;padding-right:.2em;font-size:80%}.mq-math-mode .mq-int>.mq-supsub>.mq-sup>.mq-sup-inner{vertical-align:1.3em}.mq-math-mode .mq-int>.mq-supsub>.mq-sub{margin-left:-.35em}.mq-math-mode .mq-roman{font-style:normal}.mq-math-mode .mq-sans-serif{font-family:sans-serif,Symbola,serif}.mq-math-mode .mq-monospace{font-family:monospace,Symbola,serif}.mq-math-mode .mq-overleftrightarrow{margin-top:.35em;position:relative}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner{text-align:center;border-top:.14em solid #4d4d4d;min-width:1em;margin:0 .1em;padding-top:.35em;display:inline-block;position:relative}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-overleftrightarrow-inner-right{text-align:right;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;right:-.4em}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-overleftrightarrow-inner-left{text-align:left;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;left:-.4em}.mq-math-mode .mq-overline .mq-overline-inner{text-align:center;border-top:.14em solid #4d4d4d;margin-left:.1em;padding-top:.2em;padding-right:.1em;display:inline-block}.mq-math-mode .mq-overline .mq-overline-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overline .mq-overline-inner .mq-overline-inner-right,.mq-math-mode .mq-overline .mq-overline-inner .mq-overline-inner-left{display:none}.mq-math-mode .mq-longdiv{padding-top:.2em}.mq-math-mode .mq-longdiv .mq-longdiv-curve-border{border-top-right-radius:100em;border-bottom-right-radius:100em;width:2px;max-width:2px;margin-right:-.12em;padding-top:.2em;font-size:1.4em;display:inline}.mq-math-mode .mq-longdiv .mq-longdiv-inner{text-align:center;border-top:1px solid gray;border-radius:0 0 0 10px;min-width:1em;margin-left:-.2em;margin-right:.15em;padding-top:.19em;padding-left:.44em;font-size:1em;display:inline}.mq-math-mode .mq-longdiv .mq-longdiv-inner .mq-empty{min-width:1.5em;display:inline-block}.mq-math-mode .mq-underline{border-bottom:1px solid #000;margin-bottom:1px}.mq-math-mode .mq-underline.mq-empty{min-width:1em}.mq-math-mode .mq-overarc{-moz-border-radius-topright:50% .3em;-moz-border-radius-topleft:50% .3em;border-top:1px solid #000;border-top-left-radius:50% .3em;border-top-right-radius:50% .3em;margin-top:1px;padding-top:.15em}.mq-math-mode .mq-overarrow{margin-top:.35em;position:relative}.mq-math-mode .mq-overarrow .mq-overarrow-inner{text-align:center;border-top:.14em solid #4d4d4d;min-width:1em;margin:0 .1em;padding-top:.35em;display:inline-block;position:relative}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-overarrow-inner-right{text-align:right;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;right:-.4em}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-overarrow-inner-left{text-align:left;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:none;position:absolute;top:-.562em;left:-.4em}.mq-math-mode .mq-overarrow.mq-arrow-left .mq-overarrow-inner .mq-overarrow-inner-right{display:none}.mq-math-mode .mq-overarrow.mq-arrow-left .mq-overarrow-inner .mq-overarrow-inner-left{display:block}.mq-math-mode .mq-overarrow.mq-arrow-both{vertical-align:text-bottom}.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty{min-height:1.23em}.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty:after{top:-.34em}.mq-math-mode .mq-overarrow.mq-arrow-both:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-math-mode .mq-overarrow.mq-arrow-both:after{content:\"➤\";visibility:visible;text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-2.3em}.mq-math-mode .mq-xarrow{text-align:center;vertical-align:.9em;padding:0 .2em;font-size:70%;position:relative}.mq-math-mode .mq-xarrow .mq-xarrow-over{border-bottom:1px solid #000;padding:.1em .1em .2em;display:block;position:relative}.mq-math-mode .mq-xarrow .mq-xarrow-under{float:left;margin-bottom:.2em;padding:0 .1em .2em;position:relative;top:.2em}.mq-math-mode .mq-xarrow .mq-xarrow-over:before{content:\"➤\";height:1em;font-size:.6em;display:block;position:absolute;bottom:-.62em;right:-.3em}.mq-math-mode .mq-xarrow.mq-arrow-left .mq-xarrow-over:before{filter:FlipH;-ms-filter:\"FlipH\";left:-.3em;right:auto;transform:scaleX(-1)}.mq-math-mode .mq-binary-operator{padding:0 .2em;display:inline-block}.mq-math-mode .mq-supsub{text-align:left;vertical-align:-.5em;font-size:90%}.mq-math-mode .mq-supsub.mq-sup-only{vertical-align:.5em}.mq-math-mode .mq-supsub.mq-sup-only .mq-sup{vertical-align:text-bottom;display:inline-block}.mq-math-mode .mq-supsub .mq-sup{display:block}.mq-math-mode .mq-supsub .mq-sub{float:left;display:block}.mq-math-mode .mq-supsub .mq-binary-operator{padding:0 .1em}.mq-math-mode .mq-supsub .mq-fraction{font-size:70%}.mq-math-mode sup.mq-nthroot{vertical-align:.8em;min-width:.5em;margin-left:.2em;margin-right:-.6em;font-size:80%}.mq-math-mode .mq-paren{vertical-align:top;transform-origin:50% .06em;padding:0 .1em}.mq-math-mode .mq-paren.mq-ghost{color:silver}.mq-math-mode .mq-paren+span{margin-top:.1em;margin-bottom:.1em}.mq-math-mode .mq-array{vertical-align:middle;text-align:center}.mq-math-mode .mq-array>span{display:block}.mq-math-mode .mq-operator-name{font-family:Symbola,Times New Roman,serif;font-style:normal;line-height:.9}.mq-math-mode var.mq-operator-name.mq-first{padding-left:.2em}.mq-math-mode var.mq-operator-name.mq-last,.mq-math-mode .mq-supsub.mq-after-operator-name{padding-right:.2em}.mq-math-mode .mq-fraction{text-align:center;vertical-align:-.4em;padding:0 .2em;font-size:90%}.mq-math-mode .mq-fraction,.mq-math-mode .mq-large-operator{display:-moz-groupbox}.mq-math-mode x:-moz-any-link{display:-moz-groupbox}.mq-math-mode .mq-fraction,.mq-math-mode .mq-large-operator,.mq-math-mode x:default{display:inline-block}.mq-math-mode x:-moz-any-link{display:inline-block}.mq-math-mode .mq-underset.mq-tilde-vector .mq-under{line-height:.6em}.mq-math-mode .mq-numerator,.mq-math-mode .mq-denominator,.mq-math-mode .mq-dot-recurring,.mq-math-mode .mq-over,.mq-math-mode .mq-under{display:block}.mq-math-mode .mq-numerator,.mq-math-mode .mq-over{margin-bottom:.2em;padding:0 .1em}.mq-math-mode .mq-denominator{float:right;border-top:1px solid;width:100%;padding:.3em .1em .1em}.mq-math-mode .mq-dot-recurring{text-align:center;height:.6em}.mq-math-mode .mq-overunder{text-align:center;position:relative;top:.01em}.mq-math-mode .mq-overunder .mq-font{font-family:inherit}.mq-math-mode .mq-overunder.mq-underset{vertical-align:text-top}.mq-math-mode .mq-overunder.mq-underset .mq-under,.mq-math-mode .mq-overunder.mq-overset .mq-over{font-size:.7em;display:block}.mq-math-mode .mq-sqrt-prefix{vertical-align:top;transform-origin:top;padding-top:0;position:relative;top:.1em}.mq-math-mode .mq-sqrt-stem{border-top:1px solid;margin-top:1px;margin-right:.1em;padding-top:1px;padding-left:.15em;padding-right:.2em}.mq-math-mode .mq-diacritic-above{text-align:center;line-height:.4em;display:block}.mq-math-mode .mq-diacritic-stem{text-align:center;display:block}.mq-math-mode .mq-hat-prefix{text-align:center;margin-bottom:-.7em;line-height:.95em;display:block;transform:scaleX(1.5)}.mq-math-mode .mq-hat-stem{display:block}.mq-math-mode .mq-large-operator{vertical-align:-.2em;text-align:center;vertical-align:middle;padding:.2em}.mq-math-mode .mq-large-operator .mq-from,.mq-math-mode .mq-large-operator big,.mq-math-mode .mq-large-operator .mq-to{display:block}.mq-math-mode .mq-large-operator .mq-from,.mq-math-mode .mq-large-operator .mq-to{font-size:80%}.mq-math-mode .mq-large-operator .mq-from{float:right;width:100%}.mq-math-mode .mq-lim{text-align:center}.mq-math-mode .mq-lim span{display:block}.mq-math-mode .mq-lim .mq-approaches{float:right;width:100%;font-size:80%}.mq-math-mode .mq-lim .mq-approaches span>span{display:inline}.mq-math-mode .mq-matrix{vertical-align:middle;margin-left:.1em;margin-right:.1em}.mq-math-mode .mq-matrix table{border-spacing:3px;border-collapse:separate;border-bottom:none;width:auto}.mq-math-mode .mq-matrix table.mq-rows-1{vertical-align:middle;margin-bottom:1px}.mq-math-mode .mq-matrix td{vertical-align:baseline;border:1px dotted #fff;width:auto;padding:.1em .3em}.mq-math-mode .mq-matrix td.mq-empty{border:1px dotted #000}.mq-math-mode .mq-abs{border-left:1px solid #000;border-right:1px solid #000;margin-left:.1em;margin-right:.1em;padding-left:.2em;padding-right:.2em}.mq-math-mode .mq-lrnplaceholder{margin-left:.05em;margin-right:.05em}.mq-math-mode .mq-parallelogram{margin-top:-.5em;line-height:1em;position:relative;overflow:hidden}.mq-math-mode .mq-parallelogram .mq-parallelogram-inner{font-size:2em;position:relative;top:.23em}.mq-math-mode,.mq-math-mode .mq-editable-field{cursor:text;font-family:Symbola,Times New Roman,serif}.mq-math-mode .mq-longdiv .mq-longdiv-curve-border,.mq-math-mode .mq-editable-field .mq-longdiv .mq-longdiv-curve-border{font-size:1.33em}.mq-overarrow{text-align:center;border-top:1px solid #000;min-width:.5em;margin-top:1px;padding-top:.2em}.mq-overarrow:before{content:\"➤\";text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-.34em}.mq-overarrow.mq-arrow-left:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-overarrow.mq-arrow-both{vertical-align:text-bottom}.mq-overarrow.mq-arrow-both.mq-empty{min-height:1.23em}.mq-overarrow.mq-arrow-both.mq-empty:after{top:-.34em}.mq-overarrow.mq-arrow-both:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-overarrow.mq-arrow-both:after{content:\"➤\";visibility:visible;text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-2.3em}.mq-math-mode .mq-selection,.mq-editable-field .mq-selection,.mq-math-mode .mq-selection .mq-non-leaf,.mq-editable-field .mq-selection .mq-non-leaf,.mq-math-mode .mq-selection .mq-scaled,.mq-editable-field .mq-selection .mq-scaled{color:highlighttext;border-color:highlighttext;background:highlight!important}.mq-math-mode .mq-selection .mq-matrixed,.mq-editable-field .mq-selection .mq-matrixed{background:#39f!important}.mq-math-mode .mq-selection .mq-matrixed-container,.mq-editable-field .mq-selection .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"#3399FF\")!important}.mq-math-mode .mq-selection.mq-blur,.mq-editable-field .mq-selection.mq-blur,.mq-math-mode .mq-selection.mq-blur .mq-non-leaf,.mq-editable-field .mq-selection.mq-blur .mq-non-leaf,.mq-math-mode .mq-selection.mq-blur .mq-scaled,.mq-editable-field .mq-selection.mq-blur .mq-scaled,.mq-math-mode .mq-selection.mq-blur .mq-matrixed,.mq-editable-field .mq-selection.mq-blur .mq-matrixed{color:#000;border-color:#000;background:#d4d4d4!important}.mq-math-mode .mq-selection.mq-blur .mq-matrixed-container,.mq-editable-field .mq-selection.mq-blur .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"#D4D4D4\")!important}.mq-editable-field .mq-textarea,.mq-math-mode .mq-textarea{-webkit-user-select:text;user-select:text;position:relative}.mq-editable-field .mq-textarea>textarea,.mq-math-mode .mq-textarea>textarea{opacity:0;overflow:hidden}.mq-editable-field .mq-textarea *,.mq-math-mode .mq-textarea *,.mq-editable-field .mq-selectable,.mq-math-mode .mq-selectable{-webkit-user-select:text;user-select:text;clip:rect(1em 1em 1em 1em);resize:none;box-sizing:content-box;width:1px;height:1px;position:absolute;transform:scale(0)}.mq-math-mode .mq-matrixed{background:#fff;display:inline-block}.mq-math-mode .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"white\");margin-top:-.1em}.mq-math-mode .mq-matrix table{border-spacing:2px}button .mq-math-mode .mq-matrix table.mq-rows-2 td,button .mq-math-mode .mq-matrix table.mq-rows-3 td{width:.9em;font-size:.3em}button .mq-math-mode .mq-matrix table.mq-rows-2{margin-bottom:-2px}button .mq-math-mode .mq-matrix table.mq-rows-1{margin-bottom:3px}button .mq-math-mode .mq-matrix table.mq-rows-1 td{width:1.1em;margin-bottom:3px;font-size:.6em}button .mq-math-mode .mq-matrix .matrix-edit-content-row{text-align:center;vertical-align:middle;display:inline-block}button .mq-math-mode .mq-matrix .matrix-edit-content-row p{font-size:.7em}button .mq-math-mode .mq-matrix .matrix-edit-content-col{text-align:center;vertical-align:middle;display:inline-block}button .mq-math-mode .mq-matrix .matrix-edit-content-col p{padding:0 .15em;font-size:.7em}button .mq-math-mode .mq-matrix .mq-paren{padding:0;display:inline-block;transform:scale(1.13,1.77)}button .matrix-edit .mq-empty{width:.8em;margin:.1em;padding:.1em;font-size:.4em}\n"]]);
19
19
  import { i as e, r as t, t as n } from "../rolldown-runtime-CWhphoD1.js";
20
- import { $ as r, A as i, At as a, B as o, C as s, Ct as c, D as l, Dt as u, E as d, Et as f, F as p, G as m, H as h, I as g, J as _, K as v, L as y, M as b, Mt as x, N as S, O as C, Ot as w, P as ee, Q as T, R as E, S as D, St as O, T as te, U as ne, V as re, W as ie, X as ae, Y as oe, Z as se, _ as ce, _t as k, a as le, at as ue, c as de, ct as fe, d as pe, dt as A, et as me, f as he, ft as ge, g as _e, gt as ve, h as ye, ht as be, it as xe, j as Se, jt as Ce, k as we, kt as Te, l as Ee, lt as De, m as Oe, mt as ke, nt as Ae, o as je, ot as Me, p as Ne, pt as Pe, q as Fe, r as Ie, rt as Le, s as Re, st as ze, t as Be, u as Ve, ut as He, v as Ue, vt as We, w as Ge, wt as Ke, x as qe, xt as Je, y as Ye, yt as Xe, z as Ze } from "../private-tags-DDXEn9TF.js";
20
+ import { $ as r, A as i, At as a, B as o, C as s, Ct as c, D as l, Dt as u, E as d, Et as f, F as p, G as m, H as h, I as g, J as _, K as v, L as y, M as b, Mt as x, N as S, O as C, Ot as w, P as ee, Q as T, R as E, S as D, St as O, T as te, U as ne, V as re, W as ie, X as ae, Y as oe, Z as se, _ as ce, _t as k, a as le, at as ue, c as de, ct as fe, d as pe, dt as A, et as me, f as he, ft as ge, g as _e, gt as ve, h as ye, ht as be, it as xe, j as Se, jt as Ce, k as we, kt as Te, l as Ee, lt as De, m as Oe, mt as ke, nt as Ae, o as je, ot as Me, p as Ne, pt as Pe, q as Fe, r as Ie, rt as Le, s as Re, st as ze, t as Be, u as Ve, ut as He, v as Ue, vt as We, w as Ge, wt as Ke, x as qe, xt as Je, y as Ye, yt as Xe, z as Ze } from "../private-tags-Cy-oEmuU.js";
21
21
  import * as j from "react";
22
22
  import M, { Component as Qe, createContext as $e, createElement as et, createRef as tt, forwardRef as nt, memo as rt, useCallback as it, useContext as at, useDebugValue as ot, useEffect as N, useLayoutEffect as st, useMemo as ct, useReducer as lt, useRef as P, useState as ut, version as dt } from "react";
23
23
  import { Fragment as ft, jsx as F, jsxs as I } from "react/jsx-runtime";
@@ -23231,7 +23231,7 @@ function iN({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
23231
23231
  N(() => (document.addEventListener("click", u), () => {
23232
23232
  document.removeEventListener("click", u);
23233
23233
  }), []), N(() => {
23234
- l.current && typeof te == "function" && te(l.current);
23234
+ l.current && typeof d == "function" && d(l.current);
23235
23235
  }, [
23236
23236
  a?.value,
23237
23237
  r,
@@ -23245,7 +23245,7 @@ function iN({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
23245
23245
  });
23246
23246
  } else !r && s && c(null);
23247
23247
  }, [r, s]);
23248
- let d = i && r ? i.value.value : a.value || "\xA0", f = n ? "\xA0" : d, p = f !== "\xA0", m = i && r, h = o ? `2px solid ${g.primaryDark()}` : m ? `1px solid ${g.defaults.BORDER_DARK}` : `1px solid ${g.defaults.BORDER_LIGHT}`;
23248
+ let f = i && r ? i.value.value : a.value || "\xA0", p = n ? "\xA0" : f, m = p !== "\xA0", h = i && r, _ = o ? `2px solid ${g.primaryDark()}` : h ? `1px solid ${g.defaults.BORDER_DARK}` : `1px solid ${g.defaults.BORDER_LIGHT}`;
23249
23249
  return /* @__PURE__ */ I("div", {
23250
23250
  ref: l,
23251
23251
  className: o ? "selected" : void 0,
@@ -23253,8 +23253,8 @@ function iN({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
23253
23253
  display: "inline-flex",
23254
23254
  minWidth: "178px",
23255
23255
  minHeight: "36px",
23256
- background: m ? `${g.defaults.BORDER_LIGHT}` : `${g.defaults.WHITE}`,
23257
- border: h,
23256
+ background: h ? `${g.defaults.BORDER_LIGHT}` : `${g.defaults.WHITE}`,
23257
+ border: _,
23258
23258
  boxSizing: "border-box",
23259
23259
  borderRadius: "3px",
23260
23260
  overflow: "hidden",
@@ -23267,7 +23267,7 @@ function iN({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
23267
23267
  "data-key": e.index,
23268
23268
  contentEditable: !1,
23269
23269
  children: [
23270
- p && /* @__PURE__ */ F(_A, {
23270
+ m && /* @__PURE__ */ F(_A, {
23271
23271
  style: {
23272
23272
  position: "absolute",
23273
23273
  top: "6px",
@@ -23276,7 +23276,7 @@ function iN({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
23276
23276
  },
23277
23277
  contentEditable: !1
23278
23278
  }),
23279
- /* @__PURE__ */ F("span", { dangerouslySetInnerHTML: { __html: f } }),
23279
+ /* @__PURE__ */ F("span", { dangerouslySetInnerHTML: { __html: p } }),
23280
23280
  t
23281
23281
  ]
23282
23282
  });
@@ -23418,47 +23418,47 @@ cN.propTypes = {
23418
23418
  //#endregion
23419
23419
  //#region ../../lib-react/editable-html-tip-tap/dist/components/respArea/InlineDropdown.js
23420
23420
  var lN = (e) => {
23421
- let { editor: t, node: n, getPos: r, options: i, selected: a } = e, { attrs: o } = n, { value: s, error: c } = o, l = s || "<div>&nbsp</div>", u = r(), d = P(null), f = P(null), p = P(!1), m = P(null), h = () => t._holdInlineDropdownToolbarIndex != null && String(t._holdInlineDropdownToolbarIndex) === String(n.attrs.index), [g, _] = ut(!1), [v, y] = ut({
23421
+ let { editor: t, node: n, getPos: r, options: i, selected: a } = e, { attrs: o } = n, { value: s, error: c } = o, l = s || "<div>&nbsp</div>", u = r(), f = P(null), p = P(null), m = P(!1), h = P(null), g = () => t._holdInlineDropdownToolbarIndex != null && String(t._holdInlineDropdownToolbarIndex) === String(n.attrs.index), [_, v] = ut(!1), [y, b] = ut({
23422
23422
  top: 0,
23423
23423
  left: 0
23424
- }), b = () => {
23425
- h() || (_(!1), i.onInlineDropdownToolbarClose?.(t));
23426
- }, x = i.respAreaToolbar([n, u], t, b), S = () => {
23424
+ }), x = () => {
23425
+ g() || (v(!1), i.onInlineDropdownToolbarClose?.(t));
23426
+ }, S = i.respAreaToolbar([n, u], t, x), C = () => {
23427
23427
  let { tr: e } = t.state, n = e.doc.nodeAt(u);
23428
23428
  if (!n) return;
23429
23429
  let { selection: r } = e;
23430
23430
  r.from === u && r.to === u + n.nodeSize || (e.setSelection(U.create(e.doc, u)), t.view.dispatch(e));
23431
- }, C = () => {
23432
- p.current || (i.onToolbarCloseRequest ? (p.current = !0, i.onToolbarCloseRequest([n, u], t, () => {
23433
- p.current = !1, delete t._holdInlineDropdownToolbarIndex, b();
23431
+ }, w = () => {
23432
+ m.current || (i.onToolbarCloseRequest ? (m.current = !0, i.onToolbarCloseRequest([n, u], t, () => {
23433
+ m.current = !1, delete t._holdInlineDropdownToolbarIndex, x();
23434
23434
  }, () => {
23435
- p.current = !1, delete t._holdInlineDropdownToolbarIndex, _(!0), setTimeout(S, 0);
23436
- })) : b());
23435
+ m.current = !1, delete t._holdInlineDropdownToolbarIndex, v(!0), setTimeout(C, 0);
23436
+ })) : x());
23437
23437
  };
23438
23438
  N(() => {
23439
23439
  let { selection: e } = t.state, r = e.from + n.nodeSize === e.to;
23440
- a ? r && _(!0) : g && C();
23440
+ a ? r && v(!0) : _ && w();
23441
23441
  }, [
23442
23442
  t,
23443
23443
  n,
23444
23444
  a
23445
23445
  ]);
23446
- let w = (e) => e.clientX > document.documentElement.clientWidth || e.clientY > document.documentElement.clientHeight || e.target === document.documentElement;
23446
+ let ee = (e) => e.clientX > document.documentElement.clientWidth || e.clientY > document.documentElement.clientHeight || e.target === document.documentElement;
23447
23447
  return N(() => {
23448
- m.current && typeof te == "function" && te(m.current);
23448
+ h.current && typeof d == "function" && d(h.current);
23449
23449
  }, [s]), N(() => {
23450
23450
  let e = document.body.getBoundingClientRect(), { from: n } = t.state.selection, r = t.view.coordsAtPos(n);
23451
- y({
23451
+ b({
23452
23452
  top: r.top + Math.abs(e.top) + 40,
23453
23453
  left: r.left
23454
23454
  });
23455
23455
  let i = (e) => {
23456
- if (w(e)) return;
23456
+ if (ee(e)) return;
23457
23457
  let n = e.target.closest("[data-toolbar-for]");
23458
- !e.target.closest("[data-inline-dropdown-toolbar]") && (!n || n.dataset.toolbarFor !== f.current?.instanceId) && !t._toolbarOpened && d.current && !d.current.contains(e.target) && !e.target.closest("[data-inline-node]") && C();
23458
+ !e.target.closest("[data-inline-dropdown-toolbar]") && (!n || n.dataset.toolbarFor !== p.current?.instanceId) && !t._toolbarOpened && f.current && !f.current.contains(e.target) && !e.target.closest("[data-inline-node]") && w();
23459
23459
  };
23460
- return g ? document.addEventListener("mousedown", i) : document.removeEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
23461
- }, [g, n]), /* @__PURE__ */ I(Kk, {
23460
+ return _ ? document.addEventListener("mousedown", i) : document.removeEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
23461
+ }, [_, n]), /* @__PURE__ */ I(Kk, {
23462
23462
  className: "inline-dropdown",
23463
23463
  "data-selected": a,
23464
23464
  style: {
@@ -23467,7 +23467,7 @@ var lN = (e) => {
23467
23467
  cursor: "pointer"
23468
23468
  },
23469
23469
  children: [/* @__PURE__ */ I("div", {
23470
- ref: m,
23470
+ ref: h,
23471
23471
  style: {
23472
23472
  display: "inline-flex",
23473
23473
  minWidth: "178px",
@@ -23480,7 +23480,7 @@ var lN = (e) => {
23480
23480
  position: "relative",
23481
23481
  alignItems: "center"
23482
23482
  },
23483
- onClick: () => _(!0),
23483
+ onClick: () => v(!0),
23484
23484
  children: [/* @__PURE__ */ F("div", {
23485
23485
  style: {
23486
23486
  flex: 1,
@@ -23504,10 +23504,10 @@ var lN = (e) => {
23504
23504
  right: "5px"
23505
23505
  }
23506
23506
  })]
23507
- }), g && /* @__PURE__ */ I(M.Fragment, { children: [pt.createPortal(/* @__PURE__ */ F("div", {
23508
- ref: d,
23509
- children: /* @__PURE__ */ F(x, { editorCallback: (e) => {
23510
- f.current = e;
23507
+ }), _ && /* @__PURE__ */ I(M.Fragment, { children: [pt.createPortal(/* @__PURE__ */ F("div", {
23508
+ ref: f,
23509
+ children: /* @__PURE__ */ F(S, { editorCallback: (e) => {
23510
+ p.current = e;
23511
23511
  } })
23512
23512
  }), t?._tiptapContainerEl || document.body), t._tiptapContainerEl && pt.createPortal(/* @__PURE__ */ F(EO, {
23513
23513
  deletable: !0,
@@ -23520,7 +23520,7 @@ var lN = (e) => {
23520
23520
  },
23521
23521
  onDelete: () => {
23522
23522
  let { tr: e } = t.state;
23523
- e.delete(u, u + n.nodeSize), DO(t, !1), delete t._holdInlineDropdownToolbarIndex, t.view.dispatch(e), _(!1), t.commands.focus();
23523
+ e.delete(u, u + n.nodeSize), DO(t, !1), delete t._holdInlineDropdownToolbarIndex, t.view.dispatch(e), v(!1), t.commands.focus();
23524
23524
  },
23525
23525
  showDone: !1
23526
23526
  }), t._tiptapContainerEl)] })]
@@ -28680,7 +28680,7 @@ var zR = RR, { commonMqFontStyles: BR, longdivStyles: VR, supsubStyles: HR } = G
28680
28680
  "data-latex": "",
28681
28681
  "data-raw": e.latex
28682
28682
  },
28683
- d(e.latex, e.wrapper)
28683
+ te(e.latex, e.wrapper)
28684
28684
  ];
28685
28685
  },
28686
28686
  addNodeView() {