@espresso-lab/mantine-data-table 1.0.25 → 1.0.26
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/DataTable/DataTableInner.d.ts +1 -1
- package/dist/index.es.js +357 -357
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +25 -25
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -460,7 +460,7 @@ var Zt, Qe, ko, jt, ei, Li, Tr, Pn, Io, ki, Ii, ti, ni, Er, $i, rt, Oo, el, tl,
|
|
|
460
460
|
...w2(O.data, t.options)
|
|
461
461
|
}), r._optimisticResults === "isRestoring" && (L.fetchStatus = "idle");
|
|
462
462
|
}
|
|
463
|
-
let { error: M, errorUpdatedAt: T, status:
|
|
463
|
+
let { error: M, errorUpdatedAt: T, status: P } = L;
|
|
464
464
|
if (r.select && L.data !== void 0)
|
|
465
465
|
if (g && L.data === (f == null ? void 0 : f.data) && r.select === ve(this, Io))
|
|
466
466
|
E = ve(this, ki);
|
|
@@ -472,7 +472,7 @@ var Zt, Qe, ko, jt, ei, Li, Tr, Pn, Io, ki, Ii, ti, ni, Er, $i, rt, Oo, el, tl,
|
|
|
472
472
|
}
|
|
473
473
|
else
|
|
474
474
|
E = L.data;
|
|
475
|
-
if (r.placeholderData !== void 0 && E === void 0 &&
|
|
475
|
+
if (r.placeholderData !== void 0 && E === void 0 && P === "pending") {
|
|
476
476
|
let oe;
|
|
477
477
|
if (g != null && g.isPlaceholderData && r.placeholderData === (c == null ? void 0 : c.placeholderData))
|
|
478
478
|
oe = g.data;
|
|
@@ -485,18 +485,18 @@ var Zt, Qe, ko, jt, ei, Li, Tr, Pn, Io, ki, Ii, ti, ni, Er, $i, rt, Oo, el, tl,
|
|
|
485
485
|
} catch (de) {
|
|
486
486
|
We(this, Pn, de);
|
|
487
487
|
}
|
|
488
|
-
oe !== void 0 && (
|
|
488
|
+
oe !== void 0 && (P = "success", E = Xf(
|
|
489
489
|
g == null ? void 0 : g.data,
|
|
490
490
|
oe,
|
|
491
491
|
r
|
|
492
492
|
), k = !0);
|
|
493
493
|
}
|
|
494
|
-
ve(this, Pn) && (M = ve(this, Pn), E = ve(this, ki), T = Date.now(),
|
|
495
|
-
const K = L.fetchStatus === "fetching", X =
|
|
496
|
-
status:
|
|
494
|
+
ve(this, Pn) && (M = ve(this, Pn), E = ve(this, ki), T = Date.now(), P = "error");
|
|
495
|
+
const K = L.fetchStatus === "fetching", X = P === "pending", Q = P === "error", se = X && K, Y = E !== void 0, J = {
|
|
496
|
+
status: P,
|
|
497
497
|
fetchStatus: L.fetchStatus,
|
|
498
498
|
isPending: X,
|
|
499
|
-
isSuccess:
|
|
499
|
+
isSuccess: P === "success",
|
|
500
500
|
isError: Q,
|
|
501
501
|
isInitialLoading: se,
|
|
502
502
|
isLoading: se,
|
|
@@ -757,7 +757,7 @@ function O2() {
|
|
|
757
757
|
return "Fragment";
|
|
758
758
|
case K:
|
|
759
759
|
return "Profiler";
|
|
760
|
-
case
|
|
760
|
+
case P:
|
|
761
761
|
return "StrictMode";
|
|
762
762
|
case Y:
|
|
763
763
|
return "Suspense";
|
|
@@ -938,7 +938,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
938
938
|
function L(d) {
|
|
939
939
|
typeof d == "object" && d !== null && d.$$typeof === E && d._store && (d._store.validated = 1);
|
|
940
940
|
}
|
|
941
|
-
var k = ji, E = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), T = Symbol.for("react.fragment"),
|
|
941
|
+
var k = ji, E = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), Q = Symbol.for("react.context"), se = Symbol.for("react.forward_ref"), Y = Symbol.for("react.suspense"), ce = Symbol.for("react.suspense_list"), J = Symbol.for("react.memo"), te = Symbol.for("react.lazy"), oe = Symbol.for("react.activity"), de = Symbol.for("react.client.reference"), ne = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Se = Object.prototype.hasOwnProperty, Ce = Array.isArray, B = console.createTask ? console.createTask : function() {
|
|
942
942
|
return null;
|
|
943
943
|
};
|
|
944
944
|
k = {
|
|
@@ -1052,8 +1052,8 @@ function j2(i, t, r) {
|
|
|
1052
1052
|
), C = b.getOptimisticResult(f), O = !l && i.subscribed !== !1;
|
|
1053
1053
|
if (Mt.useSyncExternalStore(
|
|
1054
1054
|
Mt.useCallback(
|
|
1055
|
-
(
|
|
1056
|
-
const K = O ? b.subscribe(ta.batchCalls(
|
|
1055
|
+
(P) => {
|
|
1056
|
+
const K = O ? b.subscribe(ta.batchCalls(P)) : ll;
|
|
1057
1057
|
return b.updateResult(), K;
|
|
1058
1058
|
},
|
|
1059
1059
|
[b, O]
|
|
@@ -1077,14 +1077,14 @@ function j2(i, t, r) {
|
|
|
1077
1077
|
f,
|
|
1078
1078
|
C
|
|
1079
1079
|
), f.experimental_prefetchInRender && !Mo && P2(C, l)) {
|
|
1080
|
-
const
|
|
1080
|
+
const P = c ? (
|
|
1081
1081
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
1082
1082
|
sh(f, b, g)
|
|
1083
1083
|
) : (
|
|
1084
1084
|
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
1085
1085
|
(T = s.getQueryCache().get(f.queryHash)) == null ? void 0 : T.promise
|
|
1086
1086
|
);
|
|
1087
|
-
|
|
1087
|
+
P == null || P.catch(ll).finally(() => {
|
|
1088
1088
|
b.updateResult();
|
|
1089
1089
|
});
|
|
1090
1090
|
}
|
|
@@ -1195,7 +1195,7 @@ function U2() {
|
|
|
1195
1195
|
return "Fragment";
|
|
1196
1196
|
case K:
|
|
1197
1197
|
return "Profiler";
|
|
1198
|
-
case
|
|
1198
|
+
case P:
|
|
1199
1199
|
return "StrictMode";
|
|
1200
1200
|
case Y:
|
|
1201
1201
|
return "Suspense";
|
|
@@ -1376,7 +1376,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1376
1376
|
function L(d) {
|
|
1377
1377
|
typeof d == "object" && d !== null && d.$$typeof === E && d._store && (d._store.validated = 1);
|
|
1378
1378
|
}
|
|
1379
|
-
var k = ji, E = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), T = Symbol.for("react.fragment"),
|
|
1379
|
+
var k = ji, E = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), Q = Symbol.for("react.context"), se = Symbol.for("react.forward_ref"), Y = Symbol.for("react.suspense"), ce = Symbol.for("react.suspense_list"), J = Symbol.for("react.memo"), te = Symbol.for("react.lazy"), oe = Symbol.for("react.activity"), de = Symbol.for("react.client.reference"), ne = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Se = Object.prototype.hasOwnProperty, Ce = Array.isArray, B = console.createTask ? console.createTask : function() {
|
|
1380
1380
|
return null;
|
|
1381
1381
|
};
|
|
1382
1382
|
k = {
|
|
@@ -1487,18 +1487,18 @@ function q2() {
|
|
|
1487
1487
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
1488
1488
|
var T = E.indexOf("=");
|
|
1489
1489
|
T === -1 && (T = M);
|
|
1490
|
-
var
|
|
1491
|
-
return [T,
|
|
1490
|
+
var P = T === M ? 0 : 4 - T % 4;
|
|
1491
|
+
return [T, P];
|
|
1492
1492
|
}
|
|
1493
1493
|
function c(E) {
|
|
1494
|
-
var M = f(E), T = M[0],
|
|
1495
|
-
return (T +
|
|
1494
|
+
var M = f(E), T = M[0], P = M[1];
|
|
1495
|
+
return (T + P) * 3 / 4 - P;
|
|
1496
1496
|
}
|
|
1497
1497
|
function b(E, M, T) {
|
|
1498
1498
|
return (M + T) * 3 / 4 - T;
|
|
1499
1499
|
}
|
|
1500
1500
|
function C(E) {
|
|
1501
|
-
var M, T = f(E),
|
|
1501
|
+
var M, T = f(E), P = T[0], K = T[1], X = new r(b(E, P, K)), Q = 0, se = K > 0 ? P - 4 : P, Y;
|
|
1502
1502
|
for (Y = 0; Y < se; Y += 4)
|
|
1503
1503
|
M = t[E.charCodeAt(Y)] << 18 | t[E.charCodeAt(Y + 1)] << 12 | t[E.charCodeAt(Y + 2)] << 6 | t[E.charCodeAt(Y + 3)], X[Q++] = M >> 16 & 255, X[Q++] = M >> 8 & 255, X[Q++] = M & 255;
|
|
1504
1504
|
return K === 2 && (M = t[E.charCodeAt(Y)] << 2 | t[E.charCodeAt(Y + 1)] >> 4, X[Q++] = M & 255), K === 1 && (M = t[E.charCodeAt(Y)] << 10 | t[E.charCodeAt(Y + 1)] << 4 | t[E.charCodeAt(Y + 2)] >> 2, X[Q++] = M >> 8 & 255, X[Q++] = M & 255), X;
|
|
@@ -1507,16 +1507,16 @@ function q2() {
|
|
|
1507
1507
|
return i[E >> 18 & 63] + i[E >> 12 & 63] + i[E >> 6 & 63] + i[E & 63];
|
|
1508
1508
|
}
|
|
1509
1509
|
function L(E, M, T) {
|
|
1510
|
-
for (var
|
|
1511
|
-
|
|
1510
|
+
for (var P, K = [], X = M; X < T; X += 3)
|
|
1511
|
+
P = (E[X] << 16 & 16711680) + (E[X + 1] << 8 & 65280) + (E[X + 2] & 255), K.push(O(P));
|
|
1512
1512
|
return K.join("");
|
|
1513
1513
|
}
|
|
1514
1514
|
function k(E) {
|
|
1515
|
-
for (var M, T = E.length,
|
|
1515
|
+
for (var M, T = E.length, P = T % 3, K = [], X = 16383, Q = 0, se = T - P; Q < se; Q += X)
|
|
1516
1516
|
K.push(L(E, Q, Q + X > se ? se : Q + X));
|
|
1517
|
-
return
|
|
1517
|
+
return P === 1 ? (M = E[T - 1], K.push(
|
|
1518
1518
|
i[M >> 2] + i[M << 4 & 63] + "=="
|
|
1519
|
-
)) :
|
|
1519
|
+
)) : P === 2 && (M = (E[T - 2] << 8) + E[T - 1], K.push(
|
|
1520
1520
|
i[M >> 10] + i[M >> 4 & 63] + i[M << 2 & 63] + "="
|
|
1521
1521
|
)), K.join("");
|
|
1522
1522
|
}
|
|
@@ -1604,10 +1604,10 @@ function V2() {
|
|
|
1604
1604
|
c.poolSize = 8192, c._augment = function(u) {
|
|
1605
1605
|
return u.__proto__ = c.prototype, u;
|
|
1606
1606
|
};
|
|
1607
|
-
function b(u, h, w,
|
|
1607
|
+
function b(u, h, w, N) {
|
|
1608
1608
|
if (typeof h == "number")
|
|
1609
1609
|
throw new TypeError('"value" argument must not be a number');
|
|
1610
|
-
return typeof ArrayBuffer < "u" && h instanceof ArrayBuffer ? M(u, h, w,
|
|
1610
|
+
return typeof ArrayBuffer < "u" && h instanceof ArrayBuffer ? M(u, h, w, N) : typeof h == "string" ? k(u, h, w) : T(u, h);
|
|
1611
1611
|
}
|
|
1612
1612
|
c.from = function(u, h, w) {
|
|
1613
1613
|
return b(null, u, h, w);
|
|
@@ -1621,14 +1621,14 @@ function V2() {
|
|
|
1621
1621
|
if (u < 0)
|
|
1622
1622
|
throw new RangeError('"size" argument must not be negative');
|
|
1623
1623
|
}
|
|
1624
|
-
function O(u, h, w,
|
|
1625
|
-
return C(h), h <= 0 ? f(u, h) : w !== void 0 ? typeof
|
|
1624
|
+
function O(u, h, w, N) {
|
|
1625
|
+
return C(h), h <= 0 ? f(u, h) : w !== void 0 ? typeof N == "string" ? f(u, h).fill(w, N) : f(u, h).fill(w) : f(u, h);
|
|
1626
1626
|
}
|
|
1627
1627
|
c.alloc = function(u, h, w) {
|
|
1628
1628
|
return O(null, u, h, w);
|
|
1629
1629
|
};
|
|
1630
1630
|
function L(u, h) {
|
|
1631
|
-
if (C(h), u = f(u, h < 0 ? 0 :
|
|
1631
|
+
if (C(h), u = f(u, h < 0 ? 0 : P(h) | 0), !c.TYPED_ARRAY_SUPPORT)
|
|
1632
1632
|
for (var w = 0; w < h; ++w)
|
|
1633
1633
|
u[w] = 0;
|
|
1634
1634
|
return u;
|
|
@@ -1641,28 +1641,28 @@ function V2() {
|
|
|
1641
1641
|
function k(u, h, w) {
|
|
1642
1642
|
if ((typeof w != "string" || w === "") && (w = "utf8"), !c.isEncoding(w))
|
|
1643
1643
|
throw new TypeError('"encoding" must be a valid string encoding');
|
|
1644
|
-
var
|
|
1645
|
-
u = f(u,
|
|
1644
|
+
var N = X(h, w) | 0;
|
|
1645
|
+
u = f(u, N);
|
|
1646
1646
|
var U = u.write(h, w);
|
|
1647
|
-
return U !==
|
|
1647
|
+
return U !== N && (u = u.slice(0, U)), u;
|
|
1648
1648
|
}
|
|
1649
1649
|
function E(u, h) {
|
|
1650
|
-
var w = h.length < 0 ? 0 :
|
|
1650
|
+
var w = h.length < 0 ? 0 : P(h.length) | 0;
|
|
1651
1651
|
u = f(u, w);
|
|
1652
|
-
for (var
|
|
1653
|
-
u[
|
|
1652
|
+
for (var N = 0; N < w; N += 1)
|
|
1653
|
+
u[N] = h[N] & 255;
|
|
1654
1654
|
return u;
|
|
1655
1655
|
}
|
|
1656
|
-
function M(u, h, w,
|
|
1656
|
+
function M(u, h, w, N) {
|
|
1657
1657
|
if (h.byteLength, w < 0 || h.byteLength < w)
|
|
1658
1658
|
throw new RangeError("'offset' is out of bounds");
|
|
1659
|
-
if (h.byteLength < w + (
|
|
1659
|
+
if (h.byteLength < w + (N || 0))
|
|
1660
1660
|
throw new RangeError("'length' is out of bounds");
|
|
1661
|
-
return w === void 0 &&
|
|
1661
|
+
return w === void 0 && N === void 0 ? h = new Uint8Array(h) : N === void 0 ? h = new Uint8Array(h, w) : h = new Uint8Array(h, w, N), c.TYPED_ARRAY_SUPPORT ? (u = h, u.__proto__ = c.prototype) : u = E(u, h), u;
|
|
1662
1662
|
}
|
|
1663
1663
|
function T(u, h) {
|
|
1664
1664
|
if (c.isBuffer(h)) {
|
|
1665
|
-
var w =
|
|
1665
|
+
var w = P(h.length) | 0;
|
|
1666
1666
|
return u = f(u, w), u.length === 0 || h.copy(u, 0, 0, w), u;
|
|
1667
1667
|
}
|
|
1668
1668
|
if (h) {
|
|
@@ -1673,7 +1673,7 @@ function V2() {
|
|
|
1673
1673
|
}
|
|
1674
1674
|
throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function P(u) {
|
|
1677
1677
|
if (u >= g())
|
|
1678
1678
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + g().toString(16) + " bytes");
|
|
1679
1679
|
return u | 0;
|
|
@@ -1687,12 +1687,12 @@ function V2() {
|
|
|
1687
1687
|
if (!c.isBuffer(u) || !c.isBuffer(h))
|
|
1688
1688
|
throw new TypeError("Arguments must be Buffers");
|
|
1689
1689
|
if (u === h) return 0;
|
|
1690
|
-
for (var w = u.length,
|
|
1690
|
+
for (var w = u.length, N = h.length, U = 0, ee = Math.min(w, N); U < ee; ++U)
|
|
1691
1691
|
if (u[U] !== h[U]) {
|
|
1692
|
-
w = u[U],
|
|
1692
|
+
w = u[U], N = h[U];
|
|
1693
1693
|
break;
|
|
1694
1694
|
}
|
|
1695
|
-
return w <
|
|
1695
|
+
return w < N ? -1 : N < w ? 1 : 0;
|
|
1696
1696
|
}, c.isEncoding = function(u) {
|
|
1697
1697
|
switch (String(u).toLowerCase()) {
|
|
1698
1698
|
case "hex":
|
|
@@ -1719,14 +1719,14 @@ function V2() {
|
|
|
1719
1719
|
if (h === void 0)
|
|
1720
1720
|
for (h = 0, w = 0; w < u.length; ++w)
|
|
1721
1721
|
h += u[w].length;
|
|
1722
|
-
var
|
|
1722
|
+
var N = c.allocUnsafe(h), U = 0;
|
|
1723
1723
|
for (w = 0; w < u.length; ++w) {
|
|
1724
1724
|
var ee = u[w];
|
|
1725
1725
|
if (!c.isBuffer(ee))
|
|
1726
1726
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
1727
|
-
ee.copy(
|
|
1727
|
+
ee.copy(N, U), U += ee.length;
|
|
1728
1728
|
}
|
|
1729
|
-
return
|
|
1729
|
+
return N;
|
|
1730
1730
|
};
|
|
1731
1731
|
function X(u, h) {
|
|
1732
1732
|
if (c.isBuffer(u))
|
|
@@ -1736,7 +1736,7 @@ function V2() {
|
|
|
1736
1736
|
typeof u != "string" && (u = "" + u);
|
|
1737
1737
|
var w = u.length;
|
|
1738
1738
|
if (w === 0) return 0;
|
|
1739
|
-
for (var
|
|
1739
|
+
for (var N = !1; ; )
|
|
1740
1740
|
switch (h) {
|
|
1741
1741
|
case "ascii":
|
|
1742
1742
|
case "latin1":
|
|
@@ -1756,13 +1756,13 @@ function V2() {
|
|
|
1756
1756
|
case "base64":
|
|
1757
1757
|
return Z(u).length;
|
|
1758
1758
|
default:
|
|
1759
|
-
if (
|
|
1760
|
-
h = ("" + h).toLowerCase(),
|
|
1759
|
+
if (N) return j(u).length;
|
|
1760
|
+
h = ("" + h).toLowerCase(), N = !0;
|
|
1761
1761
|
}
|
|
1762
1762
|
}
|
|
1763
1763
|
c.byteLength = X;
|
|
1764
1764
|
function Q(u, h, w) {
|
|
1765
|
-
var
|
|
1765
|
+
var N = !1;
|
|
1766
1766
|
if ((h === void 0 || h < 0) && (h = 0), h > this.length || ((w === void 0 || w > this.length) && (w = this.length), w <= 0) || (w >>>= 0, h >>>= 0, w <= h))
|
|
1767
1767
|
return "";
|
|
1768
1768
|
for (u || (u = "utf8"); ; )
|
|
@@ -1785,14 +1785,14 @@ function V2() {
|
|
|
1785
1785
|
case "utf-16le":
|
|
1786
1786
|
return d(this, h, w);
|
|
1787
1787
|
default:
|
|
1788
|
-
if (
|
|
1789
|
-
u = (u + "").toLowerCase(),
|
|
1788
|
+
if (N) throw new TypeError("Unknown encoding: " + u);
|
|
1789
|
+
u = (u + "").toLowerCase(), N = !0;
|
|
1790
1790
|
}
|
|
1791
1791
|
}
|
|
1792
1792
|
c.prototype._isBuffer = !0;
|
|
1793
1793
|
function se(u, h, w) {
|
|
1794
|
-
var
|
|
1795
|
-
u[h] = u[w], u[w] =
|
|
1794
|
+
var N = u[h];
|
|
1795
|
+
u[h] = u[w], u[w] = N;
|
|
1796
1796
|
}
|
|
1797
1797
|
c.prototype.swap16 = function() {
|
|
1798
1798
|
var u = this.length;
|
|
@@ -1824,42 +1824,42 @@ function V2() {
|
|
|
1824
1824
|
}, c.prototype.inspect = function() {
|
|
1825
1825
|
var u = "", h = i.INSPECT_MAX_BYTES;
|
|
1826
1826
|
return this.length > 0 && (u = this.toString("hex", 0, h).match(/.{2}/g).join(" "), this.length > h && (u += " ... ")), "<Buffer " + u + ">";
|
|
1827
|
-
}, c.prototype.compare = function(u, h, w,
|
|
1827
|
+
}, c.prototype.compare = function(u, h, w, N, U) {
|
|
1828
1828
|
if (!c.isBuffer(u))
|
|
1829
1829
|
throw new TypeError("Argument must be a Buffer");
|
|
1830
|
-
if (h === void 0 && (h = 0), w === void 0 && (w = u ? u.length : 0),
|
|
1830
|
+
if (h === void 0 && (h = 0), w === void 0 && (w = u ? u.length : 0), N === void 0 && (N = 0), U === void 0 && (U = this.length), h < 0 || w > u.length || N < 0 || U > this.length)
|
|
1831
1831
|
throw new RangeError("out of range index");
|
|
1832
|
-
if (
|
|
1832
|
+
if (N >= U && h >= w)
|
|
1833
1833
|
return 0;
|
|
1834
|
-
if (
|
|
1834
|
+
if (N >= U)
|
|
1835
1835
|
return -1;
|
|
1836
1836
|
if (h >= w)
|
|
1837
1837
|
return 1;
|
|
1838
|
-
if (h >>>= 0, w >>>= 0,
|
|
1839
|
-
for (var ee = U -
|
|
1838
|
+
if (h >>>= 0, w >>>= 0, N >>>= 0, U >>>= 0, this === u) return 0;
|
|
1839
|
+
for (var ee = U - N, _e = w - h, De = Math.min(ee, _e), Te = this.slice(N, U), be = u.slice(h, w), Ee = 0; Ee < De; ++Ee)
|
|
1840
1840
|
if (Te[Ee] !== be[Ee]) {
|
|
1841
1841
|
ee = Te[Ee], _e = be[Ee];
|
|
1842
1842
|
break;
|
|
1843
1843
|
}
|
|
1844
1844
|
return ee < _e ? -1 : _e < ee ? 1 : 0;
|
|
1845
1845
|
};
|
|
1846
|
-
function Y(u, h, w,
|
|
1846
|
+
function Y(u, h, w, N, U) {
|
|
1847
1847
|
if (u.length === 0) return -1;
|
|
1848
|
-
if (typeof w == "string" ? (
|
|
1848
|
+
if (typeof w == "string" ? (N = w, w = 0) : w > 2147483647 ? w = 2147483647 : w < -2147483648 && (w = -2147483648), w = +w, isNaN(w) && (w = U ? 0 : u.length - 1), w < 0 && (w = u.length + w), w >= u.length) {
|
|
1849
1849
|
if (U) return -1;
|
|
1850
1850
|
w = u.length - 1;
|
|
1851
1851
|
} else if (w < 0)
|
|
1852
1852
|
if (U) w = 0;
|
|
1853
1853
|
else return -1;
|
|
1854
|
-
if (typeof h == "string" && (h = c.from(h,
|
|
1855
|
-
return h.length === 0 ? -1 : ce(u, h, w,
|
|
1854
|
+
if (typeof h == "string" && (h = c.from(h, N)), c.isBuffer(h))
|
|
1855
|
+
return h.length === 0 ? -1 : ce(u, h, w, N, U);
|
|
1856
1856
|
if (typeof h == "number")
|
|
1857
|
-
return h = h & 255, c.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? U ? Uint8Array.prototype.indexOf.call(u, h, w) : Uint8Array.prototype.lastIndexOf.call(u, h, w) : ce(u, [h], w,
|
|
1857
|
+
return h = h & 255, c.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? U ? Uint8Array.prototype.indexOf.call(u, h, w) : Uint8Array.prototype.lastIndexOf.call(u, h, w) : ce(u, [h], w, N, U);
|
|
1858
1858
|
throw new TypeError("val must be string, number or Buffer");
|
|
1859
1859
|
}
|
|
1860
|
-
function ce(u, h, w,
|
|
1860
|
+
function ce(u, h, w, N, U) {
|
|
1861
1861
|
var ee = 1, _e = u.length, De = h.length;
|
|
1862
|
-
if (
|
|
1862
|
+
if (N !== void 0 && (N = String(N).toLowerCase(), N === "ucs2" || N === "ucs-2" || N === "utf16le" || N === "utf-16le")) {
|
|
1863
1863
|
if (u.length < 2 || h.length < 2)
|
|
1864
1864
|
return -1;
|
|
1865
1865
|
ee = 2, _e /= 2, De /= 2, w /= 2;
|
|
@@ -1893,42 +1893,42 @@ function V2() {
|
|
|
1893
1893
|
}, c.prototype.lastIndexOf = function(u, h, w) {
|
|
1894
1894
|
return Y(this, u, h, w, !1);
|
|
1895
1895
|
};
|
|
1896
|
-
function J(u, h, w,
|
|
1896
|
+
function J(u, h, w, N) {
|
|
1897
1897
|
w = Number(w) || 0;
|
|
1898
1898
|
var U = u.length - w;
|
|
1899
|
-
|
|
1899
|
+
N ? (N = Number(N), N > U && (N = U)) : N = U;
|
|
1900
1900
|
var ee = h.length;
|
|
1901
1901
|
if (ee % 2 !== 0) throw new TypeError("Invalid hex string");
|
|
1902
|
-
|
|
1903
|
-
for (var _e = 0; _e <
|
|
1902
|
+
N > ee / 2 && (N = ee / 2);
|
|
1903
|
+
for (var _e = 0; _e < N; ++_e) {
|
|
1904
1904
|
var De = parseInt(h.substr(_e * 2, 2), 16);
|
|
1905
1905
|
if (isNaN(De)) return _e;
|
|
1906
1906
|
u[w + _e] = De;
|
|
1907
1907
|
}
|
|
1908
1908
|
return _e;
|
|
1909
1909
|
}
|
|
1910
|
-
function te(u, h, w,
|
|
1911
|
-
return ae(j(h, u.length - w), u, w,
|
|
1910
|
+
function te(u, h, w, N) {
|
|
1911
|
+
return ae(j(h, u.length - w), u, w, N);
|
|
1912
1912
|
}
|
|
1913
|
-
function oe(u, h, w,
|
|
1914
|
-
return ae(W(h), u, w,
|
|
1913
|
+
function oe(u, h, w, N) {
|
|
1914
|
+
return ae(W(h), u, w, N);
|
|
1915
1915
|
}
|
|
1916
|
-
function de(u, h, w,
|
|
1917
|
-
return oe(u, h, w,
|
|
1916
|
+
function de(u, h, w, N) {
|
|
1917
|
+
return oe(u, h, w, N);
|
|
1918
1918
|
}
|
|
1919
|
-
function ne(u, h, w,
|
|
1920
|
-
return ae(Z(h), u, w,
|
|
1919
|
+
function ne(u, h, w, N) {
|
|
1920
|
+
return ae(Z(h), u, w, N);
|
|
1921
1921
|
}
|
|
1922
|
-
function Se(u, h, w,
|
|
1923
|
-
return ae(F(h, u.length - w), u, w,
|
|
1922
|
+
function Se(u, h, w, N) {
|
|
1923
|
+
return ae(F(h, u.length - w), u, w, N);
|
|
1924
1924
|
}
|
|
1925
|
-
c.prototype.write = function(u, h, w,
|
|
1925
|
+
c.prototype.write = function(u, h, w, N) {
|
|
1926
1926
|
if (h === void 0)
|
|
1927
|
-
|
|
1927
|
+
N = "utf8", w = this.length, h = 0;
|
|
1928
1928
|
else if (w === void 0 && typeof h == "string")
|
|
1929
|
-
|
|
1929
|
+
N = h, w = this.length, h = 0;
|
|
1930
1930
|
else if (isFinite(h))
|
|
1931
|
-
h = h | 0, isFinite(w) ? (w = w | 0,
|
|
1931
|
+
h = h | 0, isFinite(w) ? (w = w | 0, N === void 0 && (N = "utf8")) : (N = w, w = void 0);
|
|
1932
1932
|
else
|
|
1933
1933
|
throw new Error(
|
|
1934
1934
|
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
@@ -1936,9 +1936,9 @@ function V2() {
|
|
|
1936
1936
|
var U = this.length - h;
|
|
1937
1937
|
if ((w === void 0 || w > U) && (w = U), u.length > 0 && (w < 0 || h < 0) || h > this.length)
|
|
1938
1938
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
1939
|
-
|
|
1939
|
+
N || (N = "utf8");
|
|
1940
1940
|
for (var ee = !1; ; )
|
|
1941
|
-
switch (
|
|
1941
|
+
switch (N) {
|
|
1942
1942
|
case "hex":
|
|
1943
1943
|
return J(this, u, h, w);
|
|
1944
1944
|
case "utf8":
|
|
@@ -1957,8 +1957,8 @@ function V2() {
|
|
|
1957
1957
|
case "utf-16le":
|
|
1958
1958
|
return Se(this, u, h, w);
|
|
1959
1959
|
default:
|
|
1960
|
-
if (ee) throw new TypeError("Unknown encoding: " +
|
|
1961
|
-
|
|
1960
|
+
if (ee) throw new TypeError("Unknown encoding: " + N);
|
|
1961
|
+
N = ("" + N).toLowerCase(), ee = !0;
|
|
1962
1962
|
}
|
|
1963
1963
|
}, c.prototype.toJSON = function() {
|
|
1964
1964
|
return {
|
|
@@ -1971,7 +1971,7 @@ function V2() {
|
|
|
1971
1971
|
}
|
|
1972
1972
|
function B(u, h, w) {
|
|
1973
1973
|
w = Math.min(u.length, w);
|
|
1974
|
-
for (var
|
|
1974
|
+
for (var N = [], U = h; U < w; ) {
|
|
1975
1975
|
var ee = u[U], _e = null, De = ee > 239 ? 4 : ee > 223 ? 3 : ee > 191 ? 2 : 1;
|
|
1976
1976
|
if (U + De <= w) {
|
|
1977
1977
|
var Te, be, Ee, Ie;
|
|
@@ -1989,61 +1989,61 @@ function V2() {
|
|
|
1989
1989
|
Te = u[U + 1], be = u[U + 2], Ee = u[U + 3], (Te & 192) === 128 && (be & 192) === 128 && (Ee & 192) === 128 && (Ie = (ee & 15) << 18 | (Te & 63) << 12 | (be & 63) << 6 | Ee & 63, Ie > 65535 && Ie < 1114112 && (_e = Ie));
|
|
1990
1990
|
}
|
|
1991
1991
|
}
|
|
1992
|
-
_e === null ? (_e = 65533, De = 1) : _e > 65535 && (_e -= 65536,
|
|
1992
|
+
_e === null ? (_e = 65533, De = 1) : _e > 65535 && (_e -= 65536, N.push(_e >>> 10 & 1023 | 55296), _e = 56320 | _e & 1023), N.push(_e), U += De;
|
|
1993
1993
|
}
|
|
1994
|
-
return A(
|
|
1994
|
+
return A(N);
|
|
1995
1995
|
}
|
|
1996
1996
|
var I = 4096;
|
|
1997
1997
|
function A(u) {
|
|
1998
1998
|
var h = u.length;
|
|
1999
1999
|
if (h <= I)
|
|
2000
2000
|
return String.fromCharCode.apply(String, u);
|
|
2001
|
-
for (var w = "",
|
|
2001
|
+
for (var w = "", N = 0; N < h; )
|
|
2002
2002
|
w += String.fromCharCode.apply(
|
|
2003
2003
|
String,
|
|
2004
|
-
u.slice(
|
|
2004
|
+
u.slice(N, N += I)
|
|
2005
2005
|
);
|
|
2006
2006
|
return w;
|
|
2007
2007
|
}
|
|
2008
2008
|
function v(u, h, w) {
|
|
2009
|
-
var
|
|
2009
|
+
var N = "";
|
|
2010
2010
|
w = Math.min(u.length, w);
|
|
2011
2011
|
for (var U = h; U < w; ++U)
|
|
2012
|
-
|
|
2013
|
-
return
|
|
2012
|
+
N += String.fromCharCode(u[U] & 127);
|
|
2013
|
+
return N;
|
|
2014
2014
|
}
|
|
2015
2015
|
function p(u, h, w) {
|
|
2016
|
-
var
|
|
2016
|
+
var N = "";
|
|
2017
2017
|
w = Math.min(u.length, w);
|
|
2018
2018
|
for (var U = h; U < w; ++U)
|
|
2019
|
-
|
|
2020
|
-
return
|
|
2019
|
+
N += String.fromCharCode(u[U]);
|
|
2020
|
+
return N;
|
|
2021
2021
|
}
|
|
2022
2022
|
function _(u, h, w) {
|
|
2023
|
-
var
|
|
2024
|
-
(!h || h < 0) && (h = 0), (!w || w < 0 || w >
|
|
2023
|
+
var N = u.length;
|
|
2024
|
+
(!h || h < 0) && (h = 0), (!w || w < 0 || w > N) && (w = N);
|
|
2025
2025
|
for (var U = "", ee = h; ee < w; ++ee)
|
|
2026
2026
|
U += we(u[ee]);
|
|
2027
2027
|
return U;
|
|
2028
2028
|
}
|
|
2029
2029
|
function d(u, h, w) {
|
|
2030
|
-
for (var
|
|
2031
|
-
U += String.fromCharCode(
|
|
2030
|
+
for (var N = u.slice(h, w), U = "", ee = 0; ee < N.length; ee += 2)
|
|
2031
|
+
U += String.fromCharCode(N[ee] + N[ee + 1] * 256);
|
|
2032
2032
|
return U;
|
|
2033
2033
|
}
|
|
2034
2034
|
c.prototype.slice = function(u, h) {
|
|
2035
2035
|
var w = this.length;
|
|
2036
2036
|
u = ~~u, h = h === void 0 ? w : ~~h, u < 0 ? (u += w, u < 0 && (u = 0)) : u > w && (u = w), h < 0 ? (h += w, h < 0 && (h = 0)) : h > w && (h = w), h < u && (h = u);
|
|
2037
|
-
var
|
|
2037
|
+
var N;
|
|
2038
2038
|
if (c.TYPED_ARRAY_SUPPORT)
|
|
2039
|
-
|
|
2039
|
+
N = this.subarray(u, h), N.__proto__ = c.prototype;
|
|
2040
2040
|
else {
|
|
2041
2041
|
var U = h - u;
|
|
2042
|
-
|
|
2042
|
+
N = new c(U, void 0);
|
|
2043
2043
|
for (var ee = 0; ee < U; ++ee)
|
|
2044
|
-
|
|
2044
|
+
N[ee] = this[ee + u];
|
|
2045
2045
|
}
|
|
2046
|
-
return
|
|
2046
|
+
return N;
|
|
2047
2047
|
};
|
|
2048
2048
|
function m(u, h, w) {
|
|
2049
2049
|
if (u % 1 !== 0 || u < 0) throw new RangeError("offset is not uint");
|
|
@@ -2051,14 +2051,14 @@ function V2() {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
c.prototype.readUIntLE = function(u, h, w) {
|
|
2053
2053
|
u = u | 0, h = h | 0, w || m(u, h, this.length);
|
|
2054
|
-
for (var
|
|
2055
|
-
|
|
2056
|
-
return
|
|
2054
|
+
for (var N = this[u], U = 1, ee = 0; ++ee < h && (U *= 256); )
|
|
2055
|
+
N += this[u + ee] * U;
|
|
2056
|
+
return N;
|
|
2057
2057
|
}, c.prototype.readUIntBE = function(u, h, w) {
|
|
2058
2058
|
u = u | 0, h = h | 0, w || m(u, h, this.length);
|
|
2059
|
-
for (var
|
|
2060
|
-
|
|
2061
|
-
return
|
|
2059
|
+
for (var N = this[u + --h], U = 1; h > 0 && (U *= 256); )
|
|
2060
|
+
N += this[u + --h] * U;
|
|
2061
|
+
return N;
|
|
2062
2062
|
}, c.prototype.readUInt8 = function(u, h) {
|
|
2063
2063
|
return h || m(u, 1, this.length), this[u];
|
|
2064
2064
|
}, c.prototype.readUInt16LE = function(u, h) {
|
|
@@ -2071,13 +2071,13 @@ function V2() {
|
|
|
2071
2071
|
return h || m(u, 4, this.length), this[u] * 16777216 + (this[u + 1] << 16 | this[u + 2] << 8 | this[u + 3]);
|
|
2072
2072
|
}, c.prototype.readIntLE = function(u, h, w) {
|
|
2073
2073
|
u = u | 0, h = h | 0, w || m(u, h, this.length);
|
|
2074
|
-
for (var
|
|
2075
|
-
|
|
2076
|
-
return U *= 128,
|
|
2074
|
+
for (var N = this[u], U = 1, ee = 0; ++ee < h && (U *= 256); )
|
|
2075
|
+
N += this[u + ee] * U;
|
|
2076
|
+
return U *= 128, N >= U && (N -= Math.pow(2, 8 * h)), N;
|
|
2077
2077
|
}, c.prototype.readIntBE = function(u, h, w) {
|
|
2078
2078
|
u = u | 0, h = h | 0, w || m(u, h, this.length);
|
|
2079
|
-
for (var
|
|
2080
|
-
ee += this[u + --
|
|
2079
|
+
for (var N = h, U = 1, ee = this[u + --N]; N > 0 && (U *= 256); )
|
|
2080
|
+
ee += this[u + --N] * U;
|
|
2081
2081
|
return U *= 128, ee >= U && (ee -= Math.pow(2, 8 * h)), ee;
|
|
2082
2082
|
}, c.prototype.readInt8 = function(u, h) {
|
|
2083
2083
|
return h || m(u, 1, this.length), this[u] & 128 ? (255 - this[u] + 1) * -1 : this[u];
|
|
@@ -2102,13 +2102,13 @@ function V2() {
|
|
|
2102
2102
|
}, c.prototype.readDoubleBE = function(u, h) {
|
|
2103
2103
|
return h || m(u, 8, this.length), r.read(this, u, !1, 52, 8);
|
|
2104
2104
|
};
|
|
2105
|
-
function D(u, h, w,
|
|
2105
|
+
function D(u, h, w, N, U, ee) {
|
|
2106
2106
|
if (!c.isBuffer(u)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
2107
2107
|
if (h > U || h < ee) throw new RangeError('"value" argument is out of bounds');
|
|
2108
|
-
if (w +
|
|
2108
|
+
if (w + N > u.length) throw new RangeError("Index out of range");
|
|
2109
2109
|
}
|
|
2110
|
-
c.prototype.writeUIntLE = function(u, h, w,
|
|
2111
|
-
if (u = +u, h = h | 0, w = w | 0, !
|
|
2110
|
+
c.prototype.writeUIntLE = function(u, h, w, N) {
|
|
2111
|
+
if (u = +u, h = h | 0, w = w | 0, !N) {
|
|
2112
2112
|
var U = Math.pow(2, 8 * w) - 1;
|
|
2113
2113
|
D(this, u, h, w, U, 0);
|
|
2114
2114
|
}
|
|
@@ -2116,8 +2116,8 @@ function V2() {
|
|
|
2116
2116
|
for (this[h] = u & 255; ++_e < w && (ee *= 256); )
|
|
2117
2117
|
this[h + _e] = u / ee & 255;
|
|
2118
2118
|
return h + w;
|
|
2119
|
-
}, c.prototype.writeUIntBE = function(u, h, w,
|
|
2120
|
-
if (u = +u, h = h | 0, w = w | 0, !
|
|
2119
|
+
}, c.prototype.writeUIntBE = function(u, h, w, N) {
|
|
2120
|
+
if (u = +u, h = h | 0, w = w | 0, !N) {
|
|
2121
2121
|
var U = Math.pow(2, 8 * w) - 1;
|
|
2122
2122
|
D(this, u, h, w, U, 0);
|
|
2123
2123
|
}
|
|
@@ -2128,27 +2128,27 @@ function V2() {
|
|
|
2128
2128
|
}, c.prototype.writeUInt8 = function(u, h, w) {
|
|
2129
2129
|
return u = +u, h = h | 0, w || D(this, u, h, 1, 255, 0), c.TYPED_ARRAY_SUPPORT || (u = Math.floor(u)), this[h] = u & 255, h + 1;
|
|
2130
2130
|
};
|
|
2131
|
-
function q(u, h, w,
|
|
2131
|
+
function q(u, h, w, N) {
|
|
2132
2132
|
h < 0 && (h = 65535 + h + 1);
|
|
2133
2133
|
for (var U = 0, ee = Math.min(u.length - w, 2); U < ee; ++U)
|
|
2134
|
-
u[w + U] = (h & 255 << 8 * (
|
|
2134
|
+
u[w + U] = (h & 255 << 8 * (N ? U : 1 - U)) >>> (N ? U : 1 - U) * 8;
|
|
2135
2135
|
}
|
|
2136
2136
|
c.prototype.writeUInt16LE = function(u, h, w) {
|
|
2137
2137
|
return u = +u, h = h | 0, w || D(this, u, h, 2, 65535, 0), c.TYPED_ARRAY_SUPPORT ? (this[h] = u & 255, this[h + 1] = u >>> 8) : q(this, u, h, !0), h + 2;
|
|
2138
2138
|
}, c.prototype.writeUInt16BE = function(u, h, w) {
|
|
2139
2139
|
return u = +u, h = h | 0, w || D(this, u, h, 2, 65535, 0), c.TYPED_ARRAY_SUPPORT ? (this[h] = u >>> 8, this[h + 1] = u & 255) : q(this, u, h, !1), h + 2;
|
|
2140
2140
|
};
|
|
2141
|
-
function V(u, h, w,
|
|
2141
|
+
function V(u, h, w, N) {
|
|
2142
2142
|
h < 0 && (h = 4294967295 + h + 1);
|
|
2143
2143
|
for (var U = 0, ee = Math.min(u.length - w, 4); U < ee; ++U)
|
|
2144
|
-
u[w + U] = h >>> (
|
|
2144
|
+
u[w + U] = h >>> (N ? U : 3 - U) * 8 & 255;
|
|
2145
2145
|
}
|
|
2146
2146
|
c.prototype.writeUInt32LE = function(u, h, w) {
|
|
2147
2147
|
return u = +u, h = h | 0, w || D(this, u, h, 4, 4294967295, 0), c.TYPED_ARRAY_SUPPORT ? (this[h + 3] = u >>> 24, this[h + 2] = u >>> 16, this[h + 1] = u >>> 8, this[h] = u & 255) : V(this, u, h, !0), h + 4;
|
|
2148
2148
|
}, c.prototype.writeUInt32BE = function(u, h, w) {
|
|
2149
2149
|
return u = +u, h = h | 0, w || D(this, u, h, 4, 4294967295, 0), c.TYPED_ARRAY_SUPPORT ? (this[h] = u >>> 24, this[h + 1] = u >>> 16, this[h + 2] = u >>> 8, this[h + 3] = u & 255) : V(this, u, h, !1), h + 4;
|
|
2150
|
-
}, c.prototype.writeIntLE = function(u, h, w,
|
|
2151
|
-
if (u = +u, h = h | 0, !
|
|
2150
|
+
}, c.prototype.writeIntLE = function(u, h, w, N) {
|
|
2151
|
+
if (u = +u, h = h | 0, !N) {
|
|
2152
2152
|
var U = Math.pow(2, 8 * w - 1);
|
|
2153
2153
|
D(this, u, h, w, U - 1, -U);
|
|
2154
2154
|
}
|
|
@@ -2156,8 +2156,8 @@ function V2() {
|
|
|
2156
2156
|
for (this[h] = u & 255; ++ee < w && (_e *= 256); )
|
|
2157
2157
|
u < 0 && De === 0 && this[h + ee - 1] !== 0 && (De = 1), this[h + ee] = (u / _e >> 0) - De & 255;
|
|
2158
2158
|
return h + w;
|
|
2159
|
-
}, c.prototype.writeIntBE = function(u, h, w,
|
|
2160
|
-
if (u = +u, h = h | 0, !
|
|
2159
|
+
}, c.prototype.writeIntBE = function(u, h, w, N) {
|
|
2160
|
+
if (u = +u, h = h | 0, !N) {
|
|
2161
2161
|
var U = Math.pow(2, 8 * w - 1);
|
|
2162
2162
|
D(this, u, h, w, U - 1, -U);
|
|
2163
2163
|
}
|
|
@@ -2176,34 +2176,34 @@ function V2() {
|
|
|
2176
2176
|
}, c.prototype.writeInt32BE = function(u, h, w) {
|
|
2177
2177
|
return u = +u, h = h | 0, w || D(this, u, h, 4, 2147483647, -2147483648), u < 0 && (u = 4294967295 + u + 1), c.TYPED_ARRAY_SUPPORT ? (this[h] = u >>> 24, this[h + 1] = u >>> 16, this[h + 2] = u >>> 8, this[h + 3] = u & 255) : V(this, u, h, !1), h + 4;
|
|
2178
2178
|
};
|
|
2179
|
-
function ue(u, h, w,
|
|
2180
|
-
if (w +
|
|
2179
|
+
function ue(u, h, w, N, U, ee) {
|
|
2180
|
+
if (w + N > u.length) throw new RangeError("Index out of range");
|
|
2181
2181
|
if (w < 0) throw new RangeError("Index out of range");
|
|
2182
2182
|
}
|
|
2183
|
-
function he(u, h, w,
|
|
2184
|
-
return U || ue(u, h, w, 4), r.write(u, h, w,
|
|
2183
|
+
function he(u, h, w, N, U) {
|
|
2184
|
+
return U || ue(u, h, w, 4), r.write(u, h, w, N, 23, 4), w + 4;
|
|
2185
2185
|
}
|
|
2186
2186
|
c.prototype.writeFloatLE = function(u, h, w) {
|
|
2187
2187
|
return he(this, u, h, !0, w);
|
|
2188
2188
|
}, c.prototype.writeFloatBE = function(u, h, w) {
|
|
2189
2189
|
return he(this, u, h, !1, w);
|
|
2190
2190
|
};
|
|
2191
|
-
function me(u, h, w,
|
|
2192
|
-
return U || ue(u, h, w, 8), r.write(u, h, w,
|
|
2191
|
+
function me(u, h, w, N, U) {
|
|
2192
|
+
return U || ue(u, h, w, 8), r.write(u, h, w, N, 52, 8), w + 8;
|
|
2193
2193
|
}
|
|
2194
2194
|
c.prototype.writeDoubleLE = function(u, h, w) {
|
|
2195
2195
|
return me(this, u, h, !0, w);
|
|
2196
2196
|
}, c.prototype.writeDoubleBE = function(u, h, w) {
|
|
2197
2197
|
return me(this, u, h, !1, w);
|
|
2198
|
-
}, c.prototype.copy = function(u, h, w,
|
|
2199
|
-
if (w || (w = 0), !
|
|
2198
|
+
}, c.prototype.copy = function(u, h, w, N) {
|
|
2199
|
+
if (w || (w = 0), !N && N !== 0 && (N = this.length), h >= u.length && (h = u.length), h || (h = 0), N > 0 && N < w && (N = w), N === w || u.length === 0 || this.length === 0) return 0;
|
|
2200
2200
|
if (h < 0)
|
|
2201
2201
|
throw new RangeError("targetStart out of bounds");
|
|
2202
2202
|
if (w < 0 || w >= this.length) throw new RangeError("sourceStart out of bounds");
|
|
2203
|
-
if (
|
|
2204
|
-
|
|
2205
|
-
var U =
|
|
2206
|
-
if (this === u && w < h && h <
|
|
2203
|
+
if (N < 0) throw new RangeError("sourceEnd out of bounds");
|
|
2204
|
+
N > this.length && (N = this.length), u.length - h < N - w && (N = u.length - h + w);
|
|
2205
|
+
var U = N - w, ee;
|
|
2206
|
+
if (this === u && w < h && h < N)
|
|
2207
2207
|
for (ee = U - 1; ee >= 0; --ee)
|
|
2208
2208
|
u[ee + h] = this[ee + w];
|
|
2209
2209
|
else if (U < 1e3 || !c.TYPED_ARRAY_SUPPORT)
|
|
@@ -2216,16 +2216,16 @@ function V2() {
|
|
|
2216
2216
|
h
|
|
2217
2217
|
);
|
|
2218
2218
|
return U;
|
|
2219
|
-
}, c.prototype.fill = function(u, h, w,
|
|
2219
|
+
}, c.prototype.fill = function(u, h, w, N) {
|
|
2220
2220
|
if (typeof u == "string") {
|
|
2221
|
-
if (typeof h == "string" ? (
|
|
2221
|
+
if (typeof h == "string" ? (N = h, h = 0, w = this.length) : typeof w == "string" && (N = w, w = this.length), u.length === 1) {
|
|
2222
2222
|
var U = u.charCodeAt(0);
|
|
2223
2223
|
U < 256 && (u = U);
|
|
2224
2224
|
}
|
|
2225
|
-
if (
|
|
2225
|
+
if (N !== void 0 && typeof N != "string")
|
|
2226
2226
|
throw new TypeError("encoding must be a string");
|
|
2227
|
-
if (typeof
|
|
2228
|
-
throw new TypeError("Unknown encoding: " +
|
|
2227
|
+
if (typeof N == "string" && !c.isEncoding(N))
|
|
2228
|
+
throw new TypeError("Unknown encoding: " + N);
|
|
2229
2229
|
} else typeof u == "number" && (u = u & 255);
|
|
2230
2230
|
if (h < 0 || this.length < h || this.length < w)
|
|
2231
2231
|
throw new RangeError("Out of range index");
|
|
@@ -2237,7 +2237,7 @@ function V2() {
|
|
|
2237
2237
|
for (ee = h; ee < w; ++ee)
|
|
2238
2238
|
this[ee] = u;
|
|
2239
2239
|
else {
|
|
2240
|
-
var _e = c.isBuffer(u) ? u : j(new c(u,
|
|
2240
|
+
var _e = c.isBuffer(u) ? u : j(new c(u, N).toString()), De = _e.length;
|
|
2241
2241
|
for (ee = 0; ee < w - h; ++ee)
|
|
2242
2242
|
this[ee + h] = _e[ee % De];
|
|
2243
2243
|
}
|
|
@@ -2258,13 +2258,13 @@ function V2() {
|
|
|
2258
2258
|
}
|
|
2259
2259
|
function j(u, h) {
|
|
2260
2260
|
h = h || 1 / 0;
|
|
2261
|
-
for (var w,
|
|
2261
|
+
for (var w, N = u.length, U = null, ee = [], _e = 0; _e < N; ++_e) {
|
|
2262
2262
|
if (w = u.charCodeAt(_e), w > 55295 && w < 57344) {
|
|
2263
2263
|
if (!U) {
|
|
2264
2264
|
if (w > 56319) {
|
|
2265
2265
|
(h -= 3) > -1 && ee.push(239, 191, 189);
|
|
2266
2266
|
continue;
|
|
2267
|
-
} else if (_e + 1 ===
|
|
2267
|
+
} else if (_e + 1 === N) {
|
|
2268
2268
|
(h -= 3) > -1 && ee.push(239, 191, 189);
|
|
2269
2269
|
continue;
|
|
2270
2270
|
}
|
|
@@ -2312,15 +2312,15 @@ function V2() {
|
|
|
2312
2312
|
return h;
|
|
2313
2313
|
}
|
|
2314
2314
|
function F(u, h) {
|
|
2315
|
-
for (var w,
|
|
2316
|
-
w = u.charCodeAt(_e),
|
|
2315
|
+
for (var w, N, U, ee = [], _e = 0; _e < u.length && !((h -= 2) < 0); ++_e)
|
|
2316
|
+
w = u.charCodeAt(_e), N = w >> 8, U = w % 256, ee.push(U), ee.push(N);
|
|
2317
2317
|
return ee;
|
|
2318
2318
|
}
|
|
2319
2319
|
function Z(u) {
|
|
2320
2320
|
return t.toByteArray(le(u));
|
|
2321
2321
|
}
|
|
2322
|
-
function ae(u, h, w,
|
|
2323
|
-
for (var U = 0; U <
|
|
2322
|
+
function ae(u, h, w, N) {
|
|
2323
|
+
for (var U = 0; U < N && !(U + w >= h.length || U >= u.length); ++U)
|
|
2324
2324
|
h[U + w] = u[U];
|
|
2325
2325
|
return U;
|
|
2326
2326
|
}
|
|
@@ -2765,10 +2765,10 @@ function gw() {
|
|
|
2765
2765
|
if (M < 16)
|
|
2766
2766
|
this.temp[M] = (l[M * 4] & 255) << 24 | (l[M * 4 + 1] & 255) << 16 | (l[M * 4 + 2] & 255) << 8 | l[M * 4 + 3] & 255;
|
|
2767
2767
|
else {
|
|
2768
|
-
var T = this.temp[M - 2],
|
|
2768
|
+
var T = this.temp[M - 2], P = (T >>> 17 | T << 15) ^ (T >>> 19 | T << 13) ^ T >>> 10;
|
|
2769
2769
|
T = this.temp[M - 15];
|
|
2770
2770
|
var K = (T >>> 7 | T << 25) ^ (T >>> 18 | T << 14) ^ T >>> 3;
|
|
2771
|
-
this.temp[M] = (
|
|
2771
|
+
this.temp[M] = (P + this.temp[M - 7] | 0) + (K + this.temp[M - 16] | 0);
|
|
2772
2772
|
}
|
|
2773
2773
|
var X = (((O >>> 6 | O << 26) ^ (O >>> 11 | O << 21) ^ (O >>> 25 | O << 7)) + (O & L ^ ~O & k) | 0) + (E + (i.KEY[M] + this.temp[M] | 0) | 0) | 0, Q = ((f >>> 2 | f << 30) ^ (f >>> 13 | f << 19) ^ (f >>> 22 | f << 10)) + (f & c ^ f & b ^ c & b) | 0;
|
|
2774
2774
|
E = k, k = L, L = O, O = C + X | 0, C = b, b = c, c = f, f = X + Q | 0;
|
|
@@ -3146,12 +3146,12 @@ function Xw(i, t, r) {
|
|
|
3146
3146
|
b > 0 ? (s.lShiftTo(b, g), l.lShiftTo(b, r)) : (s.copyTo(g), l.copyTo(r));
|
|
3147
3147
|
var C = g.t, O = g[C - 1];
|
|
3148
3148
|
if (O != 0) {
|
|
3149
|
-
var L = O * (1 << this.F1) + (C > 1 ? g[C - 2] >> this.F2 : 0), k = this.FV / L, E = (1 << this.F1) / L, M = 1 << this.F2, T = r.t,
|
|
3150
|
-
for (g.dlShiftTo(
|
|
3151
|
-
for (; --
|
|
3149
|
+
var L = O * (1 << this.F1) + (C > 1 ? g[C - 2] >> this.F2 : 0), k = this.FV / L, E = (1 << this.F1) / L, M = 1 << this.F2, T = r.t, P = T - C, K = t ?? Ut();
|
|
3150
|
+
for (g.dlShiftTo(P, K), r.compareTo(K) >= 0 && (r[r.t++] = 1, r.subTo(K, r)), je.ONE.dlShiftTo(C, K), K.subTo(g, g); g.t < C; ) g[g.t++] = 0;
|
|
3151
|
+
for (; --P >= 0; ) {
|
|
3152
3152
|
var X = r[--T] == O ? this.DM : Math.floor(r[T] * k + (r[T - 1] + M) * E);
|
|
3153
|
-
if ((r[T] += g.am(0, X, r,
|
|
3154
|
-
for (g.dlShiftTo(
|
|
3153
|
+
if ((r[T] += g.am(0, X, r, P, 0, C)) < X)
|
|
3154
|
+
for (g.dlShiftTo(P, K), r.subTo(K, r); r[T] < --X; ) r.subTo(K, r);
|
|
3155
3155
|
}
|
|
3156
3156
|
t != null && (r.drShiftTo(C, t), f != c && je.ZERO.subTo(t, t)), r.t = C, r.clamp(), b > 0 && r.rShiftTo(b, r), f < 0 && je.ZERO.subTo(r, r);
|
|
3157
3157
|
}
|
|
@@ -3243,7 +3243,7 @@ function d_(i, t, r) {
|
|
|
3243
3243
|
for (f.sqrTo(c[1], L); b <= O; )
|
|
3244
3244
|
c[b] = Ut(), f.mulTo(L, c[b - 2], c[b]), b += 2;
|
|
3245
3245
|
}
|
|
3246
|
-
var k = i.t - 1, E, M = !0, T = Ut(),
|
|
3246
|
+
var k = i.t - 1, E, M = !0, T = Ut(), P;
|
|
3247
3247
|
for (s = Dl(i[k]) - 1; k >= 0; ) {
|
|
3248
3248
|
for (s >= C ? E = i[k] >> s - C & O : (E = (i[k] & (1 << s + 1) - 1) << C - s, k > 0 && (E |= i[k - 1] >> this.DB + s - C)), b = l; (E & 1) == 0; )
|
|
3249
3249
|
E >>= 1, --b;
|
|
@@ -3252,10 +3252,10 @@ function d_(i, t, r) {
|
|
|
3252
3252
|
else {
|
|
3253
3253
|
for (; b > 1; )
|
|
3254
3254
|
f.sqrTo(g, T), f.sqrTo(T, g), b -= 2;
|
|
3255
|
-
b > 0 ? f.sqrTo(g, T) : (
|
|
3255
|
+
b > 0 ? f.sqrTo(g, T) : (P = g, g = T, T = P), f.mulTo(T, c[E], g);
|
|
3256
3256
|
}
|
|
3257
3257
|
for (; k >= 0 && (i[k] & 1 << s) == 0; )
|
|
3258
|
-
f.sqrTo(g, T),
|
|
3258
|
+
f.sqrTo(g, T), P = g, g = T, T = P, --s < 0 && (s = this.DB - 1, --k);
|
|
3259
3259
|
}
|
|
3260
3260
|
var K = f.revert(g);
|
|
3261
3261
|
return r(null, K), K;
|
|
@@ -3385,13 +3385,13 @@ function m_() {
|
|
|
3385
3385
|
var M = k[E].split("="), T = M.slice(1).join("=");
|
|
3386
3386
|
!O && T.charAt(0) === '"' && (T = T.slice(1, -1));
|
|
3387
3387
|
try {
|
|
3388
|
-
var
|
|
3389
|
-
if (T = (g.read || g)(T,
|
|
3388
|
+
var P = s(M[0]);
|
|
3389
|
+
if (T = (g.read || g)(T, P) || s(T), O)
|
|
3390
3390
|
try {
|
|
3391
3391
|
T = JSON.parse(T);
|
|
3392
3392
|
} catch {
|
|
3393
3393
|
}
|
|
3394
|
-
if (L[
|
|
3394
|
+
if (L[P] = T, C === P)
|
|
3395
3395
|
break;
|
|
3396
3396
|
} catch {
|
|
3397
3397
|
}
|
|
@@ -3534,8 +3534,8 @@ function L_() {
|
|
|
3534
3534
|
}, le = function(j, W) {
|
|
3535
3535
|
for (var F = -1, Z = _ - 1, ae = 7, Ae = 0, u = X.getMaskFunction(W), h = _ - 1; h > 0; h -= 2) for (h == 6 && (h -= 1); ; ) {
|
|
3536
3536
|
for (var w = 0; w < 2; w += 1) if (p[Z][h - w] == null) {
|
|
3537
|
-
var
|
|
3538
|
-
Ae < j.length && (
|
|
3537
|
+
var N = !1;
|
|
3538
|
+
Ae < j.length && (N = (j[Ae] >>> ae & 1) == 1), u(Z, h - w) && (N = !N), p[Z][h - w] = N, (ae -= 1) == -1 && (Ae += 1, ae = 7);
|
|
3539
3539
|
}
|
|
3540
3540
|
if ((Z += F) < 0 || _ <= Z) {
|
|
3541
3541
|
Z -= F, F = -F;
|
|
@@ -3552,9 +3552,9 @@ function L_() {
|
|
|
3552
3552
|
if (ae.getLengthInBits() > 8 * h) throw "code length overflow. (" + ae.getLengthInBits() + ">" + 8 * h + ")";
|
|
3553
3553
|
for (ae.getLengthInBits() + 4 <= 8 * h && ae.put(0, 4); ae.getLengthInBits() % 8 != 0; ) ae.putBit(!1);
|
|
3554
3554
|
for (; !(ae.getLengthInBits() >= 8 * h || (ae.put(236, 8), ae.getLengthInBits() >= 8 * h)); ) ae.put(17, 8);
|
|
3555
|
-
return function(w,
|
|
3556
|
-
for (var U = 0, ee = 0, _e = 0, De = new Array(
|
|
3557
|
-
var Ee =
|
|
3555
|
+
return function(w, N) {
|
|
3556
|
+
for (var U = 0, ee = 0, _e = 0, De = new Array(N.length), Te = new Array(N.length), be = 0; be < N.length; be += 1) {
|
|
3557
|
+
var Ee = N[be].dataCount, Ie = N[be].totalCount - Ee;
|
|
3558
3558
|
ee = Math.max(ee, Ee), _e = Math.max(_e, Ie), De[be] = new Array(Ee);
|
|
3559
3559
|
for (var Me = 0; Me < De[be].length; Me += 1) De[be][Me] = 255 & w.getBuffer()[Me + U];
|
|
3560
3560
|
U += Ee;
|
|
@@ -3565,10 +3565,10 @@ function L_() {
|
|
|
3565
3565
|
}
|
|
3566
3566
|
}
|
|
3567
3567
|
var ft = 0;
|
|
3568
|
-
for (Me = 0; Me <
|
|
3568
|
+
for (Me = 0; Me < N.length; Me += 1) ft += N[Me].totalCount;
|
|
3569
3569
|
var bt = new Array(ft), at = 0;
|
|
3570
|
-
for (Me = 0; Me < ee; Me += 1) for (be = 0; be <
|
|
3571
|
-
for (Me = 0; Me < _e; Me += 1) for (be = 0; be <
|
|
3570
|
+
for (Me = 0; Me < ee; Me += 1) for (be = 0; be < N.length; be += 1) Me < De[be].length && (bt[at] = De[be][Me], at += 1);
|
|
3571
|
+
for (Me = 0; Me < _e; Me += 1) for (be = 0; be < N.length; be += 1) Me < Te[be].length && (bt[at] = Te[be][Me], at += 1);
|
|
3572
3572
|
return bt;
|
|
3573
3573
|
}(ae, Z);
|
|
3574
3574
|
};
|
|
@@ -3612,8 +3612,8 @@ function L_() {
|
|
|
3612
3612
|
q(!1, function() {
|
|
3613
3613
|
for (var u = 0, h = 0, w = 0; w < 8; w += 1) {
|
|
3614
3614
|
q(!0, w);
|
|
3615
|
-
var
|
|
3616
|
-
(w == 0 || u >
|
|
3615
|
+
var N = X.getLostPoint(D);
|
|
3616
|
+
(w == 0 || u > N) && (u = N, h = w);
|
|
3617
3617
|
}
|
|
3618
3618
|
return h;
|
|
3619
3619
|
}());
|
|
@@ -3630,8 +3630,8 @@ function L_() {
|
|
|
3630
3630
|
}, D.createSvgTag = function(j, W, F, Z) {
|
|
3631
3631
|
var ae = {};
|
|
3632
3632
|
typeof arguments[0] == "object" && (j = (ae = arguments[0]).cellSize, W = ae.margin, F = ae.alt, Z = ae.title), j = j || 2, W = W === void 0 ? 4 * j : W, (F = typeof F == "string" ? { text: F } : F || {}).text = F.text || null, F.id = F.text ? F.id || "qrcode-description" : null, (Z = typeof Z == "string" ? { text: Z } : Z || {}).text = Z.text || null, Z.id = Z.text ? Z.id || "qrcode-title" : null;
|
|
3633
|
-
var Ae, u, h, w,
|
|
3634
|
-
for (w = "l" + j + ",0 0," + j + " -" + j + ",0 0,-" + j + "z ", U += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', U += ae.scalable ? "" : ' width="' +
|
|
3633
|
+
var Ae, u, h, w, N = D.getModuleCount() * j + 2 * W, U = "";
|
|
3634
|
+
for (w = "l" + j + ",0 0," + j + " -" + j + ",0 0,-" + j + "z ", U += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', U += ae.scalable ? "" : ' width="' + N + 'px" height="' + N + 'px"', U += ' viewBox="0 0 ' + N + " " + N + '" ', U += ' preserveAspectRatio="xMinYMin meet"', U += Z.text || F.text ? ' role="img" aria-labelledby="' + we([Z.id, F.id].join(" ").trim()) + '"' : "", U += ">", U += Z.text ? '<title id="' + we(Z.id) + '">' + we(Z.text) + "</title>" : "", U += F.text ? '<description id="' + we(F.id) + '">' + we(F.text) + "</description>" : "", U += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', U += '<path d="', u = 0; u < D.getModuleCount(); u += 1) for (h = u * j + W, Ae = 0; Ae < D.getModuleCount(); Ae += 1) D.isDark(u, Ae) && (U += "M" + (Ae * j + W) + "," + h + w);
|
|
3635
3635
|
return (U += '" stroke="transparent" fill="black"/>') + "</svg>";
|
|
3636
3636
|
}, D.createDataURL = function(j, W) {
|
|
3637
3637
|
j = j || 2, W = W === void 0 ? 4 * j : W;
|
|
@@ -3682,9 +3682,9 @@ function L_() {
|
|
|
3682
3682
|
return Ge % 2 && De > 0 ? at.substring(0, at.length - Ge - 1) + Array(Ge + 1).join("▀") : at.substring(0, at.length - 1);
|
|
3683
3683
|
}(W);
|
|
3684
3684
|
j -= 1, W = W === void 0 ? 2 * j : W;
|
|
3685
|
-
var F, Z, ae, Ae, u = D.getModuleCount() * j + 2 * W, h = W, w = u - W,
|
|
3685
|
+
var F, Z, ae, Ae, u = D.getModuleCount() * j + 2 * W, h = W, w = u - W, N = Array(j + 1).join("██"), U = Array(j + 1).join(" "), ee = "", _e = "";
|
|
3686
3686
|
for (F = 0; F < u; F += 1) {
|
|
3687
|
-
for (ae = Math.floor((F - h) / j), _e = "", Z = 0; Z < u; Z += 1) Ae = 1, h <= Z && Z < w && h <= F && F < w && D.isDark(ae, Math.floor((Z - h) / j)) && (Ae = 0), _e += Ae ?
|
|
3687
|
+
for (ae = Math.floor((F - h) / j), _e = "", Z = 0; Z < u; Z += 1) Ae = 1, h <= Z && Z < w && h <= F && F < w && D.isDark(ae, Math.floor((Z - h) / j)) && (Ae = 0), _e += Ae ? N : U;
|
|
3688
3688
|
for (ae = 0; ae < j; ae += 1) ee += _e + `
|
|
3689
3689
|
`;
|
|
3690
3690
|
}
|
|
@@ -3727,14 +3727,14 @@ function L_() {
|
|
|
3727
3727
|
return _;
|
|
3728
3728
|
};
|
|
3729
3729
|
};
|
|
3730
|
-
var k, E, M, T,
|
|
3730
|
+
var k, E, M, T, P, K = { L: 1, M: 0, Q: 3, H: 2 }, X = (k = [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]], E = 1335, M = 7973, P = function(B) {
|
|
3731
3731
|
for (var I = 0; B != 0; ) I += 1, B >>>= 1;
|
|
3732
3732
|
return I;
|
|
3733
3733
|
}, (T = {}).getBCHTypeInfo = function(B) {
|
|
3734
|
-
for (var I = B << 10;
|
|
3734
|
+
for (var I = B << 10; P(I) - P(E) >= 0; ) I ^= E << P(I) - P(E);
|
|
3735
3735
|
return 21522 ^ (B << 10 | I);
|
|
3736
3736
|
}, T.getBCHTypeNumber = function(B) {
|
|
3737
|
-
for (var I = B << 12;
|
|
3737
|
+
for (var I = B << 12; P(I) - P(M) >= 0; ) I ^= M << P(I) - P(M);
|
|
3738
3738
|
return B << 12 | I;
|
|
3739
3739
|
}, T.getPatternPosition = function(B) {
|
|
3740
3740
|
return k[B - 1];
|
|
@@ -4042,7 +4042,7 @@ function L_() {
|
|
|
4042
4042
|
} }, xe = function(j) {
|
|
4043
4043
|
for (var W = 1 << j, F = 1 + (1 << j), Z = j + 1, ae = we(), Ae = 0; Ae < W; Ae += 1) ae.add(String.fromCharCode(Ae));
|
|
4044
4044
|
ae.add(String.fromCharCode(W)), ae.add(String.fromCharCode(F));
|
|
4045
|
-
var u, h, w,
|
|
4045
|
+
var u, h, w, N = ne(), U = (u = N, h = 0, w = 0, { write: function(Te, be) {
|
|
4046
4046
|
if (Te >>> be) throw "length over";
|
|
4047
4047
|
for (; h + be >= 8; ) u.writeByte(255 & (Te << h | w)), be -= 8 - h, Te >>>= 8 - h, w = 0, h = 0;
|
|
4048
4048
|
w |= Te << h, h += be;
|
|
@@ -4055,7 +4055,7 @@ function L_() {
|
|
|
4055
4055
|
var De = String.fromCharCode(re[ee]);
|
|
4056
4056
|
ee += 1, ae.contains(_e + De) ? _e += De : (U.write(ae.indexOf(_e), Z), ae.size() < 4095 && (ae.size() == 1 << Z && (Z += 1), ae.add(_e + De)), _e = De);
|
|
4057
4057
|
}
|
|
4058
|
-
return U.write(ae.indexOf(_e), Z), U.write(F, Z), U.flush(),
|
|
4058
|
+
return U.write(ae.indexOf(_e), Z), U.write(F, Z), U.flush(), N.toByteArray();
|
|
4059
4059
|
}, we = function() {
|
|
4060
4060
|
var j = {}, W = 0, F = { add: function(Z) {
|
|
4061
4061
|
if (F.contains(Z)) throw "dup key:" + Z;
|
|
@@ -4305,7 +4305,7 @@ function L_() {
|
|
|
4305
4305
|
}
|
|
4306
4306
|
}
|
|
4307
4307
|
const M = { dot: "dot", square: "square" }, T = Object.values(M);
|
|
4308
|
-
class
|
|
4308
|
+
class P {
|
|
4309
4309
|
constructor({ svg: v, type: p, window: _ }) {
|
|
4310
4310
|
this._svg = v, this._type = p, this._window = _;
|
|
4311
4311
|
}
|
|
@@ -4407,7 +4407,7 @@ function L_() {
|
|
|
4407
4407
|
if (!v) throw "Element code is not defined";
|
|
4408
4408
|
const _ = this._qr.getModuleCount(), d = Math.min(p.width, p.height) - 2 * p.margin, m = p.shape === K ? d / Math.sqrt(2) : d, D = this._roundSize(m / _), q = 7 * D, V = 3 * D, ue = this._roundSize((p.width - _ * D) / 2), he = this._roundSize((p.height - _ * D) / 2);
|
|
4409
4409
|
[[0, 0, 0], [1, 0, Math.PI / 2], [0, 1, -Math.PI / 2]].forEach(([me, re, le]) => {
|
|
4410
|
-
var xe, we, j, W, F, Z, ae, Ae, u, h, w,
|
|
4410
|
+
var xe, we, j, W, F, Z, ae, Ae, u, h, w, N, U, ee;
|
|
4411
4411
|
const _e = ue + me * D * (_ - 7), De = he + re * D * (_ - 7);
|
|
4412
4412
|
let Te = this._dotsClipPath, be = this._dotsClipPath;
|
|
4413
4413
|
if ((!((xe = p.cornersSquareOptions) === null || xe === void 0) && xe.gradient || !((we = p.cornersSquareOptions) === null || we === void 0) && we.color) && (Te = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), Te.setAttribute("id", `clip-path-corners-square-color-${me}-${re}-${this._instanceId}`), this._defs.appendChild(Te), this._cornersSquareClipPath = this._cornersDotClipPath = be = Te, this._createColor({ options: (j = p.cornersSquareOptions) === null || j === void 0 ? void 0 : j.gradient, color: (W = p.cornersSquareOptions) === null || W === void 0 ? void 0 : W.color, additionalRotation: le, x: _e, y: De, height: q, width: q, name: `corners-square-color-${me}-${re}-${this._instanceId}` })), ((F = p.cornersSquareOptions) === null || F === void 0 ? void 0 : F.type) && k.includes(p.cornersSquareOptions.type)) {
|
|
@@ -4420,8 +4420,8 @@ function L_() {
|
|
|
4420
4420
|
return !!(!((Xe = X[Ie + Ye]) === null || Xe === void 0) && Xe[Me + Ge]);
|
|
4421
4421
|
}), Ee._element && Te && Te.appendChild(Ee._element));
|
|
4422
4422
|
}
|
|
4423
|
-
if ((!((Ae = p.cornersDotOptions) === null || Ae === void 0) && Ae.gradient || !((u = p.cornersDotOptions) === null || u === void 0) && u.color) && (be = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), be.setAttribute("id", `clip-path-corners-dot-color-${me}-${re}-${this._instanceId}`), this._defs.appendChild(be), this._cornersDotClipPath = be, this._createColor({ options: (h = p.cornersDotOptions) === null || h === void 0 ? void 0 : h.gradient, color: (w = p.cornersDotOptions) === null || w === void 0 ? void 0 : w.color, additionalRotation: le, x: _e + 2 * D, y: De + 2 * D, height: V, width: V, name: `corners-dot-color-${me}-${re}-${this._instanceId}` })), ((
|
|
4424
|
-
const Ee = new
|
|
4423
|
+
if ((!((Ae = p.cornersDotOptions) === null || Ae === void 0) && Ae.gradient || !((u = p.cornersDotOptions) === null || u === void 0) && u.color) && (be = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), be.setAttribute("id", `clip-path-corners-dot-color-${me}-${re}-${this._instanceId}`), this._defs.appendChild(be), this._cornersDotClipPath = be, this._createColor({ options: (h = p.cornersDotOptions) === null || h === void 0 ? void 0 : h.gradient, color: (w = p.cornersDotOptions) === null || w === void 0 ? void 0 : w.color, additionalRotation: le, x: _e + 2 * D, y: De + 2 * D, height: V, width: V, name: `corners-dot-color-${me}-${re}-${this._instanceId}` })), ((N = p.cornersDotOptions) === null || N === void 0 ? void 0 : N.type) && T.includes(p.cornersDotOptions.type)) {
|
|
4424
|
+
const Ee = new P({ svg: this._element, type: p.cornersDotOptions.type, window: this._window });
|
|
4425
4425
|
Ee.draw(_e + 2 * D, De + 2 * D, V, le), Ee._element && be && be.appendChild(Ee._element);
|
|
4426
4426
|
} else {
|
|
4427
4427
|
const Ee = new O({ svg: this._element, type: ((U = p.cornersDotOptions) === null || U === void 0 ? void 0 : U.type) || p.dotsOptions.type, window: this._window });
|
|
@@ -4836,7 +4836,7 @@ function J_() {
|
|
|
4836
4836
|
(function(r, s) {
|
|
4837
4837
|
i.exports = s();
|
|
4838
4838
|
})(Q_, function() {
|
|
4839
|
-
var r = 1e3, s = 6e4, l = 36e5, g = "millisecond", f = "second", c = "minute", b = "hour", C = "day", O = "week", L = "month", k = "quarter", E = "year", M = "date", T = "Invalid Date",
|
|
4839
|
+
var r = 1e3, s = 6e4, l = 36e5, g = "millisecond", f = "second", c = "minute", b = "hour", C = "day", O = "week", L = "month", k = "quarter", E = "year", M = "date", T = "Invalid Date", P = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, K = /\[([^\]]+)]|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, X = { 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(B) {
|
|
4840
4840
|
var I = ["th", "st", "nd", "rd"], A = B % 100;
|
|
4841
4841
|
return "[" + B + (I[(A - 20) % 10] || I[A] || I[0]) + "]";
|
|
4842
4842
|
} }, Q = function(B, I, A) {
|
|
@@ -4892,7 +4892,7 @@ function J_() {
|
|
|
4892
4892
|
if (ne.u(p)) return /* @__PURE__ */ new Date();
|
|
4893
4893
|
if (p instanceof Date) return new Date(p);
|
|
4894
4894
|
if (typeof p == "string" && !/Z$/i.test(p)) {
|
|
4895
|
-
var d = p.match(
|
|
4895
|
+
var d = p.match(P);
|
|
4896
4896
|
if (d) {
|
|
4897
4897
|
var m = d[2] - 1 || 0, D = (d[7] || "0").substring(0, 3);
|
|
4898
4898
|
return _ ? new Date(Date.UTC(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, D)) : new Date(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, D);
|
|
@@ -5245,15 +5245,15 @@ function ob() {
|
|
|
5245
5245
|
return function(l, g, f) {
|
|
5246
5246
|
var c, b = function(k, E, M) {
|
|
5247
5247
|
M === void 0 && (M = {});
|
|
5248
|
-
var T = new Date(k),
|
|
5248
|
+
var T = new Date(k), P = function(K, X) {
|
|
5249
5249
|
X === void 0 && (X = {});
|
|
5250
5250
|
var Q = X.timeZoneName || "short", se = K + "|" + Q, Y = s[se];
|
|
5251
5251
|
return Y || (Y = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: K, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: Q }), s[se] = Y), Y;
|
|
5252
5252
|
}(E, M);
|
|
5253
|
-
return
|
|
5253
|
+
return P.formatToParts(T);
|
|
5254
5254
|
}, C = function(k, E) {
|
|
5255
|
-
for (var M = b(k, E), T = [],
|
|
5256
|
-
var K = M[
|
|
5255
|
+
for (var M = b(k, E), T = [], P = 0; P < M.length; P += 1) {
|
|
5256
|
+
var K = M[P], X = K.type, Q = K.value, se = r[X];
|
|
5257
5257
|
se >= 0 && (T[se] = parseInt(Q, 10));
|
|
5258
5258
|
}
|
|
5259
5259
|
var Y = T[3], ce = Y === 24 ? 0 : Y, J = T[0] + "-" + T[1] + "-" + T[2] + " " + ce + ":" + T[4] + ":" + T[5] + ":000", te = +k;
|
|
@@ -5261,7 +5261,7 @@ function ob() {
|
|
|
5261
5261
|
}, O = g.prototype;
|
|
5262
5262
|
O.tz = function(k, E) {
|
|
5263
5263
|
k === void 0 && (k = c);
|
|
5264
|
-
var M, T = this.utcOffset(),
|
|
5264
|
+
var M, T = this.utcOffset(), P = this.toDate(), K = P.toLocaleString("en-US", { timeZone: k }), X = Math.round((P - new Date(K)) / 1e3 / 60), Q = 15 * -Math.round(P.getTimezoneOffset() / 15) - X;
|
|
5265
5265
|
if (!Number(Q)) M = this.utcOffset(0, E);
|
|
5266
5266
|
else if (M = f(K, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(Q, !0), E) {
|
|
5267
5267
|
var se = M.utcOffset();
|
|
@@ -5280,15 +5280,15 @@ function ob() {
|
|
|
5280
5280
|
var M = f(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
5281
5281
|
return L.call(M, k, E).tz(this.$x.$timezone, !0);
|
|
5282
5282
|
}, f.tz = function(k, E, M) {
|
|
5283
|
-
var T = M && E,
|
|
5284
|
-
if (typeof k != "string") return f(k).tz(
|
|
5283
|
+
var T = M && E, P = M || E || c, K = C(+f(), P);
|
|
5284
|
+
if (typeof k != "string") return f(k).tz(P);
|
|
5285
5285
|
var X = function(ce, J, te) {
|
|
5286
5286
|
var oe = ce - 60 * J * 1e3, de = C(oe, te);
|
|
5287
5287
|
if (J === de) return [oe, J];
|
|
5288
5288
|
var ne = C(oe -= 60 * (de - J) * 1e3, te);
|
|
5289
5289
|
return de === ne ? [oe, de] : [ce - 60 * Math.min(de, ne) * 1e3, Math.max(de, ne)];
|
|
5290
|
-
}(f.utc(k, T).valueOf(), K,
|
|
5291
|
-
return Y.$x.$timezone =
|
|
5290
|
+
}(f.utc(k, T).valueOf(), K, P), Q = X[0], se = X[1], Y = f(Q).utcOffset(se);
|
|
5291
|
+
return Y.$x.$timezone = P, Y;
|
|
5292
5292
|
}, f.tz.guess = function() {
|
|
5293
5293
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
5294
5294
|
}, f.tz.setDefault = function(k) {
|
|
@@ -5310,11 +5310,11 @@ function lb() {
|
|
|
5310
5310
|
return function(g, f, c) {
|
|
5311
5311
|
var b = f.prototype;
|
|
5312
5312
|
c.utc = function(T) {
|
|
5313
|
-
var
|
|
5314
|
-
return new f(
|
|
5313
|
+
var P = { date: T, utc: !0, args: arguments };
|
|
5314
|
+
return new f(P);
|
|
5315
5315
|
}, b.utc = function(T) {
|
|
5316
|
-
var
|
|
5317
|
-
return T ?
|
|
5316
|
+
var P = c(this.toDate(), { locale: this.$L, utc: !0 });
|
|
5317
|
+
return T ? P.add(this.utcOffset(), r) : P;
|
|
5318
5318
|
}, b.local = function() {
|
|
5319
5319
|
return c(this.toDate(), { locale: this.$L, utc: !1 });
|
|
5320
5320
|
};
|
|
@@ -5330,7 +5330,7 @@ function lb() {
|
|
|
5330
5330
|
} else O.call(this);
|
|
5331
5331
|
};
|
|
5332
5332
|
var L = b.utcOffset;
|
|
5333
|
-
b.utcOffset = function(T,
|
|
5333
|
+
b.utcOffset = function(T, P) {
|
|
5334
5334
|
var K = this.$utils().u;
|
|
5335
5335
|
if (K(T)) return this.$u ? 0 : K(this.$offset) ? L.call(this) : this.$offset;
|
|
5336
5336
|
if (typeof T == "string" && (T = function(Y) {
|
|
@@ -5341,7 +5341,7 @@ function lb() {
|
|
|
5341
5341
|
return oe === 0 ? 0 : te === "+" ? oe : -oe;
|
|
5342
5342
|
}(T), T === null)) return this;
|
|
5343
5343
|
var X = Math.abs(T) <= 16 ? 60 * T : T, Q = this;
|
|
5344
|
-
if (
|
|
5344
|
+
if (P) return Q.$offset = X, Q.$u = T === 0, Q;
|
|
5345
5345
|
if (T !== 0) {
|
|
5346
5346
|
var se = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
5347
5347
|
(Q = this.local().add(X + se, r)).$offset = X, Q.$x.$localOffset = se;
|
|
@@ -5350,8 +5350,8 @@ function lb() {
|
|
|
5350
5350
|
};
|
|
5351
5351
|
var k = b.format;
|
|
5352
5352
|
b.format = function(T) {
|
|
5353
|
-
var
|
|
5354
|
-
return k.call(this,
|
|
5353
|
+
var P = T || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
5354
|
+
return k.call(this, P);
|
|
5355
5355
|
}, b.valueOf = function() {
|
|
5356
5356
|
var T = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
5357
5357
|
return this.$d.valueOf() - 6e4 * T;
|
|
@@ -5367,10 +5367,10 @@ function lb() {
|
|
|
5367
5367
|
return T === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : E.call(this);
|
|
5368
5368
|
};
|
|
5369
5369
|
var M = b.diff;
|
|
5370
|
-
b.diff = function(T,
|
|
5371
|
-
if (T && this.$u === T.$u) return M.call(this, T,
|
|
5370
|
+
b.diff = function(T, P, K) {
|
|
5371
|
+
if (T && this.$u === T.$u) return M.call(this, T, P, K);
|
|
5372
5372
|
var X = this.local(), Q = c(T).local();
|
|
5373
|
-
return M.call(X, Q,
|
|
5373
|
+
return M.call(X, Q, P, K);
|
|
5374
5374
|
};
|
|
5375
5375
|
};
|
|
5376
5376
|
});
|
|
@@ -5470,7 +5470,7 @@ const vb = {}, mb = Po((i, { size: t }) => ({
|
|
|
5470
5470
|
outside: E,
|
|
5471
5471
|
selected: M,
|
|
5472
5472
|
renderDay: T,
|
|
5473
|
-
inRange:
|
|
5473
|
+
inRange: P,
|
|
5474
5474
|
firstInRange: K,
|
|
5475
5475
|
lastInRange: X,
|
|
5476
5476
|
hidden: Q,
|
|
@@ -5504,7 +5504,7 @@ const vb = {}, mb = Po((i, { size: t }) => ({
|
|
|
5504
5504
|
"data-weekend": !O && !E && k || void 0,
|
|
5505
5505
|
"data-outside": !O && E || void 0,
|
|
5506
5506
|
"data-selected": !O && M || void 0,
|
|
5507
|
-
"data-in-range":
|
|
5507
|
+
"data-in-range": P && !O || void 0,
|
|
5508
5508
|
"data-first-in-range": K && !O || void 0,
|
|
5509
5509
|
"data-last-in-range": X && !O || void 0,
|
|
5510
5510
|
"data-static": se || void 0,
|
|
@@ -5547,7 +5547,7 @@ const wb = {}, _b = Po((i, { size: t }) => ({
|
|
|
5547
5547
|
__staticSelector: E,
|
|
5548
5548
|
withWeekNumbers: M,
|
|
5549
5549
|
...T
|
|
5550
|
-
} = r,
|
|
5550
|
+
} = r, P = Ir({
|
|
5551
5551
|
name: E || "WeekdaysRow",
|
|
5552
5552
|
classes: Ed,
|
|
5553
5553
|
props: r,
|
|
@@ -5563,9 +5563,9 @@ const wb = {}, _b = Po((i, { size: t }) => ({
|
|
|
5563
5563
|
locale: K.getLocale(C),
|
|
5564
5564
|
format: L,
|
|
5565
5565
|
firstDayOfWeek: K.getFirstDayOfWeek(O)
|
|
5566
|
-
}).map((Q, se) => /* @__PURE__ */ R.jsx(k, { ...
|
|
5567
|
-
return /* @__PURE__ */ R.jsxs(zt, { component: "tr", ref: t, ...
|
|
5568
|
-
M && /* @__PURE__ */ R.jsx(k, { ...
|
|
5566
|
+
}).map((Q, se) => /* @__PURE__ */ R.jsx(k, { ...P("weekday"), children: Q }, se));
|
|
5567
|
+
return /* @__PURE__ */ R.jsxs(zt, { component: "tr", ref: t, ...P("weekdaysRow"), ...T, children: [
|
|
5568
|
+
M && /* @__PURE__ */ R.jsx(k, { ...P("weekday"), children: "#" }),
|
|
5569
5569
|
X
|
|
5570
5570
|
] });
|
|
5571
5571
|
});
|
|
@@ -5687,7 +5687,7 @@ const Eb = {
|
|
|
5687
5687
|
month: E,
|
|
5688
5688
|
weekendDays: M,
|
|
5689
5689
|
getDayProps: T,
|
|
5690
|
-
excludeDate:
|
|
5690
|
+
excludeDate: P,
|
|
5691
5691
|
minDate: K,
|
|
5692
5692
|
maxDate: X,
|
|
5693
5693
|
renderDay: Q,
|
|
@@ -5727,7 +5727,7 @@ const Eb = {
|
|
|
5727
5727
|
K,
|
|
5728
5728
|
X,
|
|
5729
5729
|
T,
|
|
5730
|
-
|
|
5730
|
+
P,
|
|
5731
5731
|
se,
|
|
5732
5732
|
E
|
|
5733
5733
|
), { resolvedClassNames: q, resolvedStyles: V } = od({
|
|
@@ -5759,7 +5759,7 @@ const Eb = {
|
|
|
5759
5759
|
hidden: se ? we : !1,
|
|
5760
5760
|
"aria-label": j,
|
|
5761
5761
|
static: J,
|
|
5762
|
-
disabled: (
|
|
5762
|
+
disabled: (P == null ? void 0 : P(le)) || !Ld(le, X) || !Md(le, K),
|
|
5763
5763
|
ref: (Z) => te == null ? void 0 : te(me, xe, Z),
|
|
5764
5764
|
...W,
|
|
5765
5765
|
onKeyDown: (Z) => {
|
|
@@ -5831,7 +5831,7 @@ const Lb = {}, kb = Po((i, { size: t }) => ({
|
|
|
5831
5831
|
selected: E,
|
|
5832
5832
|
disabled: M,
|
|
5833
5833
|
...T
|
|
5834
|
-
} = r,
|
|
5834
|
+
} = r, P = Ir({
|
|
5835
5835
|
name: k || "PickerControl",
|
|
5836
5836
|
classes: Id,
|
|
5837
5837
|
props: r,
|
|
@@ -5847,7 +5847,7 @@ const Lb = {}, kb = Po((i, { size: t }) => ({
|
|
|
5847
5847
|
return /* @__PURE__ */ R.jsx(
|
|
5848
5848
|
Ro,
|
|
5849
5849
|
{
|
|
5850
|
-
...
|
|
5850
|
+
...P("pickerControl"),
|
|
5851
5851
|
ref: t,
|
|
5852
5852
|
unstyled: c,
|
|
5853
5853
|
"data-picker-control": !0,
|
|
@@ -5911,7 +5911,7 @@ const $b = {
|
|
|
5911
5911
|
maxDate: E,
|
|
5912
5912
|
getYearControlProps: M,
|
|
5913
5913
|
__staticSelector: T,
|
|
5914
|
-
__getControlRef:
|
|
5914
|
+
__getControlRef: P,
|
|
5915
5915
|
__onControlKeyDown: K,
|
|
5916
5916
|
__onControlClick: X,
|
|
5917
5917
|
__onControlMouseEnter: Q,
|
|
@@ -5947,7 +5947,7 @@ const $b = {
|
|
|
5947
5947
|
unstyled: c,
|
|
5948
5948
|
"data-mantine-stop-propagation": Y || void 0,
|
|
5949
5949
|
disabled: $d(v, k, E),
|
|
5950
|
-
ref: (m) =>
|
|
5950
|
+
ref: (m) => P == null ? void 0 : P(I, p, m),
|
|
5951
5951
|
..._,
|
|
5952
5952
|
onKeyDown: (m) => {
|
|
5953
5953
|
var D;
|
|
@@ -6024,7 +6024,7 @@ const jb = {
|
|
|
6024
6024
|
minDate: E,
|
|
6025
6025
|
maxDate: M,
|
|
6026
6026
|
getMonthControlProps: T,
|
|
6027
|
-
__getControlRef:
|
|
6027
|
+
__getControlRef: P,
|
|
6028
6028
|
__onControlKeyDown: K,
|
|
6029
6029
|
__onControlClick: X,
|
|
6030
6030
|
__onControlMouseEnter: Q,
|
|
@@ -6061,7 +6061,7 @@ const jb = {
|
|
|
6061
6061
|
__staticSelector: C || "MonthsList",
|
|
6062
6062
|
"data-mantine-stop-propagation": Y || void 0,
|
|
6063
6063
|
disabled: jd(v, E, M),
|
|
6064
|
-
ref: (m) =>
|
|
6064
|
+
ref: (m) => P == null ? void 0 : P(I, p, m),
|
|
6065
6065
|
..._,
|
|
6066
6066
|
onKeyDown: (m) => {
|
|
6067
6067
|
var D;
|
|
@@ -6120,7 +6120,7 @@ const Bb = {
|
|
|
6120
6120
|
onNext: E,
|
|
6121
6121
|
onPrevious: M,
|
|
6122
6122
|
onLevelClick: T,
|
|
6123
|
-
label:
|
|
6123
|
+
label: P,
|
|
6124
6124
|
nextDisabled: K,
|
|
6125
6125
|
previousDisabled: X,
|
|
6126
6126
|
hasNextLevel: Q,
|
|
@@ -6181,7 +6181,7 @@ const Bb = {
|
|
|
6181
6181
|
"aria-label": se,
|
|
6182
6182
|
tabIndex: te || !Q ? -1 : 0,
|
|
6183
6183
|
"data-mantine-stop-propagation": oe || void 0,
|
|
6184
|
-
children:
|
|
6184
|
+
children: P
|
|
6185
6185
|
}
|
|
6186
6186
|
),
|
|
6187
6187
|
Y && /* @__PURE__ */ R.jsx(
|
|
@@ -6234,7 +6234,7 @@ const Fb = {
|
|
|
6234
6234
|
// CalendarHeader settings
|
|
6235
6235
|
__preventFocus: M,
|
|
6236
6236
|
nextIcon: T,
|
|
6237
|
-
previousIcon:
|
|
6237
|
+
previousIcon: P,
|
|
6238
6238
|
nextLabel: K,
|
|
6239
6239
|
previousLabel: X,
|
|
6240
6240
|
onNext: Q,
|
|
@@ -6271,7 +6271,7 @@ const Fb = {
|
|
|
6271
6271
|
__preventFocus: M,
|
|
6272
6272
|
__stopPropagation: I,
|
|
6273
6273
|
nextIcon: T,
|
|
6274
|
-
previousIcon:
|
|
6274
|
+
previousIcon: P,
|
|
6275
6275
|
nextLabel: K,
|
|
6276
6276
|
previousLabel: X,
|
|
6277
6277
|
onNext: Q,
|
|
@@ -6327,7 +6327,7 @@ const Wb = {
|
|
|
6327
6327
|
// CalendarHeader settings
|
|
6328
6328
|
__preventFocus: M,
|
|
6329
6329
|
nextIcon: T,
|
|
6330
|
-
previousIcon:
|
|
6330
|
+
previousIcon: P,
|
|
6331
6331
|
nextLabel: K,
|
|
6332
6332
|
previousLabel: X,
|
|
6333
6333
|
onNext: Q,
|
|
@@ -6363,7 +6363,7 @@ const Wb = {
|
|
|
6363
6363
|
__preventFocus: M,
|
|
6364
6364
|
__stopPropagation: B,
|
|
6365
6365
|
nextIcon: T,
|
|
6366
|
-
previousIcon:
|
|
6366
|
+
previousIcon: P,
|
|
6367
6367
|
nextLabel: K,
|
|
6368
6368
|
previousLabel: X,
|
|
6369
6369
|
onNext: Q,
|
|
@@ -6419,7 +6419,7 @@ const Yb = {
|
|
|
6419
6419
|
hideOutsideDates: E,
|
|
6420
6420
|
hideWeekdays: M,
|
|
6421
6421
|
getDayAriaLabel: T,
|
|
6422
|
-
__getDayRef:
|
|
6422
|
+
__getDayRef: P,
|
|
6423
6423
|
__onDayKeyDown: K,
|
|
6424
6424
|
__onDayClick: X,
|
|
6425
6425
|
__onDayMouseEnter: Q,
|
|
@@ -6497,7 +6497,7 @@ const Yb = {
|
|
|
6497
6497
|
hideOutsideDates: E,
|
|
6498
6498
|
hideWeekdays: M,
|
|
6499
6499
|
getDayAriaLabel: T,
|
|
6500
|
-
__getDayRef:
|
|
6500
|
+
__getDayRef: P,
|
|
6501
6501
|
__onDayKeyDown: K,
|
|
6502
6502
|
__onDayClick: X,
|
|
6503
6503
|
__onDayMouseEnter: Q,
|
|
@@ -6551,7 +6551,7 @@ const Hb = {
|
|
|
6551
6551
|
nextIcon: E,
|
|
6552
6552
|
previousIcon: M,
|
|
6553
6553
|
nextLabel: T,
|
|
6554
|
-
previousLabel:
|
|
6554
|
+
previousLabel: P,
|
|
6555
6555
|
onNext: K,
|
|
6556
6556
|
onPrevious: X,
|
|
6557
6557
|
nextDisabled: Q,
|
|
@@ -6600,7 +6600,7 @@ const Hb = {
|
|
|
6600
6600
|
nextIcon: E,
|
|
6601
6601
|
previousIcon: M,
|
|
6602
6602
|
nextLabel: T,
|
|
6603
|
-
previousLabel:
|
|
6603
|
+
previousLabel: P,
|
|
6604
6604
|
onNext: K,
|
|
6605
6605
|
onPrevious: X,
|
|
6606
6606
|
nextDisabled: Q,
|
|
@@ -6650,7 +6650,7 @@ const Gb = {
|
|
|
6650
6650
|
nextIcon: E,
|
|
6651
6651
|
previousIcon: M,
|
|
6652
6652
|
nextLabel: T,
|
|
6653
|
-
previousLabel:
|
|
6653
|
+
previousLabel: P,
|
|
6654
6654
|
onNext: K,
|
|
6655
6655
|
onPrevious: X,
|
|
6656
6656
|
onLevelClick: Q,
|
|
@@ -6701,7 +6701,7 @@ const Gb = {
|
|
|
6701
6701
|
nextIcon: E,
|
|
6702
6702
|
previousIcon: M,
|
|
6703
6703
|
nextLabel: T,
|
|
6704
|
-
previousLabel:
|
|
6704
|
+
previousLabel: P,
|
|
6705
6705
|
onNext: K,
|
|
6706
6706
|
onPrevious: X,
|
|
6707
6707
|
onLevelClick: Q,
|
|
@@ -6752,7 +6752,7 @@ const Vb = {
|
|
|
6752
6752
|
hideOutsideDates: E,
|
|
6753
6753
|
hideWeekdays: M,
|
|
6754
6754
|
getDayAriaLabel: T,
|
|
6755
|
-
__onDayClick:
|
|
6755
|
+
__onDayClick: P,
|
|
6756
6756
|
__onDayMouseEnter: K,
|
|
6757
6757
|
withCellSpacing: X,
|
|
6758
6758
|
highlightToday: Q,
|
|
@@ -6792,7 +6792,7 @@ const Vb = {
|
|
|
6792
6792
|
withPrevious: we === 0,
|
|
6793
6793
|
monthLabelFormat: m,
|
|
6794
6794
|
__stopPropagation: q,
|
|
6795
|
-
__onDayClick:
|
|
6795
|
+
__onDayClick: P,
|
|
6796
6796
|
__onDayMouseEnter: K,
|
|
6797
6797
|
__onDayKeyDown: (W, F) => Rl({
|
|
6798
6798
|
levelIndex: we,
|
|
@@ -6933,7 +6933,7 @@ const Kb = {
|
|
|
6933
6933
|
columnsToScroll: E,
|
|
6934
6934
|
ariaLabels: M,
|
|
6935
6935
|
nextLabel: T,
|
|
6936
|
-
previousLabel:
|
|
6936
|
+
previousLabel: P,
|
|
6937
6937
|
onYearSelect: K,
|
|
6938
6938
|
onMonthSelect: X,
|
|
6939
6939
|
onYearMouseEnter: Q,
|
|
@@ -6978,7 +6978,7 @@ const Kb = {
|
|
|
6978
6978
|
__preventFocus: u,
|
|
6979
6979
|
__stopPropagation: h,
|
|
6980
6980
|
onNextDecade: w,
|
|
6981
|
-
onPreviousDecade:
|
|
6981
|
+
onPreviousDecade: N,
|
|
6982
6982
|
onNextYear: U,
|
|
6983
6983
|
onPreviousYear: ee,
|
|
6984
6984
|
onNextMonth: _e,
|
|
@@ -7024,7 +7024,7 @@ const Kb = {
|
|
|
7024
7024
|
w == null || w(et), ft(et);
|
|
7025
7025
|
}, ln = () => {
|
|
7026
7026
|
const et = Le(wt).subtract(10 * xt, "year").toDate();
|
|
7027
|
-
|
|
7027
|
+
N == null || N(et), ft(et);
|
|
7028
7028
|
};
|
|
7029
7029
|
return /* @__PURE__ */ R.jsxs(zt, { ref: t, size: Ae, "data-calendar": !0, ...Ee, children: [
|
|
7030
7030
|
Ge === "month" && /* @__PURE__ */ R.jsx(
|
|
@@ -7051,7 +7051,7 @@ const Kb = {
|
|
|
7051
7051
|
levelControlAriaLabel: M == null ? void 0 : M.monthLevelControl,
|
|
7052
7052
|
nextLabel: (M == null ? void 0 : M.nextMonth) ?? T,
|
|
7053
7053
|
nextIcon: v,
|
|
7054
|
-
previousLabel: (M == null ? void 0 : M.previousMonth) ??
|
|
7054
|
+
previousLabel: (M == null ? void 0 : M.previousMonth) ?? P,
|
|
7055
7055
|
previousIcon: p,
|
|
7056
7056
|
monthLabelFormat: A,
|
|
7057
7057
|
__onDayClick: _,
|
|
@@ -7082,7 +7082,7 @@ const Kb = {
|
|
|
7082
7082
|
levelControlAriaLabel: M == null ? void 0 : M.yearLevelControl,
|
|
7083
7083
|
nextLabel: (M == null ? void 0 : M.nextYear) ?? T,
|
|
7084
7084
|
nextIcon: v,
|
|
7085
|
-
previousLabel: (M == null ? void 0 : M.previousYear) ??
|
|
7085
|
+
previousLabel: (M == null ? void 0 : M.previousYear) ?? P,
|
|
7086
7086
|
previousIcon: p,
|
|
7087
7087
|
yearLabelFormat: he,
|
|
7088
7088
|
__onControlMouseEnter: se,
|
|
@@ -7109,7 +7109,7 @@ const Kb = {
|
|
|
7109
7109
|
numberOfColumns: k,
|
|
7110
7110
|
nextLabel: (M == null ? void 0 : M.nextDecade) ?? T,
|
|
7111
7111
|
nextIcon: v,
|
|
7112
|
-
previousLabel: (M == null ? void 0 : M.previousDecade) ??
|
|
7112
|
+
previousLabel: (M == null ? void 0 : M.previousDecade) ?? P,
|
|
7113
7113
|
previousIcon: p,
|
|
7114
7114
|
decadeLabelFormat: le,
|
|
7115
7115
|
__onControlMouseEnter: Q,
|
|
@@ -7147,7 +7147,7 @@ function Qb(i) {
|
|
|
7147
7147
|
ariaLabels: E,
|
|
7148
7148
|
nextLabel: M,
|
|
7149
7149
|
previousLabel: T,
|
|
7150
|
-
onYearSelect:
|
|
7150
|
+
onYearSelect: P,
|
|
7151
7151
|
onMonthSelect: K,
|
|
7152
7152
|
onYearMouseEnter: X,
|
|
7153
7153
|
onMonthMouseEnter: Q,
|
|
@@ -7207,7 +7207,7 @@ function Qb(i) {
|
|
|
7207
7207
|
ariaLabels: E,
|
|
7208
7208
|
nextLabel: M,
|
|
7209
7209
|
previousLabel: T,
|
|
7210
|
-
onYearSelect:
|
|
7210
|
+
onYearSelect: P,
|
|
7211
7211
|
onMonthSelect: K,
|
|
7212
7212
|
onYearMouseEnter: X,
|
|
7213
7213
|
onMonthMouseEnter: Q,
|
|
@@ -7280,7 +7280,7 @@ const ex = {
|
|
|
7280
7280
|
valueFormat: E,
|
|
7281
7281
|
dateParser: M,
|
|
7282
7282
|
minDate: T,
|
|
7283
|
-
maxDate:
|
|
7283
|
+
maxDate: P,
|
|
7284
7284
|
fixOnBlur: K,
|
|
7285
7285
|
onFocus: X,
|
|
7286
7286
|
onBlur: Q,
|
|
@@ -7325,7 +7325,7 @@ const ex = {
|
|
|
7325
7325
|
xe(null);
|
|
7326
7326
|
else {
|
|
7327
7327
|
const _e = he(ee);
|
|
7328
|
-
Xb({ date: _e, minDate: T, maxDate:
|
|
7328
|
+
Xb({ date: _e, minDate: T, maxDate: P }) && (xe(_e), W(_e));
|
|
7329
7329
|
}
|
|
7330
7330
|
}, Ae = (U) => {
|
|
7331
7331
|
Q == null || Q(U), m(!1), K && Z(re(le));
|
|
@@ -7342,7 +7342,7 @@ const ex = {
|
|
|
7342
7342
|
const _e = Ce ? rb(le, U) : U, De = b && me && Le(le).isSame(U, "day") ? null : _e;
|
|
7343
7343
|
xe(De), !we && Z(re(De)), m(!1);
|
|
7344
7344
|
}
|
|
7345
|
-
}),
|
|
7345
|
+
}), N = te || (b && le && !Y ? /* @__PURE__ */ R.jsx(
|
|
7346
7346
|
$y,
|
|
7347
7347
|
{
|
|
7348
7348
|
variant: "transparent",
|
|
@@ -7386,7 +7386,7 @@ const ex = {
|
|
|
7386
7386
|
onFocus: u,
|
|
7387
7387
|
onClick: h,
|
|
7388
7388
|
readOnly: Y,
|
|
7389
|
-
rightSection:
|
|
7389
|
+
rightSection: N,
|
|
7390
7390
|
...s,
|
|
7391
7391
|
...q,
|
|
7392
7392
|
__staticSelector: "DateInput"
|
|
@@ -7409,7 +7409,7 @@ const ex = {
|
|
|
7409
7409
|
unstyled: oe,
|
|
7410
7410
|
__preventFocus: !0,
|
|
7411
7411
|
minDate: T,
|
|
7412
|
-
maxDate:
|
|
7412
|
+
maxDate: P,
|
|
7413
7413
|
locale: k,
|
|
7414
7414
|
getDayProps: w,
|
|
7415
7415
|
size: s.size,
|
|
@@ -7438,7 +7438,7 @@ function tx(i) {
|
|
|
7438
7438
|
} = i, [b, C] = Je(0), [O, L] = Je(!1), [k, E] = Je(), {
|
|
7439
7439
|
mutateAsync: M,
|
|
7440
7440
|
isError: T,
|
|
7441
|
-
error:
|
|
7441
|
+
error: P,
|
|
7442
7442
|
isPending: K
|
|
7443
7443
|
} = W_(g, l), {
|
|
7444
7444
|
mutateAsync: X,
|
|
@@ -7469,12 +7469,12 @@ function tx(i) {
|
|
|
7469
7469
|
m.type === "boolean" && /* @__PURE__ */ R.jsx(No, { mt: "md", label: m.column.title, ...ne.getInputProps(m.id, {
|
|
7470
7470
|
type: "checkbox"
|
|
7471
7471
|
}) }, ne.key(m.id)),
|
|
7472
|
-
m.type === "custom" && m.render && m.render(ne.getValues(), ne.
|
|
7472
|
+
m.type === "custom" && m.render && m.render(ne.getValues(), ne.setValues, L)
|
|
7473
7473
|
] }, m.id);
|
|
7474
7474
|
}, t[11] = ne, t[12] = Se) : Se = t[12];
|
|
7475
7475
|
const Ce = Se;
|
|
7476
7476
|
let B;
|
|
7477
|
-
t[13] !== (
|
|
7477
|
+
t[13] !== (P == null ? void 0 : P.message) || t[14] !== (P == null ? void 0 : P.name) || t[15] !== T ? (B = T && /* @__PURE__ */ R.jsx(Js, { variant: "outline", color: "red", title: (P == null ? void 0 : P.name) ?? "Fehler aufgetreten", mb: "lg", children: (P == null ? void 0 : P.message) ?? "Fehler aufgetreten" }), t[13] = P == null ? void 0 : P.message, t[14] = P == null ? void 0 : P.name, t[15] = T, t[16] = B) : B = t[16];
|
|
7478
7478
|
let I;
|
|
7479
7479
|
t[17] !== b || t[18] !== M || t[19] !== ne || t[20] !== T || t[21] !== s || t[22] !== c || t[23] !== k || t[24] !== J.length || t[25] !== X ? (I = ne.onSubmit(async (d) => {
|
|
7480
7480
|
if (k)
|
|
@@ -7532,8 +7532,8 @@ var [ux, Ml] = Py("useDataTableColumnsContext must be used within DataTableColum
|
|
|
7532
7532
|
if (!r || !s || !O || !k) return;
|
|
7533
7533
|
let M = r.indexOf(O), T = r.indexOf(k);
|
|
7534
7534
|
if (M !== -1 && T !== -1) {
|
|
7535
|
-
let
|
|
7536
|
-
r.splice(T, 0,
|
|
7535
|
+
let P = r.splice(M, 1)[0];
|
|
7536
|
+
r.splice(T, 0, P), s([...r]);
|
|
7537
7537
|
}
|
|
7538
7538
|
}, resetColumnsOrder: f, resetColumnsToggle: c, setColumnWidth: b, resetColumnsWidth: C }, children: t });
|
|
7539
7539
|
};
|
|
@@ -7603,7 +7603,7 @@ var hx = ({ key: i, columns: t = [], getInitialValueInEffect: r = !0 }) => {
|
|
|
7603
7603
|
let te = g(Y, t), oe = JSON.stringify(Y);
|
|
7604
7604
|
return JSON.stringify(te) !== oe && J(te), [g(Y, t), J];
|
|
7605
7605
|
}
|
|
7606
|
-
let C = t && t.map((Y) => Y.accessor) || [], O = t && t.map((Y) => ({ [Y.accessor]: Y.width ?? "initial" })) || [], L = t && t.map((Y) => ({ accessor: Y.accessor, defaultToggle: Y.defaultToggle || !0, toggleable: Y.toggleable, toggled: Y.defaultToggle === void 0 ? !0 : Y.defaultToggle })), [k, E] = f(), [M, T] = c(), [
|
|
7606
|
+
let C = t && t.map((Y) => Y.accessor) || [], O = t && t.map((Y) => ({ [Y.accessor]: Y.width ?? "initial" })) || [], L = t && t.map((Y) => ({ accessor: Y.accessor, defaultToggle: Y.defaultToggle || !0, toggleable: Y.toggleable, toggled: Y.defaultToggle === void 0 ? !0 : Y.defaultToggle })), [k, E] = f(), [M, T] = c(), [P, K] = b(), X = () => E(C), Q = () => {
|
|
7607
7607
|
T(L);
|
|
7608
7608
|
}, se = () => K(O);
|
|
7609
7609
|
return { effectiveColumns: Pi(() => k ? k.map((Y) => t.find((ce) => ce.accessor === Y)).map((Y) => {
|
|
@@ -7611,9 +7611,9 @@ var hx = ({ key: i, columns: t = [], getInitialValueInEffect: r = !0 }) => {
|
|
|
7611
7611
|
return { ...Y, hidden: (Y == null ? void 0 : Y.hidden) || !((ce = M.find((J) => J.accessor === (Y == null ? void 0 : Y.accessor))) != null && ce.toggled) };
|
|
7612
7612
|
}).map((Y) => {
|
|
7613
7613
|
var ce;
|
|
7614
|
-
return { ...Y, width: (ce =
|
|
7615
|
-
}) : t, [t, k, M,
|
|
7616
|
-
let J =
|
|
7614
|
+
return { ...Y, width: (ce = P.find((J) => J[Y == null ? void 0 : Y.accessor])) == null ? void 0 : ce[Y == null ? void 0 : Y.accessor] };
|
|
7615
|
+
}) : t, [t, k, M, P]), setColumnsOrder: E, columnsOrder: k, resetColumnsOrder: X, columnsToggle: M, setColumnsToggle: T, resetColumnsToggle: Q, columnsWidth: P, setColumnsWidth: K, setColumnWidth: (Y, ce) => {
|
|
7616
|
+
let J = P.map((te) => te[Y] ? { [Y]: ce } : te);
|
|
7617
7617
|
K(J);
|
|
7618
7618
|
}, resetColumnsWidth: se };
|
|
7619
7619
|
};
|
|
@@ -7712,8 +7712,8 @@ var Ax = $o(function({ className: i, style: t, columns: r, defaultColumnProps: s
|
|
|
7712
7712
|
let b = f < 0;
|
|
7713
7713
|
return R.jsx(Ny, { ref: c, className: vt("mantine-datatable-footer", i), style: [{ position: b ? "relative" : "sticky", bottom: Bn(b ? f : 0) }, t], children: R.jsxs(ii, { children: [l && R.jsx(Cx, { shadowVisible: g }), r.map(({ hidden: C, ...O }) => {
|
|
7714
7714
|
if (C) return null;
|
|
7715
|
-
let { accessor: L, visibleMediaQuery: k, textAlign: E, width: M, footer: T, footerClassName:
|
|
7716
|
-
return R.jsx(Sx, { className:
|
|
7715
|
+
let { accessor: L, visibleMediaQuery: k, textAlign: E, width: M, footer: T, footerClassName: P, footerStyle: K, noWrap: X, ellipsis: Q } = { ...s, ...O };
|
|
7716
|
+
return R.jsx(Sx, { className: P, style: K, visibleMediaQuery: k, textAlign: E, width: M, title: T, noWrap: X, ellipsis: Q }, L);
|
|
7717
7717
|
})] }) });
|
|
7718
7718
|
});
|
|
7719
7719
|
function Ox({ group: { id: i, columns: t, title: r, textAlign: s, className: l, style: g } }) {
|
|
@@ -7758,7 +7758,7 @@ function kx() {
|
|
|
7758
7758
|
function Ix() {
|
|
7759
7759
|
return R.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [R.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), R.jsx("path", { d: "M18 6l-12 12" }), R.jsx("path", { d: "M6 6l12 12" })] });
|
|
7760
7760
|
}
|
|
7761
|
-
function $x({ className: i, style: t, accessor: r, visibleMediaQuery: s, title: l, sortable: g, draggable: f, toggleable: c, resizable: b, sortIcons: C, textAlign: O, width: L, sortStatus: k, onSortStatusChange: E, filter: M, filterPopoverProps: T, filtering:
|
|
7761
|
+
function $x({ className: i, style: t, accessor: r, visibleMediaQuery: s, title: l, sortable: g, draggable: f, toggleable: c, resizable: b, sortIcons: C, textAlign: O, width: L, sortStatus: k, onSortStatusChange: E, filter: M, filterPopoverProps: T, filtering: P, sortKey: K }) {
|
|
7762
7762
|
let { setSourceColumn: X, setTargetColumn: Q, swapColumns: se, setColumnsToggle: Y } = Ml(), [ce, J] = Je(!1), te = Un(null);
|
|
7763
7763
|
if (!va(s)) return null;
|
|
7764
7764
|
let oe = l ?? Ll(r), de = typeof oe == "string" ? oe : void 0, ne = g && E ? (p) => {
|
|
@@ -7778,13 +7778,13 @@ function $x({ className: i, style: t, accessor: r, visibleMediaQuery: s, title:
|
|
|
7778
7778
|
};
|
|
7779
7779
|
return R.jsxs(jo, { className: vt({ "mantine-datatable-header-cell-sortable": g, "mantine-datatable-header-cell-toggleable": c, "mantine-datatable-header-cell-resizable": b }, i), style: [{ width: L, ...b ? { minWidth: "1px" } : { minWidth: L, maxWidth: L } }, t], role: g ? "button" : void 0, tabIndex: g ? 0 : void 0, onClick: ne, onKeyDown: (p) => p.key === "Enter" && (ne == null ? void 0 : ne()), ref: te, children: [R.jsxs(sr, { className: "mantine-datatable-header-cell-sortable-group", justify: "space-between", wrap: "nowrap", children: [R.jsxs(Uy, { align: "center", w: "100%", className: vt({ "mantine-datatable-header-cell-draggable": f, "mantine-datatable-header-cell-drag-over": ce }), draggable: f, onDragStart: f ? Se : void 0, onDragEnter: f ? I : void 0, onDragOver: f ? Ce : void 0, onDrop: f ? B : void 0, onDragLeave: f ? A : void 0, children: [f ? R.jsx(Di, { role: "img", "aria-label": "Drag column", children: R.jsx(Gs, { className: "mantine-datatable-header-cell-draggable-action-icon", variant: "subtle", size: "xs", onClick: (p) => {
|
|
7780
7780
|
p.stopPropagation();
|
|
7781
|
-
}, children: R.jsx(kx, {}) }) }) : null, R.jsx(zt, { className: vt("mantine-datatable-header-cell-sortable-text", { [ma]: O === "left", [ya]: O === "center", [wa]: O === "right" }, kl, Il), title: de, children: oe })] }), c ? R.jsx(Di, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: R.jsx(Gs, { size: "xs", variant: "light", onClick: v, children: R.jsx(Ix, {}) }) }) : null, g || (k == null ? void 0 : k.columnAccessor) === r ? R.jsx(R.Fragment, { children: (k == null ? void 0 : k.columnAccessor) === r ? R.jsx(Di, { className: vt("mantine-datatable-header-cell-sortable-icon", { "mantine-datatable-header-cell-sortable-icon-reversed": k.direction === "desc" }), role: "img", "aria-label": `Sorted ${k.direction === "desc" ? "descending" : "ascending"}`, children: (C == null ? void 0 : C.sorted) || R.jsx(Mx, {}) }) : R.jsx(Di, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: (C == null ? void 0 : C.unsorted) || R.jsx(Lx, {}) }) }) : null, M ? R.jsx(Tx, { filterPopoverProps: T, isActive: !!
|
|
7781
|
+
}, children: R.jsx(kx, {}) }) }) : null, R.jsx(zt, { className: vt("mantine-datatable-header-cell-sortable-text", { [ma]: O === "left", [ya]: O === "center", [wa]: O === "right" }, kl, Il), title: de, children: oe })] }), c ? R.jsx(Di, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: R.jsx(Gs, { size: "xs", variant: "light", onClick: v, children: R.jsx(Ix, {}) }) }) : null, g || (k == null ? void 0 : k.columnAccessor) === r ? R.jsx(R.Fragment, { children: (k == null ? void 0 : k.columnAccessor) === r ? R.jsx(Di, { className: vt("mantine-datatable-header-cell-sortable-icon", { "mantine-datatable-header-cell-sortable-icon-reversed": k.direction === "desc" }), role: "img", "aria-label": `Sorted ${k.direction === "desc" ? "descending" : "ascending"}`, children: (C == null ? void 0 : C.sorted) || R.jsx(Mx, {}) }) : R.jsx(Di, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: (C == null ? void 0 : C.unsorted) || R.jsx(Lx, {}) }) }) : null, M ? R.jsx(Tx, { filterPopoverProps: T, isActive: !!P, children: M }) : null] }), b ? R.jsx(Ex, { accessor: r, columnRef: te }) : null] });
|
|
7782
7782
|
}
|
|
7783
7783
|
var Px = $o(function({ className: i, style: t, trigger: r, shadowVisible: s, checked: l, indeterminate: g, checkboxProps: f, onChange: c, rowSpan: b }, C) {
|
|
7784
7784
|
let O = !f.disabled;
|
|
7785
7785
|
return R.jsx(jo, { ref: C, className: vt("mantine-datatable-header-selector-cell", { [Ni]: r === "cell" && O }, i), style: t, rowSpan: b, "data-shadow-visible": s || void 0, onClick: r === "cell" && O ? c : void 0, children: R.jsx(No, { classNames: O ? { input: Ni } : void 0, checked: l, indeterminate: g, onChange: c, ...f, disabled: !(c || f.onChange) || f.disabled }) });
|
|
7786
|
-
}), Nx = $o(function({ selectionColumnHeaderRef: i, className: t, style: r, sortStatus: s, sortIcons: l, onSortStatusChange: g, columns: f, defaultColumnProps: c, groups: b, selectionTrigger: C, selectionVisible: O, selectionChecked: L, selectionIndeterminate: k, onSelectionChange: E, selectionCheckboxProps: M, selectorCellShadowVisible: T, selectionColumnClassName:
|
|
7787
|
-
let Q = O ? R.jsx(Px, { ref: i, className:
|
|
7786
|
+
}), Nx = $o(function({ selectionColumnHeaderRef: i, className: t, style: r, sortStatus: s, sortIcons: l, onSortStatusChange: g, columns: f, defaultColumnProps: c, groups: b, selectionTrigger: C, selectionVisible: O, selectionChecked: L, selectionIndeterminate: k, onSelectionChange: E, selectionCheckboxProps: M, selectorCellShadowVisible: T, selectionColumnClassName: P, selectionColumnStyle: K }, X) {
|
|
7787
|
+
let Q = O ? R.jsx(Px, { ref: i, className: P, style: K, trigger: C, shadowVisible: T, checked: L, indeterminate: k, checkboxProps: M, onChange: E, rowSpan: b ? 2 : void 0 }) : null, { columnsToggle: se, setColumnsToggle: Y } = Ml(), [ce, J] = Je(!1), te = f.some((ne) => ne.toggleable), oe = te ? Object.fromEntries(f.map(({ accessor: ne, title: Se }) => [ne, Se ?? Ll(String(ne))])) : void 0, de = R.jsxs(jy, { className: vt("mantine-datatable-header", t), style: r, ref: X, onContextMenu: te ? (ne) => {
|
|
7788
7788
|
ne.preventDefault(), J((Se) => !Se);
|
|
7789
7789
|
} : void 0, children: [b && R.jsxs(ii, { children: [Q, b.map((ne) => R.jsx(Ox, { group: ne }, ne.id))] }), R.jsxs(ii, { children: [!b && Q, f.map(({ hidden: ne, ...Se }, Ce) => {
|
|
7790
7790
|
if (ne) return null;
|
|
@@ -7820,14 +7820,14 @@ function Fx({ size: i, label: t, values: r, value: s, activeTextColor: l, active
|
|
|
7820
7820
|
return R.jsx(Wy, { className: vt({ "mantine-datatable-page-size-selector-active": b }), style: [{ height: Zh[i] }, b && (l || g) ? (C) => Yd({ theme: C, paginationActiveTextColor: l, paginationActiveBackgroundColor: g }) : void 0], disabled: b, onClick: () => f(c), children: R.jsx(Eo, { component: "div", size: i, children: c }) }, c);
|
|
7821
7821
|
}) })] })] });
|
|
7822
7822
|
}
|
|
7823
|
-
var Wx = $o(function({ className: i, style: t, fetching: r, page: s, onPageChange: l, paginationWithEdges: g, paginationWithControls: f, paginationActiveTextColor: c, paginationActiveBackgroundColor: b, paginationSize: C, loadingText: O, noRecordsText: L, paginationText: k, totalRecords: E, recordsPerPage: M, onRecordsPerPageChange: T, recordsPerPageLabel:
|
|
7823
|
+
var Wx = $o(function({ className: i, style: t, fetching: r, page: s, onPageChange: l, paginationWithEdges: g, paginationWithControls: f, paginationActiveTextColor: c, paginationActiveBackgroundColor: b, paginationSize: C, loadingText: O, noRecordsText: L, paginationText: k, totalRecords: E, recordsPerPage: M, onRecordsPerPageChange: T, recordsPerPageLabel: P, recordsPerPageOptions: K, recordsLength: X, horizontalSpacing: Q, paginationWrapBreakpoint: se, getPaginationControlProps: Y }, ce) {
|
|
7824
7824
|
let J;
|
|
7825
7825
|
if (E) {
|
|
7826
7826
|
let oe = (s - 1) * M + 1, de = oe + (X || 0) - 1;
|
|
7827
7827
|
J = k({ from: oe, to: de, totalRecords: E });
|
|
7828
7828
|
} else J = r ? O : L;
|
|
7829
7829
|
let te = va(({ breakpoints: oe }) => `(min-width: ${typeof se == "number" ? `${Bn(se)}rem` : oe[se] || se})`);
|
|
7830
|
-
return R.jsxs(zt, { ref: ce, px: Q ?? "xs", py: "xs", className: vt("mantine-datatable-pagination", i), style: [{ flexDirection: te ? "row" : "column" }, t], children: [R.jsx(Eo, { component: "div", className: "mantine-datatable-pagination-text", size: C, children: J }), K && R.jsx(Fx, { activeTextColor: c, activeBackgroundColor: b, size: C, label:
|
|
7830
|
+
return R.jsxs(zt, { ref: ce, px: Q ?? "xs", py: "xs", className: vt("mantine-datatable-pagination", i), style: [{ flexDirection: te ? "row" : "column" }, t], children: [R.jsx(Eo, { component: "div", className: "mantine-datatable-pagination-text", size: C, children: J }), K && R.jsx(Fx, { activeTextColor: c, activeBackgroundColor: b, size: C, label: P, values: K, value: M, onChange: T }), R.jsx(By, { classNames: { root: vt("mantine-datatable-pagination-pages", { "mantine-datatable-pagination-pages-fetching": r || !X }), control: "mantine-datatable-pagination-pages-control" }, style: c || b ? (oe) => Yd({ theme: oe, paginationActiveTextColor: c, paginationActiveBackgroundColor: b }) : void 0, withEdges: g, withControls: f, value: s, onChange: l, size: C, total: Math.ceil(E / M), getControlProps: Y })] });
|
|
7831
7831
|
});
|
|
7832
7832
|
function Yx({ className: i, style: t, visibleMediaQuery: r, record: s, index: l, onClick: g, onDoubleClick: f, onContextMenu: c, noWrap: b, ellipsis: C, textAlign: O, width: L, accessor: k, render: E, defaultRender: M, customCellAttributes: T }) {
|
|
7833
7833
|
return va(r) ? R.jsx(bl, { className: vt({ [kl]: b || C, [Il]: C, [Ni]: g || f, [Wd]: c, [ma]: O === "left", [ya]: O === "center", [wa]: O === "right" }, i), style: [{ width: L, minWidth: L, maxWidth: L }, t], onClick: g, onDoubleClick: f, onContextMenu: c, ...T == null ? void 0 : T(s, l), children: E ? E(s, l) : M ? M(s, l, k) : Fd(s, k) }) : null;
|
|
@@ -7842,19 +7842,19 @@ function Hx({ className: i, style: t, record: r, index: s, trigger: l, onChange:
|
|
|
7842
7842
|
};
|
|
7843
7843
|
return R.jsx(bl, { className: vt("mantine-datatable-row-selector-cell", { [Ni]: l === "cell" && L }, i), style: t, "data-shadow-visible": f || void 0, onClick: k, children: R.jsx(No, { classNames: L ? { input: Ni } : void 0, onChange: g, ...C, ...O }) });
|
|
7844
7844
|
}
|
|
7845
|
-
function Gx({ record: i, index: t, columns: r, defaultColumnProps: s, defaultColumnRender: l, selectionTrigger: g, selectionVisible: f, selectionChecked: c, onSelectionChange: b, isRecordSelectable: C, selectionCheckboxProps: O, getSelectionCheckboxProps: L, onClick: k, onDoubleClick: E, onContextMenu: M, onCellClick: T, onCellDoubleClick:
|
|
7845
|
+
function Gx({ record: i, index: t, columns: r, defaultColumnProps: s, defaultColumnRender: l, selectionTrigger: g, selectionVisible: f, selectionChecked: c, onSelectionChange: b, isRecordSelectable: C, selectionCheckboxProps: O, getSelectionCheckboxProps: L, onClick: k, onDoubleClick: E, onContextMenu: M, onCellClick: T, onCellDoubleClick: P, onCellContextMenu: K, expansion: X, customAttributes: Q, color: se, backgroundColor: Y, className: ce, style: J, selectorCellShadowVisible: te, selectionColumnClassName: oe, selectionColumnStyle: de, rowFactory: ne }) {
|
|
7846
7846
|
let Se = R.jsxs(R.Fragment, { children: [f && R.jsx(Hx, { className: oe, style: de, record: i, index: t, trigger: g, withRightShadow: te, checked: c, disabled: !b || (C ? !C(i, t) : !1), onChange: b, checkboxProps: O, getCheckboxProps: L }), r.map(({ hidden: I, hiddenContent: A, ...v }, p) => {
|
|
7847
7847
|
if (I || A) return null;
|
|
7848
7848
|
let { accessor: _, visibleMediaQuery: d, textAlign: m, noWrap: D, ellipsis: q, width: V, render: ue, cellsClassName: he, cellsStyle: me, customCellAttributes: re } = { ...s, ...v };
|
|
7849
|
-
return R.jsx(Yx, { className: typeof he == "function" ? he(i, t) : he, style: me == null ? void 0 : me(i, t), visibleMediaQuery: d, record: i, index: t, onClick: T ? (le) => T({ event: le, record: i, index: t, column: v, columnIndex: p }) : void 0, onDoubleClick:
|
|
7849
|
+
return R.jsx(Yx, { className: typeof he == "function" ? he(i, t) : he, style: me == null ? void 0 : me(i, t), visibleMediaQuery: d, record: i, index: t, onClick: T ? (le) => T({ event: le, record: i, index: t, column: v, columnIndex: p }) : void 0, onDoubleClick: P ? (le) => P({ event: le, record: i, index: t, column: v, columnIndex: p }) : void 0, onContextMenu: K ? (le) => K({ event: le, record: i, index: t, column: v, columnIndex: p }) : void 0, accessor: _, textAlign: m, noWrap: D, ellipsis: q, width: V, render: ue, defaultRender: l, customCellAttributes: re }, _);
|
|
7850
7850
|
})] }), Ce = X && R.jsx(qx, { colSpan: r.filter(({ hidden: I }) => !I).length + (f ? 1 : 0), open: X.isRowExpanded(i), content: X.content({ record: i, index: t }), collapseProps: X.collapseProps }), B = Vx({ record: i, index: t, selectionChecked: c, onClick: k, onDoubleClick: E, onContextMenu: M, expansion: X, customAttributes: Q, color: se, backgroundColor: Y, className: ce, style: J });
|
|
7851
7851
|
return ne ? ne({ record: i, index: t, rowProps: B, children: Se, expandedElement: Ce }) : R.jsxs(R.Fragment, { children: [R.jsx(ii, { ...B, children: Se }), Ce] });
|
|
7852
7852
|
}
|
|
7853
7853
|
function Vx({ record: i, index: t, selectionChecked: r, onClick: s, onDoubleClick: l, onContextMenu: g, expansion: f, customAttributes: c, color: b, backgroundColor: C, className: O, style: L }) {
|
|
7854
7854
|
return { className: vt("mantine-datatable-row", { [Ni]: s || l || (f == null ? void 0 : f.isExpandable({ record: i, index: t })) && (f == null ? void 0 : f.expandOnClick) }, { [Wd]: g }, typeof O == "function" ? O(i, t) : O), "data-selected": r || void 0, onClick: (k) => {
|
|
7855
7855
|
if (f) {
|
|
7856
|
-
let { isExpandable: E, isRowExpanded: M, expandOnClick: T, expandRow:
|
|
7857
|
-
E({ record: i, index: t }) && T && (M(i) ? K(i) :
|
|
7856
|
+
let { isExpandable: E, isRowExpanded: M, expandOnClick: T, expandRow: P, collapseRow: K } = f;
|
|
7857
|
+
E({ record: i, index: t }) && T && (M(i) ? K(i) : P(i));
|
|
7858
7858
|
}
|
|
7859
7859
|
s == null || s({ event: k, record: i, index: t });
|
|
7860
7860
|
}, onDoubleClick: l ? (k) => l({ event: k, record: i, index: t }) : void 0, onContextMenu: g ? (k) => g({ event: k, record: i, index: t }) : void 0, style: [b || C ? (k) => {
|
|
@@ -7865,8 +7865,8 @@ function Vx({ record: i, index: t, selectionChecked: r, onClick: s, onDoubleClic
|
|
|
7865
7865
|
function Zx({ topShadowVisible: i, leftShadowVisible: t, leftShadowBehind: r, rightShadowVisible: s, rightShadowBehind: l, bottomShadowVisible: g, headerHeight: f, footerHeight: c, onScrollPositionChange: b, children: C, viewportRef: O, scrollAreaProps: L }) {
|
|
7866
7866
|
return R.jsxs(Hy, { ...L, viewportRef: O, 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: b, children: [C, R.jsx(zt, { className: vt("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-top-shadow", { "mantine-datatable-scroll-area-shadow-visible": i }), style: { top: f ? Bn(f) : 0 } }), R.jsx("div", { className: vt("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-left-shadow", { "mantine-datatable-scroll-area-shadow-visible": t, "mantine-datatable-scroll-area-shadow-behind": r }) }), R.jsx("div", { className: vt("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-right-shadow", { "mantine-datatable-scroll-area-shadow-visible": s, "mantine-datatable-scroll-area-shadow-behind": l }) }), R.jsx(zt, { className: vt("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-bottom-shadow", { "mantine-datatable-scroll-area-shadow-visible": g }), style: { bottom: c ? Bn(c + 1) : 0 } })] });
|
|
7867
7867
|
}
|
|
7868
|
-
function Kx({ withTableBorder: i, borderRadius: t, textSelectionDisabled: r, height: s = "100%", minHeight: l, maxHeight: g, shadow: f, verticalAlign: c = "center", fetching: b, columns: C, storeColumnsKey: O, groups: L, pinFirstColumn: k, pinLastColumn: E, defaultColumnProps: M, defaultColumnRender: T, idAccessor:
|
|
7869
|
-
let { ref: Yt, width: Wn, height: Yn } = Oi(), Nr = Pi(() => (L == null ? void 0 : L.flatMap((He) => He.columns)) ?? C, [C, L]), Bo = hx({ key: O, columns: Nr }), { ref: xa, height: fr } = Oi(), { ref: Sa, width: hr, height: jr } = Oi(), { ref: Ca, height: Aa } = Oi(), { ref: Uo, height: Yi } = Oi(), { ref: zo, width: Oa } = Oi(), Da = Qu(Sa, et), Ra = Qu(Yt, un), [qi, Hi] = Je(!0), [ci, Gi] = Je(!0), [qn, Fo] = Je(!0), [Br, Ur] = Je(!0), Wo = _x({ rowExpansion: Jt, records: K, idAccessor:
|
|
7868
|
+
function Kx({ withTableBorder: i, borderRadius: t, textSelectionDisabled: r, height: s = "100%", minHeight: l, maxHeight: g, shadow: f, verticalAlign: c = "center", fetching: b, columns: C, storeColumnsKey: O, groups: L, pinFirstColumn: k, pinLastColumn: E, defaultColumnProps: M, defaultColumnRender: T, idAccessor: P = "id", records: K, selectionTrigger: X = "checkbox", selectedRecords: Q, onSelectedRecordsChange: se, selectionColumnClassName: Y, selectionColumnStyle: ce, isRecordSelectable: J, selectionCheckboxProps: te, allRecordsSelectionCheckboxProps: oe = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: de = (Yt, Wn) => ({ "aria-label": `Select record ${Wn + 1}` }), sortStatus: ne, sortIcons: Se, onSortStatusChange: Ce, horizontalSpacing: B, page: I, onPageChange: A, totalRecords: v, recordsPerPage: p, onRecordsPerPageChange: _, recordsPerPageOptions: d, recordsPerPageLabel: m = "Records per page", paginationWithEdges: D, paginationWithControls: q, paginationActiveTextColor: V, paginationActiveBackgroundColor: ue, paginationSize: he = "sm", paginationText: me = ({ from: Yt, to: Wn, totalRecords: Yn }) => `${Yt} - ${Wn} / ${Yn}`, paginationWrapBreakpoint: re = "sm", getPaginationControlProps: le = (Yt) => Yt === "previous" ? { "aria-label": "Previous page" } : Yt === "next" ? { "aria-label": "Next page" } : {}, loaderBackgroundBlur: xe, customLoader: we, loaderSize: j, loaderType: W, loaderColor: F, loadingText: Z = "...", emptyState: ae, noRecordsText: Ae = "No records", noRecordsIcon: u, highlightOnHover: h, striped: w, noHeader: N, onRowClick: U, onRowDoubleClick: ee, onRowContextMenu: _e, onCellClick: De, onCellDoubleClick: Te, onCellContextMenu: be, onScroll: Ee, onScrollToTop: Ie, onScrollToBottom: Me, onScrollToLeft: Ge, onScrollToRight: Ye, c: Xe, backgroundColor: ft, borderColor: bt, rowBorderColor: at, stripedColor: xt, highlightOnHoverColor: Sn, rowColor: zn, rowBackgroundColor: wt, rowExpansion: Jt, rowClassName: Cn, rowStyle: Fn, customRowAttributes: Mn, scrollViewportRef: un, scrollAreaProps: ln, tableRef: et, bodyRef: Wt, m: ht, my: Ot, mx: ur, mt: lr, mb: cr, ml: ai, mr: ui, className: li, classNames: Dt, style: _a, styles: Rt, rowFactory: ba, tableWrapper: Fi, ...Wi }) {
|
|
7869
|
+
let { ref: Yt, width: Wn, height: Yn } = Oi(), Nr = Pi(() => (L == null ? void 0 : L.flatMap((He) => He.columns)) ?? C, [C, L]), Bo = hx({ key: O, columns: Nr }), { ref: xa, height: fr } = Oi(), { ref: Sa, width: hr, height: jr } = Oi(), { ref: Ca, height: Aa } = Oi(), { ref: Uo, height: Yi } = Oi(), { ref: zo, width: Oa } = Oi(), Da = Qu(Sa, et), Ra = Qu(Yt, un), [qi, Hi] = Je(!0), [ci, Gi] = Je(!0), [qn, Fo] = Je(!0), [Br, Ur] = Je(!0), Wo = _x({ rowExpansion: Jt, records: K, idAccessor: P }), Vi = jn(() => {
|
|
7870
7870
|
var pr, gr;
|
|
7871
7871
|
let He = ((pr = Yt.current) == null ? void 0 : pr.scrollTop) ?? 0, Xt = ((gr = Yt.current) == null ? void 0 : gr.scrollLeft) ?? 0;
|
|
7872
7872
|
if (b || jr <= Yn) Hi(!0), Gi(!0);
|
|
@@ -7886,18 +7886,18 @@ function Kx({ withTableBorder: i, borderRadius: t, textSelectionDisabled: r, hei
|
|
|
7886
7886
|
}, [Zi, Ee]), Ki = jn((He) => {
|
|
7887
7887
|
var Xt;
|
|
7888
7888
|
(Xt = Yt.current) == null || Xt.scrollTo({ top: 0, left: 0 }), A(He);
|
|
7889
|
-
}, [A, Yt]), fi = K == null ? void 0 : K.length, Qi = K == null ? void 0 : K.map((He) => Bt(He,
|
|
7890
|
-
Q && se && se(hi ? Q.filter((He) => !zr.includes(Bt(He,
|
|
7891
|
-
}, [hi,
|
|
7892
|
-
return R.jsx(Vh, { ...Bo, children: R.jsxs(zt, { ...Ta, className: vt("mantine-datatable", { "mantine-datatable-with-border": i }, li, Dt == null ? void 0 : Dt.root), style: [(He) => ({ ...Bx({ theme: He, c: Xe, backgroundColor: ft, borderColor: bt, rowBorderColor: at, stripedColor: xt, highlightOnHoverColor: Sn }), borderRadius: He.radius[t] || t, boxShadow: He.shadows[f] || f, height: s, minHeight: l, maxHeight: g }), _a, Rt == null ? void 0 : Rt.root, { position: "relative" }], children: [R.jsx(Zx, { viewportRef: Ra, topShadowVisible: !qi, leftShadowVisible: !qn, leftShadowBehind: Ln || !!k, rightShadowVisible: !Br, rightShadowBehind: E, bottomShadowVisible: !ci, headerHeight: fr, footerHeight: Aa, onScrollPositionChange: Yo, scrollAreaProps: ln, children: R.jsx(Ea, { children: R.jsxs(qy, { ref: Da, horizontalSpacing: B, className: vt("mantine-datatable-table", { [xx]: r, "mantine-datatable-vertical-align-top": c === "top", "mantine-datatable-vertical-align-bottom": c === "bottom", "mantine-datatable-last-row-border-bottom-visible": Wi.withRowBorders && jr < Yn, "mantine-datatable-pin-last-column": E, "mantine-datatable-pin-last-column-scrolled": !Br && E, "mantine-datatable-selection-column-visible": Ln, "mantine-datatable-pin-first-column": k, "mantine-datatable-pin-first-column-scrolled": !qn && k }, Dt == null ? void 0 : Dt.table), style: { ...Rt == null ? void 0 : Rt.table, "--mantine-datatable-selection-column-width": `${Oa}px` }, "data-striped": fi && w || void 0, "data-highlight-on-hover": h || void 0, ...Wi, children: [
|
|
7893
|
-
let pr = Bt(He,
|
|
7889
|
+
}, [A, Yt]), fi = K == null ? void 0 : K.length, Qi = K == null ? void 0 : K.map((He) => Bt(He, P)), Ln = !!Q, An = Q == null ? void 0 : Q.map((He) => Bt(He, P)), Hn = Qi !== void 0 && An !== void 0 && An.length > 0, dr = J ? K == null ? void 0 : K.filter(J) : K, zr = dr == null ? void 0 : dr.map((He) => Bt(He, P)), hi = Hn && zr.every((He) => An.includes(He)), qo = Hn && zr.some((He) => An.includes(He)), Ho = jn(() => {
|
|
7890
|
+
Q && se && se(hi ? Q.filter((He) => !zr.includes(Bt(He, P))) : Zu([...Q, ...dr], (He) => Bt(He, P)));
|
|
7891
|
+
}, [hi, P, se, zr, dr, Q]), { lastSelectionChangeIndex: Fr, setLastSelectionChangeIndex: Go } = px(Qi), Ji = Ln && !qn && !k, Ta = { m: ht, my: Ot, mx: ur, mt: lr, mb: cr, ml: ai, mr: ui }, Ea = jn(({ children: He }) => Fi ? Fi({ children: He }) : He, [Fi]);
|
|
7892
|
+
return R.jsx(Vh, { ...Bo, children: R.jsxs(zt, { ...Ta, className: vt("mantine-datatable", { "mantine-datatable-with-border": i }, li, Dt == null ? void 0 : Dt.root), style: [(He) => ({ ...Bx({ theme: He, c: Xe, backgroundColor: ft, borderColor: bt, rowBorderColor: at, stripedColor: xt, highlightOnHoverColor: Sn }), borderRadius: He.radius[t] || t, boxShadow: He.shadows[f] || f, height: s, minHeight: l, maxHeight: g }), _a, Rt == null ? void 0 : Rt.root, { position: "relative" }], children: [R.jsx(Zx, { viewportRef: Ra, topShadowVisible: !qi, leftShadowVisible: !qn, leftShadowBehind: Ln || !!k, rightShadowVisible: !Br, rightShadowBehind: E, bottomShadowVisible: !ci, headerHeight: fr, footerHeight: Aa, onScrollPositionChange: Yo, scrollAreaProps: ln, children: R.jsx(Ea, { children: R.jsxs(qy, { ref: Da, horizontalSpacing: B, className: vt("mantine-datatable-table", { [xx]: r, "mantine-datatable-vertical-align-top": c === "top", "mantine-datatable-vertical-align-bottom": c === "bottom", "mantine-datatable-last-row-border-bottom-visible": Wi.withRowBorders && jr < Yn, "mantine-datatable-pin-last-column": E, "mantine-datatable-pin-last-column-scrolled": !Br && E, "mantine-datatable-selection-column-visible": Ln, "mantine-datatable-pin-first-column": k, "mantine-datatable-pin-first-column-scrolled": !qn && k }, Dt == null ? void 0 : Dt.table), style: { ...Rt == null ? void 0 : Rt.table, "--mantine-datatable-selection-column-width": `${Oa}px` }, "data-striped": fi && w || void 0, "data-highlight-on-hover": h || void 0, ...Wi, children: [N ? null : R.jsx(Vh, { ...Bo, children: R.jsx(Nx, { ref: xa, selectionColumnHeaderRef: zo, className: Dt == null ? void 0 : Dt.header, style: Rt == null ? void 0 : Rt.header, columns: Nr, defaultColumnProps: M, groups: L, sortStatus: ne, sortIcons: Se, onSortStatusChange: Ce, selectionTrigger: X, selectionVisible: Ln, selectionChecked: hi, selectionIndeterminate: qo && !hi, onSelectionChange: Ho, selectionCheckboxProps: { ...te, ...oe }, selectorCellShadowVisible: Ji, selectionColumnClassName: Y, selectionColumnStyle: ce }) }), R.jsx("tbody", { ref: Wt, children: fi ? K.map((He, Xt) => {
|
|
7893
|
+
let pr = Bt(He, P), gr = (An == null ? void 0 : An.includes(pr)) || !1, cn;
|
|
7894
7894
|
return se && Q && (cn = (en) => {
|
|
7895
7895
|
if (en.nativeEvent.shiftKey && Fr !== null) {
|
|
7896
7896
|
let vr = K.filter(Xt > Fr ? (Gn, Vn) => Vn >= Fr && Vn <= Xt && (J ? J(Gn, Vn) : !0) : (Gn, Vn) => Vn >= Xt && Vn <= Fr && (J ? J(Gn, Vn) : !0));
|
|
7897
|
-
se(gr ? wx(Q, vr, (Gn) => Bt(Gn,
|
|
7898
|
-
} else se(gr ? Q.filter((vr) => Bt(vr,
|
|
7897
|
+
se(gr ? wx(Q, vr, (Gn) => Bt(Gn, P)) : Zu([...Q, ...vr], (Gn) => Bt(Gn, P)));
|
|
7898
|
+
} else se(gr ? Q.filter((vr) => Bt(vr, P) !== pr) : Zu([...Q, He], (vr) => Bt(vr, P)));
|
|
7899
7899
|
Go(Xt);
|
|
7900
|
-
}), R.jsx(Gx, { record: He, index: Xt, columns: Nr, defaultColumnProps: M, defaultColumnRender: T, selectionTrigger: X, selectionVisible: Ln, selectionChecked: gr, onSelectionChange: cn, isRecordSelectable: J, selectionCheckboxProps: te, getSelectionCheckboxProps: de, onClick: U, onDoubleClick: ee, onCellClick: De, onCellDoubleClick: Te, onContextMenu: _e, onCellContextMenu: be, expansion: Wo, color: zn, backgroundColor: wt, className: Cn, style: Fn, customAttributes: Mn, selectorCellShadowVisible: Ji, selectionColumnClassName: Y, selectionColumnStyle: ce, idAccessor:
|
|
7900
|
+
}), R.jsx(Gx, { record: He, index: Xt, columns: Nr, defaultColumnProps: M, defaultColumnRender: T, selectionTrigger: X, selectionVisible: Ln, selectionChecked: gr, onSelectionChange: cn, isRecordSelectable: J, selectionCheckboxProps: te, getSelectionCheckboxProps: de, onClick: U, onDoubleClick: ee, onCellClick: De, onCellDoubleClick: Te, onContextMenu: _e, onCellContextMenu: be, expansion: Wo, color: zn, backgroundColor: wt, className: Cn, style: Fn, customAttributes: Mn, selectorCellShadowVisible: Ji, selectionColumnClassName: Y, selectionColumnStyle: ce, idAccessor: P, rowFactory: ba }, pr);
|
|
7901
7901
|
}) : R.jsx(lx, {}) }), Nr.some(({ footer: He }) => He) && R.jsx(Ax, { ref: Ca, className: Dt == null ? void 0 : Dt.footer, style: Rt == null ? void 0 : Rt.footer, columns: Nr, defaultColumnProps: M, selectionVisible: Ln, selectorCellShadowVisible: Ji, scrollDiff: jr - Yn })] }) }) }), I && R.jsx(Wx, { ref: Uo, className: Dt == null ? void 0 : Dt.pagination, style: Rt == null ? void 0 : Rt.pagination, horizontalSpacing: B, fetching: b, page: I, onPageChange: Ki, totalRecords: v, recordsPerPage: p, onRecordsPerPageChange: _, recordsPerPageOptions: d, recordsPerPageLabel: m, paginationWithEdges: D, paginationWithControls: q, paginationActiveTextColor: V, paginationActiveBackgroundColor: ue, paginationSize: he, paginationText: me, paginationWrapBreakpoint: re, getPaginationControlProps: le, noRecordsText: Ae, loadingText: Z, recordsLength: fi }), R.jsx(jx, { pt: fr, pb: Yi, fetching: b, backgroundBlur: xe, customContent: we, size: j, type: W, color: F }), R.jsx(fx, { pt: fr, pb: Yi, icon: u, text: Ae, active: !b && !fi, children: ae })] }) });
|
|
7902
7902
|
}
|
|
7903
7903
|
var Qx = $o(function({ children: i, isDragging: t, ...r }, s) {
|
|
@@ -7925,9 +7925,9 @@ var Jx = Do.exports, Kh;
|
|
|
7925
7925
|
function Xx() {
|
|
7926
7926
|
return Kh || (Kh = 1, function(i, t) {
|
|
7927
7927
|
(function() {
|
|
7928
|
-
var r, s = "4.17.21", l = 200, g = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", f = "Expected a function", c = "Invalid `variable` option passed into `_.template`", b = "__lodash_hash_undefined__", C = 500, O = "__lodash_placeholder__", L = 1, k = 2, E = 4, M = 1, T = 2,
|
|
7928
|
+
var r, s = "4.17.21", l = 200, g = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", f = "Expected a function", c = "Invalid `variable` option passed into `_.template`", b = "__lodash_hash_undefined__", C = 500, O = "__lodash_placeholder__", L = 1, k = 2, E = 4, M = 1, T = 2, P = 1, K = 2, X = 4, Q = 8, se = 16, Y = 32, ce = 64, J = 128, te = 256, oe = 512, de = 30, ne = "...", Se = 800, Ce = 16, B = 1, I = 2, A = 3, v = 1 / 0, p = 9007199254740991, _ = 17976931348623157e292, d = NaN, m = 4294967295, D = m - 1, q = m >>> 1, V = [
|
|
7929
7929
|
["ary", J],
|
|
7930
|
-
["bind",
|
|
7930
|
+
["bind", P],
|
|
7931
7931
|
["bindKey", K],
|
|
7932
7932
|
["curry", Q],
|
|
7933
7933
|
["curryRight", se],
|
|
@@ -7935,7 +7935,7 @@ function Xx() {
|
|
|
7935
7935
|
["partial", Y],
|
|
7936
7936
|
["partialRight", ce],
|
|
7937
7937
|
["rearg", te]
|
|
7938
|
-
], ue = "[object Arguments]", he = "[object Array]", me = "[object AsyncFunction]", re = "[object Boolean]", le = "[object Date]", xe = "[object DOMException]", we = "[object Error]", j = "[object Function]", W = "[object GeneratorFunction]", F = "[object Map]", Z = "[object Number]", ae = "[object Null]", Ae = "[object Object]", u = "[object Promise]", h = "[object Proxy]", w = "[object RegExp]",
|
|
7938
|
+
], ue = "[object Arguments]", he = "[object Array]", me = "[object AsyncFunction]", re = "[object Boolean]", le = "[object Date]", xe = "[object DOMException]", we = "[object Error]", j = "[object Function]", W = "[object GeneratorFunction]", F = "[object Map]", Z = "[object Number]", ae = "[object Null]", Ae = "[object Object]", u = "[object Promise]", h = "[object Proxy]", w = "[object RegExp]", N = "[object Set]", U = "[object String]", ee = "[object Symbol]", _e = "[object Undefined]", De = "[object WeakMap]", Te = "[object WeakSet]", be = "[object ArrayBuffer]", Ee = "[object DataView]", Ie = "[object Float32Array]", Me = "[object Float64Array]", Ge = "[object Int8Array]", Ye = "[object Int16Array]", Xe = "[object Int32Array]", ft = "[object Uint8Array]", bt = "[object Uint8ClampedArray]", at = "[object Uint16Array]", xt = "[object Uint32Array]", Sn = /\b__p \+= '';/g, zn = /\b(__p \+=) '' \+/g, wt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Jt = /&(?:amp|lt|gt|quot|#39);/g, Cn = /[&<>"']/g, Fn = RegExp(Jt.source), Mn = RegExp(Cn.source), un = /<%-([\s\S]+?)%>/g, ln = /<%([\s\S]+?)%>/g, et = /<%=([\s\S]+?)%>/g, Wt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ht = /^\w*$/, Ot = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ur = /[\\^$.*+?()[\]{}|]/g, lr = RegExp(ur.source), cr = /^\s+/, ai = /\s/, ui = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, li = /\{\n\/\* \[wrapped with (.+)\] \*/, Dt = /,? & /, _a = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Rt = /[()=,{}\[\]\/\s]/, ba = /\\(\\)?/g, Fi = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Wi = /\w*$/, Yt = /^[-+]0x[0-9a-f]+$/i, Wn = /^0b[01]+$/i, Yn = /^\[object .+?Constructor\]$/, Nr = /^0o[0-7]+$/i, Bo = /^(?:0|[1-9]\d*)$/, xa = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, fr = /($^)/, Sa = /['\n\r\u2028\u2029\\]/g, hr = "\\ud800-\\udfff", jr = "\\u0300-\\u036f", Ca = "\\ufe20-\\ufe2f", Aa = "\\u20d0-\\u20ff", Uo = jr + Ca + Aa, Yi = "\\u2700-\\u27bf", zo = "a-z\\xdf-\\xf6\\xf8-\\xff", Oa = "\\xac\\xb1\\xd7\\xf7", Da = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Ra = "\\u2000-\\u206f", qi = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Hi = "A-Z\\xc0-\\xd6\\xd8-\\xde", ci = "\\ufe0e\\ufe0f", Gi = Oa + Da + Ra + qi, qn = "['’]", Fo = "[" + hr + "]", Br = "[" + Gi + "]", Ur = "[" + Uo + "]", Wo = "\\d+", Vi = "[" + Yi + "]", Zi = "[" + zo + "]", Yo = "[^" + hr + Gi + Wo + Yi + zo + Hi + "]", Ki = "\\ud83c[\\udffb-\\udfff]", fi = "(?:" + Ur + "|" + Ki + ")", Qi = "[^" + hr + "]", Ln = "(?:\\ud83c[\\udde6-\\uddff]){2}", An = "[\\ud800-\\udbff][\\udc00-\\udfff]", Hn = "[" + Hi + "]", dr = "\\u200d", zr = "(?:" + Zi + "|" + Yo + ")", hi = "(?:" + Hn + "|" + Yo + ")", qo = "(?:" + qn + "(?:d|ll|m|re|s|t|ve))?", Ho = "(?:" + qn + "(?:D|LL|M|RE|S|T|VE))?", Fr = fi + "?", Go = "[" + ci + "]?", Ji = "(?:" + dr + "(?:" + [Qi, Ln, An].join("|") + ")" + Go + Fr + ")*", Ta = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Ea = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", He = Go + Fr + Ji, Xt = "(?:" + [Vi, Ln, An].join("|") + ")" + He, pr = "(?:" + [Qi + Ur + "?", Ur, Ln, An, Fo].join("|") + ")", gr = RegExp(qn, "g"), cn = RegExp(Ur, "g"), en = RegExp(Ki + "(?=" + Ki + ")|" + pr + He, "g"), vr = RegExp([
|
|
7939
7939
|
Hn + "?" + Zi + "+" + qo + "(?=" + [Br, Hn, "$"].join("|") + ")",
|
|
7940
7940
|
hi + "+" + Ho + "(?=" + [Br, Hn + zr, "$"].join("|") + ")",
|
|
7941
7941
|
Hn + "?" + zr + "+" + qo,
|
|
@@ -7976,9 +7976,9 @@ function Xx() {
|
|
|
7976
7976
|
"parseInt",
|
|
7977
7977
|
"setTimeout"
|
|
7978
7978
|
], Hd = -1, lt = {};
|
|
7979
|
-
lt[Ie] = lt[Me] = lt[Ge] = lt[Ye] = lt[Xe] = lt[ft] = lt[bt] = lt[at] = lt[xt] = !0, lt[ue] = lt[he] = lt[be] = lt[re] = lt[Ee] = lt[le] = lt[we] = lt[j] = lt[F] = lt[Z] = lt[Ae] = lt[w] = lt[
|
|
7979
|
+
lt[Ie] = lt[Me] = lt[Ge] = lt[Ye] = lt[Xe] = lt[ft] = lt[bt] = lt[at] = lt[xt] = !0, lt[ue] = lt[he] = lt[be] = lt[re] = lt[Ee] = lt[le] = lt[we] = lt[j] = lt[F] = lt[Z] = lt[Ae] = lt[w] = lt[N] = lt[U] = lt[De] = !1;
|
|
7980
7980
|
var ut = {};
|
|
7981
|
-
ut[ue] = ut[he] = ut[be] = ut[Ee] = ut[re] = ut[le] = ut[Ie] = ut[Me] = ut[Ge] = ut[Ye] = ut[Xe] = ut[F] = ut[Z] = ut[Ae] = ut[w] = ut[
|
|
7981
|
+
ut[ue] = ut[he] = ut[be] = ut[Ee] = ut[re] = ut[le] = ut[Ie] = ut[Me] = ut[Ge] = ut[Ye] = ut[Xe] = ut[F] = ut[Z] = ut[Ae] = ut[w] = ut[N] = ut[U] = ut[ee] = ut[ft] = ut[bt] = ut[at] = ut[xt] = !0, ut[we] = ut[j] = ut[De] = !1;
|
|
7982
7982
|
var Gd = {
|
|
7983
7983
|
// Latin-1 Supplement block.
|
|
7984
7984
|
À: "A",
|
|
@@ -9031,7 +9031,7 @@ function Xx() {
|
|
|
9031
9031
|
return gt(e) && $t(e) == w;
|
|
9032
9032
|
}
|
|
9033
9033
|
function Mg(e) {
|
|
9034
|
-
return gt(e) && kt(e) ==
|
|
9034
|
+
return gt(e) && kt(e) == N;
|
|
9035
9035
|
}
|
|
9036
9036
|
function Lg(e) {
|
|
9037
9037
|
return gt(e) && Es(e.length) && !!lt[$t(e)];
|
|
@@ -9470,7 +9470,7 @@ function Xx() {
|
|
|
9470
9470
|
};
|
|
9471
9471
|
}
|
|
9472
9472
|
function Kg(e, n, o) {
|
|
9473
|
-
var a = n &
|
|
9473
|
+
var a = n & P, y = co(e);
|
|
9474
9474
|
function S() {
|
|
9475
9475
|
var $ = this && this !== Tt && this instanceof S ? y : e;
|
|
9476
9476
|
return $.apply(a ? o : this, arguments);
|
|
@@ -9577,7 +9577,7 @@ function Xx() {
|
|
|
9577
9577
|
});
|
|
9578
9578
|
}
|
|
9579
9579
|
function ys(e, n, o, a, y, S, $, z, G, pe) {
|
|
9580
|
-
var ge = n & J, ye = n &
|
|
9580
|
+
var ge = n & J, ye = n & P, Oe = n & K, ke = n & (Q | se), Pe = n & oe, Fe = Oe ? r : co(e);
|
|
9581
9581
|
function Ne() {
|
|
9582
9582
|
for (var Ve = arguments.length, Ke = ie(Ve), sn = Ve; sn--; )
|
|
9583
9583
|
Ke[sn] = arguments[sn];
|
|
@@ -9640,7 +9640,7 @@ function Xx() {
|
|
|
9640
9640
|
return pi(n) ? Cr(On(a), 0, e).join("") : a.slice(0, e);
|
|
9641
9641
|
}
|
|
9642
9642
|
function Jg(e, n, o, a) {
|
|
9643
|
-
var y = n &
|
|
9643
|
+
var y = n & P, S = co(e);
|
|
9644
9644
|
function $() {
|
|
9645
9645
|
for (var z = -1, G = arguments.length, pe = -1, ge = a.length, ye = ie(ge + G), Oe = this && this !== Tt && this instanceof $ ? S : e; ++pe < ge; )
|
|
9646
9646
|
ye[pe] = a[pe];
|
|
@@ -9693,7 +9693,7 @@ function Xx() {
|
|
|
9693
9693
|
function Hc(e) {
|
|
9694
9694
|
return function(n) {
|
|
9695
9695
|
var o = kt(n);
|
|
9696
|
-
return o == F ? za(n) : o ==
|
|
9696
|
+
return o == F ? za(n) : o == N ? vp(n) : up(n, e(n));
|
|
9697
9697
|
};
|
|
9698
9698
|
}
|
|
9699
9699
|
function Jn(e, n, o, a, y, S, $, z) {
|
|
@@ -9717,9 +9717,9 @@ function Xx() {
|
|
|
9717
9717
|
$,
|
|
9718
9718
|
z
|
|
9719
9719
|
];
|
|
9720
|
-
if (Oe && p1(ke, Oe), e = ke[0], n = ke[1], o = ke[2], a = ke[3], y = ke[4], z = ke[9] = ke[9] === r ? G ? 0 : e.length : Ct(ke[9] - pe, 0), !z && n & (Q | se) && (n &= -25), !n || n ==
|
|
9720
|
+
if (Oe && p1(ke, Oe), e = ke[0], n = ke[1], o = ke[2], a = ke[3], y = ke[4], z = ke[9] = ke[9] === r ? G ? 0 : e.length : Ct(ke[9] - pe, 0), !z && n & (Q | se) && (n &= -25), !n || n == P)
|
|
9721
9721
|
var Pe = Kg(e, n, o);
|
|
9722
|
-
else n == Q || n == se ? Pe = Qg(e, n, z) : (n == Y || n == (
|
|
9722
|
+
else n == Q || n == se ? Pe = Qg(e, n, z) : (n == Y || n == (P | Y)) && !y.length ? Pe = Jg(e, n, o, a) : Pe = ys.apply(r, ke);
|
|
9723
9723
|
var Fe = Oe ? Oc : rf;
|
|
9724
9724
|
return of(Fe(Pe, ke), e, n);
|
|
9725
9725
|
}
|
|
@@ -9784,7 +9784,7 @@ function Xx() {
|
|
|
9784
9784
|
return e == n + "";
|
|
9785
9785
|
case F:
|
|
9786
9786
|
var z = za;
|
|
9787
|
-
case
|
|
9787
|
+
case N:
|
|
9788
9788
|
var G = a & M;
|
|
9789
9789
|
if (z || (z = Ko), e.size != n.size && !G)
|
|
9790
9790
|
return !1;
|
|
@@ -9893,7 +9893,7 @@ function Xx() {
|
|
|
9893
9893
|
yr(n, vu(e)), e = rs(e);
|
|
9894
9894
|
return n;
|
|
9895
9895
|
} : Iu, kt = $t;
|
|
9896
|
-
(Ya && kt(new Ya(new ArrayBuffer(1))) != Ee || to && kt(new to()) != F || qa && kt(qa.resolve()) != u || yi && kt(new yi()) !=
|
|
9896
|
+
(Ya && kt(new Ya(new ArrayBuffer(1))) != Ee || to && kt(new to()) != F || qa && kt(qa.resolve()) != u || yi && kt(new yi()) != N || no && kt(new no()) != De) && (kt = function(e) {
|
|
9897
9897
|
var n = $t(e), o = n == Ae ? e.constructor : r, a = o ? Kr(o) : "";
|
|
9898
9898
|
if (a)
|
|
9899
9899
|
switch (a) {
|
|
@@ -9904,7 +9904,7 @@ function Xx() {
|
|
|
9904
9904
|
case zp:
|
|
9905
9905
|
return u;
|
|
9906
9906
|
case Fp:
|
|
9907
|
-
return
|
|
9907
|
+
return N;
|
|
9908
9908
|
case Wp:
|
|
9909
9909
|
return De;
|
|
9910
9910
|
}
|
|
@@ -9978,7 +9978,7 @@ function Xx() {
|
|
|
9978
9978
|
return new a(e);
|
|
9979
9979
|
case w:
|
|
9980
9980
|
return qg(e);
|
|
9981
|
-
case
|
|
9981
|
+
case N:
|
|
9982
9982
|
return new a();
|
|
9983
9983
|
case ee:
|
|
9984
9984
|
return Hg(e);
|
|
@@ -10048,10 +10048,10 @@ function Xx() {
|
|
|
10048
10048
|
return n;
|
|
10049
10049
|
}
|
|
10050
10050
|
function p1(e, n) {
|
|
10051
|
-
var o = e[1], a = n[1], y = o | a, S = y < (
|
|
10051
|
+
var o = e[1], a = n[1], y = o | a, S = y < (P | K | J), $ = a == J && o == Q || a == J && o == te && e[7].length <= n[8] || a == (J | te) && n[7].length <= n[8] && o == Q;
|
|
10052
10052
|
if (!(S || $))
|
|
10053
10053
|
return e;
|
|
10054
|
-
a &
|
|
10054
|
+
a & P && (e[2] = n[2], y |= o & P ? 0 : X);
|
|
10055
10055
|
var z = n[3];
|
|
10056
10056
|
if (z) {
|
|
10057
10057
|
var G = e[3];
|
|
@@ -10575,7 +10575,7 @@ function Xx() {
|
|
|
10575
10575
|
if (Ht(e))
|
|
10576
10576
|
return Ms(e) ? gi(e) : e.length;
|
|
10577
10577
|
var n = kt(e);
|
|
10578
|
-
return n == F || n ==
|
|
10578
|
+
return n == F || n == N ? e.size : Xa(e).length;
|
|
10579
10579
|
}
|
|
10580
10580
|
function K0(e, n, o) {
|
|
10581
10581
|
var a = Ue(e) ? $a : Fg;
|
|
@@ -10609,14 +10609,14 @@ function Xx() {
|
|
|
10609
10609
|
};
|
|
10610
10610
|
}
|
|
10611
10611
|
var Su = qe(function(e, n, o) {
|
|
10612
|
-
var a =
|
|
10612
|
+
var a = P;
|
|
10613
10613
|
if (o.length) {
|
|
10614
10614
|
var y = wr(o, Si(Su));
|
|
10615
10615
|
a |= Y;
|
|
10616
10616
|
}
|
|
10617
10617
|
return Jn(e, a, n, o, y);
|
|
10618
10618
|
}), _f = qe(function(e, n, o) {
|
|
10619
|
-
var a =
|
|
10619
|
+
var a = P | K;
|
|
10620
10620
|
if (o.length) {
|
|
10621
10621
|
var y = wr(o, Si(_f));
|
|
10622
10622
|
a |= Y;
|
|
@@ -10818,7 +10818,7 @@ function Xx() {
|
|
|
10818
10818
|
if (Ht(e) && (Ue(e) || typeof e == "string" || typeof e.splice == "function" || Ar(e) || Ci(e) || Qr(e)))
|
|
10819
10819
|
return !e.length;
|
|
10820
10820
|
var n = kt(e);
|
|
10821
|
-
if (n == F || n ==
|
|
10821
|
+
if (n == F || n == N)
|
|
10822
10822
|
return !e.size;
|
|
10823
10823
|
if (fo(e))
|
|
10824
10824
|
return !Xa(e).length;
|
|
@@ -10927,7 +10927,7 @@ function Xx() {
|
|
|
10927
10927
|
return Ms(e) ? On(e) : qt(e);
|
|
10928
10928
|
if (eo && e[eo])
|
|
10929
10929
|
return gp(e[eo]());
|
|
10930
|
-
var n = kt(e), o = n == F ? za : n ==
|
|
10930
|
+
var n = kt(e), o = n == F ? za : n == N ? Ko : Ai;
|
|
10931
10931
|
return o(e);
|
|
10932
10932
|
}
|
|
10933
10933
|
function nr(e) {
|
|
@@ -11600,7 +11600,7 @@ function e4(i) {
|
|
|
11600
11600
|
} = B_(g, l, f), {
|
|
11601
11601
|
mutateAsync: M,
|
|
11602
11602
|
isError: T,
|
|
11603
|
-
error:
|
|
11603
|
+
error: P,
|
|
11604
11604
|
isPending: K
|
|
11605
11605
|
} = Ad(g, l);
|
|
11606
11606
|
let X;
|
|
@@ -11640,12 +11640,12 @@ function e4(i) {
|
|
|
11640
11640
|
v.type === "boolean" && /* @__PURE__ */ R.jsx(No, { mt: "md", label: v.column.title, ...te.getInputProps(v.id, {
|
|
11641
11641
|
type: "checkbox"
|
|
11642
11642
|
}) }, te.key(v.id)),
|
|
11643
|
-
v.type === "custom" && v.render && v.render(te.getValues(), te.
|
|
11643
|
+
v.type === "custom" && v.render && v.render(te.getValues(), te.setValues, L)
|
|
11644
11644
|
] }, v.id);
|
|
11645
11645
|
}, t[17] = te, t[18] = ne) : ne = t[18];
|
|
11646
11646
|
const Se = ne;
|
|
11647
11647
|
let Ce;
|
|
11648
|
-
t[19] !== T || t[20] !== (
|
|
11648
|
+
t[19] !== T || t[20] !== (P == null ? void 0 : P.message) || t[21] !== (P == null ? void 0 : P.name) ? (Ce = T && /* @__PURE__ */ R.jsx(Js, { variant: "outline", color: "red", title: (P == null ? void 0 : P.name) ?? "Fehler aufgetreten", mb: "lg", children: (P == null ? void 0 : P.message) ?? "Fehler aufgetreten" }), t[19] = T, t[20] = P == null ? void 0 : P.message, t[21] = P == null ? void 0 : P.name, t[22] = Ce) : Ce = t[22];
|
|
11649
11649
|
let B;
|
|
11650
11650
|
t[23] !== b || t[24] !== r || t[25] !== te || t[26] !== O || t[27] !== f || t[28] !== E || t[29] !== K || t[30] !== T || t[31] !== s || t[32] !== Se || t[33] !== c || t[34] !== se || t[35] !== M ? (B = E ? /* @__PURE__ */ R.jsxs(_l, { gap: "md", children: [
|
|
11651
11651
|
/* @__PURE__ */ R.jsx(Ri, { height: 40 }),
|
|
@@ -11720,12 +11720,12 @@ function u4(i) {
|
|
|
11720
11720
|
t[7] !== b || t[8] !== c ? (M = c && b.message && /* @__PURE__ */ R.jsx(Js, { variant: "outline", color: "red", title: b.name, children: b.message }), t[7] = b, t[8] = c, t[9] = M) : M = t[9];
|
|
11721
11721
|
let T;
|
|
11722
11722
|
t[10] === Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ R.jsx("br", {}), t[10] = T) : T = t[10];
|
|
11723
|
-
let
|
|
11724
|
-
t[11] !== g[0].id ? (
|
|
11723
|
+
let P;
|
|
11724
|
+
t[11] !== g[0].id ? (P = /* @__PURE__ */ R.jsxs(Eo, { children: [
|
|
11725
11725
|
"Bist du sicher, dass du folgenden Eintrag löschen möchtest?",
|
|
11726
11726
|
T,
|
|
11727
11727
|
g[0].id
|
|
11728
|
-
] }), t[11] = g[0].id, t[12] =
|
|
11728
|
+
] }), t[11] = g[0].id, t[12] = P) : P = t[12];
|
|
11729
11729
|
let K;
|
|
11730
11730
|
t[13] !== l ? (K = /* @__PURE__ */ R.jsx(ar, { onClick: l, variant: "outline", children: "Abbrechen" }), t[13] = l, t[14] = K) : K = t[14];
|
|
11731
11731
|
let X;
|
|
@@ -11740,11 +11740,11 @@ function u4(i) {
|
|
|
11740
11740
|
Q
|
|
11741
11741
|
] }), t[21] = K, t[22] = Q, t[23] = se) : se = t[23];
|
|
11742
11742
|
let Y;
|
|
11743
|
-
return t[24] !== M || t[25] !==
|
|
11743
|
+
return t[24] !== M || t[25] !== P || t[26] !== se ? (Y = /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
11744
11744
|
M,
|
|
11745
|
-
|
|
11745
|
+
P,
|
|
11746
11746
|
se
|
|
11747
|
-
] }), t[24] = M, t[25] =
|
|
11747
|
+
] }), t[24] = M, t[25] = P, t[26] = se, t[27] = Y) : Y = t[27], Y;
|
|
11748
11748
|
}
|
|
11749
11749
|
function l4(i, t) {
|
|
11750
11750
|
const r = bn.c(8);
|
|
@@ -11764,7 +11764,7 @@ function l4(i, t) {
|
|
|
11764
11764
|
}
|
|
11765
11765
|
const Jh = [10, 15, 20, 50, 100];
|
|
11766
11766
|
function c4(i) {
|
|
11767
|
-
const t = bn.c(
|
|
11767
|
+
const t = bn.c(130), {
|
|
11768
11768
|
title: r,
|
|
11769
11769
|
queryKey: s,
|
|
11770
11770
|
connectedQueryKeys: l,
|
|
@@ -11780,7 +11780,7 @@ function c4(i) {
|
|
|
11780
11780
|
createButtonText: M
|
|
11781
11781
|
} = i, {
|
|
11782
11782
|
data: T,
|
|
11783
|
-
isLoading:
|
|
11783
|
+
isLoading: P,
|
|
11784
11784
|
isError: K,
|
|
11785
11785
|
isRefetching: X,
|
|
11786
11786
|
refetch: Q
|
|
@@ -11870,7 +11870,7 @@ function c4(i) {
|
|
|
11870
11870
|
}, t[38] = j, t[39] = b, t[40] = A, t[41] = F) : F = t[41];
|
|
11871
11871
|
let Z;
|
|
11872
11872
|
t[42] !== A ? (Z = [A], t[42] = A, t[43] = Z) : Z = t[43], Qt(F, Z);
|
|
11873
|
-
const [ae, Ae] = Je(!1), [u, h] = Je(!1), [w,
|
|
11873
|
+
const [ae, Ae] = Je(!1), [u, h] = Je(!1), [w, N] = Je(!1), U = r ? "space-between" : "end";
|
|
11874
11874
|
let ee;
|
|
11875
11875
|
t[44] !== r ? (ee = r && (typeof r == "string" ? /* @__PURE__ */ R.jsx(Zy, { order: 4, children: r }) : r), t[44] = r, t[45] = ee) : ee = t[45];
|
|
11876
11876
|
let _e;
|
|
@@ -11887,32 +11887,32 @@ function c4(i) {
|
|
|
11887
11887
|
(L ?? []).map((ht, Ot) => /* @__PURE__ */ Ly(Jr.Item, { ...ht.icon && {
|
|
11888
11888
|
leftSection: ht.icon
|
|
11889
11889
|
}, key: `custom_action_${Ot}`, onClick: () => ht.onClick(j) }, ht.label)),
|
|
11890
|
-
c.find(v4) && /* @__PURE__ */ R.jsx(Jr.Item, { leftSection: /* @__PURE__ */ R.jsx(Jy, { size: 14 }), onClick: () =>
|
|
11890
|
+
c.find(v4) && /* @__PURE__ */ R.jsx(Jr.Item, { leftSection: /* @__PURE__ */ R.jsx(Jy, { size: 14 }), onClick: () => N(!0), color: "red", children: "Löschen" })
|
|
11891
11891
|
] })
|
|
11892
11892
|
] }), t[51] = L, t[52] = c, t[53] = j, t[54] = b, t[55] = be) : be = t[55];
|
|
11893
11893
|
let Ee;
|
|
11894
|
-
t[56] !== M || t[57] !== c ? (Ee = c.find(g4) && /* @__PURE__ */ R.jsx(ar, { onClick: () => Ae(!0), children: M ?? "Erstellen" }), t[56] = M, t[57] = c, t[58] = Ee) : Ee = t[
|
|
11894
|
+
t[56] !== M || t[57] !== c || t[58] !== P ? (Ee = c.find(g4) && /* @__PURE__ */ R.jsx(ar, { onClick: () => Ae(!0), disabled: P, children: M ?? "Erstellen" }), t[56] = M, t[57] = c, t[58] = P, t[59] = Ee) : Ee = t[59];
|
|
11895
11895
|
let Ie;
|
|
11896
|
-
t[
|
|
11896
|
+
t[60] !== f || t[61] !== Te || t[62] !== be || t[63] !== Ee ? (Ie = /* @__PURE__ */ R.jsxs(sr, { align: "center", gap: "xs", children: [
|
|
11897
11897
|
Te,
|
|
11898
11898
|
be,
|
|
11899
11899
|
Ee,
|
|
11900
11900
|
f
|
|
11901
|
-
] }), t[
|
|
11901
|
+
] }), t[60] = f, t[61] = Te, t[62] = be, t[63] = Ee, t[64] = Ie) : Ie = t[64];
|
|
11902
11902
|
let Me;
|
|
11903
|
-
t[
|
|
11903
|
+
t[65] !== U || t[66] !== ee || t[67] !== Ie ? (Me = /* @__PURE__ */ R.jsxs(sr, { gap: "xs", justify: U, align: "center", children: [
|
|
11904
11904
|
ee,
|
|
11905
11905
|
Ie
|
|
11906
|
-
] }), t[
|
|
11906
|
+
] }), t[65] = U, t[66] = ee, t[67] = Ie, t[68] = Me) : Me = t[68];
|
|
11907
11907
|
let Ge;
|
|
11908
|
-
t[
|
|
11908
|
+
t[69] !== K ? (Ge = K && /* @__PURE__ */ R.jsx(Js, { mt: "md", variant: "light", color: "red", title: "Es ist ein Fehler aufgetreten.", icon: /* @__PURE__ */ R.jsx(e2, {}), children: "Bitte versuche es später erneut oder sende eine Nachricht an unseren Support." }), t[69] = K, t[70] = Ge) : Ge = t[70];
|
|
11909
11909
|
let Ye;
|
|
11910
|
-
t[
|
|
11910
|
+
t[71] !== P || t[72] !== X ? (Ye = (P || X) && /* @__PURE__ */ R.jsxs(_l, { my: "md", children: [
|
|
11911
11911
|
/* @__PURE__ */ R.jsx(Ri, { height: 40 }),
|
|
11912
11912
|
Array(5).fill(0).map(p4)
|
|
11913
|
-
] }), t[
|
|
11913
|
+
] }), t[71] = P, t[72] = X, t[73] = Ye) : Ye = t[73];
|
|
11914
11914
|
let Xe;
|
|
11915
|
-
t[
|
|
11915
|
+
t[74] !== c || t[75] !== K || t[76] !== P || t[77] !== X || t[78] !== D || t[79] !== d || t[80] !== C || t[81] !== ue || t[82] !== j || t[83] !== b || t[84] !== m || t[85] !== Ce || t[86] !== A ? (Xe = !P && !X && /* @__PURE__ */ R.jsx(Kx, { my: "md", striped: !0, minHeight: 150, fetching: K, records: ue, sortStatus: Ce, onSortStatusChange: B, ...b && {
|
|
11916
11916
|
selectedRecords: j,
|
|
11917
11917
|
onSelectedRecordsChange: W
|
|
11918
11918
|
}, ...C && ue.length && {
|
|
@@ -11923,46 +11923,46 @@ function c4(i) {
|
|
|
11923
11923
|
recordsPerPageOptions: Jh,
|
|
11924
11924
|
onRecordsPerPageChange: m,
|
|
11925
11925
|
recordsPerPageLabel: "Einträge pro Seite"
|
|
11926
|
-
}, columns: c.map(d4), noRecordsText: "Keine Einträge gefunden" }), t[
|
|
11926
|
+
}, columns: c.map(d4), noRecordsText: "Keine Einträge gefunden" }), t[74] = c, t[75] = K, t[76] = P, t[77] = X, t[78] = D, t[79] = d, t[80] = C, t[81] = ue, t[82] = j, t[83] = b, t[84] = m, t[85] = Ce, t[86] = A, t[87] = Xe) : Xe = t[87];
|
|
11927
11927
|
let ft;
|
|
11928
|
-
t[
|
|
11928
|
+
t[88] === Symbol.for("react.memo_cache_sentinel") ? (ft = () => {
|
|
11929
11929
|
h(!1), W([]);
|
|
11930
|
-
}, t[
|
|
11930
|
+
}, t[88] = ft) : ft = t[88];
|
|
11931
11931
|
const bt = r ?? "Bearbeiten";
|
|
11932
11932
|
let at;
|
|
11933
|
-
t[
|
|
11933
|
+
t[89] !== g || t[90] !== c || t[91] !== s || t[92] !== j[0] || t[93] !== j.length || t[94] !== k ? (at = j.length > 0 && /* @__PURE__ */ R.jsx(e4, { fields: c.filter(h4), queryKey: s, apiPath: g, id: j[0].id, onClose: () => {
|
|
11934
11934
|
h(!1), W([]);
|
|
11935
|
-
}, steps: k }), t[
|
|
11935
|
+
}, steps: k }), t[89] = g, t[90] = c, t[91] = s, t[92] = j[0], t[93] = j.length, t[94] = k, t[95] = at) : at = t[95];
|
|
11936
11936
|
let xt;
|
|
11937
|
-
t[
|
|
11937
|
+
t[96] !== bt || t[97] !== at || t[98] !== u ? (xt = /* @__PURE__ */ R.jsx(Nu, { opened: u, onClose: ft, title: bt, children: at }), t[96] = bt, t[97] = at, t[98] = u, t[99] = xt) : xt = t[99];
|
|
11938
11938
|
let Sn;
|
|
11939
|
-
t[
|
|
11940
|
-
|
|
11941
|
-
}, t[
|
|
11939
|
+
t[100] === Symbol.for("react.memo_cache_sentinel") ? (Sn = () => {
|
|
11940
|
+
N(!1), W([]);
|
|
11941
|
+
}, t[100] = Sn) : Sn = t[100];
|
|
11942
11942
|
const zn = r ?? "Löschen";
|
|
11943
11943
|
let wt;
|
|
11944
|
-
t[
|
|
11945
|
-
|
|
11946
|
-
}, queryKey: s, apiPath: g, selectedRecords: j }), t[
|
|
11944
|
+
t[101] !== g || t[102] !== s || t[103] !== j ? (wt = j.length > 0 && /* @__PURE__ */ R.jsx(u4, { onClose: () => {
|
|
11945
|
+
N(!1), W([]);
|
|
11946
|
+
}, queryKey: s, apiPath: g, selectedRecords: j }), t[101] = g, t[102] = s, t[103] = j, t[104] = wt) : wt = t[104];
|
|
11947
11947
|
let Jt;
|
|
11948
|
-
t[
|
|
11948
|
+
t[105] !== w || t[106] !== zn || t[107] !== wt ? (Jt = /* @__PURE__ */ R.jsx(Nu, { opened: w, onClose: Sn, title: zn, children: wt }), t[105] = w, t[106] = zn, t[107] = wt, t[108] = Jt) : Jt = t[108];
|
|
11949
11949
|
let Cn;
|
|
11950
|
-
t[
|
|
11950
|
+
t[109] === Symbol.for("react.memo_cache_sentinel") ? (Cn = () => {
|
|
11951
11951
|
Ae(!1);
|
|
11952
|
-
}, t[
|
|
11952
|
+
}, t[109] = Cn) : Cn = t[109];
|
|
11953
11953
|
const Fn = r ?? "Anlegen";
|
|
11954
11954
|
let Mn;
|
|
11955
|
-
t[
|
|
11955
|
+
t[110] === Symbol.for("react.memo_cache_sentinel") ? (Mn = () => {
|
|
11956
11956
|
Ae(!1);
|
|
11957
|
-
}, t[
|
|
11957
|
+
}, t[110] = Mn) : Mn = t[110];
|
|
11958
11958
|
let un;
|
|
11959
|
-
t[
|
|
11959
|
+
t[111] !== c ? (un = c.filter(f4), t[111] = c, t[112] = un) : un = t[112];
|
|
11960
11960
|
let ln;
|
|
11961
|
-
t[
|
|
11961
|
+
t[113] !== g || t[114] !== s || t[115] !== k || t[116] !== un ? (ln = /* @__PURE__ */ R.jsx(tx, { queryKey: s, apiPath: g, onClose: Mn, fields: un, steps: k }), t[113] = g, t[114] = s, t[115] = k, t[116] = un, t[117] = ln) : ln = t[117];
|
|
11962
11962
|
let et;
|
|
11963
|
-
t[
|
|
11963
|
+
t[118] !== ae || t[119] !== Fn || t[120] !== ln ? (et = /* @__PURE__ */ R.jsx(Nu, { opened: ae, onClose: Cn, title: Fn, children: ln }), t[118] = ae, t[119] = Fn, t[120] = ln, t[121] = et) : et = t[121];
|
|
11964
11964
|
let Wt;
|
|
11965
|
-
return t[
|
|
11965
|
+
return t[122] !== Me || t[123] !== Ge || t[124] !== Ye || t[125] !== Xe || t[126] !== xt || t[127] !== Jt || t[128] !== et ? (Wt = /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
11966
11966
|
Me,
|
|
11967
11967
|
Ge,
|
|
11968
11968
|
Ye,
|
|
@@ -11970,7 +11970,7 @@ function c4(i) {
|
|
|
11970
11970
|
xt,
|
|
11971
11971
|
Jt,
|
|
11972
11972
|
et
|
|
11973
|
-
] }), t[
|
|
11973
|
+
] }), t[122] = Me, t[123] = Ge, t[124] = Ye, t[125] = Xe, t[126] = xt, t[127] = Jt, t[128] = et, t[129] = Wt) : Wt = t[129], Wt;
|
|
11974
11974
|
}
|
|
11975
11975
|
function f4(i) {
|
|
11976
11976
|
return i.create;
|