@wandelbots/wandelbots-js-react-components 2.24.2 → 2.25.0
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/components/jogging/JoggingCartesianTab.d.ts.map +1 -1
- package/dist/components/jogging/JoggingJointTab.d.ts.map +1 -1
- package/dist/components/jogging/JoggingStore.d.ts +2 -0
- package/dist/components/jogging/JoggingStore.d.ts.map +1 -1
- package/dist/index.cjs +22 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1018 -993
- package/dist/index.js.map +1 -1
- package/dist/themes/themeTypes.d.ts +1 -0
- package/dist/themes/themeTypes.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/jogging/JoggingCartesianTab.tsx +21 -3
- package/src/components/jogging/JoggingJointTab.tsx +42 -21
- package/src/components/jogging/JoggingStore.ts +3 -0
- package/src/themes/themeTypes.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { useThree as tu } from "@react-three/fiber";
|
|
|
8
8
|
import * as Ee from "three";
|
|
9
9
|
import { Vector3 as Cn, Matrix4 as pa, Quaternion as ru } from "three";
|
|
10
10
|
import { ConvexGeometry as au } from "three-stdlib";
|
|
11
|
-
import { useTheme as
|
|
11
|
+
import { useTheme as nt, IconButton as Pn, Typography as He, Slider as nu, Stack as Ve, CircularProgress as ou, capitalize as su, styled as ms, InputLabel as iu, Select as lu, FormControl as cu, MenuItem as ha, Box as Us, ToggleButtonGroup as du, Divider as Qr, ToggleButton as Ls, Tabs as uu, Tab as pu, Tooltip as hu, Dialog as mu, DialogTitle as fu, DialogContent as gu, DialogActions as yu, Button as ks, SvgIcon as bu, Popover as Su, Fab as vu, createTheme as xu, rgbToHex as Ou } from "@mui/material";
|
|
12
12
|
import { observer as De, useLocalObservable as Nn } from "mobx-react-lite";
|
|
13
13
|
import { I18nextProvider as wu, useTranslation as Rt, Trans as xt } from "react-i18next";
|
|
14
14
|
import Cu from "i18next-browser-languagedetector";
|
|
@@ -57,15 +57,15 @@ var fa = {};
|
|
|
57
57
|
var Fs;
|
|
58
58
|
function Bu() {
|
|
59
59
|
return Fs || (Fs = 1, process.env.NODE_ENV !== "production" && function() {
|
|
60
|
-
var e = Gl, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"),
|
|
60
|
+
var e = Gl, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), g = Symbol.iterator, h = "@@iterator";
|
|
61
61
|
function x(v) {
|
|
62
62
|
if (v === null || typeof v != "object")
|
|
63
63
|
return null;
|
|
64
|
-
var H =
|
|
64
|
+
var H = g && v[g] || v[h];
|
|
65
65
|
return typeof H == "function" ? H : null;
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
function
|
|
67
|
+
var E = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
68
|
+
function U(v) {
|
|
69
69
|
{
|
|
70
70
|
for (var H = arguments.length, K = new Array(H > 1 ? H - 1 : 0), re = 1; re < H; re++)
|
|
71
71
|
K[re - 1] = arguments[re];
|
|
@@ -74,7 +74,7 @@ function Bu() {
|
|
|
74
74
|
}
|
|
75
75
|
function F(v, H, K) {
|
|
76
76
|
{
|
|
77
|
-
var re =
|
|
77
|
+
var re = E.ReactDebugCurrentFrame, pe = re.getStackAddendum();
|
|
78
78
|
pe !== "" && (H += "%s", K = K.concat([pe]));
|
|
79
79
|
var ge = K.map(function(de) {
|
|
80
80
|
return String(de);
|
|
@@ -82,14 +82,14 @@ function Bu() {
|
|
|
82
82
|
ge.unshift("Warning: " + H), Function.prototype.apply.call(console[v], console, ge);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
var N = !1,
|
|
86
|
-
|
|
87
|
-
function
|
|
88
|
-
return !!(typeof v == "string" || typeof v == "function" || v === a || v === o ||
|
|
85
|
+
var N = !1, G = !1, W = !1, j = !1, L = !1, k;
|
|
86
|
+
k = Symbol.for("react.module.reference");
|
|
87
|
+
function y(v) {
|
|
88
|
+
return !!(typeof v == "string" || typeof v == "function" || v === a || v === o || L || v === n || v === c || v === d || j || v === f || N || G || W || typeof v == "object" && v !== null && (v.$$typeof === p || v.$$typeof === u || v.$$typeof === s || v.$$typeof === i || v.$$typeof === l || // This needs to include all possible module reference object
|
|
89
89
|
// types supported by any Flight configuration anywhere since
|
|
90
90
|
// we don't know which Flight build this will end up being used
|
|
91
91
|
// with.
|
|
92
|
-
v.$$typeof ===
|
|
92
|
+
v.$$typeof === k || v.getModuleId !== void 0));
|
|
93
93
|
}
|
|
94
94
|
function M(v, H, K) {
|
|
95
95
|
var re = v.displayName;
|
|
@@ -101,10 +101,10 @@ function Bu() {
|
|
|
101
101
|
function B(v) {
|
|
102
102
|
return v.displayName || "Context";
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function z(v) {
|
|
105
105
|
if (v == null)
|
|
106
106
|
return null;
|
|
107
|
-
if (typeof v.tag == "number" &&
|
|
107
|
+
if (typeof v.tag == "number" && U("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof v == "function")
|
|
108
108
|
return v.displayName || v.name || null;
|
|
109
109
|
if (typeof v == "string")
|
|
110
110
|
return v;
|
|
@@ -134,11 +134,11 @@ function Bu() {
|
|
|
134
134
|
return M(v, v.render, "ForwardRef");
|
|
135
135
|
case u:
|
|
136
136
|
var re = v.displayName || null;
|
|
137
|
-
return re !== null ? re :
|
|
137
|
+
return re !== null ? re : z(v.type) || "Memo";
|
|
138
138
|
case p: {
|
|
139
139
|
var pe = v, ge = pe._payload, de = pe._init;
|
|
140
140
|
try {
|
|
141
|
-
return
|
|
141
|
+
return z(de(ge));
|
|
142
142
|
} catch {
|
|
143
143
|
return null;
|
|
144
144
|
}
|
|
@@ -205,11 +205,11 @@ function Bu() {
|
|
|
205
205
|
})
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
|
-
te < 0 &&
|
|
208
|
+
te < 0 && U("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
var rr =
|
|
212
|
-
function
|
|
211
|
+
var rr = E.ReactCurrentDispatcher, Ft;
|
|
212
|
+
function ot(v, H, K) {
|
|
213
213
|
{
|
|
214
214
|
if (Ft === void 0)
|
|
215
215
|
try {
|
|
@@ -222,16 +222,16 @@ function Bu() {
|
|
|
222
222
|
` + Ft + v;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
var ut = !1,
|
|
225
|
+
var ut = !1, st;
|
|
226
226
|
{
|
|
227
227
|
var Tt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
228
|
-
|
|
228
|
+
st = new Tt();
|
|
229
229
|
}
|
|
230
230
|
function Ze(v, H) {
|
|
231
231
|
if (!v || ut)
|
|
232
232
|
return "";
|
|
233
233
|
{
|
|
234
|
-
var K =
|
|
234
|
+
var K = st.get(v);
|
|
235
235
|
if (K !== void 0)
|
|
236
236
|
return K;
|
|
237
237
|
}
|
|
@@ -253,29 +253,29 @@ function Bu() {
|
|
|
253
253
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
254
254
|
try {
|
|
255
255
|
Reflect.construct(de, []);
|
|
256
|
-
} catch (
|
|
257
|
-
re =
|
|
256
|
+
} catch (Ke) {
|
|
257
|
+
re = Ke;
|
|
258
258
|
}
|
|
259
259
|
Reflect.construct(v, [], de);
|
|
260
260
|
} else {
|
|
261
261
|
try {
|
|
262
262
|
de.call();
|
|
263
|
-
} catch (
|
|
264
|
-
re =
|
|
263
|
+
} catch (Ke) {
|
|
264
|
+
re = Ke;
|
|
265
265
|
}
|
|
266
266
|
v.call(de.prototype);
|
|
267
267
|
}
|
|
268
268
|
} else {
|
|
269
269
|
try {
|
|
270
270
|
throw Error();
|
|
271
|
-
} catch (
|
|
272
|
-
re =
|
|
271
|
+
} catch (Ke) {
|
|
272
|
+
re = Ke;
|
|
273
273
|
}
|
|
274
274
|
v();
|
|
275
275
|
}
|
|
276
|
-
} catch (
|
|
277
|
-
if (
|
|
278
|
-
for (var ce =
|
|
276
|
+
} catch (Ke) {
|
|
277
|
+
if (Ke && re && typeof Ke.stack == "string") {
|
|
278
|
+
for (var ce = Ke.stack.split(`
|
|
279
279
|
`), Je = re.stack.split(`
|
|
280
280
|
`), Te = ce.length - 1, $e = Je.length - 1; Te >= 1 && $e >= 0 && ce[Te] !== Je[$e]; )
|
|
281
281
|
$e--;
|
|
@@ -284,9 +284,9 @@ function Bu() {
|
|
|
284
284
|
if (Te !== 1 || $e !== 1)
|
|
285
285
|
do
|
|
286
286
|
if (Te--, $e--, $e < 0 || ce[Te] !== Je[$e]) {
|
|
287
|
-
var
|
|
287
|
+
var it = `
|
|
288
288
|
` + ce[Te].replace(" at new ", " at ");
|
|
289
|
-
return v.displayName &&
|
|
289
|
+
return v.displayName && it.includes("<anonymous>") && (it = it.replace("<anonymous>", v.displayName)), typeof v == "function" && st.set(v, it), it;
|
|
290
290
|
}
|
|
291
291
|
while (Te >= 1 && $e >= 0);
|
|
292
292
|
break;
|
|
@@ -295,8 +295,8 @@ function Bu() {
|
|
|
295
295
|
} finally {
|
|
296
296
|
ut = !1, rr.current = ge, Or(), Error.prepareStackTrace = pe;
|
|
297
297
|
}
|
|
298
|
-
var Rr = v ? v.displayName || v.name : "", or = Rr ?
|
|
299
|
-
return typeof v == "function" &&
|
|
298
|
+
var Rr = v ? v.displayName || v.name : "", or = Rr ? ot(Rr) : "";
|
|
299
|
+
return typeof v == "function" && st.set(v, or), or;
|
|
300
300
|
}
|
|
301
301
|
function ke(v, H, K) {
|
|
302
302
|
return Ze(v, !1);
|
|
@@ -311,12 +311,12 @@ function Bu() {
|
|
|
311
311
|
if (typeof v == "function")
|
|
312
312
|
return Ze(v, Et(v));
|
|
313
313
|
if (typeof v == "string")
|
|
314
|
-
return
|
|
314
|
+
return ot(v);
|
|
315
315
|
switch (v) {
|
|
316
316
|
case c:
|
|
317
|
-
return
|
|
317
|
+
return ot("Suspense");
|
|
318
318
|
case d:
|
|
319
|
-
return
|
|
319
|
+
return ot("SuspenseList");
|
|
320
320
|
}
|
|
321
321
|
if (typeof v == "object")
|
|
322
322
|
switch (v.$$typeof) {
|
|
@@ -334,7 +334,7 @@ function Bu() {
|
|
|
334
334
|
}
|
|
335
335
|
return "";
|
|
336
336
|
}
|
|
337
|
-
var gt = Object.prototype.hasOwnProperty, Ue = {}, Dt =
|
|
337
|
+
var gt = Object.prototype.hasOwnProperty, Ue = {}, Dt = E.ReactDebugCurrentFrame;
|
|
338
338
|
function It(v) {
|
|
339
339
|
if (v) {
|
|
340
340
|
var H = v._owner, K = Nt(v.type, v._source, H ? H.type : null);
|
|
@@ -357,7 +357,7 @@ function Bu() {
|
|
|
357
357
|
} catch (Te) {
|
|
358
358
|
ce = Te;
|
|
359
359
|
}
|
|
360
|
-
ce && !(ce instanceof Error) && (It(pe),
|
|
360
|
+
ce && !(ce instanceof Error) && (It(pe), U("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", re || "React class", K, de, typeof ce), It(null)), ce instanceof Error && !(ce.message in Ue) && (Ue[ce.message] = !0, It(pe), U("Failed %s type: %s", K, ce.message), It(null));
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
}
|
|
@@ -383,9 +383,9 @@ function Bu() {
|
|
|
383
383
|
}
|
|
384
384
|
function Q(v) {
|
|
385
385
|
if (Pr(v))
|
|
386
|
-
return
|
|
386
|
+
return U("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Gt(v)), q(v);
|
|
387
387
|
}
|
|
388
|
-
var Z =
|
|
388
|
+
var Z = E.ReactCurrentOwner, le = {
|
|
389
389
|
key: !0,
|
|
390
390
|
ref: !0,
|
|
391
391
|
__self: !0,
|
|
@@ -410,10 +410,10 @@ function Bu() {
|
|
|
410
410
|
function Ae(v, H) {
|
|
411
411
|
typeof v.ref == "string" && Z.current;
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function Qe(v, H) {
|
|
414
414
|
{
|
|
415
415
|
var K = function() {
|
|
416
|
-
ue || (ue = !0,
|
|
416
|
+
ue || (ue = !0, U("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", H));
|
|
417
417
|
};
|
|
418
418
|
K.isReactWarning = !0, Object.defineProperty(v, "key", {
|
|
419
419
|
get: K,
|
|
@@ -424,7 +424,7 @@ function Bu() {
|
|
|
424
424
|
function ar(v, H) {
|
|
425
425
|
{
|
|
426
426
|
var K = function() {
|
|
427
|
-
ee || (ee = !0,
|
|
427
|
+
ee || (ee = !0, U("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", H));
|
|
428
428
|
};
|
|
429
429
|
K.isReactWarning = !0, Object.defineProperty(v, "ref", {
|
|
430
430
|
get: K,
|
|
@@ -474,12 +474,12 @@ function Bu() {
|
|
|
474
474
|
}
|
|
475
475
|
if (ce || Je) {
|
|
476
476
|
var $e = typeof v == "function" ? v.displayName || v.name || "Unknown" : v;
|
|
477
|
-
ce &&
|
|
477
|
+
ce && Qe(de, $e), Je && ar(de, $e);
|
|
478
478
|
}
|
|
479
479
|
return yo(v, ce, Je, pe, re, Z.current, de);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
var la =
|
|
482
|
+
var la = E.ReactCurrentOwner, Vr = E.ReactDebugCurrentFrame;
|
|
483
483
|
function yt(v) {
|
|
484
484
|
if (v) {
|
|
485
485
|
var H = v._owner, K = Nt(v.type, v._source, H ? H.type : null);
|
|
@@ -495,7 +495,7 @@ function Bu() {
|
|
|
495
495
|
function je() {
|
|
496
496
|
{
|
|
497
497
|
if (la.current) {
|
|
498
|
-
var v =
|
|
498
|
+
var v = z(la.current.type);
|
|
499
499
|
if (v)
|
|
500
500
|
return `
|
|
501
501
|
|
|
@@ -530,7 +530,7 @@ Check the top-level render call using <` + K + ">.");
|
|
|
530
530
|
return;
|
|
531
531
|
nr[K] = !0;
|
|
532
532
|
var re = "";
|
|
533
|
-
v && v._owner && v._owner !== la.current && (re = " It was passed a child from " +
|
|
533
|
+
v && v._owner && v._owner !== la.current && (re = " It was passed a child from " + z(v._owner.type) + "."), yt(v), U('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', K, re), yt(null);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
function Ms(v, H) {
|
|
@@ -567,14 +567,14 @@ Check the top-level render call using <` + K + ">.");
|
|
|
567
567
|
else
|
|
568
568
|
return;
|
|
569
569
|
if (K) {
|
|
570
|
-
var re =
|
|
570
|
+
var re = z(H);
|
|
571
571
|
wr(K, v.props, "prop", re, v);
|
|
572
572
|
} else if (H.PropTypes !== void 0 && !ca) {
|
|
573
573
|
ca = !0;
|
|
574
|
-
var pe =
|
|
575
|
-
|
|
574
|
+
var pe = z(H);
|
|
575
|
+
U("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", pe || "Unknown");
|
|
576
576
|
}
|
|
577
|
-
typeof H.getDefaultProps == "function" && !H.getDefaultProps.isReactClassApproved &&
|
|
577
|
+
typeof H.getDefaultProps == "function" && !H.getDefaultProps.isReactClassApproved && U("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
function zd(v) {
|
|
@@ -582,48 +582,48 @@ Check the top-level render call using <` + K + ">.");
|
|
|
582
582
|
for (var H = Object.keys(v.props), K = 0; K < H.length; K++) {
|
|
583
583
|
var re = H[K];
|
|
584
584
|
if (re !== "children" && re !== "key") {
|
|
585
|
-
yt(v),
|
|
585
|
+
yt(v), U("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", re), yt(null);
|
|
586
586
|
break;
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
v.ref !== null && (yt(v),
|
|
589
|
+
v.ref !== null && (yt(v), U("Invalid attribute `ref` supplied to `React.Fragment`."), yt(null));
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
var js = {};
|
|
593
593
|
function $s(v, H, K, re, pe, ge) {
|
|
594
594
|
{
|
|
595
|
-
var de =
|
|
595
|
+
var de = y(v);
|
|
596
596
|
if (!de) {
|
|
597
597
|
var ce = "";
|
|
598
598
|
(v === void 0 || typeof v == "object" && v !== null && Object.keys(v).length === 0) && (ce += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
599
599
|
var Je = da();
|
|
600
600
|
Je ? ce += Je : ce += je();
|
|
601
601
|
var Te;
|
|
602
|
-
v === null ? Te = "null" : zt(v) ? Te = "array" : v !== void 0 && v.$$typeof === t ? (Te = "<" + (
|
|
602
|
+
v === null ? Te = "null" : zt(v) ? Te = "array" : v !== void 0 && v.$$typeof === t ? (Te = "<" + (z(v.type) || "Unknown") + " />", ce = " Did you accidentally export a JSX literal instead of a component?") : Te = typeof v, U("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Te, ce);
|
|
603
603
|
}
|
|
604
604
|
var $e = ia(v, H, K, pe, ge);
|
|
605
605
|
if ($e == null)
|
|
606
606
|
return $e;
|
|
607
607
|
if (de) {
|
|
608
|
-
var
|
|
609
|
-
if (
|
|
608
|
+
var it = H.children;
|
|
609
|
+
if (it !== void 0)
|
|
610
610
|
if (re)
|
|
611
|
-
if (zt(
|
|
612
|
-
for (var Rr = 0; Rr <
|
|
613
|
-
Ms(
|
|
614
|
-
Object.freeze && Object.freeze(
|
|
611
|
+
if (zt(it)) {
|
|
612
|
+
for (var Rr = 0; Rr < it.length; Rr++)
|
|
613
|
+
Ms(it[Rr], v);
|
|
614
|
+
Object.freeze && Object.freeze(it);
|
|
615
615
|
} else
|
|
616
|
-
|
|
616
|
+
U("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
617
617
|
else
|
|
618
|
-
Ms(
|
|
618
|
+
Ms(it, v);
|
|
619
619
|
}
|
|
620
620
|
if (gt.call(H, "key")) {
|
|
621
|
-
var or =
|
|
621
|
+
var or = z(v), Ke = Object.keys(H).filter(function(Qd) {
|
|
622
622
|
return Qd !== "key";
|
|
623
|
-
}), bo =
|
|
623
|
+
}), bo = Ke.length > 0 ? "{key: someKey, " + Ke.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
624
624
|
if (!js[or + bo]) {
|
|
625
|
-
var Wd =
|
|
626
|
-
|
|
625
|
+
var Wd = Ke.length > 0 ? "{" + Ke.join(": ..., ") + ": ...}" : "{}";
|
|
626
|
+
U(`A props object containing a "key" prop is being spread into JSX:
|
|
627
627
|
let props = %s;
|
|
628
628
|
<%s {...props} />
|
|
629
629
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -1026,7 +1026,7 @@ function Xu() {
|
|
|
1026
1026
|
if (qs) return me;
|
|
1027
1027
|
qs = 1;
|
|
1028
1028
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), u = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), f = Symbol.for("react.client.reference");
|
|
1029
|
-
function
|
|
1029
|
+
function g(h) {
|
|
1030
1030
|
if (typeof h == "object" && h !== null) {
|
|
1031
1031
|
var x = h.$$typeof;
|
|
1032
1032
|
switch (x) {
|
|
@@ -1057,32 +1057,32 @@ function Xu() {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
1059
1059
|
return me.ContextConsumer = o, me.ContextProvider = s, me.Element = e, me.ForwardRef = i, me.Fragment = r, me.Lazy = u, me.Memo = d, me.Portal = t, me.Profiler = n, me.StrictMode = a, me.Suspense = l, me.SuspenseList = c, me.isContextConsumer = function(h) {
|
|
1060
|
-
return
|
|
1060
|
+
return g(h) === o;
|
|
1061
1061
|
}, me.isContextProvider = function(h) {
|
|
1062
|
-
return
|
|
1062
|
+
return g(h) === s;
|
|
1063
1063
|
}, me.isElement = function(h) {
|
|
1064
1064
|
return typeof h == "object" && h !== null && h.$$typeof === e;
|
|
1065
1065
|
}, me.isForwardRef = function(h) {
|
|
1066
|
-
return
|
|
1066
|
+
return g(h) === i;
|
|
1067
1067
|
}, me.isFragment = function(h) {
|
|
1068
|
-
return
|
|
1068
|
+
return g(h) === r;
|
|
1069
1069
|
}, me.isLazy = function(h) {
|
|
1070
|
-
return
|
|
1070
|
+
return g(h) === u;
|
|
1071
1071
|
}, me.isMemo = function(h) {
|
|
1072
|
-
return
|
|
1072
|
+
return g(h) === d;
|
|
1073
1073
|
}, me.isPortal = function(h) {
|
|
1074
|
-
return
|
|
1074
|
+
return g(h) === t;
|
|
1075
1075
|
}, me.isProfiler = function(h) {
|
|
1076
|
-
return
|
|
1076
|
+
return g(h) === n;
|
|
1077
1077
|
}, me.isStrictMode = function(h) {
|
|
1078
|
-
return
|
|
1078
|
+
return g(h) === a;
|
|
1079
1079
|
}, me.isSuspense = function(h) {
|
|
1080
|
-
return
|
|
1080
|
+
return g(h) === l;
|
|
1081
1081
|
}, me.isSuspenseList = function(h) {
|
|
1082
|
-
return
|
|
1082
|
+
return g(h) === c;
|
|
1083
1083
|
}, me.isValidElementType = function(h) {
|
|
1084
1084
|
return typeof h == "string" || typeof h == "function" || h === r || h === n || h === a || h === l || h === c || h === p || typeof h == "object" && h !== null && (h.$$typeof === u || h.$$typeof === d || h.$$typeof === s || h.$$typeof === o || h.$$typeof === i || h.$$typeof === f || h.getModuleId !== void 0);
|
|
1085
|
-
}, me.typeOf =
|
|
1085
|
+
}, me.typeOf = g, me;
|
|
1086
1086
|
}
|
|
1087
1087
|
var fe = {};
|
|
1088
1088
|
/**
|
|
@@ -1127,7 +1127,7 @@ function Zu() {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
|
-
var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"),
|
|
1130
|
+
var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), g = Symbol.for("react.client.reference");
|
|
1131
1131
|
fe.ContextConsumer = s, fe.ContextProvider = i, fe.Element = t, fe.ForwardRef = l, fe.Fragment = a, fe.Lazy = p, fe.Memo = u, fe.Portal = r, fe.Profiler = o, fe.StrictMode = n, fe.Suspense = c, fe.SuspenseList = d, fe.isContextConsumer = function(h) {
|
|
1132
1132
|
return e(h) === s;
|
|
1133
1133
|
}, fe.isContextProvider = function(h) {
|
|
@@ -1153,7 +1153,7 @@ function Zu() {
|
|
|
1153
1153
|
}, fe.isSuspenseList = function(h) {
|
|
1154
1154
|
return e(h) === d;
|
|
1155
1155
|
}, fe.isValidElementType = function(h) {
|
|
1156
|
-
return typeof h == "string" || typeof h == "function" || h === a || h === o || h === n || h === c || h === d || h === f || typeof h == "object" && h !== null && (h.$$typeof === p || h.$$typeof === u || h.$$typeof === i || h.$$typeof === s || h.$$typeof === l || h.$$typeof ===
|
|
1156
|
+
return typeof h == "string" || typeof h == "function" || h === a || h === o || h === n || h === c || h === d || h === f || typeof h == "object" && h !== null && (h.$$typeof === p || h.$$typeof === u || h.$$typeof === i || h.$$typeof === s || h.$$typeof === l || h.$$typeof === g || h.getModuleId !== void 0);
|
|
1157
1157
|
}, fe.typeOf = e;
|
|
1158
1158
|
}()), fe;
|
|
1159
1159
|
}
|
|
@@ -1176,7 +1176,7 @@ function Kl(e) {
|
|
|
1176
1176
|
t[r] = Kl(e[r]);
|
|
1177
1177
|
}), t;
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function We(e, t, r = {
|
|
1180
1180
|
clone: !0
|
|
1181
1181
|
}) {
|
|
1182
1182
|
const a = r.clone ? {
|
|
@@ -1184,7 +1184,7 @@ function qe(e, t, r = {
|
|
|
1184
1184
|
} : e;
|
|
1185
1185
|
return Ot(e) && Ot(t) && Object.keys(t).forEach((n) => {
|
|
1186
1186
|
/* @__PURE__ */ J.isValidElement(t[n]) || Rn.isValidElementType(t[n]) ? a[n] = t[n] : Ot(t[n]) && // Avoid prototype pollution
|
|
1187
|
-
Object.prototype.hasOwnProperty.call(e, n) && Ot(e[n]) ? a[n] =
|
|
1187
|
+
Object.prototype.hasOwnProperty.call(e, n) && Ot(e[n]) ? a[n] = We(e[n], t[n], r) : r.clone ? a[n] = Ot(t[n]) ? Kl(t[n]) : t[n] : a[n] = t[n];
|
|
1188
1188
|
}), a;
|
|
1189
1189
|
}
|
|
1190
1190
|
const tp = (e) => {
|
|
@@ -1224,8 +1224,8 @@ function rp(e) {
|
|
|
1224
1224
|
return `@media (max-width:${(typeof t[p] == "number" ? t[p] : p) - a / 100}${r})`;
|
|
1225
1225
|
}
|
|
1226
1226
|
function c(p, f) {
|
|
1227
|
-
const
|
|
1228
|
-
return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${r}) and (max-width:${(
|
|
1227
|
+
const g = s.indexOf(f);
|
|
1228
|
+
return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${r}) and (max-width:${(g !== -1 && typeof t[s[g]] == "number" ? t[s[g]] : f) - a / 100}${r})`;
|
|
1229
1229
|
}
|
|
1230
1230
|
function d(p) {
|
|
1231
1231
|
return s.indexOf(p) + 1 < s.length ? c(p, s[s.indexOf(p) + 1]) : i(p);
|
|
@@ -1293,7 +1293,7 @@ const ip = {
|
|
|
1293
1293
|
borderRadius: 4
|
|
1294
1294
|
}, tr = process.env.NODE_ENV !== "production" ? S.oneOfType([S.number, S.string, S.object, S.array]) : {};
|
|
1295
1295
|
function Aa(e, t) {
|
|
1296
|
-
return t ?
|
|
1296
|
+
return t ? We(e, t, {
|
|
1297
1297
|
clone: !1
|
|
1298
1298
|
// No need to clone deep, it's way faster.
|
|
1299
1299
|
}) : e;
|
|
@@ -1360,7 +1360,7 @@ function Xl(e, t) {
|
|
|
1360
1360
|
}, t);
|
|
1361
1361
|
}
|
|
1362
1362
|
function cp(e, ...t) {
|
|
1363
|
-
const r = Yl(e), a = [r, ...t].reduce((n, o) =>
|
|
1363
|
+
const r = Yl(e), a = [r, ...t].reduce((n, o) => We(n, o), {});
|
|
1364
1364
|
return Xl(Object.keys(r), a);
|
|
1365
1365
|
}
|
|
1366
1366
|
function dp(e, t) {
|
|
@@ -1384,7 +1384,7 @@ function vo({
|
|
|
1384
1384
|
let o;
|
|
1385
1385
|
return n.reduce((s, i, l) => (Array.isArray(e) ? (s[i] = e[l] != null ? e[l] : e[o], o = l) : typeof e == "object" ? (s[i] = e[i] != null ? e[i] : e[o], o = i) : s[i] = e, s), {});
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1387
|
+
function qe(e) {
|
|
1388
1388
|
if (typeof e != "string")
|
|
1389
1389
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Xt(7));
|
|
1390
1390
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -1415,7 +1415,7 @@ function Ie(e) {
|
|
|
1415
1415
|
const i = s[t], l = s.theme, c = zn(l, a) || {};
|
|
1416
1416
|
return mt(s, i, (u) => {
|
|
1417
1417
|
let p = _n(c, n, u);
|
|
1418
|
-
return u === p && typeof u == "string" && (p = _n(c, n, `${t}${u === "default" ? "" :
|
|
1418
|
+
return u === p && typeof u == "string" && (p = _n(c, n, `${t}${u === "default" ? "" : qe(u)}`, u)), r === !1 ? p : {
|
|
1419
1419
|
[r]: p
|
|
1420
1420
|
};
|
|
1421
1421
|
});
|
|
@@ -1514,7 +1514,7 @@ function qn(...e) {
|
|
|
1514
1514
|
}), a), {}), r = (a) => Object.keys(a).reduce((n, o) => t[o] ? Aa(n, t[o](a)) : n, {});
|
|
1515
1515
|
return r.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((a, n) => Object.assign(a, n.propTypes), {}) : {}, r.filterProps = e.reduce((a, n) => a.concat(n.filterProps), []), r;
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1517
|
+
function lt(e) {
|
|
1518
1518
|
return typeof e != "number" ? e : `${e}px solid`;
|
|
1519
1519
|
}
|
|
1520
1520
|
function dt(e, t) {
|
|
@@ -1524,7 +1524,7 @@ function dt(e, t) {
|
|
|
1524
1524
|
transform: t
|
|
1525
1525
|
});
|
|
1526
1526
|
}
|
|
1527
|
-
const bp = dt("border",
|
|
1527
|
+
const bp = dt("border", lt), Sp = dt("borderTop", lt), vp = dt("borderRight", lt), xp = dt("borderBottom", lt), Op = dt("borderLeft", lt), wp = dt("borderColor"), Cp = dt("borderTopColor"), Pp = dt("borderRightColor"), Vp = dt("borderBottomColor"), Rp = dt("borderLeftColor"), _p = dt("outline", lt), Ap = dt("outlineColor"), Wn = (e) => {
|
|
1528
1528
|
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
1529
1529
|
const t = za(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (a) => ({
|
|
1530
1530
|
borderRadius: ur(t, a)
|
|
@@ -1670,23 +1670,23 @@ const Ga = {
|
|
|
1670
1670
|
// borders
|
|
1671
1671
|
border: {
|
|
1672
1672
|
themeKey: "borders",
|
|
1673
|
-
transform:
|
|
1673
|
+
transform: lt
|
|
1674
1674
|
},
|
|
1675
1675
|
borderTop: {
|
|
1676
1676
|
themeKey: "borders",
|
|
1677
|
-
transform:
|
|
1677
|
+
transform: lt
|
|
1678
1678
|
},
|
|
1679
1679
|
borderRight: {
|
|
1680
1680
|
themeKey: "borders",
|
|
1681
|
-
transform:
|
|
1681
|
+
transform: lt
|
|
1682
1682
|
},
|
|
1683
1683
|
borderBottom: {
|
|
1684
1684
|
themeKey: "borders",
|
|
1685
|
-
transform:
|
|
1685
|
+
transform: lt
|
|
1686
1686
|
},
|
|
1687
1687
|
borderLeft: {
|
|
1688
1688
|
themeKey: "borders",
|
|
1689
|
-
transform:
|
|
1689
|
+
transform: lt
|
|
1690
1690
|
},
|
|
1691
1691
|
borderColor: {
|
|
1692
1692
|
themeKey: "palette"
|
|
@@ -1705,7 +1705,7 @@ const Ga = {
|
|
|
1705
1705
|
},
|
|
1706
1706
|
outline: {
|
|
1707
1707
|
themeKey: "borders",
|
|
1708
|
-
transform:
|
|
1708
|
+
transform: lt
|
|
1709
1709
|
},
|
|
1710
1710
|
outlineColor: {
|
|
1711
1711
|
themeKey: "palette"
|
|
@@ -1984,9 +1984,9 @@ function Kp() {
|
|
|
1984
1984
|
[r]: a
|
|
1985
1985
|
};
|
|
1986
1986
|
const p = zn(n, c) || {};
|
|
1987
|
-
return u ? u(s) : mt(s, a, (
|
|
1988
|
-
let h = _n(p, d,
|
|
1989
|
-
return
|
|
1987
|
+
return u ? u(s) : mt(s, a, (g) => {
|
|
1988
|
+
let h = _n(p, d, g);
|
|
1989
|
+
return g === h && typeof g == "string" && (h = _n(p, d, `${r}${g === "default" ? "" : qe(g)}`, g)), l === !1 ? h : {
|
|
1990
1990
|
[l]: h
|
|
1991
1991
|
};
|
|
1992
1992
|
});
|
|
@@ -2016,15 +2016,15 @@ function Kp() {
|
|
|
2016
2016
|
if (o[p])
|
|
2017
2017
|
u = Aa(u, e(p, f, n, o));
|
|
2018
2018
|
else {
|
|
2019
|
-
const
|
|
2019
|
+
const g = mt({
|
|
2020
2020
|
theme: n
|
|
2021
2021
|
}, f, (h) => ({
|
|
2022
2022
|
[p]: h
|
|
2023
2023
|
}));
|
|
2024
|
-
Wp(
|
|
2024
|
+
Wp(g, f) ? u[p] = t({
|
|
2025
2025
|
sx: f,
|
|
2026
2026
|
theme: n
|
|
2027
|
-
}) : u = Aa(u,
|
|
2027
|
+
}) : u = Aa(u, g);
|
|
2028
2028
|
}
|
|
2029
2029
|
else
|
|
2030
2030
|
u = Aa(u, e(p, f, n, o));
|
|
@@ -2057,7 +2057,7 @@ function Xn(e = {}, ...t) {
|
|
|
2057
2057
|
shape: o = {},
|
|
2058
2058
|
...s
|
|
2059
2059
|
} = e, i = rp(r), l = ec(n);
|
|
2060
|
-
let c =
|
|
2060
|
+
let c = We({
|
|
2061
2061
|
breakpoints: i,
|
|
2062
2062
|
direction: "ltr",
|
|
2063
2063
|
components: {},
|
|
@@ -2072,7 +2072,7 @@ function Xn(e = {}, ...t) {
|
|
|
2072
2072
|
...o
|
|
2073
2073
|
}
|
|
2074
2074
|
}, s);
|
|
2075
|
-
return c = sp(c), c.applyStyles = Yp, c = t.reduce((d, u) =>
|
|
2075
|
+
return c = sp(c), c.applyStyles = Yp, c = t.reduce((d, u) => We(d, u), c), c.unstable_sxConfig = {
|
|
2076
2076
|
...Ga,
|
|
2077
2077
|
...s == null ? void 0 : s.unstable_sxConfig
|
|
2078
2078
|
}, c.unstable_sx = function(u) {
|
|
@@ -2278,7 +2278,7 @@ function sc(e = {}) {
|
|
|
2278
2278
|
dh(i, t, r);
|
|
2279
2279
|
}
|
|
2280
2280
|
return (i, l = {}) => {
|
|
2281
|
-
Yu(i, (
|
|
2281
|
+
Yu(i, (G) => G.filter((W) => W !== Kr));
|
|
2282
2282
|
const {
|
|
2283
2283
|
name: c,
|
|
2284
2284
|
slot: d,
|
|
@@ -2287,33 +2287,33 @@ function sc(e = {}) {
|
|
|
2287
2287
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
2288
2288
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2289
2289
|
overridesResolver: f = ch(ic(d)),
|
|
2290
|
-
...
|
|
2290
|
+
...g
|
|
2291
2291
|
} = l, h = u !== void 0 ? u : (
|
|
2292
2292
|
// TODO v6: remove `Root` in the next major release
|
|
2293
2293
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2294
2294
|
d && d !== "Root" && d !== "root" || !1
|
|
2295
2295
|
), x = p || !1;
|
|
2296
|
-
let
|
|
2297
|
-
d === "Root" || d === "root" ?
|
|
2298
|
-
const
|
|
2299
|
-
shouldForwardProp:
|
|
2296
|
+
let E = xo;
|
|
2297
|
+
d === "Root" || d === "root" ? E = a : d ? E = n : mh(i) && (E = void 0);
|
|
2298
|
+
const U = Ku(i, {
|
|
2299
|
+
shouldForwardProp: E,
|
|
2300
2300
|
label: ph(c, d),
|
|
2301
|
-
...
|
|
2302
|
-
}), F = (
|
|
2303
|
-
if (typeof
|
|
2304
|
-
return function(
|
|
2305
|
-
return yn(
|
|
2301
|
+
...g
|
|
2302
|
+
}), F = (G) => {
|
|
2303
|
+
if (typeof G == "function" && G.__emotion_real !== G)
|
|
2304
|
+
return function(j) {
|
|
2305
|
+
return yn(j, G);
|
|
2306
2306
|
};
|
|
2307
|
-
if (Ot(
|
|
2308
|
-
const W = nc(
|
|
2309
|
-
return W.variants ? function(
|
|
2310
|
-
return yn(
|
|
2307
|
+
if (Ot(G)) {
|
|
2308
|
+
const W = nc(G);
|
|
2309
|
+
return W.variants ? function(L) {
|
|
2310
|
+
return yn(L, W);
|
|
2311
2311
|
} : W.style;
|
|
2312
2312
|
}
|
|
2313
|
-
return
|
|
2314
|
-
}, N = (...
|
|
2315
|
-
const W = [],
|
|
2316
|
-
if (W.push(o), c && f &&
|
|
2313
|
+
return G;
|
|
2314
|
+
}, N = (...G) => {
|
|
2315
|
+
const W = [], j = G.map(F), L = [];
|
|
2316
|
+
if (W.push(o), c && f && L.push(function(B) {
|
|
2317
2317
|
var X, Se;
|
|
2318
2318
|
const D = (Se = (X = B.theme.components) == null ? void 0 : X[c]) == null ? void 0 : Se.styleOverrides;
|
|
2319
2319
|
if (!D)
|
|
@@ -2322,23 +2322,23 @@ function sc(e = {}) {
|
|
|
2322
2322
|
for (const Y in D)
|
|
2323
2323
|
te[Y] = yn(B, D[Y]);
|
|
2324
2324
|
return f(B, te);
|
|
2325
|
-
}), c && !h &&
|
|
2325
|
+
}), c && !h && L.push(function(B) {
|
|
2326
2326
|
var te, X;
|
|
2327
|
-
const
|
|
2327
|
+
const z = B.theme, D = (X = (te = z == null ? void 0 : z.components) == null ? void 0 : te[c]) == null ? void 0 : X.variants;
|
|
2328
2328
|
return D ? oc(B, D) : null;
|
|
2329
|
-
}), x ||
|
|
2330
|
-
const M =
|
|
2329
|
+
}), x || L.push(Kr), Array.isArray(j[0])) {
|
|
2330
|
+
const M = j.shift(), B = new Array(W.length).fill(""), z = new Array(L.length).fill("");
|
|
2331
2331
|
let D;
|
|
2332
|
-
D = [...B, ...M, ...
|
|
2332
|
+
D = [...B, ...M, ...z], D.raw = [...B, ...M.raw, ...z], W.unshift(D);
|
|
2333
2333
|
}
|
|
2334
|
-
const
|
|
2335
|
-
return i.muiName && (
|
|
2334
|
+
const k = [...W, ...j, ...L], y = U(...k);
|
|
2335
|
+
return i.muiName && (y.muiName = i.muiName), process.env.NODE_ENV !== "production" && (y.displayName = uh(c, d, i)), y;
|
|
2336
2336
|
};
|
|
2337
|
-
return
|
|
2337
|
+
return U.withConfig && (N.withConfig = U.withConfig), N;
|
|
2338
2338
|
};
|
|
2339
2339
|
}
|
|
2340
2340
|
function uh(e, t, r) {
|
|
2341
|
-
return e ? `${e}${
|
|
2341
|
+
return e ? `${e}${qe(t || "")}` : `Styled(${ih(r)})`;
|
|
2342
2342
|
}
|
|
2343
2343
|
function ph(e, t) {
|
|
2344
2344
|
let r;
|
|
@@ -2665,7 +2665,7 @@ function Vh(e) {
|
|
|
2665
2665
|
className: o
|
|
2666
2666
|
} = e;
|
|
2667
2667
|
if (!t) {
|
|
2668
|
-
const f = Pt(r == null ? void 0 : r.className, o, n == null ? void 0 : n.className, a == null ? void 0 : a.className),
|
|
2668
|
+
const f = Pt(r == null ? void 0 : r.className, o, n == null ? void 0 : n.className, a == null ? void 0 : a.className), g = {
|
|
2669
2669
|
...r == null ? void 0 : r.style,
|
|
2670
2670
|
...n == null ? void 0 : n.style,
|
|
2671
2671
|
...a == null ? void 0 : a.style
|
|
@@ -2674,7 +2674,7 @@ function Vh(e) {
|
|
|
2674
2674
|
...n,
|
|
2675
2675
|
...a
|
|
2676
2676
|
};
|
|
2677
|
-
return f.length > 0 && (h.className = f), Object.keys(
|
|
2677
|
+
return f.length > 0 && (h.className = f), Object.keys(g).length > 0 && (h.style = g), {
|
|
2678
2678
|
props: h,
|
|
2679
2679
|
internalRef: void 0
|
|
2680
2680
|
};
|
|
@@ -2821,42 +2821,42 @@ function Lh(e, t = {}) {
|
|
|
2821
2821
|
} = wo(l, t);
|
|
2822
2822
|
let p = u;
|
|
2823
2823
|
const f = {}, {
|
|
2824
|
-
[i]:
|
|
2824
|
+
[i]: g,
|
|
2825
2825
|
...h
|
|
2826
2826
|
} = o;
|
|
2827
2827
|
if (Object.entries(h || {}).forEach(([F, N]) => {
|
|
2828
2828
|
const {
|
|
2829
|
-
vars:
|
|
2829
|
+
vars: G,
|
|
2830
2830
|
css: W,
|
|
2831
|
-
varsWithDefaults:
|
|
2831
|
+
varsWithDefaults: j
|
|
2832
2832
|
} = wo(N, t);
|
|
2833
|
-
p =
|
|
2833
|
+
p = We(p, j), f[F] = {
|
|
2834
2834
|
css: W,
|
|
2835
|
-
vars:
|
|
2835
|
+
vars: G
|
|
2836
2836
|
};
|
|
2837
|
-
}),
|
|
2837
|
+
}), g) {
|
|
2838
2838
|
const {
|
|
2839
2839
|
css: F,
|
|
2840
2840
|
vars: N,
|
|
2841
|
-
varsWithDefaults:
|
|
2842
|
-
} = wo(
|
|
2843
|
-
p =
|
|
2841
|
+
varsWithDefaults: G
|
|
2842
|
+
} = wo(g, t);
|
|
2843
|
+
p = We(p, G), f[i] = {
|
|
2844
2844
|
css: F,
|
|
2845
2845
|
vars: N
|
|
2846
2846
|
};
|
|
2847
2847
|
}
|
|
2848
2848
|
function x(F, N) {
|
|
2849
|
-
var W,
|
|
2850
|
-
let
|
|
2851
|
-
if (n === "class" && (
|
|
2852
|
-
if (
|
|
2849
|
+
var W, j;
|
|
2850
|
+
let G = n;
|
|
2851
|
+
if (n === "class" && (G = ".%s"), n === "data" && (G = "[data-%s]"), n != null && n.startsWith("data-") && !n.includes("%s") && (G = `[${n}="%s"]`), F) {
|
|
2852
|
+
if (G === "media")
|
|
2853
2853
|
return e.defaultColorScheme === F ? ":root" : {
|
|
2854
|
-
[`@media (prefers-color-scheme: ${((
|
|
2854
|
+
[`@media (prefers-color-scheme: ${((j = (W = o[F]) == null ? void 0 : W.palette) == null ? void 0 : j.mode) || F})`]: {
|
|
2855
2855
|
":root": N
|
|
2856
2856
|
}
|
|
2857
2857
|
};
|
|
2858
|
-
if (
|
|
2859
|
-
return e.defaultColorScheme === F ? `:root, ${
|
|
2858
|
+
if (G)
|
|
2859
|
+
return e.defaultColorScheme === F ? `:root, ${G.replace("%s", String(F))}` : G.replace("%s", String(F));
|
|
2860
2860
|
}
|
|
2861
2861
|
return ":root";
|
|
2862
2862
|
}
|
|
@@ -2869,52 +2869,52 @@ function Lh(e, t = {}) {
|
|
|
2869
2869
|
return Object.entries(f).forEach(([, {
|
|
2870
2870
|
vars: N
|
|
2871
2871
|
}]) => {
|
|
2872
|
-
F =
|
|
2872
|
+
F = We(F, N);
|
|
2873
2873
|
}), F;
|
|
2874
2874
|
},
|
|
2875
2875
|
generateStyleSheets: () => {
|
|
2876
|
-
var
|
|
2876
|
+
var L, k;
|
|
2877
2877
|
const F = [], N = e.defaultColorScheme || "light";
|
|
2878
|
-
function
|
|
2879
|
-
Object.keys(M).length && F.push(typeof
|
|
2880
|
-
[
|
|
2878
|
+
function G(y, M) {
|
|
2879
|
+
Object.keys(M).length && F.push(typeof y == "string" ? {
|
|
2880
|
+
[y]: {
|
|
2881
2881
|
...M
|
|
2882
2882
|
}
|
|
2883
|
-
} :
|
|
2883
|
+
} : y);
|
|
2884
2884
|
}
|
|
2885
|
-
|
|
2885
|
+
G(r(void 0, {
|
|
2886
2886
|
...d
|
|
2887
2887
|
}), d);
|
|
2888
2888
|
const {
|
|
2889
2889
|
[N]: W,
|
|
2890
|
-
...
|
|
2890
|
+
...j
|
|
2891
2891
|
} = f;
|
|
2892
2892
|
if (W) {
|
|
2893
2893
|
const {
|
|
2894
|
-
css:
|
|
2895
|
-
} = W, M = (
|
|
2894
|
+
css: y
|
|
2895
|
+
} = W, M = (k = (L = o[N]) == null ? void 0 : L.palette) == null ? void 0 : k.mode, B = !a && M ? {
|
|
2896
2896
|
colorScheme: M,
|
|
2897
|
-
...
|
|
2897
|
+
...y
|
|
2898
2898
|
} : {
|
|
2899
|
-
...
|
|
2899
|
+
...y
|
|
2900
2900
|
};
|
|
2901
|
-
|
|
2901
|
+
G(r(N, {
|
|
2902
2902
|
...B
|
|
2903
2903
|
}), B);
|
|
2904
2904
|
}
|
|
2905
|
-
return Object.entries(
|
|
2905
|
+
return Object.entries(j).forEach(([y, {
|
|
2906
2906
|
css: M
|
|
2907
2907
|
}]) => {
|
|
2908
2908
|
var D, te;
|
|
2909
|
-
const B = (te = (D = o[
|
|
2909
|
+
const B = (te = (D = o[y]) == null ? void 0 : D.palette) == null ? void 0 : te.mode, z = !a && B ? {
|
|
2910
2910
|
colorScheme: B,
|
|
2911
2911
|
...M
|
|
2912
2912
|
} : {
|
|
2913
2913
|
...M
|
|
2914
2914
|
};
|
|
2915
|
-
|
|
2916
|
-
...
|
|
2917
|
-
}),
|
|
2915
|
+
G(r(y, {
|
|
2916
|
+
...z
|
|
2917
|
+
}), z);
|
|
2918
2918
|
}), F;
|
|
2919
2919
|
}
|
|
2920
2920
|
};
|
|
@@ -2976,7 +2976,7 @@ const zh = (e) => ({
|
|
|
2976
2976
|
const p = c > 0 ? o[d[c - 1]] : "column";
|
|
2977
2977
|
o[l] = p;
|
|
2978
2978
|
}
|
|
2979
|
-
}), r =
|
|
2979
|
+
}), r = We(r, mt({
|
|
2980
2980
|
theme: t
|
|
2981
2981
|
}, s, (l, c) => e.useFlexGap ? {
|
|
2982
2982
|
gap: ur(a, l)
|
|
@@ -3005,22 +3005,22 @@ function Jh(e = {}) {
|
|
|
3005
3005
|
const d = r(l), u = ah(d), {
|
|
3006
3006
|
component: p = "div",
|
|
3007
3007
|
direction: f = "column",
|
|
3008
|
-
spacing:
|
|
3008
|
+
spacing: g = 0,
|
|
3009
3009
|
divider: h,
|
|
3010
3010
|
children: x,
|
|
3011
|
-
className:
|
|
3012
|
-
useFlexGap:
|
|
3011
|
+
className: E,
|
|
3012
|
+
useFlexGap: U = !1,
|
|
3013
3013
|
...F
|
|
3014
3014
|
} = u, N = {
|
|
3015
3015
|
direction: f,
|
|
3016
|
-
spacing:
|
|
3017
|
-
useFlexGap:
|
|
3018
|
-
},
|
|
3016
|
+
spacing: g,
|
|
3017
|
+
useFlexGap: U
|
|
3018
|
+
}, G = n();
|
|
3019
3019
|
return /* @__PURE__ */ b.jsx(o, {
|
|
3020
3020
|
as: p,
|
|
3021
3021
|
ownerState: N,
|
|
3022
3022
|
ref: c,
|
|
3023
|
-
className: Pt(
|
|
3023
|
+
className: Pt(G.root, E),
|
|
3024
3024
|
...F,
|
|
3025
3025
|
children: h ? Dh(x, h) : x
|
|
3026
3026
|
});
|
|
@@ -3241,8 +3241,8 @@ function Ss(e) {
|
|
|
3241
3241
|
function u(h) {
|
|
3242
3242
|
const x = ei(h, si.text.primary) >= r ? si.text.primary : qh.text.primary;
|
|
3243
3243
|
if (process.env.NODE_ENV !== "production") {
|
|
3244
|
-
const
|
|
3245
|
-
|
|
3244
|
+
const E = ei(h, x);
|
|
3245
|
+
E < 3 && console.error([`MUI: The contrast ratio of ${E}:1 for ${x} on ${h}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
3246
3246
|
`));
|
|
3247
3247
|
}
|
|
3248
3248
|
return x;
|
|
@@ -3250,15 +3250,15 @@ function Ss(e) {
|
|
|
3250
3250
|
const p = ({
|
|
3251
3251
|
color: h,
|
|
3252
3252
|
name: x,
|
|
3253
|
-
mainShade:
|
|
3254
|
-
lightShade:
|
|
3253
|
+
mainShade: E = 500,
|
|
3254
|
+
lightShade: U = 300,
|
|
3255
3255
|
darkShade: F = 700
|
|
3256
3256
|
}) => {
|
|
3257
3257
|
if (h = {
|
|
3258
3258
|
...h
|
|
3259
|
-
}, !h.main && h[
|
|
3259
|
+
}, !h.main && h[E] && (h.main = h[E]), !h.hasOwnProperty("main"))
|
|
3260
3260
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
|
|
3261
|
-
The color object needs to have a \`main\` property or a \`${
|
|
3261
|
+
The color object needs to have a \`main\` property or a \`${E}\` property.` : Xt(11, x ? ` (${x})` : "", E));
|
|
3262
3262
|
if (typeof h.main != "string")
|
|
3263
3263
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
|
|
3264
3264
|
\`color.main\` should be a string, but \`${JSON.stringify(h.main)}\` was provided instead.
|
|
@@ -3274,10 +3274,10 @@ const theme1 = createTheme({ palette: {
|
|
|
3274
3274
|
const theme2 = createTheme({ palette: {
|
|
3275
3275
|
primary: { main: green[500] },
|
|
3276
3276
|
} });` : Xt(12, x ? ` (${x})` : "", JSON.stringify(h.main)));
|
|
3277
|
-
return ii(h, "light",
|
|
3277
|
+
return ii(h, "light", U, a), ii(h, "dark", F, a), h.contrastText || (h.contrastText = u(h.main)), h;
|
|
3278
3278
|
};
|
|
3279
3279
|
let f;
|
|
3280
|
-
return t === "light" ? f = uc() : t === "dark" && (f = pc()), process.env.NODE_ENV !== "production" && (f || console.error(`MUI: The palette mode \`${t}\` is not supported.`)),
|
|
3280
|
+
return t === "light" ? f = uc() : t === "dark" && (f = pc()), process.env.NODE_ENV !== "production" && (f || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), We({
|
|
3281
3281
|
// A collection of common colors.
|
|
3282
3282
|
common: {
|
|
3283
3283
|
...$a
|
|
@@ -3383,33 +3383,33 @@ function am(e, t) {
|
|
|
3383
3383
|
...u
|
|
3384
3384
|
} = typeof t == "function" ? t(e) : t;
|
|
3385
3385
|
process.env.NODE_ENV !== "production" && (typeof a != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof l != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
3386
|
-
const p = a / 14, f = d || ((x) => `${x / l * p}rem`),
|
|
3386
|
+
const p = a / 14, f = d || ((x) => `${x / l * p}rem`), g = (x, E, U, F, N) => ({
|
|
3387
3387
|
fontFamily: r,
|
|
3388
3388
|
fontWeight: x,
|
|
3389
|
-
fontSize: f(
|
|
3389
|
+
fontSize: f(E),
|
|
3390
3390
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
3391
|
-
lineHeight:
|
|
3391
|
+
lineHeight: U,
|
|
3392
3392
|
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
3393
3393
|
// across font-families can cause issues with the kerning.
|
|
3394
3394
|
...r === ci ? {
|
|
3395
|
-
letterSpacing: `${rm(F /
|
|
3395
|
+
letterSpacing: `${rm(F / E)}em`
|
|
3396
3396
|
} : {},
|
|
3397
3397
|
...N,
|
|
3398
3398
|
...c
|
|
3399
3399
|
}), h = {
|
|
3400
|
-
h1:
|
|
3401
|
-
h2:
|
|
3402
|
-
h3:
|
|
3403
|
-
h4:
|
|
3404
|
-
h5:
|
|
3405
|
-
h6:
|
|
3406
|
-
subtitle1:
|
|
3407
|
-
subtitle2:
|
|
3408
|
-
body1:
|
|
3409
|
-
body2:
|
|
3410
|
-
button:
|
|
3411
|
-
caption:
|
|
3412
|
-
overline:
|
|
3400
|
+
h1: g(n, 96, 1.167, -1.5),
|
|
3401
|
+
h2: g(n, 60, 1.2, -0.5),
|
|
3402
|
+
h3: g(o, 48, 1.167, 0),
|
|
3403
|
+
h4: g(o, 34, 1.235, 0.25),
|
|
3404
|
+
h5: g(o, 24, 1.334, 0),
|
|
3405
|
+
h6: g(s, 20, 1.6, 0.15),
|
|
3406
|
+
subtitle1: g(o, 16, 1.75, 0.15),
|
|
3407
|
+
subtitle2: g(s, 14, 1.57, 0.1),
|
|
3408
|
+
body1: g(o, 16, 1.5, 0.15),
|
|
3409
|
+
body2: g(o, 14, 1.43, 0.15),
|
|
3410
|
+
button: g(s, 14, 1.75, 0.4, li),
|
|
3411
|
+
caption: g(o, 12, 1.66, 0.4),
|
|
3412
|
+
overline: g(o, 12, 2.66, 1, li),
|
|
3413
3413
|
// TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
|
|
3414
3414
|
inherit: {
|
|
3415
3415
|
fontFamily: "inherit",
|
|
@@ -3419,7 +3419,7 @@ function am(e, t) {
|
|
|
3419
3419
|
letterSpacing: "inherit"
|
|
3420
3420
|
}
|
|
3421
3421
|
};
|
|
3422
|
-
return
|
|
3422
|
+
return We({
|
|
3423
3423
|
htmlFontSize: l,
|
|
3424
3424
|
pxToRem: f,
|
|
3425
3425
|
fontFamily: r,
|
|
@@ -3550,7 +3550,7 @@ function Jo(e = {}, ...t) {
|
|
|
3550
3550
|
e.generateThemeVars === void 0)
|
|
3551
3551
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : Xt(20));
|
|
3552
3552
|
const d = Ss(o), u = Xn(e);
|
|
3553
|
-
let p =
|
|
3553
|
+
let p = We(u, {
|
|
3554
3554
|
mixins: tm(u.breakpoints, a),
|
|
3555
3555
|
palette: d,
|
|
3556
3556
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
@@ -3561,36 +3561,36 @@ function Jo(e = {}, ...t) {
|
|
|
3561
3561
|
...pm
|
|
3562
3562
|
}
|
|
3563
3563
|
});
|
|
3564
|
-
if (p =
|
|
3565
|
-
const f = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"],
|
|
3566
|
-
let
|
|
3567
|
-
for (
|
|
3568
|
-
const
|
|
3569
|
-
if (f.includes(
|
|
3564
|
+
if (p = We(p, c), p = t.reduce((f, g) => We(f, g), p), process.env.NODE_ENV !== "production") {
|
|
3565
|
+
const f = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], g = (h, x) => {
|
|
3566
|
+
let E;
|
|
3567
|
+
for (E in h) {
|
|
3568
|
+
const U = h[E];
|
|
3569
|
+
if (f.includes(E) && Object.keys(U).length > 0) {
|
|
3570
3570
|
if (process.env.NODE_ENV !== "production") {
|
|
3571
|
-
const F = Ja("",
|
|
3572
|
-
console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${
|
|
3571
|
+
const F = Ja("", E);
|
|
3572
|
+
console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${E}\` internal state.`, "You can not override it like this: ", JSON.stringify(h, null, 2), "", `Instead, you need to use the '&.${F}' syntax:`, JSON.stringify({
|
|
3573
3573
|
root: {
|
|
3574
|
-
[`&.${F}`]:
|
|
3574
|
+
[`&.${F}`]: U
|
|
3575
3575
|
}
|
|
3576
3576
|
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
3577
3577
|
`));
|
|
3578
3578
|
}
|
|
3579
|
-
h[
|
|
3579
|
+
h[E] = {};
|
|
3580
3580
|
}
|
|
3581
3581
|
}
|
|
3582
3582
|
};
|
|
3583
3583
|
Object.keys(p.components).forEach((h) => {
|
|
3584
3584
|
const x = p.components[h].styleOverrides;
|
|
3585
|
-
x && h.startsWith("Mui") &&
|
|
3585
|
+
x && h.startsWith("Mui") && g(x, h);
|
|
3586
3586
|
});
|
|
3587
3587
|
}
|
|
3588
3588
|
return p.unstable_sxConfig = {
|
|
3589
3589
|
...Ga,
|
|
3590
3590
|
...c == null ? void 0 : c.unstable_sxConfig
|
|
3591
|
-
}, p.unstable_sx = function(
|
|
3591
|
+
}, p.unstable_sx = function(g) {
|
|
3592
3592
|
return Kr({
|
|
3593
|
-
sx:
|
|
3593
|
+
sx: g,
|
|
3594
3594
|
theme: this
|
|
3595
3595
|
});
|
|
3596
3596
|
}, p.toRuntimeSource = hc, p;
|
|
@@ -3683,7 +3683,7 @@ function vm(e, t) {
|
|
|
3683
3683
|
e[r] || (e[r] = {});
|
|
3684
3684
|
});
|
|
3685
3685
|
}
|
|
3686
|
-
function
|
|
3686
|
+
function $(e, t, r) {
|
|
3687
3687
|
!e[t] && r && (e[t] = r);
|
|
3688
3688
|
}
|
|
3689
3689
|
function _a(e) {
|
|
@@ -3751,17 +3751,17 @@ function wm(e = {}, ...t) {
|
|
|
3751
3751
|
...c
|
|
3752
3752
|
} = e, d = Object.keys(r)[0], u = a || (r.light && d !== "light" ? "light" : d), p = Om(o), {
|
|
3753
3753
|
[u]: f,
|
|
3754
|
-
light:
|
|
3754
|
+
light: g,
|
|
3755
3755
|
dark: h,
|
|
3756
3756
|
...x
|
|
3757
|
-
} = r,
|
|
3757
|
+
} = r, E = {
|
|
3758
3758
|
...x
|
|
3759
3759
|
};
|
|
3760
|
-
let
|
|
3761
|
-
if ((u === "dark" && !("dark" in r) || u === "light" && !("light" in r)) && (
|
|
3760
|
+
let U = f;
|
|
3761
|
+
if ((u === "dark" && !("dark" in r) || u === "light" && !("light" in r)) && (U = !0), !U)
|
|
3762
3762
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${u}\` option is either missing or invalid.` : Xt(21, u));
|
|
3763
|
-
const F = Co(
|
|
3764
|
-
|
|
3763
|
+
const F = Co(E, U, c, u);
|
|
3764
|
+
g && !E.light && Co(E, g, void 0, "light"), h && !E.dark && Co(E, h, void 0, "dark");
|
|
3765
3765
|
let N = {
|
|
3766
3766
|
defaultColorScheme: u,
|
|
3767
3767
|
...F,
|
|
@@ -3769,53 +3769,53 @@ function wm(e = {}, ...t) {
|
|
|
3769
3769
|
colorSchemeSelector: i,
|
|
3770
3770
|
rootSelector: l,
|
|
3771
3771
|
getCssVar: p,
|
|
3772
|
-
colorSchemes:
|
|
3772
|
+
colorSchemes: E,
|
|
3773
3773
|
font: {
|
|
3774
3774
|
...em(F.typography),
|
|
3775
3775
|
...F.font
|
|
3776
3776
|
},
|
|
3777
3777
|
spacing: xm(c.spacing)
|
|
3778
3778
|
};
|
|
3779
|
-
Object.keys(N.colorSchemes).forEach((
|
|
3780
|
-
const
|
|
3781
|
-
const
|
|
3782
|
-
return p(B,
|
|
3779
|
+
Object.keys(N.colorSchemes).forEach((k) => {
|
|
3780
|
+
const y = N.colorSchemes[k].palette, M = (B) => {
|
|
3781
|
+
const z = B.split("-"), D = z[1], te = z[2];
|
|
3782
|
+
return p(B, y[D][te]);
|
|
3783
3783
|
};
|
|
3784
|
-
if (
|
|
3785
|
-
|
|
3786
|
-
const B = Za(
|
|
3787
|
-
|
|
3788
|
-
}
|
|
3789
|
-
if (
|
|
3790
|
-
|
|
3791
|
-
const B = Za(
|
|
3792
|
-
|
|
3793
|
-
}
|
|
3794
|
-
Mt(
|
|
3795
|
-
const
|
|
3796
|
-
B !== "tonalOffset" &&
|
|
3784
|
+
if (y.mode === "light" && ($(y.common, "background", "#fff"), $(y.common, "onBackground", "#000")), y.mode === "dark" && ($(y.common, "background", "#000"), $(y.common, "onBackground", "#fff")), vm(y, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), y.mode === "light") {
|
|
3785
|
+
$(y.Alert, "errorColor", ye(y.error.light, 0.6)), $(y.Alert, "infoColor", ye(y.info.light, 0.6)), $(y.Alert, "successColor", ye(y.success.light, 0.6)), $(y.Alert, "warningColor", ye(y.warning.light, 0.6)), $(y.Alert, "errorFilledBg", M("palette-error-main")), $(y.Alert, "infoFilledBg", M("palette-info-main")), $(y.Alert, "successFilledBg", M("palette-success-main")), $(y.Alert, "warningFilledBg", M("palette-warning-main")), $(y.Alert, "errorFilledColor", bt(() => y.getContrastText(y.error.main))), $(y.Alert, "infoFilledColor", bt(() => y.getContrastText(y.info.main))), $(y.Alert, "successFilledColor", bt(() => y.getContrastText(y.success.main))), $(y.Alert, "warningFilledColor", bt(() => y.getContrastText(y.warning.main))), $(y.Alert, "errorStandardBg", be(y.error.light, 0.9)), $(y.Alert, "infoStandardBg", be(y.info.light, 0.9)), $(y.Alert, "successStandardBg", be(y.success.light, 0.9)), $(y.Alert, "warningStandardBg", be(y.warning.light, 0.9)), $(y.Alert, "errorIconColor", M("palette-error-main")), $(y.Alert, "infoIconColor", M("palette-info-main")), $(y.Alert, "successIconColor", M("palette-success-main")), $(y.Alert, "warningIconColor", M("palette-warning-main")), $(y.AppBar, "defaultBg", M("palette-grey-100")), $(y.Avatar, "defaultBg", M("palette-grey-400")), $(y.Button, "inheritContainedBg", M("palette-grey-300")), $(y.Button, "inheritContainedHoverBg", M("palette-grey-A100")), $(y.Chip, "defaultBorder", M("palette-grey-400")), $(y.Chip, "defaultAvatarColor", M("palette-grey-700")), $(y.Chip, "defaultIconColor", M("palette-grey-700")), $(y.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), $(y.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), $(y.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), $(y.LinearProgress, "primaryBg", be(y.primary.main, 0.62)), $(y.LinearProgress, "secondaryBg", be(y.secondary.main, 0.62)), $(y.LinearProgress, "errorBg", be(y.error.main, 0.62)), $(y.LinearProgress, "infoBg", be(y.info.main, 0.62)), $(y.LinearProgress, "successBg", be(y.success.main, 0.62)), $(y.LinearProgress, "warningBg", be(y.warning.main, 0.62)), $(y.Skeleton, "bg", `rgba(${M("palette-text-primaryChannel")} / 0.11)`), $(y.Slider, "primaryTrack", be(y.primary.main, 0.62)), $(y.Slider, "secondaryTrack", be(y.secondary.main, 0.62)), $(y.Slider, "errorTrack", be(y.error.main, 0.62)), $(y.Slider, "infoTrack", be(y.info.main, 0.62)), $(y.Slider, "successTrack", be(y.success.main, 0.62)), $(y.Slider, "warningTrack", be(y.warning.main, 0.62));
|
|
3786
|
+
const B = Za(y.background.default, 0.8);
|
|
3787
|
+
$(y.SnackbarContent, "bg", B), $(y.SnackbarContent, "color", bt(() => y.getContrastText(B))), $(y.SpeedDialAction, "fabHoverBg", Za(y.background.paper, 0.15)), $(y.StepConnector, "border", M("palette-grey-400")), $(y.StepContent, "border", M("palette-grey-400")), $(y.Switch, "defaultColor", M("palette-common-white")), $(y.Switch, "defaultDisabledColor", M("palette-grey-100")), $(y.Switch, "primaryDisabledColor", be(y.primary.main, 0.62)), $(y.Switch, "secondaryDisabledColor", be(y.secondary.main, 0.62)), $(y.Switch, "errorDisabledColor", be(y.error.main, 0.62)), $(y.Switch, "infoDisabledColor", be(y.info.main, 0.62)), $(y.Switch, "successDisabledColor", be(y.success.main, 0.62)), $(y.Switch, "warningDisabledColor", be(y.warning.main, 0.62)), $(y.TableCell, "border", be(Xa(y.divider, 1), 0.88)), $(y.Tooltip, "bg", Xa(y.grey[700], 0.92));
|
|
3788
|
+
}
|
|
3789
|
+
if (y.mode === "dark") {
|
|
3790
|
+
$(y.Alert, "errorColor", be(y.error.light, 0.6)), $(y.Alert, "infoColor", be(y.info.light, 0.6)), $(y.Alert, "successColor", be(y.success.light, 0.6)), $(y.Alert, "warningColor", be(y.warning.light, 0.6)), $(y.Alert, "errorFilledBg", M("palette-error-dark")), $(y.Alert, "infoFilledBg", M("palette-info-dark")), $(y.Alert, "successFilledBg", M("palette-success-dark")), $(y.Alert, "warningFilledBg", M("palette-warning-dark")), $(y.Alert, "errorFilledColor", bt(() => y.getContrastText(y.error.dark))), $(y.Alert, "infoFilledColor", bt(() => y.getContrastText(y.info.dark))), $(y.Alert, "successFilledColor", bt(() => y.getContrastText(y.success.dark))), $(y.Alert, "warningFilledColor", bt(() => y.getContrastText(y.warning.dark))), $(y.Alert, "errorStandardBg", ye(y.error.light, 0.9)), $(y.Alert, "infoStandardBg", ye(y.info.light, 0.9)), $(y.Alert, "successStandardBg", ye(y.success.light, 0.9)), $(y.Alert, "warningStandardBg", ye(y.warning.light, 0.9)), $(y.Alert, "errorIconColor", M("palette-error-main")), $(y.Alert, "infoIconColor", M("palette-info-main")), $(y.Alert, "successIconColor", M("palette-success-main")), $(y.Alert, "warningIconColor", M("palette-warning-main")), $(y.AppBar, "defaultBg", M("palette-grey-900")), $(y.AppBar, "darkBg", M("palette-background-paper")), $(y.AppBar, "darkColor", M("palette-text-primary")), $(y.Avatar, "defaultBg", M("palette-grey-600")), $(y.Button, "inheritContainedBg", M("palette-grey-800")), $(y.Button, "inheritContainedHoverBg", M("palette-grey-700")), $(y.Chip, "defaultBorder", M("palette-grey-700")), $(y.Chip, "defaultAvatarColor", M("palette-grey-300")), $(y.Chip, "defaultIconColor", M("palette-grey-300")), $(y.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), $(y.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), $(y.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), $(y.LinearProgress, "primaryBg", ye(y.primary.main, 0.5)), $(y.LinearProgress, "secondaryBg", ye(y.secondary.main, 0.5)), $(y.LinearProgress, "errorBg", ye(y.error.main, 0.5)), $(y.LinearProgress, "infoBg", ye(y.info.main, 0.5)), $(y.LinearProgress, "successBg", ye(y.success.main, 0.5)), $(y.LinearProgress, "warningBg", ye(y.warning.main, 0.5)), $(y.Skeleton, "bg", `rgba(${M("palette-text-primaryChannel")} / 0.13)`), $(y.Slider, "primaryTrack", ye(y.primary.main, 0.5)), $(y.Slider, "secondaryTrack", ye(y.secondary.main, 0.5)), $(y.Slider, "errorTrack", ye(y.error.main, 0.5)), $(y.Slider, "infoTrack", ye(y.info.main, 0.5)), $(y.Slider, "successTrack", ye(y.success.main, 0.5)), $(y.Slider, "warningTrack", ye(y.warning.main, 0.5));
|
|
3791
|
+
const B = Za(y.background.default, 0.98);
|
|
3792
|
+
$(y.SnackbarContent, "bg", B), $(y.SnackbarContent, "color", bt(() => y.getContrastText(B))), $(y.SpeedDialAction, "fabHoverBg", Za(y.background.paper, 0.15)), $(y.StepConnector, "border", M("palette-grey-600")), $(y.StepContent, "border", M("palette-grey-600")), $(y.Switch, "defaultColor", M("palette-grey-300")), $(y.Switch, "defaultDisabledColor", M("palette-grey-600")), $(y.Switch, "primaryDisabledColor", ye(y.primary.main, 0.55)), $(y.Switch, "secondaryDisabledColor", ye(y.secondary.main, 0.55)), $(y.Switch, "errorDisabledColor", ye(y.error.main, 0.55)), $(y.Switch, "infoDisabledColor", ye(y.info.main, 0.55)), $(y.Switch, "successDisabledColor", ye(y.success.main, 0.55)), $(y.Switch, "warningDisabledColor", ye(y.warning.main, 0.55)), $(y.TableCell, "border", ye(Xa(y.divider, 1), 0.68)), $(y.Tooltip, "bg", Xa(y.grey[700], 0.92));
|
|
3793
|
+
}
|
|
3794
|
+
Mt(y.background, "default"), Mt(y.background, "paper"), Mt(y.common, "background"), Mt(y.common, "onBackground"), Mt(y, "divider"), Object.keys(y).forEach((B) => {
|
|
3795
|
+
const z = y[B];
|
|
3796
|
+
B !== "tonalOffset" && z && typeof z == "object" && (z.main && $(y[B], "mainChannel", Ra(_a(z.main))), z.light && $(y[B], "lightChannel", Ra(_a(z.light))), z.dark && $(y[B], "darkChannel", Ra(_a(z.dark))), z.contrastText && $(y[B], "contrastTextChannel", Ra(_a(z.contrastText))), B === "text" && (Mt(y[B], "primary"), Mt(y[B], "secondary")), B === "action" && (z.active && Mt(y[B], "active"), z.selected && Mt(y[B], "selected")));
|
|
3797
3797
|
});
|
|
3798
|
-
}), N = t.reduce((
|
|
3799
|
-
const
|
|
3798
|
+
}), N = t.reduce((k, y) => We(k, y), N);
|
|
3799
|
+
const G = {
|
|
3800
3800
|
prefix: o,
|
|
3801
3801
|
disableCssColorScheme: n,
|
|
3802
3802
|
shouldSkipGeneratingVar: s,
|
|
3803
3803
|
getSelector: Sm(N)
|
|
3804
3804
|
}, {
|
|
3805
3805
|
vars: W,
|
|
3806
|
-
generateThemeVars:
|
|
3807
|
-
generateStyleSheets:
|
|
3808
|
-
} = Lh(N,
|
|
3809
|
-
return N.vars = W, Object.entries(N.colorSchemes[N.defaultColorScheme]).forEach(([
|
|
3810
|
-
N[
|
|
3811
|
-
}), N.generateThemeVars =
|
|
3806
|
+
generateThemeVars: j,
|
|
3807
|
+
generateStyleSheets: L
|
|
3808
|
+
} = Lh(N, G);
|
|
3809
|
+
return N.vars = W, Object.entries(N.colorSchemes[N.defaultColorScheme]).forEach(([k, y]) => {
|
|
3810
|
+
N[k] = y;
|
|
3811
|
+
}), N.generateThemeVars = j, N.generateStyleSheets = L, N.generateSpacing = function() {
|
|
3812
3812
|
return ec(c.spacing, Hn(this));
|
|
3813
3813
|
}, N.getColorSchemeSelector = kh(i), N.spacing = N.generateSpacing(), N.shouldSkipGeneratingVar = s, N.unstable_sxConfig = {
|
|
3814
3814
|
...Ga,
|
|
3815
3815
|
...c == null ? void 0 : c.unstable_sxConfig
|
|
3816
|
-
}, N.unstable_sx = function(
|
|
3816
|
+
}, N.unstable_sx = function(y) {
|
|
3817
3817
|
return Kr({
|
|
3818
|
-
sx:
|
|
3818
|
+
sx: y,
|
|
3819
3819
|
theme: this
|
|
3820
3820
|
});
|
|
3821
3821
|
}, N.toRuntimeSource = hc, N;
|
|
@@ -4301,47 +4301,47 @@ class Mn extends eo {
|
|
|
4301
4301
|
}
|
|
4302
4302
|
const u = this.resolve(t, r);
|
|
4303
4303
|
let p = u == null ? void 0 : u.res;
|
|
4304
|
-
const f = (u == null ? void 0 : u.usedKey) || s,
|
|
4304
|
+
const f = (u == null ? void 0 : u.usedKey) || s, g = (u == null ? void 0 : u.exactUsedKey) || s, h = ["[object Number]", "[object Function]", "[object RegExp]"], x = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject, U = r.count !== void 0 && !ae(r.count), F = Mn.hasDefaultValue(r), N = U ? this.pluralResolver.getSuffix(c, r.count, r) : "", G = r.ordinal && U ? this.pluralResolver.getSuffix(c, r.count, {
|
|
4305
4305
|
ordinal: !1
|
|
4306
|
-
}) : "", W =
|
|
4307
|
-
let
|
|
4308
|
-
|
|
4309
|
-
const
|
|
4310
|
-
if (
|
|
4306
|
+
}) : "", W = U && !r.ordinal && r.count === 0, j = W && r[`defaultValue${this.options.pluralSeparator}zero`] || r[`defaultValue${N}`] || r[`defaultValue${G}`] || r.defaultValue;
|
|
4307
|
+
let L = p;
|
|
4308
|
+
E && !p && F && (L = j);
|
|
4309
|
+
const k = bi(L), y = Object.prototype.toString.apply(L);
|
|
4310
|
+
if (E && L && k && h.indexOf(y) < 0 && !(ae(x) && Array.isArray(L))) {
|
|
4311
4311
|
if (!r.returnObjects && !this.options.returnObjects) {
|
|
4312
4312
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
4313
|
-
const M = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(f,
|
|
4313
|
+
const M = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(f, L, {
|
|
4314
4314
|
...r,
|
|
4315
4315
|
ns: i
|
|
4316
4316
|
}) : `key '${s} (${this.language})' returned an object instead of string.`;
|
|
4317
4317
|
return n ? (u.res = M, u.usedParams = this.getUsedParamsDetails(r), u) : M;
|
|
4318
4318
|
}
|
|
4319
4319
|
if (o) {
|
|
4320
|
-
const M = Array.isArray(
|
|
4321
|
-
for (const D in
|
|
4322
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4323
|
-
const te = `${
|
|
4320
|
+
const M = Array.isArray(L), B = M ? [] : {}, z = M ? g : f;
|
|
4321
|
+
for (const D in L)
|
|
4322
|
+
if (Object.prototype.hasOwnProperty.call(L, D)) {
|
|
4323
|
+
const te = `${z}${o}${D}`;
|
|
4324
4324
|
F && !p ? B[D] = this.translate(te, {
|
|
4325
4325
|
...r,
|
|
4326
|
-
defaultValue: bi(
|
|
4326
|
+
defaultValue: bi(j) ? j[D] : void 0,
|
|
4327
4327
|
joinArrays: !1,
|
|
4328
4328
|
ns: i
|
|
4329
4329
|
}) : B[D] = this.translate(te, {
|
|
4330
4330
|
...r,
|
|
4331
4331
|
joinArrays: !1,
|
|
4332
4332
|
ns: i
|
|
4333
|
-
}), B[D] === te && (B[D] =
|
|
4333
|
+
}), B[D] === te && (B[D] = L[D]);
|
|
4334
4334
|
}
|
|
4335
4335
|
p = B;
|
|
4336
4336
|
}
|
|
4337
|
-
} else if (
|
|
4337
|
+
} else if (E && ae(x) && Array.isArray(p))
|
|
4338
4338
|
p = p.join(x), p && (p = this.extendTranslation(p, t, r, a));
|
|
4339
4339
|
else {
|
|
4340
4340
|
let M = !1, B = !1;
|
|
4341
|
-
!this.isValidLookup(p) && F && (M = !0, p =
|
|
4342
|
-
const D = (r.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && B ? void 0 : p, te = F &&
|
|
4341
|
+
!this.isValidLookup(p) && F && (M = !0, p = j), this.isValidLookup(p) || (B = !0, p = s);
|
|
4342
|
+
const D = (r.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && B ? void 0 : p, te = F && j !== p && this.options.updateMissing;
|
|
4343
4343
|
if (B || M || te) {
|
|
4344
|
-
if (this.logger.log(te ? "updateKey" : "missingKey", c, l, s, te ?
|
|
4344
|
+
if (this.logger.log(te ? "updateKey" : "missingKey", c, l, s, te ? j : p), o) {
|
|
4345
4345
|
const ie = this.resolve(s, {
|
|
4346
4346
|
...r,
|
|
4347
4347
|
keySeparator: !1
|
|
@@ -4359,12 +4359,12 @@ class Mn extends eo {
|
|
|
4359
4359
|
const Ge = F && se !== p ? se : D;
|
|
4360
4360
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(ie, l, he, Ge, te, r) : (At = this.backendConnector) != null && At.saveMissing && this.backendConnector.saveMissing(ie, l, he, Ge, te, r), this.emit("missingKey", ie, l, he, p);
|
|
4361
4361
|
};
|
|
4362
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
4362
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && U ? X.forEach((ie) => {
|
|
4363
4363
|
const he = this.pluralResolver.getSuffixes(ie, r);
|
|
4364
4364
|
W && r[`defaultValue${this.options.pluralSeparator}zero`] && he.indexOf(`${this.options.pluralSeparator}zero`) < 0 && he.push(`${this.options.pluralSeparator}zero`), he.forEach((se) => {
|
|
4365
|
-
Y([ie], s + se, r[`defaultValue${se}`] ||
|
|
4365
|
+
Y([ie], s + se, r[`defaultValue${se}`] || j);
|
|
4366
4366
|
});
|
|
4367
|
-
}) : Y(X, s,
|
|
4367
|
+
}) : Y(X, s, j));
|
|
4368
4368
|
}
|
|
4369
4369
|
p = this.extendTranslation(p, t, r, u, a), B && p === s && this.options.appendNamespaceToMissingKey && (p = `${l}:${s}`), (B || M) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${s}` : s, M ? p : void 0));
|
|
4370
4370
|
}
|
|
@@ -4391,19 +4391,19 @@ class Mn extends eo {
|
|
|
4391
4391
|
const u = ae(t) && (((d = a == null ? void 0 : a.interpolation) == null ? void 0 : d.skipOnVariables) !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
4392
4392
|
let p;
|
|
4393
4393
|
if (u) {
|
|
4394
|
-
const
|
|
4395
|
-
p =
|
|
4394
|
+
const g = t.match(this.interpolator.nestingRegexp);
|
|
4395
|
+
p = g && g.length;
|
|
4396
4396
|
}
|
|
4397
4397
|
let f = a.replace && !ae(a.replace) ? a.replace : a;
|
|
4398
4398
|
if (this.options.interpolation.defaultVariables && (f = {
|
|
4399
4399
|
...this.options.interpolation.defaultVariables,
|
|
4400
4400
|
...f
|
|
4401
4401
|
}), t = this.interpolator.interpolate(t, f, a.lng || this.language || n.usedLng, a), u) {
|
|
4402
|
-
const
|
|
4402
|
+
const g = t.match(this.interpolator.nestingRegexp), h = g && g.length;
|
|
4403
4403
|
p < h && (a.nest = !1);
|
|
4404
4404
|
}
|
|
4405
4405
|
!a.lng && n && n.res && (a.lng = this.language || n.usedLng), a.nest !== !1 && (t = this.interpolator.nest(t, function() {
|
|
4406
|
-
for (var
|
|
4406
|
+
for (var g = arguments.length, h = new Array(g), x = 0; x < g; x++)
|
|
4407
4407
|
h[x] = arguments[x];
|
|
4408
4408
|
return (o == null ? void 0 : o[0]) === h[0] && !a.context ? (s.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${r[0]}`), null) : s.translate(...h, r);
|
|
4409
4409
|
}, a)), a.interpolation && this.interpolator.reset();
|
|
@@ -4425,10 +4425,10 @@ class Mn extends eo {
|
|
|
4425
4425
|
n = d;
|
|
4426
4426
|
let u = c.namespaces;
|
|
4427
4427
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
4428
|
-
const p = r.count !== void 0 && !ae(r.count), f = p && !r.ordinal && r.count === 0,
|
|
4428
|
+
const p = r.count !== void 0 && !ae(r.count), f = p && !r.ordinal && r.count === 0, g = r.context !== void 0 && (ae(r.context) || typeof r.context == "number") && r.context !== "", h = r.lngs ? r.lngs : this.languageUtils.toResolveHierarchy(r.lng || this.language, r.fallbackLng);
|
|
4429
4429
|
u.forEach((x) => {
|
|
4430
|
-
var
|
|
4431
|
-
this.isValidLookup(a) || (i = x, !yi[`${h[0]}-${x}`] && ((
|
|
4430
|
+
var E, U;
|
|
4431
|
+
this.isValidLookup(a) || (i = x, !yi[`${h[0]}-${x}`] && ((E = this.utils) != null && E.hasLoadedNamespace) && !((U = this.utils) != null && U.hasLoadedNamespace(i)) && (yi[`${h[0]}-${x}`] = !0, this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), h.forEach((F) => {
|
|
4432
4432
|
var W;
|
|
4433
4433
|
if (this.isValidLookup(a)) return;
|
|
4434
4434
|
s = F;
|
|
@@ -4436,17 +4436,17 @@ class Mn extends eo {
|
|
|
4436
4436
|
if ((W = this.i18nFormat) != null && W.addLookupKeys)
|
|
4437
4437
|
this.i18nFormat.addLookupKeys(N, d, F, x, r);
|
|
4438
4438
|
else {
|
|
4439
|
-
let
|
|
4440
|
-
p && (
|
|
4441
|
-
const
|
|
4442
|
-
if (p && (N.push(d +
|
|
4443
|
-
const
|
|
4444
|
-
N.push(
|
|
4439
|
+
let j;
|
|
4440
|
+
p && (j = this.pluralResolver.getSuffix(F, r.count, r));
|
|
4441
|
+
const L = `${this.options.pluralSeparator}zero`, k = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
4442
|
+
if (p && (N.push(d + j), r.ordinal && j.indexOf(k) === 0 && N.push(d + j.replace(k, this.options.pluralSeparator)), f && N.push(d + L)), g) {
|
|
4443
|
+
const y = `${d}${this.options.contextSeparator}${r.context}`;
|
|
4444
|
+
N.push(y), p && (N.push(y + j), r.ordinal && j.indexOf(k) === 0 && N.push(y + j.replace(k, this.options.pluralSeparator)), f && N.push(y + L));
|
|
4445
4445
|
}
|
|
4446
4446
|
}
|
|
4447
|
-
let
|
|
4448
|
-
for (;
|
|
4449
|
-
this.isValidLookup(a) || (o =
|
|
4447
|
+
let G;
|
|
4448
|
+
for (; G = N.pop(); )
|
|
4449
|
+
this.isValidLookup(a) || (o = G, a = this.getResource(F, x, G, r));
|
|
4450
4450
|
}));
|
|
4451
4451
|
});
|
|
4452
4452
|
}), {
|
|
@@ -4643,13 +4643,13 @@ class Bm {
|
|
|
4643
4643
|
unescapePrefix: u,
|
|
4644
4644
|
nestingPrefix: p,
|
|
4645
4645
|
nestingPrefixEscaped: f,
|
|
4646
|
-
nestingSuffix:
|
|
4646
|
+
nestingSuffix: g,
|
|
4647
4647
|
nestingSuffixEscaped: h,
|
|
4648
4648
|
nestingOptionsSeparator: x,
|
|
4649
|
-
maxReplaces:
|
|
4650
|
-
alwaysFormat:
|
|
4649
|
+
maxReplaces: E,
|
|
4650
|
+
alwaysFormat: U
|
|
4651
4651
|
} = t.interpolation;
|
|
4652
|
-
this.escape = r !== void 0 ? r : Im, this.escapeValue = a !== void 0 ? a : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ? Mr(o) : s || "{{", this.suffix = i ? Mr(i) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = d ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = p ? Mr(p) : f || Mr("$t("), this.nestingSuffix =
|
|
4652
|
+
this.escape = r !== void 0 ? r : Im, this.escapeValue = a !== void 0 ? a : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ? Mr(o) : s || "{{", this.suffix = i ? Mr(i) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = d ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = p ? Mr(p) : f || Mr("$t("), this.nestingSuffix = g ? Mr(g) : h || Mr(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = U !== void 0 ? U : !1, this.resetRegExp();
|
|
4653
4653
|
}
|
|
4654
4654
|
reset() {
|
|
4655
4655
|
this.options && this.init(this.options);
|
|
@@ -4661,17 +4661,17 @@ class Bm {
|
|
|
4661
4661
|
interpolate(t, r, a, n) {
|
|
4662
4662
|
var f;
|
|
4663
4663
|
let o, s, i;
|
|
4664
|
-
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (
|
|
4665
|
-
if (
|
|
4666
|
-
const
|
|
4667
|
-
return this.alwaysFormat ? this.format(
|
|
4664
|
+
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (g) => {
|
|
4665
|
+
if (g.indexOf(this.formatSeparator) < 0) {
|
|
4666
|
+
const U = Oi(r, l, g, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
4667
|
+
return this.alwaysFormat ? this.format(U, void 0, a, {
|
|
4668
4668
|
...n,
|
|
4669
4669
|
...r,
|
|
4670
|
-
interpolationkey:
|
|
4671
|
-
}) :
|
|
4670
|
+
interpolationkey: g
|
|
4671
|
+
}) : U;
|
|
4672
4672
|
}
|
|
4673
|
-
const h =
|
|
4674
|
-
return this.format(Oi(r, l, x, this.options.keySeparator, this.options.ignoreJSONStructure),
|
|
4673
|
+
const h = g.split(this.formatSeparator), x = h.shift().trim(), E = h.join(this.formatSeparator).trim();
|
|
4674
|
+
return this.format(Oi(r, l, x, this.options.keySeparator, this.options.ignoreJSONStructure), E, a, {
|
|
4675
4675
|
...n,
|
|
4676
4676
|
...r,
|
|
4677
4677
|
interpolationkey: x
|
|
@@ -4681,17 +4681,17 @@ class Bm {
|
|
|
4681
4681
|
const d = (n == null ? void 0 : n.missingInterpolationHandler) || this.options.missingInterpolationHandler, u = ((f = n == null ? void 0 : n.interpolation) == null ? void 0 : f.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
4682
4682
|
return [{
|
|
4683
4683
|
regex: this.regexpUnescape,
|
|
4684
|
-
safeValue: (
|
|
4684
|
+
safeValue: (g) => Po(g)
|
|
4685
4685
|
}, {
|
|
4686
4686
|
regex: this.regexp,
|
|
4687
|
-
safeValue: (
|
|
4688
|
-
}].forEach((
|
|
4689
|
-
for (i = 0; o =
|
|
4687
|
+
safeValue: (g) => this.escapeValue ? Po(this.escape(g)) : Po(g)
|
|
4688
|
+
}].forEach((g) => {
|
|
4689
|
+
for (i = 0; o = g.regex.exec(t); ) {
|
|
4690
4690
|
const h = o[1].trim();
|
|
4691
4691
|
if (s = c(h), s === void 0)
|
|
4692
4692
|
if (typeof d == "function") {
|
|
4693
|
-
const
|
|
4694
|
-
s = ae(
|
|
4693
|
+
const E = d(t, o, n);
|
|
4694
|
+
s = ae(E) ? E : "";
|
|
4695
4695
|
} else if (n && Object.prototype.hasOwnProperty.call(n, h))
|
|
4696
4696
|
s = "";
|
|
4697
4697
|
else if (u) {
|
|
@@ -4700,8 +4700,8 @@ class Bm {
|
|
|
4700
4700
|
} else
|
|
4701
4701
|
this.logger.warn(`missed to pass in variable ${h} for interpolating ${t}`), s = "";
|
|
4702
4702
|
else !ae(s) && !this.useRawValueToEscape && (s = pi(s));
|
|
4703
|
-
const x =
|
|
4704
|
-
if (t = t.replace(o[0], x), u ? (
|
|
4703
|
+
const x = g.safeValue(s);
|
|
4704
|
+
if (t = t.replace(o[0], x), u ? (g.regex.lastIndex += s.length, g.regex.lastIndex -= o[0].length) : g.regex.lastIndex = 0, i++, i >= this.maxReplaces)
|
|
4705
4705
|
break;
|
|
4706
4706
|
}
|
|
4707
4707
|
}), t;
|
|
@@ -4714,8 +4714,8 @@ class Bm {
|
|
|
4714
4714
|
const u = l.split(new RegExp(`${d}[ ]*{`));
|
|
4715
4715
|
let p = `{${u[1]}`;
|
|
4716
4716
|
l = u[0], p = this.interpolate(p, s);
|
|
4717
|
-
const f = p.match(/'/g),
|
|
4718
|
-
(((f == null ? void 0 : f.length) ?? 0) % 2 === 0 && !
|
|
4717
|
+
const f = p.match(/'/g), g = p.match(/"/g);
|
|
4718
|
+
(((f == null ? void 0 : f.length) ?? 0) % 2 === 0 && !g || g.length % 2 !== 0) && (p = p.replace(/'/g, '"'));
|
|
4719
4719
|
try {
|
|
4720
4720
|
s = JSON.parse(p), c && (s = {
|
|
4721
4721
|
...c,
|
|
@@ -4841,8 +4841,8 @@ class Nm {
|
|
|
4841
4841
|
if (this.formats[c]) {
|
|
4842
4842
|
let p = i;
|
|
4843
4843
|
try {
|
|
4844
|
-
const f = ((u = n == null ? void 0 : n.formatParams) == null ? void 0 : u[n.interpolationkey]) || {},
|
|
4845
|
-
p = this.formats[c](i,
|
|
4844
|
+
const f = ((u = n == null ? void 0 : n.formatParams) == null ? void 0 : u[n.interpolationkey]) || {}, g = f.locale || f.lng || n.locale || n.lng || a;
|
|
4845
|
+
p = this.formats[c](i, g, {
|
|
4846
4846
|
...d,
|
|
4847
4847
|
...n,
|
|
4848
4848
|
...f
|
|
@@ -4982,16 +4982,16 @@ class zm extends eo {
|
|
|
4982
4982
|
const f = {
|
|
4983
4983
|
...s,
|
|
4984
4984
|
isUpdate: o
|
|
4985
|
-
},
|
|
4986
|
-
if (
|
|
4985
|
+
}, g = this.backend.create.bind(this.backend);
|
|
4986
|
+
if (g.length < 6)
|
|
4987
4987
|
try {
|
|
4988
4988
|
let h;
|
|
4989
|
-
|
|
4989
|
+
g.length === 5 ? h = g(t, r, a, n, f) : h = g(t, r, a, n), h && typeof h.then == "function" ? h.then((x) => i(null, x)).catch(i) : i(null, h);
|
|
4990
4990
|
} catch (h) {
|
|
4991
4991
|
i(h);
|
|
4992
4992
|
}
|
|
4993
4993
|
else
|
|
4994
|
-
|
|
4994
|
+
g(t, r, a, n, i, f);
|
|
4995
4995
|
}
|
|
4996
4996
|
!t || !t[0] || this.store.addResource(t[0], r, a, n);
|
|
4997
4997
|
}
|
|
@@ -5102,11 +5102,11 @@ class Ua extends eo {
|
|
|
5102
5102
|
}), d && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (p.formatter = o(d), p.formatter.init(p, this.options), this.options.interpolation.format = p.formatter.format.bind(p.formatter)), p.interpolator = new Bm(this.options), p.utils = {
|
|
5103
5103
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
5104
5104
|
}, p.backendConnector = new zm(o(this.modules.backend), p.resourceStore, p, this.options), p.backendConnector.on("*", function(f) {
|
|
5105
|
-
for (var
|
|
5105
|
+
for (var g = arguments.length, h = new Array(g > 1 ? g - 1 : 0), x = 1; x < g; x++)
|
|
5106
5106
|
h[x - 1] = arguments[x];
|
|
5107
5107
|
t.emit(f, ...h);
|
|
5108
5108
|
}), this.modules.languageDetector && (p.languageDetector = o(this.modules.languageDetector), p.languageDetector.init && p.languageDetector.init(p, this.options.detection, this.options)), this.modules.i18nFormat && (p.i18nFormat = o(this.modules.i18nFormat), p.i18nFormat.init && p.i18nFormat.init(this)), this.translator = new Mn(this.services, this.options), this.translator.on("*", function(f) {
|
|
5109
|
-
for (var
|
|
5109
|
+
for (var g = arguments.length, h = new Array(g > 1 ? g - 1 : 0), x = 1; x < g; x++)
|
|
5110
5110
|
h[x - 1] = arguments[x];
|
|
5111
5111
|
t.emit(f, ...h);
|
|
5112
5112
|
}), this.modules.external.forEach((f) => {
|
|
@@ -5212,7 +5212,7 @@ class Ua extends eo {
|
|
|
5212
5212
|
l.lng = l.lng || o.lng, l.lngs = l.lngs || o.lngs, l.ns = l.ns || o.ns, l.keyPrefix !== "" && (l.keyPrefix = l.keyPrefix || a || o.keyPrefix);
|
|
5213
5213
|
const p = n.options.keySeparator || ".";
|
|
5214
5214
|
let f;
|
|
5215
|
-
return l.keyPrefix && Array.isArray(s) ? f = s.map((
|
|
5215
|
+
return l.keyPrefix && Array.isArray(s) ? f = s.map((g) => `${l.keyPrefix}${p}${g}`) : f = l.keyPrefix ? `${l.keyPrefix}${p}${s}` : s, n.t(f, l);
|
|
5216
5216
|
};
|
|
5217
5217
|
return ae(t) ? o.lng = t : o.lngs = t, o.ns = r, o.keyPrefix = a, o;
|
|
5218
5218
|
}
|
|
@@ -5489,14 +5489,14 @@ const Pi = Xr(
|
|
|
5489
5489
|
activeJoggingDirection: s,
|
|
5490
5490
|
...i
|
|
5491
5491
|
}) => {
|
|
5492
|
-
var F, N,
|
|
5492
|
+
var F, N, G, W, j, L, k;
|
|
5493
5493
|
Ha(() => {
|
|
5494
|
-
const
|
|
5495
|
-
M && (M.textContent =
|
|
5494
|
+
const y = r(), M = p.current;
|
|
5495
|
+
M && (M.textContent = y);
|
|
5496
5496
|
});
|
|
5497
|
-
const l =
|
|
5497
|
+
const l = nt(), [c, d] = gr(null);
|
|
5498
5498
|
Yt(() => {
|
|
5499
|
-
o &&
|
|
5499
|
+
o && U();
|
|
5500
5500
|
}, [o]);
|
|
5501
5501
|
const u = s || c, p = Wr(null);
|
|
5502
5502
|
e || (e = {
|
|
@@ -5511,7 +5511,7 @@ const Pi = Xr(
|
|
|
5511
5511
|
},
|
|
5512
5512
|
labelColor: "#000"
|
|
5513
5513
|
});
|
|
5514
|
-
const f = u ? (F = e.buttonBackgroundColor) == null ? void 0 : F.pressed : e.borderColor,
|
|
5514
|
+
const f = u ? (F = e.buttonBackgroundColor) == null ? void 0 : F.pressed : e.borderColor, g = {
|
|
5515
5515
|
width: "55px",
|
|
5516
5516
|
color: e.color,
|
|
5517
5517
|
path: { fill: e.color },
|
|
@@ -5521,10 +5521,10 @@ const Pi = Xr(
|
|
|
5521
5521
|
pointerEvents: "none"
|
|
5522
5522
|
}
|
|
5523
5523
|
}, h = {
|
|
5524
|
-
...
|
|
5524
|
+
...g,
|
|
5525
5525
|
backgroundColor: (N = e.buttonBackgroundColor) == null ? void 0 : N.default,
|
|
5526
5526
|
":hover": {
|
|
5527
|
-
backgroundColor: (
|
|
5527
|
+
backgroundColor: (G = e.buttonBackgroundColor) == null ? void 0 : G.hovered
|
|
5528
5528
|
},
|
|
5529
5529
|
":active": {
|
|
5530
5530
|
backgroundColor: (W = e.buttonBackgroundColor) == null ? void 0 : W.pressed,
|
|
@@ -5532,23 +5532,23 @@ const Pi = Xr(
|
|
|
5532
5532
|
path: { fill: e.backgroundColor }
|
|
5533
5533
|
},
|
|
5534
5534
|
":disabled": {
|
|
5535
|
-
backgroundColor: (
|
|
5535
|
+
backgroundColor: (j = e.buttonBackgroundColor) == null ? void 0 : j.disabled,
|
|
5536
5536
|
"svg path": { fill: l.palette.action.disabled }
|
|
5537
5537
|
}
|
|
5538
5538
|
}, x = {
|
|
5539
|
-
...
|
|
5540
|
-
backgroundColor: (
|
|
5539
|
+
...g,
|
|
5540
|
+
backgroundColor: (L = e.buttonBackgroundColor) == null ? void 0 : L.pressed,
|
|
5541
5541
|
color: e.backgroundColor,
|
|
5542
5542
|
path: { fill: e.backgroundColor },
|
|
5543
5543
|
":disabled": {
|
|
5544
|
-
backgroundColor: (
|
|
5544
|
+
backgroundColor: (k = e.buttonBackgroundColor) == null ? void 0 : k.pressed,
|
|
5545
5545
|
"svg path": { fill: l.palette.action.disabled }
|
|
5546
5546
|
}
|
|
5547
5547
|
};
|
|
5548
|
-
function
|
|
5549
|
-
o ||
|
|
5548
|
+
function E(y, M) {
|
|
5549
|
+
o || y.button === 0 && (d(M), a(M));
|
|
5550
5550
|
}
|
|
5551
|
-
function
|
|
5551
|
+
function U() {
|
|
5552
5552
|
d(null), n();
|
|
5553
5553
|
}
|
|
5554
5554
|
return /* @__PURE__ */ b.jsxs(Jr, { height: "64px", direction: "row", justifyContent: "center", ...i, children: [
|
|
@@ -5557,9 +5557,9 @@ const Pi = Xr(
|
|
|
5557
5557
|
{
|
|
5558
5558
|
disabled: o,
|
|
5559
5559
|
disableRipple: !0,
|
|
5560
|
-
onPointerDown: (
|
|
5561
|
-
onPointerUp:
|
|
5562
|
-
onPointerOut:
|
|
5560
|
+
onPointerDown: (y) => E(y, "-"),
|
|
5561
|
+
onPointerUp: U,
|
|
5562
|
+
onPointerOut: U,
|
|
5563
5563
|
size: "large",
|
|
5564
5564
|
sx: {
|
|
5565
5565
|
...u === "-" ? x : h,
|
|
@@ -5606,7 +5606,7 @@ const Pi = Xr(
|
|
|
5606
5606
|
}
|
|
5607
5607
|
),
|
|
5608
5608
|
/* @__PURE__ */ b.jsx(
|
|
5609
|
-
|
|
5609
|
+
He,
|
|
5610
5610
|
{
|
|
5611
5611
|
height: "22px",
|
|
5612
5612
|
sx: {
|
|
@@ -5626,9 +5626,9 @@ const Pi = Xr(
|
|
|
5626
5626
|
{
|
|
5627
5627
|
disableRipple: !0,
|
|
5628
5628
|
disabled: o,
|
|
5629
|
-
onPointerDown: (
|
|
5630
|
-
onPointerUp:
|
|
5631
|
-
onPointerOut:
|
|
5629
|
+
onPointerDown: (y) => E(y, "+"),
|
|
5630
|
+
onPointerUp: U,
|
|
5631
|
+
onPointerOut: U,
|
|
5632
5632
|
size: "large",
|
|
5633
5633
|
sx: {
|
|
5634
5634
|
...u === "+" ? x : h,
|
|
@@ -5654,7 +5654,7 @@ const tf = (e) => {
|
|
|
5654
5654
|
fontSize: r,
|
|
5655
5655
|
classes: a
|
|
5656
5656
|
} = e, n = {
|
|
5657
|
-
root: ["root", t !== "inherit" && `color${
|
|
5657
|
+
root: ["root", t !== "inherit" && `color${qe(t)}`, `fontSize${qe(r)}`]
|
|
5658
5658
|
};
|
|
5659
5659
|
return bs(n, ef, a);
|
|
5660
5660
|
}, rf = Ut("svg", {
|
|
@@ -5664,12 +5664,12 @@ const tf = (e) => {
|
|
|
5664
5664
|
const {
|
|
5665
5665
|
ownerState: r
|
|
5666
5666
|
} = e;
|
|
5667
|
-
return [t.root, r.color !== "inherit" && t[`color${
|
|
5667
|
+
return [t.root, r.color !== "inherit" && t[`color${qe(r.color)}`], t[`fontSize${qe(r.fontSize)}`]];
|
|
5668
5668
|
}
|
|
5669
5669
|
})(yr(({
|
|
5670
5670
|
theme: e
|
|
5671
5671
|
}) => {
|
|
5672
|
-
var t, r, a, n, o, s, i, l, c, d, u, p, f,
|
|
5672
|
+
var t, r, a, n, o, s, i, l, c, d, u, p, f, g;
|
|
5673
5673
|
return {
|
|
5674
5674
|
userSelect: "none",
|
|
5675
5675
|
width: "1em",
|
|
@@ -5722,13 +5722,13 @@ const tf = (e) => {
|
|
|
5722
5722
|
},
|
|
5723
5723
|
// TODO v5 deprecate color prop, v6 remove for sx
|
|
5724
5724
|
...Object.entries((e.vars ?? e).palette).filter(([, h]) => h && h.main).map(([h]) => {
|
|
5725
|
-
var x,
|
|
5725
|
+
var x, E;
|
|
5726
5726
|
return {
|
|
5727
5727
|
props: {
|
|
5728
5728
|
color: h
|
|
5729
5729
|
},
|
|
5730
5730
|
style: {
|
|
5731
|
-
color: (
|
|
5731
|
+
color: (E = (x = (e.vars ?? e).palette) == null ? void 0 : x[h]) == null ? void 0 : E.main
|
|
5732
5732
|
}
|
|
5733
5733
|
};
|
|
5734
5734
|
}),
|
|
@@ -5745,7 +5745,7 @@ const tf = (e) => {
|
|
|
5745
5745
|
color: "disabled"
|
|
5746
5746
|
},
|
|
5747
5747
|
style: {
|
|
5748
|
-
color: (
|
|
5748
|
+
color: (g = (f = (e.vars ?? e).palette) == null ? void 0 : f.action) == null ? void 0 : g.disabled
|
|
5749
5749
|
}
|
|
5750
5750
|
},
|
|
5751
5751
|
{
|
|
@@ -5773,7 +5773,7 @@ const tf = (e) => {
|
|
|
5773
5773
|
titleAccess: u,
|
|
5774
5774
|
viewBox: p = "0 0 24 24",
|
|
5775
5775
|
...f
|
|
5776
|
-
} = a,
|
|
5776
|
+
} = a, g = /* @__PURE__ */ J.isValidElement(n) && n.type === "svg", h = {
|
|
5777
5777
|
...a,
|
|
5778
5778
|
color: s,
|
|
5779
5779
|
component: i,
|
|
@@ -5781,13 +5781,13 @@ const tf = (e) => {
|
|
|
5781
5781
|
instanceFontSize: t.fontSize,
|
|
5782
5782
|
inheritViewBox: d,
|
|
5783
5783
|
viewBox: p,
|
|
5784
|
-
hasSvgAsChild:
|
|
5784
|
+
hasSvgAsChild: g
|
|
5785
5785
|
}, x = {};
|
|
5786
5786
|
d || (x.viewBox = p);
|
|
5787
|
-
const
|
|
5787
|
+
const E = tf(h);
|
|
5788
5788
|
return /* @__PURE__ */ b.jsxs(rf, {
|
|
5789
5789
|
as: i,
|
|
5790
|
-
className: Pt(
|
|
5790
|
+
className: Pt(E.root, o),
|
|
5791
5791
|
focusable: "false",
|
|
5792
5792
|
color: c,
|
|
5793
5793
|
"aria-hidden": u ? void 0 : !0,
|
|
@@ -5795,9 +5795,9 @@ const tf = (e) => {
|
|
|
5795
5795
|
ref: r,
|
|
5796
5796
|
...x,
|
|
5797
5797
|
...f,
|
|
5798
|
-
...
|
|
5798
|
+
...g && n.props,
|
|
5799
5799
|
ownerState: h,
|
|
5800
|
-
children: [
|
|
5800
|
+
children: [g ? n.props.children : n, u ? /* @__PURE__ */ b.jsx("title", {
|
|
5801
5801
|
children: u
|
|
5802
5802
|
}) : null]
|
|
5803
5803
|
});
|
|
@@ -5956,46 +5956,46 @@ function Rf(e, t, r) {
|
|
|
5956
5956
|
throw new TypeError(Cf);
|
|
5957
5957
|
t = _i(t) || 0, pr(r) && (d = !!r.leading, u = "maxWait" in r, o = u ? Pf(_i(r.maxWait) || 0, t) : o, p = "trailing" in r ? !!r.trailing : p);
|
|
5958
5958
|
function f(W) {
|
|
5959
|
-
var
|
|
5960
|
-
return a = n = void 0, c = W, s = e.apply(
|
|
5959
|
+
var j = a, L = n;
|
|
5960
|
+
return a = n = void 0, c = W, s = e.apply(L, j), s;
|
|
5961
5961
|
}
|
|
5962
|
-
function
|
|
5963
|
-
return c = W, i = setTimeout(
|
|
5962
|
+
function g(W) {
|
|
5963
|
+
return c = W, i = setTimeout(E, t), d ? f(W) : s;
|
|
5964
5964
|
}
|
|
5965
5965
|
function h(W) {
|
|
5966
|
-
var
|
|
5967
|
-
return u ? Vf(
|
|
5966
|
+
var j = W - l, L = W - c, k = t - j;
|
|
5967
|
+
return u ? Vf(k, o - L) : k;
|
|
5968
5968
|
}
|
|
5969
5969
|
function x(W) {
|
|
5970
|
-
var
|
|
5971
|
-
return l === void 0 ||
|
|
5970
|
+
var j = W - l, L = W - c;
|
|
5971
|
+
return l === void 0 || j >= t || j < 0 || u && L >= o;
|
|
5972
5972
|
}
|
|
5973
|
-
function
|
|
5973
|
+
function E() {
|
|
5974
5974
|
var W = Vo();
|
|
5975
5975
|
if (x(W))
|
|
5976
|
-
return
|
|
5977
|
-
i = setTimeout(
|
|
5976
|
+
return U(W);
|
|
5977
|
+
i = setTimeout(E, h(W));
|
|
5978
5978
|
}
|
|
5979
|
-
function
|
|
5979
|
+
function U(W) {
|
|
5980
5980
|
return i = void 0, p && a ? f(W) : (a = n = void 0, s);
|
|
5981
5981
|
}
|
|
5982
5982
|
function F() {
|
|
5983
5983
|
i !== void 0 && clearTimeout(i), c = 0, a = l = n = i = void 0;
|
|
5984
5984
|
}
|
|
5985
5985
|
function N() {
|
|
5986
|
-
return i === void 0 ? s :
|
|
5986
|
+
return i === void 0 ? s : U(Vo());
|
|
5987
5987
|
}
|
|
5988
|
-
function
|
|
5989
|
-
var W = Vo(),
|
|
5990
|
-
if (a = arguments, n = this, l = W,
|
|
5988
|
+
function G() {
|
|
5989
|
+
var W = Vo(), j = x(W);
|
|
5990
|
+
if (a = arguments, n = this, l = W, j) {
|
|
5991
5991
|
if (i === void 0)
|
|
5992
|
-
return
|
|
5992
|
+
return g(l);
|
|
5993
5993
|
if (u)
|
|
5994
|
-
return clearTimeout(i), i = setTimeout(
|
|
5994
|
+
return clearTimeout(i), i = setTimeout(E, t), f(l);
|
|
5995
5995
|
}
|
|
5996
|
-
return i === void 0 && (i = setTimeout(
|
|
5996
|
+
return i === void 0 && (i = setTimeout(E, t)), s;
|
|
5997
5997
|
}
|
|
5998
|
-
return
|
|
5998
|
+
return G.cancel = F, G.flush = N, G;
|
|
5999
5999
|
}
|
|
6000
6000
|
var _f = "Expected a function";
|
|
6001
6001
|
function Af(e, t, r) {
|
|
@@ -6019,8 +6019,8 @@ const Tf = Xr(
|
|
|
6019
6019
|
disabled: o,
|
|
6020
6020
|
...s
|
|
6021
6021
|
}) => {
|
|
6022
|
-
var F, N,
|
|
6023
|
-
const { t: i } = Rt(), [l, c] = gr(), d =
|
|
6022
|
+
var F, N, G, W, j, L, k, y, M, B, z, D, te, X, Se;
|
|
6023
|
+
const { t: i } = Rt(), [l, c] = gr(), d = nt(), u = {
|
|
6024
6024
|
background: (F = d.palette.backgroundPaperElevation) == null ? void 0 : F[4],
|
|
6025
6025
|
color: (N = d.palette.backgroundPaperElevation) == null ? void 0 : N[11]
|
|
6026
6026
|
}, p = Nn(() => ({
|
|
@@ -6035,7 +6035,7 @@ const Tf = Xr(
|
|
|
6035
6035
|
c(n());
|
|
6036
6036
|
}, 50);
|
|
6037
6037
|
Ha(f);
|
|
6038
|
-
function
|
|
6038
|
+
function g(Y) {
|
|
6039
6039
|
Y.button === 0 && p.startJogging("-");
|
|
6040
6040
|
}
|
|
6041
6041
|
function h(Y) {
|
|
@@ -6044,10 +6044,10 @@ const Tf = Xr(
|
|
|
6044
6044
|
function x(Y) {
|
|
6045
6045
|
p.stopJogging();
|
|
6046
6046
|
}
|
|
6047
|
-
function
|
|
6047
|
+
function E(Y) {
|
|
6048
6048
|
p.stopJogging();
|
|
6049
6049
|
}
|
|
6050
|
-
function
|
|
6050
|
+
function U(Y, ie = 1) {
|
|
6051
6051
|
if (Y === void 0 || isNaN(Y)) return "";
|
|
6052
6052
|
const he = i("General.degree.variable", {
|
|
6053
6053
|
amount: Y.toFixed(ie)
|
|
@@ -6067,7 +6067,7 @@ const Tf = Xr(
|
|
|
6067
6067
|
width: "52px",
|
|
6068
6068
|
color: d.palette.text.primary,
|
|
6069
6069
|
alignContent: "center",
|
|
6070
|
-
backgroundColor: (
|
|
6070
|
+
backgroundColor: (G = d.palette.backgroundPaperElevation) == null ? void 0 : G[11],
|
|
6071
6071
|
"& svg": {
|
|
6072
6072
|
width: "42px",
|
|
6073
6073
|
height: "42px"
|
|
@@ -6078,7 +6078,7 @@ const Tf = Xr(
|
|
|
6078
6078
|
opacity: 1
|
|
6079
6079
|
},
|
|
6080
6080
|
"&:hover": {
|
|
6081
|
-
backgroundColor: (
|
|
6081
|
+
backgroundColor: (j = d.palette.backgroundPaperElevation) == null ? void 0 : j[9]
|
|
6082
6082
|
},
|
|
6083
6083
|
"&:active": {
|
|
6084
6084
|
...u
|
|
@@ -6089,9 +6089,9 @@ const Tf = Xr(
|
|
|
6089
6089
|
/* @__PURE__ */ b.jsx(
|
|
6090
6090
|
Pn,
|
|
6091
6091
|
{
|
|
6092
|
-
onPointerDown:
|
|
6092
|
+
onPointerDown: g,
|
|
6093
6093
|
onPointerUp: x,
|
|
6094
|
-
onPointerOut:
|
|
6094
|
+
onPointerOut: E,
|
|
6095
6095
|
disabled: o,
|
|
6096
6096
|
disableRipple: !0,
|
|
6097
6097
|
sx: {
|
|
@@ -6103,7 +6103,7 @@ const Tf = Xr(
|
|
|
6103
6103
|
{
|
|
6104
6104
|
sx: {
|
|
6105
6105
|
pointerEvents: "none",
|
|
6106
|
-
color: (M = (
|
|
6106
|
+
color: (M = (y = (k = (L = d.componentsExt) == null ? void 0 : L.JoggingPanel) == null ? void 0 : k.JoggingJoint) == null ? void 0 : y.Joint) == null ? void 0 : M.arrowColor
|
|
6107
6107
|
}
|
|
6108
6108
|
}
|
|
6109
6109
|
)
|
|
@@ -6127,7 +6127,7 @@ const Tf = Xr(
|
|
|
6127
6127
|
},
|
|
6128
6128
|
children: [
|
|
6129
6129
|
/* @__PURE__ */ b.jsx(
|
|
6130
|
-
|
|
6130
|
+
He,
|
|
6131
6131
|
{
|
|
6132
6132
|
sx: {
|
|
6133
6133
|
fontSize: "15px",
|
|
@@ -6136,7 +6136,7 @@ const Tf = Xr(
|
|
|
6136
6136
|
top: "5px",
|
|
6137
6137
|
color: o ? d.palette.action.disabled : d.palette.text.primary
|
|
6138
6138
|
},
|
|
6139
|
-
children:
|
|
6139
|
+
children: U(l)
|
|
6140
6140
|
}
|
|
6141
6141
|
),
|
|
6142
6142
|
/* @__PURE__ */ b.jsx(
|
|
@@ -6164,18 +6164,18 @@ const Tf = Xr(
|
|
|
6164
6164
|
color: o ? d.palette.action.disabled : d.palette.text.secondary
|
|
6165
6165
|
},
|
|
6166
6166
|
"& .MuiSlider-rail": {
|
|
6167
|
-
backgroundColor: (
|
|
6167
|
+
backgroundColor: (z = d.palette.backgroundPaperElevation) == null ? void 0 : z[5],
|
|
6168
6168
|
opacity: 1
|
|
6169
6169
|
}
|
|
6170
6170
|
},
|
|
6171
6171
|
marks: r !== void 0 && a !== void 0 && [
|
|
6172
6172
|
{
|
|
6173
6173
|
value: r,
|
|
6174
|
-
label:
|
|
6174
|
+
label: U(r, 0)
|
|
6175
6175
|
},
|
|
6176
6176
|
{
|
|
6177
6177
|
value: a,
|
|
6178
|
-
label:
|
|
6178
|
+
label: U(a, 0)
|
|
6179
6179
|
}
|
|
6180
6180
|
]
|
|
6181
6181
|
}
|
|
@@ -6188,7 +6188,7 @@ const Tf = Xr(
|
|
|
6188
6188
|
{
|
|
6189
6189
|
onPointerDown: h,
|
|
6190
6190
|
onPointerUp: x,
|
|
6191
|
-
onPointerOut:
|
|
6191
|
+
onPointerOut: E,
|
|
6192
6192
|
disabled: o,
|
|
6193
6193
|
disableRipple: !0,
|
|
6194
6194
|
sx: {
|
|
@@ -6500,9 +6500,9 @@ function Iy(e, t, r, a, n, o) {
|
|
|
6500
6500
|
return c == t && d == e;
|
|
6501
6501
|
var u = -1, p = !0, f = r & Ey ? new Py() : void 0;
|
|
6502
6502
|
for (o.set(e, t), o.set(t, e); ++u < i; ) {
|
|
6503
|
-
var
|
|
6503
|
+
var g = e[u], h = t[u];
|
|
6504
6504
|
if (a)
|
|
6505
|
-
var x = s ? a(h,
|
|
6505
|
+
var x = s ? a(h, g, u, t, e, o) : a(g, h, u, e, t, o);
|
|
6506
6506
|
if (x !== void 0) {
|
|
6507
6507
|
if (x)
|
|
6508
6508
|
continue;
|
|
@@ -6510,14 +6510,14 @@ function Iy(e, t, r, a, n, o) {
|
|
|
6510
6510
|
break;
|
|
6511
6511
|
}
|
|
6512
6512
|
if (f) {
|
|
6513
|
-
if (!Ry(t, function(
|
|
6514
|
-
if (!Ay(f,
|
|
6515
|
-
return f.push(
|
|
6513
|
+
if (!Ry(t, function(E, U) {
|
|
6514
|
+
if (!Ay(f, U) && (g === E || n(g, E, r, a, o)))
|
|
6515
|
+
return f.push(U);
|
|
6516
6516
|
})) {
|
|
6517
6517
|
p = !1;
|
|
6518
6518
|
break;
|
|
6519
6519
|
}
|
|
6520
|
-
} else if (!(
|
|
6520
|
+
} else if (!(g === h || n(g, h, r, a, o))) {
|
|
6521
6521
|
p = !1;
|
|
6522
6522
|
break;
|
|
6523
6523
|
}
|
|
@@ -6703,25 +6703,25 @@ function I0(e, t, r, a, n, o) {
|
|
|
6703
6703
|
if (!(s ? p in t : E0.call(t, p)))
|
|
6704
6704
|
return !1;
|
|
6705
6705
|
}
|
|
6706
|
-
var f = o.get(e),
|
|
6707
|
-
if (f &&
|
|
6708
|
-
return f == t &&
|
|
6706
|
+
var f = o.get(e), g = o.get(t);
|
|
6707
|
+
if (f && g)
|
|
6708
|
+
return f == t && g == e;
|
|
6709
6709
|
var h = !0;
|
|
6710
6710
|
o.set(e, t), o.set(t, e);
|
|
6711
6711
|
for (var x = s; ++u < l; ) {
|
|
6712
6712
|
p = i[u];
|
|
6713
|
-
var
|
|
6713
|
+
var E = e[p], U = t[p];
|
|
6714
6714
|
if (a)
|
|
6715
|
-
var F = s ? a(
|
|
6716
|
-
if (!(F === void 0 ?
|
|
6715
|
+
var F = s ? a(U, E, p, t, e, o) : a(E, U, p, e, t, o);
|
|
6716
|
+
if (!(F === void 0 ? E === U || n(E, U, r, a, o) : F)) {
|
|
6717
6717
|
h = !1;
|
|
6718
6718
|
break;
|
|
6719
6719
|
}
|
|
6720
6720
|
x || (x = p == "constructor");
|
|
6721
6721
|
}
|
|
6722
6722
|
if (h && !x) {
|
|
6723
|
-
var N = e.constructor,
|
|
6724
|
-
N !=
|
|
6723
|
+
var N = e.constructor, G = t.constructor;
|
|
6724
|
+
N != G && "constructor" in e && "constructor" in t && !(typeof N == "function" && N instanceof N && typeof G == "function" && G instanceof G) && (h = !1);
|
|
6725
6725
|
}
|
|
6726
6726
|
return o.delete(e), o.delete(t), h;
|
|
6727
6727
|
}
|
|
@@ -6756,9 +6756,9 @@ function H0(e, t, r, a, n, o) {
|
|
|
6756
6756
|
if (p && !d)
|
|
6757
6757
|
return o || (o = new _o()), s || Mc(e) ? _c(e, t, r, a, n, o) : Xy(e, t, l, r, a, n, o);
|
|
6758
6758
|
if (!(r & G0)) {
|
|
6759
|
-
var f = d && Qi.call(e, "__wrapped__"),
|
|
6760
|
-
if (f ||
|
|
6761
|
-
var h = f ? e.value() : e, x =
|
|
6759
|
+
var f = d && Qi.call(e, "__wrapped__"), g = u && Qi.call(t, "__wrapped__");
|
|
6760
|
+
if (f || g) {
|
|
6761
|
+
var h = f ? e.value() : e, x = g ? t.value() : t;
|
|
6762
6762
|
return o || (o = new _o()), n(h, x, r, a, o);
|
|
6763
6763
|
}
|
|
6764
6764
|
}
|
|
@@ -7504,7 +7504,7 @@ const QS = (e) => {
|
|
|
7504
7504
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
7505
7505
|
typeof setImmediate == "function",
|
|
7506
7506
|
at(cr.postMessage)
|
|
7507
|
-
), XS = typeof queueMicrotask < "u" ? queueMicrotask.bind(cr) : typeof process < "u" && process.nextTick || zc,
|
|
7507
|
+
), XS = typeof queueMicrotask < "u" ? queueMicrotask.bind(cr) : typeof process < "u" && process.nextTick || zc, I = {
|
|
7508
7508
|
isArray: na,
|
|
7509
7509
|
isArrayBuffer: kc,
|
|
7510
7510
|
isBuffer: gS,
|
|
@@ -7565,7 +7565,7 @@ const QS = (e) => {
|
|
|
7565
7565
|
function oe(e, t, r, a, n) {
|
|
7566
7566
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), a && (this.request = a), n && (this.response = n, this.status = n.status ? n.status : null);
|
|
7567
7567
|
}
|
|
7568
|
-
|
|
7568
|
+
I.inherits(oe, Error, {
|
|
7569
7569
|
toJSON: function() {
|
|
7570
7570
|
return {
|
|
7571
7571
|
// Standard
|
|
@@ -7580,7 +7580,7 @@ j.inherits(oe, Error, {
|
|
|
7580
7580
|
columnNumber: this.columnNumber,
|
|
7581
7581
|
stack: this.stack,
|
|
7582
7582
|
// Axios
|
|
7583
|
-
config:
|
|
7583
|
+
config: I.toJSONObject(this.config),
|
|
7584
7584
|
code: this.code,
|
|
7585
7585
|
status: this.status
|
|
7586
7586
|
};
|
|
@@ -7608,16 +7608,16 @@ Object.defineProperties(oe, Jc);
|
|
|
7608
7608
|
Object.defineProperty(Gc, "isAxiosError", { value: !0 });
|
|
7609
7609
|
oe.from = (e, t, r, a, n, o) => {
|
|
7610
7610
|
const s = Object.create(Gc);
|
|
7611
|
-
return
|
|
7611
|
+
return I.toFlatObject(e, s, function(l) {
|
|
7612
7612
|
return l !== Error.prototype;
|
|
7613
7613
|
}, (i) => i !== "isAxiosError"), oe.call(s, e.message, t, r, a, n), s.cause = e, s.name = e.name, o && Object.assign(s, o), s;
|
|
7614
7614
|
};
|
|
7615
7615
|
const ZS = null;
|
|
7616
7616
|
function ts(e) {
|
|
7617
|
-
return
|
|
7617
|
+
return I.isPlainObject(e) || I.isArray(e);
|
|
7618
7618
|
}
|
|
7619
7619
|
function Hc(e) {
|
|
7620
|
-
return
|
|
7620
|
+
return I.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
7621
7621
|
}
|
|
7622
7622
|
function Zi(e, t, r) {
|
|
7623
7623
|
return e ? e.concat(t).map(function(n, o) {
|
|
@@ -7625,69 +7625,69 @@ function Zi(e, t, r) {
|
|
|
7625
7625
|
}).join(r ? "." : "") : t;
|
|
7626
7626
|
}
|
|
7627
7627
|
function ev(e) {
|
|
7628
|
-
return
|
|
7628
|
+
return I.isArray(e) && !e.some(ts);
|
|
7629
7629
|
}
|
|
7630
|
-
const tv =
|
|
7630
|
+
const tv = I.toFlatObject(I, {}, null, function(t) {
|
|
7631
7631
|
return /^is[A-Z]/.test(t);
|
|
7632
7632
|
});
|
|
7633
7633
|
function co(e, t, r) {
|
|
7634
|
-
if (!
|
|
7634
|
+
if (!I.isObject(e))
|
|
7635
7635
|
throw new TypeError("target must be an object");
|
|
7636
|
-
t = t || new FormData(), r =
|
|
7636
|
+
t = t || new FormData(), r = I.toFlatObject(r, {
|
|
7637
7637
|
metaTokens: !0,
|
|
7638
7638
|
dots: !1,
|
|
7639
7639
|
indexes: !1
|
|
7640
7640
|
}, !1, function(h, x) {
|
|
7641
|
-
return !
|
|
7641
|
+
return !I.isUndefined(x[h]);
|
|
7642
7642
|
});
|
|
7643
|
-
const a = r.metaTokens, n = r.visitor || d, o = r.dots, s = r.indexes, l = (r.Blob || typeof Blob < "u" && Blob) &&
|
|
7644
|
-
if (!
|
|
7643
|
+
const a = r.metaTokens, n = r.visitor || d, o = r.dots, s = r.indexes, l = (r.Blob || typeof Blob < "u" && Blob) && I.isSpecCompliantForm(t);
|
|
7644
|
+
if (!I.isFunction(n))
|
|
7645
7645
|
throw new TypeError("visitor must be a function");
|
|
7646
|
-
function c(
|
|
7647
|
-
if (
|
|
7648
|
-
if (
|
|
7649
|
-
return
|
|
7650
|
-
if (!l &&
|
|
7646
|
+
function c(g) {
|
|
7647
|
+
if (g === null) return "";
|
|
7648
|
+
if (I.isDate(g))
|
|
7649
|
+
return g.toISOString();
|
|
7650
|
+
if (!l && I.isBlob(g))
|
|
7651
7651
|
throw new oe("Blob is not supported. Use a Buffer instead.");
|
|
7652
|
-
return
|
|
7653
|
-
}
|
|
7654
|
-
function d(
|
|
7655
|
-
let
|
|
7656
|
-
if (
|
|
7657
|
-
if (
|
|
7658
|
-
h = a ? h : h.slice(0, -2),
|
|
7659
|
-
else if (
|
|
7660
|
-
return h = Hc(h),
|
|
7661
|
-
!(
|
|
7652
|
+
return I.isArrayBuffer(g) || I.isTypedArray(g) ? l && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
|
|
7653
|
+
}
|
|
7654
|
+
function d(g, h, x) {
|
|
7655
|
+
let E = g;
|
|
7656
|
+
if (g && !x && typeof g == "object") {
|
|
7657
|
+
if (I.endsWith(h, "{}"))
|
|
7658
|
+
h = a ? h : h.slice(0, -2), g = JSON.stringify(g);
|
|
7659
|
+
else if (I.isArray(g) && ev(g) || (I.isFileList(g) || I.endsWith(h, "[]")) && (E = I.toArray(g)))
|
|
7660
|
+
return h = Hc(h), E.forEach(function(F, N) {
|
|
7661
|
+
!(I.isUndefined(F) || F === null) && t.append(
|
|
7662
7662
|
// eslint-disable-next-line no-nested-ternary
|
|
7663
7663
|
s === !0 ? Zi([h], N, o) : s === null ? h : h + "[]",
|
|
7664
7664
|
c(F)
|
|
7665
7665
|
);
|
|
7666
7666
|
}), !1;
|
|
7667
7667
|
}
|
|
7668
|
-
return ts(
|
|
7668
|
+
return ts(g) ? !0 : (t.append(Zi(x, h, o), c(g)), !1);
|
|
7669
7669
|
}
|
|
7670
7670
|
const u = [], p = Object.assign(tv, {
|
|
7671
7671
|
defaultVisitor: d,
|
|
7672
7672
|
convertValue: c,
|
|
7673
7673
|
isVisitable: ts
|
|
7674
7674
|
});
|
|
7675
|
-
function f(
|
|
7676
|
-
if (!
|
|
7677
|
-
if (u.indexOf(
|
|
7675
|
+
function f(g, h) {
|
|
7676
|
+
if (!I.isUndefined(g)) {
|
|
7677
|
+
if (u.indexOf(g) !== -1)
|
|
7678
7678
|
throw Error("Circular reference detected in " + h.join("."));
|
|
7679
|
-
u.push(
|
|
7680
|
-
(!(
|
|
7679
|
+
u.push(g), I.forEach(g, function(E, U) {
|
|
7680
|
+
(!(I.isUndefined(E) || E === null) && n.call(
|
|
7681
7681
|
t,
|
|
7682
|
-
|
|
7683
|
-
|
|
7682
|
+
E,
|
|
7683
|
+
I.isString(U) ? U.trim() : U,
|
|
7684
7684
|
h,
|
|
7685
7685
|
p
|
|
7686
|
-
)) === !0 && f(
|
|
7686
|
+
)) === !0 && f(E, h ? h.concat(U) : [U]);
|
|
7687
7687
|
}), u.pop();
|
|
7688
7688
|
}
|
|
7689
7689
|
}
|
|
7690
|
-
if (!
|
|
7690
|
+
if (!I.isObject(e))
|
|
7691
7691
|
throw new TypeError("data must be an object");
|
|
7692
7692
|
return f(e), t;
|
|
7693
7693
|
}
|
|
@@ -7727,12 +7727,12 @@ function Wc(e, t, r) {
|
|
|
7727
7727
|
if (!t)
|
|
7728
7728
|
return e;
|
|
7729
7729
|
const a = r && r.encode || rv;
|
|
7730
|
-
|
|
7730
|
+
I.isFunction(r) && (r = {
|
|
7731
7731
|
serialize: r
|
|
7732
7732
|
});
|
|
7733
7733
|
const n = r && r.serialize;
|
|
7734
7734
|
let o;
|
|
7735
|
-
if (n ? o = n(t, r) : o =
|
|
7735
|
+
if (n ? o = n(t, r) : o = I.isURLSearchParams(t) ? t.toString() : new Cs(t, r).toString(a), o) {
|
|
7736
7736
|
const s = e.indexOf("#");
|
|
7737
7737
|
s !== -1 && (e = e.slice(0, s)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
7738
7738
|
}
|
|
@@ -7787,7 +7787,7 @@ class tl {
|
|
|
7787
7787
|
* @returns {void}
|
|
7788
7788
|
*/
|
|
7789
7789
|
forEach(t) {
|
|
7790
|
-
|
|
7790
|
+
I.forEach(this.handlers, function(a) {
|
|
7791
7791
|
a !== null && t(a);
|
|
7792
7792
|
});
|
|
7793
7793
|
}
|
|
@@ -7819,12 +7819,12 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", cv
|
|
|
7819
7819
|
function uv(e, t) {
|
|
7820
7820
|
return co(e, new Ne.classes.URLSearchParams(), Object.assign({
|
|
7821
7821
|
visitor: function(r, a, n, o) {
|
|
7822
|
-
return Ne.isNode &&
|
|
7822
|
+
return Ne.isNode && I.isBuffer(r) ? (this.append(a, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
7823
7823
|
}
|
|
7824
7824
|
}, t));
|
|
7825
7825
|
}
|
|
7826
7826
|
function pv(e) {
|
|
7827
|
-
return
|
|
7827
|
+
return I.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
7828
7828
|
}
|
|
7829
7829
|
function hv(e) {
|
|
7830
7830
|
const t = {}, r = Object.keys(e);
|
|
@@ -7840,20 +7840,20 @@ function Kc(e) {
|
|
|
7840
7840
|
let s = r[o++];
|
|
7841
7841
|
if (s === "__proto__") return !0;
|
|
7842
7842
|
const i = Number.isFinite(+s), l = o >= r.length;
|
|
7843
|
-
return s = !s &&
|
|
7843
|
+
return s = !s && I.isArray(n) ? n.length : s, l ? (I.hasOwnProp(n, s) ? n[s] = [n[s], a] : n[s] = a, !i) : ((!n[s] || !I.isObject(n[s])) && (n[s] = []), t(r, a, n[s], o) && I.isArray(n[s]) && (n[s] = hv(n[s])), !i);
|
|
7844
7844
|
}
|
|
7845
|
-
if (
|
|
7845
|
+
if (I.isFormData(e) && I.isFunction(e.entries)) {
|
|
7846
7846
|
const r = {};
|
|
7847
|
-
return
|
|
7847
|
+
return I.forEachEntry(e, (a, n) => {
|
|
7848
7848
|
t(pv(a), n, r, 0);
|
|
7849
7849
|
}), r;
|
|
7850
7850
|
}
|
|
7851
7851
|
return null;
|
|
7852
7852
|
}
|
|
7853
7853
|
function mv(e, t, r) {
|
|
7854
|
-
if (
|
|
7854
|
+
if (I.isString(e))
|
|
7855
7855
|
try {
|
|
7856
|
-
return (t || JSON.parse)(e),
|
|
7856
|
+
return (t || JSON.parse)(e), I.trim(e);
|
|
7857
7857
|
} catch (a) {
|
|
7858
7858
|
if (a.name !== "SyntaxError")
|
|
7859
7859
|
throw a;
|
|
@@ -7864,20 +7864,20 @@ const Qa = {
|
|
|
7864
7864
|
transitional: Qc,
|
|
7865
7865
|
adapter: ["xhr", "http", "fetch"],
|
|
7866
7866
|
transformRequest: [function(t, r) {
|
|
7867
|
-
const a = r.getContentType() || "", n = a.indexOf("application/json") > -1, o =
|
|
7868
|
-
if (o &&
|
|
7867
|
+
const a = r.getContentType() || "", n = a.indexOf("application/json") > -1, o = I.isObject(t);
|
|
7868
|
+
if (o && I.isHTMLForm(t) && (t = new FormData(t)), I.isFormData(t))
|
|
7869
7869
|
return n ? JSON.stringify(Kc(t)) : t;
|
|
7870
|
-
if (
|
|
7870
|
+
if (I.isArrayBuffer(t) || I.isBuffer(t) || I.isStream(t) || I.isFile(t) || I.isBlob(t) || I.isReadableStream(t))
|
|
7871
7871
|
return t;
|
|
7872
|
-
if (
|
|
7872
|
+
if (I.isArrayBufferView(t))
|
|
7873
7873
|
return t.buffer;
|
|
7874
|
-
if (
|
|
7874
|
+
if (I.isURLSearchParams(t))
|
|
7875
7875
|
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
7876
7876
|
let i;
|
|
7877
7877
|
if (o) {
|
|
7878
7878
|
if (a.indexOf("application/x-www-form-urlencoded") > -1)
|
|
7879
7879
|
return uv(t, this.formSerializer).toString();
|
|
7880
|
-
if ((i =
|
|
7880
|
+
if ((i = I.isFileList(t)) || a.indexOf("multipart/form-data") > -1) {
|
|
7881
7881
|
const l = this.env && this.env.FormData;
|
|
7882
7882
|
return co(
|
|
7883
7883
|
i ? { "files[]": t } : t,
|
|
@@ -7890,9 +7890,9 @@ const Qa = {
|
|
|
7890
7890
|
}],
|
|
7891
7891
|
transformResponse: [function(t) {
|
|
7892
7892
|
const r = this.transitional || Qa.transitional, a = r && r.forcedJSONParsing, n = this.responseType === "json";
|
|
7893
|
-
if (
|
|
7893
|
+
if (I.isResponse(t) || I.isReadableStream(t))
|
|
7894
7894
|
return t;
|
|
7895
|
-
if (t &&
|
|
7895
|
+
if (t && I.isString(t) && (a && !this.responseType || n)) {
|
|
7896
7896
|
const s = !(r && r.silentJSONParsing) && n;
|
|
7897
7897
|
try {
|
|
7898
7898
|
return JSON.parse(t);
|
|
@@ -7926,10 +7926,10 @@ const Qa = {
|
|
|
7926
7926
|
}
|
|
7927
7927
|
}
|
|
7928
7928
|
};
|
|
7929
|
-
|
|
7929
|
+
I.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
7930
7930
|
Qa.headers[e] = {};
|
|
7931
7931
|
});
|
|
7932
|
-
const fv =
|
|
7932
|
+
const fv = I.toObjectSet([
|
|
7933
7933
|
"age",
|
|
7934
7934
|
"authorization",
|
|
7935
7935
|
"content-length",
|
|
@@ -7959,7 +7959,7 @@ function va(e) {
|
|
|
7959
7959
|
return e && String(e).trim().toLowerCase();
|
|
7960
7960
|
}
|
|
7961
7961
|
function xn(e) {
|
|
7962
|
-
return e === !1 || e == null ? e :
|
|
7962
|
+
return e === !1 || e == null ? e : I.isArray(e) ? e.map(xn) : String(e);
|
|
7963
7963
|
}
|
|
7964
7964
|
function yv(e) {
|
|
7965
7965
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -7970,12 +7970,12 @@ function yv(e) {
|
|
|
7970
7970
|
}
|
|
7971
7971
|
const bv = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
7972
7972
|
function Mo(e, t, r, a, n) {
|
|
7973
|
-
if (
|
|
7973
|
+
if (I.isFunction(a))
|
|
7974
7974
|
return a.call(this, t, r);
|
|
7975
|
-
if (n && (t = r), !!
|
|
7976
|
-
if (
|
|
7975
|
+
if (n && (t = r), !!I.isString(t)) {
|
|
7976
|
+
if (I.isString(a))
|
|
7977
7977
|
return t.indexOf(a) !== -1;
|
|
7978
|
-
if (
|
|
7978
|
+
if (I.isRegExp(a))
|
|
7979
7979
|
return a.test(t);
|
|
7980
7980
|
}
|
|
7981
7981
|
}
|
|
@@ -7983,7 +7983,7 @@ function Sv(e) {
|
|
|
7983
7983
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, a) => r.toUpperCase() + a);
|
|
7984
7984
|
}
|
|
7985
7985
|
function vv(e, t) {
|
|
7986
|
-
const r =
|
|
7986
|
+
const r = I.toCamelCase(" " + t);
|
|
7987
7987
|
["get", "set", "has"].forEach((a) => {
|
|
7988
7988
|
Object.defineProperty(e, a + r, {
|
|
7989
7989
|
value: function(n, o, s) {
|
|
@@ -8003,15 +8003,15 @@ let Xe = class {
|
|
|
8003
8003
|
const d = va(l);
|
|
8004
8004
|
if (!d)
|
|
8005
8005
|
throw new Error("header name must be a non-empty string");
|
|
8006
|
-
const u =
|
|
8006
|
+
const u = I.findKey(n, d);
|
|
8007
8007
|
(!u || n[u] === void 0 || c === !0 || c === void 0 && n[u] !== !1) && (n[u || l] = xn(i));
|
|
8008
8008
|
}
|
|
8009
|
-
const s = (i, l) =>
|
|
8010
|
-
if (
|
|
8009
|
+
const s = (i, l) => I.forEach(i, (c, d) => o(c, d, l));
|
|
8010
|
+
if (I.isPlainObject(t) || t instanceof this.constructor)
|
|
8011
8011
|
s(t, r);
|
|
8012
|
-
else if (
|
|
8012
|
+
else if (I.isString(t) && (t = t.trim()) && !bv(t))
|
|
8013
8013
|
s(gv(t), r);
|
|
8014
|
-
else if (
|
|
8014
|
+
else if (I.isHeaders(t))
|
|
8015
8015
|
for (const [i, l] of t.entries())
|
|
8016
8016
|
o(l, i, a);
|
|
8017
8017
|
else
|
|
@@ -8020,16 +8020,16 @@ let Xe = class {
|
|
|
8020
8020
|
}
|
|
8021
8021
|
get(t, r) {
|
|
8022
8022
|
if (t = va(t), t) {
|
|
8023
|
-
const a =
|
|
8023
|
+
const a = I.findKey(this, t);
|
|
8024
8024
|
if (a) {
|
|
8025
8025
|
const n = this[a];
|
|
8026
8026
|
if (!r)
|
|
8027
8027
|
return n;
|
|
8028
8028
|
if (r === !0)
|
|
8029
8029
|
return yv(n);
|
|
8030
|
-
if (
|
|
8030
|
+
if (I.isFunction(r))
|
|
8031
8031
|
return r.call(this, n, a);
|
|
8032
|
-
if (
|
|
8032
|
+
if (I.isRegExp(r))
|
|
8033
8033
|
return r.exec(n);
|
|
8034
8034
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
8035
8035
|
}
|
|
@@ -8037,7 +8037,7 @@ let Xe = class {
|
|
|
8037
8037
|
}
|
|
8038
8038
|
has(t, r) {
|
|
8039
8039
|
if (t = va(t), t) {
|
|
8040
|
-
const a =
|
|
8040
|
+
const a = I.findKey(this, t);
|
|
8041
8041
|
return !!(a && this[a] !== void 0 && (!r || Mo(this, this[a], a, r)));
|
|
8042
8042
|
}
|
|
8043
8043
|
return !1;
|
|
@@ -8047,11 +8047,11 @@ let Xe = class {
|
|
|
8047
8047
|
let n = !1;
|
|
8048
8048
|
function o(s) {
|
|
8049
8049
|
if (s = va(s), s) {
|
|
8050
|
-
const i =
|
|
8050
|
+
const i = I.findKey(a, s);
|
|
8051
8051
|
i && (!r || Mo(a, a[i], i, r)) && (delete a[i], n = !0);
|
|
8052
8052
|
}
|
|
8053
8053
|
}
|
|
8054
|
-
return
|
|
8054
|
+
return I.isArray(t) ? t.forEach(o) : o(t), n;
|
|
8055
8055
|
}
|
|
8056
8056
|
clear(t) {
|
|
8057
8057
|
const r = Object.keys(this);
|
|
@@ -8064,8 +8064,8 @@ let Xe = class {
|
|
|
8064
8064
|
}
|
|
8065
8065
|
normalize(t) {
|
|
8066
8066
|
const r = this, a = {};
|
|
8067
|
-
return
|
|
8068
|
-
const s =
|
|
8067
|
+
return I.forEach(this, (n, o) => {
|
|
8068
|
+
const s = I.findKey(a, o);
|
|
8069
8069
|
if (s) {
|
|
8070
8070
|
r[s] = xn(n), delete r[o];
|
|
8071
8071
|
return;
|
|
@@ -8079,8 +8079,8 @@ let Xe = class {
|
|
|
8079
8079
|
}
|
|
8080
8080
|
toJSON(t) {
|
|
8081
8081
|
const r = /* @__PURE__ */ Object.create(null);
|
|
8082
|
-
return
|
|
8083
|
-
a != null && a !== !1 && (r[n] = t &&
|
|
8082
|
+
return I.forEach(this, (a, n) => {
|
|
8083
|
+
a != null && a !== !1 && (r[n] = t && I.isArray(a) ? a.join(", ") : a);
|
|
8084
8084
|
}), r;
|
|
8085
8085
|
}
|
|
8086
8086
|
[Symbol.iterator]() {
|
|
@@ -8108,11 +8108,11 @@ let Xe = class {
|
|
|
8108
8108
|
const i = va(s);
|
|
8109
8109
|
a[i] || (vv(n, s), a[i] = !0);
|
|
8110
8110
|
}
|
|
8111
|
-
return
|
|
8111
|
+
return I.isArray(t) ? t.forEach(o) : o(t), this;
|
|
8112
8112
|
}
|
|
8113
8113
|
};
|
|
8114
8114
|
Xe.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
8115
|
-
|
|
8115
|
+
I.reduceDescriptors(Xe.prototype, ({ value: e }, t) => {
|
|
8116
8116
|
let r = t[0].toUpperCase() + t.slice(1);
|
|
8117
8117
|
return {
|
|
8118
8118
|
get: () => e,
|
|
@@ -8121,11 +8121,11 @@ j.reduceDescriptors(Xe.prototype, ({ value: e }, t) => {
|
|
|
8121
8121
|
}
|
|
8122
8122
|
};
|
|
8123
8123
|
});
|
|
8124
|
-
|
|
8124
|
+
I.freezeMethods(Xe);
|
|
8125
8125
|
function jo(e, t) {
|
|
8126
8126
|
const r = this || Qa, a = t || r, n = Xe.from(a.headers);
|
|
8127
8127
|
let o = a.data;
|
|
8128
|
-
return
|
|
8128
|
+
return I.forEach(e, function(i) {
|
|
8129
8129
|
o = i.call(r, o, n.normalize(), t ? t.status : void 0);
|
|
8130
8130
|
}), n.normalize(), o;
|
|
8131
8131
|
}
|
|
@@ -8135,7 +8135,7 @@ function Yc(e) {
|
|
|
8135
8135
|
function oa(e, t, r) {
|
|
8136
8136
|
oe.call(this, e ?? "canceled", oe.ERR_CANCELED, t, r), this.name = "CanceledError";
|
|
8137
8137
|
}
|
|
8138
|
-
|
|
8138
|
+
I.inherits(oa, oe, {
|
|
8139
8139
|
__CANCEL__: !0
|
|
8140
8140
|
});
|
|
8141
8141
|
function Xc(e, t, r) {
|
|
@@ -8206,7 +8206,7 @@ const Ln = (e, t, r = 3) => {
|
|
|
8206
8206
|
total: e,
|
|
8207
8207
|
loaded: a
|
|
8208
8208
|
}), t[1]];
|
|
8209
|
-
}, nl = (e) => (...t) =>
|
|
8209
|
+
}, nl = (e) => (...t) => I.asap(() => e(...t)), Cv = Ne.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, Ne.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
8210
8210
|
new URL(Ne.origin),
|
|
8211
8211
|
Ne.navigator && /(msie|trident)/i.test(Ne.navigator.userAgent)
|
|
8212
8212
|
) : () => !0, Pv = Ne.hasStandardBrowserEnv ? (
|
|
@@ -8214,7 +8214,7 @@ const Ln = (e, t, r = 3) => {
|
|
|
8214
8214
|
{
|
|
8215
8215
|
write(e, t, r, a, n, o) {
|
|
8216
8216
|
const s = [e + "=" + encodeURIComponent(t)];
|
|
8217
|
-
|
|
8217
|
+
I.isNumber(r) && s.push("expires=" + new Date(r).toGMTString()), I.isString(a) && s.push("path=" + a), I.isString(n) && s.push("domain=" + n), o === !0 && s.push("secure"), document.cookie = s.join("; ");
|
|
8218
8218
|
},
|
|
8219
8219
|
read(e) {
|
|
8220
8220
|
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
@@ -8251,21 +8251,21 @@ function mr(e, t) {
|
|
|
8251
8251
|
t = t || {};
|
|
8252
8252
|
const r = {};
|
|
8253
8253
|
function a(c, d, u, p) {
|
|
8254
|
-
return
|
|
8254
|
+
return I.isPlainObject(c) && I.isPlainObject(d) ? I.merge.call({ caseless: p }, c, d) : I.isPlainObject(d) ? I.merge({}, d) : I.isArray(d) ? d.slice() : d;
|
|
8255
8255
|
}
|
|
8256
8256
|
function n(c, d, u, p) {
|
|
8257
|
-
if (
|
|
8258
|
-
if (!
|
|
8257
|
+
if (I.isUndefined(d)) {
|
|
8258
|
+
if (!I.isUndefined(c))
|
|
8259
8259
|
return a(void 0, c, u, p);
|
|
8260
8260
|
} else return a(c, d, u, p);
|
|
8261
8261
|
}
|
|
8262
8262
|
function o(c, d) {
|
|
8263
|
-
if (!
|
|
8263
|
+
if (!I.isUndefined(d))
|
|
8264
8264
|
return a(void 0, d);
|
|
8265
8265
|
}
|
|
8266
8266
|
function s(c, d) {
|
|
8267
|
-
if (
|
|
8268
|
-
if (!
|
|
8267
|
+
if (I.isUndefined(d)) {
|
|
8268
|
+
if (!I.isUndefined(c))
|
|
8269
8269
|
return a(void 0, c);
|
|
8270
8270
|
} else return a(void 0, d);
|
|
8271
8271
|
}
|
|
@@ -8306,9 +8306,9 @@ function mr(e, t) {
|
|
|
8306
8306
|
validateStatus: i,
|
|
8307
8307
|
headers: (c, d, u) => n(ol(c), ol(d), u, !0)
|
|
8308
8308
|
};
|
|
8309
|
-
return
|
|
8309
|
+
return I.forEach(Object.keys(Object.assign({}, e, t)), function(d) {
|
|
8310
8310
|
const u = l[d] || n, p = u(e[d], t[d], d);
|
|
8311
|
-
|
|
8311
|
+
I.isUndefined(p) && u !== i || (r[d] = p);
|
|
8312
8312
|
}), r;
|
|
8313
8313
|
}
|
|
8314
8314
|
const ed = (e) => {
|
|
@@ -8319,7 +8319,7 @@ const ed = (e) => {
|
|
|
8319
8319
|
"Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
|
|
8320
8320
|
);
|
|
8321
8321
|
let l;
|
|
8322
|
-
if (
|
|
8322
|
+
if (I.isFormData(r)) {
|
|
8323
8323
|
if (Ne.hasStandardBrowserEnv || Ne.hasStandardBrowserWebWorkerEnv)
|
|
8324
8324
|
s.setContentType(void 0);
|
|
8325
8325
|
else if ((l = s.getContentType()) !== !1) {
|
|
@@ -8327,7 +8327,7 @@ const ed = (e) => {
|
|
|
8327
8327
|
s.setContentType([c || "multipart/form-data", ...d].join("; "));
|
|
8328
8328
|
}
|
|
8329
8329
|
}
|
|
8330
|
-
if (Ne.hasStandardBrowserEnv && (a &&
|
|
8330
|
+
if (Ne.hasStandardBrowserEnv && (a && I.isFunction(a) && (a = a(t)), a || a !== !1 && Cv(t.url))) {
|
|
8331
8331
|
const c = n && o && Pv.read(o);
|
|
8332
8332
|
c && s.set(n, c);
|
|
8333
8333
|
}
|
|
@@ -8337,18 +8337,18 @@ const ed = (e) => {
|
|
|
8337
8337
|
const n = ed(e);
|
|
8338
8338
|
let o = n.data;
|
|
8339
8339
|
const s = Xe.from(n.headers).normalize();
|
|
8340
|
-
let { responseType: i, onUploadProgress: l, onDownloadProgress: c } = n, d, u, p, f,
|
|
8340
|
+
let { responseType: i, onUploadProgress: l, onDownloadProgress: c } = n, d, u, p, f, g;
|
|
8341
8341
|
function h() {
|
|
8342
|
-
f && f(),
|
|
8342
|
+
f && f(), g && g(), n.cancelToken && n.cancelToken.unsubscribe(d), n.signal && n.signal.removeEventListener("abort", d);
|
|
8343
8343
|
}
|
|
8344
8344
|
let x = new XMLHttpRequest();
|
|
8345
8345
|
x.open(n.method.toUpperCase(), n.url, !0), x.timeout = n.timeout;
|
|
8346
|
-
function
|
|
8346
|
+
function E() {
|
|
8347
8347
|
if (!x)
|
|
8348
8348
|
return;
|
|
8349
8349
|
const F = Xe.from(
|
|
8350
8350
|
"getAllResponseHeaders" in x && x.getAllResponseHeaders()
|
|
8351
|
-
),
|
|
8351
|
+
), G = {
|
|
8352
8352
|
data: !i || i === "text" || i === "json" ? x.responseText : x.response,
|
|
8353
8353
|
status: x.status,
|
|
8354
8354
|
statusText: x.statusText,
|
|
@@ -8356,35 +8356,35 @@ const ed = (e) => {
|
|
|
8356
8356
|
config: e,
|
|
8357
8357
|
request: x
|
|
8358
8358
|
};
|
|
8359
|
-
Xc(function(
|
|
8360
|
-
r(
|
|
8361
|
-
}, function(
|
|
8362
|
-
a(
|
|
8363
|
-
},
|
|
8364
|
-
}
|
|
8365
|
-
"onloadend" in x ? x.onloadend =
|
|
8366
|
-
!x || x.readyState !== 4 || x.status === 0 && !(x.responseURL && x.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
8359
|
+
Xc(function(j) {
|
|
8360
|
+
r(j), h();
|
|
8361
|
+
}, function(j) {
|
|
8362
|
+
a(j), h();
|
|
8363
|
+
}, G), x = null;
|
|
8364
|
+
}
|
|
8365
|
+
"onloadend" in x ? x.onloadend = E : x.onreadystatechange = function() {
|
|
8366
|
+
!x || x.readyState !== 4 || x.status === 0 && !(x.responseURL && x.responseURL.indexOf("file:") === 0) || setTimeout(E);
|
|
8367
8367
|
}, x.onabort = function() {
|
|
8368
8368
|
x && (a(new oe("Request aborted", oe.ECONNABORTED, e, x)), x = null);
|
|
8369
8369
|
}, x.onerror = function() {
|
|
8370
8370
|
a(new oe("Network Error", oe.ERR_NETWORK, e, x)), x = null;
|
|
8371
8371
|
}, x.ontimeout = function() {
|
|
8372
8372
|
let N = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
|
|
8373
|
-
const
|
|
8373
|
+
const G = n.transitional || Qc;
|
|
8374
8374
|
n.timeoutErrorMessage && (N = n.timeoutErrorMessage), a(new oe(
|
|
8375
8375
|
N,
|
|
8376
|
-
|
|
8376
|
+
G.clarifyTimeoutError ? oe.ETIMEDOUT : oe.ECONNABORTED,
|
|
8377
8377
|
e,
|
|
8378
8378
|
x
|
|
8379
8379
|
)), x = null;
|
|
8380
|
-
}, o === void 0 && s.setContentType(null), "setRequestHeader" in x &&
|
|
8381
|
-
x.setRequestHeader(
|
|
8382
|
-
}),
|
|
8380
|
+
}, o === void 0 && s.setContentType(null), "setRequestHeader" in x && I.forEach(s.toJSON(), function(N, G) {
|
|
8381
|
+
x.setRequestHeader(G, N);
|
|
8382
|
+
}), I.isUndefined(n.withCredentials) || (x.withCredentials = !!n.withCredentials), i && i !== "json" && (x.responseType = n.responseType), c && ([p, g] = Ln(c, !0), x.addEventListener("progress", p)), l && x.upload && ([u, f] = Ln(l), x.upload.addEventListener("progress", u), x.upload.addEventListener("loadend", f)), (n.cancelToken || n.signal) && (d = (F) => {
|
|
8383
8383
|
x && (a(!F || F.type ? new oa(null, e, x) : F), x.abort(), x = null);
|
|
8384
8384
|
}, n.cancelToken && n.cancelToken.subscribe(d), n.signal && (n.signal.aborted ? d() : n.signal.addEventListener("abort", d)));
|
|
8385
|
-
const
|
|
8386
|
-
if (
|
|
8387
|
-
a(new oe("Unsupported protocol " +
|
|
8385
|
+
const U = xv(n.url);
|
|
8386
|
+
if (U && Ne.protocols.indexOf(U) === -1) {
|
|
8387
|
+
a(new oe("Unsupported protocol " + U + ":", oe.ERR_BAD_REQUEST, e));
|
|
8388
8388
|
return;
|
|
8389
8389
|
}
|
|
8390
8390
|
x.send(o || null);
|
|
@@ -8410,7 +8410,7 @@ const ed = (e) => {
|
|
|
8410
8410
|
};
|
|
8411
8411
|
e.forEach((c) => c.addEventListener("abort", o));
|
|
8412
8412
|
const { signal: l } = a;
|
|
8413
|
-
return l.unsubscribe = () =>
|
|
8413
|
+
return l.unsubscribe = () => I.asap(i), l;
|
|
8414
8414
|
}
|
|
8415
8415
|
}, Ev = function* (e, t) {
|
|
8416
8416
|
let r = e.byteLength;
|
|
@@ -8485,12 +8485,12 @@ const ed = (e) => {
|
|
|
8485
8485
|
}
|
|
8486
8486
|
}).headers.has("Content-Type");
|
|
8487
8487
|
return e && !t;
|
|
8488
|
-
}), il = 64 * 1024, as = td && rd(() =>
|
|
8488
|
+
}), il = 64 * 1024, as = td && rd(() => I.isReadableStream(new Response("").body)), kn = {
|
|
8489
8489
|
stream: as && ((e) => e.body)
|
|
8490
8490
|
};
|
|
8491
8491
|
uo && ((e) => {
|
|
8492
8492
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
8493
|
-
!kn[t] && (kn[t] =
|
|
8493
|
+
!kn[t] && (kn[t] = I.isFunction(e[t]) ? (r) => r[t]() : (r, a) => {
|
|
8494
8494
|
throw new oe(`Response type '${t}' is not supported`, oe.ERR_NOT_SUPPORT, a);
|
|
8495
8495
|
});
|
|
8496
8496
|
});
|
|
@@ -8498,19 +8498,19 @@ uo && ((e) => {
|
|
|
8498
8498
|
const Uv = async (e) => {
|
|
8499
8499
|
if (e == null)
|
|
8500
8500
|
return 0;
|
|
8501
|
-
if (
|
|
8501
|
+
if (I.isBlob(e))
|
|
8502
8502
|
return e.size;
|
|
8503
|
-
if (
|
|
8503
|
+
if (I.isSpecCompliantForm(e))
|
|
8504
8504
|
return (await new Request(Ne.origin, {
|
|
8505
8505
|
method: "POST",
|
|
8506
8506
|
body: e
|
|
8507
8507
|
}).arrayBuffer()).byteLength;
|
|
8508
|
-
if (
|
|
8508
|
+
if (I.isArrayBufferView(e) || I.isArrayBuffer(e))
|
|
8509
8509
|
return e.byteLength;
|
|
8510
|
-
if (
|
|
8510
|
+
if (I.isURLSearchParams(e) && (e = e + ""), I.isString(e))
|
|
8511
8511
|
return (await jv(e)).byteLength;
|
|
8512
8512
|
}, Lv = async (e, t) => {
|
|
8513
|
-
const r =
|
|
8513
|
+
const r = I.toFiniteNumber(e.getContentLength());
|
|
8514
8514
|
return r ?? Uv(t);
|
|
8515
8515
|
}, kv = uo && (async (e) => {
|
|
8516
8516
|
let {
|
|
@@ -8528,81 +8528,81 @@ const Uv = async (e) => {
|
|
|
8528
8528
|
fetchOptions: p
|
|
8529
8529
|
} = ed(e);
|
|
8530
8530
|
c = c ? (c + "").toLowerCase() : "text";
|
|
8531
|
-
let f = Tv([n, o && o.toAbortSignal()], s),
|
|
8531
|
+
let f = Tv([n, o && o.toAbortSignal()], s), g;
|
|
8532
8532
|
const h = f && f.unsubscribe && (() => {
|
|
8533
8533
|
f.unsubscribe();
|
|
8534
8534
|
});
|
|
8535
8535
|
let x;
|
|
8536
8536
|
try {
|
|
8537
8537
|
if (l && $v && r !== "get" && r !== "head" && (x = await Lv(d, a)) !== 0) {
|
|
8538
|
-
let
|
|
8538
|
+
let G = new Request(t, {
|
|
8539
8539
|
method: "POST",
|
|
8540
8540
|
body: a,
|
|
8541
8541
|
duplex: "half"
|
|
8542
8542
|
}), W;
|
|
8543
|
-
if (
|
|
8544
|
-
const [
|
|
8543
|
+
if (I.isFormData(a) && (W = G.headers.get("content-type")) && d.setContentType(W), G.body) {
|
|
8544
|
+
const [j, L] = al(
|
|
8545
8545
|
x,
|
|
8546
8546
|
Ln(nl(l))
|
|
8547
8547
|
);
|
|
8548
|
-
a = sl(
|
|
8548
|
+
a = sl(G.body, il, j, L);
|
|
8549
8549
|
}
|
|
8550
8550
|
}
|
|
8551
|
-
|
|
8552
|
-
const
|
|
8553
|
-
|
|
8551
|
+
I.isString(u) || (u = u ? "include" : "omit");
|
|
8552
|
+
const E = "credentials" in Request.prototype;
|
|
8553
|
+
g = new Request(t, {
|
|
8554
8554
|
...p,
|
|
8555
8555
|
signal: f,
|
|
8556
8556
|
method: r.toUpperCase(),
|
|
8557
8557
|
headers: d.normalize().toJSON(),
|
|
8558
8558
|
body: a,
|
|
8559
8559
|
duplex: "half",
|
|
8560
|
-
credentials:
|
|
8560
|
+
credentials: E ? u : void 0
|
|
8561
8561
|
});
|
|
8562
|
-
let
|
|
8562
|
+
let U = await fetch(g);
|
|
8563
8563
|
const F = as && (c === "stream" || c === "response");
|
|
8564
8564
|
if (as && (i || F && h)) {
|
|
8565
|
-
const
|
|
8566
|
-
["status", "statusText", "headers"].forEach((
|
|
8567
|
-
|
|
8565
|
+
const G = {};
|
|
8566
|
+
["status", "statusText", "headers"].forEach((k) => {
|
|
8567
|
+
G[k] = U[k];
|
|
8568
8568
|
});
|
|
8569
|
-
const W =
|
|
8569
|
+
const W = I.toFiniteNumber(U.headers.get("content-length")), [j, L] = i && al(
|
|
8570
8570
|
W,
|
|
8571
8571
|
Ln(nl(i), !0)
|
|
8572
8572
|
) || [];
|
|
8573
|
-
|
|
8574
|
-
sl(
|
|
8575
|
-
|
|
8573
|
+
U = new Response(
|
|
8574
|
+
sl(U.body, il, j, () => {
|
|
8575
|
+
L && L(), h && h();
|
|
8576
8576
|
}),
|
|
8577
|
-
|
|
8577
|
+
G
|
|
8578
8578
|
);
|
|
8579
8579
|
}
|
|
8580
8580
|
c = c || "text";
|
|
8581
|
-
let N = await kn[
|
|
8582
|
-
return !F && h && h(), await new Promise((
|
|
8583
|
-
Xc(
|
|
8581
|
+
let N = await kn[I.findKey(kn, c) || "text"](U, e);
|
|
8582
|
+
return !F && h && h(), await new Promise((G, W) => {
|
|
8583
|
+
Xc(G, W, {
|
|
8584
8584
|
data: N,
|
|
8585
|
-
headers: Xe.from(
|
|
8586
|
-
status:
|
|
8587
|
-
statusText:
|
|
8585
|
+
headers: Xe.from(U.headers),
|
|
8586
|
+
status: U.status,
|
|
8587
|
+
statusText: U.statusText,
|
|
8588
8588
|
config: e,
|
|
8589
|
-
request:
|
|
8589
|
+
request: g
|
|
8590
8590
|
});
|
|
8591
8591
|
});
|
|
8592
|
-
} catch (
|
|
8593
|
-
throw h && h(),
|
|
8594
|
-
new oe("Network Error", oe.ERR_NETWORK, e,
|
|
8592
|
+
} catch (E) {
|
|
8593
|
+
throw h && h(), E && E.name === "TypeError" && /fetch/i.test(E.message) ? Object.assign(
|
|
8594
|
+
new oe("Network Error", oe.ERR_NETWORK, e, g),
|
|
8595
8595
|
{
|
|
8596
|
-
cause:
|
|
8596
|
+
cause: E.cause || E
|
|
8597
8597
|
}
|
|
8598
|
-
) : oe.from(
|
|
8598
|
+
) : oe.from(E, E && E.code, e, g);
|
|
8599
8599
|
}
|
|
8600
8600
|
}), ns = {
|
|
8601
8601
|
http: ZS,
|
|
8602
8602
|
xhr: Av,
|
|
8603
8603
|
fetch: kv
|
|
8604
8604
|
};
|
|
8605
|
-
|
|
8605
|
+
I.forEach(ns, (e, t) => {
|
|
8606
8606
|
if (e) {
|
|
8607
8607
|
try {
|
|
8608
8608
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -8611,9 +8611,9 @@ j.forEach(ns, (e, t) => {
|
|
|
8611
8611
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
8612
8612
|
}
|
|
8613
8613
|
});
|
|
8614
|
-
const ll = (e) => `- ${e}`, Bv = (e) =>
|
|
8614
|
+
const ll = (e) => `- ${e}`, Bv = (e) => I.isFunction(e) || e === null || e === !1, ad = {
|
|
8615
8615
|
getAdapter: (e) => {
|
|
8616
|
-
e =
|
|
8616
|
+
e = I.isArray(e) ? e : [e];
|
|
8617
8617
|
const { length: t } = e;
|
|
8618
8618
|
let r, a;
|
|
8619
8619
|
const n = {};
|
|
@@ -8752,7 +8752,7 @@ let dr = class {
|
|
|
8752
8752
|
silentJSONParsing: St.transitional(St.boolean),
|
|
8753
8753
|
forcedJSONParsing: St.transitional(St.boolean),
|
|
8754
8754
|
clarifyTimeoutError: St.transitional(St.boolean)
|
|
8755
|
-
}, !1), n != null && (
|
|
8755
|
+
}, !1), n != null && (I.isFunction(n) ? r.paramsSerializer = {
|
|
8756
8756
|
serialize: n
|
|
8757
8757
|
} : On.assertOptions(n, {
|
|
8758
8758
|
encode: St.function,
|
|
@@ -8761,14 +8761,14 @@ let dr = class {
|
|
|
8761
8761
|
baseUrl: St.spelling("baseURL"),
|
|
8762
8762
|
withXsrfToken: St.spelling("withXSRFToken")
|
|
8763
8763
|
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
8764
|
-
let s = o &&
|
|
8764
|
+
let s = o && I.merge(
|
|
8765
8765
|
o.common,
|
|
8766
8766
|
o[r.method]
|
|
8767
8767
|
);
|
|
8768
|
-
o &&
|
|
8768
|
+
o && I.forEach(
|
|
8769
8769
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
8770
|
-
(
|
|
8771
|
-
delete o[
|
|
8770
|
+
(g) => {
|
|
8771
|
+
delete o[g];
|
|
8772
8772
|
}
|
|
8773
8773
|
), r.headers = Xe.concat(s, o);
|
|
8774
8774
|
const i = [];
|
|
@@ -8782,17 +8782,17 @@ let dr = class {
|
|
|
8782
8782
|
});
|
|
8783
8783
|
let d, u = 0, p;
|
|
8784
8784
|
if (!l) {
|
|
8785
|
-
const
|
|
8786
|
-
for (
|
|
8787
|
-
d = d.then(
|
|
8785
|
+
const g = [cl.bind(this), void 0];
|
|
8786
|
+
for (g.unshift.apply(g, i), g.push.apply(g, c), p = g.length, d = Promise.resolve(r); u < p; )
|
|
8787
|
+
d = d.then(g[u++], g[u++]);
|
|
8788
8788
|
return d;
|
|
8789
8789
|
}
|
|
8790
8790
|
p = i.length;
|
|
8791
8791
|
let f = r;
|
|
8792
8792
|
for (u = 0; u < p; ) {
|
|
8793
|
-
const
|
|
8793
|
+
const g = i[u++], h = i[u++];
|
|
8794
8794
|
try {
|
|
8795
|
-
f =
|
|
8795
|
+
f = g(f);
|
|
8796
8796
|
} catch (x) {
|
|
8797
8797
|
h.call(this, x);
|
|
8798
8798
|
break;
|
|
@@ -8800,8 +8800,8 @@ let dr = class {
|
|
|
8800
8800
|
}
|
|
8801
8801
|
try {
|
|
8802
8802
|
d = cl.call(this, f);
|
|
8803
|
-
} catch (
|
|
8804
|
-
return Promise.reject(
|
|
8803
|
+
} catch (g) {
|
|
8804
|
+
return Promise.reject(g);
|
|
8805
8805
|
}
|
|
8806
8806
|
for (u = 0, p = c.length; u < p; )
|
|
8807
8807
|
d = d.then(c[u++], c[u++]);
|
|
@@ -8813,7 +8813,7 @@ let dr = class {
|
|
|
8813
8813
|
return Wc(r, t.params, t.paramsSerializer);
|
|
8814
8814
|
}
|
|
8815
8815
|
};
|
|
8816
|
-
|
|
8816
|
+
I.forEach(["delete", "get", "head", "options"], function(t) {
|
|
8817
8817
|
dr.prototype[t] = function(r, a) {
|
|
8818
8818
|
return this.request(mr(a || {}, {
|
|
8819
8819
|
method: t,
|
|
@@ -8822,7 +8822,7 @@ j.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
8822
8822
|
}));
|
|
8823
8823
|
};
|
|
8824
8824
|
});
|
|
8825
|
-
|
|
8825
|
+
I.forEach(["post", "put", "patch"], function(t) {
|
|
8826
8826
|
function r(a) {
|
|
8827
8827
|
return function(o, s, i) {
|
|
8828
8828
|
return this.request(mr(i || {}, {
|
|
@@ -8916,7 +8916,7 @@ function Dv(e) {
|
|
|
8916
8916
|
};
|
|
8917
8917
|
}
|
|
8918
8918
|
function zv(e) {
|
|
8919
|
-
return
|
|
8919
|
+
return I.isObject(e) && e.isAxiosError === !0;
|
|
8920
8920
|
}
|
|
8921
8921
|
const os = {
|
|
8922
8922
|
Continue: 100,
|
|
@@ -8988,7 +8988,7 @@ Object.entries(os).forEach(([e, t]) => {
|
|
|
8988
8988
|
});
|
|
8989
8989
|
function sd(e) {
|
|
8990
8990
|
const t = new dr(e), r = Lc(dr.prototype.request, t);
|
|
8991
|
-
return
|
|
8991
|
+
return I.extend(r, dr.prototype, t, { allOwnKeys: !0 }), I.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(n) {
|
|
8992
8992
|
return sd(mr(e, n));
|
|
8993
8993
|
}, r;
|
|
8994
8994
|
}
|
|
@@ -9008,7 +9008,7 @@ O.spread = Dv;
|
|
|
9008
9008
|
O.isAxiosError = zv;
|
|
9009
9009
|
O.mergeConfig = mr;
|
|
9010
9010
|
O.AxiosHeaders = Xe;
|
|
9011
|
-
O.formToJSON = (e) => Kc(
|
|
9011
|
+
O.formToJSON = (e) => Kc(I.isHTMLForm(e) ? new FormData(e) : e);
|
|
9012
9012
|
O.getAdapter = ad.getAdapter;
|
|
9013
9013
|
O.HttpStatusCode = os;
|
|
9014
9014
|
O.default = O;
|
|
@@ -9946,7 +9946,7 @@ const Qv = function(e) {
|
|
|
9946
9946
|
};
|
|
9947
9947
|
}
|
|
9948
9948
|
};
|
|
9949
|
-
},
|
|
9949
|
+
}, Ye = function(e) {
|
|
9950
9950
|
const t = Qv(e);
|
|
9951
9951
|
return {
|
|
9952
9952
|
/**
|
|
@@ -10151,7 +10151,7 @@ class Kv extends we {
|
|
|
10151
10151
|
* @memberof ControllerApi
|
|
10152
10152
|
*/
|
|
10153
10153
|
addRobotController(t, r, a, n) {
|
|
10154
|
-
return
|
|
10154
|
+
return Ye(this.configuration).addRobotController(t, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
10155
10155
|
}
|
|
10156
10156
|
/**
|
|
10157
10157
|
* Delete all robot controllers from the cell. To replace all robot controllers in a cell, use this endpoint in combination with the \'Add Robot Controller\' endpoint. <!-- theme: warning --> > **WARNING** > > Using it in conjunction with the settings app may lead to unpredictable behavior.
|
|
@@ -10163,7 +10163,7 @@ class Kv extends we {
|
|
|
10163
10163
|
* @memberof ControllerApi
|
|
10164
10164
|
*/
|
|
10165
10165
|
clearRobotControllers(t, r, a) {
|
|
10166
|
-
return
|
|
10166
|
+
return Ye(this.configuration).clearRobotControllers(t, r, a).then((n) => n(this.axios, this.basePath));
|
|
10167
10167
|
}
|
|
10168
10168
|
/**
|
|
10169
10169
|
* Delete a robot controller from the cell. <!-- theme: warning --> > **WARNING** > > Using it in conjunction with the settings app may lead to unpredictable behavior.
|
|
@@ -10176,7 +10176,7 @@ class Kv extends we {
|
|
|
10176
10176
|
* @memberof ControllerApi
|
|
10177
10177
|
*/
|
|
10178
10178
|
deleteRobotController(t, r, a, n) {
|
|
10179
|
-
return
|
|
10179
|
+
return Ye(this.configuration).deleteRobotController(t, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
10180
10180
|
}
|
|
10181
10181
|
/**
|
|
10182
10182
|
* Get the current state of a robot controller.
|
|
@@ -10188,7 +10188,7 @@ class Kv extends we {
|
|
|
10188
10188
|
* @memberof ControllerApi
|
|
10189
10189
|
*/
|
|
10190
10190
|
getCurrentRobotControllerState(t, r, a) {
|
|
10191
|
-
return
|
|
10191
|
+
return Ye(this.configuration).getCurrentRobotControllerState(t, r, a).then((n) => n(this.axios, this.basePath));
|
|
10192
10192
|
}
|
|
10193
10193
|
/**
|
|
10194
10194
|
* Get the current robot system mode of a registered robot controller. The robot system mode indicates if a robot controller can be used. See [setDefaultMode](setDefaultMode) for more information about the different modes. The mode is influenced by the operating mode of the robot controller. The operating mode can be changed via [setDefaultMode](setDefaultMode). Request the current operating mode of the robot controller via [getCurrentRobotControllerState](getCurrentRobotControllerState).
|
|
@@ -10200,7 +10200,7 @@ class Kv extends we {
|
|
|
10200
10200
|
* @memberof ControllerApi
|
|
10201
10201
|
*/
|
|
10202
10202
|
getMode(t, r, a) {
|
|
10203
|
-
return
|
|
10203
|
+
return Ye(this.configuration).getMode(t, r, a).then((n) => n(this.axios, this.basePath));
|
|
10204
10204
|
}
|
|
10205
10205
|
/**
|
|
10206
10206
|
* Get the configuration for a robot controller.
|
|
@@ -10212,7 +10212,7 @@ class Kv extends we {
|
|
|
10212
10212
|
* @memberof ControllerApi
|
|
10213
10213
|
*/
|
|
10214
10214
|
getRobotController(t, r, a) {
|
|
10215
|
-
return
|
|
10215
|
+
return Ye(this.configuration).getRobotController(t, r, a).then((n) => n(this.axios, this.basePath));
|
|
10216
10216
|
}
|
|
10217
10217
|
/**
|
|
10218
10218
|
* Lists supported operating modes. Usually cobots support free drive and control, industrial robots only support control.
|
|
@@ -10224,7 +10224,7 @@ class Kv extends we {
|
|
|
10224
10224
|
* @memberof ControllerApi
|
|
10225
10225
|
*/
|
|
10226
10226
|
getSupportedModes(t, r, a) {
|
|
10227
|
-
return
|
|
10227
|
+
return Ye(this.configuration).getSupportedModes(t, r, a).then((n) => n(this.axios, this.basePath));
|
|
10228
10228
|
}
|
|
10229
10229
|
/**
|
|
10230
10230
|
* Receive the configuration for a virtual robot controller. Used to configure a virtual robot controller via [addRobotController](addRobotController). > **NOTE** > > The output generated by this endpoint can be too large for the site to handle, and may produce an error or incorrect output. > Use `curl` in combination with `> output.json` to capture the output, or use an API client like Postman.
|
|
@@ -10236,7 +10236,7 @@ class Kv extends we {
|
|
|
10236
10236
|
* @memberof ControllerApi
|
|
10237
10237
|
*/
|
|
10238
10238
|
getVirtualRobotConfiguration(t, r, a) {
|
|
10239
|
-
return
|
|
10239
|
+
return Ye(this.configuration).getVirtualRobotConfiguration(t, r, a).then((n) => n(this.axios, this.basePath));
|
|
10240
10240
|
}
|
|
10241
10241
|
/**
|
|
10242
10242
|
* List all configured robot controllers.
|
|
@@ -10247,7 +10247,7 @@ class Kv extends we {
|
|
|
10247
10247
|
* @memberof ControllerApi
|
|
10248
10248
|
*/
|
|
10249
10249
|
listControllers(t, r) {
|
|
10250
|
-
return
|
|
10250
|
+
return Ye(this.configuration).listControllers(t, r).then((a) => a(this.axios, this.basePath));
|
|
10251
10251
|
}
|
|
10252
10252
|
/**
|
|
10253
10253
|
* Switch between monitor and control usage as default for a robot controller. Monitoring mode is used to read information from the robot controller and control mode is used to command the robot system. As long as the robot controller is connected via network monitoring mode is always possible. To switch to control mode the robot controller must be in `automatic` or `manual` operating mode and safety state \'normal\' or \'reduced\'. If the robot controller is in `manual` operating mode, you have manually confirm the control usage activation on the robot control panel. This manual confirmation can\'t be replaced with this API. Without manual confirmation the robot controller will stay in monitor mode. The robot system will try to activate the required operation mode for the requested usage unless no active call requires a different mode. > **NOTE** > > Some robot controllers prevent the external activation of automatic operating mode. In this case, changing the operating mode manually at the robot controller is mandatory. > **NOTE** > > The current operation mode and safety state can be requested via [getCurrentRobotControllerState](getCurrentRobotControllerState). If a mode change is not possible, the response lists reasons for the failed change.
|
|
@@ -10260,7 +10260,7 @@ class Kv extends we {
|
|
|
10260
10260
|
* @memberof ControllerApi
|
|
10261
10261
|
*/
|
|
10262
10262
|
setDefaultMode(t, r, a, n) {
|
|
10263
|
-
return
|
|
10263
|
+
return Ye(this.configuration).setDefaultMode(t, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
10264
10264
|
}
|
|
10265
10265
|
/**
|
|
10266
10266
|
* Sets the robot controller into freedrive mode and stays in freedrive until the websocket connection is closed by the client. In freedrive mode, it is possible to move the attached motion groups by hand. This is a blocking call. As long as the websocket connection is open, no other endpoint can control or move the robot. <!-- theme: danger --> > **DANGER** > Danger caused by robot. Improper assessment by the integrator of the application-specific hazards can result in people being crushed, > drawn in or caught due to the robot\'s complex movement sequences. Before opening the websocket, ensure that > - The robot is in a safe state, > - The right payload is set (e.g by using the (getActivePayload)[getActivePayload] endpoint), > - No humans or object are within the robot\'s reach or within the cell. As long as the websocket connection is open you will get the current state of the robot system in the response in the specified response_rate. If the activation failed, the returned status will return possible reasons for the failure. Free drive mode is only available for robot controllers that support it, in particular Collobarative Robots (\"Cobots\"). Use the (getSupportedModes)[getSupportedModes] endpoint to check if the robot controller supports free drive mode.
|
|
@@ -10273,7 +10273,7 @@ class Kv extends we {
|
|
|
10273
10273
|
* @memberof ControllerApi
|
|
10274
10274
|
*/
|
|
10275
10275
|
streamFreeDrive(t, r, a, n) {
|
|
10276
|
-
return
|
|
10276
|
+
return Ye(this.configuration).streamFreeDrive(t, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
10277
10277
|
}
|
|
10278
10278
|
/**
|
|
10279
10279
|
* Receive updates of the current robot system mode of a robot controller via websocket upon robot system mode change. See [setDefaultMode](setDefaultMode) for more information about the different modes.
|
|
@@ -10285,7 +10285,7 @@ class Kv extends we {
|
|
|
10285
10285
|
* @memberof ControllerApi
|
|
10286
10286
|
*/
|
|
10287
10287
|
streamModeChange(t, r, a) {
|
|
10288
|
-
return
|
|
10288
|
+
return Ye(this.configuration).streamModeChange(t, r, a).then((n) => n(this.axios, this.basePath));
|
|
10289
10289
|
}
|
|
10290
10290
|
/**
|
|
10291
10291
|
* Receive updates of the state of a robot controller.
|
|
@@ -10298,7 +10298,7 @@ class Kv extends we {
|
|
|
10298
10298
|
* @memberof ControllerApi
|
|
10299
10299
|
*/
|
|
10300
10300
|
streamRobotControllerState(t, r, a, n) {
|
|
10301
|
-
return
|
|
10301
|
+
return Ye(this.configuration).streamRobotControllerState(t, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
10302
10302
|
}
|
|
10303
10303
|
/**
|
|
10304
10304
|
* Update the configuration of a robot controller. Reconfigure certain options of a robot controller, or deploy a specific container image of a robot controller. <!-- theme: warning --> > **WARNING** > > Using it in conjunction with the settings app may lead to unpredictable behavior.
|
|
@@ -10312,7 +10312,7 @@ class Kv extends we {
|
|
|
10312
10312
|
* @memberof ControllerApi
|
|
10313
10313
|
*/
|
|
10314
10314
|
updateRobotController(t, r, a, n, o) {
|
|
10315
|
-
return
|
|
10315
|
+
return Ye(this.configuration).updateRobotController(t, r, a, n, o).then((s) => s(this.axios, this.basePath));
|
|
10316
10316
|
}
|
|
10317
10317
|
}
|
|
10318
10318
|
const Yv = function(e) {
|
|
@@ -10423,8 +10423,8 @@ const Yv = function(e) {
|
|
|
10423
10423
|
const c = "/cells/{cell}/controllers/{controller}/ios/wait-for".replace("{cell}", encodeURIComponent(String(t))).replace("{controller}", encodeURIComponent(String(r))), d = new URL(c, P);
|
|
10424
10424
|
let u;
|
|
10425
10425
|
e && (u = e.baseOptions);
|
|
10426
|
-
const p = { method: "GET", ...u, ...l }, f = {},
|
|
10427
|
-
V(p, e), await R(f, e), a !== void 0 && (
|
|
10426
|
+
const p = { method: "GET", ...u, ...l }, f = {}, g = {};
|
|
10427
|
+
V(p, e), await R(f, e), a !== void 0 && (g.io = a), n !== void 0 && (g.comparison_type = n), o !== void 0 && (g.boolean_value = o), s !== void 0 && (g.integer_value = s), i !== void 0 && (g.floating_value = i), _(d, g);
|
|
10428
10428
|
let h = u && u.headers ? u.headers : {};
|
|
10429
10429
|
return p.headers = { ...f, ...h, ...l.headers }, {
|
|
10430
10430
|
url: A(d),
|
|
@@ -10505,8 +10505,8 @@ const Yv = function(e) {
|
|
|
10505
10505
|
* @throws {RequiredError}
|
|
10506
10506
|
*/
|
|
10507
10507
|
async waitForIOEvent(r, a, n, o, s, i, l, c) {
|
|
10508
|
-
var f,
|
|
10509
|
-
const d = await t.waitForIOEvent(r, a, n, o, s, i, l, c), u = (e == null ? void 0 : e.serverIndex) ?? 0, p = (
|
|
10508
|
+
var f, g;
|
|
10509
|
+
const d = await t.waitForIOEvent(r, a, n, o, s, i, l, c), u = (e == null ? void 0 : e.serverIndex) ?? 0, p = (g = (f = C["ControllerIOsApi.waitForIOEvent"]) == null ? void 0 : f[u]) == null ? void 0 : g.url;
|
|
10510
10510
|
return (h, x) => T(d, O, w, e)(h, p || x);
|
|
10511
10511
|
}
|
|
10512
10512
|
};
|
|
@@ -12289,8 +12289,8 @@ const u1 = function(e) {
|
|
|
12289
12289
|
e && (d = e.baseOptions);
|
|
12290
12290
|
const u = { method: "GET", ...d, ...i }, p = {}, f = {};
|
|
12291
12291
|
V(u, e), await R(p, e), a !== void 0 && (f.playback_speed_in_percent = a), n !== void 0 && (f.response_rate = n), o !== void 0 && (f.response_coordinate_system = o), s !== void 0 && (f.start_location_on_trajectory = s), _(c, f);
|
|
12292
|
-
let
|
|
12293
|
-
return u.headers = { ...p, ...
|
|
12292
|
+
let g = d && d.headers ? d.headers : {};
|
|
12293
|
+
return u.headers = { ...p, ...g, ...i.headers }, {
|
|
12294
12294
|
url: A(c),
|
|
12295
12295
|
options: u
|
|
12296
12296
|
};
|
|
@@ -12315,8 +12315,8 @@ const u1 = function(e) {
|
|
|
12315
12315
|
e && (d = e.baseOptions);
|
|
12316
12316
|
const u = { method: "GET", ...d, ...i }, p = {}, f = {};
|
|
12317
12317
|
V(u, e), await R(p, e), a !== void 0 && (f.playback_speed_in_percent = a), n !== void 0 && (f.response_rate = n), o !== void 0 && (f.response_coordinate_system = o), s !== void 0 && (f.start_location_on_trajectory = s), _(c, f);
|
|
12318
|
-
let
|
|
12319
|
-
return u.headers = { ...p, ...
|
|
12318
|
+
let g = d && d.headers ? d.headers : {};
|
|
12319
|
+
return u.headers = { ...p, ...g, ...i.headers }, {
|
|
12320
12320
|
url: A(c),
|
|
12321
12321
|
options: u
|
|
12322
12322
|
};
|
|
@@ -12340,12 +12340,12 @@ const u1 = function(e) {
|
|
|
12340
12340
|
streamMoveToTrajectoryViaJointPTP: async (t, r, a, n, o, s, i, l, c, d, u = {}) => {
|
|
12341
12341
|
m("streamMoveToTrajectoryViaJointPTP", "cell", t), m("streamMoveToTrajectoryViaJointPTP", "motion", r), m("streamMoveToTrajectoryViaJointPTP", "locationOnTrajectory", a);
|
|
12342
12342
|
const p = "/cells/{cell}/motions/{motion}/executetotrajectory".replace("{cell}", encodeURIComponent(String(t))).replace("{motion}", encodeURIComponent(String(r))), f = new URL(p, P);
|
|
12343
|
-
let
|
|
12344
|
-
e && (
|
|
12345
|
-
const h = { method: "GET", ...
|
|
12346
|
-
V(h, e), await R(x, e), a !== void 0 && (
|
|
12347
|
-
let
|
|
12348
|
-
return h.headers = { ...x, ...
|
|
12343
|
+
let g;
|
|
12344
|
+
e && (g = e.baseOptions);
|
|
12345
|
+
const h = { method: "GET", ...g, ...u }, x = {}, E = {};
|
|
12346
|
+
V(h, e), await R(x, e), a !== void 0 && (E.location_on_trajectory = a), n && (E["limit_override.joint_velocity_limits.joints"] = n), o && (E["limit_override.joint_acceleration_limits.joints"] = o), s !== void 0 && (E["limit_override.tcp_velocity_limit"] = s), i !== void 0 && (E["limit_override.tcp_acceleration_limit"] = i), l !== void 0 && (E["limit_override.tcp_orientation_velocity_limit"] = l), c !== void 0 && (E["limit_override.tcp_orientation_acceleration_limit"] = c), d !== void 0 && (E.responses_coordinate_system = d), _(f, E);
|
|
12347
|
+
let U = g && g.headers ? g.headers : {};
|
|
12348
|
+
return h.headers = { ...x, ...U, ...u.headers }, {
|
|
12349
12349
|
url: A(f),
|
|
12350
12350
|
options: h
|
|
12351
12351
|
};
|
|
@@ -12556,7 +12556,7 @@ const u1 = function(e) {
|
|
|
12556
12556
|
async streamMoveBackward(r, a, n, o, s, i, l) {
|
|
12557
12557
|
var p, f;
|
|
12558
12558
|
const c = await t.streamMoveBackward(r, a, n, o, s, i, l), d = (e == null ? void 0 : e.serverIndex) ?? 0, u = (f = (p = C["MotionApi.streamMoveBackward"]) == null ? void 0 : p[d]) == null ? void 0 : f.url;
|
|
12559
|
-
return (
|
|
12559
|
+
return (g, h) => T(c, O, w, e)(g, u || h);
|
|
12560
12560
|
},
|
|
12561
12561
|
/**
|
|
12562
12562
|
* Deprecated endpoint. Use the [executeTrajectory](executeTrajectory) endpoint instead. Moves the motion group forward along a previously planned motion. Once started, you can stop a motion using the [stopExecution](stopExecution) endpoint. Prerequisites, before starting the motion execution: - The motion group is currently at the start point of the planned motion. OR - The motion was stopped using [stopExecution](stopExecution) endpoint. Then it is possible to resume the motion execution from where it stopped. OR - The motion group was moved onto the motion using the [streamMoveToTrajectoryViaJointP2P](streamMoveToTrajectoryViaJointP2P) endpoint.
|
|
@@ -12574,7 +12574,7 @@ const u1 = function(e) {
|
|
|
12574
12574
|
async streamMoveForward(r, a, n, o, s, i, l) {
|
|
12575
12575
|
var p, f;
|
|
12576
12576
|
const c = await t.streamMoveForward(r, a, n, o, s, i, l), d = (e == null ? void 0 : e.serverIndex) ?? 0, u = (f = (p = C["MotionApi.streamMoveForward"]) == null ? void 0 : p[d]) == null ? void 0 : f.url;
|
|
12577
|
-
return (
|
|
12577
|
+
return (g, h) => T(c, O, w, e)(g, u || h);
|
|
12578
12578
|
},
|
|
12579
12579
|
/**
|
|
12580
12580
|
* Request to move the motion group via joint point-to-point to a given location on a planned motion. You must use this endpoint in order to start moving from an arbritrary location of the trajectory. Afterwards, you are able to call [streamMoveForward](streamMoveForward) or [streamMoveBackward](streamMoveBackward) to move along planned motion. Use the [stopExecution](stopExecution) endpoint to stop the motion gracefully.
|
|
@@ -12593,9 +12593,9 @@ const u1 = function(e) {
|
|
|
12593
12593
|
* @throws {RequiredError}
|
|
12594
12594
|
*/
|
|
12595
12595
|
async streamMoveToTrajectoryViaJointPTP(r, a, n, o, s, i, l, c, d, u, p) {
|
|
12596
|
-
var x,
|
|
12597
|
-
const f = await t.streamMoveToTrajectoryViaJointPTP(r, a, n, o, s, i, l, c, d, u, p),
|
|
12598
|
-
return (
|
|
12596
|
+
var x, E;
|
|
12597
|
+
const f = await t.streamMoveToTrajectoryViaJointPTP(r, a, n, o, s, i, l, c, d, u, p), g = (e == null ? void 0 : e.serverIndex) ?? 0, h = (E = (x = C["MotionApi.streamMoveToTrajectoryViaJointPTP"]) == null ? void 0 : x[g]) == null ? void 0 : E.url;
|
|
12598
|
+
return (U, F) => T(f, O, w, e)(U, h || F);
|
|
12599
12599
|
}
|
|
12600
12600
|
};
|
|
12601
12601
|
};
|
|
@@ -13412,7 +13412,7 @@ const f1 = function(e) {
|
|
|
13412
13412
|
async streamMotionGroupState(r, a, n, o, s, i) {
|
|
13413
13413
|
var u, p;
|
|
13414
13414
|
const l = await t.streamMotionGroupState(r, a, n, o, s, i), c = (e == null ? void 0 : e.serverIndex) ?? 0, d = (p = (u = C["MotionGroupInfosApi.streamMotionGroupState"]) == null ? void 0 : u[c]) == null ? void 0 : p.url;
|
|
13415
|
-
return (f,
|
|
13415
|
+
return (f, g) => T(l, O, w, e)(f, d || g);
|
|
13416
13416
|
}
|
|
13417
13417
|
};
|
|
13418
13418
|
};
|
|
@@ -16062,8 +16062,8 @@ const M1 = function(e) {
|
|
|
16062
16062
|
e && (d = e.baseOptions);
|
|
16063
16063
|
const u = { method: "PUT", ...d, ...i }, p = {}, f = {};
|
|
16064
16064
|
V(u, e), await R(p, e), n !== void 0 && (f.bool = n), o !== void 0 && (f.integer = o), s !== void 0 && (f.double = s), _(c, f);
|
|
16065
|
-
let
|
|
16066
|
-
return u.headers = { ...p, ...
|
|
16065
|
+
let g = d && d.headers ? d.headers : {};
|
|
16066
|
+
return u.headers = { ...p, ...g, ...i.headers }, {
|
|
16067
16067
|
url: A(c),
|
|
16068
16068
|
options: u
|
|
16069
16069
|
};
|
|
@@ -16156,7 +16156,7 @@ const M1 = function(e) {
|
|
|
16156
16156
|
async setVirtualRobotIOValue(r, a, n, o, s, i, l) {
|
|
16157
16157
|
var p, f;
|
|
16158
16158
|
const c = await t.setVirtualRobotIOValue(r, a, n, o, s, i, l), d = (e == null ? void 0 : e.serverIndex) ?? 0, u = (f = (p = C["VirtualRobotApi.setVirtualRobotIOValue"]) == null ? void 0 : p[d]) == null ? void 0 : f.url;
|
|
16159
|
-
return (
|
|
16159
|
+
return (g, h) => T(c, O, w, e)(g, u || h);
|
|
16160
16160
|
}
|
|
16161
16161
|
};
|
|
16162
16162
|
};
|
|
@@ -17132,26 +17132,26 @@ class N1 {
|
|
|
17132
17132
|
*/
|
|
17133
17133
|
static slerpFlat(t, r, a, n, o, s, i) {
|
|
17134
17134
|
let l = a[n + 0], c = a[n + 1], d = a[n + 2], u = a[n + 3];
|
|
17135
|
-
const p = o[s + 0], f = o[s + 1],
|
|
17135
|
+
const p = o[s + 0], f = o[s + 1], g = o[s + 2], h = o[s + 3];
|
|
17136
17136
|
if (i === 0) {
|
|
17137
17137
|
t[r + 0] = l, t[r + 1] = c, t[r + 2] = d, t[r + 3] = u;
|
|
17138
17138
|
return;
|
|
17139
17139
|
}
|
|
17140
17140
|
if (i === 1) {
|
|
17141
|
-
t[r + 0] = p, t[r + 1] = f, t[r + 2] =
|
|
17141
|
+
t[r + 0] = p, t[r + 1] = f, t[r + 2] = g, t[r + 3] = h;
|
|
17142
17142
|
return;
|
|
17143
17143
|
}
|
|
17144
|
-
if (u !== h || l !== p || c !== f || d !==
|
|
17144
|
+
if (u !== h || l !== p || c !== f || d !== g) {
|
|
17145
17145
|
let x = 1 - i;
|
|
17146
|
-
const
|
|
17146
|
+
const E = l * p + c * f + d * g + u * h, U = E >= 0 ? 1 : -1, F = 1 - E * E;
|
|
17147
17147
|
if (F > Number.EPSILON) {
|
|
17148
|
-
const
|
|
17149
|
-
x = Math.sin(x * W) /
|
|
17148
|
+
const G = Math.sqrt(F), W = Math.atan2(G, E * U);
|
|
17149
|
+
x = Math.sin(x * W) / G, i = Math.sin(i * W) / G;
|
|
17150
17150
|
}
|
|
17151
|
-
const N = i *
|
|
17152
|
-
if (l = l * x + p * N, c = c * x + f * N, d = d * x +
|
|
17153
|
-
const
|
|
17154
|
-
l *=
|
|
17151
|
+
const N = i * U;
|
|
17152
|
+
if (l = l * x + p * N, c = c * x + f * N, d = d * x + g * N, u = u * x + h * N, x === 1 - i) {
|
|
17153
|
+
const G = 1 / Math.sqrt(l * l + c * c + d * d + u * u);
|
|
17154
|
+
l *= G, c *= G, d *= G, u *= G;
|
|
17155
17155
|
}
|
|
17156
17156
|
}
|
|
17157
17157
|
t[r] = l, t[r + 1] = c, t[r + 2] = d, t[r + 3] = u;
|
|
@@ -17170,8 +17170,8 @@ class N1 {
|
|
|
17170
17170
|
* @see {@link Quaternion#multiplyQuaternions}.
|
|
17171
17171
|
*/
|
|
17172
17172
|
static multiplyQuaternionsFlat(t, r, a, n, o, s) {
|
|
17173
|
-
const i = a[n], l = a[n + 1], c = a[n + 2], d = a[n + 3], u = o[s], p = o[s + 1], f = o[s + 2],
|
|
17174
|
-
return t[r] = i *
|
|
17173
|
+
const i = a[n], l = a[n + 1], c = a[n + 2], d = a[n + 3], u = o[s], p = o[s + 1], f = o[s + 2], g = o[s + 3];
|
|
17174
|
+
return t[r] = i * g + d * u + l * f - c * p, t[r + 1] = l * g + d * p + c * u - i * f, t[r + 2] = c * g + d * f + i * p - l * u, t[r + 3] = d * g - i * u - l * p - c * f, t;
|
|
17175
17175
|
}
|
|
17176
17176
|
/**
|
|
17177
17177
|
* The x value of this quaternion.
|
|
@@ -17259,25 +17259,25 @@ class N1 {
|
|
|
17259
17259
|
* @return {Quaternion} A reference to this quaternion.
|
|
17260
17260
|
*/
|
|
17261
17261
|
setFromEuler(t, r = !0) {
|
|
17262
|
-
const a = t._x, n = t._y, o = t._z, s = t._order, i = Math.cos, l = Math.sin, c = i(a / 2), d = i(n / 2), u = i(o / 2), p = l(a / 2), f = l(n / 2),
|
|
17262
|
+
const a = t._x, n = t._y, o = t._z, s = t._order, i = Math.cos, l = Math.sin, c = i(a / 2), d = i(n / 2), u = i(o / 2), p = l(a / 2), f = l(n / 2), g = l(o / 2);
|
|
17263
17263
|
switch (s) {
|
|
17264
17264
|
case "XYZ":
|
|
17265
|
-
this._x = p * d * u + c * f *
|
|
17265
|
+
this._x = p * d * u + c * f * g, this._y = c * f * u - p * d * g, this._z = c * d * g + p * f * u, this._w = c * d * u - p * f * g;
|
|
17266
17266
|
break;
|
|
17267
17267
|
case "YXZ":
|
|
17268
|
-
this._x = p * d * u + c * f *
|
|
17268
|
+
this._x = p * d * u + c * f * g, this._y = c * f * u - p * d * g, this._z = c * d * g - p * f * u, this._w = c * d * u + p * f * g;
|
|
17269
17269
|
break;
|
|
17270
17270
|
case "ZXY":
|
|
17271
|
-
this._x = p * d * u - c * f *
|
|
17271
|
+
this._x = p * d * u - c * f * g, this._y = c * f * u + p * d * g, this._z = c * d * g + p * f * u, this._w = c * d * u - p * f * g;
|
|
17272
17272
|
break;
|
|
17273
17273
|
case "ZYX":
|
|
17274
|
-
this._x = p * d * u - c * f *
|
|
17274
|
+
this._x = p * d * u - c * f * g, this._y = c * f * u + p * d * g, this._z = c * d * g - p * f * u, this._w = c * d * u + p * f * g;
|
|
17275
17275
|
break;
|
|
17276
17276
|
case "YZX":
|
|
17277
|
-
this._x = p * d * u + c * f *
|
|
17277
|
+
this._x = p * d * u + c * f * g, this._y = c * f * u + p * d * g, this._z = c * d * g - p * f * u, this._w = c * d * u - p * f * g;
|
|
17278
17278
|
break;
|
|
17279
17279
|
case "XZY":
|
|
17280
|
-
this._x = p * d * u - c * f *
|
|
17280
|
+
this._x = p * d * u - c * f * g, this._y = c * f * u - p * d * g, this._z = c * d * g + p * f * u, this._w = c * d * u + p * f * g;
|
|
17281
17281
|
break;
|
|
17282
17282
|
default:
|
|
17283
17283
|
console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: " + s);
|
|
@@ -18345,7 +18345,7 @@ var vt = {}, hl;
|
|
|
18345
18345
|
function z1() {
|
|
18346
18346
|
if (hl) return vt;
|
|
18347
18347
|
hl = 1, Object.defineProperty(vt, "__esModule", { value: !0 }), vt.TokenData = void 0, vt.parse = u, vt.compile = p, vt.match = h, vt.pathToRegexp = x, vt.stringify = N;
|
|
18348
|
-
const e = "/", t = (
|
|
18348
|
+
const e = "/", t = (j) => j, r = /^[$_\p{ID_Start}]$/u, a = /^[$\u200c\u200d\p{ID_Continue}]$/u, n = "https://git.new/pathToRegexpError", o = {
|
|
18349
18349
|
// Groups.
|
|
18350
18350
|
"{": "{",
|
|
18351
18351
|
"}": "}",
|
|
@@ -18358,97 +18358,97 @@ function z1() {
|
|
|
18358
18358
|
"?": "?",
|
|
18359
18359
|
"!": "!"
|
|
18360
18360
|
};
|
|
18361
|
-
function s(
|
|
18362
|
-
return
|
|
18361
|
+
function s(j) {
|
|
18362
|
+
return j.replace(/[{}()\[\]+?!:*]/g, "\\$&");
|
|
18363
18363
|
}
|
|
18364
|
-
function i(
|
|
18365
|
-
return
|
|
18364
|
+
function i(j) {
|
|
18365
|
+
return j.replace(/[.+*?^${}()[\]|/\\]/g, "\\$&");
|
|
18366
18366
|
}
|
|
18367
|
-
function* l(
|
|
18368
|
-
const
|
|
18369
|
-
let
|
|
18370
|
-
function
|
|
18367
|
+
function* l(j) {
|
|
18368
|
+
const L = [...j];
|
|
18369
|
+
let k = 0;
|
|
18370
|
+
function y() {
|
|
18371
18371
|
let M = "";
|
|
18372
|
-
if (r.test(
|
|
18373
|
-
for (M +=
|
|
18374
|
-
M +=
|
|
18375
|
-
else if (
|
|
18376
|
-
let B =
|
|
18377
|
-
for (;
|
|
18378
|
-
if (
|
|
18379
|
-
|
|
18372
|
+
if (r.test(L[++k]))
|
|
18373
|
+
for (M += L[k]; a.test(L[++k]); )
|
|
18374
|
+
M += L[k];
|
|
18375
|
+
else if (L[k] === '"') {
|
|
18376
|
+
let B = k;
|
|
18377
|
+
for (; k < L.length; ) {
|
|
18378
|
+
if (L[++k] === '"') {
|
|
18379
|
+
k++, B = 0;
|
|
18380
18380
|
break;
|
|
18381
18381
|
}
|
|
18382
|
-
|
|
18382
|
+
L[k] === "\\" ? M += L[++k] : M += L[k];
|
|
18383
18383
|
}
|
|
18384
18384
|
if (B)
|
|
18385
18385
|
throw new TypeError(`Unterminated quote at ${B}: ${n}`);
|
|
18386
18386
|
}
|
|
18387
18387
|
if (!M)
|
|
18388
|
-
throw new TypeError(`Missing parameter name at ${
|
|
18388
|
+
throw new TypeError(`Missing parameter name at ${k}: ${n}`);
|
|
18389
18389
|
return M;
|
|
18390
18390
|
}
|
|
18391
|
-
for (;
|
|
18392
|
-
const M =
|
|
18391
|
+
for (; k < L.length; ) {
|
|
18392
|
+
const M = L[k], B = o[M];
|
|
18393
18393
|
if (B)
|
|
18394
|
-
yield { type: B, index:
|
|
18394
|
+
yield { type: B, index: k++, value: M };
|
|
18395
18395
|
else if (M === "\\")
|
|
18396
|
-
yield { type: "ESCAPED", index:
|
|
18396
|
+
yield { type: "ESCAPED", index: k++, value: L[k++] };
|
|
18397
18397
|
else if (M === ":") {
|
|
18398
|
-
const
|
|
18399
|
-
yield { type: "PARAM", index:
|
|
18398
|
+
const z = y();
|
|
18399
|
+
yield { type: "PARAM", index: k, value: z };
|
|
18400
18400
|
} else if (M === "*") {
|
|
18401
|
-
const
|
|
18402
|
-
yield { type: "WILDCARD", index:
|
|
18401
|
+
const z = y();
|
|
18402
|
+
yield { type: "WILDCARD", index: k, value: z };
|
|
18403
18403
|
} else
|
|
18404
|
-
yield { type: "CHAR", index:
|
|
18404
|
+
yield { type: "CHAR", index: k, value: L[k++] };
|
|
18405
18405
|
}
|
|
18406
|
-
return { type: "END", index:
|
|
18406
|
+
return { type: "END", index: k, value: "" };
|
|
18407
18407
|
}
|
|
18408
18408
|
class c {
|
|
18409
|
-
constructor(
|
|
18410
|
-
this.tokens =
|
|
18409
|
+
constructor(L) {
|
|
18410
|
+
this.tokens = L;
|
|
18411
18411
|
}
|
|
18412
18412
|
peek() {
|
|
18413
18413
|
if (!this._peek) {
|
|
18414
|
-
const
|
|
18415
|
-
this._peek =
|
|
18414
|
+
const L = this.tokens.next();
|
|
18415
|
+
this._peek = L.value;
|
|
18416
18416
|
}
|
|
18417
18417
|
return this._peek;
|
|
18418
18418
|
}
|
|
18419
|
-
tryConsume(
|
|
18420
|
-
const
|
|
18421
|
-
if (
|
|
18422
|
-
return this._peek = void 0,
|
|
18419
|
+
tryConsume(L) {
|
|
18420
|
+
const k = this.peek();
|
|
18421
|
+
if (k.type === L)
|
|
18422
|
+
return this._peek = void 0, k.value;
|
|
18423
18423
|
}
|
|
18424
|
-
consume(
|
|
18425
|
-
const
|
|
18426
|
-
if (
|
|
18427
|
-
return
|
|
18428
|
-
const { type:
|
|
18429
|
-
throw new TypeError(`Unexpected ${
|
|
18424
|
+
consume(L) {
|
|
18425
|
+
const k = this.tryConsume(L);
|
|
18426
|
+
if (k !== void 0)
|
|
18427
|
+
return k;
|
|
18428
|
+
const { type: y, index: M } = this.peek();
|
|
18429
|
+
throw new TypeError(`Unexpected ${y} at ${M}, expected ${L}: ${n}`);
|
|
18430
18430
|
}
|
|
18431
18431
|
text() {
|
|
18432
|
-
let
|
|
18433
|
-
for (;
|
|
18434
|
-
|
|
18435
|
-
return
|
|
18432
|
+
let L = "", k;
|
|
18433
|
+
for (; k = this.tryConsume("CHAR") || this.tryConsume("ESCAPED"); )
|
|
18434
|
+
L += k;
|
|
18435
|
+
return L;
|
|
18436
18436
|
}
|
|
18437
18437
|
}
|
|
18438
18438
|
class d {
|
|
18439
|
-
constructor(
|
|
18440
|
-
this.tokens =
|
|
18439
|
+
constructor(L) {
|
|
18440
|
+
this.tokens = L;
|
|
18441
18441
|
}
|
|
18442
18442
|
}
|
|
18443
18443
|
vt.TokenData = d;
|
|
18444
|
-
function u(
|
|
18445
|
-
const { encodePath:
|
|
18446
|
-
function M(
|
|
18444
|
+
function u(j, L = {}) {
|
|
18445
|
+
const { encodePath: k = t } = L, y = new c(l(j));
|
|
18446
|
+
function M(z) {
|
|
18447
18447
|
const D = [];
|
|
18448
18448
|
for (; ; ) {
|
|
18449
|
-
const te =
|
|
18450
|
-
te && D.push({ type: "text", value:
|
|
18451
|
-
const X =
|
|
18449
|
+
const te = y.text();
|
|
18450
|
+
te && D.push({ type: "text", value: k(te) });
|
|
18451
|
+
const X = y.tryConsume("PARAM");
|
|
18452
18452
|
if (X) {
|
|
18453
18453
|
D.push({
|
|
18454
18454
|
type: "param",
|
|
@@ -18456,7 +18456,7 @@ function z1() {
|
|
|
18456
18456
|
});
|
|
18457
18457
|
continue;
|
|
18458
18458
|
}
|
|
18459
|
-
const Se =
|
|
18459
|
+
const Se = y.tryConsume("WILDCARD");
|
|
18460
18460
|
if (Se) {
|
|
18461
18461
|
D.push({
|
|
18462
18462
|
type: "wildcard",
|
|
@@ -18464,21 +18464,21 @@ function z1() {
|
|
|
18464
18464
|
});
|
|
18465
18465
|
continue;
|
|
18466
18466
|
}
|
|
18467
|
-
if (
|
|
18467
|
+
if (y.tryConsume("{")) {
|
|
18468
18468
|
D.push({
|
|
18469
18469
|
type: "group",
|
|
18470
18470
|
tokens: M("}")
|
|
18471
18471
|
});
|
|
18472
18472
|
continue;
|
|
18473
18473
|
}
|
|
18474
|
-
return
|
|
18474
|
+
return y.consume(z), D;
|
|
18475
18475
|
}
|
|
18476
18476
|
}
|
|
18477
18477
|
const B = M("END");
|
|
18478
18478
|
return new d(B);
|
|
18479
18479
|
}
|
|
18480
|
-
function p(
|
|
18481
|
-
const { encode:
|
|
18480
|
+
function p(j, L = {}) {
|
|
18481
|
+
const { encode: k = encodeURIComponent, delimiter: y = e } = L, M = j instanceof d ? j : u(j, L), B = f(M.tokens, y, k);
|
|
18482
18482
|
return function(D = {}) {
|
|
18483
18483
|
const [te, ...X] = B(D);
|
|
18484
18484
|
if (X.length)
|
|
@@ -18486,52 +18486,52 @@ function z1() {
|
|
|
18486
18486
|
return te;
|
|
18487
18487
|
};
|
|
18488
18488
|
}
|
|
18489
|
-
function f(
|
|
18490
|
-
const
|
|
18489
|
+
function f(j, L, k) {
|
|
18490
|
+
const y = j.map((M) => g(M, L, k));
|
|
18491
18491
|
return (M) => {
|
|
18492
18492
|
const B = [""];
|
|
18493
|
-
for (const
|
|
18494
|
-
const [D, ...te] =
|
|
18493
|
+
for (const z of y) {
|
|
18494
|
+
const [D, ...te] = z(M);
|
|
18495
18495
|
B[0] += D, B.push(...te);
|
|
18496
18496
|
}
|
|
18497
18497
|
return B;
|
|
18498
18498
|
};
|
|
18499
18499
|
}
|
|
18500
|
-
function
|
|
18501
|
-
if (
|
|
18502
|
-
return () => [
|
|
18503
|
-
if (
|
|
18504
|
-
const M = f(
|
|
18500
|
+
function g(j, L, k) {
|
|
18501
|
+
if (j.type === "text")
|
|
18502
|
+
return () => [j.value];
|
|
18503
|
+
if (j.type === "group") {
|
|
18504
|
+
const M = f(j.tokens, L, k);
|
|
18505
18505
|
return (B) => {
|
|
18506
|
-
const [
|
|
18507
|
-
return D.length ? [""] : [
|
|
18506
|
+
const [z, ...D] = M(B);
|
|
18507
|
+
return D.length ? [""] : [z];
|
|
18508
18508
|
};
|
|
18509
18509
|
}
|
|
18510
|
-
const
|
|
18511
|
-
return
|
|
18512
|
-
const B = M[
|
|
18510
|
+
const y = k || t;
|
|
18511
|
+
return j.type === "wildcard" && k !== !1 ? (M) => {
|
|
18512
|
+
const B = M[j.name];
|
|
18513
18513
|
if (B == null)
|
|
18514
|
-
return ["",
|
|
18514
|
+
return ["", j.name];
|
|
18515
18515
|
if (!Array.isArray(B) || B.length === 0)
|
|
18516
|
-
throw new TypeError(`Expected "${
|
|
18516
|
+
throw new TypeError(`Expected "${j.name}" to be a non-empty array`);
|
|
18517
18517
|
return [
|
|
18518
|
-
B.map((
|
|
18519
|
-
if (typeof
|
|
18520
|
-
throw new TypeError(`Expected "${
|
|
18521
|
-
return
|
|
18522
|
-
}).join(
|
|
18518
|
+
B.map((z, D) => {
|
|
18519
|
+
if (typeof z != "string")
|
|
18520
|
+
throw new TypeError(`Expected "${j.name}/${D}" to be a string`);
|
|
18521
|
+
return y(z);
|
|
18522
|
+
}).join(L)
|
|
18523
18523
|
];
|
|
18524
18524
|
} : (M) => {
|
|
18525
|
-
const B = M[
|
|
18525
|
+
const B = M[j.name];
|
|
18526
18526
|
if (B == null)
|
|
18527
|
-
return ["",
|
|
18527
|
+
return ["", j.name];
|
|
18528
18528
|
if (typeof B != "string")
|
|
18529
|
-
throw new TypeError(`Expected "${
|
|
18530
|
-
return [
|
|
18529
|
+
throw new TypeError(`Expected "${j.name}" to be a string`);
|
|
18530
|
+
return [y(B)];
|
|
18531
18531
|
};
|
|
18532
18532
|
}
|
|
18533
|
-
function h(
|
|
18534
|
-
const { decode:
|
|
18533
|
+
function h(j, L = {}) {
|
|
18534
|
+
const { decode: k = decodeURIComponent, delimiter: y = e } = L, { regexp: M, keys: B } = x(j, L), z = B.map((D) => k === !1 ? t : D.type === "param" ? k : (te) => te.split(y).map(k));
|
|
18535
18535
|
return function(te) {
|
|
18536
18536
|
const X = M.exec(te);
|
|
18537
18537
|
if (!X)
|
|
@@ -18540,74 +18540,74 @@ function z1() {
|
|
|
18540
18540
|
for (let ie = 1; ie < X.length; ie++) {
|
|
18541
18541
|
if (X[ie] === void 0)
|
|
18542
18542
|
continue;
|
|
18543
|
-
const he = B[ie - 1], se =
|
|
18543
|
+
const he = B[ie - 1], se = z[ie - 1];
|
|
18544
18544
|
Y[he.name] = se(X[ie]);
|
|
18545
18545
|
}
|
|
18546
18546
|
return { path: Se, params: Y };
|
|
18547
18547
|
};
|
|
18548
18548
|
}
|
|
18549
|
-
function x(
|
|
18550
|
-
const { delimiter:
|
|
18549
|
+
function x(j, L = {}) {
|
|
18550
|
+
const { delimiter: k = e, end: y = !0, sensitive: M = !1, trailing: B = !0 } = L, z = [], D = [], te = M ? "" : "i", Se = (Array.isArray(j) ? j : [j]).map((he) => he instanceof d ? he : u(he, L));
|
|
18551
18551
|
for (const { tokens: he } of Se)
|
|
18552
|
-
for (const se of
|
|
18553
|
-
const Ge =
|
|
18552
|
+
for (const se of E(he, 0, [])) {
|
|
18553
|
+
const Ge = U(se, k, z);
|
|
18554
18554
|
D.push(Ge);
|
|
18555
18555
|
}
|
|
18556
18556
|
let Y = `^(?:${D.join("|")})`;
|
|
18557
|
-
return B && (Y += `(?:${i(
|
|
18558
|
-
}
|
|
18559
|
-
function*
|
|
18560
|
-
if (
|
|
18561
|
-
return yield
|
|
18562
|
-
const
|
|
18563
|
-
if (
|
|
18564
|
-
const M =
|
|
18565
|
-
for (const B of
|
|
18566
|
-
yield*
|
|
18557
|
+
return B && (Y += `(?:${i(k)}$)?`), Y += y ? "$" : `(?=${i(k)}|$)`, { regexp: new RegExp(Y, te), keys: z };
|
|
18558
|
+
}
|
|
18559
|
+
function* E(j, L, k) {
|
|
18560
|
+
if (L === j.length)
|
|
18561
|
+
return yield k;
|
|
18562
|
+
const y = j[L];
|
|
18563
|
+
if (y.type === "group") {
|
|
18564
|
+
const M = k.slice();
|
|
18565
|
+
for (const B of E(y.tokens, 0, M))
|
|
18566
|
+
yield* E(j, L + 1, B);
|
|
18567
18567
|
} else
|
|
18568
|
-
|
|
18569
|
-
yield*
|
|
18568
|
+
k.push(y);
|
|
18569
|
+
yield* E(j, L + 1, k);
|
|
18570
18570
|
}
|
|
18571
|
-
function
|
|
18572
|
-
let
|
|
18573
|
-
for (let
|
|
18574
|
-
const D =
|
|
18571
|
+
function U(j, L, k) {
|
|
18572
|
+
let y = "", M = "", B = !0;
|
|
18573
|
+
for (let z = 0; z < j.length; z++) {
|
|
18574
|
+
const D = j[z];
|
|
18575
18575
|
if (D.type === "text") {
|
|
18576
|
-
|
|
18576
|
+
y += i(D.value), M += D.value, B || (B = D.value.includes(L));
|
|
18577
18577
|
continue;
|
|
18578
18578
|
}
|
|
18579
18579
|
if (D.type === "param" || D.type === "wildcard") {
|
|
18580
18580
|
if (!B && !M)
|
|
18581
18581
|
throw new TypeError(`Missing text after "${D.name}": ${n}`);
|
|
18582
|
-
D.type === "param" ?
|
|
18582
|
+
D.type === "param" ? y += `(${F(L, B ? "" : M)}+)` : y += "([\\s\\S]+)", k.push(D), M = "", B = !1;
|
|
18583
18583
|
continue;
|
|
18584
18584
|
}
|
|
18585
18585
|
}
|
|
18586
|
-
return
|
|
18587
|
-
}
|
|
18588
|
-
function F(
|
|
18589
|
-
return
|
|
18590
|
-
}
|
|
18591
|
-
function N(
|
|
18592
|
-
return
|
|
18593
|
-
if (
|
|
18594
|
-
return s(
|
|
18595
|
-
if (
|
|
18596
|
-
return `{${
|
|
18597
|
-
const
|
|
18598
|
-
if (
|
|
18599
|
-
return `:${
|
|
18600
|
-
if (
|
|
18601
|
-
return `*${
|
|
18602
|
-
throw new TypeError(`Unexpected token: ${
|
|
18586
|
+
return y;
|
|
18587
|
+
}
|
|
18588
|
+
function F(j, L) {
|
|
18589
|
+
return L.length < 2 ? j.length < 2 ? `[^${i(j + L)}]` : `(?:(?!${i(j)})[^${i(L)}])` : j.length < 2 ? `(?:(?!${i(L)})[^${i(j)}])` : `(?:(?!${i(L)}|${i(j)})[\\s\\S])`;
|
|
18590
|
+
}
|
|
18591
|
+
function N(j) {
|
|
18592
|
+
return j.tokens.map(function L(k, y, M) {
|
|
18593
|
+
if (k.type === "text")
|
|
18594
|
+
return s(k.value);
|
|
18595
|
+
if (k.type === "group")
|
|
18596
|
+
return `{${k.tokens.map(L).join("")}}`;
|
|
18597
|
+
const z = G(k.name) && W(M[y + 1]) ? k.name : JSON.stringify(k.name);
|
|
18598
|
+
if (k.type === "param")
|
|
18599
|
+
return `:${z}`;
|
|
18600
|
+
if (k.type === "wildcard")
|
|
18601
|
+
return `*${z}`;
|
|
18602
|
+
throw new TypeError(`Unexpected token: ${k}`);
|
|
18603
18603
|
}).join("");
|
|
18604
18604
|
}
|
|
18605
|
-
function
|
|
18606
|
-
const [
|
|
18607
|
-
return r.test(
|
|
18605
|
+
function G(j) {
|
|
18606
|
+
const [L, ...k] = j;
|
|
18607
|
+
return r.test(L) ? k.every((y) => a.test(y)) : !1;
|
|
18608
18608
|
}
|
|
18609
|
-
function W(
|
|
18610
|
-
return (
|
|
18609
|
+
function W(j) {
|
|
18610
|
+
return (j == null ? void 0 : j.type) !== "text" ? !0 : !a.test(j.value[0]);
|
|
18611
18611
|
}
|
|
18612
18612
|
return vt;
|
|
18613
18613
|
}
|
|
@@ -18631,14 +18631,14 @@ function ld(e, t, r) {
|
|
|
18631
18631
|
var ml = 1e-4, J1 = class cd {
|
|
18632
18632
|
constructor(t, r, a, n, o, s, i, l, c, d, u, p) {
|
|
18633
18633
|
this.nova = t, this.controller = r, this.motionGroup = a, this.initialMotionState = n, this.motionStateSocket = o, this.isVirtual = s, this.tcps = i, this.motionGroupSpecification = l, this.safetySetup = c, this.mounting = d, this.initialControllerState = u, this.controllerStateSocket = p, this.connectedJoggingCartesianSocket = null, this.connectedJoggingJointsSocket = null, this.joggingVelocity = 10, this.activationState = "inactive", this.rapidlyChangingMotionState = n, this.controllerState = u, p.addEventListener("message", (f) => {
|
|
18634
|
-
var
|
|
18635
|
-
const h = (
|
|
18634
|
+
var g;
|
|
18635
|
+
const h = (g = Kt(f.data)) == null ? void 0 : g.result;
|
|
18636
18636
|
h && tt(() => {
|
|
18637
18637
|
this.controllerState = h;
|
|
18638
18638
|
});
|
|
18639
18639
|
}), o.addEventListener("message", (f) => {
|
|
18640
|
-
var
|
|
18641
|
-
const h = (
|
|
18640
|
+
var g;
|
|
18641
|
+
const h = (g = Kt(f.data)) == null ? void 0 : g.result;
|
|
18642
18642
|
if (!h)
|
|
18643
18643
|
throw new Error(
|
|
18644
18644
|
`Failed to get motion state for ${this.motionGroupId}: ${f.data}`
|
|
@@ -18680,7 +18680,7 @@ var ml = 1e-4, J1 = class cd {
|
|
|
18680
18680
|
`,
|
|
18681
18681
|
p
|
|
18682
18682
|
);
|
|
18683
|
-
const
|
|
18683
|
+
const g = (yield t.api.controller.getRobotController(
|
|
18684
18684
|
l.controller
|
|
18685
18685
|
)).configuration.kind === "VirtualController", h = yield Oe(this, null, function* () {
|
|
18686
18686
|
try {
|
|
@@ -18695,29 +18695,29 @@ var ml = 1e-4, J1 = class cd {
|
|
|
18695
18695
|
}
|
|
18696
18696
|
}), x = t.openReconnectingWebsocket(
|
|
18697
18697
|
`/controllers/${l.controller}/state-stream?response_rate=1000`
|
|
18698
|
-
),
|
|
18699
|
-
if (!
|
|
18698
|
+
), E = yield x.firstMessage(), U = (o = Kt(E.data)) == null ? void 0 : o.result;
|
|
18699
|
+
if (!U)
|
|
18700
18700
|
throw new Error(
|
|
18701
|
-
`Unable to parse initial controller state message ${
|
|
18701
|
+
`Unable to parse initial controller state message ${E.data}`
|
|
18702
18702
|
);
|
|
18703
18703
|
console.log(
|
|
18704
18704
|
`Connected controller state websocket to controller ${l.controller}. Initial state:
|
|
18705
18705
|
`,
|
|
18706
|
-
|
|
18706
|
+
U
|
|
18707
18707
|
);
|
|
18708
|
-
const { tcps: F } = yield t.api.motionGroupInfos.listTcps(r), N = yield t.api.motionGroupInfos.getMotionGroupSpecification(r),
|
|
18708
|
+
const { tcps: F } = yield t.api.motionGroupInfos.listTcps(r), N = yield t.api.motionGroupInfos.getMotionGroupSpecification(r), G = yield t.api.motionGroupInfos.getSafetySetup(r);
|
|
18709
18709
|
return new cd(
|
|
18710
18710
|
t,
|
|
18711
18711
|
l,
|
|
18712
18712
|
c,
|
|
18713
18713
|
p,
|
|
18714
18714
|
d,
|
|
18715
|
-
|
|
18715
|
+
g,
|
|
18716
18716
|
F,
|
|
18717
18717
|
N,
|
|
18718
|
-
|
|
18718
|
+
G,
|
|
18719
18719
|
h,
|
|
18720
|
-
|
|
18720
|
+
U,
|
|
18721
18721
|
x
|
|
18722
18722
|
);
|
|
18723
18723
|
});
|
|
@@ -19039,11 +19039,11 @@ var ml = 1e-4, J1 = class cd {
|
|
|
19039
19039
|
r.orientation.x,
|
|
19040
19040
|
r.orientation.y,
|
|
19041
19041
|
r.orientation.z
|
|
19042
|
-
),
|
|
19043
|
-
|
|
19044
|
-
const
|
|
19042
|
+
), g = f.length(), h = f.clone().normalize(), x = l.distanceRads * (i === "-" ? -1 : 1), E = new qr(0, 0, 0);
|
|
19043
|
+
E[s] = 1;
|
|
19044
|
+
const U = Math.cos(0.5 * x) * Math.cos(0.5 * g), F = Math.sin(0.5 * x) * Math.sin(0.5 * g), N = Math.sin(0.5 * x) * Math.cos(0.5 * g), G = Math.cos(0.5 * x) * Math.sin(0.5 * g), W = E.dot(
|
|
19045
19045
|
h
|
|
19046
|
-
),
|
|
19046
|
+
), j = E.clone().cross(h), L = 2 * Math.acos(U - F * W), k = L / Math.sin(0.5 * L), y = new qr().addScaledVector(j, F).addScaledVector(E, N).addScaledVector(h, G).multiplyScalar(k);
|
|
19047
19047
|
d.push({
|
|
19048
19048
|
settings: {
|
|
19049
19049
|
limits_override: {
|
|
@@ -19052,7 +19052,7 @@ var ml = 1e-4, J1 = class cd {
|
|
|
19052
19052
|
},
|
|
19053
19053
|
line: {
|
|
19054
19054
|
position: r.position,
|
|
19055
|
-
orientation:
|
|
19055
|
+
orientation: y,
|
|
19056
19056
|
coordinate_system: n
|
|
19057
19057
|
}
|
|
19058
19058
|
});
|
|
@@ -20658,7 +20658,7 @@ function tx(e) {
|
|
|
20658
20658
|
return e instanceof ss && e.code === "ERR_NETWORK" ? "Failed to connect to the server. Please check your internet connection." : e instanceof ss && e.response ? `${(t = e.response) == null ? void 0 : t.status} ${(r = e.response) == null ? void 0 : r.statusText} from ${(a = e.response) == null ? void 0 : a.config.url}: ${JSON.stringify((n = e.response) == null ? void 0 : n.data)}` : e instanceof Error ? e.message : `Unexpected error: ${Z1(e) || e}`;
|
|
20659
20659
|
}
|
|
20660
20660
|
const pd = (e) => {
|
|
20661
|
-
const t = e.softTimeout || 3e3, [r, a] = gr(!1), n =
|
|
20661
|
+
const t = e.softTimeout || 3e3, [r, a] = gr(!1), n = nt();
|
|
20662
20662
|
return Yt(() => {
|
|
20663
20663
|
const o = setTimeout(() => {
|
|
20664
20664
|
a(!0);
|
|
@@ -20696,7 +20696,7 @@ const pd = (e) => {
|
|
|
20696
20696
|
}
|
|
20697
20697
|
);
|
|
20698
20698
|
}, rx = (e) => {
|
|
20699
|
-
const t = tx(e.error), r = e.error instanceof Error ? e.error.stack : null, a =
|
|
20699
|
+
const t = tx(e.error), r = e.error instanceof Error ? e.error.stack : null, a = nt();
|
|
20700
20700
|
return /* @__PURE__ */ b.jsxs(
|
|
20701
20701
|
Ve,
|
|
20702
20702
|
{
|
|
@@ -20969,9 +20969,9 @@ function fd(e, t, r, a, n, o) {
|
|
|
20969
20969
|
return c == t && d == e;
|
|
20970
20970
|
var u = -1, p = !0, f = r & cO ? new Bn() : void 0;
|
|
20971
20971
|
for (o.set(e, t), o.set(t, e); ++u < i; ) {
|
|
20972
|
-
var
|
|
20972
|
+
var g = e[u], h = t[u];
|
|
20973
20973
|
if (a)
|
|
20974
|
-
var x = s ? a(h,
|
|
20974
|
+
var x = s ? a(h, g, u, t, e, o) : a(g, h, u, e, t, o);
|
|
20975
20975
|
if (x !== void 0) {
|
|
20976
20976
|
if (x)
|
|
20977
20977
|
continue;
|
|
@@ -20979,14 +20979,14 @@ function fd(e, t, r, a, n, o) {
|
|
|
20979
20979
|
break;
|
|
20980
20980
|
}
|
|
20981
20981
|
if (f) {
|
|
20982
|
-
if (!sO(t, function(
|
|
20983
|
-
if (!iO(f,
|
|
20984
|
-
return f.push(
|
|
20982
|
+
if (!sO(t, function(E, U) {
|
|
20983
|
+
if (!iO(f, U) && (g === E || n(g, E, r, a, o)))
|
|
20984
|
+
return f.push(U);
|
|
20985
20985
|
})) {
|
|
20986
20986
|
p = !1;
|
|
20987
20987
|
break;
|
|
20988
20988
|
}
|
|
20989
|
-
} else if (!(
|
|
20989
|
+
} else if (!(g === h || n(g, h, r, a, o))) {
|
|
20990
20990
|
p = !1;
|
|
20991
20991
|
break;
|
|
20992
20992
|
}
|
|
@@ -21159,25 +21159,25 @@ function Aw(e, t, r, a, n, o) {
|
|
|
21159
21159
|
if (!(s ? p in t : _w.call(t, p)))
|
|
21160
21160
|
return !1;
|
|
21161
21161
|
}
|
|
21162
|
-
var f = o.get(e),
|
|
21163
|
-
if (f &&
|
|
21164
|
-
return f == t &&
|
|
21162
|
+
var f = o.get(e), g = o.get(t);
|
|
21163
|
+
if (f && g)
|
|
21164
|
+
return f == t && g == e;
|
|
21165
21165
|
var h = !0;
|
|
21166
21166
|
o.set(e, t), o.set(t, e);
|
|
21167
21167
|
for (var x = s; ++u < l; ) {
|
|
21168
21168
|
p = i[u];
|
|
21169
|
-
var
|
|
21169
|
+
var E = e[p], U = t[p];
|
|
21170
21170
|
if (a)
|
|
21171
|
-
var F = s ? a(
|
|
21172
|
-
if (!(F === void 0 ?
|
|
21171
|
+
var F = s ? a(U, E, p, t, e, o) : a(E, U, p, e, t, o);
|
|
21172
|
+
if (!(F === void 0 ? E === U || n(E, U, r, a, o) : F)) {
|
|
21173
21173
|
h = !1;
|
|
21174
21174
|
break;
|
|
21175
21175
|
}
|
|
21176
21176
|
x || (x = p == "constructor");
|
|
21177
21177
|
}
|
|
21178
21178
|
if (h && !x) {
|
|
21179
|
-
var N = e.constructor,
|
|
21180
|
-
N !=
|
|
21179
|
+
var N = e.constructor, G = t.constructor;
|
|
21180
|
+
N != G && "constructor" in e && "constructor" in t && !(typeof N == "function" && N instanceof N && typeof G == "function" && G instanceof G) && (h = !1);
|
|
21181
21181
|
}
|
|
21182
21182
|
return o.delete(e), o.delete(t), h;
|
|
21183
21183
|
}
|
|
@@ -21212,9 +21212,9 @@ function kw(e, t, r, a, n, o) {
|
|
|
21212
21212
|
if (p && !d)
|
|
21213
21213
|
return o || (o = new $t()), s || xd(e) ? fd(e, t, r, a, n, o) : PO(e, t, l, r, a, n, o);
|
|
21214
21214
|
if (!(r & Uw)) {
|
|
21215
|
-
var f = d && Ml.call(e, "__wrapped__"),
|
|
21216
|
-
if (f ||
|
|
21217
|
-
var h = f ? e.value() : e, x =
|
|
21215
|
+
var f = d && Ml.call(e, "__wrapped__"), g = u && Ml.call(t, "__wrapped__");
|
|
21216
|
+
if (f || g) {
|
|
21217
|
+
var h = f ? e.value() : e, x = g ? t.value() : t;
|
|
21218
21218
|
return o || (o = new $t()), n(h, x, r, a, o);
|
|
21219
21219
|
}
|
|
21220
21220
|
}
|
|
@@ -21240,7 +21240,7 @@ const wd = ({
|
|
|
21240
21240
|
for (const [s, i] of r.entries())
|
|
21241
21241
|
i && o.push(s);
|
|
21242
21242
|
return /* @__PURE__ */ b.jsx(
|
|
21243
|
-
|
|
21243
|
+
He,
|
|
21244
21244
|
{
|
|
21245
21245
|
color: "error",
|
|
21246
21246
|
sx: {
|
|
@@ -21517,7 +21517,7 @@ const hs = [
|
|
|
21517
21517
|
class Ts {
|
|
21518
21518
|
constructor(t, r, a, n) {
|
|
21519
21519
|
var o, s;
|
|
21520
|
-
this.jogger = t, this.motionGroupSpec = r, this.coordSystems = a, this.tcps = n, this.selectedTabId = "cartesian", this.activationState = "inactive", this.activationError = null, this.activationCounter = 0, this.locks = /* @__PURE__ */ new Set(), this.selectedCoordSystemId = "world", this.selectedTcpId = "", this.selectedOrientation = "coordsys", this.selectedIncrementId = "continuous", this.selectedCartesianMotionType = "translate", this.incrementJogInProgress = null, this.translationVelocityMmPerSec = 10, this.rotationVelocityDegPerSec = 1, this.minTranslationVelocityMmPerSec = 5, this.maxTranslationVelocityMmPerSec = 250, this.minRotationVelocityDegPerSec = 1, this.maxRotationVelocityDegPerSec = 60, this.showCoordSystemSelect = !0, this.showTcpSelect = !0, this.showOrientationSelect = !0, this.showIncrementSelect = !0, this.showTabIcons = !1, this.showVelocitySliderLabel = !0, this.showVelocityLegend = !1, this.disposers = [];
|
|
21520
|
+
this.jogger = t, this.motionGroupSpec = r, this.coordSystems = a, this.tcps = n, this.selectedTabId = "cartesian", this.activationState = "inactive", this.activationError = null, this.activationCounter = 0, this.locks = /* @__PURE__ */ new Set(), this.selectedCoordSystemId = "world", this.selectedTcpId = "", this.selectedOrientation = "coordsys", this.selectedIncrementId = "continuous", this.selectedCartesianMotionType = "translate", this.incrementJogInProgress = null, this.translationVelocityMmPerSec = 10, this.rotationVelocityDegPerSec = 1, this.minTranslationVelocityMmPerSec = 5, this.maxTranslationVelocityMmPerSec = 250, this.minRotationVelocityDegPerSec = 1, this.maxRotationVelocityDegPerSec = 60, this.showCoordSystemSelect = !0, this.showTcpSelect = !0, this.showOrientationSelect = !0, this.showIncrementSelect = !0, this.showTabIcons = !1, this.showVelocitySliderLabel = !0, this.showVelocityLegend = !1, this.showJointsLegend = !1, this.disposers = [];
|
|
21521
21521
|
for (const i of a)
|
|
21522
21522
|
if (i.coordinate_system === "") {
|
|
21523
21523
|
i.coordinate_system = "world";
|
|
@@ -21956,13 +21956,13 @@ function $C(e) {
|
|
|
21956
21956
|
onChangeCommitted: u,
|
|
21957
21957
|
orientation: p = "horizontal",
|
|
21958
21958
|
rootRef: f,
|
|
21959
|
-
scale:
|
|
21959
|
+
scale: g = jC,
|
|
21960
21960
|
step: h = 1,
|
|
21961
21961
|
shiftStep: x = 10,
|
|
21962
|
-
tabIndex:
|
|
21963
|
-
value:
|
|
21964
|
-
} = e, F = J.useRef(void 0), [N,
|
|
21965
|
-
controlled:
|
|
21962
|
+
tabIndex: E,
|
|
21963
|
+
value: U
|
|
21964
|
+
} = e, F = J.useRef(void 0), [N, G] = J.useState(-1), [W, j] = J.useState(-1), [L, k] = J.useState(!1), y = J.useRef(0), M = J.useRef(null), [B, z] = Oh({
|
|
21965
|
+
controlled: U,
|
|
21966
21966
|
default: r ?? l,
|
|
21967
21967
|
name: "Slider"
|
|
21968
21968
|
}), D = d && ((q, Q, Z) => {
|
|
@@ -21982,10 +21982,10 @@ function $C(e) {
|
|
|
21982
21982
|
})) : s || [], Y = Se.map((q) => q.value), [ie, he] = J.useState(-1), se = J.useRef(null), Ge = dc(f, se), At = (q) => (Q) => {
|
|
21983
21983
|
var le;
|
|
21984
21984
|
const Z = Number(Q.currentTarget.getAttribute("data-index"));
|
|
21985
|
-
ri(Q.target) && he(Z),
|
|
21985
|
+
ri(Q.target) && he(Z), j(Z), (le = q == null ? void 0 : q.onFocus) == null || le.call(q, Q);
|
|
21986
21986
|
}, sa = (q) => (Q) => {
|
|
21987
21987
|
var Z;
|
|
21988
|
-
ri(Q.target) || he(-1),
|
|
21988
|
+
ri(Q.target) || he(-1), j(-1), (Z = q == null ? void 0 : q.onBlur) == null || Z.call(q, Q);
|
|
21989
21989
|
}, Or = (q, Q) => {
|
|
21990
21990
|
const Z = Number(q.currentTarget.getAttribute("data-index")), le = X[Z], ue = Y.indexOf(le);
|
|
21991
21991
|
let ee = Q;
|
|
@@ -22007,7 +22007,7 @@ function $C(e) {
|
|
|
22007
22007
|
activeIndex: Be
|
|
22008
22008
|
});
|
|
22009
22009
|
}
|
|
22010
|
-
|
|
22010
|
+
z(ee), he(Z), D && !mn(ee, B) && D(q, ee, Z), u && u(q, M.current ?? ee);
|
|
22011
22011
|
}, rr = (q) => (Q) => {
|
|
22012
22012
|
var Z;
|
|
22013
22013
|
if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(Q.key)) {
|
|
@@ -22043,8 +22043,8 @@ function $C(e) {
|
|
|
22043
22043
|
break;
|
|
22044
22044
|
}
|
|
22045
22045
|
} else if (Se) {
|
|
22046
|
-
const Me = Y[Y.length - 1], Be = Y.indexOf(ue), Ae = [o ? "ArrowRight" : "ArrowLeft", "ArrowDown", "PageDown", "Home"],
|
|
22047
|
-
Ae.includes(Q.key) ? Be === 0 ? ee = Y[0] : ee = Y[Be - 1] :
|
|
22046
|
+
const Me = Y[Y.length - 1], Be = Y.indexOf(ue), Ae = [o ? "ArrowRight" : "ArrowLeft", "ArrowDown", "PageDown", "Home"], Qe = [o ? "ArrowLeft" : "ArrowRight", "ArrowUp", "PageUp", "End"];
|
|
22047
|
+
Ae.includes(Q.key) ? Be === 0 ? ee = Y[0] : ee = Y[Be - 1] : Qe.includes(Q.key) && (Be === Y.length - 1 ? ee = Me : ee = Y[Be + 1]);
|
|
22048
22048
|
}
|
|
22049
22049
|
ee != null && Or(Q, ee);
|
|
22050
22050
|
}
|
|
@@ -22053,14 +22053,14 @@ function $C(e) {
|
|
|
22053
22053
|
lc(() => {
|
|
22054
22054
|
var q;
|
|
22055
22055
|
a && se.current.contains(document.activeElement) && ((q = document.activeElement) == null || q.blur());
|
|
22056
|
-
}, [a]), a && N !== -1 &&
|
|
22056
|
+
}, [a]), a && N !== -1 && G(-1), a && ie !== -1 && he(-1);
|
|
22057
22057
|
const Ft = (q) => (Q) => {
|
|
22058
22058
|
var Z;
|
|
22059
22059
|
(Z = q.onChange) == null || Z.call(q, Q), Or(Q, Q.target.valueAsNumber);
|
|
22060
|
-
},
|
|
22060
|
+
}, ot = J.useRef(void 0);
|
|
22061
22061
|
let ut = p;
|
|
22062
22062
|
o && p === "horizontal" && (ut += "-reverse");
|
|
22063
|
-
const
|
|
22063
|
+
const st = ({
|
|
22064
22064
|
finger: q,
|
|
22065
22065
|
move: Q = !1
|
|
22066
22066
|
}) => {
|
|
@@ -22082,51 +22082,51 @@ function $C(e) {
|
|
|
22082
22082
|
Ae = Y[ar];
|
|
22083
22083
|
}
|
|
22084
22084
|
Ae = Dr(Ae, l, i);
|
|
22085
|
-
let
|
|
22085
|
+
let Qe = 0;
|
|
22086
22086
|
if (te) {
|
|
22087
|
-
Q ?
|
|
22087
|
+
Q ? Qe = ot.current : Qe = Ll(X, Ae), n && (Ae = Dr(Ae, X[Qe - 1] || -1 / 0, X[Qe + 1] || 1 / 0));
|
|
22088
22088
|
const ar = Ae;
|
|
22089
22089
|
Ae = kl({
|
|
22090
22090
|
values: X,
|
|
22091
22091
|
newValue: Ae,
|
|
22092
|
-
index:
|
|
22093
|
-
}), n && Q || (
|
|
22092
|
+
index: Qe
|
|
22093
|
+
}), n && Q || (Qe = Ae.indexOf(ar), ot.current = Qe);
|
|
22094
22094
|
}
|
|
22095
22095
|
return {
|
|
22096
22096
|
newValue: Ae,
|
|
22097
|
-
activeIndex:
|
|
22097
|
+
activeIndex: Qe
|
|
22098
22098
|
};
|
|
22099
22099
|
}, Tt = Oo((q) => {
|
|
22100
22100
|
const Q = pn(q, F);
|
|
22101
22101
|
if (!Q)
|
|
22102
22102
|
return;
|
|
22103
|
-
if (
|
|
22103
|
+
if (y.current += 1, q.type === "mousemove" && q.buttons === 0) {
|
|
22104
22104
|
Ze(q);
|
|
22105
22105
|
return;
|
|
22106
22106
|
}
|
|
22107
22107
|
const {
|
|
22108
22108
|
newValue: Z,
|
|
22109
22109
|
activeIndex: le
|
|
22110
|
-
} =
|
|
22110
|
+
} = st({
|
|
22111
22111
|
finger: Q,
|
|
22112
22112
|
move: !0
|
|
22113
22113
|
});
|
|
22114
22114
|
hn({
|
|
22115
22115
|
sliderRef: se,
|
|
22116
22116
|
activeIndex: le,
|
|
22117
|
-
setActive:
|
|
22118
|
-
}),
|
|
22117
|
+
setActive: G
|
|
22118
|
+
}), z(Z), !L && y.current > AC && k(!0), D && !mn(Z, B) && D(q, Z, le);
|
|
22119
22119
|
}), Ze = Oo((q) => {
|
|
22120
22120
|
const Q = pn(q, F);
|
|
22121
|
-
if (
|
|
22121
|
+
if (k(!1), !Q)
|
|
22122
22122
|
return;
|
|
22123
22123
|
const {
|
|
22124
22124
|
newValue: Z
|
|
22125
|
-
} =
|
|
22125
|
+
} = st({
|
|
22126
22126
|
finger: Q,
|
|
22127
22127
|
move: !0
|
|
22128
22128
|
});
|
|
22129
|
-
|
|
22129
|
+
G(-1), q.type === "touchend" && j(-1), u && u(q, M.current ?? Z), F.current = void 0, Et();
|
|
22130
22130
|
}), ke = Oo((q) => {
|
|
22131
22131
|
if (a)
|
|
22132
22132
|
return;
|
|
@@ -22138,16 +22138,16 @@ function $C(e) {
|
|
|
22138
22138
|
const {
|
|
22139
22139
|
newValue: ue,
|
|
22140
22140
|
activeIndex: ee
|
|
22141
|
-
} =
|
|
22141
|
+
} = st({
|
|
22142
22142
|
finger: Z
|
|
22143
22143
|
});
|
|
22144
22144
|
hn({
|
|
22145
22145
|
sliderRef: se,
|
|
22146
22146
|
activeIndex: ee,
|
|
22147
|
-
setActive:
|
|
22148
|
-
}),
|
|
22147
|
+
setActive: G
|
|
22148
|
+
}), z(ue), D && !mn(ue, B) && D(q, ue, ee);
|
|
22149
22149
|
}
|
|
22150
|
-
|
|
22150
|
+
y.current = 0;
|
|
22151
22151
|
const le = bn(se.current);
|
|
22152
22152
|
le.addEventListener("touchmove", Tt, {
|
|
22153
22153
|
passive: !0
|
|
@@ -22180,16 +22180,16 @@ function $C(e) {
|
|
|
22180
22180
|
const {
|
|
22181
22181
|
newValue: ee,
|
|
22182
22182
|
activeIndex: Me
|
|
22183
|
-
} =
|
|
22183
|
+
} = st({
|
|
22184
22184
|
finger: Z
|
|
22185
22185
|
});
|
|
22186
22186
|
hn({
|
|
22187
22187
|
sliderRef: se,
|
|
22188
22188
|
activeIndex: Me,
|
|
22189
|
-
setActive:
|
|
22190
|
-
}),
|
|
22189
|
+
setActive: G
|
|
22190
|
+
}), z(ee), D && !mn(ee, B) && D(Q, ee, Me);
|
|
22191
22191
|
}
|
|
22192
|
-
|
|
22192
|
+
y.current = 0;
|
|
22193
22193
|
const le = bn(se.current);
|
|
22194
22194
|
le.addEventListener("mousemove", Tt, {
|
|
22195
22195
|
passive: !0
|
|
@@ -22210,10 +22210,10 @@ function $C(e) {
|
|
|
22210
22210
|
var le;
|
|
22211
22211
|
(le = q.onMouseOver) == null || le.call(q, Q);
|
|
22212
22212
|
const Z = Number(Q.currentTarget.getAttribute("data-index"));
|
|
22213
|
-
|
|
22213
|
+
j(Z);
|
|
22214
22214
|
}, wr = (q) => (Q) => {
|
|
22215
22215
|
var Z;
|
|
22216
|
-
(Z = q.onMouseLeave) == null || Z.call(q, Q),
|
|
22216
|
+
(Z = q.onMouseLeave) == null || Z.call(q, Q), j(-1);
|
|
22217
22217
|
}, Cr = (q = {}) => {
|
|
22218
22218
|
const Q = Sn(q), Z = {
|
|
22219
22219
|
onMouseOver: It(Q || {}),
|
|
@@ -22233,7 +22233,7 @@ function $C(e) {
|
|
|
22233
22233
|
active: N,
|
|
22234
22234
|
axis: ut,
|
|
22235
22235
|
axisProps: MC,
|
|
22236
|
-
dragging:
|
|
22236
|
+
dragging: L,
|
|
22237
22237
|
focusedThumbIndex: ie,
|
|
22238
22238
|
getHiddenInputProps: (q = {}) => {
|
|
22239
22239
|
const Q = Sn(q), Z = {
|
|
@@ -22246,11 +22246,11 @@ function $C(e) {
|
|
|
22246
22246
|
...Z
|
|
22247
22247
|
};
|
|
22248
22248
|
return {
|
|
22249
|
-
tabIndex:
|
|
22249
|
+
tabIndex: E,
|
|
22250
22250
|
"aria-labelledby": t,
|
|
22251
22251
|
"aria-orientation": p,
|
|
22252
|
-
"aria-valuemax":
|
|
22253
|
-
"aria-valuemin":
|
|
22252
|
+
"aria-valuemax": g(i),
|
|
22253
|
+
"aria-valuemin": g(l),
|
|
22254
22254
|
name: c,
|
|
22255
22255
|
type: "range",
|
|
22256
22256
|
min: e.min,
|
|
@@ -22302,14 +22302,14 @@ function Es(e = []) {
|
|
|
22302
22302
|
function BC(e) {
|
|
22303
22303
|
return Ja("MuiSlider", e);
|
|
22304
22304
|
}
|
|
22305
|
-
const
|
|
22305
|
+
const ct = rc("MuiSlider", ["root", "active", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "disabled", "dragging", "focusVisible", "mark", "markActive", "marked", "markLabel", "markLabelActive", "rail", "sizeSmall", "thumb", "thumbColorPrimary", "thumbColorSecondary", "thumbColorError", "thumbColorSuccess", "thumbColorInfo", "thumbColorWarning", "track", "trackInverted", "trackFalse", "thumbSizeSmall", "valueLabel", "valueLabelOpen", "valueLabelCircle", "valueLabelLabel", "vertical"]), FC = (e) => {
|
|
22306
22306
|
const {
|
|
22307
22307
|
open: t
|
|
22308
22308
|
} = e;
|
|
22309
22309
|
return {
|
|
22310
|
-
offset: Pt(t &&
|
|
22311
|
-
circle:
|
|
22312
|
-
label:
|
|
22310
|
+
offset: Pt(t && ct.valueLabelOpen),
|
|
22311
|
+
circle: ct.valueLabelCircle,
|
|
22312
|
+
label: ct.valueLabelLabel
|
|
22313
22313
|
};
|
|
22314
22314
|
};
|
|
22315
22315
|
function Ed(e) {
|
|
@@ -22349,7 +22349,7 @@ const NC = Ut("span", {
|
|
|
22349
22349
|
const {
|
|
22350
22350
|
ownerState: r
|
|
22351
22351
|
} = e;
|
|
22352
|
-
return [t.root, t[`color${
|
|
22352
|
+
return [t.root, t[`color${qe(r.color)}`], r.size !== "medium" && t[`size${qe(r.size)}`], r.marked && t.marked, r.orientation === "vertical" && t.vertical, r.track === "inverted" && t.trackInverted, r.track === !1 && t.trackFalse];
|
|
22353
22353
|
}
|
|
22354
22354
|
})(yr(({
|
|
22355
22355
|
theme: e
|
|
@@ -22364,13 +22364,13 @@ const NC = Ut("span", {
|
|
|
22364
22364
|
"@media print": {
|
|
22365
22365
|
colorAdjust: "exact"
|
|
22366
22366
|
},
|
|
22367
|
-
[`&.${
|
|
22367
|
+
[`&.${ct.disabled}`]: {
|
|
22368
22368
|
pointerEvents: "none",
|
|
22369
22369
|
cursor: "default",
|
|
22370
22370
|
color: (e.vars || e).palette.grey[400]
|
|
22371
22371
|
},
|
|
22372
|
-
[`&.${
|
|
22373
|
-
[`& .${
|
|
22372
|
+
[`&.${ct.dragging}`]: {
|
|
22373
|
+
[`& .${ct.thumb}, & .${ct.track}`]: {
|
|
22374
22374
|
transition: "none"
|
|
22375
22375
|
}
|
|
22376
22376
|
},
|
|
@@ -22555,7 +22555,7 @@ const NC = Ut("span", {
|
|
|
22555
22555
|
const {
|
|
22556
22556
|
ownerState: r
|
|
22557
22557
|
} = e;
|
|
22558
|
-
return [t.thumb, t[`thumbColor${
|
|
22558
|
+
return [t.thumb, t[`thumbColor${qe(r.color)}`], r.size !== "medium" && t[`thumbSize${qe(r.size)}`]];
|
|
22559
22559
|
}
|
|
22560
22560
|
})(yr(({
|
|
22561
22561
|
theme: e
|
|
@@ -22592,7 +22592,7 @@ const NC = Ut("span", {
|
|
|
22592
22592
|
left: "50%",
|
|
22593
22593
|
transform: "translate(-50%, -50%)"
|
|
22594
22594
|
},
|
|
22595
|
-
[`&.${
|
|
22595
|
+
[`&.${ct.disabled}`]: {
|
|
22596
22596
|
"&:hover": {
|
|
22597
22597
|
boxShadow: "none"
|
|
22598
22598
|
}
|
|
@@ -22629,7 +22629,7 @@ const NC = Ut("span", {
|
|
|
22629
22629
|
color: t
|
|
22630
22630
|
},
|
|
22631
22631
|
style: {
|
|
22632
|
-
[`&:hover, &.${
|
|
22632
|
+
[`&:hover, &.${ct.focusVisible}`]: {
|
|
22633
22633
|
...e.vars ? {
|
|
22634
22634
|
boxShadow: `0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`
|
|
22635
22635
|
} : {
|
|
@@ -22639,7 +22639,7 @@ const NC = Ut("span", {
|
|
|
22639
22639
|
boxShadow: "none"
|
|
22640
22640
|
}
|
|
22641
22641
|
},
|
|
22642
|
-
[`&.${
|
|
22642
|
+
[`&.${ct.active}`]: {
|
|
22643
22643
|
...e.vars ? {
|
|
22644
22644
|
boxShadow: `0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`
|
|
22645
22645
|
} : {
|
|
@@ -22688,7 +22688,7 @@ const NC = Ut("span", {
|
|
|
22688
22688
|
bottom: 0,
|
|
22689
22689
|
left: "50%"
|
|
22690
22690
|
},
|
|
22691
|
-
[`&.${
|
|
22691
|
+
[`&.${ct.valueLabelOpen}`]: {
|
|
22692
22692
|
transform: "translateY(-100%) scale(1)"
|
|
22693
22693
|
}
|
|
22694
22694
|
}
|
|
@@ -22711,7 +22711,7 @@ const NC = Ut("span", {
|
|
|
22711
22711
|
right: -8,
|
|
22712
22712
|
top: "50%"
|
|
22713
22713
|
},
|
|
22714
|
-
[`&.${
|
|
22714
|
+
[`&.${ct.valueLabelOpen}`]: {
|
|
22715
22715
|
transform: "translateY(-50%) scale(1)"
|
|
22716
22716
|
}
|
|
22717
22717
|
}
|
|
@@ -22851,7 +22851,7 @@ const JC = Ut("span", {
|
|
|
22851
22851
|
color: i,
|
|
22852
22852
|
size: l
|
|
22853
22853
|
} = e, c = {
|
|
22854
|
-
root: ["root", t && "disabled", r && "dragging", a && "marked", n === "vertical" && "vertical", o === "inverted" && "trackInverted", o === !1 && "trackFalse", i && `color${
|
|
22854
|
+
root: ["root", t && "disabled", r && "dragging", a && "marked", n === "vertical" && "vertical", o === "inverted" && "trackInverted", o === !1 && "trackFalse", i && `color${qe(i)}`, l && `size${qe(l)}`],
|
|
22855
22855
|
rail: ["rail"],
|
|
22856
22856
|
track: ["track"],
|
|
22857
22857
|
mark: ["mark"],
|
|
@@ -22859,7 +22859,7 @@ const JC = Ut("span", {
|
|
|
22859
22859
|
markLabel: ["markLabel"],
|
|
22860
22860
|
markLabelActive: ["markLabelActive"],
|
|
22861
22861
|
valueLabel: ["valueLabel"],
|
|
22862
|
-
thumb: ["thumb", t && "disabled", l && `thumbSize${
|
|
22862
|
+
thumb: ["thumb", t && "disabled", l && `thumbSize${qe(l)}`, i && `thumbColor${qe(i)}`],
|
|
22863
22863
|
active: ["active"],
|
|
22864
22864
|
disabled: ["disabled"],
|
|
22865
22865
|
focusVisible: ["focusVisible"]
|
|
@@ -22882,22 +22882,22 @@ const JC = Ut("span", {
|
|
|
22882
22882
|
color: u = "primary",
|
|
22883
22883
|
classes: p,
|
|
22884
22884
|
className: f,
|
|
22885
|
-
disableSwap:
|
|
22885
|
+
disableSwap: g = !1,
|
|
22886
22886
|
disabled: h = !1,
|
|
22887
22887
|
getAriaLabel: x,
|
|
22888
|
-
getAriaValueText:
|
|
22889
|
-
marks:
|
|
22888
|
+
getAriaValueText: E,
|
|
22889
|
+
marks: U = !1,
|
|
22890
22890
|
max: F = 100,
|
|
22891
22891
|
min: N = 0,
|
|
22892
|
-
name:
|
|
22892
|
+
name: G,
|
|
22893
22893
|
onChange: W,
|
|
22894
|
-
onChangeCommitted:
|
|
22895
|
-
orientation:
|
|
22896
|
-
shiftStep:
|
|
22897
|
-
size:
|
|
22894
|
+
onChangeCommitted: j,
|
|
22895
|
+
orientation: L = "horizontal",
|
|
22896
|
+
shiftStep: k = 10,
|
|
22897
|
+
size: y = "medium",
|
|
22898
22898
|
step: M = 1,
|
|
22899
22899
|
scale: B = Fl,
|
|
22900
|
-
slotProps:
|
|
22900
|
+
slotProps: z,
|
|
22901
22901
|
slots: D,
|
|
22902
22902
|
tabIndex: te,
|
|
22903
22903
|
track: X = "normal",
|
|
@@ -22912,13 +22912,13 @@ const JC = Ut("span", {
|
|
|
22912
22912
|
min: N,
|
|
22913
22913
|
classes: p,
|
|
22914
22914
|
disabled: h,
|
|
22915
|
-
disableSwap:
|
|
22916
|
-
orientation:
|
|
22917
|
-
marks:
|
|
22915
|
+
disableSwap: g,
|
|
22916
|
+
orientation: L,
|
|
22917
|
+
marks: U,
|
|
22918
22918
|
color: u,
|
|
22919
|
-
size:
|
|
22919
|
+
size: y,
|
|
22920
22920
|
step: M,
|
|
22921
|
-
shiftStep:
|
|
22921
|
+
shiftStep: k,
|
|
22922
22922
|
scale: B,
|
|
22923
22923
|
track: X,
|
|
22924
22924
|
valueLabelDisplay: Y,
|
|
@@ -22930,9 +22930,9 @@ const JC = Ut("span", {
|
|
|
22930
22930
|
getThumbProps: Or,
|
|
22931
22931
|
open: rr,
|
|
22932
22932
|
active: Ft,
|
|
22933
|
-
axis:
|
|
22933
|
+
axis: ot,
|
|
22934
22934
|
focusedThumbIndex: ut,
|
|
22935
|
-
range:
|
|
22935
|
+
range: st,
|
|
22936
22936
|
dragging: Tt,
|
|
22937
22937
|
marks: Ze,
|
|
22938
22938
|
values: ke,
|
|
@@ -22944,7 +22944,7 @@ const JC = Ut("span", {
|
|
|
22944
22944
|
rootRef: r
|
|
22945
22945
|
});
|
|
22946
22946
|
se.marked = Ze.length > 0 && Ze.some((Ce) => Ce.label), se.dragging = Tt, se.focusedThumbIndex = ut;
|
|
22947
|
-
const Ue = qC(se), Dt = (D == null ? void 0 : D.root) ?? c.Root ?? NC, It = (D == null ? void 0 : D.rail) ?? c.Rail ?? DC, wr = (D == null ? void 0 : D.track) ?? c.Track ?? zC, Cr = (D == null ? void 0 : D.thumb) ?? c.Thumb ?? GC, zt = (D == null ? void 0 : D.valueLabel) ?? c.ValueLabel ?? Id, Gt = (D == null ? void 0 : D.mark) ?? c.Mark ?? JC, Pr = (D == null ? void 0 : D.markLabel) ?? c.MarkLabel ?? HC, q = (D == null ? void 0 : D.input) ?? c.Input ?? "input", Q = (
|
|
22947
|
+
const Ue = qC(se), Dt = (D == null ? void 0 : D.root) ?? c.Root ?? NC, It = (D == null ? void 0 : D.rail) ?? c.Rail ?? DC, wr = (D == null ? void 0 : D.track) ?? c.Track ?? zC, Cr = (D == null ? void 0 : D.thumb) ?? c.Thumb ?? GC, zt = (D == null ? void 0 : D.valueLabel) ?? c.ValueLabel ?? Id, Gt = (D == null ? void 0 : D.mark) ?? c.Mark ?? JC, Pr = (D == null ? void 0 : D.markLabel) ?? c.MarkLabel ?? HC, q = (D == null ? void 0 : D.input) ?? c.Input ?? "input", Q = (z == null ? void 0 : z.root) ?? d.root, Z = (z == null ? void 0 : z.rail) ?? d.rail, le = (z == null ? void 0 : z.track) ?? d.track, ue = (z == null ? void 0 : z.thumb) ?? d.thumb, ee = (z == null ? void 0 : z.valueLabel) ?? d.valueLabel, Me = (z == null ? void 0 : z.mark) ?? d.mark, Be = (z == null ? void 0 : z.markLabel) ?? d.markLabel, Ae = (z == null ? void 0 : z.input) ?? d.input, Qe = Jt({
|
|
22948
22948
|
elementType: Dt,
|
|
22949
22949
|
getSlotProps: At,
|
|
22950
22950
|
externalSlotProps: Q,
|
|
@@ -22969,8 +22969,8 @@ const JC = Ut("span", {
|
|
|
22969
22969
|
externalSlotProps: le,
|
|
22970
22970
|
additionalProps: {
|
|
22971
22971
|
style: {
|
|
22972
|
-
...Ge[
|
|
22973
|
-
...Ge[
|
|
22972
|
+
...Ge[ot].offset(Et),
|
|
22973
|
+
...Ge[ot].leap(Nt)
|
|
22974
22974
|
}
|
|
22975
22975
|
},
|
|
22976
22976
|
ownerState: {
|
|
@@ -23012,15 +23012,15 @@ const JC = Ut("span", {
|
|
|
23012
23012
|
ownerState: se
|
|
23013
23013
|
});
|
|
23014
23014
|
return /* @__PURE__ */ b.jsxs(Dt, {
|
|
23015
|
-
...
|
|
23015
|
+
...Qe,
|
|
23016
23016
|
children: [/* @__PURE__ */ b.jsx(It, {
|
|
23017
23017
|
...ar
|
|
23018
23018
|
}), /* @__PURE__ */ b.jsx(wr, {
|
|
23019
23019
|
...yo
|
|
23020
23020
|
}), Ze.filter((Ce) => Ce.value >= N && Ce.value <= F).map((Ce, je) => {
|
|
23021
|
-
const da = Fn(Ce.value, N, F), nr = Ge[
|
|
23021
|
+
const da = Fn(Ce.value, N, F), nr = Ge[ot].offset(da);
|
|
23022
23022
|
let pt;
|
|
23023
|
-
return X === !1 ? pt = ke.includes(Ce.value) : pt = X === "normal" && (
|
|
23023
|
+
return X === !1 ? pt = ke.includes(Ce.value) : pt = X === "normal" && (st ? Ce.value >= ke[0] && Ce.value <= ke[ke.length - 1] : Ce.value <= ke[0]) || X === "inverted" && (st ? Ce.value <= ke[0] || Ce.value >= ke[ke.length - 1] : Ce.value >= ke[0]), /* @__PURE__ */ b.jsxs(J.Fragment, {
|
|
23024
23024
|
children: [/* @__PURE__ */ b.jsx(Gt, {
|
|
23025
23025
|
"data-index": je,
|
|
23026
23026
|
...Vr,
|
|
@@ -23048,7 +23048,7 @@ const JC = Ut("span", {
|
|
|
23048
23048
|
}) : null]
|
|
23049
23049
|
}, je);
|
|
23050
23050
|
}), ke.map((Ce, je) => {
|
|
23051
|
-
const da = Fn(Ce, N, F), nr = Ge[
|
|
23051
|
+
const da = Fn(Ce, N, F), nr = Ge[ot].offset(da), pt = Y === "off" ? WC : zt;
|
|
23052
23052
|
return (
|
|
23053
23053
|
/* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
|
|
23054
23054
|
/* @__PURE__ */ b.jsx(pt, {
|
|
@@ -23075,7 +23075,7 @@ const JC = Ut("span", {
|
|
|
23075
23075
|
"aria-label": x ? x(je) : o,
|
|
23076
23076
|
"aria-valuenow": B(Ce),
|
|
23077
23077
|
"aria-labelledby": i,
|
|
23078
|
-
"aria-valuetext":
|
|
23078
|
+
"aria-valuetext": E ? E(B(Ce), je) : s,
|
|
23079
23079
|
value: ke[je],
|
|
23080
23080
|
...ca
|
|
23081
23081
|
})
|
|
@@ -23356,13 +23356,13 @@ function KC(e) {
|
|
|
23356
23356
|
}
|
|
23357
23357
|
const YC = De((e) => {
|
|
23358
23358
|
var o, s, i;
|
|
23359
|
-
const t =
|
|
23359
|
+
const t = nt(), { store: r } = e, { t: a } = Rt();
|
|
23360
23360
|
function n(l, c) {
|
|
23361
23361
|
c === e.velocity || !KC(c) || e.onVelocityChange(c);
|
|
23362
23362
|
}
|
|
23363
23363
|
return /* @__PURE__ */ b.jsxs(Ve, { direction: "row", gap: 2, alignItems: "center", children: [
|
|
23364
23364
|
r.showVelocityLegend && /* @__PURE__ */ b.jsx(
|
|
23365
|
-
|
|
23365
|
+
He,
|
|
23366
23366
|
{
|
|
23367
23367
|
sx: {
|
|
23368
23368
|
color: (i = (s = (o = t.componentsExt) == null ? void 0 : o.JoggingPanel) == null ? void 0 : s.VelocitySlider) == null ? void 0 : i.sliderLegendColor,
|
|
@@ -23395,7 +23395,7 @@ const YC = De((e) => {
|
|
|
23395
23395
|
});
|
|
23396
23396
|
function jd({ value: e, sx: t }) {
|
|
23397
23397
|
var a;
|
|
23398
|
-
const r =
|
|
23398
|
+
const r = nt();
|
|
23399
23399
|
return /* @__PURE__ */ b.jsx(
|
|
23400
23400
|
Ve,
|
|
23401
23401
|
{
|
|
@@ -23411,7 +23411,7 @@ function jd({ value: e, sx: t }) {
|
|
|
23411
23411
|
...t
|
|
23412
23412
|
},
|
|
23413
23413
|
children: /* @__PURE__ */ b.jsx(
|
|
23414
|
-
|
|
23414
|
+
He,
|
|
23415
23415
|
{
|
|
23416
23416
|
component: "span",
|
|
23417
23417
|
sx: {
|
|
@@ -23463,10 +23463,9 @@ const $d = De(
|
|
|
23463
23463
|
store: e,
|
|
23464
23464
|
children: t
|
|
23465
23465
|
}) => {
|
|
23466
|
-
|
|
23467
|
-
|
|
23468
|
-
|
|
23469
|
-
($ === "translate" || $ === "rotate") && e.setSelectedCartesianMotionType($);
|
|
23466
|
+
const { t: r } = Rt(), a = nt();
|
|
23467
|
+
function n(p, f) {
|
|
23468
|
+
(f === "translate" || f === "rotate") && e.setSelectedCartesianMotionType(f);
|
|
23470
23469
|
}
|
|
23471
23470
|
Zm(
|
|
23472
23471
|
() => [e.selectedCoordSystemId, e.selectedTcpId],
|
|
@@ -23479,26 +23478,26 @@ const $d = De(
|
|
|
23479
23478
|
},
|
|
23480
23479
|
{ fireImmediately: !0 }
|
|
23481
23480
|
);
|
|
23482
|
-
async function o(
|
|
23483
|
-
const
|
|
23484
|
-
|
|
23481
|
+
async function o(p, f) {
|
|
23482
|
+
const g = await e.activate(), h = g.motionStream.rapidlyChangingMotionState.tcp_pose, x = g.motionStream.rapidlyChangingMotionState.state.joint_position;
|
|
23483
|
+
h && await e.withMotionLock(async () => {
|
|
23485
23484
|
try {
|
|
23486
23485
|
e.setCurrentIncrementJog({
|
|
23487
|
-
axis:
|
|
23488
|
-
direction:
|
|
23486
|
+
axis: p.axis,
|
|
23487
|
+
direction: p.direction
|
|
23489
23488
|
}), await e.jogger.runIncrementalCartesianMotion({
|
|
23490
|
-
currentTcpPose:
|
|
23491
|
-
currentJoints:
|
|
23489
|
+
currentTcpPose: h,
|
|
23490
|
+
currentJoints: x,
|
|
23492
23491
|
coordSystemId: e.activeCoordSystemId,
|
|
23493
23492
|
velocityInRelevantUnits: e.selectedCartesianMotionType === "translate" ? e.translationVelocityMmPerSec : e.rotationVelocityRadsPerSec,
|
|
23494
|
-
axis:
|
|
23495
|
-
direction:
|
|
23493
|
+
axis: p.axis,
|
|
23494
|
+
direction: p.direction,
|
|
23496
23495
|
motion: e.selectedCartesianMotionType === "translate" ? {
|
|
23497
23496
|
type: "translate",
|
|
23498
|
-
distanceMm:
|
|
23497
|
+
distanceMm: f.mm
|
|
23499
23498
|
} : {
|
|
23500
23499
|
type: "rotate",
|
|
23501
|
-
distanceRads: Iu(
|
|
23500
|
+
distanceRads: Iu(f.degrees)
|
|
23502
23501
|
}
|
|
23503
23502
|
});
|
|
23504
23503
|
} finally {
|
|
@@ -23506,17 +23505,17 @@ const $d = De(
|
|
|
23506
23505
|
}
|
|
23507
23506
|
});
|
|
23508
23507
|
}
|
|
23509
|
-
async function s(
|
|
23508
|
+
async function s(p) {
|
|
23510
23509
|
if (!e.isLocked) {
|
|
23511
23510
|
if (await e.activate(), e.activeDiscreteIncrement)
|
|
23512
|
-
return o(
|
|
23513
|
-
|
|
23514
|
-
axis:
|
|
23515
|
-
direction:
|
|
23511
|
+
return o(p, e.activeDiscreteIncrement);
|
|
23512
|
+
p.motionType === "translate" ? await e.jogger.startTCPTranslation({
|
|
23513
|
+
axis: p.axis,
|
|
23514
|
+
direction: p.direction,
|
|
23516
23515
|
velocityMmPerSec: e.translationVelocityMmPerSec
|
|
23517
23516
|
}) : await e.jogger.startTCPRotation({
|
|
23518
|
-
axis:
|
|
23519
|
-
direction:
|
|
23517
|
+
axis: p.axis,
|
|
23518
|
+
direction: p.direction,
|
|
23520
23519
|
velocityRadsPerSec: e.rotationVelocityRadsPerSec
|
|
23521
23520
|
});
|
|
23522
23521
|
}
|
|
@@ -23524,29 +23523,35 @@ const $d = De(
|
|
|
23524
23523
|
async function i() {
|
|
23525
23524
|
e.isLocked || e.activeDiscreteIncrement || await e.deactivate();
|
|
23526
23525
|
}
|
|
23527
|
-
|
|
23526
|
+
function l(p, f, g) {
|
|
23527
|
+
var x, E, U;
|
|
23528
|
+
const h = (U = (E = (x = g.componentsExt) == null ? void 0 : x.JoggingPanel) == null ? void 0 : E.JoggingCartesian) == null ? void 0 : U.Axis;
|
|
23529
|
+
if (h)
|
|
23530
|
+
return f === "translate" ? h[p] : h.CustomRotation ?? h[p];
|
|
23531
|
+
}
|
|
23532
|
+
const c = [
|
|
23528
23533
|
{
|
|
23529
23534
|
id: "x",
|
|
23530
|
-
|
|
23531
|
-
|
|
23535
|
+
icon: /* @__PURE__ */ b.jsx(nx, {}),
|
|
23536
|
+
colors: l("X", e.selectedCartesianMotionType, a)
|
|
23532
23537
|
},
|
|
23533
23538
|
{
|
|
23534
23539
|
id: "y",
|
|
23535
|
-
|
|
23536
|
-
|
|
23540
|
+
icon: /* @__PURE__ */ b.jsx(sx, {}),
|
|
23541
|
+
colors: l("Y", e.selectedCartesianMotionType, a)
|
|
23537
23542
|
},
|
|
23538
23543
|
{
|
|
23539
23544
|
id: "z",
|
|
23540
|
-
|
|
23541
|
-
|
|
23545
|
+
icon: /* @__PURE__ */ b.jsx(lx, {}),
|
|
23546
|
+
colors: l("Z", e.selectedCartesianMotionType, a)
|
|
23542
23547
|
}
|
|
23543
23548
|
];
|
|
23544
|
-
function
|
|
23545
|
-
return r("General.mm.variable", { amount:
|
|
23549
|
+
function d(p) {
|
|
23550
|
+
return r("General.mm.variable", { amount: p.toFixed(1) });
|
|
23546
23551
|
}
|
|
23547
|
-
function
|
|
23552
|
+
function u(p) {
|
|
23548
23553
|
return r("General.degree.variable", {
|
|
23549
|
-
amount: gn(
|
|
23554
|
+
amount: gn(p).toFixed(1)
|
|
23550
23555
|
});
|
|
23551
23556
|
}
|
|
23552
23557
|
return /* @__PURE__ */ b.jsxs(Ve, { flexGrow: 1, gap: 2, sx: { padding: "18px 24px" }, children: [
|
|
@@ -23585,78 +23590,78 @@ const $d = De(
|
|
|
23585
23590
|
]
|
|
23586
23591
|
}
|
|
23587
23592
|
),
|
|
23588
|
-
e.selectedCartesianMotionType === "translate" &&
|
|
23589
|
-
var
|
|
23593
|
+
e.selectedCartesianMotionType === "translate" && c.map((p) => {
|
|
23594
|
+
var f, g;
|
|
23590
23595
|
return /* @__PURE__ */ b.jsx(
|
|
23591
23596
|
Pi,
|
|
23592
23597
|
{
|
|
23593
|
-
colors:
|
|
23598
|
+
colors: p.colors,
|
|
23594
23599
|
disabled: e.isLocked,
|
|
23595
|
-
activeJoggingDirection: ((
|
|
23600
|
+
activeJoggingDirection: ((f = e.incrementJogInProgress) == null ? void 0 : f.axis) === p.id ? e.incrementJogInProgress.direction : void 0,
|
|
23596
23601
|
label: /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
23597
|
-
|
|
23602
|
+
p.icon,
|
|
23598
23603
|
/* @__PURE__ */ b.jsx(
|
|
23599
|
-
|
|
23604
|
+
He,
|
|
23600
23605
|
{
|
|
23601
23606
|
sx: {
|
|
23602
23607
|
fontSize: "24px",
|
|
23603
|
-
color: ((
|
|
23608
|
+
color: ((g = p.colors) == null ? void 0 : g.labelColor) ?? a.palette.text.primary
|
|
23604
23609
|
},
|
|
23605
|
-
children:
|
|
23610
|
+
children: p.id.toUpperCase()
|
|
23606
23611
|
}
|
|
23607
23612
|
)
|
|
23608
23613
|
] }),
|
|
23609
23614
|
getDisplayedValue: () => {
|
|
23610
|
-
var
|
|
23611
|
-
return
|
|
23612
|
-
((
|
|
23615
|
+
var h;
|
|
23616
|
+
return d(
|
|
23617
|
+
((h = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : h.position[p.id]) || 0
|
|
23613
23618
|
);
|
|
23614
23619
|
},
|
|
23615
|
-
startJogging: (
|
|
23616
|
-
axis:
|
|
23620
|
+
startJogging: (h) => s({
|
|
23621
|
+
axis: p.id,
|
|
23617
23622
|
motionType: "translate",
|
|
23618
|
-
direction:
|
|
23623
|
+
direction: h
|
|
23619
23624
|
}),
|
|
23620
23625
|
stopJogging: i
|
|
23621
23626
|
},
|
|
23622
|
-
|
|
23627
|
+
p.id
|
|
23623
23628
|
);
|
|
23624
23629
|
}),
|
|
23625
|
-
e.selectedCartesianMotionType === "rotate" &&
|
|
23626
|
-
var
|
|
23630
|
+
e.selectedCartesianMotionType === "rotate" && c.map((p) => {
|
|
23631
|
+
var f, g;
|
|
23627
23632
|
return /* @__PURE__ */ b.jsx(
|
|
23628
23633
|
Pi,
|
|
23629
23634
|
{
|
|
23630
|
-
colors:
|
|
23635
|
+
colors: p.colors,
|
|
23631
23636
|
disabled: e.isLocked,
|
|
23632
|
-
activeJoggingDirection: ((
|
|
23637
|
+
activeJoggingDirection: ((f = e.incrementJogInProgress) == null ? void 0 : f.axis) === p.id ? e.incrementJogInProgress.direction : void 0,
|
|
23633
23638
|
label: /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
23634
23639
|
/* @__PURE__ */ b.jsx(dx, {}),
|
|
23635
23640
|
/* @__PURE__ */ b.jsx(
|
|
23636
|
-
|
|
23641
|
+
He,
|
|
23637
23642
|
{
|
|
23638
23643
|
sx: {
|
|
23639
23644
|
fontSize: "24px",
|
|
23640
|
-
color: ((
|
|
23645
|
+
color: ((g = p.colors) == null ? void 0 : g.labelColor) ?? a.palette.text.primary
|
|
23641
23646
|
},
|
|
23642
|
-
children:
|
|
23647
|
+
children: p.id.toUpperCase()
|
|
23643
23648
|
}
|
|
23644
23649
|
)
|
|
23645
23650
|
] }),
|
|
23646
23651
|
getDisplayedValue: () => {
|
|
23647
|
-
var
|
|
23648
|
-
return
|
|
23649
|
-
((
|
|
23652
|
+
var h, x;
|
|
23653
|
+
return u(
|
|
23654
|
+
((x = (h = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : h.orientation) == null ? void 0 : x[p.id]) || 0
|
|
23650
23655
|
);
|
|
23651
23656
|
},
|
|
23652
|
-
startJogging: (
|
|
23653
|
-
axis:
|
|
23657
|
+
startJogging: (h) => s({
|
|
23658
|
+
axis: p.id,
|
|
23654
23659
|
motionType: "rotate",
|
|
23655
|
-
direction:
|
|
23660
|
+
direction: h
|
|
23656
23661
|
}),
|
|
23657
23662
|
stopJogging: i
|
|
23658
23663
|
},
|
|
23659
|
-
|
|
23664
|
+
p.id
|
|
23660
23665
|
);
|
|
23661
23666
|
})
|
|
23662
23667
|
]
|
|
@@ -23671,14 +23676,15 @@ const $d = De(
|
|
|
23671
23676
|
}
|
|
23672
23677
|
), ZC = De(
|
|
23673
23678
|
({ store: e, children: t }) => {
|
|
23674
|
-
|
|
23679
|
+
const r = nt();
|
|
23680
|
+
async function a(o) {
|
|
23675
23681
|
await e.activate(), await e.jogger.startJointRotation({
|
|
23676
|
-
joint:
|
|
23677
|
-
direction:
|
|
23682
|
+
joint: o.joint,
|
|
23683
|
+
direction: o.direction,
|
|
23678
23684
|
velocityRadsPerSec: e.rotationVelocityRadsPerSec
|
|
23679
23685
|
});
|
|
23680
23686
|
}
|
|
23681
|
-
async function
|
|
23687
|
+
async function n() {
|
|
23682
23688
|
await e.jogger.stop(), await e.deactivate();
|
|
23683
23689
|
}
|
|
23684
23690
|
return /* @__PURE__ */ b.jsxs(Ve, { flexGrow: 1, gap: 2, sx: { padding: "18px 24px" }, children: [
|
|
@@ -23691,26 +23697,45 @@ const $d = De(
|
|
|
23691
23697
|
alignItems: "stretch",
|
|
23692
23698
|
sx: { flexGrow: "1" },
|
|
23693
23699
|
id: "JointControls",
|
|
23694
|
-
children: /* @__PURE__ */ b.jsx(Ve, { alignItems: "center", gap: "24px", children: e.jogger.motionStream.joints.map((
|
|
23695
|
-
var
|
|
23696
|
-
const
|
|
23697
|
-
return /* @__PURE__ */ b.
|
|
23698
|
-
|
|
23700
|
+
children: /* @__PURE__ */ b.jsx(Ve, { alignItems: "center", gap: "24px", children: e.jogger.motionStream.joints.map((o) => {
|
|
23701
|
+
var c;
|
|
23702
|
+
const s = (c = e.motionGroupSpec.mechanical_joint_limits) == null ? void 0 : c[o.index], i = (s == null ? void 0 : s.lower_limit) !== void 0 ? gn(s.lower_limit) : void 0, l = (s == null ? void 0 : s.upper_limit) !== void 0 ? gn(s.upper_limit) : void 0;
|
|
23703
|
+
return /* @__PURE__ */ b.jsxs(
|
|
23704
|
+
Ve,
|
|
23699
23705
|
{
|
|
23700
|
-
|
|
23701
|
-
|
|
23702
|
-
|
|
23703
|
-
|
|
23704
|
-
|
|
23705
|
-
|
|
23706
|
-
|
|
23707
|
-
|
|
23708
|
-
|
|
23709
|
-
|
|
23710
|
-
|
|
23711
|
-
|
|
23706
|
+
direction: "row",
|
|
23707
|
+
alignItems: "center",
|
|
23708
|
+
justifyContent: "center",
|
|
23709
|
+
spacing: 1.5,
|
|
23710
|
+
width: "100%",
|
|
23711
|
+
children: [
|
|
23712
|
+
e.showJointsLegend && /* @__PURE__ */ b.jsx(
|
|
23713
|
+
He,
|
|
23714
|
+
{
|
|
23715
|
+
color: e.isLocked ? r.palette.text.disabled : r.palette.text.secondary,
|
|
23716
|
+
children: `G${o.index + 1}`
|
|
23717
|
+
}
|
|
23718
|
+
),
|
|
23719
|
+
/* @__PURE__ */ b.jsx(
|
|
23720
|
+
Tf,
|
|
23721
|
+
{
|
|
23722
|
+
disabled: e.isLocked,
|
|
23723
|
+
lowerLimitDegs: i,
|
|
23724
|
+
upperLimitDegs: l,
|
|
23725
|
+
getValueDegs: () => {
|
|
23726
|
+
const d = e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[o.index];
|
|
23727
|
+
return d !== void 0 ? gn(d) : void 0;
|
|
23728
|
+
},
|
|
23729
|
+
startJogging: (d) => a({
|
|
23730
|
+
joint: o.index,
|
|
23731
|
+
direction: d
|
|
23732
|
+
}),
|
|
23733
|
+
stopJogging: n
|
|
23734
|
+
}
|
|
23735
|
+
)
|
|
23736
|
+
]
|
|
23712
23737
|
},
|
|
23713
|
-
`joint-${
|
|
23738
|
+
`joint-${o.index}`
|
|
23714
23739
|
);
|
|
23715
23740
|
}) })
|
|
23716
23741
|
}
|
|
@@ -23821,7 +23846,7 @@ const $d = De(
|
|
|
23821
23846
|
value: t
|
|
23822
23847
|
}, r) => {
|
|
23823
23848
|
var i;
|
|
23824
|
-
const a =
|
|
23849
|
+
const a = nt(), [n, o] = gr(!1);
|
|
23825
23850
|
async function s() {
|
|
23826
23851
|
if (!r || !("current" in r))
|
|
23827
23852
|
return console.warn("No copy target found"), !1;
|
|
@@ -23856,7 +23881,7 @@ const $d = De(
|
|
|
23856
23881
|
},
|
|
23857
23882
|
onClick: () => s(),
|
|
23858
23883
|
children: /* @__PURE__ */ b.jsx(
|
|
23859
|
-
|
|
23884
|
+
He,
|
|
23860
23885
|
{
|
|
23861
23886
|
ref: r,
|
|
23862
23887
|
align: "center",
|
|
@@ -23963,8 +23988,8 @@ function VV({
|
|
|
23963
23988
|
textAlign: "center"
|
|
23964
23989
|
},
|
|
23965
23990
|
children: [
|
|
23966
|
-
/* @__PURE__ */ b.jsx(
|
|
23967
|
-
/* @__PURE__ */ b.jsx(
|
|
23991
|
+
/* @__PURE__ */ b.jsx(He, { color: "#fff", children: "Found no devices to connect to." }),
|
|
23992
|
+
/* @__PURE__ */ b.jsx(He, { color: "#fff", children: "Please ensure a motion group has been created." })
|
|
23968
23993
|
]
|
|
23969
23994
|
}
|
|
23970
23995
|
),
|
|
@@ -24051,14 +24076,14 @@ function Fd({
|
|
|
24051
24076
|
}
|
|
24052
24077
|
function c() {
|
|
24053
24078
|
const p = o.current.map(
|
|
24054
|
-
(f,
|
|
24079
|
+
(f, g) => d[g].get()
|
|
24055
24080
|
);
|
|
24056
24081
|
if (r)
|
|
24057
24082
|
r(o.current, p);
|
|
24058
24083
|
else
|
|
24059
|
-
for (const [f,
|
|
24060
|
-
const h = t[f], x = h.theta || 0,
|
|
24061
|
-
|
|
24084
|
+
for (const [f, g] of o.current.entries()) {
|
|
24085
|
+
const h = t[f], x = h.theta || 0, E = h.reverse_rotation_direction ? -1 : 1;
|
|
24086
|
+
g.rotation.y = E * p[f] + x;
|
|
24062
24087
|
}
|
|
24063
24088
|
}
|
|
24064
24089
|
Xm(() => {
|
|
@@ -24394,9 +24419,9 @@ const pP = ({
|
|
|
24394
24419
|
},
|
|
24395
24420
|
children: [
|
|
24396
24421
|
/* @__PURE__ */ b.jsxs("div", { children: [
|
|
24397
|
-
a && /* @__PURE__ */ b.jsx(
|
|
24422
|
+
a && /* @__PURE__ */ b.jsx(He, { component: "span", fontSize: "14px", children: `${a}: ` }),
|
|
24398
24423
|
/* @__PURE__ */ b.jsx(
|
|
24399
|
-
|
|
24424
|
+
He,
|
|
24400
24425
|
{
|
|
24401
24426
|
component: "span",
|
|
24402
24427
|
color: r,
|
|
@@ -24406,8 +24431,8 @@ const pP = ({
|
|
|
24406
24431
|
}
|
|
24407
24432
|
)
|
|
24408
24433
|
] }),
|
|
24409
|
-
/* @__PURE__ */ b.jsx(
|
|
24410
|
-
s && /* @__PURE__ */ b.jsx(
|
|
24434
|
+
/* @__PURE__ */ b.jsx(He, { fontSize: "14px", children: o }),
|
|
24435
|
+
s && /* @__PURE__ */ b.jsx(He, { fontSize: "12px", children: s })
|
|
24411
24436
|
]
|
|
24412
24437
|
}
|
|
24413
24438
|
)
|
|
@@ -24422,7 +24447,7 @@ const pP = ({
|
|
|
24422
24447
|
anchorOrigin: r,
|
|
24423
24448
|
transformOrigin: a
|
|
24424
24449
|
}) => {
|
|
24425
|
-
const n =
|
|
24450
|
+
const n = nt(), { t: o } = Rt();
|
|
24426
24451
|
return e ? /* @__PURE__ */ b.jsx(
|
|
24427
24452
|
wt,
|
|
24428
24453
|
{
|
|
@@ -24487,7 +24512,7 @@ const pP = ({
|
|
|
24487
24512
|
anchorOrigin: t,
|
|
24488
24513
|
transformOrigin: r
|
|
24489
24514
|
}) => {
|
|
24490
|
-
const { t: a } = Rt(), n =
|
|
24515
|
+
const { t: a } = Rt(), n = nt();
|
|
24491
24516
|
switch (e) {
|
|
24492
24517
|
case "OPERATION_MODE_AUTO":
|
|
24493
24518
|
return /* @__PURE__ */ b.jsx(
|
|
@@ -24563,7 +24588,7 @@ const pP = ({
|
|
|
24563
24588
|
anchorOrigin: t,
|
|
24564
24589
|
transformOrigin: r
|
|
24565
24590
|
}) => {
|
|
24566
|
-
const { t: a } = Rt(), n =
|
|
24591
|
+
const { t: a } = Rt(), n = nt();
|
|
24567
24592
|
switch (e) {
|
|
24568
24593
|
// Normal state, robot can move
|
|
24569
24594
|
case "SAFETY_STATE_NORMAL":
|
|
@@ -24820,7 +24845,7 @@ async function kP() {
|
|
|
24820
24845
|
}
|
|
24821
24846
|
const EV = Xr(
|
|
24822
24847
|
(e) => {
|
|
24823
|
-
const t =
|
|
24848
|
+
const t = nt(), [r, a] = gr("dark-plus"), n = t.palette.mode === "dark" ? "dark-plus" : "light-plus";
|
|
24824
24849
|
async function o(s) {
|
|
24825
24850
|
var c, d;
|
|
24826
24851
|
s.languages.register({ id: "wandelscript" }), s.languages.setLanguageConfiguration("wandelscript", {
|