@cscfi/csc-ui 4.0.0-alpha.23 → 4.0.0-alpha.24

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,1292 @@
1
+ const Ft = ["top", "right", "bottom", "left"], Rt = ["start", "end"], At = /* @__PURE__ */ Ft.reduce((t, e) => t.concat(e, e + "-" + Rt[0], e + "-" + Rt[1]), []), V = Math.min, L = Math.max, it = Math.round, ot = Math.floor, X = (t) => ({
2
+ x: t,
3
+ y: t
4
+ }), qt = {
5
+ left: "right",
6
+ right: "left",
7
+ bottom: "top",
8
+ top: "bottom"
9
+ };
10
+ function mt(t, e, n) {
11
+ return L(t, V(e, n));
12
+ }
13
+ function _(t, e) {
14
+ return typeof t == "function" ? t(e) : t;
15
+ }
16
+ function B(t) {
17
+ return t.split("-")[0];
18
+ }
19
+ function H(t) {
20
+ return t.split("-")[1];
21
+ }
22
+ function gt(t) {
23
+ return t === "x" ? "y" : "x";
24
+ }
25
+ function pt(t) {
26
+ return t === "y" ? "height" : "width";
27
+ }
28
+ function N(t) {
29
+ const e = t[0];
30
+ return e === "t" || e === "b" ? "y" : "x";
31
+ }
32
+ function wt(t) {
33
+ return gt(N(t));
34
+ }
35
+ function Bt(t, e, n) {
36
+ n === void 0 && (n = !1);
37
+ const o = H(t), i = wt(t), s = pt(i);
38
+ let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
39
+ return e.reference[s] > e.floating[s] && (r = rt(r)), [r, rt(r)];
40
+ }
41
+ function Ut(t) {
42
+ const e = rt(t);
43
+ return [st(t), e, st(e)];
44
+ }
45
+ function st(t) {
46
+ return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
47
+ }
48
+ const Ot = ["left", "right"], Ct = ["right", "left"], Kt = ["top", "bottom"], Gt = ["bottom", "top"];
49
+ function Jt(t, e, n) {
50
+ switch (t) {
51
+ case "top":
52
+ case "bottom":
53
+ return n ? e ? Ct : Ot : e ? Ot : Ct;
54
+ case "left":
55
+ case "right":
56
+ return e ? Kt : Gt;
57
+ default:
58
+ return [];
59
+ }
60
+ }
61
+ function Qt(t, e, n, o) {
62
+ const i = H(t);
63
+ let s = Jt(B(t), n === "start", o);
64
+ return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(st)))), s;
65
+ }
66
+ function rt(t) {
67
+ const e = B(t);
68
+ return qt[e] + t.slice(e.length);
69
+ }
70
+ function Zt(t) {
71
+ return {
72
+ top: 0,
73
+ right: 0,
74
+ bottom: 0,
75
+ left: 0,
76
+ ...t
77
+ };
78
+ }
79
+ function xt(t) {
80
+ return typeof t != "number" ? Zt(t) : {
81
+ top: t,
82
+ right: t,
83
+ bottom: t,
84
+ left: t
85
+ };
86
+ }
87
+ function Q(t) {
88
+ const {
89
+ x: e,
90
+ y: n,
91
+ width: o,
92
+ height: i
93
+ } = t;
94
+ return {
95
+ width: o,
96
+ height: i,
97
+ top: n,
98
+ left: e,
99
+ right: e + o,
100
+ bottom: n + i,
101
+ x: e,
102
+ y: n
103
+ };
104
+ }
105
+ function St(t, e, n) {
106
+ let {
107
+ reference: o,
108
+ floating: i
109
+ } = t;
110
+ const s = N(e), r = wt(e), c = pt(r), a = B(e), d = s === "y", u = o.x + o.width / 2 - i.width / 2, l = o.y + o.height / 2 - i.height / 2, m = o[c] / 2 - i[c] / 2;
111
+ let f;
112
+ switch (a) {
113
+ case "top":
114
+ f = {
115
+ x: u,
116
+ y: o.y - i.height
117
+ };
118
+ break;
119
+ case "bottom":
120
+ f = {
121
+ x: u,
122
+ y: o.y + o.height
123
+ };
124
+ break;
125
+ case "right":
126
+ f = {
127
+ x: o.x + o.width,
128
+ y: l
129
+ };
130
+ break;
131
+ case "left":
132
+ f = {
133
+ x: o.x - i.width,
134
+ y: l
135
+ };
136
+ break;
137
+ default:
138
+ f = {
139
+ x: o.x,
140
+ y: o.y
141
+ };
142
+ }
143
+ switch (H(e)) {
144
+ case "start":
145
+ f[r] -= m * (n && d ? -1 : 1);
146
+ break;
147
+ case "end":
148
+ f[r] += m * (n && d ? -1 : 1);
149
+ break;
150
+ }
151
+ return f;
152
+ }
153
+ async function Wt(t, e) {
154
+ var n;
155
+ e === void 0 && (e = {});
156
+ const {
157
+ x: o,
158
+ y: i,
159
+ platform: s,
160
+ rects: r,
161
+ elements: c,
162
+ strategy: a
163
+ } = t, {
164
+ boundary: d = "clippingAncestors",
165
+ rootBoundary: u = "viewport",
166
+ elementContext: l = "floating",
167
+ altBoundary: m = !1,
168
+ padding: f = 0
169
+ } = _(e, t), h = xt(f), p = c[m ? l === "floating" ? "reference" : "floating" : l], w = Q(await s.getClippingRect({
170
+ element: (n = await (s.isElement == null ? void 0 : s.isElement(p))) == null || n ? p : p.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
171
+ boundary: d,
172
+ rootBoundary: u,
173
+ strategy: a
174
+ })), x = l === "floating" ? {
175
+ x: o,
176
+ y: i,
177
+ width: r.floating.width,
178
+ height: r.floating.height
179
+ } : r.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), v = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
180
+ x: 1,
181
+ y: 1
182
+ } : {
183
+ x: 1,
184
+ y: 1
185
+ }, R = Q(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
186
+ elements: c,
187
+ rect: x,
188
+ offsetParent: y,
189
+ strategy: a
190
+ }) : x);
191
+ return {
192
+ top: (w.top - R.top + h.top) / v.y,
193
+ bottom: (R.bottom - w.bottom + h.bottom) / v.y,
194
+ left: (w.left - R.left + h.left) / v.x,
195
+ right: (R.right - w.right + h.right) / v.x
196
+ };
197
+ }
198
+ const te = 50, ee = async (t, e, n) => {
199
+ const {
200
+ placement: o = "bottom",
201
+ strategy: i = "absolute",
202
+ middleware: s = [],
203
+ platform: r
204
+ } = n, c = r.detectOverflow ? r : {
205
+ ...r,
206
+ detectOverflow: Wt
207
+ }, a = await (r.isRTL == null ? void 0 : r.isRTL(e));
208
+ let d = await r.getElementRects({
209
+ reference: t,
210
+ floating: e,
211
+ strategy: i
212
+ }), {
213
+ x: u,
214
+ y: l
215
+ } = St(d, o, a), m = o, f = 0;
216
+ const h = {};
217
+ for (let g = 0; g < s.length; g++) {
218
+ const p = s[g];
219
+ if (!p)
220
+ continue;
221
+ const {
222
+ name: w,
223
+ fn: x
224
+ } = p, {
225
+ x: y,
226
+ y: v,
227
+ data: R,
228
+ reset: A
229
+ } = await x({
230
+ x: u,
231
+ y: l,
232
+ initialPlacement: o,
233
+ placement: m,
234
+ strategy: i,
235
+ middlewareData: h,
236
+ rects: d,
237
+ platform: c,
238
+ elements: {
239
+ reference: t,
240
+ floating: e
241
+ }
242
+ });
243
+ u = y ?? u, l = v ?? l, h[w] = {
244
+ ...h[w],
245
+ ...R
246
+ }, A && f < te && (f++, typeof A == "object" && (A.placement && (m = A.placement), A.rects && (d = A.rects === !0 ? await r.getElementRects({
247
+ reference: t,
248
+ floating: e,
249
+ strategy: i
250
+ }) : A.rects), {
251
+ x: u,
252
+ y: l
253
+ } = St(d, m, a)), g = -1);
254
+ }
255
+ return {
256
+ x: u,
257
+ y: l,
258
+ placement: m,
259
+ strategy: i,
260
+ middlewareData: h
261
+ };
262
+ }, ne = (t) => ({
263
+ name: "arrow",
264
+ options: t,
265
+ async fn(e) {
266
+ const {
267
+ x: n,
268
+ y: o,
269
+ placement: i,
270
+ rects: s,
271
+ platform: r,
272
+ elements: c,
273
+ middlewareData: a
274
+ } = e, {
275
+ element: d,
276
+ padding: u = 0
277
+ } = _(t, e) || {};
278
+ if (d == null)
279
+ return {};
280
+ const l = xt(u), m = {
281
+ x: n,
282
+ y: o
283
+ }, f = wt(i), h = pt(f), g = await r.getDimensions(d), p = f === "y", w = p ? "top" : "left", x = p ? "bottom" : "right", y = p ? "clientHeight" : "clientWidth", v = s.reference[h] + s.reference[f] - m[f] - s.floating[h], R = m[f] - s.reference[f], A = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(d));
284
+ let O = A ? A[y] : 0;
285
+ (!O || !await (r.isElement == null ? void 0 : r.isElement(A))) && (O = c.floating[y] || s.floating[h]);
286
+ const W = v / 2 - R / 2, T = O / 2 - g[h] / 2 - 1, b = V(l[w], T), C = V(l[x], T), P = b, E = O - g[h] - C, S = O / 2 - g[h] / 2 + W, $ = mt(P, S, E), k = !a.arrow && H(i) != null && S !== $ && s.reference[h] / 2 - (S < P ? b : C) - g[h] / 2 < 0, D = k ? S < P ? S - P : S - E : 0;
287
+ return {
288
+ [f]: m[f] + D,
289
+ data: {
290
+ [f]: $,
291
+ centerOffset: S - $ - D,
292
+ ...k && {
293
+ alignmentOffset: D
294
+ }
295
+ },
296
+ reset: k
297
+ };
298
+ }
299
+ });
300
+ function oe(t, e, n) {
301
+ return (t ? [...n.filter((i) => H(i) === t), ...n.filter((i) => H(i) !== t)] : n.filter((i) => B(i) === i)).filter((i) => t ? H(i) === t || (e ? st(i) !== i : !1) : !0);
302
+ }
303
+ const ie = function(t) {
304
+ return t === void 0 && (t = {}), {
305
+ name: "autoPlacement",
306
+ options: t,
307
+ async fn(e) {
308
+ var n, o, i;
309
+ const {
310
+ rects: s,
311
+ middlewareData: r,
312
+ placement: c,
313
+ platform: a,
314
+ elements: d
315
+ } = e, {
316
+ crossAxis: u = !1,
317
+ alignment: l,
318
+ allowedPlacements: m = At,
319
+ autoAlignment: f = !0,
320
+ ...h
321
+ } = _(t, e), g = l !== void 0 || m === At ? oe(l || null, f, m) : m, p = await a.detectOverflow(e, h), w = ((n = r.autoPlacement) == null ? void 0 : n.index) || 0, x = g[w];
322
+ if (x == null)
323
+ return {};
324
+ const y = Bt(x, s, await (a.isRTL == null ? void 0 : a.isRTL(d.floating)));
325
+ if (c !== x)
326
+ return {
327
+ reset: {
328
+ placement: g[0]
329
+ }
330
+ };
331
+ const v = [p[B(x)], p[y[0]], p[y[1]]], R = [...((o = r.autoPlacement) == null ? void 0 : o.overflows) || [], {
332
+ placement: x,
333
+ overflows: v
334
+ }], A = g[w + 1];
335
+ if (A)
336
+ return {
337
+ data: {
338
+ index: w + 1,
339
+ overflows: R
340
+ },
341
+ reset: {
342
+ placement: A
343
+ }
344
+ };
345
+ const O = R.map((b) => {
346
+ const C = H(b.placement);
347
+ return [b.placement, C && u ? (
348
+ // Check along the mainAxis and main crossAxis side.
349
+ b.overflows.slice(0, 2).reduce((P, E) => P + E, 0)
350
+ ) : (
351
+ // Check only the mainAxis.
352
+ b.overflows[0]
353
+ ), b.overflows];
354
+ }).sort((b, C) => b[1] - C[1]), T = ((i = O.filter((b) => b[2].slice(
355
+ 0,
356
+ // Aligned placements should not check their opposite crossAxis
357
+ // side.
358
+ H(b[0]) ? 2 : 3
359
+ ).every((C) => C <= 0))[0]) == null ? void 0 : i[0]) || O[0][0];
360
+ return T !== c ? {
361
+ data: {
362
+ index: w + 1,
363
+ overflows: R
364
+ },
365
+ reset: {
366
+ placement: T
367
+ }
368
+ } : {};
369
+ }
370
+ };
371
+ }, se = function(t) {
372
+ return t === void 0 && (t = {}), {
373
+ name: "flip",
374
+ options: t,
375
+ async fn(e) {
376
+ var n, o;
377
+ const {
378
+ placement: i,
379
+ middlewareData: s,
380
+ rects: r,
381
+ initialPlacement: c,
382
+ platform: a,
383
+ elements: d
384
+ } = e, {
385
+ mainAxis: u = !0,
386
+ crossAxis: l = !0,
387
+ fallbackPlacements: m,
388
+ fallbackStrategy: f = "bestFit",
389
+ fallbackAxisSideDirection: h = "none",
390
+ flipAlignment: g = !0,
391
+ ...p
392
+ } = _(t, e);
393
+ if ((n = s.arrow) != null && n.alignmentOffset)
394
+ return {};
395
+ const w = B(i), x = N(c), y = B(c) === c, v = await (a.isRTL == null ? void 0 : a.isRTL(d.floating)), R = m || (y || !g ? [rt(c)] : Ut(c)), A = h !== "none";
396
+ !m && A && R.push(...Qt(c, g, h, v));
397
+ const O = [c, ...R], W = await a.detectOverflow(e, p), T = [];
398
+ let b = ((o = s.flip) == null ? void 0 : o.overflows) || [];
399
+ if (u && T.push(W[w]), l) {
400
+ const S = Bt(i, r, v);
401
+ T.push(W[S[0]], W[S[1]]);
402
+ }
403
+ if (b = [...b, {
404
+ placement: i,
405
+ overflows: T
406
+ }], !T.every((S) => S <= 0)) {
407
+ var C, P;
408
+ const S = (((C = s.flip) == null ? void 0 : C.index) || 0) + 1, $ = O[S];
409
+ if ($ && (!(l === "alignment" ? x !== N($) : !1) || // We leave the current main axis only if every placement on that axis
410
+ // overflows the main axis.
411
+ b.every((M) => N(M.placement) === x ? M.overflows[0] > 0 : !0)))
412
+ return {
413
+ data: {
414
+ index: S,
415
+ overflows: b
416
+ },
417
+ reset: {
418
+ placement: $
419
+ }
420
+ };
421
+ let k = (P = b.filter((D) => D.overflows[0] <= 0).sort((D, M) => D.overflows[1] - M.overflows[1])[0]) == null ? void 0 : P.placement;
422
+ if (!k)
423
+ switch (f) {
424
+ case "bestFit": {
425
+ var E;
426
+ const D = (E = b.filter((M) => {
427
+ if (A) {
428
+ const q = N(M.placement);
429
+ return q === x || // Create a bias to the `y` side axis due to horizontal
430
+ // reading directions favoring greater width.
431
+ q === "y";
432
+ }
433
+ return !0;
434
+ }).map((M) => [M.placement, M.overflows.filter((q) => q > 0).reduce((q, jt) => q + jt, 0)]).sort((M, q) => M[1] - q[1])[0]) == null ? void 0 : E[0];
435
+ D && (k = D);
436
+ break;
437
+ }
438
+ case "initialPlacement":
439
+ k = c;
440
+ break;
441
+ }
442
+ if (i !== k)
443
+ return {
444
+ reset: {
445
+ placement: k
446
+ }
447
+ };
448
+ }
449
+ return {};
450
+ }
451
+ };
452
+ };
453
+ function Lt(t, e) {
454
+ return {
455
+ top: t.top - e.height,
456
+ right: t.right - e.width,
457
+ bottom: t.bottom - e.height,
458
+ left: t.left - e.width
459
+ };
460
+ }
461
+ function Tt(t) {
462
+ return Ft.some((e) => t[e] >= 0);
463
+ }
464
+ const re = function(t) {
465
+ return t === void 0 && (t = {}), {
466
+ name: "hide",
467
+ options: t,
468
+ async fn(e) {
469
+ const {
470
+ rects: n,
471
+ platform: o
472
+ } = e, {
473
+ strategy: i = "referenceHidden",
474
+ ...s
475
+ } = _(t, e);
476
+ switch (i) {
477
+ case "referenceHidden": {
478
+ const r = await o.detectOverflow(e, {
479
+ ...s,
480
+ elementContext: "reference"
481
+ }), c = Lt(r, n.reference);
482
+ return {
483
+ data: {
484
+ referenceHiddenOffsets: c,
485
+ referenceHidden: Tt(c)
486
+ }
487
+ };
488
+ }
489
+ case "escaped": {
490
+ const r = await o.detectOverflow(e, {
491
+ ...s,
492
+ altBoundary: !0
493
+ }), c = Lt(r, n.floating);
494
+ return {
495
+ data: {
496
+ escapedOffsets: c,
497
+ escaped: Tt(c)
498
+ }
499
+ };
500
+ }
501
+ default:
502
+ return {};
503
+ }
504
+ }
505
+ };
506
+ };
507
+ function kt(t) {
508
+ const e = V(...t.map((s) => s.left)), n = V(...t.map((s) => s.top)), o = L(...t.map((s) => s.right)), i = L(...t.map((s) => s.bottom));
509
+ return {
510
+ x: e,
511
+ y: n,
512
+ width: o - e,
513
+ height: i - n
514
+ };
515
+ }
516
+ function ce(t) {
517
+ const e = t.slice().sort((i, s) => i.y - s.y), n = [];
518
+ let o = null;
519
+ for (let i = 0; i < e.length; i++) {
520
+ const s = e[i];
521
+ !o || s.y - o.y > o.height / 2 ? n.push([s]) : n[n.length - 1].push(s), o = s;
522
+ }
523
+ return n.map((i) => Q(kt(i)));
524
+ }
525
+ const le = function(t) {
526
+ return t === void 0 && (t = {}), {
527
+ name: "inline",
528
+ options: t,
529
+ async fn(e) {
530
+ const {
531
+ placement: n,
532
+ elements: o,
533
+ rects: i,
534
+ platform: s,
535
+ strategy: r
536
+ } = e, {
537
+ padding: c = 2,
538
+ x: a,
539
+ y: d
540
+ } = _(t, e), u = Array.from(await (s.getClientRects == null ? void 0 : s.getClientRects(o.reference)) || []), l = ce(u), m = Q(kt(u)), f = xt(c);
541
+ function h() {
542
+ if (l.length === 2 && l[0].left > l[1].right && a != null && d != null)
543
+ return l.find((p) => a > p.left - f.left && a < p.right + f.right && d > p.top - f.top && d < p.bottom + f.bottom) || m;
544
+ if (l.length >= 2) {
545
+ if (N(n) === "y") {
546
+ const b = l[0], C = l[l.length - 1], P = B(n) === "top", E = b.top, S = C.bottom, $ = P ? b.left : C.left, k = P ? b.right : C.right, D = k - $, M = S - E;
547
+ return {
548
+ top: E,
549
+ bottom: S,
550
+ left: $,
551
+ right: k,
552
+ width: D,
553
+ height: M,
554
+ x: $,
555
+ y: E
556
+ };
557
+ }
558
+ const p = B(n) === "left", w = L(...l.map((b) => b.right)), x = V(...l.map((b) => b.left)), y = l.filter((b) => p ? b.left === x : b.right === w), v = y[0].top, R = y[y.length - 1].bottom, A = x, O = w, W = O - A, T = R - v;
559
+ return {
560
+ top: v,
561
+ bottom: R,
562
+ left: A,
563
+ right: O,
564
+ width: W,
565
+ height: T,
566
+ x: A,
567
+ y: v
568
+ };
569
+ }
570
+ return m;
571
+ }
572
+ const g = await s.getElementRects({
573
+ reference: {
574
+ getBoundingClientRect: h
575
+ },
576
+ floating: o.floating,
577
+ strategy: r
578
+ });
579
+ return i.reference.x !== g.reference.x || i.reference.y !== g.reference.y || i.reference.width !== g.reference.width || i.reference.height !== g.reference.height ? {
580
+ reset: {
581
+ rects: g
582
+ }
583
+ } : {};
584
+ }
585
+ };
586
+ }, $t = /* @__PURE__ */ new Set(["left", "top"]);
587
+ async function fe(t, e) {
588
+ const {
589
+ placement: n,
590
+ platform: o,
591
+ elements: i
592
+ } = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = B(n), c = H(n), a = N(n) === "y", d = $t.has(r) ? -1 : 1, u = s && a ? -1 : 1, l = _(e, t);
593
+ let {
594
+ mainAxis: m,
595
+ crossAxis: f,
596
+ alignmentAxis: h
597
+ } = typeof l == "number" ? {
598
+ mainAxis: l,
599
+ crossAxis: 0,
600
+ alignmentAxis: null
601
+ } : {
602
+ mainAxis: l.mainAxis || 0,
603
+ crossAxis: l.crossAxis || 0,
604
+ alignmentAxis: l.alignmentAxis
605
+ };
606
+ return c && typeof h == "number" && (f = c === "end" ? h * -1 : h), a ? {
607
+ x: f * u,
608
+ y: m * d
609
+ } : {
610
+ x: m * d,
611
+ y: f * u
612
+ };
613
+ }
614
+ const ae = function(t) {
615
+ return t === void 0 && (t = 0), {
616
+ name: "offset",
617
+ options: t,
618
+ async fn(e) {
619
+ var n, o;
620
+ const {
621
+ x: i,
622
+ y: s,
623
+ placement: r,
624
+ middlewareData: c
625
+ } = e, a = await fe(e, t);
626
+ return r === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
627
+ x: i + a.x,
628
+ y: s + a.y,
629
+ data: {
630
+ ...a,
631
+ placement: r
632
+ }
633
+ };
634
+ }
635
+ };
636
+ }, ue = function(t) {
637
+ return t === void 0 && (t = {}), {
638
+ name: "shift",
639
+ options: t,
640
+ async fn(e) {
641
+ const {
642
+ x: n,
643
+ y: o,
644
+ placement: i,
645
+ platform: s
646
+ } = e, {
647
+ mainAxis: r = !0,
648
+ crossAxis: c = !1,
649
+ limiter: a = {
650
+ fn: (w) => {
651
+ let {
652
+ x,
653
+ y
654
+ } = w;
655
+ return {
656
+ x,
657
+ y
658
+ };
659
+ }
660
+ },
661
+ ...d
662
+ } = _(t, e), u = {
663
+ x: n,
664
+ y: o
665
+ }, l = await s.detectOverflow(e, d), m = N(B(i)), f = gt(m);
666
+ let h = u[f], g = u[m];
667
+ if (r) {
668
+ const w = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", y = h + l[w], v = h - l[x];
669
+ h = mt(y, h, v);
670
+ }
671
+ if (c) {
672
+ const w = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", y = g + l[w], v = g - l[x];
673
+ g = mt(y, g, v);
674
+ }
675
+ const p = a.fn({
676
+ ...e,
677
+ [f]: h,
678
+ [m]: g
679
+ });
680
+ return {
681
+ ...p,
682
+ data: {
683
+ x: p.x - n,
684
+ y: p.y - o,
685
+ enabled: {
686
+ [f]: r,
687
+ [m]: c
688
+ }
689
+ }
690
+ };
691
+ }
692
+ };
693
+ }, de = function(t) {
694
+ return t === void 0 && (t = {}), {
695
+ options: t,
696
+ fn(e) {
697
+ const {
698
+ x: n,
699
+ y: o,
700
+ placement: i,
701
+ rects: s,
702
+ middlewareData: r
703
+ } = e, {
704
+ offset: c = 0,
705
+ mainAxis: a = !0,
706
+ crossAxis: d = !0
707
+ } = _(t, e), u = {
708
+ x: n,
709
+ y: o
710
+ }, l = N(i), m = gt(l);
711
+ let f = u[m], h = u[l];
712
+ const g = _(c, e), p = typeof g == "number" ? {
713
+ mainAxis: g,
714
+ crossAxis: 0
715
+ } : {
716
+ mainAxis: 0,
717
+ crossAxis: 0,
718
+ ...g
719
+ };
720
+ if (a) {
721
+ const y = m === "y" ? "height" : "width", v = s.reference[m] - s.floating[y] + p.mainAxis, R = s.reference[m] + s.reference[y] - p.mainAxis;
722
+ f < v ? f = v : f > R && (f = R);
723
+ }
724
+ if (d) {
725
+ var w, x;
726
+ const y = m === "y" ? "width" : "height", v = $t.has(B(i)), R = s.reference[l] - s.floating[y] + (v && ((w = r.offset) == null ? void 0 : w[l]) || 0) + (v ? 0 : p.crossAxis), A = s.reference[l] + s.reference[y] + (v ? 0 : ((x = r.offset) == null ? void 0 : x[l]) || 0) - (v ? p.crossAxis : 0);
727
+ h < R ? h = R : h > A && (h = A);
728
+ }
729
+ return {
730
+ [m]: f,
731
+ [l]: h
732
+ };
733
+ }
734
+ };
735
+ }, me = function(t) {
736
+ return t === void 0 && (t = {}), {
737
+ name: "size",
738
+ options: t,
739
+ async fn(e) {
740
+ var n, o;
741
+ const {
742
+ placement: i,
743
+ rects: s,
744
+ platform: r,
745
+ elements: c
746
+ } = e, {
747
+ apply: a = () => {
748
+ },
749
+ ...d
750
+ } = _(t, e), u = await r.detectOverflow(e, d), l = B(i), m = H(i), f = N(i) === "y", {
751
+ width: h,
752
+ height: g
753
+ } = s.floating;
754
+ let p, w;
755
+ l === "top" || l === "bottom" ? (p = l, w = m === (await (r.isRTL == null ? void 0 : r.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (w = l, p = m === "end" ? "top" : "bottom");
756
+ const x = g - u.top - u.bottom, y = h - u.left - u.right, v = V(g - u[p], x), R = V(h - u[w], y), A = !e.middlewareData.shift;
757
+ let O = v, W = R;
758
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (W = y), (o = e.middlewareData.shift) != null && o.enabled.y && (O = x), A && !m) {
759
+ const b = L(u.left, 0), C = L(u.right, 0), P = L(u.top, 0), E = L(u.bottom, 0);
760
+ f ? W = h - 2 * (b !== 0 || C !== 0 ? b + C : L(u.left, u.right)) : O = g - 2 * (P !== 0 || E !== 0 ? P + E : L(u.top, u.bottom));
761
+ }
762
+ await a({
763
+ ...e,
764
+ availableWidth: W,
765
+ availableHeight: O
766
+ });
767
+ const T = await r.getDimensions(c.floating);
768
+ return h !== T.width || g !== T.height ? {
769
+ reset: {
770
+ rects: !0
771
+ }
772
+ } : {};
773
+ }
774
+ };
775
+ };
776
+ function ct() {
777
+ return typeof window < "u";
778
+ }
779
+ function tt(t) {
780
+ return Nt(t) ? (t.nodeName || "").toLowerCase() : "#document";
781
+ }
782
+ function F(t) {
783
+ var e;
784
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
785
+ }
786
+ function Y(t) {
787
+ var e;
788
+ return (e = (Nt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
789
+ }
790
+ function Nt(t) {
791
+ return ct() ? t instanceof Node || t instanceof F(t).Node : !1;
792
+ }
793
+ function z(t) {
794
+ return ct() ? t instanceof Element || t instanceof F(t).Element : !1;
795
+ }
796
+ function j(t) {
797
+ return ct() ? t instanceof HTMLElement || t instanceof F(t).HTMLElement : !1;
798
+ }
799
+ function Pt(t) {
800
+ return !ct() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof F(t).ShadowRoot;
801
+ }
802
+ function nt(t) {
803
+ const {
804
+ overflow: e,
805
+ overflowX: n,
806
+ overflowY: o,
807
+ display: i
808
+ } = I(t);
809
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && i !== "inline" && i !== "contents";
810
+ }
811
+ function he(t) {
812
+ return /^(table|td|th)$/.test(tt(t));
813
+ }
814
+ function lt(t) {
815
+ try {
816
+ if (t.matches(":popover-open"))
817
+ return !0;
818
+ } catch {
819
+ }
820
+ try {
821
+ return t.matches(":modal");
822
+ } catch {
823
+ return !1;
824
+ }
825
+ }
826
+ const ge = /transform|translate|scale|rotate|perspective|filter/, pe = /paint|layout|strict|content/, K = (t) => !!t && t !== "none";
827
+ let ut;
828
+ function yt(t) {
829
+ const e = z(t) ? I(t) : t;
830
+ return K(e.transform) || K(e.translate) || K(e.scale) || K(e.rotate) || K(e.perspective) || !vt() && (K(e.backdropFilter) || K(e.filter)) || ge.test(e.willChange || "") || pe.test(e.contain || "");
831
+ }
832
+ function we(t) {
833
+ let e = U(t);
834
+ for (; j(e) && !Z(e); ) {
835
+ if (yt(e))
836
+ return e;
837
+ if (lt(e))
838
+ return null;
839
+ e = U(e);
840
+ }
841
+ return null;
842
+ }
843
+ function vt() {
844
+ return ut == null && (ut = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), ut;
845
+ }
846
+ function Z(t) {
847
+ return /^(html|body|#document)$/.test(tt(t));
848
+ }
849
+ function I(t) {
850
+ return F(t).getComputedStyle(t);
851
+ }
852
+ function ft(t) {
853
+ return z(t) ? {
854
+ scrollLeft: t.scrollLeft,
855
+ scrollTop: t.scrollTop
856
+ } : {
857
+ scrollLeft: t.scrollX,
858
+ scrollTop: t.scrollY
859
+ };
860
+ }
861
+ function U(t) {
862
+ if (tt(t) === "html")
863
+ return t;
864
+ const e = (
865
+ // Step into the shadow DOM of the parent of a slotted node.
866
+ t.assignedSlot || // DOM Element detected.
867
+ t.parentNode || // ShadowRoot detected.
868
+ Pt(t) && t.host || // Fallback.
869
+ Y(t)
870
+ );
871
+ return Pt(e) ? e.host : e;
872
+ }
873
+ function Ht(t) {
874
+ const e = U(t);
875
+ return Z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : j(e) && nt(e) ? e : Ht(e);
876
+ }
877
+ function et(t, e, n) {
878
+ var o;
879
+ e === void 0 && (e = []), n === void 0 && (n = !0);
880
+ const i = Ht(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = F(i);
881
+ if (s) {
882
+ const c = ht(r);
883
+ return e.concat(r, r.visualViewport || [], nt(i) ? i : [], c && n ? et(c) : []);
884
+ } else
885
+ return e.concat(i, et(i, [], n));
886
+ }
887
+ function ht(t) {
888
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
889
+ }
890
+ function Vt(t) {
891
+ const e = I(t);
892
+ let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
893
+ const i = j(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, c = it(n) !== s || it(o) !== r;
894
+ return c && (n = s, o = r), {
895
+ width: n,
896
+ height: o,
897
+ $: c
898
+ };
899
+ }
900
+ function bt(t) {
901
+ return z(t) ? t : t.contextElement;
902
+ }
903
+ function J(t) {
904
+ const e = bt(t);
905
+ if (!j(e))
906
+ return X(1);
907
+ const n = e.getBoundingClientRect(), {
908
+ width: o,
909
+ height: i,
910
+ $: s
911
+ } = Vt(e);
912
+ let r = (s ? it(n.width) : n.width) / o, c = (s ? it(n.height) : n.height) / i;
913
+ return (!r || !Number.isFinite(r)) && (r = 1), (!c || !Number.isFinite(c)) && (c = 1), {
914
+ x: r,
915
+ y: c
916
+ };
917
+ }
918
+ const xe = /* @__PURE__ */ X(0);
919
+ function _t(t) {
920
+ const e = F(t);
921
+ return !vt() || !e.visualViewport ? xe : {
922
+ x: e.visualViewport.offsetLeft,
923
+ y: e.visualViewport.offsetTop
924
+ };
925
+ }
926
+ function ye(t, e, n) {
927
+ return e === void 0 && (e = !1), !n || e && n !== F(t) ? !1 : e;
928
+ }
929
+ function G(t, e, n, o) {
930
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
931
+ const i = t.getBoundingClientRect(), s = bt(t);
932
+ let r = X(1);
933
+ e && (o ? z(o) && (r = J(o)) : r = J(t));
934
+ const c = ye(s, n, o) ? _t(s) : X(0);
935
+ let a = (i.left + c.x) / r.x, d = (i.top + c.y) / r.y, u = i.width / r.x, l = i.height / r.y;
936
+ if (s) {
937
+ const m = F(s), f = o && z(o) ? F(o) : o;
938
+ let h = m, g = ht(h);
939
+ for (; g && o && f !== h; ) {
940
+ const p = J(g), w = g.getBoundingClientRect(), x = I(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * p.x, v = w.top + (g.clientTop + parseFloat(x.paddingTop)) * p.y;
941
+ a *= p.x, d *= p.y, u *= p.x, l *= p.y, a += y, d += v, h = F(g), g = ht(h);
942
+ }
943
+ }
944
+ return Q({
945
+ width: u,
946
+ height: l,
947
+ x: a,
948
+ y: d
949
+ });
950
+ }
951
+ function at(t, e) {
952
+ const n = ft(t).scrollLeft;
953
+ return e ? e.left + n : G(Y(t)).left + n;
954
+ }
955
+ function zt(t, e) {
956
+ const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - at(t, n), i = n.top + e.scrollTop;
957
+ return {
958
+ x: o,
959
+ y: i
960
+ };
961
+ }
962
+ function ve(t) {
963
+ let {
964
+ elements: e,
965
+ rect: n,
966
+ offsetParent: o,
967
+ strategy: i
968
+ } = t;
969
+ const s = i === "fixed", r = Y(o), c = e ? lt(e.floating) : !1;
970
+ if (o === r || c && s)
971
+ return n;
972
+ let a = {
973
+ scrollLeft: 0,
974
+ scrollTop: 0
975
+ }, d = X(1);
976
+ const u = X(0), l = j(o);
977
+ if ((l || !l && !s) && ((tt(o) !== "body" || nt(r)) && (a = ft(o)), l)) {
978
+ const f = G(o);
979
+ d = J(o), u.x = f.x + o.clientLeft, u.y = f.y + o.clientTop;
980
+ }
981
+ const m = r && !l && !s ? zt(r, a) : X(0);
982
+ return {
983
+ width: n.width * d.x,
984
+ height: n.height * d.y,
985
+ x: n.x * d.x - a.scrollLeft * d.x + u.x + m.x,
986
+ y: n.y * d.y - a.scrollTop * d.y + u.y + m.y
987
+ };
988
+ }
989
+ function be(t) {
990
+ return Array.from(t.getClientRects());
991
+ }
992
+ function Re(t) {
993
+ const e = Y(t), n = ft(t), o = t.ownerDocument.body, i = L(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = L(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
994
+ let r = -n.scrollLeft + at(t);
995
+ const c = -n.scrollTop;
996
+ return I(o).direction === "rtl" && (r += L(e.clientWidth, o.clientWidth) - i), {
997
+ width: i,
998
+ height: s,
999
+ x: r,
1000
+ y: c
1001
+ };
1002
+ }
1003
+ const Et = 25;
1004
+ function Ae(t, e) {
1005
+ const n = F(t), o = Y(t), i = n.visualViewport;
1006
+ let s = o.clientWidth, r = o.clientHeight, c = 0, a = 0;
1007
+ if (i) {
1008
+ s = i.width, r = i.height;
1009
+ const u = vt();
1010
+ (!u || u && e === "fixed") && (c = i.offsetLeft, a = i.offsetTop);
1011
+ }
1012
+ const d = at(o);
1013
+ if (d <= 0) {
1014
+ const u = o.ownerDocument, l = u.body, m = getComputedStyle(l), f = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - l.clientWidth - f);
1015
+ h <= Et && (s -= h);
1016
+ } else d <= Et && (s += d);
1017
+ return {
1018
+ width: s,
1019
+ height: r,
1020
+ x: c,
1021
+ y: a
1022
+ };
1023
+ }
1024
+ function Oe(t, e) {
1025
+ const n = G(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = j(t) ? J(t) : X(1), r = t.clientWidth * s.x, c = t.clientHeight * s.y, a = i * s.x, d = o * s.y;
1026
+ return {
1027
+ width: r,
1028
+ height: c,
1029
+ x: a,
1030
+ y: d
1031
+ };
1032
+ }
1033
+ function Dt(t, e, n) {
1034
+ let o;
1035
+ if (e === "viewport")
1036
+ o = Ae(t, n);
1037
+ else if (e === "document")
1038
+ o = Re(Y(t));
1039
+ else if (z(e))
1040
+ o = Oe(e, n);
1041
+ else {
1042
+ const i = _t(t);
1043
+ o = {
1044
+ x: e.x - i.x,
1045
+ y: e.y - i.y,
1046
+ width: e.width,
1047
+ height: e.height
1048
+ };
1049
+ }
1050
+ return Q(o);
1051
+ }
1052
+ function It(t, e) {
1053
+ const n = U(t);
1054
+ return n === e || !z(n) || Z(n) ? !1 : I(n).position === "fixed" || It(n, e);
1055
+ }
1056
+ function Ce(t, e) {
1057
+ const n = e.get(t);
1058
+ if (n)
1059
+ return n;
1060
+ let o = et(t, [], !1).filter((c) => z(c) && tt(c) !== "body"), i = null;
1061
+ const s = I(t).position === "fixed";
1062
+ let r = s ? U(t) : t;
1063
+ for (; z(r) && !Z(r); ) {
1064
+ const c = I(r), a = yt(r);
1065
+ !a && c.position === "fixed" && (i = null), (s ? !a && !i : !a && c.position === "static" && !!i && (i.position === "absolute" || i.position === "fixed") || nt(r) && !a && It(t, r)) ? o = o.filter((u) => u !== r) : i = c, r = U(r);
1066
+ }
1067
+ return e.set(t, o), o;
1068
+ }
1069
+ function Se(t) {
1070
+ let {
1071
+ element: e,
1072
+ boundary: n,
1073
+ rootBoundary: o,
1074
+ strategy: i
1075
+ } = t;
1076
+ const r = [...n === "clippingAncestors" ? lt(e) ? [] : Ce(e, this._c) : [].concat(n), o], c = Dt(e, r[0], i);
1077
+ let a = c.top, d = c.right, u = c.bottom, l = c.left;
1078
+ for (let m = 1; m < r.length; m++) {
1079
+ const f = Dt(e, r[m], i);
1080
+ a = L(f.top, a), d = V(f.right, d), u = V(f.bottom, u), l = L(f.left, l);
1081
+ }
1082
+ return {
1083
+ width: d - l,
1084
+ height: u - a,
1085
+ x: l,
1086
+ y: a
1087
+ };
1088
+ }
1089
+ function Le(t) {
1090
+ const {
1091
+ width: e,
1092
+ height: n
1093
+ } = Vt(t);
1094
+ return {
1095
+ width: e,
1096
+ height: n
1097
+ };
1098
+ }
1099
+ function Te(t, e, n) {
1100
+ const o = j(e), i = Y(e), s = n === "fixed", r = G(t, !0, s, e);
1101
+ let c = {
1102
+ scrollLeft: 0,
1103
+ scrollTop: 0
1104
+ };
1105
+ const a = X(0);
1106
+ function d() {
1107
+ a.x = at(i);
1108
+ }
1109
+ if (o || !o && !s)
1110
+ if ((tt(e) !== "body" || nt(i)) && (c = ft(e)), o) {
1111
+ const f = G(e, !0, s, e);
1112
+ a.x = f.x + e.clientLeft, a.y = f.y + e.clientTop;
1113
+ } else i && d();
1114
+ s && !o && i && d();
1115
+ const u = i && !o && !s ? zt(i, c) : X(0), l = r.left + c.scrollLeft - a.x - u.x, m = r.top + c.scrollTop - a.y - u.y;
1116
+ return {
1117
+ x: l,
1118
+ y: m,
1119
+ width: r.width,
1120
+ height: r.height
1121
+ };
1122
+ }
1123
+ function dt(t) {
1124
+ return I(t).position === "static";
1125
+ }
1126
+ function Mt(t, e) {
1127
+ if (!j(t) || I(t).position === "fixed")
1128
+ return null;
1129
+ if (e)
1130
+ return e(t);
1131
+ let n = t.offsetParent;
1132
+ return Y(t) === n && (n = n.ownerDocument.body), n;
1133
+ }
1134
+ function Xt(t, e) {
1135
+ const n = F(t);
1136
+ if (lt(t))
1137
+ return n;
1138
+ if (!j(t)) {
1139
+ let i = U(t);
1140
+ for (; i && !Z(i); ) {
1141
+ if (z(i) && !dt(i))
1142
+ return i;
1143
+ i = U(i);
1144
+ }
1145
+ return n;
1146
+ }
1147
+ let o = Mt(t, e);
1148
+ for (; o && he(o) && dt(o); )
1149
+ o = Mt(o, e);
1150
+ return o && Z(o) && dt(o) && !yt(o) ? n : o || we(t) || n;
1151
+ }
1152
+ const Pe = async function(t) {
1153
+ const e = this.getOffsetParent || Xt, n = this.getDimensions, o = await n(t.floating);
1154
+ return {
1155
+ reference: Te(t.reference, await e(t.floating), t.strategy),
1156
+ floating: {
1157
+ x: 0,
1158
+ y: 0,
1159
+ width: o.width,
1160
+ height: o.height
1161
+ }
1162
+ };
1163
+ };
1164
+ function Ee(t) {
1165
+ return I(t).direction === "rtl";
1166
+ }
1167
+ const De = {
1168
+ convertOffsetParentRelativeRectToViewportRelativeRect: ve,
1169
+ getDocumentElement: Y,
1170
+ getClippingRect: Se,
1171
+ getOffsetParent: Xt,
1172
+ getElementRects: Pe,
1173
+ getClientRects: be,
1174
+ getDimensions: Le,
1175
+ getScale: J,
1176
+ isElement: z,
1177
+ isRTL: Ee
1178
+ };
1179
+ function Yt(t, e) {
1180
+ return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
1181
+ }
1182
+ function Me(t, e) {
1183
+ let n = null, o;
1184
+ const i = Y(t);
1185
+ function s() {
1186
+ var c;
1187
+ clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
1188
+ }
1189
+ function r(c, a) {
1190
+ c === void 0 && (c = !1), a === void 0 && (a = 1), s();
1191
+ const d = t.getBoundingClientRect(), {
1192
+ left: u,
1193
+ top: l,
1194
+ width: m,
1195
+ height: f
1196
+ } = d;
1197
+ if (c || e(), !m || !f)
1198
+ return;
1199
+ const h = ot(l), g = ot(i.clientWidth - (u + m)), p = ot(i.clientHeight - (l + f)), w = ot(u), y = {
1200
+ rootMargin: -h + "px " + -g + "px " + -p + "px " + -w + "px",
1201
+ threshold: L(0, V(1, a)) || 1
1202
+ };
1203
+ let v = !0;
1204
+ function R(A) {
1205
+ const O = A[0].intersectionRatio;
1206
+ if (O !== a) {
1207
+ if (!v)
1208
+ return r();
1209
+ O ? r(!1, O) : o = setTimeout(() => {
1210
+ r(!1, 1e-7);
1211
+ }, 1e3);
1212
+ }
1213
+ O === 1 && !Yt(d, t.getBoundingClientRect()) && r(), v = !1;
1214
+ }
1215
+ try {
1216
+ n = new IntersectionObserver(R, {
1217
+ ...y,
1218
+ // Handle <iframe>s
1219
+ root: i.ownerDocument
1220
+ });
1221
+ } catch {
1222
+ n = new IntersectionObserver(R, y);
1223
+ }
1224
+ n.observe(t);
1225
+ }
1226
+ return r(!0), s;
1227
+ }
1228
+ function Fe(t, e, n, o) {
1229
+ o === void 0 && (o = {});
1230
+ const {
1231
+ ancestorScroll: i = !0,
1232
+ ancestorResize: s = !0,
1233
+ elementResize: r = typeof ResizeObserver == "function",
1234
+ layoutShift: c = typeof IntersectionObserver == "function",
1235
+ animationFrame: a = !1
1236
+ } = o, d = bt(t), u = i || s ? [...d ? et(d) : [], ...e ? et(e) : []] : [];
1237
+ u.forEach((w) => {
1238
+ i && w.addEventListener("scroll", n, {
1239
+ passive: !0
1240
+ }), s && w.addEventListener("resize", n);
1241
+ });
1242
+ const l = d && c ? Me(d, n) : null;
1243
+ let m = -1, f = null;
1244
+ r && (f = new ResizeObserver((w) => {
1245
+ let [x] = w;
1246
+ x && x.target === d && f && e && (f.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1247
+ var y;
1248
+ (y = f) == null || y.observe(e);
1249
+ })), n();
1250
+ }), d && !a && f.observe(d), e && f.observe(e));
1251
+ let h, g = a ? G(t) : null;
1252
+ a && p();
1253
+ function p() {
1254
+ const w = G(t);
1255
+ g && !Yt(g, w) && n(), g = w, h = requestAnimationFrame(p);
1256
+ }
1257
+ return n(), () => {
1258
+ var w;
1259
+ u.forEach((x) => {
1260
+ i && x.removeEventListener("scroll", n), s && x.removeEventListener("resize", n);
1261
+ }), l?.(), (w = f) == null || w.disconnect(), f = null, a && cancelAnimationFrame(h);
1262
+ };
1263
+ }
1264
+ const Be = Wt, We = ae, ke = ie, $e = ue, Ne = se, He = me, Ve = re, _e = ne, ze = le, Ie = de, Xe = (t, e, n) => {
1265
+ const o = /* @__PURE__ */ new Map(), i = {
1266
+ platform: De,
1267
+ ...n
1268
+ }, s = {
1269
+ ...i.platform,
1270
+ _c: o
1271
+ };
1272
+ return ee(t, e, {
1273
+ ...i,
1274
+ platform: s
1275
+ });
1276
+ };
1277
+ export {
1278
+ _e as arrow,
1279
+ ke as autoPlacement,
1280
+ Fe as autoUpdate,
1281
+ Xe as computePosition,
1282
+ Be as detectOverflow,
1283
+ Ne as flip,
1284
+ et as getOverflowAncestors,
1285
+ Ve as hide,
1286
+ ze as inline,
1287
+ Ie as limitShift,
1288
+ We as offset,
1289
+ De as platform,
1290
+ $e as shift,
1291
+ He as size
1292
+ };