overview-components 1.0.76 → 1.0.78
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/assets/icons/iconGlyphs.js +680 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +51 -32
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +277 -193
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +82 -78
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +22 -21
- package/dist/node_modules/lit-html/directives/class-map.js +34 -0
- package/dist/shared/lit-checkbox.js +155 -0
- package/dist/shared/lit-icon.js +282 -0
- package/dist/shared/lit-input.js +211 -0
- package/dist/shared/lit-menu.js +40 -0
- package/dist/shared/lit-modal.js +128 -0
- package/dist/shared/lit-pill.js +86 -0
- package/dist/shared/lit-select.js +339 -0
- package/dist/shared/lit-tooltip.js +137 -0
- package/dist/styles.js +174 -0
- package/package.json +1 -1
|
@@ -1,224 +1,224 @@
|
|
|
1
|
-
import { offset as
|
|
2
|
-
import { createCoords as
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
5
|
-
const e =
|
|
6
|
-
let
|
|
7
|
-
const
|
|
8
|
-
return c && (
|
|
9
|
-
width:
|
|
10
|
-
height:
|
|
1
|
+
import { offset as it, flip as nt, shift as ot, size as st, arrow as rt, computePosition as ct } from "../../core/dist/floating-ui.core.js";
|
|
2
|
+
import { createCoords as y, rectToClientRect as G, floor as z, max as E, round as D, min as V } from "../../utils/dist/floating-ui.utils.js";
|
|
3
|
+
import { getOverflowAncestors as $, isElement as v, getDocumentElement as R, getWindow as L, getFrameElement as U, getComputedStyle as b, isHTMLElement as O, isWebKit as J, isTopLayer as M, getParentNode as W, isLastTraversableNode as H, isTableElement as lt, isContainingBlock as Q, getContainingBlock as ft, getNodeName as S, isOverflowElement as _, getNodeScroll as N } from "../../utils/dist/floating-ui.utils.dom.js";
|
|
4
|
+
function Y(t) {
|
|
5
|
+
const e = b(t);
|
|
6
|
+
let i = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
7
|
+
const o = O(t), r = o ? t.offsetWidth : i, s = o ? t.offsetHeight : n, c = D(i) !== r || D(n) !== s;
|
|
8
|
+
return c && (i = r, n = s), {
|
|
9
|
+
width: i,
|
|
10
|
+
height: n,
|
|
11
11
|
$: c
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
return
|
|
14
|
+
function k(t) {
|
|
15
|
+
return v(t) ? t : t.contextElement;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
const e =
|
|
19
|
-
if (!
|
|
20
|
-
return
|
|
21
|
-
const
|
|
22
|
-
width:
|
|
23
|
-
height:
|
|
17
|
+
function F(t) {
|
|
18
|
+
const e = k(t);
|
|
19
|
+
if (!O(e))
|
|
20
|
+
return y(1);
|
|
21
|
+
const i = e.getBoundingClientRect(), {
|
|
22
|
+
width: n,
|
|
23
|
+
height: o,
|
|
24
24
|
$: r
|
|
25
|
-
} =
|
|
26
|
-
let s = (r ?
|
|
25
|
+
} = Y(e);
|
|
26
|
+
let s = (r ? D(i.width) : i.width) / n, c = (r ? D(i.height) : i.height) / o;
|
|
27
27
|
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
28
28
|
x: s,
|
|
29
29
|
y: c
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
34
|
-
const e =
|
|
35
|
-
return !
|
|
32
|
+
const ut = /* @__PURE__ */ y(0);
|
|
33
|
+
function Z(t) {
|
|
34
|
+
const e = L(t);
|
|
35
|
+
return !J() || !e.visualViewport ? ut : {
|
|
36
36
|
x: e.visualViewport.offsetLeft,
|
|
37
37
|
y: e.visualViewport.offsetTop
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
return e === void 0 && (e = !1), !
|
|
40
|
+
function ht(t, e, i) {
|
|
41
|
+
return e === void 0 && (e = !1), !i || e && i !== L(t) ? !1 : e;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
e === void 0 && (e = !1),
|
|
45
|
-
const
|
|
46
|
-
let s =
|
|
47
|
-
e && (
|
|
48
|
-
const c =
|
|
49
|
-
let
|
|
43
|
+
function T(t, e, i, n) {
|
|
44
|
+
e === void 0 && (e = !1), i === void 0 && (i = !1);
|
|
45
|
+
const o = t.getBoundingClientRect(), r = k(t);
|
|
46
|
+
let s = y(1);
|
|
47
|
+
e && (n ? v(n) && (s = F(n)) : s = F(t));
|
|
48
|
+
const c = ht(r, i, n) ? Z(r) : y(0);
|
|
49
|
+
let l = (o.left + c.x) / s.x, f = (o.top + c.y) / s.y, u = o.width / s.x, h = o.height / s.y;
|
|
50
50
|
if (r) {
|
|
51
|
-
const
|
|
52
|
-
let
|
|
53
|
-
for (;
|
|
54
|
-
const
|
|
55
|
-
|
|
51
|
+
const p = L(r), g = n && v(n) ? L(n) : n;
|
|
52
|
+
let x = p, a = U(x);
|
|
53
|
+
for (; a && n && g !== x; ) {
|
|
54
|
+
const w = F(a), d = a.getBoundingClientRect(), m = b(a), C = d.left + (a.clientLeft + parseFloat(m.paddingLeft)) * w.x, B = d.top + (a.clientTop + parseFloat(m.paddingTop)) * w.y;
|
|
55
|
+
l *= w.x, f *= w.y, u *= w.x, h *= w.y, l += C, f += B, x = L(a), a = U(x);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
return
|
|
58
|
+
return G({
|
|
59
59
|
width: u,
|
|
60
60
|
height: h,
|
|
61
|
-
x:
|
|
62
|
-
y:
|
|
61
|
+
x: l,
|
|
62
|
+
y: f
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const
|
|
67
|
-
return e ? e.left +
|
|
65
|
+
function q(t, e) {
|
|
66
|
+
const i = N(t).scrollLeft;
|
|
67
|
+
return e ? e.left + i : T(R(t)).left + i;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
71
|
-
const
|
|
69
|
+
function X(t, e, i) {
|
|
70
|
+
i === void 0 && (i = !1);
|
|
71
|
+
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - (i ? 0 : (
|
|
72
72
|
// RTL <body> scrollbar.
|
|
73
|
-
|
|
74
|
-
)), r =
|
|
73
|
+
q(t, n)
|
|
74
|
+
)), r = n.top + e.scrollTop;
|
|
75
75
|
return {
|
|
76
|
-
x:
|
|
76
|
+
x: o,
|
|
77
77
|
y: r
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function at(t) {
|
|
81
81
|
let {
|
|
82
82
|
elements: e,
|
|
83
|
-
rect:
|
|
84
|
-
offsetParent:
|
|
85
|
-
strategy:
|
|
83
|
+
rect: i,
|
|
84
|
+
offsetParent: n,
|
|
85
|
+
strategy: o
|
|
86
86
|
} = t;
|
|
87
|
-
const r =
|
|
88
|
-
if (
|
|
89
|
-
return
|
|
90
|
-
let
|
|
87
|
+
const r = o === "fixed", s = R(n), c = e ? M(e.floating) : !1;
|
|
88
|
+
if (n === s || c && r)
|
|
89
|
+
return i;
|
|
90
|
+
let l = {
|
|
91
91
|
scrollLeft: 0,
|
|
92
92
|
scrollTop: 0
|
|
93
|
-
},
|
|
94
|
-
const u =
|
|
95
|
-
if ((h || !h && !r) && ((
|
|
96
|
-
const
|
|
97
|
-
|
|
93
|
+
}, f = y(1);
|
|
94
|
+
const u = y(0), h = O(n);
|
|
95
|
+
if ((h || !h && !r) && ((S(n) !== "body" || _(s)) && (l = N(n)), O(n))) {
|
|
96
|
+
const g = T(n);
|
|
97
|
+
f = F(n), u.x = g.x + n.clientLeft, u.y = g.y + n.clientTop;
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const p = s && !h && !r ? X(s, l, !0) : y(0);
|
|
100
100
|
return {
|
|
101
|
-
width:
|
|
102
|
-
height:
|
|
103
|
-
x:
|
|
104
|
-
y:
|
|
101
|
+
width: i.width * f.x,
|
|
102
|
+
height: i.height * f.y,
|
|
103
|
+
x: i.x * f.x - l.scrollLeft * f.x + u.x + p.x,
|
|
104
|
+
y: i.y * f.y - l.scrollTop * f.y + u.y + p.y
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function dt(t) {
|
|
108
108
|
return Array.from(t.getClientRects());
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
const e =
|
|
112
|
-
let s = -
|
|
113
|
-
const c = -
|
|
114
|
-
return
|
|
115
|
-
width:
|
|
110
|
+
function gt(t) {
|
|
111
|
+
const e = R(t), i = N(t), n = t.ownerDocument.body, o = E(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = E(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
112
|
+
let s = -i.scrollLeft + q(t);
|
|
113
|
+
const c = -i.scrollTop;
|
|
114
|
+
return b(n).direction === "rtl" && (s += E(e.clientWidth, n.clientWidth) - o), {
|
|
115
|
+
width: o,
|
|
116
116
|
height: r,
|
|
117
117
|
x: s,
|
|
118
118
|
y: c
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
const
|
|
123
|
-
let r =
|
|
124
|
-
if (
|
|
125
|
-
r =
|
|
126
|
-
const
|
|
127
|
-
(!
|
|
121
|
+
function pt(t, e) {
|
|
122
|
+
const i = L(t), n = R(t), o = i.visualViewport;
|
|
123
|
+
let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
|
|
124
|
+
if (o) {
|
|
125
|
+
r = o.width, s = o.height;
|
|
126
|
+
const f = J();
|
|
127
|
+
(!f || f && e === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
|
|
128
128
|
}
|
|
129
129
|
return {
|
|
130
130
|
width: r,
|
|
131
131
|
height: s,
|
|
132
132
|
x: c,
|
|
133
|
-
y:
|
|
133
|
+
y: l
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
const
|
|
136
|
+
function wt(t, e) {
|
|
137
|
+
const i = T(t, !0, e === "fixed"), n = i.top + t.clientTop, o = i.left + t.clientLeft, r = O(t) ? F(t) : y(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = o * r.x, f = n * r.y;
|
|
138
138
|
return {
|
|
139
139
|
width: s,
|
|
140
140
|
height: c,
|
|
141
|
-
x:
|
|
142
|
-
y:
|
|
141
|
+
x: l,
|
|
142
|
+
y: f
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
let
|
|
145
|
+
function K(t, e, i) {
|
|
146
|
+
let n;
|
|
147
147
|
if (e === "viewport")
|
|
148
|
-
|
|
148
|
+
n = pt(t, i);
|
|
149
149
|
else if (e === "document")
|
|
150
|
-
|
|
151
|
-
else if (
|
|
152
|
-
|
|
150
|
+
n = gt(R(t));
|
|
151
|
+
else if (v(e))
|
|
152
|
+
n = wt(e, i);
|
|
153
153
|
else {
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
x: e.x -
|
|
157
|
-
y: e.y -
|
|
154
|
+
const o = Z(t);
|
|
155
|
+
n = {
|
|
156
|
+
x: e.x - o.x,
|
|
157
|
+
y: e.y - o.y,
|
|
158
158
|
width: e.width,
|
|
159
159
|
height: e.height
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
-
return
|
|
162
|
+
return G(n);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
const
|
|
166
|
-
return
|
|
164
|
+
function tt(t, e) {
|
|
165
|
+
const i = W(t);
|
|
166
|
+
return i === e || !v(i) || H(i) ? !1 : b(i).position === "fixed" || tt(i, e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
const
|
|
170
|
-
if (
|
|
171
|
-
return
|
|
172
|
-
let
|
|
173
|
-
const r =
|
|
174
|
-
let s = r ?
|
|
175
|
-
for (;
|
|
176
|
-
const c =
|
|
177
|
-
!
|
|
168
|
+
function mt(t, e) {
|
|
169
|
+
const i = e.get(t);
|
|
170
|
+
if (i)
|
|
171
|
+
return i;
|
|
172
|
+
let n = $(t, [], !1).filter((c) => v(c) && S(c) !== "body"), o = null;
|
|
173
|
+
const r = b(t).position === "fixed";
|
|
174
|
+
let s = r ? W(t) : t;
|
|
175
|
+
for (; v(s) && !H(s); ) {
|
|
176
|
+
const c = b(s), l = Q(s);
|
|
177
|
+
!l && c.position === "fixed" && (o = null), (r ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _(s) && !l && tt(t, s)) ? n = n.filter((u) => u !== s) : o = c, s = W(s);
|
|
178
178
|
}
|
|
179
|
-
return e.set(t,
|
|
179
|
+
return e.set(t, n), n;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function yt(t) {
|
|
182
182
|
let {
|
|
183
183
|
element: e,
|
|
184
|
-
boundary:
|
|
185
|
-
rootBoundary:
|
|
186
|
-
strategy:
|
|
184
|
+
boundary: i,
|
|
185
|
+
rootBoundary: n,
|
|
186
|
+
strategy: o
|
|
187
187
|
} = t;
|
|
188
|
-
const s = [...
|
|
189
|
-
const h =
|
|
190
|
-
return
|
|
191
|
-
},
|
|
188
|
+
const s = [...i === "clippingAncestors" ? M(e) ? [] : mt(e, this._c) : [].concat(i), n], c = s[0], l = s.reduce((f, u) => {
|
|
189
|
+
const h = K(e, u, o);
|
|
190
|
+
return f.top = E(h.top, f.top), f.right = V(h.right, f.right), f.bottom = V(h.bottom, f.bottom), f.left = E(h.left, f.left), f;
|
|
191
|
+
}, K(e, c, o));
|
|
192
192
|
return {
|
|
193
|
-
width:
|
|
194
|
-
height:
|
|
195
|
-
x:
|
|
196
|
-
y:
|
|
193
|
+
width: l.right - l.left,
|
|
194
|
+
height: l.bottom - l.top,
|
|
195
|
+
x: l.left,
|
|
196
|
+
y: l.top
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function xt(t) {
|
|
200
200
|
const {
|
|
201
201
|
width: e,
|
|
202
|
-
height:
|
|
203
|
-
} =
|
|
202
|
+
height: i
|
|
203
|
+
} = Y(t);
|
|
204
204
|
return {
|
|
205
205
|
width: e,
|
|
206
|
-
height:
|
|
206
|
+
height: i
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
const
|
|
209
|
+
function vt(t, e, i) {
|
|
210
|
+
const n = O(e), o = R(e), r = i === "fixed", s = T(t, !0, r, e);
|
|
211
211
|
let c = {
|
|
212
212
|
scrollLeft: 0,
|
|
213
213
|
scrollTop: 0
|
|
214
214
|
};
|
|
215
|
-
const
|
|
216
|
-
if (
|
|
217
|
-
if ((
|
|
218
|
-
const
|
|
219
|
-
|
|
220
|
-
} else
|
|
221
|
-
const
|
|
215
|
+
const l = y(0);
|
|
216
|
+
if (n || !n && !r)
|
|
217
|
+
if ((S(e) !== "body" || _(o)) && (c = N(e)), n) {
|
|
218
|
+
const p = T(e, !0, r, e);
|
|
219
|
+
l.x = p.x + e.clientLeft, l.y = p.y + e.clientTop;
|
|
220
|
+
} else o && (l.x = q(o));
|
|
221
|
+
const f = o && !n && !r ? X(o, c) : y(0), u = s.left + c.scrollLeft - l.x - f.x, h = s.top + c.scrollTop - l.y - f.y;
|
|
222
222
|
return {
|
|
223
223
|
x: u,
|
|
224
224
|
y: h,
|
|
@@ -226,81 +226,165 @@ function yt(t, e, o) {
|
|
|
226
226
|
height: s.height
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
return
|
|
229
|
+
function I(t) {
|
|
230
|
+
return b(t).position === "static";
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
if (!
|
|
232
|
+
function j(t, e) {
|
|
233
|
+
if (!O(t) || b(t).position === "fixed")
|
|
234
234
|
return null;
|
|
235
235
|
if (e)
|
|
236
236
|
return e(t);
|
|
237
|
-
let
|
|
238
|
-
return
|
|
237
|
+
let i = t.offsetParent;
|
|
238
|
+
return R(t) === i && (i = i.ownerDocument.body), i;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
const
|
|
242
|
-
if (
|
|
243
|
-
return
|
|
244
|
-
if (!
|
|
245
|
-
let
|
|
246
|
-
for (;
|
|
247
|
-
if (
|
|
248
|
-
return
|
|
249
|
-
|
|
240
|
+
function et(t, e) {
|
|
241
|
+
const i = L(t);
|
|
242
|
+
if (M(t))
|
|
243
|
+
return i;
|
|
244
|
+
if (!O(t)) {
|
|
245
|
+
let o = W(t);
|
|
246
|
+
for (; o && !H(o); ) {
|
|
247
|
+
if (v(o) && !I(o))
|
|
248
|
+
return o;
|
|
249
|
+
o = W(o);
|
|
250
250
|
}
|
|
251
|
-
return
|
|
251
|
+
return i;
|
|
252
252
|
}
|
|
253
|
-
let
|
|
254
|
-
for (;
|
|
255
|
-
|
|
256
|
-
return
|
|
253
|
+
let n = j(t, e);
|
|
254
|
+
for (; n && lt(n) && I(n); )
|
|
255
|
+
n = j(n, e);
|
|
256
|
+
return n && H(n) && I(n) && !Q(n) ? i : n || ft(t) || i;
|
|
257
257
|
}
|
|
258
|
-
const
|
|
259
|
-
const e = this.getOffsetParent ||
|
|
258
|
+
const bt = async function(t) {
|
|
259
|
+
const e = this.getOffsetParent || et, i = this.getDimensions, n = await i(t.floating);
|
|
260
260
|
return {
|
|
261
|
-
reference:
|
|
261
|
+
reference: vt(t.reference, await e(t.floating), t.strategy),
|
|
262
262
|
floating: {
|
|
263
263
|
x: 0,
|
|
264
264
|
y: 0,
|
|
265
|
-
width:
|
|
266
|
-
height:
|
|
265
|
+
width: n.width,
|
|
266
|
+
height: n.height
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
};
|
|
270
|
-
function
|
|
271
|
-
return
|
|
270
|
+
function Rt(t) {
|
|
271
|
+
return b(t).direction === "rtl";
|
|
272
|
+
}
|
|
273
|
+
const Ot = {
|
|
274
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: at,
|
|
275
|
+
getDocumentElement: R,
|
|
276
|
+
getClippingRect: yt,
|
|
277
|
+
getOffsetParent: et,
|
|
278
|
+
getElementRects: bt,
|
|
279
|
+
getClientRects: dt,
|
|
280
|
+
getDimensions: xt,
|
|
281
|
+
getScale: F,
|
|
282
|
+
isElement: v,
|
|
283
|
+
isRTL: Rt
|
|
284
|
+
};
|
|
285
|
+
function Ct(t, e) {
|
|
286
|
+
let i = null, n;
|
|
287
|
+
const o = R(t);
|
|
288
|
+
function r() {
|
|
289
|
+
var c;
|
|
290
|
+
clearTimeout(n), (c = i) == null || c.disconnect(), i = null;
|
|
291
|
+
}
|
|
292
|
+
function s(c, l) {
|
|
293
|
+
c === void 0 && (c = !1), l === void 0 && (l = 1), r();
|
|
294
|
+
const {
|
|
295
|
+
left: f,
|
|
296
|
+
top: u,
|
|
297
|
+
width: h,
|
|
298
|
+
height: p
|
|
299
|
+
} = t.getBoundingClientRect();
|
|
300
|
+
if (c || e(), !h || !p)
|
|
301
|
+
return;
|
|
302
|
+
const g = z(u), x = z(o.clientWidth - (f + h)), a = z(o.clientHeight - (u + p)), w = z(f), m = {
|
|
303
|
+
rootMargin: -g + "px " + -x + "px " + -a + "px " + -w + "px",
|
|
304
|
+
threshold: E(0, V(1, l)) || 1
|
|
305
|
+
};
|
|
306
|
+
let C = !0;
|
|
307
|
+
function B(P) {
|
|
308
|
+
const A = P[0].intersectionRatio;
|
|
309
|
+
if (A !== l) {
|
|
310
|
+
if (!C)
|
|
311
|
+
return s();
|
|
312
|
+
A ? s(!1, A) : n = setTimeout(() => {
|
|
313
|
+
s(!1, 1e-7);
|
|
314
|
+
}, 1e3);
|
|
315
|
+
}
|
|
316
|
+
C = !1;
|
|
317
|
+
}
|
|
318
|
+
try {
|
|
319
|
+
i = new IntersectionObserver(B, {
|
|
320
|
+
...m,
|
|
321
|
+
// Handle <iframe>s
|
|
322
|
+
root: o.ownerDocument
|
|
323
|
+
});
|
|
324
|
+
} catch {
|
|
325
|
+
i = new IntersectionObserver(B, m);
|
|
326
|
+
}
|
|
327
|
+
i.observe(t);
|
|
328
|
+
}
|
|
329
|
+
return s(!0), r;
|
|
330
|
+
}
|
|
331
|
+
function Ft(t, e, i, n) {
|
|
332
|
+
n === void 0 && (n = {});
|
|
333
|
+
const {
|
|
334
|
+
ancestorScroll: o = !0,
|
|
335
|
+
ancestorResize: r = !0,
|
|
336
|
+
elementResize: s = typeof ResizeObserver == "function",
|
|
337
|
+
layoutShift: c = typeof IntersectionObserver == "function",
|
|
338
|
+
animationFrame: l = !1
|
|
339
|
+
} = n, f = k(t), u = o || r ? [...f ? $(f) : [], ...$(e)] : [];
|
|
340
|
+
u.forEach((d) => {
|
|
341
|
+
o && d.addEventListener("scroll", i, {
|
|
342
|
+
passive: !0
|
|
343
|
+
}), r && d.addEventListener("resize", i);
|
|
344
|
+
});
|
|
345
|
+
const h = f && c ? Ct(f, i) : null;
|
|
346
|
+
let p = -1, g = null;
|
|
347
|
+
s && (g = new ResizeObserver((d) => {
|
|
348
|
+
let [m] = d;
|
|
349
|
+
m && m.target === f && g && (g.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
350
|
+
var C;
|
|
351
|
+
(C = g) == null || C.observe(e);
|
|
352
|
+
})), i();
|
|
353
|
+
}), f && !l && g.observe(f), g.observe(e));
|
|
354
|
+
let x, a = l ? T(t) : null;
|
|
355
|
+
l && w();
|
|
356
|
+
function w() {
|
|
357
|
+
const d = T(t);
|
|
358
|
+
a && (d.x !== a.x || d.y !== a.y || d.width !== a.width || d.height !== a.height) && i(), a = d, x = requestAnimationFrame(w);
|
|
359
|
+
}
|
|
360
|
+
return i(), () => {
|
|
361
|
+
var d;
|
|
362
|
+
u.forEach((m) => {
|
|
363
|
+
o && m.removeEventListener("scroll", i), r && m.removeEventListener("resize", i);
|
|
364
|
+
}), h == null || h(), (d = g) == null || d.disconnect(), g = null, l && cancelAnimationFrame(x);
|
|
365
|
+
};
|
|
272
366
|
}
|
|
273
|
-
const
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
getOffsetParent: Q,
|
|
278
|
-
getElementRects: xt,
|
|
279
|
-
getClientRects: ut,
|
|
280
|
-
getDimensions: wt,
|
|
281
|
-
getScale: T,
|
|
282
|
-
isElement: g,
|
|
283
|
-
isRTL: mt
|
|
284
|
-
}, Rt = Z, Lt = tt, bt = X, Wt = et, Et = it, Bt = (t, e, o) => {
|
|
285
|
-
const i = /* @__PURE__ */ new Map(), n = {
|
|
286
|
-
platform: Ct,
|
|
287
|
-
...o
|
|
367
|
+
const Wt = it, Bt = ot, zt = nt, Dt = st, Ht = rt, Nt = (t, e, i) => {
|
|
368
|
+
const n = /* @__PURE__ */ new Map(), o = {
|
|
369
|
+
platform: Ot,
|
|
370
|
+
...i
|
|
288
371
|
}, r = {
|
|
289
|
-
...
|
|
290
|
-
_c:
|
|
372
|
+
...o.platform,
|
|
373
|
+
_c: n
|
|
291
374
|
};
|
|
292
|
-
return
|
|
293
|
-
...
|
|
375
|
+
return ct(t, e, {
|
|
376
|
+
...o,
|
|
294
377
|
platform: r
|
|
295
378
|
});
|
|
296
379
|
};
|
|
297
380
|
export {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
381
|
+
Ht as arrow,
|
|
382
|
+
Ft as autoUpdate,
|
|
383
|
+
Nt as computePosition,
|
|
384
|
+
zt as flip,
|
|
385
|
+
$ as getOverflowAncestors,
|
|
386
|
+
Wt as offset,
|
|
387
|
+
Ot as platform,
|
|
388
|
+
Bt as shift,
|
|
389
|
+
Dt as size
|
|
306
390
|
};
|