@espresso-lab/mantine-data-table 1.9.43 → 1.9.44
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/index.es.js +819 -819
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import * as $e from "react";
|
|
2
2
|
import Yt, { createContext as Bn, useContext as Si, useCallback as Te, createElement as Dr, useRef as Ce, useImperativeHandle as co, useEffect as je, useState as ve, Fragment as Di, useMemo as Je, useLayoutEffect as ki } from "react";
|
|
3
|
-
import { factory as Le, useProps as Fe, useStyles as _t, createVarsResolver as ur, UnstyledButton as or, getSize as Tr, Box as ze, getSpacing as Os, getFontSize as $r, useResolvedStylesApi as Pi, AccordionChevron as uo, useInputProps as Ms, Input as kr, Popover as ir, Alert as Nr, Stepper as Mr, Group as gt, Button as mt, TextInput as Oi, NumberInput as Mi, Checkbox as
|
|
3
|
+
import { factory as Le, useProps as Fe, useStyles as _t, createVarsResolver as ur, UnstyledButton as or, getSize as Tr, Box as ze, getSpacing as Os, getFontSize as $r, useResolvedStylesApi as Pi, AccordionChevron as uo, useInputProps as Ms, Input as kr, Popover as ir, Alert as Nr, Stepper as Mr, Group as gt, Button as mt, TextInput as Oi, NumberInput as Mi, Checkbox as hr, Textarea as Ai, createSafeContext as As, rem as At, Table as Es, ScrollArea as Rs, TableThead as js, TableTr as It, PopoverTarget as Ei, PopoverDropdown as Ri, Stack as Yn, TableTfoot as Ts, Center as Nt, Loader as $s, Text as ar, parseThemeColor as Ns, TableTh as dr, Flex as Ls, ActionIcon as Ar, TableTd as zn, Collapse as Is, useMantineTheme as ji, Pagination as Bs, useDirection as Ys, Menu as Mt, MenuTarget as zs, MenuDropdown as Fs, MenuItem as Ws, Skeleton as Lt, Tabs as Sn, Modal as hn, Title as Us } from "@mantine/core";
|
|
4
4
|
import { useForm as Ti } from "@mantine/form";
|
|
5
5
|
import { IconCaretDownFilled as qs, IconPencil as Vs, IconTrash as Hs, IconRefresh as Gs, IconInfoCircle as Qs } from "@tabler/icons-react";
|
|
6
6
|
import { useUncontrolled as $i, clamp as Zs, useDidUpdate as Ks, useClickOutside as Ni, useMergedRef as ho, useLocalStorage as Fn, useMediaQuery as Js, useDisclosure as Xs, useTimeout as fo } from "@mantine/hooks";
|
|
7
7
|
function Li(t) {
|
|
8
8
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
9
9
|
}
|
|
10
|
-
var vr = { exports: {} },
|
|
10
|
+
var vr = { exports: {} }, dn = {};
|
|
11
11
|
var po;
|
|
12
12
|
function ea() {
|
|
13
|
-
if (po) return
|
|
13
|
+
if (po) return dn;
|
|
14
14
|
po = 1;
|
|
15
15
|
var t = Yt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
16
|
-
return
|
|
16
|
+
return dn.c = function(e) {
|
|
17
17
|
return t.H.useMemoCache(e);
|
|
18
|
-
},
|
|
18
|
+
}, dn;
|
|
19
19
|
}
|
|
20
20
|
var fn = {};
|
|
21
21
|
var go;
|
|
@@ -127,9 +127,9 @@ function Dn(t, e) {
|
|
|
127
127
|
return t;
|
|
128
128
|
const r = bo(t) && bo(e);
|
|
129
129
|
if (!r && !(kn(t) && kn(e))) return e;
|
|
130
|
-
const i = (r ? t : Object.keys(t)).length, u = r ? e : Object.keys(e),
|
|
130
|
+
const i = (r ? t : Object.keys(t)).length, u = r ? e : Object.keys(e), d = u.length, a = r ? new Array(d) : {};
|
|
131
131
|
let g = 0;
|
|
132
|
-
for (let y = 0; y <
|
|
132
|
+
for (let y = 0; y < d; y++) {
|
|
133
133
|
const _ = r ? y : u[y], P = t[_], C = e[_];
|
|
134
134
|
if (P === C) {
|
|
135
135
|
a[_] = P, (r ? y < i : aa.call(t, _)) && g++;
|
|
@@ -142,7 +142,7 @@ function Dn(t, e) {
|
|
|
142
142
|
const S = Dn(P, C);
|
|
143
143
|
a[_] = S, S === P && g++;
|
|
144
144
|
}
|
|
145
|
-
return i ===
|
|
145
|
+
return i === d && g === i ? t : a;
|
|
146
146
|
}
|
|
147
147
|
function Rr(t, e) {
|
|
148
148
|
if (!e || Object.keys(t).length !== Object.keys(e).length)
|
|
@@ -247,7 +247,7 @@ function xo() {
|
|
|
247
247
|
}, r;
|
|
248
248
|
}
|
|
249
249
|
var ua = ia;
|
|
250
|
-
function
|
|
250
|
+
function ha() {
|
|
251
251
|
let t = [], e = 0, r = (a) => {
|
|
252
252
|
a();
|
|
253
253
|
}, n = (a) => {
|
|
@@ -257,7 +257,7 @@ function da() {
|
|
|
257
257
|
e ? t.push(a) : i(() => {
|
|
258
258
|
r(a);
|
|
259
259
|
});
|
|
260
|
-
},
|
|
260
|
+
}, d = () => {
|
|
261
261
|
const a = t;
|
|
262
262
|
t = [], a.length && i(() => {
|
|
263
263
|
n(() => {
|
|
@@ -274,7 +274,7 @@ function da() {
|
|
|
274
274
|
try {
|
|
275
275
|
g = a();
|
|
276
276
|
} finally {
|
|
277
|
-
e--, e ||
|
|
277
|
+
e--, e || d();
|
|
278
278
|
}
|
|
279
279
|
return g;
|
|
280
280
|
},
|
|
@@ -306,7 +306,7 @@ function da() {
|
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
}
|
|
309
|
-
var Ir =
|
|
309
|
+
var Ir = ha(), da = class extends Lr {
|
|
310
310
|
#t = !0;
|
|
311
311
|
#e;
|
|
312
312
|
#r;
|
|
@@ -337,7 +337,7 @@ var Ir = da(), ha = class extends Lr {
|
|
|
337
337
|
isOnline() {
|
|
338
338
|
return this.#t;
|
|
339
339
|
}
|
|
340
|
-
}, fa = new
|
|
340
|
+
}, fa = new da();
|
|
341
341
|
function pa(t) {
|
|
342
342
|
return (t ?? "online") === "online" ? fa.isOnline() : !0;
|
|
343
343
|
}
|
|
@@ -365,7 +365,7 @@ var ma = class extends Lr {
|
|
|
365
365
|
#s;
|
|
366
366
|
#a;
|
|
367
367
|
#g;
|
|
368
|
-
#
|
|
368
|
+
#d;
|
|
369
369
|
// This property keeps track of the last query with defined data.
|
|
370
370
|
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
371
371
|
#f;
|
|
@@ -377,7 +377,7 @@ var ma = class extends Lr {
|
|
|
377
377
|
this.refetch = this.refetch.bind(this);
|
|
378
378
|
}
|
|
379
379
|
onSubscribe() {
|
|
380
|
-
this.listeners.size === 1 && (this.#e.addObserver(this), Co(this.#e, this.options) ? this.#
|
|
380
|
+
this.listeners.size === 1 && (this.#e.addObserver(this), Co(this.#e, this.options) ? this.#h() : this.updateResult(), this.#b());
|
|
381
381
|
}
|
|
382
382
|
onUnsubscribe() {
|
|
383
383
|
this.hasListeners() || this.destroy();
|
|
@@ -416,7 +416,7 @@ var ma = class extends Lr {
|
|
|
416
416
|
r,
|
|
417
417
|
this.options,
|
|
418
418
|
e
|
|
419
|
-
) && this.#
|
|
419
|
+
) && this.#h(), this.updateResult(), n && (this.#e !== r || at(this.options.enabled, this.#e) !== at(e.enabled, this.#e) || sr(this.options.staleTime, this.#e) !== sr(e.staleTime, this.#e)) && this.#m();
|
|
420
420
|
const i = this.#y();
|
|
421
421
|
n && (this.#e !== r || at(this.options.enabled, this.#e) !== at(e.enabled, this.#e) || i !== this.#l) && this.#v(i);
|
|
422
422
|
}
|
|
@@ -452,12 +452,12 @@ var ma = class extends Lr {
|
|
|
452
452
|
return r.fetch().then(() => this.createResult(r, e));
|
|
453
453
|
}
|
|
454
454
|
fetch(t) {
|
|
455
|
-
return this.#
|
|
455
|
+
return this.#h({
|
|
456
456
|
...t,
|
|
457
457
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
458
458
|
}).then(() => (this.updateResult(), this.#n));
|
|
459
459
|
}
|
|
460
|
-
#
|
|
460
|
+
#h(t) {
|
|
461
461
|
this.#x();
|
|
462
462
|
let e = this.#e.fetch(
|
|
463
463
|
this.options,
|
|
@@ -483,7 +483,7 @@ var ma = class extends Lr {
|
|
|
483
483
|
}
|
|
484
484
|
#v(t) {
|
|
485
485
|
this.#_(), this.#l = t, !(lr || at(this.options.enabled, this.#e) === !1 || !yo(this.#l) || this.#l === 0) && (this.#u = br.setInterval(() => {
|
|
486
|
-
(this.options.refetchIntervalInBackground || ca.isFocused()) && this.#
|
|
486
|
+
(this.options.refetchIntervalInBackground || ca.isFocused()) && this.#h();
|
|
487
487
|
}, this.#l));
|
|
488
488
|
}
|
|
489
489
|
#b() {
|
|
@@ -496,7 +496,7 @@ var ma = class extends Lr {
|
|
|
496
496
|
this.#u && (br.clearInterval(this.#u), this.#u = void 0);
|
|
497
497
|
}
|
|
498
498
|
createResult(t, e) {
|
|
499
|
-
const r = this.#e, n = this.options, i = this.#n, u = this.#o,
|
|
499
|
+
const r = this.#e, n = this.options, i = this.#n, u = this.#o, d = this.#i, g = t !== r ? t.state : this.#r, { state: y } = t;
|
|
500
500
|
let _ = { ...y }, P = !1, C;
|
|
501
501
|
if (e._optimisticResults) {
|
|
502
502
|
const V = this.hasListeners(), q = !V && Co(t, e), G = V && So(t, r, e, n);
|
|
@@ -510,7 +510,7 @@ var ma = class extends Lr {
|
|
|
510
510
|
let N = !1;
|
|
511
511
|
if (e.placeholderData !== void 0 && C === void 0 && O === "pending") {
|
|
512
512
|
let V;
|
|
513
|
-
i?.isPlaceholderData && e.placeholderData ===
|
|
513
|
+
i?.isPlaceholderData && e.placeholderData === d?.placeholderData ? (V = i.data, N = !0) : V = typeof e.placeholderData == "function" ? e.placeholderData(
|
|
514
514
|
this.#f?.state.data,
|
|
515
515
|
this.#f
|
|
516
516
|
) : e.placeholderData, V !== void 0 && (O = "success", C = _o(
|
|
@@ -521,14 +521,14 @@ var ma = class extends Lr {
|
|
|
521
521
|
}
|
|
522
522
|
if (e.select && C !== void 0 && !N)
|
|
523
523
|
if (i && C === u?.data && e.select === this.#g)
|
|
524
|
-
C = this.#
|
|
524
|
+
C = this.#d;
|
|
525
525
|
else
|
|
526
526
|
try {
|
|
527
|
-
this.#g = e.select, C = e.select(C), C = _o(i?.data, C, e), this.#
|
|
527
|
+
this.#g = e.select, C = e.select(C), C = _o(i?.data, C, e), this.#d = C, this.#a = null;
|
|
528
528
|
} catch (V) {
|
|
529
529
|
this.#a = V;
|
|
530
530
|
}
|
|
531
|
-
this.#a && (S = this.#a, C = this.#
|
|
531
|
+
this.#a && (S = this.#a, C = this.#d, k = Date.now(), O = "error");
|
|
532
532
|
const I = _.fetchStatus === "fetching", Y = O === "pending", U = O === "error", W = Y && I, J = C !== void 0, K = {
|
|
533
533
|
status: O,
|
|
534
534
|
fetchStatus: _.fetchStatus,
|
|
@@ -592,8 +592,8 @@ var ma = class extends Lr {
|
|
|
592
592
|
const u = new Set(
|
|
593
593
|
i ?? this.#p
|
|
594
594
|
);
|
|
595
|
-
return this.options.throwOnError && u.add("error"), Object.keys(this.#n).some((
|
|
596
|
-
const a =
|
|
595
|
+
return this.options.throwOnError && u.add("error"), Object.keys(this.#n).some((d) => {
|
|
596
|
+
const a = d;
|
|
597
597
|
return this.#n[a] !== t[a] && u.has(a);
|
|
598
598
|
});
|
|
599
599
|
};
|
|
@@ -745,8 +745,8 @@ function _a() {
|
|
|
745
745
|
Do = 1;
|
|
746
746
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
747
747
|
function r(n, i, u) {
|
|
748
|
-
var
|
|
749
|
-
if (u !== void 0 && (
|
|
748
|
+
var d = null;
|
|
749
|
+
if (u !== void 0 && (d = "" + u), i.key !== void 0 && (d = "" + i.key), "key" in i) {
|
|
750
750
|
u = {};
|
|
751
751
|
for (var a in i)
|
|
752
752
|
a !== "key" && (u[a] = i[a]);
|
|
@@ -754,7 +754,7 @@ function _a() {
|
|
|
754
754
|
return i = u.ref, {
|
|
755
755
|
$$typeof: t,
|
|
756
756
|
type: n,
|
|
757
|
-
key:
|
|
757
|
+
key: d,
|
|
758
758
|
ref: i !== void 0 ? i : null,
|
|
759
759
|
props: u
|
|
760
760
|
};
|
|
@@ -846,7 +846,7 @@ function xa() {
|
|
|
846
846
|
function u() {
|
|
847
847
|
return Error("react-stack-top-frame");
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function d(s) {
|
|
850
850
|
if (re.call(s, "key")) {
|
|
851
851
|
var v = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
852
852
|
if (v && v.isReactWarning) return !1;
|
|
@@ -935,7 +935,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
935
935
|
X
|
|
936
936
|
), f[X + R] = !0);
|
|
937
937
|
}
|
|
938
|
-
if (X = null, E !== void 0 && (r(E), X = "" + E),
|
|
938
|
+
if (X = null, E !== void 0 && (r(E), X = "" + E), d(v) && (r(v.key), X = "" + v.key), "key" in v) {
|
|
939
939
|
E = {};
|
|
940
940
|
for (var ie in v)
|
|
941
941
|
ie !== "key" && (E[ie] = v[ie]);
|
|
@@ -966,7 +966,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
966
966
|
return s();
|
|
967
967
|
}
|
|
968
968
|
};
|
|
969
|
-
var b, c = {},
|
|
969
|
+
var b, c = {}, h = S.react_stack_bottom_frame.bind(
|
|
970
970
|
S,
|
|
971
971
|
u
|
|
972
972
|
)(), m = x(n(u)), f = {};
|
|
@@ -977,7 +977,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
977
977
|
v,
|
|
978
978
|
E,
|
|
979
979
|
!1,
|
|
980
|
-
R ? Error("react-stack-top-frame") :
|
|
980
|
+
R ? Error("react-stack-top-frame") : h,
|
|
981
981
|
R ? x(n(s)) : m
|
|
982
982
|
);
|
|
983
983
|
}, Gt.jsxs = function(s, v, E) {
|
|
@@ -987,7 +987,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
987
987
|
v,
|
|
988
988
|
E,
|
|
989
989
|
!0,
|
|
990
|
-
R ? Error("react-stack-top-frame") :
|
|
990
|
+
R ? Error("react-stack-top-frame") : h,
|
|
991
991
|
R ? x(n(s)) : m
|
|
992
992
|
);
|
|
993
993
|
};
|
|
@@ -1051,18 +1051,18 @@ function Ta(t, e, r) {
|
|
|
1051
1051
|
throw new Error(
|
|
1052
1052
|
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
|
1053
1053
|
);
|
|
1054
|
-
const n = Sa(), i = Pa(), u = Yi(),
|
|
1054
|
+
const n = Sa(), i = Pa(), u = Yi(), d = u.defaultQueryOptions(t);
|
|
1055
1055
|
u.getDefaultOptions().queries?._experimental_beforeQuery?.(
|
|
1056
|
-
|
|
1057
|
-
), process.env.NODE_ENV !== "production" && (
|
|
1058
|
-
`[${
|
|
1059
|
-
)),
|
|
1060
|
-
const a = !u.getQueryCache().get(
|
|
1056
|
+
d
|
|
1057
|
+
), process.env.NODE_ENV !== "production" && (d.queryFn || console.error(
|
|
1058
|
+
`[${d.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
|
|
1059
|
+
)), d._optimisticResults = n ? "isRestoring" : "optimistic", Ea(d), Oa(d, i), Ma(i);
|
|
1060
|
+
const a = !u.getQueryCache().get(d.queryHash), [g] = $e.useState(
|
|
1061
1061
|
() => new e(
|
|
1062
1062
|
u,
|
|
1063
|
-
|
|
1063
|
+
d
|
|
1064
1064
|
)
|
|
1065
|
-
), y = g.getOptimisticResult(
|
|
1065
|
+
), y = g.getOptimisticResult(d), _ = !n && t.subscribed !== !1;
|
|
1066
1066
|
if ($e.useSyncExternalStore(
|
|
1067
1067
|
$e.useCallback(
|
|
1068
1068
|
(P) => {
|
|
@@ -1074,29 +1074,29 @@ function Ta(t, e, r) {
|
|
|
1074
1074
|
() => g.getCurrentResult(),
|
|
1075
1075
|
() => g.getCurrentResult()
|
|
1076
1076
|
), $e.useEffect(() => {
|
|
1077
|
-
g.setOptions(
|
|
1078
|
-
}, [
|
|
1079
|
-
throw Oo(
|
|
1077
|
+
g.setOptions(d);
|
|
1078
|
+
}, [d, g]), ja(d, y))
|
|
1079
|
+
throw Oo(d, g, i);
|
|
1080
1080
|
if (Aa({
|
|
1081
1081
|
result: y,
|
|
1082
1082
|
errorResetBoundary: i,
|
|
1083
|
-
throwOnError:
|
|
1084
|
-
query: u.getQueryCache().get(
|
|
1085
|
-
suspense:
|
|
1083
|
+
throwOnError: d.throwOnError,
|
|
1084
|
+
query: u.getQueryCache().get(d.queryHash),
|
|
1085
|
+
suspense: d.suspense
|
|
1086
1086
|
}))
|
|
1087
1087
|
throw y.error;
|
|
1088
1088
|
return u.getDefaultOptions().queries?._experimental_afterQuery?.(
|
|
1089
|
-
|
|
1089
|
+
d,
|
|
1090
1090
|
y
|
|
1091
|
-
),
|
|
1091
|
+
), d.experimental_prefetchInRender && !lr && Ra(y, n) && (a ? (
|
|
1092
1092
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
1093
|
-
Oo(
|
|
1093
|
+
Oo(d, g, i)
|
|
1094
1094
|
) : (
|
|
1095
1095
|
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
1096
|
-
u.getQueryCache().get(
|
|
1096
|
+
u.getQueryCache().get(d.queryHash)?.promise
|
|
1097
1097
|
))?.catch(Er).finally(() => {
|
|
1098
1098
|
g.updateResult();
|
|
1099
|
-
}),
|
|
1099
|
+
}), d.notifyOnChangeProps ? y : g.trackResult(y);
|
|
1100
1100
|
}
|
|
1101
1101
|
function Wi(t, e) {
|
|
1102
1102
|
return Ta(t, ma);
|
|
@@ -1113,14 +1113,14 @@ function Un(t, e) {
|
|
|
1113
1113
|
}, [n, t]);
|
|
1114
1114
|
const i = $e.useSyncExternalStore(
|
|
1115
1115
|
$e.useCallback(
|
|
1116
|
-
(
|
|
1116
|
+
(d) => n.subscribe(Ir.batchCalls(d)),
|
|
1117
1117
|
[n]
|
|
1118
1118
|
),
|
|
1119
1119
|
() => n.getCurrentResult(),
|
|
1120
1120
|
() => n.getCurrentResult()
|
|
1121
1121
|
), u = $e.useCallback(
|
|
1122
|
-
(
|
|
1123
|
-
n.mutate(
|
|
1122
|
+
(d, a) => {
|
|
1123
|
+
n.mutate(d, a).catch(Er);
|
|
1124
1124
|
},
|
|
1125
1125
|
[n]
|
|
1126
1126
|
);
|
|
@@ -1155,8 +1155,8 @@ function $a() {
|
|
|
1155
1155
|
Ao = 1;
|
|
1156
1156
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
1157
1157
|
function r(n, i, u) {
|
|
1158
|
-
var
|
|
1159
|
-
if (u !== void 0 && (
|
|
1158
|
+
var d = null;
|
|
1159
|
+
if (u !== void 0 && (d = "" + u), i.key !== void 0 && (d = "" + i.key), "key" in i) {
|
|
1160
1160
|
u = {};
|
|
1161
1161
|
for (var a in i)
|
|
1162
1162
|
a !== "key" && (u[a] = i[a]);
|
|
@@ -1164,7 +1164,7 @@ function $a() {
|
|
|
1164
1164
|
return i = u.ref, {
|
|
1165
1165
|
$$typeof: t,
|
|
1166
1166
|
type: n,
|
|
1167
|
-
key:
|
|
1167
|
+
key: d,
|
|
1168
1168
|
ref: i !== void 0 ? i : null,
|
|
1169
1169
|
props: u
|
|
1170
1170
|
};
|
|
@@ -1256,7 +1256,7 @@ function Na() {
|
|
|
1256
1256
|
function u() {
|
|
1257
1257
|
return Error("react-stack-top-frame");
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1259
|
+
function d(f) {
|
|
1260
1260
|
if (se.call(f, "key")) {
|
|
1261
1261
|
var s = Object.getOwnPropertyDescriptor(f, "key").get;
|
|
1262
1262
|
if (s && s.isReactWarning) return !1;
|
|
@@ -1344,7 +1344,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1344
1344
|
H
|
|
1345
1345
|
), m[H + E] = !0);
|
|
1346
1346
|
}
|
|
1347
|
-
if (H = null, v !== void 0 && (r(v), H = "" + v),
|
|
1347
|
+
if (H = null, v !== void 0 && (r(v), H = "" + v), d(s) && (r(s.key), H = "" + s.key), "key" in s) {
|
|
1348
1348
|
v = {};
|
|
1349
1349
|
for (var oe in s)
|
|
1350
1350
|
oe !== "key" && (v[oe] = s[oe]);
|
|
@@ -1377,7 +1377,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1377
1377
|
var x, b = {}, c = C.react_stack_bottom_frame.bind(
|
|
1378
1378
|
C,
|
|
1379
1379
|
u
|
|
1380
|
-
)(),
|
|
1380
|
+
)(), h = D(n(u)), m = {};
|
|
1381
1381
|
_r.Fragment = O, _r.jsx = function(f, s, v, E, R) {
|
|
1382
1382
|
var Q = 1e4 > F.recentlyCreatedOwnerStacks++;
|
|
1383
1383
|
return _(
|
|
@@ -1388,7 +1388,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1388
1388
|
E,
|
|
1389
1389
|
R,
|
|
1390
1390
|
Q ? Error("react-stack-top-frame") : c,
|
|
1391
|
-
Q ? D(n(f)) :
|
|
1391
|
+
Q ? D(n(f)) : h
|
|
1392
1392
|
);
|
|
1393
1393
|
}, _r.jsxs = function(f, s, v, E, R) {
|
|
1394
1394
|
var Q = 1e4 > F.recentlyCreatedOwnerStacks++;
|
|
@@ -1400,7 +1400,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1400
1400
|
E,
|
|
1401
1401
|
R,
|
|
1402
1402
|
Q ? Error("react-stack-top-frame") : c,
|
|
1403
|
-
Q ? D(n(f)) :
|
|
1403
|
+
Q ? D(n(f)) : h
|
|
1404
1404
|
);
|
|
1405
1405
|
};
|
|
1406
1406
|
})()), _r;
|
|
@@ -1449,7 +1449,7 @@ function za() {
|
|
|
1449
1449
|
for (var t = [], e = [], r = typeof Uint8Array < "u" ? Uint8Array : Array, n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", i = 0, u = n.length; i < u; ++i)
|
|
1450
1450
|
t[i] = n[i], e[n.charCodeAt(i)] = i;
|
|
1451
1451
|
e[45] = 62, e[95] = 63;
|
|
1452
|
-
function
|
|
1452
|
+
function d(S) {
|
|
1453
1453
|
var k = S.length;
|
|
1454
1454
|
if (k % 4 > 0)
|
|
1455
1455
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
@@ -1459,14 +1459,14 @@ function za() {
|
|
|
1459
1459
|
return [O, N];
|
|
1460
1460
|
}
|
|
1461
1461
|
function a(S) {
|
|
1462
|
-
var k =
|
|
1462
|
+
var k = d(S), O = k[0], N = k[1];
|
|
1463
1463
|
return (O + N) * 3 / 4 - N;
|
|
1464
1464
|
}
|
|
1465
1465
|
function g(S, k, O) {
|
|
1466
1466
|
return (k + O) * 3 / 4 - O;
|
|
1467
1467
|
}
|
|
1468
1468
|
function y(S) {
|
|
1469
|
-
var k, O =
|
|
1469
|
+
var k, O = d(S), N = O[0], I = O[1], Y = new r(g(S, N, I)), U = 0, W = I > 0 ? N - 4 : N, J;
|
|
1470
1470
|
for (J = 0; J < W; J += 4)
|
|
1471
1471
|
k = e[S.charCodeAt(J)] << 18 | e[S.charCodeAt(J + 1)] << 12 | e[S.charCodeAt(J + 2)] << 6 | e[S.charCodeAt(J + 3)], Y[U++] = k >> 16 & 255, Y[U++] = k >> 8 & 255, Y[U++] = k & 255;
|
|
1472
1472
|
return I === 2 && (k = e[S.charCodeAt(J)] << 2 | e[S.charCodeAt(J + 1)] >> 4, Y[U++] = k & 255), I === 1 && (k = e[S.charCodeAt(J)] << 10 | e[S.charCodeAt(J + 1)] << 4 | e[S.charCodeAt(J + 2)] >> 2, Y[U++] = k >> 8 & 255, Y[U++] = k & 255), Y;
|
|
@@ -1494,24 +1494,24 @@ var yn = {};
|
|
|
1494
1494
|
var Bo;
|
|
1495
1495
|
function Fa() {
|
|
1496
1496
|
return Bo || (Bo = 1, yn.read = function(t, e, r, n, i) {
|
|
1497
|
-
var u,
|
|
1497
|
+
var u, d, a = i * 8 - n - 1, g = (1 << a) - 1, y = g >> 1, _ = -7, P = r ? i - 1 : 0, C = r ? -1 : 1, S = t[e + P];
|
|
1498
1498
|
for (P += C, u = S & (1 << -_) - 1, S >>= -_, _ += a; _ > 0; u = u * 256 + t[e + P], P += C, _ -= 8)
|
|
1499
1499
|
;
|
|
1500
|
-
for (
|
|
1500
|
+
for (d = u & (1 << -_) - 1, u >>= -_, _ += n; _ > 0; d = d * 256 + t[e + P], P += C, _ -= 8)
|
|
1501
1501
|
;
|
|
1502
1502
|
if (u === 0)
|
|
1503
1503
|
u = 1 - y;
|
|
1504
1504
|
else {
|
|
1505
1505
|
if (u === g)
|
|
1506
|
-
return
|
|
1507
|
-
|
|
1506
|
+
return d ? NaN : (S ? -1 : 1) * (1 / 0);
|
|
1507
|
+
d = d + Math.pow(2, n), u = u - y;
|
|
1508
1508
|
}
|
|
1509
|
-
return (S ? -1 : 1) *
|
|
1509
|
+
return (S ? -1 : 1) * d * Math.pow(2, u - n);
|
|
1510
1510
|
}, yn.write = function(t, e, r, n, i, u) {
|
|
1511
|
-
var
|
|
1512
|
-
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0,
|
|
1511
|
+
var d, a, g, y = u * 8 - i - 1, _ = (1 << y) - 1, P = _ >> 1, C = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, S = n ? 0 : u - 1, k = n ? 1 : -1, O = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
1512
|
+
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, d = _) : (d = Math.floor(Math.log(e) / Math.LN2), e * (g = Math.pow(2, -d)) < 1 && (d--, g *= 2), d + P >= 1 ? e += C / g : e += C * Math.pow(2, 1 - P), e * g >= 2 && (d++, g /= 2), d + P >= _ ? (a = 0, d = _) : d + P >= 1 ? (a = (e * g - 1) * Math.pow(2, i), d = d + P) : (a = e * Math.pow(2, P - 1) * Math.pow(2, i), d = 0)); i >= 8; t[r + S] = a & 255, S += k, a /= 256, i -= 8)
|
|
1513
1513
|
;
|
|
1514
|
-
for (
|
|
1514
|
+
for (d = d << i | a, y += i; y > 0; t[r + S] = d & 255, S += k, d /= 256, y -= 8)
|
|
1515
1515
|
;
|
|
1516
1516
|
t[r + S - k] |= O * 128;
|
|
1517
1517
|
}), yn;
|
|
@@ -1545,7 +1545,7 @@ function Ua() {
|
|
|
1545
1545
|
function u() {
|
|
1546
1546
|
return a.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function d(o, l) {
|
|
1549
1549
|
if (u() < l)
|
|
1550
1550
|
throw new RangeError("Invalid typed array length");
|
|
1551
1551
|
return a.TYPED_ARRAY_SUPPORT ? (o = new Uint8Array(l), o.__proto__ = a.prototype) : (o === null && (o = new a(l)), o.length = l), o;
|
|
@@ -1583,13 +1583,13 @@ function Ua() {
|
|
|
1583
1583
|
throw new RangeError('"size" argument must not be negative');
|
|
1584
1584
|
}
|
|
1585
1585
|
function _(o, l, p, M) {
|
|
1586
|
-
return y(l), l <= 0 ?
|
|
1586
|
+
return y(l), l <= 0 ? d(o, l) : p !== void 0 ? typeof M == "string" ? d(o, l).fill(p, M) : d(o, l).fill(p) : d(o, l);
|
|
1587
1587
|
}
|
|
1588
1588
|
a.alloc = function(o, l, p) {
|
|
1589
1589
|
return _(null, o, l, p);
|
|
1590
1590
|
};
|
|
1591
1591
|
function P(o, l) {
|
|
1592
|
-
if (y(l), o =
|
|
1592
|
+
if (y(l), o = d(o, l < 0 ? 0 : N(l) | 0), !a.TYPED_ARRAY_SUPPORT)
|
|
1593
1593
|
for (var p = 0; p < l; ++p)
|
|
1594
1594
|
o[p] = 0;
|
|
1595
1595
|
return o;
|
|
@@ -1603,13 +1603,13 @@ function Ua() {
|
|
|
1603
1603
|
if ((typeof p != "string" || p === "") && (p = "utf8"), !a.isEncoding(p))
|
|
1604
1604
|
throw new TypeError('"encoding" must be a valid string encoding');
|
|
1605
1605
|
var M = Y(l, p) | 0;
|
|
1606
|
-
o =
|
|
1606
|
+
o = d(o, M);
|
|
1607
1607
|
var T = o.write(l, p);
|
|
1608
1608
|
return T !== M && (o = o.slice(0, T)), o;
|
|
1609
1609
|
}
|
|
1610
1610
|
function S(o, l) {
|
|
1611
1611
|
var p = l.length < 0 ? 0 : N(l.length) | 0;
|
|
1612
|
-
o =
|
|
1612
|
+
o = d(o, p);
|
|
1613
1613
|
for (var M = 0; M < p; M += 1)
|
|
1614
1614
|
o[M] = l[M] & 255;
|
|
1615
1615
|
return o;
|
|
@@ -1624,11 +1624,11 @@ function Ua() {
|
|
|
1624
1624
|
function O(o, l) {
|
|
1625
1625
|
if (a.isBuffer(l)) {
|
|
1626
1626
|
var p = N(l.length) | 0;
|
|
1627
|
-
return o =
|
|
1627
|
+
return o = d(o, p), o.length === 0 || l.copy(o, 0, 0, p), o;
|
|
1628
1628
|
}
|
|
1629
1629
|
if (l) {
|
|
1630
1630
|
if (typeof ArrayBuffer < "u" && l.buffer instanceof ArrayBuffer || "length" in l)
|
|
1631
|
-
return typeof l.length != "number" || le(l.length) ?
|
|
1631
|
+
return typeof l.length != "number" || le(l.length) ? d(o, 0) : S(o, l);
|
|
1632
1632
|
if (l.type === "Buffer" && n(l.data))
|
|
1633
1633
|
return S(o, l.data);
|
|
1634
1634
|
}
|
|
@@ -1737,7 +1737,7 @@ function Ua() {
|
|
|
1737
1737
|
return c(this, l, p);
|
|
1738
1738
|
case "latin1":
|
|
1739
1739
|
case "binary":
|
|
1740
|
-
return
|
|
1740
|
+
return h(this, l, p);
|
|
1741
1741
|
case "base64":
|
|
1742
1742
|
return re(this, l, p);
|
|
1743
1743
|
case "ucs2":
|
|
@@ -1797,9 +1797,9 @@ function Ua() {
|
|
|
1797
1797
|
if (l >= p)
|
|
1798
1798
|
return 1;
|
|
1799
1799
|
if (l >>>= 0, p >>>= 0, M >>>= 0, T >>>= 0, this === o) return 0;
|
|
1800
|
-
for (var z = T - M, ne = p - l, ue = Math.min(z, ne),
|
|
1801
|
-
if (he
|
|
1802
|
-
z = he
|
|
1800
|
+
for (var z = T - M, ne = p - l, ue = Math.min(z, ne), de = this.slice(M, T), te = o.slice(l, p), he = 0; he < ue; ++he)
|
|
1801
|
+
if (de[he] !== te[he]) {
|
|
1802
|
+
z = de[he], ne = te[he];
|
|
1803
1803
|
break;
|
|
1804
1804
|
}
|
|
1805
1805
|
return z < ne ? -1 : ne < z ? 1 : 0;
|
|
@@ -1825,21 +1825,21 @@ function Ua() {
|
|
|
1825
1825
|
return -1;
|
|
1826
1826
|
z = 2, ne /= 2, ue /= 2, p /= 2;
|
|
1827
1827
|
}
|
|
1828
|
-
function
|
|
1828
|
+
function de(xe, _e) {
|
|
1829
1829
|
return z === 1 ? xe[_e] : xe.readUInt16BE(_e * z);
|
|
1830
1830
|
}
|
|
1831
1831
|
var te;
|
|
1832
1832
|
if (T) {
|
|
1833
|
-
var
|
|
1833
|
+
var he = -1;
|
|
1834
1834
|
for (te = p; te < ne; te++)
|
|
1835
|
-
if (
|
|
1836
|
-
if (
|
|
1835
|
+
if (de(o, te) === de(l, he === -1 ? 0 : te - he)) {
|
|
1836
|
+
if (he === -1 && (he = te), te - he + 1 === ue) return he * z;
|
|
1837
1837
|
} else
|
|
1838
|
-
|
|
1838
|
+
he !== -1 && (te -= te - he), he = -1;
|
|
1839
1839
|
} else
|
|
1840
1840
|
for (p + ue > ne && (p = ne - ue), te = p; te >= 0; te--) {
|
|
1841
1841
|
for (var pe = !0, fe = 0; fe < ue; fe++)
|
|
1842
|
-
if (
|
|
1842
|
+
if (de(o, te + fe) !== de(l, fe)) {
|
|
1843
1843
|
pe = !1;
|
|
1844
1844
|
break;
|
|
1845
1845
|
}
|
|
@@ -1935,19 +1935,19 @@ function Ua() {
|
|
|
1935
1935
|
for (var M = [], T = l; T < p; ) {
|
|
1936
1936
|
var z = o[T], ne = null, ue = z > 239 ? 4 : z > 223 ? 3 : z > 191 ? 2 : 1;
|
|
1937
1937
|
if (T + ue <= p) {
|
|
1938
|
-
var
|
|
1938
|
+
var de, te, he, pe;
|
|
1939
1939
|
switch (ue) {
|
|
1940
1940
|
case 1:
|
|
1941
1941
|
z < 128 && (ne = z);
|
|
1942
1942
|
break;
|
|
1943
1943
|
case 2:
|
|
1944
|
-
|
|
1944
|
+
de = o[T + 1], (de & 192) === 128 && (pe = (z & 31) << 6 | de & 63, pe > 127 && (ne = pe));
|
|
1945
1945
|
break;
|
|
1946
1946
|
case 3:
|
|
1947
|
-
|
|
1947
|
+
de = o[T + 1], te = o[T + 2], (de & 192) === 128 && (te & 192) === 128 && (pe = (z & 15) << 12 | (de & 63) << 6 | te & 63, pe > 2047 && (pe < 55296 || pe > 57343) && (ne = pe));
|
|
1948
1948
|
break;
|
|
1949
1949
|
case 4:
|
|
1950
|
-
|
|
1950
|
+
de = o[T + 1], te = o[T + 2], he = o[T + 3], (de & 192) === 128 && (te & 192) === 128 && (he & 192) === 128 && (pe = (z & 15) << 18 | (de & 63) << 12 | (te & 63) << 6 | he & 63, pe > 65535 && pe < 1114112 && (ne = pe));
|
|
1951
1951
|
}
|
|
1952
1952
|
}
|
|
1953
1953
|
ne === null ? (ne = 65533, ue = 1) : ne > 65535 && (ne -= 65536, M.push(ne >>> 10 & 1023 | 55296), ne = 56320 | ne & 1023), M.push(ne), T += ue;
|
|
@@ -1973,7 +1973,7 @@ function Ua() {
|
|
|
1973
1973
|
M += String.fromCharCode(o[T] & 127);
|
|
1974
1974
|
return M;
|
|
1975
1975
|
}
|
|
1976
|
-
function
|
|
1976
|
+
function h(o, l, p) {
|
|
1977
1977
|
var M = "";
|
|
1978
1978
|
p = Math.min(o.length, p);
|
|
1979
1979
|
for (var T = l; T < p; ++T)
|
|
@@ -2333,9 +2333,9 @@ function Va(t, e) {
|
|
|
2333
2333
|
return r;
|
|
2334
2334
|
}
|
|
2335
2335
|
function Ha(t, e, r, n) {
|
|
2336
|
-
var i = arguments.length, u = i < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, r) : n,
|
|
2336
|
+
var i = arguments.length, u = i < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, r) : n, d;
|
|
2337
2337
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") u = Reflect.decorate(t, e, r, n);
|
|
2338
|
-
else for (var a = t.length - 1; a >= 0; a--) (
|
|
2338
|
+
else for (var a = t.length - 1; a >= 0; a--) (d = t[a]) && (u = (i < 3 ? d(u) : i > 3 ? d(e, r, u) : d(e, r)) || u);
|
|
2339
2339
|
return i > 3 && u && Object.defineProperty(e, r, u), u;
|
|
2340
2340
|
}
|
|
2341
2341
|
function Ga(t, e) {
|
|
@@ -2348,23 +2348,23 @@ function Qa(t, e) {
|
|
|
2348
2348
|
}
|
|
2349
2349
|
function Za(t, e, r, n) {
|
|
2350
2350
|
function i(u) {
|
|
2351
|
-
return u instanceof r ? u : new r(function(
|
|
2352
|
-
|
|
2351
|
+
return u instanceof r ? u : new r(function(d) {
|
|
2352
|
+
d(u);
|
|
2353
2353
|
});
|
|
2354
2354
|
}
|
|
2355
|
-
return new (r || (r = Promise))(function(u,
|
|
2355
|
+
return new (r || (r = Promise))(function(u, d) {
|
|
2356
2356
|
function a(_) {
|
|
2357
2357
|
try {
|
|
2358
2358
|
y(n.next(_));
|
|
2359
2359
|
} catch (P) {
|
|
2360
|
-
|
|
2360
|
+
d(P);
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
2363
2363
|
function g(_) {
|
|
2364
2364
|
try {
|
|
2365
2365
|
y(n.throw(_));
|
|
2366
2366
|
} catch (P) {
|
|
2367
|
-
|
|
2367
|
+
d(P);
|
|
2368
2368
|
}
|
|
2369
2369
|
}
|
|
2370
2370
|
function y(_) {
|
|
@@ -2377,10 +2377,10 @@ function Ka(t, e) {
|
|
|
2377
2377
|
var r = { label: 0, sent: function() {
|
|
2378
2378
|
if (u[0] & 1) throw u[1];
|
|
2379
2379
|
return u[1];
|
|
2380
|
-
}, trys: [], ops: [] }, n, i, u,
|
|
2381
|
-
return
|
|
2380
|
+
}, trys: [], ops: [] }, n, i, u, d;
|
|
2381
|
+
return d = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (d[Symbol.iterator] = function() {
|
|
2382
2382
|
return this;
|
|
2383
|
-
}),
|
|
2383
|
+
}), d;
|
|
2384
2384
|
function a(y) {
|
|
2385
2385
|
return function(_) {
|
|
2386
2386
|
return g([y, _]);
|
|
@@ -2452,16 +2452,16 @@ function An(t) {
|
|
|
2452
2452
|
function Ui(t, e) {
|
|
2453
2453
|
var r = typeof Symbol == "function" && t[Symbol.iterator];
|
|
2454
2454
|
if (!r) return t;
|
|
2455
|
-
var n = r.call(t), i, u = [],
|
|
2455
|
+
var n = r.call(t), i, u = [], d;
|
|
2456
2456
|
try {
|
|
2457
2457
|
for (; (e === void 0 || e-- > 0) && !(i = n.next()).done; ) u.push(i.value);
|
|
2458
2458
|
} catch (a) {
|
|
2459
|
-
|
|
2459
|
+
d = { error: a };
|
|
2460
2460
|
} finally {
|
|
2461
2461
|
try {
|
|
2462
2462
|
i && !i.done && (r = n.return) && r.call(n);
|
|
2463
2463
|
} finally {
|
|
2464
|
-
if (
|
|
2464
|
+
if (d) throw d.error;
|
|
2465
2465
|
}
|
|
2466
2466
|
}
|
|
2467
2467
|
return u;
|
|
@@ -2474,8 +2474,8 @@ function el() {
|
|
|
2474
2474
|
function tl() {
|
|
2475
2475
|
for (var t = 0, e = 0, r = arguments.length; e < r; e++) t += arguments[e].length;
|
|
2476
2476
|
for (var n = Array(t), i = 0, e = 0; e < r; e++)
|
|
2477
|
-
for (var u = arguments[e],
|
|
2478
|
-
n[i] = u[
|
|
2477
|
+
for (var u = arguments[e], d = 0, a = u.length; d < a; d++, i++)
|
|
2478
|
+
n[i] = u[d];
|
|
2479
2479
|
return n;
|
|
2480
2480
|
}
|
|
2481
2481
|
function cr(t) {
|
|
@@ -2484,10 +2484,10 @@ function cr(t) {
|
|
|
2484
2484
|
function rl(t, e, r) {
|
|
2485
2485
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
2486
2486
|
var n = r.apply(t, e || []), i, u = [];
|
|
2487
|
-
return i = {},
|
|
2487
|
+
return i = {}, d("next"), d("throw"), d("return"), i[Symbol.asyncIterator] = function() {
|
|
2488
2488
|
return this;
|
|
2489
2489
|
}, i;
|
|
2490
|
-
function
|
|
2490
|
+
function d(C) {
|
|
2491
2491
|
n[C] && (i[C] = function(S) {
|
|
2492
2492
|
return new Promise(function(k, O) {
|
|
2493
2493
|
u.push([C, S, k, O]) > 1 || a(C, S);
|
|
@@ -2522,8 +2522,8 @@ function nl(t) {
|
|
|
2522
2522
|
return this;
|
|
2523
2523
|
}, e;
|
|
2524
2524
|
function n(i, u) {
|
|
2525
|
-
e[i] = t[i] ? function(
|
|
2526
|
-
return (r = !r) ? { value: cr(t[i](
|
|
2525
|
+
e[i] = t[i] ? function(d) {
|
|
2526
|
+
return (r = !r) ? { value: cr(t[i](d)), done: i === "return" } : u ? u(d) : d;
|
|
2527
2527
|
} : u;
|
|
2528
2528
|
}
|
|
2529
2529
|
}
|
|
@@ -2534,16 +2534,16 @@ function ol(t) {
|
|
|
2534
2534
|
return this;
|
|
2535
2535
|
}, r);
|
|
2536
2536
|
function n(u) {
|
|
2537
|
-
r[u] = t[u] && function(
|
|
2537
|
+
r[u] = t[u] && function(d) {
|
|
2538
2538
|
return new Promise(function(a, g) {
|
|
2539
|
-
|
|
2539
|
+
d = t[u](d), i(a, g, d.done, d.value);
|
|
2540
2540
|
});
|
|
2541
2541
|
};
|
|
2542
2542
|
}
|
|
2543
|
-
function i(u,
|
|
2543
|
+
function i(u, d, a, g) {
|
|
2544
2544
|
Promise.resolve(g).then(function(y) {
|
|
2545
2545
|
u({ value: y, done: a });
|
|
2546
|
-
},
|
|
2546
|
+
}, d);
|
|
2547
2547
|
}
|
|
2548
2548
|
}
|
|
2549
2549
|
function il(t, e) {
|
|
@@ -2675,7 +2675,7 @@ function Vi() {
|
|
|
2675
2675
|
], Ke.MAX_HASHABLE_LENGTH = Math.pow(2, 53) - 1), Ke;
|
|
2676
2676
|
}
|
|
2677
2677
|
var Jt = {}, Uo;
|
|
2678
|
-
function
|
|
2678
|
+
function hl() {
|
|
2679
2679
|
if (Uo) return Jt;
|
|
2680
2680
|
Uo = 1, Object.defineProperty(Jt, "__esModule", { value: !0 }), Jt.RawSha256 = void 0;
|
|
2681
2681
|
var t = Vi(), e = (
|
|
@@ -2696,19 +2696,19 @@ function dl() {
|
|
|
2696
2696
|
if (!this.finished) {
|
|
2697
2697
|
var n = this.bytesHashed * 8, i = new DataView(this.buffer.buffer, this.buffer.byteOffset, this.buffer.byteLength), u = this.bufferLength;
|
|
2698
2698
|
if (i.setUint8(this.bufferLength++, 128), u % t.BLOCK_SIZE >= t.BLOCK_SIZE - 8) {
|
|
2699
|
-
for (var
|
|
2700
|
-
i.setUint8(
|
|
2699
|
+
for (var d = this.bufferLength; d < t.BLOCK_SIZE; d++)
|
|
2700
|
+
i.setUint8(d, 0);
|
|
2701
2701
|
this.hashBuffer(), this.bufferLength = 0;
|
|
2702
2702
|
}
|
|
2703
|
-
for (var
|
|
2704
|
-
i.setUint8(
|
|
2703
|
+
for (var d = this.bufferLength; d < t.BLOCK_SIZE - 8; d++)
|
|
2704
|
+
i.setUint8(d, 0);
|
|
2705
2705
|
i.setUint32(t.BLOCK_SIZE - 8, Math.floor(n / 4294967296), !0), i.setUint32(t.BLOCK_SIZE - 4, n), this.hashBuffer(), this.finished = !0;
|
|
2706
2706
|
}
|
|
2707
|
-
for (var a = new Uint8Array(t.DIGEST_LENGTH),
|
|
2708
|
-
a[
|
|
2707
|
+
for (var a = new Uint8Array(t.DIGEST_LENGTH), d = 0; d < 8; d++)
|
|
2708
|
+
a[d * 4] = this.state[d] >>> 24 & 255, a[d * 4 + 1] = this.state[d] >>> 16 & 255, a[d * 4 + 2] = this.state[d] >>> 8 & 255, a[d * 4 + 3] = this.state[d] >>> 0 & 255;
|
|
2709
2709
|
return a;
|
|
2710
2710
|
}, r.prototype.hashBuffer = function() {
|
|
2711
|
-
for (var n = this, i = n.buffer, u = n.state,
|
|
2711
|
+
for (var n = this, i = n.buffer, u = n.state, d = u[0], a = u[1], g = u[2], y = u[3], _ = u[4], P = u[5], C = u[6], S = u[7], k = 0; k < t.BLOCK_SIZE; k++) {
|
|
2712
2712
|
if (k < 16)
|
|
2713
2713
|
this.temp[k] = (i[k * 4] & 255) << 24 | (i[k * 4 + 1] & 255) << 16 | (i[k * 4 + 2] & 255) << 8 | i[k * 4 + 3] & 255;
|
|
2714
2714
|
else {
|
|
@@ -2717,17 +2717,17 @@ function dl() {
|
|
|
2717
2717
|
var I = (O >>> 7 | O << 25) ^ (O >>> 18 | O << 14) ^ O >>> 3;
|
|
2718
2718
|
this.temp[k] = (N + this.temp[k - 7] | 0) + (I + this.temp[k - 16] | 0);
|
|
2719
2719
|
}
|
|
2720
|
-
var Y = (((_ >>> 6 | _ << 26) ^ (_ >>> 11 | _ << 21) ^ (_ >>> 25 | _ << 7)) + (_ & P ^ ~_ & C) | 0) + (S + (t.KEY[k] + this.temp[k] | 0) | 0) | 0, U = ((
|
|
2721
|
-
S = C, C = P, P = _, _ = y + Y | 0, y = g, g = a, a =
|
|
2720
|
+
var Y = (((_ >>> 6 | _ << 26) ^ (_ >>> 11 | _ << 21) ^ (_ >>> 25 | _ << 7)) + (_ & P ^ ~_ & C) | 0) + (S + (t.KEY[k] + this.temp[k] | 0) | 0) | 0, U = ((d >>> 2 | d << 30) ^ (d >>> 13 | d << 19) ^ (d >>> 22 | d << 10)) + (d & a ^ d & g ^ a & g) | 0;
|
|
2721
|
+
S = C, C = P, P = _, _ = y + Y | 0, y = g, g = a, a = d, d = Y + U | 0;
|
|
2722
2722
|
}
|
|
2723
|
-
u[0] +=
|
|
2723
|
+
u[0] += d, u[1] += a, u[2] += g, u[3] += y, u[4] += _, u[5] += P, u[6] += C, u[7] += S;
|
|
2724
2724
|
}, r;
|
|
2725
2725
|
})()
|
|
2726
2726
|
);
|
|
2727
2727
|
return Jt.RawSha256 = e, Jt;
|
|
2728
2728
|
}
|
|
2729
2729
|
var qo = {}, Xt = {};
|
|
2730
|
-
const
|
|
2730
|
+
const dl = (t) => {
|
|
2731
2731
|
const e = [];
|
|
2732
2732
|
for (let r = 0, n = t.length; r < n; r++) {
|
|
2733
2733
|
const i = t.charCodeAt(r);
|
|
@@ -2752,7 +2752,7 @@ const hl = (t) => {
|
|
|
2752
2752
|
const u = t[++r];
|
|
2753
2753
|
e += String.fromCharCode((i & 31) << 6 | u & 63);
|
|
2754
2754
|
} else if (240 <= i && i < 365) {
|
|
2755
|
-
const u = "%" + [i, t[++r], t[++r], t[++r]].map((
|
|
2755
|
+
const u = "%" + [i, t[++r], t[++r], t[++r]].map((d) => d.toString(16)).join("%");
|
|
2756
2756
|
e += decodeURIComponent(u);
|
|
2757
2757
|
} else
|
|
2758
2758
|
e += String.fromCharCode((i & 15) << 12 | (t[++r] & 63) << 6 | t[++r] & 63);
|
|
@@ -2765,7 +2765,7 @@ function pl(t) {
|
|
|
2765
2765
|
function gl(t) {
|
|
2766
2766
|
return new TextDecoder("utf-8").decode(t);
|
|
2767
2767
|
}
|
|
2768
|
-
const ml = (t) => typeof TextEncoder == "function" ? pl(t) :
|
|
2768
|
+
const ml = (t) => typeof TextEncoder == "function" ? pl(t) : dl(t), yl = (t) => typeof TextDecoder == "function" ? gl(t) : fl(t), vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2769
2769
|
__proto__: null,
|
|
2770
2770
|
fromUtf8: ml,
|
|
2771
2771
|
toUtf8: yl
|
|
@@ -2845,10 +2845,10 @@ var Ko;
|
|
|
2845
2845
|
function Dl() {
|
|
2846
2846
|
if (Ko) return Kt;
|
|
2847
2847
|
Ko = 1, Object.defineProperty(Kt, "__esModule", { value: !0 }), Kt.Sha256 = void 0;
|
|
2848
|
-
var t = qi, e = Vi(), r =
|
|
2848
|
+
var t = qi, e = Vi(), r = hl(), n = Sl(), i = (
|
|
2849
2849
|
/** @class */
|
|
2850
2850
|
(function() {
|
|
2851
|
-
function
|
|
2851
|
+
function d(a) {
|
|
2852
2852
|
if (this.hash = new r.RawSha256(), a) {
|
|
2853
2853
|
this.outer = new r.RawSha256();
|
|
2854
2854
|
var g = u(a), y = new Uint8Array(e.BLOCK_SIZE);
|
|
@@ -2860,29 +2860,29 @@ function Dl() {
|
|
|
2860
2860
|
g[_] = 0;
|
|
2861
2861
|
}
|
|
2862
2862
|
}
|
|
2863
|
-
return
|
|
2863
|
+
return d.prototype.update = function(a) {
|
|
2864
2864
|
if (!((0, n.isEmptyData)(a) || this.error))
|
|
2865
2865
|
try {
|
|
2866
2866
|
this.hash.update((0, n.convertToBuffer)(a));
|
|
2867
2867
|
} catch (g) {
|
|
2868
2868
|
this.error = g;
|
|
2869
2869
|
}
|
|
2870
|
-
},
|
|
2870
|
+
}, d.prototype.digestSync = function() {
|
|
2871
2871
|
if (this.error)
|
|
2872
2872
|
throw this.error;
|
|
2873
2873
|
return this.outer ? (this.outer.finished || this.outer.update(this.hash.digest()), this.outer.digest()) : this.hash.digest();
|
|
2874
|
-
},
|
|
2874
|
+
}, d.prototype.digest = function() {
|
|
2875
2875
|
return (0, t.__awaiter)(this, void 0, void 0, function() {
|
|
2876
2876
|
return (0, t.__generator)(this, function(a) {
|
|
2877
2877
|
return [2, this.digestSync()];
|
|
2878
2878
|
});
|
|
2879
2879
|
});
|
|
2880
|
-
},
|
|
2880
|
+
}, d;
|
|
2881
2881
|
})()
|
|
2882
2882
|
);
|
|
2883
2883
|
Kt.Sha256 = i;
|
|
2884
|
-
function u(
|
|
2885
|
-
var a = (0, n.convertToBuffer)(
|
|
2884
|
+
function u(d) {
|
|
2885
|
+
var a = (0, n.convertToBuffer)(d);
|
|
2886
2886
|
if (a.byteLength > e.BLOCK_SIZE) {
|
|
2887
2887
|
var g = new r.RawSha256();
|
|
2888
2888
|
g.update(a), a = g.digest();
|
|
@@ -2910,22 +2910,22 @@ function Ye() {
|
|
|
2910
2910
|
var wt, Pl = 244837814094590, Xo = (Pl & 16777215) == 15715070;
|
|
2911
2911
|
function Ol(t, e, r, n, i, u) {
|
|
2912
2912
|
for (; --u >= 0; ) {
|
|
2913
|
-
var
|
|
2914
|
-
i = Math.floor(
|
|
2913
|
+
var d = e * this[t++] + r[n] + i;
|
|
2914
|
+
i = Math.floor(d / 67108864), r[n++] = d & 67108863;
|
|
2915
2915
|
}
|
|
2916
2916
|
return i;
|
|
2917
2917
|
}
|
|
2918
2918
|
function Ml(t, e, r, n, i, u) {
|
|
2919
|
-
for (var
|
|
2920
|
-
var g = this[t] & 32767, y = this[t++] >> 15, _ = a * g + y *
|
|
2921
|
-
g =
|
|
2919
|
+
for (var d = e & 32767, a = e >> 15; --u >= 0; ) {
|
|
2920
|
+
var g = this[t] & 32767, y = this[t++] >> 15, _ = a * g + y * d;
|
|
2921
|
+
g = d * g + ((_ & 32767) << 15) + r[n] + (i & 1073741823), i = (g >>> 30) + (_ >>> 15) + a * y + (i >>> 30), r[n++] = g & 1073741823;
|
|
2922
2922
|
}
|
|
2923
2923
|
return i;
|
|
2924
2924
|
}
|
|
2925
2925
|
function Al(t, e, r, n, i, u) {
|
|
2926
|
-
for (var
|
|
2927
|
-
var g = this[t] & 16383, y = this[t++] >> 14, _ = a * g + y *
|
|
2928
|
-
g =
|
|
2926
|
+
for (var d = e & 16383, a = e >> 14; --u >= 0; ) {
|
|
2927
|
+
var g = this[t] & 16383, y = this[t++] >> 14, _ = a * g + y * d;
|
|
2928
|
+
g = d * g + ((_ & 16383) << 14) + r[n] + i, i = (g >> 28) + (_ >> 14) + a * y, r[n++] = g & 268435455;
|
|
2929
2929
|
}
|
|
2930
2930
|
return i;
|
|
2931
2931
|
}
|
|
@@ -2973,12 +2973,12 @@ function $l(t, e) {
|
|
|
2973
2973
|
else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");
|
|
2974
2974
|
this.t = 0, this.s = 0;
|
|
2975
2975
|
for (var n = t.length, i = !1, u = 0; --n >= 0; ) {
|
|
2976
|
-
var
|
|
2977
|
-
if (
|
|
2976
|
+
var d = Rl(t, n);
|
|
2977
|
+
if (d < 0) {
|
|
2978
2978
|
t.charAt(n) == "-" && (i = !0);
|
|
2979
2979
|
continue;
|
|
2980
2980
|
}
|
|
2981
|
-
i = !1, u == 0 ? this[this.t++] =
|
|
2981
|
+
i = !1, u == 0 ? this[this.t++] = d : u + r > this.DB ? (this[this.t - 1] |= (d & (1 << this.DB - u) - 1) << u, this[this.t++] = d >> this.DB - u) : this[this.t - 1] |= d << u, u += r, u >= this.DB && (u -= this.DB);
|
|
2982
2982
|
}
|
|
2983
2983
|
this.clamp(), i && ge.ZERO.subTo(this, this);
|
|
2984
2984
|
}
|
|
@@ -2994,10 +2994,10 @@ function Ll(t) {
|
|
|
2994
2994
|
else if (t == 32) e = 5;
|
|
2995
2995
|
else if (t == 4) e = 2;
|
|
2996
2996
|
else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");
|
|
2997
|
-
var r = (1 << e) - 1, n, i = !1, u = "",
|
|
2998
|
-
if (
|
|
2999
|
-
for (a < this.DB && (n = this[
|
|
3000
|
-
a < e ? (n = (this[
|
|
2997
|
+
var r = (1 << e) - 1, n, i = !1, u = "", d = this.t, a = this.DB - d * this.DB % e;
|
|
2998
|
+
if (d-- > 0)
|
|
2999
|
+
for (a < this.DB && (n = this[d] >> a) > 0 && (i = !0, u = ti(n)); d >= 0; )
|
|
3000
|
+
a < e ? (n = (this[d] & (1 << a) - 1) << e - a, n |= this[--d] >> (a += this.DB - e)) : (n = this[d] >> (a -= e) & r, a <= 0 && (a += this.DB, --d)), n > 0 && (i = !0), i && (u += ti(n));
|
|
3001
3001
|
return i ? u : "0";
|
|
3002
3002
|
}
|
|
3003
3003
|
function Il() {
|
|
@@ -3033,11 +3033,11 @@ function Wl(t, e) {
|
|
|
3033
3033
|
e.t = Math.max(this.t - t, 0), e.s = this.s;
|
|
3034
3034
|
}
|
|
3035
3035
|
function Ul(t, e) {
|
|
3036
|
-
var r = t % this.DB, n = this.DB - r, i = (1 << n) - 1, u = Math.floor(t / this.DB),
|
|
3036
|
+
var r = t % this.DB, n = this.DB - r, i = (1 << n) - 1, u = Math.floor(t / this.DB), d = this.s << r & this.DM, a;
|
|
3037
3037
|
for (a = this.t - 1; a >= 0; --a)
|
|
3038
|
-
e[a + u + 1] = this[a] >> n |
|
|
3038
|
+
e[a + u + 1] = this[a] >> n | d, d = (this[a] & i) << r;
|
|
3039
3039
|
for (a = u - 1; a >= 0; --a) e[a] = 0;
|
|
3040
|
-
e[u] =
|
|
3040
|
+
e[u] = d, e.t = this.t + u + 1, e.s = this.s, e.clamp();
|
|
3041
3041
|
}
|
|
3042
3042
|
function ql(t, e) {
|
|
3043
3043
|
e.s = this.s;
|
|
@@ -3048,8 +3048,8 @@ function ql(t, e) {
|
|
|
3048
3048
|
}
|
|
3049
3049
|
var n = t % this.DB, i = this.DB - n, u = (1 << n) - 1;
|
|
3050
3050
|
e[0] = this[r] >> n;
|
|
3051
|
-
for (var
|
|
3052
|
-
e[
|
|
3051
|
+
for (var d = r + 1; d < this.t; ++d)
|
|
3052
|
+
e[d - r - 1] |= (this[d] & u) << i, e[d - r] = this[d] >> n;
|
|
3053
3053
|
n > 0 && (e[this.t - r - 1] |= (this.s & u) << i), e.t = this.t - r, e.clamp();
|
|
3054
3054
|
}
|
|
3055
3055
|
function Vl(t, e) {
|
|
@@ -3089,7 +3089,7 @@ function Ql(t, e, r) {
|
|
|
3089
3089
|
return;
|
|
3090
3090
|
}
|
|
3091
3091
|
r == null && (r = Ye());
|
|
3092
|
-
var u = Ye(),
|
|
3092
|
+
var u = Ye(), d = this.s, a = t.s, g = this.DB - Gn(n[n.t - 1]);
|
|
3093
3093
|
g > 0 ? (n.lShiftTo(g, u), i.lShiftTo(g, r)) : (n.copyTo(u), i.copyTo(r));
|
|
3094
3094
|
var y = u.t, _ = u[y - 1];
|
|
3095
3095
|
if (_ != 0) {
|
|
@@ -3100,7 +3100,7 @@ function Ql(t, e, r) {
|
|
|
3100
3100
|
if ((r[O] += u.am(0, Y, r, N, 0, y)) < Y)
|
|
3101
3101
|
for (u.dlShiftTo(N, I), r.subTo(I, r); r[O] < --Y; ) r.subTo(I, r);
|
|
3102
3102
|
}
|
|
3103
|
-
e != null && (r.drShiftTo(y, e),
|
|
3103
|
+
e != null && (r.drShiftTo(y, e), d != a && ge.ZERO.subTo(e, e)), r.t = y, r.clamp(), g > 0 && r.rShiftTo(g, r), d < 0 && ge.ZERO.subTo(r, r);
|
|
3104
3104
|
}
|
|
3105
3105
|
}
|
|
3106
3106
|
}
|
|
@@ -3181,14 +3181,14 @@ Ft.prototype.reduce = sc;
|
|
|
3181
3181
|
Ft.prototype.mulTo = lc;
|
|
3182
3182
|
Ft.prototype.sqrTo = ac;
|
|
3183
3183
|
function cc(t, e, r) {
|
|
3184
|
-
var n = t.bitLength(), i, u = Hn(1),
|
|
3184
|
+
var n = t.bitLength(), i, u = Hn(1), d = new Ft(e);
|
|
3185
3185
|
if (n <= 0) return u;
|
|
3186
3186
|
n < 18 ? i = 1 : n < 48 ? i = 3 : n < 144 ? i = 4 : n < 768 ? i = 5 : i = 6;
|
|
3187
3187
|
var a = new Array(), g = 3, y = i - 1, _ = (1 << i) - 1;
|
|
3188
|
-
if (a[1] =
|
|
3188
|
+
if (a[1] = d.convert(this), i > 1) {
|
|
3189
3189
|
var P = Ye();
|
|
3190
|
-
for (
|
|
3191
|
-
a[g] = Ye(),
|
|
3190
|
+
for (d.sqrTo(a[1], P); g <= _; )
|
|
3191
|
+
a[g] = Ye(), d.mulTo(P, a[g - 2], a[g]), g += 2;
|
|
3192
3192
|
}
|
|
3193
3193
|
var C = t.t - 1, S, k = !0, O = Ye(), N;
|
|
3194
3194
|
for (n = Gn(t[C]) - 1; C >= 0; ) {
|
|
@@ -3198,13 +3198,13 @@ function cc(t, e, r) {
|
|
|
3198
3198
|
a[S].copyTo(u), k = !1;
|
|
3199
3199
|
else {
|
|
3200
3200
|
for (; g > 1; )
|
|
3201
|
-
|
|
3202
|
-
g > 0 ?
|
|
3201
|
+
d.sqrTo(u, O), d.sqrTo(O, u), g -= 2;
|
|
3202
|
+
g > 0 ? d.sqrTo(u, O) : (N = u, u = O, O = N), d.mulTo(O, a[S], u);
|
|
3203
3203
|
}
|
|
3204
3204
|
for (; C >= 0 && (t[C] & 1 << n) == 0; )
|
|
3205
|
-
|
|
3205
|
+
d.sqrTo(u, O), N = u, u = O, O = N, --n < 0 && (n = this.DB - 1, --C);
|
|
3206
3206
|
}
|
|
3207
|
-
var I =
|
|
3207
|
+
var I = d.revert(u);
|
|
3208
3208
|
return r(null, I), I;
|
|
3209
3209
|
}
|
|
3210
3210
|
ge.prototype.copyTo = jl;
|
|
@@ -3237,7 +3237,7 @@ ge.ZERO = Hn(0);
|
|
|
3237
3237
|
ge.ONE = Hn(1);
|
|
3238
3238
|
function uc(t, e) {
|
|
3239
3239
|
return e = e || {}, new Promise(function(r, n) {
|
|
3240
|
-
var i = new XMLHttpRequest(), u = [],
|
|
3240
|
+
var i = new XMLHttpRequest(), u = [], d = [], a = {}, g = function() {
|
|
3241
3241
|
return { ok: (i.status / 100 | 0) == 2, statusText: i.statusText, status: i.status, url: i.responseURL, text: function() {
|
|
3242
3242
|
return Promise.resolve(i.responseText);
|
|
3243
3243
|
}, json: function() {
|
|
@@ -3247,7 +3247,7 @@ function uc(t, e) {
|
|
|
3247
3247
|
}, clone: g, headers: { keys: function() {
|
|
3248
3248
|
return u;
|
|
3249
3249
|
}, entries: function() {
|
|
3250
|
-
return
|
|
3250
|
+
return d;
|
|
3251
3251
|
}, get: function(_) {
|
|
3252
3252
|
return a[_.toLowerCase()];
|
|
3253
3253
|
}, has: function(_) {
|
|
@@ -3256,21 +3256,21 @@ function uc(t, e) {
|
|
|
3256
3256
|
};
|
|
3257
3257
|
for (var y in i.open(e.method || "get", t, !0), i.onload = function() {
|
|
3258
3258
|
i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(_, P, C) {
|
|
3259
|
-
u.push(P = P.toLowerCase()),
|
|
3259
|
+
u.push(P = P.toLowerCase()), d.push([P, C]), a[P] = a[P] ? a[P] + "," + C : C;
|
|
3260
3260
|
}), r(g());
|
|
3261
3261
|
}, i.onerror = n, i.withCredentials = e.credentials == "include", e.headers) i.setRequestHeader(y, e.headers[y]);
|
|
3262
3262
|
i.send(e.body || null);
|
|
3263
3263
|
});
|
|
3264
3264
|
}
|
|
3265
|
-
const
|
|
3265
|
+
const hc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3266
3266
|
__proto__: null,
|
|
3267
3267
|
default: uc
|
|
3268
|
-
}, Symbol.toStringTag, { value: "Module" })), ri = /* @__PURE__ */ qn(
|
|
3268
|
+
}, Symbol.toStringTag, { value: "Module" })), ri = /* @__PURE__ */ qn(hc);
|
|
3269
3269
|
var ni, oi;
|
|
3270
|
-
function
|
|
3270
|
+
function dc() {
|
|
3271
3271
|
return oi || (oi = 1, ni = self.fetch || (self.fetch = ri.default || ri)), ni;
|
|
3272
3272
|
}
|
|
3273
|
-
|
|
3273
|
+
dc();
|
|
3274
3274
|
var ii = { exports: {} };
|
|
3275
3275
|
var si;
|
|
3276
3276
|
function fc() {
|
|
@@ -3285,24 +3285,24 @@ function fc() {
|
|
|
3285
3285
|
}
|
|
3286
3286
|
})(function() {
|
|
3287
3287
|
function r() {
|
|
3288
|
-
for (var u = 0,
|
|
3288
|
+
for (var u = 0, d = {}; u < arguments.length; u++) {
|
|
3289
3289
|
var a = arguments[u];
|
|
3290
3290
|
for (var g in a)
|
|
3291
|
-
|
|
3291
|
+
d[g] = a[g];
|
|
3292
3292
|
}
|
|
3293
|
-
return
|
|
3293
|
+
return d;
|
|
3294
3294
|
}
|
|
3295
3295
|
function n(u) {
|
|
3296
3296
|
return u.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
|
|
3297
3297
|
}
|
|
3298
3298
|
function i(u) {
|
|
3299
|
-
function
|
|
3299
|
+
function d() {
|
|
3300
3300
|
}
|
|
3301
3301
|
function a(y, _, P) {
|
|
3302
3302
|
if (!(typeof document > "u")) {
|
|
3303
3303
|
P = r({
|
|
3304
3304
|
path: "/"
|
|
3305
|
-
},
|
|
3305
|
+
}, d.defaults, P), typeof P.expires == "number" && (P.expires = new Date(/* @__PURE__ */ new Date() * 1 + P.expires * 864e5)), P.expires = P.expires ? P.expires.toUTCString() : "";
|
|
3306
3306
|
try {
|
|
3307
3307
|
var C = JSON.stringify(_);
|
|
3308
3308
|
/^[\{\[]/.test(C) && (_ = C);
|
|
@@ -3335,23 +3335,23 @@ function fc() {
|
|
|
3335
3335
|
return y ? P[y] : P;
|
|
3336
3336
|
}
|
|
3337
3337
|
}
|
|
3338
|
-
return
|
|
3338
|
+
return d.set = a, d.get = function(y) {
|
|
3339
3339
|
return g(
|
|
3340
3340
|
y,
|
|
3341
3341
|
!1
|
|
3342
3342
|
/* read as raw */
|
|
3343
3343
|
);
|
|
3344
|
-
},
|
|
3344
|
+
}, d.getJSON = function(y) {
|
|
3345
3345
|
return g(
|
|
3346
3346
|
y,
|
|
3347
3347
|
!0
|
|
3348
3348
|
/* read as json */
|
|
3349
3349
|
);
|
|
3350
|
-
},
|
|
3350
|
+
}, d.remove = function(y, _) {
|
|
3351
3351
|
a(y, "", r(_, {
|
|
3352
3352
|
expires: -1
|
|
3353
3353
|
}));
|
|
3354
|
-
},
|
|
3354
|
+
}, d.defaults = {}, d.withConverter = i, d;
|
|
3355
3355
|
}
|
|
3356
3356
|
return i(function() {
|
|
3357
3357
|
});
|
|
@@ -3433,11 +3433,11 @@ function Oc() {
|
|
|
3433
3433
|
(function(r, n) {
|
|
3434
3434
|
t.exports = n();
|
|
3435
3435
|
})(Pc, () => (() => {
|
|
3436
|
-
var r = { 873: (
|
|
3436
|
+
var r = { 873: (d, a) => {
|
|
3437
3437
|
var g, y, _ = (function() {
|
|
3438
3438
|
var P = function(D, x) {
|
|
3439
|
-
var b = D, c = I[x],
|
|
3440
|
-
|
|
3439
|
+
var b = D, c = I[x], h = null, m = 0, f = null, s = [], v = {}, E = function(A, $) {
|
|
3440
|
+
h = (function(j) {
|
|
3441
3441
|
for (var L = new Array(j), B = 0; B < j; B += 1) {
|
|
3442
3442
|
L[B] = new Array(j);
|
|
3443
3443
|
for (var le = 0; le < j; le += 1) L[B][le] = null;
|
|
@@ -3445,33 +3445,33 @@ function Oc() {
|
|
|
3445
3445
|
return L;
|
|
3446
3446
|
})(m = 4 * b + 17), R(0, 0), R(m - 7, 0), R(0, m - 7), Z(), Q(), H(A, $), b >= 7 && X(A), f == null && (f = oe(b, c, s)), ie(f, $);
|
|
3447
3447
|
}, R = function(A, $) {
|
|
3448
|
-
for (var j = -1; j <= 7; j += 1) if (!(A + j <= -1 || m <= A + j)) for (var L = -1; L <= 7; L += 1) $ + L <= -1 || m <= $ + L || (
|
|
3448
|
+
for (var j = -1; j <= 7; j += 1) if (!(A + j <= -1 || m <= A + j)) for (var L = -1; L <= 7; L += 1) $ + L <= -1 || m <= $ + L || (h[A + j][$ + L] = 0 <= j && j <= 6 && (L == 0 || L == 6) || 0 <= L && L <= 6 && (j == 0 || j == 6) || 2 <= j && j <= 4 && 2 <= L && L <= 4);
|
|
3449
3449
|
}, Q = function() {
|
|
3450
|
-
for (var A = 8; A < m - 8; A += 1)
|
|
3451
|
-
for (var $ = 8; $ < m - 8; $ += 1)
|
|
3450
|
+
for (var A = 8; A < m - 8; A += 1) h[A][6] == null && (h[A][6] = A % 2 == 0);
|
|
3451
|
+
for (var $ = 8; $ < m - 8; $ += 1) h[6][$] == null && (h[6][$] = $ % 2 == 0);
|
|
3452
3452
|
}, Z = function() {
|
|
3453
3453
|
for (var A = Y.getPatternPosition(b), $ = 0; $ < A.length; $ += 1) for (var j = 0; j < A.length; j += 1) {
|
|
3454
3454
|
var L = A[$], B = A[j];
|
|
3455
|
-
if (
|
|
3455
|
+
if (h[L][B] == null) for (var le = -2; le <= 2; le += 1) for (var o = -2; o <= 2; o += 1) h[L + le][B + o] = le == -2 || le == 2 || o == -2 || o == 2 || le == 0 && o == 0;
|
|
3456
3456
|
}
|
|
3457
3457
|
}, X = function(A) {
|
|
3458
3458
|
for (var $ = Y.getBCHTypeNumber(b), j = 0; j < 18; j += 1) {
|
|
3459
3459
|
var L = !A && ($ >> j & 1) == 1;
|
|
3460
|
-
|
|
3460
|
+
h[Math.floor(j / 3)][j % 3 + m - 8 - 3] = L;
|
|
3461
3461
|
}
|
|
3462
|
-
for (j = 0; j < 18; j += 1) L = !A && ($ >> j & 1) == 1,
|
|
3462
|
+
for (j = 0; j < 18; j += 1) L = !A && ($ >> j & 1) == 1, h[j % 3 + m - 8 - 3][Math.floor(j / 3)] = L;
|
|
3463
3463
|
}, H = function(A, $) {
|
|
3464
3464
|
for (var j = c << 3 | $, L = Y.getBCHTypeInfo(j), B = 0; B < 15; B += 1) {
|
|
3465
3465
|
var le = !A && (L >> B & 1) == 1;
|
|
3466
|
-
B < 6 ?
|
|
3466
|
+
B < 6 ? h[B][8] = le : B < 8 ? h[B + 1][8] = le : h[m - 15 + B][8] = le;
|
|
3467
3467
|
}
|
|
3468
|
-
for (B = 0; B < 15; B += 1) le = !A && (L >> B & 1) == 1, B < 8 ?
|
|
3469
|
-
|
|
3468
|
+
for (B = 0; B < 15; B += 1) le = !A && (L >> B & 1) == 1, B < 8 ? h[8][m - B - 1] = le : B < 9 ? h[8][15 - B - 1 + 1] = le : h[8][15 - B - 1] = le;
|
|
3469
|
+
h[m - 8][8] = !A;
|
|
3470
3470
|
}, ie = function(A, $) {
|
|
3471
3471
|
for (var j = -1, L = m - 1, B = 7, le = 0, o = Y.getMaskFunction($), l = m - 1; l > 0; l -= 2) for (l == 6 && (l -= 1); ; ) {
|
|
3472
|
-
for (var p = 0; p < 2; p += 1) if (
|
|
3472
|
+
for (var p = 0; p < 2; p += 1) if (h[L][l - p] == null) {
|
|
3473
3473
|
var M = !1;
|
|
3474
|
-
le < A.length && (M = (A[le] >>> B & 1) == 1), o(L, l - p) && (M = !M),
|
|
3474
|
+
le < A.length && (M = (A[le] >>> B & 1) == 1), o(L, l - p) && (M = !M), h[L][l - p] = M, (B -= 1) == -1 && (le += 1, B = 7);
|
|
3475
3475
|
}
|
|
3476
3476
|
if ((L += j) < 0 || m <= L) {
|
|
3477
3477
|
L -= j, j = -j;
|
|
@@ -3489,22 +3489,22 @@ function Oc() {
|
|
|
3489
3489
|
for (B.getLengthInBits() + 4 <= 8 * l && B.put(0, 4); B.getLengthInBits() % 8 != 0; ) B.putBit(!1);
|
|
3490
3490
|
for (; !(B.getLengthInBits() >= 8 * l || (B.put(236, 8), B.getLengthInBits() >= 8 * l)); ) B.put(17, 8);
|
|
3491
3491
|
return (function(p, M) {
|
|
3492
|
-
for (var T = 0, z = 0, ne = 0, ue = new Array(M.length),
|
|
3493
|
-
var
|
|
3494
|
-
z = Math.max(z,
|
|
3492
|
+
for (var T = 0, z = 0, ne = 0, ue = new Array(M.length), de = new Array(M.length), te = 0; te < M.length; te += 1) {
|
|
3493
|
+
var he = M[te].dataCount, pe = M[te].totalCount - he;
|
|
3494
|
+
z = Math.max(z, he), ne = Math.max(ne, pe), ue[te] = new Array(he);
|
|
3495
3495
|
for (var fe = 0; fe < ue[te].length; fe += 1) ue[te][fe] = 255 & p.getBuffer()[fe + T];
|
|
3496
|
-
T +=
|
|
3496
|
+
T += he;
|
|
3497
3497
|
var xe = Y.getErrorCorrectPolynomial(pe), _e = W(ue[te], xe.getLength() - 1).mod(xe);
|
|
3498
|
-
for (
|
|
3499
|
-
var Se = fe + _e.getLength() -
|
|
3500
|
-
|
|
3498
|
+
for (de[te] = new Array(xe.getLength() - 1), fe = 0; fe < de[te].length; fe += 1) {
|
|
3499
|
+
var Se = fe + _e.getLength() - de[te].length;
|
|
3500
|
+
de[te][fe] = Se >= 0 ? _e.getAt(Se) : 0;
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
3503
|
var qe = 0;
|
|
3504
3504
|
for (fe = 0; fe < M.length; fe += 1) qe += M[fe].totalCount;
|
|
3505
3505
|
var Me = new Array(qe), be = 0;
|
|
3506
3506
|
for (fe = 0; fe < z; fe += 1) for (te = 0; te < M.length; te += 1) fe < ue[te].length && (Me[be] = ue[te][fe], be += 1);
|
|
3507
|
-
for (fe = 0; fe < ne; fe += 1) for (te = 0; te < M.length; te += 1) fe <
|
|
3507
|
+
for (fe = 0; fe < ne; fe += 1) for (te = 0; te < M.length; te += 1) fe < de[te].length && (Me[be] = de[te][fe], be += 1);
|
|
3508
3508
|
return Me;
|
|
3509
3509
|
})(B, L);
|
|
3510
3510
|
};
|
|
@@ -3529,7 +3529,7 @@ function Oc() {
|
|
|
3529
3529
|
s.push(j), f = null;
|
|
3530
3530
|
}, v.isDark = function(A, $) {
|
|
3531
3531
|
if (A < 0 || m <= A || $ < 0 || m <= $) throw A + "," + $;
|
|
3532
|
-
return
|
|
3532
|
+
return h[A][$];
|
|
3533
3533
|
}, v.getModuleCount = function() {
|
|
3534
3534
|
return m;
|
|
3535
3535
|
}, v.make = function() {
|
|
@@ -3609,9 +3609,9 @@ function Oc() {
|
|
|
3609
3609
|
return v.createASCII = function(A, $) {
|
|
3610
3610
|
if ((A = A || 1) < 2) return (function(ue) {
|
|
3611
3611
|
ue = ue === void 0 ? 2 : ue;
|
|
3612
|
-
var
|
|
3613
|
-
for (
|
|
3614
|
-
for (
|
|
3612
|
+
var de, te, he, pe, fe, xe = 1 * v.getModuleCount() + 2 * ue, _e = ue, Se = xe - ue, qe = { "██": "█", "█ ": "▀", " █": "▄", " ": " " }, Me = { "██": "▀", "█ ": "▀", " █": " ", " ": " " }, be = "";
|
|
3613
|
+
for (de = 0; de < xe; de += 2) {
|
|
3614
|
+
for (he = Math.floor((de - _e) / 1), pe = Math.floor((de + 1 - _e) / 1), te = 0; te < xe; te += 1) fe = "█", _e <= te && te < Se && _e <= de && de < Se && v.isDark(he, Math.floor((te - _e) / 1)) && (fe = " "), _e <= te && te < Se && _e <= de + 1 && de + 1 < Se && v.isDark(pe, Math.floor((te - _e) / 1)) ? fe += " " : fe += "█", be += ue < 1 && de + 1 >= Se ? Me[fe] : qe[fe];
|
|
3615
3615
|
be += `
|
|
3616
3616
|
`;
|
|
3617
3617
|
}
|
|
@@ -3638,12 +3638,12 @@ function Oc() {
|
|
|
3638
3638
|
return x;
|
|
3639
3639
|
} }).default, P.createStringToBytes = function(D, x) {
|
|
3640
3640
|
var b = (function() {
|
|
3641
|
-
for (var
|
|
3642
|
-
var Q =
|
|
3641
|
+
for (var h = se(D), m = function() {
|
|
3642
|
+
var Q = h.read();
|
|
3643
3643
|
if (Q == -1) throw "eof";
|
|
3644
3644
|
return Q;
|
|
3645
3645
|
}, f = 0, s = {}; ; ) {
|
|
3646
|
-
var v =
|
|
3646
|
+
var v = h.read();
|
|
3647
3647
|
if (v == -1) break;
|
|
3648
3648
|
var E = m(), R = m() << 8 | m();
|
|
3649
3649
|
s[String.fromCharCode(v << 8 | E)] = R, f += 1;
|
|
@@ -3651,12 +3651,12 @@ function Oc() {
|
|
|
3651
3651
|
if (f != x) throw f + " != " + x;
|
|
3652
3652
|
return s;
|
|
3653
3653
|
})(), c = 63;
|
|
3654
|
-
return function(
|
|
3655
|
-
for (var m = [], f = 0; f <
|
|
3656
|
-
var s =
|
|
3654
|
+
return function(h) {
|
|
3655
|
+
for (var m = [], f = 0; f < h.length; f += 1) {
|
|
3656
|
+
var s = h.charCodeAt(f);
|
|
3657
3657
|
if (s < 128) m.push(s);
|
|
3658
3658
|
else {
|
|
3659
|
-
var v = b[
|
|
3659
|
+
var v = b[h.charAt(f)];
|
|
3660
3660
|
typeof v == "number" ? (255 & v) == v ? m.push(v) : (m.push(v >>> 8), m.push(255 & v)) : m.push(c);
|
|
3661
3661
|
}
|
|
3662
3662
|
}
|
|
@@ -3754,18 +3754,18 @@ function Oc() {
|
|
|
3754
3754
|
}
|
|
3755
3755
|
}
|
|
3756
3756
|
}, O.getLostPoint = function(D) {
|
|
3757
|
-
for (var x = D.getModuleCount(), b = 0, c = 0; c < x; c += 1) for (var
|
|
3758
|
-
for (var m = 0, f = D.isDark(c,
|
|
3757
|
+
for (var x = D.getModuleCount(), b = 0, c = 0; c < x; c += 1) for (var h = 0; h < x; h += 1) {
|
|
3758
|
+
for (var m = 0, f = D.isDark(c, h), s = -1; s <= 1; s += 1) if (!(c + s < 0 || x <= c + s)) for (var v = -1; v <= 1; v += 1) h + v < 0 || x <= h + v || s == 0 && v == 0 || f == D.isDark(c + s, h + v) && (m += 1);
|
|
3759
3759
|
m > 5 && (b += 3 + m - 5);
|
|
3760
3760
|
}
|
|
3761
|
-
for (c = 0; c < x - 1; c += 1) for (
|
|
3761
|
+
for (c = 0; c < x - 1; c += 1) for (h = 0; h < x - 1; h += 1) {
|
|
3762
3762
|
var E = 0;
|
|
3763
|
-
D.isDark(c,
|
|
3763
|
+
D.isDark(c, h) && (E += 1), D.isDark(c + 1, h) && (E += 1), D.isDark(c, h + 1) && (E += 1), D.isDark(c + 1, h + 1) && (E += 1), E != 0 && E != 4 || (b += 3);
|
|
3764
3764
|
}
|
|
3765
|
-
for (c = 0; c < x; c += 1) for (
|
|
3766
|
-
for (
|
|
3765
|
+
for (c = 0; c < x; c += 1) for (h = 0; h < x - 6; h += 1) D.isDark(c, h) && !D.isDark(c, h + 1) && D.isDark(c, h + 2) && D.isDark(c, h + 3) && D.isDark(c, h + 4) && !D.isDark(c, h + 5) && D.isDark(c, h + 6) && (b += 40);
|
|
3766
|
+
for (h = 0; h < x; h += 1) for (c = 0; c < x - 6; c += 1) D.isDark(c, h) && !D.isDark(c + 1, h) && D.isDark(c + 2, h) && D.isDark(c + 3, h) && D.isDark(c + 4, h) && !D.isDark(c + 5, h) && D.isDark(c + 6, h) && (b += 40);
|
|
3767
3767
|
var R = 0;
|
|
3768
|
-
for (
|
|
3768
|
+
for (h = 0; h < x; h += 1) for (c = 0; c < x; c += 1) D.isDark(c, h) && (R += 1);
|
|
3769
3769
|
return b + Math.abs(100 * R / x / x - 50) / 5 * 10;
|
|
3770
3770
|
}, O), U = (function() {
|
|
3771
3771
|
for (var D = new Array(256), x = new Array(256), b = 0; b < 8; b += 1) D[b] = 1 << b;
|
|
@@ -3783,29 +3783,29 @@ function Oc() {
|
|
|
3783
3783
|
function W(D, x) {
|
|
3784
3784
|
if (D.length === void 0) throw D.length + "/" + x;
|
|
3785
3785
|
var b = (function() {
|
|
3786
|
-
for (var
|
|
3787
|
-
for (var m = new Array(D.length -
|
|
3786
|
+
for (var h = 0; h < D.length && D[h] == 0; ) h += 1;
|
|
3787
|
+
for (var m = new Array(D.length - h + x), f = 0; f < D.length - h; f += 1) m[f] = D[f + h];
|
|
3788
3788
|
return m;
|
|
3789
|
-
})(), c = { getAt: function(
|
|
3790
|
-
return b[
|
|
3789
|
+
})(), c = { getAt: function(h) {
|
|
3790
|
+
return b[h];
|
|
3791
3791
|
}, getLength: function() {
|
|
3792
3792
|
return b.length;
|
|
3793
|
-
}, multiply: function(
|
|
3794
|
-
for (var m = new Array(c.getLength() +
|
|
3793
|
+
}, multiply: function(h) {
|
|
3794
|
+
for (var m = new Array(c.getLength() + h.getLength() - 1), f = 0; f < c.getLength(); f += 1) for (var s = 0; s < h.getLength(); s += 1) m[f + s] ^= U.gexp(U.glog(c.getAt(f)) + U.glog(h.getAt(s)));
|
|
3795
3795
|
return W(m, 0);
|
|
3796
|
-
}, mod: function(
|
|
3797
|
-
if (c.getLength() -
|
|
3798
|
-
for (var m = U.glog(c.getAt(0)) - U.glog(
|
|
3799
|
-
for (s = 0; s <
|
|
3800
|
-
return W(f, 0).mod(
|
|
3796
|
+
}, mod: function(h) {
|
|
3797
|
+
if (c.getLength() - h.getLength() < 0) return c;
|
|
3798
|
+
for (var m = U.glog(c.getAt(0)) - U.glog(h.getAt(0)), f = new Array(c.getLength()), s = 0; s < c.getLength(); s += 1) f[s] = c.getAt(s);
|
|
3799
|
+
for (s = 0; s < h.getLength(); s += 1) f[s] ^= U.gexp(U.glog(h.getAt(s)) + m);
|
|
3800
|
+
return W(f, 0).mod(h);
|
|
3801
3801
|
} };
|
|
3802
3802
|
return c;
|
|
3803
3803
|
}
|
|
3804
3804
|
var J = /* @__PURE__ */ (function() {
|
|
3805
|
-
var D = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12, 7, 37, 13], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]], x = function(c,
|
|
3805
|
+
var D = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12, 7, 37, 13], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]], x = function(c, h) {
|
|
3806
3806
|
var m = {};
|
|
3807
|
-
return m.totalCount = c, m.dataCount =
|
|
3808
|
-
}, b = { getRSBlocks: function(c,
|
|
3807
|
+
return m.totalCount = c, m.dataCount = h, m;
|
|
3808
|
+
}, b = { getRSBlocks: function(c, h) {
|
|
3809
3809
|
var m = (function(X, H) {
|
|
3810
3810
|
switch (H) {
|
|
3811
3811
|
case I.L:
|
|
@@ -3819,8 +3819,8 @@ function Oc() {
|
|
|
3819
3819
|
default:
|
|
3820
3820
|
return;
|
|
3821
3821
|
}
|
|
3822
|
-
})(c,
|
|
3823
|
-
if (m === void 0) throw "bad rs block @ typeNumber:" + c + "/errorCorrectionLevel:" +
|
|
3822
|
+
})(c, h);
|
|
3823
|
+
if (m === void 0) throw "bad rs block @ typeNumber:" + c + "/errorCorrectionLevel:" + h;
|
|
3824
3824
|
for (var f = m.length / 3, s = [], v = 0; v < f; v += 1) for (var E = m[3 * v + 0], R = m[3 * v + 1], Q = m[3 * v + 2], Z = 0; Z < E; Z += 1) s.push(x(R, Q));
|
|
3825
3825
|
return s;
|
|
3826
3826
|
} };
|
|
@@ -3829,15 +3829,15 @@ function Oc() {
|
|
|
3829
3829
|
var D = [], x = 0, b = { getBuffer: function() {
|
|
3830
3830
|
return D;
|
|
3831
3831
|
}, getAt: function(c) {
|
|
3832
|
-
var
|
|
3833
|
-
return (D[
|
|
3834
|
-
}, put: function(c,
|
|
3835
|
-
for (var m = 0; m <
|
|
3832
|
+
var h = Math.floor(c / 8);
|
|
3833
|
+
return (D[h] >>> 7 - c % 8 & 1) == 1;
|
|
3834
|
+
}, put: function(c, h) {
|
|
3835
|
+
for (var m = 0; m < h; m += 1) b.putBit((c >>> h - m - 1 & 1) == 1);
|
|
3836
3836
|
}, getLengthInBits: function() {
|
|
3837
3837
|
return x;
|
|
3838
3838
|
}, putBit: function(c) {
|
|
3839
|
-
var
|
|
3840
|
-
D.length <=
|
|
3839
|
+
var h = Math.floor(x / 8);
|
|
3840
|
+
D.length <= h && D.push(0), c && (D[h] |= 128 >>> x % 8), x += 1;
|
|
3841
3841
|
} };
|
|
3842
3842
|
return b;
|
|
3843
3843
|
}, K = function(D) {
|
|
@@ -3849,9 +3849,9 @@ function Oc() {
|
|
|
3849
3849
|
for (var f = x, s = 0; s + 2 < f.length; ) m.put(c(f.substring(s, s + 3)), 10), s += 3;
|
|
3850
3850
|
s < f.length && (f.length - s == 1 ? m.put(c(f.substring(s, s + 1)), 4) : f.length - s == 2 && m.put(c(f.substring(s, s + 2)), 7));
|
|
3851
3851
|
} }, c = function(m) {
|
|
3852
|
-
for (var f = 0, s = 0; s < m.length; s += 1) f = 10 * f +
|
|
3852
|
+
for (var f = 0, s = 0; s < m.length; s += 1) f = 10 * f + h(m.charAt(s));
|
|
3853
3853
|
return f;
|
|
3854
|
-
},
|
|
3854
|
+
}, h = function(m) {
|
|
3855
3855
|
if ("0" <= m && m <= "9") return m.charCodeAt(0) - 48;
|
|
3856
3856
|
throw "illegal char :" + m;
|
|
3857
3857
|
};
|
|
@@ -3859,15 +3859,15 @@ function Oc() {
|
|
|
3859
3859
|
}, V = function(D) {
|
|
3860
3860
|
var x = D, b = { getMode: function() {
|
|
3861
3861
|
return 2;
|
|
3862
|
-
}, getLength: function(
|
|
3862
|
+
}, getLength: function(h) {
|
|
3863
3863
|
return x.length;
|
|
3864
|
-
}, write: function(
|
|
3865
|
-
for (var m = x, f = 0; f + 1 < m.length; )
|
|
3866
|
-
f < m.length &&
|
|
3867
|
-
} }, c = function(
|
|
3868
|
-
if ("0" <=
|
|
3869
|
-
if ("A" <=
|
|
3870
|
-
switch (
|
|
3864
|
+
}, write: function(h) {
|
|
3865
|
+
for (var m = x, f = 0; f + 1 < m.length; ) h.put(45 * c(m.charAt(f)) + c(m.charAt(f + 1)), 11), f += 2;
|
|
3866
|
+
f < m.length && h.put(c(m.charAt(f)), 6);
|
|
3867
|
+
} }, c = function(h) {
|
|
3868
|
+
if ("0" <= h && h <= "9") return h.charCodeAt(0) - 48;
|
|
3869
|
+
if ("A" <= h && h <= "Z") return h.charCodeAt(0) - 65 + 10;
|
|
3870
|
+
switch (h) {
|
|
3871
3871
|
case " ":
|
|
3872
3872
|
return 36;
|
|
3873
3873
|
case "$":
|
|
@@ -3887,7 +3887,7 @@ function Oc() {
|
|
|
3887
3887
|
case ":":
|
|
3888
3888
|
return 44;
|
|
3889
3889
|
default:
|
|
3890
|
-
throw "illegal char :" +
|
|
3890
|
+
throw "illegal char :" + h;
|
|
3891
3891
|
}
|
|
3892
3892
|
};
|
|
3893
3893
|
return b;
|
|
@@ -3904,14 +3904,14 @@ function Oc() {
|
|
|
3904
3904
|
var x = P.stringToBytesFuncs.SJIS;
|
|
3905
3905
|
if (!x) throw "sjis not supported.";
|
|
3906
3906
|
(function() {
|
|
3907
|
-
var
|
|
3908
|
-
if (
|
|
3907
|
+
var h = x("友");
|
|
3908
|
+
if (h.length != 2 || (h[0] << 8 | h[1]) != 38726) throw "sjis not supported.";
|
|
3909
3909
|
})();
|
|
3910
3910
|
var b = x(D), c = { getMode: function() {
|
|
3911
3911
|
return 8;
|
|
3912
|
-
}, getLength: function(
|
|
3912
|
+
}, getLength: function(h) {
|
|
3913
3913
|
return ~~(b.length / 2);
|
|
3914
|
-
}, write: function(
|
|
3914
|
+
}, write: function(h) {
|
|
3915
3915
|
for (var m = b, f = 0; f + 1 < m.length; ) {
|
|
3916
3916
|
var s = (255 & m[f]) << 8 | 255 & m[f + 1];
|
|
3917
3917
|
if (33088 <= s && s <= 40956) s -= 33088;
|
|
@@ -3919,7 +3919,7 @@ function Oc() {
|
|
|
3919
3919
|
if (!(57408 <= s && s <= 60351)) throw "illegal char at " + (f + 1) + "/" + s;
|
|
3920
3920
|
s -= 49472;
|
|
3921
3921
|
}
|
|
3922
|
-
s = 192 * (s >>> 8 & 255) + (255 & s),
|
|
3922
|
+
s = 192 * (s >>> 8 & 255) + (255 & s), h.put(s, 13), f += 2;
|
|
3923
3923
|
}
|
|
3924
3924
|
if (f < m.length) throw "illegal char at " + (f + 1);
|
|
3925
3925
|
} };
|
|
@@ -3929,9 +3929,9 @@ function Oc() {
|
|
|
3929
3929
|
D.push(255 & b);
|
|
3930
3930
|
}, writeShort: function(b) {
|
|
3931
3931
|
x.writeByte(b), x.writeByte(b >>> 8);
|
|
3932
|
-
}, writeBytes: function(b, c,
|
|
3933
|
-
c = c || 0,
|
|
3934
|
-
for (var m = 0; m <
|
|
3932
|
+
}, writeBytes: function(b, c, h) {
|
|
3933
|
+
c = c || 0, h = h || b.length;
|
|
3934
|
+
for (var m = 0; m < h; m += 1) x.writeByte(b[m + c]);
|
|
3935
3935
|
}, writeString: function(b) {
|
|
3936
3936
|
for (var c = 0; c < b.length; c += 1) x.writeByte(b.charCodeAt(c));
|
|
3937
3937
|
}, toByteArray: function() {
|
|
@@ -3944,18 +3944,18 @@ function Oc() {
|
|
|
3944
3944
|
} };
|
|
3945
3945
|
return x;
|
|
3946
3946
|
}, se = function(D) {
|
|
3947
|
-
var x = D, b = 0, c = 0,
|
|
3948
|
-
for (;
|
|
3947
|
+
var x = D, b = 0, c = 0, h = 0, m = { read: function() {
|
|
3948
|
+
for (; h < 8; ) {
|
|
3949
3949
|
if (b >= x.length) {
|
|
3950
|
-
if (
|
|
3951
|
-
throw "unexpected end of file./" +
|
|
3950
|
+
if (h == 0) return -1;
|
|
3951
|
+
throw "unexpected end of file./" + h;
|
|
3952
3952
|
}
|
|
3953
3953
|
var s = x.charAt(b);
|
|
3954
|
-
if (b += 1, s == "=") return
|
|
3955
|
-
s.match(/^\s$/) || (c = c << 6 | f(s.charCodeAt(0)),
|
|
3954
|
+
if (b += 1, s == "=") return h = 0, -1;
|
|
3955
|
+
s.match(/^\s$/) || (c = c << 6 | f(s.charCodeAt(0)), h += 6);
|
|
3956
3956
|
}
|
|
3957
|
-
var v = c >>>
|
|
3958
|
-
return
|
|
3957
|
+
var v = c >>> h - 8 & 255;
|
|
3958
|
+
return h -= 8, v;
|
|
3959
3959
|
} }, f = function(s) {
|
|
3960
3960
|
if (65 <= s && s <= 90) return s - 65;
|
|
3961
3961
|
if (97 <= s && s <= 122) return s - 97 + 26;
|
|
@@ -3978,10 +3978,10 @@ function Oc() {
|
|
|
3978
3978
|
} }, oe = function(A) {
|
|
3979
3979
|
for (var $ = 1 << A, j = 1 + (1 << A), L = A + 1, B = ae(), le = 0; le < $; le += 1) B.add(String.fromCharCode(le));
|
|
3980
3980
|
B.add(String.fromCharCode($)), B.add(String.fromCharCode(j));
|
|
3981
|
-
var o, l, p, M = F(), T = (o = M, l = 0, p = 0, { write: function(
|
|
3982
|
-
if (
|
|
3983
|
-
for (; l + te >= 8; ) o.writeByte(255 & (
|
|
3984
|
-
p |=
|
|
3981
|
+
var o, l, p, M = F(), T = (o = M, l = 0, p = 0, { write: function(de, te) {
|
|
3982
|
+
if (de >>> te) throw "length over";
|
|
3983
|
+
for (; l + te >= 8; ) o.writeByte(255 & (de << l | p)), te -= 8 - l, de >>>= 8 - l, p = 0, l = 0;
|
|
3984
|
+
p |= de << l, l += te;
|
|
3985
3985
|
}, flush: function() {
|
|
3986
3986
|
l > 0 && o.writeByte(p);
|
|
3987
3987
|
} });
|
|
@@ -4006,7 +4006,7 @@ function Oc() {
|
|
|
4006
4006
|
return j;
|
|
4007
4007
|
};
|
|
4008
4008
|
return ie;
|
|
4009
|
-
})(D, x),
|
|
4009
|
+
})(D, x), h = 0; h < x; h += 1) for (var m = 0; m < D; m += 1) c.setPixel(m, h, b(m, h));
|
|
4010
4010
|
var f = F();
|
|
4011
4011
|
c.write(f);
|
|
4012
4012
|
for (var s = (function() {
|
|
@@ -4044,42 +4044,42 @@ function Oc() {
|
|
|
4044
4044
|
})(P);
|
|
4045
4045
|
}, (y = typeof (g = function() {
|
|
4046
4046
|
return _;
|
|
4047
|
-
}) == "function" ? g.apply(a, []) : g) === void 0 || (
|
|
4047
|
+
}) == "function" ? g.apply(a, []) : g) === void 0 || (d.exports = y);
|
|
4048
4048
|
} }, n = {};
|
|
4049
|
-
function i(
|
|
4050
|
-
var a = n[
|
|
4049
|
+
function i(d) {
|
|
4050
|
+
var a = n[d];
|
|
4051
4051
|
if (a !== void 0) return a.exports;
|
|
4052
|
-
var g = n[
|
|
4053
|
-
return r[
|
|
4052
|
+
var g = n[d] = { exports: {} };
|
|
4053
|
+
return r[d](g, g.exports, i), g.exports;
|
|
4054
4054
|
}
|
|
4055
|
-
i.n = (
|
|
4056
|
-
var a =
|
|
4055
|
+
i.n = (d) => {
|
|
4056
|
+
var a = d && d.__esModule ? () => d.default : () => d;
|
|
4057
4057
|
return i.d(a, { a }), a;
|
|
4058
|
-
}, i.d = (
|
|
4059
|
-
for (var g in a) i.o(a, g) && !i.o(
|
|
4060
|
-
}, i.o = (
|
|
4058
|
+
}, i.d = (d, a) => {
|
|
4059
|
+
for (var g in a) i.o(a, g) && !i.o(d, g) && Object.defineProperty(d, g, { enumerable: !0, get: a[g] });
|
|
4060
|
+
}, i.o = (d, a) => Object.prototype.hasOwnProperty.call(d, a);
|
|
4061
4061
|
var u = {};
|
|
4062
4062
|
return (() => {
|
|
4063
4063
|
i.d(u, { default: () => x });
|
|
4064
|
-
const
|
|
4064
|
+
const d = (b) => !!b && typeof b == "object" && !Array.isArray(b);
|
|
4065
4065
|
function a(b, ...c) {
|
|
4066
4066
|
if (!c.length) return b;
|
|
4067
|
-
const
|
|
4068
|
-
return
|
|
4069
|
-
const f = b[m], s =
|
|
4070
|
-
Array.isArray(f) && Array.isArray(s) ? b[m] = s :
|
|
4067
|
+
const h = c.shift();
|
|
4068
|
+
return h !== void 0 && d(b) && d(h) ? (b = Object.assign({}, b), Object.keys(h).forEach((m) => {
|
|
4069
|
+
const f = b[m], s = h[m];
|
|
4070
|
+
Array.isArray(f) && Array.isArray(s) ? b[m] = s : d(f) && d(s) ? b[m] = a(Object.assign({}, f), s) : b[m] = s;
|
|
4071
4071
|
}), a(b, ...c)) : b;
|
|
4072
4072
|
}
|
|
4073
4073
|
function g(b, c) {
|
|
4074
|
-
const
|
|
4075
|
-
|
|
4074
|
+
const h = document.createElement("a");
|
|
4075
|
+
h.download = c, h.href = b, document.body.appendChild(h), h.click(), document.body.removeChild(h);
|
|
4076
4076
|
}
|
|
4077
4077
|
const y = { L: 0.07, M: 0.15, Q: 0.25, H: 0.3 };
|
|
4078
4078
|
class _ {
|
|
4079
|
-
constructor({ svg: c, type:
|
|
4080
|
-
this._svg = c, this._type =
|
|
4079
|
+
constructor({ svg: c, type: h, window: m }) {
|
|
4080
|
+
this._svg = c, this._type = h, this._window = m;
|
|
4081
4081
|
}
|
|
4082
|
-
draw(c,
|
|
4082
|
+
draw(c, h, m, f) {
|
|
4083
4083
|
let s;
|
|
4084
4084
|
switch (this._type) {
|
|
4085
4085
|
case "dots":
|
|
@@ -4100,100 +4100,100 @@ function Oc() {
|
|
|
4100
4100
|
default:
|
|
4101
4101
|
s = this._drawSquare;
|
|
4102
4102
|
}
|
|
4103
|
-
s.call(this, { x: c, y:
|
|
4103
|
+
s.call(this, { x: c, y: h, size: m, getNeighbor: f });
|
|
4104
4104
|
}
|
|
4105
|
-
_rotateFigure({ x: c, y:
|
|
4105
|
+
_rotateFigure({ x: c, y: h, size: m, rotation: f = 0, draw: s }) {
|
|
4106
4106
|
var v;
|
|
4107
|
-
const E = c + m / 2, R =
|
|
4107
|
+
const E = c + m / 2, R = h + m / 2;
|
|
4108
4108
|
s(), (v = this._element) === null || v === void 0 || v.setAttribute("transform", `rotate(${180 * f / Math.PI},${E},${R})`);
|
|
4109
4109
|
}
|
|
4110
4110
|
_basicDot(c) {
|
|
4111
|
-
const { size:
|
|
4111
|
+
const { size: h, x: m, y: f } = c;
|
|
4112
4112
|
this._rotateFigure(Object.assign(Object.assign({}, c), { draw: () => {
|
|
4113
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(m +
|
|
4113
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(m + h / 2)), this._element.setAttribute("cy", String(f + h / 2)), this._element.setAttribute("r", String(h / 2));
|
|
4114
4114
|
} }));
|
|
4115
4115
|
}
|
|
4116
4116
|
_basicSquare(c) {
|
|
4117
|
-
const { size:
|
|
4117
|
+
const { size: h, x: m, y: f } = c;
|
|
4118
4118
|
this._rotateFigure(Object.assign(Object.assign({}, c), { draw: () => {
|
|
4119
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(m)), this._element.setAttribute("y", String(f)), this._element.setAttribute("width", String(
|
|
4119
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(m)), this._element.setAttribute("y", String(f)), this._element.setAttribute("width", String(h)), this._element.setAttribute("height", String(h));
|
|
4120
4120
|
} }));
|
|
4121
4121
|
}
|
|
4122
4122
|
_basicSideRounded(c) {
|
|
4123
|
-
const { size:
|
|
4123
|
+
const { size: h, x: m, y: f } = c;
|
|
4124
4124
|
this._rotateFigure(Object.assign(Object.assign({}, c), { draw: () => {
|
|
4125
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${m} ${f}v ${
|
|
4125
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${m} ${f}v ${h}h ` + h / 2 + `a ${h / 2} ${h / 2}, 0, 0, 0, 0 ${-h}`);
|
|
4126
4126
|
} }));
|
|
4127
4127
|
}
|
|
4128
4128
|
_basicCornerRounded(c) {
|
|
4129
|
-
const { size:
|
|
4129
|
+
const { size: h, x: m, y: f } = c;
|
|
4130
4130
|
this._rotateFigure(Object.assign(Object.assign({}, c), { draw: () => {
|
|
4131
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${m} ${f}v ${
|
|
4131
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${m} ${f}v ${h}h ${h}v ` + -h / 2 + `a ${h / 2} ${h / 2}, 0, 0, 0, ${-h / 2} ${-h / 2}`);
|
|
4132
4132
|
} }));
|
|
4133
4133
|
}
|
|
4134
4134
|
_basicCornerExtraRounded(c) {
|
|
4135
|
-
const { size:
|
|
4135
|
+
const { size: h, x: m, y: f } = c;
|
|
4136
4136
|
this._rotateFigure(Object.assign(Object.assign({}, c), { draw: () => {
|
|
4137
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${m} ${f}v ${
|
|
4137
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${m} ${f}v ${h}h ${h}a ${h} ${h}, 0, 0, 0, ${-h} ${-h}`);
|
|
4138
4138
|
} }));
|
|
4139
4139
|
}
|
|
4140
4140
|
_basicCornersRounded(c) {
|
|
4141
|
-
const { size:
|
|
4141
|
+
const { size: h, x: m, y: f } = c;
|
|
4142
4142
|
this._rotateFigure(Object.assign(Object.assign({}, c), { draw: () => {
|
|
4143
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${m} ${f}v ` +
|
|
4143
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${m} ${f}v ` + h / 2 + `a ${h / 2} ${h / 2}, 0, 0, 0, ${h / 2} ${h / 2}h ` + h / 2 + "v " + -h / 2 + `a ${h / 2} ${h / 2}, 0, 0, 0, ${-h / 2} ${-h / 2}`);
|
|
4144
4144
|
} }));
|
|
4145
4145
|
}
|
|
4146
|
-
_drawDot({ x: c, y:
|
|
4147
|
-
this._basicDot({ x: c, y:
|
|
4146
|
+
_drawDot({ x: c, y: h, size: m }) {
|
|
4147
|
+
this._basicDot({ x: c, y: h, size: m, rotation: 0 });
|
|
4148
4148
|
}
|
|
4149
|
-
_drawSquare({ x: c, y:
|
|
4150
|
-
this._basicSquare({ x: c, y:
|
|
4149
|
+
_drawSquare({ x: c, y: h, size: m }) {
|
|
4150
|
+
this._basicSquare({ x: c, y: h, size: m, rotation: 0 });
|
|
4151
4151
|
}
|
|
4152
|
-
_drawRounded({ x: c, y:
|
|
4152
|
+
_drawRounded({ x: c, y: h, size: m, getNeighbor: f }) {
|
|
4153
4153
|
const s = f ? +f(-1, 0) : 0, v = f ? +f(1, 0) : 0, E = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0, Q = s + v + E + R;
|
|
4154
|
-
if (Q !== 0) if (Q > 2 || s && v || E && R) this._basicSquare({ x: c, y:
|
|
4154
|
+
if (Q !== 0) if (Q > 2 || s && v || E && R) this._basicSquare({ x: c, y: h, size: m, rotation: 0 });
|
|
4155
4155
|
else {
|
|
4156
4156
|
if (Q === 2) {
|
|
4157
4157
|
let Z = 0;
|
|
4158
|
-
return s && E ? Z = Math.PI / 2 : E && v ? Z = Math.PI : v && R && (Z = -Math.PI / 2), void this._basicCornerRounded({ x: c, y:
|
|
4158
|
+
return s && E ? Z = Math.PI / 2 : E && v ? Z = Math.PI : v && R && (Z = -Math.PI / 2), void this._basicCornerRounded({ x: c, y: h, size: m, rotation: Z });
|
|
4159
4159
|
}
|
|
4160
4160
|
if (Q === 1) {
|
|
4161
4161
|
let Z = 0;
|
|
4162
|
-
return E ? Z = Math.PI / 2 : v ? Z = Math.PI : R && (Z = -Math.PI / 2), void this._basicSideRounded({ x: c, y:
|
|
4162
|
+
return E ? Z = Math.PI / 2 : v ? Z = Math.PI : R && (Z = -Math.PI / 2), void this._basicSideRounded({ x: c, y: h, size: m, rotation: Z });
|
|
4163
4163
|
}
|
|
4164
4164
|
}
|
|
4165
|
-
else this._basicDot({ x: c, y:
|
|
4165
|
+
else this._basicDot({ x: c, y: h, size: m, rotation: 0 });
|
|
4166
4166
|
}
|
|
4167
|
-
_drawExtraRounded({ x: c, y:
|
|
4167
|
+
_drawExtraRounded({ x: c, y: h, size: m, getNeighbor: f }) {
|
|
4168
4168
|
const s = f ? +f(-1, 0) : 0, v = f ? +f(1, 0) : 0, E = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0, Q = s + v + E + R;
|
|
4169
|
-
if (Q !== 0) if (Q > 2 || s && v || E && R) this._basicSquare({ x: c, y:
|
|
4169
|
+
if (Q !== 0) if (Q > 2 || s && v || E && R) this._basicSquare({ x: c, y: h, size: m, rotation: 0 });
|
|
4170
4170
|
else {
|
|
4171
4171
|
if (Q === 2) {
|
|
4172
4172
|
let Z = 0;
|
|
4173
|
-
return s && E ? Z = Math.PI / 2 : E && v ? Z = Math.PI : v && R && (Z = -Math.PI / 2), void this._basicCornerExtraRounded({ x: c, y:
|
|
4173
|
+
return s && E ? Z = Math.PI / 2 : E && v ? Z = Math.PI : v && R && (Z = -Math.PI / 2), void this._basicCornerExtraRounded({ x: c, y: h, size: m, rotation: Z });
|
|
4174
4174
|
}
|
|
4175
4175
|
if (Q === 1) {
|
|
4176
4176
|
let Z = 0;
|
|
4177
|
-
return E ? Z = Math.PI / 2 : v ? Z = Math.PI : R && (Z = -Math.PI / 2), void this._basicSideRounded({ x: c, y:
|
|
4177
|
+
return E ? Z = Math.PI / 2 : v ? Z = Math.PI : R && (Z = -Math.PI / 2), void this._basicSideRounded({ x: c, y: h, size: m, rotation: Z });
|
|
4178
4178
|
}
|
|
4179
4179
|
}
|
|
4180
|
-
else this._basicDot({ x: c, y:
|
|
4180
|
+
else this._basicDot({ x: c, y: h, size: m, rotation: 0 });
|
|
4181
4181
|
}
|
|
4182
|
-
_drawClassy({ x: c, y:
|
|
4182
|
+
_drawClassy({ x: c, y: h, size: m, getNeighbor: f }) {
|
|
4183
4183
|
const s = f ? +f(-1, 0) : 0, v = f ? +f(1, 0) : 0, E = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0;
|
|
4184
|
-
s + v + E + R !== 0 ? s || E ? v || R ? this._basicSquare({ x: c, y:
|
|
4184
|
+
s + v + E + R !== 0 ? s || E ? v || R ? this._basicSquare({ x: c, y: h, size: m, rotation: 0 }) : this._basicCornerRounded({ x: c, y: h, size: m, rotation: Math.PI / 2 }) : this._basicCornerRounded({ x: c, y: h, size: m, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: c, y: h, size: m, rotation: Math.PI / 2 });
|
|
4185
4185
|
}
|
|
4186
|
-
_drawClassyRounded({ x: c, y:
|
|
4186
|
+
_drawClassyRounded({ x: c, y: h, size: m, getNeighbor: f }) {
|
|
4187
4187
|
const s = f ? +f(-1, 0) : 0, v = f ? +f(1, 0) : 0, E = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0;
|
|
4188
|
-
s + v + E + R !== 0 ? s || E ? v || R ? this._basicSquare({ x: c, y:
|
|
4188
|
+
s + v + E + R !== 0 ? s || E ? v || R ? this._basicSquare({ x: c, y: h, size: m, rotation: 0 }) : this._basicCornerExtraRounded({ x: c, y: h, size: m, rotation: Math.PI / 2 }) : this._basicCornerExtraRounded({ x: c, y: h, size: m, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: c, y: h, size: m, rotation: Math.PI / 2 });
|
|
4189
4189
|
}
|
|
4190
4190
|
}
|
|
4191
4191
|
const P = { dot: "dot", square: "square", extraRounded: "extra-rounded" }, C = Object.values(P);
|
|
4192
4192
|
class S {
|
|
4193
|
-
constructor({ svg: c, type:
|
|
4194
|
-
this._svg = c, this._type =
|
|
4193
|
+
constructor({ svg: c, type: h, window: m }) {
|
|
4194
|
+
this._svg = c, this._type = h, this._window = m;
|
|
4195
4195
|
}
|
|
4196
|
-
draw(c,
|
|
4196
|
+
draw(c, h, m, f) {
|
|
4197
4197
|
let s;
|
|
4198
4198
|
switch (this._type) {
|
|
4199
4199
|
case P.square:
|
|
@@ -4205,78 +4205,78 @@ function Oc() {
|
|
|
4205
4205
|
default:
|
|
4206
4206
|
s = this._drawDot;
|
|
4207
4207
|
}
|
|
4208
|
-
s.call(this, { x: c, y:
|
|
4208
|
+
s.call(this, { x: c, y: h, size: m, rotation: f });
|
|
4209
4209
|
}
|
|
4210
|
-
_rotateFigure({ x: c, y:
|
|
4210
|
+
_rotateFigure({ x: c, y: h, size: m, rotation: f = 0, draw: s }) {
|
|
4211
4211
|
var v;
|
|
4212
|
-
const E = c + m / 2, R =
|
|
4212
|
+
const E = c + m / 2, R = h + m / 2;
|
|
4213
4213
|
s(), (v = this._element) === null || v === void 0 || v.setAttribute("transform", `rotate(${180 * f / Math.PI},${E},${R})`);
|
|
4214
4214
|
}
|
|
4215
4215
|
_basicDot(c) {
|
|
4216
|
-
const { size:
|
|
4216
|
+
const { size: h, x: m, y: f } = c, s = h / 7;
|
|
4217
4217
|
this._rotateFigure(Object.assign(Object.assign({}, c), { draw: () => {
|
|
4218
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${m +
|
|
4218
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${m + h / 2} ${f}a ${h / 2} ${h / 2} 0 1 0 0.1 0zm 0 ${s}a ${h / 2 - s} ${h / 2 - s} 0 1 1 -0.1 0Z`);
|
|
4219
4219
|
} }));
|
|
4220
4220
|
}
|
|
4221
4221
|
_basicSquare(c) {
|
|
4222
|
-
const { size:
|
|
4222
|
+
const { size: h, x: m, y: f } = c, s = h / 7;
|
|
4223
4223
|
this._rotateFigure(Object.assign(Object.assign({}, c), { draw: () => {
|
|
4224
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${m} ${f}v ${
|
|
4224
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${m} ${f}v ${h}h ${h}v ` + -h + `zM ${m + s} ${f + s}h ` + (h - 2 * s) + "v " + (h - 2 * s) + "h " + (2 * s - h) + "z");
|
|
4225
4225
|
} }));
|
|
4226
4226
|
}
|
|
4227
4227
|
_basicExtraRounded(c) {
|
|
4228
|
-
const { size:
|
|
4228
|
+
const { size: h, x: m, y: f } = c, s = h / 7;
|
|
4229
4229
|
this._rotateFigure(Object.assign(Object.assign({}, c), { draw: () => {
|
|
4230
4230
|
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${m} ${f + 2.5 * s}v ` + 2 * s + `a ${2.5 * s} ${2.5 * s}, 0, 0, 0, ${2.5 * s} ${2.5 * s}h ` + 2 * s + `a ${2.5 * s} ${2.5 * s}, 0, 0, 0, ${2.5 * s} ${2.5 * -s}v ` + -2 * s + `a ${2.5 * s} ${2.5 * s}, 0, 0, 0, ${2.5 * -s} ${2.5 * -s}h ` + -2 * s + `a ${2.5 * s} ${2.5 * s}, 0, 0, 0, ${2.5 * -s} ${2.5 * s}M ${m + 2.5 * s} ${f + s}h ` + 2 * s + `a ${1.5 * s} ${1.5 * s}, 0, 0, 1, ${1.5 * s} ${1.5 * s}v ` + 2 * s + `a ${1.5 * s} ${1.5 * s}, 0, 0, 1, ${1.5 * -s} ${1.5 * s}h ` + -2 * s + `a ${1.5 * s} ${1.5 * s}, 0, 0, 1, ${1.5 * -s} ${1.5 * -s}v ` + -2 * s + `a ${1.5 * s} ${1.5 * s}, 0, 0, 1, ${1.5 * s} ${1.5 * -s}`);
|
|
4231
4231
|
} }));
|
|
4232
4232
|
}
|
|
4233
|
-
_drawDot({ x: c, y:
|
|
4234
|
-
this._basicDot({ x: c, y:
|
|
4233
|
+
_drawDot({ x: c, y: h, size: m, rotation: f }) {
|
|
4234
|
+
this._basicDot({ x: c, y: h, size: m, rotation: f });
|
|
4235
4235
|
}
|
|
4236
|
-
_drawSquare({ x: c, y:
|
|
4237
|
-
this._basicSquare({ x: c, y:
|
|
4236
|
+
_drawSquare({ x: c, y: h, size: m, rotation: f }) {
|
|
4237
|
+
this._basicSquare({ x: c, y: h, size: m, rotation: f });
|
|
4238
4238
|
}
|
|
4239
|
-
_drawExtraRounded({ x: c, y:
|
|
4240
|
-
this._basicExtraRounded({ x: c, y:
|
|
4239
|
+
_drawExtraRounded({ x: c, y: h, size: m, rotation: f }) {
|
|
4240
|
+
this._basicExtraRounded({ x: c, y: h, size: m, rotation: f });
|
|
4241
4241
|
}
|
|
4242
4242
|
}
|
|
4243
4243
|
const k = { dot: "dot", square: "square" }, O = Object.values(k);
|
|
4244
4244
|
class N {
|
|
4245
|
-
constructor({ svg: c, type:
|
|
4246
|
-
this._svg = c, this._type =
|
|
4245
|
+
constructor({ svg: c, type: h, window: m }) {
|
|
4246
|
+
this._svg = c, this._type = h, this._window = m;
|
|
4247
4247
|
}
|
|
4248
|
-
draw(c,
|
|
4248
|
+
draw(c, h, m, f) {
|
|
4249
4249
|
let s;
|
|
4250
|
-
s = this._type === k.square ? this._drawSquare : this._drawDot, s.call(this, { x: c, y:
|
|
4250
|
+
s = this._type === k.square ? this._drawSquare : this._drawDot, s.call(this, { x: c, y: h, size: m, rotation: f });
|
|
4251
4251
|
}
|
|
4252
|
-
_rotateFigure({ x: c, y:
|
|
4252
|
+
_rotateFigure({ x: c, y: h, size: m, rotation: f = 0, draw: s }) {
|
|
4253
4253
|
var v;
|
|
4254
|
-
const E = c + m / 2, R =
|
|
4254
|
+
const E = c + m / 2, R = h + m / 2;
|
|
4255
4255
|
s(), (v = this._element) === null || v === void 0 || v.setAttribute("transform", `rotate(${180 * f / Math.PI},${E},${R})`);
|
|
4256
4256
|
}
|
|
4257
4257
|
_basicDot(c) {
|
|
4258
|
-
const { size:
|
|
4258
|
+
const { size: h, x: m, y: f } = c;
|
|
4259
4259
|
this._rotateFigure(Object.assign(Object.assign({}, c), { draw: () => {
|
|
4260
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(m +
|
|
4260
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(m + h / 2)), this._element.setAttribute("cy", String(f + h / 2)), this._element.setAttribute("r", String(h / 2));
|
|
4261
4261
|
} }));
|
|
4262
4262
|
}
|
|
4263
4263
|
_basicSquare(c) {
|
|
4264
|
-
const { size:
|
|
4264
|
+
const { size: h, x: m, y: f } = c;
|
|
4265
4265
|
this._rotateFigure(Object.assign(Object.assign({}, c), { draw: () => {
|
|
4266
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(m)), this._element.setAttribute("y", String(f)), this._element.setAttribute("width", String(
|
|
4266
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(m)), this._element.setAttribute("y", String(f)), this._element.setAttribute("width", String(h)), this._element.setAttribute("height", String(h));
|
|
4267
4267
|
} }));
|
|
4268
4268
|
}
|
|
4269
|
-
_drawDot({ x: c, y:
|
|
4270
|
-
this._basicDot({ x: c, y:
|
|
4269
|
+
_drawDot({ x: c, y: h, size: m, rotation: f }) {
|
|
4270
|
+
this._basicDot({ x: c, y: h, size: m, rotation: f });
|
|
4271
4271
|
}
|
|
4272
|
-
_drawSquare({ x: c, y:
|
|
4273
|
-
this._basicSquare({ x: c, y:
|
|
4272
|
+
_drawSquare({ x: c, y: h, size: m, rotation: f }) {
|
|
4273
|
+
this._basicSquare({ x: c, y: h, size: m, rotation: f });
|
|
4274
4274
|
}
|
|
4275
4275
|
}
|
|
4276
4276
|
const I = "circle", Y = [[1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1]], U = [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0]];
|
|
4277
4277
|
class W {
|
|
4278
|
-
constructor(c,
|
|
4279
|
-
this._roundSize = (m) => this._options.dotsOptions.roundSize ? Math.floor(m) : m, this._window =
|
|
4278
|
+
constructor(c, h) {
|
|
4279
|
+
this._roundSize = (m) => this._options.dotsOptions.roundSize ? Math.floor(m) : m, this._window = h, this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "svg"), this._element.setAttribute("width", String(c.width)), this._element.setAttribute("height", String(c.height)), this._element.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), c.dotsOptions.roundSize || this._element.setAttribute("shape-rendering", "crispEdges"), this._element.setAttribute("viewBox", `0 0 ${c.width} ${c.height}`), this._defs = this._window.document.createElementNS("http://www.w3.org/2000/svg", "defs"), this._element.appendChild(this._defs), this._imageUri = c.image, this._instanceId = W.instanceCount++, this._options = c;
|
|
4280
4280
|
}
|
|
4281
4281
|
get width() {
|
|
4282
4282
|
return this._options.width;
|
|
@@ -4288,28 +4288,28 @@ function Oc() {
|
|
|
4288
4288
|
return this._element;
|
|
4289
4289
|
}
|
|
4290
4290
|
async drawQR(c) {
|
|
4291
|
-
const
|
|
4291
|
+
const h = c.getModuleCount(), m = Math.min(this._options.width, this._options.height) - 2 * this._options.margin, f = this._options.shape === I ? m / Math.sqrt(2) : m, s = this._roundSize(f / h);
|
|
4292
4292
|
let v = { hideXDots: 0, hideYDots: 0, width: 0, height: 0 };
|
|
4293
4293
|
if (this._qr = c, this._options.image) {
|
|
4294
4294
|
if (await this.loadImage(), !this._image) return;
|
|
4295
|
-
const { imageOptions: E, qrOptions: R } = this._options, Q = E.imageSize * y[R.errorCorrectionLevel], Z = Math.floor(Q *
|
|
4295
|
+
const { imageOptions: E, qrOptions: R } = this._options, Q = E.imageSize * y[R.errorCorrectionLevel], Z = Math.floor(Q * h * h);
|
|
4296
4296
|
v = (function({ originalHeight: X, originalWidth: H, maxHiddenDots: ie, maxHiddenAxisDots: oe, dotSize: ae }) {
|
|
4297
4297
|
const A = { x: 0, y: 0 }, $ = { x: 0, y: 0 };
|
|
4298
4298
|
if (X <= 0 || H <= 0 || ie <= 0 || ae <= 0) return { height: 0, width: 0, hideYDots: 0, hideXDots: 0 };
|
|
4299
4299
|
const j = X / H;
|
|
4300
4300
|
return A.x = Math.floor(Math.sqrt(ie / j)), A.x <= 0 && (A.x = 1), oe && oe < A.x && (A.x = oe), A.x % 2 == 0 && A.x--, $.x = A.x * ae, A.y = 1 + 2 * Math.ceil((A.x * j - 1) / 2), $.y = Math.round($.x * j), (A.y * A.x > ie || oe && oe < A.y) && (oe && oe < A.y ? (A.y = oe, A.y % 2 == 0 && A.x--) : A.y -= 2, $.y = A.y * ae, A.x = 1 + 2 * Math.ceil((A.y / j - 1) / 2), $.x = Math.round($.y / j)), { height: $.y, width: $.x, hideYDots: A.y, hideXDots: A.x };
|
|
4301
|
-
})({ originalWidth: this._image.width, originalHeight: this._image.height, maxHiddenDots: Z, maxHiddenAxisDots:
|
|
4301
|
+
})({ originalWidth: this._image.width, originalHeight: this._image.height, maxHiddenDots: Z, maxHiddenAxisDots: h - 14, dotSize: s });
|
|
4302
4302
|
}
|
|
4303
4303
|
this.drawBackground(), this.drawDots((E, R) => {
|
|
4304
4304
|
var Q, Z, X, H, ie, oe;
|
|
4305
|
-
return !(this._options.imageOptions.hideBackgroundDots && E >= (
|
|
4306
|
-
}), this.drawCorners(), this._options.image && await this.drawImage({ width: v.width, height: v.height, count:
|
|
4305
|
+
return !(this._options.imageOptions.hideBackgroundDots && E >= (h - v.hideYDots) / 2 && E < (h + v.hideYDots) / 2 && R >= (h - v.hideXDots) / 2 && R < (h + v.hideXDots) / 2 || !((Q = Y[E]) === null || Q === void 0) && Q[R] || !((Z = Y[E - h + 7]) === null || Z === void 0) && Z[R] || !((X = Y[E]) === null || X === void 0) && X[R - h + 7] || !((H = U[E]) === null || H === void 0) && H[R] || !((ie = U[E - h + 7]) === null || ie === void 0) && ie[R] || !((oe = U[E]) === null || oe === void 0) && oe[R - h + 7]);
|
|
4306
|
+
}), this.drawCorners(), this._options.image && await this.drawImage({ width: v.width, height: v.height, count: h, dotSize: s });
|
|
4307
4307
|
}
|
|
4308
4308
|
drawBackground() {
|
|
4309
|
-
var c,
|
|
4309
|
+
var c, h, m;
|
|
4310
4310
|
const f = this._element, s = this._options;
|
|
4311
4311
|
if (f) {
|
|
4312
|
-
const v = (c = s.backgroundOptions) === null || c === void 0 ? void 0 : c.gradient, E = (
|
|
4312
|
+
const v = (c = s.backgroundOptions) === null || c === void 0 ? void 0 : c.gradient, E = (h = s.backgroundOptions) === null || h === void 0 ? void 0 : h.color;
|
|
4313
4313
|
let R = s.height, Q = s.width;
|
|
4314
4314
|
if (v || E) {
|
|
4315
4315
|
const Z = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
@@ -4318,12 +4318,12 @@ function Oc() {
|
|
|
4318
4318
|
}
|
|
4319
4319
|
}
|
|
4320
4320
|
drawDots(c) {
|
|
4321
|
-
var
|
|
4321
|
+
var h, m;
|
|
4322
4322
|
if (!this._qr) throw "QR code is not defined";
|
|
4323
4323
|
const f = this._options, s = this._qr.getModuleCount();
|
|
4324
4324
|
if (s > f.width || s > f.height) throw "The canvas is too small.";
|
|
4325
4325
|
const v = Math.min(f.width, f.height) - 2 * f.margin, E = f.shape === I ? v / Math.sqrt(2) : v, R = this._roundSize(E / s), Q = this._roundSize((f.width - s * R) / 2), Z = this._roundSize((f.height - s * R) / 2), X = new _({ svg: this._element, type: f.dotsOptions.type, window: this._window });
|
|
4326
|
-
this._dotsClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._dotsClipPath.setAttribute("id", `clip-path-dot-color-${this._instanceId}`), this._defs.appendChild(this._dotsClipPath), this._createColor({ options: (
|
|
4326
|
+
this._dotsClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._dotsClipPath.setAttribute("id", `clip-path-dot-color-${this._instanceId}`), this._defs.appendChild(this._dotsClipPath), this._createColor({ options: (h = f.dotsOptions) === null || h === void 0 ? void 0 : h.gradient, color: f.dotsOptions.color, additionalRotation: 0, x: 0, y: 0, height: f.height, width: f.width, name: `dot-color-${this._instanceId}` });
|
|
4327
4327
|
for (let H = 0; H < s; H++) for (let ie = 0; ie < s; ie++) c && !c(H, ie) || !((m = this._qr) === null || m === void 0) && m.isDark(H, ie) && (X.draw(Q + ie * R, Z + H * R, R, (oe, ae) => !(ie + oe < 0 || H + ae < 0 || ie + oe >= s || H + ae >= s) && !(c && !c(H + ae, ie + oe)) && !!this._qr && this._qr.isDark(H + ae, ie + oe)), X._element && this._dotsClipPath && this._dotsClipPath.appendChild(X._element));
|
|
4328
4328
|
if (f.shape === I) {
|
|
4329
4329
|
const H = this._roundSize((v / R - s) / 2), ie = s + 2 * H, oe = Q - H * R, ae = Z - H * R, A = [], $ = this._roundSize(ie / 2);
|
|
@@ -4339,40 +4339,40 @@ function Oc() {
|
|
|
4339
4339
|
}
|
|
4340
4340
|
drawCorners() {
|
|
4341
4341
|
if (!this._qr) throw "QR code is not defined";
|
|
4342
|
-
const c = this._element,
|
|
4342
|
+
const c = this._element, h = this._options;
|
|
4343
4343
|
if (!c) throw "Element code is not defined";
|
|
4344
|
-
const m = this._qr.getModuleCount(), f = Math.min(
|
|
4344
|
+
const m = this._qr.getModuleCount(), f = Math.min(h.width, h.height) - 2 * h.margin, s = h.shape === I ? f / Math.sqrt(2) : f, v = this._roundSize(s / m), E = 7 * v, R = 3 * v, Q = this._roundSize((h.width - m * v) / 2), Z = this._roundSize((h.height - m * v) / 2);
|
|
4345
4345
|
[[0, 0, 0], [1, 0, Math.PI / 2], [0, 1, -Math.PI / 2]].forEach(([X, H, ie]) => {
|
|
4346
4346
|
var oe, ae, A, $, j, L, B, le, o, l, p, M, T, z;
|
|
4347
4347
|
const ne = Q + X * v * (m - 7), ue = Z + H * v * (m - 7);
|
|
4348
|
-
let
|
|
4349
|
-
if ((!((oe =
|
|
4350
|
-
const
|
|
4351
|
-
|
|
4348
|
+
let de = this._dotsClipPath, te = this._dotsClipPath;
|
|
4349
|
+
if ((!((oe = h.cornersSquareOptions) === null || oe === void 0) && oe.gradient || !((ae = h.cornersSquareOptions) === null || ae === void 0) && ae.color) && (de = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), de.setAttribute("id", `clip-path-corners-square-color-${X}-${H}-${this._instanceId}`), this._defs.appendChild(de), this._cornersSquareClipPath = this._cornersDotClipPath = te = de, this._createColor({ options: (A = h.cornersSquareOptions) === null || A === void 0 ? void 0 : A.gradient, color: ($ = h.cornersSquareOptions) === null || $ === void 0 ? void 0 : $.color, additionalRotation: ie, x: ne, y: ue, height: E, width: E, name: `corners-square-color-${X}-${H}-${this._instanceId}` })), ((j = h.cornersSquareOptions) === null || j === void 0 ? void 0 : j.type) && C.includes(h.cornersSquareOptions.type)) {
|
|
4350
|
+
const he = new S({ svg: this._element, type: h.cornersSquareOptions.type, window: this._window });
|
|
4351
|
+
he.draw(ne, ue, E, ie), he._element && de && de.appendChild(he._element);
|
|
4352
4352
|
} else {
|
|
4353
|
-
const
|
|
4354
|
-
for (let pe = 0; pe < Y.length; pe++) for (let fe = 0; fe < Y[pe].length; fe++) !((B = Y[pe]) === null || B === void 0) && B[fe] && (
|
|
4353
|
+
const he = new _({ svg: this._element, type: ((L = h.cornersSquareOptions) === null || L === void 0 ? void 0 : L.type) || h.dotsOptions.type, window: this._window });
|
|
4354
|
+
for (let pe = 0; pe < Y.length; pe++) for (let fe = 0; fe < Y[pe].length; fe++) !((B = Y[pe]) === null || B === void 0) && B[fe] && (he.draw(ne + fe * v, ue + pe * v, v, (xe, _e) => {
|
|
4355
4355
|
var Se;
|
|
4356
4356
|
return !!(!((Se = Y[pe + _e]) === null || Se === void 0) && Se[fe + xe]);
|
|
4357
|
-
}),
|
|
4357
|
+
}), he._element && de && de.appendChild(he._element));
|
|
4358
4358
|
}
|
|
4359
|
-
if ((!((le =
|
|
4360
|
-
const
|
|
4361
|
-
|
|
4359
|
+
if ((!((le = h.cornersDotOptions) === null || le === void 0) && le.gradient || !((o = h.cornersDotOptions) === null || o === void 0) && o.color) && (te = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), te.setAttribute("id", `clip-path-corners-dot-color-${X}-${H}-${this._instanceId}`), this._defs.appendChild(te), this._cornersDotClipPath = te, this._createColor({ options: (l = h.cornersDotOptions) === null || l === void 0 ? void 0 : l.gradient, color: (p = h.cornersDotOptions) === null || p === void 0 ? void 0 : p.color, additionalRotation: ie, x: ne + 2 * v, y: ue + 2 * v, height: R, width: R, name: `corners-dot-color-${X}-${H}-${this._instanceId}` })), ((M = h.cornersDotOptions) === null || M === void 0 ? void 0 : M.type) && O.includes(h.cornersDotOptions.type)) {
|
|
4360
|
+
const he = new N({ svg: this._element, type: h.cornersDotOptions.type, window: this._window });
|
|
4361
|
+
he.draw(ne + 2 * v, ue + 2 * v, R, ie), he._element && te && te.appendChild(he._element);
|
|
4362
4362
|
} else {
|
|
4363
|
-
const
|
|
4364
|
-
for (let pe = 0; pe < U.length; pe++) for (let fe = 0; fe < U[pe].length; fe++) !((z = U[pe]) === null || z === void 0) && z[fe] && (
|
|
4363
|
+
const he = new _({ svg: this._element, type: ((T = h.cornersDotOptions) === null || T === void 0 ? void 0 : T.type) || h.dotsOptions.type, window: this._window });
|
|
4364
|
+
for (let pe = 0; pe < U.length; pe++) for (let fe = 0; fe < U[pe].length; fe++) !((z = U[pe]) === null || z === void 0) && z[fe] && (he.draw(ne + fe * v, ue + pe * v, v, (xe, _e) => {
|
|
4365
4365
|
var Se;
|
|
4366
4366
|
return !!(!((Se = U[pe + _e]) === null || Se === void 0) && Se[fe + xe]);
|
|
4367
|
-
}),
|
|
4367
|
+
}), he._element && te && te.appendChild(he._element));
|
|
4368
4368
|
}
|
|
4369
4369
|
});
|
|
4370
4370
|
}
|
|
4371
4371
|
loadImage() {
|
|
4372
|
-
return new Promise((c,
|
|
4372
|
+
return new Promise((c, h) => {
|
|
4373
4373
|
var m;
|
|
4374
4374
|
const f = this._options;
|
|
4375
|
-
if (!f.image) return
|
|
4375
|
+
if (!f.image) return h("Image is not defined");
|
|
4376
4376
|
if (!((m = f.nodeCanvas) === null || m === void 0) && m.loadImage) f.nodeCanvas.loadImage(f.image).then((s) => {
|
|
4377
4377
|
var v, E;
|
|
4378
4378
|
if (this._image = s, this._options.imageOptions.saveAsBlob) {
|
|
@@ -4380,7 +4380,7 @@ function Oc() {
|
|
|
4380
4380
|
(E = R?.getContext("2d")) === null || E === void 0 || E.drawImage(s, 0, 0), this._imageUri = R?.toDataURL();
|
|
4381
4381
|
}
|
|
4382
4382
|
c();
|
|
4383
|
-
}).catch(
|
|
4383
|
+
}).catch(h);
|
|
4384
4384
|
else {
|
|
4385
4385
|
const s = new this._window.Image();
|
|
4386
4386
|
typeof f.imageOptions.crossOrigin == "string" && (s.crossOrigin = f.imageOptions.crossOrigin), this._image = s, s.onload = async () => {
|
|
@@ -4399,11 +4399,11 @@ function Oc() {
|
|
|
4399
4399
|
}
|
|
4400
4400
|
});
|
|
4401
4401
|
}
|
|
4402
|
-
async drawImage({ width: c, height:
|
|
4403
|
-
const s = this._options, v = this._roundSize((s.width - m * f) / 2), E = this._roundSize((s.height - m * f) / 2), R = v + this._roundSize(s.imageOptions.margin + (m * f - c) / 2), Q = E + this._roundSize(s.imageOptions.margin + (m * f -
|
|
4402
|
+
async drawImage({ width: c, height: h, count: m, dotSize: f }) {
|
|
4403
|
+
const s = this._options, v = this._roundSize((s.width - m * f) / 2), E = this._roundSize((s.height - m * f) / 2), R = v + this._roundSize(s.imageOptions.margin + (m * f - c) / 2), Q = E + this._roundSize(s.imageOptions.margin + (m * f - h) / 2), Z = c - 2 * s.imageOptions.margin, X = h - 2 * s.imageOptions.margin, H = this._window.document.createElementNS("http://www.w3.org/2000/svg", "image");
|
|
4404
4404
|
H.setAttribute("href", this._imageUri || ""), H.setAttribute("xlink:href", this._imageUri || ""), H.setAttribute("x", String(R)), H.setAttribute("y", String(Q)), H.setAttribute("width", `${Z}px`), H.setAttribute("height", `${X}px`), this._element.appendChild(H);
|
|
4405
4405
|
}
|
|
4406
|
-
_createColor({ options: c, color:
|
|
4406
|
+
_createColor({ options: c, color: h, additionalRotation: m, x: f, y: s, height: v, width: E, name: R }) {
|
|
4407
4407
|
const Q = E > v ? E : v, Z = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
4408
4408
|
if (Z.setAttribute("x", String(f)), Z.setAttribute("y", String(s)), Z.setAttribute("height", String(v)), Z.setAttribute("width", String(E)), Z.setAttribute("clip-path", `url('#clip-path-${R}')`), c) {
|
|
4409
4409
|
let X;
|
|
@@ -4417,7 +4417,7 @@ function Oc() {
|
|
|
4417
4417
|
const oe = this._window.document.createElementNS("http://www.w3.org/2000/svg", "stop");
|
|
4418
4418
|
oe.setAttribute("offset", 100 * H + "%"), oe.setAttribute("stop-color", ie), X.appendChild(oe);
|
|
4419
4419
|
}), Z.setAttribute("fill", `url('#${R}')`), this._defs.appendChild(X);
|
|
4420
|
-
} else
|
|
4420
|
+
} else h && Z.setAttribute("fill", h);
|
|
4421
4421
|
this._element.appendChild(Z);
|
|
4422
4422
|
}
|
|
4423
4423
|
}
|
|
@@ -4428,7 +4428,7 @@ function Oc() {
|
|
|
4428
4428
|
function q(b) {
|
|
4429
4429
|
const c = Object.assign({}, b);
|
|
4430
4430
|
if (!c.colorStops || !c.colorStops.length) throw "Field 'colorStops' is required in gradient";
|
|
4431
|
-
return c.rotation ? c.rotation = Number(c.rotation) : c.rotation = 0, c.colorStops = c.colorStops.map((
|
|
4431
|
+
return c.rotation ? c.rotation = Number(c.rotation) : c.rotation = 0, c.colorStops = c.colorStops.map((h) => Object.assign(Object.assign({}, h), { offset: Number(h.offset) })), c;
|
|
4432
4432
|
}
|
|
4433
4433
|
function G(b) {
|
|
4434
4434
|
const c = Object.assign({}, b);
|
|
@@ -4453,13 +4453,13 @@ function Oc() {
|
|
|
4453
4453
|
if (!this._qr) return;
|
|
4454
4454
|
const c = new J(this._options, this._window);
|
|
4455
4455
|
this._svg = c.getElement(), this._svgDrawingPromise = c.drawQR(this._qr).then(() => {
|
|
4456
|
-
var
|
|
4457
|
-
this._svg && ((
|
|
4456
|
+
var h;
|
|
4457
|
+
this._svg && ((h = this._extension) === null || h === void 0 || h.call(this, c.getElement(), this._options));
|
|
4458
4458
|
});
|
|
4459
4459
|
}
|
|
4460
4460
|
_setupCanvas() {
|
|
4461
|
-
var c,
|
|
4462
|
-
this._qr && (!((c = this._options.nodeCanvas) === null || c === void 0) && c.createCanvas ? (this._nodeCanvas = this._options.nodeCanvas.createCanvas(this._options.width, this._options.height), this._nodeCanvas.width = this._options.width, this._nodeCanvas.height = this._options.height) : (this._domCanvas = document.createElement("canvas"), this._domCanvas.width = this._options.width, this._domCanvas.height = this._options.height), this._setupSvg(), this._canvasDrawingPromise = (
|
|
4461
|
+
var c, h;
|
|
4462
|
+
this._qr && (!((c = this._options.nodeCanvas) === null || c === void 0) && c.createCanvas ? (this._nodeCanvas = this._options.nodeCanvas.createCanvas(this._options.width, this._options.height), this._nodeCanvas.width = this._options.width, this._nodeCanvas.height = this._options.height) : (this._domCanvas = document.createElement("canvas"), this._domCanvas.width = this._options.width, this._domCanvas.height = this._options.height), this._setupSvg(), this._canvasDrawingPromise = (h = this._svgDrawingPromise) === null || h === void 0 ? void 0 : h.then(() => {
|
|
4463
4463
|
var m;
|
|
4464
4464
|
if (!this._svg) return;
|
|
4465
4465
|
const f = this._svg, s = new this._window.XMLSerializer().serializeToString(f), v = btoa(s), E = `data:${re("svg")};base64,${v}`;
|
|
@@ -4483,11 +4483,11 @@ function Oc() {
|
|
|
4483
4483
|
return c.toLowerCase() === "svg" ? (this._svg && this._svgDrawingPromise || this._setupSvg(), await this._svgDrawingPromise, this._svg) : ((this._domCanvas || this._nodeCanvas) && this._canvasDrawingPromise || this._setupCanvas(), await this._canvasDrawingPromise, this._domCanvas || this._nodeCanvas);
|
|
4484
4484
|
}
|
|
4485
4485
|
update(c) {
|
|
4486
|
-
D._clearContainer(this._container), this._options = c ? G(a(this._options, c)) : this._options, this._options.data && (this._qr = se()(this._options.qrOptions.typeNumber, this._options.qrOptions.errorCorrectionLevel), this._qr.addData(this._options.data, this._options.qrOptions.mode || (function(
|
|
4486
|
+
D._clearContainer(this._container), this._options = c ? G(a(this._options, c)) : this._options, this._options.data && (this._qr = se()(this._options.qrOptions.typeNumber, this._options.qrOptions.errorCorrectionLevel), this._qr.addData(this._options.data, this._options.qrOptions.mode || (function(h) {
|
|
4487
4487
|
switch (!0) {
|
|
4488
|
-
case /^[0-9]*$/.test(
|
|
4488
|
+
case /^[0-9]*$/.test(h):
|
|
4489
4489
|
return "Numeric";
|
|
4490
|
-
case /^[0-9A-Z $%*+\-./:]*$/.test(
|
|
4490
|
+
case /^[0-9A-Z $%*+\-./:]*$/.test(h):
|
|
4491
4491
|
return "Alphanumeric";
|
|
4492
4492
|
default:
|
|
4493
4493
|
return "Byte";
|
|
@@ -4509,15 +4509,15 @@ function Oc() {
|
|
|
4509
4509
|
}
|
|
4510
4510
|
async getRawData(c = "png") {
|
|
4511
4511
|
if (!this._qr) throw "QR code is empty";
|
|
4512
|
-
const
|
|
4513
|
-
if (!
|
|
4512
|
+
const h = await this._getElement(c), m = re(c);
|
|
4513
|
+
if (!h) return null;
|
|
4514
4514
|
if (c.toLowerCase() === "svg") {
|
|
4515
4515
|
const f = `<?xml version="1.0" standalone="no"?>\r
|
|
4516
|
-
${new this._window.XMLSerializer().serializeToString(
|
|
4516
|
+
${new this._window.XMLSerializer().serializeToString(h)}`;
|
|
4517
4517
|
return typeof Blob > "u" || this._options.jsdom ? Buffer.from(f) : new Blob([f], { type: m });
|
|
4518
4518
|
}
|
|
4519
4519
|
return new Promise((f) => {
|
|
4520
|
-
const s =
|
|
4520
|
+
const s = h;
|
|
4521
4521
|
if ("toBuffer" in s) if (m === "image/png") f(s.toBuffer(m));
|
|
4522
4522
|
else if (m === "image/jpeg") f(s.toBuffer(m));
|
|
4523
4523
|
else {
|
|
@@ -4530,14 +4530,14 @@ ${new this._window.XMLSerializer().serializeToString(d)}`;
|
|
|
4530
4530
|
async download(c) {
|
|
4531
4531
|
if (!this._qr) throw "QR code is empty";
|
|
4532
4532
|
if (typeof Blob > "u") throw "Cannot download in Node.js, call getRawData instead.";
|
|
4533
|
-
let
|
|
4534
|
-
typeof c == "string" ? (
|
|
4535
|
-
const f = await this._getElement(
|
|
4536
|
-
if (f) if (
|
|
4533
|
+
let h = "png", m = "qr";
|
|
4534
|
+
typeof c == "string" ? (h = c, console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")) : typeof c == "object" && c !== null && (c.name && (m = c.name), c.extension && (h = c.extension));
|
|
4535
|
+
const f = await this._getElement(h);
|
|
4536
|
+
if (f) if (h.toLowerCase() === "svg") {
|
|
4537
4537
|
let s = new XMLSerializer().serializeToString(f);
|
|
4538
4538
|
s = `<?xml version="1.0" standalone="no"?>\r
|
|
4539
|
-
` + s, g(`data:${re(
|
|
4540
|
-
} else g(f.toDataURL(re(
|
|
4539
|
+
` + s, g(`data:${re(h)};charset=utf-8,${encodeURIComponent(s)}`, `${m}.svg`);
|
|
4540
|
+
} else g(f.toDataURL(re(h)), `${m}.${h}`);
|
|
4541
4541
|
}
|
|
4542
4542
|
}
|
|
4543
4543
|
const x = D;
|
|
@@ -4547,7 +4547,7 @@ ${new this._window.XMLSerializer().serializeToString(d)}`;
|
|
|
4547
4547
|
}
|
|
4548
4548
|
Oc();
|
|
4549
4549
|
const Hi = Bn(void 0);
|
|
4550
|
-
function
|
|
4550
|
+
function ud(t) {
|
|
4551
4551
|
const e = lt.c(9), {
|
|
4552
4552
|
children: r,
|
|
4553
4553
|
baseUrl: n,
|
|
@@ -4558,10 +4558,10 @@ function uh(t) {
|
|
|
4558
4558
|
baseUrl: n,
|
|
4559
4559
|
queryClient: i
|
|
4560
4560
|
}, e[0] = n, e[1] = i, e[2] = u) : u = e[2];
|
|
4561
|
-
let
|
|
4562
|
-
e[3] !== r || e[4] !== i ? (
|
|
4561
|
+
let d;
|
|
4562
|
+
e[3] !== r || e[4] !== i ? (d = /* @__PURE__ */ w.jsx(zi, { client: i, children: r }), e[3] = r, e[4] = i, e[5] = d) : d = e[5];
|
|
4563
4563
|
let a;
|
|
4564
|
-
return e[6] !== u || e[7] !==
|
|
4564
|
+
return e[6] !== u || e[7] !== d ? (a = /* @__PURE__ */ w.jsx(Hi.Provider, { value: u, children: d }), e[6] = u, e[7] = d, e[8] = a) : a = e[8], a;
|
|
4565
4565
|
}
|
|
4566
4566
|
function Rt() {
|
|
4567
4567
|
const t = Si(Hi);
|
|
@@ -4640,7 +4640,7 @@ async function jc(t, e) {
|
|
|
4640
4640
|
body: JSON.stringify(e)
|
|
4641
4641
|
}).then(async (r) => (r.status >= 400 && await Wt(r), r)).then((r) => r.status == 204 ? e : r.json()).then((r) => r);
|
|
4642
4642
|
}
|
|
4643
|
-
async function
|
|
4643
|
+
async function hd(t, e, r) {
|
|
4644
4644
|
return fetch(e, {
|
|
4645
4645
|
method: t,
|
|
4646
4646
|
headers: await Ut(),
|
|
@@ -4667,15 +4667,15 @@ function $c(t, e, r) {
|
|
|
4667
4667
|
n[3] !== r ? (y = r?.toString(), n[3] = r, n[4] = y) : y = n[4], u = [...e.map(Nc), String(y)], n[0] = r, n[1] = e, n[2] = u;
|
|
4668
4668
|
} else
|
|
4669
4669
|
u = n[2];
|
|
4670
|
-
let
|
|
4671
|
-
n[5] !== t || n[6] !== i || n[7] !== r ? (
|
|
4670
|
+
let d;
|
|
4671
|
+
n[5] !== t || n[6] !== i || n[7] !== r ? (d = () => Ec(`${i}${t}`, r), n[5] = t, n[6] = i, n[7] = r, n[8] = d) : d = n[8];
|
|
4672
4672
|
const a = !!r;
|
|
4673
4673
|
let g;
|
|
4674
|
-
return n[9] !== u || n[10] !==
|
|
4674
|
+
return n[9] !== u || n[10] !== d || n[11] !== a ? (g = {
|
|
4675
4675
|
queryKey: u,
|
|
4676
|
-
queryFn:
|
|
4676
|
+
queryFn: d,
|
|
4677
4677
|
enabled: a
|
|
4678
|
-
}, n[9] = u, n[10] =
|
|
4678
|
+
}, n[9] = u, n[10] = d, n[11] = a, n[12] = g) : g = n[12], Wi(g);
|
|
4679
4679
|
}
|
|
4680
4680
|
function Nc(t) {
|
|
4681
4681
|
return t.toString();
|
|
@@ -4684,16 +4684,16 @@ function Lc(t, e, r) {
|
|
|
4684
4684
|
const n = lt.c(9), i = r === void 0 ? !0 : r, {
|
|
4685
4685
|
baseUrl: u
|
|
4686
4686
|
} = Rt();
|
|
4687
|
-
let
|
|
4688
|
-
n[0] !== e ? (
|
|
4687
|
+
let d;
|
|
4688
|
+
n[0] !== e ? (d = [...e.map(Ic)], n[0] = e, n[1] = d) : d = n[1];
|
|
4689
4689
|
let a;
|
|
4690
4690
|
n[2] !== t || n[3] !== u ? (a = () => Ac(`${u}${t}`), n[2] = t, n[3] = u, n[4] = a) : a = n[4];
|
|
4691
4691
|
let g;
|
|
4692
|
-
return n[5] !== i || n[6] !==
|
|
4693
|
-
queryKey:
|
|
4692
|
+
return n[5] !== i || n[6] !== d || n[7] !== a ? (g = {
|
|
4693
|
+
queryKey: d,
|
|
4694
4694
|
queryFn: a,
|
|
4695
4695
|
enabled: i
|
|
4696
|
-
}, n[5] = i, n[6] =
|
|
4696
|
+
}, n[5] = i, n[6] = d, n[7] = a, n[8] = g) : g = n[8], Wi(g);
|
|
4697
4697
|
}
|
|
4698
4698
|
function Ic(t) {
|
|
4699
4699
|
return t.toString();
|
|
@@ -4705,12 +4705,12 @@ function Bc(t, e) {
|
|
|
4705
4705
|
} = Rt();
|
|
4706
4706
|
let u;
|
|
4707
4707
|
r[0] !== e ? (u = [...e.map(zc)], r[0] = e, r[1] = u) : u = r[1];
|
|
4708
|
-
let
|
|
4709
|
-
r[2] !== t || r[3] !== n ? (
|
|
4708
|
+
let d;
|
|
4709
|
+
r[2] !== t || r[3] !== n ? (d = (g) => jc(`${n}${t}`, g), r[2] = t, r[3] = n, r[4] = d) : d = r[4];
|
|
4710
4710
|
let a;
|
|
4711
|
-
return r[5] !== i || r[6] !== e || r[7] !== u || r[8] !==
|
|
4711
|
+
return r[5] !== i || r[6] !== e || r[7] !== u || r[8] !== d ? (a = {
|
|
4712
4712
|
mutationKey: u,
|
|
4713
|
-
mutationFn:
|
|
4713
|
+
mutationFn: d,
|
|
4714
4714
|
onSettled() {
|
|
4715
4715
|
return i.invalidateQueries({
|
|
4716
4716
|
queryKey: [...e.map(Yc)]
|
|
@@ -4719,7 +4719,7 @@ function Bc(t, e) {
|
|
|
4719
4719
|
onError(g) {
|
|
4720
4720
|
Qn(g);
|
|
4721
4721
|
}
|
|
4722
|
-
}, r[5] = i, r[6] = e, r[7] = u, r[8] =
|
|
4722
|
+
}, r[5] = i, r[6] = e, r[7] = u, r[8] = d, r[9] = a) : a = r[9], Un(a);
|
|
4723
4723
|
}
|
|
4724
4724
|
function Yc(t) {
|
|
4725
4725
|
return t.toString();
|
|
@@ -4734,12 +4734,12 @@ function Gi(t, e) {
|
|
|
4734
4734
|
} = Rt();
|
|
4735
4735
|
let u;
|
|
4736
4736
|
r[0] !== e ? (u = [...e.map(Wc)], r[0] = e, r[1] = u) : u = r[1];
|
|
4737
|
-
let
|
|
4738
|
-
r[2] !== t || r[3] !== n ? (
|
|
4737
|
+
let d;
|
|
4738
|
+
r[2] !== t || r[3] !== n ? (d = (g) => Tc(`${n}${t}`, g), r[2] = t, r[3] = n, r[4] = d) : d = r[4];
|
|
4739
4739
|
let a;
|
|
4740
|
-
return r[5] !== i || r[6] !== e || r[7] !== u || r[8] !==
|
|
4740
|
+
return r[5] !== i || r[6] !== e || r[7] !== u || r[8] !== d ? (a = {
|
|
4741
4741
|
mutationKey: u,
|
|
4742
|
-
mutationFn:
|
|
4742
|
+
mutationFn: d,
|
|
4743
4743
|
onSettled() {
|
|
4744
4744
|
return i.invalidateQueries({
|
|
4745
4745
|
queryKey: [...e.map(Fc)]
|
|
@@ -4748,7 +4748,7 @@ function Gi(t, e) {
|
|
|
4748
4748
|
onError(g) {
|
|
4749
4749
|
Qn(g);
|
|
4750
4750
|
}
|
|
4751
|
-
}, r[5] = i, r[6] = e, r[7] = u, r[8] =
|
|
4751
|
+
}, r[5] = i, r[6] = e, r[7] = u, r[8] = d, r[9] = a) : a = r[9], Un(a);
|
|
4752
4752
|
}
|
|
4753
4753
|
function Fc(t) {
|
|
4754
4754
|
return t.toString();
|
|
@@ -4763,12 +4763,12 @@ function Uc(t, e) {
|
|
|
4763
4763
|
} = Rt();
|
|
4764
4764
|
let u;
|
|
4765
4765
|
r[0] !== e ? (u = [...e.map(Vc)], r[0] = e, r[1] = u) : u = r[1];
|
|
4766
|
-
let
|
|
4767
|
-
r[2] !== t || r[3] !== n ? (
|
|
4766
|
+
let d;
|
|
4767
|
+
r[2] !== t || r[3] !== n ? (d = (g) => Rc(`${n}${t}`, g), r[2] = t, r[3] = n, r[4] = d) : d = r[4];
|
|
4768
4768
|
let a;
|
|
4769
|
-
return r[5] !== i || r[6] !== e || r[7] !== u || r[8] !==
|
|
4769
|
+
return r[5] !== i || r[6] !== e || r[7] !== u || r[8] !== d ? (a = {
|
|
4770
4770
|
mutationKey: u,
|
|
4771
|
-
mutationFn:
|
|
4771
|
+
mutationFn: d,
|
|
4772
4772
|
onSettled() {
|
|
4773
4773
|
return i.invalidateQueries({
|
|
4774
4774
|
queryKey: [...e.map(qc)]
|
|
@@ -4777,7 +4777,7 @@ function Uc(t, e) {
|
|
|
4777
4777
|
onError(g) {
|
|
4778
4778
|
Qn(g);
|
|
4779
4779
|
}
|
|
4780
|
-
}, r[5] = i, r[6] = e, r[7] = u, r[8] =
|
|
4780
|
+
}, r[5] = i, r[6] = e, r[7] = u, r[8] = d, r[9] = a) : a = r[9], Un(a);
|
|
4781
4781
|
}
|
|
4782
4782
|
function qc(t) {
|
|
4783
4783
|
return t.toString();
|
|
@@ -4791,23 +4791,23 @@ function Gc() {
|
|
|
4791
4791
|
(function(r, n) {
|
|
4792
4792
|
t.exports = n();
|
|
4793
4793
|
})(Hc, (function() {
|
|
4794
|
-
var r = 1e3, n = 6e4, i = 36e5, u = "millisecond",
|
|
4794
|
+
var r = 1e3, n = 6e4, i = 36e5, u = "millisecond", d = "second", a = "minute", g = "hour", y = "day", _ = "week", P = "month", C = "quarter", S = "year", k = "date", O = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(D) {
|
|
4795
4795
|
var x = ["th", "st", "nd", "rd"], b = D % 100;
|
|
4796
4796
|
return "[" + D + (x[(b - 20) % 10] || x[b] || x[0]) + "]";
|
|
4797
4797
|
} }, U = function(D, x, b) {
|
|
4798
4798
|
var c = String(D);
|
|
4799
4799
|
return !c || c.length >= x ? D : "" + Array(x + 1 - c.length).join(b) + D;
|
|
4800
4800
|
}, W = { s: U, z: function(D) {
|
|
4801
|
-
var x = -D.utcOffset(), b = Math.abs(x), c = Math.floor(b / 60),
|
|
4802
|
-
return (x <= 0 ? "+" : "-") + U(c, 2, "0") + ":" + U(
|
|
4801
|
+
var x = -D.utcOffset(), b = Math.abs(x), c = Math.floor(b / 60), h = b % 60;
|
|
4802
|
+
return (x <= 0 ? "+" : "-") + U(c, 2, "0") + ":" + U(h, 2, "0");
|
|
4803
4803
|
}, m: function D(x, b) {
|
|
4804
4804
|
if (x.date() < b.date()) return -D(b, x);
|
|
4805
|
-
var c = 12 * (b.year() - x.year()) + (b.month() - x.month()),
|
|
4806
|
-
return +(-(c + (b -
|
|
4805
|
+
var c = 12 * (b.year() - x.year()) + (b.month() - x.month()), h = x.clone().add(c, P), m = b - h < 0, f = x.clone().add(c + (m ? -1 : 1), P);
|
|
4806
|
+
return +(-(c + (b - h) / (m ? h - f : f - h)) || 0);
|
|
4807
4807
|
}, a: function(D) {
|
|
4808
4808
|
return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
|
|
4809
4809
|
}, p: function(D) {
|
|
4810
|
-
return { M: P, y: S, w: _, d: y, D: k, h: g, m: a, s:
|
|
4810
|
+
return { M: P, y: S, w: _, d: y, D: k, h: g, m: a, s: d, ms: u, Q: C }[D] || String(D || "").toLowerCase().replace(/s$/, "");
|
|
4811
4811
|
}, u: function(D) {
|
|
4812
4812
|
return D === void 0;
|
|
4813
4813
|
} }, J = "en", ee = {};
|
|
@@ -4815,18 +4815,18 @@ function Gc() {
|
|
|
4815
4815
|
var K = "$isDayjsObject", V = function(D) {
|
|
4816
4816
|
return D instanceof se || !(!D || !D[K]);
|
|
4817
4817
|
}, q = function D(x, b, c) {
|
|
4818
|
-
var
|
|
4818
|
+
var h;
|
|
4819
4819
|
if (!x) return J;
|
|
4820
4820
|
if (typeof x == "string") {
|
|
4821
4821
|
var m = x.toLowerCase();
|
|
4822
|
-
ee[m] && (
|
|
4822
|
+
ee[m] && (h = m), b && (ee[m] = b, h = m);
|
|
4823
4823
|
var f = x.split("-");
|
|
4824
|
-
if (!
|
|
4824
|
+
if (!h && f.length > 1) return D(f[0]);
|
|
4825
4825
|
} else {
|
|
4826
4826
|
var s = x.name;
|
|
4827
|
-
ee[s] = x,
|
|
4827
|
+
ee[s] = x, h = s;
|
|
4828
4828
|
}
|
|
4829
|
-
return !c &&
|
|
4829
|
+
return !c && h && (J = h), h || !c && J;
|
|
4830
4830
|
}, G = function(D, x) {
|
|
4831
4831
|
if (V(D)) return D.clone();
|
|
4832
4832
|
var b = typeof x == "object" ? x : {};
|
|
@@ -4842,18 +4842,18 @@ function Gc() {
|
|
|
4842
4842
|
var x = D.prototype;
|
|
4843
4843
|
return x.parse = function(b) {
|
|
4844
4844
|
this.$d = (function(c) {
|
|
4845
|
-
var
|
|
4846
|
-
if (
|
|
4847
|
-
if (F.u(
|
|
4848
|
-
if (
|
|
4849
|
-
if (typeof
|
|
4850
|
-
var f =
|
|
4845
|
+
var h = c.date, m = c.utc;
|
|
4846
|
+
if (h === null) return /* @__PURE__ */ new Date(NaN);
|
|
4847
|
+
if (F.u(h)) return /* @__PURE__ */ new Date();
|
|
4848
|
+
if (h instanceof Date) return new Date(h);
|
|
4849
|
+
if (typeof h == "string" && !/Z$/i.test(h)) {
|
|
4850
|
+
var f = h.match(N);
|
|
4851
4851
|
if (f) {
|
|
4852
4852
|
var s = f[2] - 1 || 0, v = (f[7] || "0").substring(0, 3);
|
|
4853
4853
|
return m ? new Date(Date.UTC(f[1], s, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, v)) : new Date(f[1], s, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, v);
|
|
4854
4854
|
}
|
|
4855
4855
|
}
|
|
4856
|
-
return new Date(
|
|
4856
|
+
return new Date(h);
|
|
4857
4857
|
})(b), this.init();
|
|
4858
4858
|
}, x.init = function() {
|
|
4859
4859
|
var b = this.$d;
|
|
@@ -4863,24 +4863,24 @@ function Gc() {
|
|
|
4863
4863
|
}, x.isValid = function() {
|
|
4864
4864
|
return this.$d.toString() !== O;
|
|
4865
4865
|
}, x.isSame = function(b, c) {
|
|
4866
|
-
var
|
|
4867
|
-
return this.startOf(c) <=
|
|
4866
|
+
var h = G(b);
|
|
4867
|
+
return this.startOf(c) <= h && h <= this.endOf(c);
|
|
4868
4868
|
}, x.isAfter = function(b, c) {
|
|
4869
4869
|
return G(b) < this.startOf(c);
|
|
4870
4870
|
}, x.isBefore = function(b, c) {
|
|
4871
4871
|
return this.endOf(c) < G(b);
|
|
4872
|
-
}, x.$g = function(b, c,
|
|
4873
|
-
return F.u(b) ? this[c] : this.set(
|
|
4872
|
+
}, x.$g = function(b, c, h) {
|
|
4873
|
+
return F.u(b) ? this[c] : this.set(h, b);
|
|
4874
4874
|
}, x.unix = function() {
|
|
4875
4875
|
return Math.floor(this.valueOf() / 1e3);
|
|
4876
4876
|
}, x.valueOf = function() {
|
|
4877
4877
|
return this.$d.getTime();
|
|
4878
4878
|
}, x.startOf = function(b, c) {
|
|
4879
|
-
var
|
|
4880
|
-
var ae = F.w(
|
|
4879
|
+
var h = this, m = !!F.u(c) || c, f = F.p(b), s = function(ie, oe) {
|
|
4880
|
+
var ae = F.w(h.$u ? Date.UTC(h.$y, oe, ie) : new Date(h.$y, oe, ie), h);
|
|
4881
4881
|
return m ? ae : ae.endOf(y);
|
|
4882
4882
|
}, v = function(ie, oe) {
|
|
4883
|
-
return F.w(
|
|
4883
|
+
return F.w(h.toDate()[ie].apply(h.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(oe)), h);
|
|
4884
4884
|
}, E = this.$W, R = this.$M, Q = this.$D, Z = "set" + (this.$u ? "UTC" : "");
|
|
4885
4885
|
switch (f) {
|
|
4886
4886
|
case S:
|
|
@@ -4897,7 +4897,7 @@ function Gc() {
|
|
|
4897
4897
|
return v(Z + "Minutes", 1);
|
|
4898
4898
|
case a:
|
|
4899
4899
|
return v(Z + "Seconds", 2);
|
|
4900
|
-
case
|
|
4900
|
+
case d:
|
|
4901
4901
|
return v(Z + "Milliseconds", 3);
|
|
4902
4902
|
default:
|
|
4903
4903
|
return this.clone();
|
|
@@ -4905,7 +4905,7 @@ function Gc() {
|
|
|
4905
4905
|
}, x.endOf = function(b) {
|
|
4906
4906
|
return this.startOf(b, !1);
|
|
4907
4907
|
}, x.$set = function(b, c) {
|
|
4908
|
-
var
|
|
4908
|
+
var h, m = F.p(b), f = "set" + (this.$u ? "UTC" : ""), s = (h = {}, h[y] = f + "Date", h[k] = f + "Date", h[P] = f + "Month", h[S] = f + "FullYear", h[g] = f + "Hours", h[a] = f + "Minutes", h[d] = f + "Seconds", h[u] = f + "Milliseconds", h)[m], v = m === y ? this.$D + (c - this.$W) : c;
|
|
4909
4909
|
if (m === P || m === S) {
|
|
4910
4910
|
var E = this.clone().set(k, 1);
|
|
4911
4911
|
E.$d[s](v), E.init(), this.$d = E.set(k, Math.min(this.$D, E.daysInMonth())).$d;
|
|
@@ -4916,7 +4916,7 @@ function Gc() {
|
|
|
4916
4916
|
}, x.get = function(b) {
|
|
4917
4917
|
return this[F.p(b)]();
|
|
4918
4918
|
}, x.add = function(b, c) {
|
|
4919
|
-
var
|
|
4919
|
+
var h, m = this;
|
|
4920
4920
|
b = Number(b);
|
|
4921
4921
|
var f = F.p(c), s = function(R) {
|
|
4922
4922
|
var Q = G(m);
|
|
@@ -4926,14 +4926,14 @@ function Gc() {
|
|
|
4926
4926
|
if (f === S) return this.set(S, this.$y + b);
|
|
4927
4927
|
if (f === y) return s(1);
|
|
4928
4928
|
if (f === _) return s(7);
|
|
4929
|
-
var v = (
|
|
4929
|
+
var v = (h = {}, h[a] = n, h[g] = i, h[d] = r, h)[f] || 1, E = this.$d.getTime() + b * v;
|
|
4930
4930
|
return F.w(E, this);
|
|
4931
4931
|
}, x.subtract = function(b, c) {
|
|
4932
4932
|
return this.add(-1 * b, c);
|
|
4933
4933
|
}, x.format = function(b) {
|
|
4934
|
-
var c = this,
|
|
4935
|
-
if (!this.isValid()) return
|
|
4936
|
-
var m = b || "YYYY-MM-DDTHH:mm:ssZ", f = F.z(this), s = this.$H, v = this.$m, E = this.$M, R =
|
|
4934
|
+
var c = this, h = this.$locale();
|
|
4935
|
+
if (!this.isValid()) return h.invalidDate || O;
|
|
4936
|
+
var m = b || "YYYY-MM-DDTHH:mm:ssZ", f = F.z(this), s = this.$H, v = this.$m, E = this.$M, R = h.weekdays, Q = h.months, Z = h.meridiem, X = function(oe, ae, A, $) {
|
|
4937
4937
|
return oe && (oe[ae] || oe(c, m)) || A[ae].slice(0, $);
|
|
4938
4938
|
}, H = function(oe) {
|
|
4939
4939
|
return F.s(s % 12 || 12, oe, "0");
|
|
@@ -4953,7 +4953,7 @@ function Gc() {
|
|
|
4953
4953
|
case "MM":
|
|
4954
4954
|
return F.s(E + 1, 2, "0");
|
|
4955
4955
|
case "MMM":
|
|
4956
|
-
return X(
|
|
4956
|
+
return X(h.monthsShort, E, Q, 3);
|
|
4957
4957
|
case "MMMM":
|
|
4958
4958
|
return X(Q, E);
|
|
4959
4959
|
case "D":
|
|
@@ -4963,9 +4963,9 @@ function Gc() {
|
|
|
4963
4963
|
case "d":
|
|
4964
4964
|
return String(c.$W);
|
|
4965
4965
|
case "dd":
|
|
4966
|
-
return X(
|
|
4966
|
+
return X(h.weekdaysMin, c.$W, R, 2);
|
|
4967
4967
|
case "ddd":
|
|
4968
|
-
return X(
|
|
4968
|
+
return X(h.weekdaysShort, c.$W, R, 3);
|
|
4969
4969
|
case "dddd":
|
|
4970
4970
|
return R[c.$W];
|
|
4971
4971
|
case "H":
|
|
@@ -4998,7 +4998,7 @@ function Gc() {
|
|
|
4998
4998
|
}));
|
|
4999
4999
|
}, x.utcOffset = function() {
|
|
5000
5000
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5001
|
-
}, x.diff = function(b, c,
|
|
5001
|
+
}, x.diff = function(b, c, h) {
|
|
5002
5002
|
var m, f = this, s = F.p(c), v = G(b), E = (v.utcOffset() - this.utcOffset()) * n, R = this - v, Q = function() {
|
|
5003
5003
|
return F.m(f, v);
|
|
5004
5004
|
};
|
|
@@ -5024,21 +5024,21 @@ function Gc() {
|
|
|
5024
5024
|
case a:
|
|
5025
5025
|
m = R / n;
|
|
5026
5026
|
break;
|
|
5027
|
-
case
|
|
5027
|
+
case d:
|
|
5028
5028
|
m = R / r;
|
|
5029
5029
|
break;
|
|
5030
5030
|
default:
|
|
5031
5031
|
m = R;
|
|
5032
5032
|
}
|
|
5033
|
-
return
|
|
5033
|
+
return h ? m : F.a(m);
|
|
5034
5034
|
}, x.daysInMonth = function() {
|
|
5035
5035
|
return this.endOf(P).$D;
|
|
5036
5036
|
}, x.$locale = function() {
|
|
5037
5037
|
return ee[this.$L];
|
|
5038
5038
|
}, x.locale = function(b, c) {
|
|
5039
5039
|
if (!b) return this.$L;
|
|
5040
|
-
var
|
|
5041
|
-
return m && (
|
|
5040
|
+
var h = this.clone(), m = q(b, c, !0);
|
|
5041
|
+
return m && (h.$L = m), h;
|
|
5042
5042
|
}, x.clone = function() {
|
|
5043
5043
|
return F.w(this.$d, this);
|
|
5044
5044
|
}, x.toDate = function() {
|
|
@@ -5051,7 +5051,7 @@ function Gc() {
|
|
|
5051
5051
|
return this.$d.toUTCString();
|
|
5052
5052
|
}, D;
|
|
5053
5053
|
})(), re = se.prototype;
|
|
5054
|
-
return G.prototype = re, [["$ms", u], ["$s",
|
|
5054
|
+
return G.prototype = re, [["$ms", u], ["$s", d], ["$m", a], ["$H", g], ["$W", y], ["$M", P], ["$y", S], ["$D", k]].forEach((function(D) {
|
|
5055
5055
|
re[D[1]] = function(x) {
|
|
5056
5056
|
return this.$g(x, D[0], D[1]);
|
|
5057
5057
|
};
|
|
@@ -5131,16 +5131,16 @@ function Qi({
|
|
|
5131
5131
|
cellIndex: i,
|
|
5132
5132
|
size: u
|
|
5133
5133
|
}) {
|
|
5134
|
-
const
|
|
5135
|
-
if (!
|
|
5134
|
+
const d = Zc({ direction: e, size: u, rowIndex: n, cellIndex: i, levelIndex: r });
|
|
5135
|
+
if (!d)
|
|
5136
5136
|
return;
|
|
5137
|
-
const a = t.current?.[
|
|
5137
|
+
const a = t.current?.[d.levelIndex]?.[d.rowIndex]?.[d.cellIndex];
|
|
5138
5138
|
a && (a.disabled || a.getAttribute("data-hidden") || a.getAttribute("data-outside") ? Qi({
|
|
5139
5139
|
controlsRef: t,
|
|
5140
5140
|
direction: e,
|
|
5141
|
-
levelIndex:
|
|
5142
|
-
cellIndex:
|
|
5143
|
-
rowIndex:
|
|
5141
|
+
levelIndex: d.levelIndex,
|
|
5142
|
+
cellIndex: d.cellIndex,
|
|
5143
|
+
rowIndex: d.rowIndex,
|
|
5144
5144
|
size: u
|
|
5145
5145
|
}) : a.focus());
|
|
5146
5146
|
}
|
|
@@ -5171,14 +5171,14 @@ function Zn({
|
|
|
5171
5171
|
const u = Kc(i.key);
|
|
5172
5172
|
if (u) {
|
|
5173
5173
|
i.preventDefault();
|
|
5174
|
-
const
|
|
5174
|
+
const d = Jc(t);
|
|
5175
5175
|
Qi({
|
|
5176
5176
|
controlsRef: t,
|
|
5177
5177
|
direction: u,
|
|
5178
5178
|
levelIndex: e,
|
|
5179
5179
|
rowIndex: r,
|
|
5180
5180
|
cellIndex: n,
|
|
5181
|
-
size:
|
|
5181
|
+
size: d
|
|
5182
5182
|
});
|
|
5183
5183
|
}
|
|
5184
5184
|
}
|
|
@@ -5255,7 +5255,7 @@ const ru = ur((t, { size: e }) => ({
|
|
|
5255
5255
|
classNames: n,
|
|
5256
5256
|
className: i,
|
|
5257
5257
|
style: u,
|
|
5258
|
-
styles:
|
|
5258
|
+
styles: d,
|
|
5259
5259
|
unstyled: a,
|
|
5260
5260
|
vars: g,
|
|
5261
5261
|
date: y,
|
|
@@ -5280,7 +5280,7 @@ const ru = ur((t, { size: e }) => ({
|
|
|
5280
5280
|
className: i,
|
|
5281
5281
|
style: u,
|
|
5282
5282
|
classNames: n,
|
|
5283
|
-
styles:
|
|
5283
|
+
styles: d,
|
|
5284
5284
|
unstyled: a,
|
|
5285
5285
|
attributes: ee,
|
|
5286
5286
|
vars: g,
|
|
@@ -5334,7 +5334,7 @@ const ou = ur((t, { size: e }) => ({
|
|
|
5334
5334
|
classNames: n,
|
|
5335
5335
|
className: i,
|
|
5336
5336
|
style: u,
|
|
5337
|
-
styles:
|
|
5337
|
+
styles: d,
|
|
5338
5338
|
unstyled: a,
|
|
5339
5339
|
vars: g,
|
|
5340
5340
|
locale: y,
|
|
@@ -5352,7 +5352,7 @@ const ou = ur((t, { size: e }) => ({
|
|
|
5352
5352
|
className: i,
|
|
5353
5353
|
style: u,
|
|
5354
5354
|
classNames: n,
|
|
5355
|
-
styles:
|
|
5355
|
+
styles: d,
|
|
5356
5356
|
unstyled: a,
|
|
5357
5357
|
attributes: O,
|
|
5358
5358
|
vars: g,
|
|
@@ -5390,7 +5390,7 @@ function au({
|
|
|
5390
5390
|
firstDayOfWeek: e = 1,
|
|
5391
5391
|
consistentWeeks: r
|
|
5392
5392
|
}) {
|
|
5393
|
-
const n = ce(t).subtract(ce(t).date() - 1, "day"), i = ce(n.format("YYYY-M-D")), u = i.format("YYYY-MM-DD"),
|
|
5393
|
+
const n = ce(t).subtract(ce(t).date() - 1, "day"), i = ce(n.format("YYYY-M-D")), u = i.format("YYYY-MM-DD"), d = i.add(+i.daysInMonth() - 1, "day").format("YYYY-MM-DD"), a = iu(d, e), g = [];
|
|
5394
5394
|
let y = ce(su(u, e));
|
|
5395
5395
|
for (; ce(y).isBefore(a, "day"); ) {
|
|
5396
5396
|
const _ = [];
|
|
@@ -5426,32 +5426,32 @@ function lu({
|
|
|
5426
5426
|
getDayProps: n,
|
|
5427
5427
|
excludeDate: i,
|
|
5428
5428
|
hideOutsideDates: u,
|
|
5429
|
-
month:
|
|
5429
|
+
month: d
|
|
5430
5430
|
}) {
|
|
5431
5431
|
const a = t.flat().filter(
|
|
5432
|
-
(_) => rs(_, r) && ts(_, e) && !i?.(_) && !n?.(_)?.disabled && (!u || Xn(_,
|
|
5432
|
+
(_) => rs(_, r) && ts(_, e) && !i?.(_) && !n?.(_)?.disabled && (!u || Xn(_, d))
|
|
5433
5433
|
), g = a.find((_) => n?.(_)?.selected);
|
|
5434
5434
|
if (g)
|
|
5435
5435
|
return g;
|
|
5436
5436
|
const y = a.find((_) => ce().isSame(_, "date"));
|
|
5437
5437
|
return y || a[0];
|
|
5438
5438
|
}
|
|
5439
|
-
var Or = { exports: {} }, cu = Or.exports,
|
|
5439
|
+
var Or = { exports: {} }, cu = Or.exports, hi;
|
|
5440
5440
|
function uu() {
|
|
5441
|
-
return
|
|
5441
|
+
return hi || (hi = 1, (function(t, e) {
|
|
5442
5442
|
(function(r, n) {
|
|
5443
5443
|
t.exports = n();
|
|
5444
5444
|
})(cu, (function() {
|
|
5445
5445
|
var r = "day";
|
|
5446
5446
|
return function(n, i, u) {
|
|
5447
|
-
var
|
|
5447
|
+
var d = function(y) {
|
|
5448
5448
|
return y.add(4 - y.isoWeekday(), r);
|
|
5449
5449
|
}, a = i.prototype;
|
|
5450
5450
|
a.isoWeekYear = function() {
|
|
5451
|
-
return
|
|
5451
|
+
return d(this).year();
|
|
5452
5452
|
}, a.isoWeek = function(y) {
|
|
5453
5453
|
if (!this.$utils().u(y)) return this.add(7 * (y - this.isoWeek()), r);
|
|
5454
|
-
var _, P, C, S, k =
|
|
5454
|
+
var _, P, C, S, k = d(this), O = (_ = this.isoWeekYear(), P = this.$u, C = (P ? u.utc : u)().year(_).startOf("year"), S = 4 - C.isoWeekday(), C.isoWeekday() > 4 && (S += 7), C.add(S, r));
|
|
5455
5455
|
return k.diff(O, "week") + 1;
|
|
5456
5456
|
}, a.isoWeekday = function(y) {
|
|
5457
5457
|
return this.$utils().u(y) ? this.day() || 7 : this.day(this.day() % 7 ? y : y - 7);
|
|
@@ -5465,9 +5465,9 @@ function uu() {
|
|
|
5465
5465
|
}));
|
|
5466
5466
|
})(Or)), Or.exports;
|
|
5467
5467
|
}
|
|
5468
|
-
var
|
|
5469
|
-
const
|
|
5470
|
-
ce.extend(
|
|
5468
|
+
var hu = uu();
|
|
5469
|
+
const du = /* @__PURE__ */ Li(hu);
|
|
5470
|
+
ce.extend(du);
|
|
5471
5471
|
function fu(t) {
|
|
5472
5472
|
const e = t.find((r) => ce(r).day() === 1);
|
|
5473
5473
|
return ce(e).isoWeek();
|
|
@@ -5485,7 +5485,7 @@ const pu = {
|
|
|
5485
5485
|
classNames: n,
|
|
5486
5486
|
className: i,
|
|
5487
5487
|
style: u,
|
|
5488
|
-
styles:
|
|
5488
|
+
styles: d,
|
|
5489
5489
|
unstyled: a,
|
|
5490
5490
|
vars: g,
|
|
5491
5491
|
__staticSelector: y,
|
|
@@ -5513,7 +5513,7 @@ const pu = {
|
|
|
5513
5513
|
size: x,
|
|
5514
5514
|
highlightToday: b,
|
|
5515
5515
|
withWeekNumbers: c,
|
|
5516
|
-
attributes:
|
|
5516
|
+
attributes: h,
|
|
5517
5517
|
...m
|
|
5518
5518
|
} = r, f = _t({
|
|
5519
5519
|
name: y || "Month",
|
|
@@ -5522,9 +5522,9 @@ const pu = {
|
|
|
5522
5522
|
className: i,
|
|
5523
5523
|
style: u,
|
|
5524
5524
|
classNames: n,
|
|
5525
|
-
styles:
|
|
5525
|
+
styles: d,
|
|
5526
5526
|
unstyled: a,
|
|
5527
|
-
attributes:
|
|
5527
|
+
attributes: h,
|
|
5528
5528
|
vars: g,
|
|
5529
5529
|
varsResolver: gu,
|
|
5530
5530
|
rootSelector: "month"
|
|
@@ -5542,7 +5542,7 @@ const pu = {
|
|
|
5542
5542
|
month: S
|
|
5543
5543
|
}), { resolvedClassNames: R, resolvedStyles: Q } = Pi({
|
|
5544
5544
|
classNames: n,
|
|
5545
|
-
styles:
|
|
5545
|
+
styles: d,
|
|
5546
5546
|
props: r
|
|
5547
5547
|
}), Z = v.map((X, H) => {
|
|
5548
5548
|
const ie = X.map((oe, ae) => {
|
|
@@ -5629,7 +5629,7 @@ const mu = ur((t, { size: e }) => ({
|
|
|
5629
5629
|
classNames: n,
|
|
5630
5630
|
className: i,
|
|
5631
5631
|
style: u,
|
|
5632
|
-
styles:
|
|
5632
|
+
styles: d,
|
|
5633
5633
|
unstyled: a,
|
|
5634
5634
|
vars: g,
|
|
5635
5635
|
firstInRange: y,
|
|
@@ -5647,7 +5647,7 @@ const mu = ur((t, { size: e }) => ({
|
|
|
5647
5647
|
className: i,
|
|
5648
5648
|
style: u,
|
|
5649
5649
|
classNames: n,
|
|
5650
|
-
styles:
|
|
5650
|
+
styles: d,
|
|
5651
5651
|
unstyled: a,
|
|
5652
5652
|
attributes: O,
|
|
5653
5653
|
vars: g,
|
|
@@ -5687,16 +5687,16 @@ function yu({
|
|
|
5687
5687
|
), u = i.find((a) => n?.(a)?.selected);
|
|
5688
5688
|
if (u)
|
|
5689
5689
|
return u;
|
|
5690
|
-
const
|
|
5691
|
-
return
|
|
5690
|
+
const d = i.find((a) => ce().isSame(a, "year"));
|
|
5691
|
+
return d || i[0];
|
|
5692
5692
|
}
|
|
5693
5693
|
function ss(t) {
|
|
5694
5694
|
const e = ce(t).year(), r = e - e % 10;
|
|
5695
5695
|
let n = 0;
|
|
5696
5696
|
const i = [[], [], [], []];
|
|
5697
5697
|
for (let u = 0; u < 4; u += 1) {
|
|
5698
|
-
const
|
|
5699
|
-
for (let a = 0; a <
|
|
5698
|
+
const d = u === 3 ? 1 : 3;
|
|
5699
|
+
for (let a = 0; a < d; a += 1)
|
|
5700
5700
|
i[u].push(ce(new Date(r + n, 0)).format("YYYY-MM-DD")), n += 1;
|
|
5701
5701
|
}
|
|
5702
5702
|
return i;
|
|
@@ -5710,7 +5710,7 @@ const vu = {
|
|
|
5710
5710
|
classNames: n,
|
|
5711
5711
|
className: i,
|
|
5712
5712
|
style: u,
|
|
5713
|
-
styles:
|
|
5713
|
+
styles: d,
|
|
5714
5714
|
unstyled: a,
|
|
5715
5715
|
vars: g,
|
|
5716
5716
|
decade: y,
|
|
@@ -5737,7 +5737,7 @@ const vu = {
|
|
|
5737
5737
|
className: i,
|
|
5738
5738
|
style: u,
|
|
5739
5739
|
classNames: n,
|
|
5740
|
-
styles:
|
|
5740
|
+
styles: d,
|
|
5741
5741
|
unstyled: a,
|
|
5742
5742
|
attributes: V,
|
|
5743
5743
|
vars: g,
|
|
@@ -5748,8 +5748,8 @@ const vu = {
|
|
|
5748
5748
|
maxDate: S,
|
|
5749
5749
|
getYearControlProps: k
|
|
5750
5750
|
}), D = se.map((x, b) => {
|
|
5751
|
-
const c = x.map((
|
|
5752
|
-
const f = k?.(
|
|
5751
|
+
const c = x.map((h, m) => {
|
|
5752
|
+
const f = k?.(h), s = ce(h).isSame(re, "year");
|
|
5753
5753
|
return /* @__PURE__ */ w.jsx(
|
|
5754
5754
|
"td",
|
|
5755
5755
|
{
|
|
@@ -5762,25 +5762,25 @@ const vu = {
|
|
|
5762
5762
|
size: K,
|
|
5763
5763
|
unstyled: a,
|
|
5764
5764
|
"data-mantine-stop-propagation": J || void 0,
|
|
5765
|
-
disabled: is({ year:
|
|
5765
|
+
disabled: is({ year: h, minDate: C, maxDate: S }),
|
|
5766
5766
|
ref: (v) => {
|
|
5767
5767
|
v && N?.(b, m, v);
|
|
5768
5768
|
},
|
|
5769
5769
|
...f,
|
|
5770
5770
|
onKeyDown: (v) => {
|
|
5771
|
-
f?.onKeyDown?.(v), I?.(v, { rowIndex: b, cellIndex: m, date:
|
|
5771
|
+
f?.onKeyDown?.(v), I?.(v, { rowIndex: b, cellIndex: m, date: h });
|
|
5772
5772
|
},
|
|
5773
5773
|
onClick: (v) => {
|
|
5774
|
-
f?.onClick?.(v), Y?.(v,
|
|
5774
|
+
f?.onClick?.(v), Y?.(v, h);
|
|
5775
5775
|
},
|
|
5776
5776
|
onMouseEnter: (v) => {
|
|
5777
|
-
f?.onMouseEnter?.(v), U?.(v,
|
|
5777
|
+
f?.onMouseEnter?.(v), U?.(v, h);
|
|
5778
5778
|
},
|
|
5779
5779
|
onMouseDown: (v) => {
|
|
5780
5780
|
f?.onMouseDown?.(v), W && v.preventDefault();
|
|
5781
5781
|
},
|
|
5782
5782
|
tabIndex: W || !s ? -1 : 0,
|
|
5783
|
-
children: ce(
|
|
5783
|
+
children: ce(h).locale(F.getLocale(P)).format(_)
|
|
5784
5784
|
}
|
|
5785
5785
|
)
|
|
5786
5786
|
},
|
|
@@ -5807,8 +5807,8 @@ function bu({
|
|
|
5807
5807
|
), u = i.find((a) => n?.(a)?.selected);
|
|
5808
5808
|
if (u)
|
|
5809
5809
|
return u;
|
|
5810
|
-
const
|
|
5811
|
-
return
|
|
5810
|
+
const d = i.find((a) => ce().isSame(a, "month"));
|
|
5811
|
+
return d || i[0];
|
|
5812
5812
|
}
|
|
5813
5813
|
function wu(t) {
|
|
5814
5814
|
const e = ce(t).startOf("year").toDate(), r = [[], [], [], []];
|
|
@@ -5827,7 +5827,7 @@ const _u = {
|
|
|
5827
5827
|
classNames: n,
|
|
5828
5828
|
className: i,
|
|
5829
5829
|
style: u,
|
|
5830
|
-
styles:
|
|
5830
|
+
styles: d,
|
|
5831
5831
|
unstyled: a,
|
|
5832
5832
|
vars: g,
|
|
5833
5833
|
__staticSelector: y,
|
|
@@ -5854,7 +5854,7 @@ const _u = {
|
|
|
5854
5854
|
className: i,
|
|
5855
5855
|
style: u,
|
|
5856
5856
|
classNames: n,
|
|
5857
|
-
styles:
|
|
5857
|
+
styles: d,
|
|
5858
5858
|
unstyled: a,
|
|
5859
5859
|
attributes: V,
|
|
5860
5860
|
vars: g,
|
|
@@ -5865,8 +5865,8 @@ const _u = {
|
|
|
5865
5865
|
maxDate: et(k),
|
|
5866
5866
|
getMonthControlProps: O
|
|
5867
5867
|
}), D = se.map((x, b) => {
|
|
5868
|
-
const c = x.map((
|
|
5869
|
-
const f = O?.(
|
|
5868
|
+
const c = x.map((h, m) => {
|
|
5869
|
+
const f = O?.(h), s = ce(h).isSame(re, "month");
|
|
5870
5870
|
return /* @__PURE__ */ w.jsx(
|
|
5871
5871
|
"td",
|
|
5872
5872
|
{
|
|
@@ -5881,7 +5881,7 @@ const _u = {
|
|
|
5881
5881
|
__staticSelector: y || "MonthsList",
|
|
5882
5882
|
"data-mantine-stop-propagation": J || void 0,
|
|
5883
5883
|
disabled: ls({
|
|
5884
|
-
month:
|
|
5884
|
+
month: h,
|
|
5885
5885
|
minDate: et(S),
|
|
5886
5886
|
maxDate: et(k)
|
|
5887
5887
|
}),
|
|
@@ -5890,19 +5890,19 @@ const _u = {
|
|
|
5890
5890
|
},
|
|
5891
5891
|
...f,
|
|
5892
5892
|
onKeyDown: (v) => {
|
|
5893
|
-
f?.onKeyDown?.(v), I?.(v, { rowIndex: b, cellIndex: m, date:
|
|
5893
|
+
f?.onKeyDown?.(v), I?.(v, { rowIndex: b, cellIndex: m, date: h });
|
|
5894
5894
|
},
|
|
5895
5895
|
onClick: (v) => {
|
|
5896
|
-
f?.onClick?.(v), Y?.(v,
|
|
5896
|
+
f?.onClick?.(v), Y?.(v, h);
|
|
5897
5897
|
},
|
|
5898
5898
|
onMouseEnter: (v) => {
|
|
5899
|
-
f?.onMouseEnter?.(v), U?.(v,
|
|
5899
|
+
f?.onMouseEnter?.(v), U?.(v, h);
|
|
5900
5900
|
},
|
|
5901
5901
|
onMouseDown: (v) => {
|
|
5902
5902
|
f?.onMouseDown?.(v), W && v.preventDefault();
|
|
5903
5903
|
},
|
|
5904
5904
|
tabIndex: W || !s ? -1 : 0,
|
|
5905
|
-
children: ce(
|
|
5905
|
+
children: ce(h).locale(F.getLocale(C)).format(P)
|
|
5906
5906
|
}
|
|
5907
5907
|
)
|
|
5908
5908
|
},
|
|
@@ -5931,7 +5931,7 @@ const xu = {
|
|
|
5931
5931
|
classNames: n,
|
|
5932
5932
|
className: i,
|
|
5933
5933
|
style: u,
|
|
5934
|
-
styles:
|
|
5934
|
+
styles: d,
|
|
5935
5935
|
unstyled: a,
|
|
5936
5936
|
vars: g,
|
|
5937
5937
|
nextIcon: y,
|
|
@@ -5961,7 +5961,7 @@ const xu = {
|
|
|
5961
5961
|
className: i,
|
|
5962
5962
|
style: u,
|
|
5963
5963
|
classNames: n,
|
|
5964
|
-
styles:
|
|
5964
|
+
styles: d,
|
|
5965
5965
|
unstyled: a,
|
|
5966
5966
|
attributes: F,
|
|
5967
5967
|
vars: g,
|
|
@@ -6029,8 +6029,8 @@ const xu = {
|
|
|
6029
6029
|
size: "45%"
|
|
6030
6030
|
}
|
|
6031
6031
|
)
|
|
6032
|
-
),
|
|
6033
|
-
return /* @__PURE__ */ w.jsx(ze, { ...re("calendarHeader"), ref: e, ...se, children:
|
|
6032
|
+
), h = K.map((m) => m === "previous" ? x : m === "level" ? b : m === "next" ? c : null);
|
|
6033
|
+
return /* @__PURE__ */ w.jsx(ze, { ...re("calendarHeader"), ref: e, ...se, children: h });
|
|
6034
6034
|
});
|
|
6035
6035
|
Ct.classes = us;
|
|
6036
6036
|
Ct.displayName = "@mantine/dates/CalendarHeader";
|
|
@@ -6046,7 +6046,7 @@ const Du = {
|
|
|
6046
6046
|
decade: n,
|
|
6047
6047
|
locale: i,
|
|
6048
6048
|
minDate: u,
|
|
6049
|
-
maxDate:
|
|
6049
|
+
maxDate: d,
|
|
6050
6050
|
yearsListFormat: a,
|
|
6051
6051
|
getYearControlProps: g,
|
|
6052
6052
|
__getControlRef: y,
|
|
@@ -6076,7 +6076,7 @@ const Du = {
|
|
|
6076
6076
|
__staticSelector: x,
|
|
6077
6077
|
__stopPropagation: b,
|
|
6078
6078
|
size: c,
|
|
6079
|
-
attributes:
|
|
6079
|
+
attributes: h,
|
|
6080
6080
|
...m
|
|
6081
6081
|
} = r, f = xt(), [s, v] = Su(n), E = {
|
|
6082
6082
|
__staticSelector: x || "DecadeLevel",
|
|
@@ -6084,8 +6084,8 @@ const Du = {
|
|
|
6084
6084
|
styles: re,
|
|
6085
6085
|
unstyled: D,
|
|
6086
6086
|
size: c,
|
|
6087
|
-
attributes:
|
|
6088
|
-
}, R = typeof J == "boolean" ? J :
|
|
6087
|
+
attributes: h
|
|
6088
|
+
}, R = typeof J == "boolean" ? J : d ? !ce(v).endOf("year").isBefore(d) : !1, Q = typeof ee == "boolean" ? ee : u ? !ce(s).startOf("year").isAfter(u) : !1, Z = (X, H) => ce(X).locale(i || f.locale).format(H);
|
|
6089
6089
|
return /* @__PURE__ */ w.jsxs(ze, { "data-decade-level": !0, size: c, ref: e, ...m, children: [
|
|
6090
6090
|
/* @__PURE__ */ w.jsx(
|
|
6091
6091
|
Ct,
|
|
@@ -6118,7 +6118,7 @@ const Du = {
|
|
|
6118
6118
|
decade: n,
|
|
6119
6119
|
locale: i,
|
|
6120
6120
|
minDate: u,
|
|
6121
|
-
maxDate:
|
|
6121
|
+
maxDate: d,
|
|
6122
6122
|
yearsListFormat: a,
|
|
6123
6123
|
getYearControlProps: g,
|
|
6124
6124
|
__getControlRef: y,
|
|
@@ -6143,7 +6143,7 @@ const ku = {
|
|
|
6143
6143
|
year: n,
|
|
6144
6144
|
locale: i,
|
|
6145
6145
|
minDate: u,
|
|
6146
|
-
maxDate:
|
|
6146
|
+
maxDate: d,
|
|
6147
6147
|
monthsListFormat: a,
|
|
6148
6148
|
getMonthControlProps: g,
|
|
6149
6149
|
__getControlRef: y,
|
|
@@ -6173,18 +6173,18 @@ const ku = {
|
|
|
6173
6173
|
__stopPropagation: x,
|
|
6174
6174
|
size: b,
|
|
6175
6175
|
classNames: c,
|
|
6176
|
-
styles:
|
|
6176
|
+
styles: h,
|
|
6177
6177
|
unstyled: m,
|
|
6178
6178
|
attributes: f,
|
|
6179
6179
|
...s
|
|
6180
6180
|
} = r, v = xt(), E = {
|
|
6181
6181
|
__staticSelector: D || "YearLevel",
|
|
6182
6182
|
classNames: c,
|
|
6183
|
-
styles:
|
|
6183
|
+
styles: h,
|
|
6184
6184
|
unstyled: m,
|
|
6185
6185
|
size: b,
|
|
6186
6186
|
attributes: f
|
|
6187
|
-
}, R = typeof ee == "boolean" ? ee :
|
|
6187
|
+
}, R = typeof ee == "boolean" ? ee : d ? !ce(n).endOf("year").isBefore(d) : !1, Q = typeof K == "boolean" ? K : u ? !ce(n).startOf("year").isAfter(u) : !1;
|
|
6188
6188
|
return /* @__PURE__ */ w.jsxs(ze, { "data-year-level": !0, size: b, ref: e, ...s, children: [
|
|
6189
6189
|
/* @__PURE__ */ w.jsx(
|
|
6190
6190
|
Ct,
|
|
@@ -6215,7 +6215,7 @@ const ku = {
|
|
|
6215
6215
|
year: n,
|
|
6216
6216
|
locale: i,
|
|
6217
6217
|
minDate: u,
|
|
6218
|
-
maxDate:
|
|
6218
|
+
maxDate: d,
|
|
6219
6219
|
monthsListFormat: a,
|
|
6220
6220
|
getMonthControlProps: g,
|
|
6221
6221
|
__getControlRef: y,
|
|
@@ -6240,7 +6240,7 @@ const Pu = {
|
|
|
6240
6240
|
month: n,
|
|
6241
6241
|
locale: i,
|
|
6242
6242
|
firstDayOfWeek: u,
|
|
6243
|
-
weekdayFormat:
|
|
6243
|
+
weekdayFormat: d,
|
|
6244
6244
|
weekendDays: a,
|
|
6245
6245
|
getDayProps: g,
|
|
6246
6246
|
excludeDate: y,
|
|
@@ -6269,7 +6269,7 @@ const Pu = {
|
|
|
6269
6269
|
onLevelClick: x,
|
|
6270
6270
|
nextDisabled: b,
|
|
6271
6271
|
previousDisabled: c,
|
|
6272
|
-
hasNextLevel:
|
|
6272
|
+
hasNextLevel: h,
|
|
6273
6273
|
levelControlAriaLabel: m,
|
|
6274
6274
|
withNext: f,
|
|
6275
6275
|
withPrevious: s,
|
|
@@ -6308,7 +6308,7 @@ const Pu = {
|
|
|
6308
6308
|
onLevelClick: x,
|
|
6309
6309
|
nextDisabled: j,
|
|
6310
6310
|
previousDisabled: L,
|
|
6311
|
-
hasNextLevel:
|
|
6311
|
+
hasNextLevel: h,
|
|
6312
6312
|
levelControlAriaLabel: m,
|
|
6313
6313
|
withNext: f,
|
|
6314
6314
|
withPrevious: s,
|
|
@@ -6322,7 +6322,7 @@ const Pu = {
|
|
|
6322
6322
|
month: n,
|
|
6323
6323
|
locale: i,
|
|
6324
6324
|
firstDayOfWeek: u,
|
|
6325
|
-
weekdayFormat:
|
|
6325
|
+
weekdayFormat: d,
|
|
6326
6326
|
weekendDays: a,
|
|
6327
6327
|
getDayProps: g,
|
|
6328
6328
|
excludeDate: y,
|
|
@@ -6349,13 +6349,13 @@ const Pu = {
|
|
|
6349
6349
|
});
|
|
6350
6350
|
Hr.classes = { ...zr.classes, ...Ct.classes };
|
|
6351
6351
|
Hr.displayName = "@mantine/dates/MonthLevel";
|
|
6352
|
-
var
|
|
6352
|
+
var hs = { levelsGroup: "m_30b26e33" };
|
|
6353
6353
|
const St = Le((t, e) => {
|
|
6354
6354
|
const r = Fe("LevelsGroup", null, t), {
|
|
6355
6355
|
classNames: n,
|
|
6356
6356
|
className: i,
|
|
6357
6357
|
style: u,
|
|
6358
|
-
styles:
|
|
6358
|
+
styles: d,
|
|
6359
6359
|
unstyled: a,
|
|
6360
6360
|
vars: g,
|
|
6361
6361
|
__staticSelector: y,
|
|
@@ -6363,12 +6363,12 @@ const St = Le((t, e) => {
|
|
|
6363
6363
|
...P
|
|
6364
6364
|
} = r, C = _t({
|
|
6365
6365
|
name: y || "LevelsGroup",
|
|
6366
|
-
classes:
|
|
6366
|
+
classes: hs,
|
|
6367
6367
|
props: r,
|
|
6368
6368
|
className: i,
|
|
6369
6369
|
style: u,
|
|
6370
6370
|
classNames: n,
|
|
6371
|
-
styles:
|
|
6371
|
+
styles: d,
|
|
6372
6372
|
unstyled: a,
|
|
6373
6373
|
attributes: _,
|
|
6374
6374
|
vars: g,
|
|
@@ -6376,7 +6376,7 @@ const St = Le((t, e) => {
|
|
|
6376
6376
|
});
|
|
6377
6377
|
return /* @__PURE__ */ w.jsx(ze, { ref: e, ...C("levelsGroup"), ...P });
|
|
6378
6378
|
});
|
|
6379
|
-
St.classes =
|
|
6379
|
+
St.classes = hs;
|
|
6380
6380
|
St.displayName = "@mantine/dates/LevelsGroup";
|
|
6381
6381
|
const Ou = {
|
|
6382
6382
|
numberOfColumns: 1
|
|
@@ -6386,7 +6386,7 @@ const Ou = {
|
|
|
6386
6386
|
decade: n,
|
|
6387
6387
|
locale: i,
|
|
6388
6388
|
minDate: u,
|
|
6389
|
-
maxDate:
|
|
6389
|
+
maxDate: d,
|
|
6390
6390
|
yearsListFormat: a,
|
|
6391
6391
|
getYearControlProps: g,
|
|
6392
6392
|
__onControlClick: y,
|
|
@@ -6416,7 +6416,7 @@ const Ou = {
|
|
|
6416
6416
|
vars: x,
|
|
6417
6417
|
attributes: b,
|
|
6418
6418
|
...c
|
|
6419
|
-
} = r,
|
|
6419
|
+
} = r, h = Ce([]), m = Array(F).fill(0).map((f, s) => {
|
|
6420
6420
|
const v = ce(n).add(s * 10, "years").format("YYYY-MM-DD");
|
|
6421
6421
|
return /* @__PURE__ */ w.jsx(
|
|
6422
6422
|
qr,
|
|
@@ -6434,15 +6434,15 @@ const Ou = {
|
|
|
6434
6434
|
rowIndex: R.rowIndex,
|
|
6435
6435
|
cellIndex: R.cellIndex,
|
|
6436
6436
|
event: E,
|
|
6437
|
-
controlsRef:
|
|
6437
|
+
controlsRef: h
|
|
6438
6438
|
}),
|
|
6439
6439
|
__getControlRef: (E, R, Q) => {
|
|
6440
|
-
Array.isArray(
|
|
6440
|
+
Array.isArray(h.current[s]) || (h.current[s] = []), Array.isArray(h.current[s][E]) || (h.current[s][E] = []), h.current[s][E][R] = Q;
|
|
6441
6441
|
},
|
|
6442
6442
|
levelControlAriaLabel: typeof se == "function" ? se(v) : se,
|
|
6443
6443
|
locale: i,
|
|
6444
6444
|
minDate: u,
|
|
6445
|
-
maxDate:
|
|
6445
|
+
maxDate: d,
|
|
6446
6446
|
__preventFocus: C,
|
|
6447
6447
|
__stopPropagation: G,
|
|
6448
6448
|
nextIcon: S,
|
|
@@ -6490,7 +6490,7 @@ const Mu = {
|
|
|
6490
6490
|
year: n,
|
|
6491
6491
|
locale: i,
|
|
6492
6492
|
minDate: u,
|
|
6493
|
-
maxDate:
|
|
6493
|
+
maxDate: d,
|
|
6494
6494
|
monthsListFormat: a,
|
|
6495
6495
|
getMonthControlProps: g,
|
|
6496
6496
|
__onControlClick: y,
|
|
@@ -6520,7 +6520,7 @@ const Mu = {
|
|
|
6520
6520
|
yearLabelFormat: x,
|
|
6521
6521
|
size: b,
|
|
6522
6522
|
vars: c,
|
|
6523
|
-
attributes:
|
|
6523
|
+
attributes: h,
|
|
6524
6524
|
...m
|
|
6525
6525
|
} = r, f = Ce([]), s = Array(re).fill(0).map((v, E) => {
|
|
6526
6526
|
const R = ce(n).add(E, "years").format("YYYY-MM-DD");
|
|
@@ -6549,7 +6549,7 @@ const Mu = {
|
|
|
6549
6549
|
levelControlAriaLabel: typeof D == "function" ? D(R) : D,
|
|
6550
6550
|
locale: i,
|
|
6551
6551
|
minDate: u,
|
|
6552
|
-
maxDate:
|
|
6552
|
+
maxDate: d,
|
|
6553
6553
|
__preventFocus: C,
|
|
6554
6554
|
nextIcon: S,
|
|
6555
6555
|
previousIcon: k,
|
|
@@ -6568,7 +6568,7 @@ const Mu = {
|
|
|
6568
6568
|
__staticSelector: F || "YearLevelGroup",
|
|
6569
6569
|
withCellSpacing: P,
|
|
6570
6570
|
headerControlsOrder: K,
|
|
6571
|
-
attributes:
|
|
6571
|
+
attributes: h
|
|
6572
6572
|
},
|
|
6573
6573
|
E
|
|
6574
6574
|
);
|
|
@@ -6582,7 +6582,7 @@ const Mu = {
|
|
|
6582
6582
|
ref: e,
|
|
6583
6583
|
size: b,
|
|
6584
6584
|
unstyled: G,
|
|
6585
|
-
attributes:
|
|
6585
|
+
attributes: h,
|
|
6586
6586
|
...m,
|
|
6587
6587
|
children: s
|
|
6588
6588
|
}
|
|
@@ -6598,7 +6598,7 @@ const Au = {
|
|
|
6598
6598
|
month: n,
|
|
6599
6599
|
locale: i,
|
|
6600
6600
|
firstDayOfWeek: u,
|
|
6601
|
-
weekdayFormat:
|
|
6601
|
+
weekdayFormat: d,
|
|
6602
6602
|
weekendDays: a,
|
|
6603
6603
|
getDayProps: g,
|
|
6604
6604
|
excludeDate: y,
|
|
@@ -6628,7 +6628,7 @@ const Au = {
|
|
|
6628
6628
|
headerControlsOrder: b,
|
|
6629
6629
|
// Other settings
|
|
6630
6630
|
classNames: c,
|
|
6631
|
-
styles:
|
|
6631
|
+
styles: h,
|
|
6632
6632
|
unstyled: m,
|
|
6633
6633
|
numberOfColumns: f,
|
|
6634
6634
|
levelControlAriaLabel: s,
|
|
@@ -6665,7 +6665,7 @@ const Au = {
|
|
|
6665
6665
|
levelControlAriaLabel: typeof s == "function" ? s(j) : s,
|
|
6666
6666
|
locale: i,
|
|
6667
6667
|
firstDayOfWeek: u,
|
|
6668
|
-
weekdayFormat:
|
|
6668
|
+
weekdayFormat: d,
|
|
6669
6669
|
weekendDays: a,
|
|
6670
6670
|
getDayProps: g,
|
|
6671
6671
|
excludeDate: y,
|
|
@@ -6687,7 +6687,7 @@ const Au = {
|
|
|
6687
6687
|
previousDisabled: D,
|
|
6688
6688
|
hasNextLevel: x,
|
|
6689
6689
|
classNames: c,
|
|
6690
|
-
styles:
|
|
6690
|
+
styles: h,
|
|
6691
6691
|
unstyled: m,
|
|
6692
6692
|
__staticSelector: E || "MonthLevelGroup",
|
|
6693
6693
|
size: Q,
|
|
@@ -6705,7 +6705,7 @@ const Au = {
|
|
|
6705
6705
|
St,
|
|
6706
6706
|
{
|
|
6707
6707
|
classNames: c,
|
|
6708
|
-
styles:
|
|
6708
|
+
styles: h,
|
|
6709
6709
|
__staticSelector: E || "MonthLevelGroup",
|
|
6710
6710
|
ref: e,
|
|
6711
6711
|
size: Q,
|
|
@@ -6717,7 +6717,7 @@ const Au = {
|
|
|
6717
6717
|
});
|
|
6718
6718
|
Zr.classes = { ...St.classes, ...Hr.classes };
|
|
6719
6719
|
Zr.displayName = "@mantine/dates/MonthLevelGroup";
|
|
6720
|
-
const
|
|
6720
|
+
const di = (t) => t === "range" ? [null, null] : t === "multiple" ? [] : null, fi = (t, e) => {
|
|
6721
6721
|
const r = e ? Zi : et;
|
|
6722
6722
|
return Array.isArray(t) ? t.map(r) : r(t);
|
|
6723
6723
|
};
|
|
@@ -6728,14 +6728,14 @@ function Nn({
|
|
|
6728
6728
|
onChange: n,
|
|
6729
6729
|
withTime: i = !1
|
|
6730
6730
|
}) {
|
|
6731
|
-
const u = Ce(t), [
|
|
6731
|
+
const u = Ce(t), [d, a, g] = $i({
|
|
6732
6732
|
value: fi(e, i),
|
|
6733
6733
|
defaultValue: fi(r, i),
|
|
6734
|
-
finalValue:
|
|
6734
|
+
finalValue: di(t),
|
|
6735
6735
|
onChange: n
|
|
6736
6736
|
});
|
|
6737
|
-
let y =
|
|
6738
|
-
return u.current !== t && (u.current = t, e === void 0 && (y = r !== void 0 ? r :
|
|
6737
|
+
let y = d;
|
|
6738
|
+
return u.current !== t && (u.current = t, e === void 0 && (y = r !== void 0 ? r : di(t), a(y))), [y, a, g];
|
|
6739
6739
|
}
|
|
6740
6740
|
function _n(t, e) {
|
|
6741
6741
|
return t ? t === "month" ? 0 : t === "year" ? 1 : 2 : e || 0;
|
|
@@ -6764,7 +6764,7 @@ const Ru = {
|
|
|
6764
6764
|
vars: n,
|
|
6765
6765
|
maxLevel: i,
|
|
6766
6766
|
minLevel: u,
|
|
6767
|
-
defaultLevel:
|
|
6767
|
+
defaultLevel: d,
|
|
6768
6768
|
level: a,
|
|
6769
6769
|
onLevelChange: g,
|
|
6770
6770
|
date: y,
|
|
@@ -6793,7 +6793,7 @@ const Ru = {
|
|
|
6793
6793
|
renderDay: x,
|
|
6794
6794
|
hideOutsideDates: b,
|
|
6795
6795
|
hideWeekdays: c,
|
|
6796
|
-
getDayAriaLabel:
|
|
6796
|
+
getDayAriaLabel: h,
|
|
6797
6797
|
monthLabelFormat: m,
|
|
6798
6798
|
nextIcon: f,
|
|
6799
6799
|
previousIcon: s,
|
|
@@ -6824,9 +6824,9 @@ const Ru = {
|
|
|
6824
6824
|
onNextDecade: z,
|
|
6825
6825
|
onPreviousDecade: ne,
|
|
6826
6826
|
onNextYear: ue,
|
|
6827
|
-
onPreviousYear:
|
|
6827
|
+
onPreviousYear: de,
|
|
6828
6828
|
onNextMonth: te,
|
|
6829
|
-
onPreviousMonth:
|
|
6829
|
+
onPreviousMonth: he,
|
|
6830
6830
|
static: pe,
|
|
6831
6831
|
enableKeyboardNavigation: fe,
|
|
6832
6832
|
attributes: xe,
|
|
@@ -6837,7 +6837,7 @@ const Ru = {
|
|
|
6837
6837
|
props: r
|
|
6838
6838
|
}), [Me, be] = $i({
|
|
6839
6839
|
value: a ? nr(a, u, i) : void 0,
|
|
6840
|
-
defaultValue:
|
|
6840
|
+
defaultValue: d ? nr(d, u, i) : void 0,
|
|
6841
6841
|
finalValue: nr(void 0, u, i),
|
|
6842
6842
|
onChange: g
|
|
6843
6843
|
}), [ct, Ee] = Nn({
|
|
@@ -6858,18 +6858,18 @@ const Ru = {
|
|
|
6858
6858
|
unstyled: L,
|
|
6859
6859
|
size: p,
|
|
6860
6860
|
attributes: xe
|
|
6861
|
-
}, Ie = S || C || 1, tt = /* @__PURE__ */ new Date(), ut = B && ce(tt).isAfter(B) ? B : ce(tt).format("YYYY-MM-DD"), Re = ct || ut,
|
|
6861
|
+
}, Ie = S || C || 1, tt = /* @__PURE__ */ new Date(), ut = B && ce(tt).isAfter(B) ? B : ce(tt).format("YYYY-MM-DD"), Re = ct || ut, ht = () => {
|
|
6862
6862
|
const me = ce(Re).add(Ie, "month").format("YYYY-MM-DD");
|
|
6863
6863
|
te?.(me), Ee(me);
|
|
6864
6864
|
}, yt = () => {
|
|
6865
6865
|
const me = ce(Re).subtract(Ie, "month").format("YYYY-MM-DD");
|
|
6866
|
-
|
|
6866
|
+
he?.(me), Ee(me);
|
|
6867
6867
|
}, ft = () => {
|
|
6868
6868
|
const me = ce(Re).add(Ie, "year").format("YYYY-MM-DD");
|
|
6869
6869
|
ue?.(me), Ee(me);
|
|
6870
6870
|
}, He = () => {
|
|
6871
6871
|
const me = ce(Re).subtract(Ie, "year").format("YYYY-MM-DD");
|
|
6872
|
-
|
|
6872
|
+
de?.(me), Ee(me);
|
|
6873
6873
|
}, Ge = () => {
|
|
6874
6874
|
const me = ce(Re).add(10 * Ie, "year").format("YYYY-MM-DD");
|
|
6875
6875
|
z?.(me), Ee(me);
|
|
@@ -6927,8 +6927,8 @@ const Ru = {
|
|
|
6927
6927
|
renderDay: x,
|
|
6928
6928
|
hideOutsideDates: b,
|
|
6929
6929
|
hideWeekdays: c,
|
|
6930
|
-
getDayAriaLabel:
|
|
6931
|
-
onNext:
|
|
6930
|
+
getDayAriaLabel: h,
|
|
6931
|
+
onNext: ht,
|
|
6932
6932
|
onPrevious: yt,
|
|
6933
6933
|
hasNextLevel: i !== "month",
|
|
6934
6934
|
onLevelClick: () => be("year"),
|
|
@@ -7026,7 +7026,7 @@ function ju(t) {
|
|
|
7026
7026
|
defaultLevel: n,
|
|
7027
7027
|
level: i,
|
|
7028
7028
|
onLevelChange: u,
|
|
7029
|
-
nextIcon:
|
|
7029
|
+
nextIcon: d,
|
|
7030
7030
|
previousIcon: a,
|
|
7031
7031
|
date: g,
|
|
7032
7032
|
defaultDate: y,
|
|
@@ -7055,7 +7055,7 @@ function ju(t) {
|
|
|
7055
7055
|
withWeekNumbers: b,
|
|
7056
7056
|
headerControlsOrder: c,
|
|
7057
7057
|
// MonthLevelGroup props
|
|
7058
|
-
firstDayOfWeek:
|
|
7058
|
+
firstDayOfWeek: h,
|
|
7059
7059
|
weekdayFormat: m,
|
|
7060
7060
|
weekendDays: f,
|
|
7061
7061
|
getDayProps: s,
|
|
@@ -7089,7 +7089,7 @@ function ju(t) {
|
|
|
7089
7089
|
defaultLevel: n,
|
|
7090
7090
|
level: i,
|
|
7091
7091
|
onLevelChange: u,
|
|
7092
|
-
nextIcon:
|
|
7092
|
+
nextIcon: d,
|
|
7093
7093
|
previousIcon: a,
|
|
7094
7094
|
date: g,
|
|
7095
7095
|
defaultDate: y,
|
|
@@ -7117,7 +7117,7 @@ function ju(t) {
|
|
|
7117
7117
|
withWeekNumbers: b,
|
|
7118
7118
|
headerControlsOrder: c,
|
|
7119
7119
|
// MonthLevelGroup props
|
|
7120
|
-
firstDayOfWeek:
|
|
7120
|
+
firstDayOfWeek: h,
|
|
7121
7121
|
weekdayFormat: m,
|
|
7122
7122
|
weekendDays: f,
|
|
7123
7123
|
getDayProps: s,
|
|
@@ -7164,7 +7164,7 @@ const Nu = {
|
|
|
7164
7164
|
inputProps: n,
|
|
7165
7165
|
wrapperProps: i,
|
|
7166
7166
|
value: u,
|
|
7167
|
-
defaultValue:
|
|
7167
|
+
defaultValue: d,
|
|
7168
7168
|
onChange: a,
|
|
7169
7169
|
clearable: g,
|
|
7170
7170
|
clearButtonProps: y,
|
|
@@ -7192,21 +7192,21 @@ const Nu = {
|
|
|
7192
7192
|
defaultDate: x,
|
|
7193
7193
|
onDateChange: b,
|
|
7194
7194
|
getMonthControlProps: c,
|
|
7195
|
-
getYearControlProps:
|
|
7195
|
+
getYearControlProps: h,
|
|
7196
7196
|
disabled: m,
|
|
7197
7197
|
...f
|
|
7198
7198
|
} = r, s = Ce(null), v = Ce(null), [E, R] = ve(!1), { calendarProps: Q, others: Z } = ju(f), X = xt(), ie = k || ((te) => {
|
|
7199
|
-
const
|
|
7200
|
-
return Number.isNaN(
|
|
7199
|
+
const he = ce(te, S, X.getLocale(C)).toDate();
|
|
7200
|
+
return Number.isNaN(he.getTime()) ? Tu(te) : ce(he).format("YYYY-MM-DD");
|
|
7201
7201
|
}), oe = re !== void 0 ? re : g, ae = (te) => te ? ce(te).locale(X.getLocale(C)).format(S) : "", [A, $, j] = Nn({
|
|
7202
7202
|
type: "default",
|
|
7203
7203
|
value: u,
|
|
7204
|
-
defaultValue:
|
|
7204
|
+
defaultValue: d,
|
|
7205
7205
|
onChange: a
|
|
7206
7206
|
}), [L, B] = Nn({
|
|
7207
7207
|
type: "default",
|
|
7208
7208
|
value: D,
|
|
7209
|
-
defaultValue:
|
|
7209
|
+
defaultValue: d || x,
|
|
7210
7210
|
onChange: b
|
|
7211
7211
|
});
|
|
7212
7212
|
je(() => {
|
|
@@ -7217,11 +7217,11 @@ const Nu = {
|
|
|
7217
7217
|
o(ae(A));
|
|
7218
7218
|
}, [X.getLocale(C)]);
|
|
7219
7219
|
const l = (te) => {
|
|
7220
|
-
const
|
|
7221
|
-
if (o(
|
|
7220
|
+
const he = te.currentTarget.value;
|
|
7221
|
+
if (o(he), R(!0), he.trim() === "" && (re || g))
|
|
7222
7222
|
$(null);
|
|
7223
7223
|
else {
|
|
7224
|
-
const pe = ie(
|
|
7224
|
+
const pe = ie(he);
|
|
7225
7225
|
pe && $u({ date: pe, minDate: O, maxDate: N }) && ($(pe), B(pe));
|
|
7226
7226
|
}
|
|
7227
7227
|
}, p = (te) => {
|
|
@@ -7235,8 +7235,8 @@ const Nu = {
|
|
|
7235
7235
|
}, ne = (te) => ({
|
|
7236
7236
|
...P?.(te),
|
|
7237
7237
|
selected: ce(A).isSame(te, "day"),
|
|
7238
|
-
onClick: (
|
|
7239
|
-
P?.(te).onClick?.(
|
|
7238
|
+
onClick: (he) => {
|
|
7239
|
+
P?.(te).onClick?.(he);
|
|
7240
7240
|
const pe = oe && ce(A).isSame(te, "day") ? null : te;
|
|
7241
7241
|
$(pe), !j && pe && o(ae(pe)), R(!1);
|
|
7242
7242
|
}
|
|
@@ -7249,7 +7249,7 @@ const Nu = {
|
|
|
7249
7249
|
unstyled: G,
|
|
7250
7250
|
...y
|
|
7251
7251
|
}
|
|
7252
|
-
),
|
|
7252
|
+
), de = g && !!A && !ee && !m;
|
|
7253
7253
|
return Ks(() => {
|
|
7254
7254
|
A !== void 0 && !E && o(ae(A));
|
|
7255
7255
|
}, [A]), Ni(() => R(!1), void 0, [
|
|
@@ -7283,7 +7283,7 @@ const Nu = {
|
|
|
7283
7283
|
readOnly: ee,
|
|
7284
7284
|
rightSection: q,
|
|
7285
7285
|
__clearSection: ue,
|
|
7286
|
-
__clearable:
|
|
7286
|
+
__clearable: de,
|
|
7287
7287
|
...n,
|
|
7288
7288
|
...Z,
|
|
7289
7289
|
disabled: m,
|
|
@@ -7318,7 +7318,7 @@ const Nu = {
|
|
|
7318
7318
|
}),
|
|
7319
7319
|
getYearControlProps: (te) => ({
|
|
7320
7320
|
selected: typeof A == "string" ? ce(te).isSame(A, "year") : !1,
|
|
7321
|
-
...
|
|
7321
|
+
...h?.(te)
|
|
7322
7322
|
}),
|
|
7323
7323
|
attributes: i.attributes
|
|
7324
7324
|
}
|
|
@@ -7339,7 +7339,7 @@ function Lu(t) {
|
|
|
7339
7339
|
onClose: n,
|
|
7340
7340
|
queryKey: i,
|
|
7341
7341
|
apiPath: u,
|
|
7342
|
-
steps:
|
|
7342
|
+
steps: d,
|
|
7343
7343
|
onCreated: a
|
|
7344
7344
|
} = t, [g, y] = ve(0), [_, P] = ve(!1), [C, S] = ve(), {
|
|
7345
7345
|
mutateAsync: k,
|
|
@@ -7373,7 +7373,7 @@ function Lu(t) {
|
|
|
7373
7373
|
(s.type === void 0 || s.type == "text") && /* @__PURE__ */ w.jsx(Oi, { label: s.column.title, placeholder: s.placeholder ?? "", ...F.getInputProps(s.id), type: s.id.includes("email") ? "email" : void 0, required: s.required }, F.key(s.id)),
|
|
7374
7374
|
s.type === "number" && /* @__PURE__ */ w.jsx(Mi, { decimalSeparator: ",", label: s.column.title, placeholder: s.placeholder ?? "", ...F.getInputProps(s.id), required: s.required }, F.key(s.id)),
|
|
7375
7375
|
s.type === "date" && /* @__PURE__ */ w.jsx(Jr, { label: s.column.title, placeholder: s.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...F.getInputProps(s.id), required: s.required }, F.key(s.id)),
|
|
7376
|
-
s.type === "boolean" && /* @__PURE__ */ w.jsx(
|
|
7376
|
+
s.type === "boolean" && /* @__PURE__ */ w.jsx(hr, { mt: "md", label: s.column.title, ...F.getInputProps(s.id, {
|
|
7377
7377
|
type: "checkbox"
|
|
7378
7378
|
}), required: s.required }, F.key(s.id)),
|
|
7379
7379
|
s.type === "textarea" && /* @__PURE__ */ w.jsx(Ai, { label: s.column.title, placeholder: s.placeholder ?? "", ...F.getInputProps(s.id), minRows: 3, autosize: !0, required: s.required }, F.key(s.id)),
|
|
@@ -7405,24 +7405,24 @@ function Lu(t) {
|
|
|
7405
7405
|
K.length && g < K.length - 1 ? O || y(g + 1) : O || (F.setInitialValues(f), F.reset(), n());
|
|
7406
7406
|
}), e[18] = g, e[19] = k, e[20] = F, e[21] = O, e[22] = n, e[23] = a, e[24] = C, e[25] = K.length, e[26] = Y, e[27] = x) : x = e[27];
|
|
7407
7407
|
let b;
|
|
7408
|
-
e[28] !== g || e[29] !== r || e[30] !== re || e[31] !==
|
|
7409
|
-
label:
|
|
7410
|
-
} : {}, children: r.filter((s) => s.step === f).map((s) => re(s)) }, f)) }) : r.map((f) => re(f)), e[28] = g, e[29] = r, e[30] = re, e[31] =
|
|
7408
|
+
e[28] !== g || e[29] !== r || e[30] !== re || e[31] !== d || e[32] !== K ? (b = K.length ? /* @__PURE__ */ w.jsx(Mr, { active: g, size: "sm", children: K.map((f) => /* @__PURE__ */ w.jsx(Mr.Step, { ...d && d[f - 1] ? {
|
|
7409
|
+
label: d[f - 1].label
|
|
7410
|
+
} : {}, children: r.filter((s) => s.step === f).map((s) => re(s)) }, f)) }) : r.map((f) => re(f)), e[28] = g, e[29] = r, e[30] = re, e[31] = d, e[32] = K, e[33] = b) : b = e[33];
|
|
7411
7411
|
let c;
|
|
7412
7412
|
e[34] !== g || e[35] !== _ || e[36] !== W || e[37] !== n || e[38] !== K.length ? (c = !_ && /* @__PURE__ */ w.jsxs(gt, { mt: "md", justify: "end", children: [
|
|
7413
7413
|
/* @__PURE__ */ w.jsx(mt, { onClick: () => K.length ? g === 0 ? n() : y(g - 1) : n(), variant: "outline", children: K.length ? g === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
|
|
7414
7414
|
/* @__PURE__ */ w.jsx(mt, { type: "submit", loading: W, children: K.length ? g === K.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
|
|
7415
7415
|
] }), e[34] = g, e[35] = _, e[36] = W, e[37] = n, e[38] = K.length, e[39] = c) : c = e[39];
|
|
7416
|
-
let
|
|
7417
|
-
e[40] !== c || e[41] !== x || e[42] !== b ? (
|
|
7416
|
+
let h;
|
|
7417
|
+
e[40] !== c || e[41] !== x || e[42] !== b ? (h = /* @__PURE__ */ w.jsxs("form", { onSubmit: x, children: [
|
|
7418
7418
|
b,
|
|
7419
7419
|
c
|
|
7420
|
-
] }), e[40] = c, e[41] = x, e[42] = b, e[43] =
|
|
7420
|
+
] }), e[40] = c, e[41] = x, e[42] = b, e[43] = h) : h = e[43];
|
|
7421
7421
|
let m;
|
|
7422
|
-
return e[44] !==
|
|
7422
|
+
return e[44] !== h || e[45] !== D ? (m = /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
|
7423
7423
|
D,
|
|
7424
|
-
|
|
7425
|
-
] }), e[44] =
|
|
7424
|
+
h
|
|
7425
|
+
] }), e[44] = h, e[45] = D, e[46] = m) : m = e[46], m;
|
|
7426
7426
|
}
|
|
7427
7427
|
function Iu(t, e) {
|
|
7428
7428
|
return t[e.id] = (r, n) => e.conditional && !e.conditional(n) || r ? null : "Pflichtfeld", t;
|
|
@@ -7440,7 +7440,7 @@ function Fu(t) {
|
|
|
7440
7440
|
return typeof t.step == "number";
|
|
7441
7441
|
}
|
|
7442
7442
|
var [Wu, eo] = As("useDataTableColumnsContext must be used within DataTableColumnProvider"), pi = (t) => {
|
|
7443
|
-
let { children: e, columnsOrder: r, setColumnsOrder: n, columnsToggle: i, setColumnsToggle: u, resetColumnsOrder:
|
|
7443
|
+
let { children: e, columnsOrder: r, setColumnsOrder: n, columnsToggle: i, setColumnsToggle: u, resetColumnsOrder: d, resetColumnsToggle: a, setColumnWidth: g, setMultipleColumnWidths: y, resetColumnsWidth: _ } = t, [P, C] = ve(""), [S, k] = ve("");
|
|
7444
7444
|
return w.jsx(Wu, { value: { sourceColumn: P, setSourceColumn: C, targetColumn: S, setTargetColumn: k, columnsToggle: i, setColumnsToggle: u, swapColumns: () => {
|
|
7445
7445
|
if (!r || !n || !P || !S) return;
|
|
7446
7446
|
let O = r.indexOf(P), N = r.indexOf(S);
|
|
@@ -7448,7 +7448,7 @@ var [Wu, eo] = As("useDataTableColumnsContext must be used within DataTableColum
|
|
|
7448
7448
|
let I = r.splice(O, 1)[0];
|
|
7449
7449
|
r.splice(N, 0, I), n([...r]);
|
|
7450
7450
|
}
|
|
7451
|
-
}, resetColumnsOrder:
|
|
7451
|
+
}, resetColumnsOrder: d, resetColumnsToggle: a, setColumnWidth: g, setMultipleColumnWidths: y, resetColumnsWidth: _ }, children: e });
|
|
7452
7452
|
};
|
|
7453
7453
|
function Uu() {
|
|
7454
7454
|
return w.jsx("tr", { className: "mantine-datatable-empty-row", children: w.jsx("td", {}) });
|
|
@@ -7468,9 +7468,9 @@ function Hu({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
|
|
|
7468
7468
|
S.includes(k.accessor) || S.push(k.accessor);
|
|
7469
7469
|
}), S;
|
|
7470
7470
|
}
|
|
7471
|
-
let i = e && e.map((P) => P.accessor) || [], [u,
|
|
7471
|
+
let i = e && e.map((P) => P.accessor) || [], [u, d] = Fn({ key: t ? `${t}-columns-order` : "", defaultValue: t ? i : void 0, getInitialValueInEffect: r });
|
|
7472
7472
|
function a(P) {
|
|
7473
|
-
t &&
|
|
7473
|
+
t && d(P);
|
|
7474
7474
|
}
|
|
7475
7475
|
let g = () => {
|
|
7476
7476
|
a(i);
|
|
@@ -7480,7 +7480,7 @@ function Hu({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
|
|
|
7480
7480
|
return JSON.stringify(y) !== _ && a(y), { columnsOrder: y, setColumnsOrder: a, resetColumnsOrder: g };
|
|
7481
7481
|
}
|
|
7482
7482
|
function Gu({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRef: n, onFixedLayoutChange: i }) {
|
|
7483
|
-
let u = Ce(!1),
|
|
7483
|
+
let u = Ce(!1), d = Ce({}), [a, g] = ve(!0), y = Je(() => e.some((q) => q.resizable && !q.hidden && q.accessor !== "__selection__"), [e]), _ = Je(() => e.filter((q) => q.resizable && !q.hidden && q.accessor !== "__selection__"), [e]), P = Je(() => _.some((q) => q.width === void 0 || q.width === "" || q.width === "initial"), [_]), C = Te(() => e.filter((q) => q.accessor !== "__selection__").map((q) => ({ [q.accessor]: q.width ?? "auto" })), [e]), [S, k] = Fn({ key: t ? `${t}-columns-width` : "", defaultValue: t ? C() : void 0, getInitialValueInEffect: !1 }), [O, N] = ve(() => C());
|
|
7484
7484
|
je(() => {
|
|
7485
7485
|
g(!1);
|
|
7486
7486
|
}, []);
|
|
@@ -7508,7 +7508,7 @@ function Gu({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRe
|
|
|
7508
7508
|
if (!(!n?.current || !i || a)) if (P) i(!1), requestAnimationFrame(() => {
|
|
7509
7509
|
requestAnimationFrame(() => {
|
|
7510
7510
|
let q = I();
|
|
7511
|
-
|
|
7511
|
+
d.current = { ...d.current, ...q };
|
|
7512
7512
|
let G = e.filter((F) => F.accessor !== "__selection__").map((F) => {
|
|
7513
7513
|
let se = F.accessor, re = S?.find((x) => Object.keys(x)[0] === se);
|
|
7514
7514
|
if (re && re[se] !== "auto") return { [se]: re[se] };
|
|
@@ -7539,7 +7539,7 @@ function Gu({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRe
|
|
|
7539
7539
|
a || !t || !r || S && S.length > 0 && N(S);
|
|
7540
7540
|
}, [a, t, r, S]);
|
|
7541
7541
|
let ee = Te(() => {
|
|
7542
|
-
t && k(C()),
|
|
7542
|
+
t && k(C()), d.current = {}, u.current = !1, i && (i(!1), setTimeout(() => {
|
|
7543
7543
|
W();
|
|
7544
7544
|
}, 10));
|
|
7545
7545
|
}, [t, k, C, i, W]), K = Te((q, G) => {
|
|
@@ -7562,9 +7562,9 @@ function Qu({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
|
|
|
7562
7562
|
S.find((O) => O.accessor === k.accessor) || S.push({ accessor: k.accessor, defaultToggle: k.defaultToggle || !0, toggleable: k.toggleable, toggled: k.defaultToggle === void 0 ? !0 : k.defaultToggle });
|
|
7563
7563
|
}), S;
|
|
7564
7564
|
}
|
|
7565
|
-
let i = e && e.map((P) => ({ accessor: P.accessor, defaultToggle: P.defaultToggle || !0, toggleable: P.toggleable, toggled: P.defaultToggle === void 0 ? !0 : P.defaultToggle })), [u,
|
|
7565
|
+
let i = e && e.map((P) => ({ accessor: P.accessor, defaultToggle: P.defaultToggle || !0, toggleable: P.toggleable, toggled: P.defaultToggle === void 0 ? !0 : P.defaultToggle })), [u, d] = Fn({ key: t ? `${t}-columns-toggle` : "", defaultValue: t ? i : void 0, getInitialValueInEffect: r });
|
|
7566
7566
|
function a(P) {
|
|
7567
|
-
t &&
|
|
7567
|
+
t && d(P);
|
|
7568
7568
|
}
|
|
7569
7569
|
let g = () => {
|
|
7570
7570
|
a(i);
|
|
@@ -7574,8 +7574,8 @@ function Qu({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
|
|
|
7574
7574
|
return JSON.stringify(y) !== _ && a(y), { columnsToggle: y, setColumnsToggle: a, resetColumnsToggle: g };
|
|
7575
7575
|
}
|
|
7576
7576
|
var Zu = ({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRef: n, scrollViewportRef: i, onFixedLayoutChange: u }) => {
|
|
7577
|
-
let { columnsOrder:
|
|
7578
|
-
return { effectiveColumns: Je(() =>
|
|
7577
|
+
let { columnsOrder: d, setColumnsOrder: a, resetColumnsOrder: g } = Hu({ key: t, columns: e, getInitialValueInEffect: r }), { columnsToggle: y, setColumnsToggle: _, resetColumnsToggle: P } = Qu({ key: t, columns: e, getInitialValueInEffect: r }), { columnsWidth: C, setColumnsWidth: S, setColumnWidth: k, setMultipleColumnWidths: O, resetColumnsWidth: N, hasResizableColumns: I, allResizableWidthsInitial: Y, measureAndSetColumnWidths: U } = Gu({ key: t, columns: e, getInitialValueInEffect: r, headerRef: n, onFixedLayoutChange: u });
|
|
7578
|
+
return { effectiveColumns: Je(() => d ? d.map((W) => e.find((J) => J.accessor === W)).map((W) => ({ ...W, hidden: W?.hidden || !y.find((J) => J.accessor === W?.accessor)?.toggled })).map((W) => W?.accessor === "__selection__" ? W : { ...W, width: C.find((J) => J[W?.accessor])?.[W?.accessor] }) : e, [e, d, y, C]), setColumnsOrder: a, columnsOrder: d, resetColumnsOrder: g, columnsToggle: y, setColumnsToggle: _, resetColumnsToggle: P, columnsWidth: C, setColumnsWidth: S, setColumnWidth: k, setMultipleColumnWidths: O, resetColumnsWidth: N, hasResizableColumns: I, allResizableWidthsInitial: Y, measureAndSetColumnWidths: U };
|
|
7579
7579
|
}, gi = typeof window < "u" ? ki : je;
|
|
7580
7580
|
function mi(t) {
|
|
7581
7581
|
let e = Ce(t);
|
|
@@ -7601,14 +7601,14 @@ function xn(t, e, r) {
|
|
|
7601
7601
|
}
|
|
7602
7602
|
}
|
|
7603
7603
|
function Ku({ scrollCallbacks: t, withRowBorders: e }) {
|
|
7604
|
-
let r = { root: Ce(null), table: Ce(null), scrollViewport: Ce(null), header: Ce(null), footer: Ce(null), selectionColumnHeader: Ce(null) }, { root: n, table: i, scrollViewport: u, header:
|
|
7604
|
+
let r = { root: Ce(null), table: Ce(null), scrollViewport: Ce(null), header: Ce(null), footer: Ce(null), selectionColumnHeader: Ce(null) }, { root: n, table: i, scrollViewport: u, header: d, footer: a, selectionColumnHeader: g } = r, y = mi({ withRowBorders: e }), _ = mi(t), P = Ce(() => {
|
|
7605
7605
|
}), C = Ce(() => {
|
|
7606
7606
|
}), S = Te((k) => {
|
|
7607
7607
|
_.current.onScroll?.(k), P.current();
|
|
7608
7608
|
}, []);
|
|
7609
|
-
return je(() => xn(
|
|
7609
|
+
return je(() => xn(d.current, (k) => {
|
|
7610
7610
|
it(n.current, yi, `${k.height}px`);
|
|
7611
|
-
}, () => it(n.current, yi, "0")), [
|
|
7611
|
+
}, () => it(n.current, yi, "0")), [d.current]), je(() => xn(a.current, (k) => {
|
|
7612
7612
|
it(n.current, vi, `${k.height}px`);
|
|
7613
7613
|
}, () => it(n.current, vi, "0")), [a.current]), je(() => xn(g.current, (k) => {
|
|
7614
7614
|
it(n.current, bi, `${k.width}px`);
|
|
@@ -7635,8 +7635,8 @@ function Ku({ scrollCallbacks: t, withRowBorders: e }) {
|
|
|
7635
7635
|
let f = Math.abs(q);
|
|
7636
7636
|
c = f < 1, b = x - f < 1;
|
|
7637
7637
|
} else b = q < 1, c = O.width - q - N.width < 1;
|
|
7638
|
-
let
|
|
7639
|
-
b && b !==
|
|
7638
|
+
let h = I("left", b), m = I("right", c);
|
|
7639
|
+
b && b !== h && ee.onScrollToLeft?.(), c && c !== m && ee.onScrollToRight?.();
|
|
7640
7640
|
}
|
|
7641
7641
|
P.current = W;
|
|
7642
7642
|
let J = new ResizeObserver((ee) => {
|
|
@@ -7679,20 +7679,20 @@ function Xu(t, e) {
|
|
|
7679
7679
|
n.forEach((i) => i());
|
|
7680
7680
|
};
|
|
7681
7681
|
}
|
|
7682
|
-
function
|
|
7682
|
+
function eh(t, e) {
|
|
7683
7683
|
return e || (typeof window < "u" && "matchMedia" in window ? t.map((r) => window.matchMedia(r).matches) : t.map(() => !1));
|
|
7684
7684
|
}
|
|
7685
|
-
function
|
|
7686
|
-
let [n, i] = ve(r ? e :
|
|
7685
|
+
function th(t, e, { getInitialValueInEffect: r } = { getInitialValueInEffect: !0 }) {
|
|
7686
|
+
let [n, i] = ve(r ? e : eh(t, e)), u = Ce(null);
|
|
7687
7687
|
return je(() => {
|
|
7688
|
-
if ("matchMedia" in window) return u.current = t.map((
|
|
7689
|
-
i(
|
|
7688
|
+
if ("matchMedia" in window) return u.current = t.map((d) => window.matchMedia(d)), i(u.current.map((d) => d.matches)), Xu(u.current, (d) => {
|
|
7689
|
+
i(d);
|
|
7690
7690
|
});
|
|
7691
7691
|
}, [t]), n;
|
|
7692
7692
|
}
|
|
7693
|
-
function
|
|
7693
|
+
function rh(t) {
|
|
7694
7694
|
let e = ji(), r = Je(() => t.map((i) => (typeof i == "function" ? i(e) : i) ?? ""), [t, e]), n = Je(() => t.map(() => !0), [t]);
|
|
7695
|
-
return
|
|
7695
|
+
return th(r, n);
|
|
7696
7696
|
}
|
|
7697
7697
|
function Xr(t) {
|
|
7698
7698
|
let e = ji(), r = typeof t == "function" ? t(e) : t;
|
|
@@ -7702,17 +7702,17 @@ function to(t) {
|
|
|
7702
7702
|
let e = t.replace(/([a-z\d])([A-Z]+)/g, "$1 $2").replace(/\W|_/g, " ").trim().toLowerCase();
|
|
7703
7703
|
return `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
|
|
7704
7704
|
}
|
|
7705
|
-
function
|
|
7705
|
+
function nh(t, e, r) {
|
|
7706
7706
|
return t.filter((n) => !e.map(r).includes(r(n)));
|
|
7707
7707
|
}
|
|
7708
7708
|
function Cn(t, e) {
|
|
7709
7709
|
return t.filter((r, n, i) => n === i.findIndex((u) => e(r) === e(u)));
|
|
7710
7710
|
}
|
|
7711
|
-
function
|
|
7711
|
+
function ds(t, e) {
|
|
7712
7712
|
return e ? e.match(/([^[.\]])+/g).reduce((r, n) => r && r[n], t) : void 0;
|
|
7713
7713
|
}
|
|
7714
7714
|
function Be(t, e) {
|
|
7715
|
-
return typeof e == "string" ?
|
|
7715
|
+
return typeof e == "string" ? ds(t, e) : e(t);
|
|
7716
7716
|
}
|
|
7717
7717
|
function fs(t) {
|
|
7718
7718
|
return !t || t.length === 0 ? 0 : Math.max(...t.map((e) => e.groups && e.groups.length > 0 ? 1 + fs(e.groups) : 1));
|
|
@@ -7731,19 +7731,19 @@ function ps(t, e, r = 0) {
|
|
|
7731
7731
|
for (let i of t) i.groups && i.groups.length > 0 && n.push(...ps(i.groups, e, r + 1));
|
|
7732
7732
|
return n;
|
|
7733
7733
|
}
|
|
7734
|
-
function
|
|
7734
|
+
function oh(t, e, r) {
|
|
7735
7735
|
return r ? !t || e : !1;
|
|
7736
7736
|
}
|
|
7737
|
-
function
|
|
7737
|
+
function ih({ rowExpansion: t, records: e, idAccessor: r }) {
|
|
7738
7738
|
let n = [];
|
|
7739
7739
|
if (t && e) {
|
|
7740
7740
|
let { trigger: a, allowMultiple: g, initiallyExpanded: y } = t;
|
|
7741
7741
|
e && a === "always" ? n = e.map((_) => Be(_, r)) : y && (n = e.filter((_, P) => y({ record: _, index: P })).map((_) => Be(_, r)), g || (n = [n[0]]));
|
|
7742
7742
|
}
|
|
7743
|
-
let i, u,
|
|
7743
|
+
let i, u, d = ve(n);
|
|
7744
7744
|
if (t) {
|
|
7745
7745
|
let { expandable: a, trigger: g, allowMultiple: y, collapseProps: _, content: P } = t;
|
|
7746
|
-
t.expanded ? { recordIds: i, onRecordIdsChange: u } = t.expanded : [i, u] =
|
|
7746
|
+
t.expanded ? { recordIds: i, onRecordIdsChange: u } = t.expanded : [i, u] = d;
|
|
7747
7747
|
let C = (S) => u?.(i.filter((k) => k !== Be(S, r)));
|
|
7748
7748
|
return { expandOnClick: g !== "always" && g !== "never", isRowExpanded: (S) => g === "always" ? !0 : i.includes(Be(S, r)), isExpandable: ({ record: S, index: k }) => a ? a({ record: S, index: k }) : !0, expandRow: (S) => {
|
|
7749
7749
|
let k = Be(S, r);
|
|
@@ -7751,44 +7751,44 @@ function id({ rowExpansion: t, records: e, idAccessor: r }) {
|
|
|
7751
7751
|
}, collapseRow: C, collapseProps: _, content: ({ record: S, index: k }) => () => P({ record: S, index: k, collapse: () => C(S) }) };
|
|
7752
7752
|
}
|
|
7753
7753
|
}
|
|
7754
|
-
function
|
|
7755
|
-
let [r, n] = ve(t), [i, u] = ve(t),
|
|
7754
|
+
function sh(t, e) {
|
|
7755
|
+
let [r, n] = ve(t), [i, u] = ve(t), d = fo(() => n(!0), 0), a = fo(() => u(!1), e || 200);
|
|
7756
7756
|
return je(() => {
|
|
7757
|
-
t ? (a.clear(), u(!0),
|
|
7758
|
-
}, [
|
|
7757
|
+
t ? (a.clear(), u(!0), d.start()) : (d.clear(), n(!1), a.start());
|
|
7758
|
+
}, [d, a, t]), { expanded: r, visible: i };
|
|
7759
7759
|
}
|
|
7760
|
-
var no = "mantine-datatable-nowrap", oo = "mantine-datatable-ellipsis", Bt = "mantine-datatable-pointer-cursor", gs = "mantine-datatable-context-menu-cursor",
|
|
7761
|
-
function
|
|
7762
|
-
return Xr(r) ? w.jsx(
|
|
7760
|
+
var no = "mantine-datatable-nowrap", oo = "mantine-datatable-ellipsis", Bt = "mantine-datatable-pointer-cursor", gs = "mantine-datatable-context-menu-cursor", ah = "mantine-datatable-text-selection-disabled", en = "mantine-datatable-text-align-left", tn = "mantine-datatable-text-align-center", rn = "mantine-datatable-text-align-right";
|
|
7761
|
+
function lh({ className: t, style: e, visibleMediaQuery: r, title: n, noWrap: i, ellipsis: u, textAlign: d, width: a }) {
|
|
7762
|
+
return Xr(r) ? w.jsx(dr, { className: ke({ [no]: i || u, [oo]: u, [en]: d === "left", [tn]: d === "center", [rn]: d === "right" }, t), style: [{ width: a, minWidth: a, maxWidth: a }, e], children: n }) : null;
|
|
7763
7763
|
}
|
|
7764
|
-
function
|
|
7765
|
-
return w.jsx(
|
|
7764
|
+
function ch({ shadowVisible: t }) {
|
|
7765
|
+
return w.jsx(dr, { className: "mantine-datatable-footer-selector-placeholder-cell", "data-shadow-visible": t || void 0 });
|
|
7766
7766
|
}
|
|
7767
|
-
function
|
|
7768
|
-
return w.jsx(Ts, { ref:
|
|
7767
|
+
function uh({ className: t, style: e, columns: r, defaultColumnProps: n, selectionVisible: i, selectorCellShadowVisible: u, ref: d }) {
|
|
7768
|
+
return w.jsx(Ts, { ref: d, className: ke("mantine-datatable-footer", t), style: e, children: w.jsxs(It, { children: [i && w.jsx(ch, { shadowVisible: u }), r.map(({ hidden: a, ...g }) => {
|
|
7769
7769
|
if (a) return null;
|
|
7770
7770
|
let { accessor: y, visibleMediaQuery: _, textAlign: P, width: C, footer: S, footerClassName: k, footerStyle: O, noWrap: N, ellipsis: I } = { ...n, ...g };
|
|
7771
|
-
return w.jsx(
|
|
7771
|
+
return w.jsx(lh, { className: k, style: O, visibleMediaQuery: _, textAlign: P, width: C, title: S, noWrap: N, ellipsis: I }, y);
|
|
7772
7772
|
})] }) });
|
|
7773
7773
|
}
|
|
7774
|
-
function
|
|
7775
|
-
let S = Je(() => e && e.length > 0 ? e : r && r.length > 0 ? ro([{ id: t, columns: e, groups: r }]) : [], [e, r, t]), k = Je(() => S.map(({ visibleMediaQuery: J }) => J), [S]), O =
|
|
7776
|
-
return N > 0 ? w.jsx(
|
|
7774
|
+
function hh({ group: { id: t, columns: e, groups: r, title: n, textAlign: i, className: u, style: d }, maxDepth: a, currentDepth: g, previousGroups: y, isLastGroup: _, withColumnBorders: P = !1, totalTableColumns: C }) {
|
|
7775
|
+
let S = Je(() => e && e.length > 0 ? e : r && r.length > 0 ? ro([{ id: t, columns: e, groups: r }]) : [], [e, r, t]), k = Je(() => S.map(({ visibleMediaQuery: J }) => J), [S]), O = rh(k), N = Je(() => In({ columns: e, groups: r }, O), [t, e, r, O]), I = Je(() => y.reduce((J, ee) => J + In(ee, O), 0), [y, O]), Y = r && r.length > 0 ? 1 : a - g, U = I + N < C, W = oh(_, U, P);
|
|
7776
|
+
return N > 0 ? w.jsx(dr, { colSpan: N, rowSpan: Y > 1 ? Y : void 0, className: ke("mantine-datatable-column-group-header-cell", { [en]: i === "left", [tn]: i === "center", [rn]: i === "right", "mantine-datatable-column-group-header-cell--needs-border": W }, u), style: d, children: n ?? to(t) }) : null;
|
|
7777
7777
|
}
|
|
7778
|
-
function
|
|
7778
|
+
function dh() {
|
|
7779
7779
|
return w.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [w.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), w.jsx("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" })] });
|
|
7780
7780
|
}
|
|
7781
|
-
function
|
|
7781
|
+
function fh() {
|
|
7782
7782
|
return w.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [w.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), w.jsx("path", { d: "M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z", strokeWidth: "0", fill: "currentColor" })] });
|
|
7783
7783
|
}
|
|
7784
|
-
function
|
|
7785
|
-
let [i, { close: u, toggle:
|
|
7784
|
+
function ph({ children: t, isActive: e, filterPopoverProps: r, filterPopoverDisableClickOutside: n }) {
|
|
7785
|
+
let [i, { close: u, toggle: d }] = Xs(!1), a = e ? fh : dh, g = Ni(u);
|
|
7786
7786
|
return n && (g = void 0), w.jsxs(ir, { withArrow: !0, shadow: "md", opened: i, onClose: u, trapFocus: !0, ...r, children: [w.jsx(Ei, { children: w.jsx(Ar, { className: "mantine-datatable-header-cell-filter-action-icon", "data-active": e || void 0, size: "sm", variant: "default", onClick: (y) => {
|
|
7787
|
-
y.preventDefault(),
|
|
7787
|
+
y.preventDefault(), d();
|
|
7788
7788
|
}, onKeyDown: (y) => y.stopPropagation(), children: w.jsx(a, {}) }) }), w.jsx(Ri, { ref: g, onClick: (y) => y.stopPropagation(), onKeyDown: (y) => y.stopPropagation(), children: typeof t == "function" ? t({ close: u }) : t })] });
|
|
7789
7789
|
}
|
|
7790
|
-
var
|
|
7791
|
-
let { accessor: e, columnRef: r } = t, [n, i] = ve(!1), u = Ce(0),
|
|
7790
|
+
var gh = (t) => {
|
|
7791
|
+
let { accessor: e, columnRef: r } = t, [n, i] = ve(!1), u = Ce(0), d = Ce({ current: 0, next: 0 }), { dir: a } = Ys(), g = a === "rtl", { setMultipleColumnWidths: y } = eo(), _ = Te((C) => {
|
|
7792
7792
|
if (C.preventDefault(), C.stopPropagation(), !r.current) return;
|
|
7793
7793
|
let S = r.current, k = S.nextElementSibling;
|
|
7794
7794
|
for (; k; ) {
|
|
@@ -7802,14 +7802,14 @@ var gd = (t) => {
|
|
|
7802
7802
|
let N = O === "__selection__";
|
|
7803
7803
|
i(!0), u.current = C.clientX;
|
|
7804
7804
|
let I = S.offsetWidth, Y = k.offsetWidth;
|
|
7805
|
-
|
|
7805
|
+
d.current = { current: I, next: Y };
|
|
7806
7806
|
let U = (J) => {
|
|
7807
7807
|
if (!r.current) return;
|
|
7808
7808
|
let ee = r.current, K = ee.nextElementSibling;
|
|
7809
7809
|
if (!K) return;
|
|
7810
7810
|
let V = J.clientX - u.current;
|
|
7811
7811
|
g && (V = -V);
|
|
7812
|
-
let q = 50, G =
|
|
7812
|
+
let q = 50, G = d.current.current - q, F = d.current.next - q, se = Math.max(-G, Math.min(V, F)), re = d.current.current + se, D = d.current.next - se;
|
|
7813
7813
|
ee.style.width = `${re}px`, K.style.width = `${D}px`, ee.style.minWidth = `${re}px`, ee.style.maxWidth = `${re}px`, K.style.minWidth = `${D}px`, K.style.maxWidth = `${D}px`;
|
|
7814
7814
|
}, W = () => {
|
|
7815
7815
|
if (!r.current) return;
|
|
@@ -7841,19 +7841,19 @@ var gd = (t) => {
|
|
|
7841
7841
|
}, [e, r, y]);
|
|
7842
7842
|
return w.jsx("div", { className: "mantine-datatable-header-resizable-handle", style: { cursor: n ? "col-resize" : void 0 }, onMouseDown: _, onDoubleClick: P, onClick: (C) => C.stopPropagation(), title: "Drag to resize column, double-click to reset" });
|
|
7843
7843
|
};
|
|
7844
|
-
function
|
|
7844
|
+
function mh() {
|
|
7845
7845
|
return w.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [w.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), w.jsx("path", { d: "M12 5l0 14" }), w.jsx("path", { d: "M16 9l-4 -4" }), w.jsx("path", { d: "M8 9l4 -4" })] });
|
|
7846
7846
|
}
|
|
7847
|
-
function
|
|
7847
|
+
function yh() {
|
|
7848
7848
|
return w.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [w.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), w.jsx("path", { d: "M8 7l4 -4l4 4" }), w.jsx("path", { d: "M8 17l4 4l4 -4" }), w.jsx("path", { d: "M12 3l0 18" })] });
|
|
7849
7849
|
}
|
|
7850
|
-
function
|
|
7850
|
+
function vh() {
|
|
7851
7851
|
return w.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [w.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), w.jsx("path", { d: "M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), w.jsx("path", { d: "M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), w.jsx("path", { d: "M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), w.jsx("path", { d: "M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), w.jsx("path", { d: "M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), w.jsx("path", { d: "M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" })] });
|
|
7852
7852
|
}
|
|
7853
|
-
function
|
|
7853
|
+
function bh() {
|
|
7854
7854
|
return w.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [w.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), w.jsx("path", { d: "M18 6l-12 12" }), w.jsx("path", { d: "M6 6l12 12" })] });
|
|
7855
7855
|
}
|
|
7856
|
-
function
|
|
7856
|
+
function wh({ className: t, style: e, accessor: r, visibleMediaQuery: n, title: i, sortable: u, draggable: d, toggleable: a, resizable: g, sortIcons: y, textAlign: _, width: P, sortStatus: C, onSortStatusChange: S, filter: k, filterPopoverProps: O, filterPopoverDisableClickOutside: N, filtering: I, sortKey: Y }) {
|
|
7857
7857
|
let { setSourceColumn: U, setTargetColumn: W, swapColumns: J, setColumnsToggle: ee } = eo(), [K, V] = ve(!1), q = Ce(null);
|
|
7858
7858
|
if (!Xr(n)) return null;
|
|
7859
7859
|
let G = i ?? to(r), F = typeof G == "string" ? G : void 0, se = u && S ? (m) => {
|
|
@@ -7868,104 +7868,104 @@ function wd({ className: t, style: e, accessor: r, visibleMediaQuery: n, title:
|
|
|
7868
7868
|
V(!0);
|
|
7869
7869
|
}, c = () => {
|
|
7870
7870
|
V(!1);
|
|
7871
|
-
},
|
|
7871
|
+
}, h = (m) => {
|
|
7872
7872
|
m.stopPropagation(), ee((f) => f.map((s) => s.accessor === r ? { ...s, toggled: !1 } : s));
|
|
7873
7873
|
};
|
|
7874
|
-
return w.jsxs(
|
|
7874
|
+
return w.jsxs(dr, { "data-accessor": r, className: ke({ "mantine-datatable-header-cell-sortable": u, "mantine-datatable-header-cell-toggleable": a, "mantine-datatable-header-cell-resizable": g }, t), style: [{ width: P, ...g ? {} : { minWidth: P, maxWidth: P } }, e], role: u ? "button" : void 0, tabIndex: u ? 0 : void 0, onClick: se, onKeyDown: (m) => m.key === "Enter" && se?.(), ref: q, children: [w.jsxs(gt, { className: "mantine-datatable-header-cell-sortable-group", justify: "space-between", wrap: "nowrap", children: [w.jsxs(Ls, { align: "center", w: "100%", className: ke({ "mantine-datatable-header-cell-draggable": d, "mantine-datatable-header-cell-drag-over": K }), draggable: d, onDragStart: d ? re : void 0, onDragEnter: d ? b : void 0, onDragOver: d ? D : void 0, onDrop: d ? x : void 0, onDragLeave: d ? c : void 0, children: [d ? w.jsx(Nt, { role: "img", "aria-label": "Drag column", children: w.jsx(Ar, { className: "mantine-datatable-header-cell-draggable-action-icon", variant: "subtle", size: "xs", onClick: (m) => {
|
|
7875
7875
|
m.stopPropagation();
|
|
7876
|
-
}, children: w.jsx(
|
|
7876
|
+
}, children: w.jsx(vh, {}) }) }) : null, w.jsx(ze, { className: ke("mantine-datatable-header-cell-sortable-text", { [en]: _ === "left", [tn]: _ === "center", [rn]: _ === "right" }, no, oo), title: F, children: G })] }), a ? w.jsx(Nt, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: w.jsx(Ar, { size: "xs", variant: "light", onClick: h, children: w.jsx(bh, {}) }) }) : null, u || C?.columnAccessor === r ? w.jsx(w.Fragment, { children: C?.columnAccessor === r ? w.jsx(Nt, { className: ke("mantine-datatable-header-cell-sortable-icon", { "mantine-datatable-header-cell-sortable-icon-reversed": C.direction === "desc" }), role: "img", "aria-label": `Sorted ${C.direction === "desc" ? "descending" : "ascending"}`, children: y?.sorted || w.jsx(mh, {}) }) : w.jsx(Nt, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: y?.unsorted || w.jsx(yh, {}) }) }) : null, k ? w.jsx(ph, { filterPopoverProps: O, isActive: !!I, filterPopoverDisableClickOutside: N, children: k }) : null] }), g && r !== "__selection__" ? w.jsx(gh, { accessor: r, columnRef: q }) : null] });
|
|
7877
7877
|
}
|
|
7878
|
-
function
|
|
7879
|
-
let _ = !
|
|
7880
|
-
return w.jsx(
|
|
7878
|
+
function _h({ className: t, style: e, trigger: r, shadowVisible: n, checked: i, indeterminate: u, checkboxProps: d, onChange: a, rowSpan: g, ref: y }) {
|
|
7879
|
+
let _ = !d.disabled;
|
|
7880
|
+
return w.jsx(dr, { ref: y, className: ke("mantine-datatable-header-selector-cell", { [Bt]: r === "cell" && _ }, t), style: e, rowSpan: g, "data-shadow-visible": n || void 0, "data-accessor": "__selection__", onClick: r === "cell" && _ ? a : void 0, children: w.jsx(hr, { classNames: _ ? { input: Bt } : void 0, checked: i, indeterminate: u, onChange: a, ...d, disabled: !(a || d.onChange) || d.disabled }) });
|
|
7881
7881
|
}
|
|
7882
|
-
function
|
|
7883
|
-
let W = g ? fs(g) : 0, J = W > 0 ? W + 1 : 1, ee = _ ? w.jsx(
|
|
7882
|
+
function xh({ selectionColumnHeaderRef: t, className: e, style: r, sortStatus: n, sortIcons: i, onSortStatusChange: u, columns: d, defaultColumnProps: a, groups: g, selectionTrigger: y, selectionVisible: _, selectionChecked: P, selectionIndeterminate: C, onSelectionChange: S, selectionCheckboxProps: k, selectorCellShadowVisible: O, selectionColumnClassName: N, selectionColumnStyle: I, withColumnBorders: Y = !1, ref: U }) {
|
|
7883
|
+
let W = g ? fs(g) : 0, J = W > 0 ? W + 1 : 1, ee = _ ? w.jsx(_h, { ref: t, className: N, style: I, trigger: y, shadowVisible: O, checked: P, indeterminate: C, checkboxProps: k, onChange: S, rowSpan: g ? J : void 0 }) : null, { columnsToggle: K, setColumnsToggle: V } = eo(), [q, G] = ve(!1), F = d.some((D) => D.toggleable), se = F ? Object.fromEntries(d.map(({ accessor: D, title: x }) => [D, x ?? to(String(D))])) : void 0, re = w.jsxs(js, { className: ke("mantine-datatable-header", e), style: r, ref: U, onContextMenu: F ? (D) => {
|
|
7884
7884
|
D.preventDefault(), G((x) => !x);
|
|
7885
7885
|
} : void 0, children: [g && Array.from({ length: W }, (D, x) => {
|
|
7886
7886
|
let b = ps(g, x);
|
|
7887
|
-
return w.jsxs(It, { children: [x === 0 && ee, b.map((c,
|
|
7888
|
-
}), w.jsxs(It, { children: [!g && ee,
|
|
7887
|
+
return w.jsxs(It, { children: [x === 0 && ee, b.map((c, h) => w.jsx(hh, { group: c, maxDepth: W, currentDepth: x, previousGroups: b.slice(0, h), isLastGroup: h === b.length - 1, withColumnBorders: Y, totalTableColumns: d.length }, c.id))] }, `group-depth-${x}`);
|
|
7888
|
+
}), w.jsxs(It, { children: [!g && ee, d.map(({ hidden: D, ...x }, b) => {
|
|
7889
7889
|
if (D) return null;
|
|
7890
|
-
let { accessor: c, visibleMediaQuery:
|
|
7891
|
-
return w.jsx(
|
|
7890
|
+
let { accessor: c, visibleMediaQuery: h, textAlign: m, width: f, title: s, sortable: v, draggable: E, toggleable: R, resizable: Q, titleClassName: Z, titleStyle: X, filter: H, filterPopoverProps: ie, filterPopoverDisableClickOutside: oe, filtering: ae, sortKey: A } = { ...a, ...x };
|
|
7891
|
+
return w.jsx(wh, { accessor: c, className: Z, style: X, visibleMediaQuery: h, textAlign: m, width: f, title: s, sortable: v, draggable: E, toggleable: R, resizable: Q && b < d.length - 1, sortStatus: n, sortIcons: i, sortKey: A, onSortStatusChange: u, filter: H, filterPopoverProps: ie, filterPopoverDisableClickOutside: oe, filtering: ae }, c);
|
|
7892
7892
|
})] })] });
|
|
7893
|
-
return F ? w.jsxs(ir, { position: "bottom", withArrow: !0, shadow: "md", opened: q, onChange: G, children: [w.jsx(Ei, { children: re }), w.jsx(Ri, { children: w.jsx(Yn, { children: K.filter((D) => D.toggleable).map((D) => w.jsx(gt, { children: w.jsx(
|
|
7893
|
+
return F ? w.jsxs(ir, { position: "bottom", withArrow: !0, shadow: "md", opened: q, onChange: G, children: [w.jsx(Ei, { children: re }), w.jsx(Ri, { children: w.jsx(Yn, { children: K.filter((D) => D.toggleable).map((D) => w.jsx(gt, { children: w.jsx(hr, { classNames: { label: "mantine-datatable-header-column-toggle-checkbox-label" }, size: "xs", label: se[D.accessor], checked: D.toggled, onChange: (x) => {
|
|
7894
7894
|
V(K.map((b) => b.accessor === D.accessor ? { ...b, toggled: x.currentTarget.checked } : b));
|
|
7895
7895
|
} }) }, D.accessor)) }) })] }) : re;
|
|
7896
7896
|
}
|
|
7897
|
-
function
|
|
7897
|
+
function Ch({ fetching: t, customContent: e, backgroundBlur: r, size: n, type: i, color: u }) {
|
|
7898
7898
|
return w.jsx(Nt, { className: ke("mantine-datatable-loader", { "mantine-datatable-loader-fetching": t }), style: [{ backdropFilter: r ? `blur(${r}px)` : void 0 }], children: t && (e || w.jsx($s, { size: n, type: i, color: u })) });
|
|
7899
7899
|
}
|
|
7900
7900
|
function Ae(t, e, r) {
|
|
7901
7901
|
return t ? Ns({ color: typeof t == "object" ? t[r] : t, theme: e }).value : void 0;
|
|
7902
7902
|
}
|
|
7903
|
-
function
|
|
7904
|
-
return { "--mantine-datatable-color-light": Ae(e, t, "light"), "--mantine-datatable-color-dark": Ae(e, t, "dark"), "--mantine-datatable-background-color-light": Ae(r, t, "light"), "--mantine-datatable-background-color-dark": Ae(r, t, "dark"), "--mantine-datatable-border-color-light": Ae(n, t, "light"), "--mantine-datatable-border-color-dark": Ae(n, t, "dark"), "--mantine-datatable-row-border-color-light": Ae(i, t, "light"), "--mantine-datatable-row-border-color-dark": Ae(i, t, "dark"), "--mantine-datatable-striped-color-light": Ae(u, t, "light"), "--mantine-datatable-striped-color-dark": Ae(u, t, "dark"), "--mantine-datatable-highlight-on-hover-color-light": Ae(
|
|
7903
|
+
function Sh({ theme: t, c: e, backgroundColor: r, borderColor: n, rowBorderColor: i, stripedColor: u, highlightOnHoverColor: d }) {
|
|
7904
|
+
return { "--mantine-datatable-color-light": Ae(e, t, "light"), "--mantine-datatable-color-dark": Ae(e, t, "dark"), "--mantine-datatable-background-color-light": Ae(r, t, "light"), "--mantine-datatable-background-color-dark": Ae(r, t, "dark"), "--mantine-datatable-border-color-light": Ae(n, t, "light"), "--mantine-datatable-border-color-dark": Ae(n, t, "dark"), "--mantine-datatable-row-border-color-light": Ae(i, t, "light"), "--mantine-datatable-row-border-color-dark": Ae(i, t, "dark"), "--mantine-datatable-striped-color-light": Ae(u, t, "light"), "--mantine-datatable-striped-color-dark": Ae(u, t, "dark"), "--mantine-datatable-highlight-on-hover-color-light": Ae(d, t, "light"), "--mantine-datatable-highlight-on-hover-color-dark": Ae(d, t, "dark") };
|
|
7905
7905
|
}
|
|
7906
7906
|
function ms({ theme: t, paginationActiveTextColor: e, paginationActiveBackgroundColor: r }) {
|
|
7907
7907
|
return { "--mantine-datatable-pagination-active-text-color-light": Ae(e, t, "light"), "--mantine-datatable-pagination-active-text-color-dark": Ae(e, t, "dark"), "--mantine-datatable-pagination-active-background-color-light": Ae(r, t, "light"), "--mantine-datatable-pagination-active-background-color-dark": Ae(r, t, "dark") };
|
|
7908
7908
|
}
|
|
7909
|
-
function
|
|
7909
|
+
function Dh({ theme: t, color: e, backgroundColor: r }) {
|
|
7910
7910
|
return { "--mantine-datatable-row-color-light": Ae(e, t, "light"), "--mantine-datatable-row-color-dark": Ae(e, t, "dark"), "--mantine-datatable-row-background-color-light": Ae(r, t, "light"), "--mantine-datatable-row-background-color-dark": Ae(r, t, "dark") };
|
|
7911
7911
|
}
|
|
7912
|
-
function
|
|
7912
|
+
function kh() {
|
|
7913
7913
|
return w.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [w.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), w.jsx("path", { d: "M8 9l4 -4l4 4" }), w.jsx("path", { d: "M16 15l-4 4l-4 -4" })] });
|
|
7914
7914
|
}
|
|
7915
7915
|
var _i = { xs: At(22), sm: At(26), md: At(32), lg: At(38), xl: At(44) };
|
|
7916
|
-
function
|
|
7917
|
-
return w.jsxs(gt, { gap: "xs", children: [w.jsx(ar, { component: "div", size: t, children: e }), w.jsxs(Mt, { withinPortal: !0, withArrow: !0, offset: 2, classNames: { arrow: "mantine-datatable-page-size-selector-menu-arrow" }, children: [w.jsx(zs, { children: w.jsx(mt, { size: t, variant: "default", classNames: { section: "mantine-datatable-page-size-selector-button-icon" }, rightSection: w.jsx(
|
|
7916
|
+
function Ph({ size: t, label: e, values: r, value: n, activeTextColor: i, activeBackgroundColor: u, onChange: d }) {
|
|
7917
|
+
return w.jsxs(gt, { gap: "xs", children: [w.jsx(ar, { component: "div", size: t, children: e }), w.jsxs(Mt, { withinPortal: !0, withArrow: !0, offset: 2, classNames: { arrow: "mantine-datatable-page-size-selector-menu-arrow" }, children: [w.jsx(zs, { children: w.jsx(mt, { size: t, variant: "default", classNames: { section: "mantine-datatable-page-size-selector-button-icon" }, rightSection: w.jsx(kh, {}), style: [{ fontWeight: "normal" }, (a) => ({ height: _i[t], paddingLeft: a.spacing[t], paddingRight: a.spacing[t] })], children: n }) }), w.jsx(Fs, { children: r.map((a) => {
|
|
7918
7918
|
let g = a === n;
|
|
7919
|
-
return w.jsx(Ws, { className: ke({ "mantine-datatable-page-size-selector-active": g }), style: [{ height: _i[t] }, g && (i || u) ? (y) => ms({ theme: y, paginationActiveTextColor: i, paginationActiveBackgroundColor: u }) : void 0], disabled: g, onClick: () =>
|
|
7919
|
+
return w.jsx(Ws, { className: ke({ "mantine-datatable-page-size-selector-active": g }), style: [{ height: _i[t] }, g && (i || u) ? (y) => ms({ theme: y, paginationActiveTextColor: i, paginationActiveBackgroundColor: u }) : void 0], disabled: g, onClick: () => d(a), children: w.jsx(ar, { component: "div", size: t, children: a }) }, a);
|
|
7920
7920
|
}) })] })] });
|
|
7921
7921
|
}
|
|
7922
|
-
function
|
|
7922
|
+
function Oh({ className: t, style: e, fetching: r, page: n, onPageChange: i, paginationWithEdges: u, paginationWithControls: d, paginationActiveTextColor: a, paginationActiveBackgroundColor: g, paginationSize: y, loadingText: _, noRecordsText: P, paginationText: C, totalRecords: S, recordsPerPage: k, onRecordsPerPageChange: O, recordsPerPageLabel: N, recordsPerPageOptions: I, recordsLength: Y, horizontalSpacing: U, paginationWrapBreakpoint: W, getPaginationControlProps: J, getPaginationItemProps: ee, renderPagination: K }) {
|
|
7923
7923
|
let V;
|
|
7924
7924
|
if (S) {
|
|
7925
7925
|
let x = (n - 1) * k + 1, b = x + (Y || 0) - 1;
|
|
7926
7926
|
V = C({ from: x, to: b, totalRecords: S });
|
|
7927
7927
|
} else V = r ? _ : P;
|
|
7928
|
-
let q = S && k ? Math.max(1, Math.ceil(S / k)) : 1, G = S ? (n - 1) * (k ?? 0) + 1 : void 0, F = S ? (G ?? 1) + (Y ?? 0) - 1 : void 0, se = !Xr(({ breakpoints: x }) => `(min-width: ${typeof W == "number" ? `${At(W)}rem` : x[W] || W})`), re = { Text: (x) => w.jsx(ar, { component: "div", className: "mantine-datatable-pagination-text", size: y, ...x, children: V }), PageSizeSelector: (x) => I ? w.jsx(
|
|
7928
|
+
let q = S && k ? Math.max(1, Math.ceil(S / k)) : 1, G = S ? (n - 1) * (k ?? 0) + 1 : void 0, F = S ? (G ?? 1) + (Y ?? 0) - 1 : void 0, se = !Xr(({ breakpoints: x }) => `(min-width: ${typeof W == "number" ? `${At(W)}rem` : x[W] || W})`), re = { Text: (x) => w.jsx(ar, { component: "div", className: "mantine-datatable-pagination-text", size: y, ...x, children: V }), PageSizeSelector: (x) => I ? w.jsx(Ph, { activeTextColor: a, activeBackgroundColor: g, size: y, label: N, values: I, value: k, onChange: O, ...x }) : w.jsx(w.Fragment, {}), Pagination: (x) => w.jsx(Bs, { classNames: { root: ke("mantine-datatable-pagination-pages", { "mantine-datatable-pagination-pages-fetching": r || !Y }), control: "mantine-datatable-pagination-pages-control" }, style: a || g ? (b) => ms({ theme: b, paginationActiveTextColor: a, paginationActiveBackgroundColor: g }) : void 0, withEdges: u, withControls: d, value: n, onChange: i, size: y, total: q, getControlProps: J, getItemProps: ee, ...x }) }, D = { state: { paginationSize: y, page: n, totalPages: q, totalRecords: S, recordsPerPage: k, recordsLength: Y, fetching: r, from: G, to: F, isWrapped: se }, actions: { setPage: (x) => i?.(x), setRecordsPerPage: O ? (x) => O(x) : void 0 }, Controls: re };
|
|
7929
7929
|
return w.jsx(ze, { px: U ?? "xs", py: "xs", className: ke("mantine-datatable-pagination", t), style: [{ flexDirection: se ? "column" : "row" }, e], children: typeof K == "function" ? K(D) : w.jsxs(w.Fragment, { children: [w.jsx(re.Text, {}), w.jsx(re.PageSizeSelector, {}), w.jsx(re.Pagination, {})] }) });
|
|
7930
7930
|
}
|
|
7931
|
-
function
|
|
7932
|
-
return Xr(r) ? w.jsx(zn, { className: ke({ [no]: g || y, [oo]: y, [Bt]: u ||
|
|
7931
|
+
function Mh({ className: t, style: e, visibleMediaQuery: r, record: n, index: i, onClick: u, onDoubleClick: d, onContextMenu: a, noWrap: g, ellipsis: y, textAlign: _, width: P, accessor: C, render: S, defaultRender: k, customCellAttributes: O }) {
|
|
7932
|
+
return Xr(r) ? w.jsx(zn, { className: ke({ [no]: g || y, [oo]: y, [Bt]: u || d, [gs]: a, [en]: _ === "left", [tn]: _ === "center", [rn]: _ === "right" }, t), style: [{ width: P, minWidth: P, maxWidth: P }, e], onClick: u, onDoubleClick: d, onContextMenu: a, ...O?.(n, i), children: S ? S(n, i) : k ? k(n, i, C) : ds(n, C) }) : null;
|
|
7933
7933
|
}
|
|
7934
|
-
function
|
|
7935
|
-
let { expanded: i, visible: u } =
|
|
7934
|
+
function Ah({ open: t, colSpan: e, content: r, collapseProps: n }) {
|
|
7935
|
+
let { expanded: i, visible: u } = sh(t, n?.transitionDuration);
|
|
7936
7936
|
return u ? w.jsxs(w.Fragment, { children: [w.jsx(It, {}), w.jsx(It, { children: w.jsx(zn, { className: "mantine-datatable-row-expansion-cell", colSpan: e, children: w.jsx(Is, { in: i, ...n, children: w.jsx("div", { className: "mantine-datatable-row-expansion-cell-content", children: r() }) }) }) })] }) : null;
|
|
7937
7937
|
}
|
|
7938
|
-
function
|
|
7938
|
+
function Eh({ className: t, style: e, record: r, index: n, trigger: i, onChange: u, withRightShadow: d, checkboxProps: a, getCheckboxProps: g, ...y }) {
|
|
7939
7939
|
let _ = { ...a, ...g(r, n) }, P = !y.disabled && !_.disabled, C = (S) => {
|
|
7940
7940
|
S.stopPropagation(), i === "cell" && P && u?.(S);
|
|
7941
7941
|
};
|
|
7942
|
-
return w.jsx(zn, { className: ke("mantine-datatable-row-selector-cell", { [Bt]: i === "cell" && P }, t), style: e, "data-shadow-visible":
|
|
7942
|
+
return w.jsx(zn, { className: ke("mantine-datatable-row-selector-cell", { [Bt]: i === "cell" && P }, t), style: e, "data-shadow-visible": d || void 0, onClick: C, children: w.jsx(hr, { classNames: P ? { input: Bt } : void 0, onChange: u, ...y, ..._ }) });
|
|
7943
7943
|
}
|
|
7944
|
-
function
|
|
7945
|
-
let se = w.jsxs(w.Fragment, { children: [
|
|
7944
|
+
function Rh({ record: t, index: e, columns: r, defaultColumnProps: n, defaultColumnRender: i, selectionTrigger: u, selectionVisible: d, selectionChecked: a, onSelectionChange: g, isRecordSelectable: y, selectionCheckboxProps: _, getSelectionCheckboxProps: P, onClick: C, onDoubleClick: S, onContextMenu: k, onCellClick: O, onCellDoubleClick: N, onCellContextMenu: I, expansion: Y, customAttributes: U, color: W, backgroundColor: J, className: ee, style: K, selectorCellShadowVisible: V, selectionColumnClassName: q, selectionColumnStyle: G, rowFactory: F }) {
|
|
7945
|
+
let se = w.jsxs(w.Fragment, { children: [d && w.jsx(Eh, { className: q, style: G, record: t, index: e, trigger: u, withRightShadow: V, checked: a, disabled: !g || (y ? !y(t, e) : !1), onChange: g, checkboxProps: _, getCheckboxProps: P }), r.map(({ hidden: x, hiddenContent: b, ...c }, h) => {
|
|
7946
7946
|
if (x || b) return null;
|
|
7947
7947
|
let { accessor: m, visibleMediaQuery: f, textAlign: s, noWrap: v, ellipsis: E, width: R, render: Q, cellsClassName: Z, cellsStyle: X, customCellAttributes: H } = { ...n, ...c };
|
|
7948
|
-
return w.jsx(
|
|
7949
|
-
})] }), re = Y && w.jsx(
|
|
7948
|
+
return w.jsx(Mh, { className: typeof Z == "function" ? Z(t, e) : Z, style: X?.(t, e), visibleMediaQuery: f, record: t, index: e, onClick: O ? (ie) => O({ event: ie, record: t, index: e, column: c, columnIndex: h }) : void 0, onDoubleClick: N ? (ie) => N({ event: ie, record: t, index: e, column: c, columnIndex: h }) : void 0, onContextMenu: I ? (ie) => I({ event: ie, record: t, index: e, column: c, columnIndex: h }) : void 0, accessor: m, textAlign: s, noWrap: v, ellipsis: E, width: R, render: Q, defaultRender: i, customCellAttributes: H }, m);
|
|
7949
|
+
})] }), re = Y && w.jsx(Ah, { colSpan: r.filter(({ hidden: x }) => !x).length + (d ? 1 : 0), open: Y.isRowExpanded(t), content: Y.content({ record: t, index: e }), collapseProps: Y.collapseProps }), D = jh({ record: t, index: e, selectionChecked: a, onClick: C, onDoubleClick: S, onContextMenu: k, expansion: Y, customAttributes: U, color: W, backgroundColor: J, className: ee, style: K });
|
|
7950
7950
|
return F ? F({ record: t, index: e, rowProps: D, children: se, expandedElement: re }) : w.jsxs(w.Fragment, { children: [w.jsx(It, { ...D, children: se }), re] });
|
|
7951
7951
|
}
|
|
7952
|
-
function
|
|
7953
|
-
return { className: ke("mantine-datatable-row", { [Bt]: n || i ||
|
|
7954
|
-
if (
|
|
7955
|
-
let { isExpandable: S, isRowExpanded: k, expandOnClick: O, expandRow: N, collapseRow: I } =
|
|
7952
|
+
function jh({ record: t, index: e, selectionChecked: r, onClick: n, onDoubleClick: i, onContextMenu: u, expansion: d, customAttributes: a, color: g, backgroundColor: y, className: _, style: P }) {
|
|
7953
|
+
return { className: ke("mantine-datatable-row", { [Bt]: n || i || d?.isExpandable({ record: t, index: e }) && d?.expandOnClick }, { [gs]: u }, typeof _ == "function" ? _(t, e) : _), "data-selected": r || void 0, onClick: (C) => {
|
|
7954
|
+
if (d) {
|
|
7955
|
+
let { isExpandable: S, isRowExpanded: k, expandOnClick: O, expandRow: N, collapseRow: I } = d;
|
|
7956
7956
|
S({ record: t, index: e }) && O && (k(t) ? I(t) : N(t));
|
|
7957
7957
|
}
|
|
7958
7958
|
n?.({ event: C, record: t, index: e });
|
|
7959
7959
|
}, onDoubleClick: i ? (C) => i({ event: C, record: t, index: e }) : void 0, onContextMenu: u ? (C) => u({ event: C, record: t, index: e }) : void 0, style: [g || y ? (C) => {
|
|
7960
7960
|
let S = g?.(t, e), k = y?.(t, e);
|
|
7961
|
-
return
|
|
7961
|
+
return Dh({ theme: C, color: S, backgroundColor: k });
|
|
7962
7962
|
} : void 0, P?.(t, e)], ...a?.(t, e) ?? {} };
|
|
7963
7963
|
}
|
|
7964
|
-
function
|
|
7964
|
+
function Th({ leftShadowBehind: t, rightShadowBehind: e, onScrollPositionChange: r, children: n, viewportRef: i, scrollAreaProps: u }) {
|
|
7965
7965
|
return w.jsxs(Rs, { ...u, viewportRef: i, classNames: { root: "mantine-datatable-scroll-area", scrollbar: "mantine-datatable-scroll-area-scrollbar", thumb: "mantine-datatable-scroll-area-thumb", corner: "mantine-datatable-scroll-area-corner" }, onScrollPositionChange: r, children: [n, w.jsx(ze, { className: ke("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-top-shadow") }), w.jsx("div", { className: ke("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-left-shadow", { "mantine-datatable-scroll-area-shadow-behind": t }) }), w.jsx("div", { className: ke("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-right-shadow", { "mantine-datatable-scroll-area-shadow-behind": e }) }), w.jsx(ze, { className: ke("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-bottom-shadow") })] });
|
|
7966
7966
|
}
|
|
7967
|
-
function $
|
|
7968
|
-
let ot = Je(() => P ? ro(P) : y, [y, P]), [qt, nn] = ve(!1), { refs:
|
|
7967
|
+
function $h({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, height: n = "100%", minHeight: i, maxHeight: u, shadow: d, verticalAlign: a = "center", fetching: g, columns: y, storeColumnsKey: _, groups: P, pinFirstColumn: C, pinLastColumn: S, defaultColumnProps: k, defaultColumnRender: O, idAccessor: N = "id", records: I, selectionTrigger: Y = "checkbox", selectedRecords: U, onSelectedRecordsChange: W, selectionColumnClassName: J, selectionColumnStyle: ee, isRecordSelectable: K, selectionCheckboxProps: V, allRecordsSelectionCheckboxProps: q = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: G = (ot, qt) => ({ "aria-label": `Select record ${qt + 1}` }), sortStatus: F, sortIcons: se, onSortStatusChange: re, horizontalSpacing: D, page: x, onPageChange: b, totalRecords: c, recordsPerPage: h, onRecordsPerPageChange: m, recordsPerPageOptions: f, recordsPerPageLabel: s = "Records per page", paginationWithEdges: v, paginationWithControls: E, paginationActiveTextColor: R, paginationActiveBackgroundColor: Q, paginationSize: Z = "sm", paginationText: X = ({ from: ot, to: qt, totalRecords: nn }) => `${ot} - ${qt} / ${nn}`, paginationWrapBreakpoint: H = "sm", getPaginationControlProps: ie = (ot) => ot === "previous" ? { "aria-label": "Previous page" } : ot === "next" ? { "aria-label": "Next page" } : {}, getPaginationItemProps: oe, renderPagination: ae, loaderBackgroundBlur: A, customLoader: $, loaderSize: j, loaderType: L, loaderColor: B, loadingText: le = "...", emptyState: o, noRecordsText: l = "No records", noRecordsIcon: p, highlightOnHover: M, striped: T, noHeader: z, onRowClick: ne, onRowDoubleClick: ue, onRowContextMenu: de, onCellClick: te, onCellDoubleClick: he, onCellContextMenu: pe, onScroll: fe, onScrollToTop: xe, onScrollToBottom: _e, onScrollToLeft: Se, onScrollToRight: qe, c: Me, backgroundColor: be, borderColor: ct, rowBorderColor: Ee, stripedColor: Ve, highlightOnHoverColor: Ie, rowColor: tt, rowBackgroundColor: ut, rowExpansion: Re, rowClassName: ht, rowStyle: yt, customRowAttributes: ft, scrollViewportRef: He, scrollAreaProps: Ge, tableRef: Qe, bodyRef: pt, m: Dt, my: me, mx: De, mt: We, mb: rt, ml: jt, mr: Pe, className: Oe, classNames: nt, style: Ne, styles: we, rowFactory: Ze, tableWrapper: Ue, ...vt }) {
|
|
7968
|
+
let ot = Je(() => P ? ro(P) : y, [y, P]), [qt, nn] = ve(!1), { refs: dt, onScroll: ys } = Ku({ scrollCallbacks: { onScroll: fe, onScrollToTop: xe, onScrollToBottom: _e, onScrollToLeft: Se, onScrollToRight: qe }, withRowBorders: vt.withRowBorders }), on = Zu({ key: _, columns: ot, headerRef: dt.header, scrollViewportRef: dt.scrollViewport, onFixedLayoutChange: nn }), vs = ho(dt.table, Qe), bs = ho(dt.scrollViewport, He), ws = ih({ rowExpansion: Re, records: I, idAccessor: N }), fr = Ce(!1), io = Ce(x), sn = Ce(I), _s = Te((ye) => {
|
|
7969
7969
|
fr.current = !0, sn.current = I, b(ye);
|
|
7970
7970
|
}, [b, I]);
|
|
7971
7971
|
je(() => {
|
|
@@ -7974,53 +7974,53 @@ function $d({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, hei
|
|
|
7974
7974
|
let pr = I?.length;
|
|
7975
7975
|
ki(() => {
|
|
7976
7976
|
if (!fr.current || g || I === sn.current) return;
|
|
7977
|
-
let ye =
|
|
7977
|
+
let ye = dt.scrollViewport.current;
|
|
7978
7978
|
if (!ye) return;
|
|
7979
7979
|
let kt = requestAnimationFrame(() => {
|
|
7980
7980
|
ye.scrollTo({ top: 0, left: 0 }), fr.current = !1;
|
|
7981
7981
|
});
|
|
7982
7982
|
return () => cancelAnimationFrame(kt);
|
|
7983
|
-
}, [g, I,
|
|
7983
|
+
}, [g, I, dt.scrollViewport]);
|
|
7984
7984
|
let so = I?.map((ye) => Be(ye, N)), Tt = !!U, Vt = U?.map((ye) => Be(ye, N)), ao = so !== void 0 && Vt !== void 0 && Vt.length > 0, an = K ? I?.filter(K) : I, gr = an?.map((ye) => Be(ye, N)), mr = ao && gr.every((ye) => Vt.includes(ye)), xs = ao && gr.some((ye) => Vt.includes(ye)), Cs = Te(() => {
|
|
7985
7985
|
U && W && W(mr ? U.filter((ye) => !gr.includes(Be(ye, N))) : Cn([...U, ...an], (ye) => Be(ye, N)));
|
|
7986
7986
|
}, [mr, N, W, gr, an, U]), { lastSelectionChangeIndex: yr, setLastSelectionChangeIndex: Ss } = Ju(so), ln = Tt && !C, Ds = { m: Dt, my: me, mx: De, mt: We, mb: rt, ml: jt, mr: Pe }, ks = Te(({ children: ye }) => Ue ? Ue({ children: ye }) : ye, [Ue]);
|
|
7987
|
-
return w.jsx(pi, { ...on, children: w.jsxs(ze, { ref:
|
|
7987
|
+
return w.jsx(pi, { ...on, children: w.jsxs(ze, { ref: dt.root, ...Ds, className: ke("mantine-datatable", { "mantine-datatable-with-border": t }, Oe, nt?.root), style: [(ye) => ({ ...Sh({ theme: ye, c: Me, backgroundColor: be, borderColor: ct, rowBorderColor: Ee, stripedColor: Ve, highlightOnHoverColor: Ie }), borderRadius: ye.radius[e] || e, boxShadow: ye.shadows[d] || d, height: n, minHeight: i, maxHeight: u }), Ne, we?.root, { position: "relative" }], children: [w.jsx(Th, { viewportRef: bs, leftShadowBehind: Tt || !!C, rightShadowBehind: S, onScrollPositionChange: ys, scrollAreaProps: Ge, children: w.jsx(ks, { children: w.jsxs(Es, { ref: vs, horizontalSpacing: D, className: ke("mantine-datatable-table", { [ah]: r, "mantine-datatable-vertical-align-top": a === "top", "mantine-datatable-vertical-align-bottom": a === "bottom", "mantine-datatable-pin-last-column": S, "mantine-datatable-selection-column-visible": Tt, "mantine-datatable-pin-first-column": C, "mantine-datatable-resizable-columns": on.hasResizableColumns && qt }, nt?.table), style: { ...we?.table }, "data-striped": pr && T || void 0, "data-highlight-on-hover": M || void 0, ...vt, children: [z ? null : w.jsx(pi, { ...on, children: w.jsx(xh, { ref: dt.header, selectionColumnHeaderRef: dt.selectionColumnHeader, className: nt?.header, style: we?.header, columns: ot, defaultColumnProps: k, groups: P, sortStatus: F, sortIcons: se, onSortStatusChange: re, selectionTrigger: Y, selectionVisible: Tt, selectionChecked: mr, selectionIndeterminate: xs && !mr, onSelectionChange: Cs, selectionCheckboxProps: { ...V, ...q }, selectorCellShadowVisible: ln, selectionColumnClassName: J, selectionColumnStyle: ee, withColumnBorders: vt.withColumnBorders }) }), w.jsx("tbody", { ref: pt, children: pr ? I.map((ye, kt) => {
|
|
7988
7988
|
let cn = Be(ye, N), un = Vt?.includes(cn) || !1, lo;
|
|
7989
7989
|
return W && U && (lo = (Ps) => {
|
|
7990
7990
|
if (Ps.nativeEvent.shiftKey && yr !== null) {
|
|
7991
7991
|
let $t = I.filter(kt > yr ? (Pt, Ot) => Ot >= yr && Ot <= kt && (K ? K(Pt, Ot) : !0) : (Pt, Ot) => Ot >= kt && Ot <= yr && (K ? K(Pt, Ot) : !0));
|
|
7992
|
-
W(un ?
|
|
7992
|
+
W(un ? nh(U, $t, (Pt) => Be(Pt, N)) : Cn([...U, ...$t], (Pt) => Be(Pt, N)));
|
|
7993
7993
|
} else W(un ? U.filter(($t) => Be($t, N) !== cn) : Cn([...U, ye], ($t) => Be($t, N)));
|
|
7994
7994
|
Ss(kt);
|
|
7995
|
-
}), w.jsx(
|
|
7996
|
-
}) : w.jsx(Uu, {}) }), ot.some(({ footer: ye }) => ye) && w.jsx(
|
|
7995
|
+
}), w.jsx(Rh, { record: ye, index: kt, columns: ot, defaultColumnProps: k, defaultColumnRender: O, selectionTrigger: Y, selectionVisible: Tt, selectionChecked: un, onSelectionChange: lo, isRecordSelectable: K, selectionCheckboxProps: V, getSelectionCheckboxProps: G, onClick: ne, onDoubleClick: ue, onCellClick: te, onCellDoubleClick: he, onContextMenu: de, onCellContextMenu: pe, expansion: ws, color: tt, backgroundColor: ut, className: ht, style: yt, customAttributes: ft, selectorCellShadowVisible: ln, selectionColumnClassName: J, selectionColumnStyle: ee, idAccessor: N, rowFactory: Ze }, cn);
|
|
7996
|
+
}) : w.jsx(Uu, {}) }), ot.some(({ footer: ye }) => ye) && w.jsx(uh, { ref: dt.footer, className: nt?.footer, style: we?.footer, columns: ot, defaultColumnProps: k, selectionVisible: Tt, selectorCellShadowVisible: ln })] }) }) }), x && w.jsx(Oh, { className: nt?.pagination, style: we?.pagination, horizontalSpacing: D, fetching: g, page: x, onPageChange: _s, totalRecords: c, recordsPerPage: h, onRecordsPerPageChange: m, recordsPerPageOptions: f, recordsPerPageLabel: s, paginationWithEdges: v, paginationWithControls: E, paginationActiveTextColor: R, paginationActiveBackgroundColor: Q, paginationSize: Z, paginationText: X, paginationWrapBreakpoint: H, getPaginationControlProps: ie, getPaginationItemProps: oe, noRecordsText: l, loadingText: le, recordsLength: pr, renderPagination: ae }), w.jsx(Ch, { fetching: g, backgroundBlur: A, customContent: $, size: j, type: L, color: B }), w.jsx(Vu, { icon: p, text: l, active: !g && !pr, children: o })] }) });
|
|
7997
7997
|
}
|
|
7998
|
-
function
|
|
7998
|
+
function Nh(t) {
|
|
7999
7999
|
const e = lt.c(41), {
|
|
8000
8000
|
fields: r,
|
|
8001
8001
|
onClose: n,
|
|
8002
8002
|
queryKey: i,
|
|
8003
8003
|
apiPath: u,
|
|
8004
|
-
id:
|
|
8004
|
+
id: d,
|
|
8005
8005
|
steps: a
|
|
8006
8006
|
} = t, [g, y] = ve(0), [_, P] = ve(!1), {
|
|
8007
8007
|
data: C,
|
|
8008
8008
|
isLoading: S
|
|
8009
|
-
} = $c(u, i,
|
|
8009
|
+
} = $c(u, i, d), {
|
|
8010
8010
|
mutateAsync: k,
|
|
8011
8011
|
isError: O,
|
|
8012
8012
|
error: N,
|
|
8013
8013
|
isPending: I
|
|
8014
8014
|
} = Gi(u, i);
|
|
8015
8015
|
let Y;
|
|
8016
|
-
e[0] !== r ? (Y = new Set(r.filter(
|
|
8016
|
+
e[0] !== r ? (Y = new Set(r.filter(Fh).map(zh)), e[0] = r, e[1] = Y) : Y = e[1];
|
|
8017
8017
|
let U;
|
|
8018
8018
|
e[2] !== Y ? (U = [...Y], e[2] = Y, e[3] = U) : U = e[3];
|
|
8019
8019
|
const W = U;
|
|
8020
8020
|
let J;
|
|
8021
|
-
e[4] !== r ? (J = r.reduce(
|
|
8021
|
+
e[4] !== r ? (J = r.reduce(Yh, {}), e[4] = r, e[5] = J) : J = e[5];
|
|
8022
8022
|
let ee;
|
|
8023
|
-
e[6] !== r ? (ee = r.filter(
|
|
8023
|
+
e[6] !== r ? (ee = r.filter(Bh).reduce(Ih, {}), e[6] = r, e[7] = ee) : ee = e[7];
|
|
8024
8024
|
let K;
|
|
8025
8025
|
e[8] !== J || e[9] !== ee ? (K = {
|
|
8026
8026
|
mode: "uncontrolled",
|
|
@@ -8035,40 +8035,40 @@ function Nd(t) {
|
|
|
8035
8035
|
...C
|
|
8036
8036
|
};
|
|
8037
8037
|
r.forEach((c) => {
|
|
8038
|
-
const
|
|
8039
|
-
c.type === "boolean" && b[
|
|
8038
|
+
const h = c.id;
|
|
8039
|
+
c.type === "boolean" && b[h] === null ? b[h] = !1 : c.type === "date" && b[h] ? b[h] = new Date(b[h]) : b[h] === null && (b[h] = "");
|
|
8040
8040
|
}), V.initialize(b), V.setValues(b);
|
|
8041
8041
|
}
|
|
8042
8042
|
}, e[11] = C, e[12] = r, e[13] = V, e[14] = q) : q = e[14];
|
|
8043
8043
|
let G;
|
|
8044
8044
|
e[15] !== C ? (G = [C], e[15] = C, e[16] = G) : G = e[16], je(q, G);
|
|
8045
8045
|
let F;
|
|
8046
|
-
e[17] !== V || e[18] !==
|
|
8047
|
-
const
|
|
8048
|
-
return c.conditional && !c.conditional(
|
|
8046
|
+
e[17] !== V || e[18] !== d ? (F = function(c) {
|
|
8047
|
+
const h = V.getValues();
|
|
8048
|
+
return c.conditional && !c.conditional(h) ? null : /* @__PURE__ */ w.jsxs(Di, { children: [
|
|
8049
8049
|
(c.type === void 0 || c.type == "text") && /* @__PURE__ */ w.jsx(Oi, { label: c.column.title, placeholder: c.placeholder ?? "", ...V.getInputProps(c.id), type: c.id.includes("email") ? "email" : void 0, required: c.required }, V.key(c.id)),
|
|
8050
8050
|
c.type === "number" && /* @__PURE__ */ w.jsx(Mi, { decimalSeparator: ",", label: c.column.title, placeholder: c.placeholder ?? "", ...V.getInputProps(c.id), required: c.required }, V.key(c.id)),
|
|
8051
8051
|
c.type === "date" && /* @__PURE__ */ w.jsx(Jr, { label: c.column.title, placeholder: c.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...V.getInputProps(c.id), required: c.required }, V.key(c.id)),
|
|
8052
|
-
c.type === "boolean" && /* @__PURE__ */ w.jsx(
|
|
8052
|
+
c.type === "boolean" && /* @__PURE__ */ w.jsx(hr, { mt: "md", label: c.column.title, ...V.getInputProps(c.id, {
|
|
8053
8053
|
type: "checkbox"
|
|
8054
8054
|
}), required: c.required }, V.key(c.id)),
|
|
8055
8055
|
c.type === "textarea" && /* @__PURE__ */ w.jsx(Ai, { label: c.column.title, placeholder: c.placeholder ?? "", ...V.getInputProps(c.id), minRows: 3, autosize: !0, required: c.required }, V.key(c.id)),
|
|
8056
8056
|
c.type === "custom" && c.render && c.render({
|
|
8057
8057
|
...V.getValues(),
|
|
8058
|
-
id:
|
|
8058
|
+
id: d
|
|
8059
8059
|
}, V.setValues, P, {
|
|
8060
8060
|
error: V.getInputProps(c.id).error,
|
|
8061
8061
|
required: c.required
|
|
8062
8062
|
})
|
|
8063
8063
|
] }, c.id);
|
|
8064
|
-
}, e[17] = V, e[18] =
|
|
8064
|
+
}, e[17] = V, e[18] = d, e[19] = F) : F = e[19];
|
|
8065
8065
|
const se = F;
|
|
8066
8066
|
let re;
|
|
8067
8067
|
e[20] !== O || e[21] !== N?.message || e[22] !== N?.name ? (re = O && /* @__PURE__ */ w.jsx(Nr, { variant: "outline", color: "red", title: N?.name ?? "Fehler aufgetreten", mb: "lg", children: N?.message ?? "Fehler aufgetreten" }), e[20] = O, e[21] = N?.message, e[22] = N?.name, e[23] = re) : re = e[23];
|
|
8068
8068
|
let D;
|
|
8069
|
-
e[24] !== g || e[25] !== r || e[26] !== V || e[27] !== _ || e[28] !==
|
|
8069
|
+
e[24] !== g || e[25] !== r || e[26] !== V || e[27] !== _ || e[28] !== d || e[29] !== S || e[30] !== I || e[31] !== O || e[32] !== n || e[33] !== se || e[34] !== a || e[35] !== W || e[36] !== k ? (D = S ? /* @__PURE__ */ w.jsxs(Yn, { gap: "md", children: [
|
|
8070
8070
|
/* @__PURE__ */ w.jsx(Lt, { height: 40 }),
|
|
8071
|
-
Array(r.length).fill(0).map(
|
|
8071
|
+
Array(r.length).fill(0).map(Lh),
|
|
8072
8072
|
/* @__PURE__ */ w.jsxs(gt, { mt: "md", justify: "end", children: [
|
|
8073
8073
|
/* @__PURE__ */ w.jsx(Lt, { width: 100, height: 36 }),
|
|
8074
8074
|
/* @__PURE__ */ w.jsx(Lt, { width: 100, height: 36 })
|
|
@@ -8076,7 +8076,7 @@ function Nd(t) {
|
|
|
8076
8076
|
] }) : /* @__PURE__ */ w.jsxs("form", { onSubmit: V.onSubmit(async (b) => {
|
|
8077
8077
|
await k({
|
|
8078
8078
|
...b,
|
|
8079
|
-
id:
|
|
8079
|
+
id: d
|
|
8080
8080
|
}), W.length && g < W.length - 1 ? O || y(g + 1) : O || (V.setInitialValues(b), V.reset(), n());
|
|
8081
8081
|
}), children: [
|
|
8082
8082
|
W.length ? /* @__PURE__ */ w.jsx(Mr, { active: g, size: "sm", children: W.map((b) => /* @__PURE__ */ w.jsx(Mr.Step, { ...a && a[b - 1] ? {
|
|
@@ -8086,32 +8086,32 @@ function Nd(t) {
|
|
|
8086
8086
|
/* @__PURE__ */ w.jsx(mt, { onClick: () => W.length ? g === 0 ? n() : y(g - 1) : n(), variant: "outline", children: W.length ? g === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
|
|
8087
8087
|
/* @__PURE__ */ w.jsx(mt, { type: "submit", loading: I, children: W.length ? g === W.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
|
|
8088
8088
|
] })
|
|
8089
|
-
] }), e[24] = g, e[25] = r, e[26] = V, e[27] = _, e[28] =
|
|
8089
|
+
] }), e[24] = g, e[25] = r, e[26] = V, e[27] = _, e[28] = d, e[29] = S, e[30] = I, e[31] = O, e[32] = n, e[33] = se, e[34] = a, e[35] = W, e[36] = k, e[37] = D) : D = e[37];
|
|
8090
8090
|
let x;
|
|
8091
8091
|
return e[38] !== D || e[39] !== re ? (x = /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
|
8092
8092
|
re,
|
|
8093
8093
|
D
|
|
8094
8094
|
] }), e[38] = D, e[39] = re, e[40] = x) : x = e[40], x;
|
|
8095
8095
|
}
|
|
8096
|
-
function
|
|
8096
|
+
function Lh(t, e) {
|
|
8097
8097
|
return /* @__PURE__ */ w.jsx(Lt, { height: 35 }, `skeleton-field-${e}`);
|
|
8098
8098
|
}
|
|
8099
|
-
function
|
|
8099
|
+
function Ih(t, e) {
|
|
8100
8100
|
return t[e.id] = (r, n) => e.conditional && !e.conditional(n) || r ? null : "Pflichtfeld", t;
|
|
8101
8101
|
}
|
|
8102
|
-
function
|
|
8102
|
+
function Bh(t) {
|
|
8103
8103
|
return t.required;
|
|
8104
8104
|
}
|
|
8105
|
-
function
|
|
8105
|
+
function Yh(t, e) {
|
|
8106
8106
|
return t[e.id] = e.type === "boolean" ? e.defaultValue ?? !1 : e.defaultValue ?? "", t;
|
|
8107
8107
|
}
|
|
8108
|
-
function
|
|
8108
|
+
function zh(t) {
|
|
8109
8109
|
return t.step;
|
|
8110
8110
|
}
|
|
8111
|
-
function
|
|
8111
|
+
function Fh(t) {
|
|
8112
8112
|
return typeof t.step == "number";
|
|
8113
8113
|
}
|
|
8114
|
-
function
|
|
8114
|
+
function Wh({
|
|
8115
8115
|
queryKey: t,
|
|
8116
8116
|
apiPath: e,
|
|
8117
8117
|
onClose: r,
|
|
@@ -8120,13 +8120,13 @@ function Wd({
|
|
|
8120
8120
|
const {
|
|
8121
8121
|
mutateAsync: i,
|
|
8122
8122
|
isError: u,
|
|
8123
|
-
error:
|
|
8123
|
+
error: d,
|
|
8124
8124
|
isPending: a
|
|
8125
8125
|
} = Uc(e, t), [g, y] = ve(n), [_, P] = ve(!1), C = _ || a;
|
|
8126
8126
|
return je(() => {
|
|
8127
8127
|
g.length || r();
|
|
8128
8128
|
}, [r, g]), g.length ? /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
|
8129
|
-
u &&
|
|
8129
|
+
u && d.message && /* @__PURE__ */ w.jsx(Nr, { variant: "outline", color: "red", title: d.name, children: d.message }),
|
|
8130
8130
|
/* @__PURE__ */ w.jsx(ar, { children: g.length === 1 ? `Soll ${g.length} Eintrag wirklich gelöscht werden?` : `Sollen ${g.length} Einträge wirklich gelöscht werden?` }),
|
|
8131
8131
|
/* @__PURE__ */ w.jsxs(gt, { mt: "md", justify: "end", children: [
|
|
8132
8132
|
/* @__PURE__ */ w.jsx(mt, { onClick: r, variant: "outline", disabled: C, children: "Abbrechen" }),
|
|
@@ -8141,7 +8141,7 @@ function Wd({
|
|
|
8141
8141
|
] })
|
|
8142
8142
|
] }) : /* @__PURE__ */ w.jsx(w.Fragment, {});
|
|
8143
8143
|
}
|
|
8144
|
-
function
|
|
8144
|
+
function Uh(t, e) {
|
|
8145
8145
|
const r = lt.c(8);
|
|
8146
8146
|
let n;
|
|
8147
8147
|
r[0] !== t || r[1] !== e ? (n = () => {
|
|
@@ -8149,22 +8149,22 @@ function Ud(t, e) {
|
|
|
8149
8149
|
return y ? JSON.parse(y) : t;
|
|
8150
8150
|
}, r[0] = t, r[1] = e, r[2] = n) : n = r[2];
|
|
8151
8151
|
const [i, u] = ve(n);
|
|
8152
|
-
let
|
|
8153
|
-
r[3] !== e ? (
|
|
8152
|
+
let d;
|
|
8153
|
+
r[3] !== e ? (d = (y) => {
|
|
8154
8154
|
u(y), localStorage.setItem(`use_persistent_storage_${e}`, JSON.stringify(y));
|
|
8155
|
-
}, r[3] = e, r[4] =
|
|
8156
|
-
const a =
|
|
8155
|
+
}, r[3] = e, r[4] = d) : d = r[4];
|
|
8156
|
+
const a = d;
|
|
8157
8157
|
let g;
|
|
8158
8158
|
return r[5] !== a || r[6] !== i ? (g = [i, a], r[5] = a, r[6] = i, r[7] = g) : g = r[7], g;
|
|
8159
8159
|
}
|
|
8160
|
-
const
|
|
8160
|
+
const qh = (t, e) => {
|
|
8161
8161
|
const r = t.map((g) => g[e]).filter((g) => g != null && g !== "");
|
|
8162
8162
|
if (r.length === 0) return "string";
|
|
8163
8163
|
const n = Math.min(100, r.length), i = r.slice(0, n), u = {
|
|
8164
8164
|
string: 0,
|
|
8165
8165
|
number: 0,
|
|
8166
8166
|
date: 0
|
|
8167
|
-
},
|
|
8167
|
+
}, d = [
|
|
8168
8168
|
/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/,
|
|
8169
8169
|
// ISO datetime
|
|
8170
8170
|
/^\d{4}-\d{2}-\d{2}$/,
|
|
@@ -8183,7 +8183,7 @@ const qd = (t, e) => {
|
|
|
8183
8183
|
u.number++;
|
|
8184
8184
|
return;
|
|
8185
8185
|
}
|
|
8186
|
-
if (
|
|
8186
|
+
if (d.some((_) => _.test(y))) {
|
|
8187
8187
|
const _ = new Date(y);
|
|
8188
8188
|
if (!isNaN(_.getTime())) {
|
|
8189
8189
|
u.date++;
|
|
@@ -8195,12 +8195,12 @@ const qd = (t, e) => {
|
|
|
8195
8195
|
});
|
|
8196
8196
|
const a = u.string + u.number + u.date;
|
|
8197
8197
|
return u.date / a >= 0.6 ? "date" : u.number / a >= 0.6 ? "number" : u.string / a >= 0.6 ? "string" : "mixed";
|
|
8198
|
-
}, xi = /* @__PURE__ */ new Map(),
|
|
8198
|
+
}, xi = /* @__PURE__ */ new Map(), Vh = (t, e, r = "asc") => {
|
|
8199
8199
|
if (!t || t.length === 0) return [];
|
|
8200
8200
|
const n = `${String(e)}_${t.length}`;
|
|
8201
8201
|
let i = xi.get(n);
|
|
8202
|
-
return i || (i =
|
|
8203
|
-
const g =
|
|
8202
|
+
return i || (i = qh(t, e), xi.set(n, i)), [...t].sort((d, a) => {
|
|
8203
|
+
const g = d[e], y = a[e], _ = g == null || g === "", P = y == null || y === "";
|
|
8204
8204
|
if (_ && P) return 0;
|
|
8205
8205
|
if (_) return r === "asc" ? -1 : 1;
|
|
8206
8206
|
if (P) return r === "asc" ? 1 : -1;
|
|
@@ -8243,13 +8243,13 @@ const qd = (t, e) => {
|
|
|
8243
8243
|
return C === null && S === null ? 0 : C === null ? r === "asc" ? 1 : -1 : S === null || C < S ? r === "asc" ? -1 : 1 : C > S ? r === "asc" ? 1 : -1 : 0;
|
|
8244
8244
|
});
|
|
8245
8245
|
}, Ci = [10, 15, 50, 100, 500];
|
|
8246
|
-
function
|
|
8246
|
+
function Hh(t) {
|
|
8247
8247
|
const e = lt.c(112), {
|
|
8248
8248
|
title: r,
|
|
8249
8249
|
queryKey: n,
|
|
8250
8250
|
connectedQueryKeys: i,
|
|
8251
8251
|
apiPath: u,
|
|
8252
|
-
buttons:
|
|
8252
|
+
buttons: d,
|
|
8253
8253
|
fields: a,
|
|
8254
8254
|
selection: g,
|
|
8255
8255
|
pagination: y,
|
|
@@ -8277,7 +8277,7 @@ function Hd(t) {
|
|
|
8277
8277
|
const x = D, b = I?.find((Pe) => Pe.value === re)?.queryParams || {}, c = {
|
|
8278
8278
|
...N,
|
|
8279
8279
|
...b
|
|
8280
|
-
},
|
|
8280
|
+
}, h = c ? "?" + Object.entries(c).filter(od).map(nd).join("&") : "";
|
|
8281
8281
|
let m;
|
|
8282
8282
|
e[3] !== re || e[4] !== n ? (m = re ? [...n, re] : n, e[3] = re, e[4] = n, e[5] = m) : m = e[5];
|
|
8283
8283
|
const f = m, {
|
|
@@ -8286,7 +8286,7 @@ function Hd(t) {
|
|
|
8286
8286
|
isError: E,
|
|
8287
8287
|
isRefetching: R,
|
|
8288
8288
|
refetch: Q
|
|
8289
|
-
} = Lc(u +
|
|
8289
|
+
} = Lc(u + h, f), {
|
|
8290
8290
|
queryClient: Z
|
|
8291
8291
|
} = Rt();
|
|
8292
8292
|
let X, H;
|
|
@@ -8347,24 +8347,24 @@ function Hd(t) {
|
|
|
8347
8347
|
e[14] !== k ? (L = (Pe) => {
|
|
8348
8348
|
j(Pe), k && k(String(Pe.columnAccessor), Pe.direction);
|
|
8349
8349
|
}, e[14] = k, e[15] = L) : L = e[15];
|
|
8350
|
-
const B = L, le =
|
|
8350
|
+
const B = L, le = Vh(ie, $.columnAccessor, $.direction), [o, l] = Uh(Ci[1], "mantine-table-page-size"), [p, M] = ve(1), T = y ? le.slice((p - 1) * o, p * o) : le;
|
|
8351
8351
|
let z;
|
|
8352
8352
|
e[16] === Symbol.for("react.memo_cache_sentinel") ? (z = [], e[16] = z) : z = e[16];
|
|
8353
8353
|
const [ne, ue] = ve(z);
|
|
8354
|
-
let
|
|
8355
|
-
e[17] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
8354
|
+
let de;
|
|
8355
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (de = () => {
|
|
8356
8356
|
ue([]);
|
|
8357
|
-
}, e[17] =
|
|
8357
|
+
}, e[17] = de) : de = e[17];
|
|
8358
8358
|
let te;
|
|
8359
|
-
e[18] !== re ? (te = [re], e[18] = re, e[19] = te) : te = e[19], je(
|
|
8360
|
-
const [
|
|
8359
|
+
e[18] !== re ? (te = [re], e[18] = re, e[19] = te) : te = e[19], je(de, te);
|
|
8360
|
+
const [he, pe] = ve(!1), [fe, xe] = ve(!1), [_e, Se] = ve(!1), qe = r ? "space-between" : "end";
|
|
8361
8361
|
let Me;
|
|
8362
8362
|
e[20] !== r ? (Me = r && (typeof r == "string" ? /* @__PURE__ */ w.jsx(Us, { order: 4, children: r }) : r), e[20] = r, e[21] = Me) : Me = e[21];
|
|
8363
8363
|
let be;
|
|
8364
8364
|
e[22] !== Q || e[23] !== G ? (be = G && /* @__PURE__ */ w.jsx(Ar, { variant: "subtle", onClick: () => Q(), "aria-label": "Neuladen", children: /* @__PURE__ */ w.jsx(Gs, {}) }), e[22] = Q, e[23] = G, e[24] = be) : be = e[24];
|
|
8365
8365
|
let ct;
|
|
8366
|
-
e[25] !== P || e[26] !== ee || e[27] !== J || e[28] !== a || e[29] !== ne || e[30] !== g ? (ct = (a.some(
|
|
8367
|
-
const Pe = a.find(
|
|
8366
|
+
e[25] !== P || e[26] !== ee || e[27] !== J || e[28] !== a || e[29] !== ne || e[30] !== g ? (ct = (a.some(rd) || g) && (() => {
|
|
8367
|
+
const Pe = a.find(td) && (!J || ne.length > 0 && J(ne[0])), Oe = a.find(ed) && (!ee || ne.length > 0 && ee(ne[0])), nt = (P ?? []).length > 0, Ne = Pe || Oe || nt;
|
|
8368
8368
|
return /* @__PURE__ */ w.jsxs(Mt, { shadow: "md", children: [
|
|
8369
8369
|
/* @__PURE__ */ w.jsx(Mt.Target, { children: /* @__PURE__ */ w.jsx(mt, { variant: "outline", rightSection: /* @__PURE__ */ w.jsx(qs, { size: 14 }), disabled: !ne.length || !Ne, children: "Aktionen" }) }),
|
|
8370
8370
|
/* @__PURE__ */ w.jsxs(Mt.Dropdown, { children: [
|
|
@@ -8377,30 +8377,30 @@ function Hd(t) {
|
|
|
8377
8377
|
] });
|
|
8378
8378
|
})(), e[25] = P, e[26] = ee, e[27] = J, e[28] = a, e[29] = ne, e[30] = g, e[31] = ct) : ct = e[31];
|
|
8379
8379
|
let Ee;
|
|
8380
|
-
e[32] !== O || e[33] !== a || e[34] !== v ? (Ee = a.find(
|
|
8380
|
+
e[32] !== O || e[33] !== a || e[34] !== v ? (Ee = a.find(Xh) && /* @__PURE__ */ w.jsx(mt, { onClick: () => pe(!0), disabled: v, children: O ?? "Erstellen" }), e[32] = O, e[33] = a, e[34] = v, e[35] = Ee) : Ee = e[35];
|
|
8381
8381
|
let Ve;
|
|
8382
|
-
e[36] !==
|
|
8382
|
+
e[36] !== d || e[37] !== be || e[38] !== ct || e[39] !== Ee ? (Ve = /* @__PURE__ */ w.jsxs(gt, { align: "center", gap: "xs", children: [
|
|
8383
8383
|
be,
|
|
8384
8384
|
ct,
|
|
8385
8385
|
Ee,
|
|
8386
|
-
|
|
8387
|
-
] }), e[36] =
|
|
8386
|
+
d
|
|
8387
|
+
] }), e[36] = d, e[37] = be, e[38] = ct, e[39] = Ee, e[40] = Ve) : Ve = e[40];
|
|
8388
8388
|
let Ie;
|
|
8389
8389
|
e[41] !== qe || e[42] !== Me || e[43] !== Ve ? (Ie = /* @__PURE__ */ w.jsxs(gt, { gap: "xs", justify: qe, align: "center", children: [
|
|
8390
8390
|
Me,
|
|
8391
8391
|
Ve
|
|
8392
8392
|
] }), e[41] = qe, e[42] = Me, e[43] = Ve, e[44] = Ie) : Ie = e[44];
|
|
8393
8393
|
let tt;
|
|
8394
|
-
e[45] !== re || e[46] !== x || e[47] !== I ? (tt = I && I.length > 0 && /* @__PURE__ */ w.jsx(Sn, { value: re, onChange: x, mt: "md", children: /* @__PURE__ */ w.jsx(Sn.List, { children: I.map(
|
|
8394
|
+
e[45] !== re || e[46] !== x || e[47] !== I ? (tt = I && I.length > 0 && /* @__PURE__ */ w.jsx(Sn, { value: re, onChange: x, mt: "md", children: /* @__PURE__ */ w.jsx(Sn.List, { children: I.map(Jh) }) }), e[45] = re, e[46] = x, e[47] = I, e[48] = tt) : tt = e[48];
|
|
8395
8395
|
let ut;
|
|
8396
8396
|
e[49] !== E ? (ut = E && /* @__PURE__ */ w.jsx(Nr, { mt: "md", variant: "light", color: "red", title: "Es ist ein Fehler aufgetreten.", icon: /* @__PURE__ */ w.jsx(Qs, {}), children: "Bitte versuche es später erneut oder sende eine Nachricht an unseren Support." }), e[49] = E, e[50] = ut) : ut = e[50];
|
|
8397
8397
|
let Re;
|
|
8398
8398
|
e[51] !== v || e[52] !== R ? (Re = (v || R) && /* @__PURE__ */ w.jsxs(Yn, { my: "md", children: [
|
|
8399
8399
|
/* @__PURE__ */ w.jsx(Lt, { height: 40 }),
|
|
8400
|
-
Array(5).fill(0).map(
|
|
8400
|
+
Array(5).fill(0).map(Kh)
|
|
8401
8401
|
] }), e[51] = v, e[52] = R, e[53] = Re) : Re = e[53];
|
|
8402
|
-
let
|
|
8403
|
-
e[54] !== a || e[55] !== B || e[56] !== E || e[57] !== v || e[58] !== R || e[59] !== q || e[60] !== p || e[61] !== o || e[62] !== y || e[63] !== T || e[64] !== V || e[65] !== ne || e[66] !== g || e[67] !== M || e[68] !== l || e[69] !== $ || e[70] !== le ? (
|
|
8402
|
+
let ht;
|
|
8403
|
+
e[54] !== a || e[55] !== B || e[56] !== E || e[57] !== v || e[58] !== R || e[59] !== q || e[60] !== p || e[61] !== o || e[62] !== y || e[63] !== T || e[64] !== V || e[65] !== ne || e[66] !== g || e[67] !== M || e[68] !== l || e[69] !== $ || e[70] !== le ? (ht = !v && !R && /* @__PURE__ */ w.jsx($h, { my: "md", striped: !0, highlightOnHover: !0, minHeight: 150, fetching: E, records: T, sortStatus: $, onSortStatusChange: B, ...g && {
|
|
8404
8404
|
selectedRecords: ne,
|
|
8405
8405
|
onSelectedRecordsChange: ue
|
|
8406
8406
|
}, ...y && T.length && {
|
|
@@ -8424,26 +8424,26 @@ function Hd(t) {
|
|
|
8424
8424
|
expanded: V.expanded
|
|
8425
8425
|
}
|
|
8426
8426
|
}
|
|
8427
|
-
}, columns: a.map(
|
|
8427
|
+
}, columns: a.map(Zh), noRecordsText: "Keine Einträge gefunden", onRowClick: q, ...q && {
|
|
8428
8428
|
style: {
|
|
8429
8429
|
cursor: "pointer"
|
|
8430
8430
|
}
|
|
8431
|
-
} }), e[54] = a, e[55] = B, e[56] = E, e[57] = v, e[58] = R, e[59] = q, e[60] = p, e[61] = o, e[62] = y, e[63] = T, e[64] = V, e[65] = ne, e[66] = g, e[67] = M, e[68] = l, e[69] = $, e[70] = le, e[71] =
|
|
8431
|
+
} }), e[54] = a, e[55] = B, e[56] = E, e[57] = v, e[58] = R, e[59] = q, e[60] = p, e[61] = o, e[62] = y, e[63] = T, e[64] = V, e[65] = ne, e[66] = g, e[67] = M, e[68] = l, e[69] = $, e[70] = le, e[71] = ht) : ht = e[71];
|
|
8432
8432
|
let yt;
|
|
8433
8433
|
e[72] === Symbol.for("react.memo_cache_sentinel") ? (yt = () => {
|
|
8434
8434
|
xe(!1), ue([]);
|
|
8435
8435
|
}, e[72] = yt) : yt = e[72];
|
|
8436
8436
|
const ft = r ?? "Bearbeiten";
|
|
8437
8437
|
let He;
|
|
8438
|
-
e[73] !== u || e[74] !== a || e[75] !== n || e[76] !== ne[0] || e[77] !== ne.length || e[78] !== C ? (He = ne.length > 0 && /* @__PURE__ */ w.jsx(
|
|
8438
|
+
e[73] !== u || e[74] !== a || e[75] !== n || e[76] !== ne[0] || e[77] !== ne.length || e[78] !== C ? (He = ne.length > 0 && /* @__PURE__ */ w.jsx(Nh, { fields: a.filter(Qh), queryKey: n, apiPath: u, id: ne[0].id, onClose: () => {
|
|
8439
8439
|
xe(!1), ue([]);
|
|
8440
8440
|
}, steps: C }), e[73] = u, e[74] = a, e[75] = n, e[76] = ne[0], e[77] = ne.length, e[78] = C, e[79] = He) : He = e[79];
|
|
8441
8441
|
let Ge;
|
|
8442
|
-
e[80] !== ft || e[81] !== He || e[82] !== fe ? (Ge = /* @__PURE__ */ w.jsx(
|
|
8442
|
+
e[80] !== ft || e[81] !== He || e[82] !== fe ? (Ge = /* @__PURE__ */ w.jsx(hn, { opened: fe, onClose: yt, title: ft, children: He }), e[80] = ft, e[81] = He, e[82] = fe, e[83] = Ge) : Ge = e[83];
|
|
8443
8443
|
let Qe;
|
|
8444
|
-
e[84] !== u || e[85] !== _e || e[86] !== n || e[87] !== ne || e[88] !== r ? (Qe = ne.length > 0 && /* @__PURE__ */ w.jsx(
|
|
8444
|
+
e[84] !== u || e[85] !== _e || e[86] !== n || e[87] !== ne || e[88] !== r ? (Qe = ne.length > 0 && /* @__PURE__ */ w.jsx(hn, { opened: _e, onClose: () => {
|
|
8445
8445
|
Se(!1), ue([]);
|
|
8446
|
-
}, title: r ?? "Löschen", children: /* @__PURE__ */ w.jsx(
|
|
8446
|
+
}, title: r ?? "Löschen", children: /* @__PURE__ */ w.jsx(Wh, { onClose: () => {
|
|
8447
8447
|
Se(!1), ue([]);
|
|
8448
8448
|
}, queryKey: n, apiPath: u, selectedRecords: ne }) }), e[84] = u, e[85] = _e, e[86] = n, e[87] = ne, e[88] = r, e[89] = Qe) : Qe = e[89];
|
|
8449
8449
|
let pt;
|
|
@@ -8456,87 +8456,87 @@ function Hd(t) {
|
|
|
8456
8456
|
pe(!1);
|
|
8457
8457
|
}, e[91] = me) : me = e[91];
|
|
8458
8458
|
let De;
|
|
8459
|
-
e[92] !== a ? (De = a.filter(
|
|
8459
|
+
e[92] !== a ? (De = a.filter(Gh), e[92] = a, e[93] = De) : De = e[93];
|
|
8460
8460
|
let We;
|
|
8461
8461
|
e[94] !== u || e[95] !== n || e[96] !== C || e[97] !== De ? (We = /* @__PURE__ */ w.jsx(Lu, { queryKey: n, apiPath: u, onClose: me, fields: De, steps: C }), e[94] = u, e[95] = n, e[96] = C, e[97] = De, e[98] = We) : We = e[98];
|
|
8462
8462
|
let rt;
|
|
8463
|
-
e[99] !==
|
|
8463
|
+
e[99] !== he || e[100] !== Dt || e[101] !== We ? (rt = /* @__PURE__ */ w.jsx(hn, { opened: he, onClose: pt, title: Dt, children: We }), e[99] = he, e[100] = Dt, e[101] = We, e[102] = rt) : rt = e[102];
|
|
8464
8464
|
let jt;
|
|
8465
|
-
return e[103] !== Ie || e[104] !== tt || e[105] !== ut || e[106] !== Re || e[107] !==
|
|
8465
|
+
return e[103] !== Ie || e[104] !== tt || e[105] !== ut || e[106] !== Re || e[107] !== ht || e[108] !== Ge || e[109] !== Qe || e[110] !== rt ? (jt = /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
|
8466
8466
|
Ie,
|
|
8467
8467
|
tt,
|
|
8468
8468
|
ut,
|
|
8469
8469
|
Re,
|
|
8470
|
-
|
|
8470
|
+
ht,
|
|
8471
8471
|
Ge,
|
|
8472
8472
|
Qe,
|
|
8473
8473
|
rt
|
|
8474
|
-
] }), e[103] = Ie, e[104] = tt, e[105] = ut, e[106] = Re, e[107] =
|
|
8474
|
+
] }), e[103] = Ie, e[104] = tt, e[105] = ut, e[106] = Re, e[107] = ht, e[108] = Ge, e[109] = Qe, e[110] = rt, e[111] = jt) : jt = e[111], jt;
|
|
8475
8475
|
}
|
|
8476
|
-
function
|
|
8476
|
+
function Gh(t) {
|
|
8477
8477
|
return t.create;
|
|
8478
8478
|
}
|
|
8479
|
-
function
|
|
8479
|
+
function Qh(t) {
|
|
8480
8480
|
return t.update;
|
|
8481
8481
|
}
|
|
8482
|
-
function
|
|
8482
|
+
function Zh(t) {
|
|
8483
8483
|
return t.column;
|
|
8484
8484
|
}
|
|
8485
|
-
function
|
|
8485
|
+
function Kh(t, e) {
|
|
8486
8486
|
return /* @__PURE__ */ w.jsx(Lt, { height: 35 }, `skeleton-${e}`);
|
|
8487
8487
|
}
|
|
8488
|
-
function
|
|
8488
|
+
function Jh(t) {
|
|
8489
8489
|
return /* @__PURE__ */ w.jsx(Sn.Tab, { value: t.value, leftSection: t.icon, children: t.label }, t.value);
|
|
8490
8490
|
}
|
|
8491
|
-
function
|
|
8491
|
+
function Xh(t) {
|
|
8492
8492
|
return t.create;
|
|
8493
8493
|
}
|
|
8494
|
-
function
|
|
8494
|
+
function ed(t) {
|
|
8495
8495
|
return t.delete;
|
|
8496
8496
|
}
|
|
8497
|
-
function
|
|
8497
|
+
function td(t) {
|
|
8498
8498
|
return t.update;
|
|
8499
8499
|
}
|
|
8500
|
-
function
|
|
8500
|
+
function rd(t) {
|
|
8501
8501
|
return t.update;
|
|
8502
8502
|
}
|
|
8503
|
-
function
|
|
8503
|
+
function nd(t) {
|
|
8504
8504
|
const [e, r] = t;
|
|
8505
8505
|
return `${e}=${encodeURIComponent(r ?? "")}`;
|
|
8506
8506
|
}
|
|
8507
|
-
function
|
|
8507
|
+
function od(t) {
|
|
8508
8508
|
const [, e] = t;
|
|
8509
8509
|
return e != null;
|
|
8510
8510
|
}
|
|
8511
|
-
function
|
|
8511
|
+
function dd(t) {
|
|
8512
8512
|
const e = lt.c(5), {
|
|
8513
8513
|
queryClient: r
|
|
8514
8514
|
} = Rt();
|
|
8515
8515
|
let n;
|
|
8516
|
-
e[0] !== t ? (n = /* @__PURE__ */ w.jsx(
|
|
8516
|
+
e[0] !== t ? (n = /* @__PURE__ */ w.jsx(Hh, { ...t }), e[0] = t, e[1] = n) : n = e[1];
|
|
8517
8517
|
let i;
|
|
8518
8518
|
return e[2] !== r || e[3] !== n ? (i = /* @__PURE__ */ w.jsx(zi, { client: r, children: n }), e[2] = r, e[3] = n, e[4] = i) : i = e[4], i;
|
|
8519
8519
|
}
|
|
8520
8520
|
export {
|
|
8521
8521
|
Lu as CreateModal,
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8522
|
+
dd as DataTable,
|
|
8523
|
+
ud as DataTableProvider,
|
|
8524
|
+
Wh as DeleteModal,
|
|
8525
|
+
Nh as UpdateModal,
|
|
8526
|
+
hd as api,
|
|
8527
8527
|
jc as createOne,
|
|
8528
8528
|
Rc as deleteOne,
|
|
8529
8529
|
Ac as getAll,
|
|
8530
8530
|
Ut as getApiHeaders,
|
|
8531
8531
|
Ec as getOne,
|
|
8532
|
-
|
|
8532
|
+
Vh as sortData,
|
|
8533
8533
|
Tc as updateOne,
|
|
8534
8534
|
Bc as useAddOne,
|
|
8535
8535
|
Rt as useDataTable,
|
|
8536
8536
|
Uc as useDeleteOne,
|
|
8537
8537
|
Lc as useGetAll,
|
|
8538
8538
|
$c as useGetOne,
|
|
8539
|
-
|
|
8539
|
+
Uh as usePersistentState,
|
|
8540
8540
|
Gi as useUpdateOne
|
|
8541
8541
|
};
|
|
8542
8542
|
//# sourceMappingURL=index.es.js.map
|