@das-fed/upf-ui 6.4.0-dev.251 → 6.4.0-dev.252
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/front-end/i18n/front-end-page/dasui_en-US.js +1 -1
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +1 -1
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +1 -1
- package/package.json +3 -3
- package/packages/components/button/index.js +85 -83
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/button/style.css +1 -1
- package/packages/components/button/style.css.gz +0 -0
- package/packages/components/checkbox/index.js +1 -1
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/style.css +1 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/form-item/index.js +471 -466
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/src/type.d.ts +3 -0
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/input/index.js +921 -911
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/src/index.vue.d.ts +2 -1
- package/packages/components/input/src/type.d.ts +2 -2
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/search-form/index.js +3 -3
- 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 +285 -273
- 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/tree-v2/index.js +1409 -1399
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/tree-v2/style.css +1 -1
- package/packages/components/tree-v2/style.css.gz +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { withInstall as
|
|
2
|
-
import { defineComponent as Eo, useCssVars as
|
|
1
|
+
import { withInstall as xs } from "@das-fed/upf-utils/with-install/index";
|
|
2
|
+
import { defineComponent as Eo, useCssVars as ws, useAttrs as En, computed as K, ref as J, onMounted as To, onBeforeMount as Ss, openBlock as ht, createBlock as $o, unref as Vt, mergeProps as Tn, withCtx as Dt, createVNode as lo, createElementVNode as Re, normalizeClass as ze, renderSlot as ee, createElementBlock as St, Fragment as Le, createTextVNode as $n, toDisplayString as Pe, createCommentVNode as Lt, normalizeStyle as Be, nextTick as be, Teleport as Os, getCurrentScope as Cs, onScopeDispose as Es, getCurrentInstance as In, watch as Gt, createSlots as Ts, withDirectives as $s } from "vue";
|
|
3
3
|
import "element-plus/es/components/input/style/css";
|
|
4
4
|
import { ElTooltip as Is, ElInput as Ls } from "element-plus";
|
|
5
5
|
import { currentLang as No, t as Hs, setI18nRule as ks } from "@das-fed/upf-web/packages/i18n/index";
|
|
6
|
-
import { DasScrollbar as
|
|
6
|
+
import { DasScrollbar as As } from "@das-fed/upf-ui/packages/components/scrollbar/index";
|
|
7
7
|
import "element-plus/es/components/tooltip/style/css";
|
|
8
|
-
import { createStyle as
|
|
8
|
+
import { createStyle as Ms } from "@das-fed/upf-utils/style";
|
|
9
9
|
import { useZIndex as Rs } from "@das-fed/upf-utils/hooks/popup-manager/use-zindex"
|
|
10
10
|
import '@das-fed/upf-ui/packages/components/input/style.css';
|
|
11
11
|
;
|
|
12
|
-
const
|
|
12
|
+
const zs = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "das-tooltip-virtual-placeholder"
|
|
15
|
-
},
|
|
15
|
+
}, Ps = ["innerHTML"], Bs = { key: 1 }, Vs = /* @__PURE__ */ Eo({
|
|
16
16
|
__name: "index",
|
|
17
17
|
props: {
|
|
18
18
|
selfPopperClass: { default: "" },
|
|
@@ -29,36 +29,36 @@ const Ps = {
|
|
|
29
29
|
},
|
|
30
30
|
emits: ["show", "hide"],
|
|
31
31
|
setup(t, { expose: e, emit: o }) {
|
|
32
|
-
|
|
33
|
-
v65704ba4:
|
|
32
|
+
ws((v) => ({
|
|
33
|
+
v65704ba4: u.value
|
|
34
34
|
}));
|
|
35
|
-
const n = t, s = o, r =
|
|
36
|
-
const v = "virtual-triggering" in r || "virtualTriggering" in r || r["virtual-triggering"] !== void 0 || r.virtualTriggering !== void 0,
|
|
37
|
-
return v ||
|
|
38
|
-
}),
|
|
35
|
+
const n = t, s = o, r = En(), c = K(() => {
|
|
36
|
+
const v = "virtual-triggering" in r || "virtualTriggering" in r || r["virtual-triggering"] !== void 0 || r.virtualTriggering !== void 0, T = "virtual-ref" in r || "virtualRef" in r || r["virtual-ref"] !== void 0 || r.virtualRef !== void 0;
|
|
37
|
+
return v || T;
|
|
38
|
+
}), l = J(), a = J(!1), u = K(() => Number(n.row)), i = K(() => n.disabled ?? (n.text ? !a.value : !1)), d = K(() => n.content || n.text), f = (v) => {
|
|
39
39
|
a.value = v.target.scrollHeight > v.target.clientHeight;
|
|
40
|
+
}, w = (v) => {
|
|
41
|
+
s("show", v), window.addEventListener("wheel", g);
|
|
42
|
+
}, E = (v) => {
|
|
43
|
+
s("hide", v), window.removeEventListener("wheel", g);
|
|
40
44
|
}, g = (v) => {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
if (!x) return;
|
|
49
|
-
const m = v.clientX, w = v.clientY, S = x == null ? void 0 : x.getBoundingClientRect();
|
|
50
|
-
x && m >= S.left && m <= S.right && w >= S.top && w <= S.bottom || (x.style.display = "none", x.style.opacity = "0", be(() => {
|
|
51
|
-
C();
|
|
45
|
+
const T = document.querySelector('[id^="el-popper-container"]');
|
|
46
|
+
if (!T) return;
|
|
47
|
+
const b = T.querySelector(".das-ui-tooltip-popper");
|
|
48
|
+
if (!b) return;
|
|
49
|
+
const m = v.clientX, S = v.clientY, C = b == null ? void 0 : b.getBoundingClientRect();
|
|
50
|
+
b && m >= C.left && m <= C.right && S >= C.top && S <= C.bottom || (b.style.display = "none", b.style.opacity = "0", be(() => {
|
|
51
|
+
E();
|
|
52
52
|
}));
|
|
53
53
|
};
|
|
54
54
|
return To(() => {
|
|
55
55
|
}), Ss(() => {
|
|
56
|
-
window.removeEventListener("wheel",
|
|
56
|
+
window.removeEventListener("wheel", g);
|
|
57
57
|
}), e({
|
|
58
|
-
$tooltipRef:
|
|
59
|
-
}), (v,
|
|
58
|
+
$tooltipRef: l
|
|
59
|
+
}), (v, T) => (ht(), $o(Vt(Is), Tn({
|
|
60
60
|
ref_key: "$tooltipRef",
|
|
61
|
-
ref:
|
|
61
|
+
ref: l,
|
|
62
62
|
class: "das-ui-tooltip",
|
|
63
63
|
disabled: i.value,
|
|
64
64
|
effect: t.effect,
|
|
@@ -67,25 +67,25 @@ const Ps = {
|
|
|
67
67
|
"hide-after": 100,
|
|
68
68
|
"show-after": 100
|
|
69
69
|
}, v.$attrs, {
|
|
70
|
-
onShow:
|
|
71
|
-
onHide:
|
|
70
|
+
onShow: w,
|
|
71
|
+
onHide: E
|
|
72
72
|
}), {
|
|
73
73
|
content: Dt(() => [
|
|
74
|
-
lo(
|
|
74
|
+
lo(Vt(As), null, {
|
|
75
75
|
default: Dt(() => [
|
|
76
76
|
Re(
|
|
77
77
|
"div",
|
|
78
78
|
{
|
|
79
|
-
class:
|
|
79
|
+
class: ze({ "max-height": t.isMaxheight, "das-popper-content": !0 })
|
|
80
80
|
},
|
|
81
81
|
[
|
|
82
82
|
ee(v.$slots, "content", {}, void 0, !0),
|
|
83
|
-
|
|
83
|
+
d.value && !v.$slots.content ? (ht(), St(
|
|
84
84
|
Le,
|
|
85
85
|
{ key: 0 },
|
|
86
86
|
[
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
$n(
|
|
88
|
+
Pe(d.value),
|
|
89
89
|
1
|
|
90
90
|
/* TEXT */
|
|
91
91
|
)
|
|
@@ -103,7 +103,7 @@ const Ps = {
|
|
|
103
103
|
})
|
|
104
104
|
]),
|
|
105
105
|
default: Dt(() => [
|
|
106
|
-
|
|
106
|
+
c.value ? (ht(), St("span", zs, " ")) : (ht(), St(
|
|
107
107
|
Le,
|
|
108
108
|
{ key: 1 },
|
|
109
109
|
[
|
|
@@ -113,18 +113,18 @@ const Ps = {
|
|
|
113
113
|
"div",
|
|
114
114
|
{
|
|
115
115
|
key: 0,
|
|
116
|
-
onMouseenter:
|
|
117
|
-
class:
|
|
118
|
-
style:
|
|
116
|
+
onMouseenter: T[0] || (T[0] = (b) => f(b)),
|
|
117
|
+
class: ze(`das-tooltip-text-wrap ${t.customClass}`),
|
|
118
|
+
style: Be({ width: n.textWidth })
|
|
119
119
|
},
|
|
120
120
|
[
|
|
121
121
|
t.textHtml ? (ht(), St("div", {
|
|
122
122
|
key: 0,
|
|
123
123
|
innerHTML: t.text
|
|
124
|
-
}, null, 8,
|
|
124
|
+
}, null, 8, Ps)) : (ht(), St(
|
|
125
125
|
"div",
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
Bs,
|
|
127
|
+
Pe(t.text),
|
|
128
128
|
1
|
|
129
129
|
/* TEXT */
|
|
130
130
|
))
|
|
@@ -136,7 +136,7 @@ const Ps = {
|
|
|
136
136
|
{ key: 1 },
|
|
137
137
|
[
|
|
138
138
|
Lt(" 当没有 text 且没有 slot 内容时,提供一个占位元素避免 ElOnlyChild 错误 "),
|
|
139
|
-
|
|
139
|
+
T[1] || (T[1] = Re(
|
|
140
140
|
"span",
|
|
141
141
|
{ class: "das-tooltip-virtual-placeholder" },
|
|
142
142
|
" ",
|
|
@@ -157,12 +157,12 @@ const Ps = {
|
|
|
157
157
|
/* FORWARDED */
|
|
158
158
|
}, 16, ["disabled", "effect", "placement", "popper-class"]));
|
|
159
159
|
}
|
|
160
|
-
}),
|
|
160
|
+
}), Ln = (t, e) => {
|
|
161
161
|
const o = t.__vccOpts || t;
|
|
162
162
|
for (const [n, s] of e)
|
|
163
163
|
o[n] = s;
|
|
164
164
|
return o;
|
|
165
|
-
}, Ds = /* @__PURE__ */
|
|
165
|
+
}, Ds = /* @__PURE__ */ Ln(Vs, [["__scopeId", "data-v-e1652f58"]]), Ws = /* @__PURE__ */ Eo({
|
|
166
166
|
__name: "index",
|
|
167
167
|
props: {
|
|
168
168
|
getEl: {},
|
|
@@ -171,10 +171,10 @@ const Ps = {
|
|
|
171
171
|
errorWidth: { default: void 0 }
|
|
172
172
|
},
|
|
173
173
|
setup(t) {
|
|
174
|
-
const e = t, o =
|
|
174
|
+
const e = t, o = J(null), n = J(), s = J({
|
|
175
175
|
x: 0,
|
|
176
176
|
y: 0
|
|
177
|
-
}), r =
|
|
177
|
+
}), r = K(() => ({
|
|
178
178
|
"box-sizing": "border-box",
|
|
179
179
|
"font-size": "12px",
|
|
180
180
|
// 错误浮层直接消费 upf 根变量,确保 Teleport 到 body 后仍随主题同步。
|
|
@@ -183,60 +183,60 @@ const Ps = {
|
|
|
183
183
|
"border-radius": "var(--upf-border-radius, 4px)",
|
|
184
184
|
padding: "2px 8px",
|
|
185
185
|
"z-index": e.errorModelZIndex
|
|
186
|
-
})),
|
|
187
|
-
const
|
|
186
|
+
})), c = K(() => {
|
|
187
|
+
const u = n.value ?? "0";
|
|
188
188
|
return {
|
|
189
189
|
...r.value,
|
|
190
|
-
width:
|
|
190
|
+
width: u + (/px$/.test(u) ? "" : "px"),
|
|
191
191
|
position: "fixed",
|
|
192
192
|
visibility: "visible",
|
|
193
193
|
top: s.value.y + "px",
|
|
194
194
|
left: s.value.x + "px"
|
|
195
195
|
};
|
|
196
|
-
}),
|
|
196
|
+
}), l = J({
|
|
197
197
|
// display: 'block',
|
|
198
198
|
color: "var(--upf-message-error-text, var(--upf-color-error))",
|
|
199
199
|
"white-space": "break-spaces"
|
|
200
200
|
}), a = () => {
|
|
201
|
-
const
|
|
202
|
-
const
|
|
203
|
-
for (let [
|
|
201
|
+
const u = (S = 0) => {
|
|
202
|
+
const C = document.createElement("div");
|
|
203
|
+
for (let [P, L] of Object.entries({
|
|
204
204
|
...r.value,
|
|
205
|
-
...
|
|
206
|
-
width:
|
|
205
|
+
...l.value,
|
|
206
|
+
width: S + "px"
|
|
207
207
|
}))
|
|
208
|
-
|
|
209
|
-
const
|
|
210
|
-
for (let [
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
const
|
|
214
|
-
return document.body.removeChild(
|
|
208
|
+
C.style[P] = L;
|
|
209
|
+
const H = document.createElement("span");
|
|
210
|
+
for (let [P, L] of Object.entries(l.value))
|
|
211
|
+
H.style[P] = L;
|
|
212
|
+
H.textContent = e.errorLabel, C.appendChild(H), document.body.appendChild(C);
|
|
213
|
+
const V = C.offsetHeight, W = H.offsetWidth;
|
|
214
|
+
return document.body.removeChild(C), { height: V, textWidth: W };
|
|
215
215
|
}, i = () => {
|
|
216
|
-
const
|
|
217
|
-
return
|
|
218
|
-
},
|
|
219
|
-
e.errorWidth ? n.value = e.errorWidth :
|
|
220
|
-
const { left:
|
|
221
|
-
s.value.y = Math.ceil(v + m) >=
|
|
216
|
+
const S = document.documentElement.clientHeight, H = document.documentElement.scrollHeight - S;
|
|
217
|
+
return S - H;
|
|
218
|
+
}, d = e.getEl(), f = (d == null ? void 0 : d.clientWidth) ?? 0, w = u(f), E = w.textWidth;
|
|
219
|
+
e.errorWidth ? n.value = e.errorWidth : E > f ? n.value = E + 2 + 8 + "px" : n.value = f + "px";
|
|
220
|
+
const { left: g = 0, bottom: v = 0, height: T = 0 } = (d == null ? void 0 : d.getBoundingClientRect()) ?? {}, b = i(), m = w.height;
|
|
221
|
+
s.value.y = Math.ceil(v + m) >= b ? v - T - m : v, s.value.x = g;
|
|
222
222
|
};
|
|
223
223
|
return To(async () => {
|
|
224
224
|
await be(), a();
|
|
225
|
-
}), (
|
|
225
|
+
}), (u, i) => (ht(), $o(Os, { to: "body" }, [
|
|
226
226
|
Re(
|
|
227
227
|
"div",
|
|
228
228
|
{
|
|
229
229
|
ref_key: "$errorModel",
|
|
230
230
|
ref: o,
|
|
231
|
-
style:
|
|
231
|
+
style: Be(c.value)
|
|
232
232
|
},
|
|
233
233
|
[
|
|
234
234
|
Re(
|
|
235
235
|
"span",
|
|
236
236
|
{
|
|
237
|
-
style:
|
|
237
|
+
style: Be(l.value)
|
|
238
238
|
},
|
|
239
|
-
|
|
239
|
+
Pe(t.errorLabel),
|
|
240
240
|
5
|
|
241
241
|
/* TEXT, STYLE */
|
|
242
242
|
)
|
|
@@ -258,31 +258,31 @@ const Ps = {
|
|
|
258
258
|
*/
|
|
259
259
|
const Ct = (t, e) => {
|
|
260
260
|
const { o, u: n, _: s } = t;
|
|
261
|
-
let r = o,
|
|
262
|
-
const
|
|
263
|
-
const f = r,
|
|
264
|
-
return (
|
|
261
|
+
let r = o, c;
|
|
262
|
+
const l = (i, d) => {
|
|
263
|
+
const f = r, w = i, E = d || (n ? !n(f, w) : f !== w);
|
|
264
|
+
return (E || s) && (r = w, c = f), [r, E, c];
|
|
265
265
|
};
|
|
266
|
-
return [e ? (i) =>
|
|
267
|
-
}, Io = typeof window < "u", yt = Io ? window : {}, He = Math.max, _s = Math.min, io = Math.round,
|
|
266
|
+
return [e ? (i) => l(e(r, c), i) : l, (i) => [r, !!i, c]];
|
|
267
|
+
}, Io = typeof window < "u", yt = Io ? window : {}, He = Math.max, _s = Math.min, io = Math.round, Hn = yt.cancelAnimationFrame, kn = yt.requestAnimationFrame, ao = yt.setTimeout, uo = yt.clearTimeout, Fe = (t) => typeof yt[t] < "u" ? yt[t] : void 0, Ns = Fe("MutationObserver"), Fo = Fe("IntersectionObserver"), Ve = Fe("ResizeObserver"), fo = Fe("ScrollTimeline"), An = Io && Node.ELEMENT_NODE, { toString: Fs, hasOwnProperty: oo } = Object.prototype, Us = /^\[object (.+)\]$/, we = (t) => t === void 0, Ue = (t) => t === null, js = (t) => we(t) || Ue(t) ? `${t}` : Fs.call(t).replace(Us, "$1").toLowerCase(), Ht = (t) => typeof t == "number", je = (t) => typeof t == "string", Mn = (t) => typeof t == "boolean", kt = (t) => typeof t == "function", Tt = (t) => Array.isArray(t), ye = (t) => typeof t == "object" && !Tt(t) && !Ue(t), Xe = (t) => {
|
|
268
268
|
const e = !!t && t.length, o = Ht(e) && e > -1 && e % 1 == 0;
|
|
269
269
|
return Tt(t) || !kt(t) && o ? e > 0 && ye(t) ? e - 1 in t : !0 : !1;
|
|
270
270
|
}, De = (t) => {
|
|
271
271
|
if (!t || !ye(t) || js(t) !== "object")
|
|
272
272
|
return !1;
|
|
273
273
|
let e;
|
|
274
|
-
const o = "constructor", n = t[o], s = n && n.prototype, r = oo.call(t, o),
|
|
275
|
-
if (n && !r && !
|
|
274
|
+
const o = "constructor", n = t[o], s = n && n.prototype, r = oo.call(t, o), c = s && oo.call(s, "isPrototypeOf");
|
|
275
|
+
if (n && !r && !c)
|
|
276
276
|
return !1;
|
|
277
277
|
for (e in t)
|
|
278
278
|
;
|
|
279
279
|
return we(e) || oo.call(t, e);
|
|
280
280
|
}, me = (t) => {
|
|
281
281
|
const e = HTMLElement;
|
|
282
|
-
return t ? e ? t instanceof e : t.nodeType ===
|
|
282
|
+
return t ? e ? t instanceof e : t.nodeType === An : !1;
|
|
283
283
|
}, Ye = (t) => {
|
|
284
284
|
const e = Element;
|
|
285
|
-
return t ? e ? t instanceof e : t.nodeType ===
|
|
285
|
+
return t ? e ? t instanceof e : t.nodeType === An : !1;
|
|
286
286
|
};
|
|
287
287
|
function G(t, e) {
|
|
288
288
|
if (Xe(t))
|
|
@@ -291,59 +291,59 @@ function G(t, e) {
|
|
|
291
291
|
else t && G(Object.keys(t), (o) => e(t[o], o, t));
|
|
292
292
|
return t;
|
|
293
293
|
}
|
|
294
|
-
const Ze = (t, e) => t.indexOf(e) >= 0,
|
|
294
|
+
const Ze = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), et = (t, e, o) => (!je(e) && Xe(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), Kt = (t) => Array.from(t || []), Rn = (t) => Tt(t) ? t : [t], po = (t) => !!t && !t.length, Uo = (t) => Kt(new Set(t)), xt = (t, e, o) => {
|
|
295
295
|
G(t, (s) => s && s.apply(void 0, e || [])), !o && (t.length = 0);
|
|
296
|
-
},
|
|
296
|
+
}, zn = "paddingTop", Pn = "paddingRight", Bn = "paddingLeft", Vn = "paddingBottom", Dn = "marginLeft", Wn = "marginRight", _n = "marginBottom", Ge = "overflowX", qe = "overflowY", ce = "width", le = "height", ie = "hidden", Nn = "visible", Lo = (t, e, o, n) => {
|
|
297
297
|
if (t && e) {
|
|
298
298
|
let s = !0;
|
|
299
299
|
return G(o, (r) => {
|
|
300
|
-
const
|
|
301
|
-
|
|
300
|
+
const c = t[r], l = e[r];
|
|
301
|
+
c !== l && (s = !1);
|
|
302
302
|
}), s;
|
|
303
303
|
}
|
|
304
304
|
return !1;
|
|
305
|
-
},
|
|
306
|
-
},
|
|
305
|
+
}, Fn = (t, e) => Lo(t, e, ["w", "h"]), Un = (t, e) => Lo(t, e, ["x", "y"]), Xs = (t, e) => Lo(t, e, ["t", "r", "b", "l"]), Et = () => {
|
|
306
|
+
}, D = (t, ...e) => t.bind(0, ...e), Pt = (t) => {
|
|
307
307
|
let e;
|
|
308
|
-
const o = t ? ao :
|
|
308
|
+
const o = t ? ao : kn, n = t ? uo : Hn;
|
|
309
309
|
return [(s) => {
|
|
310
310
|
n(e), e = o(s, kt(t) ? t() : t);
|
|
311
311
|
}, () => n(e)];
|
|
312
|
-
},
|
|
312
|
+
}, jn = (t, e) => {
|
|
313
313
|
let o, n, s, r = Et;
|
|
314
|
-
const { v:
|
|
315
|
-
r(), uo(o), o = n = void 0, r = Et, t.apply(this,
|
|
316
|
-
}, i = (
|
|
317
|
-
r !== Et &&
|
|
314
|
+
const { v: c, p: l, S: a } = e || {}, u = function(E) {
|
|
315
|
+
r(), uo(o), o = n = void 0, r = Et, t.apply(this, E);
|
|
316
|
+
}, i = (w) => a && n ? a(n, w) : w, d = () => {
|
|
317
|
+
r !== Et && u(i(s) || s);
|
|
318
318
|
}, f = function() {
|
|
319
|
-
const
|
|
320
|
-
if (Ht(
|
|
321
|
-
const
|
|
319
|
+
const E = Kt(arguments), g = kt(c) ? c() : c;
|
|
320
|
+
if (Ht(g) && g >= 0) {
|
|
321
|
+
const T = kt(l) ? l() : l, b = Ht(T) && T >= 0, m = g > 0 ? ao : kn, S = g > 0 ? uo : Hn, H = i(E) || E, V = u.bind(0, H);
|
|
322
322
|
r();
|
|
323
|
-
const
|
|
324
|
-
r = () =>
|
|
323
|
+
const W = m(V, g);
|
|
324
|
+
r = () => S(W), b && !o && (o = ao(d, T)), n = s = H;
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
u(E);
|
|
327
327
|
};
|
|
328
|
-
return f.m =
|
|
329
|
-
},
|
|
330
|
-
const
|
|
331
|
-
return (typeof t != "object" || Ue(t)) && !kt(t) && (t = {}), G(
|
|
332
|
-
G(a, (
|
|
333
|
-
const
|
|
334
|
-
if (t ===
|
|
328
|
+
return f.m = d, f;
|
|
329
|
+
}, Xn = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Mt = (t) => t ? Object.keys(t) : [], Y = (t, e, o, n, s, r, c) => {
|
|
330
|
+
const l = [e, o, n, s, r, c];
|
|
331
|
+
return (typeof t != "object" || Ue(t)) && !kt(t) && (t = {}), G(l, (a) => {
|
|
332
|
+
G(a, (u, i) => {
|
|
333
|
+
const d = a[i];
|
|
334
|
+
if (t === d)
|
|
335
335
|
return !0;
|
|
336
|
-
const f = Tt(
|
|
337
|
-
if (
|
|
338
|
-
const
|
|
339
|
-
let
|
|
340
|
-
f && !Tt(
|
|
336
|
+
const f = Tt(d);
|
|
337
|
+
if (d && De(d)) {
|
|
338
|
+
const w = t[i];
|
|
339
|
+
let E = w;
|
|
340
|
+
f && !Tt(w) ? E = [] : !f && !De(w) && (E = {}), t[i] = Y(E, d);
|
|
341
341
|
} else
|
|
342
|
-
t[i] = f ?
|
|
342
|
+
t[i] = f ? d.slice() : d;
|
|
343
343
|
});
|
|
344
344
|
}), t;
|
|
345
|
-
},
|
|
346
|
-
o === void 0 ? delete s[n] : o && De(o) && (s[n] =
|
|
345
|
+
}, Yn = (t, e) => G(Y({}, t), (o, n, s) => {
|
|
346
|
+
o === void 0 ? delete s[n] : o && De(o) && (s[n] = Yn(o));
|
|
347
347
|
}), Ho = (t) => {
|
|
348
348
|
for (const e in t)
|
|
349
349
|
return !1;
|
|
@@ -355,27 +355,27 @@ const Ze = (t, e) => t.indexOf(e) >= 0, Mt = (t, e) => t.concat(e), tt = (t, e,
|
|
|
355
355
|
}, It = (t, e) => {
|
|
356
356
|
G(Yt(e), (o) => t && t.removeAttribute(o));
|
|
357
357
|
}, Ke = (t, e) => {
|
|
358
|
-
const o = Yt(Qe(t, e)), n =
|
|
359
|
-
const
|
|
360
|
-
return G(Yt(r), (a) => c
|
|
358
|
+
const o = Yt(Qe(t, e)), n = D(Ot, t, e), s = (r, c) => {
|
|
359
|
+
const l = new Set(o);
|
|
360
|
+
return G(Yt(r), (a) => l[c](a)), Kt(l).join(" ");
|
|
361
361
|
};
|
|
362
362
|
return {
|
|
363
363
|
O: (r) => n(s(r, "delete")),
|
|
364
364
|
$: (r) => n(s(r, "add")),
|
|
365
365
|
C: (r) => {
|
|
366
|
-
const
|
|
367
|
-
return
|
|
366
|
+
const c = Yt(r);
|
|
367
|
+
return c.reduce((l, a) => l && o.includes(a), c.length > 0);
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
|
-
},
|
|
370
|
+
}, Zn = (t, e, o) => {
|
|
371
371
|
Ke(t, e).O(o);
|
|
372
|
-
}, xe = (t, e, o) => (Ke(t, e).$(o),
|
|
373
|
-
(n ? xe :
|
|
374
|
-
}, Ys = (t, e, o) => Ke(t, e).C(o),
|
|
375
|
-
|
|
376
|
-
}, We = (t, e) => (
|
|
372
|
+
}, xe = (t, e, o) => (Ke(t, e).$(o), D(Zn, t, e, o)), ke = (t, e, o, n) => {
|
|
373
|
+
(n ? xe : Zn)(t, e, o);
|
|
374
|
+
}, Ys = (t, e, o) => Ke(t, e).C(o), Gn = (t) => Ke(t, "class"), ko = (t, e) => {
|
|
375
|
+
Gn(t).O(e);
|
|
376
|
+
}, We = (t, e) => (Gn(t).$(e), D(ko, t, e)), jo = Io && Element.prototype, qn = (t, e) => {
|
|
377
377
|
const o = [], n = e ? Ye(e) && e : document;
|
|
378
|
-
return n ?
|
|
378
|
+
return n ? et(o, n.querySelectorAll(t)) : o;
|
|
379
379
|
}, Zs = (t, e) => {
|
|
380
380
|
const o = e ? Ye(e) && e : document;
|
|
381
381
|
return o ? o.querySelector(t) : null;
|
|
@@ -389,7 +389,7 @@ const Ze = (t, e) => t.indexOf(e) >= 0, Mt = (t, e) => t.concat(e), tt = (t, e,
|
|
|
389
389
|
const e = ae(t);
|
|
390
390
|
e && e.removeChild(t);
|
|
391
391
|
}
|
|
392
|
-
},
|
|
392
|
+
}, Qn = (t, e, o) => {
|
|
393
393
|
if (o && t) {
|
|
394
394
|
let n = e, s;
|
|
395
395
|
return Xe(o) ? (s = document.createDocumentFragment(), G(o, (r) => {
|
|
@@ -397,16 +397,16 @@ const Ze = (t, e) => t.indexOf(e) >= 0, Mt = (t, e) => t.concat(e), tt = (t, e,
|
|
|
397
397
|
})) : s = o, e && (n ? n !== e && (n = n.nextSibling) : n = t.firstChild), t.insertBefore(s, n || null), () => Nt(o);
|
|
398
398
|
}
|
|
399
399
|
return Et;
|
|
400
|
-
}, bt = (t, e) =>
|
|
400
|
+
}, bt = (t, e) => Qn(t, null, e), Xo = (t, e) => Qn(ae(t), t && t.nextSibling, e), ne = (t) => {
|
|
401
401
|
const e = document.createElement("div");
|
|
402
402
|
return Ot(e, "class", t), e;
|
|
403
|
-
},
|
|
403
|
+
}, Kn = (t) => {
|
|
404
404
|
const e = ne();
|
|
405
405
|
return e.innerHTML = t.trim(), G(mo(e), (o) => Nt(o));
|
|
406
|
-
}, qs = /^--/, Yo = (t, e) => t.getPropertyValue(e) || t[e] || "",
|
|
406
|
+
}, qs = /^--/, Yo = (t, e) => t.getPropertyValue(e) || t[e] || "", Ao = (t) => {
|
|
407
407
|
const e = t || 0;
|
|
408
408
|
return isFinite(e) ? e : 0;
|
|
409
|
-
}, Te = (t) =>
|
|
409
|
+
}, Te = (t) => Ao(parseFloat(t || "")), Zo = (t) => `${(Ao(t) * 100).toFixed(3)}%`, go = (t) => `${Ao(t)}px`;
|
|
410
410
|
function ue(t, e) {
|
|
411
411
|
t && G(e, (o, n) => {
|
|
412
412
|
try {
|
|
@@ -421,17 +421,17 @@ function qt(t, e, o) {
|
|
|
421
421
|
let s = n ? "" : {};
|
|
422
422
|
if (t) {
|
|
423
423
|
const r = yt.getComputedStyle(t, o) || t.style;
|
|
424
|
-
s = n ? Yo(r, e) : e.reduce((
|
|
424
|
+
s = n ? Yo(r, e) : e.reduce((c, l) => (c[l] = Yo(r, l), c), s);
|
|
425
425
|
}
|
|
426
426
|
return s;
|
|
427
427
|
}
|
|
428
428
|
const _t = (t) => qt(t, "direction") === "rtl", Go = (t, e, o) => {
|
|
429
|
-
const n = e ? `${e}-` : "", s = o ? `-${o}` : "", r = `${n}top${s}`,
|
|
429
|
+
const n = e ? `${e}-` : "", s = o ? `-${o}` : "", r = `${n}top${s}`, c = `${n}right${s}`, l = `${n}bottom${s}`, a = `${n}left${s}`, u = qt(t, [r, c, l, a]);
|
|
430
430
|
return {
|
|
431
|
-
t: Te(
|
|
432
|
-
r: Te(
|
|
433
|
-
b: Te(
|
|
434
|
-
l: Te(
|
|
431
|
+
t: Te(u[r]),
|
|
432
|
+
r: Te(u[c]),
|
|
433
|
+
b: Te(u[l]),
|
|
434
|
+
l: Te(u[a])
|
|
435
435
|
};
|
|
436
436
|
}, no = (t, e) => `translate${ye(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`}`, Qs = {
|
|
437
437
|
w: 0,
|
|
@@ -439,30 +439,30 @@ const _t = (t) => qt(t, "direction") === "rtl", Go = (t, e, o) => {
|
|
|
439
439
|
}, Je = (t, e) => e ? {
|
|
440
440
|
w: e[`${t}Width`],
|
|
441
441
|
h: e[`${t}Height`]
|
|
442
|
-
} : Qs, Ks = (t) => Je("inner", t || yt), ge =
|
|
442
|
+
} : Qs, Ks = (t) => Je("inner", t || yt), ge = D(Je, "offset"), Jn = D(Je, "client"), bo = D(Je, "scroll"), Mo = (t) => {
|
|
443
443
|
const e = parseFloat(qt(t, ce)) || 0, o = parseFloat(qt(t, le)) || 0;
|
|
444
444
|
return {
|
|
445
445
|
w: e - io(e),
|
|
446
446
|
h: o - io(o)
|
|
447
447
|
};
|
|
448
|
-
}, se = (t) => t.getBoundingClientRect(), yo = (t) => !!(t && (t[le] || t[ce])),
|
|
448
|
+
}, se = (t) => t.getBoundingClientRect(), yo = (t) => !!(t && (t[le] || t[ce])), ts = (t, e) => {
|
|
449
449
|
const o = yo(t);
|
|
450
450
|
return !yo(e) && o;
|
|
451
451
|
}, qo = (t, e, o, n) => {
|
|
452
452
|
G(Yt(e), (s) => {
|
|
453
453
|
t.removeEventListener(s, o, n);
|
|
454
454
|
});
|
|
455
|
-
},
|
|
455
|
+
}, rt = (t, e, o, n) => {
|
|
456
456
|
var s;
|
|
457
|
-
const r = (s = n && n.H) != null ? s : !0,
|
|
457
|
+
const r = (s = n && n.H) != null ? s : !0, c = n && n.I || !1, l = n && n.A || !1, a = {
|
|
458
458
|
passive: r,
|
|
459
|
-
capture:
|
|
459
|
+
capture: c
|
|
460
460
|
};
|
|
461
|
-
return
|
|
462
|
-
const i =
|
|
463
|
-
qo(t,
|
|
461
|
+
return D(xt, Yt(e).map((u) => {
|
|
462
|
+
const i = l ? (d) => {
|
|
463
|
+
qo(t, u, i, c), o(d);
|
|
464
464
|
} : o;
|
|
465
|
-
return t.addEventListener(
|
|
465
|
+
return t.addEventListener(u, i, a), D(qo, t, u, i, c);
|
|
466
466
|
}));
|
|
467
467
|
}, Ro = (t) => t.stopPropagation(), Qo = (t) => t.preventDefault(), Js = {
|
|
468
468
|
x: 0,
|
|
@@ -483,34 +483,34 @@ const _t = (t) => qt(t, "direction") === "rtl", Go = (t, e, o) => {
|
|
|
483
483
|
x: t.scrollLeft,
|
|
484
484
|
y: t.scrollTop
|
|
485
485
|
}), tn = (t, e) => {
|
|
486
|
-
G(
|
|
486
|
+
G(Rn(e), t);
|
|
487
487
|
}, xo = (t) => {
|
|
488
|
-
const e = /* @__PURE__ */ new Map(), o = (r,
|
|
488
|
+
const e = /* @__PURE__ */ new Map(), o = (r, c) => {
|
|
489
489
|
if (r) {
|
|
490
|
-
const
|
|
490
|
+
const l = e.get(r);
|
|
491
491
|
tn((a) => {
|
|
492
|
-
|
|
493
|
-
},
|
|
492
|
+
l && l[a ? "delete" : "clear"](a);
|
|
493
|
+
}, c);
|
|
494
494
|
} else
|
|
495
|
-
e.forEach((
|
|
496
|
-
|
|
495
|
+
e.forEach((l) => {
|
|
496
|
+
l.clear();
|
|
497
497
|
}), e.clear();
|
|
498
|
-
}, n = (r,
|
|
498
|
+
}, n = (r, c) => {
|
|
499
499
|
if (je(r)) {
|
|
500
|
-
const
|
|
501
|
-
return e.set(r,
|
|
502
|
-
kt(i) &&
|
|
503
|
-
},
|
|
500
|
+
const u = e.get(r) || /* @__PURE__ */ new Set();
|
|
501
|
+
return e.set(r, u), tn((i) => {
|
|
502
|
+
kt(i) && u.add(i);
|
|
503
|
+
}, c), D(o, r, c);
|
|
504
504
|
}
|
|
505
|
-
Mn(
|
|
506
|
-
const
|
|
507
|
-
return G(
|
|
508
|
-
const i = r[
|
|
509
|
-
i &&
|
|
510
|
-
}),
|
|
511
|
-
}, s = (r,
|
|
512
|
-
G(Kt(e.get(r)), (
|
|
513
|
-
|
|
505
|
+
Mn(c) && c && o();
|
|
506
|
+
const l = Mt(r), a = [];
|
|
507
|
+
return G(l, (u) => {
|
|
508
|
+
const i = r[u];
|
|
509
|
+
i && et(a, n(u, i));
|
|
510
|
+
}), D(xt, a);
|
|
511
|
+
}, s = (r, c) => {
|
|
512
|
+
G(Kt(e.get(r)), (l) => {
|
|
513
|
+
c && !po(c) ? l.apply(0, c) : l();
|
|
514
514
|
});
|
|
515
515
|
};
|
|
516
516
|
return n(t || {}), [n, o, s];
|
|
@@ -518,7 +518,7 @@ const _t = (t) => qt(t, "direction") === "rtl", Go = (t, e, o) => {
|
|
|
518
518
|
if (kt(o))
|
|
519
519
|
throw 0;
|
|
520
520
|
return o;
|
|
521
|
-
}), on = (t, e) => t ? `${e}`.split(".").reduce((o, n) => o &&
|
|
521
|
+
}), on = (t, e) => t ? `${e}`.split(".").reduce((o, n) => o && Xn(o, n) ? o[n] : void 0, t) : void 0, tr = {
|
|
522
522
|
paddingAbsolute: !1,
|
|
523
523
|
showNativeOverlaidScrollbars: !1,
|
|
524
524
|
update: {
|
|
@@ -541,75 +541,75 @@ const _t = (t) => qt(t, "direction") === "rtl", Go = (t, e, o) => {
|
|
|
541
541
|
clickScroll: !1,
|
|
542
542
|
pointers: ["mouse", "touch", "pen"]
|
|
543
543
|
}
|
|
544
|
-
},
|
|
545
|
-
const o = {}, n = Mt(
|
|
544
|
+
}, es = (t, e) => {
|
|
545
|
+
const o = {}, n = At(Mt(e), Mt(t));
|
|
546
546
|
return G(n, (s) => {
|
|
547
|
-
const r = t[s],
|
|
548
|
-
if (ye(r) && ye(
|
|
549
|
-
Y(o[s] = {},
|
|
550
|
-
else if (
|
|
551
|
-
let
|
|
552
|
-
if (Tt(r) || Tt(
|
|
547
|
+
const r = t[s], c = e[s];
|
|
548
|
+
if (ye(r) && ye(c))
|
|
549
|
+
Y(o[s] = {}, es(r, c)), Ho(o[s]) && delete o[s];
|
|
550
|
+
else if (Xn(e, s) && c !== r) {
|
|
551
|
+
let l = !0;
|
|
552
|
+
if (Tt(r) || Tt(c))
|
|
553
553
|
try {
|
|
554
|
-
en(r) === en(
|
|
554
|
+
en(r) === en(c) && (l = !1);
|
|
555
555
|
} catch {
|
|
556
556
|
}
|
|
557
|
-
|
|
557
|
+
l && (o[s] = c);
|
|
558
558
|
}
|
|
559
559
|
}), o;
|
|
560
|
-
}, nn = (t, e, o) => (n) => [on(t, n), o || on(e, n) !== void 0], Se = "data-overlayscrollbars",
|
|
560
|
+
}, nn = (t, e, o) => (n) => [on(t, n), o || on(e, n) !== void 0], Se = "data-overlayscrollbars", os = "os-environment", er = `${os}-scrollbar-hidden`, ro = `${Se}-initialize`, gt = Se, ns = `${gt}-overflow-x`, ss = `${gt}-overflow-y`, rs = "overflowVisible", or = "scrollbarPressed", wo = "updating", nr = "body", Bt = `${Se}-viewport`, sr = "arrange", cs = "scrollbarHidden", re = rs, So = `${Se}-padding`, rr = re, sn = `${Se}-content`, zo = "os-size-observer", cr = `${zo}-appear`, lr = `${zo}-listener`, ir = "os-trinsic-observer", ar = "os-theme-none", vt = "os-scrollbar", ur = `${vt}-rtl`, dr = `${vt}-horizontal`, fr = `${vt}-vertical`, ls = `${vt}-track`, Po = `${vt}-handle`, pr = `${vt}-visible`, hr = `${vt}-cornerless`, rn = `${vt}-interaction`, cn = `${vt}-unusable`, Oo = `${vt}-auto-hide`, ln = `${Oo}-hidden`, an = `${vt}-wheel`, vr = `${ls}-interactive`, mr = `${Po}-interactive`, is = {}, as = {}, gr = (t) => {
|
|
561
561
|
G(t, (e) => G(e, (o, n) => {
|
|
562
|
-
|
|
562
|
+
is[n] = e[n];
|
|
563
563
|
}));
|
|
564
|
-
},
|
|
565
|
-
const { static: s, instance: r } = t[n], [
|
|
566
|
-
if (
|
|
567
|
-
const i = o ?
|
|
568
|
-
return (a ||
|
|
564
|
+
}, us = (t, e, o) => Mt(t).map((n) => {
|
|
565
|
+
const { static: s, instance: r } = t[n], [c, l, a] = o || [], u = o ? r : s;
|
|
566
|
+
if (u) {
|
|
567
|
+
const i = o ? u(c, l, e) : u(e);
|
|
568
|
+
return (a || as)[n] = i;
|
|
569
569
|
}
|
|
570
|
-
}), fe = (t) =>
|
|
570
|
+
}), fe = (t) => as[t], br = "__osOptionsValidationPlugin", yr = "__osSizeObserverPlugin", xr = (t, e) => {
|
|
571
571
|
const { T: o } = e, [n, s] = t("showNativeOverlaidScrollbars");
|
|
572
572
|
return [n && o.x && o.y, s];
|
|
573
|
-
}, Ne = (t) => t.indexOf(
|
|
573
|
+
}, Ne = (t) => t.indexOf(Nn) === 0, ds = (t, e) => {
|
|
574
574
|
const { D: o } = t, n = (a) => {
|
|
575
|
-
const
|
|
576
|
-
return [
|
|
577
|
-
}, [s, r] = n(Ge), [
|
|
575
|
+
const u = qt(o, a), d = (e ? e[a] : u) === "scroll";
|
|
576
|
+
return [u, d];
|
|
577
|
+
}, [s, r] = n(Ge), [c, l] = n(qe);
|
|
578
578
|
return {
|
|
579
579
|
k: {
|
|
580
580
|
x: s,
|
|
581
|
-
y:
|
|
581
|
+
y: c
|
|
582
582
|
},
|
|
583
583
|
R: {
|
|
584
584
|
x: r,
|
|
585
|
-
y:
|
|
585
|
+
y: l
|
|
586
586
|
}
|
|
587
587
|
};
|
|
588
588
|
}, wr = (t, e, o, n) => {
|
|
589
|
-
const s = e.x || e.y, r = (i,
|
|
590
|
-
const f = Ne(i),
|
|
591
|
-
return [
|
|
592
|
-
}, [
|
|
593
|
-
return n[Ge] =
|
|
594
|
-
},
|
|
589
|
+
const s = e.x || e.y, r = (i, d) => {
|
|
590
|
+
const f = Ne(i), w = f && s ? "hidden" : "", E = d && f && i.replace(`${Nn}-`, "") || w;
|
|
591
|
+
return [d && !f ? i : "", Ne(E) ? "hidden" : E];
|
|
592
|
+
}, [c, l] = r(o.x, e.x), [a, u] = r(o.y, e.y);
|
|
593
|
+
return n[Ge] = l && a ? l : c, n[qe] = u && c ? u : a, ds(t, n);
|
|
594
|
+
}, Bo = "__osScrollbarsHidingPlugin", Sr = "__osClickScrollPlugin";
|
|
595
595
|
let co;
|
|
596
596
|
const Or = () => {
|
|
597
|
-
const t = (m,
|
|
598
|
-
bt(m,
|
|
599
|
-
const
|
|
600
|
-
return
|
|
601
|
-
x:
|
|
602
|
-
y:
|
|
597
|
+
const t = (m, S, C, H) => {
|
|
598
|
+
bt(m, S);
|
|
599
|
+
const V = Jn(S), W = ge(S), P = Mo(C);
|
|
600
|
+
return H && Nt(S), {
|
|
601
|
+
x: W.h - V.h + P.h,
|
|
602
|
+
y: W.w - V.w + P.w
|
|
603
603
|
};
|
|
604
604
|
}, e = (m) => {
|
|
605
|
-
let
|
|
606
|
-
const
|
|
605
|
+
let S = !1;
|
|
606
|
+
const C = We(m, er);
|
|
607
607
|
try {
|
|
608
|
-
|
|
608
|
+
S = qt(m, "scrollbar-width") === "none" || qt(m, "display", "::-webkit-scrollbar") === "none";
|
|
609
609
|
} catch {
|
|
610
610
|
}
|
|
611
|
-
return
|
|
612
|
-
}, o = (m,
|
|
611
|
+
return C(), S;
|
|
612
|
+
}, o = (m, S) => {
|
|
613
613
|
ue(m, {
|
|
614
614
|
[Ge]: ie,
|
|
615
615
|
[qe]: ie,
|
|
@@ -617,22 +617,22 @@ const Or = () => {
|
|
|
617
617
|
}), Ft(m, {
|
|
618
618
|
x: 0
|
|
619
619
|
});
|
|
620
|
-
const
|
|
620
|
+
const C = so(m), H = so(S);
|
|
621
621
|
Ft(m, {
|
|
622
622
|
x: -999
|
|
623
623
|
});
|
|
624
|
-
const
|
|
624
|
+
const V = so(S);
|
|
625
625
|
return {
|
|
626
|
-
i:
|
|
627
|
-
n:
|
|
626
|
+
i: C.x === H.x,
|
|
627
|
+
n: H.x !== V.x
|
|
628
628
|
};
|
|
629
|
-
}, { body: n } = document, r =
|
|
630
|
-
o: t(n, r,
|
|
631
|
-
u:
|
|
632
|
-
},
|
|
633
|
-
x:
|
|
634
|
-
y:
|
|
635
|
-
},
|
|
629
|
+
}, { body: n } = document, r = Kn(`<div class="${os}"><div></div></div>`)[0], c = r.firstChild, [l, , a] = xo(), [u, i] = Ct({
|
|
630
|
+
o: t(n, r, c),
|
|
631
|
+
u: Un
|
|
632
|
+
}, D(t, n, r, c, !0)), [d] = i(), f = e(r), w = {
|
|
633
|
+
x: d.x === 0,
|
|
634
|
+
y: d.y === 0
|
|
635
|
+
}, E = {
|
|
636
636
|
elements: {
|
|
637
637
|
host: null,
|
|
638
638
|
padding: !f,
|
|
@@ -646,89 +646,89 @@ const Or = () => {
|
|
|
646
646
|
nativeScrollbarsOverlaid: !1,
|
|
647
647
|
body: null
|
|
648
648
|
}
|
|
649
|
-
},
|
|
650
|
-
P:
|
|
651
|
-
T:
|
|
649
|
+
}, g = Y({}, tr), v = D(Y, {}, g), T = D(Y, {}, E), b = {
|
|
650
|
+
P: d,
|
|
651
|
+
T: w,
|
|
652
652
|
L: f,
|
|
653
653
|
J: !!fo,
|
|
654
|
-
K: o(r,
|
|
655
|
-
Z:
|
|
656
|
-
G:
|
|
657
|
-
tt: (m) => Y(
|
|
654
|
+
K: o(r, c),
|
|
655
|
+
Z: D(l, "r"),
|
|
656
|
+
G: T,
|
|
657
|
+
tt: (m) => Y(E, m) && T(),
|
|
658
658
|
nt: v,
|
|
659
|
-
ot: (m) => Y(
|
|
660
|
-
st: Y({},
|
|
661
|
-
et: Y({},
|
|
659
|
+
ot: (m) => Y(g, m) && v(),
|
|
660
|
+
st: Y({}, E),
|
|
661
|
+
et: Y({}, g)
|
|
662
662
|
};
|
|
663
663
|
return It(r, "style"), Nt(r), yt.addEventListener("resize", () => {
|
|
664
664
|
let m;
|
|
665
|
-
if (!f && (!
|
|
666
|
-
const
|
|
667
|
-
m = !!(
|
|
665
|
+
if (!f && (!w.x || !w.y)) {
|
|
666
|
+
const S = fe(Bo);
|
|
667
|
+
m = !!(S ? S.Y() : Et)(b, u);
|
|
668
668
|
}
|
|
669
669
|
a("r", [m]);
|
|
670
|
-
}),
|
|
671
|
-
}, wt = () => (co || (co = Or()), co),
|
|
670
|
+
}), b;
|
|
671
|
+
}, wt = () => (co || (co = Or()), co), Vo = (t, e) => kt(e) ? e.apply(0, t) : e, Cr = (t, e, o, n) => {
|
|
672
672
|
const s = we(n) ? o : n;
|
|
673
|
-
return
|
|
674
|
-
},
|
|
675
|
-
const s = we(n) ? o : n, r =
|
|
673
|
+
return Vo(t, s) || e.apply(0, t);
|
|
674
|
+
}, fs = (t, e, o, n) => {
|
|
675
|
+
const s = we(n) ? o : n, r = Vo(t, s);
|
|
676
676
|
return !!r && (me(r) ? r : e.apply(0, t));
|
|
677
677
|
}, Er = (t, e) => {
|
|
678
|
-
const { nativeScrollbarsOverlaid: o, body: n } = e || {}, { T: s, L: r, G:
|
|
679
|
-
return !!
|
|
678
|
+
const { nativeScrollbarsOverlaid: o, body: n } = e || {}, { T: s, L: r, G: c } = wt(), { nativeScrollbarsOverlaid: l, body: a } = c().cancel, u = o ?? l, i = we(n) ? a : n, d = (s.x || s.y) && u, f = t && (Ue(i) ? !r : i);
|
|
679
|
+
return !!d || !!f;
|
|
680
680
|
}, Do = /* @__PURE__ */ new WeakMap(), Tr = (t, e) => {
|
|
681
681
|
Do.set(t, e);
|
|
682
682
|
}, $r = (t) => {
|
|
683
683
|
Do.delete(t);
|
|
684
|
-
},
|
|
684
|
+
}, ps = (t) => Do.get(t), Ir = (t, e, o) => {
|
|
685
685
|
let n = !1;
|
|
686
686
|
const s = o ? /* @__PURE__ */ new WeakMap() : !1, r = () => {
|
|
687
687
|
n = !0;
|
|
688
|
-
},
|
|
688
|
+
}, c = (l) => {
|
|
689
689
|
if (s && o) {
|
|
690
|
-
const a = o.map((
|
|
691
|
-
const [i,
|
|
692
|
-
return [
|
|
690
|
+
const a = o.map((u) => {
|
|
691
|
+
const [i, d] = u || [];
|
|
692
|
+
return [d && i ? (l || qn)(i, t) : [], d];
|
|
693
693
|
});
|
|
694
|
-
G(a, (
|
|
695
|
-
const
|
|
696
|
-
if (t.contains(i) &&
|
|
697
|
-
const
|
|
698
|
-
n ? (
|
|
694
|
+
G(a, (u) => G(u[0], (i) => {
|
|
695
|
+
const d = u[1], f = s.get(i) || [];
|
|
696
|
+
if (t.contains(i) && d) {
|
|
697
|
+
const E = rt(i, d, (g) => {
|
|
698
|
+
n ? (E(), s.delete(i)) : e(g);
|
|
699
699
|
});
|
|
700
|
-
s.set(i,
|
|
700
|
+
s.set(i, et(f, E));
|
|
701
701
|
} else
|
|
702
702
|
xt(f), s.delete(i);
|
|
703
703
|
}));
|
|
704
704
|
}
|
|
705
705
|
};
|
|
706
|
-
return
|
|
706
|
+
return c(), [r, c];
|
|
707
707
|
}, un = (t, e, o, n) => {
|
|
708
708
|
let s = !1;
|
|
709
|
-
const { ct: r, rt:
|
|
709
|
+
const { ct: r, rt: c, lt: l, it: a, ut: u, ft: i } = n || {}, d = jn(() => s && o(!0), {
|
|
710
710
|
v: 33,
|
|
711
711
|
p: 99
|
|
712
|
-
}), [f,
|
|
713
|
-
if (!po(
|
|
714
|
-
const
|
|
715
|
-
let
|
|
716
|
-
if (G(
|
|
717
|
-
const { attributeName:
|
|
712
|
+
}), [f, w] = Ir(t, d, l), E = r || [], g = c || [], v = At(E, g), T = (m, S) => {
|
|
713
|
+
if (!po(S)) {
|
|
714
|
+
const C = u || Et, H = i || Et, V = [], W = [];
|
|
715
|
+
let P = !1, L = !1;
|
|
716
|
+
if (G(S, (I) => {
|
|
717
|
+
const { attributeName: M, target: k, type: p, oldValue: O, addedNodes: j, removedNodes: N } = I, U = p === "attributes", Z = p === "childList", _ = t === k, ot = U && M, nt = ot && Qe(k, M || "") || null, R = ot && O !== nt, Q = Ze(g, M) && R;
|
|
718
718
|
if (e && (Z || !_)) {
|
|
719
|
-
const
|
|
720
|
-
G(j, (
|
|
719
|
+
const st = U && R, ut = st && a && vo(k, a), y = (ut ? !C(k, M, O, nt) : !U || st) && !H(I, !!ut, t, n);
|
|
720
|
+
G(j, (x) => et(V, x)), G(N, (x) => et(V, x)), L = L || y;
|
|
721
721
|
}
|
|
722
|
-
!e && _ &&
|
|
723
|
-
}),
|
|
722
|
+
!e && _ && R && !C(k, M, O, nt) && (et(W, M), P = P || Q);
|
|
723
|
+
}), w((I) => Uo(V).reduce((M, k) => (et(M, qn(I, k)), vo(k, I) ? et(M, k) : M), [])), e)
|
|
724
724
|
return !m && L && o(!1), [!1];
|
|
725
|
-
if (!po(
|
|
726
|
-
const I = [Uo(
|
|
725
|
+
if (!po(W) || P) {
|
|
726
|
+
const I = [Uo(W), P];
|
|
727
727
|
return !m && o.apply(0, I), I;
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
|
-
},
|
|
731
|
-
return [() => (
|
|
730
|
+
}, b = new Ns(D(T, !1));
|
|
731
|
+
return [() => (b.observe(t, {
|
|
732
732
|
attributes: !0,
|
|
733
733
|
attributeOldValue: !0,
|
|
734
734
|
attributeFilter: v,
|
|
@@ -736,192 +736,192 @@ const Or = () => {
|
|
|
736
736
|
childList: e,
|
|
737
737
|
characterData: e
|
|
738
738
|
}), s = !0, () => {
|
|
739
|
-
s && (f(),
|
|
739
|
+
s && (f(), b.disconnect(), s = !1);
|
|
740
740
|
}), () => {
|
|
741
741
|
if (s)
|
|
742
|
-
return
|
|
742
|
+
return d.m(), T(!0, b.takeRecords());
|
|
743
743
|
}];
|
|
744
|
-
},
|
|
745
|
-
const { _t: s, dt: r } = o || {},
|
|
744
|
+
}, hs = (t, e, o) => {
|
|
745
|
+
const { _t: s, dt: r } = o || {}, c = fe(yr), { K: l } = wt(), a = D(_t, t), [u] = Ct({
|
|
746
746
|
o: !1,
|
|
747
747
|
_: !0
|
|
748
748
|
});
|
|
749
749
|
return () => {
|
|
750
|
-
const i = [], f =
|
|
751
|
-
const v =
|
|
752
|
-
let
|
|
750
|
+
const i = [], f = Kn(`<div class="${zo}"><div class="${lr}"></div></div>`)[0], w = f.firstChild, E = (g) => {
|
|
751
|
+
const v = g instanceof ResizeObserverEntry, T = !v && Tt(g);
|
|
752
|
+
let b = !1, m = !1, S = !0;
|
|
753
753
|
if (v) {
|
|
754
|
-
const [
|
|
755
|
-
m =
|
|
756
|
-
} else
|
|
757
|
-
if (s &&
|
|
758
|
-
const
|
|
754
|
+
const [C, , H] = u(g.contentRect), V = yo(C), W = ts(C, H);
|
|
755
|
+
m = !H || W, b = !m && !V, S = !b;
|
|
756
|
+
} else T ? [, S] = g : m = g === !0;
|
|
757
|
+
if (s && S) {
|
|
758
|
+
const C = T ? g[0] : _t(f);
|
|
759
759
|
Ft(f, {
|
|
760
|
-
x: _e(3333333, 3333333,
|
|
760
|
+
x: _e(3333333, 3333333, C && l),
|
|
761
761
|
y: 3333333
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
|
-
|
|
765
|
-
vt:
|
|
766
|
-
ht: !
|
|
764
|
+
b || e({
|
|
765
|
+
vt: T ? g : void 0,
|
|
766
|
+
ht: !T,
|
|
767
767
|
dt: m
|
|
768
768
|
});
|
|
769
769
|
};
|
|
770
|
-
if (
|
|
771
|
-
const
|
|
772
|
-
|
|
773
|
-
|
|
770
|
+
if (Ve) {
|
|
771
|
+
const g = new Ve((v) => E(v.pop()));
|
|
772
|
+
g.observe(w), et(i, () => {
|
|
773
|
+
g.disconnect();
|
|
774
774
|
});
|
|
775
|
-
} else if (
|
|
776
|
-
const [
|
|
777
|
-
|
|
775
|
+
} else if (c) {
|
|
776
|
+
const [g, v] = c(w, E, r);
|
|
777
|
+
et(i, At([We(f, cr), rt(f, "animationstart", g)], v));
|
|
778
778
|
} else
|
|
779
779
|
return Et;
|
|
780
780
|
if (s) {
|
|
781
|
-
const [
|
|
781
|
+
const [g] = Ct({
|
|
782
782
|
o: void 0
|
|
783
783
|
}, a);
|
|
784
|
-
|
|
785
|
-
const
|
|
786
|
-
m && (ko(
|
|
784
|
+
et(i, rt(f, "scroll", (v) => {
|
|
785
|
+
const T = g(), [b, m, S] = T;
|
|
786
|
+
m && (ko(w, "ltr rtl"), We(w, b ? "rtl" : "ltr"), E([!!b, m, S])), Ro(v);
|
|
787
787
|
}));
|
|
788
788
|
}
|
|
789
|
-
return
|
|
789
|
+
return D(xt, et(i, bt(t, f)));
|
|
790
790
|
};
|
|
791
791
|
}, Lr = (t, e) => {
|
|
792
792
|
let o;
|
|
793
793
|
const n = (a) => a.h === 0 || a.isIntersecting || a.intersectionRatio > 0, s = ne(ir), [r] = Ct({
|
|
794
794
|
o: !1
|
|
795
|
-
}),
|
|
795
|
+
}), c = (a, u) => {
|
|
796
796
|
if (a) {
|
|
797
|
-
const i = r(n(a)), [,
|
|
798
|
-
return
|
|
797
|
+
const i = r(n(a)), [, d] = i;
|
|
798
|
+
return d && !u && e(i) && [i];
|
|
799
799
|
}
|
|
800
|
-
},
|
|
800
|
+
}, l = (a, u) => c(u.pop(), a);
|
|
801
801
|
return [() => {
|
|
802
802
|
const a = [];
|
|
803
803
|
if (Fo)
|
|
804
|
-
o = new Fo(
|
|
804
|
+
o = new Fo(D(l, !1), {
|
|
805
805
|
root: t
|
|
806
|
-
}), o.observe(s),
|
|
806
|
+
}), o.observe(s), et(a, () => {
|
|
807
807
|
o.disconnect();
|
|
808
808
|
});
|
|
809
809
|
else {
|
|
810
|
-
const
|
|
810
|
+
const u = () => {
|
|
811
811
|
const i = ge(s);
|
|
812
|
-
|
|
812
|
+
c(i);
|
|
813
813
|
};
|
|
814
|
-
|
|
814
|
+
et(a, hs(s, u)()), u();
|
|
815
815
|
}
|
|
816
|
-
return
|
|
817
|
-
}, () => o &&
|
|
816
|
+
return D(xt, et(a, bt(t, s)));
|
|
817
|
+
}, () => o && l(!0, o.takeRecords())];
|
|
818
818
|
}, Hr = (t, e, o, n) => {
|
|
819
|
-
let s, r,
|
|
820
|
-
const { L: i } = wt(),
|
|
819
|
+
let s, r, c, l, a, u;
|
|
820
|
+
const { L: i } = wt(), d = `[${gt}]`, f = `[${Bt}]`, w = ["tabindex"], E = ["wrap", "cols", "rows"], g = ["id", "class", "style", "open"], { gt: v, bt: T, D: b, wt: m, St: S, V: C, yt: H, Ot: V } = t, W = {
|
|
821
821
|
$t: !1,
|
|
822
822
|
N: _t(v)
|
|
823
|
-
},
|
|
824
|
-
u:
|
|
823
|
+
}, P = wt(), L = fe(Bo), [I] = Ct({
|
|
824
|
+
u: Fn,
|
|
825
825
|
o: {
|
|
826
826
|
w: 0,
|
|
827
827
|
h: 0
|
|
828
828
|
}
|
|
829
829
|
}, () => {
|
|
830
|
-
const
|
|
831
|
-
|
|
832
|
-
const
|
|
833
|
-
return
|
|
834
|
-
w:
|
|
835
|
-
h:
|
|
830
|
+
const h = L && L.M(t, e, W, P, o).W, y = H(re), x = !C && H(sr), $ = x && de(b);
|
|
831
|
+
V(re), C && V(wo, !0);
|
|
832
|
+
const A = x && h && h()[0], z = bo(m), B = bo(b), F = Mo(b);
|
|
833
|
+
return V(re, y), C && V(wo), A && A(), Ft(b, $), {
|
|
834
|
+
w: B.w + z.w + F.w,
|
|
835
|
+
h: B.h + z.h + F.h
|
|
836
836
|
};
|
|
837
|
-
}),
|
|
837
|
+
}), M = S ? E : At(g, E), k = jn(n, {
|
|
838
838
|
v: () => s,
|
|
839
839
|
p: () => r,
|
|
840
|
-
S(
|
|
841
|
-
const [
|
|
842
|
-
return [Mt(
|
|
840
|
+
S(h, y) {
|
|
841
|
+
const [x] = h, [$] = y;
|
|
842
|
+
return [At(Mt(x), Mt($)).reduce((A, z) => (A[z] = x[z] || $[z], A), {})];
|
|
843
843
|
}
|
|
844
|
-
}),
|
|
845
|
-
if (
|
|
846
|
-
const
|
|
847
|
-
Y(
|
|
848
|
-
Ct:
|
|
849
|
-
}), Y(
|
|
850
|
-
N:
|
|
851
|
-
}),
|
|
844
|
+
}), p = (h) => {
|
|
845
|
+
if (C) {
|
|
846
|
+
const y = _t(v);
|
|
847
|
+
Y(h, {
|
|
848
|
+
Ct: u !== y
|
|
849
|
+
}), Y(W, {
|
|
850
|
+
N: y
|
|
851
|
+
}), u = y;
|
|
852
852
|
}
|
|
853
|
-
},
|
|
854
|
-
G(
|
|
855
|
-
if (Ze(
|
|
856
|
-
const
|
|
857
|
-
je(
|
|
853
|
+
}, O = (h) => {
|
|
854
|
+
G(h || w, (y) => {
|
|
855
|
+
if (Ze(w, y)) {
|
|
856
|
+
const x = Qe(T, y);
|
|
857
|
+
je(x) ? Ot(b, y, x) : It(b, y);
|
|
858
858
|
}
|
|
859
859
|
});
|
|
860
|
-
}, j = (
|
|
861
|
-
const [
|
|
862
|
-
xt:
|
|
860
|
+
}, j = (h, y) => {
|
|
861
|
+
const [x, $] = h, A = {
|
|
862
|
+
xt: $
|
|
863
863
|
};
|
|
864
|
-
return Y(
|
|
865
|
-
$t:
|
|
866
|
-
}), !
|
|
867
|
-
}, N = ({ ht:
|
|
868
|
-
const
|
|
869
|
-
ht:
|
|
870
|
-
dt:
|
|
871
|
-
Ct:
|
|
864
|
+
return Y(W, {
|
|
865
|
+
$t: x
|
|
866
|
+
}), !y && n(A), A;
|
|
867
|
+
}, N = ({ ht: h, vt: y, dt: x }) => {
|
|
868
|
+
const A = !(h && !x && !y) && i ? k : n, [z, B] = y || [], F = {
|
|
869
|
+
ht: h || x,
|
|
870
|
+
dt: x,
|
|
871
|
+
Ct: B
|
|
872
872
|
};
|
|
873
|
-
|
|
874
|
-
N:
|
|
875
|
-
}),
|
|
876
|
-
}, U = (
|
|
877
|
-
const [,
|
|
878
|
-
Ht:
|
|
873
|
+
p(F), y && Y(W, {
|
|
874
|
+
N: z
|
|
875
|
+
}), A(F);
|
|
876
|
+
}, U = (h, y) => {
|
|
877
|
+
const [, x] = I(), $ = {
|
|
878
|
+
Ht: x
|
|
879
879
|
};
|
|
880
|
-
return
|
|
881
|
-
}, Z = (
|
|
882
|
-
const
|
|
883
|
-
It:
|
|
880
|
+
return p($), x && !y && (h ? n : k)($), $;
|
|
881
|
+
}, Z = (h, y, x) => {
|
|
882
|
+
const $ = {
|
|
883
|
+
It: y
|
|
884
884
|
};
|
|
885
|
-
return
|
|
886
|
-
}, { Z: _ } =
|
|
885
|
+
return p($), y && !x ? k($) : C || O(h), $;
|
|
886
|
+
}, { Z: _ } = P, [ot, nt] = m ? Lr(T, j) : [], R = !C && hs(T, N, {
|
|
887
887
|
dt: !0,
|
|
888
888
|
_t: !0
|
|
889
|
-
}), [Q,
|
|
890
|
-
rt:
|
|
891
|
-
ct:
|
|
892
|
-
}), ut =
|
|
893
|
-
const
|
|
889
|
+
}), [Q, st] = un(T, !1, Z, {
|
|
890
|
+
rt: g,
|
|
891
|
+
ct: At(g, w)
|
|
892
|
+
}), ut = C && Ve && new Ve((h) => {
|
|
893
|
+
const y = h[h.length - 1].contentRect;
|
|
894
894
|
N({
|
|
895
895
|
ht: !0,
|
|
896
|
-
dt:
|
|
897
|
-
}), a =
|
|
896
|
+
dt: ts(y, a)
|
|
897
|
+
}), a = y;
|
|
898
898
|
});
|
|
899
899
|
return [() => {
|
|
900
|
-
|
|
901
|
-
const
|
|
902
|
-
const [,
|
|
900
|
+
O(), ut && ut.observe(T);
|
|
901
|
+
const h = R && R(), y = ot && ot(), x = Q(), $ = _((A) => {
|
|
902
|
+
const [, z] = I();
|
|
903
903
|
k({
|
|
904
|
-
zt:
|
|
905
|
-
Ht:
|
|
904
|
+
zt: A,
|
|
905
|
+
Ht: z
|
|
906
906
|
});
|
|
907
907
|
});
|
|
908
908
|
return () => {
|
|
909
|
-
ut && ut.disconnect(),
|
|
909
|
+
ut && ut.disconnect(), h && h(), y && y(), l && l(), x(), $();
|
|
910
910
|
};
|
|
911
|
-
}, ({ Et:
|
|
912
|
-
const
|
|
913
|
-
if (
|
|
914
|
-
|
|
915
|
-
const [X, lt] = un(m ||
|
|
916
|
-
ct:
|
|
911
|
+
}, ({ Et: h, At: y, Tt: x }) => {
|
|
912
|
+
const $ = {}, [A] = h("update.ignoreMutation"), [z, B] = h("update.attributes"), [F, q] = h("update.elementEvents"), [it, dt] = h("update.debounce"), tt = q || B, at = y || x, Ut = (X) => kt(A) && A(X);
|
|
913
|
+
if (tt) {
|
|
914
|
+
c && c(), l && l();
|
|
915
|
+
const [X, lt] = un(m || b, !0, U, {
|
|
916
|
+
ct: At(M, z || []),
|
|
917
917
|
lt: F,
|
|
918
|
-
it:
|
|
918
|
+
it: d,
|
|
919
919
|
ft: (ft, pt) => {
|
|
920
920
|
const { target: ct, attributeName: mt } = ft;
|
|
921
|
-
return (!pt && mt && !
|
|
921
|
+
return (!pt && mt && !C ? Gs(ct, d, f) : !1) || !!oe(ct, `.${vt}`) || !!Ut(ft);
|
|
922
922
|
}
|
|
923
923
|
});
|
|
924
|
-
|
|
924
|
+
l = X(), c = lt;
|
|
925
925
|
}
|
|
926
926
|
if (dt)
|
|
927
927
|
if (k.m(), Tt(it)) {
|
|
@@ -929,392 +929,392 @@ const Or = () => {
|
|
|
929
929
|
s = Ht(X) && X, r = Ht(lt) && lt;
|
|
930
930
|
} else Ht(it) ? (s = it, r = !1) : (s = !1, r = !1);
|
|
931
931
|
if (at) {
|
|
932
|
-
const X =
|
|
933
|
-
X && Y(
|
|
932
|
+
const X = st(), lt = nt && nt(), ft = c && c();
|
|
933
|
+
X && Y($, Z(X[0], X[1], at)), lt && Y($, j(lt[0], at)), ft && Y($, U(ft[0], at));
|
|
934
934
|
}
|
|
935
|
-
return
|
|
936
|
-
},
|
|
935
|
+
return p($), $;
|
|
936
|
+
}, W];
|
|
937
937
|
}, kr = (t, e, o, n) => {
|
|
938
|
-
const { G: s, K: r } = wt(), { scrollbars:
|
|
938
|
+
const { G: s, K: r } = wt(), { scrollbars: c } = s(), { slot: l } = c, { gt: a, bt: u, D: i, Dt: d, kt: f, Rt: w, V: E } = e, { scrollbars: g } = d ? {} : t, { slot: v } = g || {}, T = /* @__PURE__ */ new Map(), b = (h) => fo && new fo({
|
|
939
939
|
source: f,
|
|
940
|
-
axis:
|
|
941
|
-
}), m =
|
|
942
|
-
if (
|
|
943
|
-
const F =
|
|
944
|
-
return ho(0, 1, dt /
|
|
940
|
+
axis: h
|
|
941
|
+
}), m = b("x"), S = b("y"), C = fs([a, u, i], () => E && w ? a : u, l, v), H = (h, y) => {
|
|
942
|
+
if (y) {
|
|
943
|
+
const F = h ? ce : le, { Mt: q, Vt: it } = y, dt = se(it)[F], tt = se(q)[F];
|
|
944
|
+
return ho(0, 1, dt / tt || 0);
|
|
945
945
|
}
|
|
946
|
-
const
|
|
947
|
-
return ho(0, 1,
|
|
948
|
-
},
|
|
949
|
-
const
|
|
950
|
-
return 1 /
|
|
951
|
-
},
|
|
946
|
+
const x = h ? "x" : "y", { Lt: $, Pt: A } = o, z = A[x], B = $[x];
|
|
947
|
+
return ho(0, 1, z / (z + B) || 0);
|
|
948
|
+
}, V = (h, y, x, $) => {
|
|
949
|
+
const A = H(x, h);
|
|
950
|
+
return 1 / A * (1 - A) * ($ ? 1 - y : y) || 0;
|
|
951
|
+
}, W = (h, y) => Y(h, y ? {
|
|
952
952
|
clear: ["left"]
|
|
953
|
-
} : {}),
|
|
954
|
-
|
|
955
|
-
(
|
|
956
|
-
|
|
957
|
-
}),
|
|
953
|
+
} : {}), P = (h) => {
|
|
954
|
+
T.forEach((y, x) => {
|
|
955
|
+
(h ? Ze(Rn(h), x) : !0) && (G(y || [], (A) => {
|
|
956
|
+
A && A.cancel();
|
|
957
|
+
}), T.delete(x));
|
|
958
958
|
});
|
|
959
|
-
}, L = (
|
|
960
|
-
const
|
|
961
|
-
|
|
962
|
-
composite:
|
|
963
|
-
}) :
|
|
964
|
-
timeline:
|
|
965
|
-
composite:
|
|
959
|
+
}, L = (h, y, x, $) => {
|
|
960
|
+
const A = T.get(h) || [], z = A.find((B) => B && B.timeline === y);
|
|
961
|
+
z ? z.effect = new KeyframeEffect(h, x, {
|
|
962
|
+
composite: $
|
|
963
|
+
}) : T.set(h, At(A, [h.animate(x, {
|
|
964
|
+
timeline: y,
|
|
965
|
+
composite: $
|
|
966
966
|
})]));
|
|
967
|
-
}, I = (
|
|
968
|
-
const
|
|
969
|
-
G(
|
|
970
|
-
|
|
967
|
+
}, I = (h, y, x) => {
|
|
968
|
+
const $ = x ? We : ko;
|
|
969
|
+
G(h, (A) => {
|
|
970
|
+
$(A.Ut, y);
|
|
971
971
|
});
|
|
972
|
-
},
|
|
973
|
-
G(
|
|
974
|
-
const [
|
|
975
|
-
ue(
|
|
972
|
+
}, M = (h, y) => {
|
|
973
|
+
G(h, (x) => {
|
|
974
|
+
const [$, A] = y(x);
|
|
975
|
+
ue($, A);
|
|
976
976
|
});
|
|
977
|
-
}, k = (
|
|
978
|
-
|
|
979
|
-
const { Vt:
|
|
980
|
-
return [
|
|
981
|
-
[
|
|
977
|
+
}, k = (h, y) => {
|
|
978
|
+
M(h, (x) => {
|
|
979
|
+
const { Vt: $ } = x;
|
|
980
|
+
return [$, {
|
|
981
|
+
[y ? ce : le]: Zo(H(y))
|
|
982
982
|
}];
|
|
983
983
|
});
|
|
984
|
-
},
|
|
985
|
-
const { Lt:
|
|
986
|
-
if (m &&
|
|
987
|
-
G(
|
|
988
|
-
const { Ut:
|
|
989
|
-
L(F,
|
|
990
|
-
transform: Ko(
|
|
984
|
+
}, p = (h, y) => {
|
|
985
|
+
const { Lt: x } = o, $ = y ? x.x : x.y, A = (z, B, F) => no(Zo(V(z, Jo(B, $, F), y, F)), y);
|
|
986
|
+
if (m && S)
|
|
987
|
+
G(h, (z) => {
|
|
988
|
+
const { Ut: B, Vt: F } = z, q = y && _t(B) && r;
|
|
989
|
+
L(F, y ? m : S, W({
|
|
990
|
+
transform: Ko($, q).map((it) => A(z, it, q))
|
|
991
991
|
}, q));
|
|
992
992
|
});
|
|
993
993
|
else {
|
|
994
|
-
const
|
|
995
|
-
|
|
996
|
-
const { Vt: F, Ut: q } =
|
|
994
|
+
const z = de(f);
|
|
995
|
+
M(h, (B) => {
|
|
996
|
+
const { Vt: F, Ut: q } = B;
|
|
997
997
|
return [F, {
|
|
998
|
-
transform:
|
|
998
|
+
transform: A(B, y ? z.x : z.y, y && _t(q) && r)
|
|
999
999
|
}];
|
|
1000
1000
|
});
|
|
1001
1001
|
}
|
|
1002
|
-
},
|
|
1003
|
-
const
|
|
1004
|
-
|
|
1002
|
+
}, O = (h) => E && !w && ae(h) === i, j = [], N = [], U = [], Z = (h, y, x) => {
|
|
1003
|
+
const $ = Mn(x), A = $ ? x : !0, z = $ ? !x : !0;
|
|
1004
|
+
A && I(N, h, y), z && I(U, h, y);
|
|
1005
1005
|
}, _ = () => {
|
|
1006
1006
|
k(N, !0), k(U);
|
|
1007
|
-
}, et = () => {
|
|
1008
|
-
A(N, !0), A(U);
|
|
1009
1007
|
}, ot = () => {
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1008
|
+
p(N, !0), p(U);
|
|
1009
|
+
}, nt = () => {
|
|
1010
|
+
if (E) {
|
|
1011
|
+
const { Lt: h } = o, y = 0.5;
|
|
1012
|
+
if (m && S)
|
|
1013
|
+
G(At(U, N), ({ Ut: x }) => {
|
|
1014
|
+
if (O(x)) {
|
|
1015
|
+
const $ = (A, z, B) => {
|
|
1016
|
+
const F = B && _t(x) && r;
|
|
1017
|
+
L(x, A, W({
|
|
1018
|
+
transform: Ko(z - y, F).map((q) => no(go(q), B))
|
|
1019
1019
|
}, F), "add");
|
|
1020
1020
|
};
|
|
1021
|
-
|
|
1021
|
+
$(m, h.x, !0), $(S, h.y);
|
|
1022
1022
|
} else
|
|
1023
|
-
|
|
1023
|
+
P(x);
|
|
1024
1024
|
});
|
|
1025
1025
|
else {
|
|
1026
|
-
const
|
|
1027
|
-
const { Ut:
|
|
1028
|
-
const
|
|
1026
|
+
const x = de(f), $ = (A) => {
|
|
1027
|
+
const { Ut: z } = A, B = O(z) && z, F = (q, it, dt) => {
|
|
1028
|
+
const tt = Jo(q, it, dt), at = it * tt;
|
|
1029
1029
|
return go(dt ? -at : at);
|
|
1030
1030
|
};
|
|
1031
|
-
return [
|
|
1032
|
-
transform:
|
|
1033
|
-
x: F(
|
|
1034
|
-
y: F(
|
|
1031
|
+
return [B, {
|
|
1032
|
+
transform: B ? no({
|
|
1033
|
+
x: F(x.x, h.x, _t(z) && r),
|
|
1034
|
+
y: F(x.y, h.y)
|
|
1035
1035
|
}) : ""
|
|
1036
1036
|
}];
|
|
1037
1037
|
};
|
|
1038
|
-
|
|
1038
|
+
M(N, $), M(U, $);
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
-
},
|
|
1042
|
-
const
|
|
1043
|
-
Ut:
|
|
1044
|
-
Mt:
|
|
1045
|
-
Vt:
|
|
1041
|
+
}, R = (h) => {
|
|
1042
|
+
const x = ne(`${vt} ${h ? dr : fr}`), $ = ne(ls), A = ne(Po), z = {
|
|
1043
|
+
Ut: x,
|
|
1044
|
+
Mt: $,
|
|
1045
|
+
Vt: A
|
|
1046
1046
|
};
|
|
1047
|
-
return
|
|
1048
|
-
}, Q =
|
|
1049
|
-
return Q(),
|
|
1047
|
+
return et(h ? N : U, z), et(j, [bt(x, $), bt($, A), D(Nt, x), P, n(z, Z, p, h)]), z;
|
|
1048
|
+
}, Q = D(R, !0), st = D(R, !1), ut = () => (bt(C, N[0].Ut), bt(C, U[0].Ut), D(xt, j));
|
|
1049
|
+
return Q(), st(), [{
|
|
1050
1050
|
Bt: _,
|
|
1051
|
-
Nt:
|
|
1052
|
-
jt:
|
|
1051
|
+
Nt: ot,
|
|
1052
|
+
jt: nt,
|
|
1053
1053
|
Ft: Z,
|
|
1054
1054
|
qt: {
|
|
1055
1055
|
J: m,
|
|
1056
1056
|
Wt: N,
|
|
1057
1057
|
Xt: Q,
|
|
1058
|
-
Yt:
|
|
1058
|
+
Yt: D(M, N)
|
|
1059
1059
|
},
|
|
1060
1060
|
Jt: {
|
|
1061
|
-
J:
|
|
1061
|
+
J: S,
|
|
1062
1062
|
Wt: U,
|
|
1063
|
-
Xt:
|
|
1064
|
-
Yt:
|
|
1063
|
+
Xt: st,
|
|
1064
|
+
Yt: D(M, U)
|
|
1065
1065
|
}
|
|
1066
1066
|
}, ut];
|
|
1067
|
-
},
|
|
1067
|
+
}, Ar = (t, e, o) => {
|
|
1068
1068
|
const { bt: n, kt: s, Kt: r } = e;
|
|
1069
|
-
return (
|
|
1070
|
-
const { Ut: i, Mt:
|
|
1071
|
-
const I = "pointerup pointerleave pointercancel lostpointercapture",
|
|
1072
|
-
const { Lt: j } = o, N = ge(
|
|
1069
|
+
return (c, l, a, u) => {
|
|
1070
|
+
const { Ut: i, Mt: d, Vt: f } = c, [w, E] = Pt(333), [g, v] = Pt(), T = D(a, [c], u), b = !!s.scrollBy, m = `client${u ? "X" : "Y"}`, S = u ? ce : le, C = u ? "left" : "top", H = u ? "w" : "h", V = u ? "x" : "y", W = (I) => I.propertyName.indexOf(S) > -1, P = () => {
|
|
1071
|
+
const I = "pointerup pointerleave pointercancel lostpointercapture", M = (k, p) => (O) => {
|
|
1072
|
+
const { Lt: j } = o, N = ge(d)[H] - ge(f)[H], Z = p * O / N * j[V];
|
|
1073
1073
|
Ft(s, {
|
|
1074
|
-
[
|
|
1074
|
+
[V]: k + Z
|
|
1075
1075
|
});
|
|
1076
1076
|
};
|
|
1077
|
-
return
|
|
1078
|
-
const
|
|
1079
|
-
if (N === 0 && U && j[
|
|
1080
|
-
const
|
|
1081
|
-
xt(dt),
|
|
1082
|
-
}, dt = [xe(n, gt, or),
|
|
1077
|
+
return rt(d, "pointerdown", (k) => {
|
|
1078
|
+
const p = oe(k.target, `.${Po}`) === f, O = p ? f : d, j = t.scrollbars, { button: N, isPrimary: U, pointerType: Z } = k, { pointers: _ } = j;
|
|
1079
|
+
if (N === 0 && U && j[p ? "dragScroll" : "clickScroll"] && (_ || []).includes(Z)) {
|
|
1080
|
+
const nt = !p && k.shiftKey, R = D(se, f), Q = D(se, d), st = (tt, at) => (tt || R())[C] - (at || Q())[C], ut = io(se(s)[S]) / ge(s)[H] || 1, h = M(de(s)[V] || 0, 1 / ut), y = k[m], x = R(), $ = Q(), A = x[S], z = st(x, $) + A / 2, B = y - $[C], F = p ? 0 : B - z, q = (tt) => {
|
|
1081
|
+
xt(dt), O.releasePointerCapture(tt.pointerId);
|
|
1082
|
+
}, dt = [xe(n, gt, or), rt(r, I, q), rt(r, "selectstart", (tt) => Qo(tt), {
|
|
1083
1083
|
H: !1
|
|
1084
|
-
}),
|
|
1085
|
-
const at =
|
|
1086
|
-
(
|
|
1084
|
+
}), rt(d, I, q), rt(d, "pointermove", (tt) => {
|
|
1085
|
+
const at = tt[m] - y;
|
|
1086
|
+
(p || nt) && h(F + at);
|
|
1087
1087
|
})];
|
|
1088
|
-
if (
|
|
1089
|
-
|
|
1090
|
-
else if (!
|
|
1091
|
-
const
|
|
1092
|
-
|
|
1088
|
+
if (O.setPointerCapture(k.pointerId), nt)
|
|
1089
|
+
h(F);
|
|
1090
|
+
else if (!p) {
|
|
1091
|
+
const tt = fe(Sr);
|
|
1092
|
+
tt && et(dt, tt(h, st, F, A, B));
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
1095
1095
|
});
|
|
1096
1096
|
};
|
|
1097
1097
|
let L = !0;
|
|
1098
|
-
return
|
|
1099
|
-
|
|
1100
|
-
}),
|
|
1101
|
-
|
|
1102
|
-
}),
|
|
1103
|
-
const { deltaX:
|
|
1104
|
-
|
|
1105
|
-
left:
|
|
1098
|
+
return D(xt, [rt(i, "pointerenter", () => {
|
|
1099
|
+
l(rn, !0);
|
|
1100
|
+
}), rt(i, "pointerleave pointercancel", () => {
|
|
1101
|
+
l(rn, !1);
|
|
1102
|
+
}), rt(i, "wheel", (I) => {
|
|
1103
|
+
const { deltaX: M, deltaY: k, deltaMode: p } = I;
|
|
1104
|
+
b && L && p === 0 && ae(i) === n && s.scrollBy({
|
|
1105
|
+
left: M,
|
|
1106
1106
|
top: k,
|
|
1107
1107
|
behavior: "smooth"
|
|
1108
|
-
}), L = !1,
|
|
1109
|
-
L = !0,
|
|
1108
|
+
}), L = !1, l(an, !0), w(() => {
|
|
1109
|
+
L = !0, l(an);
|
|
1110
1110
|
}), Qo(I);
|
|
1111
1111
|
}, {
|
|
1112
1112
|
H: !1,
|
|
1113
1113
|
I: !0
|
|
1114
|
-
}),
|
|
1115
|
-
if (
|
|
1116
|
-
const
|
|
1117
|
-
|
|
1114
|
+
}), rt(f, "transitionstart", (I) => {
|
|
1115
|
+
if (W(I)) {
|
|
1116
|
+
const M = () => {
|
|
1117
|
+
T(), g(M);
|
|
1118
1118
|
};
|
|
1119
|
-
|
|
1119
|
+
M();
|
|
1120
1120
|
}
|
|
1121
|
-
}),
|
|
1122
|
-
|
|
1123
|
-
}),
|
|
1121
|
+
}), rt(f, "transitionend transitioncancel", (I) => {
|
|
1122
|
+
W(I) && (v(), T());
|
|
1123
|
+
}), rt(i, "mousedown", D(rt, r, "click", Ro, {
|
|
1124
1124
|
A: !0,
|
|
1125
1125
|
I: !0
|
|
1126
1126
|
}), {
|
|
1127
1127
|
I: !0
|
|
1128
|
-
}),
|
|
1128
|
+
}), P(), E, v]);
|
|
1129
1129
|
};
|
|
1130
|
-
},
|
|
1131
|
-
let
|
|
1132
|
-
const [
|
|
1133
|
-
|
|
1134
|
-
}, Z = (
|
|
1135
|
-
if (
|
|
1136
|
-
|
|
1130
|
+
}, Mr = (t, e, o, n, s, r) => {
|
|
1131
|
+
let c, l, a, u, i, d = Et, f = 0;
|
|
1132
|
+
const [w, E] = Pt(), [g, v] = Pt(), [T, b] = Pt(100), [m, S] = Pt(100), [C, H] = Pt(100), [V, W] = Pt(() => f), [P, L] = kr(t, s, n, Ar(e, s, n)), { bt: I, Zt: M, Rt: k } = s, { Ft: p, Bt: O, Nt: j, jt: N } = P, U = (R) => {
|
|
1133
|
+
p(Oo, R, !0), p(Oo, R, !1);
|
|
1134
|
+
}, Z = (R, Q) => {
|
|
1135
|
+
if (W(), R)
|
|
1136
|
+
p(ln);
|
|
1137
1137
|
else {
|
|
1138
|
-
const
|
|
1139
|
-
f > 0 && !Q ?
|
|
1138
|
+
const st = D(p, ln, !0);
|
|
1139
|
+
f > 0 && !Q ? V(st) : st();
|
|
1140
1140
|
}
|
|
1141
|
-
}, _ = (
|
|
1142
|
-
_(
|
|
1143
|
-
},
|
|
1141
|
+
}, _ = (R) => R.pointerType === "mouse", ot = (R) => {
|
|
1142
|
+
_(R) && (u = l, u && Z(!0));
|
|
1143
|
+
}, nt = [b, W, S, H, v, E, () => d(), rt(I, "pointerover", ot, {
|
|
1144
1144
|
A: !0
|
|
1145
|
-
}),
|
|
1146
|
-
_(
|
|
1147
|
-
}),
|
|
1148
|
-
_(
|
|
1149
|
-
|
|
1150
|
-
|
|
1145
|
+
}), rt(I, "pointerenter", ot), rt(I, "pointerleave", (R) => {
|
|
1146
|
+
_(R) && (u = !1, l && Z(!1));
|
|
1147
|
+
}), rt(I, "pointermove", (R) => {
|
|
1148
|
+
_(R) && c && w(() => {
|
|
1149
|
+
b(), Z(!0), m(() => {
|
|
1150
|
+
c && Z(!1);
|
|
1151
1151
|
});
|
|
1152
1152
|
});
|
|
1153
|
-
}),
|
|
1154
|
-
|
|
1155
|
-
j(), a && Z(!0),
|
|
1156
|
-
a && !
|
|
1153
|
+
}), rt(M, "scroll", (R) => {
|
|
1154
|
+
g(() => {
|
|
1155
|
+
j(), a && Z(!0), T(() => {
|
|
1156
|
+
a && !u && Z(!1);
|
|
1157
1157
|
});
|
|
1158
|
-
}), r(
|
|
1158
|
+
}), r(R), N();
|
|
1159
1159
|
})];
|
|
1160
|
-
return [() =>
|
|
1161
|
-
const { tn:
|
|
1160
|
+
return [() => D(xt, et(nt, L())), ({ Et: R, Tt: Q, Gt: st, Qt: ut }) => {
|
|
1161
|
+
const { tn: h, nn: y, sn: x } = ut || {}, { Ct: $, dt: A } = st || {}, { N: z } = o, { T: B } = wt(), { k: F, en: q } = n, [it, dt] = R("showNativeOverlaidScrollbars"), [tt, at] = R("scrollbars.theme"), [Ut, X] = R("scrollbars.visibility"), [lt, ft] = R("scrollbars.autoHide"), [pt, ct] = R("scrollbars.autoHideSuspend"), [mt] = R("scrollbars.autoHideDelay"), [jt, Jt] = R("scrollbars.dragScroll"), [$t, Xt] = R("scrollbars.clickScroll"), [Rt, to] = R("overflow"), zt = A && !Q, eo = q.x || q.y, pe = h || y || $ || Q, Ce = x || X || to, Ee = it && B.x && B.y, he = (ve, te, Wo) => {
|
|
1162
1162
|
const _o = ve.includes("scroll") && (Ut === "visible" || Ut === "auto" && te === "scroll");
|
|
1163
|
-
return
|
|
1163
|
+
return p(pr, _o, Wo), _o;
|
|
1164
1164
|
};
|
|
1165
|
-
if (f = mt,
|
|
1166
|
-
|
|
1165
|
+
if (f = mt, zt && (pt && eo ? (U(!1), d(), C(() => {
|
|
1166
|
+
d = rt(M, "scroll", D(U, !0), {
|
|
1167
1167
|
A: !0
|
|
1168
1168
|
});
|
|
1169
|
-
})) : U(!0)), dt &&
|
|
1169
|
+
})) : U(!0)), dt && p(ar, Ee), at && (p(i), p(tt, !0), i = tt), ct && !pt && U(!0), ft && (c = lt === "move", l = lt === "leave", a = lt !== "never", Z(!a, !0)), Jt && p(mr, jt), Xt && p(vr, $t), Ce) {
|
|
1170
1170
|
const ve = he(Rt.x, F.x, !0), te = he(Rt.y, F.y, !1);
|
|
1171
|
-
|
|
1171
|
+
p(hr, !(ve && te));
|
|
1172
1172
|
}
|
|
1173
|
-
pe && (
|
|
1174
|
-
}, {},
|
|
1173
|
+
pe && (O(), j(), N(), p(cn, !q.x, !0), p(cn, !q.y, !1), p(ur, z && !k));
|
|
1174
|
+
}, {}, P];
|
|
1175
1175
|
}, Rr = (t) => {
|
|
1176
|
-
const e = wt(), { G: o, L: n } = e, { elements: s } = o(), { host: r, padding:
|
|
1176
|
+
const e = wt(), { G: o, L: n } = e, { elements: s } = o(), { host: r, padding: c, viewport: l, content: a } = s, u = me(t), i = u ? {} : t, { elements: d } = i, { host: f, padding: w, viewport: E, content: g } = d || {}, v = u ? t : i.target, T = vo(v, "textarea"), b = v.ownerDocument, m = b.documentElement, S = v === b.body, C = b.defaultView, H = () => b.activeElement, V = (X) => {
|
|
1177
1177
|
X && X.focus && X.focus();
|
|
1178
|
-
},
|
|
1178
|
+
}, W = D(Cr, [v]), P = D(fs, [v]), L = D(Vo, [v]), I = D(ne, ""), M = D(W, I, l), k = D(P, I, a), p = M(E), O = p === v, j = O && S, N = !O && k(g), U = !O && me(p) && p === N, Z = U && !!L(a), _ = Z ? M() : p, ot = Z ? N : k(), R = j ? m : U ? _ : p, Q = T ? W(I, r, f) : v, st = j ? R : Q, ut = U ? ot : N, h = {
|
|
1179
1179
|
gt: v,
|
|
1180
|
-
bt:
|
|
1181
|
-
D:
|
|
1182
|
-
cn: !
|
|
1180
|
+
bt: st,
|
|
1181
|
+
D: R,
|
|
1182
|
+
cn: !O && P(I, c, w),
|
|
1183
1183
|
wt: ut,
|
|
1184
|
-
kt: j ? m :
|
|
1185
|
-
Zt: j ?
|
|
1186
|
-
rn:
|
|
1187
|
-
ln:
|
|
1188
|
-
Kt:
|
|
1189
|
-
St:
|
|
1190
|
-
Rt:
|
|
1191
|
-
Dt:
|
|
1192
|
-
V:
|
|
1184
|
+
kt: j ? m : R,
|
|
1185
|
+
Zt: j ? b : R,
|
|
1186
|
+
rn: S ? m : v,
|
|
1187
|
+
ln: C,
|
|
1188
|
+
Kt: b,
|
|
1189
|
+
St: T,
|
|
1190
|
+
Rt: S,
|
|
1191
|
+
Dt: u,
|
|
1192
|
+
V: O,
|
|
1193
1193
|
an: U,
|
|
1194
|
-
yt: (X) => Ys(
|
|
1195
|
-
Ot: (X, lt) => ke(
|
|
1196
|
-
},
|
|
1197
|
-
const ft =
|
|
1198
|
-
return
|
|
1199
|
-
}, []),
|
|
1200
|
-
It(
|
|
1201
|
-
}], it =
|
|
1202
|
-
let dt =
|
|
1203
|
-
const
|
|
1204
|
-
return [
|
|
1205
|
-
const X =
|
|
1194
|
+
yt: (X) => Ys(R, O ? gt : Bt, X),
|
|
1195
|
+
Ot: (X, lt) => ke(R, O ? gt : Bt, X, lt)
|
|
1196
|
+
}, y = Mt(h).reduce((X, lt) => {
|
|
1197
|
+
const ft = h[lt];
|
|
1198
|
+
return et(X, ft && me(ft) && !ae(ft) ? ft : !1);
|
|
1199
|
+
}, []), x = (X) => X ? Ze(y, X) : null, { gt: $, bt: A, cn: z, D: B, wt: F } = h, q = [() => {
|
|
1200
|
+
It(A, [gt, ro]), It($, ro), S && It(m, [ro, gt]);
|
|
1201
|
+
}], it = T && x(A);
|
|
1202
|
+
let dt = T ? $ : mo([F, B, z, A, $].find((X) => x(X) === !1));
|
|
1203
|
+
const tt = j ? $ : F || B, at = D(xt, q);
|
|
1204
|
+
return [h, () => {
|
|
1205
|
+
const X = H(), lt = (ct) => {
|
|
1206
1206
|
bt(ae(ct), mo(ct)), Nt(ct);
|
|
1207
|
-
}, ft = (ct) => ct ?
|
|
1207
|
+
}, ft = (ct) => ct ? rt(ct, "focusin focusout focus blur", (mt) => {
|
|
1208
1208
|
Ro(mt), mt.stopImmediatePropagation();
|
|
1209
1209
|
}, {
|
|
1210
1210
|
I: !0,
|
|
1211
1211
|
H: !1
|
|
1212
1212
|
}) : Et, pt = ft(X);
|
|
1213
|
-
if (Ot(
|
|
1214
|
-
Xo(
|
|
1215
|
-
})), bt(
|
|
1216
|
-
const ct =
|
|
1217
|
-
It(
|
|
1218
|
-
}]), n && !
|
|
1219
|
-
const ct = "tabindex", mt = Qe(
|
|
1220
|
-
Ot(
|
|
1221
|
-
const jt = () => mt ? Ot(
|
|
1213
|
+
if (Ot(A, gt, O ? "viewport" : "host"), Ot(z, So, ""), Ot(F, sn, ""), O || (Ot(B, Bt, ""), S && xe(m, gt, nr)), it && (Xo($, A), et(q, () => {
|
|
1214
|
+
Xo(A, $), Nt(A);
|
|
1215
|
+
})), bt(tt, dt), bt(A, z), bt(z || A, !O && B), bt(B, F), et(q, [pt, () => {
|
|
1216
|
+
const ct = H(), mt = ft(ct);
|
|
1217
|
+
It(z, So), It(F, sn), It(B, [ns, ss, Bt]), x(F) && lt(F), x(B) && lt(B), x(z) && lt(z), V(ct), mt();
|
|
1218
|
+
}]), n && !O && (xe(B, Bt, cs), et(q, D(It, B, Bt))), !O && C.top === C && X === v) {
|
|
1219
|
+
const ct = "tabindex", mt = Qe(B, ct);
|
|
1220
|
+
Ot(B, ct, "-1"), V(B);
|
|
1221
|
+
const jt = () => mt ? Ot(B, ct, mt) : It(B, ct), Jt = rt(b, "pointerdown keydown", () => {
|
|
1222
1222
|
jt(), Jt();
|
|
1223
1223
|
});
|
|
1224
|
-
|
|
1224
|
+
et(q, [jt, Jt]);
|
|
1225
1225
|
} else
|
|
1226
|
-
|
|
1226
|
+
V(X);
|
|
1227
1227
|
return pt(), dt = 0, at;
|
|
1228
1228
|
}, at];
|
|
1229
|
-
},
|
|
1229
|
+
}, zr = ({ wt: t }) => ({ Gt: e, un: o, Tt: n }) => {
|
|
1230
1230
|
const { xt: s } = e || {}, { $t: r } = o;
|
|
1231
1231
|
t && (s || n) && ue(t, {
|
|
1232
1232
|
[le]: r && "100%"
|
|
1233
1233
|
});
|
|
1234
|
-
},
|
|
1235
|
-
const [r,
|
|
1234
|
+
}, Pr = ({ bt: t, cn: e, D: o, V: n }, s) => {
|
|
1235
|
+
const [r, c] = Ct({
|
|
1236
1236
|
u: Xs,
|
|
1237
1237
|
o: Go()
|
|
1238
|
-
},
|
|
1239
|
-
return ({ Et:
|
|
1240
|
-
let [
|
|
1241
|
-
const { L:
|
|
1242
|
-
(
|
|
1243
|
-
const
|
|
1244
|
-
if (
|
|
1245
|
-
const
|
|
1246
|
-
[
|
|
1247
|
-
[
|
|
1248
|
-
[
|
|
1249
|
-
top:
|
|
1250
|
-
right:
|
|
1251
|
-
left:
|
|
1252
|
-
[ce]:
|
|
1238
|
+
}, D(Go, t, "padding", ""));
|
|
1239
|
+
return ({ Et: l, Gt: a, un: u, Tt: i }) => {
|
|
1240
|
+
let [d, f] = c(i);
|
|
1241
|
+
const { L: w } = wt(), { ht: E, Ht: g, Ct: v } = a || {}, { N: T } = u, [b, m] = l("paddingAbsolute");
|
|
1242
|
+
(E || f || (i || g)) && ([d, f] = r(i));
|
|
1243
|
+
const C = !n && (m || v || f);
|
|
1244
|
+
if (C) {
|
|
1245
|
+
const H = !b || !e && !w, V = d.r + d.l, W = d.t + d.b, P = {
|
|
1246
|
+
[Wn]: H && !T ? -V : 0,
|
|
1247
|
+
[_n]: H ? -W : 0,
|
|
1248
|
+
[Dn]: H && T ? -V : 0,
|
|
1249
|
+
top: H ? -d.t : 0,
|
|
1250
|
+
right: H ? T ? -d.r : "auto" : 0,
|
|
1251
|
+
left: H ? T ? "auto" : -d.l : 0,
|
|
1252
|
+
[ce]: H && `calc(100% + ${V}px)`
|
|
1253
1253
|
}, L = {
|
|
1254
|
-
[
|
|
1255
|
-
[Pn]:
|
|
1256
|
-
[Vn]:
|
|
1257
|
-
[
|
|
1254
|
+
[zn]: H ? d.t : 0,
|
|
1255
|
+
[Pn]: H ? d.r : 0,
|
|
1256
|
+
[Vn]: H ? d.b : 0,
|
|
1257
|
+
[Bn]: H ? d.l : 0
|
|
1258
1258
|
};
|
|
1259
|
-
ue(e || o,
|
|
1260
|
-
cn:
|
|
1261
|
-
fn:
|
|
1262
|
-
j: e ? L : Y({},
|
|
1259
|
+
ue(e || o, P), ue(o, L), Y(s, {
|
|
1260
|
+
cn: d,
|
|
1261
|
+
fn: !H,
|
|
1262
|
+
j: e ? L : Y({}, P, L)
|
|
1263
1263
|
});
|
|
1264
1264
|
}
|
|
1265
1265
|
return {
|
|
1266
|
-
_n:
|
|
1266
|
+
_n: C
|
|
1267
1267
|
};
|
|
1268
1268
|
};
|
|
1269
|
-
},
|
|
1270
|
-
const o = wt(), { bt: n, cn: s, D: r, V:
|
|
1271
|
-
u:
|
|
1269
|
+
}, Br = (t, e) => {
|
|
1270
|
+
const o = wt(), { bt: n, cn: s, D: r, V: c, Ot: l, Rt: a, ln: u } = t, { L: i } = o, d = a && c, f = D(He, 0), w = {
|
|
1271
|
+
u: Fn,
|
|
1272
1272
|
o: {
|
|
1273
1273
|
w: 0,
|
|
1274
1274
|
h: 0
|
|
1275
1275
|
}
|
|
1276
|
-
},
|
|
1277
|
-
u:
|
|
1276
|
+
}, E = {
|
|
1277
|
+
u: Un,
|
|
1278
1278
|
o: {
|
|
1279
1279
|
x: ie,
|
|
1280
1280
|
y: ie
|
|
1281
1281
|
}
|
|
1282
|
-
},
|
|
1283
|
-
const
|
|
1282
|
+
}, g = (L, I) => {
|
|
1283
|
+
const M = yt.devicePixelRatio % 1 !== 0 ? 1 : 0, k = {
|
|
1284
1284
|
w: f(L.w - I.w),
|
|
1285
1285
|
h: f(L.h - I.h)
|
|
1286
1286
|
};
|
|
1287
1287
|
return {
|
|
1288
|
-
w: k.w >
|
|
1289
|
-
h: k.h >
|
|
1288
|
+
w: k.w > M ? k.w : 0,
|
|
1289
|
+
h: k.h > M ? k.h : 0
|
|
1290
1290
|
};
|
|
1291
|
-
}, [v,
|
|
1292
|
-
return ({ Et: L, Gt: I, un:
|
|
1293
|
-
const { ht:
|
|
1294
|
-
let
|
|
1295
|
-
if (Q && i &&
|
|
1296
|
-
|
|
1297
|
-
const [$t, Xt] =
|
|
1298
|
-
$t && $t(), (eo || to || Q) && Xt && !
|
|
1299
|
-
const he = Ks(
|
|
1300
|
-
w: f(He(
|
|
1301
|
-
h: f(He(
|
|
1291
|
+
}, [v, T] = Ct(w, D(Mo, r)), [b, m] = Ct(w, D(bo, r)), [S, C] = Ct(w), [H, V] = Ct(w), [W] = Ct(E), P = fe(Bo);
|
|
1292
|
+
return ({ Et: L, Gt: I, un: M, Tt: k }, { _n: p }) => {
|
|
1293
|
+
const { ht: O, Ht: j, Ct: N, zt: U } = I || {}, Z = P && P.M(t, e, M, o, L), { q: _, W: ot, X: nt } = Z || {}, [R, Q] = xr(L, o), [st, ut] = L("overflow"), h = O || p || j || N || U || Q, y = Ne(st.x), x = Ne(st.y), $ = y || x;
|
|
1294
|
+
let A = T(k), z = m(k), B = C(k), F = V(k), q;
|
|
1295
|
+
if (Q && i && l(cs, !R), h) {
|
|
1296
|
+
$ && l(re, !1);
|
|
1297
|
+
const [$t, Xt] = ot ? ot(q) : [], [Rt, to] = A = v(k), [zt, eo] = z = b(k), pe = Jn(r), Ce = zt, Ee = pe;
|
|
1298
|
+
$t && $t(), (eo || to || Q) && Xt && !R && _ && _(Xt, zt, Rt);
|
|
1299
|
+
const he = Ks(u), ve = {
|
|
1300
|
+
w: f(He(zt.w, Ce.w) + Rt.w),
|
|
1301
|
+
h: f(He(zt.h, Ce.h) + Rt.h)
|
|
1302
1302
|
}, te = {
|
|
1303
|
-
w: f((
|
|
1304
|
-
h: f((
|
|
1303
|
+
w: f((d ? he.w : Ee.w + f(pe.w - zt.w)) + Rt.w),
|
|
1304
|
+
h: f((d ? he.h : Ee.h + f(pe.h - zt.h)) + Rt.h)
|
|
1305
1305
|
};
|
|
1306
|
-
F =
|
|
1306
|
+
F = H(te), B = S(g(ve, te), k);
|
|
1307
1307
|
}
|
|
1308
|
-
const [it, dt] = F, [
|
|
1309
|
-
x:
|
|
1310
|
-
y:
|
|
1311
|
-
}, ct =
|
|
1312
|
-
if (
|
|
1313
|
-
const $t = {}, Xt = wr(t, pt,
|
|
1314
|
-
|
|
1308
|
+
const [it, dt] = F, [tt, at] = B, [Ut, X] = z, [lt, ft] = A, pt = {
|
|
1309
|
+
x: tt.w > 0,
|
|
1310
|
+
y: tt.h > 0
|
|
1311
|
+
}, ct = y && x && (pt.x || pt.y) || y && pt.x && !pt.y || x && pt.y && !pt.x;
|
|
1312
|
+
if (p || N || U || ft || X || dt || at || ut || Q || h) {
|
|
1313
|
+
const $t = {}, Xt = wr(t, pt, st, $t);
|
|
1314
|
+
nt && nt(Xt, M, !!_ && _(Xt, Ut, lt), $t), c ? (Ot(n, ns, $t[Ge]), Ot(n, ss, $t[qe])) : ue(r, $t);
|
|
1315
1315
|
}
|
|
1316
|
-
ke(n, gt,
|
|
1317
|
-
const [jt, Jt] =
|
|
1316
|
+
ke(n, gt, rs, ct), ke(s, So, rr, ct), c || ke(r, Bt, re, $);
|
|
1317
|
+
const [jt, Jt] = W(ds(t).k);
|
|
1318
1318
|
return Y(e, {
|
|
1319
1319
|
k: jt,
|
|
1320
1320
|
Pt: {
|
|
@@ -1322,8 +1322,8 @@ const Or = () => {
|
|
|
1322
1322
|
y: it.h
|
|
1323
1323
|
},
|
|
1324
1324
|
Lt: {
|
|
1325
|
-
x:
|
|
1326
|
-
y:
|
|
1325
|
+
x: tt.w,
|
|
1326
|
+
y: tt.h
|
|
1327
1327
|
},
|
|
1328
1328
|
en: pt
|
|
1329
1329
|
}), {
|
|
@@ -1332,7 +1332,7 @@ const Or = () => {
|
|
|
1332
1332
|
nn: at
|
|
1333
1333
|
};
|
|
1334
1334
|
};
|
|
1335
|
-
},
|
|
1335
|
+
}, Vr = (t) => {
|
|
1336
1336
|
const [e, o, n] = Rr(t), s = {
|
|
1337
1337
|
cn: {
|
|
1338
1338
|
t: 0,
|
|
@@ -1342,13 +1342,13 @@ const Or = () => {
|
|
|
1342
1342
|
},
|
|
1343
1343
|
fn: !1,
|
|
1344
1344
|
j: {
|
|
1345
|
-
[Dn]: 0,
|
|
1346
1345
|
[Wn]: 0,
|
|
1347
|
-
[
|
|
1348
|
-
[
|
|
1346
|
+
[_n]: 0,
|
|
1347
|
+
[Dn]: 0,
|
|
1348
|
+
[zn]: 0,
|
|
1349
1349
|
[Pn]: 0,
|
|
1350
1350
|
[Vn]: 0,
|
|
1351
|
-
[
|
|
1351
|
+
[Bn]: 0
|
|
1352
1352
|
},
|
|
1353
1353
|
Pt: {
|
|
1354
1354
|
x: 0,
|
|
@@ -1366,69 +1366,69 @@ const Or = () => {
|
|
|
1366
1366
|
x: !1,
|
|
1367
1367
|
y: !1
|
|
1368
1368
|
}
|
|
1369
|
-
}, { gt: r, D:
|
|
1369
|
+
}, { gt: r, D: c, V: l } = e, { L: a, T: u } = wt(), i = !a && (u.x || u.y), d = [zr(e), Pr(e, s), Br(e, s)];
|
|
1370
1370
|
return [o, (f) => {
|
|
1371
|
-
const
|
|
1372
|
-
return G(
|
|
1373
|
-
Y(
|
|
1374
|
-
}), v(), Ft(
|
|
1371
|
+
const w = {}, g = i && de(c), v = l ? xe(c, gt, wo) : Et;
|
|
1372
|
+
return G(d, (T) => {
|
|
1373
|
+
Y(w, T(f, w) || {});
|
|
1374
|
+
}), v(), Ft(c, g), !l && Ft(r, 0), w;
|
|
1375
1375
|
}, s, e, n];
|
|
1376
1376
|
}, Dr = (t, e, o, n) => {
|
|
1377
|
-
const s = nn(e, {}), [r,
|
|
1378
|
-
|
|
1379
|
-
}), [
|
|
1380
|
-
const { dn:
|
|
1381
|
-
Et: nn(e,
|
|
1382
|
-
dn:
|
|
1383
|
-
Tt:
|
|
1377
|
+
const s = nn(e, {}), [r, c, l, a, u] = Vr(t), [i, d, f] = Hr(a, l, s, (b) => {
|
|
1378
|
+
T({}, b);
|
|
1379
|
+
}), [w, E, , g] = Mr(t, e, f, l, a, n), v = (b) => Mt(b).some((m) => !!b[m]), T = (b, m) => {
|
|
1380
|
+
const { dn: S, Tt: C, At: H, vn: V } = b, W = S || {}, P = !!C, L = {
|
|
1381
|
+
Et: nn(e, W, P),
|
|
1382
|
+
dn: W,
|
|
1383
|
+
Tt: P
|
|
1384
1384
|
};
|
|
1385
|
-
if (
|
|
1386
|
-
return
|
|
1387
|
-
const I = m ||
|
|
1388
|
-
At:
|
|
1389
|
-
})),
|
|
1385
|
+
if (V)
|
|
1386
|
+
return E(L), !1;
|
|
1387
|
+
const I = m || d(Y({}, L, {
|
|
1388
|
+
At: H
|
|
1389
|
+
})), M = c(Y({}, L, {
|
|
1390
1390
|
un: f,
|
|
1391
1391
|
Gt: I
|
|
1392
1392
|
}));
|
|
1393
|
-
|
|
1393
|
+
E(Y({}, L, {
|
|
1394
1394
|
Gt: I,
|
|
1395
|
-
Qt:
|
|
1395
|
+
Qt: M
|
|
1396
1396
|
}));
|
|
1397
|
-
const k = v(I),
|
|
1398
|
-
return
|
|
1397
|
+
const k = v(I), p = v(M), O = k || p || !Ho(W) || P;
|
|
1398
|
+
return O && o(b, {
|
|
1399
1399
|
Gt: I,
|
|
1400
|
-
Qt:
|
|
1401
|
-
}),
|
|
1400
|
+
Qt: M
|
|
1401
|
+
}), O;
|
|
1402
1402
|
};
|
|
1403
1403
|
return [() => {
|
|
1404
|
-
const { rn:
|
|
1405
|
-
return Ft(m,
|
|
1406
|
-
},
|
|
1404
|
+
const { rn: b, D: m } = a, S = de(b), C = [i(), r(), w()];
|
|
1405
|
+
return Ft(m, S), D(xt, C);
|
|
1406
|
+
}, T, () => ({
|
|
1407
1407
|
hn: f,
|
|
1408
|
-
pn:
|
|
1408
|
+
pn: l
|
|
1409
1409
|
}), {
|
|
1410
1410
|
gn: a,
|
|
1411
|
-
bn:
|
|
1412
|
-
},
|
|
1411
|
+
bn: g
|
|
1412
|
+
}, u];
|
|
1413
1413
|
}, Qt = (t, e, o) => {
|
|
1414
|
-
const { nt: n } = wt(), s = me(t), r = s ? t : t.target,
|
|
1415
|
-
if (e && !
|
|
1416
|
-
let
|
|
1417
|
-
const a = [],
|
|
1418
|
-
const I =
|
|
1419
|
-
return
|
|
1420
|
-
},
|
|
1421
|
-
|
|
1422
|
-
}, [m,
|
|
1423
|
-
const { ht:
|
|
1424
|
-
|
|
1414
|
+
const { nt: n } = wt(), s = me(t), r = s ? t : t.target, c = ps(r);
|
|
1415
|
+
if (e && !c) {
|
|
1416
|
+
let l = !1;
|
|
1417
|
+
const a = [], u = {}, i = (L) => {
|
|
1418
|
+
const I = Yn(L), M = fe(br);
|
|
1419
|
+
return M ? M(I, !0) : I;
|
|
1420
|
+
}, d = Y({}, n(), i(e)), [f, w, E] = xo(), [g, v, T] = xo(o), b = (L, I) => {
|
|
1421
|
+
T(L, I), E(L, I);
|
|
1422
|
+
}, [m, S, C, H, V] = Dr(t, d, ({ dn: L, Tt: I }, { Gt: M, Qt: k }) => {
|
|
1423
|
+
const { ht: p, Ct: O, xt: j, Ht: N, It: U, dt: Z } = M, { tn: _, nn: ot, sn: nt } = k;
|
|
1424
|
+
b("updated", [P, {
|
|
1425
1425
|
updateHints: {
|
|
1426
|
-
sizeChanged: !!
|
|
1427
|
-
directionChanged: !!
|
|
1426
|
+
sizeChanged: !!p,
|
|
1427
|
+
directionChanged: !!O,
|
|
1428
1428
|
heightIntrinsicChanged: !!j,
|
|
1429
1429
|
overflowEdgeChanged: !!_,
|
|
1430
|
-
overflowAmountChanged: !!
|
|
1431
|
-
overflowStyleChanged: !!
|
|
1430
|
+
overflowAmountChanged: !!ot,
|
|
1431
|
+
overflowStyleChanged: !!nt,
|
|
1432
1432
|
contentMutation: !!N,
|
|
1433
1433
|
hostMutation: !!U,
|
|
1434
1434
|
appear: !!Z
|
|
@@ -1436,87 +1436,87 @@ const Or = () => {
|
|
|
1436
1436
|
changedOptions: L || {},
|
|
1437
1437
|
force: !!I
|
|
1438
1438
|
}]);
|
|
1439
|
-
}, (L) =>
|
|
1440
|
-
$r(r), xt(a),
|
|
1441
|
-
},
|
|
1439
|
+
}, (L) => b("scroll", [P, L])), W = (L) => {
|
|
1440
|
+
$r(r), xt(a), l = !0, b("destroyed", [P, L]), w(), v();
|
|
1441
|
+
}, P = {
|
|
1442
1442
|
options(L, I) {
|
|
1443
1443
|
if (L) {
|
|
1444
|
-
const
|
|
1445
|
-
Ho(k) || (Y(
|
|
1444
|
+
const M = I ? n() : {}, k = es(d, Y(M, i(L)));
|
|
1445
|
+
Ho(k) || (Y(d, k), S({
|
|
1446
1446
|
dn: k
|
|
1447
1447
|
}));
|
|
1448
1448
|
}
|
|
1449
|
-
return Y({},
|
|
1449
|
+
return Y({}, d);
|
|
1450
1450
|
},
|
|
1451
|
-
on:
|
|
1451
|
+
on: g,
|
|
1452
1452
|
off: (L, I) => {
|
|
1453
1453
|
L && I && v(L, I);
|
|
1454
1454
|
},
|
|
1455
1455
|
state() {
|
|
1456
|
-
const { hn: L, pn: I } =
|
|
1456
|
+
const { hn: L, pn: I } = C(), { N: M } = L, { Pt: k, Lt: p, k: O, en: j, cn: N, fn: U } = I;
|
|
1457
1457
|
return Y({}, {
|
|
1458
1458
|
overflowEdge: k,
|
|
1459
|
-
overflowAmount:
|
|
1460
|
-
overflowStyle:
|
|
1459
|
+
overflowAmount: p,
|
|
1460
|
+
overflowStyle: O,
|
|
1461
1461
|
hasOverflow: j,
|
|
1462
1462
|
padding: N,
|
|
1463
1463
|
paddingAbsolute: U,
|
|
1464
|
-
directionRTL:
|
|
1465
|
-
destroyed:
|
|
1464
|
+
directionRTL: M,
|
|
1465
|
+
destroyed: l
|
|
1466
1466
|
});
|
|
1467
1467
|
},
|
|
1468
1468
|
elements() {
|
|
1469
|
-
const { gt: L, bt: I, cn:
|
|
1470
|
-
const { Vt:
|
|
1469
|
+
const { gt: L, bt: I, cn: M, D: k, wt: p, kt: O, Zt: j } = H.gn, { qt: N, Jt: U } = H.bn, Z = (ot) => {
|
|
1470
|
+
const { Vt: nt, Mt: R, Ut: Q } = ot;
|
|
1471
1471
|
return {
|
|
1472
1472
|
scrollbar: Q,
|
|
1473
|
-
track:
|
|
1474
|
-
handle:
|
|
1473
|
+
track: R,
|
|
1474
|
+
handle: nt
|
|
1475
1475
|
};
|
|
1476
|
-
}, _ = (
|
|
1477
|
-
const { Wt:
|
|
1476
|
+
}, _ = (ot) => {
|
|
1477
|
+
const { Wt: nt, Xt: R } = ot, Q = Z(nt[0]);
|
|
1478
1478
|
return Y({}, Q, {
|
|
1479
1479
|
clone: () => {
|
|
1480
|
-
const
|
|
1481
|
-
return
|
|
1480
|
+
const st = Z(R());
|
|
1481
|
+
return S({
|
|
1482
1482
|
vn: !0
|
|
1483
|
-
}),
|
|
1483
|
+
}), st;
|
|
1484
1484
|
}
|
|
1485
1485
|
});
|
|
1486
1486
|
};
|
|
1487
1487
|
return Y({}, {
|
|
1488
1488
|
target: L,
|
|
1489
1489
|
host: I,
|
|
1490
|
-
padding:
|
|
1490
|
+
padding: M || k,
|
|
1491
1491
|
viewport: k,
|
|
1492
|
-
content:
|
|
1493
|
-
scrollOffsetElement:
|
|
1492
|
+
content: p || k,
|
|
1493
|
+
scrollOffsetElement: O,
|
|
1494
1494
|
scrollEventElement: j,
|
|
1495
1495
|
scrollbarHorizontal: _(N),
|
|
1496
1496
|
scrollbarVertical: _(U)
|
|
1497
1497
|
});
|
|
1498
1498
|
},
|
|
1499
|
-
update: (L) =>
|
|
1499
|
+
update: (L) => S({
|
|
1500
1500
|
Tt: L,
|
|
1501
1501
|
At: !0
|
|
1502
1502
|
}),
|
|
1503
|
-
destroy: W
|
|
1504
|
-
plugin: (L) =>
|
|
1503
|
+
destroy: D(W, !1),
|
|
1504
|
+
plugin: (L) => u[Mt(L)[0]]
|
|
1505
1505
|
};
|
|
1506
|
-
return
|
|
1506
|
+
return et(a, [V]), Tr(r, P), us(is, Qt, [P, f, u]), Er(H.gn.Rt, !s && t.cancel) ? (W(!0), P) : (et(a, m()), b("initialized", [P]), P.update(!0), P);
|
|
1507
1507
|
}
|
|
1508
|
-
return
|
|
1508
|
+
return c;
|
|
1509
1509
|
};
|
|
1510
1510
|
Qt.plugin = (t) => {
|
|
1511
|
-
const e = Tt(t), o = e ? t : [t], n = o.map((s) =>
|
|
1511
|
+
const e = Tt(t), o = e ? t : [t], n = o.map((s) => us(s, Qt)[0]);
|
|
1512
1512
|
return gr(o), e ? n : n[0];
|
|
1513
1513
|
};
|
|
1514
1514
|
Qt.valid = (t) => {
|
|
1515
1515
|
const e = t && t.elements, o = kt(e) && e();
|
|
1516
|
-
return De(o) && !!
|
|
1516
|
+
return De(o) && !!ps(o.target);
|
|
1517
1517
|
};
|
|
1518
1518
|
Qt.env = () => {
|
|
1519
|
-
const { P: t, T: e, L: o, K: n, J: s, st: r, et:
|
|
1519
|
+
const { P: t, T: e, L: o, K: n, J: s, st: r, et: c, G: l, tt: a, nt: u, ot: i } = wt();
|
|
1520
1520
|
return Y({}, {
|
|
1521
1521
|
scrollbarsSize: t,
|
|
1522
1522
|
scrollbarsOverlaid: e,
|
|
@@ -1524,18 +1524,18 @@ Qt.env = () => {
|
|
|
1524
1524
|
rtlScrollBehavior: n,
|
|
1525
1525
|
scrollTimeline: s,
|
|
1526
1526
|
staticDefaultInitialization: r,
|
|
1527
|
-
staticDefaultOptions:
|
|
1528
|
-
getDefaultInitialization:
|
|
1527
|
+
staticDefaultOptions: c,
|
|
1528
|
+
getDefaultInitialization: l,
|
|
1529
1529
|
setDefaultInitialization: a,
|
|
1530
|
-
getDefaultOptions:
|
|
1530
|
+
getDefaultOptions: u,
|
|
1531
1531
|
setDefaultOptions: i
|
|
1532
1532
|
});
|
|
1533
1533
|
};
|
|
1534
|
-
const
|
|
1534
|
+
const Ae = J(999999), $e = J(380), Wr = "var(--upf-text-tooltip-text, var(--upf-text-primary, #212121))", Co = "var(--upf-text-tooltip-bg, var(--upf-bg-elevated, #ffffff))", dn = "var(--upf-text-tooltip-border, var(--upf-border-color, #D9D9D9))", _r = "var(--upf-border-radius, 4px)", fn = "var(--upf-text-tooltip-shadow-color, rgba(38, 38, 38, 0.16))", Nr = "var(--upf-text-tooltip-scrollbar-thumb, var(--upf-text-disabled, #B2B2B2))", pn = "var(--upf-text-tooltip-scrollbar-thumb-hover, var(--upf-text-secondary, #666666))", Fr = "var(--upf-text-tooltip-scrollbar-padding, 1px)", hn = (t) => {
|
|
1535
1535
|
const e = document.createElement("span"), o = document.createElement("span");
|
|
1536
1536
|
return e.style.position = "absolute", e.style.width = "0", e.style.height = "0", e.style.pointerEvents = "none", e.style.zIndex = "2", o.style.position = "absolute", o.style.width = "0", o.style.height = "0", o.style.pointerEvents = "none", t === "top" ? (e.style.borderLeft = "7px solid transparent", e.style.borderRight = "7px solid transparent", e.style.borderBottom = `7px solid ${dn}`, e.style.top = "-7px", o.style.borderLeft = "6px solid transparent", o.style.borderRight = "6px solid transparent", o.style.borderBottom = `6px solid ${Co}`, o.style.top = "1px", o.style.left = "-6px") : (e.style.borderLeft = "7px solid transparent", e.style.borderRight = "7px solid transparent", e.style.borderTop = `7px solid ${dn}`, e.style.bottom = "-7px", o.style.borderLeft = "6px solid transparent", o.style.borderRight = "6px solid transparent", o.style.borderTop = `6px solid ${Co}`, o.style.bottom = "1px", o.style.left = "-6px"), e.appendChild(o), e;
|
|
1537
1537
|
}, Ur = () => {
|
|
1538
|
-
|
|
1538
|
+
Ms("das-ui-text", [
|
|
1539
1539
|
{
|
|
1540
1540
|
className: ".das-ui-text-context",
|
|
1541
1541
|
style: { position: "relative", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap", "letter-spacing": "-0.1px" }
|
|
@@ -1544,7 +1544,7 @@ const Me = K(999999), $e = K(380), Wr = "var(--upf-text-tooltip-text, var(--upf-
|
|
|
1544
1544
|
className: "#das-ui-text-tooltip",
|
|
1545
1545
|
style: {
|
|
1546
1546
|
position: "fixed",
|
|
1547
|
-
"z-index":
|
|
1547
|
+
"z-index": Ae.value
|
|
1548
1548
|
}
|
|
1549
1549
|
},
|
|
1550
1550
|
{
|
|
@@ -1592,23 +1592,23 @@ const Me = K(999999), $e = K(380), Wr = "var(--upf-text-tooltip-text, var(--upf-
|
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
1594
|
]);
|
|
1595
|
-
},
|
|
1595
|
+
}, vs = (t) => {
|
|
1596
1596
|
window.inTextTooltip = !0, t.stopPropagation();
|
|
1597
|
-
}, Ie =
|
|
1598
|
-
let
|
|
1599
|
-
const
|
|
1597
|
+
}, Ie = J(0);
|
|
1598
|
+
let ms = J(null);
|
|
1599
|
+
const Me = () => {
|
|
1600
1600
|
var o;
|
|
1601
|
-
clearTimeout(
|
|
1601
|
+
clearTimeout(ms.value);
|
|
1602
1602
|
const t = document.getElementById("das-ui-text-tooltip");
|
|
1603
1603
|
t && ((o = document.body) == null || o.removeChild(t)), window.inTextTooltip = !1;
|
|
1604
1604
|
const e = document.getElementById("das-ui-text-tooltip-context");
|
|
1605
|
-
e && e.removeEventListener("mouseover",
|
|
1605
|
+
e && e.removeEventListener("mouseover", vs);
|
|
1606
1606
|
}, vn = (t) => {
|
|
1607
1607
|
let e = document.getElementById("das-ui-text-tooltip");
|
|
1608
1608
|
const o = t.clientX, n = t.clientY, s = e == null ? void 0 : e.getBoundingClientRect();
|
|
1609
1609
|
if (e && o >= s.left && o <= s.right && n >= s.top && n <= s.bottom)
|
|
1610
1610
|
return !0;
|
|
1611
|
-
|
|
1611
|
+
Me();
|
|
1612
1612
|
}, jr = async (t, e) => {
|
|
1613
1613
|
let o = t;
|
|
1614
1614
|
return e.target && (typeof e.target == "string" && (o = e.target), typeof e.target == "function" && (o = await e.target(t))), o;
|
|
@@ -1624,79 +1624,79 @@ const Ae = () => {
|
|
|
1624
1624
|
i.length && (i[0].style.textOverflow = "auto", i[0].style.overflow = "visible");
|
|
1625
1625
|
return;
|
|
1626
1626
|
}
|
|
1627
|
-
let
|
|
1627
|
+
let c = (n == null ? void 0 : n.customContent) || "";
|
|
1628
1628
|
Ie.value === 0 && window.addEventListener("wheel", vn), Ie.value++;
|
|
1629
|
-
let
|
|
1630
|
-
const a =
|
|
1631
|
-
|
|
1632
|
-
let
|
|
1633
|
-
a.contains("das-ui-text-context") || a.add("das-ui-text-context"),
|
|
1634
|
-
const f = i.composedPath()[0], { x:
|
|
1635
|
-
|
|
1636
|
-
const
|
|
1637
|
-
|
|
1638
|
-
let
|
|
1639
|
-
|
|
1640
|
-
const
|
|
1641
|
-
if (I >
|
|
1642
|
-
const
|
|
1629
|
+
let l = await jr(t, n);
|
|
1630
|
+
const a = l.classList;
|
|
1631
|
+
l.dataset.customContent = c;
|
|
1632
|
+
let u = !0;
|
|
1633
|
+
a.contains("das-ui-text-context") || a.add("das-ui-text-context"), l.onmouseenter = (i) => {
|
|
1634
|
+
const f = i.composedPath()[0], { x: w, y: E, width: g, height: v, top: T, left: b, bottom: m, right: S } = f.getBoundingClientRect(), C = window.getComputedStyle(f, null), H = parseFloat(C.getPropertyValue("padding-left"));
|
|
1635
|
+
Ae.value = Rs().nextZIndex();
|
|
1636
|
+
const V = document.createRange();
|
|
1637
|
+
V.setStart(l, 0);
|
|
1638
|
+
let W = s ? l.childNodes.length : 1;
|
|
1639
|
+
V.setEnd(l, W);
|
|
1640
|
+
const P = parseFloat(C.paddingRight), L = parseFloat(C.paddingLeft), I = Math.round(V.getBoundingClientRect().width), M = Math.round(l.getBoundingClientRect().width) - P - L;
|
|
1641
|
+
if (I > M) {
|
|
1642
|
+
const p = (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) - S;
|
|
1643
1643
|
setTimeout(async () => {
|
|
1644
|
-
let
|
|
1645
|
-
if (!
|
|
1646
|
-
|
|
1644
|
+
let O = document.getElementById("das-ui-text-tooltip");
|
|
1645
|
+
if (!O) {
|
|
1646
|
+
O = document.createElement("div"), O.style.cssText = `left: ${w + H}px;`, O.style.zIndex = `${Ae.value}`, O.setAttribute("id", "das-ui-text-tooltip");
|
|
1647
1647
|
const _ = document.createElement("div");
|
|
1648
|
-
_.setAttribute("id", "das-ui-text-tooltip-context"), _ && (_.style.wordBreak = No.value == "zh-CN" ? "break-all" : "normal"), _.addEventListener("mouseover",
|
|
1649
|
-
const
|
|
1650
|
-
|
|
1651
|
-
const
|
|
1652
|
-
if (
|
|
1653
|
-
|
|
1648
|
+
_.setAttribute("id", "das-ui-text-tooltip-context"), _ && (_.style.wordBreak = No.value == "zh-CN" ? "break-all" : "normal"), _.addEventListener("mouseover", vs);
|
|
1649
|
+
const ot = document.createElement("div");
|
|
1650
|
+
ot.setAttribute("id", "tooltip-scroll-content"), _.appendChild(ot), O.appendChild(_), document.body.appendChild(O);
|
|
1651
|
+
const nt = "os-theme-dark das-scrollbar", R = document.getElementById("tooltip-scroll-content");
|
|
1652
|
+
if (R) {
|
|
1653
|
+
R.innerHTML = l.dataset.customContent || l.innerHTML;
|
|
1654
1654
|
const Q = {
|
|
1655
1655
|
scrollbars: {
|
|
1656
1656
|
autoHide: "leave",
|
|
1657
1657
|
autoHideDelay: 0,
|
|
1658
|
-
theme:
|
|
1658
|
+
theme: nt
|
|
1659
1659
|
},
|
|
1660
1660
|
overflow: { y: "scroll" }
|
|
1661
1661
|
};
|
|
1662
|
-
|
|
1662
|
+
l.dataset.customContent ? ms.value = setTimeout(() => {
|
|
1663
1663
|
Qt(_, Q);
|
|
1664
1664
|
}, 10) : Qt(_, Q);
|
|
1665
1665
|
}
|
|
1666
1666
|
}
|
|
1667
|
-
const j =
|
|
1667
|
+
const j = O.querySelector('[data-tooltip-arrow="true"]');
|
|
1668
1668
|
j == null || j.remove();
|
|
1669
1669
|
const N = hn("bottom");
|
|
1670
|
-
if (N.setAttribute("data-tooltip-arrow", "true"), N.style.left = "14px",
|
|
1671
|
-
let _ =
|
|
1672
|
-
|
|
1670
|
+
if (N.setAttribute("data-tooltip-arrow", "true"), N.style.left = "14px", p + g <= $e.value) {
|
|
1671
|
+
let _ = O.offsetWidth >= $e.value ? $e.value : O.offsetWidth;
|
|
1672
|
+
O.style.cssText = `left: ${w + H - _ / 4}px;`, O.style.zIndex = `${Ae.value}`, N.style.left = `${_ / 2}px`;
|
|
1673
1673
|
}
|
|
1674
|
-
|
|
1675
|
-
let U =
|
|
1674
|
+
O.appendChild(N);
|
|
1675
|
+
let U = l.dataset.customContent && No.value != "zh-CN" ? O.offsetHeight - 10 : O.offsetHeight, Z = E - 10 - U;
|
|
1676
1676
|
if (Z * 1 < 0) {
|
|
1677
|
-
|
|
1677
|
+
O.style.top = `${m + 5}px`, N.remove();
|
|
1678
1678
|
const _ = hn("top");
|
|
1679
|
-
_.setAttribute("data-tooltip-arrow", "true"), _.style.left =
|
|
1679
|
+
_.setAttribute("data-tooltip-arrow", "true"), _.style.left = p + g <= $e.value ? N.style.left : "14px", O.appendChild(_), O.style.boxShadow = `0px -4px 10px 0px ${fn}`;
|
|
1680
1680
|
} else
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
},
|
|
1685
|
-
|
|
1686
|
-
|
|
1681
|
+
O.style.top = `${Z}px`, O.style.boxShadow = `0px 4px 10px 0px ${fn}`;
|
|
1682
|
+
O.onmouseenter = (_) => {
|
|
1683
|
+
u = !1;
|
|
1684
|
+
}, O.onmouseleave = (_) => {
|
|
1685
|
+
u = !0, setTimeout(() => {
|
|
1686
|
+
Me();
|
|
1687
1687
|
}, 200);
|
|
1688
1688
|
};
|
|
1689
1689
|
}, 200);
|
|
1690
1690
|
}
|
|
1691
|
-
},
|
|
1691
|
+
}, l.onmouseleave = (i) => {
|
|
1692
1692
|
setTimeout(() => {
|
|
1693
|
-
|
|
1693
|
+
u && Me();
|
|
1694
1694
|
}, 200);
|
|
1695
1695
|
};
|
|
1696
1696
|
},
|
|
1697
1697
|
// 指令与元素解绑时
|
|
1698
1698
|
unmounted() {
|
|
1699
|
-
|
|
1699
|
+
Me(), Ie.value--, Ie.value === 0 && window.removeEventListener("wheel", vn);
|
|
1700
1700
|
}
|
|
1701
1701
|
}, Yr = ["auto", "fit-content", "inherit", "initial", "max-content", "min-content", "revert", "unset", "-webkit-fill-available"], Zr = (t) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(t), Gr = (t) => {
|
|
1702
1702
|
if (t)
|
|
@@ -1739,43 +1739,43 @@ const Ae = () => {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
};
|
|
1741
1741
|
var bn;
|
|
1742
|
-
const
|
|
1742
|
+
const gs = typeof window < "u", qr = (t) => typeof t == "string", Qr = () => {
|
|
1743
1743
|
};
|
|
1744
|
-
|
|
1745
|
-
function
|
|
1746
|
-
return typeof t == "function" ? t() :
|
|
1744
|
+
gs && ((bn = window == null ? void 0 : window.navigator) != null && bn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1745
|
+
function bs(t) {
|
|
1746
|
+
return typeof t == "function" ? t() : Vt(t);
|
|
1747
1747
|
}
|
|
1748
1748
|
function Kr(t) {
|
|
1749
1749
|
return t;
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1751
|
+
function ys(t) {
|
|
1752
1752
|
return Cs() ? (Es(t), !0) : !1;
|
|
1753
1753
|
}
|
|
1754
1754
|
function Jr(t, e = !0) {
|
|
1755
|
-
|
|
1755
|
+
In() ? To(t) : e ? t() : be(t);
|
|
1756
1756
|
}
|
|
1757
1757
|
function Zt(t) {
|
|
1758
1758
|
var e;
|
|
1759
|
-
const o =
|
|
1759
|
+
const o = bs(t);
|
|
1760
1760
|
return (e = o == null ? void 0 : o.$el) != null ? e : o;
|
|
1761
1761
|
}
|
|
1762
|
-
const Oe =
|
|
1762
|
+
const Oe = gs ? window : void 0;
|
|
1763
1763
|
function Wt(...t) {
|
|
1764
1764
|
let e, o, n, s;
|
|
1765
1765
|
if (qr(t[0]) || Array.isArray(t[0]) ? ([o, n, s] = t, e = Oe) : [e, o, n, s] = t, !e)
|
|
1766
1766
|
return Qr;
|
|
1767
1767
|
Array.isArray(o) || (o = [o]), Array.isArray(n) || (n = [n]);
|
|
1768
|
-
const r = [],
|
|
1768
|
+
const r = [], c = () => {
|
|
1769
1769
|
r.forEach((i) => i()), r.length = 0;
|
|
1770
|
-
},
|
|
1771
|
-
|
|
1772
|
-
}, { immediate: !0, flush: "post" }),
|
|
1773
|
-
a(),
|
|
1770
|
+
}, l = (i, d, f, w) => (i.addEventListener(d, f, w), () => i.removeEventListener(d, f, w)), a = Gt(() => [Zt(e), bs(s)], ([i, d]) => {
|
|
1771
|
+
c(), i && r.push(...o.flatMap((f) => n.map((w) => l(i, f, w, d))));
|
|
1772
|
+
}, { immediate: !0, flush: "post" }), u = () => {
|
|
1773
|
+
a(), c();
|
|
1774
1774
|
};
|
|
1775
|
-
return
|
|
1775
|
+
return ys(u), u;
|
|
1776
1776
|
}
|
|
1777
1777
|
function tc(t, e = !1) {
|
|
1778
|
-
const o =
|
|
1778
|
+
const o = J(), n = () => o.value = !!t();
|
|
1779
1779
|
return n(), Jr(n, e), o;
|
|
1780
1780
|
}
|
|
1781
1781
|
const yn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, xn = "__vueuse_ssr_handlers__";
|
|
@@ -1791,52 +1791,52 @@ var wn = Object.getOwnPropertySymbols, ec = Object.prototype.hasOwnProperty, oc
|
|
|
1791
1791
|
};
|
|
1792
1792
|
function sc(t, e, o = {}) {
|
|
1793
1793
|
const n = o, { window: s = Oe } = n, r = nc(n, ["window"]);
|
|
1794
|
-
let
|
|
1795
|
-
const
|
|
1796
|
-
|
|
1797
|
-
},
|
|
1798
|
-
a(),
|
|
1794
|
+
let c;
|
|
1795
|
+
const l = tc(() => s && "ResizeObserver" in s), a = () => {
|
|
1796
|
+
c && (c.disconnect(), c = void 0);
|
|
1797
|
+
}, u = Gt(() => Zt(t), (d) => {
|
|
1798
|
+
a(), l.value && s && d && (c = new ResizeObserver(e), c.observe(d, r));
|
|
1799
1799
|
}, { immediate: !0, flush: "post" }), i = () => {
|
|
1800
|
-
a(),
|
|
1800
|
+
a(), u();
|
|
1801
1801
|
};
|
|
1802
|
-
return
|
|
1803
|
-
isSupported:
|
|
1802
|
+
return ys(i), {
|
|
1803
|
+
isSupported: l,
|
|
1804
1804
|
stop: i
|
|
1805
1805
|
};
|
|
1806
1806
|
}
|
|
1807
1807
|
function rc(t, e = { width: 0, height: 0 }, o = {}) {
|
|
1808
|
-
const { window: n = Oe, box: s = "content-box" } = o, r =
|
|
1809
|
-
var a,
|
|
1810
|
-
return (
|
|
1811
|
-
}),
|
|
1808
|
+
const { window: n = Oe, box: s = "content-box" } = o, r = K(() => {
|
|
1809
|
+
var a, u;
|
|
1810
|
+
return (u = (a = Zt(t)) == null ? void 0 : a.namespaceURI) == null ? void 0 : u.includes("svg");
|
|
1811
|
+
}), c = J(e.width), l = J(e.height);
|
|
1812
1812
|
return sc(t, ([a]) => {
|
|
1813
|
-
const
|
|
1813
|
+
const u = s === "border-box" ? a.borderBoxSize : s === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
|
|
1814
1814
|
if (n && r.value) {
|
|
1815
1815
|
const i = Zt(t);
|
|
1816
1816
|
if (i) {
|
|
1817
|
-
const
|
|
1818
|
-
|
|
1817
|
+
const d = n.getComputedStyle(i);
|
|
1818
|
+
c.value = parseFloat(d.width), l.value = parseFloat(d.height);
|
|
1819
1819
|
}
|
|
1820
|
-
} else if (
|
|
1821
|
-
const i = Array.isArray(
|
|
1822
|
-
|
|
1820
|
+
} else if (u) {
|
|
1821
|
+
const i = Array.isArray(u) ? u : [u];
|
|
1822
|
+
c.value = i.reduce((d, { inlineSize: f }) => d + f, 0), l.value = i.reduce((d, { blockSize: f }) => d + f, 0);
|
|
1823
1823
|
} else
|
|
1824
|
-
|
|
1824
|
+
c.value = a.contentRect.width, l.value = a.contentRect.height;
|
|
1825
1825
|
}, o), Gt(() => Zt(t), (a) => {
|
|
1826
|
-
|
|
1826
|
+
c.value = a ? e.width : 0, l.value = a ? e.height : 0;
|
|
1827
1827
|
}), {
|
|
1828
|
-
width:
|
|
1829
|
-
height:
|
|
1828
|
+
width: c,
|
|
1829
|
+
height: l
|
|
1830
1830
|
};
|
|
1831
1831
|
}
|
|
1832
1832
|
function cc(t, e = {}) {
|
|
1833
|
-
const { initialValue: o = !1 } = e, n =
|
|
1833
|
+
const { initialValue: o = !1 } = e, n = J(!1), s = K(() => Zt(t));
|
|
1834
1834
|
Wt(s, "focus", () => n.value = !0), Wt(s, "blur", () => n.value = !1);
|
|
1835
|
-
const r =
|
|
1835
|
+
const r = K({
|
|
1836
1836
|
get: () => n.value,
|
|
1837
|
-
set(
|
|
1838
|
-
var
|
|
1839
|
-
!
|
|
1837
|
+
set(c) {
|
|
1838
|
+
var l, a;
|
|
1839
|
+
!c && n.value ? (l = s.value) == null || l.blur() : c && !n.value && ((a = s.value) == null || a.focus());
|
|
1840
1840
|
}
|
|
1841
1841
|
});
|
|
1842
1842
|
return Gt(s, () => {
|
|
@@ -1850,57 +1850,57 @@ function lc(t = {}) {
|
|
|
1850
1850
|
resetOnTouchEnds: n = !1,
|
|
1851
1851
|
initialValue: s = { x: 0, y: 0 },
|
|
1852
1852
|
window: r = Oe,
|
|
1853
|
-
eventFilter:
|
|
1854
|
-
} = t,
|
|
1855
|
-
e === "page" ? (
|
|
1856
|
-
},
|
|
1857
|
-
|
|
1858
|
-
}, f = (
|
|
1859
|
-
if (
|
|
1860
|
-
const v =
|
|
1861
|
-
e === "page" ? (
|
|
1853
|
+
eventFilter: c
|
|
1854
|
+
} = t, l = J(s.x), a = J(s.y), u = J(null), i = (g) => {
|
|
1855
|
+
e === "page" ? (l.value = g.pageX, a.value = g.pageY) : e === "client" ? (l.value = g.clientX, a.value = g.clientY) : e === "movement" && (l.value = g.movementX, a.value = g.movementY), u.value = "mouse";
|
|
1856
|
+
}, d = () => {
|
|
1857
|
+
l.value = s.x, a.value = s.y;
|
|
1858
|
+
}, f = (g) => {
|
|
1859
|
+
if (g.touches.length > 0) {
|
|
1860
|
+
const v = g.touches[0];
|
|
1861
|
+
e === "page" ? (l.value = v.pageX, a.value = v.pageY) : e === "client" && (l.value = v.clientX, a.value = v.clientY), u.value = "touch";
|
|
1862
1862
|
}
|
|
1863
|
-
},
|
|
1864
|
-
return r && (Wt(r, "mousemove",
|
|
1865
|
-
x:
|
|
1863
|
+
}, w = (g) => c === void 0 ? i(g) : c(() => i(g), {}), E = (g) => c === void 0 ? f(g) : c(() => f(g), {});
|
|
1864
|
+
return r && (Wt(r, "mousemove", w, { passive: !0 }), Wt(r, "dragover", w, { passive: !0 }), o && e !== "movement" && (Wt(r, "touchstart", E, { passive: !0 }), Wt(r, "touchmove", E, { passive: !0 }), n && Wt(r, "touchend", d, { passive: !0 }))), {
|
|
1865
|
+
x: l,
|
|
1866
1866
|
y: a,
|
|
1867
|
-
sourceType:
|
|
1867
|
+
sourceType: u
|
|
1868
1868
|
};
|
|
1869
1869
|
}
|
|
1870
1870
|
function ic(t, e = {}) {
|
|
1871
1871
|
const {
|
|
1872
1872
|
handleOutside: o = !0,
|
|
1873
1873
|
window: n = Oe
|
|
1874
|
-
} = e, { x: s, y: r, sourceType:
|
|
1875
|
-
let
|
|
1874
|
+
} = e, { x: s, y: r, sourceType: c } = lc(e), l = J(t ?? (n == null ? void 0 : n.document.body)), a = J(0), u = J(0), i = J(0), d = J(0), f = J(0), w = J(0), E = J(!0);
|
|
1875
|
+
let g = () => {
|
|
1876
1876
|
};
|
|
1877
|
-
return n && (
|
|
1878
|
-
const v = Zt(
|
|
1877
|
+
return n && (g = Gt([l, s, r], () => {
|
|
1878
|
+
const v = Zt(l);
|
|
1879
1879
|
if (!v)
|
|
1880
1880
|
return;
|
|
1881
1881
|
const {
|
|
1882
|
-
left:
|
|
1883
|
-
top:
|
|
1882
|
+
left: T,
|
|
1883
|
+
top: b,
|
|
1884
1884
|
width: m,
|
|
1885
|
-
height:
|
|
1885
|
+
height: S
|
|
1886
1886
|
} = v.getBoundingClientRect();
|
|
1887
|
-
i.value =
|
|
1888
|
-
const
|
|
1889
|
-
|
|
1887
|
+
i.value = T + n.pageXOffset, d.value = b + n.pageYOffset, f.value = S, w.value = m;
|
|
1888
|
+
const C = s.value - i.value, H = r.value - d.value;
|
|
1889
|
+
E.value = m === 0 || S === 0 || C < 0 || H < 0 || C > m || H > S, (o || !E.value) && (a.value = C, u.value = H);
|
|
1890
1890
|
}, { immediate: !0 }), Wt(document, "mouseleave", () => {
|
|
1891
|
-
|
|
1891
|
+
E.value = !0;
|
|
1892
1892
|
})), {
|
|
1893
1893
|
x: s,
|
|
1894
1894
|
y: r,
|
|
1895
|
-
sourceType:
|
|
1895
|
+
sourceType: c,
|
|
1896
1896
|
elementX: a,
|
|
1897
|
-
elementY:
|
|
1897
|
+
elementY: u,
|
|
1898
1898
|
elementPositionX: i,
|
|
1899
|
-
elementPositionY:
|
|
1899
|
+
elementPositionY: d,
|
|
1900
1900
|
elementHeight: f,
|
|
1901
|
-
elementWidth:
|
|
1902
|
-
isOutside:
|
|
1903
|
-
stop:
|
|
1901
|
+
elementWidth: w,
|
|
1902
|
+
isOutside: E,
|
|
1903
|
+
stop: g
|
|
1904
1904
|
};
|
|
1905
1905
|
}
|
|
1906
1906
|
var Sn;
|
|
@@ -1950,22 +1950,22 @@ function hc({
|
|
|
1950
1950
|
placeholder: o
|
|
1951
1951
|
}) {
|
|
1952
1952
|
var i;
|
|
1953
|
-
const n = (i =
|
|
1954
|
-
var
|
|
1955
|
-
return (
|
|
1956
|
-
}), { focused: r } = cc(s),
|
|
1957
|
-
const
|
|
1958
|
-
|
|
1953
|
+
const n = (i = In()) == null ? void 0 : i.props, s = K(() => {
|
|
1954
|
+
var d;
|
|
1955
|
+
return (d = t.value) == null ? void 0 : d.ref;
|
|
1956
|
+
}), { focused: r } = cc(s), c = J(!1), l = K(() => c.value && !r.value && n.isTitle), a = K(() => e.value ? e.value : o.value), u = async () => {
|
|
1957
|
+
const d = s.value;
|
|
1958
|
+
d && (e.value || (d.value = o.value, await be()), c.value = d.scrollWidth > d.clientWidth, d.value = e.value);
|
|
1959
1959
|
};
|
|
1960
1960
|
return Gt(t, () => {
|
|
1961
|
-
t.value &&
|
|
1961
|
+
t.value && u();
|
|
1962
1962
|
}), Gt(
|
|
1963
1963
|
() => [e.value, o.value],
|
|
1964
1964
|
() => {
|
|
1965
|
-
be(
|
|
1965
|
+
be(u);
|
|
1966
1966
|
}
|
|
1967
1967
|
), {
|
|
1968
|
-
showToolTip:
|
|
1968
|
+
showToolTip: l,
|
|
1969
1969
|
tooltipContent: a
|
|
1970
1970
|
};
|
|
1971
1971
|
}
|
|
@@ -2000,16 +2000,25 @@ const vc = {
|
|
|
2000
2000
|
},
|
|
2001
2001
|
emits: ["update:modelValue", "change"],
|
|
2002
2002
|
setup(t, { expose: e, emit: o }) {
|
|
2003
|
-
const n = t, s =
|
|
2004
|
-
|
|
2003
|
+
const n = t, s = En(), r = K(() => n.placeholder || Hs("请输入")), c = K(() => n.disabled ? "disabled" : n.isView ? "view" : n.error ? "error" : "default"), l = {
|
|
2004
|
+
large: "large",
|
|
2005
|
+
default: "default",
|
|
2006
|
+
middle: "default",
|
|
2007
|
+
small: "small",
|
|
2008
|
+
table: "default"
|
|
2009
|
+
}, a = (p) => p && p in mn ? p : "default", u = K(() => a(n.size)), i = K(() => mn[u.value]), d = K(() => l[u.value]), f = K(() => {
|
|
2010
|
+
const p = { ...s };
|
|
2011
|
+
return delete p.size, delete p.formSize, delete p.class, delete p.style, p;
|
|
2012
|
+
}), w = K(() => {
|
|
2013
|
+
var p, O;
|
|
2005
2014
|
return {
|
|
2006
|
-
"--das-input-width": Gr(n.width ??
|
|
2007
|
-
"--das-input-height":
|
|
2008
|
-
"--das-input-font-size":
|
|
2009
|
-
"--das-input-border-color": (
|
|
2010
|
-
"--das-input-message-color": (
|
|
2015
|
+
"--das-input-width": Gr(n.width ?? i.value.defaultWidth),
|
|
2016
|
+
"--das-input-height": i.value.height,
|
|
2017
|
+
"--das-input-font-size": i.value.fontSize,
|
|
2018
|
+
"--das-input-border-color": (p = gn[c.value]) == null ? void 0 : p.color,
|
|
2019
|
+
"--das-input-message-color": (O = gn[c.value]) == null ? void 0 : O.color
|
|
2011
2020
|
};
|
|
2012
|
-
}),
|
|
2021
|
+
}), E = K(() => s.style ? [w.value, s.style] : w.value), g = K(() => s.class ? [v.value, s.class] : v.value), v = K(() => [
|
|
2013
2022
|
"das-ui-input",
|
|
2014
2023
|
`das-ui-input--border-type-${n.borderType}`,
|
|
2015
2024
|
{
|
|
@@ -2017,88 +2026,89 @@ const vc = {
|
|
|
2017
2026
|
"das-ui-input--disabled": n.disabled,
|
|
2018
2027
|
"das-ui-textarea": n.type === "textarea"
|
|
2019
2028
|
}
|
|
2020
|
-
]),
|
|
2029
|
+
]), T = o, b = K({
|
|
2021
2030
|
get: () => n.modelValue,
|
|
2022
|
-
set: (
|
|
2023
|
-
}),
|
|
2024
|
-
var
|
|
2025
|
-
return (
|
|
2026
|
-
})),
|
|
2027
|
-
elInputRef:
|
|
2028
|
-
inputValue:
|
|
2029
|
-
placeholder:
|
|
2030
|
-
}), { width:
|
|
2031
|
-
let
|
|
2032
|
-
n.type !== "textarea" && n.filterSpace && (
|
|
2031
|
+
set: (p) => T("update:modelValue", p)
|
|
2032
|
+
}), m = J(null), S = J(), { isOutside: C } = ic(K(() => {
|
|
2033
|
+
var p;
|
|
2034
|
+
return (p = S.value) == null ? void 0 : p.$el;
|
|
2035
|
+
})), H = K(() => !C.value && n.errorMode === "overlay"), V = K(() => n.type === "textarea" ? n.showWordLimit : n.showTextWordLimit), W = K(() => n.isView || n.disabled), P = K(() => W.value ? n.noSetDefaultVal ? "" : "-" : r.value ?? ""), { showToolTip: L, tooltipContent: I } = hc({
|
|
2036
|
+
elInputRef: S,
|
|
2037
|
+
inputValue: b,
|
|
2038
|
+
placeholder: r
|
|
2039
|
+
}), { width: M } = rc(m), k = (p) => {
|
|
2040
|
+
let O = p + "";
|
|
2041
|
+
n.type !== "textarea" && n.filterSpace && (O = O.trim()), b.value = O, T("change", O);
|
|
2033
2042
|
};
|
|
2034
2043
|
return e({
|
|
2035
|
-
elInputRef:
|
|
2036
|
-
}), (
|
|
2044
|
+
elInputRef: S
|
|
2045
|
+
}), (p, O) => (ht(), St(
|
|
2037
2046
|
"div",
|
|
2038
2047
|
{
|
|
2039
2048
|
ref_key: "containerRef",
|
|
2040
|
-
ref:
|
|
2041
|
-
style:
|
|
2042
|
-
class:
|
|
2049
|
+
ref: m,
|
|
2050
|
+
style: Be(E.value),
|
|
2051
|
+
class: ze(g.value)
|
|
2043
2052
|
},
|
|
2044
2053
|
[
|
|
2045
2054
|
Lt(" 这里tooltip不能使用v-model:visible 有响应问题 "),
|
|
2046
2055
|
lo(Ds, {
|
|
2047
2056
|
effect: "light",
|
|
2048
2057
|
placement: "top",
|
|
2049
|
-
disabled: !
|
|
2050
|
-
content:
|
|
2058
|
+
disabled: !Vt(L),
|
|
2059
|
+
content: Vt(I)
|
|
2051
2060
|
}, {
|
|
2052
2061
|
default: Dt(() => [
|
|
2053
|
-
lo(
|
|
2062
|
+
lo(Vt(Ls), Tn({
|
|
2054
2063
|
ref_key: "elInputRef",
|
|
2055
|
-
ref:
|
|
2056
|
-
},
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2064
|
+
ref: S
|
|
2065
|
+
}, f.value, {
|
|
2066
|
+
size: d.value,
|
|
2067
|
+
modelValue: b.value,
|
|
2068
|
+
"onUpdate:modelValue": O[0] || (O[0] = (j) => b.value = j),
|
|
2069
|
+
placeholder: P.value,
|
|
2060
2070
|
disabled: t.disabled,
|
|
2061
2071
|
readonly: t.isView,
|
|
2062
2072
|
type: n.type,
|
|
2063
2073
|
autosize: n.autosize,
|
|
2064
|
-
showWordLimit:
|
|
2074
|
+
showWordLimit: V.value,
|
|
2065
2075
|
maxlength: n.maxlength,
|
|
2066
|
-
onChange:
|
|
2076
|
+
onChange: k
|
|
2067
2077
|
}), Ts({
|
|
2068
2078
|
_: 2
|
|
2069
2079
|
/* DYNAMIC */
|
|
2070
2080
|
}, [
|
|
2071
|
-
|
|
2081
|
+
p.$slots.prepend ? {
|
|
2072
2082
|
name: "prepend",
|
|
2073
2083
|
fn: Dt(() => [
|
|
2074
2084
|
Lt(" 输入框前置内容 "),
|
|
2075
|
-
ee(
|
|
2085
|
+
ee(p.$slots, "prepend", {}, void 0, !0)
|
|
2076
2086
|
]),
|
|
2077
2087
|
key: "0"
|
|
2078
2088
|
} : void 0,
|
|
2079
|
-
|
|
2089
|
+
p.$slots.append ? {
|
|
2080
2090
|
name: "append",
|
|
2081
2091
|
fn: Dt(() => [
|
|
2082
2092
|
Lt(" 输入框后置内容 "),
|
|
2083
|
-
ee(
|
|
2093
|
+
ee(p.$slots, "append", {}, void 0, !0)
|
|
2084
2094
|
]),
|
|
2085
2095
|
key: "1"
|
|
2086
2096
|
} : void 0,
|
|
2087
|
-
|
|
2097
|
+
p.$slots.suffix ? {
|
|
2088
2098
|
name: "suffix",
|
|
2089
2099
|
fn: Dt(() => [
|
|
2090
|
-
ee(
|
|
2100
|
+
ee(p.$slots, "suffix", {}, void 0, !0)
|
|
2091
2101
|
]),
|
|
2092
2102
|
key: "2"
|
|
2093
2103
|
} : void 0,
|
|
2094
|
-
|
|
2104
|
+
p.$slots.prefix ? {
|
|
2095
2105
|
name: "prefix",
|
|
2096
2106
|
fn: Dt(() => [
|
|
2097
|
-
ee(
|
|
2107
|
+
ee(p.$slots, "prefix", {}, void 0, !0)
|
|
2098
2108
|
]),
|
|
2099
2109
|
key: "3"
|
|
2100
2110
|
} : void 0
|
|
2101
|
-
]), 1040, ["modelValue", "placeholder", "disabled", "readonly", "type", "autosize", "showWordLimit", "maxlength"])
|
|
2111
|
+
]), 1040, ["size", "modelValue", "placeholder", "disabled", "readonly", "type", "autosize", "showWordLimit", "maxlength"])
|
|
2102
2112
|
]),
|
|
2103
2113
|
_: 3
|
|
2104
2114
|
/* FORWARDED */
|
|
@@ -2110,25 +2120,25 @@ const vc = {
|
|
|
2110
2120
|
t.errorMode === "default" ? (ht(), St("div", vc, [
|
|
2111
2121
|
t.error ? $s((ht(), St("span", {
|
|
2112
2122
|
key: 0,
|
|
2113
|
-
class:
|
|
2123
|
+
class: ze(["das-input-message_content", { "is-ellipsis": t.isErrorTitle }]),
|
|
2114
2124
|
title: t.isErrorTitle ? t.errorLabel : ""
|
|
2115
2125
|
}, [
|
|
2116
|
-
|
|
2117
|
-
|
|
2126
|
+
$n(
|
|
2127
|
+
Pe(t.errorLabel),
|
|
2118
2128
|
1
|
|
2119
2129
|
/* TEXT */
|
|
2120
2130
|
)
|
|
2121
2131
|
], 10, mc)), [
|
|
2122
|
-
[
|
|
2132
|
+
[Vt(Xr)]
|
|
2123
2133
|
]) : Lt("v-if", !0)
|
|
2124
2134
|
])) : Lt("v-if", !0),
|
|
2125
|
-
|
|
2135
|
+
H.value ? (ht(), $o(Ws, {
|
|
2126
2136
|
key: 1,
|
|
2127
2137
|
errorLabel: t.errorLabel,
|
|
2128
|
-
errorWidth: `${
|
|
2138
|
+
errorWidth: `${Vt(M)}`,
|
|
2129
2139
|
getEl: () => {
|
|
2130
|
-
var
|
|
2131
|
-
return (
|
|
2140
|
+
var j;
|
|
2141
|
+
return (j = S.value) == null ? void 0 : j.$el;
|
|
2132
2142
|
},
|
|
2133
2143
|
errorModelZIndex: t.errorModelZIndex
|
|
2134
2144
|
}, null, 8, ["errorLabel", "errorWidth", "getEl", "errorModelZIndex"])) : Lt("v-if", !0)
|
|
@@ -2141,13 +2151,13 @@ const vc = {
|
|
|
2141
2151
|
/* CLASS, STYLE */
|
|
2142
2152
|
));
|
|
2143
2153
|
}
|
|
2144
|
-
}), bc = /* @__PURE__ */
|
|
2154
|
+
}), bc = /* @__PURE__ */ Ln(gc, [["__scopeId", "data-v-2a267b60"]]), yc = {
|
|
2145
2155
|
共: { "zh-CN": "共", en: "Total", "zh-MO": "共", _appCode: "framework" },
|
|
2146
2156
|
项: { "zh-CN": "项", en: "Item", "zh-MO": "項", _appCode: "framework" },
|
|
2147
2157
|
请输入: { "zh-CN": "请输入", en: "Please enter", "zh-MO": "請輸入", _appCode: "framework" }
|
|
2148
2158
|
};
|
|
2149
2159
|
ks(yc);
|
|
2150
|
-
const Lc =
|
|
2160
|
+
const Lc = xs(bc);
|
|
2151
2161
|
export {
|
|
2152
2162
|
Lc as DasInput,
|
|
2153
2163
|
Lc as default
|