@phillips/seldon 1.43.0 → 1.44.1

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.
@@ -0,0 +1,373 @@
1
+ import { offset as et, shift as it, flip as nt, size as ot, hide as st, computePosition as rt, arrow as ct, limitShift as lt } from "../../core/dist/floating-ui.core.js";
2
+ import { createCoords as b, rectToClientRect as X, round as A, floor as z, max as T, min as V } from "../../utils/dist/floating-ui.utils.js";
3
+ import { getOverflowAncestors as $, isElement as x, getWindow as E, getFrameElement as U, getComputedStyle as y, getDocumentElement as C, isHTMLElement as R, isWebKit as j, isTopLayer as S, getNodeName as M, isOverflowElement as _, getNodeScroll as N, getParentNode as W, isLastTraversableNode as D, isTableElement as ft, isContainingBlock as G, getContainingBlock as ut } from "../../utils/dist/floating-ui.utils.dom.js";
4
+ function J(t) {
5
+ const e = y(t);
6
+ let n = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
7
+ const o = R(t), c = o ? t.offsetWidth : n, s = o ? t.offsetHeight : i, r = A(n) !== c || A(i) !== s;
8
+ return r && (n = c, i = s), {
9
+ width: n,
10
+ height: i,
11
+ $: r
12
+ };
13
+ }
14
+ function k(t) {
15
+ return x(t) ? t : t.contextElement;
16
+ }
17
+ function F(t) {
18
+ const e = k(t);
19
+ if (!R(e))
20
+ return b(1);
21
+ const n = e.getBoundingClientRect(), {
22
+ width: i,
23
+ height: o,
24
+ $: c
25
+ } = J(e);
26
+ let s = (c ? A(n.width) : n.width) / i, r = (c ? A(n.height) : n.height) / o;
27
+ return (!s || !Number.isFinite(s)) && (s = 1), (!r || !Number.isFinite(r)) && (r = 1), {
28
+ x: s,
29
+ y: r
30
+ };
31
+ }
32
+ const ht = /* @__PURE__ */ b(0);
33
+ function Q(t) {
34
+ const e = E(t);
35
+ return !j() || !e.visualViewport ? ht : {
36
+ x: e.visualViewport.offsetLeft,
37
+ y: e.visualViewport.offsetTop
38
+ };
39
+ }
40
+ function at(t, e, n) {
41
+ return e === void 0 && (e = !1), !n || e && n !== E(t) ? !1 : e;
42
+ }
43
+ function L(t, e, n, i) {
44
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
45
+ const o = t.getBoundingClientRect(), c = k(t);
46
+ let s = b(1);
47
+ e && (i ? x(i) && (s = F(i)) : s = F(t));
48
+ const r = at(c, n, i) ? Q(c) : b(0);
49
+ let l = (o.left + r.x) / s.x, f = (o.top + r.y) / s.y, u = o.width / s.x, h = o.height / s.y;
50
+ if (c) {
51
+ const w = E(c), g = i && x(i) ? E(i) : i;
52
+ let v = w, a = U(v);
53
+ for (; a && i && g !== v; ) {
54
+ const p = F(a), d = a.getBoundingClientRect(), m = y(a), O = d.left + (a.clientLeft + parseFloat(m.paddingLeft)) * p.x, B = d.top + (a.clientTop + parseFloat(m.paddingTop)) * p.y;
55
+ l *= p.x, f *= p.y, u *= p.x, h *= p.y, l += O, f += B, v = E(a), a = U(v);
56
+ }
57
+ }
58
+ return X({
59
+ width: u,
60
+ height: h,
61
+ x: l,
62
+ y: f
63
+ });
64
+ }
65
+ function dt(t) {
66
+ let {
67
+ elements: e,
68
+ rect: n,
69
+ offsetParent: i,
70
+ strategy: o
71
+ } = t;
72
+ const c = o === "fixed", s = C(i), r = e ? S(e.floating) : !1;
73
+ if (i === s || r && c)
74
+ return n;
75
+ let l = {
76
+ scrollLeft: 0,
77
+ scrollTop: 0
78
+ }, f = b(1);
79
+ const u = b(0), h = R(i);
80
+ if ((h || !h && !c) && ((M(i) !== "body" || _(s)) && (l = N(i)), R(i))) {
81
+ const w = L(i);
82
+ f = F(i), u.x = w.x + i.clientLeft, u.y = w.y + i.clientTop;
83
+ }
84
+ return {
85
+ width: n.width * f.x,
86
+ height: n.height * f.y,
87
+ x: n.x * f.x - l.scrollLeft * f.x + u.x,
88
+ y: n.y * f.y - l.scrollTop * f.y + u.y
89
+ };
90
+ }
91
+ function gt(t) {
92
+ return Array.from(t.getClientRects());
93
+ }
94
+ function Y(t) {
95
+ return L(C(t)).left + N(t).scrollLeft;
96
+ }
97
+ function pt(t) {
98
+ const e = C(t), n = N(t), i = t.ownerDocument.body, o = T(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), c = T(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
99
+ let s = -n.scrollLeft + Y(t);
100
+ const r = -n.scrollTop;
101
+ return y(i).direction === "rtl" && (s += T(e.clientWidth, i.clientWidth) - o), {
102
+ width: o,
103
+ height: c,
104
+ x: s,
105
+ y: r
106
+ };
107
+ }
108
+ function mt(t, e) {
109
+ const n = E(t), i = C(t), o = n.visualViewport;
110
+ let c = i.clientWidth, s = i.clientHeight, r = 0, l = 0;
111
+ if (o) {
112
+ c = o.width, s = o.height;
113
+ const f = j();
114
+ (!f || f && e === "fixed") && (r = o.offsetLeft, l = o.offsetTop);
115
+ }
116
+ return {
117
+ width: c,
118
+ height: s,
119
+ x: r,
120
+ y: l
121
+ };
122
+ }
123
+ function wt(t, e) {
124
+ const n = L(t, !0, e === "fixed"), i = n.top + t.clientTop, o = n.left + t.clientLeft, c = R(t) ? F(t) : b(1), s = t.clientWidth * c.x, r = t.clientHeight * c.y, l = o * c.x, f = i * c.y;
125
+ return {
126
+ width: s,
127
+ height: r,
128
+ x: l,
129
+ y: f
130
+ };
131
+ }
132
+ function K(t, e, n) {
133
+ let i;
134
+ if (e === "viewport")
135
+ i = mt(t, n);
136
+ else if (e === "document")
137
+ i = pt(C(t));
138
+ else if (x(e))
139
+ i = wt(e, n);
140
+ else {
141
+ const o = Q(t);
142
+ i = {
143
+ ...e,
144
+ x: e.x - o.x,
145
+ y: e.y - o.y
146
+ };
147
+ }
148
+ return X(i);
149
+ }
150
+ function Z(t, e) {
151
+ const n = W(t);
152
+ return n === e || !x(n) || D(n) ? !1 : y(n).position === "fixed" || Z(n, e);
153
+ }
154
+ function vt(t, e) {
155
+ const n = e.get(t);
156
+ if (n)
157
+ return n;
158
+ let i = $(t, [], !1).filter((r) => x(r) && M(r) !== "body"), o = null;
159
+ const c = y(t).position === "fixed";
160
+ let s = c ? W(t) : t;
161
+ for (; x(s) && !D(s); ) {
162
+ const r = y(s), l = G(s);
163
+ !l && r.position === "fixed" && (o = null), (c ? !l && !o : !l && r.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _(s) && !l && Z(t, s)) ? i = i.filter((u) => u !== s) : o = r, s = W(s);
164
+ }
165
+ return e.set(t, i), i;
166
+ }
167
+ function xt(t) {
168
+ let {
169
+ element: e,
170
+ boundary: n,
171
+ rootBoundary: i,
172
+ strategy: o
173
+ } = t;
174
+ const s = [...n === "clippingAncestors" ? S(e) ? [] : vt(e, this._c) : [].concat(n), i], r = s[0], l = s.reduce((f, u) => {
175
+ const h = K(e, u, o);
176
+ return f.top = T(h.top, f.top), f.right = V(h.right, f.right), f.bottom = V(h.bottom, f.bottom), f.left = T(h.left, f.left), f;
177
+ }, K(e, r, o));
178
+ return {
179
+ width: l.right - l.left,
180
+ height: l.bottom - l.top,
181
+ x: l.left,
182
+ y: l.top
183
+ };
184
+ }
185
+ function yt(t) {
186
+ const {
187
+ width: e,
188
+ height: n
189
+ } = J(t);
190
+ return {
191
+ width: e,
192
+ height: n
193
+ };
194
+ }
195
+ function bt(t, e, n) {
196
+ const i = R(e), o = C(e), c = n === "fixed", s = L(t, !0, c, e);
197
+ let r = {
198
+ scrollLeft: 0,
199
+ scrollTop: 0
200
+ };
201
+ const l = b(0);
202
+ if (i || !i && !c)
203
+ if ((M(e) !== "body" || _(o)) && (r = N(e)), i) {
204
+ const h = L(e, !0, c, e);
205
+ l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
206
+ } else o && (l.x = Y(o));
207
+ const f = s.left + r.scrollLeft - l.x, u = s.top + r.scrollTop - l.y;
208
+ return {
209
+ x: f,
210
+ y: u,
211
+ width: s.width,
212
+ height: s.height
213
+ };
214
+ }
215
+ function I(t) {
216
+ return y(t).position === "static";
217
+ }
218
+ function P(t, e) {
219
+ return !R(t) || y(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
220
+ }
221
+ function tt(t, e) {
222
+ const n = E(t);
223
+ if (S(t))
224
+ return n;
225
+ if (!R(t)) {
226
+ let o = W(t);
227
+ for (; o && !D(o); ) {
228
+ if (x(o) && !I(o))
229
+ return o;
230
+ o = W(o);
231
+ }
232
+ return n;
233
+ }
234
+ let i = P(t, e);
235
+ for (; i && ft(i) && I(i); )
236
+ i = P(i, e);
237
+ return i && D(i) && I(i) && !G(i) ? n : i || ut(t) || n;
238
+ }
239
+ const Rt = async function(t) {
240
+ const e = this.getOffsetParent || tt, n = this.getDimensions, i = await n(t.floating);
241
+ return {
242
+ reference: bt(t.reference, await e(t.floating), t.strategy),
243
+ floating: {
244
+ x: 0,
245
+ y: 0,
246
+ width: i.width,
247
+ height: i.height
248
+ }
249
+ };
250
+ };
251
+ function Ct(t) {
252
+ return y(t).direction === "rtl";
253
+ }
254
+ const Ot = {
255
+ convertOffsetParentRelativeRectToViewportRelativeRect: dt,
256
+ getDocumentElement: C,
257
+ getClippingRect: xt,
258
+ getOffsetParent: tt,
259
+ getElementRects: Rt,
260
+ getClientRects: gt,
261
+ getDimensions: yt,
262
+ getScale: F,
263
+ isElement: x,
264
+ isRTL: Ct
265
+ };
266
+ function Et(t, e) {
267
+ let n = null, i;
268
+ const o = C(t);
269
+ function c() {
270
+ var r;
271
+ clearTimeout(i), (r = n) == null || r.disconnect(), n = null;
272
+ }
273
+ function s(r, l) {
274
+ r === void 0 && (r = !1), l === void 0 && (l = 1), c();
275
+ const {
276
+ left: f,
277
+ top: u,
278
+ width: h,
279
+ height: w
280
+ } = t.getBoundingClientRect();
281
+ if (r || e(), !h || !w)
282
+ return;
283
+ const g = z(u), v = z(o.clientWidth - (f + h)), a = z(o.clientHeight - (u + w)), p = z(f), m = {
284
+ rootMargin: -g + "px " + -v + "px " + -a + "px " + -p + "px",
285
+ threshold: T(0, V(1, l)) || 1
286
+ };
287
+ let O = !0;
288
+ function B(q) {
289
+ const H = q[0].intersectionRatio;
290
+ if (H !== l) {
291
+ if (!O)
292
+ return s();
293
+ H ? s(!1, H) : i = setTimeout(() => {
294
+ s(!1, 1e-7);
295
+ }, 1e3);
296
+ }
297
+ O = !1;
298
+ }
299
+ try {
300
+ n = new IntersectionObserver(B, {
301
+ ...m,
302
+ // Handle <iframe>s
303
+ root: o.ownerDocument
304
+ });
305
+ } catch {
306
+ n = new IntersectionObserver(B, m);
307
+ }
308
+ n.observe(t);
309
+ }
310
+ return s(!0), c;
311
+ }
312
+ function Wt(t, e, n, i) {
313
+ i === void 0 && (i = {});
314
+ const {
315
+ ancestorScroll: o = !0,
316
+ ancestorResize: c = !0,
317
+ elementResize: s = typeof ResizeObserver == "function",
318
+ layoutShift: r = typeof IntersectionObserver == "function",
319
+ animationFrame: l = !1
320
+ } = i, f = k(t), u = o || c ? [...f ? $(f) : [], ...$(e)] : [];
321
+ u.forEach((d) => {
322
+ o && d.addEventListener("scroll", n, {
323
+ passive: !0
324
+ }), c && d.addEventListener("resize", n);
325
+ });
326
+ const h = f && r ? Et(f, n) : null;
327
+ let w = -1, g = null;
328
+ s && (g = new ResizeObserver((d) => {
329
+ let [m] = d;
330
+ m && m.target === f && g && (g.unobserve(e), cancelAnimationFrame(w), w = requestAnimationFrame(() => {
331
+ var O;
332
+ (O = g) == null || O.observe(e);
333
+ })), n();
334
+ }), f && !l && g.observe(f), g.observe(e));
335
+ let v, a = l ? L(t) : null;
336
+ l && p();
337
+ function p() {
338
+ const d = L(t);
339
+ a && (d.x !== a.x || d.y !== a.y || d.width !== a.width || d.height !== a.height) && n(), a = d, v = requestAnimationFrame(p);
340
+ }
341
+ return n(), () => {
342
+ var d;
343
+ u.forEach((m) => {
344
+ o && m.removeEventListener("scroll", n), c && m.removeEventListener("resize", n);
345
+ }), h == null || h(), (d = g) == null || d.disconnect(), g = null, l && cancelAnimationFrame(v);
346
+ };
347
+ }
348
+ const Bt = et, zt = it, At = nt, Dt = ot, Nt = st, Ht = ct, It = lt, Vt = (t, e, n) => {
349
+ const i = /* @__PURE__ */ new Map(), o = {
350
+ platform: Ot,
351
+ ...n
352
+ }, c = {
353
+ ...o.platform,
354
+ _c: i
355
+ };
356
+ return rt(t, e, {
357
+ ...o,
358
+ platform: c
359
+ });
360
+ };
361
+ export {
362
+ Ht as arrow,
363
+ Wt as autoUpdate,
364
+ Vt as computePosition,
365
+ At as flip,
366
+ $ as getOverflowAncestors,
367
+ Nt as hide,
368
+ It as limitShift,
369
+ Bt as offset,
370
+ Ot as platform,
371
+ zt as shift,
372
+ Dt as size
373
+ };
@@ -0,0 +1,203 @@
1
+ import { computePosition as H, offset as I, shift as J, flip as K, size as N, hide as Q, arrow as j, limitShift as T } from "../../dom/dist/floating-ui.dom.js";
2
+ import { autoUpdate as de, platform as me } from "../../dom/dist/floating-ui.dom.js";
3
+ import * as f from "react";
4
+ import { useLayoutEffect as X, useEffect as Y } from "react";
5
+ import * as Z from "react-dom";
6
+ var w = typeof document != "undefined" ? X : Y;
7
+ function R(e, t) {
8
+ if (e === t)
9
+ return !0;
10
+ if (typeof e != typeof t)
11
+ return !1;
12
+ if (typeof e == "function" && e.toString() === t.toString())
13
+ return !0;
14
+ let n, r, i;
15
+ if (e && t && typeof e == "object") {
16
+ if (Array.isArray(e)) {
17
+ if (n = e.length, n !== t.length) return !1;
18
+ for (r = n; r-- !== 0; )
19
+ if (!R(e[r], t[r]))
20
+ return !1;
21
+ return !0;
22
+ }
23
+ if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length)
24
+ return !1;
25
+ for (r = n; r-- !== 0; )
26
+ if (!{}.hasOwnProperty.call(t, i[r]))
27
+ return !1;
28
+ for (r = n; r-- !== 0; ) {
29
+ const p = i[r];
30
+ if (!(p === "_owner" && e.$$typeof) && !R(e[p], t[p]))
31
+ return !1;
32
+ }
33
+ return !0;
34
+ }
35
+ return e !== e && t !== t;
36
+ }
37
+ function v(e) {
38
+ return typeof window == "undefined" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
39
+ }
40
+ function z(e, t) {
41
+ const n = v(e);
42
+ return Math.round(t * n) / n;
43
+ }
44
+ function L(e) {
45
+ const t = f.useRef(e);
46
+ return w(() => {
47
+ t.current = e;
48
+ }), t;
49
+ }
50
+ function ne(e) {
51
+ e === void 0 && (e = {});
52
+ const {
53
+ placement: t = "bottom",
54
+ strategy: n = "absolute",
55
+ middleware: r = [],
56
+ platform: i,
57
+ elements: {
58
+ reference: p,
59
+ floating: A
60
+ } = {},
61
+ transform: $ = !0,
62
+ whileElementsMounted: E,
63
+ open: k
64
+ } = e, [s, D] = f.useState({
65
+ x: 0,
66
+ y: 0,
67
+ strategy: n,
68
+ placement: t,
69
+ middlewareData: {},
70
+ isPositioned: !1
71
+ }), [x, q] = f.useState(r);
72
+ R(x, r) || q(r);
73
+ const [B, U] = f.useState(null), [V, W] = f.useState(null), O = f.useCallback((o) => {
74
+ o !== a.current && (a.current = o, U(o));
75
+ }, []), _ = f.useCallback((o) => {
76
+ o !== d.current && (d.current = o, W(o));
77
+ }, []), u = p || B, l = A || V, a = f.useRef(null), d = f.useRef(null), y = f.useRef(s), G = E != null, M = L(E), S = L(i), g = f.useCallback(() => {
78
+ if (!a.current || !d.current)
79
+ return;
80
+ const o = {
81
+ placement: t,
82
+ strategy: n,
83
+ middleware: x
84
+ };
85
+ S.current && (o.platform = S.current), H(a.current, d.current, o).then((h) => {
86
+ const m = {
87
+ ...h,
88
+ isPositioned: !0
89
+ };
90
+ P.current && !R(y.current, m) && (y.current = m, Z.flushSync(() => {
91
+ D(m);
92
+ }));
93
+ });
94
+ }, [x, t, n, S]);
95
+ w(() => {
96
+ k === !1 && y.current.isPositioned && (y.current.isPositioned = !1, D((o) => ({
97
+ ...o,
98
+ isPositioned: !1
99
+ })));
100
+ }, [k]);
101
+ const P = f.useRef(!1);
102
+ w(() => (P.current = !0, () => {
103
+ P.current = !1;
104
+ }), []), w(() => {
105
+ if (u && (a.current = u), l && (d.current = l), u && l) {
106
+ if (M.current)
107
+ return M.current(u, l, g);
108
+ g();
109
+ }
110
+ }, [u, l, g, M, G]);
111
+ const C = f.useMemo(() => ({
112
+ reference: a,
113
+ floating: d,
114
+ setReference: O,
115
+ setFloating: _
116
+ }), [O, _]), c = f.useMemo(() => ({
117
+ reference: u,
118
+ floating: l
119
+ }), [u, l]), F = f.useMemo(() => {
120
+ const o = {
121
+ position: n,
122
+ left: 0,
123
+ top: 0
124
+ };
125
+ if (!c.floating)
126
+ return o;
127
+ const h = z(c.floating, s.x), m = z(c.floating, s.y);
128
+ return $ ? {
129
+ ...o,
130
+ transform: "translate(" + h + "px, " + m + "px)",
131
+ ...v(c.floating) >= 1.5 && {
132
+ willChange: "transform"
133
+ }
134
+ } : {
135
+ position: n,
136
+ left: h,
137
+ top: m
138
+ };
139
+ }, [n, $, c.floating, s.x, s.y]);
140
+ return f.useMemo(() => ({
141
+ ...s,
142
+ update: g,
143
+ refs: C,
144
+ elements: c,
145
+ floatingStyles: F
146
+ }), [s, g, C, c, F]);
147
+ }
148
+ const b = (e) => {
149
+ function t(n) {
150
+ return {}.hasOwnProperty.call(n, "current");
151
+ }
152
+ return {
153
+ name: "arrow",
154
+ options: e,
155
+ fn(n) {
156
+ const {
157
+ element: r,
158
+ padding: i
159
+ } = typeof e == "function" ? e(n) : e;
160
+ return r && t(r) ? r.current != null ? j({
161
+ element: r.current,
162
+ padding: i
163
+ }).fn(n) : {} : r ? j({
164
+ element: r,
165
+ padding: i
166
+ }).fn(n) : {};
167
+ }
168
+ };
169
+ }, re = (e, t) => ({
170
+ ...I(e),
171
+ options: [e, t]
172
+ }), fe = (e, t) => ({
173
+ ...J(e),
174
+ options: [e, t]
175
+ }), oe = (e, t) => ({
176
+ ...T(e),
177
+ options: [e, t]
178
+ }), ie = (e, t) => ({
179
+ ...K(e),
180
+ options: [e, t]
181
+ }), se = (e, t) => ({
182
+ ...N(e),
183
+ options: [e, t]
184
+ }), ue = (e, t) => ({
185
+ ...Q(e),
186
+ options: [e, t]
187
+ }), le = (e, t) => ({
188
+ ...b(e),
189
+ options: [e, t]
190
+ });
191
+ export {
192
+ le as arrow,
193
+ de as autoUpdate,
194
+ H as computePosition,
195
+ ie as flip,
196
+ ue as hide,
197
+ oe as limitShift,
198
+ re as offset,
199
+ me as platform,
200
+ fe as shift,
201
+ se as size,
202
+ ne as useFloating
203
+ };
@@ -0,0 +1,128 @@
1
+ function l(n) {
2
+ return d(n) ? (n.nodeName || "").toLowerCase() : "#document";
3
+ }
4
+ function c(n) {
5
+ var t;
6
+ return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
7
+ }
8
+ function S(n) {
9
+ var t;
10
+ return (t = (d(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
11
+ }
12
+ function d(n) {
13
+ return n instanceof Node || n instanceof c(n).Node;
14
+ }
15
+ function p(n) {
16
+ return n instanceof Element || n instanceof c(n).Element;
17
+ }
18
+ function m(n) {
19
+ return n instanceof HTMLElement || n instanceof c(n).HTMLElement;
20
+ }
21
+ function f(n) {
22
+ return typeof ShadowRoot == "undefined" ? !1 : n instanceof ShadowRoot || n instanceof c(n).ShadowRoot;
23
+ }
24
+ function w(n) {
25
+ const {
26
+ overflow: t,
27
+ overflowX: e,
28
+ overflowY: o,
29
+ display: r
30
+ } = g(n);
31
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
32
+ }
33
+ function L(n) {
34
+ return ["table", "td", "th"].includes(l(n));
35
+ }
36
+ function E(n) {
37
+ return [":popover-open", ":modal"].some((t) => {
38
+ try {
39
+ return n.matches(t);
40
+ } catch {
41
+ return !1;
42
+ }
43
+ });
44
+ }
45
+ function N(n) {
46
+ const t = T(), e = p(n) ? g(n) : n;
47
+ return e.transform !== "none" || e.perspective !== "none" || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
48
+ }
49
+ function D(n) {
50
+ let t = u(n);
51
+ for (; m(t) && !y(t); ) {
52
+ if (N(t))
53
+ return t;
54
+ if (E(t))
55
+ return null;
56
+ t = u(t);
57
+ }
58
+ return null;
59
+ }
60
+ function T() {
61
+ return typeof CSS == "undefined" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
62
+ }
63
+ function y(n) {
64
+ return ["html", "body", "#document"].includes(l(n));
65
+ }
66
+ function g(n) {
67
+ return c(n).getComputedStyle(n);
68
+ }
69
+ function k(n) {
70
+ return p(n) ? {
71
+ scrollLeft: n.scrollLeft,
72
+ scrollTop: n.scrollTop
73
+ } : {
74
+ scrollLeft: n.scrollX,
75
+ scrollTop: n.scrollY
76
+ };
77
+ }
78
+ function u(n) {
79
+ if (l(n) === "html")
80
+ return n;
81
+ const t = (
82
+ // Step into the shadow DOM of the parent of a slotted node.
83
+ n.assignedSlot || // DOM Element detected.
84
+ n.parentNode || // ShadowRoot detected.
85
+ f(n) && n.host || // Fallback.
86
+ S(n)
87
+ );
88
+ return f(t) ? t.host : t;
89
+ }
90
+ function b(n) {
91
+ const t = u(n);
92
+ return y(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : m(t) && w(t) ? t : b(t);
93
+ }
94
+ function a(n, t, e) {
95
+ var o;
96
+ t === void 0 && (t = []), e === void 0 && (e = !0);
97
+ const r = b(n), h = r === ((o = n.ownerDocument) == null ? void 0 : o.body), i = c(r);
98
+ if (h) {
99
+ const s = v(i);
100
+ return t.concat(i, i.visualViewport || [], w(r) ? r : [], s && e ? a(s) : []);
101
+ }
102
+ return t.concat(r, a(r, [], e));
103
+ }
104
+ function v(n) {
105
+ return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
106
+ }
107
+ export {
108
+ g as getComputedStyle,
109
+ D as getContainingBlock,
110
+ S as getDocumentElement,
111
+ v as getFrameElement,
112
+ b as getNearestOverflowAncestor,
113
+ l as getNodeName,
114
+ k as getNodeScroll,
115
+ a as getOverflowAncestors,
116
+ u as getParentNode,
117
+ c as getWindow,
118
+ N as isContainingBlock,
119
+ p as isElement,
120
+ m as isHTMLElement,
121
+ y as isLastTraversableNode,
122
+ d as isNode,
123
+ w as isOverflowElement,
124
+ f as isShadowRoot,
125
+ L as isTableElement,
126
+ E as isTopLayer,
127
+ T as isWebKit
128
+ };