virtua 0.52.6 → 0.52.7
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/README.md +1 -1
- package/lib/angular/index.js +164 -154
- package/lib/angular/index.js.map +1 -1
- package/lib/core/index.cjs +397 -387
- package/lib/core/index.cjs.map +1 -1
- package/lib/core/index.js +379 -369
- package/lib/core/index.js.map +1 -1
- package/lib/index.cjs +261 -251
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +247 -237
- package/lib/index.js.map +1 -1
- package/lib/solid/index.cjs +275 -265
- package/lib/solid/index.cjs.map +1 -1
- package/lib/solid/index.js +275 -265
- package/lib/solid/index.js.map +1 -1
- package/lib/solid/index.jsx +129 -78
- package/lib/solid/index.jsx.map +1 -1
- package/lib/vue/index.cjs +269 -259
- package/lib/vue/index.cjs.map +1 -1
- package/lib/vue/index.js +293 -283
- package/lib/vue/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -6,18 +6,18 @@ import { jsx as c } from "react/jsx-runtime";
|
|
|
6
6
|
|
|
7
7
|
import { flushSync as a } from "react-dom";
|
|
8
8
|
|
|
9
|
-
var f, u = [], {min: d, max:
|
|
9
|
+
var f, u = [], {min: d, max: h, abs: g, floor: $} = Math, p = (e, t, o) => d(o, h(t, e)), m = e => e.sort((e, t) => e - t), w = setTimeout, S = clearTimeout, _ = "function" == typeof queueMicrotask ? queueMicrotask : e => {
|
|
10
10
|
Promise.resolve().then(e);
|
|
11
11
|
}, v = () => {
|
|
12
12
|
let e;
|
|
13
13
|
return [ new Promise(t => {
|
|
14
14
|
e = t;
|
|
15
15
|
}), e ];
|
|
16
|
-
}, z = "undefined" != typeof window, y = e => e.ownerDocument,
|
|
17
|
-
f), b = e =>
|
|
18
|
-
let u = !!a,
|
|
16
|
+
}, z = "undefined" != typeof window, y = e => e.ownerDocument, x = e => e.defaultView, I = () => (null == f && (f = /iP(hone|od|ad)/.test(navigator.userAgent) || "MacIntel" === navigator.platform && navigator.maxTouchPoints > 0),
|
|
17
|
+
f), b = e => h(e.t(), e.o()), k = ({l: e, i: t, u: o, h: n, $: r, p: s, t: l, m: i, S: c, _: a}, f = 0) => {
|
|
18
|
+
let u = !!a, $ = !!f, p = 1, m = 0, w = 0, S = 0, _ = 0, v = 0, z = 0, y = 0, x = 0, b = null, k = [ 0, $ ? h(f - 1, 0) : -1 ], R = 0, T = !1;
|
|
19
19
|
const M = /* @__PURE__ */ new Set, C = () => S - w, O = () => C() + v + _, E = e => o(e) - v, L = e => {
|
|
20
|
-
e && (
|
|
20
|
+
e && (I() && 0 !== y || b && 1 === x ? v += e : _ += e);
|
|
21
21
|
};
|
|
22
22
|
return {
|
|
23
23
|
v: () => {
|
|
@@ -25,26 +25,26 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
25
25
|
},
|
|
26
26
|
I: () => p,
|
|
27
27
|
l: (t = 200) => {
|
|
28
|
-
if (!T ||
|
|
28
|
+
if (!T || $) return k;
|
|
29
29
|
let o, n;
|
|
30
30
|
if (z) [o, n] = k; else {
|
|
31
|
-
let r =
|
|
32
|
-
u || (t =
|
|
33
|
-
b && (o = d(o, b[0]), n =
|
|
31
|
+
let r = h(0, O()), s = r + m;
|
|
32
|
+
u || (t = h(0, t), 1 !== y && (r -= t), 2 !== y && (s += t)), [o, n] = k = e(h(0, r), h(0, s)),
|
|
33
|
+
b && (o = d(o, b[0]), n = h(n, b[1]));
|
|
34
34
|
}
|
|
35
|
-
return [
|
|
35
|
+
return [ h(o, 0), d(n, i() - 1) ];
|
|
36
36
|
},
|
|
37
37
|
k: e => t(e - w),
|
|
38
38
|
R: s,
|
|
39
39
|
u: E,
|
|
40
|
-
|
|
40
|
+
h: n,
|
|
41
41
|
T: i,
|
|
42
42
|
M: () => S,
|
|
43
43
|
C: () => 0 !== y,
|
|
44
44
|
o: () => m,
|
|
45
45
|
O: () => w,
|
|
46
46
|
t: l,
|
|
47
|
-
L: () => (z = _, _ = 0, [ z, 2 ===
|
|
47
|
+
L: () => (z = _, _ = 0, [ z, 2 === x ]),
|
|
48
48
|
A: (e, t) => {
|
|
49
49
|
const o = [ e, t ];
|
|
50
50
|
return M.add(o), () => {
|
|
@@ -52,22 +52,22 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
52
52
|
};
|
|
53
53
|
},
|
|
54
54
|
W: (o, i) => {
|
|
55
|
-
let f, d,
|
|
55
|
+
let f, d, h = 0;
|
|
56
56
|
switch (o) {
|
|
57
57
|
case 1:
|
|
58
58
|
{
|
|
59
|
-
if (i === S && 0 ===
|
|
59
|
+
if (i === S && 0 === x) break;
|
|
60
60
|
const e = z;
|
|
61
61
|
z = 0;
|
|
62
|
-
const t = i - S, o =
|
|
63
|
-
e && o <
|
|
62
|
+
const t = i - S, o = g(t);
|
|
63
|
+
e && o < g(e) + 1 || 0 !== x || (y = t < 0 ? 2 : 1), $ && ($ = !1), S = i, h = 4;
|
|
64
64
|
const n = C();
|
|
65
|
-
n >= -m && n <= l() && (
|
|
65
|
+
n >= -m && n <= l() && (h += 1, d = o > m);
|
|
66
66
|
break;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
case 2:
|
|
70
|
-
|
|
70
|
+
h = 8, 0 !== y && (f = !0, h += 1), y = 0, x = 0, b = null;
|
|
71
71
|
break;
|
|
72
72
|
|
|
73
73
|
case 3:
|
|
@@ -76,9 +76,9 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
76
76
|
if (!e.length) break;
|
|
77
77
|
L(e.reduce((e, [t, o]) => {
|
|
78
78
|
let r;
|
|
79
|
-
if (2 ===
|
|
79
|
+
if (2 === x) r = !0; else if (b && 1 === x) r = t < b[0]; else {
|
|
80
80
|
const e = C(), o = E(t), s = n(t);
|
|
81
|
-
r = 1 !== y && 0 ===
|
|
81
|
+
r = 1 !== y && 0 === x ? o + s <= e : o < e && o + s < e + m;
|
|
82
82
|
}
|
|
83
83
|
return r && (e += o - n(t)), e;
|
|
84
84
|
}, 0));
|
|
@@ -86,16 +86,16 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
86
86
|
const e = n(t), s = r(t, o);
|
|
87
87
|
u && (R += s ? o : o - e);
|
|
88
88
|
}
|
|
89
|
-
u && m && R > m && (L(a(t(O()))), u = !1),
|
|
89
|
+
u && m && R > m && (L(a(t(O()))), u = !1), h = 3, d = !0;
|
|
90
90
|
break;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
case 4:
|
|
94
|
-
m !== i && (m || (T = d = !0), m = i,
|
|
94
|
+
m !== i && (m || (T = d = !0), m = i, h = 3);
|
|
95
95
|
break;
|
|
96
96
|
|
|
97
97
|
case 5:
|
|
98
|
-
i[1] ? (L(c(i[0], !0)),
|
|
98
|
+
i[1] ? (L(c(i[0], !0)), x = 2, h = 1) : (c(i[0]), h = 1);
|
|
99
99
|
break;
|
|
100
100
|
|
|
101
101
|
case 6:
|
|
@@ -103,35 +103,35 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
103
103
|
break;
|
|
104
104
|
|
|
105
105
|
case 7:
|
|
106
|
-
|
|
106
|
+
x = 1;
|
|
107
107
|
break;
|
|
108
108
|
|
|
109
109
|
case 9:
|
|
110
|
-
L(i),
|
|
110
|
+
L(i), h = 3;
|
|
111
111
|
break;
|
|
112
112
|
|
|
113
113
|
case 8:
|
|
114
|
-
b = e(i, i + m),
|
|
114
|
+
b = e(i, i + m), h = 1;
|
|
115
115
|
}
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
h && (p = 1 + (2147483647 & p), f && v && (_ += v, v = 0), M.forEach(([e, t]) => {
|
|
117
|
+
h & e && t(d);
|
|
118
118
|
}));
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
-
}, R = (e, t, o
|
|
121
|
+
}, R = (e, t, o) => {
|
|
122
|
+
const n = o ? "unshift" : "push";
|
|
123
|
+
for (let o = 0; o < t; o++) e[n](-1);
|
|
124
|
+
return e;
|
|
125
|
+
}, T = (e, t, o, n = 0, r = t - 1) => {
|
|
122
126
|
let s = n;
|
|
123
127
|
for (;n <= r; ) {
|
|
124
|
-
const t =
|
|
128
|
+
const t = $((n + r) / 2);
|
|
125
129
|
e(t) <= o ? (s = t, n = t + 1) : r = t - 1;
|
|
126
130
|
}
|
|
127
131
|
return p(s, 0, t - 1);
|
|
128
|
-
}, T = (e, t, o) => {
|
|
129
|
-
const n = o ? "unshift" : "push";
|
|
130
|
-
for (let o = 0; o < t; o++) e[n](-1);
|
|
131
|
-
return e;
|
|
132
132
|
}, M = (e, t, o) => {
|
|
133
133
|
let n = o && o[1] || t || 40, r = -1, s = 0;
|
|
134
|
-
const l = o && o[0], i = l ?
|
|
134
|
+
const l = o && o[0], i = l ? R(l.slice(0, d(e, l.length)), h(0, e - l.length)) : R([], e), c = R([], e + 1), a = e => {
|
|
135
135
|
const t = i[e];
|
|
136
136
|
return -1 === t ? n : t;
|
|
137
137
|
}, f = t => {
|
|
@@ -145,13 +145,13 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
145
145
|
return {
|
|
146
146
|
l: (t, o) => {
|
|
147
147
|
let n, r;
|
|
148
|
-
return s = d(s, e - 1), f(s) <= t ? (r =
|
|
149
|
-
r =
|
|
148
|
+
return s = d(s, e - 1), f(s) <= t ? (r = T(f, e, o, s), n = T(f, e, t, s, r)) : (n = T(f, e, t, void 0, s),
|
|
149
|
+
r = T(f, e, o, n)), s = n, [ n, r ];
|
|
150
150
|
},
|
|
151
|
-
i: t =>
|
|
151
|
+
i: t => T(f, e, t),
|
|
152
152
|
u: f,
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
h: a,
|
|
154
|
+
$: (e, t) => {
|
|
155
155
|
const o = -1 === i[e];
|
|
156
156
|
return i[e] = t, r = d(e, r), o;
|
|
157
157
|
},
|
|
@@ -160,7 +160,7 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
160
160
|
m: () => e,
|
|
161
161
|
S: (t, o) => {
|
|
162
162
|
const s = t - e;
|
|
163
|
-
return r = o ? -1 : d(t - 1, r), e = t, s > 0 ? (
|
|
163
|
+
return r = o ? -1 : d(t - 1, r), e = t, s > 0 ? (R(c, s), R(i, s, o), n * s) : (c.splice(s),
|
|
164
164
|
(o ? i.splice(0, -s) : i.splice(s)).reduce((e, t) => e - (-1 === t ? n : t), 0));
|
|
165
165
|
},
|
|
166
166
|
_: t ? void 0 : e => {
|
|
@@ -170,83 +170,93 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
170
170
|
-1 !== n && (n && o.push(n), r < e && t++);
|
|
171
171
|
}), r = -1, m(o);
|
|
172
172
|
const s = o.length, l = s / 2 | 0, c = s % 2 == 0 ? (o[l - 1] + o[l]) / 2 : o[l], a = n;
|
|
173
|
-
return ((n = c) - a) *
|
|
173
|
+
return ((n = c) - a) * h(e - t, 0);
|
|
174
174
|
},
|
|
175
175
|
H: () => [ i.slice(), n ]
|
|
176
176
|
};
|
|
177
177
|
}, C = e => "number" == typeof e ? e : e.length, O = (e, t) => "number" == typeof e ? t : e[t], E = (e, t, o = 0) => {
|
|
178
|
-
let n =
|
|
179
|
-
const
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
return
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
S: e => (n = e, 0),
|
|
198
|
-
P: () => !1,
|
|
199
|
-
q: s,
|
|
200
|
-
B: () => l(n),
|
|
201
|
-
D: () => i(n),
|
|
202
|
-
V: (e, t) => "number" == typeof t ? t : null,
|
|
203
|
-
X: (e, t) => {
|
|
204
|
-
if (null == e || e === r) return;
|
|
205
|
-
const o = a(t) * (e - r);
|
|
206
|
-
return r = e, o;
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
const a = "auto" === t;
|
|
211
|
-
let f = null;
|
|
212
|
-
const u = [], $ = M(C(e), void 0, [ [], 40 + o ]), m = e => a || !!u[e];
|
|
178
|
+
let n = C(e);
|
|
179
|
+
const r = "number" == typeof t, s = "auto" === t;
|
|
180
|
+
let l = (r ? t : 40) + o, i = -1, c = 0, a = 0, f = null;
|
|
181
|
+
const u = [], g = [], w = [], S = e => s || !!w[e], _ = () => {
|
|
182
|
+
u.length || R(u, n);
|
|
183
|
+
}, v = e => {
|
|
184
|
+
const t = u[e];
|
|
185
|
+
return -1 === t ? l : t;
|
|
186
|
+
}, z = e => {
|
|
187
|
+
if (!n) return 0;
|
|
188
|
+
if (!u.length) return e * l;
|
|
189
|
+
if (i >= e) return g[e];
|
|
190
|
+
i < 0 && (g[0] = 0, i = 0);
|
|
191
|
+
let t = i, o = g[t];
|
|
192
|
+
for (;t < e; ) o += v(t), g[++t] = o;
|
|
193
|
+
return i = e, o;
|
|
194
|
+
}, y = (e, t) => {
|
|
195
|
+
u[e] = t, i = d(e, i);
|
|
196
|
+
}, x = e => u.length ? T(z, n, e) : l ? p($(e / l), 0, n - 1) : 0, I = () => d(c, n), b = () => h(n - a, I());
|
|
213
197
|
return {
|
|
214
|
-
l: (e, t) =>
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
198
|
+
l: (e, t) => {
|
|
199
|
+
const r = z(I()), s = z(n) - z(b()), l = e + (r ? r - o : 0);
|
|
200
|
+
return [ x(l), x(h(l, t - (s ? s - o : 0))) ];
|
|
201
|
+
},
|
|
202
|
+
i: x,
|
|
203
|
+
u: z,
|
|
204
|
+
h: e => (u.length ? v(e) : l) - o,
|
|
205
|
+
$: (e, t) => {
|
|
206
|
+
if (!S(e)) return !1;
|
|
207
|
+
_();
|
|
208
|
+
const n = -1 === u[e];
|
|
209
|
+
return y(e, t + o), n;
|
|
210
|
+
},
|
|
211
|
+
p: (e, t) => (u.length ? u[e] : -1) === t + o,
|
|
212
|
+
t: () => n ? z(n) - o : 0,
|
|
213
|
+
m: () => n,
|
|
214
|
+
S: e => {
|
|
215
|
+
const t = e - n;
|
|
216
|
+
return i = d(e - 1, i), n = e, u.length && (t > 0 ? R(u, t) : u.splice(t)), 0;
|
|
217
|
+
},
|
|
218
|
+
_: s ? e => {
|
|
219
|
+
let t = 0;
|
|
220
|
+
const o = [];
|
|
221
|
+
u.forEach((n, r) => {
|
|
222
|
+
-1 !== n && (n && o.push(n), r < e && t++);
|
|
223
|
+
}), i = -1, m(o);
|
|
224
|
+
const n = o.length, r = n / 2 | 0, s = n % 2 == 0 ? (o[r - 1] + o[r]) / 2 : o[r], c = l;
|
|
225
|
+
return ((l = s) - c) * h(e - t, 0);
|
|
226
|
+
} : void 0,
|
|
227
|
+
q: S,
|
|
228
|
+
P: (e = 0, t = 0) => {
|
|
229
|
+
c = e, a = t;
|
|
230
|
+
},
|
|
231
|
+
B: I,
|
|
232
|
+
D: b,
|
|
233
|
+
V: (e, t) => "number" == typeof t ? r ? t : null : r || s || "auto" === t ? null : e.map(e => null != e ? e[t] : null),
|
|
229
234
|
X: (e, t) => {
|
|
230
|
-
if (
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
235
|
+
if (null == e) return;
|
|
236
|
+
if ("number" == typeof e) {
|
|
237
|
+
const n = e + o;
|
|
238
|
+
if (n === l) return;
|
|
239
|
+
const r = x(t) * (n - l);
|
|
240
|
+
return l = n, r;
|
|
241
|
+
}
|
|
242
|
+
if (e === f && n === w.length) return;
|
|
243
|
+
f = e, w.length = n, _();
|
|
244
|
+
const r = x(t), s = z(r);
|
|
245
|
+
let i;
|
|
236
246
|
for (let t = 0; t < n; t++) {
|
|
237
247
|
const n = e[t], r = "number" != typeof n;
|
|
238
|
-
if (!r || !
|
|
239
|
-
|
|
248
|
+
if (!r || !w[t]) {
|
|
249
|
+
w[t] = r;
|
|
240
250
|
const e = r ? -1 : n + o;
|
|
241
|
-
|
|
251
|
+
u[t] !== e && (y(t, e), i = !0);
|
|
242
252
|
}
|
|
243
253
|
}
|
|
244
|
-
return
|
|
254
|
+
return i ? z(r) - s : void 0;
|
|
245
255
|
}
|
|
246
256
|
};
|
|
247
257
|
}, L = (e, t, o, n, r, s) => {
|
|
248
258
|
const l = C(o);
|
|
249
|
-
t.
|
|
259
|
+
t.P(r, s), l !== e.T() && e.W(5, [ l ]);
|
|
250
260
|
const i = t.X(n, e.M() - e.u(0));
|
|
251
261
|
null != i && e.W(9, i);
|
|
252
262
|
}, A = /*#__PURE__*/ new WeakMap, W = (e, t, o) => {
|
|
@@ -261,19 +271,19 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
261
271
|
e[o] <= t ? n = o + 1 : r = o;
|
|
262
272
|
}
|
|
263
273
|
return n - 1;
|
|
264
|
-
},
|
|
274
|
+
}, q = (e, t, o, n, r) => {
|
|
265
275
|
const s = t.length;
|
|
266
276
|
for (;o < s && t[o] < n; o++) {
|
|
267
277
|
const n = t[o];
|
|
268
278
|
n > r && (e.push(n), r = n);
|
|
269
279
|
}
|
|
270
280
|
return o;
|
|
271
|
-
},
|
|
281
|
+
}, P = (e, t, o, n, r, s) => {
|
|
272
282
|
const l = [];
|
|
273
283
|
for (let e = 0; e < o; e++) l.push(e);
|
|
274
|
-
const i =
|
|
284
|
+
const i = q(l, e, 0, n, o - 1);
|
|
275
285
|
for (let e = n; e <= r; e++) l.push(e);
|
|
276
|
-
|
|
286
|
+
q(l, e, i, s, r);
|
|
277
287
|
for (let e = s; e < t; e++) l.push(e);
|
|
278
288
|
return l;
|
|
279
289
|
}, B = (e, t) => d(e.rowIndex + (e.rowSpan || 1), t), D = (e, t) => d(e.colIndex + (e.colSpan || 1), t), V = (e, t, o, n, r, s) => {
|
|
@@ -281,14 +291,14 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
281
291
|
let c = "[l0]", a = 0, f = 0, u = 0;
|
|
282
292
|
for (;a < s; ) {
|
|
283
293
|
for (;u < i && n[u] <= a; ) u++;
|
|
284
|
-
const
|
|
285
|
-
let
|
|
286
|
-
if (
|
|
287
|
-
|
|
294
|
+
const h = f < l ? t[f] : s;
|
|
295
|
+
let g, $;
|
|
296
|
+
if (h === a) {
|
|
297
|
+
g = a + 1;
|
|
288
298
|
const t = o[f];
|
|
289
|
-
|
|
290
|
-
} else
|
|
291
|
-
c += " " +
|
|
299
|
+
$ = null == t ? e.h(a) + "px" : t ? r : "minmax(" + e.h(a) + "px,auto)", f++;
|
|
300
|
+
} else g = d(h, u < i ? n[u] : s), $ = "minmax(" + (e.u(g - 1) + e.h(g - 1) - e.u(a)) + "px,auto)";
|
|
301
|
+
c += " " + $ + " [l" + g + "]", a = g;
|
|
292
302
|
}
|
|
293
303
|
return c;
|
|
294
304
|
}, X = (e, t, o, n, r) => {
|
|
@@ -304,7 +314,7 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
304
314
|
let t;
|
|
305
315
|
return {
|
|
306
316
|
Y(o) {
|
|
307
|
-
(t || (t = new (
|
|
317
|
+
(t || (t = new (x(y(o)).ResizeObserver)(e))).observe(o);
|
|
308
318
|
},
|
|
309
319
|
J(e) {
|
|
310
320
|
t.unobserve(e);
|
|
@@ -314,27 +324,27 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
314
324
|
}
|
|
315
325
|
};
|
|
316
326
|
}, J = (e, t, o, n, r, s, l) => {
|
|
317
|
-
let i, c, a = 0, f = !1, u = !1, d = !1,
|
|
318
|
-
const
|
|
327
|
+
let i, c, a = 0, f = !1, u = !1, d = !1, h = !1;
|
|
328
|
+
const g = Date.now, $ = n ? "scrollLeft" : "scrollTop", p = n ? "left" : "top", m = e => r ? -e : e, v = () => m(o[$]), z = (e, t) => {
|
|
319
329
|
o.scrollTo({
|
|
320
330
|
[p]: m(e),
|
|
321
331
|
behavior: t ? "smooth" : "instant"
|
|
322
332
|
});
|
|
323
333
|
}, y = () => {
|
|
324
|
-
if (f || u) return f = !1, void
|
|
334
|
+
if (f || u) return f = !1, void x();
|
|
325
335
|
d = !1, e.W(2);
|
|
326
|
-
},
|
|
336
|
+
}, x = () => {
|
|
327
337
|
S(c), c = w(y, 150);
|
|
328
338
|
}, b = () => {
|
|
329
|
-
a =
|
|
339
|
+
a = g(), d && (h = !0), l && e.W(6, l()), e.W(1, v()), x();
|
|
330
340
|
}, k = t => {
|
|
331
341
|
if (f || !e.C() || t.ctrlKey) return;
|
|
332
|
-
const o =
|
|
342
|
+
const o = g() - a;
|
|
333
343
|
150 > o && 50 < o && (n ? t.deltaX : t.deltaY) && (f = !0);
|
|
334
344
|
}, R = () => {
|
|
335
|
-
u = !0, d =
|
|
345
|
+
u = !0, d = h = !1;
|
|
336
346
|
}, T = () => {
|
|
337
|
-
u = !1,
|
|
347
|
+
u = !1, I() && (d = !0);
|
|
338
348
|
};
|
|
339
349
|
return t.addEventListener("scroll", b), t.addEventListener("wheel", k, {
|
|
340
350
|
passive: !0
|
|
@@ -350,7 +360,7 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
350
360
|
U: () => {
|
|
351
361
|
const [t, n] = e.L();
|
|
352
362
|
if (!t) return;
|
|
353
|
-
|
|
363
|
+
h && s && s(), h = !1;
|
|
354
364
|
const r = e.M() + t;
|
|
355
365
|
r <= 0 || r >= e.O() + e.t() - e.o() ? z(r) : o.scrollBy({
|
|
356
366
|
[p]: m(t),
|
|
@@ -427,15 +437,15 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
427
437
|
});
|
|
428
438
|
return {
|
|
429
439
|
G(c) {
|
|
430
|
-
const f = y(c), u =
|
|
431
|
-
const s = n ? "offsetLeft" : "offsetTop", l = r + (
|
|
432
|
-
return e !== o && i ?
|
|
433
|
-
},
|
|
440
|
+
const f = y(c), u = x(f), d = o = f.scrollingElement, h = t && "rtl" === getComputedStyle(d).direction, g = (e, t, o, n, r = 0) => {
|
|
441
|
+
const s = n ? "offsetLeft" : "offsetTop", l = r + (h ? t.clientWidth - e[s] - e.offsetWidth : e[s]), i = e.offsetParent;
|
|
442
|
+
return e !== o && i ? g(i, t, o, n, l) : l;
|
|
443
|
+
}, $ = s = () => g(c, d, f.body, t), p = l = () => {
|
|
434
444
|
e.W(4, d[t ? "clientWidth" : "clientHeight"]);
|
|
435
445
|
};
|
|
436
446
|
u.addEventListener("resize", p), a.Y(d), r = () => {
|
|
437
447
|
u.removeEventListener("resize", p);
|
|
438
|
-
}, n = J(e, u, d, t,
|
|
448
|
+
}, n = J(e, u, d, t, h, null, $), i[1](!0);
|
|
439
449
|
},
|
|
440
450
|
v() {
|
|
441
451
|
r && r(), a.j(), n && n.j(), i[1](!1), i = v();
|
|
@@ -493,22 +503,22 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
493
503
|
if (o = p(o, 0, t.T() - 1), "nearest" === n) {
|
|
494
504
|
const e = t.u(o), r = t.M();
|
|
495
505
|
if (e < r) n = "start"; else {
|
|
496
|
-
if (!(e + t
|
|
506
|
+
if (!(e + t.h(o) > r + t.o())) return;
|
|
497
507
|
n = "end";
|
|
498
508
|
}
|
|
499
509
|
}
|
|
500
|
-
e.N(() => s + e.ee() + t.u(o) + ("end" === n ? t
|
|
510
|
+
e.N(() => s + e.ee() + t.u(o) + ("end" === n ? t.h(o) - t.o() : "center" === n ? (t.h(o) - t.o()) / 2 : 0), r);
|
|
501
511
|
}, N = (e, t, o, n, r, s, l) => {
|
|
502
512
|
const i = t.T(), c = o.B(), a = o.D();
|
|
503
513
|
r = p(r, 0, i - 1);
|
|
504
|
-
const f = W(n, c, a), u = H(f, r, a),
|
|
514
|
+
const f = W(n, c, a), u = H(f, r, a), g = u < 0 ? -1 : f[u], $ = () => o.u(c) + (g < 0 || g === r ? 0 : o.u(g + 1) - o.u(g)), m = () => o.u(i) - o.u(a);
|
|
505
515
|
if ("nearest" === s) {
|
|
506
516
|
if (r < c || r >= a) return;
|
|
507
|
-
const e =
|
|
517
|
+
const e = $(), o = t.M() + e, n = t.o() - e - m(), l = t.h(r);
|
|
508
518
|
let i = t.u(r);
|
|
509
|
-
if (
|
|
519
|
+
if (g === r) {
|
|
510
520
|
const e = (u + 1 < f.length ? f[u + 1] : a) - 1;
|
|
511
|
-
i =
|
|
521
|
+
i = h(i, d(o, t.u(e) + t.h(e) - l));
|
|
512
522
|
}
|
|
513
523
|
if (i < o) s = "start"; else {
|
|
514
524
|
if (!(i + l > o + n)) return;
|
|
@@ -516,7 +526,7 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
516
526
|
}
|
|
517
527
|
}
|
|
518
528
|
e.N(l, () => {
|
|
519
|
-
const e =
|
|
529
|
+
const e = $(), o = t.h(r) - (t.o() - e - m());
|
|
520
530
|
return t.u(r) - e + ("end" === s ? o : "center" === s ? o / 2 : 0);
|
|
521
531
|
});
|
|
522
532
|
}, Q = z ? r : o, Z = "current", ee = (e, t) => {
|
|
@@ -564,13 +574,13 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
564
574
|
return ee(e, t), t;
|
|
565
575
|
})(e);
|
|
566
576
|
return [ e => o[e], o.length ];
|
|
567
|
-
}, [ e, t ]), le = /*#__PURE__*/ e(({children: e, data: t, bufferSize: o, itemSize: r, shift: s, horizontal: f, keepMounted: u, cache: d, startMargin:
|
|
568
|
-
const [y,
|
|
569
|
-
const e = !!f, t = M(
|
|
577
|
+
}, [ e, t ]), le = /*#__PURE__*/ e(({children: e, data: t, bufferSize: o, itemSize: r, shift: s, horizontal: f, keepMounted: u, cache: d, startMargin: h = 0, ssrCount: g, as: $ = "div", item: p = "div", scrollRef: w, onScroll: S, onScrollEnd: v}, z) => {
|
|
578
|
+
const [y, x] = se(e, t), I = i(null), R = i(!!g), T = ne(S), C = ne(v), [O, E, L, A] = oe(() => {
|
|
579
|
+
const e = !!f, t = M(x, r, d), o = k(t, g);
|
|
570
580
|
return [ o, t, j(o, e), e ];
|
|
571
581
|
});
|
|
572
|
-
|
|
573
|
-
const [W, H] = l(O.I, void 0, O.I),
|
|
582
|
+
x !== O.T() && O.W(5, [ x, s ]), h !== O.O() && O.W(6, h);
|
|
583
|
+
const [W, H] = l(O.I, void 0, O.I), q = O.C(), P = O.t(), B = [], D = e => {
|
|
574
584
|
const t = y(e);
|
|
575
585
|
/* @__PURE__ */
|
|
576
586
|
return c(re, {
|
|
@@ -592,7 +602,7 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
592
602
|
}), O.A(8, () => {
|
|
593
603
|
C.current && C.current();
|
|
594
604
|
});
|
|
595
|
-
const e =
|
|
605
|
+
const e = I[Z];
|
|
596
606
|
return w ? _(() => {
|
|
597
607
|
w.current && L.G(e, w[Z]);
|
|
598
608
|
}) : L.G(e), () => {
|
|
@@ -615,7 +625,7 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
615
625
|
},
|
|
616
626
|
findItemIndex: O.k,
|
|
617
627
|
getItemOffset: O.u,
|
|
618
|
-
getItemSize: O
|
|
628
|
+
getItemSize: O.h,
|
|
619
629
|
scrollToIndex: (e, t) => K(L, O, e, t),
|
|
620
630
|
scrollTo: e => G(L, e),
|
|
621
631
|
scrollBy: e => ((e, t, o) => {
|
|
@@ -625,35 +635,35 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
625
635
|
const e = new Set(u);
|
|
626
636
|
for (let [t, n] = O.l(o); t <= n; t++) e.add(t);
|
|
627
637
|
m([ ...e ]).forEach(e => {
|
|
628
|
-
e <
|
|
638
|
+
e < x && B.push(D(e));
|
|
629
639
|
});
|
|
630
640
|
} else for (let [e, t] = O.l(o); e <= t; e++) B.push(D(e));
|
|
631
641
|
/* @__PURE__ */
|
|
632
|
-
return c(
|
|
633
|
-
ref:
|
|
642
|
+
return c($, {
|
|
643
|
+
ref: I,
|
|
634
644
|
style: {
|
|
635
645
|
contain: "size style",
|
|
636
646
|
overflowAnchor: "none",
|
|
637
647
|
flex: "none",
|
|
638
648
|
position: "relative",
|
|
639
|
-
width: A ?
|
|
640
|
-
height: A ? "100%" :
|
|
641
|
-
pointerEvents:
|
|
649
|
+
width: A ? P : "100%",
|
|
650
|
+
height: A ? "100%" : P,
|
|
651
|
+
pointerEvents: q ? "none" : void 0
|
|
642
652
|
},
|
|
643
653
|
children: B
|
|
644
654
|
});
|
|
645
|
-
}), ie = /*#__PURE__*/ e(({children: e, data: t, bufferSize: o, itemSize: n, shift: r, horizontal: s, keepMounted: l, cache: i, ssrCount: a, item: f, onScroll: u, onScrollEnd: d, style:
|
|
646
|
-
|
|
655
|
+
}), ie = /*#__PURE__*/ e(({children: e, data: t, bufferSize: o, itemSize: n, shift: r, horizontal: s, keepMounted: l, cache: i, ssrCount: a, item: f, onScroll: u, onScrollEnd: d, style: h, ...g}, $) => /* @__PURE__ */ c("div", {
|
|
656
|
+
...g,
|
|
647
657
|
style: {
|
|
648
658
|
display: s ? "inline-block" : "block",
|
|
649
659
|
[s ? "overflowX" : "overflowY"]: "auto",
|
|
650
660
|
contain: "strict",
|
|
651
661
|
width: "100%",
|
|
652
662
|
height: "100%",
|
|
653
|
-
...
|
|
663
|
+
...h
|
|
654
664
|
},
|
|
655
665
|
children: /* @__PURE__ */ c(le, {
|
|
656
|
-
ref:
|
|
666
|
+
ref: $,
|
|
657
667
|
data: t,
|
|
658
668
|
bufferSize: o,
|
|
659
669
|
itemSize: n,
|
|
@@ -667,53 +677,53 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
667
677
|
onScrollEnd: d,
|
|
668
678
|
children: e
|
|
669
679
|
})
|
|
670
|
-
})), ce = /*#__PURE__*/ e(({children: e, data: t, bufferSize: o, itemSize: r, shift: s, horizontal: f, cache: u, ssrCount: d, as:
|
|
671
|
-
const [w, S] = se(e, t), _ = i(null), v = ne(
|
|
680
|
+
})), ce = /*#__PURE__*/ e(({children: e, data: t, bufferSize: o, itemSize: r, shift: s, horizontal: f, cache: u, ssrCount: d, as: h = "div", item: g = "div", onScroll: $, onScrollEnd: p}, m) => {
|
|
681
|
+
const [w, S] = se(e, t), _ = i(null), v = ne($), z = ne(p), y = i(!!d), [x, I, b, R] = oe(() => {
|
|
672
682
|
const e = !!f, t = M(S, r, u), o = k(t, d);
|
|
673
683
|
return [ o, t, U(o, e), e ];
|
|
674
684
|
});
|
|
675
|
-
S !==
|
|
676
|
-
const [T, C] = l(
|
|
677
|
-
Q(() => (y[Z] = !1,
|
|
685
|
+
S !== x.T() && x.W(5, [ S, s ]);
|
|
686
|
+
const [T, C] = l(x.I, void 0, x.I), O = x.C(), E = x.t(), L = [];
|
|
687
|
+
Q(() => (y[Z] = !1, x.A(1, e => {
|
|
678
688
|
e ? a(C) : C();
|
|
679
|
-
}),
|
|
689
|
+
}), x.A(4, () => {
|
|
680
690
|
v.current && v.current();
|
|
681
|
-
}),
|
|
691
|
+
}), x.A(8, () => {
|
|
682
692
|
z.current && z.current();
|
|
683
693
|
}), b.G(_[Z]), () => {
|
|
684
|
-
|
|
694
|
+
x.v(), b.v();
|
|
685
695
|
}), []), Q(() => {
|
|
686
696
|
b.Z();
|
|
687
697
|
}, [ T ]), n(m, () => ({
|
|
688
698
|
get cache() {
|
|
689
|
-
return
|
|
699
|
+
return I.H();
|
|
690
700
|
},
|
|
691
701
|
get scrollOffset() {
|
|
692
|
-
return
|
|
702
|
+
return x.M();
|
|
693
703
|
},
|
|
694
704
|
get viewportSize() {
|
|
695
|
-
return
|
|
705
|
+
return x.o();
|
|
696
706
|
},
|
|
697
|
-
findItemIndex:
|
|
698
|
-
getItemOffset:
|
|
699
|
-
getItemSize:
|
|
700
|
-
scrollToIndex: (e, t) => K(b,
|
|
707
|
+
findItemIndex: x.k,
|
|
708
|
+
getItemOffset: x.u,
|
|
709
|
+
getItemSize: x.h,
|
|
710
|
+
scrollToIndex: (e, t) => K(b, x, e, t)
|
|
701
711
|
}), []);
|
|
702
|
-
for (let [e, t] =
|
|
712
|
+
for (let [e, t] = x.l(o); e <= t; e++) {
|
|
703
713
|
const t = w(e);
|
|
704
714
|
L.push(/* @__PURE__ */ c(re, {
|
|
705
715
|
oe: b.K,
|
|
706
716
|
ne: e,
|
|
707
|
-
re:
|
|
708
|
-
se:
|
|
709
|
-
le:
|
|
717
|
+
re: x.u(e),
|
|
718
|
+
se: x.R(e),
|
|
719
|
+
le: g,
|
|
710
720
|
te: t,
|
|
711
721
|
ie: R,
|
|
712
722
|
ce: y[Z]
|
|
713
723
|
}, te(t, e)));
|
|
714
724
|
}
|
|
715
725
|
/* @__PURE__ */
|
|
716
|
-
return c(
|
|
726
|
+
return c(h, {
|
|
717
727
|
ref: _,
|
|
718
728
|
style: {
|
|
719
729
|
contain: "size style",
|
|
@@ -726,12 +736,12 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
726
736
|
},
|
|
727
737
|
children: L
|
|
728
738
|
});
|
|
729
|
-
}), ae = /*#__PURE__*/ t(({ae: {fe: e, ue: t, de: o,
|
|
730
|
-
const
|
|
739
|
+
}), ae = /*#__PURE__*/ t(({ae: {fe: e, ue: t, de: o, he: n, ge: r, $e: s, pe: l, me: a}, te: f, we: u, Se: d, _e: h, oe: g}) => {
|
|
740
|
+
const $ = i(null);
|
|
731
741
|
return Q(() => {
|
|
732
|
-
if (null != n || null != r) return $
|
|
733
|
-
}, [ n, r,
|
|
734
|
-
ref:
|
|
742
|
+
if (null != n || null != r) return g($[Z], n, r);
|
|
743
|
+
}, [ n, r, g ]), /* @__PURE__ */ c("div", {
|
|
744
|
+
ref: $,
|
|
735
745
|
role: s,
|
|
736
746
|
"aria-colindex": e + 1,
|
|
737
747
|
"aria-rowspan": t,
|
|
@@ -739,7 +749,7 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
739
749
|
"aria-sort": l,
|
|
740
750
|
style: a,
|
|
741
751
|
children: f(u, d, {
|
|
742
|
-
rowIndex:
|
|
752
|
+
rowIndex: h,
|
|
743
753
|
colIndex: e
|
|
744
754
|
})
|
|
745
755
|
});
|
|
@@ -755,7 +765,7 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
755
765
|
_e: e,
|
|
756
766
|
oe: l
|
|
757
767
|
}, t.fe))
|
|
758
|
-
})), ue = ({ae: {
|
|
768
|
+
})), ue = ({ae: {xe: e, me: t}, te: o, Ie: n, ye: r, oe: s}) => /* @__PURE__ */ c("div", {
|
|
759
769
|
role: "rowgroup",
|
|
760
770
|
style: t,
|
|
761
771
|
children: e.map(e => /* @__PURE__ */ c(fe, {
|
|
@@ -765,9 +775,9 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
765
775
|
ye: r,
|
|
766
776
|
oe: s
|
|
767
777
|
}, e.ve))
|
|
768
|
-
}), de = /*#__PURE__*/ e(({children: e, rows: t, cols: o, rowHeight: r, colWidth: f, headerRows:
|
|
778
|
+
}), de = /*#__PURE__*/ e(({children: e, rows: t, cols: o, rowHeight: r, colWidth: f, headerRows: g, sectionRows: $, footerRows: w, headerCols: S, footerCols: _, spans: v, keepMounted: z, bufferSize: y, gap: x = 0, ariaSort: I, onVerticalScroll: R, onHorizontalScroll: T, onScrollEnd: M, style: C, ...q}, Y) => {
|
|
769
779
|
const J = i(null), j = ne(R), U = ne(T), G = ne(M), [K, ee, te, re, se] = oe(() => {
|
|
770
|
-
const e = E(t, r,
|
|
780
|
+
const e = E(t, r, x), n = E(o, f, x), s = k(e), l = k(n);
|
|
771
781
|
return [ s, l, e, n, F(s, l) ];
|
|
772
782
|
}), le = s(() => te.V(t, r), [ t, r ]), ie = s(() => re.V(o, f), [ o, f ]), ce = s(() => ((e = u) => {
|
|
773
783
|
const t = /* @__PURE__ */ new Map;
|
|
@@ -780,76 +790,76 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
780
790
|
}
|
|
781
791
|
return t;
|
|
782
792
|
})(v), [ v ]);
|
|
783
|
-
L(K, te, t, le,
|
|
784
|
-
const ae = () => K.I() + ee.I(), [de,
|
|
785
|
-
const f = e.m(),
|
|
786
|
-
o = p(o,
|
|
787
|
-
const v = W(i,
|
|
788
|
-
for (const e of c) e.rowIndex < f && e.colIndex <
|
|
789
|
-
const b =
|
|
793
|
+
L(K, te, t, le, g, w), L(ee, re, o, ie, S, _);
|
|
794
|
+
const ae = () => K.I() + ee.I(), [de, he] = l(ae, void 0, ae), ge = K.C() || ee.C(), $e = K.u(0), pe = ee.u(0), me = K.T(), we = ee.T(), Se = ((e, t, [o, n], [r, s], l, i = u, c = u, a) => {
|
|
795
|
+
const f = e.m(), g = t.m(), $ = e.B(), w = e.D(), S = t.B(), _ = t.D();
|
|
796
|
+
o = p(o, $, w), n = d(n, w - 1), r = p(r, S, _), s = d(s, _ - 1);
|
|
797
|
+
const v = W(i, $, w), z = h(S - 1, 0), y = [], x = [], I = [];
|
|
798
|
+
for (const e of c) e.rowIndex < f && e.colIndex < g && (I.push(e), y.push(e.rowIndex));
|
|
799
|
+
const b = I.length, k = H(v, o, w), R = k < 0 ? -1 : v[k];
|
|
790
800
|
R >= 0 && y.push(R);
|
|
791
|
-
const T =
|
|
801
|
+
const T = P(m(y), f, $, o, n, w);
|
|
792
802
|
for (let e = 0; e < T.length; e++) for (const t of l.get(T[e]) || u) {
|
|
793
|
-
const {rowIndex: l, colIndex: i} = t, c = B(t, f), a = D(t,
|
|
794
|
-
if ((e < 1 || T[e - 1] < l) && i <
|
|
795
|
-
let e = (l <
|
|
803
|
+
const {rowIndex: l, colIndex: i} = t, c = B(t, f), a = D(t, g);
|
|
804
|
+
if ((e < 1 || T[e - 1] < l) && i < g && (c - l > 1 || a - i > 1)) {
|
|
805
|
+
let e = (l < $ || h(l, o) < d(c, n + 1) || w < c || R >= l && R < c) && (i < S || h(i, r) < d(a, s + 1) || _ < a);
|
|
796
806
|
for (let t = 0; !e && t < b; t++) {
|
|
797
|
-
const o =
|
|
807
|
+
const o = I[t];
|
|
798
808
|
e = o.rowIndex >= l && o.rowIndex < c && o.colIndex >= i && o.colIndex < a;
|
|
799
809
|
}
|
|
800
|
-
e &&
|
|
810
|
+
e && I.push(t);
|
|
801
811
|
}
|
|
802
812
|
}
|
|
803
|
-
for (const {rowIndex: e, colIndex: t} of
|
|
813
|
+
for (const {rowIndex: e, colIndex: t} of I) {
|
|
804
814
|
const o = H(v, e, w);
|
|
805
|
-
y.push(e), o >= 0 && y.push(v[o]),
|
|
815
|
+
y.push(e), o >= 0 && y.push(v[o]), x.push(t);
|
|
806
816
|
}
|
|
807
|
-
m(y), m(
|
|
808
|
-
const M =
|
|
809
|
-
for (const e of
|
|
810
|
-
const t = B(e, f), o = D(e,
|
|
811
|
-
|
|
817
|
+
m(y), m(x);
|
|
818
|
+
const M = P(y, f, $, o, n, w), C = P(x, g, S, r, s, _), O = M.length, E = C.length, L = /* @__PURE__ */ new Map, q = [], Y = [];
|
|
819
|
+
for (const e of I) {
|
|
820
|
+
const t = B(e, f), o = D(e, g);
|
|
821
|
+
q.push(t), Y.push(o);
|
|
812
822
|
const n = C.indexOf(e.colIndex);
|
|
813
823
|
for (let r = M.indexOf(e.rowIndex); r < O && M[r] < t; r++) {
|
|
814
|
-
const t = M[r] *
|
|
824
|
+
const t = M[r] * g;
|
|
815
825
|
for (let r = n; r < E && C[r] < o; r++) L.set(t + C[r], e);
|
|
816
826
|
}
|
|
817
827
|
}
|
|
818
828
|
const J = [];
|
|
819
|
-
for (const e of C) J.push(!t.
|
|
820
|
-
const j = [], U = e.u(
|
|
829
|
+
for (const e of C) J.push(!t.q(e) && null);
|
|
830
|
+
const j = [], U = e.u($), F = [];
|
|
821
831
|
let G = F;
|
|
822
832
|
const K = A.get(e), N = /* @__PURE__ */ new Map;
|
|
823
833
|
for (const l of M) {
|
|
824
|
-
const i = l <
|
|
834
|
+
const i = l < $, c = l >= w, u = H(v, l, w), d = i ? 0 : c ? w : u < 0 ? -1 : v[u];
|
|
825
835
|
if (l === d) {
|
|
826
|
-
const e = i ?
|
|
827
|
-
|
|
836
|
+
const e = i ? $ : c ? f : u + 1 < v.length ? v[u + 1] : w;
|
|
837
|
+
q.push(e);
|
|
828
838
|
const t = [];
|
|
829
839
|
F.push({
|
|
830
840
|
be: i ? -1 : c ? -2 : -3 - d,
|
|
831
|
-
|
|
841
|
+
xe: t,
|
|
832
842
|
me: X(d, e, i || c ? 0 : null, c ? "bottom" : "top", 4)
|
|
833
843
|
}), G = t;
|
|
834
844
|
} else d < 0 && (G = F);
|
|
835
|
-
const p = u >= 0 && l === d, m = i || c || l === R || l >= o && l <= n, y = p ? U : null,
|
|
836
|
-
let T = 0, M = !e.
|
|
845
|
+
const p = u >= 0 && l === d, m = i || c || l === R || l >= o && l <= n, y = p ? U : null, x = l * g, I = K && K.get(l), b = I && I.ze, k = [];
|
|
846
|
+
let T = 0, M = !e.q(l) && null, O = l + 1, A = !1;
|
|
837
847
|
for (let e = 0; e < E; e++) {
|
|
838
|
-
const o = C[e], n = o < S, c = o >= _, u = n || c || o >= r && o <= s, d = L.get(
|
|
848
|
+
const o = C[e], n = o < S, c = o >= _, u = n || c || o >= r && o <= s, d = L.get(x + o);
|
|
839
849
|
if (d ? d.rowIndex === l && d.colIndex === o : m && u) {
|
|
840
|
-
const r = d ? B(d, f) : l + 1, s = d ? D(d,
|
|
850
|
+
const r = d ? B(d, f) : l + 1, s = d ? D(d, g) : o + 1, u = r - l, $ = s - o, m = u > 1, w = $ > 1, S = m || w;
|
|
841
851
|
let _, v;
|
|
842
|
-
O =
|
|
843
|
-
const y = n ? t.u(o) : null,
|
|
852
|
+
O = h(O, r);
|
|
853
|
+
const y = n ? t.u(o) : null, x = c ? t.u(g) - t.u(s) : null;
|
|
844
854
|
!1 !== M || m || (_ = l, M = !0), !1 !== J[e] || w || (v = o, J[e] = !0);
|
|
845
|
-
const
|
|
855
|
+
const I = i ? "columnheader" : o === z && (n || p) ? "rowheader" : "cell", R = S ? u : void 0, C = S ? $ : void 0, E = "cell" !== I && a && a.rowIndex === l && a.colIndex === o ? a.order : void 0;
|
|
846
856
|
let L;
|
|
847
857
|
if (b) {
|
|
848
858
|
const e = b.length;
|
|
849
859
|
for (;T < e && b[T].fe < o; ) T++;
|
|
850
860
|
T < e && b[T].fe === o && (L = b[T]);
|
|
851
861
|
}
|
|
852
|
-
if (!L || L.ue !== R || L.de !== C || L.ke !== y || L.Re !==
|
|
862
|
+
if (!L || L.ue !== R || L.de !== C || L.ke !== y || L.Re !== x || L.he !== _ || L.ge !== v || L.$e !== I || L.pe !== E) {
|
|
853
863
|
let e = "1/l" + o;
|
|
854
864
|
S && (e += "/l" + r + "/l" + s);
|
|
855
865
|
const t = {
|
|
@@ -858,25 +868,25 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
858
868
|
gridArea: e
|
|
859
869
|
};
|
|
860
870
|
m && (t.height = "0px", t.minHeight = "100%", t.zIndex = 1), w && (t.width = "0px",
|
|
861
|
-
t.minWidth = "100%"), (n || c) && (t[n ? "insetInlineStart" : "insetInlineEnd"] = (n ? y :
|
|
871
|
+
t.minWidth = "100%"), (n || c) && (t[n ? "insetInlineStart" : "insetInlineEnd"] = (n ? y : x) + "px",
|
|
862
872
|
t.position = "sticky", t.zIndex = 2), L = {
|
|
863
873
|
fe: o,
|
|
864
874
|
ue: R,
|
|
865
875
|
de: C,
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
876
|
+
he: _,
|
|
877
|
+
ge: v,
|
|
878
|
+
$e: I,
|
|
869
879
|
pe: E,
|
|
870
880
|
me: t,
|
|
871
881
|
ke: y,
|
|
872
|
-
Re:
|
|
882
|
+
Re: x
|
|
873
883
|
}, A = !0;
|
|
874
884
|
}
|
|
875
885
|
k.push(L);
|
|
876
886
|
}
|
|
877
887
|
}
|
|
878
888
|
if (j.push(M), k.length) {
|
|
879
|
-
const e =
|
|
889
|
+
const e = I && !A && I.ze.length === k.length && I.Te === y ? I : {
|
|
880
890
|
ve: l,
|
|
881
891
|
ze: k,
|
|
882
892
|
me: X(l, O, y, "top", 3),
|
|
@@ -886,16 +896,16 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
886
896
|
}
|
|
887
897
|
}
|
|
888
898
|
return A.set(e, N), {
|
|
889
|
-
Me: V(e, M, j, m(
|
|
890
|
-
Ce: V(t, C, J, m(Y), "minmax(max-content,auto)",
|
|
899
|
+
Me: V(e, M, j, m(q), "max-content", f),
|
|
900
|
+
Ce: V(t, C, J, m(Y), "minmax(max-content,auto)", g),
|
|
891
901
|
Oe: F
|
|
892
902
|
};
|
|
893
|
-
})(te, re, K.l(y), ee.l(y), ce,
|
|
903
|
+
})(te, re, K.l(y), ee.l(y), ce, $, z, I), _e = ne(e => ((e, t, o, n, r, s = u, {rowIndex: l, colIndex: i, rowAlign: c, colAlign: a}) => {
|
|
894
904
|
null != l && N(e, t, n, s, l, c, !1), null != i && N(e, o, r, u, i, a, !0);
|
|
895
|
-
})(se, K, ee, te, re,
|
|
905
|
+
})(se, K, ee, te, re, $, e));
|
|
896
906
|
return Q(() => {
|
|
897
907
|
const e = e => {
|
|
898
|
-
e ? a(
|
|
908
|
+
e ? a(he) : he();
|
|
899
909
|
};
|
|
900
910
|
K.A(1, e), ee.A(1, e);
|
|
901
911
|
let t = !1;
|
|
@@ -935,8 +945,8 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
935
945
|
findColIndex: ee.k,
|
|
936
946
|
getRowOffset: K.u,
|
|
937
947
|
getColOffset: ee.u,
|
|
938
|
-
getRowSize: K
|
|
939
|
-
getColSize: ee
|
|
948
|
+
getRowSize: K.h,
|
|
949
|
+
getColSize: ee.h,
|
|
940
950
|
scrollToIndex: e => _e[Z](e),
|
|
941
951
|
scrollTo: ({vertical: e, horizontal: t}) => ((e, t, o) => {
|
|
942
952
|
null != t && e.N(!1, () => t), null != o && e.N(!0, () => o);
|
|
@@ -955,7 +965,7 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
955
965
|
role: "table",
|
|
956
966
|
"aria-rowcount": me,
|
|
957
967
|
"aria-colcount": we,
|
|
958
|
-
...
|
|
968
|
+
...q,
|
|
959
969
|
style: {
|
|
960
970
|
overflow: "auto",
|
|
961
971
|
contain: "strict",
|
|
@@ -972,16 +982,16 @@ f), b = e => g(e.t(), e.o()), k = ({l: e, i: t, u: o, $: n, h: r, p: s, t: l, m:
|
|
|
972
982
|
display: "grid",
|
|
973
983
|
gridTemplateRows: Se.Me,
|
|
974
984
|
gridTemplateColumns: Se.Ce,
|
|
975
|
-
gap:
|
|
976
|
-
marginTop:
|
|
985
|
+
gap: x,
|
|
986
|
+
marginTop: $e,
|
|
977
987
|
marginInlineStart: pe,
|
|
978
|
-
height: b(K) -
|
|
979
|
-
pointerEvents:
|
|
988
|
+
height: b(K) - $e,
|
|
989
|
+
pointerEvents: ge ? "none" : void 0
|
|
980
990
|
},
|
|
981
|
-
children: Se.Oe.map(n => "
|
|
991
|
+
children: Se.Oe.map(n => "xe" in n ? /* @__PURE__ */ c(ue, {
|
|
982
992
|
ae: n,
|
|
983
993
|
te: e,
|
|
984
|
-
|
|
994
|
+
Ie: t,
|
|
985
995
|
ye: o,
|
|
986
996
|
oe: se.K
|
|
987
997
|
}, n.be) : /* @__PURE__ */ c(fe, {
|