@weng-lab/visualization 1.0.4 → 1.0.6
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/src/components/BarPlot/barplot.d.ts.map +1 -1
- package/dist/src/components/BarPlot/legend.d.ts.map +1 -1
- package/dist/src/components/BarPlot/types.d.ts +1 -0
- package/dist/src/components/BarPlot/types.d.ts.map +1 -1
- package/dist/src/components/ViolinPlot/violinPlot.d.ts.map +1 -1
- package/dist/visualization.es.js +1266 -1248
- package/dist/visualization.es.js.map +1 -1
- package/package.json +1 -1
package/dist/visualization.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as ve from "react";
|
|
2
2
|
import ke, { useRef as wr, useState as ot, useCallback as Ve, createContext as fU, useMemo as Tt, useLayoutEffect as dU, useEffect as pn, isValidElement as Dl, cloneElement as Ol, Children as hU } from "react";
|
|
3
3
|
import { Stack as Pv, Tooltip as na, IconButton as aa, Box as $m, Typography as za, CircularProgress as vU } from "@mui/material";
|
|
4
4
|
import { PanTool as pU, Edit as gU, ZoomIn as mU, ZoomOut as yU, SettingsBackupRestore as BU, Download as HE, HighlightAlt as wU } from "@mui/icons-material";
|
|
@@ -383,33 +383,33 @@ function UU() {
|
|
|
383
383
|
}
|
|
384
384
|
function y(Y) {
|
|
385
385
|
if (typeof Y == "object" && Y !== null) {
|
|
386
|
-
var
|
|
387
|
-
switch (
|
|
386
|
+
var W = Y.$$typeof;
|
|
387
|
+
switch (W) {
|
|
388
388
|
case e:
|
|
389
|
-
var
|
|
390
|
-
switch (
|
|
389
|
+
var oe = Y.type;
|
|
390
|
+
switch (oe) {
|
|
391
391
|
case s:
|
|
392
392
|
case l:
|
|
393
393
|
case n:
|
|
394
394
|
case A:
|
|
395
395
|
case a:
|
|
396
396
|
case c:
|
|
397
|
-
return
|
|
397
|
+
return oe;
|
|
398
398
|
default:
|
|
399
|
-
var
|
|
400
|
-
switch (
|
|
399
|
+
var ie = oe && oe.$$typeof;
|
|
400
|
+
switch (ie) {
|
|
401
401
|
case o:
|
|
402
402
|
case u:
|
|
403
403
|
case h:
|
|
404
404
|
case d:
|
|
405
405
|
case i:
|
|
406
|
-
return
|
|
406
|
+
return ie;
|
|
407
407
|
default:
|
|
408
|
-
return
|
|
408
|
+
return W;
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
case r:
|
|
412
|
-
return
|
|
412
|
+
return W;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
}
|
|
@@ -634,11 +634,11 @@ function DU() {
|
|
|
634
634
|
);
|
|
635
635
|
throw Y.name = "Invariant Violation", Y;
|
|
636
636
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
637
|
-
var
|
|
638
|
-
!M[
|
|
637
|
+
var W = ee + ":" + q;
|
|
638
|
+
!M[W] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
639
639
|
_ < 3 && (A(
|
|
640
640
|
"You are manually calling a React.PropTypes validation function for the `" + z + "` prop on `" + ee + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
641
|
-
), M[
|
|
641
|
+
), M[W] = !0, _++);
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
return G[q] == null ? k ? G[q] === null ? new v("The " + Z + " `" + z + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new v("The " + Z + " `" + z + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : D(G, q, ee, Z, z);
|
|
@@ -723,8 +723,8 @@ function DU() {
|
|
|
723
723
|
if (h(q, D[ee]))
|
|
724
724
|
return null;
|
|
725
725
|
var Z = JSON.stringify(D, function(J, Y) {
|
|
726
|
-
var
|
|
727
|
-
return
|
|
726
|
+
var W = R(Y);
|
|
727
|
+
return W === "symbol" ? String(Y) : Y;
|
|
728
728
|
});
|
|
729
729
|
return new v("Invalid " + k + " `" + G + "` of value `" + String(q) + "` " + ("supplied to `" + X + "`, expected one of " + Z + "."));
|
|
730
730
|
}
|
|
@@ -764,8 +764,8 @@ function DU() {
|
|
|
764
764
|
return null;
|
|
765
765
|
Y.data && n(Y.data, "expectedType") && Z.push(Y.data.expectedType);
|
|
766
766
|
}
|
|
767
|
-
var
|
|
768
|
-
return new v("Invalid " + q + " `" + ee + "` supplied to " + ("`" + G + "`" +
|
|
767
|
+
var W = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : "";
|
|
768
|
+
return new v("Invalid " + q + " `" + ee + "` supplied to " + ("`" + G + "`" + W + "."));
|
|
769
769
|
}
|
|
770
770
|
return p(V);
|
|
771
771
|
}
|
|
@@ -1152,7 +1152,7 @@ function hn(t) {
|
|
|
1152
1152
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
1153
1153
|
}
|
|
1154
1154
|
function GE(t) {
|
|
1155
|
-
if (/* @__PURE__ */
|
|
1155
|
+
if (/* @__PURE__ */ ve.isValidElement(t) || Au.isValidElementType(t) || !hn(t))
|
|
1156
1156
|
return t;
|
|
1157
1157
|
const e = {};
|
|
1158
1158
|
return Object.keys(t).forEach((r) => {
|
|
@@ -1166,7 +1166,7 @@ function cr(t, e, r = {
|
|
|
1166
1166
|
...t
|
|
1167
1167
|
} : t;
|
|
1168
1168
|
return hn(t) && hn(e) && Object.keys(e).forEach((a) => {
|
|
1169
|
-
/* @__PURE__ */
|
|
1169
|
+
/* @__PURE__ */ ve.isValidElement(e[a]) || Au.isValidElementType(e[a]) ? n[a] = e[a] : hn(e[a]) && // Avoid prototype pollution
|
|
1170
1170
|
Object.prototype.hasOwnProperty.call(t, a) && hn(t[a]) ? n[a] = cr(t[a], e[a], r) : r.clone ? n[a] = hn(e[a]) ? GE(e[a]) : e[a] : n[a] = e[a];
|
|
1171
1171
|
}), n;
|
|
1172
1172
|
}
|
|
@@ -2308,7 +2308,7 @@ function $S(t) {
|
|
|
2308
2308
|
return Object.keys(t).length === 0;
|
|
2309
2309
|
}
|
|
2310
2310
|
function YS(t = null) {
|
|
2311
|
-
const e =
|
|
2311
|
+
const e = ve.useContext(CU);
|
|
2312
2312
|
return !e || $S(e) ? t : e;
|
|
2313
2313
|
}
|
|
2314
2314
|
const XS = uc();
|
|
@@ -2592,7 +2592,7 @@ function oI({
|
|
|
2592
2592
|
props: t
|
|
2593
2593
|
});
|
|
2594
2594
|
}
|
|
2595
|
-
const Mo = typeof window < "u" ?
|
|
2595
|
+
const Mo = typeof window < "u" ? ve.useLayoutEffect : ve.useEffect;
|
|
2596
2596
|
function sI(t, e = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
|
|
2597
2597
|
return Math.max(e, Math.min(t, r));
|
|
2598
2598
|
}
|
|
@@ -2731,9 +2731,9 @@ function dI(t) {
|
|
|
2731
2731
|
}
|
|
2732
2732
|
};
|
|
2733
2733
|
}
|
|
2734
|
-
const hI = /* @__PURE__ */
|
|
2734
|
+
const hI = /* @__PURE__ */ ve.createContext();
|
|
2735
2735
|
process.env.NODE_ENV !== "production" && (S.node, S.bool);
|
|
2736
|
-
const n1 = () =>
|
|
2736
|
+
const n1 = () => ve.useContext(hI) ?? !1, vI = /* @__PURE__ */ ve.createContext(void 0);
|
|
2737
2737
|
process.env.NODE_ENV !== "production" && (S.node, S.object);
|
|
2738
2738
|
function pI(t) {
|
|
2739
2739
|
const {
|
|
@@ -2750,7 +2750,7 @@ function gI({
|
|
|
2750
2750
|
props: t,
|
|
2751
2751
|
name: e
|
|
2752
2752
|
}) {
|
|
2753
|
-
const r =
|
|
2753
|
+
const r = ve.useContext(vI);
|
|
2754
2754
|
return pI({
|
|
2755
2755
|
props: t,
|
|
2756
2756
|
name: e,
|
|
@@ -2761,13 +2761,13 @@ function gI({
|
|
|
2761
2761
|
}
|
|
2762
2762
|
let my = 0;
|
|
2763
2763
|
function mI(t) {
|
|
2764
|
-
const [e, r] =
|
|
2765
|
-
return
|
|
2764
|
+
const [e, r] = ve.useState(t), n = t || e;
|
|
2765
|
+
return ve.useEffect(() => {
|
|
2766
2766
|
e == null && (my += 1, r(`mui-${my}`));
|
|
2767
2767
|
}, [e]), n;
|
|
2768
2768
|
}
|
|
2769
2769
|
const yI = {
|
|
2770
|
-
...
|
|
2770
|
+
...ve
|
|
2771
2771
|
}, yy = yI.useId;
|
|
2772
2772
|
function a1(t) {
|
|
2773
2773
|
if (yy !== void 0) {
|
|
@@ -2960,8 +2960,8 @@ function QI(t) {
|
|
|
2960
2960
|
});
|
|
2961
2961
|
}
|
|
2962
2962
|
function UI(t, e) {
|
|
2963
|
-
const r =
|
|
2964
|
-
return r.reduce((n, a, A) => (n.push(a), A < r.length - 1 && n.push(/* @__PURE__ */
|
|
2963
|
+
const r = ve.Children.toArray(t).filter(Boolean);
|
|
2964
|
+
return r.reduce((n, a, A) => (n.push(a), A < r.length - 1 && n.push(/* @__PURE__ */ ve.cloneElement(e, {
|
|
2965
2965
|
key: `separator-${A}`
|
|
2966
2966
|
})), n), []);
|
|
2967
2967
|
}
|
|
@@ -3024,7 +3024,7 @@ function DI(t = {}) {
|
|
|
3024
3024
|
componentName: n = "MuiStack"
|
|
3025
3025
|
} = t, a = () => tn({
|
|
3026
3026
|
root: ["root"]
|
|
3027
|
-
}, (s) => Sr(n, s), {}), A = e(II), i = /* @__PURE__ */
|
|
3027
|
+
}, (s) => Sr(n, s), {}), A = e(II), i = /* @__PURE__ */ ve.forwardRef(function(s, l) {
|
|
3028
3028
|
const u = r(s), c = XE(u), {
|
|
3029
3029
|
component: f = "div",
|
|
3030
3030
|
direction: d = "column",
|
|
@@ -3705,7 +3705,7 @@ function iD(t, e) {
|
|
|
3705
3705
|
t[r] || (t[r] = {});
|
|
3706
3706
|
});
|
|
3707
3707
|
}
|
|
3708
|
-
function
|
|
3708
|
+
function ce(t, e, r) {
|
|
3709
3709
|
!t[e] && r && (t[e] = r);
|
|
3710
3710
|
}
|
|
3711
3711
|
function io(t) {
|
|
@@ -3803,19 +3803,19 @@ function lD(t = {}, ...e) {
|
|
|
3803
3803
|
const Q = U.split("-"), I = Q[1], O = Q[2];
|
|
3804
3804
|
return f(U, b[I][O]);
|
|
3805
3805
|
};
|
|
3806
|
-
if (b.mode === "light" && (
|
|
3807
|
-
|
|
3806
|
+
if (b.mode === "light" && (ce(b.common, "background", "#fff"), ce(b.common, "onBackground", "#000")), b.mode === "dark" && (ce(b.common, "background", "#000"), ce(b.common, "onBackground", "#fff")), iD(b, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), b.mode === "light") {
|
|
3807
|
+
ce(b.Alert, "errorColor", At(b.error.light, 0.6)), ce(b.Alert, "infoColor", At(b.info.light, 0.6)), ce(b.Alert, "successColor", At(b.success.light, 0.6)), ce(b.Alert, "warningColor", At(b.warning.light, 0.6)), ce(b.Alert, "errorFilledBg", T("palette-error-main")), ce(b.Alert, "infoFilledBg", T("palette-info-main")), ce(b.Alert, "successFilledBg", T("palette-success-main")), ce(b.Alert, "warningFilledBg", T("palette-warning-main")), ce(b.Alert, "errorFilledColor", on(() => b.getContrastText(b.error.main))), ce(b.Alert, "infoFilledColor", on(() => b.getContrastText(b.info.main))), ce(b.Alert, "successFilledColor", on(() => b.getContrastText(b.success.main))), ce(b.Alert, "warningFilledColor", on(() => b.getContrastText(b.warning.main))), ce(b.Alert, "errorStandardBg", it(b.error.light, 0.9)), ce(b.Alert, "infoStandardBg", it(b.info.light, 0.9)), ce(b.Alert, "successStandardBg", it(b.success.light, 0.9)), ce(b.Alert, "warningStandardBg", it(b.warning.light, 0.9)), ce(b.Alert, "errorIconColor", T("palette-error-main")), ce(b.Alert, "infoIconColor", T("palette-info-main")), ce(b.Alert, "successIconColor", T("palette-success-main")), ce(b.Alert, "warningIconColor", T("palette-warning-main")), ce(b.AppBar, "defaultBg", T("palette-grey-100")), ce(b.Avatar, "defaultBg", T("palette-grey-400")), ce(b.Button, "inheritContainedBg", T("palette-grey-300")), ce(b.Button, "inheritContainedHoverBg", T("palette-grey-A100")), ce(b.Chip, "defaultBorder", T("palette-grey-400")), ce(b.Chip, "defaultAvatarColor", T("palette-grey-700")), ce(b.Chip, "defaultIconColor", T("palette-grey-700")), ce(b.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), ce(b.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), ce(b.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), ce(b.LinearProgress, "primaryBg", it(b.primary.main, 0.62)), ce(b.LinearProgress, "secondaryBg", it(b.secondary.main, 0.62)), ce(b.LinearProgress, "errorBg", it(b.error.main, 0.62)), ce(b.LinearProgress, "infoBg", it(b.info.main, 0.62)), ce(b.LinearProgress, "successBg", it(b.success.main, 0.62)), ce(b.LinearProgress, "warningBg", it(b.warning.main, 0.62)), ce(b.Skeleton, "bg", `rgba(${T("palette-text-primaryChannel")} / 0.11)`), ce(b.Slider, "primaryTrack", it(b.primary.main, 0.62)), ce(b.Slider, "secondaryTrack", it(b.secondary.main, 0.62)), ce(b.Slider, "errorTrack", it(b.error.main, 0.62)), ce(b.Slider, "infoTrack", it(b.info.main, 0.62)), ce(b.Slider, "successTrack", it(b.success.main, 0.62)), ce(b.Slider, "warningTrack", it(b.warning.main, 0.62));
|
|
3808
3808
|
const U = Ns(b.background.default, 0.8);
|
|
3809
|
-
|
|
3809
|
+
ce(b.SnackbarContent, "bg", U), ce(b.SnackbarContent, "color", on(() => b.getContrastText(U))), ce(b.SpeedDialAction, "fabHoverBg", Ns(b.background.paper, 0.15)), ce(b.StepConnector, "border", T("palette-grey-400")), ce(b.StepContent, "border", T("palette-grey-400")), ce(b.Switch, "defaultColor", T("palette-common-white")), ce(b.Switch, "defaultDisabledColor", T("palette-grey-100")), ce(b.Switch, "primaryDisabledColor", it(b.primary.main, 0.62)), ce(b.Switch, "secondaryDisabledColor", it(b.secondary.main, 0.62)), ce(b.Switch, "errorDisabledColor", it(b.error.main, 0.62)), ce(b.Switch, "infoDisabledColor", it(b.info.main, 0.62)), ce(b.Switch, "successDisabledColor", it(b.success.main, 0.62)), ce(b.Switch, "warningDisabledColor", it(b.warning.main, 0.62)), ce(b.TableCell, "border", it(Hs(b.divider, 1), 0.88)), ce(b.Tooltip, "bg", Hs(b.grey[700], 0.92));
|
|
3810
3810
|
}
|
|
3811
3811
|
if (b.mode === "dark") {
|
|
3812
|
-
|
|
3812
|
+
ce(b.Alert, "errorColor", it(b.error.light, 0.6)), ce(b.Alert, "infoColor", it(b.info.light, 0.6)), ce(b.Alert, "successColor", it(b.success.light, 0.6)), ce(b.Alert, "warningColor", it(b.warning.light, 0.6)), ce(b.Alert, "errorFilledBg", T("palette-error-dark")), ce(b.Alert, "infoFilledBg", T("palette-info-dark")), ce(b.Alert, "successFilledBg", T("palette-success-dark")), ce(b.Alert, "warningFilledBg", T("palette-warning-dark")), ce(b.Alert, "errorFilledColor", on(() => b.getContrastText(b.error.dark))), ce(b.Alert, "infoFilledColor", on(() => b.getContrastText(b.info.dark))), ce(b.Alert, "successFilledColor", on(() => b.getContrastText(b.success.dark))), ce(b.Alert, "warningFilledColor", on(() => b.getContrastText(b.warning.dark))), ce(b.Alert, "errorStandardBg", At(b.error.light, 0.9)), ce(b.Alert, "infoStandardBg", At(b.info.light, 0.9)), ce(b.Alert, "successStandardBg", At(b.success.light, 0.9)), ce(b.Alert, "warningStandardBg", At(b.warning.light, 0.9)), ce(b.Alert, "errorIconColor", T("palette-error-main")), ce(b.Alert, "infoIconColor", T("palette-info-main")), ce(b.Alert, "successIconColor", T("palette-success-main")), ce(b.Alert, "warningIconColor", T("palette-warning-main")), ce(b.AppBar, "defaultBg", T("palette-grey-900")), ce(b.AppBar, "darkBg", T("palette-background-paper")), ce(b.AppBar, "darkColor", T("palette-text-primary")), ce(b.Avatar, "defaultBg", T("palette-grey-600")), ce(b.Button, "inheritContainedBg", T("palette-grey-800")), ce(b.Button, "inheritContainedHoverBg", T("palette-grey-700")), ce(b.Chip, "defaultBorder", T("palette-grey-700")), ce(b.Chip, "defaultAvatarColor", T("palette-grey-300")), ce(b.Chip, "defaultIconColor", T("palette-grey-300")), ce(b.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), ce(b.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), ce(b.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), ce(b.LinearProgress, "primaryBg", At(b.primary.main, 0.5)), ce(b.LinearProgress, "secondaryBg", At(b.secondary.main, 0.5)), ce(b.LinearProgress, "errorBg", At(b.error.main, 0.5)), ce(b.LinearProgress, "infoBg", At(b.info.main, 0.5)), ce(b.LinearProgress, "successBg", At(b.success.main, 0.5)), ce(b.LinearProgress, "warningBg", At(b.warning.main, 0.5)), ce(b.Skeleton, "bg", `rgba(${T("palette-text-primaryChannel")} / 0.13)`), ce(b.Slider, "primaryTrack", At(b.primary.main, 0.5)), ce(b.Slider, "secondaryTrack", At(b.secondary.main, 0.5)), ce(b.Slider, "errorTrack", At(b.error.main, 0.5)), ce(b.Slider, "infoTrack", At(b.info.main, 0.5)), ce(b.Slider, "successTrack", At(b.success.main, 0.5)), ce(b.Slider, "warningTrack", At(b.warning.main, 0.5));
|
|
3813
3813
|
const U = Ns(b.background.default, 0.98);
|
|
3814
|
-
|
|
3814
|
+
ce(b.SnackbarContent, "bg", U), ce(b.SnackbarContent, "color", on(() => b.getContrastText(U))), ce(b.SpeedDialAction, "fabHoverBg", Ns(b.background.paper, 0.15)), ce(b.StepConnector, "border", T("palette-grey-600")), ce(b.StepContent, "border", T("palette-grey-600")), ce(b.Switch, "defaultColor", T("palette-grey-300")), ce(b.Switch, "defaultDisabledColor", T("palette-grey-600")), ce(b.Switch, "primaryDisabledColor", At(b.primary.main, 0.55)), ce(b.Switch, "secondaryDisabledColor", At(b.secondary.main, 0.55)), ce(b.Switch, "errorDisabledColor", At(b.error.main, 0.55)), ce(b.Switch, "infoDisabledColor", At(b.info.main, 0.55)), ce(b.Switch, "successDisabledColor", At(b.success.main, 0.55)), ce(b.Switch, "warningDisabledColor", At(b.warning.main, 0.55)), ce(b.TableCell, "border", At(Hs(b.divider, 1), 0.68)), ce(b.Tooltip, "bg", Hs(b.grey[700], 0.92));
|
|
3815
3815
|
}
|
|
3816
3816
|
Sn(b.background, "default"), Sn(b.background, "paper"), Sn(b.common, "background"), Sn(b.common, "onBackground"), Sn(b, "divider"), Object.keys(b).forEach((U) => {
|
|
3817
3817
|
const Q = b[U];
|
|
3818
|
-
U !== "tonalOffset" && Q && typeof Q == "object" && (Q.main &&
|
|
3818
|
+
U !== "tonalOffset" && Q && typeof Q == "object" && (Q.main && ce(b[U], "mainChannel", Ao(io(Q.main))), Q.light && ce(b[U], "lightChannel", Ao(io(Q.light))), Q.dark && ce(b[U], "darkChannel", Ao(io(Q.dark))), Q.contrastText && ce(b[U], "contrastTextChannel", Ao(io(Q.contrastText))), U === "text" && (Sn(b[U], "primary"), Sn(b[U], "secondary")), U === "action" && (Q.active && Sn(b[U], "active"), Q.selected && Sn(b[U], "selected")));
|
|
3819
3819
|
});
|
|
3820
3820
|
}), y = e.reduce((E, b) => cr(E, b), y);
|
|
3821
3821
|
const C = {
|
|
@@ -3899,7 +3899,7 @@ function uD(t = {}, ...e) {
|
|
|
3899
3899
|
const u1 = uD(), c1 = "$$material";
|
|
3900
3900
|
function Ig() {
|
|
3901
3901
|
const t = jE(u1);
|
|
3902
|
-
return process.env.NODE_ENV !== "production" &&
|
|
3902
|
+
return process.env.NODE_ENV !== "production" && ve.useDebugValue(t), t[c1] || t;
|
|
3903
3903
|
}
|
|
3904
3904
|
function cD(t) {
|
|
3905
3905
|
return t !== "ownerState" && t !== "theme" && t !== "sx" && t !== "as";
|
|
@@ -4054,7 +4054,7 @@ const Jn = 44, Kv = ls`
|
|
|
4054
4054
|
animation: `${Vv} 1.4s ease-in-out infinite`
|
|
4055
4055
|
}
|
|
4056
4056
|
}]
|
|
4057
|
-
}))), Dg = /* @__PURE__ */
|
|
4057
|
+
}))), Dg = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
4058
4058
|
const n = nn({
|
|
4059
4059
|
props: e,
|
|
4060
4060
|
name: "MuiCircularProgress"
|
|
@@ -5649,142 +5649,142 @@ var $O = {
|
|
|
5649
5649
|
};
|
|
5650
5650
|
};
|
|
5651
5651
|
function E1(t) {
|
|
5652
|
-
var e = t.scaleXMin, r = e === void 0 ? 0 : e, n = t.scaleXMax, a = n === void 0 ? 1 / 0 : n, A = t.scaleYMin, i = A === void 0 ? 0 : A, o = t.scaleYMax, s = o === void 0 ? 1 / 0 : o, l = t.initialTransformMatrix, u = l === void 0 ? $O : l, c = t.wheelDelta, f = c === void 0 ? YO : c, d = t.pinchDelta, h = d === void 0 ? XO : d, v = t.width, p = t.height, g = t.constrain, B = t.children, m = wr(null), y = wr(u), C = ot(u), F = C[0], w = C[1], x = ot(!1), E = x[0], b = x[1], T = ot(void 0), U = T[0], Q = T[1], I = ot(void 0), O = I[0], L = I[1], R = Ve(function(
|
|
5653
|
-
if (g) return g(
|
|
5654
|
-
var
|
|
5655
|
-
return fe ||
|
|
5656
|
-
}, [g, r, a, i, s]), P = Ve(function(
|
|
5657
|
-
w(function(
|
|
5658
|
-
var
|
|
5659
|
-
return y.current =
|
|
5652
|
+
var e = t.scaleXMin, r = e === void 0 ? 0 : e, n = t.scaleXMax, a = n === void 0 ? 1 / 0 : n, A = t.scaleYMin, i = A === void 0 ? 0 : A, o = t.scaleYMax, s = o === void 0 ? 1 / 0 : o, l = t.initialTransformMatrix, u = l === void 0 ? $O : l, c = t.wheelDelta, f = c === void 0 ? YO : c, d = t.pinchDelta, h = d === void 0 ? XO : d, v = t.width, p = t.height, g = t.constrain, B = t.children, m = wr(null), y = wr(u), C = ot(u), F = C[0], w = C[1], x = ot(!1), E = x[0], b = x[1], T = ot(void 0), U = T[0], Q = T[1], I = ot(void 0), O = I[0], L = I[1], R = Ve(function(ue, ae) {
|
|
5653
|
+
if (g) return g(ue, ae);
|
|
5654
|
+
var le = ue.scaleX, he = ue.scaleY, fe = le > a || le < r, j = he > s || he < i;
|
|
5655
|
+
return fe || j ? ae : ue;
|
|
5656
|
+
}, [g, r, a, i, s]), P = Ve(function(ue) {
|
|
5657
|
+
w(function(ae) {
|
|
5658
|
+
var le = R(ue, ae);
|
|
5659
|
+
return y.current = le, le;
|
|
5660
5660
|
});
|
|
5661
|
-
}, [R]), N = Ve(function(
|
|
5662
|
-
var
|
|
5661
|
+
}, [R]), N = Ve(function(ue) {
|
|
5662
|
+
var ae = ue.x, le = ue.y;
|
|
5663
5663
|
return C1(F, {
|
|
5664
|
-
x:
|
|
5665
|
-
y:
|
|
5664
|
+
x: ae,
|
|
5665
|
+
y: le
|
|
5666
5666
|
});
|
|
5667
|
-
}, [F]), D = Ve(function(
|
|
5668
|
-
var
|
|
5667
|
+
}, [F]), D = Ve(function(ue) {
|
|
5668
|
+
var ae = ue.x, le = ue.y;
|
|
5669
5669
|
return mf(F, {
|
|
5670
|
-
x:
|
|
5671
|
-
y:
|
|
5670
|
+
x: ae,
|
|
5671
|
+
y: le
|
|
5672
5672
|
});
|
|
5673
5673
|
}, [F]), M = Ve(function() {
|
|
5674
5674
|
P(u);
|
|
5675
|
-
}, [u, P]), _ = Ve(function(
|
|
5676
|
-
var
|
|
5675
|
+
}, [u, P]), _ = Ve(function(ue) {
|
|
5676
|
+
var ae = ue.scaleX, le = ue.scaleY, he = ue.point, fe = le || ae, j = he || {
|
|
5677
5677
|
x: v / 2,
|
|
5678
5678
|
y: p / 2
|
|
5679
|
-
},
|
|
5680
|
-
if (P(
|
|
5681
|
-
var
|
|
5682
|
-
L(
|
|
5679
|
+
}, se = mf(y.current, j), ge = Yv(y.current, yf(se.x, se.y), GO(ae, fe), yf(-se.x, -se.y));
|
|
5680
|
+
if (P(ge), E) {
|
|
5681
|
+
var me = y.current, be = me.translateX, Re = me.translateY;
|
|
5682
|
+
L(he), Q({
|
|
5683
5683
|
translateX: be,
|
|
5684
5684
|
translateY: Re
|
|
5685
5685
|
});
|
|
5686
5686
|
}
|
|
5687
|
-
}, [p, v, E, P]), V = Ve(function(
|
|
5688
|
-
var
|
|
5689
|
-
P(
|
|
5690
|
-
}, [P, F]), X = Ve(function(
|
|
5691
|
-
var
|
|
5692
|
-
translateX:
|
|
5693
|
-
translateY:
|
|
5687
|
+
}, [p, v, E, P]), V = Ve(function(ue) {
|
|
5688
|
+
var ae = ue.translateX, le = ue.translateY, he = Yv(F, yf(ae, le));
|
|
5689
|
+
P(he);
|
|
5690
|
+
}, [P, F]), X = Ve(function(ue) {
|
|
5691
|
+
var ae = ue.translateX, le = ue.translateY, he = Xv({}, F, {
|
|
5692
|
+
translateX: ae,
|
|
5693
|
+
translateY: le
|
|
5694
5694
|
});
|
|
5695
|
-
P(
|
|
5696
|
-
}, [P, F]), k = Ve(function(
|
|
5697
|
-
var
|
|
5698
|
-
x:
|
|
5699
|
-
y:
|
|
5695
|
+
P(he);
|
|
5696
|
+
}, [P, F]), k = Ve(function(ue) {
|
|
5697
|
+
var ae = ue.x, le = ue.y, he = mf(F, {
|
|
5698
|
+
x: ae,
|
|
5699
|
+
y: le
|
|
5700
5700
|
});
|
|
5701
5701
|
X({
|
|
5702
|
-
translateX:
|
|
5703
|
-
translateY:
|
|
5702
|
+
translateX: he.x,
|
|
5703
|
+
translateY: he.y
|
|
5704
5704
|
});
|
|
5705
5705
|
}, [X, F]), G = Ve(function() {
|
|
5706
5706
|
return b1(F);
|
|
5707
5707
|
}, [F]), q = Ve(function() {
|
|
5708
|
-
var
|
|
5709
|
-
return "matrix(" +
|
|
5710
|
-
}, [G]), ee = Ve(function(
|
|
5711
|
-
var
|
|
5712
|
-
L(AA(
|
|
5713
|
-
translateX:
|
|
5714
|
-
translateY:
|
|
5708
|
+
var ue = G(), ae = ue.translateX, le = ue.translateY, he = ue.scaleX, fe = ue.scaleY, j = ue.skewX, se = ue.skewY;
|
|
5709
|
+
return "matrix(" + he + ", " + se + ", " + j + ", " + fe + ", " + ae + ", " + le + ")";
|
|
5710
|
+
}, [G]), ee = Ve(function(ue) {
|
|
5711
|
+
var ae = F.translateX, le = F.translateY;
|
|
5712
|
+
L(AA(ue) || void 0), Q({
|
|
5713
|
+
translateX: ae,
|
|
5714
|
+
translateY: le
|
|
5715
5715
|
}), b(!0);
|
|
5716
|
-
}, [F]), Z = Ve(function(
|
|
5717
|
-
var
|
|
5716
|
+
}, [F]), Z = Ve(function(ue, ae) {
|
|
5717
|
+
var le, he;
|
|
5718
5718
|
if (!(!E || !O || !U)) {
|
|
5719
|
-
var fe = AA(
|
|
5720
|
-
|
|
5721
|
-
var
|
|
5722
|
-
|
|
5723
|
-
translateX:
|
|
5724
|
-
translateY:
|
|
5719
|
+
var fe = AA(ue), j = fe ? -(O.x - fe.x) : -O.x, se = fe ? -(O.y - fe.y) : -O.y, ge = U.translateX + j;
|
|
5720
|
+
ae != null && ae.offsetX && (ge += (le = ae?.offsetX) != null ? le : 0);
|
|
5721
|
+
var me = U.translateY + se;
|
|
5722
|
+
ae != null && ae.offsetY && (me += (he = ae?.offsetY) != null ? he : 0), X({
|
|
5723
|
+
translateX: ge,
|
|
5724
|
+
translateY: me
|
|
5725
5725
|
});
|
|
5726
5726
|
}
|
|
5727
5727
|
}, [E, X, O, U]), z = Ve(function() {
|
|
5728
5728
|
L(void 0), Q(void 0), b(!1);
|
|
5729
|
-
}, []), J = Ve(function(
|
|
5730
|
-
|
|
5731
|
-
var
|
|
5729
|
+
}, []), J = Ve(function(ue) {
|
|
5730
|
+
ue.preventDefault();
|
|
5731
|
+
var ae = AA(ue) || void 0, le = f(ue), he = le.scaleX, fe = le.scaleY;
|
|
5732
5732
|
_({
|
|
5733
|
-
scaleX:
|
|
5733
|
+
scaleX: he,
|
|
5734
5734
|
scaleY: fe,
|
|
5735
|
-
point:
|
|
5735
|
+
point: ae
|
|
5736
5736
|
});
|
|
5737
|
-
}, [_, f]), Y = Ve(function(
|
|
5738
|
-
var
|
|
5737
|
+
}, [_, f]), Y = Ve(function(ue) {
|
|
5738
|
+
var ae = ue.origin, le = ae[0], he = ae[1], fe = ue.memo, j = fe;
|
|
5739
5739
|
if (m.current) {
|
|
5740
|
-
var
|
|
5741
|
-
|
|
5742
|
-
top:
|
|
5740
|
+
var se, ge = (se = j) != null ? se : m.current.getBoundingClientRect(), me = ge.top, be = ge.left;
|
|
5741
|
+
j || (j = {
|
|
5742
|
+
top: me,
|
|
5743
5743
|
left: be
|
|
5744
5744
|
});
|
|
5745
|
-
var Re = h(
|
|
5745
|
+
var Re = h(ue), Le = Re.scaleX, Se = Re.scaleY;
|
|
5746
5746
|
_({
|
|
5747
5747
|
scaleX: Le,
|
|
5748
|
-
scaleY:
|
|
5748
|
+
scaleY: Se,
|
|
5749
5749
|
point: {
|
|
5750
|
-
x:
|
|
5751
|
-
y:
|
|
5750
|
+
x: le - be,
|
|
5751
|
+
y: he - me
|
|
5752
5752
|
}
|
|
5753
5753
|
});
|
|
5754
5754
|
}
|
|
5755
|
-
return
|
|
5756
|
-
}, [_, h]),
|
|
5757
|
-
var
|
|
5758
|
-
return "matrix(" +
|
|
5759
|
-
}, [F]),
|
|
5760
|
-
var
|
|
5755
|
+
return j;
|
|
5756
|
+
}, [_, h]), W = Ve(function() {
|
|
5757
|
+
var ue = F.translateX, ae = F.translateY, le = F.scaleX, he = F.scaleY, fe = F.skewX, j = F.skewY;
|
|
5758
|
+
return "matrix(" + le + ", " + j + ", " + fe + ", " + he + ", " + ue + ", " + ae + ")";
|
|
5759
|
+
}, [F]), oe = Ve(function() {
|
|
5760
|
+
var ue = {
|
|
5761
5761
|
x: v / 2,
|
|
5762
5762
|
y: p / 2
|
|
5763
|
-
},
|
|
5763
|
+
}, ae = D(ue);
|
|
5764
5764
|
V({
|
|
5765
|
-
translateX:
|
|
5766
|
-
translateY:
|
|
5765
|
+
translateX: ae.x - ue.x,
|
|
5766
|
+
translateY: ae.y - ue.y
|
|
5767
5767
|
});
|
|
5768
|
-
}, [p, v, D, V]),
|
|
5768
|
+
}, [p, v, D, V]), ie = Ve(function() {
|
|
5769
5769
|
P(VO());
|
|
5770
5770
|
}, [P]);
|
|
5771
5771
|
KO({
|
|
5772
|
-
onDragStart: function(
|
|
5773
|
-
var
|
|
5774
|
-
|
|
5772
|
+
onDragStart: function(ae) {
|
|
5773
|
+
var le = ae.event;
|
|
5774
|
+
le instanceof KeyboardEvent || ee(le);
|
|
5775
5775
|
},
|
|
5776
|
-
onDrag: function(
|
|
5777
|
-
var
|
|
5778
|
-
|
|
5776
|
+
onDrag: function(ae) {
|
|
5777
|
+
var le = ae.event, he = ae.pinching, fe = ae.cancel;
|
|
5778
|
+
he ? (fe(), z()) : le instanceof KeyboardEvent || Z(le);
|
|
5779
5779
|
},
|
|
5780
5780
|
onDragEnd: z,
|
|
5781
5781
|
onPinch: Y,
|
|
5782
|
-
onWheel: function(
|
|
5783
|
-
var
|
|
5782
|
+
onWheel: function(ae) {
|
|
5783
|
+
var le = ae.event, he = ae.active, fe = ae.pinching;
|
|
5784
5784
|
// Outside of Safari, the wheel event is fired together with the pinch event
|
|
5785
5785
|
fe || // currently onWheelEnd emits one final wheel event which causes 2x scale
|
|
5786
5786
|
// updates for the last tick. ensuring that the gesture is active avoids this
|
|
5787
|
-
!
|
|
5787
|
+
!he || J(le);
|
|
5788
5788
|
}
|
|
5789
5789
|
}, {
|
|
5790
5790
|
target: m,
|
|
@@ -5795,12 +5795,12 @@ function E1(t) {
|
|
|
5795
5795
|
filterTaps: !0
|
|
5796
5796
|
}
|
|
5797
5797
|
});
|
|
5798
|
-
var
|
|
5798
|
+
var Ue = {
|
|
5799
5799
|
initialTransformMatrix: u,
|
|
5800
5800
|
transformMatrix: F,
|
|
5801
5801
|
isDragging: E,
|
|
5802
|
-
center:
|
|
5803
|
-
clear:
|
|
5802
|
+
center: oe,
|
|
5803
|
+
clear: ie,
|
|
5804
5804
|
scale: _,
|
|
5805
5805
|
translate: V,
|
|
5806
5806
|
translateTo: k,
|
|
@@ -5812,14 +5812,14 @@ function E1(t) {
|
|
|
5812
5812
|
dragEnd: z,
|
|
5813
5813
|
dragMove: Z,
|
|
5814
5814
|
dragStart: ee,
|
|
5815
|
-
toString:
|
|
5815
|
+
toString: W,
|
|
5816
5816
|
invert: G,
|
|
5817
5817
|
toStringInvert: q,
|
|
5818
5818
|
applyToPoint: N,
|
|
5819
5819
|
applyInverseToPoint: D,
|
|
5820
5820
|
containerRef: m
|
|
5821
5821
|
};
|
|
5822
|
-
return /* @__PURE__ */ ke.createElement(ke.Fragment, null, B(
|
|
5822
|
+
return /* @__PURE__ */ ke.createElement(ke.Fragment, null, B(Ue));
|
|
5823
5823
|
}
|
|
5824
5824
|
E1.propTypes = {
|
|
5825
5825
|
width: S.number.isRequired,
|
|
@@ -10139,14 +10139,14 @@ function oP() {
|
|
|
10139
10139
|
function k(G, q, ee) {
|
|
10140
10140
|
var Z = "." + G + ":" + q, z = ee.cssText ? J(ee) : Y(ee);
|
|
10141
10141
|
return document.createTextNode(Z + "{" + z + "}");
|
|
10142
|
-
function J(
|
|
10143
|
-
var
|
|
10144
|
-
return
|
|
10142
|
+
function J(W) {
|
|
10143
|
+
var oe = W.getPropertyValue("content");
|
|
10144
|
+
return W.cssText + " content: " + oe + ";";
|
|
10145
10145
|
}
|
|
10146
|
-
function Y(
|
|
10147
|
-
return r.asArray(
|
|
10148
|
-
function
|
|
10149
|
-
return
|
|
10146
|
+
function Y(W) {
|
|
10147
|
+
return r.asArray(W).map(oe).join("; ") + ";";
|
|
10148
|
+
function oe(ie) {
|
|
10149
|
+
return ie + ": " + W.getPropertyValue(ie) + (W.getPropertyPriority(ie) ? " !important" : "");
|
|
10150
10150
|
}
|
|
10151
10151
|
}
|
|
10152
10152
|
}
|
|
@@ -10279,21 +10279,21 @@ function oP() {
|
|
|
10279
10279
|
function J() {
|
|
10280
10280
|
if (ee.readyState === 4) {
|
|
10281
10281
|
if (ee.status !== 200) {
|
|
10282
|
-
Z ? q(Z) :
|
|
10282
|
+
Z ? q(Z) : W("cannot fetch resource: " + k + ", status: " + ee.status);
|
|
10283
10283
|
return;
|
|
10284
10284
|
}
|
|
10285
|
-
var
|
|
10286
|
-
|
|
10287
|
-
var
|
|
10288
|
-
q(
|
|
10289
|
-
},
|
|
10285
|
+
var oe = new FileReader();
|
|
10286
|
+
oe.onloadend = function() {
|
|
10287
|
+
var ie = oe.result.split(/,/)[1];
|
|
10288
|
+
q(ie);
|
|
10289
|
+
}, oe.readAsDataURL(ee.response);
|
|
10290
10290
|
}
|
|
10291
10291
|
}
|
|
10292
10292
|
function Y() {
|
|
10293
|
-
Z ? q(Z) :
|
|
10293
|
+
Z ? q(Z) : W("timeout of " + G + "ms occured while fetching resource: " + k);
|
|
10294
10294
|
}
|
|
10295
|
-
function
|
|
10296
|
-
console.error(
|
|
10295
|
+
function W(oe) {
|
|
10296
|
+
console.error(oe), q("");
|
|
10297
10297
|
}
|
|
10298
10298
|
});
|
|
10299
10299
|
}
|
|
@@ -10503,96 +10503,96 @@ const uP = {
|
|
|
10503
10503
|
controls: {
|
|
10504
10504
|
selectionType: t.initialState?.controls?.selectionType ? t.initialState?.controls?.selectionType : t.selectable ? "select" : "pan"
|
|
10505
10505
|
}
|
|
10506
|
-
}, { parentRef: a, width: A, height: i } = zg(), o = Math.min(i, A), s = wr(null), l = ke.useRef(null), [u, c] = ke.useState(null), [f, d] = ke.useState(!1), [h, v] = ot([]), [p, g] = ot(n.controls.selectionType), [B, m] = ot(n.minimap.open), [y, C] = ot(0), [F, w] = ot(0), x = t.selectable ? t.selectable : !1, E = { top: 20, left: 70 }, b = Math.min(o * 0.9, o * 0.9) - E.left, T = b, U = u ? t.pointData.find((
|
|
10506
|
+
}, { parentRef: a, width: A, height: i } = zg(), o = Math.min(i, A), s = wr(null), l = ke.useRef(null), [u, c] = ke.useState(null), [f, d] = ke.useState(!1), [h, v] = ot([]), [p, g] = ot(n.controls.selectionType), [B, m] = ot(n.minimap.open), [y, C] = ot(0), [F, w] = ot(0), x = t.selectable ? t.selectable : !1, E = { top: 20, left: 70 }, b = Math.min(o * 0.9, o * 0.9) - E.left, T = b, U = u ? t.pointData.find((j) => j.x === u.x && j.y === u.y) : null, [Q, I] = ot([]), O = t.downloadButton ?? "none";
|
|
10507
10507
|
pn(() => {
|
|
10508
|
-
t.registerDownload && t.registerDownload((
|
|
10509
|
-
IB(l.current,
|
|
10508
|
+
t.registerDownload && t.registerDownload((j = "scatterPlot.png") => {
|
|
10509
|
+
IB(l.current, j);
|
|
10510
10510
|
});
|
|
10511
10511
|
}, [t, t.registerDownload]), pn(() => {
|
|
10512
|
-
const
|
|
10512
|
+
const j = s.current, se = (be) => {
|
|
10513
10513
|
be.preventDefault();
|
|
10514
|
-
},
|
|
10514
|
+
}, ge = (be) => {
|
|
10515
10515
|
be.preventDefault();
|
|
10516
|
-
},
|
|
10516
|
+
}, me = (be) => {
|
|
10517
10517
|
be.preventDefault();
|
|
10518
10518
|
};
|
|
10519
|
-
return
|
|
10520
|
-
|
|
10519
|
+
return j && (j.addEventListener("wheel", se, { passive: !1 }), j.addEventListener("touchstart", me, { passive: !1 }), j.addEventListener("touchmove", ge, { passive: !1 })), () => {
|
|
10520
|
+
j && (j.removeEventListener("wheel", se), j.removeEventListener("touchstart", me), j.removeEventListener("touchmove", ge));
|
|
10521
10521
|
};
|
|
10522
10522
|
}, [s]);
|
|
10523
|
-
const L = (
|
|
10524
|
-
g(
|
|
10523
|
+
const L = (j) => {
|
|
10524
|
+
g(j);
|
|
10525
10525
|
}, R = () => {
|
|
10526
10526
|
m(!B);
|
|
10527
10527
|
}, P = Tt(() => {
|
|
10528
|
-
const
|
|
10529
|
-
return
|
|
10530
|
-
}, [U, t.groupPointsAnchor, t.pointData]), N = (
|
|
10531
|
-
const
|
|
10532
|
-
(be) =>
|
|
10533
|
-
(be -
|
|
10528
|
+
const j = t.groupPointsAnchor;
|
|
10529
|
+
return j && U ? t.pointData.filter((se) => j in se ? se[j] === U[j] : se.metaData && U.metaData ? se.metaData[j] === U.metaData[j] : !1) : U ? [U] : [];
|
|
10530
|
+
}, [U, t.groupPointsAnchor, t.pointData]), N = (j, se, ge) => {
|
|
10531
|
+
const me = j.range().map(
|
|
10532
|
+
(be) => j.invert(
|
|
10533
|
+
(be - se) / ge
|
|
10534
10534
|
)
|
|
10535
10535
|
);
|
|
10536
|
-
return
|
|
10537
|
-
}, D = (
|
|
10538
|
-
const
|
|
10539
|
-
(be) =>
|
|
10540
|
-
(be -
|
|
10536
|
+
return j.copy().domain(me);
|
|
10537
|
+
}, D = (j, se, ge) => {
|
|
10538
|
+
const me = j.range().map(
|
|
10539
|
+
(be) => j.invert(
|
|
10540
|
+
(be - se) / ge
|
|
10541
10541
|
)
|
|
10542
10542
|
);
|
|
10543
|
-
return
|
|
10543
|
+
return j.copy().domain(me);
|
|
10544
10544
|
}, M = Tt(() => !t.pointData || t.pointData.length === 0 ? sa({ domain: [0, 1], range: [0, b] }) : sa({
|
|
10545
10545
|
domain: [
|
|
10546
|
-
Math.min(...t.pointData.map((
|
|
10547
|
-
Math.max(...t.pointData.map((
|
|
10546
|
+
Math.min(...t.pointData.map((j) => j.x)) - 1,
|
|
10547
|
+
Math.max(...t.pointData.map((j) => j.x)) + 1
|
|
10548
10548
|
],
|
|
10549
10549
|
range: [0, b],
|
|
10550
10550
|
nice: !0
|
|
10551
10551
|
}), [t.pointData, b]), _ = Tt(() => !t.pointData || t.pointData.length === 0 ? sa({ domain: [0, 1], range: [T, 0] }) : sa({
|
|
10552
10552
|
domain: [
|
|
10553
|
-
Math.min(...t.pointData.map((
|
|
10554
|
-
Math.max(...t.pointData.map((
|
|
10553
|
+
Math.min(...t.pointData.map((j) => j.y)) - 1,
|
|
10554
|
+
Math.max(...t.pointData.map((j) => j.y)) + 1
|
|
10555
10555
|
],
|
|
10556
10556
|
range: [T, 0],
|
|
10557
10557
|
// Y-axis is inverted
|
|
10558
10558
|
nice: !0
|
|
10559
10559
|
}), [t.pointData, T]), V = Ve(
|
|
10560
|
-
(
|
|
10561
|
-
if (p === "select" &&
|
|
10562
|
-
const
|
|
10563
|
-
v((
|
|
10560
|
+
(j) => {
|
|
10561
|
+
if (p === "select" && j?.x !== void 0 && j?.y !== void 0) {
|
|
10562
|
+
const se = j.x - E.left, ge = j.y - E.top;
|
|
10563
|
+
v((me) => [...me, [{ x: se, y: ge }]]);
|
|
10564
10564
|
}
|
|
10565
10565
|
},
|
|
10566
10566
|
[p, E.left, E.top]
|
|
10567
10567
|
), X = Ve(
|
|
10568
|
-
(
|
|
10569
|
-
if (p === "select" &&
|
|
10570
|
-
const
|
|
10571
|
-
v((
|
|
10572
|
-
const be = [...
|
|
10568
|
+
(j) => {
|
|
10569
|
+
if (p === "select" && j?.x !== void 0 && j?.y !== void 0) {
|
|
10570
|
+
const se = j.x - E.left, ge = j.y - E.top;
|
|
10571
|
+
v((me) => {
|
|
10572
|
+
const be = [...me], Re = { x: se + j.dx, y: ge + j.dy }, Le = be.length - 1;
|
|
10573
10573
|
return be[Le] = [...be[Le] || [], Re], be;
|
|
10574
10574
|
});
|
|
10575
10575
|
}
|
|
10576
10576
|
},
|
|
10577
10577
|
[p, E.left, E.top]
|
|
10578
|
-
), k = (
|
|
10579
|
-
let
|
|
10580
|
-
for (let
|
|
10581
|
-
const Re =
|
|
10582
|
-
Le >
|
|
10583
|
-
|
|
10584
|
-
}
|
|
10585
|
-
return
|
|
10578
|
+
), k = (j, se) => {
|
|
10579
|
+
let ge = !1;
|
|
10580
|
+
for (let me = 0, be = se.length - 1; me < se.length; be = me++) {
|
|
10581
|
+
const Re = se[me].x, Le = se[me].y, Se = se[be].x, De = se[be].y;
|
|
10582
|
+
Le > j.y != De > j.y && //does the ray intersect the line segment from the current to the previous vertex?
|
|
10583
|
+
j.x < (Se - Re) * (j.y - Le) / (De - Le) + Re && (ge = !ge);
|
|
10584
|
+
}
|
|
10585
|
+
return ge;
|
|
10586
10586
|
}, G = Ve(
|
|
10587
|
-
(
|
|
10587
|
+
(j) => {
|
|
10588
10588
|
if (p === "select") {
|
|
10589
10589
|
if (h.length === 0) return;
|
|
10590
|
-
const
|
|
10590
|
+
const se = h[h.length - 1], ge = N(M, j.transformMatrix.translateX, j.transformMatrix.scaleX), me = D(_, j.transformMatrix.translateY, j.transformMatrix.scaleY), be = t.pointData.filter((Re) => {
|
|
10591
10591
|
const Le = {
|
|
10592
|
-
x:
|
|
10593
|
-
y:
|
|
10592
|
+
x: ge(Re.x),
|
|
10593
|
+
y: me(Re.y)
|
|
10594
10594
|
};
|
|
10595
|
-
return k(Le,
|
|
10595
|
+
return k(Le, se);
|
|
10596
10596
|
});
|
|
10597
10597
|
t.onSelectionChange && t.onSelectionChange(be), v([]);
|
|
10598
10598
|
} else
|
|
@@ -10606,54 +10606,54 @@ const uP = {
|
|
|
10606
10606
|
dy: z,
|
|
10607
10607
|
isDragging: J,
|
|
10608
10608
|
dragStart: Y,
|
|
10609
|
-
dragEnd:
|
|
10610
|
-
dragMove:
|
|
10609
|
+
dragEnd: W,
|
|
10610
|
+
dragMove: oe
|
|
10611
10611
|
} = VR({
|
|
10612
10612
|
onDragStart: V,
|
|
10613
10613
|
onDragMove: X,
|
|
10614
10614
|
resetOnStart: !0
|
|
10615
|
-
}),
|
|
10616
|
-
(
|
|
10617
|
-
if (J ||
|
|
10615
|
+
}), ie = Ve(
|
|
10616
|
+
(j, se) => {
|
|
10617
|
+
if (J || se.isDragging) {
|
|
10618
10618
|
d(!1), c(null);
|
|
10619
10619
|
return;
|
|
10620
10620
|
}
|
|
10621
|
-
C(
|
|
10622
|
-
const
|
|
10623
|
-
if (!
|
|
10624
|
-
const
|
|
10621
|
+
C(j.pageX), w(j.pageY);
|
|
10622
|
+
const ge = AA(j.currentTarget, j);
|
|
10623
|
+
if (!ge) return;
|
|
10624
|
+
const me = ge.x - E.left, be = ge.y - E.top, Re = N(M, se.transformMatrix.translateX, se.transformMatrix.scaleX), Le = D(_, se.transformMatrix.translateY, se.transformMatrix.scaleY), Se = 5, De = t.pointData.find((ye) => {
|
|
10625
10625
|
const Ae = Re(ye.x), H = Le(ye.y);
|
|
10626
|
-
return Math.abs(
|
|
10626
|
+
return Math.abs(me - Ae) < Se && Math.abs(be - H) < Se;
|
|
10627
10627
|
});
|
|
10628
10628
|
De ? (c(De), d(!0)) : (c(null), d(!1));
|
|
10629
10629
|
},
|
|
10630
10630
|
[J, t.pointData, E.left, E.top, M, _]
|
|
10631
|
-
),
|
|
10631
|
+
), Ue = Ve(() => {
|
|
10632
10632
|
d(!1), c(null);
|
|
10633
|
-
}, []),
|
|
10633
|
+
}, []), ue = () => {
|
|
10634
10634
|
!t.onPointClicked || !U || U && t.onPointClicked(U);
|
|
10635
|
-
},
|
|
10636
|
-
if (
|
|
10637
|
-
const
|
|
10638
|
-
if (
|
|
10639
|
-
|
|
10635
|
+
}, ae = Ve((j, se, ge) => {
|
|
10636
|
+
if (ge) {
|
|
10637
|
+
const me = ge.getContext("2d");
|
|
10638
|
+
if (me) {
|
|
10639
|
+
me.setTransform(2, 0, 0, 2, 0, 0), me.clearRect(0, 0, b, T);
|
|
10640
10640
|
const be = new Set(P.map((Ae) => `${Ae.x},${Ae.y}`)), Re = t.pointData.filter(
|
|
10641
10641
|
(Ae) => !be.has(`${Ae.x},${Ae.y}`)
|
|
10642
10642
|
), Le = t.pointData.filter(
|
|
10643
10643
|
(Ae) => be.has(`${Ae.x},${Ae.y}`)
|
|
10644
|
-
),
|
|
10645
|
-
const K =
|
|
10646
|
-
re && (
|
|
10644
|
+
), Se = [], De = (Ae, H) => {
|
|
10645
|
+
const K = j(Ae.x), te = se(Ae.y), re = j(Ae.x) >= 0 && j(Ae.x) <= b && se(Ae.y) >= 0 && se(Ae.y) <= T, ne = (Ae.r || 3) + (H ? 2 : 0);
|
|
10646
|
+
re && (Se.push(Ae), me.beginPath(), Ae.shape === "circle" ? me.arc(K, te, ne, 0, Math.PI * 2) : Ae.shape === "triangle" && (me.moveTo(K, te - ne), me.lineTo(K - ne, te + ne), me.lineTo(K + ne, te + ne), me.closePath()), me.fillStyle = Ae.color ? Ae.color : "black", me.globalAlpha = Ae.opacity !== void 0 ? Ae.opacity : 1, me.fill(), H && (me.lineWidth = 1, me.strokeStyle = "black", me.stroke()));
|
|
10647
10647
|
};
|
|
10648
10648
|
Re.forEach((Ae) => De(Ae, !1)), Le.forEach((Ae) => De(Ae, !0)), ((Ae, H) => Ae.length !== H.length ? !0 : !Ae.every((K, te) => {
|
|
10649
10649
|
const re = H[te];
|
|
10650
10650
|
return K.x === re.x && K.y === re.y && K.r === re.r && K.shape === re.shape && K.color === re.color && K.opacity === re.opacity;
|
|
10651
|
-
}))(Q,
|
|
10651
|
+
}))(Q, Se) && (t.onDisplayedPointsChange && t.onDisplayedPointsChange(Se), I(Se));
|
|
10652
10652
|
}
|
|
10653
10653
|
}
|
|
10654
|
-
}, [b, T, P, t, Q]),
|
|
10654
|
+
}, [b, T, P, t, Q]), le = () => {
|
|
10655
10655
|
IB(l.current);
|
|
10656
|
-
},
|
|
10656
|
+
}, he = /* @__PURE__ */ $.jsx(
|
|
10657
10657
|
wa,
|
|
10658
10658
|
{
|
|
10659
10659
|
textAnchor: "middle",
|
|
@@ -10677,13 +10677,13 @@ const uP = {
|
|
|
10677
10677
|
children: t.bottomAxisLabel
|
|
10678
10678
|
}
|
|
10679
10679
|
);
|
|
10680
|
-
return /* @__PURE__ */ $.jsx("div", { ref: a, style: { width: "100%", height: "100%", position: "relative" }, children: /* @__PURE__ */ $.jsx(e, { width: b, height: T, scaleXMin: 1 / 2, scaleXMax: 10, scaleYMin: 1 / 2, scaleYMax: 10, initialTransformMatrix: uP, children: (
|
|
10681
|
-
const
|
|
10682
|
-
|
|
10680
|
+
return /* @__PURE__ */ $.jsx("div", { ref: a, style: { width: "100%", height: "100%", position: "relative" }, children: /* @__PURE__ */ $.jsx(e, { width: b, height: T, scaleXMin: 1 / 2, scaleXMax: 10, scaleYMin: 1 / 2, scaleYMax: 10, initialTransformMatrix: uP, children: (j) => {
|
|
10681
|
+
const se = N(M, j.transformMatrix.translateX, j.transformMatrix.scaleX), ge = D(_, j.transformMatrix.translateY, j.transformMatrix.scaleY), me = U && se(U.x) >= 0 && se(U.x) <= b && ge(U.y) >= 0 && ge(U.y) <= T, be = () => {
|
|
10682
|
+
j.scale({ scaleX: 1.2, scaleY: 1.2 });
|
|
10683
10683
|
}, Re = () => {
|
|
10684
|
-
|
|
10684
|
+
j.scale({ scaleX: 0.8, scaleY: 0.8 });
|
|
10685
10685
|
}, Le = () => {
|
|
10686
|
-
|
|
10686
|
+
j.reset();
|
|
10687
10687
|
};
|
|
10688
10688
|
return /* @__PURE__ */ $.jsxs($.Fragment, { children: [
|
|
10689
10689
|
!t.disableZoom && /* @__PURE__ */ $.jsx(
|
|
@@ -10703,7 +10703,7 @@ const uP = {
|
|
|
10703
10703
|
$R,
|
|
10704
10704
|
{
|
|
10705
10705
|
selectable: x,
|
|
10706
|
-
resetable:
|
|
10706
|
+
resetable: j.transformMatrix !== j.initialTransformMatrix,
|
|
10707
10707
|
handleSelectionModeChange: L,
|
|
10708
10708
|
selectMode: p,
|
|
10709
10709
|
zoomIn: be,
|
|
@@ -10712,7 +10712,7 @@ const uP = {
|
|
|
10712
10712
|
position: t.controlsPosition,
|
|
10713
10713
|
highlight: t.controlsHighlight,
|
|
10714
10714
|
downloadButton: O,
|
|
10715
|
-
downloadPlot:
|
|
10715
|
+
downloadPlot: le
|
|
10716
10716
|
}
|
|
10717
10717
|
)
|
|
10718
10718
|
}
|
|
@@ -10721,7 +10721,7 @@ const uP = {
|
|
|
10721
10721
|
aa,
|
|
10722
10722
|
{
|
|
10723
10723
|
"aria-label": "download",
|
|
10724
|
-
onClick: () =>
|
|
10724
|
+
onClick: () => le(),
|
|
10725
10725
|
sx: {
|
|
10726
10726
|
position: "absolute",
|
|
10727
10727
|
zIndex: 10,
|
|
@@ -10737,8 +10737,8 @@ const uP = {
|
|
|
10737
10737
|
/* @__PURE__ */ $.jsx(
|
|
10738
10738
|
"canvas",
|
|
10739
10739
|
{
|
|
10740
|
-
ref: (
|
|
10741
|
-
|
|
10740
|
+
ref: (Se) => {
|
|
10741
|
+
Se && ae(se, ge, Se);
|
|
10742
10742
|
},
|
|
10743
10743
|
width: b * 2,
|
|
10744
10744
|
height: T * 2,
|
|
@@ -10762,18 +10762,18 @@ const uP = {
|
|
|
10762
10762
|
position: "absolute",
|
|
10763
10763
|
userSelect: "none"
|
|
10764
10764
|
},
|
|
10765
|
-
onMouseMove: (
|
|
10766
|
-
onMouseLeave:
|
|
10765
|
+
onMouseMove: (Se) => ie(Se, j),
|
|
10766
|
+
onMouseLeave: Ue,
|
|
10767
10767
|
children: [
|
|
10768
10768
|
/* @__PURE__ */ $.jsxs(gn, { top: E.top, left: E.left, children: [
|
|
10769
10769
|
p === "select" && /* @__PURE__ */ $.jsxs($.Fragment, { children: [
|
|
10770
|
-
h.map((
|
|
10770
|
+
h.map((Se, De) => /* @__PURE__ */ $.jsx(
|
|
10771
10771
|
gM,
|
|
10772
10772
|
{
|
|
10773
10773
|
fill: "transparent",
|
|
10774
10774
|
stroke: "black",
|
|
10775
10775
|
strokeWidth: 3,
|
|
10776
|
-
data:
|
|
10776
|
+
data: Se,
|
|
10777
10777
|
curve: px,
|
|
10778
10778
|
x: (ye) => ye.x,
|
|
10779
10779
|
y: (ye) => ye.y
|
|
@@ -10814,28 +10814,28 @@ const uP = {
|
|
|
10814
10814
|
width: b,
|
|
10815
10815
|
height: T,
|
|
10816
10816
|
style: {
|
|
10817
|
-
cursor: t.disableZoom ? t.selectable ? J ? "none" : "crosshair" : J ? "none" : "default" : U ? "default" : p === "select" ? J ? "none" : "crosshair" :
|
|
10817
|
+
cursor: t.disableZoom ? t.selectable ? J ? "none" : "crosshair" : J ? "none" : "default" : U ? "default" : p === "select" ? J ? "none" : "crosshair" : j.isDragging ? "grabbing" : "grab"
|
|
10818
10818
|
},
|
|
10819
|
-
onMouseDown: p === "none" ? void 0 : p === "select" ? Y : t.disableZoom ? void 0 :
|
|
10820
|
-
onMouseUp: p === "none" ? void 0 : p === "select" ? (
|
|
10821
|
-
|
|
10822
|
-
} : t.disableZoom ? void 0 :
|
|
10823
|
-
onMouseMove: p === "none" ? void 0 : p === "select" ? J ?
|
|
10824
|
-
onMouseLeave: p === "none" ? void 0 : p === "select" ? (
|
|
10825
|
-
|
|
10826
|
-
} : t.disableZoom ? void 0 :
|
|
10827
|
-
onTouchStart: p === "none" ? void 0 : p === "select" ? Y : t.disableZoom ? void 0 :
|
|
10828
|
-
onTouchEnd: p === "none" ? void 0 : p === "select" ? (
|
|
10829
|
-
|
|
10830
|
-
} : t.disableZoom ? void 0 :
|
|
10831
|
-
onTouchMove: p === "none" ? void 0 : p === "select" ? J ?
|
|
10832
|
-
onWheel: (
|
|
10819
|
+
onMouseDown: p === "none" ? void 0 : p === "select" ? Y : t.disableZoom ? void 0 : j.dragStart,
|
|
10820
|
+
onMouseUp: p === "none" ? void 0 : p === "select" ? (Se) => {
|
|
10821
|
+
W(Se), G(j);
|
|
10822
|
+
} : t.disableZoom ? void 0 : j.dragEnd,
|
|
10823
|
+
onMouseMove: p === "none" ? void 0 : p === "select" ? J ? oe : void 0 : t.disableZoom ? void 0 : j.dragMove,
|
|
10824
|
+
onMouseLeave: p === "none" ? void 0 : p === "select" ? (Se) => {
|
|
10825
|
+
W(Se), G(j);
|
|
10826
|
+
} : t.disableZoom ? void 0 : j.dragEnd,
|
|
10827
|
+
onTouchStart: p === "none" ? void 0 : p === "select" ? Y : t.disableZoom ? void 0 : j.dragStart,
|
|
10828
|
+
onTouchEnd: p === "none" ? void 0 : p === "select" ? (Se) => {
|
|
10829
|
+
W(Se), G(j);
|
|
10830
|
+
} : t.disableZoom ? void 0 : j.dragEnd,
|
|
10831
|
+
onTouchMove: p === "none" ? void 0 : p === "select" ? J ? oe : void 0 : t.disableZoom ? void 0 : j.dragMove,
|
|
10832
|
+
onWheel: (Se) => {
|
|
10833
10833
|
if (!t.disableZoom) {
|
|
10834
|
-
const De = AA(
|
|
10835
|
-
|
|
10834
|
+
const De = AA(Se) || { x: 0, y: 0 }, ye = Se.deltaY < 0 ? 1.1 : 0.9;
|
|
10835
|
+
j.scale({ scaleX: ye, scaleY: ye, point: De });
|
|
10836
10836
|
}
|
|
10837
10837
|
},
|
|
10838
|
-
onClick:
|
|
10838
|
+
onClick: ue
|
|
10839
10839
|
}
|
|
10840
10840
|
)
|
|
10841
10841
|
] }),
|
|
@@ -10844,7 +10844,7 @@ const uP = {
|
|
|
10844
10844
|
wp,
|
|
10845
10845
|
{
|
|
10846
10846
|
numTicks: 4,
|
|
10847
|
-
scale:
|
|
10847
|
+
scale: ge,
|
|
10848
10848
|
tickLabelProps: () => ({
|
|
10849
10849
|
fill: "#1c1917",
|
|
10850
10850
|
fontSize: 10,
|
|
@@ -10859,7 +10859,7 @@ const uP = {
|
|
|
10859
10859
|
{
|
|
10860
10860
|
numTicks: 4,
|
|
10861
10861
|
top: T,
|
|
10862
|
-
scale:
|
|
10862
|
+
scale: se,
|
|
10863
10863
|
tickLabelProps: () => ({
|
|
10864
10864
|
fill: "#1c1917",
|
|
10865
10865
|
fontSize: 11,
|
|
@@ -10867,7 +10867,7 @@ const uP = {
|
|
|
10867
10867
|
})
|
|
10868
10868
|
}
|
|
10869
10869
|
),
|
|
10870
|
-
|
|
10870
|
+
he,
|
|
10871
10871
|
fe
|
|
10872
10872
|
] })
|
|
10873
10873
|
]
|
|
@@ -10884,10 +10884,10 @@ const uP = {
|
|
|
10884
10884
|
pointData: t.pointData,
|
|
10885
10885
|
xScale: M,
|
|
10886
10886
|
yScale: _,
|
|
10887
|
-
zoom:
|
|
10887
|
+
zoom: j
|
|
10888
10888
|
}
|
|
10889
10889
|
),
|
|
10890
|
-
!t.disableTooltip && f && u &&
|
|
10890
|
+
!t.disableTooltip && f && u && me && /* @__PURE__ */ $.jsx(hc, { children: /* @__PURE__ */ $.jsx(r, { left: y + 10, top: F, children: /* @__PURE__ */ $.jsx(
|
|
10891
10891
|
GR,
|
|
10892
10892
|
{
|
|
10893
10893
|
tooltipBody: t.tooltipBody,
|
|
@@ -12269,33 +12269,33 @@ var fk = ck(), ws = /* @__PURE__ */ gs(fk), dk = er({
|
|
|
12269
12269
|
// Implemented from pseudocode from wikipedia
|
|
12270
12270
|
bellmanFord: function(e) {
|
|
12271
12271
|
var r = this, n = Bk(e), a = n.weight, A = n.directed, i = n.root, o = a, s = this, l = this.cy(), u = this.byGroup(), c = u.edges, f = u.nodes, d = f.length, h = new Hn(), v = !1, p = [];
|
|
12272
|
-
i = l.collection(i)[0], c.unmergeBy(function(
|
|
12273
|
-
return
|
|
12272
|
+
i = l.collection(i)[0], c.unmergeBy(function(ue) {
|
|
12273
|
+
return ue.isLoop();
|
|
12274
12274
|
});
|
|
12275
|
-
for (var g = c.length, B = function(
|
|
12276
|
-
var
|
|
12277
|
-
return
|
|
12278
|
-
}, m = function(
|
|
12279
|
-
return (Oe(
|
|
12280
|
-
}, y = function(
|
|
12281
|
-
return B(m(
|
|
12282
|
-
}, C = function(
|
|
12283
|
-
for (var
|
|
12284
|
-
if (
|
|
12275
|
+
for (var g = c.length, B = function(ae) {
|
|
12276
|
+
var le = h.get(ae.id());
|
|
12277
|
+
return le || (le = {}, h.set(ae.id(), le)), le;
|
|
12278
|
+
}, m = function(ae) {
|
|
12279
|
+
return (Oe(ae) ? l.$(ae) : ae)[0];
|
|
12280
|
+
}, y = function(ae) {
|
|
12281
|
+
return B(m(ae)).dist;
|
|
12282
|
+
}, C = function(ae) {
|
|
12283
|
+
for (var le = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : i, he = m(ae), fe = [], j = he; ; ) {
|
|
12284
|
+
if (j == null)
|
|
12285
12285
|
return r.spawn();
|
|
12286
|
-
var
|
|
12287
|
-
if (fe.unshift(
|
|
12286
|
+
var se = B(j), ge = se.edge, me = se.pred;
|
|
12287
|
+
if (fe.unshift(j[0]), j.same(le) && fe.length > 0)
|
|
12288
12288
|
break;
|
|
12289
|
-
|
|
12289
|
+
ge != null && fe.unshift(ge), j = me;
|
|
12290
12290
|
}
|
|
12291
12291
|
return s.spawn(fe);
|
|
12292
12292
|
}, F = 0; F < d; F++) {
|
|
12293
12293
|
var w = f[F], x = B(w);
|
|
12294
12294
|
w.same(i) ? x.dist = 0 : x.dist = 1 / 0, x.pred = null, x.edge = null;
|
|
12295
12295
|
}
|
|
12296
|
-
for (var E = !1, b = function(
|
|
12297
|
-
var
|
|
12298
|
-
|
|
12296
|
+
for (var E = !1, b = function(ae, le, he, fe, j, se) {
|
|
12297
|
+
var ge = fe.dist + se;
|
|
12298
|
+
ge < j.dist && !he.same(fe.edge) && (j.dist = ge, j.pred = ae, j.edge = he, E = !0);
|
|
12299
12299
|
}, T = 1; T < d; T++) {
|
|
12300
12300
|
E = !1;
|
|
12301
12301
|
for (var U = 0; U < g; U++) {
|
|
@@ -12318,13 +12318,13 @@ var fk = ck(), ws = /* @__PURE__ */ gs(fk), dk = er({
|
|
|
12318
12318
|
for (var Y = B(z).pred; J.indexOf(Y) === -1; )
|
|
12319
12319
|
J.push(Y), J.push(B(Y).edge), Y = B(Y).pred;
|
|
12320
12320
|
J = J.slice(J.indexOf(Y));
|
|
12321
|
-
for (var
|
|
12322
|
-
J[
|
|
12323
|
-
J = J.slice(
|
|
12324
|
-
var
|
|
12325
|
-
return
|
|
12321
|
+
for (var W = J[0].id(), oe = 0, ie = 2; ie < J.length; ie += 2)
|
|
12322
|
+
J[ie].id() < W && (W = J[ie].id(), oe = ie);
|
|
12323
|
+
J = J.slice(oe).concat(J.slice(0, oe)), J.push(J[0]);
|
|
12324
|
+
var Ue = J.map(function(ue) {
|
|
12325
|
+
return ue.id();
|
|
12326
12326
|
}).join(",");
|
|
12327
|
-
N.indexOf(
|
|
12327
|
+
N.indexOf(Ue) === -1 && (p.push(s.spawn(J)), N.push(Ue));
|
|
12328
12328
|
}
|
|
12329
12329
|
} else
|
|
12330
12330
|
break;
|
|
@@ -13725,12 +13725,12 @@ var gH = er({
|
|
|
13725
13725
|
for (var q = MH(o, c, f), ee = RH(o, l, q), Z = {}, z = 0; z < q.length; z++)
|
|
13726
13726
|
Z[q[z]] = [];
|
|
13727
13727
|
for (var J = 0; J < n.length; J++) {
|
|
13728
|
-
var Y = A[n[J].id()],
|
|
13729
|
-
|
|
13728
|
+
var Y = A[n[J].id()], W = ee[Y];
|
|
13729
|
+
W != null && Z[W].push(n[J]);
|
|
13730
13730
|
}
|
|
13731
|
-
for (var
|
|
13732
|
-
|
|
13733
|
-
return
|
|
13731
|
+
for (var oe = new Array(q.length), ie = 0; ie < q.length; ie++)
|
|
13732
|
+
oe[ie] = r.collection(Z[q[ie]]);
|
|
13733
|
+
return oe;
|
|
13734
13734
|
}, PH = {
|
|
13735
13735
|
affinityPropagation: fw,
|
|
13736
13736
|
ap: fw
|
|
@@ -16457,16 +16457,16 @@ var Pr = function(e) {
|
|
|
16457
16457
|
break;
|
|
16458
16458
|
}
|
|
16459
16459
|
}
|
|
16460
|
-
var Z = function(
|
|
16461
|
-
return
|
|
16462
|
-
x:
|
|
16463
|
-
y:
|
|
16460
|
+
var Z = function(ue, ae) {
|
|
16461
|
+
return ue = ue - q, ae = ae - ee, {
|
|
16462
|
+
x: ue * k - ae * G + q,
|
|
16463
|
+
y: ue * G + ae * k + ee
|
|
16464
16464
|
};
|
|
16465
|
-
}, z = Z(T, Q), J = Z(T, I), Y = Z(U, Q),
|
|
16466
|
-
T = Math.min(z.x, J.x, Y.x,
|
|
16465
|
+
}, z = Z(T, Q), J = Z(T, I), Y = Z(U, Q), W = Z(U, I);
|
|
16466
|
+
T = Math.min(z.x, J.x, Y.x, W.x), U = Math.max(z.x, J.x, Y.x, W.x), Q = Math.min(z.y, J.y, Y.y, W.y), I = Math.max(z.y, J.y, Y.y, W.y);
|
|
16467
16467
|
}
|
|
16468
|
-
var
|
|
16469
|
-
|
|
16468
|
+
var oe = N + "Rot", ie = D[oe] = D[oe] || {};
|
|
16469
|
+
ie.x1 = T, ie.y1 = Q, ie.x2 = U, ie.y2 = I, ie.w = U - T, ie.h = I - Q, jr(e, T, Q, U, I), jr(A.labelBounds.all, T, Q, U, I);
|
|
16470
16470
|
}
|
|
16471
16471
|
return e;
|
|
16472
16472
|
}
|
|
@@ -16490,8 +16490,8 @@ var Pr = function(e) {
|
|
|
16490
16490
|
fF(e, r, n, a, A);
|
|
16491
16491
|
}
|
|
16492
16492
|
}, r4 = function(e, r) {
|
|
16493
|
-
var n = e._private.cy, a = n.styleEnabled(), A = n.headless(), i = fr(), o = e._private, s = e.isNode(), l = e.isEdge(), u, c, f, d, h, v, p = o.rstyle, g = s && a ? e.pstyle("bounds-expansion").pfValue : [0], B = function(
|
|
16494
|
-
return
|
|
16493
|
+
var n = e._private.cy, a = n.styleEnabled(), A = n.headless(), i = fr(), o = e._private, s = e.isNode(), l = e.isEdge(), u, c, f, d, h, v, p = o.rstyle, g = s && a ? e.pstyle("bounds-expansion").pfValue : [0], B = function(Ue) {
|
|
16494
|
+
return Ue.pstyle("display").value !== "none";
|
|
16495
16495
|
}, m = !a || B(e) && (!l || B(e.source()) && B(e.target()));
|
|
16496
16496
|
if (m) {
|
|
16497
16497
|
var y = 0, C = 0;
|
|
@@ -16561,10 +16561,10 @@ var Pr = function(e) {
|
|
|
16561
16561
|
}
|
|
16562
16562
|
var Y = o.bodyBounds = o.bodyBounds || {};
|
|
16563
16563
|
ew(Y, i), Nl(Y, g), Hl(Y, 1), a && (u = i.x1, c = i.x2, f = i.y1, d = i.y2, jr(i, u - x, f - x, c + x, d + x));
|
|
16564
|
-
var
|
|
16565
|
-
ew(
|
|
16566
|
-
var
|
|
16567
|
-
|
|
16564
|
+
var W = o.overlayBounds = o.overlayBounds || {};
|
|
16565
|
+
ew(W, i), Nl(W, g), Hl(W, 1);
|
|
16566
|
+
var oe = o.labelBounds = o.labelBounds || {};
|
|
16567
|
+
oe.all != null ? Lk(oe.all) : oe.all = fr(), a && r.includeLabels && (r.includeMainLabels && Jh(i, e, null), l && (r.includeSourceLabels && Jh(i, e, "source"), r.includeTargetLabels && Jh(i, e, "target")));
|
|
16568
16568
|
}
|
|
16569
16569
|
return i.x1 = Pr(i.x1), i.y1 = Pr(i.y1), i.x2 = Pr(i.x2), i.y2 = Pr(i.y2), i.w = Pr(i.x2 - i.x1), i.h = Pr(i.y2 - i.y1), i.w > 0 && i.h > 0 && m && (Nl(i, g), Hl(i, 1)), i;
|
|
16570
16570
|
}, dF = function(e) {
|
|
@@ -19056,8 +19056,8 @@ Xt.applyContextStyle = function(t, e, r) {
|
|
|
19056
19056
|
};
|
|
19057
19057
|
};
|
|
19058
19058
|
Xt.updateStyleHints = function(t) {
|
|
19059
|
-
var e = t._private, r = this, n = r.propertyGroupNames, a = r.propertyGroupKeys, A = function(Y,
|
|
19060
|
-
return r.getPropertiesHash(Y,
|
|
19059
|
+
var e = t._private, r = this, n = r.propertyGroupNames, a = r.propertyGroupKeys, A = function(Y, W, oe) {
|
|
19060
|
+
return r.getPropertiesHash(Y, W, oe);
|
|
19061
19061
|
}, i = e.styleKey;
|
|
19062
19062
|
if (t.removed())
|
|
19063
19063
|
return !1;
|
|
@@ -19067,16 +19067,16 @@ Xt.updateStyleHints = function(t) {
|
|
|
19067
19067
|
var u = a[l];
|
|
19068
19068
|
e.styleKeys[u] = [Wa, zA];
|
|
19069
19069
|
}
|
|
19070
|
-
for (var c = function(Y,
|
|
19071
|
-
return e.styleKeys[
|
|
19072
|
-
}, f = function(Y,
|
|
19073
|
-
return e.styleKeys[
|
|
19074
|
-
}, d = function(Y,
|
|
19075
|
-
c(Y,
|
|
19076
|
-
}, h = function(Y,
|
|
19077
|
-
for (var
|
|
19078
|
-
var
|
|
19079
|
-
c(
|
|
19070
|
+
for (var c = function(Y, W) {
|
|
19071
|
+
return e.styleKeys[W][0] = $o(Y, e.styleKeys[W][0]);
|
|
19072
|
+
}, f = function(Y, W) {
|
|
19073
|
+
return e.styleKeys[W][1] = Yo(Y, e.styleKeys[W][1]);
|
|
19074
|
+
}, d = function(Y, W) {
|
|
19075
|
+
c(Y, W), f(Y, W);
|
|
19076
|
+
}, h = function(Y, W) {
|
|
19077
|
+
for (var oe = 0; oe < Y.length; oe++) {
|
|
19078
|
+
var ie = Y.charCodeAt(oe);
|
|
19079
|
+
c(ie, W), f(ie, W);
|
|
19080
19080
|
}
|
|
19081
19081
|
}, v = 2e9, p = function(Y) {
|
|
19082
19082
|
return -128 < Y && Y < 128 && Math.floor(Y) !== Y ? v - (Y * 1024 | 0) : Y;
|
|
@@ -19919,8 +19919,8 @@ var It = {};
|
|
|
19919
19919
|
return J != Y;
|
|
19920
19920
|
},
|
|
19921
19921
|
emptyNonEmpty: function(J, Y) {
|
|
19922
|
-
var
|
|
19923
|
-
return
|
|
19922
|
+
var W = ba(J), oe = ba(Y);
|
|
19923
|
+
return W && !oe || !W && oe;
|
|
19924
19924
|
}
|
|
19925
19925
|
}, l = It.types, u = [{
|
|
19926
19926
|
name: "label",
|
|
@@ -20085,8 +20085,8 @@ var It = {};
|
|
|
20085
20085
|
triggersZOrder: s.any,
|
|
20086
20086
|
triggersBounds: s.any,
|
|
20087
20087
|
triggersBoundsOfConnectedEdges: s.any,
|
|
20088
|
-
triggersBoundsOfParallelEdges: function(J, Y,
|
|
20089
|
-
return J === Y ? !1 :
|
|
20088
|
+
triggersBoundsOfParallelEdges: function(J, Y, W) {
|
|
20089
|
+
return J === Y ? !1 : W.pstyle("curve-style").value === "bezier";
|
|
20090
20090
|
}
|
|
20091
20091
|
}, {
|
|
20092
20092
|
name: "visibility",
|
|
@@ -20563,11 +20563,11 @@ var It = {};
|
|
|
20563
20563
|
type: l.arrowWidth
|
|
20564
20564
|
}].forEach(function(z) {
|
|
20565
20565
|
P.forEach(function(J) {
|
|
20566
|
-
var Y = J + "-" + z.name,
|
|
20566
|
+
var Y = J + "-" + z.name, W = z.type, oe = z.triggersBounds;
|
|
20567
20567
|
R.push({
|
|
20568
20568
|
name: Y,
|
|
20569
|
-
type:
|
|
20570
|
-
triggersBounds:
|
|
20569
|
+
type: W,
|
|
20570
|
+
triggersBounds: oe
|
|
20571
20571
|
});
|
|
20572
20572
|
});
|
|
20573
20573
|
}, {});
|
|
@@ -21839,8 +21839,8 @@ function xF(t) {
|
|
|
21839
21839
|
this.options = Me({}, H4, N4, t);
|
|
21840
21840
|
}
|
|
21841
21841
|
xF.prototype.run = function() {
|
|
21842
|
-
var t = this.options, e = t.cy, r = t.eles, n = r.nodes().filter(function(
|
|
21843
|
-
return
|
|
21842
|
+
var t = this.options, e = t.cy, r = t.eles, n = r.nodes().filter(function(ae) {
|
|
21843
|
+
return ae.isChildless();
|
|
21844
21844
|
}), a = r, A = t.directed, i = t.acyclic || t.maximal || t.maximalAdjustments > 0, o = !!t.boundingBox, s = e.extent(), l = fr(o ? t.boundingBox : {
|
|
21845
21845
|
x1: s.x1,
|
|
21846
21846
|
y1: s.y1,
|
|
@@ -21863,76 +21863,76 @@ xF.prototype.run = function() {
|
|
|
21863
21863
|
var v = r.components();
|
|
21864
21864
|
u = e.collection();
|
|
21865
21865
|
for (var p = function() {
|
|
21866
|
-
var
|
|
21867
|
-
return
|
|
21866
|
+
var le = v[g], he = le.maxDegree(!1), fe = le.filter(function(j) {
|
|
21867
|
+
return j.degree(!1) === he;
|
|
21868
21868
|
});
|
|
21869
21869
|
u = u.add(fe);
|
|
21870
21870
|
}, g = 0; g < v.length; g++)
|
|
21871
21871
|
p();
|
|
21872
21872
|
}
|
|
21873
|
-
var B = [], m = {}, y = function(
|
|
21874
|
-
B[
|
|
21875
|
-
var fe = B[
|
|
21876
|
-
B[
|
|
21873
|
+
var B = [], m = {}, y = function(le, he) {
|
|
21874
|
+
B[he] == null && (B[he] = []);
|
|
21875
|
+
var fe = B[he].length;
|
|
21876
|
+
B[he].push(le), Ib(le, {
|
|
21877
21877
|
index: fe,
|
|
21878
|
-
depth:
|
|
21878
|
+
depth: he
|
|
21879
21879
|
});
|
|
21880
|
-
}, C = function(
|
|
21881
|
-
var fe = MA(
|
|
21882
|
-
B[
|
|
21880
|
+
}, C = function(le, he) {
|
|
21881
|
+
var fe = MA(le), j = fe.depth, se = fe.index;
|
|
21882
|
+
B[j][se] = null, le.isChildless() && y(le, he);
|
|
21883
21883
|
};
|
|
21884
21884
|
a.bfs({
|
|
21885
21885
|
roots: u,
|
|
21886
21886
|
directed: t.directed,
|
|
21887
|
-
visit: function(
|
|
21888
|
-
var
|
|
21889
|
-
|
|
21887
|
+
visit: function(le, he, fe, j, se) {
|
|
21888
|
+
var ge = le[0], me = ge.id();
|
|
21889
|
+
ge.isChildless() && y(ge, se), m[me] = !0;
|
|
21890
21890
|
}
|
|
21891
21891
|
});
|
|
21892
21892
|
for (var F = [], w = 0; w < n.length; w++) {
|
|
21893
21893
|
var x = n[w];
|
|
21894
21894
|
m[x.id()] || F.push(x);
|
|
21895
21895
|
}
|
|
21896
|
-
var E = function(
|
|
21897
|
-
for (var
|
|
21898
|
-
var
|
|
21899
|
-
if (
|
|
21900
|
-
|
|
21896
|
+
var E = function(le) {
|
|
21897
|
+
for (var he = B[le], fe = 0; fe < he.length; fe++) {
|
|
21898
|
+
var j = he[fe];
|
|
21899
|
+
if (j == null) {
|
|
21900
|
+
he.splice(fe, 1), fe--;
|
|
21901
21901
|
continue;
|
|
21902
21902
|
}
|
|
21903
|
-
Ib(
|
|
21904
|
-
depth:
|
|
21903
|
+
Ib(j, {
|
|
21904
|
+
depth: le,
|
|
21905
21905
|
index: fe
|
|
21906
21906
|
});
|
|
21907
21907
|
}
|
|
21908
|
-
}, b = function(
|
|
21909
|
-
for (var fe = MA(
|
|
21910
|
-
return
|
|
21911
|
-
}),
|
|
21912
|
-
var be =
|
|
21913
|
-
|
|
21908
|
+
}, b = function(le, he) {
|
|
21909
|
+
for (var fe = MA(le), j = le.incomers().filter(function(Se) {
|
|
21910
|
+
return Se.isNode() && r.has(Se);
|
|
21911
|
+
}), se = -1, ge = le.id(), me = 0; me < j.length; me++) {
|
|
21912
|
+
var be = j[me], Re = MA(be);
|
|
21913
|
+
se = Math.max(se, Re.depth);
|
|
21914
21914
|
}
|
|
21915
|
-
if (fe.depth <=
|
|
21916
|
-
if (!t.acyclic &&
|
|
21915
|
+
if (fe.depth <= se) {
|
|
21916
|
+
if (!t.acyclic && he[ge])
|
|
21917
21917
|
return null;
|
|
21918
|
-
var Le =
|
|
21919
|
-
return C(
|
|
21918
|
+
var Le = se + 1;
|
|
21919
|
+
return C(le, Le), he[ge] = Le, !0;
|
|
21920
21920
|
}
|
|
21921
21921
|
return !1;
|
|
21922
21922
|
};
|
|
21923
21923
|
if (A && i) {
|
|
21924
|
-
var T = [], U = {}, Q = function(
|
|
21925
|
-
return T.push(
|
|
21924
|
+
var T = [], U = {}, Q = function(le) {
|
|
21925
|
+
return T.push(le);
|
|
21926
21926
|
}, I = function() {
|
|
21927
21927
|
return T.shift();
|
|
21928
21928
|
};
|
|
21929
|
-
for (n.forEach(function(
|
|
21930
|
-
return T.push(
|
|
21929
|
+
for (n.forEach(function(ae) {
|
|
21930
|
+
return T.push(ae);
|
|
21931
21931
|
}); T.length > 0; ) {
|
|
21932
21932
|
var O = I(), L = b(O, U);
|
|
21933
21933
|
if (L)
|
|
21934
|
-
O.outgoers().filter(function(
|
|
21935
|
-
return
|
|
21934
|
+
O.outgoers().filter(function(ae) {
|
|
21935
|
+
return ae.isNode() && r.has(ae);
|
|
21936
21936
|
}).forEach(Q);
|
|
21937
21937
|
else if (L === null) {
|
|
21938
21938
|
Ze("Detected double maximal shift for node `" + O.id() + "`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");
|
|
@@ -21946,26 +21946,26 @@ xF.prototype.run = function() {
|
|
|
21946
21946
|
var N = n[P], D = N.layoutDimensions(t), M = D.w, _ = D.h;
|
|
21947
21947
|
R = Math.max(R, M, _);
|
|
21948
21948
|
}
|
|
21949
|
-
var V = {}, X = function(
|
|
21950
|
-
if (V[
|
|
21951
|
-
return V[
|
|
21952
|
-
for (var
|
|
21953
|
-
var
|
|
21954
|
-
if (!(
|
|
21955
|
-
var be = MA(
|
|
21949
|
+
var V = {}, X = function(le) {
|
|
21950
|
+
if (V[le.id()])
|
|
21951
|
+
return V[le.id()];
|
|
21952
|
+
for (var he = MA(le).depth, fe = le.neighborhood(), j = 0, se = 0, ge = 0; ge < fe.length; ge++) {
|
|
21953
|
+
var me = fe[ge];
|
|
21954
|
+
if (!(me.isEdge() || me.isParent() || !n.has(me))) {
|
|
21955
|
+
var be = MA(me);
|
|
21956
21956
|
if (be != null) {
|
|
21957
21957
|
var Re = be.index, Le = be.depth;
|
|
21958
21958
|
if (!(Re == null || Le == null)) {
|
|
21959
|
-
var
|
|
21960
|
-
Le <
|
|
21959
|
+
var Se = B[Le].length;
|
|
21960
|
+
Le < he && (j += Re / Se, se++);
|
|
21961
21961
|
}
|
|
21962
21962
|
}
|
|
21963
21963
|
}
|
|
21964
21964
|
}
|
|
21965
|
-
return
|
|
21966
|
-
}, k = function(
|
|
21967
|
-
var fe = X(
|
|
21968
|
-
return
|
|
21965
|
+
return se = Math.max(1, se), j = j / se, se === 0 && (j = 0), V[le.id()] = j, j;
|
|
21966
|
+
}, k = function(le, he) {
|
|
21967
|
+
var fe = X(le), j = X(he), se = fe - j;
|
|
21968
|
+
return se === 0 ? Tx(le.id(), he.id()) : se;
|
|
21969
21969
|
};
|
|
21970
21970
|
t.depthSort !== void 0 && (k = t.depthSort);
|
|
21971
21971
|
for (var G = B.length, q = 0; q < G; q++)
|
|
@@ -21973,62 +21973,62 @@ xF.prototype.run = function() {
|
|
|
21973
21973
|
for (var ee = [], Z = 0; Z < F.length; Z++)
|
|
21974
21974
|
ee.push(F[Z]);
|
|
21975
21975
|
var z = function() {
|
|
21976
|
-
for (var
|
|
21977
|
-
E(
|
|
21976
|
+
for (var le = 0; le < G; le++)
|
|
21977
|
+
E(le);
|
|
21978
21978
|
};
|
|
21979
21979
|
ee.length && (B.unshift(ee), G = B.length, z());
|
|
21980
21980
|
for (var J = 0, Y = 0; Y < G; Y++)
|
|
21981
21981
|
J = Math.max(B[Y].length, J);
|
|
21982
|
-
var
|
|
21982
|
+
var W = {
|
|
21983
21983
|
x: l.x1 + l.w / 2,
|
|
21984
21984
|
y: l.y1 + l.h / 2
|
|
21985
|
-
},
|
|
21986
|
-
return function(
|
|
21985
|
+
}, oe = n.reduce(function(ae, le) {
|
|
21986
|
+
return function(he) {
|
|
21987
21987
|
return {
|
|
21988
|
-
w:
|
|
21989
|
-
h:
|
|
21988
|
+
w: ae.w === -1 ? he.w : (ae.w + he.w) / 2,
|
|
21989
|
+
h: ae.h === -1 ? he.h : (ae.h + he.h) / 2
|
|
21990
21990
|
};
|
|
21991
|
-
}(
|
|
21991
|
+
}(le.boundingBox({
|
|
21992
21992
|
includeLabels: t.nodeDimensionsIncludeLabels
|
|
21993
21993
|
}));
|
|
21994
21994
|
}, {
|
|
21995
21995
|
w: -1,
|
|
21996
21996
|
h: -1
|
|
21997
|
-
}),
|
|
21997
|
+
}), ie = Math.max(
|
|
21998
21998
|
// only one depth
|
|
21999
21999
|
G === 1 ? 0 : (
|
|
22000
22000
|
// inside a bounding box, no need for top & bottom padding
|
|
22001
|
-
o ? (l.h - t.padding * 2 -
|
|
22001
|
+
o ? (l.h - t.padding * 2 - oe.h) / (G - 1) : (l.h - t.padding * 2 - oe.h) / (G + 1)
|
|
22002
22002
|
),
|
|
22003
22003
|
R
|
|
22004
|
-
),
|
|
22005
|
-
return Math.max(
|
|
22006
|
-
}, 0),
|
|
22007
|
-
var
|
|
22004
|
+
), Ue = B.reduce(function(ae, le) {
|
|
22005
|
+
return Math.max(ae, le.length);
|
|
22006
|
+
}, 0), ue = function(le) {
|
|
22007
|
+
var he = MA(le), fe = he.depth, j = he.index;
|
|
22008
22008
|
if (t.circle) {
|
|
22009
|
-
var
|
|
22010
|
-
|
|
22011
|
-
var
|
|
22012
|
-
return fe === 0 && B[0].length === 1 && (
|
|
22013
|
-
x:
|
|
22014
|
-
y:
|
|
22009
|
+
var se = Math.min(l.w / 2 / G, l.h / 2 / G);
|
|
22010
|
+
se = Math.max(se, R);
|
|
22011
|
+
var ge = se * fe + se - (G > 0 && B[0].length <= 3 ? se / 2 : 0), me = 2 * Math.PI / B[fe].length * j;
|
|
22012
|
+
return fe === 0 && B[0].length === 1 && (ge = 1), {
|
|
22013
|
+
x: W.x + ge * Math.cos(me),
|
|
22014
|
+
y: W.y + ge * Math.sin(me)
|
|
22015
22015
|
};
|
|
22016
22016
|
} else {
|
|
22017
22017
|
var be = B[fe].length, Re = Math.max(
|
|
22018
22018
|
// only one depth
|
|
22019
22019
|
be === 1 ? 0 : (
|
|
22020
22020
|
// inside a bounding box, no need for left & right padding
|
|
22021
|
-
o ? (l.w - t.padding * 2 -
|
|
22021
|
+
o ? (l.w - t.padding * 2 - oe.w) / ((t.grid ? Ue : be) - 1) : (l.w - t.padding * 2 - oe.w) / ((t.grid ? Ue : be) + 1)
|
|
22022
22022
|
),
|
|
22023
22023
|
R
|
|
22024
22024
|
), Le = {
|
|
22025
|
-
x:
|
|
22026
|
-
y:
|
|
22025
|
+
x: W.x + (j + 1 - (be + 1) / 2) * Re,
|
|
22026
|
+
y: W.y + (fe + 1 - (G + 1) / 2) * ie
|
|
22027
22027
|
};
|
|
22028
22028
|
return Le;
|
|
22029
22029
|
}
|
|
22030
22030
|
};
|
|
22031
|
-
return r.nodes().layoutPositions(this, t,
|
|
22031
|
+
return r.nodes().layoutPositions(this, t, ue), this;
|
|
22032
22032
|
};
|
|
22033
22033
|
var _4 = {
|
|
22034
22034
|
fit: !0,
|
|
@@ -22180,8 +22180,8 @@ TF.prototype.run = function() {
|
|
|
22180
22180
|
var h = A[d], v = h.layoutDimensions(e);
|
|
22181
22181
|
l = Math.max(l, v.w, v.h);
|
|
22182
22182
|
}
|
|
22183
|
-
s.sort(function(
|
|
22184
|
-
return
|
|
22183
|
+
s.sort(function(oe, ie) {
|
|
22184
|
+
return ie.value - oe.value;
|
|
22185
22185
|
});
|
|
22186
22186
|
for (var p = e.levelWidth(A), g = [[]], B = g[0], m = 0; m < s.length; m++) {
|
|
22187
22187
|
var y = s[m];
|
|
@@ -22217,15 +22217,15 @@ TF.prototype.run = function() {
|
|
|
22217
22217
|
}
|
|
22218
22218
|
for (var k = {}, G = 0; G < g.length; G++)
|
|
22219
22219
|
for (var q = g[G], ee = q.dTheta, Z = q.r, z = 0; z < q.length; z++) {
|
|
22220
|
-
var J = q[z], Y = e.startAngle + (r ? 1 : -1) * ee * z,
|
|
22220
|
+
var J = q[z], Y = e.startAngle + (r ? 1 : -1) * ee * z, W = {
|
|
22221
22221
|
x: o.x + Z * Math.cos(Y),
|
|
22222
22222
|
y: o.y + Z * Math.sin(Y)
|
|
22223
22223
|
};
|
|
22224
|
-
k[J.node.id()] =
|
|
22224
|
+
k[J.node.id()] = W;
|
|
22225
22225
|
}
|
|
22226
|
-
return a.nodes().layoutPositions(this, e, function(
|
|
22227
|
-
var
|
|
22228
|
-
return k[
|
|
22226
|
+
return a.nodes().layoutPositions(this, e, function(oe) {
|
|
22227
|
+
var ie = oe.id();
|
|
22228
|
+
return k[ie];
|
|
22229
22229
|
}), this;
|
|
22230
22230
|
};
|
|
22231
22231
|
var ev, V4 = {
|
|
@@ -23185,10 +23185,10 @@ bA.findNearestElements = function(t, e, r, n) {
|
|
|
23185
23185
|
if (!(!I || !Q)) {
|
|
23186
23186
|
var O = m(E.rscratch, "labelX", x), L = m(E.rscratch, "labelY", x), R = m(E.rscratch, "labelAngle", x), P = w.pstyle(T + "text-margin-x").pfValue, N = w.pstyle(T + "text-margin-y").pfValue, D = U.x1 - b - P, M = U.x2 + b - P, _ = U.y1 - b - N, V = U.y2 + b - N;
|
|
23187
23187
|
if (R) {
|
|
23188
|
-
var X = Math.cos(R), k = Math.sin(R), G = function(
|
|
23189
|
-
return
|
|
23190
|
-
x:
|
|
23191
|
-
y:
|
|
23188
|
+
var X = Math.cos(R), k = Math.sin(R), G = function(W, oe) {
|
|
23189
|
+
return W = W - O, oe = oe - L, {
|
|
23190
|
+
x: W * X - oe * k + O,
|
|
23191
|
+
y: W * k + oe * X + L
|
|
23192
23192
|
};
|
|
23193
23193
|
}, q = G(D, _), ee = G(D, V), Z = G(M, _), z = G(M, V), J = [
|
|
23194
23194
|
// with the margin added after the rotation is applied
|
|
@@ -23233,10 +23233,10 @@ bA.getAllInBox = function(t, e, r, n) {
|
|
|
23233
23233
|
return null;
|
|
23234
23234
|
var N = d(O.rscratch, "labelX", I), D = d(O.rscratch, "labelY", I), M = d(O.rscratch, "labelAngle", I), _ = Q.pstyle(R + "text-margin-x").pfValue, V = Q.pstyle(R + "text-margin-y").pfValue, X = P.x1 - L - _, k = P.x2 + L - _, G = P.y1 - L - V, q = P.y2 + L - V;
|
|
23235
23235
|
if (M) {
|
|
23236
|
-
var ee = Math.cos(M), Z = Math.sin(M), z = function(Y,
|
|
23237
|
-
return Y = Y - N,
|
|
23238
|
-
x: Y * ee -
|
|
23239
|
-
y: Y * Z +
|
|
23236
|
+
var ee = Math.cos(M), Z = Math.sin(M), z = function(Y, W) {
|
|
23237
|
+
return Y = Y - N, W = W - D, {
|
|
23238
|
+
x: Y * ee - W * Z + N,
|
|
23239
|
+
y: Y * Z + W * ee + D
|
|
23240
23240
|
};
|
|
23241
23241
|
};
|
|
23242
23242
|
return [z(X, G), z(k, G), z(k, q), z(X, q)];
|
|
@@ -23522,27 +23522,27 @@ or.findTaxiPoints = function(t, e) {
|
|
|
23522
23522
|
var z = (u.x1 + u.x2) / 2, J = u.y1, Y = u.y2;
|
|
23523
23523
|
r.segpts = [z, J, z, Y];
|
|
23524
23524
|
} else if (Z) {
|
|
23525
|
-
var
|
|
23526
|
-
r.segpts = [
|
|
23525
|
+
var W = (u.y1 + u.y2) / 2, oe = u.x1, ie = u.x2;
|
|
23526
|
+
r.segpts = [oe, W, ie, W];
|
|
23527
23527
|
} else
|
|
23528
23528
|
r.segpts = [u.x1, u.y2];
|
|
23529
23529
|
} else {
|
|
23530
|
-
var
|
|
23531
|
-
if (
|
|
23532
|
-
var
|
|
23533
|
-
r.segpts = [
|
|
23534
|
-
} else if (
|
|
23535
|
-
var fe = (u.x1 + u.x2) / 2,
|
|
23536
|
-
r.segpts = [fe,
|
|
23530
|
+
var Ue = Math.abs(P) <= c / 2, ue = Math.abs(T) <= h / 2;
|
|
23531
|
+
if (Ue) {
|
|
23532
|
+
var ae = (u.y1 + u.y2) / 2, le = u.x1, he = u.x2;
|
|
23533
|
+
r.segpts = [le, ae, he, ae];
|
|
23534
|
+
} else if (ue) {
|
|
23535
|
+
var fe = (u.x1 + u.x2) / 2, j = u.y1, se = u.y2;
|
|
23536
|
+
r.segpts = [fe, j, fe, se];
|
|
23537
23537
|
} else
|
|
23538
23538
|
r.segpts = [u.x2, u.y1];
|
|
23539
23539
|
}
|
|
23540
23540
|
else if (L) {
|
|
23541
|
-
var
|
|
23542
|
-
r.segpts = [
|
|
23541
|
+
var ge = u.y1 + M + (p ? f / 2 * N : 0), me = u.x1, be = u.x2;
|
|
23542
|
+
r.segpts = [me, ge, be, ge];
|
|
23543
23543
|
} else {
|
|
23544
|
-
var Re = u.x1 + M + (p ? c / 2 * N : 0), Le = u.y1,
|
|
23545
|
-
r.segpts = [Re, Le, Re,
|
|
23544
|
+
var Re = u.x1 + M + (p ? c / 2 * N : 0), Le = u.y1, Se = u.y2;
|
|
23545
|
+
r.segpts = [Re, Le, Re, Se];
|
|
23546
23546
|
}
|
|
23547
23547
|
if (r.isRound) {
|
|
23548
23548
|
var De = t.pstyle("taxi-radius").value, ye = t.pstyle("radius-type").value[0] === "arc-radius";
|
|
@@ -23713,32 +23713,32 @@ or.findEdgeControlPoints = function(t) {
|
|
|
23713
23713
|
southeast: 0
|
|
23714
23714
|
};
|
|
23715
23715
|
for (var Y = 0; Y < Q.eles.length; Y++) {
|
|
23716
|
-
var
|
|
23716
|
+
var W = Q.eles[Y], oe = W[0]._private.rscratch, ie = W.pstyle("curve-style").value, Ue = ie === "unbundled-bezier" || la(ie, "segments") || la(ie, "taxi"), ue = !R.same(W.source());
|
|
23717
23717
|
if (!Q.calculatedIntersection && R !== P && (Q.hasBezier || Q.hasUnbundled)) {
|
|
23718
23718
|
Q.calculatedIntersection = !0;
|
|
23719
|
-
var
|
|
23720
|
-
x1:
|
|
23721
|
-
x2:
|
|
23722
|
-
y1:
|
|
23723
|
-
y2:
|
|
23724
|
-
},
|
|
23719
|
+
var ae = G.intersectLine(D.x, D.y, _, V, M.x, M.y, 0, ee, J), le = Q.srcIntn = ae, he = q.intersectLine(M.x, M.y, X, k, D.x, D.y, 0, Z, z), fe = Q.tgtIntn = he, j = Q.intersectionPts = {
|
|
23720
|
+
x1: ae[0],
|
|
23721
|
+
x2: he[0],
|
|
23722
|
+
y1: ae[1],
|
|
23723
|
+
y2: he[1]
|
|
23724
|
+
}, se = Q.posPts = {
|
|
23725
23725
|
x1: D.x,
|
|
23726
23726
|
x2: M.x,
|
|
23727
23727
|
y1: D.y,
|
|
23728
23728
|
y2: M.y
|
|
23729
|
-
},
|
|
23730
|
-
we(be) && be >= c_ || (be = Math.sqrt(Math.max(
|
|
23729
|
+
}, ge = he[1] - ae[1], me = he[0] - ae[0], be = Math.sqrt(me * me + ge * ge);
|
|
23730
|
+
we(be) && be >= c_ || (be = Math.sqrt(Math.max(me * me, es) + Math.max(ge * ge, es)));
|
|
23731
23731
|
var Re = Q.vector = {
|
|
23732
|
-
x:
|
|
23733
|
-
y:
|
|
23732
|
+
x: me,
|
|
23733
|
+
y: ge
|
|
23734
23734
|
}, Le = Q.vectorNorm = {
|
|
23735
23735
|
x: Re.x / be,
|
|
23736
23736
|
y: Re.y / be
|
|
23737
|
-
},
|
|
23737
|
+
}, Se = {
|
|
23738
23738
|
x: -Le.y,
|
|
23739
23739
|
y: Le.x
|
|
23740
23740
|
};
|
|
23741
|
-
Q.nodesOverlap = !we(be) || q.checkPoint(
|
|
23741
|
+
Q.nodesOverlap = !we(be) || q.checkPoint(ae[0], ae[1], 0, X, k, M.x, M.y, Z, z) || G.checkPoint(he[0], he[1], 0, _, V, D.x, D.y, ee, J), Q.vectorNormInverse = Se, I = {
|
|
23742
23742
|
nodesOverlap: Q.nodesOverlap,
|
|
23743
23743
|
dirCounts: Q.dirCounts,
|
|
23744
23744
|
calculatedIntersection: !0,
|
|
@@ -23754,20 +23754,20 @@ or.findEdgeControlPoints = function(t) {
|
|
|
23754
23754
|
tgtW: _,
|
|
23755
23755
|
tgtH: V,
|
|
23756
23756
|
srcIntn: fe,
|
|
23757
|
-
tgtIntn:
|
|
23757
|
+
tgtIntn: le,
|
|
23758
23758
|
srcShape: q,
|
|
23759
23759
|
tgtShape: G,
|
|
23760
23760
|
posPts: {
|
|
23761
|
-
x1:
|
|
23762
|
-
y1:
|
|
23763
|
-
x2:
|
|
23764
|
-
y2:
|
|
23761
|
+
x1: se.x2,
|
|
23762
|
+
y1: se.y2,
|
|
23763
|
+
x2: se.x1,
|
|
23764
|
+
y2: se.y1
|
|
23765
23765
|
},
|
|
23766
23766
|
intersectionPts: {
|
|
23767
|
-
x1:
|
|
23768
|
-
y1:
|
|
23769
|
-
x2:
|
|
23770
|
-
y2:
|
|
23767
|
+
x1: j.x2,
|
|
23768
|
+
y1: j.y2,
|
|
23769
|
+
x2: j.x1,
|
|
23770
|
+
y2: j.y1
|
|
23771
23771
|
},
|
|
23772
23772
|
vector: {
|
|
23773
23773
|
x: -Re.x,
|
|
@@ -23778,13 +23778,13 @@ or.findEdgeControlPoints = function(t) {
|
|
|
23778
23778
|
y: -Le.y
|
|
23779
23779
|
},
|
|
23780
23780
|
vectorNormInverse: {
|
|
23781
|
-
x: -
|
|
23782
|
-
y: -
|
|
23781
|
+
x: -Se.x,
|
|
23782
|
+
y: -Se.y
|
|
23783
23783
|
}
|
|
23784
23784
|
};
|
|
23785
23785
|
}
|
|
23786
|
-
var De =
|
|
23787
|
-
|
|
23786
|
+
var De = ue ? I : Q;
|
|
23787
|
+
oe.nodesOverlap = De.nodesOverlap, oe.srcIntn = De.srcIntn, oe.tgtIntn = De.tgtIntn, oe.isRound = ie.startsWith("round"), a && (R.isParent() || R.isChild() || P.isParent() || P.isChild()) && (R.parents().anySame(P) || P.parents().anySame(R) || R.same(P) && R.isParent()) ? e.findCompoundLoopPoints(W, De, Y, Ue) : R === P ? e.findLoopPoints(W, De, Y, Ue) : ie.endsWith("segments") ? e.findSegmentsPoints(W, De) : ie.endsWith("taxi") ? e.findTaxiPoints(W, De) : ie === "straight" || !Ue && Q.eles.length % 2 === 1 && Y === Math.floor(Q.eles.length / 2) ? e.findStraightEdgePoints(W) : e.findBezierPoints(W, De, Y, Ue, ue), e.findEndpoints(W), e.tryToCorrectInvalidPoints(W, De), e.checkForInvalidEdgeWarning(W), e.storeAllpts(W), e.storeEdgeProjections(W), e.calculateArrowAngles(W), e.recalculateEdgeLabelProjections(W), e.calculateLabelAngles(W);
|
|
23788
23788
|
}
|
|
23789
23789
|
}, w = 0; w < o.length; w++)
|
|
23790
23790
|
F();
|
|
@@ -23856,43 +23856,43 @@ Es.findEndpoints = function(t) {
|
|
|
23856
23856
|
else if (L === "outside-to-line")
|
|
23857
23857
|
i = B.tgtIntn;
|
|
23858
23858
|
else if (L === "outside-to-node" || L === "outside-to-node-or-label" ? D = P : (L === "outside-to-line" || L === "outside-to-line-or-label") && (D = [l.x, l.y]), i = A.nodeShapes[this.getNodeShape(s)].intersectLine(u.x, u.y, s.outerWidth(), s.outerHeight(), D[0], D[1], 0, R, p), L === "outside-to-node-or-label" || L === "outside-to-line-or-label") {
|
|
23859
|
-
var ee = s._private.rscratch, Z = ee.labelWidth, z = ee.labelHeight, J = ee.labelX, Y = ee.labelY,
|
|
23860
|
-
|
|
23861
|
-
var
|
|
23862
|
-
|
|
23863
|
-
var
|
|
23864
|
-
if (
|
|
23865
|
-
var
|
|
23866
|
-
if (
|
|
23867
|
-
var
|
|
23868
|
-
x:
|
|
23869
|
-
y:
|
|
23859
|
+
var ee = s._private.rscratch, Z = ee.labelWidth, z = ee.labelHeight, J = ee.labelX, Y = ee.labelY, W = Z / 2, oe = z / 2, ie = s.pstyle("text-valign").value;
|
|
23860
|
+
ie === "top" ? Y -= oe : ie === "bottom" && (Y += oe);
|
|
23861
|
+
var Ue = s.pstyle("text-halign").value;
|
|
23862
|
+
Ue === "left" ? J -= W : Ue === "right" && (J += W);
|
|
23863
|
+
var ue = Wo(D[0], D[1], [J - W, Y - oe, J + W, Y - oe, J + W, Y + oe, J - W, Y + oe], u.x, u.y);
|
|
23864
|
+
if (ue.length > 0) {
|
|
23865
|
+
var ae = l, le = Va(ae, ni(i)), he = Va(ae, ni(ue)), fe = le;
|
|
23866
|
+
if (he < le && (i = ue, fe = he), ue.length > 2) {
|
|
23867
|
+
var j = Va(ae, {
|
|
23868
|
+
x: ue[2],
|
|
23869
|
+
y: ue[3]
|
|
23870
23870
|
});
|
|
23871
|
-
|
|
23871
|
+
j < fe && (i = [ue[2], ue[3]]);
|
|
23872
23872
|
}
|
|
23873
23873
|
}
|
|
23874
23874
|
}
|
|
23875
|
-
var
|
|
23876
|
-
if (B.endX =
|
|
23875
|
+
var se = Ws(i, P, A.arrowShapes[c].spacing(t) + d), ge = Ws(i, P, A.arrowShapes[c].gap(t) + d);
|
|
23876
|
+
if (B.endX = ge[0], B.endY = ge[1], B.arrowEndX = se[0], B.arrowEndY = se[1], Q === "inside-to-node")
|
|
23877
23877
|
i = [l.x, l.y];
|
|
23878
23878
|
else if (U.units)
|
|
23879
23879
|
i = this.manualEndptToPx(o, U);
|
|
23880
23880
|
else if (Q === "outside-to-line")
|
|
23881
23881
|
i = B.srcIntn;
|
|
23882
23882
|
else if (Q === "outside-to-node" || Q === "outside-to-node-or-label" ? M = N : (Q === "outside-to-line" || Q === "outside-to-line-or-label") && (M = [u.x, u.y]), i = A.nodeShapes[this.getNodeShape(o)].intersectLine(l.x, l.y, o.outerWidth(), o.outerHeight(), M[0], M[1], 0, I, v), Q === "outside-to-node-or-label" || Q === "outside-to-line-or-label") {
|
|
23883
|
-
var
|
|
23884
|
-
Ae === "top" ?
|
|
23883
|
+
var me = o._private.rscratch, be = me.labelWidth, Re = me.labelHeight, Le = me.labelX, Se = me.labelY, De = be / 2, ye = Re / 2, Ae = o.pstyle("text-valign").value;
|
|
23884
|
+
Ae === "top" ? Se -= ye : Ae === "bottom" && (Se += ye);
|
|
23885
23885
|
var H = o.pstyle("text-halign").value;
|
|
23886
23886
|
H === "left" ? Le -= De : H === "right" && (Le += De);
|
|
23887
|
-
var K = Wo(M[0], M[1], [Le - De,
|
|
23887
|
+
var K = Wo(M[0], M[1], [Le - De, Se - ye, Le + De, Se - ye, Le + De, Se + ye, Le - De, Se + ye], l.x, l.y);
|
|
23888
23888
|
if (K.length > 0) {
|
|
23889
|
-
var te = u, re = Va(te, ni(i)),
|
|
23890
|
-
if (
|
|
23891
|
-
var
|
|
23889
|
+
var te = u, re = Va(te, ni(i)), ne = Va(te, ni(K)), pe = re;
|
|
23890
|
+
if (ne < re && (i = [K[0], K[1]], pe = ne), K.length > 2) {
|
|
23891
|
+
var de = Va(te, {
|
|
23892
23892
|
x: K[2],
|
|
23893
23893
|
y: K[3]
|
|
23894
23894
|
});
|
|
23895
|
-
|
|
23895
|
+
de < pe && (i = [K[2], K[3]]);
|
|
23896
23896
|
}
|
|
23897
23897
|
}
|
|
23898
23898
|
}
|
|
@@ -24417,11 +24417,11 @@ Pi.load = function() {
|
|
|
24417
24417
|
return K;
|
|
24418
24418
|
}, a = function(H, K, te, re) {
|
|
24419
24419
|
H == null && (H = t.cy);
|
|
24420
|
-
for (var
|
|
24421
|
-
var
|
|
24420
|
+
for (var ne = 0; ne < K.length; ne++) {
|
|
24421
|
+
var pe = K[ne];
|
|
24422
24422
|
H.emit({
|
|
24423
24423
|
originalEvent: te,
|
|
24424
|
-
type:
|
|
24424
|
+
type: pe,
|
|
24425
24425
|
position: re
|
|
24426
24426
|
});
|
|
24427
24427
|
}
|
|
@@ -24478,9 +24478,9 @@ Pi.load = function() {
|
|
|
24478
24478
|
if (!(K.inDragLayer == null && K.addToList == null) && H.cy().hasCompoundNodes()) {
|
|
24479
24479
|
var te = H.ancestors().orphans();
|
|
24480
24480
|
if (!te.same(H)) {
|
|
24481
|
-
var re = te.descendants().spawnSelf().merge(te).unmerge(H).unmerge(H.descendants()),
|
|
24482
|
-
K.inDragLayer && (
|
|
24483
|
-
d(
|
|
24481
|
+
var re = te.descendants().spawnSelf().merge(te).unmerge(H).unmerge(H.descendants()), ne = re.connectedEdges();
|
|
24482
|
+
K.inDragLayer && (ne.forEach(l), re.forEach(l)), K.addToList && re.forEach(function(pe) {
|
|
24483
|
+
d(pe, K);
|
|
24484
24484
|
});
|
|
24485
24485
|
}
|
|
24486
24486
|
}
|
|
@@ -24492,8 +24492,8 @@ Pi.load = function() {
|
|
|
24492
24492
|
var K = Ae[H], te = K.removedNodes;
|
|
24493
24493
|
if (te)
|
|
24494
24494
|
for (var re = 0; re < te.length; re++) {
|
|
24495
|
-
var
|
|
24496
|
-
if (
|
|
24495
|
+
var ne = te[re];
|
|
24496
|
+
if (ne === t.container) {
|
|
24497
24497
|
t.destroy();
|
|
24498
24498
|
break;
|
|
24499
24499
|
}
|
|
@@ -24524,9 +24524,9 @@ Pi.load = function() {
|
|
|
24524
24524
|
var E = function() {
|
|
24525
24525
|
return t.selection[4] !== 0;
|
|
24526
24526
|
}, b = function(H) {
|
|
24527
|
-
for (var K = t.findContainerClientCoords(), te = K[0], re = K[1],
|
|
24528
|
-
var Ie =
|
|
24529
|
-
if (te <= Ie.clientX && Ie.clientX <= te +
|
|
24527
|
+
for (var K = t.findContainerClientCoords(), te = K[0], re = K[1], ne = K[2], pe = K[3], de = H.touches ? H.touches : [H], Ce = !1, Ee = 0; Ee < de.length; Ee++) {
|
|
24528
|
+
var Ie = de[Ee];
|
|
24529
|
+
if (te <= Ie.clientX && Ie.clientX <= te + ne && re <= Ie.clientY && Ie.clientY <= re + pe) {
|
|
24530
24530
|
Ce = !0;
|
|
24531
24531
|
break;
|
|
24532
24532
|
}
|
|
@@ -24545,7 +24545,7 @@ Pi.load = function() {
|
|
|
24545
24545
|
t.registerBinding(t.container, "mousedown", function(H) {
|
|
24546
24546
|
if (b(H) && !(t.hoverData.which === 1 && H.which !== 1)) {
|
|
24547
24547
|
H.preventDefault(), m(), t.hoverData.capture = !0, t.hoverData.which = H.which;
|
|
24548
|
-
var K = t.cy, te = [H.clientX, H.clientY], re = t.projectIntoViewport(te[0], te[1]),
|
|
24548
|
+
var K = t.cy, te = [H.clientX, H.clientY], re = t.projectIntoViewport(te[0], te[1]), ne = t.selection, pe = t.findNearestElements(re[0], re[1], !0, !1), de = pe[0], Ce = t.dragData.possibleDragElements;
|
|
24549
24549
|
t.hoverData.mdownPos = re, t.hoverData.mdownGPos = te;
|
|
24550
24550
|
var Ee = function(Be) {
|
|
24551
24551
|
return {
|
|
@@ -24574,18 +24574,18 @@ Pi.load = function() {
|
|
|
24574
24574
|
y: re[1]
|
|
24575
24575
|
}
|
|
24576
24576
|
};
|
|
24577
|
-
|
|
24577
|
+
de ? (de.activate(), de.emit(Pe), t.hoverData.down = de) : K.emit(Pe), t.hoverData.downTime = (/* @__PURE__ */ new Date()).getTime(), t.hoverData.cxtDragged = !1;
|
|
24578
24578
|
} else if (H.which == 1) {
|
|
24579
|
-
|
|
24579
|
+
de && de.activate();
|
|
24580
24580
|
{
|
|
24581
|
-
if (
|
|
24581
|
+
if (de != null && t.nodeIsGrabbable(de)) {
|
|
24582
24582
|
var He = function(Be) {
|
|
24583
24583
|
Be.emit(Ee("grab"));
|
|
24584
24584
|
};
|
|
24585
|
-
if (c(
|
|
24586
|
-
Ce = t.dragData.possibleDragElements = K.collection(), p(
|
|
24585
|
+
if (c(de), !de.selected())
|
|
24586
|
+
Ce = t.dragData.possibleDragElements = K.collection(), p(de, {
|
|
24587
24587
|
addToList: Ce
|
|
24588
|
-
}),
|
|
24588
|
+
}), de.emit(Ee("grabon")).emit(Ee("grab"));
|
|
24589
24589
|
else {
|
|
24590
24590
|
Ce = t.dragData.possibleDragElements = K.collection();
|
|
24591
24591
|
var Te = K.$(function(Ne) {
|
|
@@ -24593,32 +24593,32 @@ Pi.load = function() {
|
|
|
24593
24593
|
});
|
|
24594
24594
|
v(Te, {
|
|
24595
24595
|
addToList: Ce
|
|
24596
|
-
}),
|
|
24596
|
+
}), de.emit(Ee("grabon")), Te.forEach(He);
|
|
24597
24597
|
}
|
|
24598
24598
|
t.redrawHint("eles", !0), t.redrawHint("drag", !0);
|
|
24599
24599
|
}
|
|
24600
|
-
t.hoverData.down =
|
|
24600
|
+
t.hoverData.down = de, t.hoverData.downs = pe, t.hoverData.downTime = (/* @__PURE__ */ new Date()).getTime();
|
|
24601
24601
|
}
|
|
24602
|
-
a(
|
|
24602
|
+
a(de, ["mousedown", "tapstart", "vmousedown"], H, {
|
|
24603
24603
|
x: re[0],
|
|
24604
24604
|
y: re[1]
|
|
24605
|
-
}),
|
|
24605
|
+
}), de == null ? (ne[4] = 1, t.data.bgActivePosistion = {
|
|
24606
24606
|
x: re[0],
|
|
24607
24607
|
y: re[1]
|
|
24608
|
-
}, t.redrawHint("select", !0), t.redraw()) :
|
|
24608
|
+
}, t.redrawHint("select", !0), t.redraw()) : de.pannable() && (ne[4] = 1), Ie();
|
|
24609
24609
|
}
|
|
24610
|
-
|
|
24610
|
+
ne[0] = ne[2] = re[0], ne[1] = ne[3] = re[1];
|
|
24611
24611
|
}
|
|
24612
24612
|
}, !1);
|
|
24613
24613
|
var T = n(t.container);
|
|
24614
24614
|
t.registerBinding([e, T], "mousemove", function(H) {
|
|
24615
24615
|
var K = t.hoverData.capture;
|
|
24616
24616
|
if (!(!K && !b(H))) {
|
|
24617
|
-
var te = !1, re = t.cy,
|
|
24618
|
-
!t.hoverData.draggingEles && !t.hoverData.dragging && !t.hoverData.selecting && (Pe = t.findNearestElement(
|
|
24619
|
-
var He = t.hoverData.last, Te = t.hoverData.down, Ne = [
|
|
24617
|
+
var te = !1, re = t.cy, ne = re.zoom(), pe = [H.clientX, H.clientY], de = t.projectIntoViewport(pe[0], pe[1]), Ce = t.hoverData.mdownPos, Ee = t.hoverData.mdownGPos, Ie = t.selection, Pe = null;
|
|
24618
|
+
!t.hoverData.draggingEles && !t.hoverData.dragging && !t.hoverData.selecting && (Pe = t.findNearestElement(de[0], de[1], !0, !1));
|
|
24619
|
+
var He = t.hoverData.last, Te = t.hoverData.down, Ne = [de[0] - Ie[2], de[1] - Ie[3]], Be = t.dragData.possibleDragElements, Xe;
|
|
24620
24620
|
if (Ee) {
|
|
24621
|
-
var at =
|
|
24621
|
+
var at = pe[0] - Ee[0], sr = at * at, Ut = pe[1] - Ee[1], _t = Ut * Ut, Lt = sr + _t;
|
|
24622
24622
|
t.hoverData.isOverThresholdDrag = Xe = Lt >= t.desktopTapThreshold2;
|
|
24623
24623
|
}
|
|
24624
24624
|
var zt = A(H);
|
|
@@ -24628,16 +24628,16 @@ Pi.load = function() {
|
|
|
24628
24628
|
Ir.length === 0 ? (Ir.push(Ne[0]), Ir.push(Ne[1])) : (Ir[0] += Ne[0], Ir[1] += Ne[1]);
|
|
24629
24629
|
};
|
|
24630
24630
|
te = !0, a(Pe, ["mousemove", "vmousemove", "tapdrag"], H, {
|
|
24631
|
-
x:
|
|
24632
|
-
y:
|
|
24631
|
+
x: de[0],
|
|
24632
|
+
y: de[1]
|
|
24633
24633
|
});
|
|
24634
24634
|
var St = function(Ir) {
|
|
24635
24635
|
return {
|
|
24636
24636
|
originalEvent: H,
|
|
24637
24637
|
type: Ir,
|
|
24638
24638
|
position: {
|
|
24639
|
-
x:
|
|
24640
|
-
y:
|
|
24639
|
+
x: de[0],
|
|
24640
|
+
y: de[1]
|
|
24641
24641
|
}
|
|
24642
24642
|
};
|
|
24643
24643
|
}, Qn = function() {
|
|
@@ -24654,17 +24654,17 @@ Pi.load = function() {
|
|
|
24654
24654
|
if (t.hoverData.justStartedPan) {
|
|
24655
24655
|
var Ds = t.hoverData.mdownPos;
|
|
24656
24656
|
EA = {
|
|
24657
|
-
x: (
|
|
24658
|
-
y: (
|
|
24657
|
+
x: (de[0] - Ds[0]) * ne,
|
|
24658
|
+
y: (de[1] - Ds[1]) * ne
|
|
24659
24659
|
}, t.hoverData.justStartedPan = !1;
|
|
24660
24660
|
} else
|
|
24661
24661
|
EA = {
|
|
24662
|
-
x: Ne[0] *
|
|
24663
|
-
y: Ne[1] *
|
|
24662
|
+
x: Ne[0] * ne,
|
|
24663
|
+
y: Ne[1] * ne
|
|
24664
24664
|
};
|
|
24665
24665
|
re.panBy(EA), re.emit(St("dragpan")), t.hoverData.dragged = !0;
|
|
24666
24666
|
}
|
|
24667
|
-
|
|
24667
|
+
de = t.projectIntoViewport(H.clientX, H.clientY);
|
|
24668
24668
|
} else if (Ie[4] == 1 && (Te == null || Te.pannable())) {
|
|
24669
24669
|
if (Xe) {
|
|
24670
24670
|
if (!t.hoverData.dragging && re.boxSelectionEnabled() && (zt || !re.panningEnabled() || !re.userPanningEnabled()))
|
|
@@ -24677,11 +24677,11 @@ Pi.load = function() {
|
|
|
24677
24677
|
}
|
|
24678
24678
|
} else {
|
|
24679
24679
|
if (Te && Te.pannable() && Te.active() && Te.unactivate(), (!Te || !Te.grabbed()) && Pe != He && (He && a(He, ["mouseout", "tapdragout"], H, {
|
|
24680
|
-
x:
|
|
24681
|
-
y:
|
|
24680
|
+
x: de[0],
|
|
24681
|
+
y: de[1]
|
|
24682
24682
|
}), Pe && a(Pe, ["mouseover", "tapdragover"], H, {
|
|
24683
|
-
x:
|
|
24684
|
-
y:
|
|
24683
|
+
x: de[0],
|
|
24684
|
+
y: de[1]
|
|
24685
24685
|
}), t.hoverData.last = Pe), Te)
|
|
24686
24686
|
if (Xe) {
|
|
24687
24687
|
if (re.boxSelectionEnabled() && zt)
|
|
@@ -24705,7 +24705,7 @@ Pi.load = function() {
|
|
|
24705
24705
|
qn();
|
|
24706
24706
|
te = !0;
|
|
24707
24707
|
}
|
|
24708
|
-
if (Ie[2] =
|
|
24708
|
+
if (Ie[2] = de[0], Ie[3] = de[1], te)
|
|
24709
24709
|
return H.stopPropagation && H.stopPropagation(), H.preventDefault && H.preventDefault(), !1;
|
|
24710
24710
|
}
|
|
24711
24711
|
}, !1);
|
|
@@ -24715,7 +24715,7 @@ Pi.load = function() {
|
|
|
24715
24715
|
var K = t.hoverData.capture;
|
|
24716
24716
|
if (K) {
|
|
24717
24717
|
t.hoverData.capture = !1;
|
|
24718
|
-
var te = t.cy, re = t.projectIntoViewport(H.clientX, H.clientY),
|
|
24718
|
+
var te = t.cy, re = t.projectIntoViewport(H.clientX, H.clientY), ne = t.selection, pe = t.findNearestElement(re[0], re[1], !0, !1), de = t.dragData.possibleDragElements, Ce = t.hoverData.down, Ee = A(H);
|
|
24719
24719
|
t.data.bgActivePosistion && (t.redrawHint("select", !0), t.redraw()), t.hoverData.tapholdCancelled = !0, t.data.bgActivePosistion = void 0, Ce && Ce.unactivate();
|
|
24720
24720
|
var Ie = function(at) {
|
|
24721
24721
|
return {
|
|
@@ -24735,7 +24735,7 @@ Pi.load = function() {
|
|
|
24735
24735
|
}
|
|
24736
24736
|
t.hoverData.cxtDragged = !1, t.hoverData.which = null;
|
|
24737
24737
|
} else if (t.hoverData.which === 1) {
|
|
24738
|
-
if (a(
|
|
24738
|
+
if (a(pe, ["mouseup", "tapend", "vmouseup"], H, {
|
|
24739
24739
|
x: re[0],
|
|
24740
24740
|
y: re[1]
|
|
24741
24741
|
}), !t.dragData.didDrag && // didn't move a node around
|
|
@@ -24752,21 +24752,21 @@ Pi.load = function() {
|
|
|
24752
24752
|
x: re[0],
|
|
24753
24753
|
y: re[1]
|
|
24754
24754
|
});
|
|
24755
|
-
}, te.multiClickDebounceTime()), I = H.timeStamp)), Ce == null && !t.dragData.didDrag && !t.hoverData.selecting && !t.hoverData.dragged && !A(H) && (te.$(r).unselect(["tapunselect"]),
|
|
24756
|
-
var Te = te.collection(t.getAllInBox(
|
|
24755
|
+
}, te.multiClickDebounceTime()), I = H.timeStamp)), Ce == null && !t.dragData.didDrag && !t.hoverData.selecting && !t.hoverData.dragged && !A(H) && (te.$(r).unselect(["tapunselect"]), de.length > 0 && t.redrawHint("eles", !0), t.dragData.possibleDragElements = de = te.collection()), pe == Ce && !t.dragData.didDrag && !t.hoverData.selecting && pe != null && pe._private.selectable && (t.hoverData.dragging || (te.selectionType() === "additive" || Ee ? pe.selected() ? pe.unselect(["tapunselect"]) : pe.select(["tapselect"]) : Ee || (te.$(r).unmerge(pe).unselect(["tapunselect"]), pe.select(["tapselect"]))), t.redrawHint("eles", !0)), t.hoverData.selecting) {
|
|
24756
|
+
var Te = te.collection(t.getAllInBox(ne[0], ne[1], ne[2], ne[3]));
|
|
24757
24757
|
t.redrawHint("select", !0), Te.length > 0 && t.redrawHint("eles", !0), te.emit(Ie("boxend"));
|
|
24758
24758
|
var Ne = function(at) {
|
|
24759
24759
|
return at.selectable() && !at.selected();
|
|
24760
24760
|
};
|
|
24761
24761
|
te.selectionType() === "additive" || Ee || te.$(r).unmerge(Te).unselect(), Te.emit(Ie("box")).stdFilter(Ne).select().emit(Ie("boxselect")), t.redraw();
|
|
24762
24762
|
}
|
|
24763
|
-
if (t.hoverData.dragging && (t.hoverData.dragging = !1, t.redrawHint("select", !0), t.redrawHint("eles", !0), t.redraw()), !
|
|
24763
|
+
if (t.hoverData.dragging && (t.hoverData.dragging = !1, t.redrawHint("select", !0), t.redrawHint("eles", !0), t.redraw()), !ne[4]) {
|
|
24764
24764
|
t.redrawHint("drag", !0), t.redrawHint("eles", !0);
|
|
24765
24765
|
var Be = Ce && Ce.grabbed();
|
|
24766
|
-
g(
|
|
24766
|
+
g(de), Be && (Ce.emit(Ie("freeon")), de.emit(Ie("free")), t.dragData.didDrag && (Ce.emit(Ie("dragfreeon")), de.emit(Ie("dragfree"))));
|
|
24767
24767
|
}
|
|
24768
24768
|
}
|
|
24769
|
-
|
|
24769
|
+
ne[4] = 0, t.hoverData.down = null, t.hoverData.cxtStarted = !1, t.hoverData.draggingEles = !1, t.hoverData.selecting = !1, t.hoverData.isOverThresholdDrag = !1, t.dragData.didDrag = !1, t.hoverData.dragged = !1, t.hoverData.dragDelta = [], t.hoverData.mdownPos = null, t.hoverData.mdownGPos = null, t.hoverData.which = null;
|
|
24770
24770
|
}
|
|
24771
24771
|
}
|
|
24772
24772
|
}, !1);
|
|
@@ -24786,22 +24786,22 @@ Pi.load = function() {
|
|
|
24786
24786
|
if (O.length >= L) {
|
|
24787
24787
|
var re = O;
|
|
24788
24788
|
if (R = N(re, 5), !R) {
|
|
24789
|
-
var
|
|
24790
|
-
R = D(re) &&
|
|
24789
|
+
var ne = Math.abs(re[0]);
|
|
24790
|
+
R = D(re) && ne > 5;
|
|
24791
24791
|
}
|
|
24792
24792
|
if (R)
|
|
24793
|
-
for (var
|
|
24794
|
-
P = Math.min(Math.abs(re[
|
|
24793
|
+
for (var pe = 0; pe < re.length; pe++)
|
|
24794
|
+
P = Math.min(Math.abs(re[pe]), P);
|
|
24795
24795
|
} else
|
|
24796
24796
|
O.push(te), K = !0;
|
|
24797
24797
|
else R && (P = Math.min(Math.abs(te), P));
|
|
24798
24798
|
if (!t.scrollingPage) {
|
|
24799
|
-
var
|
|
24799
|
+
var de = t.cy, Ce = de.zoom(), Ee = de.pan(), Ie = t.projectIntoViewport(H.clientX, H.clientY), Pe = [Ie[0] * Ce + Ee.x, Ie[1] * Ce + Ee.y];
|
|
24800
24800
|
if (t.hoverData.draggingEles || t.hoverData.dragging || t.hoverData.cxtStarted || E()) {
|
|
24801
24801
|
H.preventDefault();
|
|
24802
24802
|
return;
|
|
24803
24803
|
}
|
|
24804
|
-
if (
|
|
24804
|
+
if (de.panningEnabled() && de.userPanningEnabled() && de.zoomingEnabled() && de.userZoomingEnabled()) {
|
|
24805
24805
|
H.preventDefault(), t.data.wheelZooming = !0, clearTimeout(t.data.wheelTimeout), t.data.wheelTimeout = setTimeout(function() {
|
|
24806
24806
|
t.data.wheelZooming = !1, t.redrawHint("eles", !0), t.redraw();
|
|
24807
24807
|
}, 150);
|
|
@@ -24809,14 +24809,14 @@ Pi.load = function() {
|
|
|
24809
24809
|
K && Math.abs(te) > 5 && (te = nm(te) * 5), He = te / -250, R && (He /= P, He *= 3), He = He * t.wheelSensitivity;
|
|
24810
24810
|
var Te = H.deltaMode === 1;
|
|
24811
24811
|
Te && (He *= 33);
|
|
24812
|
-
var Ne =
|
|
24813
|
-
H.type === "gesturechange" && (Ne = t.gestureStartZoom * H.scale),
|
|
24812
|
+
var Ne = de.zoom() * Math.pow(10, He);
|
|
24813
|
+
H.type === "gesturechange" && (Ne = t.gestureStartZoom * H.scale), de.zoom({
|
|
24814
24814
|
level: Ne,
|
|
24815
24815
|
renderedPosition: {
|
|
24816
24816
|
x: Pe[0],
|
|
24817
24817
|
y: Pe[1]
|
|
24818
24818
|
}
|
|
24819
|
-
}),
|
|
24819
|
+
}), de.emit({
|
|
24820
24820
|
type: H.type === "gesturechange" ? "pinchzoom" : "scrollzoom",
|
|
24821
24821
|
originalEvent: H,
|
|
24822
24822
|
position: {
|
|
@@ -24856,28 +24856,28 @@ Pi.load = function() {
|
|
|
24856
24856
|
}
|
|
24857
24857
|
});
|
|
24858
24858
|
}, !1);
|
|
24859
|
-
var _, V, X, k, G, q, ee, Z, z, J, Y,
|
|
24859
|
+
var _, V, X, k, G, q, ee, Z, z, J, Y, W, oe, ie = function(H, K, te, re) {
|
|
24860
24860
|
return Math.sqrt((te - H) * (te - H) + (re - K) * (re - K));
|
|
24861
|
-
},
|
|
24861
|
+
}, Ue = function(H, K, te, re) {
|
|
24862
24862
|
return (te - H) * (te - H) + (re - K) * (re - K);
|
|
24863
|
-
},
|
|
24864
|
-
t.registerBinding(t.container, "touchstart",
|
|
24863
|
+
}, ue;
|
|
24864
|
+
t.registerBinding(t.container, "touchstart", ue = function(H) {
|
|
24865
24865
|
if (t.hasTouchStarted = !0, !!b(H)) {
|
|
24866
24866
|
m(), t.touchData.capture = !0, t.data.bgActivePosistion = void 0;
|
|
24867
24867
|
var K = t.cy, te = t.touchData.now, re = t.touchData.earlier;
|
|
24868
24868
|
if (H.touches[0]) {
|
|
24869
|
-
var
|
|
24870
|
-
te[0] =
|
|
24869
|
+
var ne = t.projectIntoViewport(H.touches[0].clientX, H.touches[0].clientY);
|
|
24870
|
+
te[0] = ne[0], te[1] = ne[1];
|
|
24871
24871
|
}
|
|
24872
24872
|
if (H.touches[1]) {
|
|
24873
|
-
var
|
|
24874
|
-
te[2] =
|
|
24873
|
+
var ne = t.projectIntoViewport(H.touches[1].clientX, H.touches[1].clientY);
|
|
24874
|
+
te[2] = ne[0], te[3] = ne[1];
|
|
24875
24875
|
}
|
|
24876
24876
|
if (H.touches[2]) {
|
|
24877
|
-
var
|
|
24878
|
-
te[4] =
|
|
24877
|
+
var ne = t.projectIntoViewport(H.touches[2].clientX, H.touches[2].clientY);
|
|
24878
|
+
te[4] = ne[0], te[5] = ne[1];
|
|
24879
24879
|
}
|
|
24880
|
-
var
|
|
24880
|
+
var pe = function(zt) {
|
|
24881
24881
|
return {
|
|
24882
24882
|
originalEvent: H,
|
|
24883
24883
|
type: zt,
|
|
@@ -24889,14 +24889,14 @@ Pi.load = function() {
|
|
|
24889
24889
|
};
|
|
24890
24890
|
if (H.touches[1]) {
|
|
24891
24891
|
t.touchData.singleTouchMoved = !0, g(t.dragData.touchDragEles);
|
|
24892
|
-
var
|
|
24893
|
-
z =
|
|
24892
|
+
var de = t.findContainerClientCoords();
|
|
24893
|
+
z = de[0], J = de[1], Y = de[2], W = de[3], _ = H.touches[0].clientX - z, V = H.touches[0].clientY - J, X = H.touches[1].clientX - z, k = H.touches[1].clientY - J, oe = 0 <= _ && _ <= Y && 0 <= X && X <= Y && 0 <= V && V <= W && 0 <= k && k <= W;
|
|
24894
24894
|
var Ce = K.pan(), Ee = K.zoom();
|
|
24895
|
-
G =
|
|
24895
|
+
G = ie(_, V, X, k), q = Ue(_, V, X, k), ee = [(_ + X) / 2, (V + k) / 2], Z = [(ee[0] - Ce.x) / Ee, (ee[1] - Ce.y) / Ee];
|
|
24896
24896
|
var Ie = 200, Pe = Ie * Ie;
|
|
24897
24897
|
if (q < Pe && !H.touches[2]) {
|
|
24898
24898
|
var He = t.findNearestElement(te[0], te[1], !0, !0), Te = t.findNearestElement(te[2], te[3], !0, !0);
|
|
24899
|
-
He && He.isNode() ? (He.activate().emit(
|
|
24899
|
+
He && He.isNode() ? (He.activate().emit(pe("cxttapstart")), t.touchData.start = He) : Te && Te.isNode() ? (Te.activate().emit(pe("cxttapstart")), t.touchData.start = Te) : K.emit(pe("cxttapstart")), t.touchData.start && (t.touchData.start._private.grabbed = !1), t.touchData.cxt = !0, t.touchData.cxtDragged = !1, t.data.bgActivePosistion = void 0, t.redraw();
|
|
24900
24900
|
return;
|
|
24901
24901
|
}
|
|
24902
24902
|
}
|
|
@@ -24913,16 +24913,16 @@ Pi.load = function() {
|
|
|
24913
24913
|
addToList: Xe
|
|
24914
24914
|
})) : p(Be, {
|
|
24915
24915
|
addToList: Xe
|
|
24916
|
-
}), c(Be), Be.emit(
|
|
24917
|
-
Lt.emit(
|
|
24918
|
-
}) : Be.emit(
|
|
24916
|
+
}), c(Be), Be.emit(pe("grabon")), at ? at.forEach(function(Lt) {
|
|
24917
|
+
Lt.emit(pe("grab"));
|
|
24918
|
+
}) : Be.emit(pe("grab"));
|
|
24919
24919
|
}
|
|
24920
24920
|
a(Be, ["touchstart", "tapstart", "vmousedown"], H, {
|
|
24921
24921
|
x: te[0],
|
|
24922
24922
|
y: te[1]
|
|
24923
24923
|
}), Be == null && (t.data.bgActivePosistion = {
|
|
24924
|
-
x:
|
|
24925
|
-
y:
|
|
24924
|
+
x: ne[0],
|
|
24925
|
+
y: ne[1]
|
|
24926
24926
|
}, t.redrawHint("select", !0), t.redraw()), t.touchData.singleTouchMoved = !1, t.touchData.singleTouchStartTime = +/* @__PURE__ */ new Date(), clearTimeout(t.touchData.tapholdTimeout), t.touchData.tapholdTimeout = setTimeout(function() {
|
|
24927
24927
|
t.touchData.singleTouchMoved === !1 && !t.pinching && !t.touchData.selecting && a(t.touchData.start, ["taphold"], H, {
|
|
24928
24928
|
x: te[0],
|
|
@@ -24939,42 +24939,42 @@ Pi.load = function() {
|
|
|
24939
24939
|
}
|
|
24940
24940
|
}
|
|
24941
24941
|
}, !1);
|
|
24942
|
-
var
|
|
24943
|
-
t.registerBinding(e, "touchmove",
|
|
24942
|
+
var ae;
|
|
24943
|
+
t.registerBinding(e, "touchmove", ae = function(H) {
|
|
24944
24944
|
var K = t.touchData.capture;
|
|
24945
24945
|
if (!(!K && !b(H))) {
|
|
24946
|
-
var te = t.selection, re = t.cy,
|
|
24946
|
+
var te = t.selection, re = t.cy, ne = t.touchData.now, pe = t.touchData.earlier, de = re.zoom();
|
|
24947
24947
|
if (H.touches[0]) {
|
|
24948
24948
|
var Ce = t.projectIntoViewport(H.touches[0].clientX, H.touches[0].clientY);
|
|
24949
|
-
|
|
24949
|
+
ne[0] = Ce[0], ne[1] = Ce[1];
|
|
24950
24950
|
}
|
|
24951
24951
|
if (H.touches[1]) {
|
|
24952
24952
|
var Ce = t.projectIntoViewport(H.touches[1].clientX, H.touches[1].clientY);
|
|
24953
|
-
|
|
24953
|
+
ne[2] = Ce[0], ne[3] = Ce[1];
|
|
24954
24954
|
}
|
|
24955
24955
|
if (H.touches[2]) {
|
|
24956
24956
|
var Ce = t.projectIntoViewport(H.touches[2].clientX, H.touches[2].clientY);
|
|
24957
|
-
|
|
24957
|
+
ne[4] = Ce[0], ne[5] = Ce[1];
|
|
24958
24958
|
}
|
|
24959
24959
|
var Ee = function(cU) {
|
|
24960
24960
|
return {
|
|
24961
24961
|
originalEvent: H,
|
|
24962
24962
|
type: cU,
|
|
24963
24963
|
position: {
|
|
24964
|
-
x:
|
|
24965
|
-
y:
|
|
24964
|
+
x: ne[0],
|
|
24965
|
+
y: ne[1]
|
|
24966
24966
|
}
|
|
24967
24967
|
};
|
|
24968
24968
|
}, Ie = t.touchData.startGPosition, Pe;
|
|
24969
24969
|
if (K && H.touches[0] && Ie) {
|
|
24970
|
-
for (var He = [], Te = 0; Te <
|
|
24971
|
-
He[Te] =
|
|
24970
|
+
for (var He = [], Te = 0; Te < ne.length; Te++)
|
|
24971
|
+
He[Te] = ne[Te] - pe[Te];
|
|
24972
24972
|
var Ne = H.touches[0].clientX - Ie[0], Be = Ne * Ne, Xe = H.touches[0].clientY - Ie[1], at = Xe * Xe, sr = Be + at;
|
|
24973
24973
|
Pe = sr >= t.touchTapThreshold2;
|
|
24974
24974
|
}
|
|
24975
24975
|
if (K && t.touchData.cxt) {
|
|
24976
24976
|
H.preventDefault();
|
|
24977
|
-
var Ut = H.touches[0].clientX - z, _t = H.touches[0].clientY - J, Lt = H.touches[1].clientX - z, zt = H.touches[1].clientY - J, qn =
|
|
24977
|
+
var Ut = H.touches[0].clientX - z, _t = H.touches[0].clientY - J, Lt = H.touches[1].clientX - z, zt = H.touches[1].clientY - J, qn = Ue(Ut, _t, Lt, zt), St = qn / q, Qn = 150, Un = Qn * Qn, EA = 1.5, Ds = EA * EA;
|
|
24978
24978
|
if (St >= Ds || qn >= Un) {
|
|
24979
24979
|
t.touchData.cxt = !1, t.data.bgActivePosistion = void 0, t.redrawHint("select", !0);
|
|
24980
24980
|
var Pa = Ee("cxttapend");
|
|
@@ -24984,10 +24984,10 @@ Pi.load = function() {
|
|
|
24984
24984
|
if (K && t.touchData.cxt) {
|
|
24985
24985
|
var Pa = Ee("cxtdrag");
|
|
24986
24986
|
t.data.bgActivePosistion = void 0, t.redrawHint("select", !0), t.touchData.start ? t.touchData.start.emit(Pa) : re.emit(Pa), t.touchData.start && (t.touchData.start._private.grabbed = !1), t.touchData.cxtDragged = !0;
|
|
24987
|
-
var hr = t.findNearestElement(
|
|
24987
|
+
var hr = t.findNearestElement(ne[0], ne[1], !0, !0);
|
|
24988
24988
|
(!t.touchData.cxtOver || hr !== t.touchData.cxtOver) && (t.touchData.cxtOver && t.touchData.cxtOver.emit(Ee("cxtdragout")), t.touchData.cxtOver = hr, hr && hr.emit(Ee("cxtdragover")));
|
|
24989
24989
|
} else if (K && H.touches[2] && re.boxSelectionEnabled())
|
|
24990
|
-
H.preventDefault(), t.data.bgActivePosistion = void 0, this.lastThreeTouch = +/* @__PURE__ */ new Date(), t.touchData.selecting || re.emit(Ee("boxstart")), t.touchData.selecting = !0, t.touchData.didSelect = !0, te[4] = 1, !te || te.length === 0 || te[0] === void 0 ? (te[0] = (
|
|
24990
|
+
H.preventDefault(), t.data.bgActivePosistion = void 0, this.lastThreeTouch = +/* @__PURE__ */ new Date(), t.touchData.selecting || re.emit(Ee("boxstart")), t.touchData.selecting = !0, t.touchData.didSelect = !0, te[4] = 1, !te || te.length === 0 || te[0] === void 0 ? (te[0] = (ne[0] + ne[2] + ne[4]) / 3, te[1] = (ne[1] + ne[3] + ne[5]) / 3, te[2] = (ne[0] + ne[2] + ne[4]) / 3 + 1, te[3] = (ne[1] + ne[3] + ne[5]) / 3 + 1) : (te[2] = (ne[0] + ne[2] + ne[4]) / 3, te[3] = (ne[1] + ne[3] + ne[5]) / 3), t.redrawHint("select", !0), t.redraw();
|
|
24991
24991
|
else if (K && H.touches[1] && !t.touchData.didSelect && re.zoomingEnabled() && re.panningEnabled() && re.userZoomingEnabled() && re.userPanningEnabled()) {
|
|
24992
24992
|
H.preventDefault(), t.data.bgActivePosistion = void 0, t.redrawHint("select", !0);
|
|
24993
24993
|
var rr = t.dragData.touchDragEles;
|
|
@@ -24998,8 +24998,8 @@ Pi.load = function() {
|
|
|
24998
24998
|
Ni.grabbed = !1, Ni.rscratch.inDragLayer = !1;
|
|
24999
24999
|
}
|
|
25000
25000
|
}
|
|
25001
|
-
var Ir = t.touchData.start, Ut = H.touches[0].clientX - z, _t = H.touches[0].clientY - J, Lt = H.touches[1].clientX - z, zt = H.touches[1].clientY - J, _m =
|
|
25002
|
-
if (
|
|
25001
|
+
var Ir = t.touchData.start, Ut = H.touches[0].clientX - z, _t = H.touches[0].clientY - J, Lt = H.touches[1].clientX - z, zt = H.touches[1].clientY - J, _m = ie(Ut, _t, Lt, zt), rU = _m / G;
|
|
25002
|
+
if (oe) {
|
|
25003
25003
|
var nU = Ut - _, aU = _t - V, AU = Lt - X, iU = zt - k, oU = (nU + AU) / 2, sU = (aU + iU) / 2, _i = re.zoom(), rf = _i * rU, Os = re.pan(), Km = Z[0] * _i + Os.x, Vm = Z[1] * _i + Os.y, lU = {
|
|
25004
25004
|
x: -rf / _i * (Km - Os.x - oU) + Km,
|
|
25005
25005
|
y: -rf / _i * (Vm - Os.y - sU) + Vm
|
|
@@ -25016,19 +25016,19 @@ Pi.load = function() {
|
|
|
25016
25016
|
}
|
|
25017
25017
|
if (H.touches[0]) {
|
|
25018
25018
|
var Ce = t.projectIntoViewport(H.touches[0].clientX, H.touches[0].clientY);
|
|
25019
|
-
|
|
25019
|
+
ne[0] = Ce[0], ne[1] = Ce[1];
|
|
25020
25020
|
}
|
|
25021
25021
|
if (H.touches[1]) {
|
|
25022
25022
|
var Ce = t.projectIntoViewport(H.touches[1].clientX, H.touches[1].clientY);
|
|
25023
|
-
|
|
25023
|
+
ne[2] = Ce[0], ne[3] = Ce[1];
|
|
25024
25024
|
}
|
|
25025
25025
|
if (H.touches[2]) {
|
|
25026
25026
|
var Ce = t.projectIntoViewport(H.touches[2].clientX, H.touches[2].clientY);
|
|
25027
|
-
|
|
25027
|
+
ne[4] = Ce[0], ne[5] = Ce[1];
|
|
25028
25028
|
}
|
|
25029
25029
|
} else if (H.touches[0] && !t.touchData.didSelect) {
|
|
25030
25030
|
var Xr = t.touchData.start, nf = t.touchData.last, hr;
|
|
25031
|
-
if (!t.hoverData.draggingEles && !t.swipePanning && (hr = t.findNearestElement(
|
|
25031
|
+
if (!t.hoverData.draggingEles && !t.swipePanning && (hr = t.findNearestElement(ne[0], ne[1], !0, !0)), K && Xr != null && H.preventDefault(), K && Xr != null && t.nodeIsDraggable(Xr))
|
|
25032
25032
|
if (Pe) {
|
|
25033
25033
|
var rr = t.dragData.touchDragEles, Gm = !t.dragData.didDrag;
|
|
25034
25034
|
Gm && v(rr, {
|
|
@@ -25043,42 +25043,42 @@ Pi.load = function() {
|
|
|
25043
25043
|
var zr = t.touchData.dragDelta;
|
|
25044
25044
|
zr && we(zr[0]) && we(zr[1]) && (Ki.x += zr[0], Ki.y += zr[1]);
|
|
25045
25045
|
}
|
|
25046
|
-
t.hoverData.draggingEles = !0, rr.silentShift(Ki).emit(Ee("position")).emit(Ee("drag")), t.redrawHint("drag", !0), t.touchData.startPosition[0] ==
|
|
25046
|
+
t.hoverData.draggingEles = !0, rr.silentShift(Ki).emit(Ee("position")).emit(Ee("drag")), t.redrawHint("drag", !0), t.touchData.startPosition[0] == pe[0] && t.touchData.startPosition[1] == pe[1] && t.redrawHint("eles", !0), t.redraw();
|
|
25047
25047
|
} else {
|
|
25048
25048
|
var zr = t.touchData.dragDelta = t.touchData.dragDelta || [];
|
|
25049
25049
|
zr.length === 0 ? (zr.push(He[0]), zr.push(He[1])) : (zr[0] += He[0], zr[1] += He[1]);
|
|
25050
25050
|
}
|
|
25051
25051
|
if (a(Xr || hr, ["touchmove", "tapdrag", "vmousemove"], H, {
|
|
25052
|
-
x:
|
|
25053
|
-
y:
|
|
25052
|
+
x: ne[0],
|
|
25053
|
+
y: ne[1]
|
|
25054
25054
|
}), (!Xr || !Xr.grabbed()) && hr != nf && (nf && nf.emit(Ee("tapdragout")), hr && hr.emit(Ee("tapdragover"))), t.touchData.last = hr, K)
|
|
25055
|
-
for (var vr = 0; vr <
|
|
25056
|
-
|
|
25055
|
+
for (var vr = 0; vr < ne.length; vr++)
|
|
25056
|
+
ne[vr] && t.touchData.startPosition[vr] && Pe && (t.touchData.singleTouchMoved = !0);
|
|
25057
25057
|
if (K && (Xr == null || Xr.pannable()) && re.panningEnabled() && re.userPanningEnabled()) {
|
|
25058
25058
|
var uU = i(Xr, t.touchData.starts);
|
|
25059
25059
|
uU && (H.preventDefault(), t.data.bgActivePosistion || (t.data.bgActivePosistion = ni(t.touchData.startPosition)), t.swipePanning ? (re.panBy({
|
|
25060
|
-
x: He[0] *
|
|
25061
|
-
y: He[1] *
|
|
25060
|
+
x: He[0] * de,
|
|
25061
|
+
y: He[1] * de
|
|
25062
25062
|
}), re.emit(Ee("dragpan"))) : Pe && (t.swipePanning = !0, re.panBy({
|
|
25063
|
-
x: Ne *
|
|
25064
|
-
y: Xe *
|
|
25063
|
+
x: Ne * de,
|
|
25064
|
+
y: Xe * de
|
|
25065
25065
|
}), re.emit(Ee("dragpan")), Xr && (Xr.unactivate(), t.redrawHint("select", !0), t.touchData.start = null)));
|
|
25066
25066
|
var Ce = t.projectIntoViewport(H.touches[0].clientX, H.touches[0].clientY);
|
|
25067
|
-
|
|
25067
|
+
ne[0] = Ce[0], ne[1] = Ce[1];
|
|
25068
25068
|
}
|
|
25069
25069
|
}
|
|
25070
|
-
for (var Te = 0; Te <
|
|
25071
|
-
|
|
25070
|
+
for (var Te = 0; Te < ne.length; Te++)
|
|
25071
|
+
pe[Te] = ne[Te];
|
|
25072
25072
|
K && H.touches.length > 0 && !t.hoverData.draggingEles && !t.swipePanning && t.data.bgActivePosistion != null && (t.data.bgActivePosistion = void 0, t.redrawHint("select", !0), t.redraw());
|
|
25073
25073
|
}
|
|
25074
25074
|
}, !1);
|
|
25075
|
-
var
|
|
25076
|
-
t.registerBinding(e, "touchcancel",
|
|
25075
|
+
var le;
|
|
25076
|
+
t.registerBinding(e, "touchcancel", le = function(H) {
|
|
25077
25077
|
var K = t.touchData.start;
|
|
25078
25078
|
t.touchData.capture = !1, K && K.unactivate();
|
|
25079
25079
|
});
|
|
25080
|
-
var
|
|
25081
|
-
if (t.registerBinding(e, "touchend",
|
|
25080
|
+
var he, fe, j, se;
|
|
25081
|
+
if (t.registerBinding(e, "touchend", he = function(H) {
|
|
25082
25082
|
var K = t.touchData.start, te = t.touchData.capture;
|
|
25083
25083
|
if (te)
|
|
25084
25084
|
H.touches.length === 0 && (t.touchData.capture = !1), H.preventDefault();
|
|
@@ -25086,43 +25086,43 @@ Pi.load = function() {
|
|
|
25086
25086
|
return;
|
|
25087
25087
|
var re = t.selection;
|
|
25088
25088
|
t.swipePanning = !1, t.hoverData.draggingEles = !1;
|
|
25089
|
-
var
|
|
25089
|
+
var ne = t.cy, pe = ne.zoom(), de = t.touchData.now, Ce = t.touchData.earlier;
|
|
25090
25090
|
if (H.touches[0]) {
|
|
25091
25091
|
var Ee = t.projectIntoViewport(H.touches[0].clientX, H.touches[0].clientY);
|
|
25092
|
-
|
|
25092
|
+
de[0] = Ee[0], de[1] = Ee[1];
|
|
25093
25093
|
}
|
|
25094
25094
|
if (H.touches[1]) {
|
|
25095
25095
|
var Ee = t.projectIntoViewport(H.touches[1].clientX, H.touches[1].clientY);
|
|
25096
|
-
|
|
25096
|
+
de[2] = Ee[0], de[3] = Ee[1];
|
|
25097
25097
|
}
|
|
25098
25098
|
if (H.touches[2]) {
|
|
25099
25099
|
var Ee = t.projectIntoViewport(H.touches[2].clientX, H.touches[2].clientY);
|
|
25100
|
-
|
|
25100
|
+
de[4] = Ee[0], de[5] = Ee[1];
|
|
25101
25101
|
}
|
|
25102
25102
|
var Ie = function(Un) {
|
|
25103
25103
|
return {
|
|
25104
25104
|
originalEvent: H,
|
|
25105
25105
|
type: Un,
|
|
25106
25106
|
position: {
|
|
25107
|
-
x:
|
|
25108
|
-
y:
|
|
25107
|
+
x: de[0],
|
|
25108
|
+
y: de[1]
|
|
25109
25109
|
}
|
|
25110
25110
|
};
|
|
25111
25111
|
};
|
|
25112
25112
|
K && K.unactivate();
|
|
25113
25113
|
var Pe;
|
|
25114
25114
|
if (t.touchData.cxt) {
|
|
25115
|
-
if (Pe = Ie("cxttapend"), K ? K.emit(Pe) :
|
|
25115
|
+
if (Pe = Ie("cxttapend"), K ? K.emit(Pe) : ne.emit(Pe), !t.touchData.cxtDragged) {
|
|
25116
25116
|
var He = Ie("cxttap");
|
|
25117
|
-
K ? K.emit(He) :
|
|
25117
|
+
K ? K.emit(He) : ne.emit(He);
|
|
25118
25118
|
}
|
|
25119
25119
|
t.touchData.start && (t.touchData.start._private.grabbed = !1), t.touchData.cxt = !1, t.touchData.start = null, t.redraw();
|
|
25120
25120
|
return;
|
|
25121
25121
|
}
|
|
25122
|
-
if (!H.touches[2] &&
|
|
25122
|
+
if (!H.touches[2] && ne.boxSelectionEnabled() && t.touchData.selecting) {
|
|
25123
25123
|
t.touchData.selecting = !1;
|
|
25124
|
-
var Te =
|
|
25125
|
-
re[0] = void 0, re[1] = void 0, re[2] = void 0, re[3] = void 0, re[4] = 0, t.redrawHint("select", !0),
|
|
25124
|
+
var Te = ne.collection(t.getAllInBox(re[0], re[1], re[2], re[3]));
|
|
25125
|
+
re[0] = void 0, re[1] = void 0, re[2] = void 0, re[3] = void 0, re[4] = 0, t.redrawHint("select", !0), ne.emit(Ie("boxend"));
|
|
25126
25126
|
var Ne = function(Un) {
|
|
25127
25127
|
return Un.selectable() && !Un.selected();
|
|
25128
25128
|
};
|
|
@@ -25138,37 +25138,37 @@ Pi.load = function() {
|
|
|
25138
25138
|
if (K != null) {
|
|
25139
25139
|
var Xe = K._private.grabbed;
|
|
25140
25140
|
g(Be), t.redrawHint("drag", !0), t.redrawHint("eles", !0), Xe && (K.emit(Ie("freeon")), Be.emit(Ie("free")), t.dragData.didDrag && (K.emit(Ie("dragfreeon")), Be.emit(Ie("dragfree")))), a(K, ["touchend", "tapend", "vmouseup", "tapdragout"], H, {
|
|
25141
|
-
x:
|
|
25142
|
-
y:
|
|
25141
|
+
x: de[0],
|
|
25142
|
+
y: de[1]
|
|
25143
25143
|
}), K.unactivate(), t.touchData.start = null;
|
|
25144
25144
|
} else {
|
|
25145
|
-
var at = t.findNearestElement(
|
|
25145
|
+
var at = t.findNearestElement(de[0], de[1], !0, !0);
|
|
25146
25146
|
a(at, ["touchend", "tapend", "vmouseup", "tapdragout"], H, {
|
|
25147
|
-
x:
|
|
25148
|
-
y:
|
|
25147
|
+
x: de[0],
|
|
25148
|
+
y: de[1]
|
|
25149
25149
|
});
|
|
25150
25150
|
}
|
|
25151
|
-
var sr = t.touchData.startPosition[0] -
|
|
25152
|
-
t.touchData.singleTouchMoved || (K ||
|
|
25153
|
-
x:
|
|
25154
|
-
y:
|
|
25155
|
-
}), fe = !1, H.timeStamp -
|
|
25156
|
-
x:
|
|
25157
|
-
y:
|
|
25158
|
-
})) : (
|
|
25151
|
+
var sr = t.touchData.startPosition[0] - de[0], Ut = sr * sr, _t = t.touchData.startPosition[1] - de[1], Lt = _t * _t, zt = Ut + Lt, qn = zt * pe * pe;
|
|
25152
|
+
t.touchData.singleTouchMoved || (K || ne.$(":selected").unselect(["tapunselect"]), a(K, ["tap", "vclick"], H, {
|
|
25153
|
+
x: de[0],
|
|
25154
|
+
y: de[1]
|
|
25155
|
+
}), fe = !1, H.timeStamp - se <= ne.multiClickDebounceTime() ? (j && clearTimeout(j), fe = !0, se = null, a(K, ["dbltap", "vdblclick"], H, {
|
|
25156
|
+
x: de[0],
|
|
25157
|
+
y: de[1]
|
|
25158
|
+
})) : (j = setTimeout(function() {
|
|
25159
25159
|
fe || a(K, ["onetap", "voneclick"], H, {
|
|
25160
|
-
x:
|
|
25161
|
-
y:
|
|
25160
|
+
x: de[0],
|
|
25161
|
+
y: de[1]
|
|
25162
25162
|
});
|
|
25163
|
-
},
|
|
25163
|
+
}, ne.multiClickDebounceTime()), se = H.timeStamp)), K != null && !t.dragData.didDrag && K._private.selectable && qn < t.touchTapThreshold2 && !t.pinching && (ne.selectionType() === "single" ? (ne.$(r).unmerge(K).unselect(["tapunselect"]), K.select(["tapselect"])) : K.selected() ? K.unselect(["tapunselect"]) : K.select(["tapselect"]), t.redrawHint("eles", !0)), t.touchData.singleTouchMoved = !0;
|
|
25164
25164
|
}
|
|
25165
25165
|
}
|
|
25166
25166
|
}
|
|
25167
|
-
for (var St = 0; St <
|
|
25168
|
-
Ce[St] =
|
|
25167
|
+
for (var St = 0; St < de.length; St++)
|
|
25168
|
+
Ce[St] = de[St];
|
|
25169
25169
|
t.dragData.didDrag = !1, H.touches.length === 0 && (t.touchData.dragDelta = [], t.touchData.startPosition = [null, null, null, null, null, null], t.touchData.startGPosition = null, t.touchData.didSelect = !1), H.touches.length < 2 && (H.touches.length === 1 && (t.touchData.startGPosition = [H.touches[0].clientX, H.touches[0].clientY]), t.pinching = !1, t.redrawHint("eles", !0), t.redraw());
|
|
25170
25170
|
}, !1), typeof TouchEvent > "u") {
|
|
25171
|
-
var
|
|
25171
|
+
var ge = [], me = function(H) {
|
|
25172
25172
|
return {
|
|
25173
25173
|
clientX: H.clientX,
|
|
25174
25174
|
clientY: H.clientY,
|
|
@@ -25185,38 +25185,38 @@ Pi.load = function() {
|
|
|
25185
25185
|
}, be = function(H) {
|
|
25186
25186
|
return {
|
|
25187
25187
|
event: H,
|
|
25188
|
-
touch:
|
|
25188
|
+
touch: me(H)
|
|
25189
25189
|
};
|
|
25190
25190
|
}, Re = function(H) {
|
|
25191
|
-
|
|
25191
|
+
ge.push(be(H));
|
|
25192
25192
|
}, Le = function(H) {
|
|
25193
|
-
for (var K = 0; K <
|
|
25194
|
-
var te =
|
|
25193
|
+
for (var K = 0; K < ge.length; K++) {
|
|
25194
|
+
var te = ge[K];
|
|
25195
25195
|
if (te.event.pointerId === H.pointerId) {
|
|
25196
|
-
|
|
25196
|
+
ge.splice(K, 1);
|
|
25197
25197
|
return;
|
|
25198
25198
|
}
|
|
25199
25199
|
}
|
|
25200
|
-
},
|
|
25201
|
-
var K =
|
|
25200
|
+
}, Se = function(H) {
|
|
25201
|
+
var K = ge.filter(function(te) {
|
|
25202
25202
|
return te.event.pointerId === H.pointerId;
|
|
25203
25203
|
})[0];
|
|
25204
|
-
K.event = H, K.touch =
|
|
25204
|
+
K.event = H, K.touch = me(H);
|
|
25205
25205
|
}, De = function(H) {
|
|
25206
|
-
H.touches =
|
|
25206
|
+
H.touches = ge.map(function(K) {
|
|
25207
25207
|
return K.touch;
|
|
25208
25208
|
});
|
|
25209
25209
|
}, ye = function(H) {
|
|
25210
25210
|
return H.pointerType === "mouse" || H.pointerType === 4;
|
|
25211
25211
|
};
|
|
25212
25212
|
t.registerBinding(t.container, "pointerdown", function(Ae) {
|
|
25213
|
-
ye(Ae) || (Ae.preventDefault(), Re(Ae), De(Ae),
|
|
25213
|
+
ye(Ae) || (Ae.preventDefault(), Re(Ae), De(Ae), ue(Ae));
|
|
25214
25214
|
}), t.registerBinding(t.container, "pointerup", function(Ae) {
|
|
25215
|
-
ye(Ae) || (Le(Ae), De(Ae),
|
|
25215
|
+
ye(Ae) || (Le(Ae), De(Ae), he(Ae));
|
|
25216
25216
|
}), t.registerBinding(t.container, "pointercancel", function(Ae) {
|
|
25217
|
-
ye(Ae) || (Le(Ae), De(Ae),
|
|
25217
|
+
ye(Ae) || (Le(Ae), De(Ae), le(Ae));
|
|
25218
25218
|
}), t.registerBinding(t.container, "pointermove", function(Ae) {
|
|
25219
|
-
ye(Ae) || (Ae.preventDefault(),
|
|
25219
|
+
ye(Ae) || (Ae.preventDefault(), Se(Ae), De(Ae), ae(Ae));
|
|
25220
25220
|
});
|
|
25221
25221
|
}
|
|
25222
25222
|
};
|
|
@@ -26694,18 +26694,18 @@ La.drawNode = function(t, e, r) {
|
|
|
26694
26694
|
var ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : k;
|
|
26695
26695
|
i.colorStrokeStyle(t, V[0], V[1], V[2], ye);
|
|
26696
26696
|
}, J = function(ye, Ae, H, K) {
|
|
26697
|
-
var te = i.nodePathCache = i.nodePathCache || [], re = Mx(H === "polygon" ? H + "," + K.join(",") : H, "" + Ae, "" + ye, "" + q),
|
|
26698
|
-
return
|
|
26699
|
-
path:
|
|
26700
|
-
cacheHit:
|
|
26697
|
+
var te = i.nodePathCache = i.nodePathCache || [], re = Mx(H === "polygon" ? H + "," + K.join(",") : H, "" + Ae, "" + ye, "" + q), ne = te[re], pe, de = !1;
|
|
26698
|
+
return ne != null ? (pe = ne, de = !0, u.pathCache = pe) : (pe = new Path2D(), te[re] = u.pathCache = pe), {
|
|
26699
|
+
path: pe,
|
|
26700
|
+
cacheHit: de
|
|
26701
26701
|
};
|
|
26702
|
-
}, Y = e.pstyle("shape").strValue,
|
|
26702
|
+
}, Y = e.pstyle("shape").strValue, W = e.pstyle("shape-polygon-points").pfValue;
|
|
26703
26703
|
if (d) {
|
|
26704
26704
|
t.translate(c.x, c.y);
|
|
26705
|
-
var
|
|
26706
|
-
h =
|
|
26705
|
+
var oe = J(o, s, Y, W);
|
|
26706
|
+
h = oe.path, v = oe.cacheHit;
|
|
26707
26707
|
}
|
|
26708
|
-
var
|
|
26708
|
+
var ie = function() {
|
|
26709
26709
|
if (!v) {
|
|
26710
26710
|
var ye = c;
|
|
26711
26711
|
d && (ye = {
|
|
@@ -26714,7 +26714,7 @@ La.drawNode = function(t, e, r) {
|
|
|
26714
26714
|
}), i.nodeShapes[i.getNodeShape(e)].draw(h || t, ye.x, ye.y, o, s, q, u);
|
|
26715
26715
|
}
|
|
26716
26716
|
d ? t.fill(h) : t.fill();
|
|
26717
|
-
},
|
|
26717
|
+
}, Ue = function() {
|
|
26718
26718
|
for (var ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : f, Ae = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, H = l.backgrounding, K = 0, te = 0; te < C.length; te++) {
|
|
26719
26719
|
var re = e.cy().style().getIndexedStyle(e, "background-image-containment", "value", te);
|
|
26720
26720
|
if (Ae && re === "over" || !Ae && re === "inside") {
|
|
@@ -26724,16 +26724,16 @@ La.drawNode = function(t, e, r) {
|
|
|
26724
26724
|
y[te] && C[te].complete && !C[te].error && (K++, i.drawInscribedImage(t, C[te], e, te, ye));
|
|
26725
26725
|
}
|
|
26726
26726
|
l.backgrounding = K !== F, H !== l.backgrounding && e.updateStyle(!1);
|
|
26727
|
-
},
|
|
26727
|
+
}, ue = function() {
|
|
26728
26728
|
var ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, Ae = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : f;
|
|
26729
26729
|
i.hasPie(e) && (i.drawPie(t, e, Ae), ye && (d || i.nodeShapes[i.getNodeShape(e)].draw(t, c.x, c.y, o, s, q, u)));
|
|
26730
|
-
},
|
|
26730
|
+
}, ae = function() {
|
|
26731
26731
|
var ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, Ae = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : f;
|
|
26732
26732
|
i.hasStripe(e) && (t.save(), d ? t.clip(u.pathCache) : (i.nodeShapes[i.getNodeShape(e)].draw(t, c.x, c.y, o, s, q, u), t.clip()), i.drawStripe(t, e, Ae), t.restore(), ye && (d || i.nodeShapes[i.getNodeShape(e)].draw(t, c.x, c.y, o, s, q, u)));
|
|
26733
|
-
},
|
|
26733
|
+
}, le = function() {
|
|
26734
26734
|
var ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : f, Ae = (T > 0 ? T : -T) * ye, H = T > 0 ? 0 : 255;
|
|
26735
26735
|
T !== 0 && (i.colorFillStyle(t, H, H, H, Ae), d ? t.fill(h) : t.fill());
|
|
26736
|
-
},
|
|
26736
|
+
}, he = function() {
|
|
26737
26737
|
if (U > 0) {
|
|
26738
26738
|
if (t.lineWidth = U, t.lineCap = R, t.lineJoin = L, t.setLineDash)
|
|
26739
26739
|
switch (O) {
|
|
@@ -26787,59 +26787,59 @@ La.drawNode = function(t, e, r) {
|
|
|
26787
26787
|
});
|
|
26788
26788
|
var Ae = i.getNodeShape(e), H = U;
|
|
26789
26789
|
P === "inside" && (H = 0), P === "outside" && (H *= 2);
|
|
26790
|
-
var K = (o + H + (_ + G)) / o, te = (s + H + (_ + G)) / s, re = o * K,
|
|
26790
|
+
var K = (o + H + (_ + G)) / o, te = (s + H + (_ + G)) / s, re = o * K, ne = s * te, pe = i.nodeShapes[Ae].points, de;
|
|
26791
26791
|
if (d) {
|
|
26792
|
-
var Ce = J(re,
|
|
26793
|
-
|
|
26792
|
+
var Ce = J(re, ne, Ae, pe);
|
|
26793
|
+
de = Ce.path;
|
|
26794
26794
|
}
|
|
26795
26795
|
if (Ae === "ellipse")
|
|
26796
|
-
i.drawEllipsePath(
|
|
26796
|
+
i.drawEllipsePath(de || t, ye.x, ye.y, re, ne);
|
|
26797
26797
|
else if (["round-diamond", "round-heptagon", "round-hexagon", "round-octagon", "round-pentagon", "round-polygon", "round-triangle", "round-tag"].includes(Ae)) {
|
|
26798
26798
|
var Ee = 0, Ie = 0, Pe = 0;
|
|
26799
|
-
Ae === "round-diamond" ? Ee = (H + G + _) * 1.4 : Ae === "round-heptagon" ? (Ee = (H + G + _) * 1.075, Pe = -(H / 2 + G + _) / 35) : Ae === "round-hexagon" ? Ee = (H + G + _) * 1.12 : Ae === "round-pentagon" ? (Ee = (H + G + _) * 1.13, Pe = -(H / 2 + G + _) / 15) : Ae === "round-tag" ? (Ee = (H + G + _) * 1.12, Ie = (H / 2 + _ + G) * 0.07) : Ae === "round-triangle" && (Ee = (H + G + _) * (Math.PI / 2), Pe = -(H + G / 2 + _) / Math.PI), Ee !== 0 && (K = (o + Ee) / o, re = o * K, ["round-hexagon", "round-tag"].includes(Ae) || (te = (s + Ee) / s,
|
|
26800
|
-
for (var He = re / 2, Te =
|
|
26799
|
+
Ae === "round-diamond" ? Ee = (H + G + _) * 1.4 : Ae === "round-heptagon" ? (Ee = (H + G + _) * 1.075, Pe = -(H / 2 + G + _) / 35) : Ae === "round-hexagon" ? Ee = (H + G + _) * 1.12 : Ae === "round-pentagon" ? (Ee = (H + G + _) * 1.13, Pe = -(H / 2 + G + _) / 15) : Ae === "round-tag" ? (Ee = (H + G + _) * 1.12, Ie = (H / 2 + _ + G) * 0.07) : Ae === "round-triangle" && (Ee = (H + G + _) * (Math.PI / 2), Pe = -(H + G / 2 + _) / Math.PI), Ee !== 0 && (K = (o + Ee) / o, re = o * K, ["round-hexagon", "round-tag"].includes(Ae) || (te = (s + Ee) / s, ne = s * te)), q = q === "auto" ? Gx(re, ne) : q;
|
|
26800
|
+
for (var He = re / 2, Te = ne / 2, Ne = q + (H + _ + G) / 2, Be = new Array(pe.length / 2), Xe = new Array(pe.length / 2), at = 0; at < pe.length / 2; at++)
|
|
26801
26801
|
Be[at] = {
|
|
26802
|
-
x: ye.x + Ie + He *
|
|
26803
|
-
y: ye.y + Pe + Te *
|
|
26802
|
+
x: ye.x + Ie + He * pe[at * 2],
|
|
26803
|
+
y: ye.y + Pe + Te * pe[at * 2 + 1]
|
|
26804
26804
|
};
|
|
26805
26805
|
var sr, Ut, _t, Lt, zt = Be.length;
|
|
26806
26806
|
for (Ut = Be[zt - 1], sr = 0; sr < zt; sr++)
|
|
26807
26807
|
_t = Be[sr % zt], Lt = Be[(sr + 1) % zt], Xe[sr] = pm(Ut, _t, Lt, Ne), Ut = _t, _t = Lt;
|
|
26808
|
-
i.drawRoundPolygonPath(
|
|
26808
|
+
i.drawRoundPolygonPath(de || t, ye.x + Ie, ye.y + Pe, o * K, s * te, pe, Xe);
|
|
26809
26809
|
} else if (["roundrectangle", "round-rectangle"].includes(Ae))
|
|
26810
|
-
q = q === "auto" ? Ea(re,
|
|
26810
|
+
q = q === "auto" ? Ea(re, ne) : q, i.drawRoundRectanglePath(de || t, ye.x, ye.y, re, ne, q + (H + _ + G) / 2);
|
|
26811
26811
|
else if (["cutrectangle", "cut-rectangle"].includes(Ae))
|
|
26812
|
-
q = q === "auto" ? Am() : q, i.drawCutRectanglePath(
|
|
26812
|
+
q = q === "auto" ? Am() : q, i.drawCutRectanglePath(de || t, ye.x, ye.y, re, ne, null, q + (H + _ + G) / 4);
|
|
26813
26813
|
else if (["bottomroundrectangle", "bottom-round-rectangle"].includes(Ae))
|
|
26814
|
-
q = q === "auto" ? Ea(re,
|
|
26814
|
+
q = q === "auto" ? Ea(re, ne) : q, i.drawBottomRoundRectanglePath(de || t, ye.x, ye.y, re, ne, q + (H + _ + G) / 2);
|
|
26815
26815
|
else if (Ae === "barrel")
|
|
26816
|
-
i.drawBarrelPath(
|
|
26816
|
+
i.drawBarrelPath(de || t, ye.x, ye.y, re, ne);
|
|
26817
26817
|
else if (Ae.startsWith("polygon") || ["rhomboid", "right-rhomboid", "round-tag", "tag", "vee"].includes(Ae)) {
|
|
26818
26818
|
var qn = (H + _ + G) / o;
|
|
26819
|
-
|
|
26819
|
+
pe = xu(Fu(pe, qn)), i.drawPolygonPath(de || t, ye.x, ye.y, o, s, pe);
|
|
26820
26820
|
} else {
|
|
26821
26821
|
var St = (H + _ + G) / o;
|
|
26822
|
-
|
|
26822
|
+
pe = xu(Fu(pe, -St)), i.drawPolygonPath(de || t, ye.x, ye.y, o, s, pe);
|
|
26823
26823
|
}
|
|
26824
|
-
if (d ? t.stroke(
|
|
26824
|
+
if (d ? t.stroke(de) : t.stroke(), X === "double") {
|
|
26825
26825
|
t.lineWidth = H / 3;
|
|
26826
26826
|
var Qn = t.globalCompositeOperation;
|
|
26827
|
-
t.globalCompositeOperation = "destination-out", d ? t.stroke(
|
|
26827
|
+
t.globalCompositeOperation = "destination-out", d ? t.stroke(de) : t.stroke(), t.globalCompositeOperation = Qn;
|
|
26828
26828
|
}
|
|
26829
26829
|
t.setLineDash && t.setLineDash([]);
|
|
26830
26830
|
}
|
|
26831
|
-
},
|
|
26831
|
+
}, j = function() {
|
|
26832
26832
|
a && i.drawNodeOverlay(t, e, c, o, s);
|
|
26833
|
-
},
|
|
26833
|
+
}, se = function() {
|
|
26834
26834
|
a && i.drawNodeUnderlay(t, e, c, o, s);
|
|
26835
|
-
},
|
|
26835
|
+
}, ge = function() {
|
|
26836
26836
|
i.drawElementText(t, e, null, n);
|
|
26837
|
-
},
|
|
26838
|
-
if (
|
|
26839
|
-
var be = e.pstyle("ghost-offset-x").pfValue, Re = e.pstyle("ghost-offset-y").pfValue, Le = e.pstyle("ghost-opacity").value,
|
|
26840
|
-
t.translate(be, Re), z(), fe(), ee(Le * Q),
|
|
26837
|
+
}, me = e.pstyle("ghost").value === "yes";
|
|
26838
|
+
if (me) {
|
|
26839
|
+
var be = e.pstyle("ghost-offset-x").pfValue, Re = e.pstyle("ghost-offset-y").pfValue, Le = e.pstyle("ghost-opacity").value, Se = Le * f;
|
|
26840
|
+
t.translate(be, Re), z(), fe(), ee(Le * Q), ie(), Ue(Se, !0), Z(Le * M), he(), ue(T !== 0 || U !== 0), ae(T !== 0 || U !== 0), Ue(Se, !1), le(Se), t.translate(-be, -Re);
|
|
26841
26841
|
}
|
|
26842
|
-
d && t.translate(-c.x, -c.y),
|
|
26842
|
+
d && t.translate(-c.x, -c.y), se(), d && t.translate(c.x, c.y), z(), fe(), ee(), ie(), Ue(f, !0), Z(), he(), ue(T !== 0 || U !== 0), ae(T !== 0 || U !== 0), Ue(f, !1), le(), d && t.translate(-c.x, -c.y), ge(), j(), r && t.translate(g.x1, g.y1);
|
|
26843
26843
|
}
|
|
26844
26844
|
};
|
|
26845
26845
|
var jF = function(e) {
|
|
@@ -27060,16 +27060,16 @@ dr.render = function(t) {
|
|
|
27060
27060
|
}, x = e.prevViewport, E = x === void 0 || w.zoom !== x.zoom || w.pan.x !== x.pan.x || w.pan.y !== x.pan.y;
|
|
27061
27061
|
!E && !(v && !h) && (e.motionBlurPxRatio = 1), o && (F = o), y *= s, F.x *= s, F.y *= s;
|
|
27062
27062
|
var b = e.getCachedZSortedEles();
|
|
27063
|
-
function T(Z, z, J, Y,
|
|
27064
|
-
var
|
|
27065
|
-
Z.globalCompositeOperation = "destination-out", e.colorFillStyle(Z, 255, 255, 255, e.motionBlurTransparency), Z.fillRect(z, J, Y,
|
|
27063
|
+
function T(Z, z, J, Y, W) {
|
|
27064
|
+
var oe = Z.globalCompositeOperation;
|
|
27065
|
+
Z.globalCompositeOperation = "destination-out", e.colorFillStyle(Z, 255, 255, 255, e.motionBlurTransparency), Z.fillRect(z, J, Y, W), Z.globalCompositeOperation = oe;
|
|
27066
27066
|
}
|
|
27067
27067
|
function U(Z, z) {
|
|
27068
|
-
var J, Y,
|
|
27068
|
+
var J, Y, W, oe;
|
|
27069
27069
|
!e.clearingMotionBlur && (Z === l.bufferContexts[e.MOTIONBLUR_BUFFER_NODE] || Z === l.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG]) ? (J = {
|
|
27070
27070
|
x: C.x * d,
|
|
27071
27071
|
y: C.y * d
|
|
27072
|
-
}, Y = m * d,
|
|
27072
|
+
}, Y = m * d, W = e.canvasWidth * d, oe = e.canvasHeight * d) : (J = F, Y = y, W = e.canvasWidth, oe = e.canvasHeight), Z.setTransform(1, 0, 0, 1, 0, 0), z === "motionBlur" ? T(Z, 0, 0, W, oe) : !n && (z === void 0 || z) && Z.clearRect(0, 0, W, oe), a || (Z.translate(J.x, J.y), Z.scale(Y, Y)), o && Z.translate(o.x, o.y), i && Z.scale(i, i);
|
|
27073
27073
|
}
|
|
27074
27074
|
if (c || (e.textureDrawLastFrame = !1), c) {
|
|
27075
27075
|
if (e.textureDrawLastFrame = !0, !e.textureCache) {
|
|
@@ -27111,15 +27111,15 @@ dr.render = function(t) {
|
|
|
27111
27111
|
if (this.drawSelectionRectangle(t, U), f && d !== 1) {
|
|
27112
27112
|
var X = l.contexts[e.NODE], k = e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE], G = l.contexts[e.DRAG], q = e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG], ee = function(z, J, Y) {
|
|
27113
27113
|
z.setTransform(1, 0, 0, 1, 0, 0), Y || !g ? z.clearRect(0, 0, e.canvasWidth, e.canvasHeight) : T(z, 0, 0, e.canvasWidth, e.canvasHeight);
|
|
27114
|
-
var
|
|
27114
|
+
var W = d;
|
|
27115
27115
|
z.drawImage(
|
|
27116
27116
|
J,
|
|
27117
27117
|
// img
|
|
27118
27118
|
0,
|
|
27119
27119
|
0,
|
|
27120
27120
|
// sx, sy
|
|
27121
|
-
e.canvasWidth *
|
|
27122
|
-
e.canvasHeight *
|
|
27121
|
+
e.canvasWidth * W,
|
|
27122
|
+
e.canvasHeight * W,
|
|
27123
27123
|
// sw, sh
|
|
27124
27124
|
0,
|
|
27125
27125
|
0,
|
|
@@ -29111,14 +29111,14 @@ function iT(t) {
|
|
|
29111
29111
|
return z[0]._private.sourceLabelStyleKey;
|
|
29112
29112
|
}, m = function(z) {
|
|
29113
29113
|
return z[0]._private.targetLabelStyleKey;
|
|
29114
|
-
}, y = function(z, J, Y,
|
|
29115
|
-
return e.drawElement(z, J, Y, !1, !1,
|
|
29116
|
-
}, C = function(z, J, Y,
|
|
29117
|
-
return e.drawElementText(z, J, Y,
|
|
29118
|
-
}, F = function(z, J, Y,
|
|
29119
|
-
return e.drawElementText(z, J, Y,
|
|
29120
|
-
}, w = function(z, J, Y,
|
|
29121
|
-
return e.drawElementText(z, J, Y,
|
|
29114
|
+
}, y = function(z, J, Y, W, oe) {
|
|
29115
|
+
return e.drawElement(z, J, Y, !1, !1, oe);
|
|
29116
|
+
}, C = function(z, J, Y, W, oe) {
|
|
29117
|
+
return e.drawElementText(z, J, Y, W, "main", oe);
|
|
29118
|
+
}, F = function(z, J, Y, W, oe) {
|
|
29119
|
+
return e.drawElementText(z, J, Y, W, "source", oe);
|
|
29120
|
+
}, w = function(z, J, Y, W, oe) {
|
|
29121
|
+
return e.drawElementText(z, J, Y, W, "target", oe);
|
|
29122
29122
|
}, x = function(z) {
|
|
29123
29123
|
return z.boundingBox(), z[0]._private.bodyBounds;
|
|
29124
29124
|
}, E = function(z) {
|
|
@@ -29132,16 +29132,16 @@ function iT(t) {
|
|
|
29132
29132
|
}, Q = function(z) {
|
|
29133
29133
|
return d(x(z));
|
|
29134
29134
|
}, I = function(z, J, Y) {
|
|
29135
|
-
var
|
|
29135
|
+
var W = z ? z + "-" : "";
|
|
29136
29136
|
return {
|
|
29137
|
-
x: J.x + Y.pstyle(
|
|
29138
|
-
y: J.y + Y.pstyle(
|
|
29137
|
+
x: J.x + Y.pstyle(W + "text-margin-x").pfValue,
|
|
29138
|
+
y: J.y + Y.pstyle(W + "text-margin-y").pfValue
|
|
29139
29139
|
};
|
|
29140
29140
|
}, O = function(z, J, Y) {
|
|
29141
|
-
var
|
|
29141
|
+
var W = z[0]._private.rscratch;
|
|
29142
29142
|
return {
|
|
29143
|
-
x:
|
|
29144
|
-
y:
|
|
29143
|
+
x: W[J],
|
|
29144
|
+
y: W[Y]
|
|
29145
29145
|
};
|
|
29146
29146
|
}, L = function(z) {
|
|
29147
29147
|
return I("", O(z, "labelX", "labelY"), z);
|
|
@@ -29210,8 +29210,8 @@ function iT(t) {
|
|
|
29210
29210
|
e.onUpdateEleCalcs(function(z, J) {
|
|
29211
29211
|
V.invalidateElements(J), X.invalidateElements(J), k.invalidateElements(J), G.invalidateElements(J), q.invalidateElements(J);
|
|
29212
29212
|
for (var Y = 0; Y < J.length; Y++) {
|
|
29213
|
-
var
|
|
29214
|
-
|
|
29213
|
+
var W = J[Y]._private;
|
|
29214
|
+
W.oldBackgroundTimestamp = W.backgroundTimestamp;
|
|
29215
29215
|
}
|
|
29216
29216
|
});
|
|
29217
29217
|
var ee = function(z) {
|
|
@@ -37720,12 +37720,12 @@ function BX(t) {
|
|
|
37720
37720
|
var Q, I = y === "y" ? br : Cr, O = y === "y" ? Gr : $r, L = y === "y" ? "height" : "width", R = F[y], P = R + p[I], N = R - p[O], D = d ? -x[L] / 2 : 0, M = B === Ti ? w[L] : x[L], _ = B === Ti ? -x[L] : -w[L], V = e.elements.arrow, X = d && V ? Um(V) : {
|
|
37721
37721
|
width: 0,
|
|
37722
37722
|
height: 0
|
|
37723
|
-
}, k = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : yQ(), G = k[I], q = k[O], ee = Io(0, w[L], X[L]), Z = m ? w[L] / 2 - D - ee - G - b.mainAxis : M - ee - G - b.mainAxis, z = m ? -w[L] / 2 + D + ee + q + b.mainAxis : _ + ee + q + b.mainAxis, J = e.elements.arrow && Ss(e.elements.arrow), Y = J ? y === "y" ? J.clientTop || 0 : J.clientLeft || 0 : 0,
|
|
37724
|
-
F[y] =
|
|
37723
|
+
}, k = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : yQ(), G = k[I], q = k[O], ee = Io(0, w[L], X[L]), Z = m ? w[L] / 2 - D - ee - G - b.mainAxis : M - ee - G - b.mainAxis, z = m ? -w[L] / 2 + D + ee + q + b.mainAxis : _ + ee + q + b.mainAxis, J = e.elements.arrow && Ss(e.elements.arrow), Y = J ? y === "y" ? J.clientTop || 0 : J.clientLeft || 0 : 0, W = (Q = T?.[y]) != null ? Q : 0, oe = R + Z - W - Y, ie = R + z - W, Ue = Io(d ? $u(P, oe) : P, R, d ? uA(N, ie) : N);
|
|
37724
|
+
F[y] = Ue, U[y] = Ue - R;
|
|
37725
37725
|
}
|
|
37726
37726
|
if (o) {
|
|
37727
|
-
var
|
|
37728
|
-
F[C] = Le, U[C] = Le -
|
|
37727
|
+
var ue, ae = y === "x" ? br : Cr, le = y === "x" ? Gr : $r, he = F[C], fe = C === "y" ? "height" : "width", j = he + p[ae], se = he - p[le], ge = [br, Cr].indexOf(g) !== -1, me = (ue = T?.[C]) != null ? ue : 0, be = ge ? j : he - w[fe] - x[fe] - me + b.altAxis, Re = ge ? he + w[fe] + x[fe] - me - b.altAxis : se, Le = d && ge ? GY(be, he, Re) : Io(d ? be : j, he, d ? Re : se);
|
|
37728
|
+
F[C] = Le, U[C] = Le - he;
|
|
37729
37729
|
}
|
|
37730
37730
|
e.modifiersData[n] = U;
|
|
37731
37731
|
}
|
|
@@ -38292,7 +38292,7 @@ function MQ(t) {
|
|
|
38292
38292
|
MQ.$$tippy = !0;
|
|
38293
38293
|
var az = 1, Ul = [], Lv = [];
|
|
38294
38294
|
function Az(t, e) {
|
|
38295
|
-
var r = xE(t, Object.assign({}, Fr, OQ(BE(e)))), n, a, A, i = !1, o = !1, s = !1, l = !1, u, c, f, d = [], h = mE(
|
|
38295
|
+
var r = xE(t, Object.assign({}, Fr, OQ(BE(e)))), n, a, A, i = !1, o = !1, s = !1, l = !1, u, c, f, d = [], h = mE(oe, r.interactiveDebounce), v, p = az++, g = null, B = PX(r.plugins), m = {
|
|
38296
38296
|
// Is the instance currently enabled?
|
|
38297
38297
|
isEnabled: !0,
|
|
38298
38298
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -38316,11 +38316,11 @@ function Az(t, e) {
|
|
|
38316
38316
|
clearDelayTimeouts: be,
|
|
38317
38317
|
setProps: Re,
|
|
38318
38318
|
setContent: Le,
|
|
38319
|
-
show:
|
|
38319
|
+
show: Se,
|
|
38320
38320
|
hide: De,
|
|
38321
38321
|
hideWithInteractivity: ye,
|
|
38322
|
-
enable:
|
|
38323
|
-
disable:
|
|
38322
|
+
enable: ge,
|
|
38323
|
+
disable: me,
|
|
38324
38324
|
unmount: Ae,
|
|
38325
38325
|
destroy: H
|
|
38326
38326
|
};
|
|
@@ -38331,7 +38331,7 @@ function Az(t, e) {
|
|
|
38331
38331
|
var x = B.map(function(K) {
|
|
38332
38332
|
return K.fn(y);
|
|
38333
38333
|
}), E = t.hasAttribute("aria-expanded");
|
|
38334
|
-
return J(), D(), R(), P("onCreate", [y]), r.showOnCreate &&
|
|
38334
|
+
return J(), D(), R(), P("onCreate", [y]), r.showOnCreate && j(), F.addEventListener("mouseenter", function() {
|
|
38335
38335
|
y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
|
|
38336
38336
|
}), F.addEventListener("mouseleave", function() {
|
|
38337
38337
|
y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && I().addEventListener("mousemove", h);
|
|
@@ -38364,24 +38364,24 @@ function Az(t, e) {
|
|
|
38364
38364
|
K === void 0 && (K = !1), F.style.pointerEvents = y.props.interactive && !K ? "" : "none", F.style.zIndex = "" + y.props.zIndex;
|
|
38365
38365
|
}
|
|
38366
38366
|
function P(K, te, re) {
|
|
38367
|
-
if (re === void 0 && (re = !0), x.forEach(function(
|
|
38368
|
-
|
|
38367
|
+
if (re === void 0 && (re = !0), x.forEach(function(pe) {
|
|
38368
|
+
pe[K] && pe[K].apply(pe, te);
|
|
38369
38369
|
}), re) {
|
|
38370
|
-
var
|
|
38371
|
-
(
|
|
38370
|
+
var ne;
|
|
38371
|
+
(ne = y.props)[K].apply(ne, te);
|
|
38372
38372
|
}
|
|
38373
38373
|
}
|
|
38374
38374
|
function N() {
|
|
38375
38375
|
var K = y.props.aria;
|
|
38376
38376
|
if (K.content) {
|
|
38377
|
-
var te = "aria-" + K.content, re = F.id,
|
|
38378
|
-
|
|
38379
|
-
var
|
|
38377
|
+
var te = "aria-" + K.content, re = F.id, ne = qA(y.props.triggerTarget || t);
|
|
38378
|
+
ne.forEach(function(pe) {
|
|
38379
|
+
var de = pe.getAttribute(te);
|
|
38380
38380
|
if (y.state.isVisible)
|
|
38381
|
-
|
|
38381
|
+
pe.setAttribute(te, de ? de + " " + re : re);
|
|
38382
38382
|
else {
|
|
38383
|
-
var Ce =
|
|
38384
|
-
Ce ?
|
|
38383
|
+
var Ce = de && de.replace(re, "").trim();
|
|
38384
|
+
Ce ? pe.setAttribute(te, Ce) : pe.removeAttribute(te);
|
|
38385
38385
|
}
|
|
38386
38386
|
});
|
|
38387
38387
|
}
|
|
@@ -38440,19 +38440,19 @@ function Az(t, e) {
|
|
|
38440
38440
|
}
|
|
38441
38441
|
function Z(K, te) {
|
|
38442
38442
|
var re = O().box;
|
|
38443
|
-
function
|
|
38444
|
-
|
|
38443
|
+
function ne(pe) {
|
|
38444
|
+
pe.target === re && (Ov(re, "remove", ne), te());
|
|
38445
38445
|
}
|
|
38446
38446
|
if (K === 0)
|
|
38447
38447
|
return te();
|
|
38448
|
-
Ov(re, "remove", c), Ov(re, "add",
|
|
38448
|
+
Ov(re, "remove", c), Ov(re, "add", ne), c = ne;
|
|
38449
38449
|
}
|
|
38450
38450
|
function z(K, te, re) {
|
|
38451
38451
|
re === void 0 && (re = !1);
|
|
38452
|
-
var
|
|
38453
|
-
|
|
38454
|
-
|
|
38455
|
-
node:
|
|
38452
|
+
var ne = qA(y.props.triggerTarget || t);
|
|
38453
|
+
ne.forEach(function(pe) {
|
|
38454
|
+
pe.addEventListener(K, te, re), d.push({
|
|
38455
|
+
node: pe,
|
|
38456
38456
|
eventType: K,
|
|
38457
38457
|
handler: te,
|
|
38458
38458
|
options: re
|
|
@@ -38460,75 +38460,75 @@ function Az(t, e) {
|
|
|
38460
38460
|
});
|
|
38461
38461
|
}
|
|
38462
38462
|
function J() {
|
|
38463
|
-
T() && (z("touchstart",
|
|
38463
|
+
T() && (z("touchstart", W, {
|
|
38464
38464
|
passive: !0
|
|
38465
|
-
}), z("touchend",
|
|
38465
|
+
}), z("touchend", ie, {
|
|
38466
38466
|
passive: !0
|
|
38467
38467
|
})), RX(y.props.trigger).forEach(function(K) {
|
|
38468
38468
|
if (K !== "manual")
|
|
38469
|
-
switch (z(K,
|
|
38469
|
+
switch (z(K, W), K) {
|
|
38470
38470
|
case "mouseenter":
|
|
38471
|
-
z("mouseleave",
|
|
38471
|
+
z("mouseleave", ie);
|
|
38472
38472
|
break;
|
|
38473
38473
|
case "focus":
|
|
38474
|
-
z(WX ? "focusout" : "blur",
|
|
38474
|
+
z(WX ? "focusout" : "blur", Ue);
|
|
38475
38475
|
break;
|
|
38476
38476
|
case "focusin":
|
|
38477
|
-
z("focusout",
|
|
38477
|
+
z("focusout", Ue);
|
|
38478
38478
|
break;
|
|
38479
38479
|
}
|
|
38480
38480
|
});
|
|
38481
38481
|
}
|
|
38482
38482
|
function Y() {
|
|
38483
38483
|
d.forEach(function(K) {
|
|
38484
|
-
var te = K.node, re = K.eventType,
|
|
38485
|
-
te.removeEventListener(re,
|
|
38484
|
+
var te = K.node, re = K.eventType, ne = K.handler, pe = K.options;
|
|
38485
|
+
te.removeEventListener(re, ne, pe);
|
|
38486
38486
|
}), d = [];
|
|
38487
38487
|
}
|
|
38488
|
-
function
|
|
38488
|
+
function W(K) {
|
|
38489
38489
|
var te, re = !1;
|
|
38490
|
-
if (!(!y.state.isEnabled ||
|
|
38491
|
-
var
|
|
38492
|
-
u = K, v = K.currentTarget, D(), !y.state.isVisible && NX(K) && Ul.forEach(function(
|
|
38493
|
-
return
|
|
38494
|
-
}), K.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || i) && y.props.hideOnClick !== !1 && y.state.isVisible ? re = !0 :
|
|
38490
|
+
if (!(!y.state.isEnabled || ue(K) || o)) {
|
|
38491
|
+
var ne = ((te = u) == null ? void 0 : te.type) === "focus";
|
|
38492
|
+
u = K, v = K.currentTarget, D(), !y.state.isVisible && NX(K) && Ul.forEach(function(pe) {
|
|
38493
|
+
return pe(K);
|
|
38494
|
+
}), K.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || i) && y.props.hideOnClick !== !1 && y.state.isVisible ? re = !0 : j(K), K.type === "click" && (i = !re), re && !ne && se(K);
|
|
38495
38495
|
}
|
|
38496
38496
|
}
|
|
38497
|
-
function
|
|
38497
|
+
function oe(K) {
|
|
38498
38498
|
var te = K.target, re = Q().contains(te) || F.contains(te);
|
|
38499
38499
|
if (!(K.type === "mousemove" && re)) {
|
|
38500
|
-
var
|
|
38501
|
-
var
|
|
38500
|
+
var ne = fe().concat(F).map(function(pe) {
|
|
38501
|
+
var de, Ce = pe._tippy, Ee = (de = Ce.popperInstance) == null ? void 0 : de.state;
|
|
38502
38502
|
return Ee ? {
|
|
38503
|
-
popperRect:
|
|
38503
|
+
popperRect: pe.getBoundingClientRect(),
|
|
38504
38504
|
popperState: Ee,
|
|
38505
38505
|
props: r
|
|
38506
38506
|
} : null;
|
|
38507
38507
|
}).filter(Boolean);
|
|
38508
|
-
GX(
|
|
38508
|
+
GX(ne, K) && (M(), se(K));
|
|
38509
38509
|
}
|
|
38510
38510
|
}
|
|
38511
|
-
function
|
|
38512
|
-
var te =
|
|
38511
|
+
function ie(K) {
|
|
38512
|
+
var te = ue(K) || y.props.trigger.indexOf("click") >= 0 && i;
|
|
38513
38513
|
if (!te) {
|
|
38514
38514
|
if (y.props.interactive) {
|
|
38515
38515
|
y.hideWithInteractivity(K);
|
|
38516
38516
|
return;
|
|
38517
38517
|
}
|
|
38518
|
-
|
|
38518
|
+
se(K);
|
|
38519
38519
|
}
|
|
38520
38520
|
}
|
|
38521
|
-
function
|
|
38522
|
-
y.props.trigger.indexOf("focusin") < 0 && K.target !== Q() || y.props.interactive && K.relatedTarget && F.contains(K.relatedTarget) ||
|
|
38521
|
+
function Ue(K) {
|
|
38522
|
+
y.props.trigger.indexOf("focusin") < 0 && K.target !== Q() || y.props.interactive && K.relatedTarget && F.contains(K.relatedTarget) || se(K);
|
|
38523
38523
|
}
|
|
38524
|
-
function
|
|
38524
|
+
function ue(K) {
|
|
38525
38525
|
return dn.isTouch ? T() !== K.type.indexOf("touch") >= 0 : !1;
|
|
38526
38526
|
}
|
|
38527
|
-
function
|
|
38528
|
-
|
|
38529
|
-
var K = y.props, te = K.popperOptions, re = K.placement,
|
|
38530
|
-
getBoundingClientRect:
|
|
38531
|
-
contextElement:
|
|
38527
|
+
function ae() {
|
|
38528
|
+
le();
|
|
38529
|
+
var K = y.props, te = K.popperOptions, re = K.placement, ne = K.offset, pe = K.getReferenceClientRect, de = K.moveTransition, Ce = U() ? pg(F).arrow : null, Ee = pe ? {
|
|
38530
|
+
getBoundingClientRect: pe,
|
|
38531
|
+
contextElement: pe.contextElement || Q()
|
|
38532
38532
|
} : t, Ie = {
|
|
38533
38533
|
name: "$$tippy",
|
|
38534
38534
|
enabled: !0,
|
|
@@ -38546,7 +38546,7 @@ function Az(t, e) {
|
|
|
38546
38546
|
}, Pe = [{
|
|
38547
38547
|
name: "offset",
|
|
38548
38548
|
options: {
|
|
38549
|
-
offset:
|
|
38549
|
+
offset: ne
|
|
38550
38550
|
}
|
|
38551
38551
|
}, {
|
|
38552
38552
|
name: "preventOverflow",
|
|
@@ -38566,7 +38566,7 @@ function Az(t, e) {
|
|
|
38566
38566
|
}, {
|
|
38567
38567
|
name: "computeStyles",
|
|
38568
38568
|
options: {
|
|
38569
|
-
adaptive: !
|
|
38569
|
+
adaptive: !de
|
|
38570
38570
|
}
|
|
38571
38571
|
}, Ie];
|
|
38572
38572
|
U() && Ce && Pe.push({
|
|
@@ -38581,12 +38581,12 @@ function Az(t, e) {
|
|
|
38581
38581
|
modifiers: Pe
|
|
38582
38582
|
}));
|
|
38583
38583
|
}
|
|
38584
|
-
function
|
|
38584
|
+
function le() {
|
|
38585
38585
|
y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
|
|
38586
38586
|
}
|
|
38587
|
-
function
|
|
38587
|
+
function he() {
|
|
38588
38588
|
var K = y.props.appendTo, te, re = Q();
|
|
38589
|
-
y.props.interactive && K === QQ || K === "parent" ? te = re.parentNode : te = UQ(K, [re]), te.contains(F) || te.appendChild(F), y.state.isMounted = !0,
|
|
38589
|
+
y.props.interactive && K === QQ || K === "parent" ? te = re.parentNode : te = UQ(K, [re]), te.contains(F) || te.appendChild(F), y.state.isMounted = !0, ae(), process.env.NODE_ENV !== "production" && Mn(y.props.interactive && K === Fr.appendTo && re.nextElementSibling !== F, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
38590
38590
|
|
|
38591
38591
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
38592
38592
|
|
|
@@ -38597,14 +38597,14 @@ function Az(t, e) {
|
|
|
38597
38597
|
function fe() {
|
|
38598
38598
|
return Yu(F.querySelectorAll("[data-tippy-root]"));
|
|
38599
38599
|
}
|
|
38600
|
-
function
|
|
38600
|
+
function j(K) {
|
|
38601
38601
|
y.clearDelayTimeouts(), K && P("onTrigger", [y, K]), k();
|
|
38602
|
-
var te = L(!0), re = b(),
|
|
38603
|
-
dn.isTouch &&
|
|
38602
|
+
var te = L(!0), re = b(), ne = re[0], pe = re[1];
|
|
38603
|
+
dn.isTouch && ne === "hold" && pe && (te = pe), te ? n = setTimeout(function() {
|
|
38604
38604
|
y.show();
|
|
38605
38605
|
}, te) : y.show();
|
|
38606
38606
|
}
|
|
38607
|
-
function
|
|
38607
|
+
function se(K) {
|
|
38608
38608
|
if (y.clearDelayTimeouts(), P("onUntrigger", [y, K]), !y.state.isVisible) {
|
|
38609
38609
|
G();
|
|
38610
38610
|
return;
|
|
@@ -38618,10 +38618,10 @@ function Az(t, e) {
|
|
|
38618
38618
|
});
|
|
38619
38619
|
}
|
|
38620
38620
|
}
|
|
38621
|
-
function
|
|
38621
|
+
function ge() {
|
|
38622
38622
|
y.state.isEnabled = !0;
|
|
38623
38623
|
}
|
|
38624
|
-
function
|
|
38624
|
+
function me() {
|
|
38625
38625
|
y.hide(), y.state.isEnabled = !1;
|
|
38626
38626
|
}
|
|
38627
38627
|
function be() {
|
|
@@ -38633,10 +38633,10 @@ function Az(t, e) {
|
|
|
38633
38633
|
var te = y.props, re = xE(t, Object.assign({}, te, BE(K), {
|
|
38634
38634
|
ignoreAttributes: !0
|
|
38635
38635
|
}));
|
|
38636
|
-
y.props = re, J(), te.interactiveDebounce !== re.interactiveDebounce && (M(), h = mE(
|
|
38637
|
-
|
|
38638
|
-
}) : re.triggerTarget && t.removeAttribute("aria-expanded"), D(), R(), w && w(te, re), y.popperInstance && (
|
|
38639
|
-
requestAnimationFrame(
|
|
38636
|
+
y.props = re, J(), te.interactiveDebounce !== re.interactiveDebounce && (M(), h = mE(oe, re.interactiveDebounce)), te.triggerTarget && !re.triggerTarget ? qA(te.triggerTarget).forEach(function(ne) {
|
|
38637
|
+
ne.removeAttribute("aria-expanded");
|
|
38638
|
+
}) : re.triggerTarget && t.removeAttribute("aria-expanded"), D(), R(), w && w(te, re), y.popperInstance && (ae(), fe().forEach(function(ne) {
|
|
38639
|
+
requestAnimationFrame(ne._tippy.popperInstance.forceUpdate);
|
|
38640
38640
|
})), P("onAfterUpdate", [y, K]);
|
|
38641
38641
|
}
|
|
38642
38642
|
}
|
|
@@ -38645,12 +38645,12 @@ function Az(t, e) {
|
|
|
38645
38645
|
content: K
|
|
38646
38646
|
});
|
|
38647
38647
|
}
|
|
38648
|
-
function
|
|
38648
|
+
function Se() {
|
|
38649
38649
|
process.env.NODE_ENV !== "production" && Mn(y.state.isDestroyed, YA("show"));
|
|
38650
|
-
var K = y.state.isVisible, te = y.state.isDestroyed, re = !y.state.isEnabled,
|
|
38651
|
-
if (!(K || te || re ||
|
|
38650
|
+
var K = y.state.isVisible, te = y.state.isDestroyed, re = !y.state.isEnabled, ne = dn.isTouch && !y.props.touch, pe = Iv(y.props.duration, 0, Fr.duration);
|
|
38651
|
+
if (!(K || te || re || ne) && !Q().hasAttribute("disabled") && (P("onShow", [y], !1), y.props.onShow(y) !== !1)) {
|
|
38652
38652
|
if (y.state.isVisible = !0, U() && (F.style.visibility = "visible"), R(), k(), y.state.isMounted || (F.style.transition = "none"), U()) {
|
|
38653
|
-
var
|
|
38653
|
+
var de = O(), Ce = de.box, Ee = de.content;
|
|
38654
38654
|
Dv([Ce, Ee], 0);
|
|
38655
38655
|
}
|
|
38656
38656
|
f = function() {
|
|
@@ -38658,31 +38658,31 @@ function Az(t, e) {
|
|
|
38658
38658
|
if (!(!y.state.isVisible || l)) {
|
|
38659
38659
|
if (l = !0, F.offsetHeight, F.style.transition = y.props.moveTransition, U() && y.props.animation) {
|
|
38660
38660
|
var He = O(), Te = He.box, Ne = He.content;
|
|
38661
|
-
Dv([Te, Ne],
|
|
38661
|
+
Dv([Te, Ne], pe), wE([Te, Ne], "visible");
|
|
38662
38662
|
}
|
|
38663
|
-
N(), D(), yE(Lv, y), (Pe = y.popperInstance) == null || Pe.forceUpdate(), P("onMount", [y]), y.props.animation && U() && ee(
|
|
38663
|
+
N(), D(), yE(Lv, y), (Pe = y.popperInstance) == null || Pe.forceUpdate(), P("onMount", [y]), y.props.animation && U() && ee(pe, function() {
|
|
38664
38664
|
y.state.isShown = !0, P("onShown", [y]);
|
|
38665
38665
|
});
|
|
38666
38666
|
}
|
|
38667
|
-
},
|
|
38667
|
+
}, he();
|
|
38668
38668
|
}
|
|
38669
38669
|
}
|
|
38670
38670
|
function De() {
|
|
38671
38671
|
process.env.NODE_ENV !== "production" && Mn(y.state.isDestroyed, YA("hide"));
|
|
38672
|
-
var K = !y.state.isVisible, te = y.state.isDestroyed, re = !y.state.isEnabled,
|
|
38672
|
+
var K = !y.state.isVisible, te = y.state.isDestroyed, re = !y.state.isEnabled, ne = Iv(y.props.duration, 1, Fr.duration);
|
|
38673
38673
|
if (!(K || te || re) && (P("onHide", [y], !1), y.props.onHide(y) !== !1)) {
|
|
38674
38674
|
if (y.state.isVisible = !1, y.state.isShown = !1, l = !1, i = !1, U() && (F.style.visibility = "hidden"), M(), G(), R(!0), U()) {
|
|
38675
|
-
var
|
|
38676
|
-
y.props.animation && (Dv([
|
|
38675
|
+
var pe = O(), de = pe.box, Ce = pe.content;
|
|
38676
|
+
y.props.animation && (Dv([de, Ce], ne), wE([de, Ce], "hidden"));
|
|
38677
38677
|
}
|
|
38678
|
-
N(), D(), y.props.animation ? U() && q(
|
|
38678
|
+
N(), D(), y.props.animation ? U() && q(ne, y.unmount) : y.unmount();
|
|
38679
38679
|
}
|
|
38680
38680
|
}
|
|
38681
38681
|
function ye(K) {
|
|
38682
38682
|
process.env.NODE_ENV !== "production" && Mn(y.state.isDestroyed, YA("hideWithInteractivity")), I().addEventListener("mousemove", h), yE(Ul, h), h(K);
|
|
38683
38683
|
}
|
|
38684
38684
|
function Ae() {
|
|
38685
|
-
process.env.NODE_ENV !== "production" && Mn(y.state.isDestroyed, YA("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (
|
|
38685
|
+
process.env.NODE_ENV !== "production" && Mn(y.state.isDestroyed, YA("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (le(), fe().forEach(function(K) {
|
|
38686
38686
|
K._tippy.unmount();
|
|
38687
38687
|
}), F.parentNode && F.parentNode.removeChild(F), Lv = Lv.filter(function(K) {
|
|
38688
38688
|
return K !== y;
|
|
@@ -38845,7 +38845,7 @@ const oz = (t) => {
|
|
|
38845
38845
|
}
|
|
38846
38846
|
}
|
|
38847
38847
|
]
|
|
38848
|
-
}))), Xu = /* @__PURE__ */
|
|
38848
|
+
}))), Xu = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
38849
38849
|
const n = nn({
|
|
38850
38850
|
props: e,
|
|
38851
38851
|
name: "MuiSvgIcon"
|
|
@@ -38860,7 +38860,7 @@ const oz = (t) => {
|
|
|
38860
38860
|
titleAccess: c,
|
|
38861
38861
|
viewBox: f = "0 0 24 24",
|
|
38862
38862
|
...d
|
|
38863
|
-
} = n, h = /* @__PURE__ */
|
|
38863
|
+
} = n, h = /* @__PURE__ */ ve.isValidElement(a) && a.type === "svg", v = {
|
|
38864
38864
|
...n,
|
|
38865
38865
|
color: i,
|
|
38866
38866
|
component: o,
|
|
@@ -38971,7 +38971,7 @@ function An(t, e) {
|
|
|
38971
38971
|
children: t
|
|
38972
38972
|
});
|
|
38973
38973
|
}
|
|
38974
|
-
return process.env.NODE_ENV !== "production" && (r.displayName = `${e}Icon`), r.muiName = Xu.muiName, /* @__PURE__ */
|
|
38974
|
+
return process.env.NODE_ENV !== "production" && (r.displayName = `${e}Icon`), r.muiName = Xu.muiName, /* @__PURE__ */ ve.memo(/* @__PURE__ */ ve.forwardRef(r));
|
|
38975
38975
|
}
|
|
38976
38976
|
function QE(t) {
|
|
38977
38977
|
return t && t.ownerDocument || document;
|
|
@@ -38987,36 +38987,36 @@ function RQ(t) {
|
|
|
38987
38987
|
state: a = "value"
|
|
38988
38988
|
} = t, {
|
|
38989
38989
|
current: A
|
|
38990
|
-
} =
|
|
38990
|
+
} = ve.useRef(e !== void 0), [i, o] = ve.useState(r), s = A ? e : i;
|
|
38991
38991
|
if (process.env.NODE_ENV !== "production") {
|
|
38992
|
-
|
|
38992
|
+
ve.useEffect(() => {
|
|
38993
38993
|
A !== (e !== void 0) && console.error([`MUI: A component is changing the ${A ? "" : "un"}controlled ${a} state of ${n} to be ${A ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
38994
38994
|
`));
|
|
38995
38995
|
}, [a, n, e]);
|
|
38996
38996
|
const {
|
|
38997
38997
|
current: u
|
|
38998
|
-
} =
|
|
38999
|
-
|
|
38998
|
+
} = ve.useRef(r);
|
|
38999
|
+
ve.useEffect(() => {
|
|
39000
39000
|
!A && !Object.is(u, r) && console.error([`MUI: A component is changing the default ${a} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
39001
39001
|
`));
|
|
39002
39002
|
}, [JSON.stringify(r)]);
|
|
39003
39003
|
}
|
|
39004
|
-
const l =
|
|
39004
|
+
const l = ve.useCallback((u) => {
|
|
39005
39005
|
A || o(u);
|
|
39006
39006
|
}, []);
|
|
39007
39007
|
return [s, l];
|
|
39008
39008
|
}
|
|
39009
39009
|
function gi(t) {
|
|
39010
|
-
const e =
|
|
39010
|
+
const e = ve.useRef(t);
|
|
39011
39011
|
return Mo(() => {
|
|
39012
39012
|
e.current = t;
|
|
39013
|
-
}),
|
|
39013
|
+
}), ve.useRef((...r) => (
|
|
39014
39014
|
// @ts-expect-error hide `this`
|
|
39015
39015
|
(0, e.current)(...r)
|
|
39016
39016
|
)).current;
|
|
39017
39017
|
}
|
|
39018
39018
|
function Yn(...t) {
|
|
39019
|
-
const e =
|
|
39019
|
+
const e = ve.useRef(void 0), r = ve.useCallback((n) => {
|
|
39020
39020
|
const a = t.map((A) => {
|
|
39021
39021
|
if (A == null)
|
|
39022
39022
|
return null;
|
|
@@ -39034,7 +39034,7 @@ function Yn(...t) {
|
|
|
39034
39034
|
a.forEach((A) => A?.());
|
|
39035
39035
|
};
|
|
39036
39036
|
}, t);
|
|
39037
|
-
return
|
|
39037
|
+
return ve.useMemo(() => t.every((n) => n == null) ? null : (n) => {
|
|
39038
39038
|
e.current && (e.current(), e.current = void 0), n != null && (e.current = r(n));
|
|
39039
39039
|
}, t);
|
|
39040
39040
|
}
|
|
@@ -39126,7 +39126,7 @@ function zu(t) {
|
|
|
39126
39126
|
}
|
|
39127
39127
|
const SE = {};
|
|
39128
39128
|
function PQ(t, e) {
|
|
39129
|
-
const r =
|
|
39129
|
+
const r = ve.useRef(SE);
|
|
39130
39130
|
return r.current === SE && (r.current = t(e)), r;
|
|
39131
39131
|
}
|
|
39132
39132
|
class Wu {
|
|
@@ -39139,8 +39139,8 @@ class Wu {
|
|
|
39139
39139
|
return new Wu();
|
|
39140
39140
|
}
|
|
39141
39141
|
static use() {
|
|
39142
|
-
const e = PQ(Wu.create).current, [r, n] =
|
|
39143
|
-
return e.shouldMount = r, e.setShouldMount = n,
|
|
39142
|
+
const e = PQ(Wu.create).current, [r, n] = ve.useState(!1);
|
|
39143
|
+
return e.shouldMount = r, e.setShouldMount = n, ve.useEffect(e.mountEffect, [r]), e;
|
|
39144
39144
|
}
|
|
39145
39145
|
constructor() {
|
|
39146
39146
|
this.ref = {
|
|
@@ -39724,7 +39724,7 @@ Rm.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
39724
39724
|
Rm.defaultProps = Cz;
|
|
39725
39725
|
const Ez = [];
|
|
39726
39726
|
function xz(t) {
|
|
39727
|
-
|
|
39727
|
+
ve.useEffect(t, Ez);
|
|
39728
39728
|
}
|
|
39729
39729
|
class ef {
|
|
39730
39730
|
static create() {
|
|
@@ -39759,13 +39759,13 @@ function NQ(t) {
|
|
|
39759
39759
|
in: o,
|
|
39760
39760
|
onExited: s,
|
|
39761
39761
|
timeout: l
|
|
39762
|
-
} = t, [u, c] =
|
|
39762
|
+
} = t, [u, c] = ve.useState(!1), f = ft(e, r.ripple, r.rippleVisible, n && r.ripplePulsate), d = {
|
|
39763
39763
|
width: i,
|
|
39764
39764
|
height: i,
|
|
39765
39765
|
top: -(i / 2) + A,
|
|
39766
39766
|
left: -(i / 2) + a
|
|
39767
39767
|
}, h = ft(r.child, u && r.childLeaving, n && r.childPulsate);
|
|
39768
|
-
return !o && !u && c(!0),
|
|
39768
|
+
return !o && !u && c(!0), ve.useEffect(() => {
|
|
39769
39769
|
if (!o && s != null) {
|
|
39770
39770
|
const v = setTimeout(s, l);
|
|
39771
39771
|
return () => {
|
|
@@ -39912,7 +39912,7 @@ const Lr = rn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
39912
39912
|
animation-iteration-count: infinite;
|
|
39913
39913
|
animation-delay: 200ms;
|
|
39914
39914
|
}
|
|
39915
|
-
`, _Q = /* @__PURE__ */
|
|
39915
|
+
`, _Q = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
39916
39916
|
const n = nn({
|
|
39917
39917
|
props: e,
|
|
39918
39918
|
name: "MuiTouchRipple"
|
|
@@ -39921,11 +39921,11 @@ const Lr = rn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
39921
39921
|
classes: A = {},
|
|
39922
39922
|
className: i,
|
|
39923
39923
|
...o
|
|
39924
|
-
} = n, [s, l] =
|
|
39925
|
-
|
|
39924
|
+
} = n, [s, l] = ve.useState([]), u = ve.useRef(0), c = ve.useRef(null);
|
|
39925
|
+
ve.useEffect(() => {
|
|
39926
39926
|
c.current && (c.current(), c.current = null);
|
|
39927
39927
|
}, [s]);
|
|
39928
|
-
const f =
|
|
39928
|
+
const f = ve.useRef(!1), d = oi(), h = ve.useRef(null), v = ve.useRef(null), p = ve.useCallback((y) => {
|
|
39929
39929
|
const {
|
|
39930
39930
|
pulsate: C,
|
|
39931
39931
|
rippleX: F,
|
|
@@ -39948,7 +39948,7 @@ const Lr = rn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
39948
39948
|
rippleY: w,
|
|
39949
39949
|
rippleSize: x
|
|
39950
39950
|
}, u.current)]), u.current += 1, c.current = E;
|
|
39951
|
-
}, [A]), g =
|
|
39951
|
+
}, [A]), g = ve.useCallback((y = {}, C = {}, F = () => {
|
|
39952
39952
|
}) => {
|
|
39953
39953
|
const {
|
|
39954
39954
|
pulsate: w = !1,
|
|
@@ -40000,11 +40000,11 @@ const Lr = rn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
40000
40000
|
rippleSize: I,
|
|
40001
40001
|
cb: F
|
|
40002
40002
|
});
|
|
40003
|
-
}, [a, p, d]), B =
|
|
40003
|
+
}, [a, p, d]), B = ve.useCallback(() => {
|
|
40004
40004
|
g({}, {
|
|
40005
40005
|
pulsate: !0
|
|
40006
40006
|
});
|
|
40007
|
-
}, [g]), m =
|
|
40007
|
+
}, [g]), m = ve.useCallback((y, C) => {
|
|
40008
40008
|
if (d.clear(), y?.type === "touchend" && h.current) {
|
|
40009
40009
|
h.current(), h.current = null, d.start(0, () => {
|
|
40010
40010
|
m(y, C);
|
|
@@ -40013,7 +40013,7 @@ const Lr = rn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
40013
40013
|
}
|
|
40014
40014
|
h.current = null, l((F) => F.length > 0 ? F.slice(1) : F), c.current = C;
|
|
40015
40015
|
}, [d]);
|
|
40016
|
-
return
|
|
40016
|
+
return ve.useImperativeHandle(r, () => ({
|
|
40017
40017
|
pulsate: B,
|
|
40018
40018
|
start: g,
|
|
40019
40019
|
stop: m
|
|
@@ -40098,7 +40098,7 @@ const Oz = rn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Lz = (t) =
|
|
|
40098
40098
|
"@media print": {
|
|
40099
40099
|
colorAdjust: "exact"
|
|
40100
40100
|
}
|
|
40101
|
-
}), Pm = /* @__PURE__ */
|
|
40101
|
+
}), Pm = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
40102
40102
|
const n = nn({
|
|
40103
40103
|
props: e,
|
|
40104
40104
|
name: "MuiButtonBase"
|
|
@@ -40133,39 +40133,39 @@ const Oz = rn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Lz = (t) =
|
|
|
40133
40133
|
touchRippleRef: O,
|
|
40134
40134
|
type: L,
|
|
40135
40135
|
...R
|
|
40136
|
-
} = n, P =
|
|
40137
|
-
l && M && _(!1),
|
|
40136
|
+
} = n, P = ve.useRef(null), N = hz(), D = Yn(N.ref, O), [M, _] = ve.useState(!1);
|
|
40137
|
+
l && M && _(!1), ve.useImperativeHandle(a, () => ({
|
|
40138
40138
|
focusVisible: () => {
|
|
40139
40139
|
_(!0), P.current.focus();
|
|
40140
40140
|
}
|
|
40141
40141
|
}), []);
|
|
40142
40142
|
const V = N.shouldMount && !u && !l;
|
|
40143
|
-
|
|
40143
|
+
ve.useEffect(() => {
|
|
40144
40144
|
M && f && !u && N.pulsate();
|
|
40145
40145
|
}, [u, f, M, N]);
|
|
40146
|
-
const X = Ln(N, "start", w, c), k = Ln(N, "stop", g, c), G = Ln(N, "stop", B, c), q = Ln(N, "stop", E, c), ee = Ln(N, "stop", (
|
|
40147
|
-
M &&
|
|
40148
|
-
}, c), Z = Ln(N, "start", U, c), z = Ln(N, "stop", b, c), J = Ln(N, "stop", T, c), Y = Ln(N, "stop", (
|
|
40149
|
-
zu(
|
|
40150
|
-
}, !1),
|
|
40151
|
-
P.current || (P.current =
|
|
40152
|
-
}),
|
|
40153
|
-
const
|
|
40154
|
-
return s && s !== "button" && !(
|
|
40155
|
-
},
|
|
40156
|
-
f && !
|
|
40157
|
-
N.start(
|
|
40158
|
-
}),
|
|
40159
|
-
}),
|
|
40160
|
-
f &&
|
|
40161
|
-
N.pulsate(
|
|
40162
|
-
}), F && F(
|
|
40146
|
+
const X = Ln(N, "start", w, c), k = Ln(N, "stop", g, c), G = Ln(N, "stop", B, c), q = Ln(N, "stop", E, c), ee = Ln(N, "stop", (j) => {
|
|
40147
|
+
M && j.preventDefault(), x && x(j);
|
|
40148
|
+
}, c), Z = Ln(N, "start", U, c), z = Ln(N, "stop", b, c), J = Ln(N, "stop", T, c), Y = Ln(N, "stop", (j) => {
|
|
40149
|
+
zu(j.target) || _(!1), v && v(j);
|
|
40150
|
+
}, !1), W = gi((j) => {
|
|
40151
|
+
P.current || (P.current = j.currentTarget), zu(j.target) && (_(!0), y && y(j)), m && m(j);
|
|
40152
|
+
}), oe = () => {
|
|
40153
|
+
const j = P.current;
|
|
40154
|
+
return s && s !== "button" && !(j.tagName === "A" && j.href);
|
|
40155
|
+
}, ie = gi((j) => {
|
|
40156
|
+
f && !j.repeat && M && j.key === " " && N.stop(j, () => {
|
|
40157
|
+
N.start(j);
|
|
40158
|
+
}), j.target === j.currentTarget && oe() && j.key === " " && j.preventDefault(), C && C(j), j.target === j.currentTarget && oe() && j.key === "Enter" && !l && (j.preventDefault(), p && p(j));
|
|
40159
|
+
}), Ue = gi((j) => {
|
|
40160
|
+
f && j.key === " " && M && !j.defaultPrevented && N.stop(j, () => {
|
|
40161
|
+
N.pulsate(j);
|
|
40162
|
+
}), F && F(j), p && j.target === j.currentTarget && oe() && j.key === " " && !j.defaultPrevented && p(j);
|
|
40163
40163
|
});
|
|
40164
|
-
let
|
|
40165
|
-
|
|
40166
|
-
const
|
|
40167
|
-
|
|
40168
|
-
const
|
|
40164
|
+
let ue = s;
|
|
40165
|
+
ue === "button" && (R.href || R.to) && (ue = h);
|
|
40166
|
+
const ae = {};
|
|
40167
|
+
ue === "button" ? (ae.type = L === void 0 ? "button" : L, ae.disabled = l) : (!R.href && !R.to && (ae.role = "button"), l && (ae["aria-disabled"] = l));
|
|
40168
|
+
const le = Yn(r, P), he = {
|
|
40169
40169
|
...n,
|
|
40170
40170
|
centerRipple: A,
|
|
40171
40171
|
component: s,
|
|
@@ -40175,17 +40175,17 @@ const Oz = rn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Lz = (t) =
|
|
|
40175
40175
|
focusRipple: f,
|
|
40176
40176
|
tabIndex: Q,
|
|
40177
40177
|
focusVisible: M
|
|
40178
|
-
}, fe = Lz(
|
|
40178
|
+
}, fe = Lz(he);
|
|
40179
40179
|
return /* @__PURE__ */ $.jsxs(Mz, {
|
|
40180
|
-
as:
|
|
40180
|
+
as: ue,
|
|
40181
40181
|
className: ft(fe.root, o),
|
|
40182
|
-
ownerState:
|
|
40182
|
+
ownerState: he,
|
|
40183
40183
|
onBlur: Y,
|
|
40184
40184
|
onClick: p,
|
|
40185
40185
|
onContextMenu: k,
|
|
40186
|
-
onFocus:
|
|
40187
|
-
onKeyDown:
|
|
40188
|
-
onKeyUp:
|
|
40186
|
+
onFocus: W,
|
|
40187
|
+
onKeyDown: ie,
|
|
40188
|
+
onKeyUp: Ue,
|
|
40189
40189
|
onMouseDown: X,
|
|
40190
40190
|
onMouseLeave: ee,
|
|
40191
40191
|
onMouseUp: q,
|
|
@@ -40193,10 +40193,10 @@ const Oz = rn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Lz = (t) =
|
|
|
40193
40193
|
onTouchEnd: z,
|
|
40194
40194
|
onTouchMove: J,
|
|
40195
40195
|
onTouchStart: Z,
|
|
40196
|
-
ref:
|
|
40196
|
+
ref: le,
|
|
40197
40197
|
tabIndex: l ? -1 : Q,
|
|
40198
40198
|
type: L,
|
|
40199
|
-
...
|
|
40199
|
+
...ae,
|
|
40200
40200
|
...R,
|
|
40201
40201
|
children: [i, V ? /* @__PURE__ */ $.jsx(_Q, {
|
|
40202
40202
|
ref: D,
|
|
@@ -40369,9 +40369,9 @@ process.env.NODE_ENV !== "production" && (Pm.propTypes = {
|
|
|
40369
40369
|
function Rz(t) {
|
|
40370
40370
|
return Sr("MuiButton", t);
|
|
40371
40371
|
}
|
|
40372
|
-
const _a = rn("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge", "loading", "loadingWrapper", "loadingIconPlaceholder", "loadingIndicator", "loadingPositionCenter", "loadingPositionStart", "loadingPositionEnd"]), KQ = /* @__PURE__ */
|
|
40372
|
+
const _a = rn("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge", "loading", "loadingWrapper", "loadingIconPlaceholder", "loadingIndicator", "loadingPositionCenter", "loadingPositionStart", "loadingPositionEnd"]), KQ = /* @__PURE__ */ ve.createContext({});
|
|
40373
40373
|
process.env.NODE_ENV !== "production" && (KQ.displayName = "ButtonGroupContext");
|
|
40374
|
-
const VQ = /* @__PURE__ */
|
|
40374
|
+
const VQ = /* @__PURE__ */ ve.createContext(void 0);
|
|
40375
40375
|
process.env.NODE_ENV !== "production" && (VQ.displayName = "ButtonGroupButtonContext");
|
|
40376
40376
|
const Pz = (t) => {
|
|
40377
40377
|
const {
|
|
@@ -40813,8 +40813,8 @@ const Pz = (t) => {
|
|
|
40813
40813
|
display: "inline-block",
|
|
40814
40814
|
width: "1em",
|
|
40815
40815
|
height: "1em"
|
|
40816
|
-
}), ZA = /* @__PURE__ */
|
|
40817
|
-
const n =
|
|
40816
|
+
}), ZA = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
40817
|
+
const n = ve.useContext(KQ), a = ve.useContext(VQ), A = Lo(n, e), i = nn({
|
|
40818
40818
|
props: A,
|
|
40819
40819
|
name: "MuiButton"
|
|
40820
40820
|
}), {
|
|
@@ -41014,10 +41014,10 @@ process.env.NODE_ENV !== "production" && (ZA.propTypes = {
|
|
|
41014
41014
|
*/
|
|
41015
41015
|
variant: S.oneOfType([S.oneOf(["contained", "outlined", "text"]), S.string])
|
|
41016
41016
|
});
|
|
41017
|
-
const $Q = /* @__PURE__ */
|
|
41017
|
+
const $Q = /* @__PURE__ */ ve.createContext(void 0);
|
|
41018
41018
|
process.env.NODE_ENV !== "production" && ($Q.displayName = "FormControlContext");
|
|
41019
41019
|
function Kz() {
|
|
41020
|
-
return
|
|
41020
|
+
return ve.useContext($Q);
|
|
41021
41021
|
}
|
|
41022
41022
|
function Vz(t) {
|
|
41023
41023
|
return Sr("PrivateSwitchBase", t);
|
|
@@ -41202,7 +41202,7 @@ const Yz = (t) => {
|
|
|
41202
41202
|
margin: 0,
|
|
41203
41203
|
padding: 0,
|
|
41204
41204
|
zIndex: 1
|
|
41205
|
-
}), WQ = /* @__PURE__ */
|
|
41205
|
+
}), WQ = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
41206
41206
|
const {
|
|
41207
41207
|
autoFocus: n,
|
|
41208
41208
|
checked: a,
|
|
@@ -41521,7 +41521,7 @@ const Mv = rn("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
|
|
|
41521
41521
|
}
|
|
41522
41522
|
}
|
|
41523
41523
|
}]
|
|
41524
|
-
}))), tW = /* @__PURE__ */ $.jsx(jz, {}), rW = /* @__PURE__ */ $.jsx(Wz, {}), nW = /* @__PURE__ */ $.jsx(qz, {}), au = /* @__PURE__ */
|
|
41524
|
+
}))), tW = /* @__PURE__ */ $.jsx(jz, {}), rW = /* @__PURE__ */ $.jsx(Wz, {}), nW = /* @__PURE__ */ $.jsx(qz, {}), au = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
41525
41525
|
const n = nn({
|
|
41526
41526
|
props: e,
|
|
41527
41527
|
name: "MuiCheckbox"
|
|
@@ -41557,10 +41557,10 @@ const Mv = rn("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
|
|
|
41557
41557
|
ownerState: B,
|
|
41558
41558
|
additionalProps: {
|
|
41559
41559
|
type: "checkbox",
|
|
41560
|
-
icon: /* @__PURE__ */
|
|
41560
|
+
icon: /* @__PURE__ */ ve.cloneElement(p, {
|
|
41561
41561
|
fontSize: p.props.fontSize ?? u
|
|
41562
41562
|
}),
|
|
41563
|
-
checkedIcon: /* @__PURE__ */
|
|
41563
|
+
checkedIcon: /* @__PURE__ */ ve.cloneElement(g, {
|
|
41564
41564
|
fontSize: g.props.fontSize ?? u
|
|
41565
41565
|
}),
|
|
41566
41566
|
disableRipple: c,
|
|
@@ -41999,7 +41999,7 @@ const iW = {
|
|
|
41999
41999
|
body1: "p",
|
|
42000
42000
|
body2: "p",
|
|
42001
42001
|
inherit: "p"
|
|
42002
|
-
}, ei = /* @__PURE__ */
|
|
42002
|
+
}, ei = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
42003
42003
|
const {
|
|
42004
42004
|
color: n,
|
|
42005
42005
|
...a
|
|
@@ -42157,7 +42157,7 @@ function jQ(t, e, r, n, a) {
|
|
|
42157
42157
|
const km = Ii(S.element, jQ);
|
|
42158
42158
|
km.isRequired = Ii(S.element.isRequired, jQ);
|
|
42159
42159
|
function Hm(t) {
|
|
42160
|
-
return parseInt(
|
|
42160
|
+
return parseInt(ve.version, 10) >= 19 ? t?.props?.ref || null : t?.ref || null;
|
|
42161
42161
|
}
|
|
42162
42162
|
const fW = (t) => t.scrollTop;
|
|
42163
42163
|
function ME(t, e) {
|
|
@@ -42184,7 +42184,7 @@ const dW = {
|
|
|
42184
42184
|
opacity: 1,
|
|
42185
42185
|
transform: "none"
|
|
42186
42186
|
}
|
|
42187
|
-
}, Rv = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), qu = /* @__PURE__ */
|
|
42187
|
+
}, Rv = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), qu = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
42188
42188
|
const {
|
|
42189
42189
|
addEndListener: n,
|
|
42190
42190
|
appear: a = !0,
|
|
@@ -42202,7 +42202,7 @@ const dW = {
|
|
|
42202
42202
|
// eslint-disable-next-line react/prop-types
|
|
42203
42203
|
TransitionComponent: p = jn,
|
|
42204
42204
|
...g
|
|
42205
|
-
} = e, B = oi(), m =
|
|
42205
|
+
} = e, B = oi(), m = ve.useRef(), y = Ig(), C = ve.useRef(null), F = Yn(C, Hm(A), r), w = (O) => (L) => {
|
|
42206
42206
|
if (O) {
|
|
42207
42207
|
const R = C.current;
|
|
42208
42208
|
L === void 0 ? O(R) : O(R, L);
|
|
@@ -42269,7 +42269,7 @@ const dW = {
|
|
|
42269
42269
|
children: (O, {
|
|
42270
42270
|
ownerState: L,
|
|
42271
42271
|
...R
|
|
42272
|
-
}) => /* @__PURE__ */
|
|
42272
|
+
}) => /* @__PURE__ */ ve.cloneElement(A, {
|
|
42273
42273
|
style: {
|
|
42274
42274
|
opacity: 0,
|
|
42275
42275
|
transform: wg(0.75),
|
|
@@ -42386,12 +42386,12 @@ function hW(t) {
|
|
|
42386
42386
|
function vW(t) {
|
|
42387
42387
|
return typeof t == "function" ? t() : t;
|
|
42388
42388
|
}
|
|
42389
|
-
const Ju = /* @__PURE__ */
|
|
42389
|
+
const Ju = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
42390
42390
|
const {
|
|
42391
42391
|
children: n,
|
|
42392
42392
|
container: a,
|
|
42393
42393
|
disablePortal: A = !1
|
|
42394
|
-
} = e, [i, o] =
|
|
42394
|
+
} = e, [i, o] = ve.useState(null), s = Yn(/* @__PURE__ */ ve.isValidElement(n) ? Hm(n) : null, r);
|
|
42395
42395
|
if (Mo(() => {
|
|
42396
42396
|
A || o(vW(a) || document.body);
|
|
42397
42397
|
}, [a, A]), Mo(() => {
|
|
@@ -42400,11 +42400,11 @@ const Ju = /* @__PURE__ */ he.forwardRef(function(e, r) {
|
|
|
42400
42400
|
UE(r, null);
|
|
42401
42401
|
};
|
|
42402
42402
|
}, [r, i, A]), A) {
|
|
42403
|
-
if (/* @__PURE__ */
|
|
42403
|
+
if (/* @__PURE__ */ ve.isValidElement(n)) {
|
|
42404
42404
|
const l = {
|
|
42405
42405
|
ref: s
|
|
42406
42406
|
};
|
|
42407
|
-
return /* @__PURE__ */
|
|
42407
|
+
return /* @__PURE__ */ ve.cloneElement(n, l);
|
|
42408
42408
|
}
|
|
42409
42409
|
return n;
|
|
42410
42410
|
}
|
|
@@ -42473,7 +42473,7 @@ const yW = (t) => {
|
|
|
42473
42473
|
return tn({
|
|
42474
42474
|
root: ["root"]
|
|
42475
42475
|
}, pW, e);
|
|
42476
|
-
}, BW = {}, wW = /* @__PURE__ */
|
|
42476
|
+
}, BW = {}, wW = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
42477
42477
|
const {
|
|
42478
42478
|
anchorEl: n,
|
|
42479
42479
|
children: a,
|
|
@@ -42491,14 +42491,14 @@ const yW = (t) => {
|
|
|
42491
42491
|
ownerState: v,
|
|
42492
42492
|
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
42493
42493
|
...p
|
|
42494
|
-
} = e, g =
|
|
42494
|
+
} = e, g = ve.useRef(null), B = Yn(g, r), m = ve.useRef(null), y = Yn(m, c), C = ve.useRef(y);
|
|
42495
42495
|
Mo(() => {
|
|
42496
42496
|
C.current = y;
|
|
42497
|
-
}, [y]),
|
|
42498
|
-
const F = gW(l, A), [w, x] =
|
|
42499
|
-
|
|
42497
|
+
}, [y]), ve.useImperativeHandle(c, () => m.current, []);
|
|
42498
|
+
const F = gW(l, A), [w, x] = ve.useState(F), [E, b] = ve.useState(Zu(n));
|
|
42499
|
+
ve.useEffect(() => {
|
|
42500
42500
|
m.current && m.current.forceUpdate();
|
|
42501
|
-
}),
|
|
42501
|
+
}), ve.useEffect(() => {
|
|
42502
42502
|
n && b(Zu(n));
|
|
42503
42503
|
}, [n]), Mo(() => {
|
|
42504
42504
|
if (!E || !s)
|
|
@@ -42560,7 +42560,7 @@ const yW = (t) => {
|
|
|
42560
42560
|
...I,
|
|
42561
42561
|
children: typeof a == "function" ? a(T) : a
|
|
42562
42562
|
});
|
|
42563
|
-
}), qQ = /* @__PURE__ */
|
|
42563
|
+
}), qQ = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
42564
42564
|
const {
|
|
42565
42565
|
anchorEl: n,
|
|
42566
42566
|
children: a,
|
|
@@ -42578,7 +42578,7 @@ const yW = (t) => {
|
|
|
42578
42578
|
slotProps: p = {},
|
|
42579
42579
|
slots: g = {},
|
|
42580
42580
|
...B
|
|
42581
|
-
} = e, [m, y] =
|
|
42581
|
+
} = e, [m, y] = ve.useState(!0), C = () => {
|
|
42582
42582
|
y(!1);
|
|
42583
42583
|
}, F = () => {
|
|
42584
42584
|
y(!0);
|
|
@@ -42751,7 +42751,7 @@ process.env.NODE_ENV !== "production" && (qQ.propTypes = {
|
|
|
42751
42751
|
const bW = Ct(qQ, {
|
|
42752
42752
|
name: "MuiPopper",
|
|
42753
42753
|
slot: "Root"
|
|
42754
|
-
})({}), Nm = /* @__PURE__ */
|
|
42754
|
+
})({}), Nm = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
42755
42755
|
const n = n1(), a = nn({
|
|
42756
42756
|
props: e,
|
|
42757
42757
|
name: "MuiPopper"
|
|
@@ -43204,7 +43204,7 @@ function Il(t, e) {
|
|
|
43204
43204
|
e && e(r, ...n), t(r, ...n);
|
|
43205
43205
|
};
|
|
43206
43206
|
}
|
|
43207
|
-
const si = /* @__PURE__ */
|
|
43207
|
+
const si = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
43208
43208
|
const n = nn({
|
|
43209
43209
|
props: e,
|
|
43210
43210
|
name: "MuiTooltip"
|
|
@@ -43238,9 +43238,9 @@ const si = /* @__PURE__ */ he.forwardRef(function(e, r) {
|
|
|
43238
43238
|
TransitionComponent: I,
|
|
43239
43239
|
TransitionProps: O,
|
|
43240
43240
|
...L
|
|
43241
|
-
} = n, R = /* @__PURE__ */
|
|
43241
|
+
} = n, R = /* @__PURE__ */ ve.isValidElement(A) ? A : /* @__PURE__ */ $.jsx("span", {
|
|
43242
43242
|
children: A
|
|
43243
|
-
}), P = Ig(), N = n1(), [D, M] =
|
|
43243
|
+
}), P = Ig(), N = n1(), [D, M] = ve.useState(), [_, V] = ve.useState(null), X = ve.useRef(!1), k = f || g, G = oi(), q = oi(), ee = oi(), Z = oi(), [z, J] = RQ({
|
|
43244
43244
|
controlled: w,
|
|
43245
43245
|
default: !1,
|
|
43246
43246
|
name: "Tooltip",
|
|
@@ -43250,19 +43250,19 @@ const si = /* @__PURE__ */ he.forwardRef(function(e, r) {
|
|
|
43250
43250
|
if (process.env.NODE_ENV !== "production") {
|
|
43251
43251
|
const {
|
|
43252
43252
|
current: Be
|
|
43253
|
-
} =
|
|
43254
|
-
|
|
43253
|
+
} = ve.useRef(w !== void 0);
|
|
43254
|
+
ve.useEffect(() => {
|
|
43255
43255
|
D && D.disabled && !Be && Q !== "" && D.tagName.toLowerCase() === "button" && console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(`
|
|
43256
43256
|
`));
|
|
43257
43257
|
}, [Q, D, Be]);
|
|
43258
43258
|
}
|
|
43259
|
-
const
|
|
43260
|
-
|
|
43259
|
+
const W = a1(B), oe = ve.useRef(), ie = gi(() => {
|
|
43260
|
+
oe.current !== void 0 && (document.body.style.WebkitUserSelect = oe.current, oe.current = void 0), Z.clear();
|
|
43261
43261
|
});
|
|
43262
|
-
|
|
43263
|
-
const
|
|
43262
|
+
ve.useEffect(() => ie, [ie]);
|
|
43263
|
+
const Ue = (Be) => {
|
|
43264
43264
|
RE.clear(), Sl = !0, J(!0), F && !Y && F(Be);
|
|
43265
|
-
},
|
|
43265
|
+
}, ue = gi(
|
|
43266
43266
|
/**
|
|
43267
43267
|
* @param {React.SyntheticEvent | Event} event
|
|
43268
43268
|
*/
|
|
@@ -43273,68 +43273,68 @@ const si = /* @__PURE__ */ he.forwardRef(function(e, r) {
|
|
|
43273
43273
|
X.current = !1;
|
|
43274
43274
|
});
|
|
43275
43275
|
}
|
|
43276
|
-
),
|
|
43276
|
+
), ae = (Be) => {
|
|
43277
43277
|
X.current && Be.type !== "touchstart" || (D && D.removeAttribute("title"), q.clear(), ee.clear(), h || Sl && v ? q.start(Sl ? v : h, () => {
|
|
43278
|
-
|
|
43279
|
-
}) :
|
|
43280
|
-
},
|
|
43278
|
+
Ue(Be);
|
|
43279
|
+
}) : Ue(Be));
|
|
43280
|
+
}, le = (Be) => {
|
|
43281
43281
|
q.clear(), ee.start(m, () => {
|
|
43282
|
-
|
|
43282
|
+
ue(Be);
|
|
43283
43283
|
});
|
|
43284
|
-
}, [,
|
|
43285
|
-
zu(Be.target) || (
|
|
43286
|
-
},
|
|
43287
|
-
D || M(Be.currentTarget), zu(Be.target) && (
|
|
43288
|
-
},
|
|
43284
|
+
}, [, he] = ve.useState(!1), fe = (Be) => {
|
|
43285
|
+
zu(Be.target) || (he(!1), le(Be));
|
|
43286
|
+
}, j = (Be) => {
|
|
43287
|
+
D || M(Be.currentTarget), zu(Be.target) && (he(!0), ae(Be));
|
|
43288
|
+
}, se = (Be) => {
|
|
43289
43289
|
X.current = !0;
|
|
43290
43290
|
const Xe = R.props;
|
|
43291
43291
|
Xe.onTouchStart && Xe.onTouchStart(Be);
|
|
43292
|
-
},
|
|
43293
|
-
|
|
43294
|
-
document.body.style.WebkitUserSelect =
|
|
43292
|
+
}, ge = (Be) => {
|
|
43293
|
+
se(Be), ee.clear(), G.clear(), ie(), oe.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Z.start(p, () => {
|
|
43294
|
+
document.body.style.WebkitUserSelect = oe.current, ae(Be);
|
|
43295
43295
|
});
|
|
43296
|
-
},
|
|
43297
|
-
R.props.onTouchEnd && R.props.onTouchEnd(Be),
|
|
43298
|
-
|
|
43296
|
+
}, me = (Be) => {
|
|
43297
|
+
R.props.onTouchEnd && R.props.onTouchEnd(Be), ie(), ee.start(y, () => {
|
|
43298
|
+
ue(Be);
|
|
43299
43299
|
});
|
|
43300
43300
|
};
|
|
43301
|
-
|
|
43301
|
+
ve.useEffect(() => {
|
|
43302
43302
|
if (!Y)
|
|
43303
43303
|
return;
|
|
43304
43304
|
function Be(Xe) {
|
|
43305
|
-
Xe.key === "Escape" &&
|
|
43305
|
+
Xe.key === "Escape" && ue(Xe);
|
|
43306
43306
|
}
|
|
43307
43307
|
return document.addEventListener("keydown", Be), () => {
|
|
43308
43308
|
document.removeEventListener("keydown", Be);
|
|
43309
43309
|
};
|
|
43310
|
-
}, [
|
|
43310
|
+
}, [ue, Y]);
|
|
43311
43311
|
const be = Yn(Hm(R), M, r);
|
|
43312
43312
|
!Q && Q !== 0 && (Y = !1);
|
|
43313
|
-
const Re =
|
|
43313
|
+
const Re = ve.useRef(), Le = (Be) => {
|
|
43314
43314
|
const Xe = R.props;
|
|
43315
43315
|
Xe.onMouseMove && Xe.onMouseMove(Be), ao = {
|
|
43316
43316
|
x: Be.clientX,
|
|
43317
43317
|
y: Be.clientY
|
|
43318
43318
|
}, Re.current && Re.current.update();
|
|
43319
|
-
},
|
|
43320
|
-
l ? (
|
|
43319
|
+
}, Se = {}, De = typeof Q == "string";
|
|
43320
|
+
l ? (Se.title = !Y && De && !c ? Q : null, Se["aria-describedby"] = Y ? W : null) : (Se["aria-label"] = De ? Q : null, Se["aria-labelledby"] = Y && !De ? W : null);
|
|
43321
43321
|
const ye = {
|
|
43322
|
-
...
|
|
43322
|
+
...Se,
|
|
43323
43323
|
...L,
|
|
43324
43324
|
...R.props,
|
|
43325
43325
|
className: ft(L.className, R.props.className),
|
|
43326
|
-
onTouchStart:
|
|
43326
|
+
onTouchStart: se,
|
|
43327
43327
|
ref: be,
|
|
43328
43328
|
...g ? {
|
|
43329
43329
|
onMouseMove: Le
|
|
43330
43330
|
} : {}
|
|
43331
43331
|
};
|
|
43332
|
-
process.env.NODE_ENV !== "production" && (ye["data-mui-internal-clone-element"] = !0,
|
|
43332
|
+
process.env.NODE_ENV !== "production" && (ye["data-mui-internal-clone-element"] = !0, ve.useEffect(() => {
|
|
43333
43333
|
D && !D.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
43334
43334
|
`));
|
|
43335
43335
|
}, [D]));
|
|
43336
43336
|
const Ae = {};
|
|
43337
|
-
d || (ye.onTouchStart =
|
|
43337
|
+
d || (ye.onTouchStart = ge, ye.onTouchEnd = me), c || (ye.onMouseOver = Il(ae, ye.onMouseOver), ye.onMouseLeave = Il(le, ye.onMouseLeave), k || (Ae.onMouseOver = ae, Ae.onMouseLeave = le)), u || (ye.onFocus = Il(j, ye.onFocus), ye.onBlur = Il(fe, ye.onBlur), k || (Ae.onFocus = j, Ae.onBlur = fe)), process.env.NODE_ENV !== "production" && R.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${R.props.title}\` or the Tooltip component.`].join(`
|
|
43338
43338
|
`));
|
|
43339
43339
|
const H = {
|
|
43340
43340
|
...n,
|
|
@@ -43344,7 +43344,7 @@ const si = /* @__PURE__ */ he.forwardRef(function(e, r) {
|
|
|
43344
43344
|
placement: x,
|
|
43345
43345
|
PopperComponentProp: E,
|
|
43346
43346
|
touch: X.current
|
|
43347
|
-
}, K = typeof T.popper == "function" ? T.popper(H) : T.popper, te =
|
|
43347
|
+
}, K = typeof T.popper == "function" ? T.popper(H) : T.popper, te = ve.useMemo(() => {
|
|
43348
43348
|
let Be = [{
|
|
43349
43349
|
name: "arrow",
|
|
43350
43350
|
enabled: !!_,
|
|
@@ -43358,7 +43358,7 @@ const si = /* @__PURE__ */ he.forwardRef(function(e, r) {
|
|
|
43358
43358
|
...K?.popperOptions,
|
|
43359
43359
|
modifiers: Be
|
|
43360
43360
|
};
|
|
43361
|
-
}, [_, b.popperOptions, K?.popperOptions]), re = xW(H),
|
|
43361
|
+
}, [_, b.popperOptions, K?.popperOptions]), re = xW(H), ne = typeof T.transition == "function" ? T.transition(H) : T.transition, pe = {
|
|
43362
43362
|
slots: {
|
|
43363
43363
|
popper: o.Popper,
|
|
43364
43364
|
transition: o.Transition ?? I,
|
|
@@ -43376,32 +43376,32 @@ const si = /* @__PURE__ */ he.forwardRef(function(e, r) {
|
|
|
43376
43376
|
tooltip: T.tooltip ?? s.tooltip,
|
|
43377
43377
|
transition: {
|
|
43378
43378
|
...O,
|
|
43379
|
-
...
|
|
43379
|
+
...ne ?? s.transition
|
|
43380
43380
|
}
|
|
43381
43381
|
}
|
|
43382
|
-
}, [
|
|
43382
|
+
}, [de, Ce] = nA("popper", {
|
|
43383
43383
|
elementType: FW,
|
|
43384
|
-
externalForwardedProps:
|
|
43384
|
+
externalForwardedProps: pe,
|
|
43385
43385
|
ownerState: H,
|
|
43386
43386
|
className: ft(re.popper, b?.className)
|
|
43387
43387
|
}), [Ee, Ie] = nA("transition", {
|
|
43388
43388
|
elementType: qu,
|
|
43389
|
-
externalForwardedProps:
|
|
43389
|
+
externalForwardedProps: pe,
|
|
43390
43390
|
ownerState: H
|
|
43391
43391
|
}), [Pe, He] = nA("tooltip", {
|
|
43392
43392
|
elementType: TW,
|
|
43393
43393
|
className: re.tooltip,
|
|
43394
|
-
externalForwardedProps:
|
|
43394
|
+
externalForwardedProps: pe,
|
|
43395
43395
|
ownerState: H
|
|
43396
43396
|
}), [Te, Ne] = nA("arrow", {
|
|
43397
43397
|
elementType: QW,
|
|
43398
43398
|
className: re.arrow,
|
|
43399
|
-
externalForwardedProps:
|
|
43399
|
+
externalForwardedProps: pe,
|
|
43400
43400
|
ownerState: H,
|
|
43401
43401
|
ref: V
|
|
43402
43402
|
});
|
|
43403
|
-
return /* @__PURE__ */ $.jsxs(
|
|
43404
|
-
children: [/* @__PURE__ */
|
|
43403
|
+
return /* @__PURE__ */ $.jsxs(ve.Fragment, {
|
|
43404
|
+
children: [/* @__PURE__ */ ve.cloneElement(R, ye), /* @__PURE__ */ $.jsx(de, {
|
|
43405
43405
|
as: E ?? Nm,
|
|
43406
43406
|
placement: x,
|
|
43407
43407
|
anchorEl: g ? {
|
|
@@ -43416,7 +43416,7 @@ const si = /* @__PURE__ */ he.forwardRef(function(e, r) {
|
|
|
43416
43416
|
} : D,
|
|
43417
43417
|
popperRef: Re,
|
|
43418
43418
|
open: D ? Y : !1,
|
|
43419
|
-
id:
|
|
43419
|
+
id: W,
|
|
43420
43420
|
transition: !0,
|
|
43421
43421
|
...Ae,
|
|
43422
43422
|
...Ce,
|
|
@@ -43945,7 +43945,7 @@ const NW = (t) => {
|
|
|
43945
43945
|
backgroundImage: "var(--Paper-overlay)"
|
|
43946
43946
|
}
|
|
43947
43947
|
}]
|
|
43948
|
-
}))), eU = /* @__PURE__ */
|
|
43948
|
+
}))), eU = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
43949
43949
|
const n = nn({
|
|
43950
43950
|
props: e,
|
|
43951
43951
|
name: "MuiPaper"
|
|
@@ -44246,53 +44246,53 @@ const VW = (t, { name: e = "img", extension: r = "jpg" } = {}) => {
|
|
|
44246
44246
|
scaleLabel: p
|
|
44247
44247
|
}) => {
|
|
44248
44248
|
const g = wr(null), [B] = ot(!0), [m, y] = ot([]), [C, F] = ot([]), [w, x] = ot([]), [E, b] = ot([]), [T, U] = ot(!0), [Q, I] = ot({}), O = /* @__PURE__ */ new Set();
|
|
44249
|
-
s !== void 0 ? (t.node.forEach((
|
|
44250
|
-
O.add(s(
|
|
44251
|
-
}), t.edge.forEach((
|
|
44252
|
-
|
|
44253
|
-
})) : (t.node.forEach((
|
|
44254
|
-
O.add(
|
|
44255
|
-
}), t.edge.forEach((
|
|
44256
|
-
|
|
44249
|
+
s !== void 0 ? (t.node.forEach((W) => {
|
|
44250
|
+
O.add(s(W));
|
|
44251
|
+
}), t.edge.forEach((W) => {
|
|
44252
|
+
W.category && O.add(s(W));
|
|
44253
|
+
})) : (t.node.forEach((W) => {
|
|
44254
|
+
O.add(W.category);
|
|
44255
|
+
}), t.edge.forEach((W) => {
|
|
44256
|
+
W.category && O.add(W.category);
|
|
44257
44257
|
}));
|
|
44258
44258
|
let L = /* @__PURE__ */ new Set();
|
|
44259
|
-
t.node.forEach((
|
|
44260
|
-
s && !c ? L.add(s(
|
|
44261
|
-
}), t.edge.forEach((
|
|
44262
|
-
|
|
44259
|
+
t.node.forEach((W) => {
|
|
44260
|
+
s && !c ? L.add(s(W)) : L.add(W.category);
|
|
44261
|
+
}), t.edge.forEach((W) => {
|
|
44262
|
+
W.category && s ? L.add(s(W)) : W.category && L.add(W.category);
|
|
44263
44263
|
});
|
|
44264
44264
|
let R = Array.from(L);
|
|
44265
44265
|
c && (R = R.sort(
|
|
44266
|
-
(
|
|
44266
|
+
(W, oe) => c.indexOf(W) - c.indexOf(oe)
|
|
44267
44267
|
));
|
|
44268
44268
|
const P = {};
|
|
44269
|
-
R.forEach((
|
|
44270
|
-
P[
|
|
44269
|
+
R.forEach((W) => {
|
|
44270
|
+
P[W] = !0;
|
|
44271
44271
|
});
|
|
44272
44272
|
const N = wr(null), [D, M] = TY(), _ = () => {
|
|
44273
44273
|
N.current && typeof M == "function" && M(N.current).then(VW);
|
|
44274
44274
|
}, V = wr(null);
|
|
44275
44275
|
let X = "cy-" + r;
|
|
44276
44276
|
pn(() => {
|
|
44277
|
-
y(t.node), b(t.edge), F(t.edge.map((
|
|
44278
|
-
t.edge.map((
|
|
44277
|
+
y(t.node), b(t.edge), F(t.edge.map((W) => W.effectSize)), x(
|
|
44278
|
+
t.edge.map((W) => s ? s(W) : W.category !== void 0 ? W.category : "Edge")
|
|
44279
44279
|
), I(P);
|
|
44280
44280
|
}, [t]);
|
|
44281
|
-
let k = m.map((
|
|
44282
|
-
c && (G = G.sort((
|
|
44283
|
-
const q = m.map((
|
|
44281
|
+
let k = m.map((W) => W.category), G = Array.from(new Set(k));
|
|
44282
|
+
c && (G = G.sort((W, oe) => c.indexOf(W) - c.indexOf(oe)));
|
|
44283
|
+
const q = m.map((W) => s && !c ? s(W) : W.category), ee = m.map((W) => s ? s(W) : W.category), Z = (W) => m[W].id;
|
|
44284
44284
|
pn(() => {
|
|
44285
44285
|
if (m.length === 0 || C.length === 0 || w.length === 0 || E.length === 0)
|
|
44286
44286
|
return;
|
|
44287
|
-
const
|
|
44288
|
-
let
|
|
44287
|
+
const W = m.map((fe) => fe.id);
|
|
44288
|
+
let oe = [];
|
|
44289
44289
|
for (let fe = 0; fe < m.length; fe++)
|
|
44290
|
-
|
|
44290
|
+
oe.push([]);
|
|
44291
44291
|
E.forEach((fe) => {
|
|
44292
|
-
const
|
|
44293
|
-
|
|
44292
|
+
const j = W.indexOf(fe.from), se = W.indexOf(fe.to);
|
|
44293
|
+
j !== -1 && se !== -1 && oe[j].push(se);
|
|
44294
44294
|
});
|
|
44295
|
-
const
|
|
44295
|
+
const ie = Vn({
|
|
44296
44296
|
container: document.getElementById(X),
|
|
44297
44297
|
style: [
|
|
44298
44298
|
{
|
|
@@ -44313,25 +44313,25 @@ const VW = (t, { name: e = "img", extension: r = "jpg" } = {}) => {
|
|
|
44313
44313
|
minZoom: 0.25,
|
|
44314
44314
|
maxZoom: 5
|
|
44315
44315
|
});
|
|
44316
|
-
g.current =
|
|
44317
|
-
|
|
44318
|
-
const
|
|
44319
|
-
fe.css("width",
|
|
44320
|
-
}),
|
|
44316
|
+
g.current = ie, ie.ready(() => {
|
|
44317
|
+
ie.nodes().forEach((fe) => {
|
|
44318
|
+
const se = [30, 70, 110][Math.floor(Math.random() * 3)];
|
|
44319
|
+
fe.css("width", se), fe.css("height", se);
|
|
44320
|
+
}), ie.layout({
|
|
44321
44321
|
name: "cose-bilkent",
|
|
44322
44322
|
animate: "end",
|
|
44323
44323
|
animationDuration: 1e3
|
|
44324
44324
|
}).run();
|
|
44325
44325
|
});
|
|
44326
|
-
const
|
|
44326
|
+
const ue = `data:image/svg+xml;utf8,${encodeURIComponent(`
|
|
44327
44327
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="24px" height="24px">
|
|
44328
44328
|
<path d="M0 0h24v24H0z" fill="none"/>
|
|
44329
44329
|
<path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/>
|
|
44330
44330
|
</svg>
|
|
44331
44331
|
`)}`;
|
|
44332
|
-
for (var
|
|
44333
|
-
Q[q[
|
|
44334
|
-
data: { id: Z(
|
|
44332
|
+
for (var ae = 0; ae < m.length; ae++)
|
|
44333
|
+
Q[q[ae]] !== !1 && (t?.centered && m[ae].id === t.centered.id ? ie.add({
|
|
44334
|
+
data: { id: Z(ae) },
|
|
44335
44335
|
// create name
|
|
44336
44336
|
position: {
|
|
44337
44337
|
// random position
|
|
@@ -44340,18 +44340,18 @@ const VW = (t, { name: e = "img", extension: r = "jpg" } = {}) => {
|
|
|
44340
44340
|
},
|
|
44341
44341
|
style: {
|
|
44342
44342
|
// find color based on CRE
|
|
44343
|
-
"background-color": o ? o(m[
|
|
44344
|
-
label: T ? m[
|
|
44343
|
+
"background-color": o ? o(m[ae]) : "grey",
|
|
44344
|
+
label: T ? m[ae].id : "",
|
|
44345
44345
|
fontSize: "12px",
|
|
44346
44346
|
borderWidth: "2px",
|
|
44347
44347
|
borderColor: "black",
|
|
44348
44348
|
fontFamily: f,
|
|
44349
44349
|
backgroundFit: "contain",
|
|
44350
44350
|
backgroundClip: "none",
|
|
44351
|
-
backgroundImage: `url(${
|
|
44351
|
+
backgroundImage: `url(${ue})`
|
|
44352
44352
|
}
|
|
44353
|
-
}) :
|
|
44354
|
-
data: { id: Z(
|
|
44353
|
+
}) : ie.add({
|
|
44354
|
+
data: { id: Z(ae) },
|
|
44355
44355
|
// create name
|
|
44356
44356
|
position: {
|
|
44357
44357
|
// random position
|
|
@@ -44360,44 +44360,44 @@ const VW = (t, { name: e = "img", extension: r = "jpg" } = {}) => {
|
|
|
44360
44360
|
},
|
|
44361
44361
|
style: {
|
|
44362
44362
|
// find color based on CRE
|
|
44363
|
-
"background-color": o ? o(m[
|
|
44364
|
-
label: T ? i ? i(m[
|
|
44363
|
+
"background-color": o ? o(m[ae]) : "grey",
|
|
44364
|
+
label: T ? i ? i(m[ae]) : m[ae].id : "",
|
|
44365
44365
|
fontSize: "12px",
|
|
44366
44366
|
fontFamily: f
|
|
44367
44367
|
}
|
|
44368
44368
|
}));
|
|
44369
|
-
let
|
|
44370
|
-
for (var
|
|
44371
|
-
if (Q[q[
|
|
44372
|
-
let fe =
|
|
44373
|
-
for (let
|
|
44374
|
-
const
|
|
44375
|
-
if (Q[q[
|
|
44376
|
-
let
|
|
44377
|
-
|
|
44369
|
+
let le = 0;
|
|
44370
|
+
for (var he = 0; he < m.length; he++)
|
|
44371
|
+
if (Q[q[he]] !== !1) {
|
|
44372
|
+
let fe = oe[he].length;
|
|
44373
|
+
for (let j = 0; j < fe; j++) {
|
|
44374
|
+
const se = E[le]?.category;
|
|
44375
|
+
if (Q[q[oe[he][j]]] !== !1 && (!se || Q[w[le]] !== !1)) {
|
|
44376
|
+
let ge = t.edge.every((me) => me.category);
|
|
44377
|
+
ie.add({
|
|
44378
44378
|
data: {
|
|
44379
|
-
id: "edge " +
|
|
44380
|
-
source: Z(
|
|
44381
|
-
target: Z(
|
|
44382
|
-
category:
|
|
44379
|
+
id: "edge " + le,
|
|
44380
|
+
source: Z(he),
|
|
44381
|
+
target: Z(oe[he][j]),
|
|
44382
|
+
category: ge ? E[le].category : "Edge"
|
|
44383
44383
|
},
|
|
44384
44384
|
style: {
|
|
44385
|
-
"line-color": o ? o(E[
|
|
44385
|
+
"line-color": o ? o(E[le]) : "grey",
|
|
44386
44386
|
"target-arrow-shape": v ? "triangle" : null,
|
|
44387
|
-
"target-arrow-color": o ? o(E[
|
|
44388
|
-
width: A(C[
|
|
44387
|
+
"target-arrow-color": o ? o(E[le]) : "grey",
|
|
44388
|
+
width: A(C[le])
|
|
44389
44389
|
}
|
|
44390
44390
|
});
|
|
44391
44391
|
}
|
|
44392
|
-
|
|
44392
|
+
le++;
|
|
44393
44393
|
}
|
|
44394
44394
|
}
|
|
44395
|
-
return
|
|
44396
|
-
const
|
|
44397
|
-
t?.centered && j
|
|
44398
|
-
const
|
|
44395
|
+
return ie.nodes().forEach((fe, j) => {
|
|
44396
|
+
const se = fe.popperRef(), ge = document.createElement("div");
|
|
44397
|
+
t?.centered && W[j].toString() === t.centered.id ? ge.innerHTML = `ID: ${W[j]}<br>Type: ${s ? s(m[j]) : m[j].category}<br>Centered Node` : ge.innerHTML = `ID: ${W[j]}<br>Type: ${s ? s(m[j]) : m[j].category}`, ge.style.fontSize = "12px", ge.style.fontFamily = f;
|
|
44398
|
+
const me = Eg(se, ge, {});
|
|
44399
44399
|
fe.on("mouseover", () => {
|
|
44400
|
-
|
|
44400
|
+
me.show(), document.body.style.cursor = "pointer";
|
|
44401
44401
|
}), fe.on("click", () => {
|
|
44402
44402
|
if (d) {
|
|
44403
44403
|
const be = {
|
|
@@ -44408,66 +44408,66 @@ const VW = (t, { name: e = "img", extension: r = "jpg" } = {}) => {
|
|
|
44408
44408
|
};
|
|
44409
44409
|
d(be);
|
|
44410
44410
|
}
|
|
44411
|
-
|
|
44411
|
+
me.hide(), document.body.style.cursor = "default";
|
|
44412
44412
|
}), fe.on("mouseout", () => {
|
|
44413
|
-
|
|
44413
|
+
me.hide(), document.body.style.cursor = "default";
|
|
44414
44414
|
});
|
|
44415
|
-
}),
|
|
44416
|
-
const
|
|
44417
|
-
if (t.edge.every((
|
|
44418
|
-
let
|
|
44415
|
+
}), ie.edges().forEach((fe) => {
|
|
44416
|
+
const j = fe.popperRef(), se = document.createElement("div");
|
|
44417
|
+
if (t.edge.every((me) => me.category)) {
|
|
44418
|
+
let me = "";
|
|
44419
44419
|
E.forEach((be) => {
|
|
44420
44420
|
if (s && be.category && fe.data("category") && fe.data("category") === be.category) {
|
|
44421
|
-
|
|
44421
|
+
me = s(be);
|
|
44422
44422
|
return;
|
|
44423
44423
|
} else if (be.category && fe.data("category") && fe.data("category") === be.category) {
|
|
44424
|
-
|
|
44424
|
+
me = be.category;
|
|
44425
44425
|
return;
|
|
44426
44426
|
}
|
|
44427
|
-
}),
|
|
44427
|
+
}), me.length === 0 ? se.innerHTML = "Edge" : se.innerHTML = `Edge Type: ${me}`;
|
|
44428
44428
|
} else
|
|
44429
|
-
|
|
44430
|
-
|
|
44431
|
-
const
|
|
44429
|
+
se.innerHTML = "Edge";
|
|
44430
|
+
se.style.fontSize = "12px", se.style.fontFamily = f;
|
|
44431
|
+
const ge = Eg(j, se, {});
|
|
44432
44432
|
fe.on("click", () => {
|
|
44433
|
-
h && h(),
|
|
44434
|
-
}), fe.on("mouseover", () =>
|
|
44433
|
+
h && h(), ge.hide(), document.body.style.cursor = "default";
|
|
44434
|
+
}), fe.on("mouseover", () => ge.show()), fe.on("mouseout", () => ge.hide());
|
|
44435
44435
|
}), J(), () => {
|
|
44436
|
-
|
|
44436
|
+
ie.destroy();
|
|
44437
44437
|
};
|
|
44438
44438
|
}, [m, C, w, E, Q]), pn(() => {
|
|
44439
44439
|
if (!g.current) return;
|
|
44440
|
-
let
|
|
44441
|
-
g.current.nodes().forEach((
|
|
44442
|
-
|
|
44443
|
-
label: T ? Z(
|
|
44444
|
-
}),
|
|
44440
|
+
let W = 0;
|
|
44441
|
+
g.current.nodes().forEach((oe) => {
|
|
44442
|
+
oe.style({
|
|
44443
|
+
label: T ? Z(W) : ""
|
|
44444
|
+
}), W++;
|
|
44445
44445
|
});
|
|
44446
44446
|
}, [T]);
|
|
44447
44447
|
const z = () => {
|
|
44448
|
-
const
|
|
44449
|
-
if (
|
|
44450
|
-
const
|
|
44448
|
+
const W = g.current;
|
|
44449
|
+
if (W) {
|
|
44450
|
+
const oe = {
|
|
44451
44451
|
name: "random",
|
|
44452
44452
|
animate: !0,
|
|
44453
44453
|
animationDuration: 1e3,
|
|
44454
44454
|
animationEasing: "ease-out"
|
|
44455
44455
|
};
|
|
44456
|
-
|
|
44456
|
+
W.layout(oe).run();
|
|
44457
44457
|
}
|
|
44458
44458
|
}, J = () => {
|
|
44459
|
-
const
|
|
44459
|
+
const W = g.current, oe = {
|
|
44460
44460
|
name: "cose-bilkent",
|
|
44461
44461
|
animate: "end",
|
|
44462
44462
|
animationEasing: "ease-out",
|
|
44463
44463
|
animationDuration: 1e3,
|
|
44464
44464
|
randomize: !0
|
|
44465
44465
|
};
|
|
44466
|
-
|
|
44467
|
-
}, Y = (
|
|
44468
|
-
I((
|
|
44469
|
-
...
|
|
44470
|
-
[
|
|
44466
|
+
W && W.layout(oe).run();
|
|
44467
|
+
}, Y = (W) => {
|
|
44468
|
+
I((oe) => ({
|
|
44469
|
+
...oe,
|
|
44470
|
+
[W]: !oe[W]
|
|
44471
44471
|
}));
|
|
44472
44472
|
};
|
|
44473
44473
|
return /* @__PURE__ */ $.jsxs(
|
|
@@ -44528,7 +44528,7 @@ const VW = (t, { name: e = "img", extension: r = "jpg" } = {}) => {
|
|
|
44528
44528
|
toggles: Q,
|
|
44529
44529
|
onToggle: Y,
|
|
44530
44530
|
simpleCategories: ee,
|
|
44531
|
-
edgeType: t.edge.every((
|
|
44531
|
+
edgeType: t.edge.every((W) => W.category),
|
|
44532
44532
|
elements: m,
|
|
44533
44533
|
edges: E,
|
|
44534
44534
|
scales: C,
|
|
@@ -44743,37 +44743,37 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
44743
44743
|
outlier: !0,
|
|
44744
44744
|
label: t.label,
|
|
44745
44745
|
value: k.value.toFixed(2)
|
|
44746
|
-
}, Y = c ? h?.point === k : h?.label === J.label && h?.value === J.value,
|
|
44746
|
+
}, Y = c ? h?.point === k : h?.label === J.label && h?.value === J.value, W = k.radius ?? 4;
|
|
44747
44747
|
return /* @__PURE__ */ $.jsx(
|
|
44748
44748
|
"circle",
|
|
44749
44749
|
{
|
|
44750
44750
|
cx: Z,
|
|
44751
44751
|
cy: z,
|
|
44752
|
-
r: Y ?
|
|
44752
|
+
r: Y ? W + 1 : W,
|
|
44753
44753
|
stroke: Y ? "#000000" : "none",
|
|
44754
44754
|
fill: k.color ?? t.violinColor ?? "#000000",
|
|
44755
44755
|
opacity: k.opacity ?? t.opacity ?? 1,
|
|
44756
44756
|
pointerEvents: "all",
|
|
44757
|
-
onMouseMove: (
|
|
44757
|
+
onMouseMove: (oe) => R(oe, J, k),
|
|
44758
44758
|
onClick: () => N(k)
|
|
44759
44759
|
},
|
|
44760
44760
|
`outlier-${G}`
|
|
44761
44761
|
);
|
|
44762
44762
|
}),
|
|
44763
44763
|
t.data.length >= (r?.pointDisplayThreshold ?? 3) && r?.showAllPoints && U.map((k, G) => {
|
|
44764
|
-
const q = a(k.value), ee = a(k.value), Z = r?.jitter ?? 0, z = `${t.label}-${k}-${G}`, J = Z > 0 ? (jW(z) - 0.5) * 2 * Z : 0, Y = u ? ee : D + J,
|
|
44764
|
+
const q = a(k.value), ee = a(k.value), Z = r?.jitter ?? 0, z = `${t.label}-${k}-${G}`, J = Z > 0 ? (jW(z) - 0.5) * 2 * Z : 0, Y = u ? ee : D + J, W = u ? D + J : q, oe = {
|
|
44765
44765
|
label: t.label,
|
|
44766
44766
|
value: k.value.toFixed(2)
|
|
44767
|
-
},
|
|
44767
|
+
}, ie = c ? h?.point === k : h?.label === oe.label && h?.value === oe.value, Ue = k.radius ?? 2, ue = ie ? Ue + 1 : Ue;
|
|
44768
44768
|
return /* @__PURE__ */ $.jsx(
|
|
44769
44769
|
"path",
|
|
44770
44770
|
{
|
|
44771
|
-
d: `M ${Y},${
|
|
44772
|
-
stroke:
|
|
44771
|
+
d: `M ${Y},${W} m -${ue},0 a ${ue},${ue} 0 1,0 ${2 * ue},0 a ${ue},${ue} 0 1,0 -${2 * ue},0`,
|
|
44772
|
+
stroke: ie ? "black" : "none",
|
|
44773
44773
|
fill: k.color ?? t.violinColor ?? "black",
|
|
44774
44774
|
opacity: k.opacity ?? t.opacity ?? 1,
|
|
44775
44775
|
pointerEvents: "all",
|
|
44776
|
-
onMouseMove: (
|
|
44776
|
+
onMouseMove: (ae) => R(ae, oe, k),
|
|
44777
44777
|
onClick: () => N(k)
|
|
44778
44778
|
},
|
|
44779
44779
|
`${e}-point-${G}`
|
|
@@ -44783,18 +44783,18 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
44783
44783
|
const q = a(k.value), ee = a(k.value), Z = u ? ee : D, z = u ? D : q, J = k.radius ?? 2, Y = {
|
|
44784
44784
|
label: t.label,
|
|
44785
44785
|
value: k.value.toFixed(2)
|
|
44786
|
-
},
|
|
44786
|
+
}, W = c ? h?.point === k : h?.label === Y.label && h?.value === Y.value;
|
|
44787
44787
|
return /* @__PURE__ */ $.jsx(
|
|
44788
44788
|
"circle",
|
|
44789
44789
|
{
|
|
44790
44790
|
cx: Z,
|
|
44791
44791
|
cy: z,
|
|
44792
|
-
r:
|
|
44793
|
-
stroke:
|
|
44792
|
+
r: W ? J + 1 : J,
|
|
44793
|
+
stroke: W ? "black" : "none",
|
|
44794
44794
|
fill: k.color ?? t.violinColor ?? "black",
|
|
44795
44795
|
opacity: k.opacity ?? t.opacity ?? 1,
|
|
44796
44796
|
pointerEvents: "all",
|
|
44797
|
-
onMouseMove: (
|
|
44797
|
+
onMouseMove: (oe) => R(oe, Y, k),
|
|
44798
44798
|
onClick: () => N(k)
|
|
44799
44799
|
},
|
|
44800
44800
|
`thresh-${G}`
|
|
@@ -44904,20 +44904,29 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
44904
44904
|
fill: "black",
|
|
44905
44905
|
fontSize: i
|
|
44906
44906
|
}),
|
|
44907
|
-
tickComponent: ({ x, y: E, formattedValue: b, ...T }) =>
|
|
44908
|
-
|
|
44909
|
-
|
|
44910
|
-
|
|
44911
|
-
|
|
44912
|
-
|
|
44913
|
-
|
|
44914
|
-
|
|
44915
|
-
|
|
44916
|
-
|
|
44917
|
-
|
|
44918
|
-
|
|
44919
|
-
|
|
44920
|
-
|
|
44907
|
+
tickComponent: ({ x, y: E, formattedValue: b, ...T }) => {
|
|
44908
|
+
const U = () => {
|
|
44909
|
+
if (!t.onViolinClicked) return;
|
|
44910
|
+
const Q = t.distributions.find((I) => I.label === b);
|
|
44911
|
+
t.onViolinClicked(Q);
|
|
44912
|
+
};
|
|
44913
|
+
return A !== "horizontal" ? /* @__PURE__ */ $.jsx(
|
|
44914
|
+
"text",
|
|
44915
|
+
{
|
|
44916
|
+
...T,
|
|
44917
|
+
onClick: U,
|
|
44918
|
+
cursor: t.onViolinClicked ? "pointer" : "text",
|
|
44919
|
+
x,
|
|
44920
|
+
y: E,
|
|
44921
|
+
dx: A === "vertical" ? 0 : "-0.25em",
|
|
44922
|
+
dy: A === "vertical" ? "0.50em" : A === "leftDiagonal" ? "-0.25em" : "0.25em",
|
|
44923
|
+
transform: A === "vertical" ? `rotate(90, ${x}, ${E})` : A === "leftDiagonal" ? `rotate(-45, ${x}, ${E})` : `rotate(45, ${x}, ${E})`,
|
|
44924
|
+
textAnchor: A === "vertical" ? "middle" : "end",
|
|
44925
|
+
dominantBaseline: "middle",
|
|
44926
|
+
children: b
|
|
44927
|
+
}
|
|
44928
|
+
) : /* @__PURE__ */ $.jsx("text", { ...T, x, y: E, textAnchor: "end", dominantBaseline: "middle", dx: "-0.50em", onClick: U, cursor: t.onViolinClicked ? "pointer" : "text", children: b });
|
|
44929
|
+
}
|
|
44921
44930
|
},
|
|
44922
44931
|
"axisBottom"
|
|
44923
44932
|
)
|
|
@@ -44953,17 +44962,26 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
44953
44962
|
fontSize: i,
|
|
44954
44963
|
textAnchor: A === "vertical" || A === "leftDiagonal" ? "end" : A === "rightDiagonal" ? "start" : "middle"
|
|
44955
44964
|
}),
|
|
44956
|
-
tickComponent: ({ x, y: E, formattedValue: b, ...T }) =>
|
|
44957
|
-
|
|
44958
|
-
|
|
44959
|
-
|
|
44960
|
-
|
|
44961
|
-
|
|
44962
|
-
|
|
44963
|
-
|
|
44964
|
-
|
|
44965
|
-
|
|
44966
|
-
|
|
44965
|
+
tickComponent: ({ x, y: E, formattedValue: b, ...T }) => {
|
|
44966
|
+
const U = () => {
|
|
44967
|
+
if (!t.onViolinClicked) return;
|
|
44968
|
+
const Q = t.distributions.find((I) => I.label === b);
|
|
44969
|
+
t.onViolinClicked(Q);
|
|
44970
|
+
};
|
|
44971
|
+
return A !== "horizontal" ? /* @__PURE__ */ $.jsx(
|
|
44972
|
+
"text",
|
|
44973
|
+
{
|
|
44974
|
+
onClick: U,
|
|
44975
|
+
cursor: t.onViolinClicked ? "pointer" : "text",
|
|
44976
|
+
...T,
|
|
44977
|
+
x,
|
|
44978
|
+
y: E,
|
|
44979
|
+
transform: A === "vertical" ? `rotate(-90, ${x}, ${E})` : A === "leftDiagonal" ? `rotate(-45, ${x}, ${E})` : `rotate(45, ${x}, ${E})`,
|
|
44980
|
+
textAnchor: A === "vertical" || A === "leftDiagonal" ? "end" : A === "rightDiagonal" ? "start" : "middle",
|
|
44981
|
+
children: b
|
|
44982
|
+
}
|
|
44983
|
+
) : /* @__PURE__ */ $.jsx("text", { ...T, x, y: E, textAnchor: "middle", onClick: U, cursor: t.onViolinClicked ? "pointer" : "text", children: b });
|
|
44984
|
+
}
|
|
44967
44985
|
},
|
|
44968
44986
|
"axisBottom"
|
|
44969
44987
|
)
|
|
@@ -44995,71 +45013,55 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
44995
45013
|
height: r,
|
|
44996
45014
|
width: n,
|
|
44997
45015
|
legendValues: a,
|
|
44998
|
-
spaceForCategory: A
|
|
45016
|
+
spaceForCategory: A,
|
|
45017
|
+
axisCenter: i
|
|
44999
45018
|
}) => {
|
|
45000
|
-
const
|
|
45001
|
-
return /* @__PURE__ */ $.jsx(
|
|
45002
|
-
"
|
|
45003
|
-
{
|
|
45004
|
-
|
|
45005
|
-
|
|
45006
|
-
|
|
45007
|
-
|
|
45008
|
-
|
|
45009
|
-
|
|
45010
|
-
|
|
45011
|
-
|
|
45012
|
-
|
|
45013
|
-
|
|
45014
|
-
|
|
45015
|
-
|
|
45016
|
-
|
|
45017
|
-
|
|
45018
|
-
|
|
45019
|
-
|
|
45020
|
-
|
|
45021
|
-
|
|
45022
|
-
|
|
45023
|
-
|
|
45024
|
-
|
|
45025
|
-
|
|
45026
|
-
|
|
45027
|
-
|
|
45028
|
-
|
|
45029
|
-
|
|
45030
|
-
|
|
45031
|
-
|
|
45032
|
-
|
|
45033
|
-
|
|
45034
|
-
|
|
45035
|
-
|
|
45036
|
-
|
|
45037
|
-
|
|
45038
|
-
|
|
45039
|
-
|
|
45040
|
-
|
|
45041
|
-
|
|
45042
|
-
|
|
45043
|
-
|
|
45044
|
-
|
|
45045
|
-
|
|
45046
|
-
{
|
|
45047
|
-
x: v + 12,
|
|
45048
|
-
y: 3,
|
|
45049
|
-
textAnchor: "start",
|
|
45050
|
-
fill: "black",
|
|
45051
|
-
fontSize: 10,
|
|
45052
|
-
children: d
|
|
45053
|
-
}
|
|
45054
|
-
)
|
|
45055
|
-
] }, h);
|
|
45056
|
-
}) })
|
|
45057
|
-
]
|
|
45058
|
-
}
|
|
45059
|
-
)
|
|
45060
|
-
] })
|
|
45061
|
-
}
|
|
45062
|
-
);
|
|
45019
|
+
const s = wr(null), l = tU(t, 12, "Times"), u = a.map((h) => e(h) * 2 + 12), c = u.reduce((h, v) => h + v, 0) + 30 * (a.length - 1), f = 10, d = l + f * 2 + c;
|
|
45020
|
+
return console.log(i), /* @__PURE__ */ $.jsx("div", { style: { marginBottom: 10 }, children: /* @__PURE__ */ $.jsxs("svg", { height: r + 4, width: n + l + 4, id: "legend", transform: `translate(${A / 1.2 + i - n / 2}, 0)`, children: [
|
|
45021
|
+
/* @__PURE__ */ $.jsx("rect", { height: r, width: n + l, stroke: "black", fill: "none", transform: "translate(2, 2)" }),
|
|
45022
|
+
/* @__PURE__ */ $.jsx("g", { transform: `translate(${n / 2 - d / 2 + 2}, ${r / 2 + 2})`, children: /* @__PURE__ */ $.jsx(
|
|
45023
|
+
"text",
|
|
45024
|
+
{
|
|
45025
|
+
ref: s,
|
|
45026
|
+
x: 0,
|
|
45027
|
+
y: 3,
|
|
45028
|
+
textAnchor: "start",
|
|
45029
|
+
fill: "black",
|
|
45030
|
+
fontSize: 12,
|
|
45031
|
+
children: t
|
|
45032
|
+
}
|
|
45033
|
+
) }),
|
|
45034
|
+
/* @__PURE__ */ $.jsxs("g", { transform: `translate(${n / 2 - d / 2 + l + f + 2}, ${r / 2 + 2})`, children: [
|
|
45035
|
+
/* @__PURE__ */ $.jsx(
|
|
45036
|
+
"line",
|
|
45037
|
+
{
|
|
45038
|
+
x1: 0,
|
|
45039
|
+
y1: -r / 2,
|
|
45040
|
+
x2: 0,
|
|
45041
|
+
y2: r / 2,
|
|
45042
|
+
stroke: "black",
|
|
45043
|
+
strokeWidth: 1
|
|
45044
|
+
}
|
|
45045
|
+
),
|
|
45046
|
+
/* @__PURE__ */ $.jsx("g", { transform: `translate(${f + l / 2}, 0)`, children: a.map((h, v) => {
|
|
45047
|
+
const p = e(h), g = u.slice(0, v).reduce((B, m) => B + m, 0) + v * 30;
|
|
45048
|
+
return /* @__PURE__ */ $.jsxs("g", { transform: `translate(${g}, 0)`, children: [
|
|
45049
|
+
/* @__PURE__ */ $.jsx("circle", { r: p, cx: 0, cy: 0, fill: "black" }),
|
|
45050
|
+
/* @__PURE__ */ $.jsx(
|
|
45051
|
+
"text",
|
|
45052
|
+
{
|
|
45053
|
+
x: p + 12,
|
|
45054
|
+
y: 3,
|
|
45055
|
+
textAnchor: "start",
|
|
45056
|
+
fill: "black",
|
|
45057
|
+
fontSize: 10,
|
|
45058
|
+
children: h
|
|
45059
|
+
}
|
|
45060
|
+
)
|
|
45061
|
+
] }, `legend${v}`);
|
|
45062
|
+
}) })
|
|
45063
|
+
] })
|
|
45064
|
+
] }) });
|
|
45063
45065
|
}, kE = "Roboto,Helvetica,Arial,sans-serif", tU = (t, e, r) => {
|
|
45064
45066
|
const n = document.createElement("g");
|
|
45065
45067
|
n.style.position = "absolute", n.style.visibility = "hidden", n.style.fontSize = `${e}px`, n.style.fontFamily = r, n.style.whiteSpace = "nowrap", n.textContent = t, document.body.appendChild(n);
|
|
@@ -45079,11 +45081,11 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
45079
45081
|
legendTitle: u = "FDR",
|
|
45080
45082
|
legendValues: c = [1, 0.05, 0.01, 1e-3]
|
|
45081
45083
|
}) => {
|
|
45082
|
-
const [f, d] = ot(200), [h, v] = ot(!1), [p] = ot(r + String(Math.random())), { tooltipOpen: g, tooltipLeft: B, tooltipTop: m, tooltipData: y, hideTooltip: C, showTooltip: F } = x1({}), w = wr(null), x = wr(null), E = hc, b = Q1, T = wr(null), U = Ve((
|
|
45084
|
+
const [f, d] = ot(200), [h, v] = ot(!1), [p] = ot(r + String(Math.random())), { tooltipOpen: g, tooltipLeft: B, tooltipTop: m, tooltipData: y, hideTooltip: C, showTooltip: F } = x1({}), w = wr(null), x = wr(null), E = hc, b = Q1, T = wr(null), U = Ve((ie, Ue) => {
|
|
45083
45085
|
x.current = {
|
|
45084
|
-
top:
|
|
45085
|
-
left:
|
|
45086
|
-
data:
|
|
45086
|
+
top: ie.pageY,
|
|
45087
|
+
left: ie.pageX,
|
|
45088
|
+
data: Ue
|
|
45087
45089
|
}, w.current || (w.current = requestAnimationFrame(() => {
|
|
45088
45090
|
x.current && F({
|
|
45089
45091
|
tooltipTop: x.current.top,
|
|
@@ -45091,7 +45093,7 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
45091
45093
|
tooltipData: x.current.data
|
|
45092
45094
|
}), w.current = null;
|
|
45093
45095
|
}));
|
|
45094
|
-
}, [F]), { parentRef: Q, width: I, height: O } = zg({ debounceTime: 150 }), L = t.map((
|
|
45096
|
+
}, [F]), { parentRef: Q, width: I, height: O } = zg({ debounceTime: 150 }), L = t.map((ie) => ie.lollipopValue).filter((ie) => ie !== void 0), R = 5e-3, P = Tt(
|
|
45095
45097
|
() => aM({
|
|
45096
45098
|
base: 10,
|
|
45097
45099
|
domain: [R, 1],
|
|
@@ -45100,178 +45102,194 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
45100
45102
|
round: !0
|
|
45101
45103
|
}),
|
|
45102
45104
|
[]
|
|
45103
|
-
), N = Ve((
|
|
45104
|
-
|
|
45105
|
+
), N = Ve((ie) => P(Math.max(R, ie)), [P]), D = 50, M = 20, _ = L.length > 0 ? 30 : 0, X = Math.max(...t.map((ie) => tU(ie.category ?? "", 12, "Arial"))), k = 10, G = Tt(() => Math.max(...t.map((ie) => ie.value)), [t]), q = Tt(() => Math.min(...t.map((ie) => ie.value)), [t]), ee = -0.5, Z = t.flatMap((ie, Ue) => [
|
|
45106
|
+
ie,
|
|
45105
45107
|
{
|
|
45106
|
-
id: `spacer-${
|
|
45108
|
+
id: `spacer-${Ue}`,
|
|
45107
45109
|
value: 0,
|
|
45108
45110
|
color: "transparent"
|
|
45109
45111
|
}
|
|
45110
45112
|
]).slice(0, -1), z = t.length * o + (t.length - 1) * s, J = l ? O - D - M - _ : z, Y = Tt(() => up({
|
|
45111
|
-
domain: Z.map((
|
|
45113
|
+
domain: Z.map((ie) => ie.id),
|
|
45112
45114
|
range: [0, J],
|
|
45113
45115
|
paddingOuter: 0.5
|
|
45114
|
-
}), [Z, J]),
|
|
45116
|
+
}), [Z, J]), W = Tt(() => sa({
|
|
45115
45117
|
domain: [
|
|
45116
45118
|
// If cutting off negative values, the lower bound is max(negativeCutoff, minValue).
|
|
45117
|
-
i ? Math.min(0, Math.max(q, ee)) : Math.min(0, q - 0.07 * (
|
|
45119
|
+
i ? Math.min(0, Math.max(q, ee)) : Math.min(0, q - 0.07 * (0 - q)),
|
|
45118
45120
|
// Make some room past the last tick (7% of the range of the data)
|
|
45119
|
-
Math.max(0, G) + 0.07 *
|
|
45121
|
+
Math.max(0, G) + 0.07 * G
|
|
45120
45122
|
],
|
|
45121
45123
|
// always include 0 as anchor if values do not cross 0
|
|
45122
45124
|
range: [0, Math.max(I - X - f, 0)]
|
|
45123
45125
|
}), [i, q, ee, G, I, f]);
|
|
45124
|
-
|
|
45126
|
+
pn(() => {
|
|
45125
45127
|
if (!I)
|
|
45126
45128
|
return;
|
|
45127
|
-
let
|
|
45128
|
-
Z.forEach((
|
|
45129
|
-
const
|
|
45130
|
-
if (
|
|
45131
|
-
const
|
|
45132
|
-
|
|
45133
|
-
}
|
|
45134
|
-
}),
|
|
45135
|
-
}, [t,
|
|
45136
|
-
|
|
45137
|
-
|
|
45138
|
-
|
|
45139
|
-
|
|
45140
|
-
|
|
45141
|
-
|
|
45142
|
-
|
|
45143
|
-
|
|
45144
|
-
|
|
45145
|
-
|
|
45146
|
-
|
|
45147
|
-
|
|
45148
|
-
|
|
45149
|
-
|
|
45150
|
-
|
|
45151
|
-
|
|
45152
|
-
|
|
45153
|
-
|
|
45154
|
-
|
|
45155
|
-
|
|
45156
|
-
|
|
45157
|
-
|
|
45158
|
-
|
|
45159
|
-
|
|
45160
|
-
|
|
45161
|
-
|
|
45162
|
-
|
|
45163
|
-
|
|
45164
|
-
|
|
45165
|
-
gn,
|
|
45129
|
+
let ie = 0, Ue = null;
|
|
45130
|
+
Z.forEach((ue, ae) => {
|
|
45131
|
+
const le = document.getElementById(`label-${ae}-${p}`);
|
|
45132
|
+
if (le) {
|
|
45133
|
+
const he = le.getBBox().width, fe = W(ue.value), se = X + fe + k + he - I;
|
|
45134
|
+
ie = Math.max(se, ie), se < 0 && (Ue === null ? Ue = Math.abs(se) : Ue = Math.min(Math.abs(se), Ue));
|
|
45135
|
+
}
|
|
45136
|
+
}), ie > 0 ? (v(!1), d((ue) => ue + 25)) : Ue && Ue > 30 ? (v(!1), d((ue) => ue - 25)) : v(!0);
|
|
45137
|
+
}, [t, W, f, h, e, I, r, p]);
|
|
45138
|
+
const oe = (W.range()[0] + W.range()[1]) / 2;
|
|
45139
|
+
return (
|
|
45140
|
+
// Min width of 500 to ensure that on mobile the calculated bar width is not negative
|
|
45141
|
+
/* @__PURE__ */ $.jsxs("div", { ref: Q, style: { minWidth: "500px", height: "100%" }, children: [
|
|
45142
|
+
L.length > 0 && /* @__PURE__ */ $.jsx(
|
|
45143
|
+
ej,
|
|
45144
|
+
{
|
|
45145
|
+
values: L,
|
|
45146
|
+
label: u,
|
|
45147
|
+
getlollipopRadius: N,
|
|
45148
|
+
height: _,
|
|
45149
|
+
width: 300,
|
|
45150
|
+
legendValues: c,
|
|
45151
|
+
spaceForCategory: X,
|
|
45152
|
+
axisCenter: oe
|
|
45153
|
+
}
|
|
45154
|
+
),
|
|
45155
|
+
t.length === 0 ? /* @__PURE__ */ $.jsx("p", { children: "No Data To Display" }) : /* @__PURE__ */ $.jsx(
|
|
45156
|
+
"svg",
|
|
45157
|
+
{
|
|
45158
|
+
ref: (ie) => {
|
|
45159
|
+
e && ie && (e.current = ie), T.current = ie;
|
|
45160
|
+
},
|
|
45161
|
+
width: I,
|
|
45162
|
+
height: l ? O && O - _ : J + D + M,
|
|
45163
|
+
opacity: h && I > 0 ? 1 : 0.3,
|
|
45164
|
+
children: /* @__PURE__ */ $.jsxs(gn, { left: X, top: D, children: [
|
|
45165
|
+
/* @__PURE__ */ $.jsx(
|
|
45166
|
+
OR,
|
|
45166
45167
|
{
|
|
45167
|
-
|
|
45168
|
-
|
|
45169
|
-
|
|
45170
|
-
|
|
45171
|
-
|
|
45172
|
-
|
|
45173
|
-
|
|
45174
|
-
|
|
45175
|
-
|
|
45176
|
-
|
|
45177
|
-
|
|
45178
|
-
|
|
45179
|
-
|
|
45180
|
-
|
|
45181
|
-
|
|
45182
|
-
|
|
45183
|
-
|
|
45184
|
-
|
|
45185
|
-
|
|
45168
|
+
scale: W,
|
|
45169
|
+
top: 0,
|
|
45170
|
+
label: r,
|
|
45171
|
+
labelProps: { dy: -5, fontSize: 14, fontFamily: kE },
|
|
45172
|
+
numTicks: I < 700 ? 4 : void 0,
|
|
45173
|
+
tickFormat: (ie, Ue) => {
|
|
45174
|
+
const ue = typeof ie == "number" ? ie : ie.valueOf();
|
|
45175
|
+
return Ue === 0 && ue < 0 && i && t.some((ae) => ae.value <= ee) ? "Low Signal" : ue.toString();
|
|
45176
|
+
}
|
|
45177
|
+
}
|
|
45178
|
+
),
|
|
45179
|
+
Z.map((ie, Ue) => {
|
|
45180
|
+
const ue = ie.id === y?.id, ae = i ? Math.max(ie.value, ee) : ie.value, le = Y(ie.id), he = ie.id.split("-")[0] === "spacer" ? s : o, fe = ae > 0 ? W(0) : W(ae), j = le ?? 0, se = Math.abs(W(ae) - W(0)), ge = ie.id.split("-")[0] === "spacer" ? s : o, me = -k, be = (le ?? 0) + he / 2, Re = fe + se + k + (ie.lollipopValue && ie.value >= 0 ? N(ie.lollipopValue) : 0), Le = j + ge / 2;
|
|
45181
|
+
return /* @__PURE__ */ $.jsxs(
|
|
45182
|
+
gn,
|
|
45183
|
+
{
|
|
45184
|
+
onClick: () => n?.(ie),
|
|
45185
|
+
style: n && { cursor: "pointer" },
|
|
45186
|
+
onMouseMove: (Se) => U(Se, ie),
|
|
45187
|
+
onMouseLeave: () => C(),
|
|
45188
|
+
fontFamily: kE,
|
|
45189
|
+
children: [
|
|
45186
45190
|
/* @__PURE__ */ $.jsx(
|
|
45187
|
-
|
|
45191
|
+
wa,
|
|
45188
45192
|
{
|
|
45189
|
-
x:
|
|
45190
|
-
y:
|
|
45191
|
-
|
|
45192
|
-
|
|
45193
|
-
fill:
|
|
45194
|
-
|
|
45195
|
-
|
|
45196
|
-
|
|
45197
|
-
},
|
|
45198
|
-
`bar-${ne.label}`
|
|
45193
|
+
x: me,
|
|
45194
|
+
y: be,
|
|
45195
|
+
dy: ".35em",
|
|
45196
|
+
textAnchor: "end",
|
|
45197
|
+
fill: "black",
|
|
45198
|
+
fontSize: 12,
|
|
45199
|
+
children: ie.category
|
|
45200
|
+
}
|
|
45199
45201
|
),
|
|
45200
|
-
|
|
45202
|
+
/* @__PURE__ */ $.jsxs(gn, { children: [
|
|
45201
45203
|
/* @__PURE__ */ $.jsx(
|
|
45202
|
-
|
|
45204
|
+
BM,
|
|
45203
45205
|
{
|
|
45204
|
-
|
|
45205
|
-
|
|
45206
|
-
|
|
45207
|
-
|
|
45208
|
-
|
|
45209
|
-
|
|
45206
|
+
x: fe,
|
|
45207
|
+
y: j,
|
|
45208
|
+
width: se,
|
|
45209
|
+
height: ge,
|
|
45210
|
+
fill: ie.color || "black",
|
|
45211
|
+
opacity: i && ae === ee ? 0.4 : 1,
|
|
45212
|
+
rx: 3,
|
|
45213
|
+
stroke: ue ? "black" : "none"
|
|
45214
|
+
},
|
|
45215
|
+
`bar-${ie.label}`
|
|
45210
45216
|
),
|
|
45217
|
+
ie.lollipopValue && /* @__PURE__ */ $.jsxs($.Fragment, { children: [
|
|
45218
|
+
/* @__PURE__ */ $.jsx(
|
|
45219
|
+
y0,
|
|
45220
|
+
{
|
|
45221
|
+
r: N(ie.lollipopValue) * 1.5,
|
|
45222
|
+
cx: ie.value < 0 ? fe : fe + se,
|
|
45223
|
+
cy: j + ge / 2,
|
|
45224
|
+
fill: ie.color,
|
|
45225
|
+
stroke: ue ? "black" : "none"
|
|
45226
|
+
}
|
|
45227
|
+
),
|
|
45228
|
+
/* @__PURE__ */ $.jsx(
|
|
45229
|
+
y0,
|
|
45230
|
+
{
|
|
45231
|
+
r: N(ie.lollipopValue),
|
|
45232
|
+
cx: ie.value < 0 ? fe : fe + se,
|
|
45233
|
+
cy: j + ge / 2,
|
|
45234
|
+
fill: "black"
|
|
45235
|
+
}
|
|
45236
|
+
)
|
|
45237
|
+
] }),
|
|
45211
45238
|
/* @__PURE__ */ $.jsx(
|
|
45212
|
-
|
|
45239
|
+
wa,
|
|
45213
45240
|
{
|
|
45214
|
-
|
|
45215
|
-
|
|
45216
|
-
|
|
45217
|
-
|
|
45241
|
+
id: `label-${Ue}-${p}`,
|
|
45242
|
+
x: Re,
|
|
45243
|
+
y: Le,
|
|
45244
|
+
dy: ".35em",
|
|
45245
|
+
textAnchor: "start",
|
|
45246
|
+
fill: "black",
|
|
45247
|
+
fontSize: 12,
|
|
45248
|
+
children: ie.label
|
|
45218
45249
|
}
|
|
45219
45250
|
)
|
|
45220
|
-
] })
|
|
45221
|
-
|
|
45222
|
-
|
|
45223
|
-
|
|
45224
|
-
|
|
45225
|
-
|
|
45226
|
-
|
|
45227
|
-
|
|
45228
|
-
|
|
45229
|
-
|
|
45230
|
-
|
|
45231
|
-
|
|
45232
|
-
|
|
45233
|
-
|
|
45234
|
-
|
|
45235
|
-
|
|
45236
|
-
|
|
45237
|
-
|
|
45238
|
-
|
|
45239
|
-
|
|
45240
|
-
|
|
45241
|
-
|
|
45242
|
-
|
|
45243
|
-
|
|
45244
|
-
|
|
45245
|
-
|
|
45246
|
-
|
|
45247
|
-
|
|
45248
|
-
|
|
45249
|
-
|
|
45250
|
-
|
|
45251
|
-
|
|
45252
|
-
|
|
45253
|
-
|
|
45254
|
-
|
|
45255
|
-
|
|
45256
|
-
|
|
45257
|
-
|
|
45258
|
-
|
|
45259
|
-
|
|
45260
|
-
|
|
45261
|
-
|
|
45262
|
-
}
|
|
45263
|
-
),
|
|
45264
|
-
!h && /* @__PURE__ */ $.jsx("div", { style: { display: "flex", position: "absolute", inset: 0, justifyContent: "center" }, children: /* @__PURE__ */ $.jsx(vU, { sx: { mt: 10 } }) }),
|
|
45265
|
-
a && g && /* @__PURE__ */ $.jsx(E, { children: /* @__PURE__ */ $.jsx(
|
|
45266
|
-
b,
|
|
45267
|
-
{
|
|
45268
|
-
top: m,
|
|
45269
|
-
left: B,
|
|
45270
|
-
style: { ...Mg, backgroundColor: "#283238", color: "white", zIndex: 1e3 },
|
|
45271
|
-
children: y && /* @__PURE__ */ $.jsx(a, { ...y })
|
|
45272
|
-
}
|
|
45273
|
-
) })
|
|
45274
|
-
] });
|
|
45251
|
+
] })
|
|
45252
|
+
]
|
|
45253
|
+
},
|
|
45254
|
+
Ue
|
|
45255
|
+
);
|
|
45256
|
+
}),
|
|
45257
|
+
/* @__PURE__ */ $.jsx($.Fragment, { children: /* @__PURE__ */ $.jsx(
|
|
45258
|
+
"line",
|
|
45259
|
+
{
|
|
45260
|
+
x1: W(0),
|
|
45261
|
+
x2: W(0),
|
|
45262
|
+
y1: 0,
|
|
45263
|
+
y2: J,
|
|
45264
|
+
stroke: "#000000"
|
|
45265
|
+
}
|
|
45266
|
+
) }),
|
|
45267
|
+
A && W.domain()[1] > 1.645 && /* @__PURE__ */ $.jsx(
|
|
45268
|
+
"line",
|
|
45269
|
+
{
|
|
45270
|
+
x1: W(1.645),
|
|
45271
|
+
x2: W(1.645),
|
|
45272
|
+
y1: 0,
|
|
45273
|
+
y2: J,
|
|
45274
|
+
stroke: "black",
|
|
45275
|
+
strokeDasharray: "5 7"
|
|
45276
|
+
}
|
|
45277
|
+
)
|
|
45278
|
+
] })
|
|
45279
|
+
}
|
|
45280
|
+
),
|
|
45281
|
+
!h && /* @__PURE__ */ $.jsx("div", { style: { display: "flex", position: "absolute", inset: 0, justifyContent: "center" }, children: /* @__PURE__ */ $.jsx(vU, { sx: { mt: 10 } }) }),
|
|
45282
|
+
a && g && /* @__PURE__ */ $.jsx(E, { children: /* @__PURE__ */ $.jsx(
|
|
45283
|
+
b,
|
|
45284
|
+
{
|
|
45285
|
+
top: m,
|
|
45286
|
+
left: B,
|
|
45287
|
+
style: { ...Mg, backgroundColor: "#283238", color: "white", zIndex: 1e3 },
|
|
45288
|
+
children: y && /* @__PURE__ */ $.jsx(a, { ...y })
|
|
45289
|
+
}
|
|
45290
|
+
) })
|
|
45291
|
+
] })
|
|
45292
|
+
);
|
|
45275
45293
|
};
|
|
45276
45294
|
export {
|
|
45277
45295
|
cj as BarPlot,
|