@das-fed/ui 6.4.0-test.5.1 → 6.4.0-test.6
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/package.json +5 -5
- package/packages/business-components/device-panel/index.js +37113 -36843
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/apis.d.ts +0 -2
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +16 -6
- package/packages/business-components/import-button/index.js +147 -141
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/process-configuration/i18n/index.d.ts +5 -0
- package/packages/business-components/process-configuration/index.js +2 -1
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-configuration/src/hooks/useDeleteDialog.d.ts +2 -3
- package/packages/business-components/process-form/index.js +64 -63
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-search-form/index.js +56 -56
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +539 -528
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/components/autocomplete/index.d.ts +13 -4
- package/packages/components/autocomplete/index.js +135 -122
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +2 -1
- package/packages/components/autocomplete/src/type.d.ts +4 -1
- package/packages/components/autocomplete/style.css +1 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/cascader/index.js +41 -40
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/date-picker/index.js +238 -237
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/edit-table/index.d.ts +9 -9
- package/packages/components/edit-table/index.js +2010 -1658
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/src/hooks/use-validator.d.ts +9 -3
- package/packages/components/edit-table/src/index.vue.d.ts +1 -1
- package/packages/components/edit-table/src/type.d.ts +13 -0
- package/packages/components/edit-table/src/utils.d.ts +9 -5
- package/packages/components/edit-table/style.css +1 -1
- package/packages/components/edit-table/style.css.gz +0 -0
- package/packages/components/form-item/index.js +3 -3
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/input/index.js +103 -102
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/index.js +18 -18
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-number/index.js +63 -63
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/src/App.vue.d.ts +1 -3
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/map/index.js +388 -385
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +680 -606
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +5 -0
- package/packages/components/search-form/index.js +44 -43
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.js +213 -213
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-list/index.d.ts +23 -3
- package/packages/components/select-list/index.js +599 -565
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/select-list/src/Index.vue.d.ts +9 -1
- package/packages/components/select-list/src/hooks/use-select-list.d.ts +2 -0
- package/packages/components/select-list/src/type.d.ts +22 -4
- package/packages/components/select-list/style.css +1 -1
- package/packages/components/select-list/style.css.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +3 -3
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +42 -42
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +0 -20
- package/packages/components/table/index.js +0 -4
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/text-tooltip/index.js +660 -651
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/text-tooltip/src/type.d.ts +1 -62
- package/packages/components/tree/index.js +222 -222
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/type.d.ts +1 -0
- package/packages/components/tree-select/index.js +374 -345
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +1 -0
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +2 -1
- package/packages/components/tree-select/src/type.d.ts +3 -0
- package/packages/components/tree-select/style.css +1 -1
- package/packages/components/tree-select/style.css.gz +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/text-tooltip/style.css';
|
|
2
|
-
import { createStyle as
|
|
3
|
-
import { getVarValue as Tt, getVar as
|
|
4
|
-
import { ref as
|
|
5
|
-
import { useZIndex as
|
|
2
|
+
import { createStyle as Ln } from "@das-fed/utils/style";
|
|
3
|
+
import { getVarValue as Tt, getVar as kn, setThemeRule as Dn } from "@das-fed/web/packages/theme/index";
|
|
4
|
+
import { ref as no } from "vue";
|
|
5
|
+
import { useZIndex as In } from "@das-fed/utils/hooks/popup-manager/use-zindex";
|
|
6
6
|
/*!
|
|
7
7
|
* OverlayScrollbars
|
|
8
8
|
* Version: 2.6.1
|
|
@@ -15,16 +15,16 @@ import { useZIndex as Dn } from "@das-fed/utils/hooks/popup-manager/use-zindex";
|
|
|
15
15
|
const xt = (t, e) => {
|
|
16
16
|
const { o, u: n, _: s } = t;
|
|
17
17
|
let c = o, r;
|
|
18
|
-
const l = (
|
|
19
|
-
const g = c,
|
|
20
|
-
return (
|
|
18
|
+
const l = (a, d) => {
|
|
19
|
+
const g = c, O = a, H = d || (n ? !n(g, O) : g !== O);
|
|
20
|
+
return (H || s) && (c = O, r = g), [c, H, r];
|
|
21
21
|
};
|
|
22
|
-
return [e ? (
|
|
23
|
-
},
|
|
22
|
+
return [e ? (a) => l(e(c, r), a) : l, (a) => [c, !!a, r]];
|
|
23
|
+
}, so = typeof window < "u", ht = so ? window : {}, he = Math.max, Rn = Math.min, Fe = Math.round, Bo = ht.cancelAnimationFrame, Fo = ht.requestAnimationFrame, Ue = ht.setTimeout, je = ht.clearTimeout, Ee = (t) => typeof ht[t] < "u" ? ht[t] : void 0, Pn = Ee("MutationObserver"), yo = Ee("IntersectionObserver"), ye = Ee("ResizeObserver"), We = Ee("ScrollTimeline"), Uo = so && Node.ELEMENT_NODE, { toString: Mn, hasOwnProperty: Ne } = Object.prototype, Nn = /^\[object (.+)\]$/, ue = (t) => t === void 0, Te = (t) => t === null, Vn = (t) => ue(t) || Te(t) ? `${t}` : Mn.call(t).replace(Nn, "$1").toLowerCase(), Ot = (t) => typeof t == "number", Oe = (t) => typeof t == "string", jo = (t) => typeof t == "boolean", $t = (t) => typeof t == "function", St = (t) => Array.isArray(t), ie = (t) => typeof t == "object" && !St(t) && !Te(t), $e = (t) => {
|
|
24
24
|
const e = !!t && t.length, o = Ot(e) && e > -1 && e % 1 == 0;
|
|
25
25
|
return St(t) || !$t(t) && o ? e > 0 && ie(t) ? e - 1 in t : !0 : !1;
|
|
26
26
|
}, xe = (t) => {
|
|
27
|
-
if (!t || !ie(t) ||
|
|
27
|
+
if (!t || !ie(t) || Vn(t) !== "object")
|
|
28
28
|
return !1;
|
|
29
29
|
let e;
|
|
30
30
|
const o = "constructor", n = t[o], s = n && n.prototype, c = Ne.call(t, o), r = s && Ne.call(s, "isPrototypeOf");
|
|
@@ -40,26 +40,26 @@ const xt = (t, e) => {
|
|
|
40
40
|
const e = Element;
|
|
41
41
|
return t ? e ? t instanceof e : t.nodeType === Uo : !1;
|
|
42
42
|
};
|
|
43
|
-
function
|
|
43
|
+
function G(t, e) {
|
|
44
44
|
if ($e(t))
|
|
45
45
|
for (let o = 0; o < t.length && e(t[o], o, t) !== !1; o++)
|
|
46
46
|
;
|
|
47
|
-
else t &&
|
|
47
|
+
else t && G(Object.keys(t), (o) => e(t[o], o, t));
|
|
48
48
|
return t;
|
|
49
49
|
}
|
|
50
|
-
const He = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), K = (t, e, o) => (!Oe(e) && $e(e) ? Array.prototype.push.apply(t, e) : t.push(e), t),
|
|
51
|
-
|
|
52
|
-
}, Xo = "paddingTop", Go = "paddingRight", Yo = "paddingLeft", qo = "paddingBottom", Zo = "marginLeft", Ko = "marginRight", Jo = "marginBottom", Le = "overflowX", ke = "overflowY",
|
|
50
|
+
const He = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), K = (t, e, o) => (!Oe(e) && $e(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), Ut = (t) => Array.from(t || []), Wo = (t) => St(t) ? t : [t], Xe = (t) => !!t && !t.length, xo = (t) => Ut(new Set(t)), bt = (t, e, o) => {
|
|
51
|
+
G(t, (s) => s && s.apply(void 0, e || [])), !o && (t.length = 0);
|
|
52
|
+
}, Xo = "paddingTop", Go = "paddingRight", Yo = "paddingLeft", qo = "paddingBottom", Zo = "marginLeft", Ko = "marginRight", Jo = "marginBottom", Le = "overflowX", ke = "overflowY", Zt = "width", Kt = "height", Jt = "hidden", Qo = "visible", co = (t, e, o, n) => {
|
|
53
53
|
if (t && e) {
|
|
54
54
|
let s = !0;
|
|
55
|
-
return
|
|
55
|
+
return G(o, (c) => {
|
|
56
56
|
const r = t[c], l = e[c];
|
|
57
57
|
r !== l && (s = !1);
|
|
58
58
|
}), s;
|
|
59
59
|
}
|
|
60
60
|
return !1;
|
|
61
|
-
}, tn = (t, e) =>
|
|
62
|
-
},
|
|
61
|
+
}, tn = (t, e) => co(t, e, ["w", "h"]), en = (t, e) => co(t, e, ["x", "y"]), _n = (t, e) => co(t, e, ["t", "r", "b", "l"]), wt = () => {
|
|
62
|
+
}, N = (t, ...e) => t.bind(0, ...e), Dt = (t) => {
|
|
63
63
|
let e;
|
|
64
64
|
const o = t ? Ue : Fo, n = t ? je : Bo;
|
|
65
65
|
return [(s) => {
|
|
@@ -67,107 +67,107 @@ const He = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), K = (t, e, o
|
|
|
67
67
|
}, () => n(e)];
|
|
68
68
|
}, on = (t, e) => {
|
|
69
69
|
let o, n, s, c = wt;
|
|
70
|
-
const { v: r, p: l, S:
|
|
71
|
-
c(), je(o), o = n = void 0, c = wt, t.apply(this,
|
|
72
|
-
},
|
|
73
|
-
c !== wt && u(
|
|
70
|
+
const { v: r, p: l, S: i } = e || {}, u = function(H) {
|
|
71
|
+
c(), je(o), o = n = void 0, c = wt, t.apply(this, H);
|
|
72
|
+
}, a = (O) => i && n ? i(n, O) : O, d = () => {
|
|
73
|
+
c !== wt && u(a(s) || s);
|
|
74
74
|
}, g = function() {
|
|
75
|
-
const
|
|
76
|
-
if (Ot(
|
|
77
|
-
const
|
|
75
|
+
const H = Ut(arguments), L = $t(r) ? r() : r;
|
|
76
|
+
if (Ot(L) && L >= 0) {
|
|
77
|
+
const k = $t(l) ? l() : l, C = Ot(k) && k >= 0, b = L > 0 ? Ue : Fo, E = L > 0 ? je : Bo, I = a(H) || H, _ = u.bind(0, I);
|
|
78
78
|
c();
|
|
79
|
-
const
|
|
80
|
-
c = () =>
|
|
79
|
+
const z = b(_, L);
|
|
80
|
+
c = () => E(z), C && !o && (o = Ue(d, k)), n = s = I;
|
|
81
81
|
} else
|
|
82
|
-
u(
|
|
82
|
+
u(H);
|
|
83
83
|
};
|
|
84
84
|
return g.m = d, g;
|
|
85
85
|
}, nn = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Ht = (t) => t ? Object.keys(t) : [], W = (t, e, o, n, s, c, r) => {
|
|
86
86
|
const l = [e, o, n, s, c, r];
|
|
87
|
-
return (typeof t != "object" || Te(t)) && !$t(t) && (t = {}),
|
|
88
|
-
|
|
89
|
-
const d = a
|
|
87
|
+
return (typeof t != "object" || Te(t)) && !$t(t) && (t = {}), G(l, (i) => {
|
|
88
|
+
G(i, (u, a) => {
|
|
89
|
+
const d = i[a];
|
|
90
90
|
if (t === d)
|
|
91
91
|
return !0;
|
|
92
92
|
const g = St(d);
|
|
93
93
|
if (d && xe(d)) {
|
|
94
|
-
const
|
|
95
|
-
let
|
|
96
|
-
g && !St(
|
|
94
|
+
const O = t[a];
|
|
95
|
+
let H = O;
|
|
96
|
+
g && !St(O) ? H = [] : !g && !xe(O) && (H = {}), t[a] = W(H, d);
|
|
97
97
|
} else
|
|
98
|
-
t[
|
|
98
|
+
t[a] = g ? d.slice() : d;
|
|
99
99
|
});
|
|
100
100
|
}), t;
|
|
101
|
-
}, sn = (t, e) =>
|
|
101
|
+
}, sn = (t, e) => G(W({}, t), (o, n, s) => {
|
|
102
102
|
o === void 0 ? delete s[n] : o && xe(o) && (s[n] = sn(o));
|
|
103
|
-
}),
|
|
103
|
+
}), ro = (t) => {
|
|
104
104
|
for (const e in t)
|
|
105
105
|
return !1;
|
|
106
106
|
return !0;
|
|
107
|
-
}, Ge = (t, e, o) => he(t,
|
|
108
|
-
|
|
107
|
+
}, Ge = (t, e, o) => he(t, Rn(e, o)), zt = (t) => Ut(new Set((St(t) ? t : (t || "").split(" ")).filter((e) => e))), De = (t, e) => t && t.getAttribute(e), yt = (t, e, o) => {
|
|
108
|
+
G(zt(e), (n) => {
|
|
109
109
|
t && t.setAttribute(n, o || "");
|
|
110
110
|
});
|
|
111
111
|
}, Et = (t, e) => {
|
|
112
|
-
|
|
112
|
+
G(zt(e), (o) => t && t.removeAttribute(o));
|
|
113
113
|
}, Ie = (t, e) => {
|
|
114
|
-
const o = zt(De(t, e)), n =
|
|
114
|
+
const o = zt(De(t, e)), n = N(yt, t, e), s = (c, r) => {
|
|
115
115
|
const l = new Set(o);
|
|
116
|
-
return
|
|
116
|
+
return G(zt(c), (i) => l[r](i)), Ut(l).join(" ");
|
|
117
117
|
};
|
|
118
118
|
return {
|
|
119
119
|
O: (c) => n(s(c, "delete")),
|
|
120
120
|
$: (c) => n(s(c, "add")),
|
|
121
121
|
C: (c) => {
|
|
122
122
|
const r = zt(c);
|
|
123
|
-
return r.reduce((l,
|
|
123
|
+
return r.reduce((l, i) => l && o.includes(i), r.length > 0);
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
}, cn = (t, e, o) => {
|
|
127
127
|
Ie(t, e).O(o);
|
|
128
|
-
}, ae = (t, e, o) => (Ie(t, e).$(o),
|
|
128
|
+
}, ae = (t, e, o) => (Ie(t, e).$(o), N(cn, t, e, o)), be = (t, e, o, n) => {
|
|
129
129
|
(n ? ae : cn)(t, e, o);
|
|
130
|
-
},
|
|
130
|
+
}, zn = (t, e, o) => Ie(t, e).C(o), rn = (t) => Ie(t, "class"), lo = (t, e) => {
|
|
131
131
|
rn(t).O(e);
|
|
132
|
-
}, we = (t, e) => (rn(t).$(e),
|
|
132
|
+
}, we = (t, e) => (rn(t).$(e), N(lo, t, e)), wo = so && Element.prototype, ln = (t, e) => {
|
|
133
133
|
const o = [], n = e ? Ae(e) && e : document;
|
|
134
134
|
return n ? K(o, n.querySelectorAll(t)) : o;
|
|
135
|
-
},
|
|
135
|
+
}, Bn = (t, e) => {
|
|
136
136
|
const o = e ? Ae(e) && e : document;
|
|
137
137
|
return o ? o.querySelector(t) : null;
|
|
138
|
-
}, Ye = (t, e) => Ae(t) ? (
|
|
139
|
-
const n =
|
|
140
|
-
return n && s ? n === t || s === t || c &&
|
|
138
|
+
}, Ye = (t, e) => Ae(t) ? (wo.matches || wo.msMatchesSelector).call(t, e) : !1, qe = (t) => t ? Ut(t.childNodes) : [], Qt = (t) => t && t.parentElement, Xt = (t, e) => Ae(t) && t.closest(e), Fn = (t, e, o) => {
|
|
139
|
+
const n = Xt(t, e), s = t && Bn(o, n), c = Xt(s, e) === n;
|
|
140
|
+
return n && s ? n === t || s === t || c && Xt(Xt(t, o), e) !== n : !1;
|
|
141
141
|
}, Pt = (t) => {
|
|
142
142
|
if ($e(t))
|
|
143
|
-
|
|
143
|
+
G(Ut(t), (e) => Pt(e));
|
|
144
144
|
else if (t) {
|
|
145
|
-
const e =
|
|
145
|
+
const e = Qt(t);
|
|
146
146
|
e && e.removeChild(t);
|
|
147
147
|
}
|
|
148
148
|
}, an = (t, e, o) => {
|
|
149
149
|
if (o && t) {
|
|
150
150
|
let n = e, s;
|
|
151
|
-
return $e(o) ? (s = document.createDocumentFragment(),
|
|
151
|
+
return $e(o) ? (s = document.createDocumentFragment(), G(o, (c) => {
|
|
152
152
|
c === n && (n = c.previousSibling), s.appendChild(c);
|
|
153
153
|
})) : s = o, e && (n ? n !== e && (n = n.nextSibling) : n = t.firstChild), t.insertBefore(s, n || null), () => Pt(o);
|
|
154
154
|
}
|
|
155
155
|
return wt;
|
|
156
|
-
}, gt = (t, e) => an(t, null, e),
|
|
156
|
+
}, gt = (t, e) => an(t, null, e), So = (t, e) => an(Qt(t), t && t.nextSibling, e), Gt = (t) => {
|
|
157
157
|
const e = document.createElement("div");
|
|
158
158
|
return yt(e, "class", t), e;
|
|
159
159
|
}, un = (t) => {
|
|
160
|
-
const e =
|
|
161
|
-
return e.innerHTML = t.trim(),
|
|
162
|
-
},
|
|
160
|
+
const e = Gt();
|
|
161
|
+
return e.innerHTML = t.trim(), G(qe(e), (o) => Pt(o));
|
|
162
|
+
}, Un = /^--/, Co = (t, e) => t.getPropertyValue(e) || t[e] || "", io = (t) => {
|
|
163
163
|
const e = t || 0;
|
|
164
164
|
return isFinite(e) ? e : 0;
|
|
165
|
-
}, me = (t) =>
|
|
166
|
-
function
|
|
167
|
-
t &&
|
|
165
|
+
}, me = (t) => io(parseFloat(t || "")), Eo = (t) => `${(io(t) * 100).toFixed(3)}%`, Ze = (t) => `${io(t)}px`;
|
|
166
|
+
function te(t, e) {
|
|
167
|
+
t && G(e, (o, n) => {
|
|
168
168
|
try {
|
|
169
169
|
const s = t.style, c = Ot(o) ? Ze(o) : (o || "") + "";
|
|
170
|
-
|
|
170
|
+
Un.test(n) ? s.setProperty(n, c) : s[n] = c;
|
|
171
171
|
} catch {
|
|
172
172
|
}
|
|
173
173
|
});
|
|
@@ -177,75 +177,75 @@ function Bt(t, e, o) {
|
|
|
177
177
|
let s = n ? "" : {};
|
|
178
178
|
if (t) {
|
|
179
179
|
const c = ht.getComputedStyle(t, o) || t.style;
|
|
180
|
-
s = n ?
|
|
180
|
+
s = n ? Co(c, e) : e.reduce((r, l) => (r[l] = Co(c, l), r), s);
|
|
181
181
|
}
|
|
182
182
|
return s;
|
|
183
183
|
}
|
|
184
|
-
const Rt = (t) => Bt(t, "direction") === "rtl",
|
|
185
|
-
const n = e ? `${e}-` : "", s = o ? `-${o}` : "", c = `${n}top${s}`, r = `${n}right${s}`, l = `${n}bottom${s}`,
|
|
184
|
+
const Rt = (t) => Bt(t, "direction") === "rtl", To = (t, e, o) => {
|
|
185
|
+
const n = e ? `${e}-` : "", s = o ? `-${o}` : "", c = `${n}top${s}`, r = `${n}right${s}`, l = `${n}bottom${s}`, i = `${n}left${s}`, u = Bt(t, [c, r, l, i]);
|
|
186
186
|
return {
|
|
187
187
|
t: me(u[c]),
|
|
188
188
|
r: me(u[r]),
|
|
189
189
|
b: me(u[l]),
|
|
190
|
-
l: me(u[
|
|
190
|
+
l: me(u[i])
|
|
191
191
|
};
|
|
192
|
-
}, Ve = (t, e) => `translate${ie(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`}`,
|
|
192
|
+
}, Ve = (t, e) => `translate${ie(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`}`, jn = {
|
|
193
193
|
w: 0,
|
|
194
194
|
h: 0
|
|
195
195
|
}, Re = (t, e) => e ? {
|
|
196
196
|
w: e[`${t}Width`],
|
|
197
197
|
h: e[`${t}Height`]
|
|
198
|
-
} :
|
|
199
|
-
const e = parseFloat(Bt(t,
|
|
198
|
+
} : jn, Wn = (t) => Re("inner", t || ht), le = N(Re, "offset"), dn = N(Re, "client"), Ke = N(Re, "scroll"), ao = (t) => {
|
|
199
|
+
const e = parseFloat(Bt(t, Zt)) || 0, o = parseFloat(Bt(t, Kt)) || 0;
|
|
200
200
|
return {
|
|
201
201
|
w: e - Fe(e),
|
|
202
202
|
h: o - Fe(o)
|
|
203
203
|
};
|
|
204
|
-
},
|
|
204
|
+
}, Yt = (t) => t.getBoundingClientRect(), Je = (t) => !!(t && (t[Kt] || t[Zt])), fn = (t, e) => {
|
|
205
205
|
const o = Je(t);
|
|
206
206
|
return !Je(e) && o;
|
|
207
|
-
},
|
|
208
|
-
|
|
207
|
+
}, Oo = (t, e, o, n) => {
|
|
208
|
+
G(zt(e), (s) => {
|
|
209
209
|
t.removeEventListener(s, o, n);
|
|
210
210
|
});
|
|
211
211
|
}, ot = (t, e, o, n) => {
|
|
212
212
|
var s;
|
|
213
|
-
const c = (s = n && n.H) != null ? s : !0, r = n && n.I || !1, l = n && n.A || !1,
|
|
213
|
+
const c = (s = n && n.H) != null ? s : !0, r = n && n.I || !1, l = n && n.A || !1, i = {
|
|
214
214
|
passive: c,
|
|
215
215
|
capture: r
|
|
216
216
|
};
|
|
217
|
-
return
|
|
218
|
-
const
|
|
219
|
-
|
|
217
|
+
return N(bt, zt(e).map((u) => {
|
|
218
|
+
const a = l ? (d) => {
|
|
219
|
+
Oo(t, u, a, r), o(d);
|
|
220
220
|
} : o;
|
|
221
|
-
return t.addEventListener(u,
|
|
221
|
+
return t.addEventListener(u, a, i), N(Oo, t, u, a, r);
|
|
222
222
|
}));
|
|
223
|
-
},
|
|
223
|
+
}, uo = (t) => t.stopPropagation(), $o = (t) => t.preventDefault(), Xn = {
|
|
224
224
|
x: 0,
|
|
225
225
|
y: 0
|
|
226
226
|
}, _e = (t) => {
|
|
227
|
-
const e = t &&
|
|
227
|
+
const e = t && Yt(t);
|
|
228
228
|
return e ? {
|
|
229
229
|
x: e.left + ht.scrollX,
|
|
230
230
|
y: e.top + ht.scrollY
|
|
231
|
-
} :
|
|
232
|
-
}, Se = (t, e, o) => o ? o.n ? -t + 0 : o.i ? e - t : t : t,
|
|
231
|
+
} : Xn;
|
|
232
|
+
}, Se = (t, e, o) => o ? o.n ? -t + 0 : o.i ? e - t : t : t, Ao = (t, e) => [Se(0, t, e), Se(t, t, e)], Ho = (t, e, o) => Ge(0, 1, Se(t, e, o) / e || 0), Mt = (t, e) => {
|
|
233
233
|
const { x: o, y: n } = Ot(e) ? {
|
|
234
234
|
x: e,
|
|
235
235
|
y: e
|
|
236
236
|
} : e || {};
|
|
237
237
|
Ot(o) && (t.scrollLeft = o), Ot(n) && (t.scrollTop = n);
|
|
238
|
-
},
|
|
238
|
+
}, ee = (t) => ({
|
|
239
239
|
x: t.scrollLeft,
|
|
240
240
|
y: t.scrollTop
|
|
241
|
-
}),
|
|
242
|
-
|
|
241
|
+
}), Lo = (t, e) => {
|
|
242
|
+
G(Wo(e), t);
|
|
243
243
|
}, Qe = (t) => {
|
|
244
244
|
const e = /* @__PURE__ */ new Map(), o = (c, r) => {
|
|
245
245
|
if (c) {
|
|
246
246
|
const l = e.get(c);
|
|
247
|
-
|
|
248
|
-
l && l[
|
|
247
|
+
Lo((i) => {
|
|
248
|
+
l && l[i ? "delete" : "clear"](i);
|
|
249
249
|
}, r);
|
|
250
250
|
} else
|
|
251
251
|
e.forEach((l) => {
|
|
@@ -254,27 +254,27 @@ const Rt = (t) => Bt(t, "direction") === "rtl", Eo = (t, e, o) => {
|
|
|
254
254
|
}, n = (c, r) => {
|
|
255
255
|
if (Oe(c)) {
|
|
256
256
|
const u = e.get(c) || /* @__PURE__ */ new Set();
|
|
257
|
-
return e.set(c, u),
|
|
258
|
-
$t(
|
|
259
|
-
}, r),
|
|
257
|
+
return e.set(c, u), Lo((a) => {
|
|
258
|
+
$t(a) && u.add(a);
|
|
259
|
+
}, r), N(o, c, r);
|
|
260
260
|
}
|
|
261
261
|
jo(r) && r && o();
|
|
262
|
-
const l = Ht(c),
|
|
263
|
-
return
|
|
264
|
-
const
|
|
265
|
-
|
|
266
|
-
}),
|
|
262
|
+
const l = Ht(c), i = [];
|
|
263
|
+
return G(l, (u) => {
|
|
264
|
+
const a = c[u];
|
|
265
|
+
a && K(i, n(u, a));
|
|
266
|
+
}), N(bt, i);
|
|
267
267
|
}, s = (c, r) => {
|
|
268
|
-
|
|
268
|
+
G(Ut(e.get(c)), (l) => {
|
|
269
269
|
r && !Xe(r) ? l.apply(0, r) : l();
|
|
270
270
|
});
|
|
271
271
|
};
|
|
272
272
|
return n(t || {}), [n, o, s];
|
|
273
|
-
},
|
|
273
|
+
}, ko = (t) => JSON.stringify(t, (e, o) => {
|
|
274
274
|
if ($t(o))
|
|
275
275
|
throw 0;
|
|
276
276
|
return o;
|
|
277
|
-
}),
|
|
277
|
+
}), Do = (t, e) => t ? `${e}`.split(".").reduce((o, n) => o && nn(o, n) ? o[n] : void 0, t) : void 0, Gn = {
|
|
278
278
|
paddingAbsolute: !1,
|
|
279
279
|
showNativeOverlaidScrollbars: !1,
|
|
280
280
|
update: {
|
|
@@ -299,36 +299,36 @@ const Rt = (t) => Bt(t, "direction") === "rtl", Eo = (t, e, o) => {
|
|
|
299
299
|
}
|
|
300
300
|
}, pn = (t, e) => {
|
|
301
301
|
const o = {}, n = At(Ht(e), Ht(t));
|
|
302
|
-
return
|
|
302
|
+
return G(n, (s) => {
|
|
303
303
|
const c = t[s], r = e[s];
|
|
304
304
|
if (ie(c) && ie(r))
|
|
305
|
-
W(o[s] = {}, pn(c, r)),
|
|
305
|
+
W(o[s] = {}, pn(c, r)), ro(o[s]) && delete o[s];
|
|
306
306
|
else if (nn(e, s) && r !== c) {
|
|
307
307
|
let l = !0;
|
|
308
308
|
if (St(c) || St(r))
|
|
309
309
|
try {
|
|
310
|
-
|
|
310
|
+
ko(c) === ko(r) && (l = !1);
|
|
311
311
|
} catch {
|
|
312
312
|
}
|
|
313
313
|
l && (o[s] = r);
|
|
314
314
|
}
|
|
315
315
|
}), o;
|
|
316
|
-
},
|
|
317
|
-
|
|
316
|
+
}, Io = (t, e, o) => (n) => [Do(t, n), o || Do(e, n) !== void 0], de = "data-overlayscrollbars", mn = "os-environment", Yn = `${mn}-scrollbar-hidden`, ze = `${de}-initialize`, mt = de, gn = `${mt}-overflow-x`, hn = `${mt}-overflow-y`, bn = "overflowVisible", qn = "scrollbarPressed", to = "updating", Zn = "body", It = `${de}-viewport`, Kn = "arrange", vn = "scrollbarHidden", qt = bn, eo = `${de}-padding`, Jn = qt, Ro = `${de}-content`, fo = "os-size-observer", Qn = `${fo}-appear`, ts = `${fo}-listener`, es = "os-trinsic-observer", os = "os-theme-none", ft = "os-scrollbar", ns = `${ft}-rtl`, ss = `${ft}-horizontal`, cs = `${ft}-vertical`, yn = `${ft}-track`, po = `${ft}-handle`, rs = `${ft}-visible`, ls = `${ft}-cornerless`, Po = `${ft}-interaction`, Mo = `${ft}-unusable`, oo = `${ft}-auto-hide`, No = `${oo}-hidden`, Vo = `${ft}-wheel`, is = `${yn}-interactive`, as = `${po}-interactive`, xn = {}, wn = {}, us = (t) => {
|
|
317
|
+
G(t, (e) => G(e, (o, n) => {
|
|
318
318
|
xn[n] = e[n];
|
|
319
319
|
}));
|
|
320
320
|
}, Sn = (t, e, o) => Ht(t).map((n) => {
|
|
321
|
-
const { static: s, instance: c } = t[n], [r, l,
|
|
321
|
+
const { static: s, instance: c } = t[n], [r, l, i] = o || [], u = o ? c : s;
|
|
322
322
|
if (u) {
|
|
323
|
-
const
|
|
324
|
-
return (
|
|
323
|
+
const a = o ? u(r, l, e) : u(e);
|
|
324
|
+
return (i || wn)[n] = a;
|
|
325
325
|
}
|
|
326
|
-
}), oe = (t) => wn[t],
|
|
326
|
+
}), oe = (t) => wn[t], ds = "__osOptionsValidationPlugin", fs = "__osSizeObserverPlugin", ps = (t, e) => {
|
|
327
327
|
const { T: o } = e, [n, s] = t("showNativeOverlaidScrollbars");
|
|
328
328
|
return [n && o.x && o.y, s];
|
|
329
329
|
}, Ce = (t) => t.indexOf(Qo) === 0, Cn = (t, e) => {
|
|
330
|
-
const { D: o } = t, n = (
|
|
331
|
-
const u = Bt(o,
|
|
330
|
+
const { D: o } = t, n = (i) => {
|
|
331
|
+
const u = Bt(o, i), d = (e ? e[i] : u) === "scroll";
|
|
332
332
|
return [u, d];
|
|
333
333
|
}, [s, c] = n(Le), [r, l] = n(ke);
|
|
334
334
|
return {
|
|
@@ -341,54 +341,54 @@ const Rt = (t) => Bt(t, "direction") === "rtl", Eo = (t, e, o) => {
|
|
|
341
341
|
y: l
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
|
-
},
|
|
345
|
-
const s = e.x || e.y, c = (
|
|
346
|
-
const g = Ce(
|
|
347
|
-
return [d && !g ?
|
|
348
|
-
}, [r, l] = c(o.x, e.x), [
|
|
349
|
-
return n[Le] = l &&
|
|
350
|
-
},
|
|
344
|
+
}, ms = (t, e, o, n) => {
|
|
345
|
+
const s = e.x || e.y, c = (a, d) => {
|
|
346
|
+
const g = Ce(a), O = g && s ? "hidden" : "", H = d && g && a.replace(`${Qo}-`, "") || O;
|
|
347
|
+
return [d && !g ? a : "", Ce(H) ? "hidden" : H];
|
|
348
|
+
}, [r, l] = c(o.x, e.x), [i, u] = c(o.y, e.y);
|
|
349
|
+
return n[Le] = l && i ? l : r, n[ke] = u && r ? u : i, Cn(t, n);
|
|
350
|
+
}, mo = "__osScrollbarsHidingPlugin", gs = "__osClickScrollPlugin";
|
|
351
351
|
let Be;
|
|
352
|
-
const
|
|
353
|
-
const t = (b,
|
|
354
|
-
gt(b,
|
|
355
|
-
const _ = dn(
|
|
356
|
-
return I && Pt(
|
|
357
|
-
x:
|
|
358
|
-
y:
|
|
352
|
+
const hs = () => {
|
|
353
|
+
const t = (b, E, D, I) => {
|
|
354
|
+
gt(b, E);
|
|
355
|
+
const _ = dn(E), z = le(E), T = ao(D);
|
|
356
|
+
return I && Pt(E), {
|
|
357
|
+
x: z.h - _.h + T.h,
|
|
358
|
+
y: z.w - _.w + T.w
|
|
359
359
|
};
|
|
360
360
|
}, e = (b) => {
|
|
361
|
-
let
|
|
362
|
-
const
|
|
361
|
+
let E = !1;
|
|
362
|
+
const D = we(b, Yn);
|
|
363
363
|
try {
|
|
364
|
-
|
|
364
|
+
E = Bt(b, "scrollbar-width") === "none" || Bt(b, "display", "::-webkit-scrollbar") === "none";
|
|
365
365
|
} catch {
|
|
366
366
|
}
|
|
367
|
-
return
|
|
368
|
-
}, o = (b,
|
|
369
|
-
|
|
370
|
-
[Le]:
|
|
371
|
-
[ke]:
|
|
367
|
+
return D(), E;
|
|
368
|
+
}, o = (b, E) => {
|
|
369
|
+
te(b, {
|
|
370
|
+
[Le]: Jt,
|
|
371
|
+
[ke]: Jt,
|
|
372
372
|
direction: "rtl"
|
|
373
373
|
}), Mt(b, {
|
|
374
374
|
x: 0
|
|
375
375
|
});
|
|
376
|
-
const
|
|
376
|
+
const D = _e(b), I = _e(E);
|
|
377
377
|
Mt(b, {
|
|
378
378
|
x: -999
|
|
379
379
|
});
|
|
380
|
-
const _ = _e(
|
|
380
|
+
const _ = _e(E);
|
|
381
381
|
return {
|
|
382
|
-
i:
|
|
382
|
+
i: D.x === I.x,
|
|
383
383
|
n: I.x !== _.x
|
|
384
384
|
};
|
|
385
|
-
}, { body: n } = document, c = un(`<div class="${mn}"><div></div></div>`)[0], r = c.firstChild, [l, ,
|
|
385
|
+
}, { body: n } = document, c = un(`<div class="${mn}"><div></div></div>`)[0], r = c.firstChild, [l, , i] = Qe(), [u, a] = xt({
|
|
386
386
|
o: t(n, c, r),
|
|
387
387
|
u: en
|
|
388
|
-
},
|
|
388
|
+
}, N(t, n, c, r, !0)), [d] = a(), g = e(c), O = {
|
|
389
389
|
x: d.x === 0,
|
|
390
390
|
y: d.y === 0
|
|
391
|
-
},
|
|
391
|
+
}, H = {
|
|
392
392
|
elements: {
|
|
393
393
|
host: null,
|
|
394
394
|
padding: !g,
|
|
@@ -402,406 +402,406 @@ const gs = () => {
|
|
|
402
402
|
nativeScrollbarsOverlaid: !1,
|
|
403
403
|
body: null
|
|
404
404
|
}
|
|
405
|
-
},
|
|
405
|
+
}, L = W({}, Gn), P = N(W, {}, L), k = N(W, {}, H), C = {
|
|
406
406
|
P: d,
|
|
407
|
-
T:
|
|
407
|
+
T: O,
|
|
408
408
|
L: g,
|
|
409
409
|
J: !!We,
|
|
410
410
|
K: o(c, r),
|
|
411
|
-
Z:
|
|
412
|
-
G:
|
|
413
|
-
tt: (b) => W(
|
|
414
|
-
nt:
|
|
415
|
-
ot: (b) => W(
|
|
416
|
-
st: W({},
|
|
417
|
-
et: W({},
|
|
411
|
+
Z: N(l, "r"),
|
|
412
|
+
G: k,
|
|
413
|
+
tt: (b) => W(H, b) && k(),
|
|
414
|
+
nt: P,
|
|
415
|
+
ot: (b) => W(L, b) && P(),
|
|
416
|
+
st: W({}, H),
|
|
417
|
+
et: W({}, L)
|
|
418
418
|
};
|
|
419
419
|
return Et(c, "style"), Pt(c), ht.addEventListener("resize", () => {
|
|
420
420
|
let b;
|
|
421
|
-
if (!g && (
|
|
422
|
-
const
|
|
423
|
-
b = !!(
|
|
421
|
+
if (!g && (!O.x || !O.y)) {
|
|
422
|
+
const E = oe(mo);
|
|
423
|
+
b = !!(E ? E.Y() : wt)(C, u);
|
|
424
424
|
}
|
|
425
|
-
|
|
426
|
-
}),
|
|
427
|
-
}, vt = () => (Be || (Be =
|
|
425
|
+
i("r", [b]);
|
|
426
|
+
}), C;
|
|
427
|
+
}, vt = () => (Be || (Be = hs()), Be), go = (t, e) => $t(e) ? e.apply(0, t) : e, bs = (t, e, o, n) => {
|
|
428
428
|
const s = ue(n) ? o : n;
|
|
429
|
-
return
|
|
429
|
+
return go(t, s) || e.apply(0, t);
|
|
430
430
|
}, En = (t, e, o, n) => {
|
|
431
|
-
const s = ue(n) ? o : n, c =
|
|
431
|
+
const s = ue(n) ? o : n, c = go(t, s);
|
|
432
432
|
return !!c && (re(c) ? c : e.apply(0, t));
|
|
433
|
-
},
|
|
434
|
-
const { nativeScrollbarsOverlaid: o, body: n } = e || {}, { T: s, L: c, G: r } = vt(), { nativeScrollbarsOverlaid: l, body:
|
|
433
|
+
}, vs = (t, e) => {
|
|
434
|
+
const { nativeScrollbarsOverlaid: o, body: n } = e || {}, { T: s, L: c, G: r } = vt(), { nativeScrollbarsOverlaid: l, body: i } = r().cancel, u = o ?? l, a = ue(n) ? i : n, d = (s.x || s.y) && u, g = t && (Te(a) ? !c : a);
|
|
435
435
|
return !!d || !!g;
|
|
436
|
-
},
|
|
437
|
-
|
|
438
|
-
},
|
|
439
|
-
|
|
440
|
-
}, Tn = (t) =>
|
|
436
|
+
}, ho = /* @__PURE__ */ new WeakMap(), ys = (t, e) => {
|
|
437
|
+
ho.set(t, e);
|
|
438
|
+
}, xs = (t) => {
|
|
439
|
+
ho.delete(t);
|
|
440
|
+
}, Tn = (t) => ho.get(t), ws = (t, e, o) => {
|
|
441
441
|
let n = !1;
|
|
442
442
|
const s = o ? /* @__PURE__ */ new WeakMap() : !1, c = () => {
|
|
443
443
|
n = !0;
|
|
444
444
|
}, r = (l) => {
|
|
445
445
|
if (s && o) {
|
|
446
|
-
const
|
|
447
|
-
const [
|
|
448
|
-
return [d &&
|
|
446
|
+
const i = o.map((u) => {
|
|
447
|
+
const [a, d] = u || [];
|
|
448
|
+
return [d && a ? (l || ln)(a, t) : [], d];
|
|
449
449
|
});
|
|
450
|
-
|
|
451
|
-
const d = u[1], g = s.get(
|
|
452
|
-
if (t.contains(
|
|
453
|
-
const
|
|
454
|
-
n ? (
|
|
450
|
+
G(i, (u) => G(u[0], (a) => {
|
|
451
|
+
const d = u[1], g = s.get(a) || [];
|
|
452
|
+
if (t.contains(a) && d) {
|
|
453
|
+
const H = ot(a, d, (L) => {
|
|
454
|
+
n ? (H(), s.delete(a)) : e(L);
|
|
455
455
|
});
|
|
456
|
-
s.set(
|
|
456
|
+
s.set(a, K(g, H));
|
|
457
457
|
} else
|
|
458
|
-
bt(g), s.delete(
|
|
458
|
+
bt(g), s.delete(a);
|
|
459
459
|
}));
|
|
460
460
|
}
|
|
461
461
|
};
|
|
462
462
|
return r(), [c, r];
|
|
463
|
-
},
|
|
463
|
+
}, _o = (t, e, o, n) => {
|
|
464
464
|
let s = !1;
|
|
465
|
-
const { ct: c, rt: r, lt: l, it:
|
|
465
|
+
const { ct: c, rt: r, lt: l, it: i, ut: u, ft: a } = n || {}, d = on(() => s && o(!0), {
|
|
466
466
|
v: 33,
|
|
467
467
|
p: 99
|
|
468
|
-
}), [g,
|
|
469
|
-
if (!Xe(
|
|
470
|
-
const
|
|
471
|
-
let
|
|
472
|
-
if (
|
|
473
|
-
const { attributeName:
|
|
468
|
+
}), [g, O] = ws(t, d, l), H = c || [], L = r || [], P = At(H, L), k = (b, E) => {
|
|
469
|
+
if (!Xe(E)) {
|
|
470
|
+
const D = u || wt, I = a || wt, _ = [], z = [];
|
|
471
|
+
let T = !1, h = !1;
|
|
472
|
+
if (G(E, (y) => {
|
|
473
|
+
const { attributeName: w, target: x, type: $, oldValue: V, addedNodes: X, removedNodes: U } = y, F = $ === "attributes", Y = $ === "childList", Q = t === x, nt = F && w, tt = nt && De(x, w || "") || null, R = nt && V !== tt, J = He(L, w) && R;
|
|
474
474
|
if (e && (Y || !Q)) {
|
|
475
|
-
const et = F && R, it = et &&
|
|
476
|
-
X
|
|
475
|
+
const et = F && R, it = et && i && Ye(x, i), p = (it ? !D(x, w, V, tt) : !F || et) && !I(y, !!it, t, n);
|
|
476
|
+
G(X, (m) => K(_, m)), G(U, (m) => K(_, m)), h = h || p;
|
|
477
477
|
}
|
|
478
|
-
!e && Q && R && !
|
|
479
|
-
}),
|
|
480
|
-
return !b &&
|
|
481
|
-
if (!Xe(
|
|
482
|
-
const
|
|
483
|
-
return !b && o.apply(0,
|
|
478
|
+
!e && Q && R && !D(x, w, V, tt) && (K(z, w), T = T || J);
|
|
479
|
+
}), O((y) => xo(_).reduce((w, x) => (K(w, ln(y, x)), Ye(x, y) ? K(w, x) : w), [])), e)
|
|
480
|
+
return !b && h && o(!1), [!1];
|
|
481
|
+
if (!Xe(z) || T) {
|
|
482
|
+
const y = [xo(z), T];
|
|
483
|
+
return !b && o.apply(0, y), y;
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
},
|
|
487
|
-
return [() => (
|
|
486
|
+
}, C = new Pn(N(k, !1));
|
|
487
|
+
return [() => (C.observe(t, {
|
|
488
488
|
attributes: !0,
|
|
489
489
|
attributeOldValue: !0,
|
|
490
|
-
attributeFilter:
|
|
490
|
+
attributeFilter: P,
|
|
491
491
|
subtree: e,
|
|
492
492
|
childList: e,
|
|
493
493
|
characterData: e
|
|
494
494
|
}), s = !0, () => {
|
|
495
|
-
s && (g(),
|
|
495
|
+
s && (g(), C.disconnect(), s = !1);
|
|
496
496
|
}), () => {
|
|
497
497
|
if (s)
|
|
498
|
-
return d.m(),
|
|
498
|
+
return d.m(), k(!0, C.takeRecords());
|
|
499
499
|
}];
|
|
500
500
|
}, On = (t, e, o) => {
|
|
501
|
-
const { _t: s, dt: c } = o || {}, r = oe(
|
|
501
|
+
const { _t: s, dt: c } = o || {}, r = oe(fs), { K: l } = vt(), i = N(Rt, t), [u] = xt({
|
|
502
502
|
o: !1,
|
|
503
503
|
_: !0
|
|
504
504
|
});
|
|
505
505
|
return () => {
|
|
506
|
-
const
|
|
507
|
-
const
|
|
508
|
-
let
|
|
509
|
-
if (
|
|
510
|
-
const [
|
|
511
|
-
b = !I ||
|
|
512
|
-
} else
|
|
513
|
-
if (s &&
|
|
514
|
-
const
|
|
506
|
+
const a = [], g = un(`<div class="${fo}"><div class="${ts}"></div></div>`)[0], O = g.firstChild, H = (L) => {
|
|
507
|
+
const P = L instanceof ResizeObserverEntry, k = !P && St(L);
|
|
508
|
+
let C = !1, b = !1, E = !0;
|
|
509
|
+
if (P) {
|
|
510
|
+
const [D, , I] = u(L.contentRect), _ = Je(D), z = fn(D, I);
|
|
511
|
+
b = !I || z, C = !b && !_, E = !C;
|
|
512
|
+
} else k ? [, E] = L : b = L === !0;
|
|
513
|
+
if (s && E) {
|
|
514
|
+
const D = k ? L[0] : Rt(g);
|
|
515
515
|
Mt(g, {
|
|
516
|
-
x: Se(3333333, 3333333,
|
|
516
|
+
x: Se(3333333, 3333333, D && l),
|
|
517
517
|
y: 3333333
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
|
|
521
|
-
vt:
|
|
522
|
-
ht: !
|
|
520
|
+
C || e({
|
|
521
|
+
vt: k ? L : void 0,
|
|
522
|
+
ht: !k,
|
|
523
523
|
dt: b
|
|
524
524
|
});
|
|
525
525
|
};
|
|
526
526
|
if (ye) {
|
|
527
|
-
const
|
|
528
|
-
|
|
529
|
-
|
|
527
|
+
const L = new ye((P) => H(P.pop()));
|
|
528
|
+
L.observe(O), K(a, () => {
|
|
529
|
+
L.disconnect();
|
|
530
530
|
});
|
|
531
531
|
} else if (r) {
|
|
532
|
-
const [
|
|
533
|
-
K(
|
|
532
|
+
const [L, P] = r(O, H, c);
|
|
533
|
+
K(a, At([we(g, Qn), ot(g, "animationstart", L)], P));
|
|
534
534
|
} else
|
|
535
535
|
return wt;
|
|
536
536
|
if (s) {
|
|
537
|
-
const [
|
|
537
|
+
const [L] = xt({
|
|
538
538
|
o: void 0
|
|
539
|
-
},
|
|
540
|
-
K(
|
|
541
|
-
const
|
|
542
|
-
b && (
|
|
539
|
+
}, i);
|
|
540
|
+
K(a, ot(g, "scroll", (P) => {
|
|
541
|
+
const k = L(), [C, b, E] = k;
|
|
542
|
+
b && (lo(O, "ltr rtl"), we(O, C ? "rtl" : "ltr"), H([!!C, b, E])), uo(P);
|
|
543
543
|
}));
|
|
544
544
|
}
|
|
545
|
-
return
|
|
545
|
+
return N(bt, K(a, gt(t, g)));
|
|
546
546
|
};
|
|
547
|
-
},
|
|
547
|
+
}, Ss = (t, e) => {
|
|
548
548
|
let o;
|
|
549
|
-
const n = (
|
|
549
|
+
const n = (i) => i.h === 0 || i.isIntersecting || i.intersectionRatio > 0, s = Gt(es), [c] = xt({
|
|
550
550
|
o: !1
|
|
551
|
-
}), r = (
|
|
552
|
-
if (
|
|
553
|
-
const
|
|
554
|
-
return d && !u && e(
|
|
551
|
+
}), r = (i, u) => {
|
|
552
|
+
if (i) {
|
|
553
|
+
const a = c(n(i)), [, d] = a;
|
|
554
|
+
return d && !u && e(a) && [a];
|
|
555
555
|
}
|
|
556
|
-
}, l = (
|
|
556
|
+
}, l = (i, u) => r(u.pop(), i);
|
|
557
557
|
return [() => {
|
|
558
|
-
const
|
|
559
|
-
if (
|
|
560
|
-
o = new
|
|
558
|
+
const i = [];
|
|
559
|
+
if (yo)
|
|
560
|
+
o = new yo(N(l, !1), {
|
|
561
561
|
root: t
|
|
562
|
-
}), o.observe(s), K(
|
|
562
|
+
}), o.observe(s), K(i, () => {
|
|
563
563
|
o.disconnect();
|
|
564
564
|
});
|
|
565
565
|
else {
|
|
566
566
|
const u = () => {
|
|
567
|
-
const
|
|
568
|
-
r(
|
|
567
|
+
const a = le(s);
|
|
568
|
+
r(a);
|
|
569
569
|
};
|
|
570
|
-
K(
|
|
570
|
+
K(i, On(s, u)()), u();
|
|
571
571
|
}
|
|
572
|
-
return
|
|
572
|
+
return N(bt, K(i, gt(t, s)));
|
|
573
573
|
}, () => o && l(!0, o.takeRecords())];
|
|
574
|
-
},
|
|
575
|
-
let s, c, r, l,
|
|
576
|
-
const { L:
|
|
574
|
+
}, Cs = (t, e, o, n) => {
|
|
575
|
+
let s, c, r, l, i, u;
|
|
576
|
+
const { L: a } = vt(), d = `[${mt}]`, g = `[${It}]`, O = ["tabindex"], H = ["wrap", "cols", "rows"], L = ["id", "class", "style", "open"], { gt: P, bt: k, D: C, wt: b, St: E, V: D, yt: I, Ot: _ } = t, z = {
|
|
577
577
|
$t: !1,
|
|
578
|
-
N: Rt(
|
|
579
|
-
},
|
|
578
|
+
N: Rt(P)
|
|
579
|
+
}, T = vt(), h = oe(mo), [y] = xt({
|
|
580
580
|
u: tn,
|
|
581
581
|
o: {
|
|
582
582
|
w: 0,
|
|
583
583
|
h: 0
|
|
584
584
|
}
|
|
585
585
|
}, () => {
|
|
586
|
-
const f =
|
|
587
|
-
_(
|
|
588
|
-
const
|
|
589
|
-
return _(
|
|
590
|
-
w:
|
|
591
|
-
h:
|
|
586
|
+
const f = h && h.M(t, e, z, T, o).W, p = I(qt), m = !D && I(Kn), v = m && ee(C);
|
|
587
|
+
_(qt), D && _(to, !0);
|
|
588
|
+
const S = m && f && f()[0], A = Ke(b), M = Ke(C), B = ao(C);
|
|
589
|
+
return _(qt, p), D && _(to), S && S(), Mt(C, v), {
|
|
590
|
+
w: M.w + A.w + B.w,
|
|
591
|
+
h: M.h + A.h + B.h
|
|
592
592
|
};
|
|
593
|
-
}),
|
|
593
|
+
}), w = E ? H : At(L, H), x = on(n, {
|
|
594
594
|
v: () => s,
|
|
595
595
|
p: () => c,
|
|
596
596
|
S(f, p) {
|
|
597
597
|
const [m] = f, [v] = p;
|
|
598
|
-
return [At(Ht(m), Ht(v)).reduce((
|
|
598
|
+
return [At(Ht(m), Ht(v)).reduce((S, A) => (S[A] = m[A] || v[A], S), {})];
|
|
599
599
|
}
|
|
600
|
-
}),
|
|
601
|
-
if (
|
|
602
|
-
const p = Rt(
|
|
600
|
+
}), $ = (f) => {
|
|
601
|
+
if (D) {
|
|
602
|
+
const p = Rt(P);
|
|
603
603
|
W(f, {
|
|
604
604
|
Ct: u !== p
|
|
605
|
-
}), W(
|
|
605
|
+
}), W(z, {
|
|
606
606
|
N: p
|
|
607
607
|
}), u = p;
|
|
608
608
|
}
|
|
609
|
-
},
|
|
610
|
-
|
|
611
|
-
if (He(
|
|
612
|
-
const m = De(
|
|
613
|
-
Oe(m) ? yt(
|
|
609
|
+
}, V = (f) => {
|
|
610
|
+
G(f || O, (p) => {
|
|
611
|
+
if (He(O, p)) {
|
|
612
|
+
const m = De(k, p);
|
|
613
|
+
Oe(m) ? yt(C, p, m) : Et(C, p);
|
|
614
614
|
}
|
|
615
615
|
});
|
|
616
|
-
},
|
|
617
|
-
const [m, v] = f,
|
|
616
|
+
}, X = (f, p) => {
|
|
617
|
+
const [m, v] = f, S = {
|
|
618
618
|
xt: v
|
|
619
619
|
};
|
|
620
|
-
return W(
|
|
620
|
+
return W(z, {
|
|
621
621
|
$t: m
|
|
622
|
-
}), !p && n(
|
|
622
|
+
}), !p && n(S), S;
|
|
623
623
|
}, U = ({ ht: f, vt: p, dt: m }) => {
|
|
624
|
-
const
|
|
624
|
+
const S = !(f && !m && !p) && a ? x : n, [A, M] = p || [], B = {
|
|
625
625
|
ht: f || m,
|
|
626
626
|
dt: m,
|
|
627
|
-
Ct:
|
|
627
|
+
Ct: M
|
|
628
628
|
};
|
|
629
|
-
|
|
630
|
-
N:
|
|
631
|
-
}),
|
|
629
|
+
$(B), p && W(z, {
|
|
630
|
+
N: A
|
|
631
|
+
}), S(B);
|
|
632
632
|
}, F = (f, p) => {
|
|
633
|
-
const [, m] =
|
|
633
|
+
const [, m] = y(), v = {
|
|
634
634
|
Ht: m
|
|
635
635
|
};
|
|
636
|
-
return
|
|
636
|
+
return $(v), m && !p && (f ? n : x)(v), v;
|
|
637
637
|
}, Y = (f, p, m) => {
|
|
638
638
|
const v = {
|
|
639
639
|
It: p
|
|
640
640
|
};
|
|
641
|
-
return
|
|
642
|
-
}, { Z: Q } =
|
|
641
|
+
return $(v), p && !m ? x(v) : D || V(f), v;
|
|
642
|
+
}, { Z: Q } = T, [nt, tt] = b ? Ss(k, X) : [], R = !D && On(k, U, {
|
|
643
643
|
dt: !0,
|
|
644
644
|
_t: !0
|
|
645
|
-
}), [J, et] =
|
|
646
|
-
rt:
|
|
647
|
-
ct: At(
|
|
648
|
-
}), it =
|
|
645
|
+
}), [J, et] = _o(k, !1, Y, {
|
|
646
|
+
rt: L,
|
|
647
|
+
ct: At(L, O)
|
|
648
|
+
}), it = D && ye && new ye((f) => {
|
|
649
649
|
const p = f[f.length - 1].contentRect;
|
|
650
650
|
U({
|
|
651
651
|
ht: !0,
|
|
652
|
-
dt: fn(p,
|
|
653
|
-
}),
|
|
652
|
+
dt: fn(p, i)
|
|
653
|
+
}), i = p;
|
|
654
654
|
});
|
|
655
655
|
return [() => {
|
|
656
|
-
|
|
657
|
-
const f = R && R(), p = nt && nt(), m = J(), v = Q((
|
|
658
|
-
const [,
|
|
659
|
-
|
|
660
|
-
zt:
|
|
661
|
-
Ht:
|
|
656
|
+
V(), it && it.observe(k);
|
|
657
|
+
const f = R && R(), p = nt && nt(), m = J(), v = Q((S) => {
|
|
658
|
+
const [, A] = y();
|
|
659
|
+
x({
|
|
660
|
+
zt: S,
|
|
661
|
+
Ht: A
|
|
662
662
|
});
|
|
663
663
|
});
|
|
664
664
|
return () => {
|
|
665
665
|
it && it.disconnect(), f && f(), p && p(), l && l(), m(), v();
|
|
666
666
|
};
|
|
667
667
|
}, ({ Et: f, At: p, Tt: m }) => {
|
|
668
|
-
const v = {}, [
|
|
668
|
+
const v = {}, [S] = f("update.ignoreMutation"), [A, M] = f("update.attributes"), [B, q] = f("update.elementEvents"), [rt, at] = f("update.debounce"), Z = q || M, lt = p || m, Nt = (j) => $t(S) && S(j);
|
|
669
669
|
if (Z) {
|
|
670
670
|
r && r(), l && l();
|
|
671
|
-
const [j, ct] =
|
|
672
|
-
ct: At(
|
|
673
|
-
lt:
|
|
671
|
+
const [j, ct] = _o(b || C, !0, F, {
|
|
672
|
+
ct: At(w, A || []),
|
|
673
|
+
lt: B,
|
|
674
674
|
it: d,
|
|
675
675
|
ft: (ut, dt) => {
|
|
676
676
|
const { target: st, attributeName: pt } = ut;
|
|
677
|
-
return (!dt && pt && !
|
|
677
|
+
return (!dt && pt && !D ? Fn(st, d, g) : !1) || !!Xt(st, `.${ft}`) || !!Nt(ut);
|
|
678
678
|
}
|
|
679
679
|
});
|
|
680
680
|
l = j(), r = ct;
|
|
681
681
|
}
|
|
682
682
|
if (at)
|
|
683
|
-
if (
|
|
683
|
+
if (x.m(), St(rt)) {
|
|
684
684
|
const j = rt[0], ct = rt[1];
|
|
685
685
|
s = Ot(j) && j, c = Ot(ct) && ct;
|
|
686
686
|
} else Ot(rt) ? (s = rt, c = !1) : (s = !1, c = !1);
|
|
687
687
|
if (lt) {
|
|
688
688
|
const j = et(), ct = tt && tt(), ut = r && r();
|
|
689
|
-
j && W(v, Y(j[0], j[1], lt)), ct && W(v,
|
|
689
|
+
j && W(v, Y(j[0], j[1], lt)), ct && W(v, X(ct[0], lt)), ut && W(v, F(ut[0], lt));
|
|
690
690
|
}
|
|
691
|
-
return
|
|
692
|
-
},
|
|
693
|
-
},
|
|
694
|
-
const { G: s, K: c } = vt(), { scrollbars: r } = s(), { slot: l } = r, { gt:
|
|
691
|
+
return $(v), v;
|
|
692
|
+
}, z];
|
|
693
|
+
}, Es = (t, e, o, n) => {
|
|
694
|
+
const { G: s, K: c } = vt(), { scrollbars: r } = s(), { slot: l } = r, { gt: i, bt: u, D: a, Dt: d, kt: g, Rt: O, V: H } = e, { scrollbars: L } = d ? {} : t, { slot: P } = L || {}, k = /* @__PURE__ */ new Map(), C = (f) => We && new We({
|
|
695
695
|
source: g,
|
|
696
696
|
axis: f
|
|
697
|
-
}), b =
|
|
697
|
+
}), b = C("x"), E = C("y"), D = En([i, u, a], () => H && O ? i : u, l, P), I = (f, p) => {
|
|
698
698
|
if (p) {
|
|
699
|
-
const
|
|
699
|
+
const B = f ? Zt : Kt, { Mt: q, Vt: rt } = p, at = Yt(rt)[B], Z = Yt(q)[B];
|
|
700
700
|
return Ge(0, 1, at / Z || 0);
|
|
701
701
|
}
|
|
702
|
-
const m = f ? "x" : "y", { Lt: v, Pt:
|
|
703
|
-
return Ge(0, 1,
|
|
702
|
+
const m = f ? "x" : "y", { Lt: v, Pt: S } = o, A = S[m], M = v[m];
|
|
703
|
+
return Ge(0, 1, A / (A + M) || 0);
|
|
704
704
|
}, _ = (f, p, m, v) => {
|
|
705
|
-
const
|
|
706
|
-
return 1 /
|
|
707
|
-
},
|
|
705
|
+
const S = I(m, f);
|
|
706
|
+
return 1 / S * (1 - S) * (v ? 1 - p : p) || 0;
|
|
707
|
+
}, z = (f, p) => W(f, p ? {
|
|
708
708
|
clear: ["left"]
|
|
709
|
-
} : {}),
|
|
710
|
-
|
|
711
|
-
(f ? He(Wo(f), m) : !0) && (
|
|
712
|
-
|
|
713
|
-
}),
|
|
709
|
+
} : {}), T = (f) => {
|
|
710
|
+
k.forEach((p, m) => {
|
|
711
|
+
(f ? He(Wo(f), m) : !0) && (G(p || [], (S) => {
|
|
712
|
+
S && S.cancel();
|
|
713
|
+
}), k.delete(m));
|
|
714
714
|
});
|
|
715
|
-
},
|
|
716
|
-
const
|
|
717
|
-
|
|
715
|
+
}, h = (f, p, m, v) => {
|
|
716
|
+
const S = k.get(f) || [], A = S.find((M) => M && M.timeline === p);
|
|
717
|
+
A ? A.effect = new KeyframeEffect(f, m, {
|
|
718
718
|
composite: v
|
|
719
|
-
}) :
|
|
719
|
+
}) : k.set(f, At(S, [f.animate(m, {
|
|
720
720
|
timeline: p,
|
|
721
721
|
composite: v
|
|
722
722
|
})]));
|
|
723
|
-
},
|
|
724
|
-
const v = m ? we :
|
|
725
|
-
|
|
726
|
-
v(
|
|
723
|
+
}, y = (f, p, m) => {
|
|
724
|
+
const v = m ? we : lo;
|
|
725
|
+
G(f, (S) => {
|
|
726
|
+
v(S.Ut, p);
|
|
727
727
|
});
|
|
728
|
-
},
|
|
729
|
-
|
|
730
|
-
const [v,
|
|
731
|
-
|
|
728
|
+
}, w = (f, p) => {
|
|
729
|
+
G(f, (m) => {
|
|
730
|
+
const [v, S] = p(m);
|
|
731
|
+
te(v, S);
|
|
732
732
|
});
|
|
733
|
-
},
|
|
734
|
-
|
|
733
|
+
}, x = (f, p) => {
|
|
734
|
+
w(f, (m) => {
|
|
735
735
|
const { Vt: v } = m;
|
|
736
736
|
return [v, {
|
|
737
|
-
[p ?
|
|
737
|
+
[p ? Zt : Kt]: Eo(I(p))
|
|
738
738
|
}];
|
|
739
739
|
});
|
|
740
|
-
},
|
|
741
|
-
const { Lt: m } = o, v = p ? m.x : m.y,
|
|
742
|
-
if (b &&
|
|
743
|
-
|
|
744
|
-
const { Ut:
|
|
745
|
-
|
|
746
|
-
transform:
|
|
740
|
+
}, $ = (f, p) => {
|
|
741
|
+
const { Lt: m } = o, v = p ? m.x : m.y, S = (A, M, B) => Ve(Eo(_(A, Ho(M, v, B), p, B)), p);
|
|
742
|
+
if (b && E)
|
|
743
|
+
G(f, (A) => {
|
|
744
|
+
const { Ut: M, Vt: B } = A, q = p && Rt(M) && c;
|
|
745
|
+
h(B, p ? b : E, z({
|
|
746
|
+
transform: Ao(v, q).map((rt) => S(A, rt, q))
|
|
747
747
|
}, q));
|
|
748
748
|
});
|
|
749
749
|
else {
|
|
750
|
-
const
|
|
751
|
-
|
|
752
|
-
const { Vt:
|
|
753
|
-
return [
|
|
754
|
-
transform:
|
|
750
|
+
const A = ee(g);
|
|
751
|
+
w(f, (M) => {
|
|
752
|
+
const { Vt: B, Ut: q } = M;
|
|
753
|
+
return [B, {
|
|
754
|
+
transform: S(M, p ? A.x : A.y, p && Rt(q) && c)
|
|
755
755
|
}];
|
|
756
756
|
});
|
|
757
757
|
}
|
|
758
|
-
},
|
|
759
|
-
const v = jo(m),
|
|
760
|
-
|
|
758
|
+
}, V = (f) => H && !O && Qt(f) === a, X = [], U = [], F = [], Y = (f, p, m) => {
|
|
759
|
+
const v = jo(m), S = v ? m : !0, A = v ? !m : !0;
|
|
760
|
+
S && y(U, f, p), A && y(F, f, p);
|
|
761
761
|
}, Q = () => {
|
|
762
|
-
|
|
762
|
+
x(U, !0), x(F);
|
|
763
763
|
}, nt = () => {
|
|
764
|
-
|
|
764
|
+
$(U, !0), $(F);
|
|
765
765
|
}, tt = () => {
|
|
766
|
-
if (
|
|
766
|
+
if (H) {
|
|
767
767
|
const { Lt: f } = o, p = 0.5;
|
|
768
|
-
if (b &&
|
|
769
|
-
|
|
770
|
-
if (
|
|
771
|
-
const v = (
|
|
772
|
-
const
|
|
773
|
-
|
|
774
|
-
transform:
|
|
775
|
-
},
|
|
768
|
+
if (b && E)
|
|
769
|
+
G(At(F, U), ({ Ut: m }) => {
|
|
770
|
+
if (V(m)) {
|
|
771
|
+
const v = (S, A, M) => {
|
|
772
|
+
const B = M && Rt(m) && c;
|
|
773
|
+
h(m, S, z({
|
|
774
|
+
transform: Ao(A - p, B).map((q) => Ve(Ze(q), M))
|
|
775
|
+
}, B), "add");
|
|
776
776
|
};
|
|
777
|
-
v(b, f.x, !0), v(
|
|
777
|
+
v(b, f.x, !0), v(E, f.y);
|
|
778
778
|
} else
|
|
779
|
-
|
|
779
|
+
T(m);
|
|
780
780
|
});
|
|
781
781
|
else {
|
|
782
|
-
const m =
|
|
783
|
-
const { Ut:
|
|
784
|
-
const Z =
|
|
782
|
+
const m = ee(g), v = (S) => {
|
|
783
|
+
const { Ut: A } = S, M = V(A) && A, B = (q, rt, at) => {
|
|
784
|
+
const Z = Ho(q, rt, at), lt = rt * Z;
|
|
785
785
|
return Ze(at ? -lt : lt);
|
|
786
786
|
};
|
|
787
|
-
return [
|
|
788
|
-
transform:
|
|
789
|
-
x:
|
|
790
|
-
y:
|
|
787
|
+
return [M, {
|
|
788
|
+
transform: M ? Ve({
|
|
789
|
+
x: B(m.x, f.x, Rt(A) && c),
|
|
790
|
+
y: B(m.y, f.y)
|
|
791
791
|
}) : ""
|
|
792
792
|
}];
|
|
793
793
|
};
|
|
794
|
-
|
|
794
|
+
w(U, v), w(F, v);
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
797
|
}, R = (f) => {
|
|
798
|
-
const m =
|
|
798
|
+
const m = Gt(`${ft} ${f ? ss : cs}`), v = Gt(yn), S = Gt(po), A = {
|
|
799
799
|
Ut: m,
|
|
800
800
|
Mt: v,
|
|
801
|
-
Vt:
|
|
801
|
+
Vt: S
|
|
802
802
|
};
|
|
803
|
-
return K(f ? U : F,
|
|
804
|
-
}, J =
|
|
803
|
+
return K(f ? U : F, A), K(X, [gt(m, v), gt(v, S), N(Pt, m), T, n(A, Y, $, f)]), A;
|
|
804
|
+
}, J = N(R, !0), et = N(R, !1), it = () => (gt(D, U[0].Ut), gt(D, F[0].Ut), N(bt, X));
|
|
805
805
|
return J(), et(), [{
|
|
806
806
|
Bt: Q,
|
|
807
807
|
Nt: nt,
|
|
@@ -811,266 +811,266 @@ const gs = () => {
|
|
|
811
811
|
J: b,
|
|
812
812
|
Wt: U,
|
|
813
813
|
Xt: J,
|
|
814
|
-
Yt:
|
|
814
|
+
Yt: N(w, U)
|
|
815
815
|
},
|
|
816
816
|
Jt: {
|
|
817
|
-
J:
|
|
817
|
+
J: E,
|
|
818
818
|
Wt: F,
|
|
819
819
|
Xt: et,
|
|
820
|
-
Yt:
|
|
820
|
+
Yt: N(w, F)
|
|
821
821
|
}
|
|
822
822
|
}, it];
|
|
823
|
-
},
|
|
823
|
+
}, Ts = (t, e, o) => {
|
|
824
824
|
const { bt: n, kt: s, Kt: c } = e;
|
|
825
|
-
return (r, l,
|
|
826
|
-
const { Ut:
|
|
827
|
-
const
|
|
828
|
-
const { Lt:
|
|
825
|
+
return (r, l, i, u) => {
|
|
826
|
+
const { Ut: a, Mt: d, Vt: g } = r, [O, H] = Dt(333), [L, P] = Dt(), k = N(i, [r], u), C = !!s.scrollBy, b = `client${u ? "X" : "Y"}`, E = u ? Zt : Kt, D = u ? "left" : "top", I = u ? "w" : "h", _ = u ? "x" : "y", z = (y) => y.propertyName.indexOf(E) > -1, T = () => {
|
|
827
|
+
const y = "pointerup pointerleave pointercancel lostpointercapture", w = (x, $) => (V) => {
|
|
828
|
+
const { Lt: X } = o, U = le(d)[I] - le(g)[I], Y = $ * V / U * X[_];
|
|
829
829
|
Mt(s, {
|
|
830
|
-
[_]:
|
|
830
|
+
[_]: x + Y
|
|
831
831
|
});
|
|
832
832
|
};
|
|
833
|
-
return ot(d, "pointerdown", (
|
|
834
|
-
const
|
|
835
|
-
if (U === 0 && F &&
|
|
836
|
-
const tt =
|
|
837
|
-
bt(at),
|
|
838
|
-
}, at = [ae(n, mt,
|
|
833
|
+
return ot(d, "pointerdown", (x) => {
|
|
834
|
+
const $ = Xt(x.target, `.${po}`) === g, V = $ ? g : d, X = t.scrollbars, { button: U, isPrimary: F, pointerType: Y } = x, { pointers: Q } = X;
|
|
835
|
+
if (U === 0 && F && X[$ ? "dragScroll" : "clickScroll"] && (Q || []).includes(Y)) {
|
|
836
|
+
const tt = !$ && x.shiftKey, R = N(Yt, g), J = N(Yt, d), et = (Z, lt) => (Z || R())[D] - (lt || J())[D], it = Fe(Yt(s)[E]) / le(s)[I] || 1, f = w(ee(s)[_] || 0, 1 / it), p = x[b], m = R(), v = J(), S = m[E], A = et(m, v) + S / 2, M = p - v[D], B = $ ? 0 : M - A, q = (Z) => {
|
|
837
|
+
bt(at), V.releasePointerCapture(Z.pointerId);
|
|
838
|
+
}, at = [ae(n, mt, qn), ot(c, y, q), ot(c, "selectstart", (Z) => $o(Z), {
|
|
839
839
|
H: !1
|
|
840
|
-
}), ot(d,
|
|
840
|
+
}), ot(d, y, q), ot(d, "pointermove", (Z) => {
|
|
841
841
|
const lt = Z[b] - p;
|
|
842
|
-
(
|
|
842
|
+
($ || tt) && f(B + lt);
|
|
843
843
|
})];
|
|
844
|
-
if (
|
|
845
|
-
f(
|
|
846
|
-
else if (
|
|
847
|
-
const Z = oe(
|
|
848
|
-
Z && K(at, Z(f, et,
|
|
844
|
+
if (V.setPointerCapture(x.pointerId), tt)
|
|
845
|
+
f(B);
|
|
846
|
+
else if (!$) {
|
|
847
|
+
const Z = oe(gs);
|
|
848
|
+
Z && K(at, Z(f, et, B, S, M));
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
851
|
});
|
|
852
852
|
};
|
|
853
|
-
let
|
|
854
|
-
return
|
|
855
|
-
l(
|
|
856
|
-
}), ot(
|
|
857
|
-
l(
|
|
858
|
-
}), ot(
|
|
859
|
-
const { deltaX:
|
|
860
|
-
|
|
861
|
-
left:
|
|
862
|
-
top:
|
|
853
|
+
let h = !0;
|
|
854
|
+
return N(bt, [ot(a, "pointerenter", () => {
|
|
855
|
+
l(Po, !0);
|
|
856
|
+
}), ot(a, "pointerleave pointercancel", () => {
|
|
857
|
+
l(Po, !1);
|
|
858
|
+
}), ot(a, "wheel", (y) => {
|
|
859
|
+
const { deltaX: w, deltaY: x, deltaMode: $ } = y;
|
|
860
|
+
C && h && $ === 0 && Qt(a) === n && s.scrollBy({
|
|
861
|
+
left: w,
|
|
862
|
+
top: x,
|
|
863
863
|
behavior: "smooth"
|
|
864
|
-
}),
|
|
865
|
-
|
|
866
|
-
}),
|
|
864
|
+
}), h = !1, l(Vo, !0), O(() => {
|
|
865
|
+
h = !0, l(Vo);
|
|
866
|
+
}), $o(y);
|
|
867
867
|
}, {
|
|
868
868
|
H: !1,
|
|
869
869
|
I: !0
|
|
870
|
-
}), ot(g, "transitionstart", (
|
|
871
|
-
if (
|
|
872
|
-
const
|
|
873
|
-
|
|
870
|
+
}), ot(g, "transitionstart", (y) => {
|
|
871
|
+
if (z(y)) {
|
|
872
|
+
const w = () => {
|
|
873
|
+
k(), L(w);
|
|
874
874
|
};
|
|
875
|
-
|
|
875
|
+
w();
|
|
876
876
|
}
|
|
877
|
-
}), ot(g, "transitionend transitioncancel", (
|
|
878
|
-
|
|
879
|
-
}), ot(
|
|
877
|
+
}), ot(g, "transitionend transitioncancel", (y) => {
|
|
878
|
+
z(y) && (P(), k());
|
|
879
|
+
}), ot(a, "mousedown", N(ot, c, "click", uo, {
|
|
880
880
|
A: !0,
|
|
881
881
|
I: !0
|
|
882
882
|
}), {
|
|
883
883
|
I: !0
|
|
884
|
-
}),
|
|
884
|
+
}), T(), H, P]);
|
|
885
885
|
};
|
|
886
|
-
},
|
|
887
|
-
let r, l,
|
|
888
|
-
const [
|
|
889
|
-
|
|
886
|
+
}, Os = (t, e, o, n, s, c) => {
|
|
887
|
+
let r, l, i, u, a, d = wt, g = 0;
|
|
888
|
+
const [O, H] = Dt(), [L, P] = Dt(), [k, C] = Dt(100), [b, E] = Dt(100), [D, I] = Dt(100), [_, z] = Dt(() => g), [T, h] = Es(t, s, n, Ts(e, s, n)), { bt: y, Zt: w, Rt: x } = s, { Ft: $, Bt: V, Nt: X, jt: U } = T, F = (R) => {
|
|
889
|
+
$(oo, R, !0), $(oo, R, !1);
|
|
890
890
|
}, Y = (R, J) => {
|
|
891
|
-
if (
|
|
892
|
-
|
|
891
|
+
if (z(), R)
|
|
892
|
+
$(No);
|
|
893
893
|
else {
|
|
894
|
-
const et =
|
|
894
|
+
const et = N($, No, !0);
|
|
895
895
|
g > 0 && !J ? _(et) : et();
|
|
896
896
|
}
|
|
897
897
|
}, Q = (R) => R.pointerType === "mouse", nt = (R) => {
|
|
898
898
|
Q(R) && (u = l, u && Y(!0));
|
|
899
|
-
}, tt = [
|
|
899
|
+
}, tt = [C, z, E, I, P, H, () => d(), ot(y, "pointerover", nt, {
|
|
900
900
|
A: !0
|
|
901
|
-
}), ot(
|
|
901
|
+
}), ot(y, "pointerenter", nt), ot(y, "pointerleave", (R) => {
|
|
902
902
|
Q(R) && (u = !1, l && Y(!1));
|
|
903
|
-
}), ot(
|
|
904
|
-
Q(R) && r &&
|
|
905
|
-
|
|
903
|
+
}), ot(y, "pointermove", (R) => {
|
|
904
|
+
Q(R) && r && O(() => {
|
|
905
|
+
C(), Y(!0), b(() => {
|
|
906
906
|
r && Y(!1);
|
|
907
907
|
});
|
|
908
908
|
});
|
|
909
|
-
}), ot(
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
909
|
+
}), ot(w, "scroll", (R) => {
|
|
910
|
+
L(() => {
|
|
911
|
+
X(), i && Y(!0), k(() => {
|
|
912
|
+
i && !u && Y(!1);
|
|
913
913
|
});
|
|
914
914
|
}), c(R), U();
|
|
915
915
|
})];
|
|
916
|
-
return [() =>
|
|
917
|
-
const { tn: f, nn: p, sn: m } = it || {}, { Ct: v, dt:
|
|
918
|
-
const
|
|
919
|
-
return
|
|
916
|
+
return [() => N(bt, K(tt, h())), ({ Et: R, Tt: J, Gt: et, Qt: it }) => {
|
|
917
|
+
const { tn: f, nn: p, sn: m } = it || {}, { Ct: v, dt: S } = et || {}, { N: A } = o, { T: M } = vt(), { k: B, en: q } = n, [rt, at] = R("showNativeOverlaidScrollbars"), [Z, lt] = R("scrollbars.theme"), [Nt, j] = R("scrollbars.visibility"), [ct, ut] = R("scrollbars.autoHide"), [dt, st] = R("scrollbars.autoHideSuspend"), [pt] = R("scrollbars.autoHideDelay"), [Vt, jt] = R("scrollbars.dragScroll"), [Ct, _t] = R("scrollbars.clickScroll"), [Lt, Pe] = R("overflow"), kt = S && !J, Me = q.x || q.y, ne = f || p || v || J, fe = m || j || Pe, pe = rt && M.x && M.y, se = (ce, Wt, bo) => {
|
|
918
|
+
const vo = ce.includes("scroll") && (Nt === "visible" || Nt === "auto" && Wt === "scroll");
|
|
919
|
+
return $(rs, vo, bo), vo;
|
|
920
920
|
};
|
|
921
|
-
if (g = pt, kt && (dt && Me ? (F(!1), d(),
|
|
922
|
-
d = ot(
|
|
921
|
+
if (g = pt, kt && (dt && Me ? (F(!1), d(), D(() => {
|
|
922
|
+
d = ot(w, "scroll", N(F, !0), {
|
|
923
923
|
A: !0
|
|
924
924
|
});
|
|
925
|
-
})) : F(!0)), at &&
|
|
926
|
-
const ce = se(Lt.x,
|
|
927
|
-
|
|
925
|
+
})) : F(!0)), at && $(os, pe), lt && ($(a), $(Z, !0), a = Z), st && !dt && F(!0), ut && (r = ct === "move", l = ct === "leave", i = ct !== "never", Y(!i, !0)), jt && $(as, Vt), _t && $(is, Ct), fe) {
|
|
926
|
+
const ce = se(Lt.x, B.x, !0), Wt = se(Lt.y, B.y, !1);
|
|
927
|
+
$(ls, !(ce && Wt));
|
|
928
928
|
}
|
|
929
|
-
ne && (
|
|
930
|
-
}, {},
|
|
931
|
-
},
|
|
932
|
-
const e = vt(), { G: o, L: n } = e, { elements: s } = o(), { host: c, padding: r, viewport: l, content:
|
|
929
|
+
ne && (V(), X(), U(), $(Mo, !q.x, !0), $(Mo, !q.y, !1), $(ns, A && !x));
|
|
930
|
+
}, {}, T];
|
|
931
|
+
}, $s = (t) => {
|
|
932
|
+
const e = vt(), { G: o, L: n } = e, { elements: s } = o(), { host: c, padding: r, viewport: l, content: i } = s, u = re(t), a = u ? {} : t, { elements: d } = a, { host: g, padding: O, viewport: H, content: L } = d || {}, P = u ? t : a.target, k = Ye(P, "textarea"), C = P.ownerDocument, b = C.documentElement, E = P === C.body, D = C.defaultView, I = () => C.activeElement, _ = (j) => {
|
|
933
933
|
j && j.focus && j.focus();
|
|
934
|
-
},
|
|
935
|
-
gt:
|
|
934
|
+
}, z = N(bs, [P]), T = N(En, [P]), h = N(go, [P]), y = N(Gt, ""), w = N(z, y, l), x = N(T, y, i), $ = w(H), V = $ === P, X = V && E, U = !V && x(L), F = !V && re($) && $ === U, Y = F && !!h(i), Q = Y ? w() : $, nt = Y ? U : x(), R = X ? b : F ? Q : $, J = k ? z(y, c, g) : P, et = X ? R : J, it = F ? nt : U, f = {
|
|
935
|
+
gt: P,
|
|
936
936
|
bt: et,
|
|
937
937
|
D: R,
|
|
938
|
-
cn: !
|
|
938
|
+
cn: !V && T(y, r, O),
|
|
939
939
|
wt: it,
|
|
940
|
-
kt:
|
|
941
|
-
Zt:
|
|
942
|
-
rn:
|
|
943
|
-
ln:
|
|
944
|
-
Kt:
|
|
945
|
-
St:
|
|
946
|
-
Rt:
|
|
940
|
+
kt: X ? b : R,
|
|
941
|
+
Zt: X ? C : R,
|
|
942
|
+
rn: E ? b : P,
|
|
943
|
+
ln: D,
|
|
944
|
+
Kt: C,
|
|
945
|
+
St: k,
|
|
946
|
+
Rt: E,
|
|
947
947
|
Dt: u,
|
|
948
|
-
V
|
|
948
|
+
V,
|
|
949
949
|
an: F,
|
|
950
|
-
yt: (j) =>
|
|
951
|
-
Ot: (j, ct) => be(R,
|
|
950
|
+
yt: (j) => zn(R, V ? mt : It, j),
|
|
951
|
+
Ot: (j, ct) => be(R, V ? mt : It, j, ct)
|
|
952
952
|
}, p = Ht(f).reduce((j, ct) => {
|
|
953
953
|
const ut = f[ct];
|
|
954
|
-
return K(j, ut && re(ut) && !
|
|
955
|
-
}, []), m = (j) => j ? He(p, j) : null, { gt: v, bt:
|
|
956
|
-
Et(
|
|
957
|
-
}], rt =
|
|
958
|
-
let at =
|
|
959
|
-
const Z =
|
|
954
|
+
return K(j, ut && re(ut) && !Qt(ut) ? ut : !1);
|
|
955
|
+
}, []), m = (j) => j ? He(p, j) : null, { gt: v, bt: S, cn: A, D: M, wt: B } = f, q = [() => {
|
|
956
|
+
Et(S, [mt, ze]), Et(v, ze), E && Et(b, [ze, mt]);
|
|
957
|
+
}], rt = k && m(S);
|
|
958
|
+
let at = k ? v : qe([B, M, A, S, v].find((j) => m(j) === !1));
|
|
959
|
+
const Z = X ? v : B || M, lt = N(bt, q);
|
|
960
960
|
return [f, () => {
|
|
961
961
|
const j = I(), ct = (st) => {
|
|
962
|
-
gt(
|
|
962
|
+
gt(Qt(st), qe(st)), Pt(st);
|
|
963
963
|
}, ut = (st) => st ? ot(st, "focusin focusout focus blur", (pt) => {
|
|
964
|
-
|
|
964
|
+
uo(pt), pt.stopImmediatePropagation();
|
|
965
965
|
}, {
|
|
966
966
|
I: !0,
|
|
967
967
|
H: !1
|
|
968
968
|
}) : wt, dt = ut(j);
|
|
969
|
-
if (yt(
|
|
970
|
-
|
|
971
|
-
})), gt(Z, at), gt(
|
|
969
|
+
if (yt(S, mt, V ? "viewport" : "host"), yt(A, eo, ""), yt(B, Ro, ""), V || (yt(M, It, ""), E && ae(b, mt, Zn)), rt && (So(v, S), K(q, () => {
|
|
970
|
+
So(S, v), Pt(S);
|
|
971
|
+
})), gt(Z, at), gt(S, A), gt(A || S, !V && M), gt(M, B), K(q, [dt, () => {
|
|
972
972
|
const st = I(), pt = ut(st);
|
|
973
|
-
Et(
|
|
974
|
-
}]), n && !
|
|
975
|
-
const st = "tabindex", pt = De(
|
|
976
|
-
yt(
|
|
977
|
-
const Vt = () => pt ? yt(
|
|
978
|
-
Vt(),
|
|
973
|
+
Et(A, eo), Et(B, Ro), Et(M, [gn, hn, It]), m(B) && ct(B), m(M) && ct(M), m(A) && ct(A), _(st), pt();
|
|
974
|
+
}]), n && !V && (ae(M, It, vn), K(q, N(Et, M, It))), !V && D.top === D && j === P) {
|
|
975
|
+
const st = "tabindex", pt = De(M, st);
|
|
976
|
+
yt(M, st, "-1"), _(M);
|
|
977
|
+
const Vt = () => pt ? yt(M, st, pt) : Et(M, st), jt = ot(C, "pointerdown keydown", () => {
|
|
978
|
+
Vt(), jt();
|
|
979
979
|
});
|
|
980
|
-
K(q, [Vt,
|
|
980
|
+
K(q, [Vt, jt]);
|
|
981
981
|
} else
|
|
982
982
|
_(j);
|
|
983
983
|
return dt(), at = 0, lt;
|
|
984
984
|
}, lt];
|
|
985
|
-
},
|
|
985
|
+
}, As = ({ wt: t }) => ({ Gt: e, un: o, Tt: n }) => {
|
|
986
986
|
const { xt: s } = e || {}, { $t: c } = o;
|
|
987
|
-
t && (s || n) &&
|
|
988
|
-
[
|
|
987
|
+
t && (s || n) && te(t, {
|
|
988
|
+
[Kt]: c && "100%"
|
|
989
989
|
});
|
|
990
|
-
},
|
|
990
|
+
}, Hs = ({ bt: t, cn: e, D: o, V: n }, s) => {
|
|
991
991
|
const [c, r] = xt({
|
|
992
|
-
u:
|
|
993
|
-
o:
|
|
994
|
-
},
|
|
995
|
-
return ({ Et: l, Gt:
|
|
996
|
-
let [d, g] = r(
|
|
997
|
-
const { L:
|
|
998
|
-
(
|
|
999
|
-
const
|
|
1000
|
-
if (
|
|
1001
|
-
const I = !
|
|
1002
|
-
[Ko]: I && !
|
|
1003
|
-
[Jo]: I ? -
|
|
1004
|
-
[Zo]: I &&
|
|
992
|
+
u: _n,
|
|
993
|
+
o: To()
|
|
994
|
+
}, N(To, t, "padding", ""));
|
|
995
|
+
return ({ Et: l, Gt: i, un: u, Tt: a }) => {
|
|
996
|
+
let [d, g] = r(a);
|
|
997
|
+
const { L: O } = vt(), { ht: H, Ht: L, Ct: P } = i || {}, { N: k } = u, [C, b] = l("paddingAbsolute");
|
|
998
|
+
(H || g || (a || L)) && ([d, g] = c(a));
|
|
999
|
+
const D = !n && (b || P || g);
|
|
1000
|
+
if (D) {
|
|
1001
|
+
const I = !C || !e && !O, _ = d.r + d.l, z = d.t + d.b, T = {
|
|
1002
|
+
[Ko]: I && !k ? -_ : 0,
|
|
1003
|
+
[Jo]: I ? -z : 0,
|
|
1004
|
+
[Zo]: I && k ? -_ : 0,
|
|
1005
1005
|
top: I ? -d.t : 0,
|
|
1006
|
-
right: I ?
|
|
1007
|
-
left: I ?
|
|
1008
|
-
[
|
|
1009
|
-
},
|
|
1006
|
+
right: I ? k ? -d.r : "auto" : 0,
|
|
1007
|
+
left: I ? k ? "auto" : -d.l : 0,
|
|
1008
|
+
[Zt]: I && `calc(100% + ${_}px)`
|
|
1009
|
+
}, h = {
|
|
1010
1010
|
[Xo]: I ? d.t : 0,
|
|
1011
1011
|
[Go]: I ? d.r : 0,
|
|
1012
1012
|
[qo]: I ? d.b : 0,
|
|
1013
1013
|
[Yo]: I ? d.l : 0
|
|
1014
1014
|
};
|
|
1015
|
-
|
|
1015
|
+
te(e || o, T), te(o, h), W(s, {
|
|
1016
1016
|
cn: d,
|
|
1017
1017
|
fn: !I,
|
|
1018
|
-
j: e ?
|
|
1018
|
+
j: e ? h : W({}, T, h)
|
|
1019
1019
|
});
|
|
1020
1020
|
}
|
|
1021
1021
|
return {
|
|
1022
|
-
_n:
|
|
1022
|
+
_n: D
|
|
1023
1023
|
};
|
|
1024
1024
|
};
|
|
1025
|
-
},
|
|
1026
|
-
const o = vt(), { bt: n, cn: s, D: c, V: r, Ot: l, Rt:
|
|
1025
|
+
}, Ls = (t, e) => {
|
|
1026
|
+
const o = vt(), { bt: n, cn: s, D: c, V: r, Ot: l, Rt: i, ln: u } = t, { L: a } = o, d = i && r, g = N(he, 0), O = {
|
|
1027
1027
|
u: tn,
|
|
1028
1028
|
o: {
|
|
1029
1029
|
w: 0,
|
|
1030
1030
|
h: 0
|
|
1031
1031
|
}
|
|
1032
|
-
},
|
|
1032
|
+
}, H = {
|
|
1033
1033
|
u: en,
|
|
1034
1034
|
o: {
|
|
1035
|
-
x:
|
|
1036
|
-
y:
|
|
1035
|
+
x: Jt,
|
|
1036
|
+
y: Jt
|
|
1037
1037
|
}
|
|
1038
|
-
},
|
|
1039
|
-
const
|
|
1040
|
-
w: g(
|
|
1041
|
-
h: g(
|
|
1038
|
+
}, L = (h, y) => {
|
|
1039
|
+
const w = ht.devicePixelRatio % 1 !== 0 ? 1 : 0, x = {
|
|
1040
|
+
w: g(h.w - y.w),
|
|
1041
|
+
h: g(h.h - y.h)
|
|
1042
1042
|
};
|
|
1043
1043
|
return {
|
|
1044
|
-
w:
|
|
1045
|
-
h:
|
|
1044
|
+
w: x.w > w ? x.w : 0,
|
|
1045
|
+
h: x.h > w ? x.h : 0
|
|
1046
1046
|
};
|
|
1047
|
-
}, [
|
|
1048
|
-
return ({ Et:
|
|
1049
|
-
const { ht:
|
|
1050
|
-
let
|
|
1051
|
-
if (J &&
|
|
1052
|
-
v && l(
|
|
1053
|
-
const [Ct, _t] = nt ? nt(q) : [], [Lt, Pe] =
|
|
1047
|
+
}, [P, k] = xt(O, N(ao, c)), [C, b] = xt(O, N(Ke, c)), [E, D] = xt(O), [I, _] = xt(O), [z] = xt(H), T = oe(mo);
|
|
1048
|
+
return ({ Et: h, Gt: y, un: w, Tt: x }, { _n: $ }) => {
|
|
1049
|
+
const { ht: V, Ht: X, Ct: U, zt: F } = y || {}, Y = T && T.M(t, e, w, o, h), { q: Q, W: nt, X: tt } = Y || {}, [R, J] = ps(h, o), [et, it] = h("overflow"), f = V || $ || X || U || F || J, p = Ce(et.x), m = Ce(et.y), v = p || m;
|
|
1050
|
+
let S = k(x), A = b(x), M = D(x), B = _(x), q;
|
|
1051
|
+
if (J && a && l(vn, !R), f) {
|
|
1052
|
+
v && l(qt, !1);
|
|
1053
|
+
const [Ct, _t] = nt ? nt(q) : [], [Lt, Pe] = S = P(x), [kt, Me] = A = C(x), ne = dn(c), fe = kt, pe = ne;
|
|
1054
1054
|
Ct && Ct(), (Me || Pe || J) && _t && !R && Q && Q(_t, kt, Lt);
|
|
1055
|
-
const se =
|
|
1055
|
+
const se = Wn(u), ce = {
|
|
1056
1056
|
w: g(he(kt.w, fe.w) + Lt.w),
|
|
1057
1057
|
h: g(he(kt.h, fe.h) + Lt.h)
|
|
1058
|
-
},
|
|
1058
|
+
}, Wt = {
|
|
1059
1059
|
w: g((d ? se.w : pe.w + g(ne.w - kt.w)) + Lt.w),
|
|
1060
1060
|
h: g((d ? se.h : pe.h + g(ne.h - kt.h)) + Lt.h)
|
|
1061
1061
|
};
|
|
1062
|
-
|
|
1062
|
+
B = I(Wt), M = E(L(ce, Wt), x);
|
|
1063
1063
|
}
|
|
1064
|
-
const [rt, at] =
|
|
1064
|
+
const [rt, at] = B, [Z, lt] = M, [Nt, j] = A, [ct, ut] = S, dt = {
|
|
1065
1065
|
x: Z.w > 0,
|
|
1066
1066
|
y: Z.h > 0
|
|
1067
1067
|
}, st = p && m && (dt.x || dt.y) || p && dt.x && !dt.y || m && dt.y && !dt.x;
|
|
1068
|
-
if (
|
|
1069
|
-
const Ct = {}, _t =
|
|
1070
|
-
tt && tt(_t,
|
|
1068
|
+
if ($ || U || F || ut || j || at || lt || it || J || f) {
|
|
1069
|
+
const Ct = {}, _t = ms(t, dt, et, Ct);
|
|
1070
|
+
tt && tt(_t, w, !!Q && Q(_t, Nt, ct), Ct), r ? (yt(n, gn, Ct[Le]), yt(n, hn, Ct[ke])) : te(c, Ct);
|
|
1071
1071
|
}
|
|
1072
|
-
be(n, mt, bn, st), be(s, eo,
|
|
1073
|
-
const [Vt,
|
|
1072
|
+
be(n, mt, bn, st), be(s, eo, Jn, st), r || be(c, It, qt, v);
|
|
1073
|
+
const [Vt, jt] = z(Cn(t).k);
|
|
1074
1074
|
return W(e, {
|
|
1075
1075
|
k: Vt,
|
|
1076
1076
|
Pt: {
|
|
@@ -1083,13 +1083,13 @@ const gs = () => {
|
|
|
1083
1083
|
},
|
|
1084
1084
|
en: dt
|
|
1085
1085
|
}), {
|
|
1086
|
-
sn:
|
|
1086
|
+
sn: jt,
|
|
1087
1087
|
tn: at,
|
|
1088
1088
|
nn: lt
|
|
1089
1089
|
};
|
|
1090
1090
|
};
|
|
1091
|
-
},
|
|
1092
|
-
const [e, o, n] =
|
|
1091
|
+
}, ks = (t) => {
|
|
1092
|
+
const [e, o, n] = $s(t), s = {
|
|
1093
1093
|
cn: {
|
|
1094
1094
|
t: 0,
|
|
1095
1095
|
r: 0,
|
|
@@ -1115,73 +1115,73 @@ const gs = () => {
|
|
|
1115
1115
|
y: 0
|
|
1116
1116
|
},
|
|
1117
1117
|
k: {
|
|
1118
|
-
x:
|
|
1119
|
-
y:
|
|
1118
|
+
x: Jt,
|
|
1119
|
+
y: Jt
|
|
1120
1120
|
},
|
|
1121
1121
|
en: {
|
|
1122
1122
|
x: !1,
|
|
1123
1123
|
y: !1
|
|
1124
1124
|
}
|
|
1125
|
-
}, { gt: c, D: r, V: l } = e, { L:
|
|
1125
|
+
}, { gt: c, D: r, V: l } = e, { L: i, T: u } = vt(), a = !i && (u.x || u.y), d = [As(e), Hs(e, s), Ls(e, s)];
|
|
1126
1126
|
return [o, (g) => {
|
|
1127
|
-
const
|
|
1128
|
-
return
|
|
1129
|
-
W(
|
|
1130
|
-
}),
|
|
1127
|
+
const O = {}, L = a && ee(r), P = l ? ae(r, mt, to) : wt;
|
|
1128
|
+
return G(d, (k) => {
|
|
1129
|
+
W(O, k(g, O) || {});
|
|
1130
|
+
}), P(), Mt(r, L), !l && Mt(c, 0), O;
|
|
1131
1131
|
}, s, e, n];
|
|
1132
|
-
},
|
|
1133
|
-
const s =
|
|
1134
|
-
|
|
1135
|
-
}), [
|
|
1136
|
-
const { dn:
|
|
1137
|
-
Et:
|
|
1138
|
-
dn:
|
|
1139
|
-
Tt:
|
|
1132
|
+
}, Ds = (t, e, o, n) => {
|
|
1133
|
+
const s = Io(e, {}), [c, r, l, i, u] = ks(t), [a, d, g] = Cs(i, l, s, (C) => {
|
|
1134
|
+
k({}, C);
|
|
1135
|
+
}), [O, H, , L] = Os(t, e, g, l, i, n), P = (C) => Ht(C).some((b) => !!C[b]), k = (C, b) => {
|
|
1136
|
+
const { dn: E, Tt: D, At: I, vn: _ } = C, z = E || {}, T = !!D, h = {
|
|
1137
|
+
Et: Io(e, z, T),
|
|
1138
|
+
dn: z,
|
|
1139
|
+
Tt: T
|
|
1140
1140
|
};
|
|
1141
1141
|
if (_)
|
|
1142
|
-
return
|
|
1143
|
-
const
|
|
1142
|
+
return H(h), !1;
|
|
1143
|
+
const y = b || d(W({}, h, {
|
|
1144
1144
|
At: I
|
|
1145
|
-
})),
|
|
1145
|
+
})), w = r(W({}, h, {
|
|
1146
1146
|
un: g,
|
|
1147
|
-
Gt:
|
|
1147
|
+
Gt: y
|
|
1148
1148
|
}));
|
|
1149
|
-
|
|
1150
|
-
Gt:
|
|
1151
|
-
Qt:
|
|
1149
|
+
H(W({}, h, {
|
|
1150
|
+
Gt: y,
|
|
1151
|
+
Qt: w
|
|
1152
1152
|
}));
|
|
1153
|
-
const
|
|
1154
|
-
return
|
|
1155
|
-
Gt:
|
|
1156
|
-
Qt:
|
|
1157
|
-
}),
|
|
1153
|
+
const x = P(y), $ = P(w), V = x || $ || !ro(z) || T;
|
|
1154
|
+
return V && o(C, {
|
|
1155
|
+
Gt: y,
|
|
1156
|
+
Qt: w
|
|
1157
|
+
}), V;
|
|
1158
1158
|
};
|
|
1159
1159
|
return [() => {
|
|
1160
|
-
const { rn:
|
|
1161
|
-
return Mt(b,
|
|
1162
|
-
},
|
|
1160
|
+
const { rn: C, D: b } = i, E = ee(C), D = [a(), c(), O()];
|
|
1161
|
+
return Mt(b, E), N(bt, D);
|
|
1162
|
+
}, k, () => ({
|
|
1163
1163
|
hn: g,
|
|
1164
1164
|
pn: l
|
|
1165
1165
|
}), {
|
|
1166
|
-
gn:
|
|
1167
|
-
bn:
|
|
1166
|
+
gn: i,
|
|
1167
|
+
bn: L
|
|
1168
1168
|
}, u];
|
|
1169
|
-
},
|
|
1169
|
+
}, Ft = (t, e, o) => {
|
|
1170
1170
|
const { nt: n } = vt(), s = re(t), c = s ? t : t.target, r = Tn(c);
|
|
1171
1171
|
if (e && !r) {
|
|
1172
1172
|
let l = !1;
|
|
1173
|
-
const
|
|
1174
|
-
const
|
|
1175
|
-
return
|
|
1176
|
-
}, d = W({}, n(),
|
|
1177
|
-
|
|
1178
|
-
}, [b,
|
|
1179
|
-
const { ht:
|
|
1180
|
-
|
|
1173
|
+
const i = [], u = {}, a = (h) => {
|
|
1174
|
+
const y = sn(h), w = oe(ds);
|
|
1175
|
+
return w ? w(y, !0) : y;
|
|
1176
|
+
}, d = W({}, n(), a(e)), [g, O, H] = Qe(), [L, P, k] = Qe(o), C = (h, y) => {
|
|
1177
|
+
k(h, y), H(h, y);
|
|
1178
|
+
}, [b, E, D, I, _] = Ds(t, d, ({ dn: h, Tt: y }, { Gt: w, Qt: x }) => {
|
|
1179
|
+
const { ht: $, Ct: V, xt: X, Ht: U, It: F, dt: Y } = w, { tn: Q, nn: nt, sn: tt } = x;
|
|
1180
|
+
C("updated", [T, {
|
|
1181
1181
|
updateHints: {
|
|
1182
|
-
sizeChanged:
|
|
1183
|
-
directionChanged: !!
|
|
1184
|
-
heightIntrinsicChanged: !!
|
|
1182
|
+
sizeChanged: !!$,
|
|
1183
|
+
directionChanged: !!V,
|
|
1184
|
+
heightIntrinsicChanged: !!X,
|
|
1185
1185
|
overflowEdgeChanged: !!Q,
|
|
1186
1186
|
overflowAmountChanged: !!nt,
|
|
1187
1187
|
overflowStyleChanged: !!tt,
|
|
@@ -1189,40 +1189,40 @@ const gs = () => {
|
|
|
1189
1189
|
hostMutation: !!F,
|
|
1190
1190
|
appear: !!Y
|
|
1191
1191
|
},
|
|
1192
|
-
changedOptions:
|
|
1193
|
-
force: !!
|
|
1192
|
+
changedOptions: h || {},
|
|
1193
|
+
force: !!y
|
|
1194
1194
|
}]);
|
|
1195
|
-
}, (
|
|
1196
|
-
|
|
1197
|
-
},
|
|
1198
|
-
options(
|
|
1199
|
-
if (
|
|
1200
|
-
const
|
|
1201
|
-
|
|
1202
|
-
dn:
|
|
1195
|
+
}, (h) => C("scroll", [T, h])), z = (h) => {
|
|
1196
|
+
xs(c), bt(i), l = !0, C("destroyed", [T, h]), O(), P();
|
|
1197
|
+
}, T = {
|
|
1198
|
+
options(h, y) {
|
|
1199
|
+
if (h) {
|
|
1200
|
+
const w = y ? n() : {}, x = pn(d, W(w, a(h)));
|
|
1201
|
+
ro(x) || (W(d, x), E({
|
|
1202
|
+
dn: x
|
|
1203
1203
|
}));
|
|
1204
1204
|
}
|
|
1205
1205
|
return W({}, d);
|
|
1206
1206
|
},
|
|
1207
|
-
on:
|
|
1208
|
-
off: (
|
|
1209
|
-
|
|
1207
|
+
on: L,
|
|
1208
|
+
off: (h, y) => {
|
|
1209
|
+
h && y && P(h, y);
|
|
1210
1210
|
},
|
|
1211
1211
|
state() {
|
|
1212
|
-
const { hn:
|
|
1212
|
+
const { hn: h, pn: y } = D(), { N: w } = h, { Pt: x, Lt: $, k: V, en: X, cn: U, fn: F } = y;
|
|
1213
1213
|
return W({}, {
|
|
1214
|
-
overflowEdge:
|
|
1215
|
-
overflowAmount:
|
|
1216
|
-
overflowStyle:
|
|
1217
|
-
hasOverflow:
|
|
1214
|
+
overflowEdge: x,
|
|
1215
|
+
overflowAmount: $,
|
|
1216
|
+
overflowStyle: V,
|
|
1217
|
+
hasOverflow: X,
|
|
1218
1218
|
padding: U,
|
|
1219
1219
|
paddingAbsolute: F,
|
|
1220
|
-
directionRTL:
|
|
1220
|
+
directionRTL: w,
|
|
1221
1221
|
destroyed: l
|
|
1222
1222
|
});
|
|
1223
1223
|
},
|
|
1224
1224
|
elements() {
|
|
1225
|
-
const { gt:
|
|
1225
|
+
const { gt: h, bt: y, cn: w, D: x, wt: $, kt: V, Zt: X } = I.gn, { qt: U, Jt: F } = I.bn, Y = (nt) => {
|
|
1226
1226
|
const { Vt: tt, Mt: R, Ut: J } = nt;
|
|
1227
1227
|
return {
|
|
1228
1228
|
scrollbar: J,
|
|
@@ -1234,45 +1234,45 @@ const gs = () => {
|
|
|
1234
1234
|
return W({}, J, {
|
|
1235
1235
|
clone: () => {
|
|
1236
1236
|
const et = Y(R());
|
|
1237
|
-
return
|
|
1237
|
+
return E({
|
|
1238
1238
|
vn: !0
|
|
1239
1239
|
}), et;
|
|
1240
1240
|
}
|
|
1241
1241
|
});
|
|
1242
1242
|
};
|
|
1243
1243
|
return W({}, {
|
|
1244
|
-
target:
|
|
1245
|
-
host:
|
|
1246
|
-
padding:
|
|
1247
|
-
viewport:
|
|
1248
|
-
content:
|
|
1249
|
-
scrollOffsetElement:
|
|
1250
|
-
scrollEventElement:
|
|
1244
|
+
target: h,
|
|
1245
|
+
host: y,
|
|
1246
|
+
padding: w || x,
|
|
1247
|
+
viewport: x,
|
|
1248
|
+
content: $ || x,
|
|
1249
|
+
scrollOffsetElement: V,
|
|
1250
|
+
scrollEventElement: X,
|
|
1251
1251
|
scrollbarHorizontal: Q(U),
|
|
1252
1252
|
scrollbarVertical: Q(F)
|
|
1253
1253
|
});
|
|
1254
1254
|
},
|
|
1255
|
-
update: (
|
|
1256
|
-
Tt:
|
|
1255
|
+
update: (h) => E({
|
|
1256
|
+
Tt: h,
|
|
1257
1257
|
At: !0
|
|
1258
1258
|
}),
|
|
1259
|
-
destroy:
|
|
1260
|
-
plugin: (
|
|
1259
|
+
destroy: N(z, !1),
|
|
1260
|
+
plugin: (h) => u[Ht(h)[0]]
|
|
1261
1261
|
};
|
|
1262
|
-
return K(
|
|
1262
|
+
return K(i, [_]), ys(c, T), Sn(xn, Ft, [T, g, u]), vs(I.gn.Rt, !s && t.cancel) ? (z(!0), T) : (K(i, b()), C("initialized", [T]), T.update(!0), T);
|
|
1263
1263
|
}
|
|
1264
1264
|
return r;
|
|
1265
1265
|
};
|
|
1266
|
-
|
|
1267
|
-
const e = St(t), o = e ? t : [t], n = o.map((s) => Sn(s,
|
|
1268
|
-
return
|
|
1266
|
+
Ft.plugin = (t) => {
|
|
1267
|
+
const e = St(t), o = e ? t : [t], n = o.map((s) => Sn(s, Ft)[0]);
|
|
1268
|
+
return us(o), e ? n : n[0];
|
|
1269
1269
|
};
|
|
1270
|
-
|
|
1270
|
+
Ft.valid = (t) => {
|
|
1271
1271
|
const e = t && t.elements, o = $t(e) && e();
|
|
1272
1272
|
return xe(o) && !!Tn(o.target);
|
|
1273
1273
|
};
|
|
1274
|
-
|
|
1275
|
-
const { P: t, T: e, L: o, K: n, J: s, st: c, et: r, G: l, tt:
|
|
1274
|
+
Ft.env = () => {
|
|
1275
|
+
const { P: t, T: e, L: o, K: n, J: s, st: c, et: r, G: l, tt: i, nt: u, ot: a } = vt();
|
|
1276
1276
|
return W({}, {
|
|
1277
1277
|
scrollbarsSize: t,
|
|
1278
1278
|
scrollbarsOverlaid: e,
|
|
@@ -1282,13 +1282,13 @@ ee.env = () => {
|
|
|
1282
1282
|
staticDefaultInitialization: c,
|
|
1283
1283
|
staticDefaultOptions: r,
|
|
1284
1284
|
getDefaultInitialization: l,
|
|
1285
|
-
setDefaultInitialization:
|
|
1285
|
+
setDefaultInitialization: i,
|
|
1286
1286
|
getDefaultOptions: u,
|
|
1287
|
-
setDefaultOptions:
|
|
1287
|
+
setDefaultOptions: a
|
|
1288
1288
|
});
|
|
1289
1289
|
};
|
|
1290
|
-
const $n =
|
|
1291
|
-
|
|
1290
|
+
const $n = no(999999), Is = () => {
|
|
1291
|
+
Ln("das-ui-text", [
|
|
1292
1292
|
{
|
|
1293
1293
|
className: ".das-ui-text-context",
|
|
1294
1294
|
style: { position: "relative", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }
|
|
@@ -1365,91 +1365,100 @@ const $n = zo(999999), Ds = () => {
|
|
|
1365
1365
|
]);
|
|
1366
1366
|
}, An = (t) => {
|
|
1367
1367
|
window.inTextTooltip = !0, t.stopPropagation();
|
|
1368
|
-
}, ge =
|
|
1368
|
+
}, ge = no(0);
|
|
1369
|
+
let Hn = no(null);
|
|
1370
|
+
const ve = () => {
|
|
1369
1371
|
var o;
|
|
1372
|
+
clearTimeout(Hn.value);
|
|
1370
1373
|
const t = document.getElementById("das-ui-text-tooltip");
|
|
1371
1374
|
t && ((o = document.body) == null || o.removeChild(t)), window.inTextTooltip = !1;
|
|
1372
1375
|
const e = document.getElementById("das-ui-text-tooltip-context");
|
|
1373
1376
|
e && e.removeEventListener("mouseover", An);
|
|
1374
|
-
},
|
|
1377
|
+
}, zo = (t) => {
|
|
1375
1378
|
let e = document.getElementById("das-ui-text-tooltip");
|
|
1376
1379
|
const o = t.clientX, n = t.clientY, s = e == null ? void 0 : e.getBoundingClientRect();
|
|
1377
1380
|
if (e && o >= s.left && o <= s.right && n >= s.top && n <= s.bottom)
|
|
1378
1381
|
return !0;
|
|
1379
1382
|
ve();
|
|
1380
|
-
},
|
|
1383
|
+
}, Rs = async (t, e) => {
|
|
1381
1384
|
let o = t;
|
|
1382
1385
|
return e.target && (typeof e.target == "string" && (o = e.target), typeof e.target == "function" && (o = await e.target(t))), o;
|
|
1383
|
-
},
|
|
1386
|
+
}, zs = {
|
|
1384
1387
|
beforeMount() {
|
|
1385
|
-
|
|
1388
|
+
Is();
|
|
1386
1389
|
},
|
|
1387
1390
|
async mounted(t, e, o) {
|
|
1388
1391
|
const n = (o ? e.value : e) || {};
|
|
1389
|
-
let s = (n == null ? void 0 : n.deep) !== void 0 ? n == null ? void 0 : n.deep : !0;
|
|
1390
|
-
ge.value === 0 && window.addEventListener("wheel",
|
|
1391
|
-
let
|
|
1392
|
-
const
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1392
|
+
let s = (n == null ? void 0 : n.deep) !== void 0 ? n == null ? void 0 : n.deep : !0, c = (n == null ? void 0 : n.customContent) || "";
|
|
1393
|
+
ge.value === 0 && window.addEventListener("wheel", zo), ge.value++;
|
|
1394
|
+
let r = await Rs(t, n);
|
|
1395
|
+
const l = r.classList;
|
|
1396
|
+
r.dataset.customContent = c;
|
|
1397
|
+
let i = !0;
|
|
1398
|
+
l.contains("das-ui-text-context") || l.add("das-ui-text-context"), r.onmouseenter = (u) => {
|
|
1399
|
+
const d = u.composedPath()[0], { x: g, y: O, width: H, height: L, top: P, left: k, bottom: C } = d.getBoundingClientRect(), b = window.getComputedStyle(d, null), E = parseFloat(b.getPropertyValue("padding-left"));
|
|
1400
|
+
$n.value = In().nextZIndex();
|
|
1401
|
+
const D = document.createRange();
|
|
1402
|
+
D.setStart(r, 0);
|
|
1403
|
+
let I = s ? r.childNodes.length : 1;
|
|
1404
|
+
D.setEnd(r, I);
|
|
1405
|
+
const _ = Math.round(D.getBoundingClientRect().width), z = Math.round(r.getBoundingClientRect().width);
|
|
1406
|
+
_ > z && setTimeout(async () => {
|
|
1407
|
+
let T = document.getElementById("das-ui-text-tooltip");
|
|
1408
|
+
if (!T) {
|
|
1409
|
+
T = document.createElement("div"), T.style.cssText = `left: ${g + E}px;`, T.setAttribute("id", "das-ui-text-tooltip");
|
|
1410
|
+
const w = document.createElement("div");
|
|
1411
|
+
w.setAttribute("id", "das-ui-text-tooltip-context"), w.addEventListener("mouseover", An);
|
|
1412
|
+
const x = document.createElement("div");
|
|
1413
|
+
x.setAttribute("id", "tooltip-scroll-content"), w.appendChild(x), T.appendChild(w), document.body.appendChild(T);
|
|
1414
|
+
const $ = "os-theme-dark das-scrollbar", V = document.getElementById("tooltip-scroll-content");
|
|
1415
|
+
if (V) {
|
|
1416
|
+
V.innerHTML = r.dataset.customContent || r.innerHTML;
|
|
1417
|
+
const X = {
|
|
1418
|
+
scrollbars: {
|
|
1419
|
+
autoHide: "leave",
|
|
1420
|
+
autoHideDelay: 0,
|
|
1421
|
+
theme: $
|
|
1422
|
+
},
|
|
1423
|
+
overflow: { y: "scroll" }
|
|
1424
|
+
};
|
|
1425
|
+
r.dataset.customContent ? Hn.value = setTimeout(() => {
|
|
1426
|
+
Ft(w, X);
|
|
1427
|
+
}, 10) : Ft(w, X);
|
|
1428
|
+
}
|
|
1420
1429
|
}
|
|
1421
|
-
const
|
|
1422
|
-
|
|
1423
|
-
let
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
},
|
|
1427
|
-
|
|
1430
|
+
const h = document.createElement("span");
|
|
1431
|
+
h.textContent = "", h.style.position = "absolute", h.style.height = "12px", h.style.width = "8px", h.style.backgroundColor = Tt("--das-ui-text-tooltip-bgcolor").value, h.style.boxShadow = "3px 3px 5px rgba(0, 0, 0, 0.15)", h.style.borderColor = Tt("--das-ui-dropdown-bgff-color").value, h.style.borderRadius = "0px", h.style.zIndex = "-1", h.style.transform = "rotate(45deg)", h.style.left = "10px", T.appendChild(h);
|
|
1432
|
+
let y = O - 10 - T.offsetHeight;
|
|
1433
|
+
y * 1 < 0 ? (T.style.top = `${C + 5}px`, h.style.top = "-4px", h.style.boxShadow = "3px -3px 5px rgba(0, 0, 0, 0.15)", T.style.boxShadow = `0px -4px 10px 0px ${Tt("--das-ui-text-tooltip-shadow").value}`) : (T.style.top = `${y}px`, h.style.bottom = "-4px", T.style.boxShadow = `0px 4px 10px 0px ${Tt("--das-ui-text-tooltip-shadow").value}`), T.onmouseenter = (w) => {
|
|
1434
|
+
i = !1;
|
|
1435
|
+
}, T.onmouseleave = (w) => {
|
|
1436
|
+
i = !0, setTimeout(() => {
|
|
1428
1437
|
ve();
|
|
1429
1438
|
}, 200);
|
|
1430
1439
|
};
|
|
1431
1440
|
}, 200);
|
|
1432
|
-
},
|
|
1441
|
+
}, r.onmouseleave = (u) => {
|
|
1433
1442
|
setTimeout(() => {
|
|
1434
|
-
|
|
1443
|
+
i && ve();
|
|
1435
1444
|
}, 200);
|
|
1436
1445
|
};
|
|
1437
1446
|
},
|
|
1438
1447
|
// 指令与元素解绑时
|
|
1439
1448
|
unmounted() {
|
|
1440
|
-
ve(), ge.value--, ge.value === 0 && window.removeEventListener("wheel",
|
|
1449
|
+
ve(), ge.value--, ge.value === 0 && window.removeEventListener("wheel", zo);
|
|
1441
1450
|
}
|
|
1442
|
-
},
|
|
1451
|
+
}, Ps = {
|
|
1443
1452
|
"--demo-alert-bg": {
|
|
1444
1453
|
light: "#fff",
|
|
1445
1454
|
dark: "rgba(255,255,255,.2)"
|
|
1446
1455
|
},
|
|
1447
1456
|
"--das-ui-text-tooltip-shadow": "rgba(0, 0, 0, 0.2)",
|
|
1448
1457
|
"--das-ui-text-tooltip-bgcolor": "#fff",
|
|
1449
|
-
"--das-ui-text-tooltip-text-color":
|
|
1458
|
+
"--das-ui-text-tooltip-text-color": kn("--das-ui-color-normal")
|
|
1450
1459
|
};
|
|
1451
|
-
|
|
1460
|
+
Dn(Ps);
|
|
1452
1461
|
export {
|
|
1453
|
-
|
|
1454
|
-
|
|
1462
|
+
zs as default,
|
|
1463
|
+
zs as vDasTooltip
|
|
1455
1464
|
};
|