prlg-ui 1.8.309 → 1.8.311
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/{QuestionIcon-_dT5K9nH.js → QuestionIcon-Co6o-S7o.js} +71 -39
- package/dist/{QuestionIcon-BnwSMm7H.cjs → QuestionIcon-DhpAg23l.cjs} +1 -1
- package/dist/{StarIcon-DmdICk4x.js → StarIcon-ClDmw28r.js} +17 -49
- package/dist/StarIcon-dnnmVyG-.cjs +1 -0
- package/dist/fonts/Inter/.DS_Store +0 -0
- package/dist/icons/index.cjs.js +1 -1
- package/dist/icons/index.es.js +11 -11
- package/dist/{index-vFxzmPvm.cjs → index-Bart793F.cjs} +4 -4
- package/dist/{index-BPJT-DOc.js → index-NJFcTcwk.js} +514 -461
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +1961 -2012
- package/dist/reka-ui/index.cjs.js +5 -5
- package/dist/reka-ui/index.es.js +3610 -3513
- package/dist/rekaUI.d.ts +45 -22
- package/package.json +1 -1
- package/dist/StarIcon-CJwAavX4.cjs +0 -1
|
@@ -1,76 +1,128 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as yt, computed as k, resolveComponent as Wt, createBlock as st, openBlock as we, resolveDynamicComponent as ut, normalizeClass as Ut, withCtx as Xt, createCommentVNode as Ie, createElementBlock as at, renderSlot as Kt, Fragment as Yt, createTextVNode as Jt, toDisplayString as Qt, ref as le, shallowRef as _t, watch as ye, getCurrentScope as Zt, onScopeDispose as en, shallowReadonly as re, unref as Ft, isRef as tn, watchEffect as nn, h as on } from "vue";
|
|
2
|
+
import { _ as rn } from "./EyeIcon-D6SZWKKH.js";
|
|
3
|
+
const ln = {
|
|
4
|
+
key: 1,
|
|
5
|
+
class: "button__content"
|
|
6
|
+
}, sn = /* @__PURE__ */ yt({
|
|
7
|
+
__name: "Button",
|
|
8
|
+
props: {
|
|
9
|
+
label: {},
|
|
10
|
+
size: { default: "default" },
|
|
11
|
+
variant: { default: "primary" },
|
|
12
|
+
url: {},
|
|
13
|
+
rounded: { type: Boolean, default: !1 },
|
|
14
|
+
disabled: { type: Boolean, default: !1 },
|
|
15
|
+
buttonStyle: {},
|
|
16
|
+
icon: {},
|
|
17
|
+
iconPosition: { default: "left" },
|
|
18
|
+
iconOnly: { type: Boolean, default: !1 },
|
|
19
|
+
full: { type: Boolean }
|
|
20
|
+
},
|
|
21
|
+
setup(e) {
|
|
22
|
+
const n = k(() => e.variant === "link" && e.url || e.url ? Wt("RouterLink") : "button"), t = k(() => [
|
|
23
|
+
"button",
|
|
24
|
+
`button--${e.size}`,
|
|
25
|
+
`button--${e.variant}`,
|
|
26
|
+
{
|
|
27
|
+
"button--rounded": e.rounded,
|
|
28
|
+
[`button--${e.buttonStyle}`]: e.buttonStyle,
|
|
29
|
+
[`button--icon-${e.iconPosition}`]: e.icon,
|
|
30
|
+
"button--only-icon": e.iconOnly,
|
|
31
|
+
"button--full": e.full
|
|
32
|
+
}
|
|
33
|
+
]);
|
|
34
|
+
return (o, i) => (we(), st(ut(n.value), {
|
|
35
|
+
to: o.url,
|
|
36
|
+
class: Ut(t.value),
|
|
37
|
+
disabled: o.disabled
|
|
38
|
+
}, {
|
|
39
|
+
default: Xt(() => [
|
|
40
|
+
o.icon ? (we(), st(ut(o.icon), {
|
|
41
|
+
key: 0,
|
|
42
|
+
class: "button__icon"
|
|
43
|
+
})) : Ie("", !0),
|
|
44
|
+
o.iconOnly ? Ie("", !0) : (we(), at("div", ln, [
|
|
45
|
+
Kt(o.$slots, "default", {}, void 0, !0),
|
|
46
|
+
o.label && !o.$slots.default ? (we(), at(Yt, { key: 0 }, [
|
|
47
|
+
Jt(Qt(o.label), 1)
|
|
48
|
+
], 64)) : Ie("", !0)
|
|
49
|
+
]))
|
|
50
|
+
]),
|
|
51
|
+
_: 3
|
|
52
|
+
}, 8, ["to", "class", "disabled"]));
|
|
53
|
+
}
|
|
54
|
+
}), Uo = /* @__PURE__ */ rn(sn, [["__scopeId", "data-v-60e7e104"]]), un = ["top", "right", "bottom", "left"], Z = Math.min, E = Math.max, _e = Math.round, Se = Math.floor, b = (e) => ({
|
|
3
55
|
x: e,
|
|
4
56
|
y: e
|
|
5
|
-
}),
|
|
57
|
+
}), an = {
|
|
6
58
|
left: "right",
|
|
7
59
|
right: "left",
|
|
8
60
|
bottom: "top",
|
|
9
61
|
top: "bottom"
|
|
10
|
-
},
|
|
62
|
+
}, gn = {
|
|
11
63
|
start: "end",
|
|
12
64
|
end: "start"
|
|
13
65
|
};
|
|
14
|
-
function
|
|
66
|
+
function Ne(e, n, t) {
|
|
15
67
|
return E(e, Z(n, t));
|
|
16
68
|
}
|
|
17
|
-
function
|
|
69
|
+
function X(e, n) {
|
|
18
70
|
return typeof e == "function" ? e(n) : e;
|
|
19
71
|
}
|
|
20
|
-
function
|
|
72
|
+
function K(e) {
|
|
21
73
|
return e.split("-")[0];
|
|
22
74
|
}
|
|
23
75
|
function ge(e) {
|
|
24
76
|
return e.split("-")[1];
|
|
25
77
|
}
|
|
26
|
-
function
|
|
78
|
+
function Je(e) {
|
|
27
79
|
return e === "x" ? "y" : "x";
|
|
28
80
|
}
|
|
29
|
-
function
|
|
81
|
+
function Qe(e) {
|
|
30
82
|
return e === "y" ? "height" : "width";
|
|
31
83
|
}
|
|
32
|
-
const
|
|
84
|
+
const cn = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
33
85
|
function N(e) {
|
|
34
|
-
return
|
|
86
|
+
return cn.has(K(e)) ? "y" : "x";
|
|
35
87
|
}
|
|
36
|
-
function
|
|
37
|
-
return
|
|
88
|
+
function Ze(e) {
|
|
89
|
+
return Je(N(e));
|
|
38
90
|
}
|
|
39
|
-
function
|
|
91
|
+
function dn(e, n, t) {
|
|
40
92
|
t === void 0 && (t = !1);
|
|
41
|
-
const o = ge(e), i =
|
|
93
|
+
const o = ge(e), i = Ze(e), r = Qe(i);
|
|
42
94
|
let l = i === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
43
|
-
return n.reference[r] > n.floating[r] && (l =
|
|
95
|
+
return n.reference[r] > n.floating[r] && (l = Fe(l)), [l, Fe(l)];
|
|
44
96
|
}
|
|
45
|
-
function
|
|
46
|
-
const n =
|
|
47
|
-
return [
|
|
97
|
+
function fn(e) {
|
|
98
|
+
const n = Fe(e);
|
|
99
|
+
return [be(e), n, be(n)];
|
|
48
100
|
}
|
|
49
|
-
function
|
|
50
|
-
return e.replace(/start|end/g, (n) =>
|
|
101
|
+
function be(e) {
|
|
102
|
+
return e.replace(/start|end/g, (n) => gn[n]);
|
|
51
103
|
}
|
|
52
|
-
const
|
|
53
|
-
function
|
|
104
|
+
const gt = ["left", "right"], ct = ["right", "left"], pn = ["top", "bottom"], mn = ["bottom", "top"];
|
|
105
|
+
function hn(e, n, t) {
|
|
54
106
|
switch (e) {
|
|
55
107
|
case "top":
|
|
56
108
|
case "bottom":
|
|
57
|
-
return t ? n ?
|
|
109
|
+
return t ? n ? ct : gt : n ? gt : ct;
|
|
58
110
|
case "left":
|
|
59
111
|
case "right":
|
|
60
|
-
return n ?
|
|
112
|
+
return n ? pn : mn;
|
|
61
113
|
default:
|
|
62
114
|
return [];
|
|
63
115
|
}
|
|
64
116
|
}
|
|
65
|
-
function
|
|
117
|
+
function wn(e, n, t, o) {
|
|
66
118
|
const i = ge(e);
|
|
67
|
-
let r =
|
|
68
|
-
return i && (r = r.map((l) => l + "-" + i), n && (r = r.concat(r.map(
|
|
119
|
+
let r = hn(K(e), t === "start", o);
|
|
120
|
+
return i && (r = r.map((l) => l + "-" + i), n && (r = r.concat(r.map(be)))), r;
|
|
69
121
|
}
|
|
70
|
-
function
|
|
71
|
-
return e.replace(/left|right|bottom|top/g, (n) =>
|
|
122
|
+
function Fe(e) {
|
|
123
|
+
return e.replace(/left|right|bottom|top/g, (n) => an[n]);
|
|
72
124
|
}
|
|
73
|
-
function
|
|
125
|
+
function Sn(e) {
|
|
74
126
|
return {
|
|
75
127
|
top: 0,
|
|
76
128
|
right: 0,
|
|
@@ -79,15 +131,15 @@ function nn(e) {
|
|
|
79
131
|
...e
|
|
80
132
|
};
|
|
81
133
|
}
|
|
82
|
-
function
|
|
83
|
-
return typeof e != "number" ?
|
|
134
|
+
function $t(e) {
|
|
135
|
+
return typeof e != "number" ? Sn(e) : {
|
|
84
136
|
top: e,
|
|
85
137
|
right: e,
|
|
86
138
|
bottom: e,
|
|
87
139
|
left: e
|
|
88
140
|
};
|
|
89
141
|
}
|
|
90
|
-
function
|
|
142
|
+
function $e(e) {
|
|
91
143
|
const {
|
|
92
144
|
x: n,
|
|
93
145
|
y: t,
|
|
@@ -105,12 +157,12 @@ function Fe(e) {
|
|
|
105
157
|
y: t
|
|
106
158
|
};
|
|
107
159
|
}
|
|
108
|
-
function
|
|
160
|
+
function dt(e, n, t) {
|
|
109
161
|
let {
|
|
110
162
|
reference: o,
|
|
111
163
|
floating: i
|
|
112
164
|
} = e;
|
|
113
|
-
const r = N(n), l =
|
|
165
|
+
const r = N(n), l = Ze(n), s = Qe(l), u = K(n), g = r === "y", c = o.x + o.width / 2 - i.width / 2, f = o.y + o.height / 2 - i.height / 2, d = o[s] / 2 - i[s] / 2;
|
|
114
166
|
let a;
|
|
115
167
|
switch (u) {
|
|
116
168
|
case "top":
|
|
@@ -153,7 +205,7 @@ function st(e, n, t) {
|
|
|
153
205
|
}
|
|
154
206
|
return a;
|
|
155
207
|
}
|
|
156
|
-
const
|
|
208
|
+
const Cn = async (e, n, t) => {
|
|
157
209
|
const {
|
|
158
210
|
placement: o = "bottom",
|
|
159
211
|
strategy: i = "absolute",
|
|
@@ -167,7 +219,7 @@ const on = async (e, n, t) => {
|
|
|
167
219
|
}), {
|
|
168
220
|
x: c,
|
|
169
221
|
y: f
|
|
170
|
-
} =
|
|
222
|
+
} = dt(g, o, u), d = o, a = {}, p = 0;
|
|
171
223
|
for (let m = 0; m < s.length; m++) {
|
|
172
224
|
const {
|
|
173
225
|
name: w,
|
|
@@ -204,7 +256,7 @@ const on = async (e, n, t) => {
|
|
|
204
256
|
}) : y.rects), {
|
|
205
257
|
x: c,
|
|
206
258
|
y: f
|
|
207
|
-
} =
|
|
259
|
+
} = dt(g, d, u)), m = -1);
|
|
208
260
|
}
|
|
209
261
|
return {
|
|
210
262
|
x: c,
|
|
@@ -230,7 +282,7 @@ async function pe(e, n) {
|
|
|
230
282
|
elementContext: f = "floating",
|
|
231
283
|
altBoundary: d = !1,
|
|
232
284
|
padding: a = 0
|
|
233
|
-
} =
|
|
285
|
+
} = X(n, e), p = $t(a), w = s[d ? f === "floating" ? "reference" : "floating" : f], h = $e(await r.getClippingRect({
|
|
234
286
|
element: (t = await (r.isElement == null ? void 0 : r.isElement(w))) == null || t ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(s.floating)),
|
|
235
287
|
boundary: g,
|
|
236
288
|
rootBoundary: c,
|
|
@@ -246,7 +298,7 @@ async function pe(e, n) {
|
|
|
246
298
|
} : {
|
|
247
299
|
x: 1,
|
|
248
300
|
y: 1
|
|
249
|
-
}, y =
|
|
301
|
+
}, y = $e(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
250
302
|
elements: s,
|
|
251
303
|
rect: C,
|
|
252
304
|
offsetParent: S,
|
|
@@ -259,7 +311,7 @@ async function pe(e, n) {
|
|
|
259
311
|
right: (y.right - h.right + p.right) / x.x
|
|
260
312
|
};
|
|
261
313
|
}
|
|
262
|
-
const
|
|
314
|
+
const vn = (e) => ({
|
|
263
315
|
name: "arrow",
|
|
264
316
|
options: e,
|
|
265
317
|
async fn(n) {
|
|
@@ -274,29 +326,29 @@ const rn = (e) => ({
|
|
|
274
326
|
} = n, {
|
|
275
327
|
element: g,
|
|
276
328
|
padding: c = 0
|
|
277
|
-
} =
|
|
329
|
+
} = X(e, n) || {};
|
|
278
330
|
if (g == null)
|
|
279
331
|
return {};
|
|
280
|
-
const f =
|
|
332
|
+
const f = $t(c), d = {
|
|
281
333
|
x: t,
|
|
282
334
|
y: o
|
|
283
|
-
}, a =
|
|
335
|
+
}, a = Ze(i), p = Qe(a), m = await l.getDimensions(g), w = a === "y", h = w ? "top" : "left", C = w ? "bottom" : "right", S = w ? "clientHeight" : "clientWidth", x = r.reference[p] + r.reference[a] - d[a] - r.floating[p], y = d[a] - r.reference[a], $ = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(g));
|
|
284
336
|
let _ = $ ? $[S] : 0;
|
|
285
337
|
(!_ || !await (l.isElement == null ? void 0 : l.isElement($))) && (_ = s.floating[S] || r.floating[p]);
|
|
286
|
-
const F = x / 2 - y / 2, M = _ / 2 - m[p] / 2 - 1, A = Z(f[h], M),
|
|
338
|
+
const F = x / 2 - y / 2, M = _ / 2 - m[p] / 2 - 1, A = Z(f[h], M), O = Z(f[C], M), B = A, Y = _ - m[p] - O, V = _ / 2 - m[p] / 2 + F, ne = Ne(B, V, Y), W = !u.arrow && ge(i) != null && V !== ne && r.reference[p] / 2 - (V < B ? A : O) - m[p] / 2 < 0, L = W ? V < B ? V - B : V - Y : 0;
|
|
287
339
|
return {
|
|
288
|
-
[a]: d[a] +
|
|
340
|
+
[a]: d[a] + L,
|
|
289
341
|
data: {
|
|
290
342
|
[a]: ne,
|
|
291
|
-
centerOffset: V - ne -
|
|
292
|
-
...
|
|
293
|
-
alignmentOffset:
|
|
343
|
+
centerOffset: V - ne - L,
|
|
344
|
+
...W && {
|
|
345
|
+
alignmentOffset: L
|
|
294
346
|
}
|
|
295
347
|
},
|
|
296
|
-
reset:
|
|
348
|
+
reset: W
|
|
297
349
|
};
|
|
298
350
|
}
|
|
299
|
-
}),
|
|
351
|
+
}), Rn = function(e) {
|
|
300
352
|
return e === void 0 && (e = {}), {
|
|
301
353
|
name: "flip",
|
|
302
354
|
options: e,
|
|
@@ -317,23 +369,23 @@ const rn = (e) => ({
|
|
|
317
369
|
fallbackAxisSideDirection: p = "none",
|
|
318
370
|
flipAlignment: m = !0,
|
|
319
371
|
...w
|
|
320
|
-
} =
|
|
372
|
+
} = X(e, n);
|
|
321
373
|
if ((t = r.arrow) != null && t.alignmentOffset)
|
|
322
374
|
return {};
|
|
323
|
-
const h =
|
|
324
|
-
!d && $ && y.push(...
|
|
375
|
+
const h = K(i), C = N(s), S = K(s) === s, x = await (u.isRTL == null ? void 0 : u.isRTL(g.floating)), y = d || (S || !m ? [Fe(s)] : fn(s)), $ = p !== "none";
|
|
376
|
+
!d && $ && y.push(...wn(s, m, p, x));
|
|
325
377
|
const _ = [s, ...y], F = await pe(n, w), M = [];
|
|
326
378
|
let A = ((o = r.flip) == null ? void 0 : o.overflows) || [];
|
|
327
379
|
if (c && M.push(F[h]), f) {
|
|
328
|
-
const V =
|
|
380
|
+
const V = dn(i, l, x);
|
|
329
381
|
M.push(F[V[0]], F[V[1]]);
|
|
330
382
|
}
|
|
331
383
|
if (A = [...A, {
|
|
332
384
|
placement: i,
|
|
333
385
|
overflows: M
|
|
334
386
|
}], !M.every((V) => V <= 0)) {
|
|
335
|
-
var
|
|
336
|
-
const V = (((
|
|
387
|
+
var O, B;
|
|
388
|
+
const V = (((O = r.flip) == null ? void 0 : O.index) || 0) + 1, ne = _[V];
|
|
337
389
|
if (ne && (!(f === "alignment" ? C !== N(ne) : !1) || // We leave the current main axis only if every placement on that axis
|
|
338
390
|
// overflows the main axis.
|
|
339
391
|
A.every((H) => N(H.placement) === C ? H.overflows[0] > 0 : !0)))
|
|
@@ -346,31 +398,31 @@ const rn = (e) => ({
|
|
|
346
398
|
placement: ne
|
|
347
399
|
}
|
|
348
400
|
};
|
|
349
|
-
let
|
|
350
|
-
if (!
|
|
401
|
+
let W = (B = A.filter((L) => L.overflows[0] <= 0).sort((L, H) => L.overflows[1] - H.overflows[1])[0]) == null ? void 0 : B.placement;
|
|
402
|
+
if (!W)
|
|
351
403
|
switch (a) {
|
|
352
404
|
case "bestFit": {
|
|
353
|
-
var
|
|
354
|
-
const
|
|
405
|
+
var Y;
|
|
406
|
+
const L = (Y = A.filter((H) => {
|
|
355
407
|
if ($) {
|
|
356
|
-
const
|
|
357
|
-
return
|
|
408
|
+
const J = N(H.placement);
|
|
409
|
+
return J === C || // Create a bias to the `y` side axis due to horizontal
|
|
358
410
|
// reading directions favoring greater width.
|
|
359
|
-
|
|
411
|
+
J === "y";
|
|
360
412
|
}
|
|
361
413
|
return !0;
|
|
362
|
-
}).map((H) => [H.placement, H.overflows.filter((
|
|
363
|
-
|
|
414
|
+
}).map((H) => [H.placement, H.overflows.filter((J) => J > 0).reduce((J, jt) => J + jt, 0)]).sort((H, J) => H[1] - J[1])[0]) == null ? void 0 : Y[0];
|
|
415
|
+
L && (W = L);
|
|
364
416
|
break;
|
|
365
417
|
}
|
|
366
418
|
case "initialPlacement":
|
|
367
|
-
|
|
419
|
+
W = s;
|
|
368
420
|
break;
|
|
369
421
|
}
|
|
370
|
-
if (i !==
|
|
422
|
+
if (i !== W)
|
|
371
423
|
return {
|
|
372
424
|
reset: {
|
|
373
|
-
placement:
|
|
425
|
+
placement: W
|
|
374
426
|
}
|
|
375
427
|
};
|
|
376
428
|
}
|
|
@@ -378,7 +430,7 @@ const rn = (e) => ({
|
|
|
378
430
|
}
|
|
379
431
|
};
|
|
380
432
|
};
|
|
381
|
-
function
|
|
433
|
+
function ft(e, n) {
|
|
382
434
|
return {
|
|
383
435
|
top: e.top - n.height,
|
|
384
436
|
right: e.right - n.width,
|
|
@@ -386,10 +438,10 @@ function ut(e, n) {
|
|
|
386
438
|
left: e.left - n.width
|
|
387
439
|
};
|
|
388
440
|
}
|
|
389
|
-
function
|
|
390
|
-
return
|
|
441
|
+
function pt(e) {
|
|
442
|
+
return un.some((n) => e[n] >= 0);
|
|
391
443
|
}
|
|
392
|
-
const
|
|
444
|
+
const xn = function(e) {
|
|
393
445
|
return e === void 0 && (e = {}), {
|
|
394
446
|
name: "hide",
|
|
395
447
|
options: e,
|
|
@@ -399,17 +451,17 @@ const sn = function(e) {
|
|
|
399
451
|
} = n, {
|
|
400
452
|
strategy: o = "referenceHidden",
|
|
401
453
|
...i
|
|
402
|
-
} =
|
|
454
|
+
} = X(e, n);
|
|
403
455
|
switch (o) {
|
|
404
456
|
case "referenceHidden": {
|
|
405
457
|
const r = await pe(n, {
|
|
406
458
|
...i,
|
|
407
459
|
elementContext: "reference"
|
|
408
|
-
}), l =
|
|
460
|
+
}), l = ft(r, t.reference);
|
|
409
461
|
return {
|
|
410
462
|
data: {
|
|
411
463
|
referenceHiddenOffsets: l,
|
|
412
|
-
referenceHidden:
|
|
464
|
+
referenceHidden: pt(l)
|
|
413
465
|
}
|
|
414
466
|
};
|
|
415
467
|
}
|
|
@@ -417,11 +469,11 @@ const sn = function(e) {
|
|
|
417
469
|
const r = await pe(n, {
|
|
418
470
|
...i,
|
|
419
471
|
altBoundary: !0
|
|
420
|
-
}), l =
|
|
472
|
+
}), l = ft(r, t.floating);
|
|
421
473
|
return {
|
|
422
474
|
data: {
|
|
423
475
|
escapedOffsets: l,
|
|
424
|
-
escaped:
|
|
476
|
+
escaped: pt(l)
|
|
425
477
|
}
|
|
426
478
|
};
|
|
427
479
|
}
|
|
@@ -430,13 +482,13 @@ const sn = function(e) {
|
|
|
430
482
|
}
|
|
431
483
|
}
|
|
432
484
|
};
|
|
433
|
-
},
|
|
434
|
-
async function
|
|
485
|
+
}, Pt = /* @__PURE__ */ new Set(["left", "top"]);
|
|
486
|
+
async function yn(e, n) {
|
|
435
487
|
const {
|
|
436
488
|
placement: t,
|
|
437
489
|
platform: o,
|
|
438
490
|
elements: i
|
|
439
|
-
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), l =
|
|
491
|
+
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), l = K(t), s = ge(t), u = N(t) === "y", g = Pt.has(l) ? -1 : 1, c = r && u ? -1 : 1, f = X(n, e);
|
|
440
492
|
let {
|
|
441
493
|
mainAxis: d,
|
|
442
494
|
crossAxis: a,
|
|
@@ -458,7 +510,7 @@ async function un(e, n) {
|
|
|
458
510
|
y: a * c
|
|
459
511
|
};
|
|
460
512
|
}
|
|
461
|
-
const
|
|
513
|
+
const _n = function(e) {
|
|
462
514
|
return e === void 0 && (e = 0), {
|
|
463
515
|
name: "offset",
|
|
464
516
|
options: e,
|
|
@@ -469,7 +521,7 @@ const an = function(e) {
|
|
|
469
521
|
y: r,
|
|
470
522
|
placement: l,
|
|
471
523
|
middlewareData: s
|
|
472
|
-
} = n, u = await
|
|
524
|
+
} = n, u = await yn(n, e);
|
|
473
525
|
return l === ((t = s.offset) == null ? void 0 : t.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
|
|
474
526
|
x: i + u.x,
|
|
475
527
|
y: r + u.y,
|
|
@@ -480,7 +532,7 @@ const an = function(e) {
|
|
|
480
532
|
};
|
|
481
533
|
}
|
|
482
534
|
};
|
|
483
|
-
},
|
|
535
|
+
}, Fn = function(e) {
|
|
484
536
|
return e === void 0 && (e = {}), {
|
|
485
537
|
name: "shift",
|
|
486
538
|
options: e,
|
|
@@ -505,18 +557,18 @@ const an = function(e) {
|
|
|
505
557
|
}
|
|
506
558
|
},
|
|
507
559
|
...u
|
|
508
|
-
} =
|
|
560
|
+
} = X(e, n), g = {
|
|
509
561
|
x: t,
|
|
510
562
|
y: o
|
|
511
|
-
}, c = await pe(n, u), f = N(
|
|
563
|
+
}, c = await pe(n, u), f = N(K(i)), d = Je(f);
|
|
512
564
|
let a = g[d], p = g[f];
|
|
513
565
|
if (r) {
|
|
514
566
|
const w = d === "y" ? "top" : "left", h = d === "y" ? "bottom" : "right", C = a + c[w], S = a - c[h];
|
|
515
|
-
a =
|
|
567
|
+
a = Ne(C, a, S);
|
|
516
568
|
}
|
|
517
569
|
if (l) {
|
|
518
570
|
const w = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", C = p + c[w], S = p - c[h];
|
|
519
|
-
p =
|
|
571
|
+
p = Ne(C, p, S);
|
|
520
572
|
}
|
|
521
573
|
const m = s.fn({
|
|
522
574
|
...n,
|
|
@@ -536,7 +588,7 @@ const an = function(e) {
|
|
|
536
588
|
};
|
|
537
589
|
}
|
|
538
590
|
};
|
|
539
|
-
},
|
|
591
|
+
}, $n = function(e) {
|
|
540
592
|
return e === void 0 && (e = {}), {
|
|
541
593
|
options: e,
|
|
542
594
|
fn(n) {
|
|
@@ -550,12 +602,12 @@ const an = function(e) {
|
|
|
550
602
|
offset: s = 0,
|
|
551
603
|
mainAxis: u = !0,
|
|
552
604
|
crossAxis: g = !0
|
|
553
|
-
} =
|
|
605
|
+
} = X(e, n), c = {
|
|
554
606
|
x: t,
|
|
555
607
|
y: o
|
|
556
|
-
}, f = N(i), d =
|
|
608
|
+
}, f = N(i), d = Je(f);
|
|
557
609
|
let a = c[d], p = c[f];
|
|
558
|
-
const m =
|
|
610
|
+
const m = X(s, n), w = typeof m == "number" ? {
|
|
559
611
|
mainAxis: m,
|
|
560
612
|
crossAxis: 0
|
|
561
613
|
} : {
|
|
@@ -569,7 +621,7 @@ const an = function(e) {
|
|
|
569
621
|
}
|
|
570
622
|
if (g) {
|
|
571
623
|
var h, C;
|
|
572
|
-
const S = d === "y" ? "width" : "height", x =
|
|
624
|
+
const S = d === "y" ? "width" : "height", x = Pt.has(K(i)), y = r.reference[f] - r.floating[S] + (x && ((h = l.offset) == null ? void 0 : h[f]) || 0) + (x ? 0 : w.crossAxis), $ = r.reference[f] + r.reference[S] + (x ? 0 : ((C = l.offset) == null ? void 0 : C[f]) || 0) - (x ? w.crossAxis : 0);
|
|
573
625
|
p < y ? p = y : p > $ && (p = $);
|
|
574
626
|
}
|
|
575
627
|
return {
|
|
@@ -578,7 +630,7 @@ const an = function(e) {
|
|
|
578
630
|
};
|
|
579
631
|
}
|
|
580
632
|
};
|
|
581
|
-
},
|
|
633
|
+
}, Pn = function(e) {
|
|
582
634
|
return e === void 0 && (e = {}), {
|
|
583
635
|
name: "size",
|
|
584
636
|
options: e,
|
|
@@ -593,7 +645,7 @@ const an = function(e) {
|
|
|
593
645
|
apply: u = () => {
|
|
594
646
|
},
|
|
595
647
|
...g
|
|
596
|
-
} =
|
|
648
|
+
} = X(e, n), c = await pe(n, g), f = K(i), d = ge(i), a = N(i) === "y", {
|
|
597
649
|
width: p,
|
|
598
650
|
height: m
|
|
599
651
|
} = r.floating;
|
|
@@ -602,8 +654,8 @@ const an = function(e) {
|
|
|
602
654
|
const C = m - c.top - c.bottom, S = p - c.left - c.right, x = Z(m - c[w], C), y = Z(p - c[h], S), $ = !n.middlewareData.shift;
|
|
603
655
|
let _ = x, F = y;
|
|
604
656
|
if ((t = n.middlewareData.shift) != null && t.enabled.x && (F = S), (o = n.middlewareData.shift) != null && o.enabled.y && (_ = C), $ && !d) {
|
|
605
|
-
const A = E(c.left, 0),
|
|
606
|
-
a ? F = p - 2 * (A !== 0 ||
|
|
657
|
+
const A = E(c.left, 0), O = E(c.right, 0), B = E(c.top, 0), Y = E(c.bottom, 0);
|
|
658
|
+
a ? F = p - 2 * (A !== 0 || O !== 0 ? A + O : E(c.left, c.right)) : _ = m - 2 * (B !== 0 || Y !== 0 ? B + Y : E(c.top, c.bottom));
|
|
607
659
|
}
|
|
608
660
|
await u({
|
|
609
661
|
...n,
|
|
@@ -619,11 +671,11 @@ const an = function(e) {
|
|
|
619
671
|
}
|
|
620
672
|
};
|
|
621
673
|
};
|
|
622
|
-
function
|
|
674
|
+
function Pe() {
|
|
623
675
|
return typeof window < "u";
|
|
624
676
|
}
|
|
625
677
|
function ie(e) {
|
|
626
|
-
return
|
|
678
|
+
return et(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
627
679
|
}
|
|
628
680
|
function I(e) {
|
|
629
681
|
var n;
|
|
@@ -631,21 +683,21 @@ function I(e) {
|
|
|
631
683
|
}
|
|
632
684
|
function j(e) {
|
|
633
685
|
var n;
|
|
634
|
-
return (n = (
|
|
686
|
+
return (n = (et(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
|
|
635
687
|
}
|
|
636
|
-
function
|
|
637
|
-
return
|
|
688
|
+
function et(e) {
|
|
689
|
+
return Pe() ? e instanceof Node || e instanceof I(e).Node : !1;
|
|
638
690
|
}
|
|
639
691
|
function z(e) {
|
|
640
|
-
return
|
|
692
|
+
return Pe() ? e instanceof Element || e instanceof I(e).Element : !1;
|
|
641
693
|
}
|
|
642
694
|
function q(e) {
|
|
643
|
-
return
|
|
695
|
+
return Pe() ? e instanceof HTMLElement || e instanceof I(e).HTMLElement : !1;
|
|
644
696
|
}
|
|
645
|
-
function
|
|
646
|
-
return
|
|
697
|
+
function mt(e) {
|
|
698
|
+
return !Pe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof I(e).ShadowRoot;
|
|
647
699
|
}
|
|
648
|
-
const
|
|
700
|
+
const Mn = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
649
701
|
function he(e) {
|
|
650
702
|
const {
|
|
651
703
|
overflow: n,
|
|
@@ -653,15 +705,15 @@ function he(e) {
|
|
|
653
705
|
overflowY: o,
|
|
654
706
|
display: i
|
|
655
707
|
} = T(e);
|
|
656
|
-
return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !
|
|
708
|
+
return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !Mn.has(i);
|
|
657
709
|
}
|
|
658
|
-
const
|
|
659
|
-
function
|
|
660
|
-
return
|
|
710
|
+
const Vn = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
711
|
+
function An(e) {
|
|
712
|
+
return Vn.has(ie(e));
|
|
661
713
|
}
|
|
662
|
-
const
|
|
663
|
-
function
|
|
664
|
-
return
|
|
714
|
+
const En = [":popover-open", ":modal"];
|
|
715
|
+
function Me(e) {
|
|
716
|
+
return En.some((n) => {
|
|
665
717
|
try {
|
|
666
718
|
return e.matches(n);
|
|
667
719
|
} catch {
|
|
@@ -669,33 +721,33 @@ function Pe(e) {
|
|
|
669
721
|
}
|
|
670
722
|
});
|
|
671
723
|
}
|
|
672
|
-
const
|
|
673
|
-
function
|
|
674
|
-
const n =
|
|
675
|
-
return
|
|
724
|
+
const In = ["transform", "translate", "scale", "rotate", "perspective"], Dn = ["transform", "translate", "scale", "rotate", "perspective", "filter"], On = ["paint", "layout", "strict", "content"];
|
|
725
|
+
function tt(e) {
|
|
726
|
+
const n = nt(), t = z(e) ? T(e) : e;
|
|
727
|
+
return In.some((o) => t[o] ? t[o] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !n && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !n && (t.filter ? t.filter !== "none" : !1) || Dn.some((o) => (t.willChange || "").includes(o)) || On.some((o) => (t.contain || "").includes(o));
|
|
676
728
|
}
|
|
677
|
-
function
|
|
729
|
+
function Ln(e) {
|
|
678
730
|
let n = ee(e);
|
|
679
731
|
for (; q(n) && !ae(n); ) {
|
|
680
|
-
if (
|
|
732
|
+
if (tt(n))
|
|
681
733
|
return n;
|
|
682
|
-
if (
|
|
734
|
+
if (Me(n))
|
|
683
735
|
return null;
|
|
684
736
|
n = ee(n);
|
|
685
737
|
}
|
|
686
738
|
return null;
|
|
687
739
|
}
|
|
688
|
-
function
|
|
740
|
+
function nt() {
|
|
689
741
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
690
742
|
}
|
|
691
|
-
const
|
|
743
|
+
const Hn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
692
744
|
function ae(e) {
|
|
693
|
-
return
|
|
745
|
+
return Hn.has(ie(e));
|
|
694
746
|
}
|
|
695
747
|
function T(e) {
|
|
696
748
|
return I(e).getComputedStyle(e);
|
|
697
749
|
}
|
|
698
|
-
function
|
|
750
|
+
function Ve(e) {
|
|
699
751
|
return z(e) ? {
|
|
700
752
|
scrollLeft: e.scrollLeft,
|
|
701
753
|
scrollTop: e.scrollTop
|
|
@@ -711,120 +763,120 @@ function ee(e) {
|
|
|
711
763
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
712
764
|
e.assignedSlot || // DOM Element detected.
|
|
713
765
|
e.parentNode || // ShadowRoot detected.
|
|
714
|
-
|
|
766
|
+
mt(e) && e.host || // Fallback.
|
|
715
767
|
j(e)
|
|
716
768
|
);
|
|
717
|
-
return
|
|
769
|
+
return mt(n) ? n.host : n;
|
|
718
770
|
}
|
|
719
|
-
function
|
|
771
|
+
function Mt(e) {
|
|
720
772
|
const n = ee(e);
|
|
721
|
-
return ae(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : q(n) && he(n) ? n :
|
|
773
|
+
return ae(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : q(n) && he(n) ? n : Mt(n);
|
|
722
774
|
}
|
|
723
775
|
function me(e, n, t) {
|
|
724
776
|
var o;
|
|
725
777
|
n === void 0 && (n = []), t === void 0 && (t = !0);
|
|
726
|
-
const i =
|
|
778
|
+
const i = Mt(e), r = i === ((o = e.ownerDocument) == null ? void 0 : o.body), l = I(i);
|
|
727
779
|
if (r) {
|
|
728
|
-
const s =
|
|
780
|
+
const s = qe(l);
|
|
729
781
|
return n.concat(l, l.visualViewport || [], he(i) ? i : [], s && t ? me(s) : []);
|
|
730
782
|
}
|
|
731
783
|
return n.concat(i, me(i, [], t));
|
|
732
784
|
}
|
|
733
|
-
function
|
|
785
|
+
function qe(e) {
|
|
734
786
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
735
787
|
}
|
|
736
|
-
function
|
|
788
|
+
function Vt(e) {
|
|
737
789
|
const n = T(e);
|
|
738
790
|
let t = parseFloat(n.width) || 0, o = parseFloat(n.height) || 0;
|
|
739
|
-
const i = q(e), r = i ? e.offsetWidth : t, l = i ? e.offsetHeight : o, s =
|
|
791
|
+
const i = q(e), r = i ? e.offsetWidth : t, l = i ? e.offsetHeight : o, s = _e(t) !== r || _e(o) !== l;
|
|
740
792
|
return s && (t = r, o = l), {
|
|
741
793
|
width: t,
|
|
742
794
|
height: o,
|
|
743
795
|
$: s
|
|
744
796
|
};
|
|
745
797
|
}
|
|
746
|
-
function
|
|
798
|
+
function ot(e) {
|
|
747
799
|
return z(e) ? e : e.contextElement;
|
|
748
800
|
}
|
|
749
801
|
function ue(e) {
|
|
750
|
-
const n =
|
|
802
|
+
const n = ot(e);
|
|
751
803
|
if (!q(n))
|
|
752
|
-
return
|
|
804
|
+
return b(1);
|
|
753
805
|
const t = n.getBoundingClientRect(), {
|
|
754
806
|
width: o,
|
|
755
807
|
height: i,
|
|
756
808
|
$: r
|
|
757
|
-
} =
|
|
758
|
-
let l = (r ?
|
|
809
|
+
} = Vt(n);
|
|
810
|
+
let l = (r ? _e(t.width) : t.width) / o, s = (r ? _e(t.height) : t.height) / i;
|
|
759
811
|
return (!l || !Number.isFinite(l)) && (l = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
760
812
|
x: l,
|
|
761
813
|
y: s
|
|
762
814
|
};
|
|
763
815
|
}
|
|
764
|
-
const
|
|
765
|
-
function
|
|
816
|
+
const Gn = /* @__PURE__ */ b(0);
|
|
817
|
+
function At(e) {
|
|
766
818
|
const n = I(e);
|
|
767
|
-
return !
|
|
819
|
+
return !nt() || !n.visualViewport ? Gn : {
|
|
768
820
|
x: n.visualViewport.offsetLeft,
|
|
769
821
|
y: n.visualViewport.offsetTop
|
|
770
822
|
};
|
|
771
823
|
}
|
|
772
|
-
function
|
|
824
|
+
function zn(e, n, t) {
|
|
773
825
|
return n === void 0 && (n = !1), !t || n && t !== I(e) ? !1 : n;
|
|
774
826
|
}
|
|
775
827
|
function oe(e, n, t, o) {
|
|
776
828
|
n === void 0 && (n = !1), t === void 0 && (t = !1);
|
|
777
|
-
const i = e.getBoundingClientRect(), r =
|
|
778
|
-
let l =
|
|
829
|
+
const i = e.getBoundingClientRect(), r = ot(e);
|
|
830
|
+
let l = b(1);
|
|
779
831
|
n && (o ? z(o) && (l = ue(o)) : l = ue(e));
|
|
780
|
-
const s =
|
|
832
|
+
const s = zn(r, t, o) ? At(r) : b(0);
|
|
781
833
|
let u = (i.left + s.x) / l.x, g = (i.top + s.y) / l.y, c = i.width / l.x, f = i.height / l.y;
|
|
782
834
|
if (r) {
|
|
783
835
|
const d = I(r), a = o && z(o) ? I(o) : o;
|
|
784
|
-
let p = d, m =
|
|
836
|
+
let p = d, m = qe(p);
|
|
785
837
|
for (; m && o && a !== p; ) {
|
|
786
838
|
const w = ue(m), h = m.getBoundingClientRect(), C = T(m), S = h.left + (m.clientLeft + parseFloat(C.paddingLeft)) * w.x, x = h.top + (m.clientTop + parseFloat(C.paddingTop)) * w.y;
|
|
787
|
-
u *= w.x, g *= w.y, c *= w.x, f *= w.y, u += S, g += x, p = I(m), m =
|
|
839
|
+
u *= w.x, g *= w.y, c *= w.x, f *= w.y, u += S, g += x, p = I(m), m = qe(p);
|
|
788
840
|
}
|
|
789
841
|
}
|
|
790
|
-
return
|
|
842
|
+
return $e({
|
|
791
843
|
width: c,
|
|
792
844
|
height: f,
|
|
793
845
|
x: u,
|
|
794
846
|
y: g
|
|
795
847
|
});
|
|
796
848
|
}
|
|
797
|
-
function
|
|
798
|
-
const t =
|
|
849
|
+
function Ae(e, n) {
|
|
850
|
+
const t = Ve(e).scrollLeft;
|
|
799
851
|
return n ? n.left + t : oe(j(e)).left + t;
|
|
800
852
|
}
|
|
801
|
-
function
|
|
802
|
-
const t = e.getBoundingClientRect(), o = t.left + n.scrollLeft -
|
|
853
|
+
function Et(e, n) {
|
|
854
|
+
const t = e.getBoundingClientRect(), o = t.left + n.scrollLeft - Ae(e, t), i = t.top + n.scrollTop;
|
|
803
855
|
return {
|
|
804
856
|
x: o,
|
|
805
857
|
y: i
|
|
806
858
|
};
|
|
807
859
|
}
|
|
808
|
-
function
|
|
860
|
+
function Tn(e) {
|
|
809
861
|
let {
|
|
810
862
|
elements: n,
|
|
811
863
|
rect: t,
|
|
812
864
|
offsetParent: o,
|
|
813
865
|
strategy: i
|
|
814
866
|
} = e;
|
|
815
|
-
const r = i === "fixed", l = j(o), s = n ?
|
|
867
|
+
const r = i === "fixed", l = j(o), s = n ? Me(n.floating) : !1;
|
|
816
868
|
if (o === l || s && r)
|
|
817
869
|
return t;
|
|
818
870
|
let u = {
|
|
819
871
|
scrollLeft: 0,
|
|
820
872
|
scrollTop: 0
|
|
821
|
-
}, g =
|
|
822
|
-
const c =
|
|
823
|
-
if ((f || !f && !r) && ((ie(o) !== "body" || he(l)) && (u =
|
|
873
|
+
}, g = b(1);
|
|
874
|
+
const c = b(0), f = q(o);
|
|
875
|
+
if ((f || !f && !r) && ((ie(o) !== "body" || he(l)) && (u = Ve(o)), q(o))) {
|
|
824
876
|
const a = oe(o);
|
|
825
877
|
g = ue(o), c.x = a.x + o.clientLeft, c.y = a.y + o.clientTop;
|
|
826
878
|
}
|
|
827
|
-
const d = l && !f && !r ?
|
|
879
|
+
const d = l && !f && !r ? Et(l, u) : b(0);
|
|
828
880
|
return {
|
|
829
881
|
width: t.width * g.x,
|
|
830
882
|
height: t.height * g.y,
|
|
@@ -832,12 +884,12 @@ function _n(e) {
|
|
|
832
884
|
y: t.y * g.y - u.scrollTop * g.y + c.y + d.y
|
|
833
885
|
};
|
|
834
886
|
}
|
|
835
|
-
function
|
|
887
|
+
function Bn(e) {
|
|
836
888
|
return Array.from(e.getClientRects());
|
|
837
889
|
}
|
|
838
|
-
function
|
|
839
|
-
const n = j(e), t =
|
|
840
|
-
let l = -t.scrollLeft +
|
|
890
|
+
function kn(e) {
|
|
891
|
+
const n = j(e), t = Ve(e), o = e.ownerDocument.body, i = E(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth), r = E(n.scrollHeight, n.clientHeight, o.scrollHeight, o.clientHeight);
|
|
892
|
+
let l = -t.scrollLeft + Ae(e);
|
|
841
893
|
const s = -t.scrollTop;
|
|
842
894
|
return T(o).direction === "rtl" && (l += E(n.clientWidth, o.clientWidth) - i), {
|
|
843
895
|
width: i,
|
|
@@ -846,20 +898,20 @@ function $n(e) {
|
|
|
846
898
|
y: s
|
|
847
899
|
};
|
|
848
900
|
}
|
|
849
|
-
const
|
|
850
|
-
function
|
|
901
|
+
const ht = 25;
|
|
902
|
+
function Nn(e, n) {
|
|
851
903
|
const t = I(e), o = j(e), i = t.visualViewport;
|
|
852
904
|
let r = o.clientWidth, l = o.clientHeight, s = 0, u = 0;
|
|
853
905
|
if (i) {
|
|
854
906
|
r = i.width, l = i.height;
|
|
855
|
-
const c =
|
|
907
|
+
const c = nt();
|
|
856
908
|
(!c || c && n === "fixed") && (s = i.offsetLeft, u = i.offsetTop);
|
|
857
909
|
}
|
|
858
|
-
const g =
|
|
910
|
+
const g = Ae(o);
|
|
859
911
|
if (g <= 0) {
|
|
860
912
|
const c = o.ownerDocument, f = c.body, d = getComputedStyle(f), a = c.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, p = Math.abs(o.clientWidth - f.clientWidth - a);
|
|
861
|
-
p <=
|
|
862
|
-
} else g <=
|
|
913
|
+
p <= ht && (r -= p);
|
|
914
|
+
} else g <= ht && (r += g);
|
|
863
915
|
return {
|
|
864
916
|
width: r,
|
|
865
917
|
height: l,
|
|
@@ -867,9 +919,9 @@ function Pn(e, n) {
|
|
|
867
919
|
y: u
|
|
868
920
|
};
|
|
869
921
|
}
|
|
870
|
-
const
|
|
871
|
-
function
|
|
872
|
-
const t = oe(e, !0, n === "fixed"), o = t.top + e.clientTop, i = t.left + e.clientLeft, r = q(e) ? ue(e) :
|
|
922
|
+
const bn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
923
|
+
function qn(e, n) {
|
|
924
|
+
const t = oe(e, !0, n === "fixed"), o = t.top + e.clientTop, i = t.left + e.clientLeft, r = q(e) ? ue(e) : b(1), l = e.clientWidth * r.x, s = e.clientHeight * r.y, u = i * r.x, g = o * r.y;
|
|
873
925
|
return {
|
|
874
926
|
width: l,
|
|
875
927
|
height: s,
|
|
@@ -877,16 +929,16 @@ function Vn(e, n) {
|
|
|
877
929
|
y: g
|
|
878
930
|
};
|
|
879
931
|
}
|
|
880
|
-
function
|
|
932
|
+
function wt(e, n, t) {
|
|
881
933
|
let o;
|
|
882
934
|
if (n === "viewport")
|
|
883
|
-
o =
|
|
935
|
+
o = Nn(e, t);
|
|
884
936
|
else if (n === "document")
|
|
885
|
-
o =
|
|
937
|
+
o = kn(j(e));
|
|
886
938
|
else if (z(n))
|
|
887
|
-
o =
|
|
939
|
+
o = qn(n, t);
|
|
888
940
|
else {
|
|
889
|
-
const i =
|
|
941
|
+
const i = At(e);
|
|
890
942
|
o = {
|
|
891
943
|
x: n.x - i.x,
|
|
892
944
|
y: n.y - i.y,
|
|
@@ -894,13 +946,13 @@ function dt(e, n, t) {
|
|
|
894
946
|
height: n.height
|
|
895
947
|
};
|
|
896
948
|
}
|
|
897
|
-
return
|
|
949
|
+
return $e(o);
|
|
898
950
|
}
|
|
899
|
-
function
|
|
951
|
+
function It(e, n) {
|
|
900
952
|
const t = ee(e);
|
|
901
|
-
return t === n || !z(t) || ae(t) ? !1 : T(t).position === "fixed" ||
|
|
953
|
+
return t === n || !z(t) || ae(t) ? !1 : T(t).position === "fixed" || It(t, n);
|
|
902
954
|
}
|
|
903
|
-
function
|
|
955
|
+
function jn(e, n) {
|
|
904
956
|
const t = n.get(e);
|
|
905
957
|
if (t)
|
|
906
958
|
return t;
|
|
@@ -908,22 +960,22 @@ function An(e, n) {
|
|
|
908
960
|
const r = T(e).position === "fixed";
|
|
909
961
|
let l = r ? ee(e) : e;
|
|
910
962
|
for (; z(l) && !ae(l); ) {
|
|
911
|
-
const s = T(l), u =
|
|
912
|
-
!u && s.position === "fixed" && (i = null), (r ? !u && !i : !u && s.position === "static" && !!i &&
|
|
963
|
+
const s = T(l), u = tt(l);
|
|
964
|
+
!u && s.position === "fixed" && (i = null), (r ? !u && !i : !u && s.position === "static" && !!i && bn.has(i.position) || he(l) && !u && It(e, l)) ? o = o.filter((c) => c !== l) : i = s, l = ee(l);
|
|
913
965
|
}
|
|
914
966
|
return n.set(e, o), o;
|
|
915
967
|
}
|
|
916
|
-
function
|
|
968
|
+
function Wn(e) {
|
|
917
969
|
let {
|
|
918
970
|
element: n,
|
|
919
971
|
boundary: t,
|
|
920
972
|
rootBoundary: o,
|
|
921
973
|
strategy: i
|
|
922
974
|
} = e;
|
|
923
|
-
const l = [...t === "clippingAncestors" ?
|
|
924
|
-
const f =
|
|
975
|
+
const l = [...t === "clippingAncestors" ? Me(n) ? [] : jn(n, this._c) : [].concat(t), o], s = l[0], u = l.reduce((g, c) => {
|
|
976
|
+
const f = wt(n, c, i);
|
|
925
977
|
return g.top = E(f.top, g.top), g.right = Z(f.right, g.right), g.bottom = Z(f.bottom, g.bottom), g.left = E(f.left, g.left), g;
|
|
926
|
-
},
|
|
978
|
+
}, wt(n, s, i));
|
|
927
979
|
return {
|
|
928
980
|
width: u.right - u.left,
|
|
929
981
|
height: u.bottom - u.top,
|
|
@@ -931,33 +983,33 @@ function En(e) {
|
|
|
931
983
|
y: u.top
|
|
932
984
|
};
|
|
933
985
|
}
|
|
934
|
-
function
|
|
986
|
+
function Un(e) {
|
|
935
987
|
const {
|
|
936
988
|
width: n,
|
|
937
989
|
height: t
|
|
938
|
-
} =
|
|
990
|
+
} = Vt(e);
|
|
939
991
|
return {
|
|
940
992
|
width: n,
|
|
941
993
|
height: t
|
|
942
994
|
};
|
|
943
995
|
}
|
|
944
|
-
function
|
|
996
|
+
function Xn(e, n, t) {
|
|
945
997
|
const o = q(n), i = j(n), r = t === "fixed", l = oe(e, !0, r, n);
|
|
946
998
|
let s = {
|
|
947
999
|
scrollLeft: 0,
|
|
948
1000
|
scrollTop: 0
|
|
949
1001
|
};
|
|
950
|
-
const u =
|
|
1002
|
+
const u = b(0);
|
|
951
1003
|
function g() {
|
|
952
|
-
u.x =
|
|
1004
|
+
u.x = Ae(i);
|
|
953
1005
|
}
|
|
954
1006
|
if (o || !o && !r)
|
|
955
|
-
if ((ie(n) !== "body" || he(i)) && (s =
|
|
1007
|
+
if ((ie(n) !== "body" || he(i)) && (s = Ve(n)), o) {
|
|
956
1008
|
const a = oe(n, !0, r, n);
|
|
957
1009
|
u.x = a.x + n.clientLeft, u.y = a.y + n.clientTop;
|
|
958
1010
|
} else i && g();
|
|
959
1011
|
r && !o && i && g();
|
|
960
|
-
const c = i && !o && !r ?
|
|
1012
|
+
const c = i && !o && !r ? Et(i, s) : b(0), f = l.left + s.scrollLeft - u.x - c.x, d = l.top + s.scrollTop - u.y - c.y;
|
|
961
1013
|
return {
|
|
962
1014
|
x: f,
|
|
963
1015
|
y: d,
|
|
@@ -965,10 +1017,10 @@ function Dn(e, n, t) {
|
|
|
965
1017
|
height: l.height
|
|
966
1018
|
};
|
|
967
1019
|
}
|
|
968
|
-
function
|
|
1020
|
+
function De(e) {
|
|
969
1021
|
return T(e).position === "static";
|
|
970
1022
|
}
|
|
971
|
-
function
|
|
1023
|
+
function St(e, n) {
|
|
972
1024
|
if (!q(e) || T(e).position === "fixed")
|
|
973
1025
|
return null;
|
|
974
1026
|
if (n)
|
|
@@ -976,28 +1028,28 @@ function ft(e, n) {
|
|
|
976
1028
|
let t = e.offsetParent;
|
|
977
1029
|
return j(e) === t && (t = t.ownerDocument.body), t;
|
|
978
1030
|
}
|
|
979
|
-
function
|
|
1031
|
+
function Dt(e, n) {
|
|
980
1032
|
const t = I(e);
|
|
981
|
-
if (
|
|
1033
|
+
if (Me(e))
|
|
982
1034
|
return t;
|
|
983
1035
|
if (!q(e)) {
|
|
984
1036
|
let i = ee(e);
|
|
985
1037
|
for (; i && !ae(i); ) {
|
|
986
|
-
if (z(i) && !
|
|
1038
|
+
if (z(i) && !De(i))
|
|
987
1039
|
return i;
|
|
988
1040
|
i = ee(i);
|
|
989
1041
|
}
|
|
990
1042
|
return t;
|
|
991
1043
|
}
|
|
992
|
-
let o =
|
|
993
|
-
for (; o &&
|
|
994
|
-
o =
|
|
995
|
-
return o && ae(o) &&
|
|
1044
|
+
let o = St(e, n);
|
|
1045
|
+
for (; o && An(o) && De(o); )
|
|
1046
|
+
o = St(o, n);
|
|
1047
|
+
return o && ae(o) && De(o) && !tt(o) ? t : o || Ln(e) || t;
|
|
996
1048
|
}
|
|
997
|
-
const
|
|
998
|
-
const n = this.getOffsetParent ||
|
|
1049
|
+
const Kn = async function(e) {
|
|
1050
|
+
const n = this.getOffsetParent || Dt, t = this.getDimensions, o = await t(e.floating);
|
|
999
1051
|
return {
|
|
1000
|
-
reference:
|
|
1052
|
+
reference: Xn(e.reference, await n(e.floating), e.strategy),
|
|
1001
1053
|
floating: {
|
|
1002
1054
|
x: 0,
|
|
1003
1055
|
y: 0,
|
|
@@ -1006,25 +1058,25 @@ const Ln = async function(e) {
|
|
|
1006
1058
|
}
|
|
1007
1059
|
};
|
|
1008
1060
|
};
|
|
1009
|
-
function
|
|
1061
|
+
function Yn(e) {
|
|
1010
1062
|
return T(e).direction === "rtl";
|
|
1011
1063
|
}
|
|
1012
|
-
const
|
|
1013
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1064
|
+
const Jn = {
|
|
1065
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Tn,
|
|
1014
1066
|
getDocumentElement: j,
|
|
1015
|
-
getClippingRect:
|
|
1016
|
-
getOffsetParent:
|
|
1017
|
-
getElementRects:
|
|
1018
|
-
getClientRects:
|
|
1019
|
-
getDimensions:
|
|
1067
|
+
getClippingRect: Wn,
|
|
1068
|
+
getOffsetParent: Dt,
|
|
1069
|
+
getElementRects: Kn,
|
|
1070
|
+
getClientRects: Bn,
|
|
1071
|
+
getDimensions: Un,
|
|
1020
1072
|
getScale: ue,
|
|
1021
1073
|
isElement: z,
|
|
1022
|
-
isRTL:
|
|
1074
|
+
isRTL: Yn
|
|
1023
1075
|
};
|
|
1024
|
-
function
|
|
1076
|
+
function Ot(e, n) {
|
|
1025
1077
|
return e.x === n.x && e.y === n.y && e.width === n.width && e.height === n.height;
|
|
1026
1078
|
}
|
|
1027
|
-
function
|
|
1079
|
+
function Qn(e, n) {
|
|
1028
1080
|
let t = null, o;
|
|
1029
1081
|
const i = j(e);
|
|
1030
1082
|
function r() {
|
|
@@ -1041,7 +1093,7 @@ function Gn(e, n) {
|
|
|
1041
1093
|
} = g;
|
|
1042
1094
|
if (s || n(), !d || !a)
|
|
1043
1095
|
return;
|
|
1044
|
-
const p =
|
|
1096
|
+
const p = Se(f), m = Se(i.clientWidth - (c + d)), w = Se(i.clientHeight - (f + a)), h = Se(c), S = {
|
|
1045
1097
|
rootMargin: -p + "px " + -m + "px " + -w + "px " + -h + "px",
|
|
1046
1098
|
threshold: E(0, Z(1, u)) || 1
|
|
1047
1099
|
};
|
|
@@ -1055,7 +1107,7 @@ function Gn(e, n) {
|
|
|
1055
1107
|
l(!1, 1e-7);
|
|
1056
1108
|
}, 1e3);
|
|
1057
1109
|
}
|
|
1058
|
-
_ === 1 && !
|
|
1110
|
+
_ === 1 && !Ot(g, e.getBoundingClientRect()) && l(), x = !1;
|
|
1059
1111
|
}
|
|
1060
1112
|
try {
|
|
1061
1113
|
t = new IntersectionObserver(y, {
|
|
@@ -1070,7 +1122,7 @@ function Gn(e, n) {
|
|
|
1070
1122
|
}
|
|
1071
1123
|
return l(!0), r;
|
|
1072
1124
|
}
|
|
1073
|
-
function
|
|
1125
|
+
function Xo(e, n, t, o) {
|
|
1074
1126
|
o === void 0 && (o = {});
|
|
1075
1127
|
const {
|
|
1076
1128
|
ancestorScroll: i = !0,
|
|
@@ -1078,13 +1130,13 @@ function Eo(e, n, t, o) {
|
|
|
1078
1130
|
elementResize: l = typeof ResizeObserver == "function",
|
|
1079
1131
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
1080
1132
|
animationFrame: u = !1
|
|
1081
|
-
} = o, g =
|
|
1133
|
+
} = o, g = ot(e), c = i || r ? [...g ? me(g) : [], ...me(n)] : [];
|
|
1082
1134
|
c.forEach((h) => {
|
|
1083
1135
|
i && h.addEventListener("scroll", t, {
|
|
1084
1136
|
passive: !0
|
|
1085
1137
|
}), r && h.addEventListener("resize", t);
|
|
1086
1138
|
});
|
|
1087
|
-
const f = g && s ?
|
|
1139
|
+
const f = g && s ? Qn(g, t) : null;
|
|
1088
1140
|
let d = -1, a = null;
|
|
1089
1141
|
l && (a = new ResizeObserver((h) => {
|
|
1090
1142
|
let [C] = h;
|
|
@@ -1097,7 +1149,7 @@ function Eo(e, n, t, o) {
|
|
|
1097
1149
|
u && w();
|
|
1098
1150
|
function w() {
|
|
1099
1151
|
const h = oe(e);
|
|
1100
|
-
m && !
|
|
1152
|
+
m && !Ot(m, h) && t(), m = h, p = requestAnimationFrame(w);
|
|
1101
1153
|
}
|
|
1102
1154
|
return t(), () => {
|
|
1103
1155
|
var h;
|
|
@@ -1106,67 +1158,67 @@ function Eo(e, n, t, o) {
|
|
|
1106
1158
|
}), f?.(), (h = a) == null || h.disconnect(), a = null, u && cancelAnimationFrame(p);
|
|
1107
1159
|
};
|
|
1108
1160
|
}
|
|
1109
|
-
const
|
|
1161
|
+
const Ko = _n, Yo = Fn, Jo = Rn, Qo = Pn, Zo = xn, Zn = vn, ei = $n, eo = (e, n, t) => {
|
|
1110
1162
|
const o = /* @__PURE__ */ new Map(), i = {
|
|
1111
|
-
platform:
|
|
1163
|
+
platform: Jn,
|
|
1112
1164
|
...t
|
|
1113
1165
|
}, r = {
|
|
1114
1166
|
...i.platform,
|
|
1115
1167
|
_c: o
|
|
1116
1168
|
};
|
|
1117
|
-
return
|
|
1169
|
+
return Cn(e, n, {
|
|
1118
1170
|
...i,
|
|
1119
1171
|
platform: r
|
|
1120
1172
|
});
|
|
1121
1173
|
};
|
|
1122
|
-
function
|
|
1174
|
+
function to(e) {
|
|
1123
1175
|
return e != null && typeof e == "object" && "$el" in e;
|
|
1124
1176
|
}
|
|
1125
|
-
function
|
|
1126
|
-
if (
|
|
1177
|
+
function je(e) {
|
|
1178
|
+
if (to(e)) {
|
|
1127
1179
|
const n = e.$el;
|
|
1128
|
-
return
|
|
1180
|
+
return et(n) && ie(n) === "#comment" ? null : n;
|
|
1129
1181
|
}
|
|
1130
1182
|
return e;
|
|
1131
1183
|
}
|
|
1132
1184
|
function se(e) {
|
|
1133
|
-
return typeof e == "function" ? e() :
|
|
1185
|
+
return typeof e == "function" ? e() : Ft(e);
|
|
1134
1186
|
}
|
|
1135
|
-
function
|
|
1187
|
+
function ti(e) {
|
|
1136
1188
|
return {
|
|
1137
1189
|
name: "arrow",
|
|
1138
1190
|
options: e,
|
|
1139
1191
|
fn(n) {
|
|
1140
|
-
const t =
|
|
1141
|
-
return t == null ? {} :
|
|
1192
|
+
const t = je(se(e.element));
|
|
1193
|
+
return t == null ? {} : Zn({
|
|
1142
1194
|
element: t,
|
|
1143
1195
|
padding: e.padding
|
|
1144
1196
|
}).fn(n);
|
|
1145
1197
|
}
|
|
1146
1198
|
};
|
|
1147
1199
|
}
|
|
1148
|
-
function
|
|
1200
|
+
function Lt(e) {
|
|
1149
1201
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1150
1202
|
}
|
|
1151
|
-
function
|
|
1152
|
-
const t =
|
|
1203
|
+
function Ct(e, n) {
|
|
1204
|
+
const t = Lt(e);
|
|
1153
1205
|
return Math.round(n * t) / t;
|
|
1154
1206
|
}
|
|
1155
|
-
function
|
|
1207
|
+
function ni(e, n, t) {
|
|
1156
1208
|
t === void 0 && (t = {});
|
|
1157
|
-
const o = t.whileElementsMounted, i =
|
|
1209
|
+
const o = t.whileElementsMounted, i = k(() => {
|
|
1158
1210
|
var _;
|
|
1159
1211
|
return (_ = se(t.open)) != null ? _ : !0;
|
|
1160
|
-
}), r =
|
|
1212
|
+
}), r = k(() => se(t.middleware)), l = k(() => {
|
|
1161
1213
|
var _;
|
|
1162
1214
|
return (_ = se(t.placement)) != null ? _ : "bottom";
|
|
1163
|
-
}), s =
|
|
1215
|
+
}), s = k(() => {
|
|
1164
1216
|
var _;
|
|
1165
1217
|
return (_ = se(t.strategy)) != null ? _ : "absolute";
|
|
1166
|
-
}), u =
|
|
1218
|
+
}), u = k(() => {
|
|
1167
1219
|
var _;
|
|
1168
1220
|
return (_ = se(t.transform)) != null ? _ : !0;
|
|
1169
|
-
}), g =
|
|
1221
|
+
}), g = k(() => je(e.value)), c = k(() => je(n.value)), f = le(0), d = le(0), a = le(s.value), p = le(l.value), m = _t({}), w = le(!1), h = k(() => {
|
|
1170
1222
|
const _ = {
|
|
1171
1223
|
position: a.value,
|
|
1172
1224
|
left: "0",
|
|
@@ -1174,11 +1226,11 @@ function To(e, n, t) {
|
|
|
1174
1226
|
};
|
|
1175
1227
|
if (!c.value)
|
|
1176
1228
|
return _;
|
|
1177
|
-
const F =
|
|
1229
|
+
const F = Ct(c.value, f.value), M = Ct(c.value, d.value);
|
|
1178
1230
|
return u.value ? {
|
|
1179
1231
|
..._,
|
|
1180
1232
|
transform: "translate(" + F + "px, " + M + "px)",
|
|
1181
|
-
...
|
|
1233
|
+
...Lt(c.value) >= 1.5 && {
|
|
1182
1234
|
willChange: "transform"
|
|
1183
1235
|
}
|
|
1184
1236
|
} : {
|
|
@@ -1192,7 +1244,7 @@ function To(e, n, t) {
|
|
|
1192
1244
|
if (g.value == null || c.value == null)
|
|
1193
1245
|
return;
|
|
1194
1246
|
const _ = i.value;
|
|
1195
|
-
|
|
1247
|
+
eo(g.value, c.value, {
|
|
1196
1248
|
middleware: r.value,
|
|
1197
1249
|
placement: l.value,
|
|
1198
1250
|
strategy: s.value
|
|
@@ -1216,13 +1268,13 @@ function To(e, n, t) {
|
|
|
1216
1268
|
function $() {
|
|
1217
1269
|
i.value || (w.value = !1);
|
|
1218
1270
|
}
|
|
1219
|
-
return
|
|
1271
|
+
return ye([r, l, s, i], S, {
|
|
1220
1272
|
flush: "sync"
|
|
1221
|
-
}),
|
|
1273
|
+
}), ye([g, c], y, {
|
|
1222
1274
|
flush: "sync"
|
|
1223
|
-
}),
|
|
1275
|
+
}), ye(i, $, {
|
|
1224
1276
|
flush: "sync"
|
|
1225
|
-
}),
|
|
1277
|
+
}), Zt() && en(x), {
|
|
1226
1278
|
x: re(f),
|
|
1227
1279
|
y: re(d),
|
|
1228
1280
|
strategy: re(a),
|
|
@@ -1243,7 +1295,7 @@ function To(e, n, t) {
|
|
|
1243
1295
|
*
|
|
1244
1296
|
* @license MIT
|
|
1245
1297
|
*/
|
|
1246
|
-
function
|
|
1298
|
+
function oi() {
|
|
1247
1299
|
return {
|
|
1248
1300
|
accessor: (e, n) => typeof e == "function" ? {
|
|
1249
1301
|
...n,
|
|
@@ -1267,13 +1319,13 @@ function D(e, n) {
|
|
|
1267
1319
|
}));
|
|
1268
1320
|
};
|
|
1269
1321
|
}
|
|
1270
|
-
function
|
|
1322
|
+
function Ee(e) {
|
|
1271
1323
|
return e instanceof Function;
|
|
1272
1324
|
}
|
|
1273
|
-
function
|
|
1325
|
+
function no(e) {
|
|
1274
1326
|
return Array.isArray(e) && e.every((n) => typeof n == "number");
|
|
1275
1327
|
}
|
|
1276
|
-
function
|
|
1328
|
+
function oo(e, n) {
|
|
1277
1329
|
const t = [], o = (i) => {
|
|
1278
1330
|
i.forEach((r) => {
|
|
1279
1331
|
t.push(r);
|
|
@@ -1317,7 +1369,7 @@ function R(e, n, t, o) {
|
|
|
1317
1369
|
onChange: o
|
|
1318
1370
|
};
|
|
1319
1371
|
}
|
|
1320
|
-
function
|
|
1372
|
+
function io(e, n, t, o) {
|
|
1321
1373
|
const i = () => {
|
|
1322
1374
|
var l;
|
|
1323
1375
|
return (l = r.getValue()) != null ? l : e.options.renderFallbackValue;
|
|
@@ -1340,7 +1392,7 @@ function qn(e, n, t, o) {
|
|
|
1340
1392
|
l.createCell == null || l.createCell(r, t, n, e);
|
|
1341
1393
|
}, {}), r;
|
|
1342
1394
|
}
|
|
1343
|
-
function
|
|
1395
|
+
function ro(e, n, t, o) {
|
|
1344
1396
|
var i, r;
|
|
1345
1397
|
const s = {
|
|
1346
1398
|
...e._getDefaultColumnDef(),
|
|
@@ -1381,7 +1433,7 @@ function jn(e, n, t, o) {
|
|
|
1381
1433
|
return f;
|
|
1382
1434
|
}
|
|
1383
1435
|
const P = "debugHeaders";
|
|
1384
|
-
function
|
|
1436
|
+
function vt(e, n, t) {
|
|
1385
1437
|
var o;
|
|
1386
1438
|
let r = {
|
|
1387
1439
|
id: (o = t.id) != null ? o : n.id,
|
|
@@ -1410,20 +1462,20 @@ function mt(e, n, t) {
|
|
|
1410
1462
|
l.createHeader == null || l.createHeader(r, e);
|
|
1411
1463
|
}), r;
|
|
1412
1464
|
}
|
|
1413
|
-
const
|
|
1465
|
+
const lo = {
|
|
1414
1466
|
createTable: (e) => {
|
|
1415
1467
|
e.getHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, i) => {
|
|
1416
1468
|
var r, l;
|
|
1417
1469
|
const s = (r = o?.map((f) => t.find((d) => d.id === f)).filter(Boolean)) != null ? r : [], u = (l = i?.map((f) => t.find((d) => d.id === f)).filter(Boolean)) != null ? l : [], g = t.filter((f) => !(o != null && o.includes(f.id)) && !(i != null && i.includes(f.id)));
|
|
1418
|
-
return
|
|
1419
|
-
}, R(e.options, P, "getHeaderGroups")), e.getCenterHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, i) => (t = t.filter((r) => !(o != null && o.includes(r.id)) && !(i != null && i.includes(r.id))),
|
|
1470
|
+
return Ce(n, [...s, ...g, ...u], e);
|
|
1471
|
+
}, R(e.options, P, "getHeaderGroups")), e.getCenterHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, i) => (t = t.filter((r) => !(o != null && o.includes(r.id)) && !(i != null && i.includes(r.id))), Ce(n, t, e, "center")), R(e.options, P, "getCenterHeaderGroups")), e.getLeftHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, o) => {
|
|
1420
1472
|
var i;
|
|
1421
1473
|
const r = (i = o?.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? i : [];
|
|
1422
|
-
return
|
|
1474
|
+
return Ce(n, r, e, "left");
|
|
1423
1475
|
}, R(e.options, P, "getLeftHeaderGroups")), e.getRightHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, o) => {
|
|
1424
1476
|
var i;
|
|
1425
1477
|
const r = (i = o?.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? i : [];
|
|
1426
|
-
return
|
|
1478
|
+
return Ce(n, r, e, "right");
|
|
1427
1479
|
}, R(e.options, P, "getRightHeaderGroups")), e.getFooterGroups = v(() => [e.getHeaderGroups()], (n) => [...n].reverse(), R(e.options, P, "getFooterGroups")), e.getLeftFooterGroups = v(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), R(e.options, P, "getLeftFooterGroups")), e.getCenterFooterGroups = v(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), R(e.options, P, "getCenterFooterGroups")), e.getRightFooterGroups = v(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), R(e.options, P, "getRightFooterGroups")), e.getFlatHeaders = v(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), R(e.options, P, "getFlatHeaders")), e.getLeftFlatHeaders = v(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), R(e.options, P, "getLeftFlatHeaders")), e.getCenterFlatHeaders = v(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), R(e.options, P, "getCenterFlatHeaders")), e.getRightFlatHeaders = v(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), R(e.options, P, "getRightFlatHeaders")), e.getCenterLeafHeaders = v(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
|
|
1428
1480
|
var o;
|
|
1429
1481
|
return !((o = t.subHeaders) != null && o.length);
|
|
@@ -1439,7 +1491,7 @@ const bn = {
|
|
|
1439
1491
|
}, R(e.options, P, "getLeafHeaders"));
|
|
1440
1492
|
}
|
|
1441
1493
|
};
|
|
1442
|
-
function
|
|
1494
|
+
function Ce(e, n, t, o) {
|
|
1443
1495
|
var i, r;
|
|
1444
1496
|
let l = 0;
|
|
1445
1497
|
const s = function(d, a) {
|
|
@@ -1462,7 +1514,7 @@ function Se(e, n, t, o) {
|
|
|
1462
1514
|
if (C && w.column.parent ? S = w.column.parent : (S = w.column, x = !0), h && h?.column === S)
|
|
1463
1515
|
h.subHeaders.push(w);
|
|
1464
1516
|
else {
|
|
1465
|
-
const y =
|
|
1517
|
+
const y = vt(t, S, {
|
|
1466
1518
|
id: [o, a, S.id, w?.id].filter(Boolean).join("_"),
|
|
1467
1519
|
isPlaceholder: x,
|
|
1468
1520
|
placeholderId: x ? `${m.filter(($) => $.column === S).length}` : void 0,
|
|
@@ -1473,7 +1525,7 @@ function Se(e, n, t, o) {
|
|
|
1473
1525
|
}
|
|
1474
1526
|
p.headers.push(w), w.headerGroup = p;
|
|
1475
1527
|
}), u.push(p), a > 0 && g(m, a - 1);
|
|
1476
|
-
}, c = n.map((d, a) =>
|
|
1528
|
+
}, c = n.map((d, a) => vt(t, d, {
|
|
1477
1529
|
depth: l,
|
|
1478
1530
|
index: a
|
|
1479
1531
|
}));
|
|
@@ -1495,7 +1547,7 @@ function Se(e, n, t, o) {
|
|
|
1495
1547
|
});
|
|
1496
1548
|
return f((i = (r = u[0]) == null ? void 0 : r.headers) != null ? i : []), u;
|
|
1497
1549
|
}
|
|
1498
|
-
const
|
|
1550
|
+
const so = (e, n, t, o, i, r, l) => {
|
|
1499
1551
|
let s = {
|
|
1500
1552
|
id: n,
|
|
1501
1553
|
index: o,
|
|
@@ -1523,7 +1575,7 @@ const Wn = (e, n, t, o, i, r, l) => {
|
|
|
1523
1575
|
return (g = s.getValue(u)) != null ? g : e.options.renderFallbackValue;
|
|
1524
1576
|
},
|
|
1525
1577
|
subRows: [],
|
|
1526
|
-
getLeafRows: () =>
|
|
1578
|
+
getLeafRows: () => oo(s.subRows, (u) => u.subRows),
|
|
1527
1579
|
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
|
|
1528
1580
|
getParentRows: () => {
|
|
1529
1581
|
let u = [], g = s;
|
|
@@ -1534,7 +1586,7 @@ const Wn = (e, n, t, o, i, r, l) => {
|
|
|
1534
1586
|
}
|
|
1535
1587
|
return u.reverse();
|
|
1536
1588
|
},
|
|
1537
|
-
getAllCells: v(() => [e.getAllLeafColumns()], (u) => u.map((g) =>
|
|
1589
|
+
getAllCells: v(() => [e.getAllLeafColumns()], (u) => u.map((g) => io(e, s, g, g.id)), R(e.options, "debugRows", "getAllCells")),
|
|
1538
1590
|
_getAllCellsByColumnId: v(() => [s.getAllCells()], (u) => u.reduce((g, c) => (g[c.column.id] = c, g), {}), R(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
1539
1591
|
};
|
|
1540
1592
|
for (let u = 0; u < e._features.length; u++) {
|
|
@@ -1542,54 +1594,54 @@ const Wn = (e, n, t, o, i, r, l) => {
|
|
|
1542
1594
|
g == null || g.createRow == null || g.createRow(s, e);
|
|
1543
1595
|
}
|
|
1544
1596
|
return s;
|
|
1545
|
-
},
|
|
1597
|
+
}, uo = {
|
|
1546
1598
|
createColumn: (e, n) => {
|
|
1547
1599
|
e._getFacetedRowModel = n.options.getFacetedRowModel && n.options.getFacetedRowModel(n, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : n.getPreFilteredRowModel(), e._getFacetedUniqueValues = n.options.getFacetedUniqueValues && n.options.getFacetedUniqueValues(n, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = n.options.getFacetedMinMaxValues && n.options.getFacetedMinMaxValues(n, e.id), e.getFacetedMinMaxValues = () => {
|
|
1548
1600
|
if (e._getFacetedMinMaxValues)
|
|
1549
1601
|
return e._getFacetedMinMaxValues();
|
|
1550
1602
|
};
|
|
1551
1603
|
}
|
|
1552
|
-
},
|
|
1604
|
+
}, Ht = (e, n, t) => {
|
|
1553
1605
|
var o, i;
|
|
1554
1606
|
const r = t == null || (o = t.toString()) == null ? void 0 : o.toLowerCase();
|
|
1555
1607
|
return !!(!((i = e.getValue(n)) == null || (i = i.toString()) == null || (i = i.toLowerCase()) == null) && i.includes(r));
|
|
1556
1608
|
};
|
|
1557
|
-
|
|
1558
|
-
const
|
|
1609
|
+
Ht.autoRemove = (e) => G(e);
|
|
1610
|
+
const Gt = (e, n, t) => {
|
|
1559
1611
|
var o;
|
|
1560
1612
|
return !!(!((o = e.getValue(n)) == null || (o = o.toString()) == null) && o.includes(t));
|
|
1561
1613
|
};
|
|
1562
|
-
|
|
1563
|
-
const
|
|
1614
|
+
Gt.autoRemove = (e) => G(e);
|
|
1615
|
+
const zt = (e, n, t) => {
|
|
1564
1616
|
var o;
|
|
1565
1617
|
return ((o = e.getValue(n)) == null || (o = o.toString()) == null ? void 0 : o.toLowerCase()) === t?.toLowerCase();
|
|
1566
1618
|
};
|
|
1567
|
-
|
|
1568
|
-
const
|
|
1619
|
+
zt.autoRemove = (e) => G(e);
|
|
1620
|
+
const Tt = (e, n, t) => {
|
|
1569
1621
|
var o;
|
|
1570
1622
|
return (o = e.getValue(n)) == null ? void 0 : o.includes(t);
|
|
1571
1623
|
};
|
|
1572
|
-
|
|
1573
|
-
const
|
|
1624
|
+
Tt.autoRemove = (e) => G(e);
|
|
1625
|
+
const Bt = (e, n, t) => !t.some((o) => {
|
|
1574
1626
|
var i;
|
|
1575
1627
|
return !((i = e.getValue(n)) != null && i.includes(o));
|
|
1576
1628
|
});
|
|
1577
|
-
|
|
1578
|
-
const
|
|
1629
|
+
Bt.autoRemove = (e) => G(e) || !(e != null && e.length);
|
|
1630
|
+
const kt = (e, n, t) => t.some((o) => {
|
|
1579
1631
|
var i;
|
|
1580
1632
|
return (i = e.getValue(n)) == null ? void 0 : i.includes(o);
|
|
1581
1633
|
});
|
|
1582
|
-
|
|
1583
|
-
const
|
|
1584
|
-
|
|
1585
|
-
const
|
|
1586
|
-
|
|
1587
|
-
const
|
|
1634
|
+
kt.autoRemove = (e) => G(e) || !(e != null && e.length);
|
|
1635
|
+
const Nt = (e, n, t) => e.getValue(n) === t;
|
|
1636
|
+
Nt.autoRemove = (e) => G(e);
|
|
1637
|
+
const bt = (e, n, t) => e.getValue(n) == t;
|
|
1638
|
+
bt.autoRemove = (e) => G(e);
|
|
1639
|
+
const it = (e, n, t) => {
|
|
1588
1640
|
let [o, i] = t;
|
|
1589
1641
|
const r = e.getValue(n);
|
|
1590
1642
|
return r >= o && r <= i;
|
|
1591
1643
|
};
|
|
1592
|
-
|
|
1644
|
+
it.resolveFilterValue = (e) => {
|
|
1593
1645
|
let [n, t] = e, o = typeof n != "number" ? parseFloat(n) : n, i = typeof t != "number" ? parseFloat(t) : t, r = n === null || Number.isNaN(o) ? -1 / 0 : o, l = t === null || Number.isNaN(i) ? 1 / 0 : i;
|
|
1594
1646
|
if (r > l) {
|
|
1595
1647
|
const s = r;
|
|
@@ -1597,22 +1649,22 @@ nt.resolveFilterValue = (e) => {
|
|
|
1597
1649
|
}
|
|
1598
1650
|
return [r, l];
|
|
1599
1651
|
};
|
|
1600
|
-
|
|
1601
|
-
const
|
|
1602
|
-
includesString:
|
|
1603
|
-
includesStringSensitive:
|
|
1604
|
-
equalsString:
|
|
1605
|
-
arrIncludes:
|
|
1606
|
-
arrIncludesAll:
|
|
1607
|
-
arrIncludesSome:
|
|
1608
|
-
equals:
|
|
1609
|
-
weakEquals:
|
|
1610
|
-
inNumberRange:
|
|
1652
|
+
it.autoRemove = (e) => G(e) || G(e[0]) && G(e[1]);
|
|
1653
|
+
const U = {
|
|
1654
|
+
includesString: Ht,
|
|
1655
|
+
includesStringSensitive: Gt,
|
|
1656
|
+
equalsString: zt,
|
|
1657
|
+
arrIncludes: Tt,
|
|
1658
|
+
arrIncludesAll: Bt,
|
|
1659
|
+
arrIncludesSome: kt,
|
|
1660
|
+
equals: Nt,
|
|
1661
|
+
weakEquals: bt,
|
|
1662
|
+
inNumberRange: it
|
|
1611
1663
|
};
|
|
1612
1664
|
function G(e) {
|
|
1613
1665
|
return e == null || e === "";
|
|
1614
1666
|
}
|
|
1615
|
-
const
|
|
1667
|
+
const ao = {
|
|
1616
1668
|
getDefaultColumnDef: () => ({
|
|
1617
1669
|
filterFn: "auto"
|
|
1618
1670
|
}),
|
|
@@ -1628,12 +1680,12 @@ const Xn = {
|
|
|
1628
1680
|
createColumn: (e, n) => {
|
|
1629
1681
|
e.getAutoFilterFn = () => {
|
|
1630
1682
|
const t = n.getCoreRowModel().flatRows[0], o = t?.getValue(e.id);
|
|
1631
|
-
return typeof o == "string" ?
|
|
1683
|
+
return typeof o == "string" ? U.includesString : typeof o == "number" ? U.inNumberRange : typeof o == "boolean" || o !== null && typeof o == "object" ? U.equals : Array.isArray(o) ? U.arrIncludes : U.weakEquals;
|
|
1632
1684
|
}, e.getFilterFn = () => {
|
|
1633
1685
|
var t, o;
|
|
1634
|
-
return
|
|
1686
|
+
return Ee(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
1635
1687
|
// @ts-ignore
|
|
1636
|
-
(t = (o = n.options.filterFns) == null ? void 0 : o[e.columnDef.filterFn]) != null ? t :
|
|
1688
|
+
(t = (o = n.options.filterFns) == null ? void 0 : o[e.columnDef.filterFn]) != null ? t : U[e.columnDef.filterFn]
|
|
1637
1689
|
);
|
|
1638
1690
|
}, e.getCanFilter = () => {
|
|
1639
1691
|
var t, o, i;
|
|
@@ -1647,7 +1699,7 @@ const Xn = {
|
|
|
1647
1699
|
}, e.setFilterValue = (t) => {
|
|
1648
1700
|
n.setColumnFilters((o) => {
|
|
1649
1701
|
const i = e.getFilterFn(), r = o?.find((c) => c.id === e.id), l = Q(t, r ? r.value : void 0);
|
|
1650
|
-
if (
|
|
1702
|
+
if (Rt(i, l, e)) {
|
|
1651
1703
|
var s;
|
|
1652
1704
|
return (s = o?.filter((c) => c.id !== e.id)) != null ? s : [];
|
|
1653
1705
|
}
|
|
@@ -1674,7 +1726,7 @@ const Xn = {
|
|
|
1674
1726
|
const s = t.find((u) => u.id === l.id);
|
|
1675
1727
|
if (s) {
|
|
1676
1728
|
const u = s.getFilterFn();
|
|
1677
|
-
if (
|
|
1729
|
+
if (Rt(u, l.value, s))
|
|
1678
1730
|
return !1;
|
|
1679
1731
|
}
|
|
1680
1732
|
return !0;
|
|
@@ -1687,57 +1739,57 @@ const Xn = {
|
|
|
1687
1739
|
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
|
1688
1740
|
}
|
|
1689
1741
|
};
|
|
1690
|
-
function
|
|
1742
|
+
function Rt(e, n, t) {
|
|
1691
1743
|
return (e && e.autoRemove ? e.autoRemove(n, t) : !1) || typeof n > "u" || typeof n == "string" && !n;
|
|
1692
1744
|
}
|
|
1693
|
-
const
|
|
1745
|
+
const go = (e, n, t) => t.reduce((o, i) => {
|
|
1694
1746
|
const r = i.getValue(e);
|
|
1695
1747
|
return o + (typeof r == "number" ? r : 0);
|
|
1696
|
-
}, 0),
|
|
1748
|
+
}, 0), co = (e, n, t) => {
|
|
1697
1749
|
let o;
|
|
1698
1750
|
return t.forEach((i) => {
|
|
1699
1751
|
const r = i.getValue(e);
|
|
1700
1752
|
r != null && (o > r || o === void 0 && r >= r) && (o = r);
|
|
1701
1753
|
}), o;
|
|
1702
|
-
},
|
|
1754
|
+
}, fo = (e, n, t) => {
|
|
1703
1755
|
let o;
|
|
1704
1756
|
return t.forEach((i) => {
|
|
1705
1757
|
const r = i.getValue(e);
|
|
1706
1758
|
r != null && (o < r || o === void 0 && r >= r) && (o = r);
|
|
1707
1759
|
}), o;
|
|
1708
|
-
},
|
|
1760
|
+
}, po = (e, n, t) => {
|
|
1709
1761
|
let o, i;
|
|
1710
1762
|
return t.forEach((r) => {
|
|
1711
1763
|
const l = r.getValue(e);
|
|
1712
1764
|
l != null && (o === void 0 ? l >= l && (o = i = l) : (o > l && (o = l), i < l && (i = l)));
|
|
1713
1765
|
}), [o, i];
|
|
1714
|
-
},
|
|
1766
|
+
}, mo = (e, n) => {
|
|
1715
1767
|
let t = 0, o = 0;
|
|
1716
1768
|
if (n.forEach((i) => {
|
|
1717
1769
|
let r = i.getValue(e);
|
|
1718
1770
|
r != null && (r = +r) >= r && (++t, o += r);
|
|
1719
1771
|
}), t) return o / t;
|
|
1720
|
-
},
|
|
1772
|
+
}, ho = (e, n) => {
|
|
1721
1773
|
if (!n.length)
|
|
1722
1774
|
return;
|
|
1723
1775
|
const t = n.map((r) => r.getValue(e));
|
|
1724
|
-
if (!
|
|
1776
|
+
if (!no(t))
|
|
1725
1777
|
return;
|
|
1726
1778
|
if (t.length === 1)
|
|
1727
1779
|
return t[0];
|
|
1728
1780
|
const o = Math.floor(t.length / 2), i = t.sort((r, l) => r - l);
|
|
1729
1781
|
return t.length % 2 !== 0 ? i[o] : (i[o - 1] + i[o]) / 2;
|
|
1730
|
-
},
|
|
1731
|
-
sum:
|
|
1732
|
-
min:
|
|
1733
|
-
max:
|
|
1734
|
-
extent:
|
|
1735
|
-
mean:
|
|
1736
|
-
median:
|
|
1737
|
-
unique:
|
|
1738
|
-
uniqueCount:
|
|
1739
|
-
count:
|
|
1740
|
-
},
|
|
1782
|
+
}, wo = (e, n) => Array.from(new Set(n.map((t) => t.getValue(e))).values()), So = (e, n) => new Set(n.map((t) => t.getValue(e))).size, Co = (e, n) => n.length, Oe = {
|
|
1783
|
+
sum: go,
|
|
1784
|
+
min: co,
|
|
1785
|
+
max: fo,
|
|
1786
|
+
extent: po,
|
|
1787
|
+
mean: mo,
|
|
1788
|
+
median: ho,
|
|
1789
|
+
unique: wo,
|
|
1790
|
+
uniqueCount: So,
|
|
1791
|
+
count: Co
|
|
1792
|
+
}, vo = {
|
|
1741
1793
|
getDefaultColumnDef: () => ({
|
|
1742
1794
|
aggregatedCell: (e) => {
|
|
1743
1795
|
var n, t;
|
|
@@ -1773,14 +1825,14 @@ const Kn = (e, n, t) => t.reduce((o, i) => {
|
|
|
1773
1825
|
}, e.getAutoAggregationFn = () => {
|
|
1774
1826
|
const t = n.getCoreRowModel().flatRows[0], o = t?.getValue(e.id);
|
|
1775
1827
|
if (typeof o == "number")
|
|
1776
|
-
return
|
|
1828
|
+
return Oe.sum;
|
|
1777
1829
|
if (Object.prototype.toString.call(o) === "[object Date]")
|
|
1778
|
-
return
|
|
1830
|
+
return Oe.extent;
|
|
1779
1831
|
}, e.getAggregationFn = () => {
|
|
1780
1832
|
var t, o;
|
|
1781
1833
|
if (!e)
|
|
1782
1834
|
throw new Error();
|
|
1783
|
-
return
|
|
1835
|
+
return Ee(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (o = n.options.aggregationFns) == null ? void 0 : o[e.columnDef.aggregationFn]) != null ? t : Oe[e.columnDef.aggregationFn];
|
|
1784
1836
|
};
|
|
1785
1837
|
},
|
|
1786
1838
|
createTable: (e) => {
|
|
@@ -1804,13 +1856,13 @@ const Kn = (e, n, t) => t.reduce((o, i) => {
|
|
|
1804
1856
|
};
|
|
1805
1857
|
}
|
|
1806
1858
|
};
|
|
1807
|
-
function
|
|
1859
|
+
function Ro(e, n, t) {
|
|
1808
1860
|
if (!(n != null && n.length) || !t)
|
|
1809
1861
|
return e;
|
|
1810
1862
|
const o = e.filter((r) => !n.includes(r.id));
|
|
1811
1863
|
return t === "remove" ? o : [...n.map((r) => e.find((l) => l.id === r)).filter(Boolean), ...o];
|
|
1812
1864
|
}
|
|
1813
|
-
const
|
|
1865
|
+
const xo = {
|
|
1814
1866
|
getInitialState: (e) => ({
|
|
1815
1867
|
columnOrder: [],
|
|
1816
1868
|
...e
|
|
@@ -1844,15 +1896,15 @@ const lo = {
|
|
|
1844
1896
|
}
|
|
1845
1897
|
r = [...r, ...s];
|
|
1846
1898
|
}
|
|
1847
|
-
return
|
|
1899
|
+
return Ro(r, t, o);
|
|
1848
1900
|
}, R(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
1849
1901
|
}
|
|
1850
|
-
},
|
|
1902
|
+
}, Le = () => ({
|
|
1851
1903
|
left: [],
|
|
1852
1904
|
right: []
|
|
1853
|
-
}),
|
|
1905
|
+
}), yo = {
|
|
1854
1906
|
getInitialState: (e) => ({
|
|
1855
|
-
columnPinning:
|
|
1907
|
+
columnPinning: Le(),
|
|
1856
1908
|
...e
|
|
1857
1909
|
}),
|
|
1858
1910
|
getDefaultOptions: (e) => ({
|
|
@@ -1912,7 +1964,7 @@ const lo = {
|
|
|
1912
1964
|
createTable: (e) => {
|
|
1913
1965
|
e.setColumnPinning = (n) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(n), e.resetColumnPinning = (n) => {
|
|
1914
1966
|
var t, o;
|
|
1915
|
-
return e.setColumnPinning(n ?
|
|
1967
|
+
return e.setColumnPinning(n ? Le() : (t = (o = e.initialState) == null ? void 0 : o.columnPinning) != null ? t : Le());
|
|
1916
1968
|
}, e.getIsSomeColumnsPinned = (n) => {
|
|
1917
1969
|
var t;
|
|
1918
1970
|
const o = e.getState().columnPinning;
|
|
@@ -1927,25 +1979,25 @@ const lo = {
|
|
|
1927
1979
|
}, R(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
1928
1980
|
}
|
|
1929
1981
|
};
|
|
1930
|
-
function
|
|
1982
|
+
function _o(e) {
|
|
1931
1983
|
return e || (typeof document < "u" ? document : null);
|
|
1932
1984
|
}
|
|
1933
|
-
const
|
|
1985
|
+
const ve = {
|
|
1934
1986
|
size: 150,
|
|
1935
1987
|
minSize: 20,
|
|
1936
1988
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
1937
|
-
},
|
|
1989
|
+
}, He = () => ({
|
|
1938
1990
|
startOffset: null,
|
|
1939
1991
|
startSize: null,
|
|
1940
1992
|
deltaOffset: null,
|
|
1941
1993
|
deltaPercentage: null,
|
|
1942
1994
|
isResizingColumn: !1,
|
|
1943
1995
|
columnSizingStart: []
|
|
1944
|
-
}),
|
|
1945
|
-
getDefaultColumnDef: () =>
|
|
1996
|
+
}), Fo = {
|
|
1997
|
+
getDefaultColumnDef: () => ve,
|
|
1946
1998
|
getInitialState: (e) => ({
|
|
1947
1999
|
columnSizing: {},
|
|
1948
|
-
columnSizingInfo:
|
|
2000
|
+
columnSizingInfo: He(),
|
|
1949
2001
|
...e
|
|
1950
2002
|
}),
|
|
1951
2003
|
getDefaultOptions: (e) => ({
|
|
@@ -1958,7 +2010,7 @@ const Ce = {
|
|
|
1958
2010
|
e.getSize = () => {
|
|
1959
2011
|
var t, o, i;
|
|
1960
2012
|
const r = n.getState().columnSizing[e.id];
|
|
1961
|
-
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t :
|
|
2013
|
+
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : ve.minSize, (o = r ?? e.columnDef.size) != null ? o : ve.size), (i = e.columnDef.maxSize) != null ? i : ve.maxSize);
|
|
1962
2014
|
}, e.getStart = v((t) => [t, fe(n, t), n.getState().columnSizing], (t, o) => o.slice(0, e.getIndex(t)).reduce((i, r) => i + r.getSize(), 0), R(n.options, "debugColumns", "getStart")), e.getAfter = v((t) => [t, fe(n, t), n.getState().columnSizing], (t, o) => o.slice(e.getIndex(t) + 1).reduce((i, r) => i + r.getSize(), 0), R(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
1963
2015
|
n.setColumnSizing((t) => {
|
|
1964
2016
|
let {
|
|
@@ -1993,15 +2045,15 @@ const Ce = {
|
|
|
1993
2045
|
}, e.getResizeHandler = (t) => {
|
|
1994
2046
|
const o = n.getColumn(e.column.id), i = o?.getCanResize();
|
|
1995
2047
|
return (r) => {
|
|
1996
|
-
if (!o || !i || (r.persist == null || r.persist(),
|
|
2048
|
+
if (!o || !i || (r.persist == null || r.persist(), Ge(r) && r.touches && r.touches.length > 1))
|
|
1997
2049
|
return;
|
|
1998
|
-
const l = e.getSize(), s = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[o.id, o.getSize()]], u =
|
|
2050
|
+
const l = e.getSize(), s = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[o.id, o.getSize()]], u = Ge(r) ? Math.round(r.touches[0].clientX) : r.clientX, g = {}, c = (h, C) => {
|
|
1999
2051
|
typeof C == "number" && (n.setColumnSizingInfo((S) => {
|
|
2000
2052
|
var x, y;
|
|
2001
2053
|
const $ = n.options.columnResizeDirection === "rtl" ? -1 : 1, _ = (C - ((x = S?.startOffset) != null ? x : 0)) * $, F = Math.max(_ / ((y = S?.startSize) != null ? y : 0), -0.999999);
|
|
2002
2054
|
return S.columnSizingStart.forEach((M) => {
|
|
2003
|
-
let [A,
|
|
2004
|
-
g[A] = Math.round(Math.max(
|
|
2055
|
+
let [A, O] = M;
|
|
2056
|
+
g[A] = Math.round(Math.max(O + O * F, 0) * 100) / 100;
|
|
2005
2057
|
}), {
|
|
2006
2058
|
...S,
|
|
2007
2059
|
deltaOffset: _,
|
|
@@ -2021,7 +2073,7 @@ const Ce = {
|
|
|
2021
2073
|
deltaPercentage: null,
|
|
2022
2074
|
columnSizingStart: []
|
|
2023
2075
|
}));
|
|
2024
|
-
}, a =
|
|
2076
|
+
}, a = _o(t), p = {
|
|
2025
2077
|
moveHandler: (h) => f(h.clientX),
|
|
2026
2078
|
upHandler: (h) => {
|
|
2027
2079
|
a?.removeEventListener("mousemove", p.moveHandler), a?.removeEventListener("mouseup", p.upHandler), d(h.clientX);
|
|
@@ -2032,10 +2084,10 @@ const Ce = {
|
|
|
2032
2084
|
var C;
|
|
2033
2085
|
a?.removeEventListener("touchmove", m.moveHandler), a?.removeEventListener("touchend", m.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), d((C = h.touches[0]) == null ? void 0 : C.clientX);
|
|
2034
2086
|
}
|
|
2035
|
-
}, w =
|
|
2087
|
+
}, w = $o() ? {
|
|
2036
2088
|
passive: !1
|
|
2037
2089
|
} : !1;
|
|
2038
|
-
|
|
2090
|
+
Ge(r) ? (a?.addEventListener("touchmove", m.moveHandler, w), a?.addEventListener("touchend", m.upHandler, w)) : (a?.addEventListener("mousemove", p.moveHandler, w), a?.addEventListener("mouseup", p.upHandler, w)), n.setColumnSizingInfo((h) => ({
|
|
2039
2091
|
...h,
|
|
2040
2092
|
startOffset: u,
|
|
2041
2093
|
startSize: l,
|
|
@@ -2053,7 +2105,7 @@ const Ce = {
|
|
|
2053
2105
|
e.setColumnSizing(n ? {} : (t = e.initialState.columnSizing) != null ? t : {});
|
|
2054
2106
|
}, e.resetHeaderSizeInfo = (n) => {
|
|
2055
2107
|
var t;
|
|
2056
|
-
e.setColumnSizingInfo(n ?
|
|
2108
|
+
e.setColumnSizingInfo(n ? He() : (t = e.initialState.columnSizingInfo) != null ? t : He());
|
|
2057
2109
|
}, e.getTotalSize = () => {
|
|
2058
2110
|
var n, t;
|
|
2059
2111
|
return (n = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((o, i) => o + i.getSize(), 0)) != null ? n : 0;
|
|
@@ -2069,9 +2121,9 @@ const Ce = {
|
|
|
2069
2121
|
};
|
|
2070
2122
|
}
|
|
2071
2123
|
};
|
|
2072
|
-
let
|
|
2073
|
-
function
|
|
2074
|
-
if (typeof
|
|
2124
|
+
let Re = null;
|
|
2125
|
+
function $o() {
|
|
2126
|
+
if (typeof Re == "boolean") return Re;
|
|
2075
2127
|
let e = !1;
|
|
2076
2128
|
try {
|
|
2077
2129
|
const n = {
|
|
@@ -2084,12 +2136,12 @@ function go() {
|
|
|
2084
2136
|
} catch {
|
|
2085
2137
|
e = !1;
|
|
2086
2138
|
}
|
|
2087
|
-
return
|
|
2139
|
+
return Re = e, Re;
|
|
2088
2140
|
}
|
|
2089
|
-
function
|
|
2141
|
+
function Ge(e) {
|
|
2090
2142
|
return e.type === "touchstart";
|
|
2091
2143
|
}
|
|
2092
|
-
const
|
|
2144
|
+
const Po = {
|
|
2093
2145
|
getInitialState: (e) => ({
|
|
2094
2146
|
columnVisibility: {},
|
|
2095
2147
|
...e
|
|
@@ -2137,14 +2189,14 @@ const co = {
|
|
|
2137
2189
|
function fe(e, n) {
|
|
2138
2190
|
return n ? n === "center" ? e.getCenterVisibleLeafColumns() : n === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
2139
2191
|
}
|
|
2140
|
-
const
|
|
2192
|
+
const Mo = {
|
|
2141
2193
|
createTable: (e) => {
|
|
2142
2194
|
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
2143
2195
|
if (e._getGlobalFacetedMinMaxValues)
|
|
2144
2196
|
return e._getGlobalFacetedMinMaxValues();
|
|
2145
2197
|
};
|
|
2146
2198
|
}
|
|
2147
|
-
},
|
|
2199
|
+
}, Vo = {
|
|
2148
2200
|
getInitialState: (e) => ({
|
|
2149
2201
|
globalFilter: void 0,
|
|
2150
2202
|
...e
|
|
@@ -2165,19 +2217,19 @@ const fo = {
|
|
|
2165
2217
|
};
|
|
2166
2218
|
},
|
|
2167
2219
|
createTable: (e) => {
|
|
2168
|
-
e.getGlobalAutoFilterFn = () =>
|
|
2220
|
+
e.getGlobalAutoFilterFn = () => U.includesString, e.getGlobalFilterFn = () => {
|
|
2169
2221
|
var n, t;
|
|
2170
2222
|
const {
|
|
2171
2223
|
globalFilterFn: o
|
|
2172
2224
|
} = e.options;
|
|
2173
|
-
return
|
|
2225
|
+
return Ee(o) ? o : o === "auto" ? e.getGlobalAutoFilterFn() : (n = (t = e.options.filterFns) == null ? void 0 : t[o]) != null ? n : U[o];
|
|
2174
2226
|
}, e.setGlobalFilter = (n) => {
|
|
2175
2227
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(n);
|
|
2176
2228
|
}, e.resetGlobalFilter = (n) => {
|
|
2177
2229
|
e.setGlobalFilter(n ? void 0 : e.initialState.globalFilter);
|
|
2178
2230
|
};
|
|
2179
2231
|
}
|
|
2180
|
-
},
|
|
2232
|
+
}, Ao = {
|
|
2181
2233
|
getInitialState: (e) => ({
|
|
2182
2234
|
expanded: {},
|
|
2183
2235
|
...e
|
|
@@ -2264,14 +2316,14 @@ const fo = {
|
|
|
2264
2316
|
};
|
|
2265
2317
|
};
|
|
2266
2318
|
}
|
|
2267
|
-
},
|
|
2268
|
-
pageIndex:
|
|
2269
|
-
pageSize:
|
|
2270
|
-
}),
|
|
2319
|
+
}, We = 0, Ue = 10, ze = () => ({
|
|
2320
|
+
pageIndex: We,
|
|
2321
|
+
pageSize: Ue
|
|
2322
|
+
}), Eo = {
|
|
2271
2323
|
getInitialState: (e) => ({
|
|
2272
2324
|
...e,
|
|
2273
2325
|
pagination: {
|
|
2274
|
-
...
|
|
2326
|
+
...ze(),
|
|
2275
2327
|
...e?.pagination
|
|
2276
2328
|
}
|
|
2277
2329
|
}),
|
|
@@ -2299,7 +2351,7 @@ const fo = {
|
|
|
2299
2351
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(i);
|
|
2300
2352
|
}, e.resetPagination = (o) => {
|
|
2301
2353
|
var i;
|
|
2302
|
-
e.setPagination(o ?
|
|
2354
|
+
e.setPagination(o ? ze() : (i = e.initialState.pagination) != null ? i : ze());
|
|
2303
2355
|
}, e.setPageIndex = (o) => {
|
|
2304
2356
|
e.setPagination((i) => {
|
|
2305
2357
|
let r = Q(o, i.pageIndex);
|
|
@@ -2311,10 +2363,10 @@ const fo = {
|
|
|
2311
2363
|
});
|
|
2312
2364
|
}, e.resetPageIndex = (o) => {
|
|
2313
2365
|
var i, r;
|
|
2314
|
-
e.setPageIndex(o ?
|
|
2366
|
+
e.setPageIndex(o ? We : (i = (r = e.initialState) == null || (r = r.pagination) == null ? void 0 : r.pageIndex) != null ? i : We);
|
|
2315
2367
|
}, e.resetPageSize = (o) => {
|
|
2316
2368
|
var i, r;
|
|
2317
|
-
e.setPageSize(o ?
|
|
2369
|
+
e.setPageSize(o ? Ue : (i = (r = e.initialState) == null || (r = r.pagination) == null ? void 0 : r.pageSize) != null ? i : Ue);
|
|
2318
2370
|
}, e.setPageSize = (o) => {
|
|
2319
2371
|
e.setPagination((i) => {
|
|
2320
2372
|
const r = Math.max(1, Q(o, i.pageSize)), l = i.pageSize * i.pageIndex, s = Math.floor(l / r);
|
|
@@ -2347,12 +2399,12 @@ const fo = {
|
|
|
2347
2399
|
return (o = e.options.rowCount) != null ? o : e.getPrePaginationRowModel().rows.length;
|
|
2348
2400
|
};
|
|
2349
2401
|
}
|
|
2350
|
-
},
|
|
2402
|
+
}, Te = () => ({
|
|
2351
2403
|
top: [],
|
|
2352
2404
|
bottom: []
|
|
2353
|
-
}),
|
|
2405
|
+
}), Io = {
|
|
2354
2406
|
getInitialState: (e) => ({
|
|
2355
|
-
rowPinning:
|
|
2407
|
+
rowPinning: Te(),
|
|
2356
2408
|
...e
|
|
2357
2409
|
}),
|
|
2358
2410
|
getDefaultOptions: (e) => ({
|
|
@@ -2421,7 +2473,7 @@ const fo = {
|
|
|
2421
2473
|
createTable: (e) => {
|
|
2422
2474
|
e.setRowPinning = (n) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(n), e.resetRowPinning = (n) => {
|
|
2423
2475
|
var t, o;
|
|
2424
|
-
return e.setRowPinning(n ?
|
|
2476
|
+
return e.setRowPinning(n ? Te() : (t = (o = e.initialState) == null ? void 0 : o.rowPinning) != null ? t : Te());
|
|
2425
2477
|
}, e.getIsSomeRowsPinned = (n) => {
|
|
2426
2478
|
var t;
|
|
2427
2479
|
const o = e.getState().rowPinning;
|
|
@@ -2451,7 +2503,7 @@ const fo = {
|
|
|
2451
2503
|
return n.filter((r) => !i.has(r.id));
|
|
2452
2504
|
}, R(e.options, "debugRows", "getCenterRows"));
|
|
2453
2505
|
}
|
|
2454
|
-
},
|
|
2506
|
+
}, Do = {
|
|
2455
2507
|
getInitialState: (e) => ({
|
|
2456
2508
|
rowSelection: {},
|
|
2457
2509
|
...e
|
|
@@ -2486,17 +2538,17 @@ const fo = {
|
|
|
2486
2538
|
...t
|
|
2487
2539
|
};
|
|
2488
2540
|
return e.getRowModel().rows.forEach((r) => {
|
|
2489
|
-
|
|
2541
|
+
Xe(i, r.id, o, !0, e);
|
|
2490
2542
|
}), i;
|
|
2491
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = v(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ?
|
|
2543
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = v(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? Be(e, t) : {
|
|
2492
2544
|
rows: [],
|
|
2493
2545
|
flatRows: [],
|
|
2494
2546
|
rowsById: {}
|
|
2495
|
-
}, R(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = v(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ?
|
|
2547
|
+
}, R(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = v(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? Be(e, t) : {
|
|
2496
2548
|
rows: [],
|
|
2497
2549
|
flatRows: [],
|
|
2498
2550
|
rowsById: {}
|
|
2499
|
-
}, R(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = v(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ?
|
|
2551
|
+
}, R(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = v(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? Be(e, t) : {
|
|
2500
2552
|
rows: [],
|
|
2501
2553
|
flatRows: [],
|
|
2502
2554
|
rowsById: {}
|
|
@@ -2535,23 +2587,23 @@ const fo = {
|
|
|
2535
2587
|
const s = {
|
|
2536
2588
|
...r
|
|
2537
2589
|
};
|
|
2538
|
-
return
|
|
2590
|
+
return Xe(s, e.id, t, (l = o?.selectChildren) != null ? l : !0, n), s;
|
|
2539
2591
|
});
|
|
2540
2592
|
}, e.getIsSelected = () => {
|
|
2541
2593
|
const {
|
|
2542
2594
|
rowSelection: t
|
|
2543
2595
|
} = n.getState();
|
|
2544
|
-
return
|
|
2596
|
+
return rt(e, t);
|
|
2545
2597
|
}, e.getIsSomeSelected = () => {
|
|
2546
2598
|
const {
|
|
2547
2599
|
rowSelection: t
|
|
2548
2600
|
} = n.getState();
|
|
2549
|
-
return
|
|
2601
|
+
return Ke(e, t) === "some";
|
|
2550
2602
|
}, e.getIsAllSubRowsSelected = () => {
|
|
2551
2603
|
const {
|
|
2552
2604
|
rowSelection: t
|
|
2553
2605
|
} = n.getState();
|
|
2554
|
-
return
|
|
2606
|
+
return Ke(e, t) === "all";
|
|
2555
2607
|
}, e.getCanSelect = () => {
|
|
2556
2608
|
var t;
|
|
2557
2609
|
return typeof n.options.enableRowSelection == "function" ? n.options.enableRowSelection(e) : (t = n.options.enableRowSelection) != null ? t : !0;
|
|
@@ -2569,16 +2621,16 @@ const fo = {
|
|
|
2569
2621
|
};
|
|
2570
2622
|
};
|
|
2571
2623
|
}
|
|
2572
|
-
},
|
|
2624
|
+
}, Xe = (e, n, t, o, i) => {
|
|
2573
2625
|
var r;
|
|
2574
2626
|
const l = i.getRow(n, !0);
|
|
2575
|
-
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), l.getCanSelect() && (e[n] = !0)) : delete e[n], o && (r = l.subRows) != null && r.length && l.getCanSelectSubRows() && l.subRows.forEach((s) =>
|
|
2627
|
+
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), l.getCanSelect() && (e[n] = !0)) : delete e[n], o && (r = l.subRows) != null && r.length && l.getCanSelectSubRows() && l.subRows.forEach((s) => Xe(e, s.id, t, o, i));
|
|
2576
2628
|
};
|
|
2577
|
-
function
|
|
2629
|
+
function Be(e, n) {
|
|
2578
2630
|
const t = e.getState().rowSelection, o = [], i = {}, r = function(l, s) {
|
|
2579
2631
|
return l.map((u) => {
|
|
2580
2632
|
var g;
|
|
2581
|
-
const c =
|
|
2633
|
+
const c = rt(u, t);
|
|
2582
2634
|
if (c && (o.push(u), i[u.id] = u), (g = u.subRows) != null && g.length && (u = {
|
|
2583
2635
|
...u,
|
|
2584
2636
|
subRows: r(u.subRows)
|
|
@@ -2592,33 +2644,33 @@ function ze(e, n) {
|
|
|
2592
2644
|
rowsById: i
|
|
2593
2645
|
};
|
|
2594
2646
|
}
|
|
2595
|
-
function
|
|
2647
|
+
function rt(e, n) {
|
|
2596
2648
|
var t;
|
|
2597
2649
|
return (t = n[e.id]) != null ? t : !1;
|
|
2598
2650
|
}
|
|
2599
|
-
function
|
|
2651
|
+
function Ke(e, n, t) {
|
|
2600
2652
|
var o;
|
|
2601
2653
|
if (!((o = e.subRows) != null && o.length)) return !1;
|
|
2602
2654
|
let i = !0, r = !1;
|
|
2603
2655
|
return e.subRows.forEach((l) => {
|
|
2604
|
-
if (!(r && !i) && (l.getCanSelect() && (
|
|
2605
|
-
const s =
|
|
2656
|
+
if (!(r && !i) && (l.getCanSelect() && (rt(l, n) ? r = !0 : i = !1), l.subRows && l.subRows.length)) {
|
|
2657
|
+
const s = Ke(l, n);
|
|
2606
2658
|
s === "all" ? r = !0 : (s === "some" && (r = !0), i = !1);
|
|
2607
2659
|
}
|
|
2608
2660
|
}), i ? "all" : r ? "some" : !1;
|
|
2609
2661
|
}
|
|
2610
|
-
const
|
|
2662
|
+
const Ye = /([0-9]+)/gm, Oo = (e, n, t) => qt(te(e.getValue(t)).toLowerCase(), te(n.getValue(t)).toLowerCase()), Lo = (e, n, t) => qt(te(e.getValue(t)), te(n.getValue(t))), Ho = (e, n, t) => lt(te(e.getValue(t)).toLowerCase(), te(n.getValue(t)).toLowerCase()), Go = (e, n, t) => lt(te(e.getValue(t)), te(n.getValue(t))), zo = (e, n, t) => {
|
|
2611
2663
|
const o = e.getValue(t), i = n.getValue(t);
|
|
2612
2664
|
return o > i ? 1 : o < i ? -1 : 0;
|
|
2613
|
-
},
|
|
2614
|
-
function
|
|
2665
|
+
}, To = (e, n, t) => lt(e.getValue(t), n.getValue(t));
|
|
2666
|
+
function lt(e, n) {
|
|
2615
2667
|
return e === n ? 0 : e > n ? 1 : -1;
|
|
2616
2668
|
}
|
|
2617
2669
|
function te(e) {
|
|
2618
2670
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
2619
2671
|
}
|
|
2620
|
-
function
|
|
2621
|
-
const t = e.split(
|
|
2672
|
+
function qt(e, n) {
|
|
2673
|
+
const t = e.split(Ye).filter(Boolean), o = n.split(Ye).filter(Boolean);
|
|
2622
2674
|
for (; t.length && o.length; ) {
|
|
2623
2675
|
const i = t.shift(), r = o.shift(), l = parseInt(i, 10), s = parseInt(r, 10), u = [l, s].sort();
|
|
2624
2676
|
if (isNaN(u[0])) {
|
|
@@ -2638,13 +2690,13 @@ function zt(e, n) {
|
|
|
2638
2690
|
return t.length - o.length;
|
|
2639
2691
|
}
|
|
2640
2692
|
const ce = {
|
|
2641
|
-
alphanumeric:
|
|
2642
|
-
alphanumericCaseSensitive:
|
|
2643
|
-
text:
|
|
2644
|
-
textCaseSensitive:
|
|
2645
|
-
datetime:
|
|
2646
|
-
basic:
|
|
2647
|
-
},
|
|
2693
|
+
alphanumeric: Oo,
|
|
2694
|
+
alphanumericCaseSensitive: Lo,
|
|
2695
|
+
text: Ho,
|
|
2696
|
+
textCaseSensitive: Go,
|
|
2697
|
+
datetime: zo,
|
|
2698
|
+
basic: To
|
|
2699
|
+
}, Bo = {
|
|
2648
2700
|
getInitialState: (e) => ({
|
|
2649
2701
|
sorting: [],
|
|
2650
2702
|
...e
|
|
@@ -2665,7 +2717,7 @@ const ce = {
|
|
|
2665
2717
|
const r = i?.getValue(e.id);
|
|
2666
2718
|
if (Object.prototype.toString.call(r) === "[object Date]")
|
|
2667
2719
|
return ce.datetime;
|
|
2668
|
-
if (typeof r == "string" && (o = !0, r.split(
|
|
2720
|
+
if (typeof r == "string" && (o = !0, r.split(Ye).length > 1))
|
|
2669
2721
|
return ce.alphanumeric;
|
|
2670
2722
|
}
|
|
2671
2723
|
return o ? ce.text : ce.basic;
|
|
@@ -2676,7 +2728,7 @@ const ce = {
|
|
|
2676
2728
|
var t, o;
|
|
2677
2729
|
if (!e)
|
|
2678
2730
|
throw new Error();
|
|
2679
|
-
return
|
|
2731
|
+
return Ee(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (o = n.options.sortingFns) == null ? void 0 : o[e.columnDef.sortingFn]) != null ? t : ce[e.columnDef.sortingFn];
|
|
2680
2732
|
}, e.toggleSorting = (t, o) => {
|
|
2681
2733
|
const i = e.getNextSortingOrder(), r = typeof t < "u" && t !== null;
|
|
2682
2734
|
n.setSorting((l) => {
|
|
@@ -2733,30 +2785,30 @@ const ce = {
|
|
|
2733
2785
|
e.setSorting(n ? [] : (t = (o = e.initialState) == null ? void 0 : o.sorting) != null ? t : []);
|
|
2734
2786
|
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
2735
2787
|
}
|
|
2736
|
-
},
|
|
2737
|
-
bn,
|
|
2738
|
-
co,
|
|
2788
|
+
}, ko = [
|
|
2739
2789
|
lo,
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2790
|
+
Po,
|
|
2791
|
+
xo,
|
|
2792
|
+
yo,
|
|
2793
|
+
uo,
|
|
2794
|
+
ao,
|
|
2795
|
+
Mo,
|
|
2744
2796
|
//depends on ColumnFaceting
|
|
2745
|
-
|
|
2797
|
+
Vo,
|
|
2746
2798
|
//depends on ColumnFiltering
|
|
2747
|
-
|
|
2748
|
-
|
|
2799
|
+
Bo,
|
|
2800
|
+
vo,
|
|
2749
2801
|
//depends on RowSorting
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2802
|
+
Ao,
|
|
2803
|
+
Eo,
|
|
2804
|
+
Io,
|
|
2805
|
+
Do,
|
|
2806
|
+
Fo
|
|
2755
2807
|
];
|
|
2756
|
-
function
|
|
2808
|
+
function No(e) {
|
|
2757
2809
|
var n, t;
|
|
2758
2810
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
2759
|
-
const o = [
|
|
2811
|
+
const o = [...ko, ...(n = e._features) != null ? n : []];
|
|
2760
2812
|
let i = {
|
|
2761
2813
|
_features: o
|
|
2762
2814
|
};
|
|
@@ -2836,7 +2888,7 @@ function Po(e) {
|
|
|
2836
2888
|
getAllColumns: v(() => [i._getColumnDefs()], (d) => {
|
|
2837
2889
|
const a = function(p, m, w) {
|
|
2838
2890
|
return w === void 0 && (w = 0), p.map((h) => {
|
|
2839
|
-
const C =
|
|
2891
|
+
const C = ro(i, h, w, m), S = h;
|
|
2840
2892
|
return C.columns = S.columns ? a(S.columns, C, w + 1) : [], C;
|
|
2841
2893
|
});
|
|
2842
2894
|
};
|
|
@@ -2860,7 +2912,7 @@ function Po(e) {
|
|
|
2860
2912
|
}
|
|
2861
2913
|
return i;
|
|
2862
2914
|
}
|
|
2863
|
-
function
|
|
2915
|
+
function ii() {
|
|
2864
2916
|
return (e) => v(() => [e.options.data], (n) => {
|
|
2865
2917
|
const t = {
|
|
2866
2918
|
rows: [],
|
|
@@ -2870,7 +2922,7 @@ function No() {
|
|
|
2870
2922
|
r === void 0 && (r = 0);
|
|
2871
2923
|
const s = [];
|
|
2872
2924
|
for (let g = 0; g < i.length; g++) {
|
|
2873
|
-
const c =
|
|
2925
|
+
const c = so(e, e._getRowId(i[g], g, l), i[g], g, r, void 0, l?.id);
|
|
2874
2926
|
if (t.flatRows.push(c), t.rowsById[c.id] = c, s.push(c), e.options.getSubRows) {
|
|
2875
2927
|
var u;
|
|
2876
2928
|
c.originalSubRows = e.options.getSubRows(i[g], g), (u = c.originalSubRows) != null && u.length && (c.subRows = o(c.originalSubRows, r + 1, c));
|
|
@@ -2891,18 +2943,18 @@ function No() {
|
|
|
2891
2943
|
*
|
|
2892
2944
|
* @license MIT
|
|
2893
2945
|
*/
|
|
2894
|
-
function
|
|
2946
|
+
function xe() {
|
|
2895
2947
|
return !0;
|
|
2896
2948
|
}
|
|
2897
|
-
const
|
|
2949
|
+
const bo = Symbol("merge-proxy"), qo = {
|
|
2898
2950
|
get(e, n, t) {
|
|
2899
|
-
return n ===
|
|
2951
|
+
return n === bo ? t : e.get(n);
|
|
2900
2952
|
},
|
|
2901
2953
|
has(e, n) {
|
|
2902
2954
|
return e.has(n);
|
|
2903
2955
|
},
|
|
2904
|
-
set:
|
|
2905
|
-
deleteProperty:
|
|
2956
|
+
set: xe,
|
|
2957
|
+
deleteProperty: xe,
|
|
2906
2958
|
getOwnPropertyDescriptor(e, n) {
|
|
2907
2959
|
return {
|
|
2908
2960
|
configurable: !0,
|
|
@@ -2910,15 +2962,15 @@ const Mo = Symbol("merge-proxy"), Vo = {
|
|
|
2910
2962
|
get() {
|
|
2911
2963
|
return e.get(n);
|
|
2912
2964
|
},
|
|
2913
|
-
set:
|
|
2914
|
-
deleteProperty:
|
|
2965
|
+
set: xe,
|
|
2966
|
+
deleteProperty: xe
|
|
2915
2967
|
};
|
|
2916
2968
|
},
|
|
2917
2969
|
ownKeys(e) {
|
|
2918
2970
|
return e.keys();
|
|
2919
2971
|
}
|
|
2920
2972
|
};
|
|
2921
|
-
function
|
|
2973
|
+
function ke(e) {
|
|
2922
2974
|
return "value" in e ? e.value : e;
|
|
2923
2975
|
}
|
|
2924
2976
|
function de() {
|
|
@@ -2927,33 +2979,33 @@ function de() {
|
|
|
2927
2979
|
return new Proxy({
|
|
2928
2980
|
get(o) {
|
|
2929
2981
|
for (let i = n.length - 1; i >= 0; i--) {
|
|
2930
|
-
const r =
|
|
2982
|
+
const r = ke(n[i])[o];
|
|
2931
2983
|
if (r !== void 0) return r;
|
|
2932
2984
|
}
|
|
2933
2985
|
},
|
|
2934
2986
|
has(o) {
|
|
2935
2987
|
for (let i = n.length - 1; i >= 0; i--)
|
|
2936
|
-
if (o in
|
|
2988
|
+
if (o in ke(n[i])) return !0;
|
|
2937
2989
|
return !1;
|
|
2938
2990
|
},
|
|
2939
2991
|
keys() {
|
|
2940
2992
|
const o = [];
|
|
2941
|
-
for (let i = 0; i < n.length; i++) o.push(...Object.keys(
|
|
2993
|
+
for (let i = 0; i < n.length; i++) o.push(...Object.keys(ke(n[i])));
|
|
2942
2994
|
return [...Array.from(new Set(o))];
|
|
2943
2995
|
}
|
|
2944
|
-
},
|
|
2996
|
+
}, qo);
|
|
2945
2997
|
}
|
|
2946
|
-
const
|
|
2998
|
+
const ri = yt({
|
|
2947
2999
|
props: ["render", "props"],
|
|
2948
|
-
setup: (e) => () => typeof e.render == "function" || typeof e.render == "object" ?
|
|
3000
|
+
setup: (e) => () => typeof e.render == "function" || typeof e.render == "object" ? on(e.render, e.props) : e.render
|
|
2949
3001
|
});
|
|
2950
|
-
function
|
|
3002
|
+
function xt(e) {
|
|
2951
3003
|
return de(e, {
|
|
2952
|
-
data:
|
|
3004
|
+
data: Ft(e.data)
|
|
2953
3005
|
});
|
|
2954
3006
|
}
|
|
2955
|
-
function
|
|
2956
|
-
const n =
|
|
3007
|
+
function li(e) {
|
|
3008
|
+
const n = tn(e.data), t = de({
|
|
2957
3009
|
state: {},
|
|
2958
3010
|
// Dummy state
|
|
2959
3011
|
onStateChange: () => {
|
|
@@ -2966,10 +3018,10 @@ function qo(e) {
|
|
|
2966
3018
|
...l
|
|
2967
3019
|
} : de(r, l);
|
|
2968
3020
|
}
|
|
2969
|
-
}, n ?
|
|
3021
|
+
}, n ? xt(e) : e), o = No(t);
|
|
2970
3022
|
if (n) {
|
|
2971
|
-
const r =
|
|
2972
|
-
|
|
3023
|
+
const r = _t(e.data);
|
|
3024
|
+
ye(r, () => {
|
|
2973
3025
|
o.setState((l) => ({
|
|
2974
3026
|
...l,
|
|
2975
3027
|
data: r.value
|
|
@@ -2979,13 +3031,13 @@ function qo(e) {
|
|
|
2979
3031
|
});
|
|
2980
3032
|
}
|
|
2981
3033
|
const i = le(o.initialState);
|
|
2982
|
-
return
|
|
3034
|
+
return nn(() => {
|
|
2983
3035
|
o.setOptions((r) => {
|
|
2984
3036
|
var l;
|
|
2985
3037
|
const s = new Proxy({}, {
|
|
2986
3038
|
get: (u, g) => i.value[g]
|
|
2987
3039
|
});
|
|
2988
|
-
return de(r, n ?
|
|
3040
|
+
return de(r, n ? xt(e) : e, {
|
|
2989
3041
|
// merge the initialState and `options.state`
|
|
2990
3042
|
// create a new proxy on each `setOptions` call
|
|
2991
3043
|
// and get the value from state on each property access
|
|
@@ -3000,19 +3052,20 @@ function qo(e) {
|
|
|
3000
3052
|
}), o;
|
|
3001
3053
|
}
|
|
3002
3054
|
export {
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3055
|
+
Uo as B,
|
|
3056
|
+
ri as F,
|
|
3057
|
+
ti as a,
|
|
3058
|
+
li as b,
|
|
3059
|
+
oi as c,
|
|
3060
|
+
Xo as d,
|
|
3061
|
+
eo as e,
|
|
3062
|
+
Jo as f,
|
|
3063
|
+
ii as g,
|
|
3064
|
+
Zo as h,
|
|
3065
|
+
Zn as i,
|
|
3066
|
+
Qo as j,
|
|
3067
|
+
ei as l,
|
|
3068
|
+
Ko as o,
|
|
3069
|
+
Yo as s,
|
|
3070
|
+
ni as u
|
|
3018
3071
|
};
|