jcicl 1.2.3 → 1.2.4
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/ScrollContainer/ScrollContainer.d.ts +7 -0
- package/ScrollContainer/ScrollContainer.js +410 -403
- package/Tabs/Tabs.js +95 -81
- package/assets/style.css +1 -1
- package/assets/tailwind.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as Uo } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import Dn, { forwardRef as Ko, useRef as jt, useEffect as Ut, useImperativeHandle as Yo, useMemo as Pn } from "react";
|
|
3
3
|
import { useThemeColors as qo } from "../ThemeContext.js";
|
|
4
4
|
/*!
|
|
5
5
|
* OverlayScrollbars
|
|
@@ -14,14 +14,14 @@ const mt = (t, e) => {
|
|
|
14
14
|
const { o: n, i: o, u: s } = t;
|
|
15
15
|
let c = n, r;
|
|
16
16
|
const a = (i, p) => {
|
|
17
|
-
const
|
|
18
|
-
return (f || s) && (c =
|
|
17
|
+
const g = c, C = i, f = p || (o ? !o(g, C) : g !== C);
|
|
18
|
+
return (f || s) && (c = C, r = g), [c, f, r];
|
|
19
19
|
};
|
|
20
20
|
return [e ? (i) => a(e(c, r), i) : a, (i) => [c, !!i, r]];
|
|
21
21
|
}, Zo = typeof window < "u" && typeof HTMLElement < "u" && !!window.document, ht = Zo ? window : {}, Gn = Math.max, Xo = Math.min, en = Math.round, _t = Math.abs, Hn = Math.sign, Qn = ht.cancelAnimationFrame, yn = ht.requestAnimationFrame, vn = ht.setTimeout, to = ht.clearTimeout, He = (t) => typeof ht[t] < "u" ? ht[t] : void 0, Jo = He("MutationObserver"), _n = He("IntersectionObserver"), Kt = He("ResizeObserver"), ie = He("ScrollTimeline"), hn = (t) => t === void 0, _e = (t) => t === null, zt = (t) => typeof t == "number", te = (t) => typeof t == "string", ze = (t) => typeof t == "boolean", Et = (t) => typeof t == "function", Ct = (t) => Array.isArray(t), Ie = (t) => typeof t == "object" && !Ct(t) && !_e(t), mn = (t) => {
|
|
22
22
|
const e = !!t && t.length, n = zt(e) && e > -1 && e % 1 == 0;
|
|
23
23
|
return Ct(t) || !Et(t) && n ? e > 0 && Ie(t) ? e - 1 in t : !0 : !1;
|
|
24
|
-
}, ae = (t) => !!t && t.constructor === Object,
|
|
24
|
+
}, ae = (t) => !!t && t.constructor === Object, ke = (t) => t instanceof HTMLElement, Re = (t) => t instanceof Element;
|
|
25
25
|
function G(t, e) {
|
|
26
26
|
if (mn(t))
|
|
27
27
|
for (let n = 0; n < t.length && e(t[n], n, t) !== !1; n++)
|
|
@@ -29,9 +29,9 @@ function G(t, e) {
|
|
|
29
29
|
else t && G(Object.keys(t), (n) => e(t[n], n, t));
|
|
30
30
|
return t;
|
|
31
31
|
}
|
|
32
|
-
const eo = (t, e) => t.indexOf(e) >= 0, Gt = (t, e) => t.concat(e), rt = (t, e, n) => (!te(e) && mn(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), Vt = (t) => Array.from(t || []), gn = (t) => Ct(t) ? t : !te(t) && mn(t) ? Vt(t) : [t],
|
|
32
|
+
const eo = (t, e) => t.indexOf(e) >= 0, Gt = (t, e) => t.concat(e), rt = (t, e, n) => (!te(e) && mn(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), Vt = (t) => Array.from(t || []), gn = (t) => Ct(t) ? t : !te(t) && mn(t) ? Vt(t) : [t], Me = (t) => !!t && !t.length, Le = (t) => Vt(new Set(t)), bt = (t, e, n) => {
|
|
33
33
|
G(t, (s) => s ? s.apply(void 0, e || []) : !0), n || (t.length = 0);
|
|
34
|
-
}, no = "paddingTop", oo = "paddingRight", so = "paddingLeft", co = "paddingBottom", ro = "marginLeft", lo = "marginRight", io = "marginBottom", bn = "overflowX", wn = "overflowY", Ve = "width", Fe = "height",
|
|
34
|
+
}, no = "paddingTop", oo = "paddingRight", so = "paddingLeft", co = "paddingBottom", ro = "marginLeft", lo = "marginRight", io = "marginBottom", bn = "overflowX", wn = "overflowY", Ve = "width", Fe = "height", Dt = "visible", Ot = "hidden", Bt = "scroll", Go = (t) => {
|
|
35
35
|
const e = String(t || "");
|
|
36
36
|
return e ? e[0].toUpperCase() + e.slice(1) : "";
|
|
37
37
|
}, Ne = (t, e, n, o) => {
|
|
@@ -43,7 +43,7 @@ const eo = (t, e) => t.indexOf(e) >= 0, Gt = (t, e) => t.concat(e), rt = (t, e,
|
|
|
43
43
|
}), s;
|
|
44
44
|
}
|
|
45
45
|
return !1;
|
|
46
|
-
}, ao = (t, e) => Ne(t, e, ["w", "h"]), Ee = (t, e) => Ne(t, e, ["x", "y"]), Qo = (t, e) => Ne(t, e, ["t", "r", "b", "l"]),
|
|
46
|
+
}, ao = (t, e) => Ne(t, e, ["w", "h"]), Ee = (t, e) => Ne(t, e, ["x", "y"]), Qo = (t, e) => Ne(t, e, ["t", "r", "b", "l"]), L = (t, ...e) => t.bind(0, ...e), Yt = (t) => {
|
|
47
47
|
let e;
|
|
48
48
|
const n = t ? vn : yn, o = t ? to : Qn;
|
|
49
49
|
return [(s) => {
|
|
@@ -66,17 +66,17 @@ const eo = (t, e) => t.indexOf(e) >= 0, Gt = (t, e) => t.concat(e), rt = (t, e,
|
|
|
66
66
|
let r, a, l, u;
|
|
67
67
|
const i = function(b) {
|
|
68
68
|
a && a(), r && r(), u = a = r = l = void 0, t.apply(this, b);
|
|
69
|
-
}, p = (f) => c && l ? c(l, f) : f,
|
|
69
|
+
}, p = (f) => c && l ? c(l, f) : f, g = () => {
|
|
70
70
|
a && l && i(p(l) || l);
|
|
71
|
-
},
|
|
71
|
+
}, C = function() {
|
|
72
72
|
const b = Vt(arguments), S = zn(n);
|
|
73
73
|
if (S) {
|
|
74
|
-
const
|
|
75
|
-
a && a(),
|
|
74
|
+
const T = typeof s == "function" ? s() : s, j = zn(o), v = p(b) || b, E = i.bind(0, v);
|
|
75
|
+
a && a(), T && !u ? (E(), u = !0, a = S(() => u = void 0)) : (a = S(E), j && !r && (r = j(g))), l = v;
|
|
76
76
|
} else
|
|
77
77
|
i(b);
|
|
78
78
|
};
|
|
79
|
-
return
|
|
79
|
+
return C.O = g, C;
|
|
80
80
|
}, fo = (t, e) => Object.prototype.hasOwnProperty.call(t, e), yt = (t) => t ? Object.keys(t) : [], q = (t, e, n, o, s, c, r) => {
|
|
81
81
|
const a = [e, n, o, s, c, r];
|
|
82
82
|
return (typeof t != "object" || _e(t)) && !Et(t) && (t = {}), G(a, (l) => {
|
|
@@ -84,26 +84,26 @@ const eo = (t, e) => t.indexOf(e) >= 0, Gt = (t, e) => t.concat(e), rt = (t, e,
|
|
|
84
84
|
const p = l[i];
|
|
85
85
|
if (t === p)
|
|
86
86
|
return !0;
|
|
87
|
-
const
|
|
87
|
+
const g = Ct(p);
|
|
88
88
|
if (p && ae(p)) {
|
|
89
|
-
const
|
|
90
|
-
let f =
|
|
91
|
-
|
|
89
|
+
const C = t[i];
|
|
90
|
+
let f = C;
|
|
91
|
+
g && !Ct(C) ? f = [] : !g && !ae(C) && (f = {}), t[i] = q(f, p);
|
|
92
92
|
} else
|
|
93
|
-
t[i] =
|
|
93
|
+
t[i] = g ? p.slice() : p;
|
|
94
94
|
});
|
|
95
95
|
}), t;
|
|
96
96
|
}, po = (t, e) => G(q({}, t), (n, o, s) => {
|
|
97
97
|
n === void 0 ? delete s[o] : n && ae(n) && (s[o] = po(n));
|
|
98
98
|
}), Sn = (t) => !yt(t).length, ue = () => {
|
|
99
|
-
}, yo = (t, e, n) => Gn(t, Xo(e, n)), Wt = (t) =>
|
|
99
|
+
}, yo = (t, e, n) => Gn(t, Xo(e, n)), Wt = (t) => Le((Ct(t) ? t : (t || "").split(" ")).filter((e) => e)), xn = (t, e) => t && t.getAttribute(e), Rn = (t, e) => t && t.hasAttribute(e), Mt = (t, e, n) => {
|
|
100
100
|
G(Wt(e), (o) => {
|
|
101
101
|
t && t.setAttribute(o, String(n || ""));
|
|
102
102
|
});
|
|
103
103
|
}, Tt = (t, e) => {
|
|
104
104
|
G(Wt(e), (n) => t && t.removeAttribute(n));
|
|
105
105
|
}, je = (t, e) => {
|
|
106
|
-
const n = Wt(xn(t, e)), o =
|
|
106
|
+
const n = Wt(xn(t, e)), o = L(Mt, t, e), s = (c, r) => {
|
|
107
107
|
const a = new Set(n);
|
|
108
108
|
return G(Wt(c), (l) => {
|
|
109
109
|
a[r](l);
|
|
@@ -117,9 +117,9 @@ const eo = (t, e) => t.indexOf(e) >= 0, Gt = (t, e) => t.concat(e), rt = (t, e,
|
|
|
117
117
|
return r.reduce((a, l) => a && n.includes(l), r.length > 0);
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
|
-
}, vo = (t, e, n) => (je(t, e).C(n),
|
|
120
|
+
}, vo = (t, e, n) => (je(t, e).C(n), L(Cn, t, e, n)), Cn = (t, e, n) => (je(t, e).$(n), L(vo, t, e, n)), De = (t, e, n, o) => (o ? Cn : vo)(t, e, n), On = (t, e, n) => je(t, e).H(n), ho = (t) => je(t, "class"), mo = (t, e) => {
|
|
121
121
|
ho(t).C(e);
|
|
122
|
-
}, $n = (t, e) => (ho(t).$(e),
|
|
122
|
+
}, $n = (t, e) => (ho(t).$(e), L(mo, t, e)), go = (t, e) => {
|
|
123
123
|
const n = e ? Re(e) && e : document;
|
|
124
124
|
return n ? Vt(n.querySelectorAll(t)) : [];
|
|
125
125
|
}, ts = (t, e) => {
|
|
@@ -133,7 +133,7 @@ const eo = (t, e) => t.indexOf(e) >= 0, Gt = (t, e) => t.concat(e), rt = (t, e,
|
|
|
133
133
|
const n = fe(e);
|
|
134
134
|
e && n && n.removeChild(e);
|
|
135
135
|
});
|
|
136
|
-
}, vt = (t, e) =>
|
|
136
|
+
}, vt = (t, e) => L(Qt, t && e && G(gn(e), (n) => {
|
|
137
137
|
n && t.appendChild(n);
|
|
138
138
|
}));
|
|
139
139
|
let wo;
|
|
@@ -141,7 +141,7 @@ const ns = () => wo, os = (t) => {
|
|
|
141
141
|
wo = t;
|
|
142
142
|
}, Xt = (t) => {
|
|
143
143
|
const e = document.createElement("div");
|
|
144
|
-
return
|
|
144
|
+
return Mt(e, "class", t), e;
|
|
145
145
|
}, So = (t) => {
|
|
146
146
|
const e = Xt(), n = ns(), o = t.trim();
|
|
147
147
|
return e.innerHTML = n ? n.createHTML(o) : o, G(on(e), (s) => Qt(s));
|
|
@@ -181,7 +181,7 @@ const Fn = (t, e, n) => {
|
|
|
181
181
|
}, Be = (t, e) => e ? {
|
|
182
182
|
w: e[`${t}Width`],
|
|
183
183
|
h: e[`${t}Height`]
|
|
184
|
-
} : cs, rs = (t) => Be("inner", t || ht), Jt =
|
|
184
|
+
} : cs, rs = (t) => Be("inner", t || ht), Jt = L(Be, "offset"), Oo = L(Be, "client"), Pe = L(Be, "scroll"), En = (t) => {
|
|
185
185
|
const e = parseFloat(It(t, Ve)) || 0, n = parseFloat(It(t, Fe)) || 0;
|
|
186
186
|
return {
|
|
187
187
|
w: e - en(e),
|
|
@@ -200,11 +200,11 @@ const Fn = (t, e, n) => {
|
|
|
200
200
|
passive: c,
|
|
201
201
|
capture: r
|
|
202
202
|
};
|
|
203
|
-
return
|
|
203
|
+
return L(bt, Wt(e).map((u) => {
|
|
204
204
|
const i = a ? (p) => {
|
|
205
205
|
Nn(t, u, i, r), n && n(p);
|
|
206
206
|
} : n;
|
|
207
|
-
return t && t.addEventListener(u, i, l),
|
|
207
|
+
return t && t.addEventListener(u, i, l), L(Nn, t, u, i, r);
|
|
208
208
|
}));
|
|
209
209
|
}, Eo = (t) => t.stopPropagation(), ln = (t) => t.preventDefault(), To = (t) => Eo(t) || ln(t), At = (t, e) => {
|
|
210
210
|
const { x: n, y: o } = zt(e) ? {
|
|
@@ -225,11 +225,11 @@ const Fn = (t, e, n) => {
|
|
|
225
225
|
y: 0
|
|
226
226
|
}
|
|
227
227
|
}), is = (t, e) => {
|
|
228
|
-
const { T: n, k: o } = t, { w: s, h: c } = e, r = (p,
|
|
229
|
-
let f = Hn(p) *
|
|
228
|
+
const { T: n, k: o } = t, { w: s, h: c } = e, r = (p, g, C) => {
|
|
229
|
+
let f = Hn(p) * C, b = Hn(g) * C;
|
|
230
230
|
if (f === b) {
|
|
231
|
-
const S = _t(p),
|
|
232
|
-
b = S >
|
|
231
|
+
const S = _t(p), T = _t(g);
|
|
232
|
+
b = S > T ? 0 : b, f = S < T ? 0 : f;
|
|
233
233
|
}
|
|
234
234
|
return f = f === b ? 0 : f, [f + 0, b + 0];
|
|
235
235
|
}, [a, l] = r(n.x, o.x, s), [u, i] = r(n.y, o.y, c);
|
|
@@ -278,39 +278,39 @@ const Fn = (t, e, n) => {
|
|
|
278
278
|
const u = e.get(c) || /* @__PURE__ */ new Set();
|
|
279
279
|
return e.set(c, u), Bn((i) => {
|
|
280
280
|
Et(i) && u.add(i);
|
|
281
|
-
}, r),
|
|
281
|
+
}, r), L(n, c, r);
|
|
282
282
|
}
|
|
283
283
|
ze(r) && r && n();
|
|
284
284
|
const a = yt(c), l = [];
|
|
285
285
|
return G(a, (u) => {
|
|
286
286
|
const i = c[u];
|
|
287
287
|
i && rt(l, o(u, i));
|
|
288
|
-
}),
|
|
288
|
+
}), L(bt, l);
|
|
289
289
|
}, s = (c, r) => {
|
|
290
290
|
G(Vt(e.get(c)), (a) => {
|
|
291
|
-
r && !
|
|
291
|
+
r && !Me(r) ? a.apply(0, r) : a();
|
|
292
292
|
});
|
|
293
293
|
};
|
|
294
294
|
return o(t || {}), [o, n, s];
|
|
295
|
-
}, Io = {},
|
|
295
|
+
}, Io = {}, ko = {}, as = (t) => {
|
|
296
296
|
G(t, (e) => G(e, (n, o) => {
|
|
297
297
|
Io[o] = e[o];
|
|
298
298
|
}));
|
|
299
|
-
},
|
|
299
|
+
}, Mo = (t, e, n) => yt(t).map((o) => {
|
|
300
300
|
const { static: s, instance: c } = t[o], [r, a, l] = n || [], u = n ? c : s;
|
|
301
301
|
if (u) {
|
|
302
302
|
const i = n ? u(r, a, e) : u(e);
|
|
303
|
-
return (l ||
|
|
303
|
+
return (l || ko)[o] = i;
|
|
304
304
|
}
|
|
305
|
-
}), us = (t, e) => t[e], ee = (t) => us(
|
|
305
|
+
}), us = (t, e) => t[e], ee = (t) => us(ko, t), fs = "__osOptionsValidationPlugin", ne = "data-overlayscrollbars", Te = "os-environment", $e = `${Te}-scrollbar-hidden`, Ge = `${ne}-initialize`, Ae = "noClipping", Wn = `${ne}-body`, Rt = ne, ds = "host", Lt = `${ne}-viewport`, ps = bn, ys = wn, vs = "arrange", Lo = "measuring", hs = "scrolling", Do = "scrollbarHidden", ms = "noContent", fn = `${ne}-padding`, Un = `${ne}-content`, Tn = "os-size-observer", gs = `${Tn}-appear`, bs = `${Tn}-listener`, ws = "os-trinsic-observer", Ss = "os-theme-none", wt = "os-scrollbar", xs = `${wt}-rtl`, Cs = `${wt}-horizontal`, Os = `${wt}-vertical`, Po = `${wt}-track`, An = `${wt}-handle`, $s = `${wt}-visible`, Es = `${wt}-cornerless`, Kn = `${wt}-interaction`, Yn = `${wt}-unusable`, dn = `${wt}-auto-hide`, Ts = `${dn}-hidden`, qn = `${wt}-wheel`, As = `${Po}-interactive`, Is = `${An}-interactive`, ks = "__osSizeObserverPlugin", Ms = (t, e) => {
|
|
306
306
|
const { M: n } = e, [o, s] = t("showNativeOverlaidScrollbars");
|
|
307
307
|
return [o && n.x && n.y, s];
|
|
308
|
-
}, Zt = (t) => t.indexOf(
|
|
308
|
+
}, Zt = (t) => t.indexOf(Dt) === 0, Ls = (t) => t.replace(`${Dt}-`, ""), pn = (t, e) => {
|
|
309
309
|
if (t === "auto")
|
|
310
310
|
return e ? Bt : Ot;
|
|
311
311
|
const n = t || Ot;
|
|
312
|
-
return [Ot, Bt,
|
|
313
|
-
},
|
|
312
|
+
return [Ot, Bt, Dt].includes(n) ? n : Ot;
|
|
313
|
+
}, Ds = (t, e) => {
|
|
314
314
|
const { overflowX: n, overflowY: o } = It(t, [bn, wn]);
|
|
315
315
|
return {
|
|
316
316
|
x: pn(n, e.x),
|
|
@@ -372,34 +372,34 @@ const zs = () => Ro, Rs = (t) => {
|
|
|
372
372
|
};
|
|
373
373
|
let tn;
|
|
374
374
|
const Vs = () => {
|
|
375
|
-
const t = (v,
|
|
375
|
+
const t = (v, E, D) => {
|
|
376
376
|
vt(document.body, v), vt(document.body, v);
|
|
377
|
-
const
|
|
378
|
-
return
|
|
379
|
-
x: H.h -
|
|
380
|
-
y: H.w -
|
|
377
|
+
const W = Oo(v), H = Jt(v), V = En(E);
|
|
378
|
+
return D && Qt(v), {
|
|
379
|
+
x: H.h - W.h + V.h,
|
|
380
|
+
y: H.w - W.w + V.w
|
|
381
381
|
};
|
|
382
382
|
}, e = (v) => {
|
|
383
|
-
let
|
|
384
|
-
const
|
|
383
|
+
let E = !1;
|
|
384
|
+
const D = $n(v, $e);
|
|
385
385
|
try {
|
|
386
|
-
|
|
386
|
+
E = It(v, "scrollbar-width") === "none" || It(v, "display", "::-webkit-scrollbar") === "none";
|
|
387
387
|
} catch {
|
|
388
388
|
}
|
|
389
|
-
return
|
|
389
|
+
return D(), E;
|
|
390
390
|
}, n = `.${Te}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${Te} div{width:200%;height:200%;margin:10px 0}.${$e}{scrollbar-width:none!important}.${$e}::-webkit-scrollbar,.${$e}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`, s = So(`<div class="${Te}"><div></div><style>${n}</style></div>`)[0], c = s.firstChild, r = s.lastChild, a = zs();
|
|
391
391
|
a && (r.nonce = a);
|
|
392
392
|
const [l, , u] = un(), [i, p] = mt({
|
|
393
393
|
o: t(s, c),
|
|
394
394
|
i: Ee
|
|
395
|
-
},
|
|
396
|
-
x:
|
|
397
|
-
y:
|
|
395
|
+
}, L(t, s, c, !0)), [g] = p(), C = e(s), f = {
|
|
396
|
+
x: g.x === 0,
|
|
397
|
+
y: g.y === 0
|
|
398
398
|
}, b = {
|
|
399
399
|
elements: {
|
|
400
400
|
host: null,
|
|
401
|
-
padding: !
|
|
402
|
-
viewport: (v) =>
|
|
401
|
+
padding: !C,
|
|
402
|
+
viewport: (v) => C && bo(v) && v,
|
|
403
403
|
content: !1
|
|
404
404
|
},
|
|
405
405
|
scrollbars: {
|
|
@@ -409,37 +409,37 @@ const Vs = () => {
|
|
|
409
409
|
nativeScrollbarsOverlaid: !1,
|
|
410
410
|
body: null
|
|
411
411
|
}
|
|
412
|
-
}, S = q({}, _s),
|
|
413
|
-
U:
|
|
412
|
+
}, S = q({}, _s), T = L(q, {}, S), j = L(q, {}, b), B = {
|
|
413
|
+
U: g,
|
|
414
414
|
M: f,
|
|
415
|
-
P:
|
|
415
|
+
P: C,
|
|
416
416
|
J: !!ie,
|
|
417
|
-
G:
|
|
417
|
+
G: L(l, "r"),
|
|
418
418
|
K: j,
|
|
419
419
|
Z: (v) => q(b, v) && j(),
|
|
420
|
-
tt:
|
|
421
|
-
nt: (v) => q(S, v) &&
|
|
420
|
+
tt: T,
|
|
421
|
+
nt: (v) => q(S, v) && T(),
|
|
422
422
|
ot: q({}, b),
|
|
423
423
|
st: q({}, S)
|
|
424
424
|
};
|
|
425
425
|
if (Tt(s, "style"), Qt(s), ot(ht, "resize", () => {
|
|
426
426
|
u("r", []);
|
|
427
|
-
}), Et(ht.matchMedia) && !
|
|
428
|
-
const v = (
|
|
429
|
-
const
|
|
430
|
-
ot(
|
|
431
|
-
|
|
427
|
+
}), Et(ht.matchMedia) && !C && (!f.x || !f.y)) {
|
|
428
|
+
const v = (E) => {
|
|
429
|
+
const D = ht.matchMedia(`(resolution: ${ht.devicePixelRatio}dppx)`);
|
|
430
|
+
ot(D, "change", () => {
|
|
431
|
+
E(), v(E);
|
|
432
432
|
}, {
|
|
433
433
|
A: !0
|
|
434
434
|
});
|
|
435
435
|
};
|
|
436
436
|
v(() => {
|
|
437
|
-
const [
|
|
438
|
-
q(
|
|
437
|
+
const [E, D] = i();
|
|
438
|
+
q(B.U, E), u("r", [D]);
|
|
439
439
|
});
|
|
440
440
|
}
|
|
441
|
-
return
|
|
442
|
-
},
|
|
441
|
+
return B;
|
|
442
|
+
}, kt = () => (tn || (tn = Vs()), tn), Fs = (t, e, n) => {
|
|
443
443
|
let o = !1;
|
|
444
444
|
const s = n ? /* @__PURE__ */ new WeakMap() : !1, c = () => {
|
|
445
445
|
o = !0;
|
|
@@ -450,40 +450,40 @@ const Vs = () => {
|
|
|
450
450
|
return [p && i ? (a || go)(i, t) : [], p];
|
|
451
451
|
});
|
|
452
452
|
G(l, (u) => G(u[0], (i) => {
|
|
453
|
-
const p = u[1],
|
|
453
|
+
const p = u[1], g = s.get(i) || [];
|
|
454
454
|
if (t.contains(i) && p) {
|
|
455
455
|
const f = ot(i, p, (b) => {
|
|
456
456
|
o ? (f(), s.delete(i)) : e(b);
|
|
457
457
|
});
|
|
458
|
-
s.set(i, rt(
|
|
458
|
+
s.set(i, rt(g, f));
|
|
459
459
|
} else
|
|
460
|
-
bt(
|
|
460
|
+
bt(g), s.delete(i);
|
|
461
461
|
}));
|
|
462
462
|
}
|
|
463
463
|
};
|
|
464
464
|
return r(), [c, r];
|
|
465
465
|
}, Jn = (t, e, n, o) => {
|
|
466
466
|
let s = !1;
|
|
467
|
-
const { et: c, ct: r, rt: a, it: l, lt: u, ut: i } = o || {}, [p,
|
|
468
|
-
if (!
|
|
469
|
-
const v = u || ue,
|
|
467
|
+
const { et: c, ct: r, rt: a, it: l, lt: u, ut: i } = o || {}, [p, g] = Fs(t, () => s && n(!0), a), C = c || [], f = r || [], b = Gt(C, f), S = (j, B) => {
|
|
468
|
+
if (!Me(B)) {
|
|
469
|
+
const v = u || ue, E = i || ue, D = [], W = [];
|
|
470
470
|
let H = !1, V = !1;
|
|
471
|
-
if (G(
|
|
472
|
-
const { attributeName:
|
|
471
|
+
if (G(B, (z) => {
|
|
472
|
+
const { attributeName: x, target: O, type: R, oldValue: $, addedNodes: F, removedNodes: Z } = z, Q = R === "attributes", et = R === "childList", Y = t === O, st = Q && x, I = st && xn(O, x || ""), k = te(I) ? I : null, A = st && $ !== k, y = eo(f, x) && A;
|
|
473
473
|
if (e && (et || !Y)) {
|
|
474
|
-
const w = Q &&
|
|
475
|
-
G(F, (
|
|
474
|
+
const w = Q && A, h = w && l && nn(O, l), m = (h ? !v(O, x, $, k) : !Q || w) && !E(z, !!h, t, o);
|
|
475
|
+
G(F, (M) => rt(D, M)), G(Z, (M) => rt(D, M)), V = V || m;
|
|
476
476
|
}
|
|
477
|
-
!e && Y &&
|
|
478
|
-
}),
|
|
477
|
+
!e && Y && A && !v(O, x, $, k) && (rt(W, x), H = H || y);
|
|
478
|
+
}), g((z) => Le(D).reduce((x, O) => (rt(x, go(z, O)), nn(O, z) ? rt(x, O) : x), [])), e)
|
|
479
479
|
return !j && V && n(!1), [!1];
|
|
480
|
-
if (!
|
|
481
|
-
const z = [
|
|
480
|
+
if (!Me(W) || H) {
|
|
481
|
+
const z = [Le(W), H];
|
|
482
482
|
return j || n.apply(0, z), z;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
},
|
|
486
|
-
return [() => (
|
|
485
|
+
}, T = new Jo(L(S, !1));
|
|
486
|
+
return [() => (T.observe(t, {
|
|
487
487
|
attributes: !0,
|
|
488
488
|
attributeOldValue: !0,
|
|
489
489
|
attributeFilter: b,
|
|
@@ -491,28 +491,28 @@ const Vs = () => {
|
|
|
491
491
|
childList: e,
|
|
492
492
|
characterData: e
|
|
493
493
|
}), s = !0, () => {
|
|
494
|
-
s && (p(),
|
|
494
|
+
s && (p(), T.disconnect(), s = !1);
|
|
495
495
|
}), () => {
|
|
496
496
|
if (s)
|
|
497
|
-
return S(!0,
|
|
497
|
+
return S(!0, T.takeRecords());
|
|
498
498
|
}];
|
|
499
499
|
};
|
|
500
500
|
let Nt = null;
|
|
501
501
|
const Vo = (t, e, n) => {
|
|
502
|
-
const { ft: o } = n || {}, s = ee(
|
|
502
|
+
const { ft: o } = n || {}, s = ee(ks), [c] = mt({
|
|
503
503
|
o: !1,
|
|
504
504
|
u: !0
|
|
505
505
|
});
|
|
506
506
|
return () => {
|
|
507
507
|
const r = [], l = So(`<div class="${Tn}"><div class="${bs}"></div></div>`)[0], u = l.firstChild, i = (p) => {
|
|
508
|
-
const
|
|
509
|
-
let
|
|
510
|
-
if (
|
|
511
|
-
const b = p[0], [S, ,
|
|
512
|
-
f = $o(S,
|
|
508
|
+
const g = Ct(p) && !Me(p);
|
|
509
|
+
let C = !1, f = !1;
|
|
510
|
+
if (g) {
|
|
511
|
+
const b = p[0], [S, , T] = c(b.contentRect), j = rn(S);
|
|
512
|
+
f = $o(S, T), C = !f && !j;
|
|
513
513
|
} else
|
|
514
514
|
f = p === !0;
|
|
515
|
-
|
|
515
|
+
C || e({
|
|
516
516
|
_t: !0,
|
|
517
517
|
ft: f
|
|
518
518
|
});
|
|
@@ -529,21 +529,21 @@ const Vo = (t, e, n) => {
|
|
|
529
529
|
const p = uo(i, {
|
|
530
530
|
p: 0,
|
|
531
531
|
v: 0
|
|
532
|
-
}),
|
|
533
|
-
if (
|
|
534
|
-
|
|
532
|
+
}), g = (f) => p(f), C = new Kt(g);
|
|
533
|
+
if (C.observe(Nt ? t : u), rt(r, [() => {
|
|
534
|
+
C.disconnect();
|
|
535
535
|
}, !Nt && vt(t, l)]), Nt) {
|
|
536
|
-
const f = new Kt(
|
|
536
|
+
const f = new Kt(g);
|
|
537
537
|
f.observe(t, {
|
|
538
538
|
box: "border-box"
|
|
539
539
|
}), rt(r, () => f.disconnect());
|
|
540
540
|
}
|
|
541
541
|
} else if (s) {
|
|
542
|
-
const [p,
|
|
543
|
-
rt(r, Gt([$n(l, gs), ot(l, "animationstart", p), vt(t, l)],
|
|
542
|
+
const [p, g] = s(u, i, o);
|
|
543
|
+
rt(r, Gt([$n(l, gs), ot(l, "animationstart", p), vt(t, l)], g));
|
|
544
544
|
} else
|
|
545
545
|
return ue;
|
|
546
|
-
return
|
|
546
|
+
return L(bt, r);
|
|
547
547
|
};
|
|
548
548
|
}, Ns = (t, e) => {
|
|
549
549
|
let n;
|
|
@@ -558,7 +558,7 @@ const Vo = (t, e, n) => {
|
|
|
558
558
|
return [() => {
|
|
559
559
|
const l = [];
|
|
560
560
|
if (_n)
|
|
561
|
-
n = new _n(
|
|
561
|
+
n = new _n(L(a, !1), {
|
|
562
562
|
root: t
|
|
563
563
|
}), n.observe(s), rt(l, () => {
|
|
564
564
|
n.disconnect();
|
|
@@ -570,142 +570,142 @@ const Vo = (t, e, n) => {
|
|
|
570
570
|
};
|
|
571
571
|
rt(l, Vo(s, u)()), u();
|
|
572
572
|
}
|
|
573
|
-
return
|
|
573
|
+
return L(bt, rt(l, vt(t, s)));
|
|
574
574
|
}, () => n && a(!0, n.takeRecords())];
|
|
575
575
|
}, js = (t, e, n, o) => {
|
|
576
576
|
let s, c, r, a, l, u, i, p;
|
|
577
|
-
const
|
|
578
|
-
let d,
|
|
579
|
-
const
|
|
577
|
+
const g = `[${Rt}]`, C = `[${Lt}]`, f = ["id", "class", "style", "open", "wrap", "cols", "rows"], { dt: b, vt: S, L: T, gt: j, ht: B, V: v, bt: E, yt: D, wt: W, St: H } = t, V = (d) => It(d, "direction") === "rtl", z = () => {
|
|
578
|
+
let d, m, M;
|
|
579
|
+
const P = uo(o, {
|
|
580
580
|
p: () => d,
|
|
581
|
-
v: () =>
|
|
582
|
-
S: () =>
|
|
581
|
+
v: () => m,
|
|
582
|
+
S: () => M,
|
|
583
583
|
m(N, J) {
|
|
584
584
|
const [_] = N, [X] = J;
|
|
585
585
|
return [Gt(yt(_), yt(X)).reduce((K, lt) => (K[lt] = _[lt] || X[lt], K), {})];
|
|
586
586
|
}
|
|
587
|
-
}),
|
|
587
|
+
}), U = (N, J) => {
|
|
588
588
|
if (Ct(J)) {
|
|
589
589
|
const [_, X, K] = J;
|
|
590
|
-
d = _,
|
|
591
|
-
} else zt(J) ? (d = J,
|
|
592
|
-
|
|
590
|
+
d = _, m = X, M = K;
|
|
591
|
+
} else zt(J) ? (d = J, m = !1, M = !1) : (d = !1, m = !1, M = !1);
|
|
592
|
+
P(N);
|
|
593
593
|
};
|
|
594
|
-
return
|
|
595
|
-
},
|
|
594
|
+
return U.O = P.O, U;
|
|
595
|
+
}, x = {
|
|
596
596
|
Ot: !1,
|
|
597
597
|
B: V(b)
|
|
598
|
-
}, O =
|
|
598
|
+
}, O = kt(), R = ee(In), [$] = mt({
|
|
599
599
|
i: ao,
|
|
600
600
|
o: {
|
|
601
601
|
w: 0,
|
|
602
602
|
h: 0
|
|
603
603
|
}
|
|
604
604
|
}, () => {
|
|
605
|
-
const d = R && R.R(t, e,
|
|
606
|
-
return _ && _(), At(j,
|
|
605
|
+
const d = R && R.R(t, e, x, O, n).Y, M = !(E && v) && On(S, Rt, Ae), P = !v && D(vs), U = P && gt(j), N = U && H(), J = W(Lo, M), _ = P && d && d(), X = Pe(T), K = En(T);
|
|
606
|
+
return _ && _(), At(j, U), N && N(), M && J(), {
|
|
607
607
|
w: X.w + K.w,
|
|
608
608
|
h: X.h + K.h
|
|
609
609
|
};
|
|
610
610
|
}), F = z(), Z = (d) => {
|
|
611
|
-
const
|
|
611
|
+
const m = V(b);
|
|
612
612
|
q(d, {
|
|
613
|
-
Ct: p !==
|
|
614
|
-
}), q(
|
|
615
|
-
B:
|
|
616
|
-
}), p =
|
|
617
|
-
}, Q = (d,
|
|
618
|
-
const [
|
|
619
|
-
$t:
|
|
613
|
+
Ct: p !== m
|
|
614
|
+
}), q(x, {
|
|
615
|
+
B: m
|
|
616
|
+
}), p = m;
|
|
617
|
+
}, Q = (d, m) => {
|
|
618
|
+
const [M, P] = d, U = {
|
|
619
|
+
$t: P
|
|
620
620
|
};
|
|
621
|
-
return q(
|
|
622
|
-
Ot:
|
|
623
|
-
}),
|
|
624
|
-
}, et = ({ _t: d, ft:
|
|
625
|
-
const
|
|
626
|
-
_t: d ||
|
|
627
|
-
ft:
|
|
621
|
+
return q(x, {
|
|
622
|
+
Ot: M
|
|
623
|
+
}), m || o(U), U;
|
|
624
|
+
}, et = ({ _t: d, ft: m }) => {
|
|
625
|
+
const M = m ? o : F, P = {
|
|
626
|
+
_t: d || m,
|
|
627
|
+
ft: m
|
|
628
628
|
};
|
|
629
|
-
Z(
|
|
630
|
-
}, Y = (d,
|
|
631
|
-
const [,
|
|
632
|
-
xt:
|
|
629
|
+
Z(P), M(P, c);
|
|
630
|
+
}, Y = (d, m) => {
|
|
631
|
+
const [, M] = $(), P = {
|
|
632
|
+
xt: M
|
|
633
633
|
};
|
|
634
|
-
return Z(
|
|
635
|
-
}, st = (d,
|
|
636
|
-
const
|
|
637
|
-
Ht:
|
|
634
|
+
return Z(P), M && !m && F(P, d ? r : s), P;
|
|
635
|
+
}, st = (d, m, M) => {
|
|
636
|
+
const P = {
|
|
637
|
+
Ht: m
|
|
638
638
|
};
|
|
639
|
-
return Z(
|
|
640
|
-
}, [I,
|
|
639
|
+
return Z(P), m && !M && F(P, s), P;
|
|
640
|
+
}, [I, k] = B ? Ns(S, Q) : [], A = !v && Vo(S, et, {
|
|
641
641
|
ft: !0
|
|
642
642
|
}), [y, w] = Jn(S, !1, st, {
|
|
643
643
|
ct: f,
|
|
644
644
|
et: f
|
|
645
645
|
}), h = v && Kt && new Kt((d) => {
|
|
646
|
-
const
|
|
646
|
+
const m = d[d.length - 1].contentRect;
|
|
647
647
|
et({
|
|
648
648
|
_t: !0,
|
|
649
|
-
ft: $o(
|
|
650
|
-
}), i =
|
|
649
|
+
ft: $o(m, i)
|
|
650
|
+
}), i = m;
|
|
651
651
|
});
|
|
652
652
|
return [() => {
|
|
653
653
|
h && h.observe(S);
|
|
654
|
-
const d =
|
|
654
|
+
const d = A && A(), m = I && I(), M = y(), P = O.G((U) => {
|
|
655
655
|
const [, N] = $();
|
|
656
656
|
F({
|
|
657
|
-
Et:
|
|
657
|
+
Et: U,
|
|
658
658
|
xt: N,
|
|
659
|
-
_t:
|
|
659
|
+
_t: E
|
|
660
660
|
}, a);
|
|
661
661
|
});
|
|
662
662
|
return () => {
|
|
663
|
-
h && h.disconnect(), d && d(),
|
|
663
|
+
h && h.disconnect(), d && d(), m && m(), u && u(), M(), P();
|
|
664
664
|
};
|
|
665
|
-
}, ({ Dt: d, zt:
|
|
666
|
-
const
|
|
665
|
+
}, ({ Dt: d, zt: m, It: M }) => {
|
|
666
|
+
const P = {}, [U] = d("update.ignoreMutation"), [N, J] = d("update.attributes"), [_, X] = d("update.elementEvents"), [K, lt] = d("update.debounce"), it = X || J, ct = m || M, ft = (nt) => Et(U) && !!U(nt);
|
|
667
667
|
if (it) {
|
|
668
668
|
l && l(), u && u();
|
|
669
|
-
const [nt, pt] = Jn(
|
|
669
|
+
const [nt, pt] = Jn(B || T, !0, Y, {
|
|
670
670
|
et: Gt(f, N || []),
|
|
671
671
|
rt: _,
|
|
672
|
-
it:
|
|
672
|
+
it: g,
|
|
673
673
|
ut: (at, St) => {
|
|
674
674
|
const { target: tt, attributeName: dt } = at;
|
|
675
|
-
return (!St && dt && !v ? es(tt,
|
|
675
|
+
return (!St && dt && !v ? es(tt, g, C) : !1) || !!qt(tt, `.${wt}`) || ft(at);
|
|
676
676
|
}
|
|
677
677
|
});
|
|
678
678
|
u = nt(), l = pt;
|
|
679
679
|
}
|
|
680
680
|
if (lt && (F.O(), Ct(K) || zt(K) ? (s = K, c = !1, r = Ho, a = _o) : ae(K) ? (s = K.mutation, c = K.resize, r = K.event, a = K.env) : (s = !1, c = !1, r = !1, a = !1)), ct) {
|
|
681
|
-
const nt = w(), pt =
|
|
682
|
-
nt && q(
|
|
681
|
+
const nt = w(), pt = k && k(), at = l && l();
|
|
682
|
+
nt && q(P, st(nt[0], nt[1], ct)), pt && q(P, Q(pt[0], ct)), at && q(P, Y(at[0], ct));
|
|
683
683
|
}
|
|
684
|
-
return Z(
|
|
685
|
-
},
|
|
684
|
+
return Z(P), P;
|
|
685
|
+
}, x];
|
|
686
686
|
}, Fo = (t, e) => Et(e) ? e.apply(0, t) : e, Bs = (t, e, n, o) => {
|
|
687
687
|
const s = hn(o) ? n : o;
|
|
688
688
|
return Fo(t, s) || e.apply(0, t);
|
|
689
689
|
}, No = (t, e, n, o) => {
|
|
690
690
|
const s = hn(o) ? n : o, c = Fo(t, s);
|
|
691
|
-
return !!c && (
|
|
691
|
+
return !!c && (ke(c) ? c : e.apply(0, t));
|
|
692
692
|
}, Ws = (t, e) => {
|
|
693
|
-
const { nativeScrollbarsOverlaid: n, body: o } = e || {}, { M: s, P: c, K: r } =
|
|
694
|
-
return !!p || !!
|
|
693
|
+
const { nativeScrollbarsOverlaid: n, body: o } = e || {}, { M: s, P: c, K: r } = kt(), { nativeScrollbarsOverlaid: a, body: l } = r().cancel, u = n ?? a, i = hn(o) ? l : o, p = (s.x || s.y) && u, g = t && (_e(i) ? !c : i);
|
|
694
|
+
return !!p || !!g;
|
|
695
695
|
}, Us = (t, e, n, o) => {
|
|
696
|
-
const s = "--os-viewport-percent", c = "--os-scroll-percent", r = "--os-scroll-direction", { K: a } =
|
|
696
|
+
const s = "--os-viewport-percent", c = "--os-scroll-percent", r = "--os-scroll-direction", { K: a } = kt(), { scrollbars: l } = a(), { slot: u } = l, { dt: i, vt: p, L: g, At: C, gt: f, bt: b, V: S } = e, { scrollbars: T } = C ? {} : t, { slot: j } = T || {}, B = [], v = [], E = [], D = No([i, p, g], () => S && b ? i : p, u, j), W = (I) => {
|
|
697
697
|
if (ie) {
|
|
698
|
-
let
|
|
698
|
+
let k = null, A = [];
|
|
699
699
|
const y = new ie({
|
|
700
700
|
source: f,
|
|
701
701
|
axis: I
|
|
702
702
|
}), w = () => {
|
|
703
|
-
|
|
703
|
+
k && k.cancel(), k = null;
|
|
704
704
|
};
|
|
705
705
|
return {
|
|
706
706
|
Mt: (d) => {
|
|
707
|
-
const { Tt:
|
|
708
|
-
return
|
|
707
|
+
const { Tt: m } = n, M = Je(m)[I], P = I === "x", U = [Ze(0, P), Ze(`calc(-100% + 100cq${P ? "w" : "h"})`, P)], N = M ? U : U.reverse();
|
|
708
|
+
return A[0] === N[0] && A[1] === N[1] || (A = N, w(), k = d.kt.animate({
|
|
709
709
|
clear: ["left"],
|
|
710
710
|
transform: N
|
|
711
711
|
}, {
|
|
@@ -715,68 +715,68 @@ const Vo = (t, e, n) => {
|
|
|
715
715
|
};
|
|
716
716
|
}
|
|
717
717
|
}, H = {
|
|
718
|
-
x:
|
|
719
|
-
y:
|
|
718
|
+
x: W("x"),
|
|
719
|
+
y: W("y")
|
|
720
720
|
}, V = () => {
|
|
721
|
-
const { Rt: I, Vt:
|
|
721
|
+
const { Rt: I, Vt: k } = n, A = (y, w) => yo(0, 1, y / (y + w) || 0);
|
|
722
722
|
return {
|
|
723
|
-
x:
|
|
724
|
-
y:
|
|
723
|
+
x: A(k.x, I.x),
|
|
724
|
+
y: A(k.y, I.y)
|
|
725
725
|
};
|
|
726
|
-
}, z = (I,
|
|
727
|
-
const y =
|
|
726
|
+
}, z = (I, k, A) => {
|
|
727
|
+
const y = A ? $n : mo;
|
|
728
728
|
G(I, (w) => {
|
|
729
|
-
y(w.Lt,
|
|
729
|
+
y(w.Lt, k);
|
|
730
730
|
});
|
|
731
|
-
},
|
|
732
|
-
G(I, (
|
|
733
|
-
const [y, w] =
|
|
731
|
+
}, x = (I, k) => {
|
|
732
|
+
G(I, (A) => {
|
|
733
|
+
const [y, w] = k(A);
|
|
734
734
|
de(y, w);
|
|
735
735
|
});
|
|
736
|
-
}, O = (I,
|
|
737
|
-
const y = ze(
|
|
738
|
-
w && z(v, I,
|
|
736
|
+
}, O = (I, k, A) => {
|
|
737
|
+
const y = ze(A), w = y ? A : !0, h = y ? !A : !0;
|
|
738
|
+
w && z(v, I, k), h && z(E, I, k);
|
|
739
739
|
}, R = () => {
|
|
740
|
-
const I = V(),
|
|
741
|
-
[s]: cn(
|
|
740
|
+
const I = V(), k = (A) => (y) => [y.Lt, {
|
|
741
|
+
[s]: cn(A) + ""
|
|
742
742
|
}];
|
|
743
|
-
|
|
743
|
+
x(v, k(I.x)), x(E, k(I.y));
|
|
744
744
|
}, $ = () => {
|
|
745
745
|
if (!ie) {
|
|
746
|
-
const { Tt: I } = n,
|
|
746
|
+
const { Tt: I } = n, k = jn(I, gt(f)), A = (y) => (w) => [w.Lt, {
|
|
747
747
|
[c]: cn(y) + ""
|
|
748
748
|
}];
|
|
749
|
-
|
|
749
|
+
x(v, A(k.x)), x(E, A(k.y));
|
|
750
750
|
}
|
|
751
751
|
}, F = () => {
|
|
752
|
-
const { Tt: I } = n,
|
|
752
|
+
const { Tt: I } = n, k = Je(I), A = (y) => (w) => [w.Lt, {
|
|
753
753
|
[r]: y ? "0" : "1"
|
|
754
754
|
}];
|
|
755
|
-
|
|
755
|
+
x(v, A(k.x)), x(E, A(k.y)), ie && (v.forEach(H.x.Mt), E.forEach(H.y.Mt));
|
|
756
756
|
}, Z = () => {
|
|
757
757
|
if (S && !b) {
|
|
758
|
-
const { Rt: I, Tt:
|
|
759
|
-
const { Lt: d } = h,
|
|
760
|
-
const J =
|
|
758
|
+
const { Rt: I, Tt: k } = n, A = Je(k), y = jn(k, gt(f)), w = (h) => {
|
|
759
|
+
const { Lt: d } = h, m = fe(d) === g && d, M = (P, U, N) => {
|
|
760
|
+
const J = U * P;
|
|
761
761
|
return Co(N ? J : -J);
|
|
762
762
|
};
|
|
763
|
-
return [
|
|
763
|
+
return [m, m && {
|
|
764
764
|
transform: Ze({
|
|
765
|
-
x:
|
|
766
|
-
y:
|
|
765
|
+
x: M(y.x, I.x, A.x),
|
|
766
|
+
y: M(y.y, I.y, A.y)
|
|
767
767
|
})
|
|
768
768
|
}];
|
|
769
769
|
};
|
|
770
|
-
|
|
770
|
+
x(v, w), x(E, w);
|
|
771
771
|
}
|
|
772
772
|
}, Q = (I) => {
|
|
773
|
-
const
|
|
773
|
+
const k = I ? "x" : "y", y = Xt(`${wt} ${I ? Cs : Os}`), w = Xt(Po), h = Xt(An), d = {
|
|
774
774
|
Lt: y,
|
|
775
775
|
Pt: w,
|
|
776
776
|
kt: h
|
|
777
|
-
},
|
|
778
|
-
return rt(I ? v :
|
|
779
|
-
}, et =
|
|
777
|
+
}, m = H[k];
|
|
778
|
+
return rt(I ? v : E, d), rt(B, [vt(y, w), vt(w, h), L(Qt, y), m && m.Mt(d), o(d, O, I)]), d;
|
|
779
|
+
}, et = L(Q, !0), Y = L(Q, !1), st = () => (vt(D, v[0].Lt), vt(D, E[0].Lt), L(bt, B));
|
|
780
780
|
return et(), Y(), [{
|
|
781
781
|
Ut: R,
|
|
782
782
|
Nt: $,
|
|
@@ -786,37 +786,37 @@ const Vo = (t, e, n) => {
|
|
|
786
786
|
jt: {
|
|
787
787
|
Xt: v,
|
|
788
788
|
Yt: et,
|
|
789
|
-
Wt:
|
|
789
|
+
Wt: L(x, v)
|
|
790
790
|
},
|
|
791
791
|
Jt: {
|
|
792
|
-
Xt:
|
|
792
|
+
Xt: E,
|
|
793
793
|
Yt: Y,
|
|
794
|
-
Wt:
|
|
794
|
+
Wt: L(x, E)
|
|
795
795
|
}
|
|
796
796
|
}, st];
|
|
797
797
|
}, Ks = (t, e, n, o, s) => (c, r, a) => {
|
|
798
|
-
const { vt: l, L: u, V: i, gt: p, Gt:
|
|
798
|
+
const { vt: l, L: u, V: i, gt: p, Gt: g, St: C } = e, { Lt: f, Pt: b, kt: S } = c, [T, j] = Yt(333), [B, v] = Yt(444), E = (H) => {
|
|
799
799
|
Et(p.scrollBy) && p.scrollBy({
|
|
800
800
|
behavior: "smooth",
|
|
801
801
|
left: H.x,
|
|
802
802
|
top: H.y
|
|
803
803
|
});
|
|
804
|
-
},
|
|
805
|
-
const H = "pointerup pointercancel lostpointercapture", V = `client${a ? "X" : "Y"}`, z = a ? Ve : Fe,
|
|
804
|
+
}, D = () => {
|
|
805
|
+
const H = "pointerup pointercancel lostpointercapture", V = `client${a ? "X" : "Y"}`, z = a ? Ve : Fe, x = a ? "left" : "top", O = a ? "w" : "h", R = a ? "x" : "y", $ = [];
|
|
806
806
|
return ot(b, "pointerdown", o((F) => {
|
|
807
|
-
const Z = qt(F.target, `.${An}`) === S, Q = Z ? S : b, et = t.scrollbars, Y = et[Z ? "dragScroll" : "clickScroll"], { button: st, isPrimary: I, pointerType:
|
|
808
|
-
if (st === 0 && I && Y && (
|
|
807
|
+
const Z = qt(F.target, `.${An}`) === S, Q = Z ? S : b, et = t.scrollbars, Y = et[Z ? "dragScroll" : "clickScroll"], { button: st, isPrimary: I, pointerType: k } = F, { pointers: A } = et;
|
|
808
|
+
if (st === 0 && I && Y && (A || []).includes(k)) {
|
|
809
809
|
bt($), v();
|
|
810
|
-
const w = !Z && (F.shiftKey || Y === "instant"), h =
|
|
810
|
+
const w = !Z && (F.shiftKey || Y === "instant"), h = L(Xe, S), d = L(Xe, b), m = (tt, dt) => (tt || h())[x] - (dt || d())[x], M = en(Xe(p)[z]) / Jt(p)[O] || 1, P = gt(p)[R], U = (tt) => {
|
|
811
811
|
At(p, {
|
|
812
|
-
[R]:
|
|
812
|
+
[R]: P + tt
|
|
813
813
|
});
|
|
814
814
|
}, N = (tt) => {
|
|
815
|
-
const { Rt: dt } = n, ut = Jt(b)[O] - Jt(S)[O], Pt = 1 /
|
|
816
|
-
|
|
817
|
-
}, J = F[V], _ = h(), X = d(), K = _[z], lt =
|
|
815
|
+
const { Rt: dt } = n, ut = Jt(b)[O] - Jt(S)[O], Pt = 1 / M * tt / ut;
|
|
816
|
+
U(Pt * dt[R]);
|
|
817
|
+
}, J = F[V], _ = h(), X = d(), K = _[z], lt = m(_, X) + K / 2, ct = J - X[x] - lt, ft = Z ? 0 : ct, nt = (tt) => {
|
|
818
818
|
bt(St), Q.releasePointerCapture(tt.pointerId);
|
|
819
|
-
}, pt = Z || w, at =
|
|
819
|
+
}, pt = Z || w, at = C(), St = [ot(g, H, nt), ot(g, "selectstart", (tt) => ln(tt), {
|
|
820
820
|
D: !1
|
|
821
821
|
}), ot(b, H, nt), pt && ot(b, "pointermove", (tt) => N(ft + tt[V] - J)), pt && (() => {
|
|
822
822
|
const tt = gt(p);
|
|
@@ -825,49 +825,49 @@ const Vo = (t, e, n) => {
|
|
|
825
825
|
x: dt.x - tt.x,
|
|
826
826
|
y: dt.y - tt.y
|
|
827
827
|
};
|
|
828
|
-
(_t(ut.x) > 3 || _t(ut.y) > 3) && (
|
|
828
|
+
(_t(ut.x) > 3 || _t(ut.y) > 3) && (C(), At(p, tt), E(ut), B(at));
|
|
829
829
|
})];
|
|
830
830
|
if (Q.setPointerCapture(F.pointerId), w)
|
|
831
831
|
N(ct);
|
|
832
832
|
else if (!Z) {
|
|
833
833
|
const tt = ee(Ps);
|
|
834
834
|
if (tt) {
|
|
835
|
-
const { Vt: dt } = n, ut = tt(
|
|
835
|
+
const { Vt: dt } = n, ut = tt(U, N, L(m), ct, dt[R], Y, !!a, (Pt) => {
|
|
836
836
|
Pt ? at() : rt(St, at);
|
|
837
837
|
});
|
|
838
|
-
rt(St, ut), rt($,
|
|
838
|
+
rt(St, ut), rt($, L(ut, !0));
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
842
|
}));
|
|
843
843
|
};
|
|
844
|
-
let
|
|
845
|
-
return
|
|
844
|
+
let W = !0;
|
|
845
|
+
return L(bt, [ot(S, "pointermove pointerleave", o(s)), ot(f, "pointerenter", o(() => {
|
|
846
846
|
r(Kn, !0);
|
|
847
847
|
})), ot(f, "pointerleave pointercancel", o(() => {
|
|
848
848
|
r(Kn, !1);
|
|
849
849
|
})), ot(f, "wheel", o((H) => {
|
|
850
|
-
const { deltaX: V, deltaY: z, deltaMode:
|
|
851
|
-
|
|
850
|
+
const { deltaX: V, deltaY: z, deltaMode: x } = H;
|
|
851
|
+
W && x === 0 && fe(f) === l && E({
|
|
852
852
|
x: V,
|
|
853
853
|
y: z
|
|
854
|
-
}),
|
|
855
|
-
|
|
854
|
+
}), W = !1, r(qn, !0), T(() => {
|
|
855
|
+
W = !0, r(qn);
|
|
856
856
|
}), ln(H);
|
|
857
857
|
}), {
|
|
858
858
|
D: !1,
|
|
859
859
|
I: !0
|
|
860
860
|
}), !i && ot(f, "mousedown", o(() => {
|
|
861
861
|
const H = sn();
|
|
862
|
-
(Rn(H,
|
|
862
|
+
(Rn(H, Lt) || Rn(H, Rt) || H === document.body) && vn(L(an, u), 25);
|
|
863
863
|
})), ot(f, "pointerdown", () => {
|
|
864
|
-
const H = ot(
|
|
864
|
+
const H = ot(g, "click", (z) => {
|
|
865
865
|
V(), To(z);
|
|
866
866
|
}, {
|
|
867
867
|
A: !0,
|
|
868
868
|
I: !0,
|
|
869
869
|
D: !1
|
|
870
|
-
}), V = ot(
|
|
870
|
+
}), V = ot(g, "pointerup pointercancel", () => {
|
|
871
871
|
V(), setTimeout(H, 150);
|
|
872
872
|
}, {
|
|
873
873
|
I: !0,
|
|
@@ -876,93 +876,93 @@ const Vo = (t, e, n) => {
|
|
|
876
876
|
}, {
|
|
877
877
|
I: !0,
|
|
878
878
|
D: !0
|
|
879
|
-
}),
|
|
879
|
+
}), D(), j, v]);
|
|
880
880
|
}, Ys = (t, e, n, o, s, c, r) => {
|
|
881
|
-
let a, l, u, i, p,
|
|
881
|
+
let a, l, u, i, p, g = ue, C = 0;
|
|
882
882
|
const f = ["mouse", "pen"], b = (h) => (d) => {
|
|
883
883
|
n.Kt || h(d);
|
|
884
|
-
}, S = (h) => f.includes(h.pointerType), [
|
|
884
|
+
}, S = (h) => f.includes(h.pointerType), [T, j] = Yt(), [B, v] = Yt(100), [E, D] = Yt(50), [W, H] = Yt(() => C), [V, z] = Us(t, c, s, Ks(e, c, s, b, (h) => S(h) && st())), { vt: x, Qt: O, bt: R } = c, { Ft: $, Ut: F, Nt: Z, qt: Q, Bt: et } = V, Y = (h, d) => {
|
|
885
885
|
H();
|
|
886
|
-
const
|
|
887
|
-
n.Kt || $(Ts,
|
|
886
|
+
const m = (M) => {
|
|
887
|
+
n.Kt || $(Ts, M);
|
|
888
888
|
};
|
|
889
889
|
if (h)
|
|
890
|
-
|
|
890
|
+
m();
|
|
891
891
|
else {
|
|
892
|
-
const
|
|
893
|
-
|
|
892
|
+
const M = u ? !a : !0;
|
|
893
|
+
C > 0 && !d ? W(L(m, M)) : m(M);
|
|
894
894
|
}
|
|
895
895
|
}, st = () => {
|
|
896
|
-
(u ? !a : !i) && (Y(!0),
|
|
896
|
+
(u ? !a : !i) && (Y(!0), B(() => {
|
|
897
897
|
Y(!1);
|
|
898
898
|
}));
|
|
899
899
|
}, I = (h) => {
|
|
900
900
|
S(h) && (a = !0, !n.Kt && u && Y(!0));
|
|
901
|
-
},
|
|
901
|
+
}, k = (h) => {
|
|
902
902
|
S(h) && (a = !1, !n.Kt && u && Y(!1));
|
|
903
|
-
},
|
|
903
|
+
}, A = (h) => {
|
|
904
904
|
$(dn, h, !0), $(dn, h, !1);
|
|
905
|
-
}, y = [H, v,
|
|
905
|
+
}, y = [H, v, D, j, () => g(), ot(x, "pointerover", I, {
|
|
906
906
|
A: !0
|
|
907
|
-
}), ot(
|
|
907
|
+
}), ot(x, "pointerenter", I), ot(x, "pointerleave", k), ot(x, "pointermove", b((h) => {
|
|
908
908
|
S(h) && l && st();
|
|
909
909
|
})), ot(O, "scroll", b((h) => {
|
|
910
|
-
|
|
910
|
+
T(() => {
|
|
911
911
|
Z(), st();
|
|
912
912
|
}), r(h), et();
|
|
913
913
|
}))], w = ee(In);
|
|
914
|
-
return [() =>
|
|
915
|
-
const { nn:
|
|
916
|
-
const be = re.includes(Bt) && (tt ===
|
|
914
|
+
return [() => L(bt, rt(y, z())), ({ Dt: h, It: d, Zt: m, tn: M }) => {
|
|
915
|
+
const { nn: P, sn: U, en: N, cn: J } = M || {}, { Ct: _, ft: X } = m || {}, { B: K } = o, { M: lt, P: it } = kt(), { rn: ct, j: ft } = s, [nt, pt] = h("showNativeOverlaidScrollbars"), [at, St] = h("scrollbars.theme"), [tt, dt] = h("scrollbars.visibility"), [ut, Pt] = h("scrollbars.autoHide"), [oe, pe] = h("scrollbars.autoHideSuspend"), [ye] = h("scrollbars.autoHideDelay"), [Ft, se] = h("scrollbars.dragScroll"), [We, Ue] = h("scrollbars.clickScroll"), [ve, Ke] = h("overflow"), xt = X && !d, he = P || U || J || _ || d, Ye = N || dt || Ke, ce = nt && lt.x && lt.y, me = !it && !w, qe = ce || me, ge = (re, le, Ht) => {
|
|
916
|
+
const be = re.includes(Bt) && (tt === Dt || tt === "auto" && le === Bt);
|
|
917
917
|
return $($s, be, Ht), be;
|
|
918
918
|
};
|
|
919
|
-
if (
|
|
920
|
-
|
|
919
|
+
if (C = ye, (pt || me) && $(Ss, qe), St && ($(p), $(at, !0), p = at), (pe || xt) && (A(!oe), xt && oe && (ft.x || ft.y ? (g(), E(() => {
|
|
920
|
+
g = ot(O, Bt, b(L(A, !0)), {
|
|
921
921
|
A: !0
|
|
922
922
|
});
|
|
923
|
-
})) :
|
|
923
|
+
})) : A(!0))), Pt && (l = ut === "move", u = ut === "leave", i = ut === "never", Y(i, !0)), se && $(Is, Ft), Ue && $(As, !!We), Ye) {
|
|
924
924
|
const re = ge(ve.x, ct.x, !0), le = ge(ve.y, ct.y, !1);
|
|
925
925
|
$(Es, !(re && le));
|
|
926
926
|
}
|
|
927
927
|
he && (Z(), F(), et(), J && Q(), $(Yn, !ft.x, !0), $(Yn, !ft.y, !1), $(xs, K && !R));
|
|
928
928
|
}, {}, V];
|
|
929
929
|
}, qs = (t) => {
|
|
930
|
-
const e =
|
|
930
|
+
const e = kt(), { K: n, P: o } = e, { elements: s } = n(), { padding: c, viewport: r, content: a } = s, l = ke(t), u = l ? {} : t, { elements: i } = u, { padding: p, viewport: g, content: C } = i || {}, f = l ? t : u.target, b = bo(f), S = f.ownerDocument, T = S.documentElement, j = () => S.defaultView || ht, B = L(Bs, [f]), v = L(No, [f]), E = L(Xt, ""), D = L(B, E, r), W = L(v, E, a), H = (_) => {
|
|
931
931
|
const X = Jt(_), K = Pe(_), lt = It(_, bn), it = It(_, wn);
|
|
932
932
|
return K.w - X.w > 0 && !Zt(lt) || K.h - X.h > 0 && !Zt(it);
|
|
933
|
-
}, V =
|
|
933
|
+
}, V = D(g), z = V === f, x = z && b, O = !z && W(C), R = !z && V === O, $ = x ? T : V, F = x ? $ : f, Z = !z && v(E, c, p), Q = !R && O, et = [Q, $, Z, F].map((_) => ke(_) && !fe(_) && _), Y = (_) => _ && eo(et, _), st = !Y($) && H($) ? $ : f, I = x ? T : $, A = {
|
|
934
934
|
dt: f,
|
|
935
935
|
vt: F,
|
|
936
936
|
L: $,
|
|
937
937
|
ln: Z,
|
|
938
938
|
ht: Q,
|
|
939
939
|
gt: I,
|
|
940
|
-
Qt:
|
|
941
|
-
an: b ?
|
|
940
|
+
Qt: x ? S : $,
|
|
941
|
+
an: b ? T : st,
|
|
942
942
|
Gt: S,
|
|
943
943
|
bt: b,
|
|
944
944
|
At: l,
|
|
945
945
|
V: z,
|
|
946
946
|
un: j,
|
|
947
|
-
yt: (_) => On($,
|
|
948
|
-
wt: (_, X) =>
|
|
949
|
-
St: () =>
|
|
950
|
-
}, { dt: y, vt: w, ln: h, L: d, ht:
|
|
951
|
-
Tt(w, [Rt, Ge]), Tt(y, Ge), b && Tt(
|
|
947
|
+
yt: (_) => On($, Lt, _),
|
|
948
|
+
wt: (_, X) => De($, Lt, _, X),
|
|
949
|
+
St: () => De(I, Lt, hs, !0)
|
|
950
|
+
}, { dt: y, vt: w, ln: h, L: d, ht: m } = A, M = [() => {
|
|
951
|
+
Tt(w, [Rt, Ge]), Tt(y, Ge), b && Tt(T, [Ge, Rt]);
|
|
952
952
|
}];
|
|
953
|
-
let
|
|
954
|
-
const
|
|
955
|
-
return [
|
|
953
|
+
let P = on([m, d, h, w, y].find((_) => _ && !Y(_)));
|
|
954
|
+
const U = x ? y : m || d, N = L(bt, M);
|
|
955
|
+
return [A, () => {
|
|
956
956
|
const _ = j(), X = sn(), K = (nt) => {
|
|
957
957
|
vt(fe(nt), on(nt)), Qt(nt);
|
|
958
958
|
}, lt = (nt) => ot(nt, "focusin focusout focus blur", To, {
|
|
959
959
|
I: !0,
|
|
960
960
|
D: !1
|
|
961
961
|
}), it = "tabindex", ct = xn(d, it), ft = lt(X);
|
|
962
|
-
return
|
|
962
|
+
return Mt(w, Rt, z ? "" : ds), Mt(h, fn, ""), Mt(d, Lt, ""), Mt(m, Un, ""), z || (Mt(d, it, ct || "-1"), b && Mt(T, Wn, "")), vt(U, P), vt(w, h), vt(h || w, !z && d), vt(d, m), rt(M, [ft, () => {
|
|
963
963
|
const nt = sn(), pt = Y(d), at = pt && nt === d ? y : nt, St = lt(at);
|
|
964
|
-
Tt(h, fn), Tt(
|
|
965
|
-
}]), o && !z && (Cn(d,
|
|
964
|
+
Tt(h, fn), Tt(m, Un), Tt(d, Lt), b && Tt(T, Wn), ct ? Mt(d, it, ct) : Tt(d, it), Y(m) && K(m), pt && K(d), Y(h) && K(h), an(at), St();
|
|
965
|
+
}]), o && !z && (Cn(d, Lt, Do), rt(M, L(Tt, d, Lt))), an(!z && b && X === y && _.top === _ ? d : X), ft(), P = 0, N;
|
|
966
966
|
}, N];
|
|
967
967
|
}, Zs = ({ ht: t }) => ({ Zt: e, fn: n, It: o }) => {
|
|
968
968
|
const { $t: s } = e || {}, { Ot: c } = n;
|
|
@@ -973,44 +973,44 @@ const Vo = (t, e, n) => {
|
|
|
973
973
|
const [c, r] = mt({
|
|
974
974
|
i: Qo,
|
|
975
975
|
o: Fn()
|
|
976
|
-
},
|
|
976
|
+
}, L(Fn, t, "padding", ""));
|
|
977
977
|
return ({ Dt: a, Zt: l, fn: u, It: i }) => {
|
|
978
|
-
let [p,
|
|
979
|
-
const { P:
|
|
980
|
-
(f ||
|
|
981
|
-
const
|
|
982
|
-
if (
|
|
983
|
-
const
|
|
984
|
-
[lo]:
|
|
985
|
-
[io]:
|
|
986
|
-
[ro]:
|
|
987
|
-
top:
|
|
988
|
-
right:
|
|
989
|
-
left:
|
|
990
|
-
[Ve]:
|
|
978
|
+
let [p, g] = r(i);
|
|
979
|
+
const { P: C } = kt(), { _t: f, xt: b, Ct: S } = l || {}, { B: T } = u, [j, B] = a("paddingAbsolute");
|
|
980
|
+
(f || g || (i || b)) && ([p, g] = c(i));
|
|
981
|
+
const E = !o && (B || S || g);
|
|
982
|
+
if (E) {
|
|
983
|
+
const D = !j || !e && !C, W = p.r + p.l, H = p.t + p.b, V = {
|
|
984
|
+
[lo]: D && !T ? -W : 0,
|
|
985
|
+
[io]: D ? -H : 0,
|
|
986
|
+
[ro]: D && T ? -W : 0,
|
|
987
|
+
top: D ? -p.t : 0,
|
|
988
|
+
right: D ? T ? -p.r : "auto" : 0,
|
|
989
|
+
left: D ? T ? "auto" : -p.l : 0,
|
|
990
|
+
[Ve]: D && `calc(100% + ${W}px)`
|
|
991
991
|
}, z = {
|
|
992
|
-
[no]:
|
|
993
|
-
[oo]:
|
|
994
|
-
[co]:
|
|
995
|
-
[so]:
|
|
992
|
+
[no]: D ? p.t : 0,
|
|
993
|
+
[oo]: D ? p.r : 0,
|
|
994
|
+
[co]: D ? p.b : 0,
|
|
995
|
+
[so]: D ? p.l : 0
|
|
996
996
|
};
|
|
997
997
|
de(e || n, V), de(n, z), q(s, {
|
|
998
998
|
ln: p,
|
|
999
|
-
_n: !
|
|
999
|
+
_n: !D,
|
|
1000
1000
|
F: e ? z : q({}, V, z)
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
1003
|
return {
|
|
1004
|
-
dn:
|
|
1004
|
+
dn: E
|
|
1005
1005
|
};
|
|
1006
1006
|
};
|
|
1007
1007
|
}, Js = (t, e) => {
|
|
1008
|
-
const n =
|
|
1008
|
+
const n = kt(), { vt: o, ln: s, L: c, V: r, Qt: a, gt: l, bt: u, wt: i, un: p } = t, { P: g } = n, C = u && r, f = L(Gn, 0), b = {
|
|
1009
1009
|
display: () => !1,
|
|
1010
1010
|
direction: (y) => y !== "ltr",
|
|
1011
1011
|
flexDirection: (y) => y.endsWith("-reverse"),
|
|
1012
1012
|
writingMode: (y) => y !== "horizontal-tb"
|
|
1013
|
-
}, S = yt(b),
|
|
1013
|
+
}, S = yt(b), T = {
|
|
1014
1014
|
i: ao,
|
|
1015
1015
|
o: {
|
|
1016
1016
|
w: 0,
|
|
@@ -1019,9 +1019,9 @@ const Vo = (t, e, n) => {
|
|
|
1019
1019
|
}, j = {
|
|
1020
1020
|
i: Ee,
|
|
1021
1021
|
o: {}
|
|
1022
|
-
},
|
|
1023
|
-
i(
|
|
1024
|
-
}, v = () => It(c, S),
|
|
1022
|
+
}, B = (y) => {
|
|
1023
|
+
i(Lo, !C && y);
|
|
1024
|
+
}, v = () => It(c, S), E = (y, w) => {
|
|
1025
1025
|
const h = !yt(y).length, d = w ? !0 : S.some((it) => {
|
|
1026
1026
|
const ct = y[it];
|
|
1027
1027
|
return te(ct) && b[it](ct);
|
|
@@ -1037,43 +1037,43 @@ const Vo = (t, e, n) => {
|
|
|
1037
1037
|
y: 1
|
|
1038
1038
|
}
|
|
1039
1039
|
};
|
|
1040
|
-
|
|
1041
|
-
const
|
|
1040
|
+
B(!0);
|
|
1041
|
+
const m = gt(l), M = ot(a, Bt, (it) => {
|
|
1042
1042
|
const ct = gt(l);
|
|
1043
|
-
it.isTrusted && ct.x ===
|
|
1043
|
+
it.isTrusted && ct.x === m.x && ct.y === m.y && Eo(it);
|
|
1044
1044
|
}, {
|
|
1045
1045
|
I: !0,
|
|
1046
1046
|
A: !0
|
|
1047
|
-
}),
|
|
1047
|
+
}), P = i(ms, !0);
|
|
1048
1048
|
At(l, {
|
|
1049
1049
|
x: 0,
|
|
1050
1050
|
y: 0
|
|
1051
|
-
}),
|
|
1052
|
-
const
|
|
1051
|
+
}), P();
|
|
1052
|
+
const U = gt(l), N = Pe(l);
|
|
1053
1053
|
At(l, {
|
|
1054
1054
|
x: N.w,
|
|
1055
1055
|
y: N.h
|
|
1056
1056
|
});
|
|
1057
1057
|
const J = gt(l), _ = {
|
|
1058
|
-
x: J.x -
|
|
1059
|
-
y: J.y -
|
|
1058
|
+
x: J.x - U.x,
|
|
1059
|
+
y: J.y - U.y
|
|
1060
1060
|
};
|
|
1061
1061
|
At(l, {
|
|
1062
1062
|
x: -N.w,
|
|
1063
1063
|
y: -N.h
|
|
1064
1064
|
});
|
|
1065
1065
|
const X = gt(l), K = {
|
|
1066
|
-
x: X.x -
|
|
1067
|
-
y: X.y -
|
|
1066
|
+
x: X.x - U.x,
|
|
1067
|
+
y: X.y - U.y
|
|
1068
1068
|
}, lt = {
|
|
1069
1069
|
x: _t(_.x) >= _t(K.x) ? J.x : X.x,
|
|
1070
1070
|
y: _t(_.y) >= _t(K.y) ? J.y : X.y
|
|
1071
1071
|
};
|
|
1072
|
-
return At(l,
|
|
1073
|
-
T:
|
|
1072
|
+
return At(l, m), yn(() => M()), {
|
|
1073
|
+
T: U,
|
|
1074
1074
|
k: lt
|
|
1075
1075
|
};
|
|
1076
|
-
},
|
|
1076
|
+
}, D = (y, w) => {
|
|
1077
1077
|
const h = ht.devicePixelRatio % 1 !== 0 ? 1 : 0, d = {
|
|
1078
1078
|
w: f(y.w - w.w),
|
|
1079
1079
|
h: f(y.h - w.h)
|
|
@@ -1082,47 +1082,47 @@ const Vo = (t, e, n) => {
|
|
|
1082
1082
|
w: d.w > h ? d.w : 0,
|
|
1083
1083
|
h: d.h > h ? d.h : 0
|
|
1084
1084
|
};
|
|
1085
|
-
},
|
|
1086
|
-
const h = (d,
|
|
1087
|
-
const
|
|
1088
|
-
return !
|
|
1085
|
+
}, W = (y, w) => {
|
|
1086
|
+
const h = (d, m, M, P) => {
|
|
1087
|
+
const U = d === Dt ? Ot : Ls(d), N = Zt(d), J = Zt(M);
|
|
1088
|
+
return !m && !P ? Ot : N && J ? Dt : N ? m && P ? U : m ? Dt : Ot : m ? U : J && P ? Dt : Ot;
|
|
1089
1089
|
};
|
|
1090
1090
|
return {
|
|
1091
1091
|
x: h(w.x, y.x, w.y, y.y),
|
|
1092
1092
|
y: h(w.y, y.y, w.x, y.x)
|
|
1093
1093
|
};
|
|
1094
1094
|
}, H = (y) => {
|
|
1095
|
-
const w = (d) => [
|
|
1096
|
-
i(h), i(yt(y).map((d) =>
|
|
1097
|
-
}, [V, z] = mt(
|
|
1098
|
-
i: (y, w) => Ne(y, w,
|
|
1095
|
+
const w = (d) => [Dt, Ot, Bt].map((m) => A(pn(m), d)), h = w(!0).concat(w()).join(" ");
|
|
1096
|
+
i(h), i(yt(y).map((d) => A(y[d], d === "x")).join(" "), !0);
|
|
1097
|
+
}, [V, z] = mt(T, L(En, c)), [x, O] = mt(T, L(Pe, c)), [R, $] = mt(T), [F] = mt(j), [Z, Q] = mt(T), [et] = mt(j), [Y] = mt({
|
|
1098
|
+
i: (y, w) => Ne(y, w, Le(Gt(yt(y), yt(w)))),
|
|
1099
1099
|
o: {}
|
|
1100
1100
|
}), [st, I] = mt({
|
|
1101
1101
|
i: (y, w) => Ee(y.T, w.T) && Ee(y.k, w.k),
|
|
1102
1102
|
o: Ao()
|
|
1103
|
-
}),
|
|
1104
|
-
return ({ Dt: y, Zt: w, fn: h, It: d }, { dn:
|
|
1105
|
-
const { _t:
|
|
1103
|
+
}), k = ee(In), A = (y, w) => `${w ? ps : ys}${Go(y)}`;
|
|
1104
|
+
return ({ Dt: y, Zt: w, fn: h, It: d }, { dn: m }) => {
|
|
1105
|
+
const { _t: M, Ht: P, xt: U, Ct: N, ft: J, Et: _ } = w || {}, X = k && k.R(t, e, h, n, y), { X: K, Y: lt, W: it } = X || {}, [ct, ft] = Ms(y, n), [nt, pt] = y("overflow"), at = Zt(nt.x), St = Zt(nt.y), tt = M || m || U || N || _ || ft;
|
|
1106
1106
|
let dt = z(d), ut = O(d), Pt = $(d), oe = Q(d);
|
|
1107
|
-
if (ft &&
|
|
1108
|
-
On(o, Rt, Ae) &&
|
|
1109
|
-
const
|
|
1107
|
+
if (ft && g && i(Do, !ct), tt) {
|
|
1108
|
+
On(o, Rt, Ae) && B(!0);
|
|
1109
|
+
const Mn = lt && lt(), [we] = dt = V(d), [Se] = ut = x(d), xe = Oo(c), Ce = C && rs(p()), Wo = {
|
|
1110
1110
|
w: f(Se.w + we.w),
|
|
1111
1111
|
h: f(Se.h + we.h)
|
|
1112
|
-
},
|
|
1112
|
+
}, Ln = {
|
|
1113
1113
|
w: f((Ce ? Ce.w : xe.w + f(xe.w - Se.w)) + we.w),
|
|
1114
1114
|
h: f((Ce ? Ce.h : xe.h + f(xe.h - Se.h)) + we.h)
|
|
1115
1115
|
};
|
|
1116
|
-
|
|
1116
|
+
Mn && Mn(), oe = Z(Ln), Pt = R(D(Wo, Ln), d);
|
|
1117
1117
|
}
|
|
1118
1118
|
const [pe, ye] = oe, [Ft, se] = Pt, [We, Ue] = ut, [ve, Ke] = dt, [xt] = F({
|
|
1119
1119
|
x: Ft.w > 0,
|
|
1120
1120
|
y: Ft.h > 0
|
|
1121
|
-
}), he = at && St && (xt.x || xt.y) || at && xt.x && !xt.y || St && xt.y && !xt.x, Ye =
|
|
1122
|
-
let Ht =
|
|
1123
|
-
|
|
1121
|
+
}), he = at && St && (xt.x || xt.y) || at && xt.x && !xt.y || St && xt.y && !xt.x, Ye = m || N || _ || Ke || Ue || ye || se || pt || ft || tt || P && C, [ce] = y("update.flowDirectionStyles"), [me, qe] = Y(ce ? ce(c) || {} : v(), d), ge = N || J || qe || d, [re, le] = ge ? st(E(me, !!ce), d) : I();
|
|
1122
|
+
let Ht = W(xt, nt);
|
|
1123
|
+
B(!1), Ye && (H(Ht), Ht = Ds(c, xt), it && K && (K(Ht, We, ve), de(c, it(Ht))));
|
|
1124
1124
|
const [be, Bo] = et(Ht);
|
|
1125
|
-
return
|
|
1125
|
+
return De(o, Rt, Ae, he), De(s, fn, Ae, he), q(e, {
|
|
1126
1126
|
rn: be,
|
|
1127
1127
|
Vt: {
|
|
1128
1128
|
x: pe.w,
|
|
@@ -1176,29 +1176,29 @@ const Vo = (t, e, n) => {
|
|
|
1176
1176
|
y: !1
|
|
1177
1177
|
},
|
|
1178
1178
|
Tt: Ao()
|
|
1179
|
-
}, { dt: c, gt: r, V: a, St: l } = e, { P: u, M: i } =
|
|
1180
|
-
return [n, (
|
|
1181
|
-
const f = {}, S = p && gt(r),
|
|
1182
|
-
return G(
|
|
1183
|
-
q(f, j(
|
|
1184
|
-
}), At(r, S),
|
|
1179
|
+
}, { dt: c, gt: r, V: a, St: l } = e, { P: u, M: i } = kt(), p = !u && (i.x || i.y), g = [Zs(e), Xs(e, s), Js(e, s)];
|
|
1180
|
+
return [n, (C) => {
|
|
1181
|
+
const f = {}, S = p && gt(r), T = S && l();
|
|
1182
|
+
return G(g, (j) => {
|
|
1183
|
+
q(f, j(C, f) || {});
|
|
1184
|
+
}), At(r, S), T && T(), a || At(c, 0), f;
|
|
1185
1185
|
}, s, e, o];
|
|
1186
1186
|
}, Qs = (t, e, n, o) => {
|
|
1187
1187
|
let s = !1;
|
|
1188
1188
|
const c = {
|
|
1189
1189
|
Kt: !1,
|
|
1190
1190
|
pn: !1
|
|
1191
|
-
}, r = Qe(e, {}), [a, l, u, i, p] = Gs(t), [
|
|
1192
|
-
|
|
1193
|
-
}), [b, S, ,
|
|
1194
|
-
const { Kt:
|
|
1195
|
-
if (
|
|
1191
|
+
}, r = Qe(e, {}), [a, l, u, i, p] = Gs(t), [g, C, f] = js(i, u, r, (v) => {
|
|
1192
|
+
B({}, v);
|
|
1193
|
+
}), [b, S, , T] = Ys(t, e, c, f, u, i, o), j = (v) => yt(v).some((E) => !!v[E]), B = (v, E) => {
|
|
1194
|
+
const { Kt: D, pn: W } = c;
|
|
1195
|
+
if (W || D && s)
|
|
1196
1196
|
return !1;
|
|
1197
|
-
const { vn: H, It: V, zt: z } = v,
|
|
1198
|
-
Dt: Qe(e,
|
|
1199
|
-
vn:
|
|
1197
|
+
const { vn: H, It: V, zt: z } = v, x = H || {}, O = !!V || !s, R = {
|
|
1198
|
+
Dt: Qe(e, x, O),
|
|
1199
|
+
vn: x,
|
|
1200
1200
|
It: O
|
|
1201
|
-
}, $ =
|
|
1201
|
+
}, $ = E || C(q({}, R, {
|
|
1202
1202
|
zt: z
|
|
1203
1203
|
})), F = l(q({}, R, {
|
|
1204
1204
|
fn: f,
|
|
@@ -1208,20 +1208,20 @@ const Vo = (t, e, n) => {
|
|
|
1208
1208
|
Zt: $,
|
|
1209
1209
|
tn: F
|
|
1210
1210
|
}));
|
|
1211
|
-
const Z = j($), Q = j(F), et = Z || Q || !Sn(
|
|
1211
|
+
const Z = j($), Q = j(F), et = Z || Q || !Sn(x) || O;
|
|
1212
1212
|
return s = !0, et && n(v, {
|
|
1213
1213
|
Zt: $,
|
|
1214
1214
|
tn: F
|
|
1215
1215
|
}), et;
|
|
1216
1216
|
};
|
|
1217
1217
|
return [() => {
|
|
1218
|
-
const { an: v, gt:
|
|
1218
|
+
const { an: v, gt: E, St: D } = i, W = gt(v), H = [g(), a(), b(), () => {
|
|
1219
1219
|
c.pn = !0;
|
|
1220
|
-
}], V =
|
|
1221
|
-
return At(
|
|
1222
|
-
},
|
|
1223
|
-
const
|
|
1224
|
-
c.Kt = v, !v &&
|
|
1220
|
+
}], V = D();
|
|
1221
|
+
return At(E, W), V(), L(bt, H);
|
|
1222
|
+
}, B, (v) => {
|
|
1223
|
+
const E = c.Kt;
|
|
1224
|
+
c.Kt = v, !v && E !== v && B({
|
|
1225
1225
|
It: !0,
|
|
1226
1226
|
zt: !0
|
|
1227
1227
|
});
|
|
@@ -1237,29 +1237,29 @@ const Vo = (t, e, n) => {
|
|
|
1237
1237
|
bn: u
|
|
1238
1238
|
}), {
|
|
1239
1239
|
yn: i,
|
|
1240
|
-
wn:
|
|
1240
|
+
wn: T
|
|
1241
1241
|
}, p];
|
|
1242
|
-
},
|
|
1243
|
-
|
|
1242
|
+
}, kn = /* @__PURE__ */ new WeakMap(), tc = (t, e) => {
|
|
1243
|
+
kn.set(t, e);
|
|
1244
1244
|
}, ec = (t) => {
|
|
1245
|
-
|
|
1246
|
-
}, jo = (t) =>
|
|
1247
|
-
const { tt: o } =
|
|
1245
|
+
kn.delete(t);
|
|
1246
|
+
}, jo = (t) => kn.get(t), $t = (t, e, n) => {
|
|
1247
|
+
const { tt: o } = kt(), s = ke(t), c = s ? t : t.target, r = jo(c);
|
|
1248
1248
|
if (e && !r) {
|
|
1249
1249
|
const a = [], l = {}, u = (O) => {
|
|
1250
1250
|
const R = po(O), $ = ee(fs);
|
|
1251
1251
|
return $ ? $(R, !0) : R;
|
|
1252
|
-
}, i = q({}, o(), u(e)), [p,
|
|
1253
|
-
S(O, R),
|
|
1254
|
-
}, [j,
|
|
1255
|
-
const { _t: Z, Ct: Q, $t: et, xt: Y, Ht: st, ft: I } = $, { nn:
|
|
1256
|
-
|
|
1252
|
+
}, i = q({}, o(), u(e)), [p, g, C] = un(), [f, b, S] = un(n), T = (O, R) => {
|
|
1253
|
+
S(O, R), C(O, R);
|
|
1254
|
+
}, [j, B, v, E, D, W, H] = Qs(t, i, ({ vn: O, It: R }, { Zt: $, tn: F }) => {
|
|
1255
|
+
const { _t: Z, Ct: Q, $t: et, xt: Y, Ht: st, ft: I } = $, { nn: k, sn: A, en: y, cn: w } = F;
|
|
1256
|
+
T("updated", [x, {
|
|
1257
1257
|
updateHints: {
|
|
1258
1258
|
sizeChanged: !!Z,
|
|
1259
1259
|
directionChanged: !!Q,
|
|
1260
1260
|
heightIntrinsicChanged: !!et,
|
|
1261
|
-
overflowEdgeChanged: !!
|
|
1262
|
-
overflowAmountChanged: !!
|
|
1261
|
+
overflowEdgeChanged: !!k,
|
|
1262
|
+
overflowAmountChanged: !!A,
|
|
1263
1263
|
overflowStyleChanged: !!y,
|
|
1264
1264
|
scrollCoordinatesChanged: !!w,
|
|
1265
1265
|
contentMutation: !!Y,
|
|
@@ -1269,14 +1269,14 @@ const Vo = (t, e, n) => {
|
|
|
1269
1269
|
changedOptions: O || {},
|
|
1270
1270
|
force: !!R
|
|
1271
1271
|
}]);
|
|
1272
|
-
}, (O) =>
|
|
1273
|
-
const { gn: R } =
|
|
1274
|
-
$ || (ec(c), bt(a),
|
|
1275
|
-
},
|
|
1272
|
+
}, (O) => T("scroll", [x, O])), V = (O) => {
|
|
1273
|
+
const { gn: R } = D(), { pn: $ } = R;
|
|
1274
|
+
$ || (ec(c), bt(a), T("destroyed", [x, O]), g(), b());
|
|
1275
|
+
}, x = {
|
|
1276
1276
|
options(O, R) {
|
|
1277
1277
|
if (O) {
|
|
1278
1278
|
const $ = R ? o() : {}, F = zo(i, q($, u(O)));
|
|
1279
|
-
Sn(F) || (q(i, F),
|
|
1279
|
+
Sn(F) || (q(i, F), B({
|
|
1280
1280
|
vn: F
|
|
1281
1281
|
}));
|
|
1282
1282
|
}
|
|
@@ -1287,7 +1287,7 @@ const Vo = (t, e, n) => {
|
|
|
1287
1287
|
O && R && b(O, R);
|
|
1288
1288
|
},
|
|
1289
1289
|
state() {
|
|
1290
|
-
const { gn: O, hn: R, bn: $ } =
|
|
1290
|
+
const { gn: O, hn: R, bn: $ } = D(), { pn: F, Kt: Z } = O, { B: Q } = R, { Vt: et, Rt: Y, rn: st, j: I, ln: k, _n: A, Tt: y } = $;
|
|
1291
1291
|
return q({}, {
|
|
1292
1292
|
overflowEdge: et,
|
|
1293
1293
|
overflowAmount: Y,
|
|
@@ -1297,27 +1297,27 @@ const Vo = (t, e, n) => {
|
|
|
1297
1297
|
start: y.T,
|
|
1298
1298
|
end: y.k
|
|
1299
1299
|
},
|
|
1300
|
-
padding:
|
|
1301
|
-
paddingAbsolute:
|
|
1300
|
+
padding: k,
|
|
1301
|
+
paddingAbsolute: A,
|
|
1302
1302
|
directionRTL: Q,
|
|
1303
1303
|
sleeping: Z,
|
|
1304
1304
|
destroyed: F
|
|
1305
1305
|
});
|
|
1306
1306
|
},
|
|
1307
1307
|
elements() {
|
|
1308
|
-
const { dt: O, vt: R, ln: $, L: F, ht: Z, gt: Q, Qt: et } =
|
|
1309
|
-
const { kt: y, Pt: w, Lt: h } =
|
|
1308
|
+
const { dt: O, vt: R, ln: $, L: F, ht: Z, gt: Q, Qt: et } = W.yn, { jt: Y, Jt: st } = W.wn, I = (A) => {
|
|
1309
|
+
const { kt: y, Pt: w, Lt: h } = A;
|
|
1310
1310
|
return {
|
|
1311
1311
|
scrollbar: h,
|
|
1312
1312
|
track: w,
|
|
1313
1313
|
handle: y
|
|
1314
1314
|
};
|
|
1315
|
-
},
|
|
1316
|
-
const { Xt: y, Yt: w } =
|
|
1315
|
+
}, k = (A) => {
|
|
1316
|
+
const { Xt: y, Yt: w } = A, h = I(y[0]);
|
|
1317
1317
|
return q({}, h, {
|
|
1318
1318
|
clone: () => {
|
|
1319
1319
|
const d = I(w());
|
|
1320
|
-
return
|
|
1320
|
+
return E(), d;
|
|
1321
1321
|
}
|
|
1322
1322
|
});
|
|
1323
1323
|
};
|
|
@@ -1329,24 +1329,24 @@ const Vo = (t, e, n) => {
|
|
|
1329
1329
|
content: Z || F,
|
|
1330
1330
|
scrollOffsetElement: Q,
|
|
1331
1331
|
scrollEventElement: et,
|
|
1332
|
-
scrollbarHorizontal:
|
|
1333
|
-
scrollbarVertical:
|
|
1332
|
+
scrollbarHorizontal: k(Y),
|
|
1333
|
+
scrollbarVertical: k(st)
|
|
1334
1334
|
});
|
|
1335
1335
|
},
|
|
1336
|
-
update: (O) =>
|
|
1336
|
+
update: (O) => B({
|
|
1337
1337
|
It: O,
|
|
1338
1338
|
zt: !0
|
|
1339
1339
|
}),
|
|
1340
|
-
destroy:
|
|
1340
|
+
destroy: L(V, !1),
|
|
1341
1341
|
sleep: v,
|
|
1342
1342
|
plugin: (O) => l[yt(O)[0]]
|
|
1343
1343
|
};
|
|
1344
|
-
return rt(a, [H]), tc(c,
|
|
1344
|
+
return rt(a, [H]), tc(c, x), Mo(Io, $t, [x, p, l]), Ws(W.yn.bt, !s && t.cancel) ? (V(!0), x) : (rt(a, j()), T("initialized", [x]), x.update(), x);
|
|
1345
1345
|
}
|
|
1346
1346
|
return r;
|
|
1347
1347
|
};
|
|
1348
1348
|
$t.plugin = (t) => {
|
|
1349
|
-
const e = Ct(t), n = e ? t : [t], o = n.map((s) =>
|
|
1349
|
+
const e = Ct(t), n = e ? t : [t], o = n.map((s) => Mo(s, $t)[0]);
|
|
1350
1350
|
return as(n), e ? o : o[0];
|
|
1351
1351
|
};
|
|
1352
1352
|
$t.valid = (t) => {
|
|
@@ -1354,7 +1354,7 @@ $t.valid = (t) => {
|
|
|
1354
1354
|
return ae(n) && !!jo(n.target);
|
|
1355
1355
|
};
|
|
1356
1356
|
$t.env = () => {
|
|
1357
|
-
const { U: t, M: e, P: n, J: o, ot: s, st: c, K: r, Z: a, tt: l, nt: u } =
|
|
1357
|
+
const { U: t, M: e, P: n, J: o, ot: s, st: c, K: r, Z: a, tt: l, nt: u } = kt();
|
|
1358
1358
|
return q({}, {
|
|
1359
1359
|
scrollbarsSize: t,
|
|
1360
1360
|
scrollbarsOverlaid: e,
|
|
@@ -1413,20 +1413,20 @@ const nc = () => {
|
|
|
1413
1413
|
const p = r.current;
|
|
1414
1414
|
if ($t.valid(p))
|
|
1415
1415
|
return;
|
|
1416
|
-
const
|
|
1417
|
-
|
|
1416
|
+
const g = a.current, C = l.current || {}, f = u.current || {}, b = () => r.current = $t(i, C, f);
|
|
1417
|
+
g ? s(b, g) : b();
|
|
1418
1418
|
},
|
|
1419
1419
|
() => r.current
|
|
1420
1420
|
],
|
|
1421
1421
|
[]
|
|
1422
1422
|
);
|
|
1423
1423
|
}, sc = (t, e) => {
|
|
1424
|
-
const { element: n = "div", options: o, events: s, defer: c, children: r, ...a } = t, l = n, u = jt(null), i = jt(null), [p,
|
|
1424
|
+
const { element: n = "div", options: o, events: s, defer: c, children: r, ...a } = t, l = n, u = jt(null), i = jt(null), [p, g] = oc({ options: o, events: s, defer: c });
|
|
1425
1425
|
return Ut(() => {
|
|
1426
|
-
const { current:
|
|
1427
|
-
if (!
|
|
1426
|
+
const { current: C } = u, { current: f } = i;
|
|
1427
|
+
if (!C)
|
|
1428
1428
|
return;
|
|
1429
|
-
const b =
|
|
1429
|
+
const b = C;
|
|
1430
1430
|
return p(
|
|
1431
1431
|
n === "body" ? {
|
|
1432
1432
|
target: b,
|
|
@@ -1442,59 +1442,66 @@ const nc = () => {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
), () => {
|
|
1444
1444
|
var S;
|
|
1445
|
-
return (S =
|
|
1445
|
+
return (S = g()) == null ? void 0 : S.destroy();
|
|
1446
1446
|
};
|
|
1447
1447
|
}, [p, n]), Yo(
|
|
1448
1448
|
e,
|
|
1449
1449
|
() => ({
|
|
1450
|
-
osInstance:
|
|
1450
|
+
osInstance: g,
|
|
1451
1451
|
getElement: () => u.current
|
|
1452
1452
|
}),
|
|
1453
1453
|
[]
|
|
1454
1454
|
), // @ts-ignore
|
|
1455
|
-
/* @__PURE__ */
|
|
1455
|
+
/* @__PURE__ */ Dn.createElement(l, { "data-overlayscrollbars-initialize": "", ref: u, ...a }, n === "body" ? r : /* @__PURE__ */ Dn.createElement("div", { "data-overlayscrollbars-contents": "", ref: i }, r));
|
|
1456
1456
|
}, cc = Ko(sc), ac = ({
|
|
1457
1457
|
children: t,
|
|
1458
1458
|
width: e = "100%",
|
|
1459
1459
|
height: n = "100%",
|
|
1460
1460
|
styles: o,
|
|
1461
1461
|
direction: s = "all",
|
|
1462
|
-
scrollColor: c
|
|
1462
|
+
scrollColor: c,
|
|
1463
|
+
autoHide: r = "never",
|
|
1464
|
+
autoHideDelay: a,
|
|
1465
|
+
fadeDurationMs: l
|
|
1463
1466
|
}) => {
|
|
1464
|
-
const
|
|
1467
|
+
const u = qo(), i = c || u.themeShadowA, p = {
|
|
1465
1468
|
width: e,
|
|
1466
1469
|
height: n,
|
|
1467
|
-
"--sc-handle-bg":
|
|
1470
|
+
"--sc-handle-bg": i,
|
|
1471
|
+
// Drives the scrollbar's opacity transition duration (see the className override below).
|
|
1472
|
+
// Defaults to OverlayScrollbars' own 0.15s so unconfigured callers are unchanged.
|
|
1473
|
+
"--sc-fade-duration": l != null ? `${l}ms` : "0.15s",
|
|
1468
1474
|
...o
|
|
1469
|
-
},
|
|
1475
|
+
}, f = {
|
|
1470
1476
|
overflow: {
|
|
1471
1477
|
x: s === "all" || s === "horizontal" ? "scroll" : "hidden",
|
|
1472
1478
|
y: s === "all" || s === "vertical" ? "scroll" : "hidden"
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1479
|
+
},
|
|
1480
|
+
scrollbars: { autoHide: r, autoHideDelay: a }
|
|
1481
|
+
}, b = jt(null);
|
|
1475
1482
|
return Ut(() => {
|
|
1476
|
-
var
|
|
1483
|
+
var j;
|
|
1477
1484
|
if (s !== "horizontal") return;
|
|
1478
|
-
const
|
|
1479
|
-
if (!
|
|
1480
|
-
const
|
|
1481
|
-
var
|
|
1482
|
-
if (
|
|
1483
|
-
const
|
|
1484
|
-
if (!
|
|
1485
|
-
|
|
1486
|
-
const
|
|
1487
|
-
|
|
1485
|
+
const S = (j = b.current) == null ? void 0 : j.getElement();
|
|
1486
|
+
if (!S) return;
|
|
1487
|
+
const T = (B) => {
|
|
1488
|
+
var D, W;
|
|
1489
|
+
if (B.deltaY === 0) return;
|
|
1490
|
+
const v = (W = (D = b.current) == null ? void 0 : D.osInstance()) == null ? void 0 : W.elements().scrollOffsetElement;
|
|
1491
|
+
if (!v || v.scrollWidth <= v.clientWidth) return;
|
|
1492
|
+
B.preventDefault();
|
|
1493
|
+
const E = B.deltaMode === 1 ? B.deltaY * 16 : B.deltaY;
|
|
1494
|
+
v.scrollLeft += E;
|
|
1488
1495
|
};
|
|
1489
|
-
return
|
|
1496
|
+
return S.addEventListener("wheel", T, { capture: !0, passive: !1 }), () => S.removeEventListener("wheel", T, { capture: !0 });
|
|
1490
1497
|
}, [s]), /* @__PURE__ */ Uo(
|
|
1491
1498
|
cc,
|
|
1492
1499
|
{
|
|
1493
|
-
ref:
|
|
1500
|
+
ref: b,
|
|
1494
1501
|
defer: !0,
|
|
1495
|
-
className: "box-border [&_.os-scrollbar]:[--os-handle-bg:var(--sc-handle-bg)]",
|
|
1496
|
-
style:
|
|
1497
|
-
options:
|
|
1502
|
+
className: "box-border [&_.os-scrollbar]:[--os-handle-bg:var(--sc-handle-bg)] [&_.os-scrollbar]:[transition-duration:var(--sc-fade-duration)]",
|
|
1503
|
+
style: p,
|
|
1504
|
+
options: f,
|
|
1498
1505
|
children: t
|
|
1499
1506
|
}
|
|
1500
1507
|
);
|