@pie-element/graphing-solution-set 7.0.1-next.20261005143122 → 7.0.1-next.20261005182602
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-l9a8rVbf.js → alert-dialog-ByTtwRX7.js} +118 -118
- package/dist/browser/{alert-dialog-l9a8rVbf.js.map → alert-dialog-ByTtwRX7.js.map} +1 -1
- package/dist/browser/author/index.js +45 -45
- package/dist/browser/{browser-bbrzkX59.js → browser-D6SETh7_.js} +60 -44
- package/dist/browser/browser-D6SETh7_.js.map +1 -0
- package/dist/browser/controller/index.js +33 -33
- package/dist/browser/delivery/index.js +2 -2
- package/dist/browser/editor-runtime/{alert-dialog-B5z7Nc2t.js → alert-dialog-BosHJVrz.js} +108 -108
- package/dist/browser/editor-runtime/{alert-dialog-B5z7Nc2t.js.map → alert-dialog-BosHJVrz.js.map} +1 -1
- package/dist/browser/editor-runtime/author/index.js +45 -45
- package/dist/browser/editor-runtime/{browser-d5JHIrvC.js → browser-T4v8yQYK.js} +60 -44
- package/dist/browser/editor-runtime/browser-T4v8yQYK.js.map +1 -0
- package/dist/browser/editor-runtime/controller/index.js +33 -33
- package/dist/browser/editor-runtime/delivery/index.js +2 -2
- package/dist/browser/editor-runtime/{mathjax-D2JHb_R_-CNSN6-xM.js → mathjax-D2JHb_R_-CzZ0NmmT.js} +2 -2
- package/dist/browser/editor-runtime/{mathjax-D2JHb_R_-CNSN6-xM.js.map → mathjax-D2JHb_R_-CzZ0NmmT.js.map} +1 -1
- package/dist/browser/{mathjax-D2JHb_R_-CWwd1xT4.js → mathjax-D2JHb_R_-DWnKBKhZ.js} +2 -2
- package/dist/browser/{mathjax-D2JHb_R_-CWwd1xT4.js.map → mathjax-D2JHb_R_-DWnKBKhZ.js.map} +1 -1
- package/dist/index.iife.js +73 -73
- package/package.json +7 -7
- package/dist/browser/browser-bbrzkX59.js.map +0 -1
- package/dist/browser/editor-runtime/browser-d5JHIrvC.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, c as o, d as s, f as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, s as g, t as _, u as v, v as y, w as b, y as x } from "./browser-D6SETh7_.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_-DWnKBKhZ.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 = v(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 = f(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 c(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) => m(e.domain, t.domain) && m(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],
|
|
@@ -7039,7 +7039,7 @@ var Bp = (e) => {
|
|
|
7039
7039
|
})
|
|
7040
7040
|
})
|
|
7041
7041
|
});
|
|
7042
|
-
}), Wp = /* @__PURE__ */ t(
|
|
7042
|
+
}), Wp = /* @__PURE__ */ t(_(), 1), Gp = /* @__PURE__ */ Al({
|
|
7043
7043
|
Correct: () => Zp,
|
|
7044
7044
|
Incorrect: () => Qp,
|
|
7045
7045
|
NothingSubmitted: () => em,
|
|
@@ -11400,7 +11400,7 @@ var S_ = {
|
|
|
11400
11400
|
}
|
|
11401
11401
|
}
|
|
11402
11402
|
}
|
|
11403
|
-
}), A_ = /* @__PURE__ */
|
|
11403
|
+
}), A_ = /* @__PURE__ */ b({
|
|
11404
11404
|
Collapsible: () => _h,
|
|
11405
11405
|
EnableAudioAutoplayImage: () => s_,
|
|
11406
11406
|
Feedback: () => xd,
|
|
@@ -11453,8 +11453,8 @@ var S_ = {
|
|
|
11453
11453
|
"blockquote"
|
|
11454
11454
|
].includes(e)), F_ = (e, t, n) => {
|
|
11455
11455
|
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
|
|
11456
|
+
let r = (t, n = !0) => e.includes(t) && n && t, i = n.image && n.image.delete, o = n.math, s = n.responseArea && n.responseArea.type, c = !a(n.extraCSSRules), l = n?.languageCharacters || [];
|
|
11457
|
+
return y([
|
|
11458
11458
|
r("table"),
|
|
11459
11459
|
r("bold"),
|
|
11460
11460
|
r("italic"),
|
|
@@ -11465,7 +11465,7 @@ var S_ = {
|
|
|
11465
11465
|
r("image", !!i),
|
|
11466
11466
|
r("video"),
|
|
11467
11467
|
r("audio"),
|
|
11468
|
-
r("math", !!
|
|
11468
|
+
r("math", !!o),
|
|
11469
11469
|
...l.map((e) => r("languageCharacters", e)),
|
|
11470
11470
|
r("text-align"),
|
|
11471
11471
|
r("blockquote"),
|
|
@@ -26700,7 +26700,7 @@ var nI = (e, t, n, r) => {
|
|
|
26700
26700
|
}), i.isDone = !0, e.view.dispatch(i);
|
|
26701
26701
|
}, rI = (e, t, n) => {
|
|
26702
26702
|
let { tr: r } = e.state;
|
|
26703
|
-
r.setNodeMarkup(n.pos, void 0,
|
|
26703
|
+
r.setNodeMarkup(n.pos, void 0, i(t.attrs, ["value", "id"])), r.isDone = !0, e.view.dispatch(r);
|
|
26704
26704
|
}, iI = (e) => {
|
|
26705
26705
|
let { editor: t, node: n, getPos: r, options: i, selected: a } = e, { attrs: o } = n, { inTable: s } = o, c = r();
|
|
26706
26706
|
return /* @__PURE__ */ F(sP, {
|
|
@@ -26897,17 +26897,17 @@ var oI = Object.defineProperty, sI = (e, t) => {
|
|
|
26897
26897
|
category: e
|
|
26898
26898
|
}), hI = (e = []) => {
|
|
26899
26899
|
let t = [];
|
|
26900
|
-
|
|
26901
|
-
let n = e.length, r = 0,
|
|
26902
|
-
for (;
|
|
26900
|
+
x(5, () => t.push([]));
|
|
26901
|
+
let n = e.length, r = 0, i = 0;
|
|
26902
|
+
for (; i < n;) t[r++].push(e[i++]), r === 5 && (r = 0);
|
|
26903
26903
|
return t;
|
|
26904
26904
|
}, gI = (e) => (t) => {
|
|
26905
|
-
let
|
|
26906
|
-
return !
|
|
26905
|
+
let n = u(e), r = n.some((e) => e.latex === t.latex), i = n.some((e) => e.name === t.name);
|
|
26906
|
+
return !r && !i;
|
|
26907
26907
|
}, _I = (e = [], t = []) => {
|
|
26908
26908
|
t = t.filter(gI(e));
|
|
26909
26909
|
let n = [];
|
|
26910
|
-
|
|
26910
|
+
x(5 - e.length, () => e.push([])), x(5, () => n.push([]));
|
|
26911
26911
|
let r = hI(t);
|
|
26912
26912
|
for (let t = 0; t < 5; t++) n[t] = [...e[t], ...r[t]];
|
|
26913
26913
|
return n;
|
|
@@ -27325,7 +27325,7 @@ var oI = Object.defineProperty, sI = (e, t) => {
|
|
|
27325
27325
|
7: "seven",
|
|
27326
27326
|
8: "eight",
|
|
27327
27327
|
9: "nine"
|
|
27328
|
-
}, sR =
|
|
27328
|
+
}, sR = x(10, String).map((e) => ({
|
|
27329
27329
|
name: oR[e],
|
|
27330
27330
|
write: e,
|
|
27331
27331
|
label: e,
|
|
@@ -30668,7 +30668,7 @@ var LB = class extends C.Component {
|
|
|
30668
30668
|
CommonMqStyles: () => HB,
|
|
30669
30669
|
Input: () => jB,
|
|
30670
30670
|
Static: () => LB
|
|
30671
|
-
}), WB = (e) => (
|
|
30671
|
+
}), WB = (e) => (x(5 - e.length, () => e.push([])), g.apply(null, e)), GB = (0, Wp.default)("pie-lib:math-inline:keypad"), KB = z(LB)(({ latex: e }) => {
|
|
30672
30672
|
let t = {
|
|
30673
30673
|
pointerEvents: "none",
|
|
30674
30674
|
textTransform: "none !important",
|
|
@@ -30860,7 +30860,7 @@ var qB = (e) => e ? {
|
|
|
30860
30860
|
let { onPress: t } = this.props;
|
|
30861
30861
|
t(e);
|
|
30862
30862
|
};
|
|
30863
|
-
flowKeys = (e, t) =>
|
|
30863
|
+
flowKeys = (e, t) => u([...WB(e), ...WB(t)]);
|
|
30864
30864
|
keyIsNotAllowed = (e) => {
|
|
30865
30865
|
let { noDecimal: t } = this.props;
|
|
30866
30866
|
return !!((e.write === "." && e.label === "." || e.write === "," && e.label === ",") && t);
|
|
@@ -33427,7 +33427,7 @@ var KH = (e, t) => {
|
|
|
33427
33427
|
};
|
|
33428
33428
|
shouldComponentUpdate(e, t) {
|
|
33429
33429
|
let n = this.input.mathField.latex() !== e.latex;
|
|
33430
|
-
return eU("[shouldComponentUpdate] ", "inputIsDifferent: ", n), !
|
|
33430
|
+
return eU("[shouldComponentUpdate] ", "inputIsDifferent: ", n), !m(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
33431
|
}
|
|
33432
33432
|
onEditorTypeChange = (e) => {
|
|
33433
33433
|
this.setState({ equationEditor: e.target.value });
|
|
@@ -35258,7 +35258,7 @@ var RW = z(LW, { shouldForwardProp: (e) => e !== "hideProgress" })(({ hideProgre
|
|
|
35258
35258
|
display: "none"
|
|
35259
35259
|
})), UW = (e) => e ? `${e}px` : "calc(20px)";
|
|
35260
35260
|
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,
|
|
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, h = re(() => f + t.nodeSize === p, [
|
|
35262
35262
|
f,
|
|
35263
35263
|
p,
|
|
35264
35264
|
t.nodeSize
|
|
@@ -35292,9 +35292,9 @@ function WW(e) {
|
|
|
35292
35292
|
pos: d
|
|
35293
35293
|
};
|
|
35294
35294
|
}, [t, d]), P(() => {
|
|
35295
|
-
o ?
|
|
35295
|
+
o ? h && n.isEditable && (!String(t.attrs?.src ?? "").trim() && s.imageHandling?.insertImageRequested && s.imageHandling.insertImageRequested(n, [t, d], (e) => new IU(n, [t, d], e)), _(o)) : _(o);
|
|
35296
35296
|
}, [
|
|
35297
|
-
|
|
35297
|
+
h,
|
|
35298
35298
|
o,
|
|
35299
35299
|
n.isEditable
|
|
35300
35300
|
]), P(() => {
|
|
@@ -35315,7 +35315,7 @@ function WW(e) {
|
|
|
35315
35315
|
width: n,
|
|
35316
35316
|
height: r
|
|
35317
35317
|
};
|
|
35318
|
-
|
|
35318
|
+
m(i, {
|
|
35319
35319
|
width: t.attrs.width,
|
|
35320
35320
|
height: t.attrs.height
|
|
35321
35321
|
}) || w(i);
|
|
@@ -40000,19 +40000,19 @@ function UY({ editor: e, opts: t, onClose: n }) {
|
|
|
40000
40000
|
left: 0
|
|
40001
40001
|
}), [s, c] = ae(null);
|
|
40002
40002
|
i.current = n;
|
|
40003
|
-
let
|
|
40003
|
+
let u = re(() => {
|
|
40004
40004
|
if (!t) return xq;
|
|
40005
40005
|
switch (!0) {
|
|
40006
40006
|
case t.language === "spanish": return xq;
|
|
40007
40007
|
case t.language === "special": return Sq;
|
|
40008
40008
|
default: return t;
|
|
40009
40009
|
}
|
|
40010
|
-
}, [t]),
|
|
40011
|
-
rows:
|
|
40010
|
+
}, [t]), d = re(() => u.characters.reduce((e, t) => (t.length >= e.columns && (e.columns = t.length), e), {
|
|
40011
|
+
rows: u.characters.length,
|
|
40012
40012
|
columns: 0
|
|
40013
|
-
}), [
|
|
40013
|
+
}), [u]), f = () => c(null);
|
|
40014
40014
|
P(() => () => {
|
|
40015
|
-
|
|
40015
|
+
f();
|
|
40016
40016
|
}, []), P(() => {
|
|
40017
40017
|
if (!e) return;
|
|
40018
40018
|
let t = e.options.element, n = e.view.dom, a = () => {
|
|
@@ -40039,7 +40039,7 @@ function UY({ editor: e, opts: t, onClose: n }) {
|
|
|
40039
40039
|
clearTimeout(u), s !== null && cancelAnimationFrame(s), window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c), document.removeEventListener("click", l);
|
|
40040
40040
|
};
|
|
40041
40041
|
}, [e]);
|
|
40042
|
-
let
|
|
40042
|
+
let p = (e, t) => c({
|
|
40043
40043
|
anchorEl: e.currentTarget,
|
|
40044
40044
|
el: t
|
|
40045
40045
|
});
|
|
@@ -40063,11 +40063,11 @@ function UY({ editor: e, opts: t, onClose: n }) {
|
|
|
40063
40063
|
hideInput: !0,
|
|
40064
40064
|
noLatexHandling: !0,
|
|
40065
40065
|
hideDoneButtonBackground: !0,
|
|
40066
|
-
layoutForKeyPad:
|
|
40067
|
-
additionalKeys:
|
|
40068
|
-
name:
|
|
40069
|
-
write:
|
|
40070
|
-
label:
|
|
40066
|
+
layoutForKeyPad: d,
|
|
40067
|
+
additionalKeys: u.characters.reduce((e, t) => (e = [...e, ...t.map((e) => ({
|
|
40068
|
+
name: l(e, "name") || e,
|
|
40069
|
+
write: l(e, "write") || e,
|
|
40070
|
+
label: l(e, "label") || e,
|
|
40071
40071
|
category: "character",
|
|
40072
40072
|
extraClass: "character",
|
|
40073
40073
|
extraProps: {
|
|
@@ -40077,9 +40077,9 @@ function UY({ editor: e, opts: t, onClose: n }) {
|
|
|
40077
40077
|
border: "1px solid #000"
|
|
40078
40078
|
}
|
|
40079
40079
|
},
|
|
40080
|
-
...
|
|
40081
|
-
onMouseEnter: (t) =>
|
|
40082
|
-
onMouseLeave:
|
|
40080
|
+
...u.hasPreview ? { actions: {
|
|
40081
|
+
onMouseEnter: (t) => p(t, e),
|
|
40082
|
+
onMouseLeave: f
|
|
40083
40083
|
} } : {}
|
|
40084
40084
|
}))], e), []),
|
|
40085
40085
|
keypadMode: "language",
|
|
@@ -40089,7 +40089,7 @@ function UY({ editor: e, opts: t, onClose: n }) {
|
|
|
40089
40089
|
onDone: n
|
|
40090
40090
|
}) })
|
|
40091
40091
|
}), document.body), s && le.createPortal(/* @__PURE__ */ I(VY, {
|
|
40092
|
-
onClose:
|
|
40092
|
+
onClose: f,
|
|
40093
40093
|
anchorEl: s.anchorEl,
|
|
40094
40094
|
children: [
|
|
40095
40095
|
/* @__PURE__ */ F("div", { children: s.el.label }),
|
|
@@ -43885,27 +43885,27 @@ var F1 = Uk.create({
|
|
|
43885
43885
|
...t && { "aria-label": t },
|
|
43886
43886
|
...n && { "aria-labelledby": n }
|
|
43887
43887
|
}), o0 = ["aria-label", "aria-labelledby"], s0 = (e) => {
|
|
43888
|
-
let { showParagraphs: t, separateParagraphs:
|
|
43889
|
-
|
|
43888
|
+
let { showParagraphs: t, separateParagraphs: r } = e.pluginProps || {}, [i, a] = ae([]), [o, s] = ae(!1), { toolbarOpts: c } = e, l = N((e) => {
|
|
43889
|
+
a((t) => {
|
|
43890
43890
|
let n = t.filter((t) => t.pos !== e);
|
|
43891
|
-
return n.length === 0 &&
|
|
43891
|
+
return n.length === 0 && s(!1), n;
|
|
43892
43892
|
});
|
|
43893
|
-
}, [
|
|
43893
|
+
}, [a]), u = {
|
|
43894
43894
|
...e0,
|
|
43895
|
-
...
|
|
43896
|
-
},
|
|
43895
|
+
...c
|
|
43896
|
+
}, d = N((t) => {
|
|
43897
43897
|
let n = t.getHTML();
|
|
43898
|
-
e.markup !== n && e.onChange?.(n),
|
|
43898
|
+
e.markup !== n && e.onChange?.(n), u.doneOn === "blur" && e.onDone?.(n);
|
|
43899
43899
|
}, [
|
|
43900
43900
|
e.markup,
|
|
43901
43901
|
e.onChange,
|
|
43902
43902
|
e.onDone,
|
|
43903
|
-
|
|
43904
|
-
]),
|
|
43903
|
+
u.doneOn
|
|
43904
|
+
]), f = re(() => ({
|
|
43905
43905
|
...t0,
|
|
43906
43906
|
...e.responseAreaProps,
|
|
43907
|
-
onInlineDropdownToolbarClose:
|
|
43908
|
-
}), [e.responseAreaProps,
|
|
43907
|
+
onInlineDropdownToolbarClose: d
|
|
43908
|
+
}), [e.responseAreaProps, d]), p = re(() => {
|
|
43909
43909
|
let { customPlugins: t, ...n } = e.pluginProps || {};
|
|
43910
43910
|
t ||= [];
|
|
43911
43911
|
let r = (e.activePlugins || n0)?.filter((e) => {
|
|
@@ -43920,16 +43920,16 @@ var F1 = Uk.create({
|
|
|
43920
43920
|
image: { ...e.imageSupport },
|
|
43921
43921
|
toolbar: {},
|
|
43922
43922
|
table: {},
|
|
43923
|
-
responseArea: { type:
|
|
43923
|
+
responseArea: { type: f.type },
|
|
43924
43924
|
languageCharacters: e.languageCharactersProps,
|
|
43925
43925
|
keyPadCharacterRef: {},
|
|
43926
43926
|
setKeypadInteraction: {},
|
|
43927
43927
|
media: {}
|
|
43928
43928
|
});
|
|
43929
|
-
}, [e,
|
|
43929
|
+
}, [e, f.type]), m = ie(null);
|
|
43930
43930
|
m.current = {
|
|
43931
43931
|
plainText: e.pluginProps?.pasteFormatting?.disabled === !0,
|
|
43932
|
-
formatting:
|
|
43932
|
+
formatting: p.map((e) => r0[e]).filter(Boolean)
|
|
43933
43933
|
};
|
|
43934
43934
|
let h = [
|
|
43935
43935
|
X1.configure({
|
|
@@ -43982,44 +43982,44 @@ var F1 = Uk.create({
|
|
|
43982
43982
|
rM,
|
|
43983
43983
|
bM,
|
|
43984
43984
|
yM,
|
|
43985
|
-
fV.configure(
|
|
43986
|
-
pV.configure(
|
|
43987
|
-
hV.configure(
|
|
43988
|
-
gV.configure(
|
|
43989
|
-
mV.configure(
|
|
43985
|
+
fV.configure(f),
|
|
43986
|
+
pV.configure(f),
|
|
43987
|
+
hV.configure(f),
|
|
43988
|
+
gV.configure(f),
|
|
43989
|
+
mV.configure(f),
|
|
43990
43990
|
jU.configure({
|
|
43991
|
-
toolbarOpts:
|
|
43991
|
+
toolbarOpts: u,
|
|
43992
43992
|
math: e.pluginProps?.math || {}
|
|
43993
43993
|
}),
|
|
43994
43994
|
Y1,
|
|
43995
43995
|
J1,
|
|
43996
43996
|
Q1,
|
|
43997
43997
|
GW.configure({
|
|
43998
|
-
toolbarOpts:
|
|
43998
|
+
toolbarOpts: u,
|
|
43999
43999
|
imageHandling: {
|
|
44000
44000
|
disableImageAlignmentButtons: e.disableImageAlignmentButtons,
|
|
44001
44001
|
onDone: (t) => e.onDone?.(t.getHTML()),
|
|
44002
44002
|
onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
|
|
44003
44003
|
let { src: n } = t.attrs;
|
|
44004
44004
|
e.imageSupport.delete(n, (e) => {
|
|
44005
|
-
|
|
44005
|
+
l(t.pos);
|
|
44006
44006
|
});
|
|
44007
44007
|
}),
|
|
44008
|
-
insertImageRequested: e.imageSupport && ((t,
|
|
44009
|
-
let [
|
|
44008
|
+
insertImageRequested: e.imageSupport && ((t, r, i) => {
|
|
44009
|
+
let [s, c] = r, u = (n) => {
|
|
44010
44010
|
let r;
|
|
44011
|
-
|
|
44011
|
+
o && n && (r = e.onChange), l(c), r?.(t.getHTML());
|
|
44012
44012
|
};
|
|
44013
|
-
t._insertingImage = !0,
|
|
44014
|
-
let
|
|
44015
|
-
let e = () => window.removeEventListener("focus",
|
|
44013
|
+
t._insertingImage = !0, a((e) => [...e, s]), (() => {
|
|
44014
|
+
let r = i(u), a = n(() => {
|
|
44015
|
+
let e = () => window.removeEventListener("focus", a);
|
|
44016
44016
|
if (!t._insertingImage) {
|
|
44017
44017
|
e();
|
|
44018
44018
|
return;
|
|
44019
44019
|
}
|
|
44020
|
-
c
|
|
44020
|
+
l(c), t._insertingImage = !1, e();
|
|
44021
44021
|
}, 500);
|
|
44022
|
-
window.addEventListener("focus",
|
|
44022
|
+
window.addEventListener("focus", a), e.imageSupport.add(r);
|
|
44023
44023
|
})();
|
|
44024
44024
|
}),
|
|
44025
44025
|
maxImageWidth: e.maxImageWidth,
|
|
@@ -44044,7 +44044,7 @@ var F1 = Uk.create({
|
|
|
44044
44044
|
n.isDone && e.onChange?.(t.getHTML());
|
|
44045
44045
|
},
|
|
44046
44046
|
onBlur: ({ editor: e }) => {
|
|
44047
|
-
e._insertingImage || e._toolbarOpened || e.isActive("inline_dropdown") || e.isActive("explicit_constructed_response") || !e.schema ||
|
|
44047
|
+
e._insertingImage || e._toolbarOpened || e.isActive("inline_dropdown") || e.isActive("explicit_constructed_response") || !e.schema || d(e);
|
|
44048
44048
|
}
|
|
44049
44049
|
}, [e.charactersLimit]);
|
|
44050
44050
|
P(() => {
|
|
@@ -44093,8 +44093,8 @@ var F1 = Uk.create({
|
|
|
44093
44093
|
}, [e]);
|
|
44094
44094
|
return /* @__PURE__ */ F(hX, {
|
|
44095
44095
|
...e,
|
|
44096
|
-
activePlugins:
|
|
44097
|
-
toolbarOpts:
|
|
44096
|
+
activePlugins: p,
|
|
44097
|
+
toolbarOpts: u,
|
|
44098
44098
|
editorState: b,
|
|
44099
44099
|
editor: y,
|
|
44100
44100
|
children: y && /* @__PURE__ */ F(c0, {
|
|
@@ -44104,7 +44104,7 @@ var F1 = Uk.create({
|
|
|
44104
44104
|
maxHeight: x.maxHeight
|
|
44105
44105
|
},
|
|
44106
44106
|
showParagraph: t && !t.disabled,
|
|
44107
|
-
separateParagraph:
|
|
44107
|
+
separateParagraph: r && !r.disabled,
|
|
44108
44108
|
editor: y
|
|
44109
44109
|
})
|
|
44110
44110
|
});
|
|
@@ -45754,7 +45754,7 @@ M3.displayName = "Draggable", M3.propTypes = {
|
|
|
45754
45754
|
var N3 = /* @__PURE__ */ tl(ml(), 1), P3 = (0, Wp.default)("pie-lib:plot:grid-draggable"), F3 = (e, t, n) => (r) => {
|
|
45755
45755
|
let i = r + e(0);
|
|
45756
45756
|
return t(n + e.invert(i)).toFixed(4) * 1e3 / 1e3;
|
|
45757
|
-
}, I3 = (e) => (t) => ((0, N3.default)(!!e &&
|
|
45757
|
+
}, I3 = (e) => (t) => ((0, N3.default)(!!e && o(e.fromDelta) && o(e.bounds) && o(e.anchorPoint), "You must supply an object with: { anchorPoint: Function, fromDelta: Function, bounds: Function }"), class extends C.Component {
|
|
45758
45758
|
static propTypes = {
|
|
45759
45759
|
disabled: B.default.bool,
|
|
45760
45760
|
onDragStart: B.default.func,
|
|
@@ -46843,16 +46843,16 @@ var i5 = gl.bounds, a5 = gl.point, o5 = () => 0, s5 = () => 0, c5 = (e) => {
|
|
|
46843
46843
|
for (; n >= e.min && t.indexOf(n) < 0;) t.push(n), n = Math.round((n - e.step) * 1e4) / 1e4;
|
|
46844
46844
|
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
46845
|
return t ? t.filter((t) => t >= e.min && t <= e.max) : [];
|
|
46846
|
-
}, l5 = (e) => e == null ||
|
|
46847
|
-
let t =
|
|
46846
|
+
}, l5 = (e) => e == null || a(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) => {
|
|
46847
|
+
let t = f(e), n = {
|
|
46848
46848
|
left: t.x,
|
|
46849
46849
|
top: t.y,
|
|
46850
46850
|
bottom: t.y,
|
|
46851
46851
|
right: t.x
|
|
46852
46852
|
};
|
|
46853
|
-
return
|
|
46853
|
+
return c(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
46854
|
}, p5 = (e) => {
|
|
46855
|
-
let t =
|
|
46855
|
+
let t = d(e);
|
|
46856
46856
|
return t.sort((e, t) => t.x - e.x), {
|
|
46857
46857
|
a: t[0],
|
|
46858
46858
|
b: t[1]
|
|
@@ -46860,7 +46860,7 @@ var i5 = gl.bounds, a5 = gl.point, o5 = () => 0, s5 = () => 0, c5 = (e) => {
|
|
|
46860
46860
|
}, m5 = (e, t) => ({
|
|
46861
46861
|
x: (e.x + t.x) / 2,
|
|
46862
46862
|
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 &&
|
|
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 && m({
|
|
46864
46864
|
x: h5(e.x),
|
|
46865
46865
|
y: h5(e.y)
|
|
46866
46866
|
}, {
|
|
@@ -46887,12 +46887,12 @@ var i5 = gl.bounds, a5 = gl.point, o5 = () => 0, s5 = () => 0, c5 = (e) => {
|
|
|
46887
46887
|
}, 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
46888
|
let { type: r, building: i } = e;
|
|
46889
46889
|
if (i) return !1;
|
|
46890
|
-
let a = (t || []).filter((e) => e.type === r && !e.building), o = a.findIndex((e) =>
|
|
46890
|
+
let a = (t || []).filter((e) => e.type === r && !e.building), o = a.findIndex((e) => m(e, n));
|
|
46891
46891
|
return o !== -1 && a.splice(o, 1), !!a.find((t) => {
|
|
46892
46892
|
if (r === "line") {
|
|
46893
46893
|
let { from: n, to: i } = e;
|
|
46894
46894
|
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
|
|
46895
|
+
} else if (r === "polygon") return m(x5(d(e.points)), x5(d(t.points)));
|
|
46896
46896
|
});
|
|
46897
46897
|
}, T5 = (e, t) => {
|
|
46898
46898
|
if (e.length !== t.length) return !1;
|
|
@@ -48795,9 +48795,9 @@ var Ene = class extends C.Component {
|
|
|
48795
48795
|
ariaDescription: `${o(t, "x")} ${o(n, "y")} ${c}`
|
|
48796
48796
|
};
|
|
48797
48797
|
}, Ane = ({ marks: e, currentTool: t }) => {
|
|
48798
|
-
let n = e.filter((e) => e.building)[0], r =
|
|
48798
|
+
let n = e.filter((e) => e.building)[0], r = d(e);
|
|
48799
48799
|
if (n && t && n.type !== t.type) {
|
|
48800
|
-
let e = r.findIndex((e) =>
|
|
48800
|
+
let e = r.findIndex((e) => m(e, n));
|
|
48801
48801
|
e >= 0 && r.splice(e, 1);
|
|
48802
48802
|
}
|
|
48803
48803
|
return r;
|
|
@@ -48822,7 +48822,7 @@ var Ene = class extends C.Component {
|
|
|
48822
48822
|
changeMark = (e, t) => {
|
|
48823
48823
|
let { onChangeMarks: n, marks: r, gssLineData: i } = this.props;
|
|
48824
48824
|
if (i?.selectedTool === "solutionSet") return;
|
|
48825
|
-
let a =
|
|
48825
|
+
let a = d(r), o = a.findIndex((t) => m(t, e));
|
|
48826
48826
|
o >= 0 && !w5(t, r, e) && (a.splice(o, 1, t), n(a));
|
|
48827
48827
|
};
|
|
48828
48828
|
completeMark = (e) => {
|
|
@@ -48832,9 +48832,9 @@ var Ene = class extends C.Component {
|
|
|
48832
48832
|
this.updateMarks(r, i);
|
|
48833
48833
|
};
|
|
48834
48834
|
updateMarks = (e, t, n = !1) => {
|
|
48835
|
-
let { onChangeMarks: r, marks: i } = this.props, a =
|
|
48835
|
+
let { onChangeMarks: r, marks: i } = this.props, a = d(i);
|
|
48836
48836
|
if (!t || !t.building && w5(t, i)) return;
|
|
48837
|
-
let o = a.findIndex((t) =>
|
|
48837
|
+
let o = a.findIndex((t) => m(t, e));
|
|
48838
48838
|
o >= 0 ? (a.splice(o, 1, t), r(a)) : n && r([...a, t]);
|
|
48839
48839
|
};
|
|
48840
48840
|
getComponent = (e) => {
|
|
@@ -50057,7 +50057,7 @@ e9.propTypes = {
|
|
|
50057
50057
|
};
|
|
50058
50058
|
//#endregion
|
|
50059
50059
|
//#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) =>
|
|
50060
|
+
var bre = /* @__PURE__ */ Wc(Gc(), 1), t9 = (0, Wp.default)("pie-lib:graphing-solution-set:polygon"), xre = (e, ...t) => s(t, 2).reduce((e, t) => {
|
|
50061
50061
|
if (t.length === 2) {
|
|
50062
50062
|
let [n, r] = t;
|
|
50063
50063
|
(0, bre.default)(Number.isFinite(n.index), "Index must be defined");
|
|
@@ -50111,9 +50111,9 @@ var bre = /* @__PURE__ */ Wc(Gc(), 1), t9 = (0, Wp.default)("pie-lib:graphing-so
|
|
|
50111
50111
|
};
|
|
50112
50112
|
labelChange = (e, t) => {
|
|
50113
50113
|
let { points: n, onChangeProps: r } = this.props, i = { ...e };
|
|
50114
|
-
(!e.label ||
|
|
50115
|
-
let
|
|
50116
|
-
|
|
50114
|
+
(!e.label || a(e.label)) && delete i.label;
|
|
50115
|
+
let o = [...n];
|
|
50116
|
+
o.splice(t, 1, i), r(o);
|
|
50117
50117
|
};
|
|
50118
50118
|
clickPoint = (e, t, n) => {
|
|
50119
50119
|
let { closed: r, disabled: i, onClick: a, isToolActive: o, labelModeEnabled: s, onChangeProps: c, onChangeLabelProps: l, points: u } = this.props;
|
|
@@ -50421,7 +50421,7 @@ var Ore = z("g")(({ disabled: e, correctness: t }) => ({
|
|
|
50421
50421
|
};
|
|
50422
50422
|
render() {
|
|
50423
50423
|
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 =
|
|
50424
|
+
return f = m(s, c) ? "0,0 0,0 0,0" : `0,0 ${s5.vector},${s5.vector * 2}
|
|
50425
50425
|
-${s5.vector},${s5.vector * 2}`, /* @__PURE__ */ F("g", {
|
|
50426
50426
|
className: C7(e.point, i && e.disabled, e[a], t),
|
|
50427
50427
|
...l,
|
|
@@ -50555,7 +50555,7 @@ var Nre = (e, t) => () => ({
|
|
|
50555
50555
|
let { onChange: e, mark: t } = this.props, n = { ...this.state.mark };
|
|
50556
50556
|
this.setState({ mark: void 0 }, () => {
|
|
50557
50557
|
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), !
|
|
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), !m(t, n) && !i && e(t, n);
|
|
50559
50559
|
});
|
|
50560
50560
|
};
|
|
50561
50561
|
changeMark = ({ from: e, to: t, middle: n }) => {
|
|
@@ -50583,16 +50583,16 @@ var Nre = (e, t) => () => ({
|
|
|
50583
50583
|
}), n && (a = {
|
|
50584
50584
|
...a,
|
|
50585
50585
|
middle: n
|
|
50586
|
-
}),
|
|
50586
|
+
}), m(i, a) || r(i, a);
|
|
50587
50587
|
};
|
|
50588
50588
|
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),
|
|
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 = d(c.from), u = d(c.to), f = d(c.middle);
|
|
50590
|
+
return l && c.isBackground && (l.disabled = !0), u && c.isBackground && (u.disabled = !0), f && c.isBackground && (f.disabled = !0), /* @__PURE__ */ F(e, {
|
|
50591
50591
|
disabled: c.disabled,
|
|
50592
50592
|
coordinatesOnHover: a,
|
|
50593
50593
|
correctness: c.correctness,
|
|
50594
50594
|
from: l,
|
|
50595
|
-
to:
|
|
50595
|
+
to: u,
|
|
50596
50596
|
middle: f,
|
|
50597
50597
|
graphProps: t,
|
|
50598
50598
|
fill: c && c.fill,
|
|
@@ -50625,7 +50625,7 @@ var Nre = (e, t) => () => ({
|
|
|
50625
50625
|
}
|
|
50626
50626
|
}), Ire = (e, t) => {
|
|
50627
50627
|
let n = I3(Fre())(e), r = t && t.from ? t.from : s9, i = t && t.to ? t.to : s9;
|
|
50628
|
-
class
|
|
50628
|
+
class o extends C.Component {
|
|
50629
50629
|
static propTypes = {
|
|
50630
50630
|
coordinatesOnHover: B.default.bool,
|
|
50631
50631
|
graphProps: nl.GraphPropsType,
|
|
@@ -50680,7 +50680,7 @@ var Nre = (e, t) => () => ({
|
|
|
50680
50680
|
};
|
|
50681
50681
|
labelChange = (e, t) => {
|
|
50682
50682
|
let { changeMarkProps: n } = this.props, r = { ...e };
|
|
50683
|
-
(!e.label ||
|
|
50683
|
+
(!e.label || a(e.label)) && delete r.label, n({ [t]: r });
|
|
50684
50684
|
};
|
|
50685
50685
|
clickPoint = (e, t, n) => {
|
|
50686
50686
|
let { changeMarkProps: r, disabled: i, from: a, to: o, labelModeEnabled: s, onClick: c } = this.props;
|
|
@@ -50808,7 +50808,7 @@ var Nre = (e, t) => () => ({
|
|
|
50808
50808
|
] });
|
|
50809
50809
|
}
|
|
50810
50810
|
}
|
|
50811
|
-
return
|
|
50811
|
+
return o;
|
|
50812
50812
|
}, c9 = {
|
|
50813
50813
|
line: () => ({
|
|
50814
50814
|
fill: "transparent",
|
|
@@ -51326,17 +51326,17 @@ var P9 = class extends C.Component {
|
|
|
51326
51326
|
changeCurrentTool = (e, t) => this.setState({ currentTool: t.find((t) => t.type === e) });
|
|
51327
51327
|
toggleLabelMode = () => this.setState((e) => ({ labelModeEnabled: !e.labelModeEnabled }));
|
|
51328
51328
|
render() {
|
|
51329
|
-
let { currentTool: e, labelModeEnabled: t } = this.state, { axesSettings: n, className: r, coordinatesOnHover: i, collapsibleToolbar:
|
|
51330
|
-
te =
|
|
51329
|
+
let { currentTool: e, labelModeEnabled: t } = this.state, { axesSettings: n, className: r, coordinatesOnHover: i, collapsibleToolbar: a, collapsibleToolbarTitle: o, disabled: s, disabledLabels: c, disabledTitle: l, domain: u, labels: d, labelsPlaceholders: f, onChangeLabels: m, onChangeMarks: g, onChangeTitle: _, onUndo: v, onRedo: y, range: b, size: x, 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;
|
|
51330
|
+
te = p(te || []).filter((e) => !!h(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
51331
|
let P = aie(te);
|
|
51332
51332
|
(!e || !oie(P, e)) && (e = sie(P));
|
|
51333
51333
|
let ne = k && /* @__PURE__ */ I(se, { children: [/* @__PURE__ */ F(sre, {
|
|
51334
51334
|
numberOfLines: k.numberOfLines,
|
|
51335
51335
|
gssLineData: k,
|
|
51336
51336
|
onChange: A,
|
|
51337
|
-
disabled: !!
|
|
51337
|
+
disabled: !!s,
|
|
51338
51338
|
language: D
|
|
51339
|
-
}), !
|
|
51339
|
+
}), !s && /* @__PURE__ */ F(hie, { children: /* @__PURE__ */ F(iie, {
|
|
51340
51340
|
onUndo: v,
|
|
51341
51341
|
onRedo: y,
|
|
51342
51342
|
onReset: M,
|
|
@@ -51345,8 +51345,8 @@ var P9 = class extends C.Component {
|
|
|
51345
51345
|
return /* @__PURE__ */ I(uie, {
|
|
51346
51346
|
className: C7(r),
|
|
51347
51347
|
children: [
|
|
51348
|
-
!O && /* @__PURE__ */ F(die, { children:
|
|
51349
|
-
title:
|
|
51348
|
+
!O && /* @__PURE__ */ F(die, { children: a ? /* @__PURE__ */ F(N9, {
|
|
51349
|
+
title: o,
|
|
51350
51350
|
children: ne
|
|
51351
51351
|
}) : ne }),
|
|
51352
51352
|
/* @__PURE__ */ F("div", { ref: (e) => this.labelNode = e }),
|
|
@@ -51355,15 +51355,15 @@ var P9 = class extends C.Component {
|
|
|
51355
51355
|
backgroundMarks: N,
|
|
51356
51356
|
coordinatesOnHover: i,
|
|
51357
51357
|
currentTool: e,
|
|
51358
|
-
disabledLabels:
|
|
51359
|
-
disabledTitle:
|
|
51360
|
-
domain:
|
|
51361
|
-
labels:
|
|
51358
|
+
disabledLabels: c,
|
|
51359
|
+
disabledTitle: l,
|
|
51360
|
+
domain: u,
|
|
51361
|
+
labels: d,
|
|
51362
51362
|
labelModeEnabled: t,
|
|
51363
|
-
labelsPlaceholders:
|
|
51363
|
+
labelsPlaceholders: f,
|
|
51364
51364
|
marks: ee,
|
|
51365
|
-
onChangeMarks:
|
|
51366
|
-
onChangeLabels:
|
|
51365
|
+
onChangeMarks: s ? void 0 : g,
|
|
51366
|
+
onChangeLabels: m,
|
|
51367
51367
|
onChangeTitle: _,
|
|
51368
51368
|
range: b,
|
|
51369
51369
|
size: x,
|
|
@@ -51375,7 +51375,7 @@ var P9 = class extends C.Component {
|
|
|
51375
51375
|
tools: P,
|
|
51376
51376
|
gssLineData: k,
|
|
51377
51377
|
onSolutionSetSelected: j,
|
|
51378
|
-
disabled: !!
|
|
51378
|
+
disabled: !!s,
|
|
51379
51379
|
language: D
|
|
51380
51380
|
})
|
|
51381
51381
|
]
|
|
@@ -51817,11 +51817,11 @@ var dae = uae, fae = lae((e) => ({ marks: e.marks.present }), (e) => ({
|
|
|
51817
51817
|
}
|
|
51818
51818
|
componentDidUpdate(e) {
|
|
51819
51819
|
let { marks: t } = this.props;
|
|
51820
|
-
|
|
51820
|
+
m(this.store.getState().marks.present, t) || m(e.marks, t) || t && t.find((e) => e.correctness) || this.store.dispatch(A9(t));
|
|
51821
51821
|
}
|
|
51822
51822
|
onStoreChange = () => {
|
|
51823
51823
|
let { marks: e, onChangeMarks: t } = this.props, n = this.store.getState(), r = gie(), i = r.type.includes("UNDO") || r.type.includes("REDO");
|
|
51824
|
-
|
|
51824
|
+
m(n.marks.present, e) || t(n.marks.present, i);
|
|
51825
51825
|
};
|
|
51826
51826
|
render() {
|
|
51827
51827
|
let { onChangeMarks: e, marks: t, ...n } = this.props, r = t && t.find((e) => e.correctness);
|
|
@@ -51876,4 +51876,4 @@ $9.defaultProps = {
|
|
|
51876
51876
|
//#endregion
|
|
51877
51877
|
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
51878
|
|
|
51879
|
-
//# sourceMappingURL=alert-dialog-
|
|
51879
|
+
//# sourceMappingURL=alert-dialog-ByTtwRX7.js.map
|