rappel-ui 1.0.19 → 1.0.20
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/cjs/components/button/index.js +1 -1
- package/cjs/components/button/src/button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/button/src/types.d.ts +1 -1
- package/cjs/components/button/style/css.js +2 -1
- package/cjs/components/button/style/index.js +2 -1
- package/cjs/components/button-group/style/css.js +2 -0
- package/cjs/components/button-group/style/index.js +2 -0
- package/cjs/components/colors/index.js +1 -1
- package/cjs/components/colors/style/css.js +2 -1
- package/cjs/components/colors/style/index.js +2 -1
- package/cjs/components/filter-panel/index.js +1 -1
- package/cjs/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/filter-panel/style/css.js +2 -1
- package/cjs/components/filter-panel/style/index.js +2 -1
- package/cjs/components/input/index.js +1 -1
- package/cjs/components/popconfirm/index.d.ts +5 -5
- package/cjs/components/popconfirm/index.js +1 -1
- package/cjs/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
- package/cjs/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/popconfirm/src/types.d.ts +2 -2
- package/cjs/components/popconfirm/style/css.js +2 -1
- package/cjs/components/popconfirm/style/index.js +2 -1
- package/cjs/components/popover/index.d.ts +5 -5
- package/cjs/components/popover/index.js +1 -1
- package/cjs/components/popover/src/popover.vue.d.ts +2 -2
- package/cjs/components/popover/src/popover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/popover/src/types.d.ts +1 -1
- package/cjs/components/popover/style/css.js +2 -1
- package/cjs/components/popover/style/index.js +2 -1
- package/cjs/components/svg-icon/index.js +1 -1
- package/cjs/components/svg-icon/style/css.js +2 -1
- package/cjs/components/svg-icon/style/index.js +2 -1
- package/cjs/components/tabs/index.js +1 -1
- package/cjs/components/tooltip/index.js +1 -1
- package/cjs/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/tooltip/src/types.d.ts +1 -1
- package/cjs/components/tooltip/src/use-tooltip.js +1 -1
- package/cjs/components/tooltip/style/css.js +2 -1
- package/cjs/components/tooltip/style/index.js +2 -1
- package/cjs/composables/use-theme/index.d.ts +1 -1
- package/cjs/composables/use-theme/index.js +1 -1
- package/cjs/index.d.ts +10 -10
- package/cjs/theme-chalk/index.d.ts +0 -0
- package/es/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/button/src/types.d.ts +1 -1
- package/es/components/button/style/css.mjs +2 -2
- package/es/components/button/style/index.mjs +2 -2
- package/es/components/button-group/style/css.mjs +2 -0
- package/es/components/button-group/style/index.mjs +2 -0
- package/es/components/colors/style/css.mjs +2 -2
- package/es/components/colors/style/index.mjs +2 -2
- package/es/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/filter-panel/style/css.mjs +2 -2
- package/es/components/filter-panel/style/index.mjs +2 -2
- package/es/components/popconfirm/index.d.ts +5 -5
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.mjs +2 -5
- package/es/components/popconfirm/src/types.d.ts +2 -2
- package/es/components/popconfirm/style/css.mjs +2 -2
- package/es/components/popconfirm/style/index.mjs +2 -2
- package/es/components/popover/index.d.ts +5 -5
- package/es/components/popover/src/popover.vue.d.ts +2 -2
- package/es/components/popover/src/popover.vue_vue_type_script_setup_true_lang.mjs +1 -4
- package/es/components/popover/src/types.d.ts +1 -1
- package/es/components/popover/style/css.mjs +2 -2
- package/es/components/popover/style/index.mjs +2 -2
- package/es/components/svg-icon/style/css.mjs +2 -2
- package/es/components/svg-icon/style/index.mjs +2 -2
- package/es/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/tooltip/src/types.d.ts +1 -1
- package/es/components/tooltip/src/use-tooltip.mjs +2 -2
- package/es/components/tooltip/style/css.mjs +2 -2
- package/es/components/tooltip/style/index.mjs +2 -2
- package/es/composables/use-theme/index.d.ts +1 -1
- package/es/composables/use-theme/index.mjs +2 -2
- package/es/index.d.ts +10 -10
- package/es/theme-chalk/index.d.ts +0 -0
- package/package.json +1 -1
- package/cjs/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -1
- package/cjs/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -1
- package/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -1
- package/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -1
- package/cjs/node_modules/.pnpm/@floating-ui_vue@2.0.1_vue@3.5.26_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.js +0 -1
- package/cjs/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +0 -1
- package/cjs/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +0 -1
- package/cjs/node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js +0 -1
- package/cjs/svg-icons/dist/es/_virtual/_rolldown_dynamic_import_helper.js +0 -1
- package/cjs/svg-icons/dist/es/create-icon.js +0 -1
- package/cjs/svg-icons/dist/es/icon-names.js +0 -1
- package/cjs/svg-icons/dist/es/index.js +0 -1
- package/cjs/svg-icons/dist/es/packages/components/svg-icon/index.js +0 -1
- package/cjs/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.js +0 -1
- package/cjs/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +0 -1
- package/cjs/svg-icons/dist/es/packages/composables/use-namespace/index.js +0 -1
- package/cjs/svg-icons/dist/es/packages/utils/util.js +0 -1
- package/cjs/svg-icons/dist/es/packages/utils/vue/index.js +0 -1
- package/cjs/svg-icons/dist/es/src/arrow-backward.js +0 -1
- package/cjs/svg-icons/dist/es/src/arrow-down.js +0 -1
- package/cjs/svg-icons/dist/es/src/arrow-downward.js +0 -1
- package/cjs/svg-icons/dist/es/src/arrow-forward.js +0 -1
- package/cjs/svg-icons/dist/es/src/arrow-left.js +0 -1
- package/cjs/svg-icons/dist/es/src/arrow-right.js +0 -1
- package/cjs/svg-icons/dist/es/src/arrow-up.js +0 -1
- package/cjs/svg-icons/dist/es/src/arrow-upward.js +0 -1
- package/cjs/svg-icons/dist/es/src/check-circle.js +0 -1
- package/cjs/svg-icons/dist/es/src/check.js +0 -1
- package/cjs/svg-icons/dist/es/src/close-short.js +0 -1
- package/cjs/svg-icons/dist/es/src/close.js +0 -1
- package/cjs/svg-icons/dist/es/src/copy-closure.js +0 -1
- package/cjs/svg-icons/dist/es/src/copy.js +0 -1
- package/cjs/svg-icons/dist/es/src/delete.js +0 -1
- package/cjs/svg-icons/dist/es/src/exclam.js +0 -1
- package/cjs/svg-icons/dist/es/src/help.js +0 -1
- package/cjs/svg-icons/dist/es/src/loading.js +0 -1
- package/cjs/svg-icons/dist/es/src/more-dot-circle-horizontal.js +0 -1
- package/cjs/svg-icons/dist/es/src/more-dot-circle-outline-horizontal.js +0 -1
- package/cjs/svg-icons/dist/es/src/more-dot-circle-outline-vertical.js +0 -1
- package/cjs/svg-icons/dist/es/src/more-dot-circle.js +0 -1
- package/cjs/svg-icons/dist/es/src/more-dot-square-horizontal.js +0 -1
- package/cjs/svg-icons/dist/es/src/more-dot-square.js +0 -1
- package/cjs/svg-icons/dist/es/src/more-line.js +0 -1
- package/cjs/svg-icons/dist/es/src/search-bold.js +0 -1
- package/cjs/svg-icons/dist/es/src/search.js +0 -1
- package/cjs/svg-icons/dist/es/src/star-fill.js +0 -1
- package/cjs/svg-icons/dist/es/src/star.js +0 -1
- package/dist/index.css +0 -1
- package/dist/index.umd.js +0 -58
- package/es/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +0 -276
- package/es/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +0 -322
- package/es/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +0 -99
- package/es/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +0 -101
- package/es/node_modules/.pnpm/@floating-ui_vue@2.0.1_vue@3.5.26_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +0 -111
- package/es/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +0 -478
- package/es/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +0 -136
- package/es/node_modules/.pnpm/process@0.11.10/node_modules/process/browser.mjs +0 -90
- package/es/svg-icons/dist/es/_virtual/_rolldown_dynamic_import_helper.mjs +0 -9
- package/es/svg-icons/dist/es/create-icon.mjs +0 -43
- package/es/svg-icons/dist/es/icon-names.mjs +0 -4
- package/es/svg-icons/dist/es/index.mjs +0 -70
- package/es/svg-icons/dist/es/packages/components/svg-icon/index.mjs +0 -6
- package/es/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.mjs +0 -5
- package/es/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +0 -49
- package/es/svg-icons/dist/es/packages/composables/use-namespace/index.mjs +0 -22
- package/es/svg-icons/dist/es/packages/utils/util.mjs +0 -6
- package/es/svg-icons/dist/es/packages/utils/vue/index.mjs +0 -17
- package/es/svg-icons/dist/es/src/arrow-backward.mjs +0 -8
- package/es/svg-icons/dist/es/src/arrow-down.mjs +0 -8
- package/es/svg-icons/dist/es/src/arrow-downward.mjs +0 -8
- package/es/svg-icons/dist/es/src/arrow-forward.mjs +0 -8
- package/es/svg-icons/dist/es/src/arrow-left.mjs +0 -8
- package/es/svg-icons/dist/es/src/arrow-right.mjs +0 -8
- package/es/svg-icons/dist/es/src/arrow-up.mjs +0 -8
- package/es/svg-icons/dist/es/src/arrow-upward.mjs +0 -8
- package/es/svg-icons/dist/es/src/check-circle.mjs +0 -8
- package/es/svg-icons/dist/es/src/check.mjs +0 -8
- package/es/svg-icons/dist/es/src/close-short.mjs +0 -8
- package/es/svg-icons/dist/es/src/close.mjs +0 -8
- package/es/svg-icons/dist/es/src/copy-closure.mjs +0 -8
- package/es/svg-icons/dist/es/src/copy.mjs +0 -8
- package/es/svg-icons/dist/es/src/delete.mjs +0 -8
- package/es/svg-icons/dist/es/src/exclam.mjs +0 -8
- package/es/svg-icons/dist/es/src/help.mjs +0 -8
- package/es/svg-icons/dist/es/src/loading.mjs +0 -8
- package/es/svg-icons/dist/es/src/more-dot-circle-horizontal.mjs +0 -8
- package/es/svg-icons/dist/es/src/more-dot-circle-outline-horizontal.mjs +0 -8
- package/es/svg-icons/dist/es/src/more-dot-circle-outline-vertical.mjs +0 -8
- package/es/svg-icons/dist/es/src/more-dot-circle.mjs +0 -8
- package/es/svg-icons/dist/es/src/more-dot-square-horizontal.mjs +0 -8
- package/es/svg-icons/dist/es/src/more-dot-square.mjs +0 -8
- package/es/svg-icons/dist/es/src/more-line.mjs +0 -8
- package/es/svg-icons/dist/es/src/search-bold.mjs +0 -8
- package/es/svg-icons/dist/es/src/search.mjs +0 -8
- package/es/svg-icons/dist/es/src/star-fill.mjs +0 -9
- package/es/svg-icons/dist/es/src/star.mjs +0 -8
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
import { clamp as e, evaluate as t, getAlignment as n, getAlignmentAxis as r, getAlignmentSides as i, getAxisLength as a, getExpandedPlacements as o, getOppositeAxisPlacements as s, getOppositePlacement as c, getPaddingObject as l, getSide as u, getSideAxis as d, max as f, min as p, rectToClientRect as m } from "../../../../../@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs";
|
|
2
|
-
//#region node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
3
|
-
function h(e, t, i) {
|
|
4
|
-
let { reference: o, floating: s } = e, c = d(t), l = r(t), f = a(l), p = u(t), m = c === "y", h = o.x + o.width / 2 - s.width / 2, g = o.y + o.height / 2 - s.height / 2, _ = o[f] / 2 - s[f] / 2, v;
|
|
5
|
-
switch (p) {
|
|
6
|
-
case "top":
|
|
7
|
-
v = {
|
|
8
|
-
x: h,
|
|
9
|
-
y: o.y - s.height
|
|
10
|
-
};
|
|
11
|
-
break;
|
|
12
|
-
case "bottom":
|
|
13
|
-
v = {
|
|
14
|
-
x: h,
|
|
15
|
-
y: o.y + o.height
|
|
16
|
-
};
|
|
17
|
-
break;
|
|
18
|
-
case "right":
|
|
19
|
-
v = {
|
|
20
|
-
x: o.x + o.width,
|
|
21
|
-
y: g
|
|
22
|
-
};
|
|
23
|
-
break;
|
|
24
|
-
case "left":
|
|
25
|
-
v = {
|
|
26
|
-
x: o.x - s.width,
|
|
27
|
-
y: g
|
|
28
|
-
};
|
|
29
|
-
break;
|
|
30
|
-
default: v = {
|
|
31
|
-
x: o.x,
|
|
32
|
-
y: o.y
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
let y = n(t);
|
|
36
|
-
return y && (v[l] += _ * (y === "end" ? 1 : -1) * (i && m ? -1 : 1)), v;
|
|
37
|
-
}
|
|
38
|
-
async function g(e, n) {
|
|
39
|
-
var r;
|
|
40
|
-
n === void 0 && (n = {});
|
|
41
|
-
let { x: i, y: a, platform: o, rects: s, elements: c, strategy: u } = e, { boundary: d = "clippingAncestors", rootBoundary: f = "viewport", elementContext: p = "floating", altBoundary: h = !1, padding: g = 0 } = t(n, e), _ = l(g), v = c[h ? p === "floating" ? "reference" : "floating" : p], y = m(await o.getClippingRect({
|
|
42
|
-
element: (r = await (o.isElement == null ? void 0 : o.isElement(v))) == null || r ? v : v.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(c.floating)),
|
|
43
|
-
boundary: d,
|
|
44
|
-
rootBoundary: f,
|
|
45
|
-
strategy: u
|
|
46
|
-
})), b = p === "floating" ? {
|
|
47
|
-
x: i,
|
|
48
|
-
y: a,
|
|
49
|
-
width: s.floating.width,
|
|
50
|
-
height: s.floating.height
|
|
51
|
-
} : s.reference, x = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c.floating)), S = await (o.isElement == null ? void 0 : o.isElement(x)) && await (o.getScale == null ? void 0 : o.getScale(x)) || {
|
|
52
|
-
x: 1,
|
|
53
|
-
y: 1
|
|
54
|
-
}, C = m(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
55
|
-
elements: c,
|
|
56
|
-
rect: b,
|
|
57
|
-
offsetParent: x,
|
|
58
|
-
strategy: u
|
|
59
|
-
}) : b);
|
|
60
|
-
return {
|
|
61
|
-
top: (y.top - C.top + _.top) / S.y,
|
|
62
|
-
bottom: (C.bottom - y.bottom + _.bottom) / S.y,
|
|
63
|
-
left: (y.left - C.left + _.left) / S.x,
|
|
64
|
-
right: (C.right - y.right + _.right) / S.x
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
var _ = 50, v = async (e, t, n) => {
|
|
68
|
-
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
69
|
-
...o,
|
|
70
|
-
detectOverflow: g
|
|
71
|
-
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
72
|
-
reference: e,
|
|
73
|
-
floating: t,
|
|
74
|
-
strategy: i
|
|
75
|
-
}), { x: u, y: d } = h(l, r, c), f = r, p = 0, m = {};
|
|
76
|
-
for (let n = 0; n < a.length; n++) {
|
|
77
|
-
let g = a[n];
|
|
78
|
-
if (!g) continue;
|
|
79
|
-
let { name: v, fn: y } = g, { x: b, y: x, data: S, reset: C } = await y({
|
|
80
|
-
x: u,
|
|
81
|
-
y: d,
|
|
82
|
-
initialPlacement: r,
|
|
83
|
-
placement: f,
|
|
84
|
-
strategy: i,
|
|
85
|
-
middlewareData: m,
|
|
86
|
-
rects: l,
|
|
87
|
-
platform: s,
|
|
88
|
-
elements: {
|
|
89
|
-
reference: e,
|
|
90
|
-
floating: t
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
u = b == null ? u : b, d = x == null ? d : x, m[v] = {
|
|
94
|
-
...m[v],
|
|
95
|
-
...S
|
|
96
|
-
}, C && p < _ && (p++, typeof C == "object" && (C.placement && (f = C.placement), C.rects && (l = C.rects === !0 ? await o.getElementRects({
|
|
97
|
-
reference: e,
|
|
98
|
-
floating: t,
|
|
99
|
-
strategy: i
|
|
100
|
-
}) : C.rects), {x: u, y: d} = h(l, f, c)), n = -1);
|
|
101
|
-
}
|
|
102
|
-
return {
|
|
103
|
-
x: u,
|
|
104
|
-
y: d,
|
|
105
|
-
placement: f,
|
|
106
|
-
strategy: i,
|
|
107
|
-
middlewareData: m
|
|
108
|
-
};
|
|
109
|
-
}, y = (i) => ({
|
|
110
|
-
name: "arrow",
|
|
111
|
-
options: i,
|
|
112
|
-
async fn(o) {
|
|
113
|
-
let { x: s, y: c, placement: u, rects: d, platform: f, elements: m, middlewareData: h } = o, { element: g, padding: _ = 0 } = t(i, o) || {};
|
|
114
|
-
if (g == null) return {};
|
|
115
|
-
let v = l(_), y = {
|
|
116
|
-
x: s,
|
|
117
|
-
y: c
|
|
118
|
-
}, b = r(u), x = a(b), S = await f.getDimensions(g), C = b === "y", w = C ? "top" : "left", T = C ? "bottom" : "right", E = C ? "clientHeight" : "clientWidth", D = d.reference[x] + d.reference[b] - y[b] - d.floating[x], O = y[b] - d.reference[b], k = await (f.getOffsetParent == null ? void 0 : f.getOffsetParent(g)), A = k ? k[E] : 0;
|
|
119
|
-
(!A || !await (f.isElement == null ? void 0 : f.isElement(k))) && (A = m.floating[E] || d.floating[x]);
|
|
120
|
-
let j = D / 2 - O / 2, M = A / 2 - S[x] / 2 - 1, N = p(v[w], M), P = p(v[T], M), F = A - S[x] - P, I = A / 2 - S[x] / 2 + j, L = e(N, I, F), R = !h.arrow && n(u) != null && I !== L && d.reference[x] / 2 - (I < N ? N : P) - S[x] / 2 < 0, z = R ? I < N ? I - N : I - F : 0;
|
|
121
|
-
return {
|
|
122
|
-
[b]: y[b] + z,
|
|
123
|
-
data: {
|
|
124
|
-
[b]: L,
|
|
125
|
-
centerOffset: I - L - z,
|
|
126
|
-
...R && { alignmentOffset: z }
|
|
127
|
-
},
|
|
128
|
-
reset: R
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
}), b = function(e) {
|
|
132
|
-
return e === void 0 && (e = {}), {
|
|
133
|
-
name: "flip",
|
|
134
|
-
options: e,
|
|
135
|
-
async fn(n) {
|
|
136
|
-
var r, a;
|
|
137
|
-
let { placement: l, middlewareData: f, rects: p, initialPlacement: m, platform: h, elements: g } = n, { mainAxis: _ = !0, crossAxis: v = !0, fallbackPlacements: y, fallbackStrategy: b = "bestFit", fallbackAxisSideDirection: x = "none", flipAlignment: S = !0, ...C } = t(e, n);
|
|
138
|
-
if ((r = f.arrow) != null && r.alignmentOffset) return {};
|
|
139
|
-
let w = u(l), T = d(m), E = u(m) === m, D = await (h.isRTL == null ? void 0 : h.isRTL(g.floating)), O = y || (E || !S ? [c(m)] : o(m)), k = x !== "none";
|
|
140
|
-
!y && k && O.push(...s(m, S, x, D));
|
|
141
|
-
let A = [m, ...O], j = await h.detectOverflow(n, C), M = [], N = ((a = f.flip) == null ? void 0 : a.overflows) || [];
|
|
142
|
-
if (_ && M.push(j[w]), v) {
|
|
143
|
-
let e = i(l, p, D);
|
|
144
|
-
M.push(j[e[0]], j[e[1]]);
|
|
145
|
-
}
|
|
146
|
-
if (N = [...N, {
|
|
147
|
-
placement: l,
|
|
148
|
-
overflows: M
|
|
149
|
-
}], !M.every((e) => e <= 0)) {
|
|
150
|
-
var P, F;
|
|
151
|
-
let e = (((P = f.flip) == null ? void 0 : P.index) || 0) + 1, t = A[e];
|
|
152
|
-
if (t && (!(v === "alignment" && T !== d(t)) || N.every((e) => d(e.placement) !== T || e.overflows[0] > 0))) return {
|
|
153
|
-
data: {
|
|
154
|
-
index: e,
|
|
155
|
-
overflows: N
|
|
156
|
-
},
|
|
157
|
-
reset: { placement: t }
|
|
158
|
-
};
|
|
159
|
-
let n = (F = N.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]) == null ? void 0 : F.placement;
|
|
160
|
-
if (!n) switch (b) {
|
|
161
|
-
case "bestFit": {
|
|
162
|
-
var I;
|
|
163
|
-
let e = (I = N.filter((e) => {
|
|
164
|
-
if (k) {
|
|
165
|
-
let t = d(e.placement);
|
|
166
|
-
return t === T || t === "y";
|
|
167
|
-
}
|
|
168
|
-
return !0;
|
|
169
|
-
}).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]) == null ? void 0 : I[0];
|
|
170
|
-
e && (n = e);
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
case "initialPlacement":
|
|
174
|
-
n = m;
|
|
175
|
-
break;
|
|
176
|
-
}
|
|
177
|
-
if (l !== n) return { reset: { placement: n } };
|
|
178
|
-
}
|
|
179
|
-
return {};
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
function x(e) {
|
|
184
|
-
let t = p(...e.map((e) => e.left)), n = p(...e.map((e) => e.top)), r = f(...e.map((e) => e.right)), i = f(...e.map((e) => e.bottom));
|
|
185
|
-
return {
|
|
186
|
-
x: t,
|
|
187
|
-
y: n,
|
|
188
|
-
width: r - t,
|
|
189
|
-
height: i - n
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
function S(e) {
|
|
193
|
-
let t = e.slice().sort((e, t) => e.y - t.y), n = [], r = null;
|
|
194
|
-
for (let e = 0; e < t.length; e++) {
|
|
195
|
-
let i = t[e];
|
|
196
|
-
!r || i.y - r.y > r.height / 2 ? n.push([i]) : n[n.length - 1].push(i), r = i;
|
|
197
|
-
}
|
|
198
|
-
return n.map((e) => m(x(e)));
|
|
199
|
-
}
|
|
200
|
-
var C = function(e) {
|
|
201
|
-
return e === void 0 && (e = {}), {
|
|
202
|
-
name: "inline",
|
|
203
|
-
options: e,
|
|
204
|
-
async fn(n) {
|
|
205
|
-
let { placement: r, elements: i, rects: a, platform: o, strategy: s } = n, { padding: c = 2, x: h, y: g } = t(e, n), _ = Array.from(await (o.getClientRects == null ? void 0 : o.getClientRects(i.reference)) || []);
|
|
206
|
-
if (!_.length) return {};
|
|
207
|
-
let v = S(_), y = m(x(_)), b = l(c);
|
|
208
|
-
function C() {
|
|
209
|
-
if (v.length === 2 && (v[0].left > v[1].right || v[1].left > v[0].right) && h != null && g != null) return v.find((e) => h > e.left - b.left && h < e.right + b.right && g > e.top - b.top && g < e.bottom + b.bottom) || y;
|
|
210
|
-
if (v.length >= 2) {
|
|
211
|
-
if (d(r) === "y") {
|
|
212
|
-
let e = v[0], t = v[v.length - 1], n = u(r) === "top", i = e.top, a = t.bottom, o = n ? e.left : t.left;
|
|
213
|
-
return m({
|
|
214
|
-
x: o,
|
|
215
|
-
y: i,
|
|
216
|
-
width: (n ? e.right : t.right) - o,
|
|
217
|
-
height: a - i
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
let e = u(r) === "left", t = f(...v.map((e) => e.right)), n = p(...v.map((e) => e.left)), i = v.filter((r) => e ? r.left === n : r.right === t), a = i[0].top, o = i[i.length - 1].bottom;
|
|
221
|
-
return m({
|
|
222
|
-
x: n,
|
|
223
|
-
y: a,
|
|
224
|
-
width: t - n,
|
|
225
|
-
height: o - a
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
return y;
|
|
229
|
-
}
|
|
230
|
-
let w = await o.getElementRects({
|
|
231
|
-
reference: { getBoundingClientRect: C },
|
|
232
|
-
floating: i.floating,
|
|
233
|
-
strategy: s
|
|
234
|
-
});
|
|
235
|
-
return a.reference.x !== w.reference.x || a.reference.y !== w.reference.y || a.reference.width !== w.reference.width || a.reference.height !== w.reference.height ? { reset: { rects: w } } : {};
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
}, w = new Set(["left", "top"]);
|
|
239
|
-
async function T(e, r) {
|
|
240
|
-
let { placement: i, platform: a, elements: o } = e, s = await (a.isRTL == null ? void 0 : a.isRTL(o.floating)), c = u(i), l = n(i), f = d(i) === "y", p = w.has(c) ? -1 : 1, m = s && f ? -1 : 1, h = t(r, e), { mainAxis: g, crossAxis: _, alignmentAxis: v } = typeof h == "number" ? {
|
|
241
|
-
mainAxis: h,
|
|
242
|
-
crossAxis: 0,
|
|
243
|
-
alignmentAxis: null
|
|
244
|
-
} : {
|
|
245
|
-
mainAxis: h.mainAxis || 0,
|
|
246
|
-
crossAxis: h.crossAxis || 0,
|
|
247
|
-
alignmentAxis: h.alignmentAxis
|
|
248
|
-
};
|
|
249
|
-
return l && typeof v == "number" && (_ = l === "end" ? v * -1 : v), f ? {
|
|
250
|
-
x: _ * m,
|
|
251
|
-
y: g * p
|
|
252
|
-
} : {
|
|
253
|
-
x: g * p,
|
|
254
|
-
y: _ * m
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
var E = function(e) {
|
|
258
|
-
return e === void 0 && (e = 0), {
|
|
259
|
-
name: "offset",
|
|
260
|
-
options: e,
|
|
261
|
-
async fn(t) {
|
|
262
|
-
var n, r;
|
|
263
|
-
let { x: i, y: a, placement: o, middlewareData: s } = t, c = await T(t, e);
|
|
264
|
-
return o === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
|
|
265
|
-
x: i + c.x,
|
|
266
|
-
y: a + c.y,
|
|
267
|
-
data: {
|
|
268
|
-
...c,
|
|
269
|
-
placement: o
|
|
270
|
-
}
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
|
-
};
|
|
275
|
-
//#endregion
|
|
276
|
-
export { y as arrow, v as computePosition, g as detectOverflow, b as flip, C as inline, E as offset, m as rectToClientRect };
|
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import { createCoords as e, floor as t, max as n, min as r, rectToClientRect as i, round as a } from "../../../../../@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs";
|
|
2
|
-
import { arrow as o, computePosition as s, flip as c, inline as l, offset as u } from "../../../../../@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs";
|
|
3
|
-
import { getComputedStyle as d, getContainingBlock as f, getDocumentElement as p, getFrameElement as m, getNodeName as h, getNodeScroll as g, getOverflowAncestors as _, getParentNode as v, getWindow as y, isContainingBlock as b, isElement as x, isHTMLElement as S, isLastTraversableNode as C, isOverflowElement as w, isTableElement as T, isTopLayer as E, isWebKit as D } from "../../../../../@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs";
|
|
4
|
-
//#region node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
5
|
-
function O(e) {
|
|
6
|
-
let t = d(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = S(e), o = i ? e.offsetWidth : n, s = i ? e.offsetHeight : r, c = a(n) !== o || a(r) !== s;
|
|
7
|
-
return c && (n = o, r = s), {
|
|
8
|
-
width: n,
|
|
9
|
-
height: r,
|
|
10
|
-
$: c
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
function k(e) {
|
|
14
|
-
return x(e) ? e : e.contextElement;
|
|
15
|
-
}
|
|
16
|
-
function A(t) {
|
|
17
|
-
let n = k(t);
|
|
18
|
-
if (!S(n)) return e(1);
|
|
19
|
-
let r = n.getBoundingClientRect(), { width: i, height: o, $: s } = O(n), c = (s ? a(r.width) : r.width) / i, l = (s ? a(r.height) : r.height) / o;
|
|
20
|
-
return (!c || !Number.isFinite(c)) && (c = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
21
|
-
x: c,
|
|
22
|
-
y: l
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
var j = e(0);
|
|
26
|
-
function M(e) {
|
|
27
|
-
let t = y(e);
|
|
28
|
-
return !D() || !t.visualViewport ? j : {
|
|
29
|
-
x: t.visualViewport.offsetLeft,
|
|
30
|
-
y: t.visualViewport.offsetTop
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function N(e, t, n) {
|
|
34
|
-
return t === void 0 && (t = !1), !!n && t && n === y(e);
|
|
35
|
-
}
|
|
36
|
-
function P(t, n, r, a) {
|
|
37
|
-
n === void 0 && (n = !1), r === void 0 && (r = !1);
|
|
38
|
-
let o = t.getBoundingClientRect(), s = k(t), c = e(1);
|
|
39
|
-
n && (a ? x(a) && (c = A(a)) : c = A(t));
|
|
40
|
-
let l = N(s, r, a) ? M(s) : e(0), u = (o.left + l.x) / c.x, f = (o.top + l.y) / c.y, p = o.width / c.x, h = o.height / c.y;
|
|
41
|
-
if (s && a) {
|
|
42
|
-
let e = y(s), t = x(a) ? y(a) : a, n = e, r = m(n);
|
|
43
|
-
for (; r && t !== n;) {
|
|
44
|
-
let e = A(r), t = r.getBoundingClientRect(), i = d(r), a = t.left + (r.clientLeft + parseFloat(i.paddingLeft)) * e.x, o = t.top + (r.clientTop + parseFloat(i.paddingTop)) * e.y;
|
|
45
|
-
u *= e.x, f *= e.y, p *= e.x, h *= e.y, u += a, f += o, n = y(r), r = m(n);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return i({
|
|
49
|
-
width: p,
|
|
50
|
-
height: h,
|
|
51
|
-
x: u,
|
|
52
|
-
y: f
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function F(e, t) {
|
|
56
|
-
let n = g(e).scrollLeft;
|
|
57
|
-
return t ? t.left + n : P(p(e)).left + n;
|
|
58
|
-
}
|
|
59
|
-
function I(e, t) {
|
|
60
|
-
let n = e.getBoundingClientRect();
|
|
61
|
-
return {
|
|
62
|
-
x: n.left + t.scrollLeft - F(e, n),
|
|
63
|
-
y: n.top + t.scrollTop
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function L(t) {
|
|
67
|
-
let { elements: n, rect: r, offsetParent: i, strategy: a } = t, o = a === "fixed", s = p(i), c = n ? E(n.floating) : !1;
|
|
68
|
-
if (i === s || c && o) return r;
|
|
69
|
-
let l = {
|
|
70
|
-
scrollLeft: 0,
|
|
71
|
-
scrollTop: 0
|
|
72
|
-
}, u = e(1), d = e(0), f = S(i);
|
|
73
|
-
if ((f || !o) && ((h(i) !== "body" || w(s)) && (l = g(i)), f)) {
|
|
74
|
-
let e = P(i);
|
|
75
|
-
u = A(i), d.x = e.x + i.clientLeft, d.y = e.y + i.clientTop;
|
|
76
|
-
}
|
|
77
|
-
let m = s && !f && !o ? I(s, l) : e(0);
|
|
78
|
-
return {
|
|
79
|
-
width: r.width * u.x,
|
|
80
|
-
height: r.height * u.y,
|
|
81
|
-
x: r.x * u.x - l.scrollLeft * u.x + d.x + m.x,
|
|
82
|
-
y: r.y * u.y - l.scrollTop * u.y + d.y + m.y
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
function R(e) {
|
|
86
|
-
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
87
|
-
}
|
|
88
|
-
function z(e) {
|
|
89
|
-
let t = g(e), r = e.ownerDocument.body, i = n(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), a = n(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight), o = -t.scrollLeft + F(e), s = -t.scrollTop;
|
|
90
|
-
return d(r).direction === "rtl" && (o += n(e.clientWidth, r.clientWidth) - i), {
|
|
91
|
-
width: i,
|
|
92
|
-
height: a,
|
|
93
|
-
x: o,
|
|
94
|
-
y: s
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
var B = 25;
|
|
98
|
-
function V(e, t, n) {
|
|
99
|
-
n === void 0 && (n = "viewport");
|
|
100
|
-
let r = n === "layoutViewport", i = y(e), a = p(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
|
|
101
|
-
if (o) {
|
|
102
|
-
let e = !D() || t === "fixed";
|
|
103
|
-
r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
|
|
104
|
-
}
|
|
105
|
-
if (F(a) <= 0) {
|
|
106
|
-
let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
|
|
107
|
-
o <= B && (s -= o);
|
|
108
|
-
}
|
|
109
|
-
return {
|
|
110
|
-
width: s,
|
|
111
|
-
height: c,
|
|
112
|
-
x: l,
|
|
113
|
-
y: u
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
function H(e, t) {
|
|
117
|
-
let n = P(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = A(e);
|
|
118
|
-
return {
|
|
119
|
-
width: e.clientWidth * a.x,
|
|
120
|
-
height: e.clientHeight * a.y,
|
|
121
|
-
x: i * a.x,
|
|
122
|
-
y: r * a.y
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
function U(e, t, n) {
|
|
126
|
-
let r;
|
|
127
|
-
if (t === "viewport" || t === "layoutViewport") r = V(e, n, t);
|
|
128
|
-
else if (t === "document") r = z(p(e));
|
|
129
|
-
else if (x(t)) r = H(t, n);
|
|
130
|
-
else {
|
|
131
|
-
let n = M(e);
|
|
132
|
-
r = {
|
|
133
|
-
x: t.x - n.x,
|
|
134
|
-
y: t.y - n.y,
|
|
135
|
-
width: t.width,
|
|
136
|
-
height: t.height
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
return i(r);
|
|
140
|
-
}
|
|
141
|
-
function W(e, t) {
|
|
142
|
-
let n = t.get(e);
|
|
143
|
-
if (n) return n;
|
|
144
|
-
let r = _(e, [], !1).filter((e) => x(e) && h(e) !== "body"), i = null, a = d(e).position === "fixed", o = a ? v(e) : e;
|
|
145
|
-
for (; x(o) && !C(o);) {
|
|
146
|
-
let e = d(o), t = b(o), n = i ? i.position : a ? "fixed" : "";
|
|
147
|
-
!t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = v(o);
|
|
148
|
-
}
|
|
149
|
-
return t.set(e, r), r;
|
|
150
|
-
}
|
|
151
|
-
function G(e) {
|
|
152
|
-
let { element: t, boundary: i, rootBoundary: a, strategy: o } = e, s = [...i === "clippingAncestors" ? E(t) ? [] : W(t, this._c) : [].concat(i), a], c = U(t, s[0], o), l = c.top, u = c.right, d = c.bottom, f = c.left;
|
|
153
|
-
for (let e = 1; e < s.length; e++) {
|
|
154
|
-
let i = U(t, s[e], o);
|
|
155
|
-
l = n(i.top, l), u = r(i.right, u), d = r(i.bottom, d), f = n(i.left, f);
|
|
156
|
-
}
|
|
157
|
-
return {
|
|
158
|
-
width: u - f,
|
|
159
|
-
height: d - l,
|
|
160
|
-
x: f,
|
|
161
|
-
y: l
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
function K(e) {
|
|
165
|
-
let { width: t, height: n } = O(e);
|
|
166
|
-
return {
|
|
167
|
-
width: t,
|
|
168
|
-
height: n
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
function q(t, n, r) {
|
|
172
|
-
let i = S(n), a = p(n), o = r === "fixed", s = P(t, !0, o, n), c = {
|
|
173
|
-
scrollLeft: 0,
|
|
174
|
-
scrollTop: 0
|
|
175
|
-
}, l = e(0);
|
|
176
|
-
if ((i || !o) && ((h(n) !== "body" || w(a)) && (c = g(n)), i)) {
|
|
177
|
-
let e = P(n, !0, o, n);
|
|
178
|
-
l.x = e.x + n.clientLeft, l.y = e.y + n.clientTop;
|
|
179
|
-
}
|
|
180
|
-
!i && a && (l.x = F(a));
|
|
181
|
-
let u = a && !i && !o ? I(a, c) : e(0);
|
|
182
|
-
return {
|
|
183
|
-
x: s.left + c.scrollLeft - l.x - u.x,
|
|
184
|
-
y: s.top + c.scrollTop - l.y - u.y,
|
|
185
|
-
width: s.width,
|
|
186
|
-
height: s.height
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
function J(e) {
|
|
190
|
-
return d(e).position === "static";
|
|
191
|
-
}
|
|
192
|
-
function Y(e, t) {
|
|
193
|
-
if (!S(e) || d(e).position === "fixed") return null;
|
|
194
|
-
if (t) return t(e);
|
|
195
|
-
let n = e.offsetParent;
|
|
196
|
-
return p(e) === n && (n = n.ownerDocument.body), n;
|
|
197
|
-
}
|
|
198
|
-
function X(e, t) {
|
|
199
|
-
let n = y(e);
|
|
200
|
-
if (E(e)) return n;
|
|
201
|
-
if (!S(e)) {
|
|
202
|
-
let t = v(e);
|
|
203
|
-
for (; t && !C(t);) {
|
|
204
|
-
if (x(t) && !J(t)) return t;
|
|
205
|
-
t = v(t);
|
|
206
|
-
}
|
|
207
|
-
return n;
|
|
208
|
-
}
|
|
209
|
-
let r = Y(e, t);
|
|
210
|
-
for (; r && T(r) && J(r);) r = Y(r, t);
|
|
211
|
-
return r && C(r) && J(r) && !b(r) ? n : r || f(e) || n;
|
|
212
|
-
}
|
|
213
|
-
var Z = async function(e) {
|
|
214
|
-
let t = this.getOffsetParent || X, n = this.getDimensions, r = await n(e.floating);
|
|
215
|
-
return {
|
|
216
|
-
reference: q(e.reference, await t(e.floating), e.strategy),
|
|
217
|
-
floating: {
|
|
218
|
-
x: 0,
|
|
219
|
-
y: 0,
|
|
220
|
-
width: r.width,
|
|
221
|
-
height: r.height
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
};
|
|
225
|
-
function ee(e) {
|
|
226
|
-
return d(e).direction === "rtl";
|
|
227
|
-
}
|
|
228
|
-
var Q = {
|
|
229
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: L,
|
|
230
|
-
getDocumentElement: p,
|
|
231
|
-
getClippingRect: G,
|
|
232
|
-
getOffsetParent: X,
|
|
233
|
-
getElementRects: Z,
|
|
234
|
-
getClientRects: R,
|
|
235
|
-
getDimensions: K,
|
|
236
|
-
getScale: A,
|
|
237
|
-
isElement: x,
|
|
238
|
-
isRTL: ee
|
|
239
|
-
};
|
|
240
|
-
function $(e, t) {
|
|
241
|
-
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
242
|
-
}
|
|
243
|
-
function te(e, i, a) {
|
|
244
|
-
let o = null, s, c = p(e);
|
|
245
|
-
function l() {
|
|
246
|
-
var e;
|
|
247
|
-
clearTimeout(s), (e = o) == null || e.disconnect(), o = null;
|
|
248
|
-
}
|
|
249
|
-
function u(a, d) {
|
|
250
|
-
a === void 0 && (a = !1), d === void 0 && (d = 1), l();
|
|
251
|
-
let f = e.getBoundingClientRect(), { left: p, top: m, width: h, height: g } = f;
|
|
252
|
-
if (a || i(), !h || !g) return;
|
|
253
|
-
let _ = t(m), v = t(c.clientWidth - (p + h)), y = t(c.clientHeight - (m + g)), b = t(p), x = {
|
|
254
|
-
rootMargin: -_ + "px " + -v + "px " + -y + "px " + -b + "px",
|
|
255
|
-
threshold: n(0, r(1, d)) || 1
|
|
256
|
-
}, S = !0;
|
|
257
|
-
function C(t) {
|
|
258
|
-
let n = t[0].intersectionRatio;
|
|
259
|
-
if (!$(f, e.getBoundingClientRect())) return u();
|
|
260
|
-
if (n !== d) {
|
|
261
|
-
if (!S) return u();
|
|
262
|
-
n ? u(!1, n) : s = setTimeout(() => {
|
|
263
|
-
u(!1, 1e-7);
|
|
264
|
-
}, 1e3);
|
|
265
|
-
}
|
|
266
|
-
S = !1;
|
|
267
|
-
}
|
|
268
|
-
try {
|
|
269
|
-
o = new IntersectionObserver(C, {
|
|
270
|
-
...x,
|
|
271
|
-
root: c.ownerDocument
|
|
272
|
-
});
|
|
273
|
-
} catch {
|
|
274
|
-
o = new IntersectionObserver(C, x);
|
|
275
|
-
}
|
|
276
|
-
o.observe(e);
|
|
277
|
-
}
|
|
278
|
-
let d = y(e), f = () => u(a);
|
|
279
|
-
return d.addEventListener("resize", f), u(!0), () => {
|
|
280
|
-
d.removeEventListener("resize", f), l();
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
function ne(e, t, n, r) {
|
|
284
|
-
r === void 0 && (r = {});
|
|
285
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = k(e), u = i || a ? [...l ? _(l) : [], ...t ? _(t) : []] : [];
|
|
286
|
-
u.forEach((e) => {
|
|
287
|
-
i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
|
|
288
|
-
});
|
|
289
|
-
let d = l && s ? te(l, n, a) : null, f = -1, p = null;
|
|
290
|
-
o && (p = new ResizeObserver((e) => {
|
|
291
|
-
let [r] = e;
|
|
292
|
-
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
293
|
-
var e;
|
|
294
|
-
(e = p) == null || e.observe(t);
|
|
295
|
-
})), n();
|
|
296
|
-
}), l && !c && p.observe(l), t && p.observe(t));
|
|
297
|
-
let m, h = c ? P(e) : null;
|
|
298
|
-
c && g();
|
|
299
|
-
function g() {
|
|
300
|
-
let t = P(e);
|
|
301
|
-
h && !$(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
302
|
-
}
|
|
303
|
-
return n(), () => {
|
|
304
|
-
var e;
|
|
305
|
-
u.forEach((e) => {
|
|
306
|
-
i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
|
|
307
|
-
}), d == null || d(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
var re = u, ie = c, ae = o, oe = l, se = (e, t, n) => {
|
|
311
|
-
let r = new Map(), i = n == null ? {} : n, a = {
|
|
312
|
-
...Q,
|
|
313
|
-
...i.platform,
|
|
314
|
-
_c: r
|
|
315
|
-
};
|
|
316
|
-
return s(e, t, {
|
|
317
|
-
...i,
|
|
318
|
-
platform: a
|
|
319
|
-
});
|
|
320
|
-
};
|
|
321
|
-
//#endregion
|
|
322
|
-
export { ae as arrow, ne as autoUpdate, se as computePosition, ie as flip, oe as inline, re as offset, Q as platform };
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
2
|
-
function e() {
|
|
3
|
-
return typeof window < "u";
|
|
4
|
-
}
|
|
5
|
-
function t(e) {
|
|
6
|
-
return i(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
7
|
-
}
|
|
8
|
-
function n(e) {
|
|
9
|
-
var t;
|
|
10
|
-
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
11
|
-
}
|
|
12
|
-
function r(e) {
|
|
13
|
-
var t;
|
|
14
|
-
return (t = (i(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
15
|
-
}
|
|
16
|
-
function i(t) {
|
|
17
|
-
return e() ? t instanceof Node || t instanceof n(t).Node : !1;
|
|
18
|
-
}
|
|
19
|
-
function a(t) {
|
|
20
|
-
return e() ? t instanceof Element || t instanceof n(t).Element : !1;
|
|
21
|
-
}
|
|
22
|
-
function o(t) {
|
|
23
|
-
return e() ? t instanceof HTMLElement || t instanceof n(t).HTMLElement : !1;
|
|
24
|
-
}
|
|
25
|
-
function s(t) {
|
|
26
|
-
return !e() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof n(t).ShadowRoot;
|
|
27
|
-
}
|
|
28
|
-
function c(e) {
|
|
29
|
-
let { overflow: t, overflowX: n, overflowY: r, display: i } = y(e);
|
|
30
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
31
|
-
}
|
|
32
|
-
function l(e) {
|
|
33
|
-
return /^(table|td|th)$/.test(t(e));
|
|
34
|
-
}
|
|
35
|
-
function u(e) {
|
|
36
|
-
try {
|
|
37
|
-
if (e.matches(":popover-open")) return !0;
|
|
38
|
-
} catch {}
|
|
39
|
-
try {
|
|
40
|
-
return e.matches(":modal");
|
|
41
|
-
} catch {
|
|
42
|
-
return !1;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
var d = /transform|translate|scale|rotate|perspective|filter/, f = /paint|layout|strict|content/, p = (e) => !!e && e !== "none", m;
|
|
46
|
-
function h(e) {
|
|
47
|
-
let t = a(e) ? y(e) : e;
|
|
48
|
-
return p(t.transform) || p(t.translate) || p(t.scale) || p(t.rotate) || p(t.perspective) || !_() && (p(t.backdropFilter) || p(t.filter)) || d.test(t.willChange || "") || f.test(t.contain || "");
|
|
49
|
-
}
|
|
50
|
-
function g(e) {
|
|
51
|
-
let t = x(e);
|
|
52
|
-
for (; o(t) && !v(t);) {
|
|
53
|
-
if (h(t)) return t;
|
|
54
|
-
if (u(t)) return null;
|
|
55
|
-
t = x(t);
|
|
56
|
-
}
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
function _() {
|
|
60
|
-
return m == null && (m = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), m;
|
|
61
|
-
}
|
|
62
|
-
function v(e) {
|
|
63
|
-
return /^(html|body|#document)$/.test(t(e));
|
|
64
|
-
}
|
|
65
|
-
function y(e) {
|
|
66
|
-
return n(e).getComputedStyle(e);
|
|
67
|
-
}
|
|
68
|
-
function b(e) {
|
|
69
|
-
return a(e) ? {
|
|
70
|
-
scrollLeft: e.scrollLeft,
|
|
71
|
-
scrollTop: e.scrollTop
|
|
72
|
-
} : {
|
|
73
|
-
scrollLeft: e.scrollX,
|
|
74
|
-
scrollTop: e.scrollY
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
function x(e) {
|
|
78
|
-
if (t(e) === "html") return e;
|
|
79
|
-
let n = e.assignedSlot || e.parentNode || s(e) && e.host || r(e);
|
|
80
|
-
return s(n) ? n.host : n;
|
|
81
|
-
}
|
|
82
|
-
function S(e) {
|
|
83
|
-
let t = x(e);
|
|
84
|
-
return v(t) ? (e.ownerDocument || e).body : o(t) && c(t) ? t : S(t);
|
|
85
|
-
}
|
|
86
|
-
function C(e, t, r) {
|
|
87
|
-
var i;
|
|
88
|
-
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
89
|
-
let a = S(e), o = a === ((i = e.ownerDocument) == null ? void 0 : i.body), s = n(a);
|
|
90
|
-
if (o) {
|
|
91
|
-
let e = w(s);
|
|
92
|
-
return t.concat(s, s.visualViewport || [], c(a) ? a : [], e && r ? C(e) : []);
|
|
93
|
-
} else return t.concat(a, C(a, [], r));
|
|
94
|
-
}
|
|
95
|
-
function w(e) {
|
|
96
|
-
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
97
|
-
}
|
|
98
|
-
//#endregion
|
|
99
|
-
export { y as getComputedStyle, g as getContainingBlock, r as getDocumentElement, w as getFrameElement, S as getNearestOverflowAncestor, t as getNodeName, b as getNodeScroll, C as getOverflowAncestors, x as getParentNode, n as getWindow, h as isContainingBlock, a as isElement, o as isHTMLElement, v as isLastTraversableNode, i as isNode, c as isOverflowElement, s as isShadowRoot, l as isTableElement, u as isTopLayer, _ as isWebKit };
|