@pie-element/graphing-solution-set 7.0.1-next.20261005182602 → 7.0.1-next.20261005190856
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.
- package/dist/browser/{alert-dialog-ByTtwRX7.js → alert-dialog-DBl8k2Fv.js} +141 -146
- package/dist/browser/alert-dialog-DBl8k2Fv.js.map +1 -0
- package/dist/browser/author/index.js +48 -48
- package/dist/browser/browser-D_x3mPO2.js +931 -0
- package/dist/browser/browser-D_x3mPO2.js.map +1 -0
- package/dist/browser/controller/index.js +41 -41
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +2 -2
- package/dist/browser/editor-runtime/{alert-dialog-BosHJVrz.js → alert-dialog-D_mlcJz-.js} +136 -141
- package/dist/browser/editor-runtime/alert-dialog-D_mlcJz-.js.map +1 -0
- package/dist/browser/editor-runtime/author/index.js +48 -48
- package/dist/browser/editor-runtime/browser-BLrtLh8e.js +931 -0
- package/dist/browser/editor-runtime/browser-BLrtLh8e.js.map +1 -0
- package/dist/browser/editor-runtime/controller/index.js +41 -41
- package/dist/browser/editor-runtime/controller/index.js.map +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +2 -2
- package/dist/browser/editor-runtime/{mathjax-D2JHb_R_-CzZ0NmmT.js → mathjax-D2JHb_R_-D71KTisE.js} +2 -2
- package/dist/browser/editor-runtime/{mathjax-D2JHb_R_-CzZ0NmmT.js.map → mathjax-D2JHb_R_-D71KTisE.js.map} +1 -1
- package/dist/browser/{mathjax-D2JHb_R_-DWnKBKhZ.js → mathjax-D2JHb_R_-CPpFmz9F.js} +2 -2
- package/dist/browser/{mathjax-D2JHb_R_-DWnKBKhZ.js.map → mathjax-D2JHb_R_-CPpFmz9F.js.map} +1 -1
- package/dist/index.iife.js +92 -92
- package/package.json +7 -7
- package/dist/browser/alert-dialog-ByTtwRX7.js.map +0 -1
- package/dist/browser/browser-D6SETh7_.js +0 -368
- package/dist/browser/browser-D6SETh7_.js.map +0 -1
- package/dist/browser/editor-runtime/alert-dialog-BosHJVrz.js.map +0 -1
- package/dist/browser/editor-runtime/browser-T4v8yQYK.js +0 -368
- package/dist/browser/editor-runtime/browser-T4v8yQYK.js.map +0 -1
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
(document.head || document.documentElement).appendChild(style);
|
|
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
|
-
import { C as e, E as t, S as n, T as r, _ as i, a,
|
|
19
|
+
import { C as e, E as t, S as n, T as r, _ as i, a, b as o, c as s, f as c, h as l, l as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, w as y, x as b, y as x } from "./browser-D_x3mPO2.js";
|
|
20
20
|
import * as S from "react";
|
|
21
21
|
import C, { Children as w, Component as T, cloneElement as E, createContext as D, createElement as O, createRef as k, forwardRef as A, isValidElement as j, memo as M, useCallback as N, useContext as ee, useDebugValue as te, useEffect as P, useLayoutEffect as ne, useMemo as re, useRef as ie, useState as ae, version as oe } from "react";
|
|
22
22
|
import { Fragment as se, jsx as F, jsxs as I } from "react/jsx-runtime";
|
|
@@ -27,7 +27,7 @@ var de;
|
|
|
27
27
|
function fe() {
|
|
28
28
|
return de;
|
|
29
29
|
}
|
|
30
|
-
var pe = import("./mathjax-D2JHb_R_-
|
|
30
|
+
var pe = import("./mathjax-D2JHb_R_-CPpFmz9F.js");
|
|
31
31
|
pe.catch(() => {});
|
|
32
32
|
async function me(e, t) {
|
|
33
33
|
let { createMathJax: n } = await pe;
|
|
@@ -4584,7 +4584,7 @@ function xl(e, t) {
|
|
|
4584
4584
|
return parseFloat(Number(l).toFixed(4));
|
|
4585
4585
|
}
|
|
4586
4586
|
var Sl = (e, t, n) => {
|
|
4587
|
-
let r =
|
|
4587
|
+
let r = s(e, t, n);
|
|
4588
4588
|
return r.splice(r.length, 1, t), r;
|
|
4589
4589
|
};
|
|
4590
4590
|
function Cl(e, t, n, r) {
|
|
@@ -4601,13 +4601,13 @@ function Tee(e, t, n, r) {
|
|
|
4601
4601
|
}));
|
|
4602
4602
|
}
|
|
4603
4603
|
var Eee = (e) => {
|
|
4604
|
-
let t =
|
|
4604
|
+
let t = o(e), n = {
|
|
4605
4605
|
left: t.x,
|
|
4606
4606
|
top: t.y,
|
|
4607
4607
|
bottom: t.y,
|
|
4608
4608
|
right: t.x
|
|
4609
4609
|
};
|
|
4610
|
-
return
|
|
4610
|
+
return u(e).reduce((e, t) => (e.left = Math.min(e.left, t.x), e.top = Math.max(e.top, t.y), e.bottom = Math.min(e.bottom, t.y), e.right = Math.max(e.right, t.x), e), n);
|
|
4611
4611
|
}, Dee = (e, t) => ({
|
|
4612
4612
|
left: Math.min(e.x, t.x),
|
|
4613
4613
|
top: Math.max(e.y, t.y),
|
|
@@ -4618,7 +4618,7 @@ var Eee = (e) => {
|
|
|
4618
4618
|
right: Math.abs(e.right - t.max),
|
|
4619
4619
|
top: Math.abs(e.top - n.max),
|
|
4620
4620
|
bottom: n.min - e.bottom
|
|
4621
|
-
}), wl = (e) => new hl(e.x, e.y), Tl = (e, t) => wl(t).sub(wl(e)), kee = (e, t) => `${t}-${e.label || "-"}`, Aee = (e, t) =>
|
|
4621
|
+
}), wl = (e) => new hl(e.x, e.y), Tl = (e, t) => wl(t).sub(wl(e)), kee = (e, t) => `${t}-${e.label || "-"}`, Aee = (e, t) => b(e.domain, t.domain) && b(e.range, t.range), jee = (e) => (e || "").replace(/<[^>]+>/g, "").split(" ").sort((e, t) => t.length - e.length)[0].length, Mee = (e) => e ? e * 20 : 0, El = (e) => (new DOMParser()?.parseFromString(e, "text/html"))?.body?.textContent || "", Dl = (e) => e && Object.keys(e).length === 0 && e.constructor === Object, Ol = (e) => typeof e == "string" && e.trim() === "", kl = Object.defineProperty, Al = (e, t) => {
|
|
4622
4622
|
let n = {};
|
|
4623
4623
|
for (var r in e) kl(n, r, {
|
|
4624
4624
|
get: e[r],
|
|
@@ -4743,10 +4743,10 @@ var Eee = (e) => {
|
|
|
4743
4743
|
BACKGROUND_DARK: "#ECEDF1",
|
|
4744
4744
|
DROPDOWN_BACKGROUND: "#E0E1E6",
|
|
4745
4745
|
SECONDARY_BACKGROUND: "rgba(241,241,241,1)",
|
|
4746
|
-
SURFACE: "#
|
|
4746
|
+
SURFACE: "#EBECF1",
|
|
4747
4747
|
BORDER: "#9A9A9A",
|
|
4748
4748
|
BORDER_LIGHT: "#D1D1D1",
|
|
4749
|
-
BORDER_DARK: "#
|
|
4749
|
+
BORDER_DARK: "#66686A",
|
|
4750
4750
|
BORDER_GRAY: "#7E8494",
|
|
4751
4751
|
TABLE_GRID: "black",
|
|
4752
4752
|
TABLE_GRID_LIGHT: "#dfe2e5",
|
|
@@ -7039,7 +7039,7 @@ var Bp = (e) => {
|
|
|
7039
7039
|
})
|
|
7040
7040
|
})
|
|
7041
7041
|
});
|
|
7042
|
-
}), Wp = /* @__PURE__ */ t(
|
|
7042
|
+
}), Wp = /* @__PURE__ */ t(g(), 1), Gp = /* @__PURE__ */ Al({
|
|
7043
7043
|
Correct: () => Zp,
|
|
7044
7044
|
Incorrect: () => Qp,
|
|
7045
7045
|
NothingSubmitted: () => em,
|
|
@@ -11381,26 +11381,21 @@ var S_ = {
|
|
|
11381
11381
|
}), k_ = ({ slotProps: e, ...t }) => /* @__PURE__ */ F(O_, {
|
|
11382
11382
|
...t,
|
|
11383
11383
|
disableScrollLock: !0,
|
|
11384
|
-
hideBackdrop: !0,
|
|
11385
11384
|
slotProps: {
|
|
11386
11385
|
...e,
|
|
11387
11386
|
root: {
|
|
11388
11387
|
...e?.root,
|
|
11389
11388
|
style: {
|
|
11390
11389
|
backgroundColor: "transparent",
|
|
11391
|
-
pointerEvents: "none",
|
|
11392
11390
|
...e?.root?.style
|
|
11393
11391
|
}
|
|
11394
11392
|
},
|
|
11395
|
-
|
|
11396
|
-
|
|
11397
|
-
|
|
11398
|
-
pointerEvents: "auto",
|
|
11399
|
-
...e?.paper?.style
|
|
11400
|
-
}
|
|
11393
|
+
backdrop: {
|
|
11394
|
+
invisible: !0,
|
|
11395
|
+
...e?.backdrop
|
|
11401
11396
|
}
|
|
11402
11397
|
}
|
|
11403
|
-
}), A_ = /* @__PURE__ */
|
|
11398
|
+
}), A_ = /* @__PURE__ */ y({
|
|
11404
11399
|
Collapsible: () => _h,
|
|
11405
11400
|
EnableAudioAutoplayImage: () => s_,
|
|
11406
11401
|
Feedback: () => xd,
|
|
@@ -11453,8 +11448,8 @@ var S_ = {
|
|
|
11453
11448
|
"blockquote"
|
|
11454
11449
|
].includes(e)), F_ = (e, t, n) => {
|
|
11455
11450
|
j_("[buildPlugins] opts: ", n), e ||= P_;
|
|
11456
|
-
let r = (t, n = !0) => e.includes(t) && n && t, i = n.image && n.image.delete,
|
|
11457
|
-
return
|
|
11451
|
+
let r = (t, n = !0) => e.includes(t) && n && t, i = n.image && n.image.delete, a = n.math, o = n.responseArea && n.responseArea.type, s = !m(n.extraCSSRules), c = n?.languageCharacters || [];
|
|
11452
|
+
return p([
|
|
11458
11453
|
r("table"),
|
|
11459
11454
|
r("bold"),
|
|
11460
11455
|
r("italic"),
|
|
@@ -11465,8 +11460,8 @@ var S_ = {
|
|
|
11465
11460
|
r("image", !!i),
|
|
11466
11461
|
r("video"),
|
|
11467
11462
|
r("audio"),
|
|
11468
|
-
r("math", !!
|
|
11469
|
-
...
|
|
11463
|
+
r("math", !!a),
|
|
11464
|
+
...c.map((e) => r("languageCharacters", e)),
|
|
11470
11465
|
r("text-align"),
|
|
11471
11466
|
r("blockquote"),
|
|
11472
11467
|
r("h3"),
|
|
@@ -11474,8 +11469,8 @@ var S_ = {
|
|
|
11474
11469
|
r("numbered-list"),
|
|
11475
11470
|
r("undo"),
|
|
11476
11471
|
r("redo"),
|
|
11477
|
-
r("responseArea", !!
|
|
11478
|
-
r("css", !!
|
|
11472
|
+
r("responseArea", !!o),
|
|
11473
|
+
r("css", !!s),
|
|
11479
11474
|
r("html", !!n.html)
|
|
11480
11475
|
]);
|
|
11481
11476
|
}, I_ = /mso-list:\s*(l\d+)\s+level(\d+)/i, L_ = /^\(?(?:\d+(?:\.\d+)*|[a-z]+|[A-Z]+)[.)]$|^\d+(?:\.\d+)+$/, R_ = /^[ivxlcdm]+$/i, z_ = {
|
|
@@ -26698,9 +26693,9 @@ var nI = (e, t, n, r) => {
|
|
|
26698
26693
|
...t.attrs,
|
|
26699
26694
|
...r.value
|
|
26700
26695
|
}), i.isDone = !0, e.view.dispatch(i);
|
|
26701
|
-
}, rI = (e, t,
|
|
26702
|
-
let { tr:
|
|
26703
|
-
|
|
26696
|
+
}, rI = (e, t, r) => {
|
|
26697
|
+
let { tr: i } = e.state;
|
|
26698
|
+
i.setNodeMarkup(r.pos, void 0, n(t.attrs, ["value", "id"])), i.isDone = !0, e.view.dispatch(i);
|
|
26704
26699
|
}, iI = (e) => {
|
|
26705
26700
|
let { editor: t, node: n, getPos: r, options: i, selected: a } = e, { attrs: o } = n, { inTable: s } = o, c = r();
|
|
26706
26701
|
return /* @__PURE__ */ F(sP, {
|
|
@@ -26897,17 +26892,17 @@ var oI = Object.defineProperty, sI = (e, t) => {
|
|
|
26897
26892
|
category: e
|
|
26898
26893
|
}), hI = (e = []) => {
|
|
26899
26894
|
let t = [];
|
|
26900
|
-
|
|
26895
|
+
h(5, () => t.push([]));
|
|
26901
26896
|
let n = e.length, r = 0, i = 0;
|
|
26902
26897
|
for (; i < n;) t[r++].push(e[i++]), r === 5 && (r = 0);
|
|
26903
26898
|
return t;
|
|
26904
26899
|
}, gI = (e) => (t) => {
|
|
26905
|
-
let n =
|
|
26900
|
+
let n = l(e), r = n.some((e) => e.latex === t.latex), i = n.some((e) => e.name === t.name);
|
|
26906
26901
|
return !r && !i;
|
|
26907
26902
|
}, _I = (e = [], t = []) => {
|
|
26908
26903
|
t = t.filter(gI(e));
|
|
26909
26904
|
let n = [];
|
|
26910
|
-
|
|
26905
|
+
h(5 - e.length, () => e.push([])), h(5, () => n.push([]));
|
|
26911
26906
|
let r = hI(t);
|
|
26912
26907
|
for (let t = 0; t < 5; t++) n[t] = [...e[t], ...r[t]];
|
|
26913
26908
|
return n;
|
|
@@ -27325,7 +27320,7 @@ var oI = Object.defineProperty, sI = (e, t) => {
|
|
|
27325
27320
|
7: "seven",
|
|
27326
27321
|
8: "eight",
|
|
27327
27322
|
9: "nine"
|
|
27328
|
-
}, sR =
|
|
27323
|
+
}, sR = h(10, String).map((e) => ({
|
|
27329
27324
|
name: oR[e],
|
|
27330
27325
|
write: e,
|
|
27331
27326
|
label: e,
|
|
@@ -30668,7 +30663,7 @@ var LB = class extends C.Component {
|
|
|
30668
30663
|
CommonMqStyles: () => HB,
|
|
30669
30664
|
Input: () => jB,
|
|
30670
30665
|
Static: () => LB
|
|
30671
|
-
}), WB = (e) => (
|
|
30666
|
+
}), WB = (e) => (h(5 - e.length, () => e.push([])), i.apply(null, e)), GB = (0, Wp.default)("pie-lib:math-inline:keypad"), KB = z(LB)(({ latex: e }) => {
|
|
30672
30667
|
let t = {
|
|
30673
30668
|
pointerEvents: "none",
|
|
30674
30669
|
textTransform: "none !important",
|
|
@@ -30860,7 +30855,7 @@ var qB = (e) => e ? {
|
|
|
30860
30855
|
let { onPress: t } = this.props;
|
|
30861
30856
|
t(e);
|
|
30862
30857
|
};
|
|
30863
|
-
flowKeys = (e, t) =>
|
|
30858
|
+
flowKeys = (e, t) => l([...WB(e), ...WB(t)]);
|
|
30864
30859
|
keyIsNotAllowed = (e) => {
|
|
30865
30860
|
let { noDecimal: t } = this.props;
|
|
30866
30861
|
return !!((e.write === "." && e.label === "." || e.write === "," && e.label === ",") && t);
|
|
@@ -33427,7 +33422,7 @@ var KH = (e, t) => {
|
|
|
33427
33422
|
};
|
|
33428
33423
|
shouldComponentUpdate(e, t) {
|
|
33429
33424
|
let n = this.input.mathField.latex() !== e.latex;
|
|
33430
|
-
return eU("[shouldComponentUpdate] ", "inputIsDifferent: ", n), !
|
|
33425
|
+
return eU("[shouldComponentUpdate] ", "inputIsDifferent: ", n), !b(this.props.error, e.error) || !n && this.props.keypadMode !== e.keypadMode || !n && this.props.noDecimal !== e.noDecimal || !n && this.state.equationEditor !== t.equationEditor ? !0 : !n && this.props.controlledKeypad ? this.props.showKeypad !== e.showKeypad : n;
|
|
33431
33426
|
}
|
|
33432
33427
|
onEditorTypeChange = (e) => {
|
|
33433
33428
|
this.setState({ equationEditor: e.target.value });
|
|
@@ -35258,15 +35253,15 @@ var RW = z(LW, { shouldForwardProp: (e) => e !== "hideProgress" })(({ hideProgre
|
|
|
35258
35253
|
display: "none"
|
|
35259
35254
|
})), UW = (e) => e ? `${e}px` : "calc(20px)";
|
|
35260
35255
|
function WW(e) {
|
|
35261
|
-
let { node: t, editor: n, attributes: r, onFocus: i, getPos: a, selected: o, options: s, maxImageWidth: c = 700, maxImageHeight: l = 900 } = e, { alt: u } = t.attrs, d = a(), f = n.state.selection.from, p = n.state.selection.to,
|
|
35256
|
+
let { node: t, editor: n, attributes: r, onFocus: i, getPos: a, selected: o, options: s, maxImageWidth: c = 700, maxImageHeight: l = 900 } = e, { alt: u } = t.attrs, d = a(), f = n.state.selection.from, p = n.state.selection.to, m = re(() => f + t.nodeSize === p, [
|
|
35262
35257
|
f,
|
|
35263
35258
|
p,
|
|
35264
35259
|
t.nodeSize
|
|
35265
|
-
]), [
|
|
35266
|
-
let t = e /
|
|
35260
|
+
]), [h, g] = ae(!1), _ = ie(t), v = ie(null), y = ie(null), x = ie(null), S = N((e) => {
|
|
35261
|
+
let t = e / v.current.naturalWidth * 4;
|
|
35267
35262
|
return parseInt(t.toFixed(0) * 25, 10);
|
|
35268
35263
|
}, []), C = N(() => {
|
|
35269
|
-
let e = NU(n,
|
|
35264
|
+
let e = NU(n, _.current.attrs.nodeKey);
|
|
35270
35265
|
return e ? e[1] : null;
|
|
35271
35266
|
}, [n]), w = N((e) => {
|
|
35272
35267
|
let t = C();
|
|
@@ -35277,7 +35272,7 @@ function WW(e) {
|
|
|
35277
35272
|
...e
|
|
35278
35273
|
}));
|
|
35279
35274
|
}, [n, C]), T = N(() => {
|
|
35280
|
-
if (!t.attrs.width || !
|
|
35275
|
+
if (!t.attrs.width || !v.current || !v.current.naturalWidth) return;
|
|
35281
35276
|
let e = S(t.attrs.width);
|
|
35282
35277
|
t.attrs.resizePercent !== e && w({ resizePercent: e });
|
|
35283
35278
|
}, [
|
|
@@ -35287,19 +35282,19 @@ function WW(e) {
|
|
|
35287
35282
|
w
|
|
35288
35283
|
]);
|
|
35289
35284
|
P(() => {
|
|
35290
|
-
|
|
35285
|
+
_.current = {
|
|
35291
35286
|
...t,
|
|
35292
35287
|
pos: d
|
|
35293
35288
|
};
|
|
35294
35289
|
}, [t, d]), P(() => {
|
|
35295
|
-
o ?
|
|
35290
|
+
o ? m && n.isEditable && (!String(t.attrs?.src ?? "").trim() && s.imageHandling?.insertImageRequested && s.imageHandling.insertImageRequested(n, [t, d], (e) => new IU(n, [t, d], e)), g(o)) : g(o);
|
|
35296
35291
|
}, [
|
|
35297
|
-
|
|
35292
|
+
m,
|
|
35298
35293
|
o,
|
|
35299
35294
|
n.isEditable
|
|
35300
35295
|
]), P(() => {
|
|
35301
35296
|
T();
|
|
35302
|
-
let e =
|
|
35297
|
+
let e = y?.current;
|
|
35303
35298
|
return e && n.isEditable && e.addEventListener("mousedown", j, !1), () => {
|
|
35304
35299
|
e && e.removeEventListener("mousedown", j, !1);
|
|
35305
35300
|
};
|
|
@@ -35307,7 +35302,7 @@ function WW(e) {
|
|
|
35307
35302
|
T();
|
|
35308
35303
|
});
|
|
35309
35304
|
let E = N(() => {
|
|
35310
|
-
let e =
|
|
35305
|
+
let e = v.current;
|
|
35311
35306
|
if (e && (!e.style.width || e.style.width === "calc(20px)")) {
|
|
35312
35307
|
let n = Math.min(e.naturalWidth, c), r = Math.min(e.naturalHeight, l);
|
|
35313
35308
|
e.style.width = `${n}px`, e.style.height = `${r}px`;
|
|
@@ -35315,7 +35310,7 @@ function WW(e) {
|
|
|
35315
35310
|
width: n,
|
|
35316
35311
|
height: r
|
|
35317
35312
|
};
|
|
35318
|
-
|
|
35313
|
+
b(i, {
|
|
35319
35314
|
width: t.attrs.width,
|
|
35320
35315
|
height: t.attrs.height
|
|
35321
35316
|
}) || w(i);
|
|
@@ -35339,7 +35334,7 @@ function WW(e) {
|
|
|
35339
35334
|
}
|
|
35340
35335
|
return t;
|
|
35341
35336
|
}, O = N((e) => {
|
|
35342
|
-
let t =
|
|
35337
|
+
let t = v.current;
|
|
35343
35338
|
if (!t) return;
|
|
35344
35339
|
let n = e.target.getBoundingClientRect(), r = {
|
|
35345
35340
|
width: t.naturalWidth,
|
|
@@ -35382,18 +35377,18 @@ function WW(e) {
|
|
|
35382
35377
|
...r,
|
|
35383
35378
|
active: o && t.attrs.loaded,
|
|
35384
35379
|
draggable: !1,
|
|
35385
|
-
ref:
|
|
35380
|
+
ref: v,
|
|
35386
35381
|
src: t.attrs.src,
|
|
35387
35382
|
style: M,
|
|
35388
35383
|
onLoad: E,
|
|
35389
35384
|
alt: t.attrs.alt
|
|
35390
35385
|
}), /* @__PURE__ */ F(HW, {
|
|
35391
|
-
ref:
|
|
35386
|
+
ref: y,
|
|
35392
35387
|
className: "resize",
|
|
35393
35388
|
style: { display: n.isEditable ? void 0 : "none" }
|
|
35394
35389
|
})]
|
|
35395
35390
|
})]
|
|
35396
|
-
}),
|
|
35391
|
+
}), h && n._tiptapContainerEl && le.createPortal(/* @__PURE__ */ F("div", {
|
|
35397
35392
|
ref: x,
|
|
35398
35393
|
style: {
|
|
35399
35394
|
zIndex: 20,
|
|
@@ -35407,10 +35402,10 @@ function WW(e) {
|
|
|
35407
35402
|
toolbarOpts: s.toolbarOpts || {},
|
|
35408
35403
|
onDelete: () => {
|
|
35409
35404
|
let e = C();
|
|
35410
|
-
e !== null && (s.imageHandling?.onDelete?.(
|
|
35405
|
+
e !== null && (s.imageHandling?.onDelete?.(_.current), n.view.dispatch(n.state.tr.delete(e, e + n.state.doc.nodeAt(e).nodeSize)), g(!1), n.commands.focus());
|
|
35411
35406
|
},
|
|
35412
35407
|
onDone: () => {
|
|
35413
|
-
|
|
35408
|
+
g(!1), s.imageHandling?.onDone?.(n), n.commands.focus("end");
|
|
35414
35409
|
},
|
|
35415
35410
|
children: /* @__PURE__ */ F(SW, {
|
|
35416
35411
|
disableImageAlignmentButtons: s.imageHandling?.disableImageAlignmentButtons,
|
|
@@ -39998,7 +39993,7 @@ function UY({ editor: e, opts: t, onClose: n }) {
|
|
|
39998
39993
|
let r = ie(null), i = ie(n), [a, o] = ae({
|
|
39999
39994
|
top: 0,
|
|
40000
39995
|
left: 0
|
|
40001
|
-
}), [s,
|
|
39996
|
+
}), [s, l] = ae(null);
|
|
40002
39997
|
i.current = n;
|
|
40003
39998
|
let u = re(() => {
|
|
40004
39999
|
if (!t) return xq;
|
|
@@ -40010,7 +40005,7 @@ function UY({ editor: e, opts: t, onClose: n }) {
|
|
|
40010
40005
|
}, [t]), d = re(() => u.characters.reduce((e, t) => (t.length >= e.columns && (e.columns = t.length), e), {
|
|
40011
40006
|
rows: u.characters.length,
|
|
40012
40007
|
columns: 0
|
|
40013
|
-
}), [u]), f = () =>
|
|
40008
|
+
}), [u]), f = () => l(null);
|
|
40014
40009
|
P(() => () => {
|
|
40015
40010
|
f();
|
|
40016
40011
|
}, []), P(() => {
|
|
@@ -40039,7 +40034,7 @@ function UY({ editor: e, opts: t, onClose: n }) {
|
|
|
40039
40034
|
clearTimeout(u), s !== null && cancelAnimationFrame(s), window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c), document.removeEventListener("click", l);
|
|
40040
40035
|
};
|
|
40041
40036
|
}, [e]);
|
|
40042
|
-
let p = (e, t) =>
|
|
40037
|
+
let p = (e, t) => l({
|
|
40043
40038
|
anchorEl: e.currentTarget,
|
|
40044
40039
|
el: t
|
|
40045
40040
|
});
|
|
@@ -40065,9 +40060,9 @@ function UY({ editor: e, opts: t, onClose: n }) {
|
|
|
40065
40060
|
hideDoneButtonBackground: !0,
|
|
40066
40061
|
layoutForKeyPad: d,
|
|
40067
40062
|
additionalKeys: u.characters.reduce((e, t) => (e = [...e, ...t.map((e) => ({
|
|
40068
|
-
name:
|
|
40069
|
-
write:
|
|
40070
|
-
label:
|
|
40063
|
+
name: c(e, "name") || e,
|
|
40064
|
+
write: c(e, "write") || e,
|
|
40065
|
+
label: c(e, "label") || e,
|
|
40071
40066
|
category: "character",
|
|
40072
40067
|
extraClass: "character",
|
|
40073
40068
|
extraProps: {
|
|
@@ -43885,27 +43880,27 @@ var F1 = Uk.create({
|
|
|
43885
43880
|
...t && { "aria-label": t },
|
|
43886
43881
|
...n && { "aria-labelledby": n }
|
|
43887
43882
|
}), o0 = ["aria-label", "aria-labelledby"], s0 = (e) => {
|
|
43888
|
-
let { showParagraphs: t, separateParagraphs:
|
|
43889
|
-
|
|
43883
|
+
let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = ae([]), [a, o] = ae(!1), { toolbarOpts: s } = e, c = N((e) => {
|
|
43884
|
+
i((t) => {
|
|
43890
43885
|
let n = t.filter((t) => t.pos !== e);
|
|
43891
|
-
return n.length === 0 &&
|
|
43886
|
+
return n.length === 0 && o(!1), n;
|
|
43892
43887
|
});
|
|
43893
|
-
}, [
|
|
43888
|
+
}, [i]), l = {
|
|
43894
43889
|
...e0,
|
|
43895
|
-
...
|
|
43896
|
-
},
|
|
43890
|
+
...s
|
|
43891
|
+
}, u = N((t) => {
|
|
43897
43892
|
let n = t.getHTML();
|
|
43898
|
-
e.markup !== n && e.onChange?.(n),
|
|
43893
|
+
e.markup !== n && e.onChange?.(n), l.doneOn === "blur" && e.onDone?.(n);
|
|
43899
43894
|
}, [
|
|
43900
43895
|
e.markup,
|
|
43901
43896
|
e.onChange,
|
|
43902
43897
|
e.onDone,
|
|
43903
|
-
|
|
43904
|
-
]),
|
|
43898
|
+
l.doneOn
|
|
43899
|
+
]), d = re(() => ({
|
|
43905
43900
|
...t0,
|
|
43906
43901
|
...e.responseAreaProps,
|
|
43907
|
-
onInlineDropdownToolbarClose:
|
|
43908
|
-
}), [e.responseAreaProps,
|
|
43902
|
+
onInlineDropdownToolbarClose: u
|
|
43903
|
+
}), [e.responseAreaProps, u]), f = re(() => {
|
|
43909
43904
|
let { customPlugins: t, ...n } = e.pluginProps || {};
|
|
43910
43905
|
t ||= [];
|
|
43911
43906
|
let r = (e.activePlugins || n0)?.filter((e) => {
|
|
@@ -43920,18 +43915,18 @@ var F1 = Uk.create({
|
|
|
43920
43915
|
image: { ...e.imageSupport },
|
|
43921
43916
|
toolbar: {},
|
|
43922
43917
|
table: {},
|
|
43923
|
-
responseArea: { type:
|
|
43918
|
+
responseArea: { type: d.type },
|
|
43924
43919
|
languageCharacters: e.languageCharactersProps,
|
|
43925
43920
|
keyPadCharacterRef: {},
|
|
43926
43921
|
setKeypadInteraction: {},
|
|
43927
43922
|
media: {}
|
|
43928
43923
|
});
|
|
43929
|
-
}, [e,
|
|
43930
|
-
|
|
43924
|
+
}, [e, d.type]), p = ie(null);
|
|
43925
|
+
p.current = {
|
|
43931
43926
|
plainText: e.pluginProps?.pasteFormatting?.disabled === !0,
|
|
43932
|
-
formatting:
|
|
43927
|
+
formatting: f.map((e) => r0[e]).filter(Boolean)
|
|
43933
43928
|
};
|
|
43934
|
-
let
|
|
43929
|
+
let m = [
|
|
43935
43930
|
X1.configure({
|
|
43936
43931
|
types: [
|
|
43937
43932
|
"heading",
|
|
@@ -43955,7 +43950,7 @@ var F1 = Uk.create({
|
|
|
43955
43950
|
]
|
|
43956
43951
|
}),
|
|
43957
43952
|
q1,
|
|
43958
|
-
PA.configure({ settings: () =>
|
|
43953
|
+
PA.configure({ settings: () => p.current }),
|
|
43959
43954
|
l1.configure({ limit: e.charactersLimit || 1e6 }),
|
|
43960
43955
|
L1.configure({
|
|
43961
43956
|
trailingNode: {
|
|
@@ -43982,44 +43977,44 @@ var F1 = Uk.create({
|
|
|
43982
43977
|
rM,
|
|
43983
43978
|
bM,
|
|
43984
43979
|
yM,
|
|
43985
|
-
fV.configure(
|
|
43986
|
-
pV.configure(
|
|
43987
|
-
hV.configure(
|
|
43988
|
-
gV.configure(
|
|
43989
|
-
mV.configure(
|
|
43980
|
+
fV.configure(d),
|
|
43981
|
+
pV.configure(d),
|
|
43982
|
+
hV.configure(d),
|
|
43983
|
+
gV.configure(d),
|
|
43984
|
+
mV.configure(d),
|
|
43990
43985
|
jU.configure({
|
|
43991
|
-
toolbarOpts:
|
|
43986
|
+
toolbarOpts: l,
|
|
43992
43987
|
math: e.pluginProps?.math || {}
|
|
43993
43988
|
}),
|
|
43994
43989
|
Y1,
|
|
43995
43990
|
J1,
|
|
43996
43991
|
Q1,
|
|
43997
43992
|
GW.configure({
|
|
43998
|
-
toolbarOpts:
|
|
43993
|
+
toolbarOpts: l,
|
|
43999
43994
|
imageHandling: {
|
|
44000
43995
|
disableImageAlignmentButtons: e.disableImageAlignmentButtons,
|
|
44001
43996
|
onDone: (t) => e.onDone?.(t.getHTML()),
|
|
44002
43997
|
onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
|
|
44003
43998
|
let { src: n } = t.attrs;
|
|
44004
43999
|
e.imageSupport.delete(n, (e) => {
|
|
44005
|
-
|
|
44000
|
+
c(t.pos);
|
|
44006
44001
|
});
|
|
44007
44002
|
}),
|
|
44008
|
-
insertImageRequested: e.imageSupport && ((t,
|
|
44009
|
-
let [
|
|
44003
|
+
insertImageRequested: e.imageSupport && ((t, n, r) => {
|
|
44004
|
+
let [o, s] = n, l = (n) => {
|
|
44010
44005
|
let r;
|
|
44011
|
-
|
|
44006
|
+
a && n && (r = e.onChange), c(s), r?.(t.getHTML());
|
|
44012
44007
|
};
|
|
44013
|
-
t._insertingImage = !0,
|
|
44014
|
-
let
|
|
44015
|
-
let e = () => window.removeEventListener("focus",
|
|
44008
|
+
t._insertingImage = !0, i((e) => [...e, o]), (() => {
|
|
44009
|
+
let n = r(l), i = _(() => {
|
|
44010
|
+
let e = () => window.removeEventListener("focus", i);
|
|
44016
44011
|
if (!t._insertingImage) {
|
|
44017
44012
|
e();
|
|
44018
44013
|
return;
|
|
44019
44014
|
}
|
|
44020
|
-
|
|
44015
|
+
c(s), t._insertingImage = !1, e();
|
|
44021
44016
|
}, 500);
|
|
44022
|
-
window.addEventListener("focus",
|
|
44017
|
+
window.addEventListener("focus", i), e.imageSupport.add(n);
|
|
44023
44018
|
})();
|
|
44024
44019
|
}),
|
|
44025
44020
|
maxImageWidth: e.maxImageWidth,
|
|
@@ -44029,11 +44024,11 @@ var F1 = Uk.create({
|
|
|
44029
44024
|
}),
|
|
44030
44025
|
JG.configure({ uploadSoundSupport: e.uploadSoundSupport }),
|
|
44031
44026
|
dK.configure({ extraCSSRules: e.extraCSSRules })
|
|
44032
|
-
],
|
|
44033
|
-
extensions:
|
|
44027
|
+
], h = e.spellCheck !== !1, { ariaLabel: g, ariaLabelledBy: v } = e, y = rP({
|
|
44028
|
+
extensions: m,
|
|
44034
44029
|
immediatelyRender: !1,
|
|
44035
44030
|
editorProps: {
|
|
44036
|
-
attributes: a0(
|
|
44031
|
+
attributes: a0(h, g, v),
|
|
44037
44032
|
handleKeyDown(t, n) {
|
|
44038
44033
|
return e.onKeyDown ? e.onKeyDown(n) : !1;
|
|
44039
44034
|
}
|
|
@@ -44044,7 +44039,7 @@ var F1 = Uk.create({
|
|
|
44044
44039
|
n.isDone && e.onChange?.(t.getHTML());
|
|
44045
44040
|
},
|
|
44046
44041
|
onBlur: ({ editor: e }) => {
|
|
44047
|
-
e._insertingImage || e._toolbarOpened || e.isActive("inline_dropdown") || e.isActive("explicit_constructed_response") || !e.schema ||
|
|
44042
|
+
e._insertingImage || e._toolbarOpened || e.isActive("inline_dropdown") || e.isActive("explicit_constructed_response") || !e.schema || u(e);
|
|
44048
44043
|
}
|
|
44049
44044
|
}, [e.charactersLimit]);
|
|
44050
44045
|
P(() => {
|
|
@@ -44053,7 +44048,7 @@ var F1 = Uk.create({
|
|
|
44053
44048
|
y?.setEditable(!e.disabled);
|
|
44054
44049
|
}, [e.disabled, y]), P(() => {
|
|
44055
44050
|
if (!y) return;
|
|
44056
|
-
let e = y.options?.editorProps, t = e?.attributes || {}, n = a0(
|
|
44051
|
+
let e = y.options?.editorProps, t = e?.attributes || {}, n = a0(h, g, v);
|
|
44057
44052
|
if (["spellcheck", ...o0].every((e) => t[e] === n[e])) return;
|
|
44058
44053
|
let r = Object.fromEntries(Object.entries(t).filter(([e]) => !o0.includes(e)));
|
|
44059
44054
|
y.setOptions({ editorProps: {
|
|
@@ -44064,8 +44059,8 @@ var F1 = Uk.create({
|
|
|
44064
44059
|
}
|
|
44065
44060
|
} });
|
|
44066
44061
|
}, [
|
|
44062
|
+
h,
|
|
44067
44063
|
g,
|
|
44068
|
-
_,
|
|
44069
44064
|
v,
|
|
44070
44065
|
y
|
|
44071
44066
|
]), P(() => {
|
|
@@ -44093,8 +44088,8 @@ var F1 = Uk.create({
|
|
|
44093
44088
|
}, [e]);
|
|
44094
44089
|
return /* @__PURE__ */ F(hX, {
|
|
44095
44090
|
...e,
|
|
44096
|
-
activePlugins:
|
|
44097
|
-
toolbarOpts:
|
|
44091
|
+
activePlugins: f,
|
|
44092
|
+
toolbarOpts: l,
|
|
44098
44093
|
editorState: b,
|
|
44099
44094
|
editor: y,
|
|
44100
44095
|
children: y && /* @__PURE__ */ F(c0, {
|
|
@@ -44104,7 +44099,7 @@ var F1 = Uk.create({
|
|
|
44104
44099
|
maxHeight: x.maxHeight
|
|
44105
44100
|
},
|
|
44106
44101
|
showParagraph: t && !t.disabled,
|
|
44107
|
-
separateParagraph:
|
|
44102
|
+
separateParagraph: n && !n.disabled,
|
|
44108
44103
|
editor: y
|
|
44109
44104
|
})
|
|
44110
44105
|
});
|
|
@@ -45754,7 +45749,7 @@ M3.displayName = "Draggable", M3.propTypes = {
|
|
|
45754
45749
|
var N3 = /* @__PURE__ */ tl(ml(), 1), P3 = (0, Wp.default)("pie-lib:plot:grid-draggable"), F3 = (e, t, n) => (r) => {
|
|
45755
45750
|
let i = r + e(0);
|
|
45756
45751
|
return t(n + e.invert(i)).toFixed(4) * 1e3 / 1e3;
|
|
45757
|
-
}, I3 = (e) => (t) => ((0, N3.default)(!!e &&
|
|
45752
|
+
}, I3 = (e) => (t) => ((0, N3.default)(!!e && f(e.fromDelta) && f(e.bounds) && f(e.anchorPoint), "You must supply an object with: { anchorPoint: Function, fromDelta: Function, bounds: Function }"), class extends C.Component {
|
|
45758
45753
|
static propTypes = {
|
|
45759
45754
|
disabled: B.default.bool,
|
|
45760
45755
|
onDragStart: B.default.func,
|
|
@@ -46843,16 +46838,16 @@ var i5 = gl.bounds, a5 = gl.point, o5 = () => 0, s5 = () => 0, c5 = (e) => {
|
|
|
46843
46838
|
for (; n >= e.min && t.indexOf(n) < 0;) t.push(n), n = Math.round((n - e.step) * 1e4) / 1e4;
|
|
46844
46839
|
for (n = Math.round(e.step * 1e4) / 1e4; n <= e.max && t.indexOf(n) < 0;) t.push(n), n = Math.round((n + e.step) * 1e4) / 1e4;
|
|
46845
46840
|
return t ? t.filter((t) => t >= e.min && t <= e.max) : [];
|
|
46846
|
-
}, l5 = (e) => e == null ||
|
|
46847
|
-
let t =
|
|
46841
|
+
}, l5 = (e) => e == null || m(e) ? 1 : e.split(" ").length, u5 = (e) => (e || "").replace(/<[^>]+>/g, "").split(" ").sort((e, t) => t.length - e.length)[0].length, d5 = (e) => e ? e * 10 : 0, f5 = (e) => {
|
|
46842
|
+
let t = o(e), n = {
|
|
46848
46843
|
left: t.x,
|
|
46849
46844
|
top: t.y,
|
|
46850
46845
|
bottom: t.y,
|
|
46851
46846
|
right: t.x
|
|
46852
46847
|
};
|
|
46853
|
-
return
|
|
46848
|
+
return u(e).reduce((e, t) => (e.left = Math.min(e.left, t.x), e.top = Math.max(e.top, t.y), e.bottom = Math.min(e.bottom, t.y), e.right = Math.max(e.right, t.x), e), n);
|
|
46854
46849
|
}, p5 = (e) => {
|
|
46855
|
-
let t =
|
|
46850
|
+
let t = v(e);
|
|
46856
46851
|
return t.sort((e, t) => t.x - e.x), {
|
|
46857
46852
|
a: t[0],
|
|
46858
46853
|
b: t[1]
|
|
@@ -46860,7 +46855,7 @@ var i5 = gl.bounds, a5 = gl.point, o5 = () => 0, s5 = () => 0, c5 = (e) => {
|
|
|
46860
46855
|
}, m5 = (e, t) => ({
|
|
46861
46856
|
x: (e.x + t.x) / 2,
|
|
46862
46857
|
y: (e.y + t.y) / 2
|
|
46863
|
-
}), h5 = (e) => parseFloat(e.toFixed(4)), g5 = (e, t) => e && t && (h5(e.x) === h5(t.x) || h5(e.y) === h5(t.y)), _5 = (e, t) => e && t &&
|
|
46858
|
+
}), h5 = (e) => parseFloat(e.toFixed(4)), g5 = (e, t) => e && t && (h5(e.x) === h5(t.x) || h5(e.y) === h5(t.y)), _5 = (e, t) => e && t && b({
|
|
46864
46859
|
x: h5(e.x),
|
|
46865
46860
|
y: h5(e.y)
|
|
46866
46861
|
}, {
|
|
@@ -46887,12 +46882,12 @@ var i5 = gl.bounds, a5 = gl.point, o5 = () => 0, s5 = () => 0, c5 = (e) => {
|
|
|
46887
46882
|
}, x5 = (e) => (e || []).sort((e, t) => e.x - t.x || e.y - t.y), S5 = (e, t, n) => (e.x - t.x) * (n.y - t.y) === (n.x - t.x) * (e.y - t.y), C5 = (e, t) => S5(e.from, t.from, t.to) && S5(e.to, t.from, t.to), w5 = (e, t, n) => {
|
|
46888
46883
|
let { type: r, building: i } = e;
|
|
46889
46884
|
if (i) return !1;
|
|
46890
|
-
let a = (t || []).filter((e) => e.type === r && !e.building), o = a.findIndex((e) =>
|
|
46885
|
+
let a = (t || []).filter((e) => e.type === r && !e.building), o = a.findIndex((e) => b(e, n));
|
|
46891
46886
|
return o !== -1 && a.splice(o, 1), !!a.find((t) => {
|
|
46892
46887
|
if (r === "line") {
|
|
46893
46888
|
let { from: n, to: i } = e;
|
|
46894
46889
|
return _5(n, t.from) && _5(i, t.to) || _5(n, t.to) && _5(i, t.from) || r === "line" && C5(t, e);
|
|
46895
|
-
} else if (r === "polygon") return
|
|
46890
|
+
} else if (r === "polygon") return b(x5(v(e.points)), x5(v(t.points)));
|
|
46896
46891
|
});
|
|
46897
46892
|
}, T5 = (e, t) => {
|
|
46898
46893
|
if (e.length !== t.length) return !1;
|
|
@@ -48795,9 +48790,9 @@ var Ene = class extends C.Component {
|
|
|
48795
48790
|
ariaDescription: `${o(t, "x")} ${o(n, "y")} ${c}`
|
|
48796
48791
|
};
|
|
48797
48792
|
}, Ane = ({ marks: e, currentTool: t }) => {
|
|
48798
|
-
let n = e.filter((e) => e.building)[0], r =
|
|
48793
|
+
let n = e.filter((e) => e.building)[0], r = v(e);
|
|
48799
48794
|
if (n && t && n.type !== t.type) {
|
|
48800
|
-
let e = r.findIndex((e) =>
|
|
48795
|
+
let e = r.findIndex((e) => b(e, n));
|
|
48801
48796
|
e >= 0 && r.splice(e, 1);
|
|
48802
48797
|
}
|
|
48803
48798
|
return r;
|
|
@@ -48822,7 +48817,7 @@ var Ene = class extends C.Component {
|
|
|
48822
48817
|
changeMark = (e, t) => {
|
|
48823
48818
|
let { onChangeMarks: n, marks: r, gssLineData: i } = this.props;
|
|
48824
48819
|
if (i?.selectedTool === "solutionSet") return;
|
|
48825
|
-
let a =
|
|
48820
|
+
let a = v(r), o = a.findIndex((t) => b(t, e));
|
|
48826
48821
|
o >= 0 && !w5(t, r, e) && (a.splice(o, 1, t), n(a));
|
|
48827
48822
|
};
|
|
48828
48823
|
completeMark = (e) => {
|
|
@@ -48832,9 +48827,9 @@ var Ene = class extends C.Component {
|
|
|
48832
48827
|
this.updateMarks(r, i);
|
|
48833
48828
|
};
|
|
48834
48829
|
updateMarks = (e, t, n = !1) => {
|
|
48835
|
-
let { onChangeMarks: r, marks: i } = this.props, a =
|
|
48830
|
+
let { onChangeMarks: r, marks: i } = this.props, a = v(i);
|
|
48836
48831
|
if (!t || !t.building && w5(t, i)) return;
|
|
48837
|
-
let o = a.findIndex((t) =>
|
|
48832
|
+
let o = a.findIndex((t) => b(t, e));
|
|
48838
48833
|
o >= 0 ? (a.splice(o, 1, t), r(a)) : n && r([...a, t]);
|
|
48839
48834
|
};
|
|
48840
48835
|
getComponent = (e) => {
|
|
@@ -50057,7 +50052,7 @@ e9.propTypes = {
|
|
|
50057
50052
|
};
|
|
50058
50053
|
//#endregion
|
|
50059
50054
|
//#region ../../lib-react/graphing-solution-set/dist/tools/polygon/component.js
|
|
50060
|
-
var bre = /* @__PURE__ */ Wc(Gc(), 1), t9 = (0, Wp.default)("pie-lib:graphing-solution-set:polygon"), xre = (e, ...t) =>
|
|
50055
|
+
var bre = /* @__PURE__ */ Wc(Gc(), 1), t9 = (0, Wp.default)("pie-lib:graphing-solution-set:polygon"), xre = (e, ...t) => d(t, 2).reduce((e, t) => {
|
|
50061
50056
|
if (t.length === 2) {
|
|
50062
50057
|
let [n, r] = t;
|
|
50063
50058
|
(0, bre.default)(Number.isFinite(n.index), "Index must be defined");
|
|
@@ -50111,9 +50106,9 @@ var bre = /* @__PURE__ */ Wc(Gc(), 1), t9 = (0, Wp.default)("pie-lib:graphing-so
|
|
|
50111
50106
|
};
|
|
50112
50107
|
labelChange = (e, t) => {
|
|
50113
50108
|
let { points: n, onChangeProps: r } = this.props, i = { ...e };
|
|
50114
|
-
(!e.label ||
|
|
50115
|
-
let
|
|
50116
|
-
|
|
50109
|
+
(!e.label || m(e.label)) && delete i.label;
|
|
50110
|
+
let a = [...n];
|
|
50111
|
+
a.splice(t, 1, i), r(a);
|
|
50117
50112
|
};
|
|
50118
50113
|
clickPoint = (e, t, n) => {
|
|
50119
50114
|
let { closed: r, disabled: i, onClick: a, isToolActive: o, labelModeEnabled: s, onChangeProps: c, onChangeLabelProps: l, points: u } = this.props;
|
|
@@ -50421,7 +50416,7 @@ var Ore = z("g")(({ disabled: e, correctness: t }) => ({
|
|
|
50421
50416
|
};
|
|
50422
50417
|
render() {
|
|
50423
50418
|
let { classes: e, className: t, x: n, y: r, disabled: i, correctness: a, graphProps: o, from: s, to: c, ...l } = this.props, { scale: u } = o, d = o5(s.x, s.y, c.x, c.y), f = "";
|
|
50424
|
-
return f =
|
|
50419
|
+
return f = b(s, c) ? "0,0 0,0 0,0" : `0,0 ${s5.vector},${s5.vector * 2}
|
|
50425
50420
|
-${s5.vector},${s5.vector * 2}`, /* @__PURE__ */ F("g", {
|
|
50426
50421
|
className: C7(e.point, i && e.disabled, e[a], t),
|
|
50427
50422
|
...l,
|
|
@@ -50555,7 +50550,7 @@ var Nre = (e, t) => () => ({
|
|
|
50555
50550
|
let { onChange: e, mark: t } = this.props, n = { ...this.state.mark };
|
|
50556
50551
|
this.setState({ mark: void 0 }, () => {
|
|
50557
50552
|
let { type: r } = n, i = r && (r === "parabola" || r === "sine" || r === "absolute" || r === "exponential") && g5(n.from, n.to);
|
|
50558
|
-
!i && r && r === "exponential" && n.from && n.to && (i = n.from.y === 0 || n.to.y === 0 || n.from.y * n.to.y < 0), !
|
|
50553
|
+
!i && r && r === "exponential" && n.from && n.to && (i = n.from.y === 0 || n.to.y === 0 || n.from.y * n.to.y < 0), !b(t, n) && !i && e(t, n);
|
|
50559
50554
|
});
|
|
50560
50555
|
};
|
|
50561
50556
|
changeMark = ({ from: e, to: t, middle: n }) => {
|
|
@@ -50583,17 +50578,17 @@ var Nre = (e, t) => () => ({
|
|
|
50583
50578
|
}), n && (a = {
|
|
50584
50579
|
...a,
|
|
50585
50580
|
middle: n
|
|
50586
|
-
}),
|
|
50581
|
+
}), b(i, a) || r(i, a);
|
|
50587
50582
|
};
|
|
50588
50583
|
render() {
|
|
50589
|
-
let { graphProps: t, onClick: n, labelNode: r, labelModeEnabled: i, coordinatesOnHover: a, gssLineData: o, language: s } = this.props, c = this.state.mark ? this.state.mark : this.props.mark, l =
|
|
50590
|
-
return l && c.isBackground && (l.disabled = !0), u && c.isBackground && (u.disabled = !0),
|
|
50584
|
+
let { graphProps: t, onClick: n, labelNode: r, labelModeEnabled: i, coordinatesOnHover: a, gssLineData: o, language: s } = this.props, c = this.state.mark ? this.state.mark : this.props.mark, l = v(c.from), u = v(c.to), d = v(c.middle);
|
|
50585
|
+
return l && c.isBackground && (l.disabled = !0), u && c.isBackground && (u.disabled = !0), d && c.isBackground && (d.disabled = !0), /* @__PURE__ */ F(e, {
|
|
50591
50586
|
disabled: c.disabled,
|
|
50592
50587
|
coordinatesOnHover: a,
|
|
50593
50588
|
correctness: c.correctness,
|
|
50594
50589
|
from: l,
|
|
50595
50590
|
to: u,
|
|
50596
|
-
middle:
|
|
50591
|
+
middle: d,
|
|
50597
50592
|
graphProps: t,
|
|
50598
50593
|
fill: c && c.fill,
|
|
50599
50594
|
gssLineData: o,
|
|
@@ -50625,7 +50620,7 @@ var Nre = (e, t) => () => ({
|
|
|
50625
50620
|
}
|
|
50626
50621
|
}), Ire = (e, t) => {
|
|
50627
50622
|
let n = I3(Fre())(e), r = t && t.from ? t.from : s9, i = t && t.to ? t.to : s9;
|
|
50628
|
-
class
|
|
50623
|
+
class a extends C.Component {
|
|
50629
50624
|
static propTypes = {
|
|
50630
50625
|
coordinatesOnHover: B.default.bool,
|
|
50631
50626
|
graphProps: nl.GraphPropsType,
|
|
@@ -50680,7 +50675,7 @@ var Nre = (e, t) => () => ({
|
|
|
50680
50675
|
};
|
|
50681
50676
|
labelChange = (e, t) => {
|
|
50682
50677
|
let { changeMarkProps: n } = this.props, r = { ...e };
|
|
50683
|
-
(!e.label ||
|
|
50678
|
+
(!e.label || m(e.label)) && delete r.label, n({ [t]: r });
|
|
50684
50679
|
};
|
|
50685
50680
|
clickPoint = (e, t, n) => {
|
|
50686
50681
|
let { changeMarkProps: r, disabled: i, from: a, to: o, labelModeEnabled: s, onClick: c } = this.props;
|
|
@@ -50808,7 +50803,7 @@ var Nre = (e, t) => () => ({
|
|
|
50808
50803
|
] });
|
|
50809
50804
|
}
|
|
50810
50805
|
}
|
|
50811
|
-
return
|
|
50806
|
+
return a;
|
|
50812
50807
|
}, c9 = {
|
|
50813
50808
|
line: () => ({
|
|
50814
50809
|
fill: "transparent",
|
|
@@ -51326,27 +51321,27 @@ var P9 = class extends C.Component {
|
|
|
51326
51321
|
changeCurrentTool = (e, t) => this.setState({ currentTool: t.find((t) => t.type === e) });
|
|
51327
51322
|
toggleLabelMode = () => this.setState((e) => ({ labelModeEnabled: !e.labelModeEnabled }));
|
|
51328
51323
|
render() {
|
|
51329
|
-
let { currentTool: e, labelModeEnabled: t } = this.state, { axesSettings: n, className: r, coordinatesOnHover: i, collapsibleToolbar:
|
|
51330
|
-
te =
|
|
51324
|
+
let { currentTool: e, labelModeEnabled: t } = this.state, { axesSettings: n, className: r, coordinatesOnHover: i, collapsibleToolbar: o, collapsibleToolbarTitle: s, disabled: c, disabledLabels: l, disabledTitle: u, domain: d, labels: f, labelsPlaceholders: p, onChangeLabels: m, onChangeMarks: h, onChangeTitle: g, onUndo: _, onRedo: v, range: y, size: b, showLabels: S, showPixelGuides: C, showTitle: w, title: T, titlePlaceholder: E, language: D, disableToolbar: O = !1, gssLineData: k, onChangeGssLineData: A, onSolutionSetSelected: j, onCustomReset: M } = this.props, { backgroundMarks: N, marks: ee, toolbarTools: te } = this.props;
|
|
51325
|
+
te = x(te || []).filter((e) => !!a(e)) || [], N = cie(N || []), ee = lie(te, ee || []), k && k.lineA && ee[0] && ee[0].type === "line" && (ee[0].fill = k.lineA.lineType), k && k.lineB && ee[1] && ee[1].type === "line" && (ee[1].fill = k.lineB.lineType);
|
|
51331
51326
|
let P = aie(te);
|
|
51332
51327
|
(!e || !oie(P, e)) && (e = sie(P));
|
|
51333
51328
|
let ne = k && /* @__PURE__ */ I(se, { children: [/* @__PURE__ */ F(sre, {
|
|
51334
51329
|
numberOfLines: k.numberOfLines,
|
|
51335
51330
|
gssLineData: k,
|
|
51336
51331
|
onChange: A,
|
|
51337
|
-
disabled: !!
|
|
51332
|
+
disabled: !!c,
|
|
51338
51333
|
language: D
|
|
51339
|
-
}), !
|
|
51340
|
-
onUndo:
|
|
51341
|
-
onRedo:
|
|
51334
|
+
}), !c && /* @__PURE__ */ F(hie, { children: /* @__PURE__ */ F(iie, {
|
|
51335
|
+
onUndo: _,
|
|
51336
|
+
onRedo: v,
|
|
51342
51337
|
onReset: M,
|
|
51343
51338
|
language: D
|
|
51344
51339
|
}) })] });
|
|
51345
51340
|
return /* @__PURE__ */ I(uie, {
|
|
51346
51341
|
className: C7(r),
|
|
51347
51342
|
children: [
|
|
51348
|
-
!O && /* @__PURE__ */ F(die, { children:
|
|
51349
|
-
title:
|
|
51343
|
+
!O && /* @__PURE__ */ F(die, { children: o ? /* @__PURE__ */ F(N9, {
|
|
51344
|
+
title: s,
|
|
51350
51345
|
children: ne
|
|
51351
51346
|
}) : ne }),
|
|
51352
51347
|
/* @__PURE__ */ F("div", { ref: (e) => this.labelNode = e }),
|
|
@@ -51355,18 +51350,18 @@ var P9 = class extends C.Component {
|
|
|
51355
51350
|
backgroundMarks: N,
|
|
51356
51351
|
coordinatesOnHover: i,
|
|
51357
51352
|
currentTool: e,
|
|
51358
|
-
disabledLabels:
|
|
51359
|
-
disabledTitle:
|
|
51360
|
-
domain:
|
|
51361
|
-
labels:
|
|
51353
|
+
disabledLabels: l,
|
|
51354
|
+
disabledTitle: u,
|
|
51355
|
+
domain: d,
|
|
51356
|
+
labels: f,
|
|
51362
51357
|
labelModeEnabled: t,
|
|
51363
|
-
labelsPlaceholders:
|
|
51358
|
+
labelsPlaceholders: p,
|
|
51364
51359
|
marks: ee,
|
|
51365
|
-
onChangeMarks:
|
|
51360
|
+
onChangeMarks: c ? void 0 : h,
|
|
51366
51361
|
onChangeLabels: m,
|
|
51367
|
-
onChangeTitle:
|
|
51368
|
-
range:
|
|
51369
|
-
size:
|
|
51362
|
+
onChangeTitle: g,
|
|
51363
|
+
range: y,
|
|
51364
|
+
size: b,
|
|
51370
51365
|
showLabels: S,
|
|
51371
51366
|
showPixelGuides: C,
|
|
51372
51367
|
showTitle: w,
|
|
@@ -51375,7 +51370,7 @@ var P9 = class extends C.Component {
|
|
|
51375
51370
|
tools: P,
|
|
51376
51371
|
gssLineData: k,
|
|
51377
51372
|
onSolutionSetSelected: j,
|
|
51378
|
-
disabled: !!
|
|
51373
|
+
disabled: !!c,
|
|
51379
51374
|
language: D
|
|
51380
51375
|
})
|
|
51381
51376
|
]
|
|
@@ -51817,11 +51812,11 @@ var dae = uae, fae = lae((e) => ({ marks: e.marks.present }), (e) => ({
|
|
|
51817
51812
|
}
|
|
51818
51813
|
componentDidUpdate(e) {
|
|
51819
51814
|
let { marks: t } = this.props;
|
|
51820
|
-
|
|
51815
|
+
b(this.store.getState().marks.present, t) || b(e.marks, t) || t && t.find((e) => e.correctness) || this.store.dispatch(A9(t));
|
|
51821
51816
|
}
|
|
51822
51817
|
onStoreChange = () => {
|
|
51823
51818
|
let { marks: e, onChangeMarks: t } = this.props, n = this.store.getState(), r = gie(), i = r.type.includes("UNDO") || r.type.includes("REDO");
|
|
51824
|
-
|
|
51819
|
+
b(n.marks.present, e) || t(n.marks.present, i);
|
|
51825
51820
|
};
|
|
51826
51821
|
render() {
|
|
51827
51822
|
let { onChangeMarks: e, marks: t, ...n } = this.props, r = t && t.find((e) => e.correctness);
|
|
@@ -51876,4 +51871,4 @@ $9.defaultProps = {
|
|
|
51876
51871
|
//#endregion
|
|
51877
51872
|
export { Za as $, yg as A, Zf as B, e_ as C, Tg as D, Fg as E, Fp as F, V as G, mf as H, Mp as I, Ac as J, Fc as K, Ap as L, _h as M, fh as N, wg as O, tm as P, Qa as Q, Dp as R, i_ as S, Gg as T, Jd as U, Gf as V, cd as W, ys as X, Ec as Y, gs as Z, xH as _, U7 as a, A_ as b, R7 as c, bG as d, L as et, hG as f, RH as g, WH as h, G7 as i, zh as j, Cg as k, L7 as l, YH as m, pae as n, ln as nt, V7 as o, eW as p, z as q, j9 as r, rn as rt, B7 as s, $9 as t, bi as tt, l0 as u, EV as v, $g as w, o_ as x, jM as y, H as z };
|
|
51878
51873
|
|
|
51879
|
-
//# sourceMappingURL=alert-dialog-
|
|
51874
|
+
//# sourceMappingURL=alert-dialog-DBl8k2Fv.js.map
|