doph-js 0.0.71 → 0.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dophJs.js +298 -298
- package/dist/dophJs.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dophJs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useSlots as Mn, computed as R, h as io, openBlock as O, createBlock as rt, unref as tt, ref as ot, createElementBlock as j, Fragment as nn, normalizeClass as At, renderSlot as et, createCommentVNode as lt, resolveDynamicComponent as qt, createElementVNode as gt, toDisplayString as Xt, withDirectives as on, normalizeStyle as Bt, vModelText as bs, Transition as No, withCtx as it, withModifiers as Mt, resolveComponent as ws, createTextVNode as oe, createVNode as ce, renderList as Pn, pushScopeId as
|
|
1
|
+
import { useSlots as Mn, computed as R, h as io, openBlock as O, createBlock as rt, unref as tt, ref as ot, createElementBlock as j, Fragment as nn, normalizeClass as At, renderSlot as et, createCommentVNode as lt, resolveDynamicComponent as qt, createElementVNode as gt, toDisplayString as Xt, withDirectives as on, normalizeStyle as Bt, vModelText as bs, Transition as No, withCtx as it, withModifiers as Mt, resolveComponent as ws, createTextVNode as oe, createVNode as ce, renderList as Pn, pushScopeId as Ss, popScopeId as _s, reactive as Rn, getCurrentInstance as xs, watch as re, onUnmounted as Ao, mergeProps as Te, shallowRef as je, defineComponent as Mo, toRefs as $s, onMounted as Po, watchPostEffect as Ds, useCssVars as ks, resolveDirective as Fn, Teleport as Ts, nextTick as Ro } from "vue";
|
|
2
2
|
const Ce = {
|
|
3
3
|
__name: "DIcon",
|
|
4
4
|
props: {
|
|
@@ -301,7 +301,7 @@ const Le = (t, e) => {
|
|
|
301
301
|
}, 40, ["draggable"]));
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
|
-
const Ms = (t) => (
|
|
304
|
+
const Ms = (t) => (Ss("data-v-ebf99fad"), t = t(), _s(), t), Ps = { key: 0 }, Rs = /* @__PURE__ */ Ms(() => /* @__PURE__ */ gt("div", { class: "tree-divider" }, null, -1)), Fs = [
|
|
305
305
|
Rs
|
|
306
306
|
], Ws = { key: 1 }, Vs = { class: "tree-divider-header" }, Us = { class: "item-title" }, qs = {
|
|
307
307
|
key: 0,
|
|
@@ -319,37 +319,37 @@ const Ms = (t) => (_s("data-v-f6a37dc2"), t = t(), Ss(), t), Ps = { key: 0 }, Rs
|
|
|
319
319
|
},
|
|
320
320
|
emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick"],
|
|
321
321
|
setup(t, { emit: e }) {
|
|
322
|
-
const n = t, o = ot(null), s = ot(!1), r = ot(!1), i = ot(!1), a = R(() => n.model.children && n.model.children.length), c = R(() => (
|
|
323
|
-
e("nodeclick", { event:
|
|
324
|
-
}, d = (
|
|
325
|
-
e("nodeclick",
|
|
326
|
-
}, f = R(() => (
|
|
327
|
-
let
|
|
328
|
-
if (
|
|
322
|
+
const n = t, o = ot(null), s = ot(!1), r = ot(!1), i = ot(!1), a = R(() => n.model.children && n.model.children.length), c = R(() => (P.actions.isTreeExpanded(n.treeId) && (n.model.expanded = n.model.expanded === void 0 ? !0 : n.model.expanded), n.model.expanded)), l = (h) => {
|
|
323
|
+
e("nodeclick", { event: h, model: n.model });
|
|
324
|
+
}, d = (h) => {
|
|
325
|
+
e("nodeclick", h);
|
|
326
|
+
}, f = R(() => (P.actions.isItemSelected(n.treeId, n.model.id) ? "selected" : "") + (s.value ? "node-over " : "") + (r.value ? "node-top " : "") + (i.value ? "node-bottom " : "")), u = R(() => n.search ? !1 : n.model.draggable === !0), p = (h) => {
|
|
327
|
+
let w = Ke.data;
|
|
328
|
+
if (w.model.id === n.model.id || P.actions.isChildOfParent(n.treeId, n.items, n.model.id, w.model.id) || P.actions.isParentOfChild(n.treeId, n.items, w.model.id, n.model.id))
|
|
329
329
|
return s.value = !1, r.value = !1, i.value = !1, !1;
|
|
330
|
-
if (!
|
|
330
|
+
if (!P.state.trees[n.treeId].transfer && w.id !== n.treeId)
|
|
331
331
|
return !1;
|
|
332
332
|
let S = "";
|
|
333
|
-
r.value ? S = "before" : i.value ? S = "after" : S = "inside",
|
|
334
|
-
}, v = (
|
|
335
|
-
let
|
|
336
|
-
if (
|
|
333
|
+
r.value ? S = "before" : i.value ? S = "after" : S = "inside", P.actions.moveTreeNode(w.id, n.treeId, n.items, w.model.id, n.model.id, S), s.value = !1, r.value = !1, i.value = !1;
|
|
334
|
+
}, v = (h) => {
|
|
335
|
+
let w = Ke.data;
|
|
336
|
+
if (w.model.id === n.model.id || P.actions.isChildOfParent(n.treeId, n.items, n.model.id, w.model.id) || P.actions.isParentOfChild(n.treeId, n.items, w.model.id, n.model.id))
|
|
337
337
|
return !1;
|
|
338
|
-
const S =
|
|
339
|
-
S >
|
|
338
|
+
const S = h.y, L = o.value.getBoundingClientRect().top, H = o.value.getBoundingClientRect().height, z = H / 3;
|
|
339
|
+
S > L && S <= L + z ? (s.value = !1, r.value = !0, i.value = !1) : S < L + H && S >= L + H - z ? (s.value = !1, r.value = !1, i.value = !0) : (s.value = !0, r.value = !1, i.value = !1);
|
|
340
340
|
}, g = () => {
|
|
341
341
|
s.value = !1, r.value = !1, i.value = !1;
|
|
342
342
|
}, b = R(() => n.model.title.startsWith("-")), D = R(() => {
|
|
343
343
|
if (n.model.title.startsWith("-")) {
|
|
344
|
-
|
|
345
|
-
return
|
|
344
|
+
let [h, ...w] = n.model.title.split(" ");
|
|
345
|
+
return w = w.join(" "), w;
|
|
346
346
|
}
|
|
347
347
|
return null;
|
|
348
|
-
});
|
|
349
|
-
return (
|
|
348
|
+
}), m = (h) => h.replace(" ", " ");
|
|
349
|
+
return (h, w) => {
|
|
350
350
|
const S = ws("d-tree-item", !0);
|
|
351
351
|
return b.value && !D.value ? (O(), j("li", Ps, Fs)) : b.value && D.value ? (O(), j("li", Ws, [
|
|
352
|
-
gt("div", Vs, Xt(tt(
|
|
352
|
+
gt("div", Vs, Xt(m(tt(P).actions.renderTitle(n.treeId, D.value))), 1)
|
|
353
353
|
])) : (O(), rt(As, {
|
|
354
354
|
key: 2,
|
|
355
355
|
tag: "li",
|
|
@@ -357,13 +357,13 @@ const Ms = (t) => (_s("data-v-f6a37dc2"), t = t(), Ss(), t), Ps = { key: 0 }, Rs
|
|
|
357
357
|
"transfer-data": { id: n.treeId, model: n.model },
|
|
358
358
|
draggable: u.value,
|
|
359
359
|
onDrop: Mt(p, ["stop"]),
|
|
360
|
-
onDragenter:
|
|
360
|
+
onDragenter: w[0] || (w[0] = Mt(() => {
|
|
361
361
|
}, ["prevent"])),
|
|
362
362
|
onDragover: Mt(v, ["prevent", "stop"]),
|
|
363
363
|
onDragleave: Mt(g, ["prevent"])
|
|
364
364
|
}, {
|
|
365
365
|
default: it(() => {
|
|
366
|
-
var
|
|
366
|
+
var L, H;
|
|
367
367
|
return [
|
|
368
368
|
gt("div", {
|
|
369
369
|
ref_key: "node",
|
|
@@ -395,13 +395,13 @@ const Ms = (t) => (_s("data-v-f6a37dc2"), t = t(), Ss(), t), Ps = { key: 0 }, Rs
|
|
|
395
395
|
}, null, 8, ["component", "color", "size", "className"])) : lt("", !0),
|
|
396
396
|
gt("div", Us, [
|
|
397
397
|
b.value ? (O(), j("div", qs)) : lt("", !0),
|
|
398
|
-
b.value ? lt("", !0) : (O(), j("div", Ys, Xt(tt(
|
|
398
|
+
b.value ? lt("", !0) : (O(), j("div", Ys, Xt(tt(P).actions.renderTitle(n.treeId, n.model.title)), 1))
|
|
399
399
|
])
|
|
400
400
|
]),
|
|
401
401
|
gt("div", Xs, [
|
|
402
|
-
((
|
|
402
|
+
((L = n.model.badge) == null ? void 0 : L.value) !== void 0 && !b.value ? (O(), rt(qt(Ls), {
|
|
403
403
|
key: 0,
|
|
404
|
-
class: At([(
|
|
404
|
+
class: At([(H = n.model.badge) == null ? void 0 : H.class, "badge-sm"])
|
|
405
405
|
}, {
|
|
406
406
|
default: it(() => [
|
|
407
407
|
oe(Xt(n.model.badge.value), 1)
|
|
@@ -439,7 +439,7 @@ const Ms = (t) => (_s("data-v-f6a37dc2"), t = t(), Ss(), t), Ps = { key: 0 }, Rs
|
|
|
439
439
|
}, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"]));
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
}, Ks = /* @__PURE__ */ Le(Gs, [["__scopeId", "data-v-
|
|
442
|
+
}, Ks = /* @__PURE__ */ Le(Gs, [["__scopeId", "data-v-ebf99fad"]]);
|
|
443
443
|
function Zs(t) {
|
|
444
444
|
return t = t || /* @__PURE__ */ new Map(), {
|
|
445
445
|
/**
|
|
@@ -487,50 +487,50 @@ function Zs(t) {
|
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
|
-
const Rt = Zs(),
|
|
490
|
+
const Rt = Zs(), P = {
|
|
491
491
|
state: Rn({
|
|
492
492
|
trees: {}
|
|
493
493
|
}),
|
|
494
494
|
getters: {
|
|
495
495
|
getItems(t) {
|
|
496
|
-
return
|
|
496
|
+
return P.state.trees[t].items;
|
|
497
497
|
},
|
|
498
498
|
getItemsSelect(t) {
|
|
499
|
-
return
|
|
499
|
+
return P.state.trees[t].selected;
|
|
500
500
|
},
|
|
501
501
|
// data - ноды, dataId - ID ноды родителя data
|
|
502
502
|
getParentId(t, e, n, o = "id", s = "children", r = {}) {
|
|
503
|
-
return n && t && (t.find((i) => i[o] === n ? (r.found = e, i) :
|
|
503
|
+
return n && t && (t.find((i) => i[o] === n ? (r.found = e, i) : P.getters.getParentId(i[s], i.id, n, o, s, r)), r.found) ? r.found : !1;
|
|
504
504
|
}
|
|
505
505
|
},
|
|
506
506
|
mutations: {
|
|
507
507
|
setTreeItems(t, e) {
|
|
508
|
-
|
|
508
|
+
P.state.trees[t].items = e;
|
|
509
509
|
},
|
|
510
510
|
setItemSelect(t, e) {
|
|
511
|
-
|
|
511
|
+
P.state.trees[t].noSelect || (P.state.trees[t].multiSelect ? P.state.trees[t].selected.includes(e.id) ? P.state.trees[t].selected = P.state.trees[t].selected.filter(function(n) {
|
|
512
512
|
return n !== e.id;
|
|
513
|
-
}) :
|
|
513
|
+
}) : P.state.trees[t].selected = [...P.state.trees[t].selected, e.id] : P.state.trees[t].selected = [e.id]);
|
|
514
514
|
}
|
|
515
515
|
},
|
|
516
516
|
actions: {
|
|
517
517
|
initTreeStore(t, e, n, o, s, r) {
|
|
518
|
-
|
|
518
|
+
P.state.trees[t] = [], P.state.trees[t].selected = [], P.state.trees[t].noSelect = e, P.state.trees[t].multiSelect = n, P.state.trees[t].expanded = o, P.state.trees[t].transfer = s, P.state.trees[t].renderTitle = r;
|
|
519
519
|
},
|
|
520
520
|
renderTitle(t, e) {
|
|
521
|
-
return
|
|
521
|
+
return P.state.trees[t].renderTitle ? P.state.trees[t].renderTitle(e) : e;
|
|
522
522
|
},
|
|
523
523
|
isItemSelected(t, e) {
|
|
524
|
-
return
|
|
524
|
+
return P.state.trees[t].selected.includes(e);
|
|
525
525
|
},
|
|
526
526
|
toggleItem(t, e) {
|
|
527
527
|
e.expanded = e.expanded === void 0 || !e.expanded, e.children && e.children.length && (e.expanded ? Rt.emit(`expand-${t}`, { id: t, model: e }) : Rt.emit(`collapse-${t}`, { id: t, model: e }));
|
|
528
528
|
},
|
|
529
529
|
isTreeExpanded(t) {
|
|
530
|
-
return
|
|
530
|
+
return P.state.trees[t].expanded;
|
|
531
531
|
},
|
|
532
532
|
isChildOfParent(t, e, n, o) {
|
|
533
|
-
const s =
|
|
533
|
+
const s = P.actions.deepSearch(e, n);
|
|
534
534
|
if (s && s.children) {
|
|
535
535
|
for (let r = 0; r < s.children.length; r++)
|
|
536
536
|
if (s.children[r].id === o)
|
|
@@ -540,16 +540,16 @@ const Rt = Zs(), M = {
|
|
|
540
540
|
},
|
|
541
541
|
// Является ли нода родителем указанного потомка
|
|
542
542
|
isParentOfChild(t, e, n, o) {
|
|
543
|
-
const s =
|
|
544
|
-
return !!(s && s.children &&
|
|
543
|
+
const s = P.actions.deepSearch(e, n);
|
|
544
|
+
return !!(s && s.children && P.actions.deepSearch(s.children, o));
|
|
545
545
|
},
|
|
546
546
|
deepSearch(t, e, n = "id", o = "children", s = {}) {
|
|
547
|
-
return e && t && (t.find((r) => r[n] === e ? (s.found = r, r) :
|
|
547
|
+
return e && t && (t.find((r) => r[n] === e ? (s.found = r, r) : P.actions.deepSearch(r[o], e, n, o, s)), s.found) ? s.found : !1;
|
|
548
548
|
},
|
|
549
549
|
deepSearchByTitle(t, e, n = "title", o = "children", s = []) {
|
|
550
550
|
if (e && t && (t.find((r) => {
|
|
551
551
|
const i = new RegExp(e, "gi");
|
|
552
|
-
r[n].toString().toLowerCase().match(i) !== null && s.push(r),
|
|
552
|
+
r[n].toString().toLowerCase().match(i) !== null && s.push(r), P.actions.deepSearchByTitle(r[o], e, n, o, s);
|
|
553
553
|
}), s)) {
|
|
554
554
|
for (let r = 0; r < s.length; r++)
|
|
555
555
|
;
|
|
@@ -558,8 +558,8 @@ const Rt = Zs(), M = {
|
|
|
558
558
|
return s;
|
|
559
559
|
},
|
|
560
560
|
moveTreeNode(t, e, n, o, s, r) {
|
|
561
|
-
const i =
|
|
562
|
-
|
|
561
|
+
const i = P.actions.deleteTreeNode(n, o);
|
|
562
|
+
P.actions.insertTreeNode(n, s, i, r), Rt.emit(`move-${e}`, { fromTreeId: t, toTreeId: e, moved: i.id, target: s, position: r });
|
|
563
563
|
},
|
|
564
564
|
insertTreeNode(t, e, n, o) {
|
|
565
565
|
if (t)
|
|
@@ -580,7 +580,7 @@ const Rt = Zs(), M = {
|
|
|
580
580
|
const s = t[n];
|
|
581
581
|
return t.splice(n, 1), s;
|
|
582
582
|
}
|
|
583
|
-
const o =
|
|
583
|
+
const o = P.actions.deleteTreeNode(t[n].children, e);
|
|
584
584
|
if (o)
|
|
585
585
|
return o;
|
|
586
586
|
}
|
|
@@ -634,7 +634,7 @@ const Rt = Zs(), M = {
|
|
|
634
634
|
emits: ["select", "collapse", "expand", "move"],
|
|
635
635
|
setup(t, { expose: e, emit: n }) {
|
|
636
636
|
const o = t, s = ot(null), r = xs().uid;
|
|
637
|
-
|
|
637
|
+
P.actions.initTreeStore(r, o.noSelect, o.multiSelect, o.expanded, o.transfer, o.renderTitle);
|
|
638
638
|
const i = (d, f) => {
|
|
639
639
|
console.log(d, f);
|
|
640
640
|
};
|
|
@@ -645,8 +645,8 @@ const Rt = Zs(), M = {
|
|
|
645
645
|
}), Rt.on(`move-${r}`, (d) => {
|
|
646
646
|
n("move", d);
|
|
647
647
|
});
|
|
648
|
-
const a = R(() => o.search ?
|
|
649
|
-
|
|
648
|
+
const a = R(() => o.search ? P.actions.deepSearchByTitle(o.items, o.search) : o.items), c = (d = null) => {
|
|
649
|
+
P.mutations.setItemSelect(r, d.model), P.actions.toggleItem(r, d.model), n("select", d);
|
|
650
650
|
};
|
|
651
651
|
return e({
|
|
652
652
|
elementSize: () => s.value.elementSize()
|
|
@@ -1022,35 +1022,35 @@ const ir = 1001, cr = 999, lr = 998, Zi = {
|
|
|
1022
1022
|
emits: ["update:sidebar-collapse", "sidebar-mask-click"],
|
|
1023
1023
|
setup(t, { emit: e }) {
|
|
1024
1024
|
const n = t, o = R(() => n.useMinWidthLayout ? `min-width:${n.minWidth}px;` : ""), s = R(() => n.useMinWidthLayout && (n.fixedHeaderAndTab || n.fixedFooter)), r = rr(s), i = R(() => n.fixedHeaderAndTab ? r.value : ""), a = R(() => n.fixedFooter ? r.value : ""), c = R(() => {
|
|
1025
|
-
const { transitionDuration:
|
|
1025
|
+
const { transitionDuration: S, transitionTimingFunction: L } = n;
|
|
1026
1026
|
return {
|
|
1027
|
-
transitionDuration:
|
|
1027
|
+
transitionDuration: S,
|
|
1028
1028
|
transitionTimingFunction: L
|
|
1029
1029
|
};
|
|
1030
1030
|
}), l = R(() => n.mode === "vertical"), d = R(() => n.isMobile || l.value ? 1003 : 1e3), f = R({
|
|
1031
1031
|
get() {
|
|
1032
1032
|
return n.sidebarCollapse;
|
|
1033
1033
|
},
|
|
1034
|
-
set(
|
|
1035
|
-
e("update:sidebar-collapse",
|
|
1034
|
+
set(S) {
|
|
1035
|
+
e("update:sidebar-collapse", S);
|
|
1036
1036
|
}
|
|
1037
1037
|
});
|
|
1038
1038
|
function u() {
|
|
1039
1039
|
e("sidebar-mask-click");
|
|
1040
1040
|
}
|
|
1041
1041
|
const p = R(() => n.isMobile && !f.value), v = R(() => {
|
|
1042
|
-
const { transitionDuration:
|
|
1043
|
-
return `background-color:${n.maskBg};transition-duration:${
|
|
1042
|
+
const { transitionDuration: S, transitionTimingFunction: L } = n;
|
|
1043
|
+
return `background-color:${n.maskBg};transition-duration:${S}ms;transition-timing-function:${L};`;
|
|
1044
1044
|
}), g = R(() => {
|
|
1045
|
-
const { sidebarWidth:
|
|
1046
|
-
return n.sidebarVisible ?
|
|
1045
|
+
const { sidebarWidth: S, sidebarCollapsedWidth: L } = n, H = n.isMobile ? 0 : L, z = f.value ? H : S;
|
|
1046
|
+
return n.sidebarVisible ? z : 0;
|
|
1047
1047
|
}), b = R(() => n.isMobile ? 0 : g.value), D = R(() => l.value ? b.value : 0), m = R(
|
|
1048
1048
|
() => !n.isMobile && !l.value && n.headerVisible ? n.headerHeight : 0
|
|
1049
1049
|
), h = R(() => {
|
|
1050
|
-
let
|
|
1051
|
-
return n.fixedHeaderAndTab && (n.headerVisible && (
|
|
1052
|
-
}),
|
|
1053
|
-
return (
|
|
1050
|
+
let S = 0;
|
|
1051
|
+
return n.fixedHeaderAndTab && (n.headerVisible && (S += n.headerHeight), n.tabVisible && (S += n.tabHeight)), S;
|
|
1052
|
+
}), w = R(() => n.fixedFooter && n.footerVisible ? n.footerHeight : 0);
|
|
1053
|
+
return (S, L) => (O(), j("div", {
|
|
1054
1054
|
class: "d-layout",
|
|
1055
1055
|
style: Bt(o.value)
|
|
1056
1056
|
}, [
|
|
@@ -1063,7 +1063,7 @@ const ir = 1001, cr = 999, lr = 998, Zi = {
|
|
|
1063
1063
|
style: i.value
|
|
1064
1064
|
}), {
|
|
1065
1065
|
default: it(() => [
|
|
1066
|
-
et(
|
|
1066
|
+
et(S.$slots, "header")
|
|
1067
1067
|
]),
|
|
1068
1068
|
_: 3
|
|
1069
1069
|
}, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : lt("", !0),
|
|
@@ -1077,7 +1077,7 @@ const ir = 1001, cr = 999, lr = 998, Zi = {
|
|
|
1077
1077
|
style: i.value
|
|
1078
1078
|
}), {
|
|
1079
1079
|
default: it(() => [
|
|
1080
|
-
et(
|
|
1080
|
+
et(S.$slots, "tab")
|
|
1081
1081
|
]),
|
|
1082
1082
|
_: 3
|
|
1083
1083
|
}, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : lt("", !0),
|
|
@@ -1087,7 +1087,7 @@ const ir = 1001, cr = 999, lr = 998, Zi = {
|
|
|
1087
1087
|
"padding-top": m.value
|
|
1088
1088
|
}), {
|
|
1089
1089
|
default: it(() => [
|
|
1090
|
-
et(
|
|
1090
|
+
et(S.$slots, "sidebar")
|
|
1091
1091
|
]),
|
|
1092
1092
|
_: 3
|
|
1093
1093
|
}, 16, ["z-index", "width", "padding-top"])) : lt("", !0),
|
|
@@ -1099,12 +1099,12 @@ const ir = 1001, cr = 999, lr = 998, Zi = {
|
|
|
1099
1099
|
}, null, 4)) : lt("", !0),
|
|
1100
1100
|
ce(sr, Te(c.value, {
|
|
1101
1101
|
"padding-top": h.value,
|
|
1102
|
-
"padding-bottom":
|
|
1102
|
+
"padding-bottom": w.value,
|
|
1103
1103
|
"padding-left": b.value,
|
|
1104
1104
|
"overflow-hidden": t.addMainOverflowHidden
|
|
1105
1105
|
}), {
|
|
1106
1106
|
default: it(() => [
|
|
1107
|
-
et(
|
|
1107
|
+
et(S.$slots, "default")
|
|
1108
1108
|
]),
|
|
1109
1109
|
_: 3
|
|
1110
1110
|
}, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
|
|
@@ -1117,7 +1117,7 @@ const ir = 1001, cr = 999, lr = 998, Zi = {
|
|
|
1117
1117
|
style: a.value
|
|
1118
1118
|
}), {
|
|
1119
1119
|
default: it(() => [
|
|
1120
|
-
et(
|
|
1120
|
+
et(S.$slots, "footer")
|
|
1121
1121
|
]),
|
|
1122
1122
|
_: 3
|
|
1123
1123
|
}, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : lt("", !0)
|
|
@@ -1341,7 +1341,7 @@ const It = (t, e) => {
|
|
|
1341
1341
|
}), s;
|
|
1342
1342
|
}
|
|
1343
1343
|
return !1;
|
|
1344
|
-
}, jo = (t, e) => an(t, e, ["w", "h"]), Go = (t, e) => an(t, e, ["x", "y"]),
|
|
1344
|
+
}, jo = (t, e) => an(t, e, ["w", "h"]), Go = (t, e) => an(t, e, ["x", "y"]), Sr = (t, e) => an(t, e, ["t", "r", "b", "l"]), ao = (t, e, n) => an(t, e, ["width", "height"], n && ((o) => Math.round(o))), _t = () => {
|
|
1345
1345
|
}, ue = (t) => {
|
|
1346
1346
|
let e;
|
|
1347
1347
|
const n = t ? Je : Yo, o = t ? En : qo;
|
|
@@ -1349,29 +1349,29 @@ const It = (t, e) => {
|
|
|
1349
1349
|
o(e), e = n(s, Lt(t) ? t() : t);
|
|
1350
1350
|
}, () => o(e)];
|
|
1351
1351
|
}, Zn = (t, e) => {
|
|
1352
|
-
let n, o, s, r =
|
|
1352
|
+
let n, o, s, r = _t;
|
|
1353
1353
|
const { g: i, v: a, p: c } = e || {}, l = function(v) {
|
|
1354
|
-
r(), En(n), n = o = void 0, r =
|
|
1354
|
+
r(), En(n), n = o = void 0, r = _t, t.apply(this, v);
|
|
1355
1355
|
}, d = (p) => c && o ? c(o, p) : p, f = () => {
|
|
1356
|
-
r !==
|
|
1356
|
+
r !== _t && l(d(s) || s);
|
|
1357
1357
|
}, u = function() {
|
|
1358
1358
|
const v = ge(arguments), g = Lt(i) ? i() : i;
|
|
1359
1359
|
if (ie(g) && g >= 0) {
|
|
1360
|
-
const D = Lt(a) ? a() : a, m = ie(D) && D >= 0, h = g > 0 ? Je : Yo,
|
|
1360
|
+
const D = Lt(a) ? a() : a, m = ie(D) && D >= 0, h = g > 0 ? Je : Yo, w = g > 0 ? En : qo, L = d(v) || v, H = l.bind(0, L);
|
|
1361
1361
|
r();
|
|
1362
|
-
const
|
|
1363
|
-
r = () =>
|
|
1362
|
+
const z = h(H, g);
|
|
1363
|
+
r = () => w(z), m && !n && (n = Je(f, D)), o = s = L;
|
|
1364
1364
|
} else
|
|
1365
1365
|
l(v);
|
|
1366
1366
|
};
|
|
1367
1367
|
return u.m = f, u;
|
|
1368
|
-
},
|
|
1368
|
+
}, _r = {
|
|
1369
1369
|
opacity: 1,
|
|
1370
1370
|
zIndex: 1
|
|
1371
1371
|
}, Re = (t, e) => {
|
|
1372
1372
|
const n = t || "", o = e ? parseFloat(n) : parseInt(n, 10);
|
|
1373
1373
|
return o === o ? o : 0;
|
|
1374
|
-
}, xr = (t, e) => !
|
|
1374
|
+
}, xr = (t, e) => !_r[t] && ie(e) ? `${e}px` : e, uo = (t, e, n) => String((e != null ? e[n] || e.getPropertyValue(n) : t.style[n]) || ""), $r = (t, e, n) => {
|
|
1375
1375
|
try {
|
|
1376
1376
|
const { style: o } = t;
|
|
1377
1377
|
Zt(o[e]) ? o.setProperty(e, n) : o[e] = xr(e, n);
|
|
@@ -1403,7 +1403,7 @@ const It = (t, e) => {
|
|
|
1403
1403
|
w: n - po(n),
|
|
1404
1404
|
h: e - po(e)
|
|
1405
1405
|
};
|
|
1406
|
-
}, Pt = (t) => t.getBoundingClientRect(),
|
|
1406
|
+
}, Pt = (t) => t.getBoundingClientRect(), Se = (t) => !!(t && (t.height || t.width));
|
|
1407
1407
|
let Fe;
|
|
1408
1408
|
const Dr = () => {
|
|
1409
1409
|
if (Zt(Fe)) {
|
|
@@ -1519,7 +1519,7 @@ const Dr = () => {
|
|
|
1519
1519
|
a && (n[s] = i);
|
|
1520
1520
|
}
|
|
1521
1521
|
}), n;
|
|
1522
|
-
}, He = "data-overlayscrollbars", ts = "os-environment", es = `${ts}-flexbox-glue`, Ir = `${es}-max`, ns = "os-scrollbar-hidden",
|
|
1522
|
+
}, He = "data-overlayscrollbars", ts = "os-environment", es = `${ts}-flexbox-glue`, Ir = `${es}-max`, ns = "os-scrollbar-hidden", Sn = `${He}-initialize`, Ot = He, os = `${Ot}-overflow-x`, ss = `${Ot}-overflow-y`, _e = "overflowVisible", Or = "scrollbarHidden", ho = "scrollbarPressed", en = "updating", te = `${He}-viewport`, _n = "arrange", rs = "scrollbarHidden", xe = _e, Bn = `${He}-padding`, Er = xe, vo = `${He}-content`, to = "os-size-observer", Br = `${to}-appear`, Lr = `${to}-listener`, zr = "os-trinsic-observer", Hr = "os-no-css-vars", Nr = "os-theme-none", wt = "os-scrollbar", Ar = `${wt}-rtl`, Mr = `${wt}-horizontal`, Pr = `${wt}-vertical`, is = `${wt}-track`, eo = `${wt}-handle`, Rr = `${wt}-visible`, Fr = `${wt}-cornerless`, yo = `${wt}-transitionless`, bo = `${wt}-interaction`, wo = `${wt}-unusable`, Ln = `${wt}-auto-hide`, So = `${Ln}-hidden`, _o = `${wt}-wheel`, Wr = `${is}-interactive`, Vr = `${eo}-interactive`, cs = {}, he = () => cs, Ur = (t) => {
|
|
1523
1523
|
const e = [];
|
|
1524
1524
|
return q(kt(t) ? t : [t], (n) => {
|
|
1525
1525
|
const o = xt(n);
|
|
@@ -1610,14 +1610,14 @@ const xo = (t, e, n, o) => {
|
|
|
1610
1610
|
});
|
|
1611
1611
|
}
|
|
1612
1612
|
return g;
|
|
1613
|
-
},
|
|
1613
|
+
}, St = () => (xn || (xn = Zr()), xn), oo = (t, e) => Lt(e) ? e.apply(0, t) : e, Jr = (t, e, n, o) => {
|
|
1614
1614
|
const s = Zt(o) ? n : o;
|
|
1615
1615
|
return oo(t, s) || e.apply(0, t);
|
|
1616
1616
|
}, ls = (t, e, n, o) => {
|
|
1617
1617
|
const s = Zt(o) ? n : o, r = oo(t, s);
|
|
1618
1618
|
return !!r && (Ie(r) ? r : e.apply(0, t));
|
|
1619
1619
|
}, Qr = (t, e, n) => {
|
|
1620
|
-
const { nativeScrollbarsOverlaid: o, body: s } = n || {}, { I: r, A: i } =
|
|
1620
|
+
const { nativeScrollbarsOverlaid: o, body: s } = n || {}, { I: r, A: i } = St(), { nativeScrollbarsOverlaid: a, body: c } = e, l = o ?? a, d = Zt(s) ? c : s, f = (r.x || r.y) && l, u = t && (sn(d) ? !i : d);
|
|
1621
1621
|
return !!f || !!u;
|
|
1622
1622
|
}, so = /* @__PURE__ */ new WeakMap(), ti = (t, e) => {
|
|
1623
1623
|
so.set(t, e);
|
|
@@ -1631,35 +1631,35 @@ const xo = (t, e, n, o) => {
|
|
|
1631
1631
|
}, We = "tabindex", Ve = pe.bind(0, ""), $n = (t) => {
|
|
1632
1632
|
Dt(Kt(t), jn(t)), Ft(t);
|
|
1633
1633
|
}, ni = (t) => {
|
|
1634
|
-
const e =
|
|
1634
|
+
const e = St(), { q: n, A: o } = e, s = he()[no], r = s && s.T, { elements: i } = n(), { host: a, padding: c, viewport: l, content: d } = i, f = Ie(t), u = f ? {} : t, { elements: p } = u, { host: v, padding: g, viewport: b, content: D } = p || {}, m = f ? t : u.target, h = Ze(m, "textarea"), w = m.ownerDocument, S = w.documentElement, L = m === w.body, H = w.defaultView, z = Jr.bind(0, [m]), W = ls.bind(0, [m]), st = oo.bind(0, [m]), Y = z.bind(0, Ve, l), F = W.bind(0, Ve, d), _ = Y(b), y = _ === m, x = y && L, k = !y && F(D), N = !y && Ie(_) && _ === k, B = N && !!st(d), T = B ? Y() : _, E = B ? k : F(), U = x ? S : N ? T : _, G = h ? z(Ve, a, v) : m, $ = x ? U : G, C = N ? E : k, I = w.activeElement, V = !y && H.top === H && I === m, A = {
|
|
1635
1635
|
Z: m,
|
|
1636
1636
|
J: $,
|
|
1637
1637
|
K: U,
|
|
1638
1638
|
tt: !y && W(Ve, c, g),
|
|
1639
1639
|
nt: C,
|
|
1640
1640
|
ot: !y && !o && r && r(e),
|
|
1641
|
-
st: x ?
|
|
1642
|
-
et: x ?
|
|
1643
|
-
ct:
|
|
1644
|
-
rt:
|
|
1641
|
+
st: x ? S : U,
|
|
1642
|
+
et: x ? w : U,
|
|
1643
|
+
ct: H,
|
|
1644
|
+
rt: w,
|
|
1645
1645
|
lt: h,
|
|
1646
1646
|
it: L,
|
|
1647
1647
|
ut: f,
|
|
1648
1648
|
ft: y,
|
|
1649
|
-
dt:
|
|
1649
|
+
dt: N,
|
|
1650
1650
|
_t: (ut, vt) => ur(U, y ? Ot : te, y ? vt : ut),
|
|
1651
1651
|
ht: (ut, vt, yt) => fe(U, y ? Ot : te, y ? vt : ut, yt)
|
|
1652
|
-
}, K = xt(
|
|
1653
|
-
const yt =
|
|
1652
|
+
}, K = xt(A).reduce((ut, vt) => {
|
|
1653
|
+
const yt = A[vt];
|
|
1654
1654
|
return J(ut, yt && Ie(yt) && !Kt(yt) ? yt : !1);
|
|
1655
|
-
}, []), Q = (ut) => ut ? qn(K, ut) > -1 : null, { Z: nt, J: at, tt: Z, K: X, nt: ft, ot: Tt } =
|
|
1656
|
-
bt(at, Ot), bt(at,
|
|
1655
|
+
}, []), Q = (ut) => ut ? qn(K, ut) > -1 : null, { Z: nt, J: at, tt: Z, K: X, nt: ft, ot: Tt } = A, $t = [() => {
|
|
1656
|
+
bt(at, Ot), bt(at, Sn), bt(nt, Sn), L && (bt(S, Ot), bt(S, Sn));
|
|
1657
1657
|
}], Jt = h && Q(at);
|
|
1658
1658
|
let ae = h ? nt : jn([ft, X, Z, at, nt].find((ut) => Q(ut) === !1));
|
|
1659
1659
|
const ve = x ? nt : ft || X;
|
|
1660
|
-
return [
|
|
1660
|
+
return [A, () => {
|
|
1661
1661
|
mt(at, Ot, y ? "viewport" : "host"), mt(Z, Bn, ""), mt(ft, vo, ""), y || mt(X, te, "");
|
|
1662
|
-
const ut = L && !y ? Gt(Kt(m), ns) :
|
|
1662
|
+
const ut = L && !y ? Gt(Kt(m), ns) : _t;
|
|
1663
1663
|
if (Jt && (co(nt, at), J($t, () => {
|
|
1664
1664
|
co(at, nt), Ft(at);
|
|
1665
1665
|
})), Dt(ve, ae), Dt(at, Z), Dt(Z || at, !y && X), Dt(X, ft), J($t, () => {
|
|
@@ -1667,7 +1667,7 @@ const xo = (t, e, n, o) => {
|
|
|
1667
1667
|
}), o && !y && (fe(X, te, rs, !0), J($t, bt.bind(0, X, te))), Tt && (mr(X, Tt), J($t, Ft.bind(0, Tt))), V) {
|
|
1668
1668
|
const vt = mt(X, We);
|
|
1669
1669
|
mt(X, We, "-1"), X.focus();
|
|
1670
|
-
const yt = () => vt ? mt(X, We, vt) : bt(X, We), Ct = dt(
|
|
1670
|
+
const yt = () => vt ? mt(X, We, vt) : bt(X, We), Ct = dt(w, "pointerdown keydown", () => {
|
|
1671
1671
|
yt(), Ct();
|
|
1672
1672
|
});
|
|
1673
1673
|
J($t, [yt, Ct]);
|
|
@@ -1678,7 +1678,7 @@ const xo = (t, e, n, o) => {
|
|
|
1678
1678
|
}, oi = (t, e) => {
|
|
1679
1679
|
const { nt: n } = t, [o] = e;
|
|
1680
1680
|
return (s) => {
|
|
1681
|
-
const { Y: r } =
|
|
1681
|
+
const { Y: r } = St(), { gt: i } = o(), { vt: a } = s, c = (n || !r) && a;
|
|
1682
1682
|
return c && ht(n, {
|
|
1683
1683
|
height: i ? "" : "100%"
|
|
1684
1684
|
}), {
|
|
@@ -1688,16 +1688,16 @@ const xo = (t, e, n, o) => {
|
|
|
1688
1688
|
};
|
|
1689
1689
|
}, si = (t, e) => {
|
|
1690
1690
|
const [n, o] = e, { J: s, tt: r, K: i, ft: a } = t, [c, l] = It({
|
|
1691
|
-
u:
|
|
1691
|
+
u: Sr,
|
|
1692
1692
|
o: fo()
|
|
1693
1693
|
}, fo.bind(0, s, "padding", ""));
|
|
1694
1694
|
return (d, f, u) => {
|
|
1695
1695
|
let [p, v] = l(u);
|
|
1696
|
-
const { A: g, Y: b } =
|
|
1696
|
+
const { A: g, Y: b } = St(), { yt: D } = n(), { wt: m, bt: h, St: w } = d, [S, L] = f("paddingAbsolute");
|
|
1697
1697
|
(m || v || !b && h) && ([p, v] = c(u));
|
|
1698
|
-
const
|
|
1699
|
-
if (
|
|
1700
|
-
const W = !
|
|
1698
|
+
const z = !a && (L || w || v);
|
|
1699
|
+
if (z) {
|
|
1700
|
+
const W = !S || !r && !g, st = p.r + p.l, Y = p.t + p.b, F = {
|
|
1701
1701
|
marginRight: W && !D ? -st : 0,
|
|
1702
1702
|
marginBottom: W ? -Y : 0,
|
|
1703
1703
|
marginLeft: W && D ? -st : 0,
|
|
@@ -1705,20 +1705,20 @@ const xo = (t, e, n, o) => {
|
|
|
1705
1705
|
right: W ? D ? -p.r : "auto" : 0,
|
|
1706
1706
|
left: W ? D ? "auto" : -p.l : 0,
|
|
1707
1707
|
width: W ? `calc(100% + ${st}px)` : ""
|
|
1708
|
-
},
|
|
1708
|
+
}, _ = {
|
|
1709
1709
|
paddingTop: W ? p.t : 0,
|
|
1710
1710
|
paddingRight: W ? p.r : 0,
|
|
1711
1711
|
paddingBottom: W ? p.b : 0,
|
|
1712
1712
|
paddingLeft: W ? p.l : 0
|
|
1713
1713
|
};
|
|
1714
|
-
ht(r || i, F), ht(i,
|
|
1714
|
+
ht(r || i, F), ht(i, _), o({
|
|
1715
1715
|
tt: p,
|
|
1716
1716
|
$t: !W,
|
|
1717
|
-
P: r ?
|
|
1717
|
+
P: r ? _ : ct({}, F, _)
|
|
1718
1718
|
});
|
|
1719
1719
|
}
|
|
1720
1720
|
return {
|
|
1721
|
-
xt:
|
|
1721
|
+
xt: z
|
|
1722
1722
|
};
|
|
1723
1723
|
};
|
|
1724
1724
|
}, { max: Hn } = Math, ee = Hn.bind(0, 0), us = "visible", Do = "hidden", ri = 42, Ue = {
|
|
@@ -1743,20 +1743,20 @@ const xo = (t, e, n, o) => {
|
|
|
1743
1743
|
h: o.h > n ? o.h : 0
|
|
1744
1744
|
};
|
|
1745
1745
|
}, qe = (t) => t.indexOf(us) === 0, li = (t, e) => {
|
|
1746
|
-
const [n, o] = e, { J: s, tt: r, K: i, ot: a, ft: c, ht: l, it: d, ct: f } = t, { k: u, Y: p, A: v, I: g } =
|
|
1746
|
+
const [n, o] = e, { J: s, tt: r, K: i, ot: a, ft: c, ht: l, it: d, ct: f } = t, { k: u, Y: p, A: v, I: g } = St(), b = he()[no], D = !c && !v && (g.x || g.y), m = d && c, [h, w] = It(Ue, tn.bind(0, i)), [S, L] = It(Ue, Qe.bind(0, i)), [H, z] = It(Ue), [W, st] = It(Ue), [Y] = It(ii), F = (B, T) => {
|
|
1747
1747
|
if (ht(i, {
|
|
1748
1748
|
height: ""
|
|
1749
1749
|
}), T) {
|
|
1750
|
-
const { $t: E, tt:
|
|
1750
|
+
const { $t: E, tt: M } = n(), { Ct: U, M: G } = B, $ = tn(s), C = Xe(s), I = ht(i, "boxSizing") === "content-box", V = E || I ? M.b + M.t : 0, A = !(g.x && I);
|
|
1751
1751
|
ht(i, {
|
|
1752
|
-
height: C.h + $.h + (U.x &&
|
|
1752
|
+
height: C.h + $.h + (U.x && A ? G.x : 0) - V
|
|
1753
1753
|
});
|
|
1754
1754
|
}
|
|
1755
|
-
},
|
|
1756
|
-
const E = !v && !B ? ri : 0,
|
|
1755
|
+
}, _ = (B, T) => {
|
|
1756
|
+
const E = !v && !B ? ri : 0, M = (Q, nt, at) => {
|
|
1757
1757
|
const Z = ht(i, Q), ft = (T ? T[Q] : Z) === "scroll";
|
|
1758
1758
|
return [Z, ft, ft && !v ? nt ? E : at : 0, nt && !!E];
|
|
1759
|
-
}, [U, G, $, C] =
|
|
1759
|
+
}, [U, G, $, C] = M("overflowX", g.x, u.x), [I, V, A, K] = M("overflowY", g.y, u.y);
|
|
1760
1760
|
return {
|
|
1761
1761
|
Ot: {
|
|
1762
1762
|
x: U,
|
|
@@ -1768,31 +1768,31 @@ const xo = (t, e, n, o) => {
|
|
|
1768
1768
|
},
|
|
1769
1769
|
M: {
|
|
1770
1770
|
x: $,
|
|
1771
|
-
y:
|
|
1771
|
+
y: A
|
|
1772
1772
|
},
|
|
1773
1773
|
D: {
|
|
1774
1774
|
x: C,
|
|
1775
1775
|
y: K
|
|
1776
1776
|
}
|
|
1777
1777
|
};
|
|
1778
|
-
}, y = (B, T, E,
|
|
1779
|
-
const U = (V,
|
|
1780
|
-
const K = qe(V), Q =
|
|
1781
|
-
return [
|
|
1778
|
+
}, y = (B, T, E, M) => {
|
|
1779
|
+
const U = (V, A) => {
|
|
1780
|
+
const K = qe(V), Q = A && K && V.replace(`${us}-`, "") || "";
|
|
1781
|
+
return [A && !K ? V : "", qe(Q) ? "hidden" : Q];
|
|
1782
1782
|
}, [G, $] = U(E.x, T.x), [C, I] = U(E.y, T.y);
|
|
1783
|
-
return
|
|
1784
|
-
}, x = (B, T, E,
|
|
1785
|
-
const { M: U, D: G } = B, { x: $, y: C } = G, { x: I, y: V } = U, { P:
|
|
1786
|
-
|
|
1787
|
-
}, [k,
|
|
1783
|
+
return M.overflowX = $ && C ? $ : G, M.overflowY = I && G ? I : C, _(B, M);
|
|
1784
|
+
}, x = (B, T, E, M) => {
|
|
1785
|
+
const { M: U, D: G } = B, { x: $, y: C } = G, { x: I, y: V } = U, { P: A } = n(), K = T ? "marginLeft" : "marginRight", Q = T ? "paddingLeft" : "paddingRight", nt = A[K], at = A.marginBottom, Z = A[Q], X = A.paddingBottom;
|
|
1786
|
+
M.width = `calc(100% + ${V + -1 * nt}px)`, M[K] = -V + nt, M.marginBottom = -I + at, E && (M[Q] = Z + (C ? V : 0), M.paddingBottom = X + ($ ? I : 0));
|
|
1787
|
+
}, [k, N] = b ? b.L(D, p, i, a, n, _, x) : [() => D, () => [_t]];
|
|
1788
1788
|
return (B, T, E) => {
|
|
1789
|
-
const { wt:
|
|
1790
|
-
let Jt =
|
|
1791
|
-
if (Q && v && l(rs, Or, !Z), X && (ut =
|
|
1792
|
-
$t && l(xe,
|
|
1793
|
-
const [Vt, Qt] =
|
|
1789
|
+
const { wt: M, Tt: U, bt: G, xt: $, vt: C, St: I } = B, { gt: V, yt: A } = n(), [K, Q] = T("showNativeOverlaidScrollbars"), [nt, at] = T("overflow"), Z = K && g.x && g.y, X = !c && !p && (M || G || U || Q || C), ft = qe(nt.x), Tt = qe(nt.y), $t = ft || Tt;
|
|
1790
|
+
let Jt = w(E), ae = L(E), ve = z(E), ye = st(E), ut;
|
|
1791
|
+
if (Q && v && l(rs, Or, !Z), X && (ut = _(Z), F(ut, V)), M || $ || G || I || Q) {
|
|
1792
|
+
$t && l(xe, _e, !1);
|
|
1793
|
+
const [Vt, Qt] = N(Z, A, ut), [Ht, Pe] = Jt = h(E), [Nt, ke] = ae = S(E), de = Xe(i);
|
|
1794
1794
|
let gn = Nt, hn = de;
|
|
1795
|
-
Vt(), (ke || Pe || Q) && Qt && !Z && k(Qt, Nt, Ht,
|
|
1795
|
+
Vt(), (ke || Pe || Q) && Qt && !Z && k(Qt, Nt, Ht, A) && (hn = Xe(i), gn = Qe(i));
|
|
1796
1796
|
const ys = {
|
|
1797
1797
|
w: ee(Hn(Nt.w, gn.w) + Ht.w),
|
|
1798
1798
|
h: ee(Hn(Nt.h, gn.h) + Ht.h)
|
|
@@ -1800,7 +1800,7 @@ const xo = (t, e, n, o) => {
|
|
|
1800
1800
|
w: ee((m ? f.innerWidth : hn.w + ee(de.w - Nt.w)) + Ht.w),
|
|
1801
1801
|
h: ee((m ? f.innerHeight + Ht.h : hn.h + ee(de.h - Nt.h)) + Ht.h)
|
|
1802
1802
|
};
|
|
1803
|
-
ye = W(ro), ve =
|
|
1803
|
+
ye = W(ro), ve = H(ci(ys, ro), E);
|
|
1804
1804
|
}
|
|
1805
1805
|
const [vt, yt] = ye, [Ct, Ne] = ve, [dn, un] = ae, [fn, pn] = Jt, zt = {
|
|
1806
1806
|
x: Ct.w > 0,
|
|
@@ -1814,11 +1814,11 @@ const xo = (t, e, n, o) => {
|
|
|
1814
1814
|
width: "",
|
|
1815
1815
|
overflowY: "",
|
|
1816
1816
|
overflowX: ""
|
|
1817
|
-
}, Qt = y(Z, zt, nt, Vt), Ht = k(Qt, dn, fn,
|
|
1818
|
-
c || x(Qt,
|
|
1817
|
+
}, Qt = y(Z, zt, nt, Vt), Ht = k(Qt, dn, fn, A);
|
|
1818
|
+
c || x(Qt, A, Ht, Vt), X && F(Qt, V), c ? (mt(s, os, Vt.overflowX), mt(s, ss, Vt.overflowY)) : ht(i, Vt);
|
|
1819
1819
|
}
|
|
1820
|
-
fe(s, Ot,
|
|
1821
|
-
const [mn, Me] = Y(
|
|
1820
|
+
fe(s, Ot, _e, Ae), fe(r, Bn, Er, Ae), c || fe(i, te, xe, $t);
|
|
1821
|
+
const [mn, Me] = Y(_(Z).Ot);
|
|
1822
1822
|
return o({
|
|
1823
1823
|
Ot: mn,
|
|
1824
1824
|
zt: {
|
|
@@ -1843,7 +1843,7 @@ const xo = (t, e, n, o) => {
|
|
|
1843
1843
|
o[i] = !!(n || a || c);
|
|
1844
1844
|
}), o;
|
|
1845
1845
|
}, ai = (t, e) => {
|
|
1846
|
-
const { Z: n, K: o, ht: s, ft: r } = t, { A: i, I: a, Y: c } =
|
|
1846
|
+
const { Z: n, K: o, ht: s, ft: r } = t, { A: i, I: a, Y: c } = St(), l = !i && (a.x || a.y), d = [oi(t, e), si(t, e), li(t, e)];
|
|
1847
1847
|
return (f, u, p) => {
|
|
1848
1848
|
const v = ko(ct({
|
|
1849
1849
|
wt: !1,
|
|
@@ -1896,21 +1896,21 @@ const xo = (t, e, n, o) => {
|
|
|
1896
1896
|
}, {
|
|
1897
1897
|
g: 33,
|
|
1898
1898
|
v: 99
|
|
1899
|
-
}), [u, p] = di(t, f, a), v = r || [], g = i || [], b = v.concat(g), D = (h,
|
|
1900
|
-
const
|
|
1899
|
+
}), [u, p] = di(t, f, a), v = r || [], g = i || [], b = v.concat(g), D = (h, w) => {
|
|
1900
|
+
const S = l || _t, L = d || _t, H = /* @__PURE__ */ new Set(), z = /* @__PURE__ */ new Set();
|
|
1901
1901
|
let W = !1, st = !1;
|
|
1902
1902
|
if (q(h, (Y) => {
|
|
1903
|
-
const { attributeName: F, target:
|
|
1903
|
+
const { attributeName: F, target: _, type: y, oldValue: x, addedNodes: k, removedNodes: N } = Y, B = y === "attributes", T = y === "childList", E = t === _, M = B && le(F) ? mt(_, F) : 0, U = M !== 0 && x !== M, G = qn(g, F) > -1 && U;
|
|
1904
1904
|
if (e && (T || !E)) {
|
|
1905
|
-
const $ = !B, C = B && U, I = C && c && Ze(
|
|
1906
|
-
q(k, (K) =>
|
|
1905
|
+
const $ = !B, C = B && U, I = C && c && Ze(_, c), A = (I ? !S(_, F, x, M) : $ || C) && !L(Y, !!I, t, o);
|
|
1906
|
+
q(k, (K) => H.add(K)), q(N, (K) => H.add(K)), st = st || A;
|
|
1907
1907
|
}
|
|
1908
|
-
!e && E && U && !_
|
|
1909
|
-
}),
|
|
1910
|
-
return !
|
|
1911
|
-
if (
|
|
1912
|
-
const Y = [ge(
|
|
1913
|
-
return !
|
|
1908
|
+
!e && E && U && !S(_, F, x, M) && (z.add(F), W = W || G);
|
|
1909
|
+
}), H.size > 0 && p((Y) => ge(H).reduce((F, _) => (J(F, Vo(Y, _)), Ze(_, Y) ? J(F, _) : F), [])), e)
|
|
1910
|
+
return !w && st && n(!1), [!1];
|
|
1911
|
+
if (z.size > 0 || W) {
|
|
1912
|
+
const Y = [ge(z), W];
|
|
1913
|
+
return !w && n.apply(0, Y), Y;
|
|
1914
1914
|
}
|
|
1915
1915
|
}, m = new br((h) => D(h));
|
|
1916
1916
|
return m.observe(t, {
|
|
@@ -1930,21 +1930,21 @@ const xo = (t, e, n, o) => {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
}];
|
|
1932
1932
|
}, Ye = 3333333, fs = (t, e, n) => {
|
|
1933
|
-
const { Yt: o = !1, Pt: s = !1 } = n || {}, r = he()[Yr], { V: i } =
|
|
1933
|
+
const { Yt: o = !1, Pt: s = !1 } = n || {}, r = he()[Yr], { V: i } = St(), c = Uo(`<div class="${to}"><div class="${Lr}"></div></div>`)[0], l = c.firstChild, d = Ee.bind(0, t), [f] = It({
|
|
1934
1934
|
o: void 0,
|
|
1935
1935
|
_: !0,
|
|
1936
|
-
u: (g, b) => !(!g || !
|
|
1936
|
+
u: (g, b) => !(!g || !Se(g) && Se(b))
|
|
1937
1937
|
}), u = (g) => {
|
|
1938
1938
|
const b = kt(g) && g.length > 0 && Oe(g[0]), D = !b && Un(g[0]);
|
|
1939
|
-
let m = !1, h = !1,
|
|
1939
|
+
let m = !1, h = !1, w = !0;
|
|
1940
1940
|
if (b) {
|
|
1941
|
-
const [
|
|
1942
|
-
m = !L && !!
|
|
1941
|
+
const [S, , L] = f(g.pop().contentRect), H = Se(S), z = Se(L);
|
|
1942
|
+
m = !L && !!z || !H, h = !z && H, w = !m;
|
|
1943
1943
|
} else
|
|
1944
|
-
D ? [,
|
|
1945
|
-
if (o &&
|
|
1946
|
-
const
|
|
1947
|
-
Et(c,
|
|
1944
|
+
D ? [, w] = g : h = g === !0;
|
|
1945
|
+
if (o && w) {
|
|
1946
|
+
const S = D ? g[0] : Ee(c);
|
|
1947
|
+
Et(c, S ? i.n ? -Ye : i.i ? 0 : Ye : Ye), jt(c, Ye);
|
|
1948
1948
|
}
|
|
1949
1949
|
m || e({
|
|
1950
1950
|
wt: !D,
|
|
@@ -1970,8 +1970,8 @@ const xo = (t, e, n, o) => {
|
|
|
1970
1970
|
o: void 0
|
|
1971
1971
|
}, d);
|
|
1972
1972
|
J(p, dt(c, "scroll", (b) => {
|
|
1973
|
-
const D = g(), [m, h,
|
|
1974
|
-
h && (Kn(l, "ltr rtl"), m ? Gt(l, "rtl") : Gt(l, "ltr"), u([!!m, h,
|
|
1973
|
+
const D = g(), [m, h, w] = D;
|
|
1974
|
+
h && (Kn(l, "ltr rtl"), m ? Gt(l, "rtl") : Gt(l, "ltr"), u([!!m, h, w])), Zo(b);
|
|
1975
1975
|
}));
|
|
1976
1976
|
}
|
|
1977
1977
|
v && (Gt(c, Br), J(p, dt(c, "animationstart", v, {
|
|
@@ -2015,103 +2015,103 @@ const xo = (t, e, n, o) => {
|
|
|
2015
2015
|
}];
|
|
2016
2016
|
}, Co = `[${Ot}]`, pi = `[${te}]`, Dn = ["tabindex"], Io = ["wrap", "cols", "rows"], kn = ["id", "class", "style", "open"], mi = (t, e, n) => {
|
|
2017
2017
|
let o, s, r;
|
|
2018
|
-
const { J: i, K: a, nt: c, lt: l, ft: d, _t: f, ht: u } = t, { Y: p } =
|
|
2018
|
+
const { J: i, K: a, nt: c, lt: l, ft: d, _t: f, ht: u } = t, { Y: p } = St(), [v] = It({
|
|
2019
2019
|
u: jo,
|
|
2020
2020
|
o: {
|
|
2021
2021
|
w: 0,
|
|
2022
2022
|
h: 0
|
|
2023
2023
|
}
|
|
2024
2024
|
}, () => {
|
|
2025
|
-
const x = f(xe,
|
|
2026
|
-
u(xe,
|
|
2027
|
-
const T = Qe(c), E = Qe(a),
|
|
2028
|
-
return u(xe,
|
|
2029
|
-
w: E.w + T.w +
|
|
2030
|
-
h: E.h + T.h +
|
|
2025
|
+
const x = f(xe, _e), k = f(_n, ""), N = k && Et(a), B = k && jt(a);
|
|
2026
|
+
u(xe, _e), u(_n, ""), u("", en, !0);
|
|
2027
|
+
const T = Qe(c), E = Qe(a), M = tn(a);
|
|
2028
|
+
return u(xe, _e, x), u(_n, "", k), u("", en), Et(a, N), jt(a, B), {
|
|
2029
|
+
w: E.w + T.w + M.w,
|
|
2030
|
+
h: E.h + T.h + M.h
|
|
2031
2031
|
};
|
|
2032
2032
|
}), g = l ? Io : kn.concat(Io), b = Zn(n, {
|
|
2033
2033
|
g: () => o,
|
|
2034
2034
|
v: () => s,
|
|
2035
2035
|
p(x, k) {
|
|
2036
|
-
const [
|
|
2037
|
-
return [xt(
|
|
2036
|
+
const [N] = x, [B] = k;
|
|
2037
|
+
return [xt(N).concat(xt(B)).reduce((T, E) => (T[E] = N[E] || B[E], T), {})];
|
|
2038
2038
|
}
|
|
2039
2039
|
}), D = (x) => {
|
|
2040
2040
|
q(x || Dn, (k) => {
|
|
2041
2041
|
if (qn(Dn, k) > -1) {
|
|
2042
|
-
const
|
|
2043
|
-
le(
|
|
2042
|
+
const N = mt(i, k);
|
|
2043
|
+
le(N) ? mt(a, k, N) : bt(a, k);
|
|
2044
2044
|
}
|
|
2045
2045
|
});
|
|
2046
2046
|
}, m = (x, k) => {
|
|
2047
|
-
const [
|
|
2047
|
+
const [N, B] = x, T = {
|
|
2048
2048
|
vt: B
|
|
2049
2049
|
};
|
|
2050
2050
|
return e({
|
|
2051
|
-
gt:
|
|
2051
|
+
gt: N
|
|
2052
2052
|
}), !k && n(T), T;
|
|
2053
|
-
}, h = ({ wt: x, jt: k, Pt:
|
|
2054
|
-
const B = !x ||
|
|
2053
|
+
}, h = ({ wt: x, jt: k, Pt: N }) => {
|
|
2054
|
+
const B = !x || N ? n : b;
|
|
2055
2055
|
let T = !1;
|
|
2056
2056
|
if (k) {
|
|
2057
|
-
const [E,
|
|
2058
|
-
T =
|
|
2057
|
+
const [E, M] = k;
|
|
2058
|
+
T = M, e({
|
|
2059
2059
|
yt: E
|
|
2060
2060
|
});
|
|
2061
2061
|
}
|
|
2062
2062
|
B({
|
|
2063
2063
|
wt: x,
|
|
2064
|
-
Pt:
|
|
2064
|
+
Pt: N,
|
|
2065
2065
|
St: T
|
|
2066
2066
|
});
|
|
2067
|
-
},
|
|
2068
|
-
const [,
|
|
2069
|
-
bt:
|
|
2067
|
+
}, w = (x, k) => {
|
|
2068
|
+
const [, N] = v(), B = {
|
|
2069
|
+
bt: N
|
|
2070
2070
|
};
|
|
2071
|
-
return
|
|
2072
|
-
},
|
|
2071
|
+
return N && !k && (x ? n : b)(B), B;
|
|
2072
|
+
}, S = (x, k, N) => {
|
|
2073
2073
|
const B = {
|
|
2074
2074
|
Tt: k
|
|
2075
2075
|
};
|
|
2076
|
-
return k ? !
|
|
2077
|
-
}, [L,
|
|
2076
|
+
return k ? !N && b(B) : d || D(x), B;
|
|
2077
|
+
}, [L, H, z] = c || !p ? fi(i, m) : [_t, _t, _t], [W, st] = d ? [_t, _t] : fs(i, h, {
|
|
2078
2078
|
Pt: !0,
|
|
2079
2079
|
Yt: !0
|
|
2080
|
-
}), [Y, F] = To(i, !1,
|
|
2080
|
+
}), [Y, F] = To(i, !1, S, {
|
|
2081
2081
|
Dt: kn,
|
|
2082
2082
|
Mt: kn.concat(Dn)
|
|
2083
2083
|
});
|
|
2084
|
-
let
|
|
2084
|
+
let _;
|
|
2085
2085
|
const y = d && we && new we((x) => {
|
|
2086
|
-
const k = x[x.length - 1].contentRect,
|
|
2086
|
+
const k = x[x.length - 1].contentRect, N = Se(k), T = !Se(_) && N;
|
|
2087
2087
|
h({
|
|
2088
2088
|
wt: !0,
|
|
2089
2089
|
Pt: T
|
|
2090
|
-
}),
|
|
2090
|
+
}), _ = k;
|
|
2091
2091
|
});
|
|
2092
2092
|
return [() => {
|
|
2093
2093
|
L(), W(), r && r[0](), y && y.disconnect(), Y();
|
|
2094
2094
|
}, () => {
|
|
2095
|
-
y && y.observe(i), D(), st(),
|
|
2095
|
+
y && y.observe(i), D(), st(), H();
|
|
2096
2096
|
}, () => {
|
|
2097
|
-
const x = {}, k = F(),
|
|
2098
|
-
return k && ct(x,
|
|
2097
|
+
const x = {}, k = F(), N = z(), B = r && r[1]();
|
|
2098
|
+
return k && ct(x, S.apply(0, J(k, !0))), N && ct(x, m.apply(0, J(N, !0))), B && ct(x, w.apply(0, J(B, !0))), x;
|
|
2099
2099
|
}, (x) => {
|
|
2100
|
-
const [k] = x("update.ignoreMutation"), [
|
|
2101
|
-
if (G && (r && (r[1](), r[0]()), r = To(c || a, !0,
|
|
2102
|
-
Mt: g.concat(
|
|
2100
|
+
const [k] = x("update.ignoreMutation"), [N, B] = x("update.attributes"), [T, E] = x("update.elementEvents"), [M, U] = x("update.debounce"), G = E || B, $ = (C) => Lt(k) && k(C);
|
|
2101
|
+
if (G && (r && (r[1](), r[0]()), r = To(c || a, !0, w, {
|
|
2102
|
+
Mt: g.concat(N || []),
|
|
2103
2103
|
Rt: T,
|
|
2104
2104
|
kt: Co,
|
|
2105
2105
|
Vt: (C, I) => {
|
|
2106
|
-
const { target: V, attributeName:
|
|
2107
|
-
return (!I &&
|
|
2106
|
+
const { target: V, attributeName: A } = C;
|
|
2107
|
+
return (!I && A && !d ? pr(V, Co, pi) : !1) || !!be(V, `.${wt}`) || !!$(C);
|
|
2108
2108
|
}
|
|
2109
2109
|
})), U)
|
|
2110
|
-
if (b.m(), kt(
|
|
2111
|
-
const C =
|
|
2110
|
+
if (b.m(), kt(M)) {
|
|
2111
|
+
const C = M[0], I = M[1];
|
|
2112
2112
|
o = ie(C) && C, s = ie(I) && I;
|
|
2113
2113
|
} else
|
|
2114
|
-
ie(
|
|
2114
|
+
ie(M) ? (o = M, s = !1) : (o = !1, s = !1);
|
|
2115
2115
|
}];
|
|
2116
2116
|
}, Oo = {
|
|
2117
2117
|
x: 0,
|
|
@@ -2146,16 +2146,16 @@ const xo = (t, e, n, o) => {
|
|
|
2146
2146
|
gt: !1,
|
|
2147
2147
|
yt: Ee(t.J)
|
|
2148
2148
|
}), hi = (t, e) => {
|
|
2149
|
-
const n = zn(e, {}), [o, s, r] = Qn(), [i, a, c] = ni(t), l = ds(gi(i)), [d, f] = l, u = ai(i, l), p = (h,
|
|
2150
|
-
const
|
|
2151
|
-
return
|
|
2149
|
+
const n = zn(e, {}), [o, s, r] = Qn(), [i, a, c] = ni(t), l = ds(gi(i)), [d, f] = l, u = ai(i, l), p = (h, w, S) => {
|
|
2150
|
+
const H = xt(h).some((z) => !!h[z]) || !Xn(w) || S;
|
|
2151
|
+
return H && r("u", [h, w, S]), H;
|
|
2152
2152
|
}, [v, g, b, D] = mi(i, f, (h) => p(u(n, h), {}, !1)), m = d.bind(0);
|
|
2153
2153
|
return m.Nt = (h) => o("u", h), m.qt = () => {
|
|
2154
|
-
const { Z: h, K:
|
|
2155
|
-
g(), a(), Et(
|
|
2156
|
-
}, m.Ft = i, [(h,
|
|
2157
|
-
const
|
|
2158
|
-
return D(
|
|
2154
|
+
const { Z: h, K: w, rt: S, it: L } = i, H = L ? S.documentElement : h, z = Et(H), W = jt(H);
|
|
2155
|
+
g(), a(), Et(w, z), jt(w, W);
|
|
2156
|
+
}, m.Ft = i, [(h, w) => {
|
|
2157
|
+
const S = zn(e, h, w);
|
|
2158
|
+
return D(S), p(u(S, b(), w), h, !!w);
|
|
2159
2159
|
}, m, () => {
|
|
2160
2160
|
s(), v(), c();
|
|
2161
2161
|
}];
|
|
@@ -2176,34 +2176,34 @@ const xo = (t, e, n, o) => {
|
|
|
2176
2176
|
$: !0
|
|
2177
2177
|
}), {
|
|
2178
2178
|
$: !0
|
|
2179
|
-
}),
|
|
2180
|
-
const { V: a } =
|
|
2181
|
-
const { Et:
|
|
2182
|
-
s[f] = m +
|
|
2179
|
+
}), Si = (t, e, n, o, s, r, i) => {
|
|
2180
|
+
const { V: a } = St(), { Gt: c, Xt: l, Ut: d } = o, f = `scroll${i ? "Left" : "Top"}`, u = `client${i ? "X" : "Y"}`, p = i ? "width" : "height", v = i ? "left" : "top", g = i ? "w" : "h", b = i ? "x" : "y", D = (m, h) => (w) => {
|
|
2181
|
+
const { Et: S } = r(), L = Be(l)[g] - Be(c)[g], z = h * w / L * S[b], st = Ee(d) && i ? a.n || a.i ? 1 : -1 : 1;
|
|
2182
|
+
s[f] = m + z * st;
|
|
2183
2183
|
};
|
|
2184
2184
|
return dt(l, "pointerdown", (m) => {
|
|
2185
|
-
const h = be(m.target, `.${eo}`) === c,
|
|
2185
|
+
const h = be(m.target, `.${eo}`) === c, w = h ? c : l;
|
|
2186
2186
|
if (fe(e, Ot, ho, !0), yi(m, t, h)) {
|
|
2187
|
-
const
|
|
2188
|
-
Wt(B),
|
|
2189
|
-
}, B = [fe.bind(0, e, Ot, ho), dt(n, Bo,
|
|
2187
|
+
const S = !h && m.shiftKey, L = () => Pt(c), H = () => Pt(l), z = (T, E) => (T || L())[v] - (E || H())[v], W = D(s[f] || 0, 1 / vi(s)[b]), st = m[u], Y = L(), F = H(), _ = Y[p], y = z(Y, F) + _ / 2, x = st - F[v], k = h ? 0 : x - y, N = (T) => {
|
|
2188
|
+
Wt(B), w.releasePointerCapture(T.pointerId);
|
|
2189
|
+
}, B = [fe.bind(0, e, Ot, ho), dt(n, Bo, N), dt(n, "selectstart", (T) => Jo(T), {
|
|
2190
2190
|
S: !1
|
|
2191
|
-
}), dt(l, Bo,
|
|
2191
|
+
}), dt(l, Bo, N), dt(l, "pointermove", (T) => {
|
|
2192
2192
|
const E = T[u] - st;
|
|
2193
|
-
(h ||
|
|
2193
|
+
(h || S) && W(k + E);
|
|
2194
2194
|
})];
|
|
2195
|
-
if (
|
|
2195
|
+
if (S)
|
|
2196
2196
|
W(k);
|
|
2197
2197
|
else if (!h) {
|
|
2198
2198
|
const T = he()[Xr];
|
|
2199
|
-
T && J(B, T.O(W,
|
|
2199
|
+
T && J(B, T.O(W, z, k, _, x));
|
|
2200
2200
|
}
|
|
2201
|
-
|
|
2201
|
+
w.setPointerCapture(m.pointerId);
|
|
2202
2202
|
}
|
|
2203
2203
|
});
|
|
2204
|
-
},
|
|
2204
|
+
}, _i = ({ Gt: t }, e, n) => {
|
|
2205
2205
|
if (!e)
|
|
2206
|
-
return
|
|
2206
|
+
return _t;
|
|
2207
2207
|
const o = t.animate(bi(n), {
|
|
2208
2208
|
timeline: e
|
|
2209
2209
|
});
|
|
@@ -2223,13 +2223,13 @@ const xo = (t, e, n, o) => {
|
|
|
2223
2223
|
left: g,
|
|
2224
2224
|
top: b,
|
|
2225
2225
|
behavior: "smooth"
|
|
2226
|
-
}), p = !1, o(
|
|
2227
|
-
p = !0, o(
|
|
2226
|
+
}), p = !1, o(_o, !0), d(() => {
|
|
2227
|
+
p = !0, o(_o);
|
|
2228
2228
|
}), Jo(v);
|
|
2229
2229
|
}, {
|
|
2230
2230
|
S: !1,
|
|
2231
2231
|
$: !0
|
|
2232
|
-
}), wi(l, s),
|
|
2232
|
+
}), wi(l, s), Si(t, r, s, n, i, e, c), _i(n, a, c), f]);
|
|
2233
2233
|
}, { min: Nn, max: Lo, abs: $i, round: Di } = Math, ps = (t, e, n, o) => {
|
|
2234
2234
|
if (o) {
|
|
2235
2235
|
const a = n ? "x" : "y", { Et: c, zt: l } = o, d = l[a], f = c[a];
|
|
@@ -2238,7 +2238,7 @@ const xo = (t, e, n, o) => {
|
|
|
2238
2238
|
const s = n ? "width" : "height", r = Pt(t)[s], i = Pt(e)[s];
|
|
2239
2239
|
return Lo(0, Nn(1, r / i));
|
|
2240
2240
|
}, ki = (t, e, n, o, s, r) => {
|
|
2241
|
-
const { V: i } =
|
|
2241
|
+
const { V: i } = St(), a = r ? "x" : "y", c = r ? "Left" : "Top", { Et: l } = o, d = Di(l[a]), f = $i(n[`scroll${c}`]), u = r && s, p = i.i ? f : d - f, g = Nn(1, (u ? p : f) / d), b = ps(t, e, r);
|
|
2242
2242
|
return 1 / b * (1 - b) * g;
|
|
2243
2243
|
}, Ti = (t) => `${Math.max(0, t - 0.5)}px`, zo = (t, e, n, o) => t.animate({
|
|
2244
2244
|
transform: [$e("0px", o), $e(Ti(n), o)]
|
|
@@ -2249,103 +2249,103 @@ const xo = (t, e, n, o) => {
|
|
|
2249
2249
|
source: t,
|
|
2250
2250
|
axis: e
|
|
2251
2251
|
}) : null, Ci = (t, e, n) => {
|
|
2252
|
-
const { q: o, H: s } =
|
|
2252
|
+
const { q: o, H: s } = St(), { scrollbars: r } = o(), { slot: i } = r, { rt: a, Z: c, J: l, K: d, ut: f, st: u, it: p, ft: v } = e, { scrollbars: g } = f ? {} : t, { slot: b } = g || {}, D = /* @__PURE__ */ new Map(), m = Ho(u, "x"), h = Ho(u, "y"), w = ls([c, l, d], () => v && p ? c : l, i, b), S = ($) => v && !p && Kt($) === d, L = () => {
|
|
2253
2253
|
D.forEach(($) => {
|
|
2254
2254
|
($ || []).forEach((C) => {
|
|
2255
2255
|
C.cancel();
|
|
2256
2256
|
});
|
|
2257
2257
|
});
|
|
2258
|
-
},
|
|
2258
|
+
}, H = ($, C, I) => {
|
|
2259
2259
|
const V = I ? Gt : Kn;
|
|
2260
|
-
q($, (
|
|
2261
|
-
V(
|
|
2260
|
+
q($, (A) => {
|
|
2261
|
+
V(A.Ut, C);
|
|
2262
2262
|
});
|
|
2263
|
-
},
|
|
2263
|
+
}, z = ($, C) => {
|
|
2264
2264
|
q($, (I) => {
|
|
2265
|
-
const [V,
|
|
2266
|
-
ht(V,
|
|
2265
|
+
const [V, A] = C(I);
|
|
2266
|
+
ht(V, A);
|
|
2267
2267
|
});
|
|
2268
2268
|
}, W = ($, C, I) => {
|
|
2269
|
-
|
|
2270
|
-
const { Gt:
|
|
2271
|
-
return [
|
|
2272
|
-
[I ? "width" : "height"]: `${(100 * ps(
|
|
2269
|
+
z($, (V) => {
|
|
2270
|
+
const { Gt: A, Xt: K } = V;
|
|
2271
|
+
return [A, {
|
|
2272
|
+
[I ? "width" : "height"]: `${(100 * ps(A, K, I, C)).toFixed(3)}%`
|
|
2273
2273
|
}];
|
|
2274
2274
|
});
|
|
2275
2275
|
}, st = ($, C, I) => {
|
|
2276
|
-
!h && !h &&
|
|
2277
|
-
const { Gt:
|
|
2278
|
-
return [
|
|
2276
|
+
!h && !h && z($, (V) => {
|
|
2277
|
+
const { Gt: A, Xt: K, Ut: Q } = V, nt = ki(A, K, u, C, Ee(Q), I);
|
|
2278
|
+
return [A, {
|
|
2279
2279
|
transform: nt === nt ? $e(`${(100 * nt).toFixed(3)}%`, I) : ""
|
|
2280
2280
|
}];
|
|
2281
2281
|
});
|
|
2282
2282
|
}, Y = ($) => {
|
|
2283
|
-
const { Ut: C } = $, I =
|
|
2283
|
+
const { Ut: C } = $, I = S(C) && C;
|
|
2284
2284
|
return [I, {
|
|
2285
2285
|
transform: I ? $e([`${Et(u)}px`, `${jt(u)}px`]) : ""
|
|
2286
2286
|
}];
|
|
2287
|
-
}, F = [],
|
|
2288
|
-
const V = Un(I),
|
|
2289
|
-
|
|
2287
|
+
}, F = [], _ = [], y = [], x = ($, C, I) => {
|
|
2288
|
+
const V = Un(I), A = V ? I : !0, K = V ? !I : !0;
|
|
2289
|
+
A && H(_, $, C), K && H(y, $, C);
|
|
2290
2290
|
}, k = ($) => {
|
|
2291
|
-
W(
|
|
2292
|
-
},
|
|
2293
|
-
st(
|
|
2291
|
+
W(_, $, !0), W(y, $);
|
|
2292
|
+
}, N = ($) => {
|
|
2293
|
+
st(_, $, !0), st(y, $);
|
|
2294
2294
|
}, B = () => {
|
|
2295
|
-
!h && !h && (v &&
|
|
2295
|
+
!h && !h && (v && z(_, Y), v && z(y, Y));
|
|
2296
2296
|
}, T = ({ Et: $ }) => {
|
|
2297
|
-
L(), y.concat(
|
|
2298
|
-
|
|
2297
|
+
L(), y.concat(_).forEach(({ Ut: C }) => {
|
|
2298
|
+
S(C) && D.set(C, [zo(C, m, $.x, !0), zo(C, h, $.y)]);
|
|
2299
2299
|
});
|
|
2300
2300
|
}, E = ($) => {
|
|
2301
|
-
const C = $ ? Mr : Pr, I = $ ?
|
|
2302
|
-
Ut:
|
|
2301
|
+
const C = $ ? Mr : Pr, I = $ ? _ : y, V = Yn(I) ? yo : "", A = pe(`${wt} ${C} ${V}`), K = pe(is), Q = pe(eo), nt = {
|
|
2302
|
+
Ut: A,
|
|
2303
2303
|
Xt: K,
|
|
2304
2304
|
Gt: Q
|
|
2305
2305
|
};
|
|
2306
|
-
return s || Gt(
|
|
2306
|
+
return s || Gt(A, Hr), Dt(A, K), Dt(K, Q), J(I, nt), J(F, [() => {
|
|
2307
2307
|
L(), D.clear();
|
|
2308
|
-
}, Ft.bind(0,
|
|
2309
|
-
},
|
|
2310
|
-
Dt(
|
|
2308
|
+
}, Ft.bind(0, A), n(nt, x, a, l, u, $ ? m : h, $)]), nt;
|
|
2309
|
+
}, M = E.bind(0, !0), U = E.bind(0, !1), G = () => {
|
|
2310
|
+
Dt(w, _[0].Ut), Dt(w, y[0].Ut), Je(() => {
|
|
2311
2311
|
x(yo);
|
|
2312
2312
|
}, 300);
|
|
2313
2313
|
};
|
|
2314
|
-
return
|
|
2314
|
+
return M(), U(), [{
|
|
2315
2315
|
Wt: k,
|
|
2316
|
-
Zt:
|
|
2316
|
+
Zt: N,
|
|
2317
2317
|
Jt: T,
|
|
2318
2318
|
Kt: B,
|
|
2319
2319
|
Qt: x,
|
|
2320
2320
|
tn: {
|
|
2321
2321
|
B: m,
|
|
2322
|
-
nn:
|
|
2323
|
-
sn:
|
|
2324
|
-
en:
|
|
2322
|
+
nn: _,
|
|
2323
|
+
sn: M,
|
|
2324
|
+
en: z.bind(0, _)
|
|
2325
2325
|
},
|
|
2326
2326
|
cn: {
|
|
2327
2327
|
B: h,
|
|
2328
2328
|
nn: y,
|
|
2329
2329
|
sn: U,
|
|
2330
|
-
en:
|
|
2330
|
+
en: z.bind(0, y)
|
|
2331
2331
|
}
|
|
2332
2332
|
}, G, Wt.bind(0, F)];
|
|
2333
2333
|
}, Ii = (t, e, n, o) => {
|
|
2334
2334
|
let s, r, i, a, c, l = 0;
|
|
2335
|
-
const d = ds({}), [f] = d, [u, p] = ue(), [v, g] = ue(), [b, D] = ue(100), [m, h] = ue(100), [
|
|
2335
|
+
const d = ds({}), [f] = d, [u, p] = ue(), [v, g] = ue(), [b, D] = ue(100), [m, h] = ue(100), [w, S] = ue(100), [L, H] = ue(() => l), [z, W, st] = Ci(t, n.Ft, xi(e, n)), { J: Y, et: F, it: _ } = n.Ft, { Qt: y, Wt: x, Zt: k, Jt: N, Kt: B } = z, T = ($) => {
|
|
2336
2336
|
y(Ln, $, !0), y(Ln, $, !1);
|
|
2337
2337
|
}, E = ($, C) => {
|
|
2338
|
-
if (
|
|
2339
|
-
y(
|
|
2338
|
+
if (H(), $)
|
|
2339
|
+
y(So);
|
|
2340
2340
|
else {
|
|
2341
|
-
const I = () => y(
|
|
2341
|
+
const I = () => y(So, !0);
|
|
2342
2342
|
l > 0 && !C ? L(I) : I();
|
|
2343
2343
|
}
|
|
2344
|
-
},
|
|
2344
|
+
}, M = () => {
|
|
2345
2345
|
a = r, a && E(!0);
|
|
2346
|
-
}, U = [D,
|
|
2346
|
+
}, U = [D, H, h, S, g, p, st, dt(Y, "pointerover", M, {
|
|
2347
2347
|
C: !0
|
|
2348
|
-
}), dt(Y, "pointerenter",
|
|
2348
|
+
}), dt(Y, "pointerenter", M), dt(Y, "pointerleave", () => {
|
|
2349
2349
|
a = !1, r && E(!1);
|
|
2350
2350
|
}), dt(Y, "pointermove", () => {
|
|
2351
2351
|
s && u(() => {
|
|
@@ -2360,57 +2360,57 @@ const xo = (t, e, n, o) => {
|
|
|
2360
2360
|
});
|
|
2361
2361
|
}), o($), B();
|
|
2362
2362
|
})], G = f.bind(0);
|
|
2363
|
-
return G.Ft =
|
|
2364
|
-
const { Ht: V, Lt:
|
|
2363
|
+
return G.Ft = z, G.qt = W, [($, C, I) => {
|
|
2364
|
+
const { Ht: V, Lt: A, It: K, St: Q, Pt: nt } = I, { I: at } = St(), Z = zn(e, $, C), X = n(), { Et: ft, Ot: Tt, yt: $t, At: Jt } = X, [ae, ve] = Z("showNativeOverlaidScrollbars"), [ye, ut] = Z("scrollbars.theme"), [vt, yt] = Z("scrollbars.visibility"), [Ct, Ne] = Z("scrollbars.autoHide"), [dn, un] = Z("scrollbars.autoHideSuspend"), [fn] = Z("scrollbars.autoHideDelay"), [pn, zt] = Z("scrollbars.dragScroll"), [Ae, mn] = Z("scrollbars.clickScroll"), Me = nt && !C, Vt = V || A || Q, Qt = K || yt, Ht = ae && at.x && at.y, Pe = (Nt, ke) => {
|
|
2365
2365
|
const de = vt === "visible" || vt === "auto" && Nt === "scroll";
|
|
2366
2366
|
return y(Rr, de, ke), de;
|
|
2367
2367
|
};
|
|
2368
|
-
if (l = fn, ve && y(Nr, Ht), ut && (y(c), y(ye, !0), c = ye), (un || Me) && (dn && Me && (Jt.x || Jt.y) ? (T(!1),
|
|
2368
|
+
if (l = fn, ve && y(Nr, Ht), ut && (y(c), y(ye, !0), c = ye), (un || Me) && (dn && Me && (Jt.x || Jt.y) ? (T(!1), w(() => U.push(dt(F, "scroll", T.bind(0, !0), {
|
|
2369
2369
|
C: !0
|
|
2370
2370
|
})))) : T(!0)), Ne && (s = Ct === "move", r = Ct === "leave", i = Ct !== "never", E(!i, !0)), zt && y(Vr, pn), mn && y(Wr, Ae), Qt) {
|
|
2371
2371
|
const Nt = Pe(Tt.x, !0), ke = Pe(Tt.y, !1);
|
|
2372
2372
|
y(Fr, !(Nt && ke));
|
|
2373
2373
|
}
|
|
2374
|
-
Vt && (x(X), k(X),
|
|
2374
|
+
Vt && (x(X), k(X), N(X), B(), y(wo, !ft.x, !0), y(wo, !ft.y, !1), y(Ar, $t && !_));
|
|
2375
2375
|
}, G, Wt.bind(0, U)];
|
|
2376
2376
|
}, ms = (t, e, n) => {
|
|
2377
2377
|
Lt(t) && t(e || void 0, n || void 0);
|
|
2378
2378
|
}, se = (t, e, n) => {
|
|
2379
|
-
const { G: o, q: s, j: r, N: i } =
|
|
2379
|
+
const { G: o, q: s, j: r, N: i } = St(), a = he(), c = Ie(t), l = c ? t : t.target, d = as(l);
|
|
2380
2380
|
if (e && !d) {
|
|
2381
2381
|
let f = !1;
|
|
2382
|
-
const u = (
|
|
2382
|
+
const u = (_) => {
|
|
2383
2383
|
const y = he()[qr], x = y && y.O;
|
|
2384
|
-
return x ? x(
|
|
2385
|
-
}, p = ct({}, o(), u(e)), [v, g, b] = Qn(n), [D, m, h] = hi(t, p), [
|
|
2386
|
-
ei(l), W(), st(), L(), h(), f = !0, b("destroyed", [F, !!
|
|
2384
|
+
return x ? x(_, !0) : _;
|
|
2385
|
+
}, p = ct({}, o(), u(e)), [v, g, b] = Qn(n), [D, m, h] = hi(t, p), [w, S, L] = Ii(t, p, m, (_) => b("scroll", [F, _])), H = (_, y) => D(_, !!y), z = H.bind(0, {}, !0), W = r(z), st = i(z), Y = (_) => {
|
|
2386
|
+
ei(l), W(), st(), L(), h(), f = !0, b("destroyed", [F, !!_]), g();
|
|
2387
2387
|
}, F = {
|
|
2388
|
-
options(
|
|
2389
|
-
if (
|
|
2390
|
-
const x = y ? o() : {}, k = Qo(p, ct(x, u(
|
|
2391
|
-
Xn(k) || (ct(p, k),
|
|
2388
|
+
options(_, y) {
|
|
2389
|
+
if (_) {
|
|
2390
|
+
const x = y ? o() : {}, k = Qo(p, ct(x, u(_)));
|
|
2391
|
+
Xn(k) || (ct(p, k), H(k));
|
|
2392
2392
|
}
|
|
2393
2393
|
return ct({}, p);
|
|
2394
2394
|
},
|
|
2395
2395
|
on: v,
|
|
2396
|
-
off: (
|
|
2397
|
-
|
|
2396
|
+
off: (_, y) => {
|
|
2397
|
+
_ && y && g(_, y);
|
|
2398
2398
|
},
|
|
2399
2399
|
state() {
|
|
2400
|
-
const { zt:
|
|
2400
|
+
const { zt: _, Et: y, Ot: x, At: k, tt: N, $t: B, yt: T } = m();
|
|
2401
2401
|
return ct({}, {
|
|
2402
|
-
overflowEdge:
|
|
2402
|
+
overflowEdge: _,
|
|
2403
2403
|
overflowAmount: y,
|
|
2404
2404
|
overflowStyle: x,
|
|
2405
2405
|
hasOverflow: k,
|
|
2406
|
-
padding:
|
|
2406
|
+
padding: N,
|
|
2407
2407
|
paddingAbsolute: B,
|
|
2408
2408
|
directionRTL: T,
|
|
2409
2409
|
destroyed: f
|
|
2410
2410
|
});
|
|
2411
2411
|
},
|
|
2412
2412
|
elements() {
|
|
2413
|
-
const { Z:
|
|
2413
|
+
const { Z: _, J: y, tt: x, K: k, nt: N, st: B, et: T } = m.Ft, { tn: E, cn: M } = S.Ft, U = ($) => {
|
|
2414
2414
|
const { Gt: C, Xt: I, Ut: V } = $;
|
|
2415
2415
|
return {
|
|
2416
2416
|
scrollbar: V,
|
|
@@ -2421,38 +2421,38 @@ const xo = (t, e, n, o) => {
|
|
|
2421
2421
|
const { nn: C, sn: I } = $, V = U(C[0]);
|
|
2422
2422
|
return ct({}, V, {
|
|
2423
2423
|
clone: () => {
|
|
2424
|
-
const
|
|
2425
|
-
return
|
|
2424
|
+
const A = U(I());
|
|
2425
|
+
return w({}, !0, {}), A;
|
|
2426
2426
|
}
|
|
2427
2427
|
});
|
|
2428
2428
|
};
|
|
2429
2429
|
return ct({}, {
|
|
2430
|
-
target:
|
|
2430
|
+
target: _,
|
|
2431
2431
|
host: y,
|
|
2432
2432
|
padding: x || k,
|
|
2433
2433
|
viewport: k,
|
|
2434
|
-
content:
|
|
2434
|
+
content: N || k,
|
|
2435
2435
|
scrollOffsetElement: B,
|
|
2436
2436
|
scrollEventElement: T,
|
|
2437
2437
|
scrollbarHorizontal: G(E),
|
|
2438
|
-
scrollbarVertical: G(
|
|
2438
|
+
scrollbarVertical: G(M)
|
|
2439
2439
|
});
|
|
2440
2440
|
},
|
|
2441
|
-
update: (
|
|
2441
|
+
update: (_) => H({}, _),
|
|
2442
2442
|
destroy: Y.bind(0)
|
|
2443
2443
|
};
|
|
2444
|
-
return m.Nt((
|
|
2445
|
-
|
|
2446
|
-
}), ti(l, F), q(xt(a), (
|
|
2447
|
-
const { wt: k, St:
|
|
2444
|
+
return m.Nt((_, y, x) => {
|
|
2445
|
+
w(y, x, _);
|
|
2446
|
+
}), ti(l, F), q(xt(a), (_) => ms(a[_], 0, F)), Qr(m.Ft.it, s().cancel, !c && t.cancel) ? (Y(!0), F) : (m.qt(), S.qt(), b("initialized", [F]), m.Nt((_, y, x) => {
|
|
2447
|
+
const { wt: k, St: N, vt: B, Ht: T, Lt: E, It: M, bt: U, Tt: G } = _;
|
|
2448
2448
|
b("updated", [F, {
|
|
2449
2449
|
updateHints: {
|
|
2450
2450
|
sizeChanged: k,
|
|
2451
|
-
directionChanged:
|
|
2451
|
+
directionChanged: N,
|
|
2452
2452
|
heightIntrinsicChanged: B,
|
|
2453
2453
|
overflowEdgeChanged: T,
|
|
2454
2454
|
overflowAmountChanged: E,
|
|
2455
|
-
overflowStyleChanged:
|
|
2455
|
+
overflowStyleChanged: M,
|
|
2456
2456
|
contentMutation: U,
|
|
2457
2457
|
hostMutation: G
|
|
2458
2458
|
},
|
|
@@ -2471,7 +2471,7 @@ se.valid = (t) => {
|
|
|
2471
2471
|
return Tn(n) && !!as(n.target);
|
|
2472
2472
|
};
|
|
2473
2473
|
se.env = () => {
|
|
2474
|
-
const { k: t, I: e, A: n, V: o, Y: s, H: r, B: i, U: a, W: c, q: l, F: d, G: f, X: u } =
|
|
2474
|
+
const { k: t, I: e, A: n, V: o, Y: s, H: r, B: i, U: a, W: c, q: l, F: d, G: f, X: u } = St();
|
|
2475
2475
|
return ct({}, {
|
|
2476
2476
|
scrollbarsSize: t,
|
|
2477
2477
|
scrollbarsOverlaid: e,
|
|
@@ -2593,9 +2593,9 @@ const Oi = () => {
|
|
|
2593
2593
|
f.value = Object.keys(s).reduce((D, m) => {
|
|
2594
2594
|
const h = b[m];
|
|
2595
2595
|
return D[m] = [
|
|
2596
|
-
(...
|
|
2596
|
+
(...w) => n(
|
|
2597
2597
|
s[m],
|
|
2598
|
-
...
|
|
2598
|
+
...w
|
|
2599
2599
|
),
|
|
2600
2600
|
...(Array.isArray(h) ? h : [h]).filter(Boolean)
|
|
2601
2601
|
], D;
|
|
@@ -3030,7 +3030,7 @@ export {
|
|
|
3030
3030
|
Ke as DTransferStore,
|
|
3031
3031
|
Vn as DTree,
|
|
3032
3032
|
Ks as DTreeItem,
|
|
3033
|
-
|
|
3033
|
+
P as DTreeStore,
|
|
3034
3034
|
sc as alert,
|
|
3035
3035
|
ic as clickOutside,
|
|
3036
3036
|
rc as confirm,
|