@oneclick.dev/cms-core-modules 0.0.83 → 0.0.84

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.
Files changed (63) hide show
  1. package/dist/{ContentEditor-CxKirDdL.mjs → ContentEditor-DPhhOkx3.mjs} +7068 -5926
  2. package/dist/{ContentEditor-CRFkD4tE.js → ContentEditor-DrxtH_Hq.js} +42 -42
  3. package/dist/{Create-CsqVYhPO.mjs → Create-6uT9HWar.mjs} +35 -35
  4. package/dist/{Create-ip0MnS0o.js → Create-DuZ5nZrX.js} +1 -1
  5. package/dist/{DateFormatter-CvOfaUnU.mjs → DateFormatter-2B0R-DY4.mjs} +204 -400
  6. package/dist/DateFormatter-DbtOLV0L.js +1 -0
  7. package/dist/{Detail-RMXFuSRQ.js → Detail-BZ-iE9vf.js} +1 -1
  8. package/dist/{Detail-B4b_FLDa.mjs → Detail-C1Blq61w.mjs} +90 -90
  9. package/dist/{Detail-BayNaAg9.js → Detail-C8wQiDcv.js} +1 -1
  10. package/dist/{Detail-CbLk1v37.mjs → Detail-CJVMJDP7.mjs} +17 -17
  11. package/dist/{Detail-CnK-qbhE.js → Detail-CPqug27l.js} +1 -1
  12. package/dist/Detail-CjuhjPby.js +1 -0
  13. package/dist/{Detail-U0mgLKt6.mjs → Detail-CtItxMX4.mjs} +62 -63
  14. package/dist/{Detail-CVgWHbMC.mjs → Detail-Dnpnmy4-.mjs} +158 -158
  15. package/dist/{Entries-D7MHylQE.mjs → Entries-BkOPae4R.mjs} +49 -49
  16. package/dist/Entries-CcEW98F5.js +1 -0
  17. package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-CDc8MIq2.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-Bc946oSc.mjs} +1 -1
  18. package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-StaNp-3y.js → NewReservationDialog.vue_vue_type_script_setup_true_lang-CqERfyYb.js} +1 -1
  19. package/dist/{Overview-CwCAeBnX.js → Overview-CA8wh_BI.js} +1 -1
  20. package/dist/{Overview-CgViRnNc.mjs → Overview-D4MFwRI_.mjs} +67 -68
  21. package/dist/{Overview-B2bFNGhH.js → Overview-Da0XexiT.js} +1 -1
  22. package/dist/Overview-DeQQ0FY3.js +1 -0
  23. package/dist/{Overview--XpvBbqz.mjs → Overview-DoOASlNz.mjs} +1 -3
  24. package/dist/{Overview-Cczt_dcE.mjs → Overview-gJSvftdE.mjs} +34 -34
  25. package/dist/{ReservationDetailDialog.vue_vue_type_script_setup_true_lang-B7ks5mbf.mjs → ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Cohhnd5x.mjs} +0 -1
  26. package/dist/{ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Vxubki_v.js → ReservationDetailDialog.vue_vue_type_script_setup_true_lang-VWVIxIr6.js} +1 -1
  27. package/dist/{SeoHealth-ZpvB7CS2.mjs → SeoHealth-Bc5chnaa.mjs} +14 -14
  28. package/dist/{SeoHealth-DFZ0LLBH.js → SeoHealth-BkpJ1F2Y.js} +1 -1
  29. package/dist/TableView-BPWAx--G.mjs +5743 -0
  30. package/dist/TableView-D63QrVlK.js +4 -0
  31. package/dist/View-BL70u98U.js +1 -0
  32. package/dist/{View-DDXN0tKD.mjs → View-BO5N911y.mjs} +5 -5
  33. package/dist/{agenda-Cl3s_FIE.mjs → agenda-C5grvzSa.mjs} +166 -169
  34. package/dist/agenda-DXMwVWpN.js +1 -0
  35. package/dist/{availability-B-tRp8hB.mjs → availability-C1NqOFsQ.mjs} +81 -81
  36. package/dist/{availability-BiBbzEIM.js → availability-D_wnfLsH.js} +1 -1
  37. package/dist/cms-core-modules.css +1 -1
  38. package/dist/{exceptions-DQPSFSj7.mjs → exceptions-BIwMhYa4.mjs} +1 -1
  39. package/dist/{exceptions-BA3PsW4n.js → exceptions-Cn7zooEu.js} +1 -1
  40. package/dist/{index-CBC9dWZ9.js → index-C9pSS15N.js} +2 -2
  41. package/dist/{index-YOOlBEZB.mjs → index-MwjeLHPP.mjs} +3 -3
  42. package/dist/index.cjs.js +1 -1
  43. package/dist/index.mjs +22 -22
  44. package/dist/orders-CG1QUCN8.js +1 -0
  45. package/dist/{orders-DZzdsHOW.mjs → orders-CeixEBcU.mjs} +57 -58
  46. package/dist/server-handlers.cjs.js +1 -1
  47. package/dist/server-handlers.mjs +142 -147
  48. package/package.json +2 -2
  49. package/dist/DateFormatter-ls6HfWpS.js +0 -1
  50. package/dist/Detail-BcboL7NF.js +0 -1
  51. package/dist/Entries-BPkZ7Jg5.js +0 -1
  52. package/dist/Overview-B-8TLLjh.js +0 -1
  53. package/dist/TableView-BUPPcHUW.mjs +0 -89505
  54. package/dist/TableView-CksiPsTL.js +0 -586
  55. package/dist/View-DfzaVOzS.js +0 -1
  56. package/dist/agenda-rlFma_wn.js +0 -1
  57. package/dist/floating-ui.dom-B9WYoHj2.js +0 -1
  58. package/dist/floating-ui.dom-fpIfhXTZ.mjs +0 -1291
  59. package/dist/index-DYpruS-A-Cw57iwdY.mjs +0 -4210
  60. package/dist/index-DYpruS-A-DwDXo9Tq.js +0 -88
  61. package/dist/index-YMaY4uuk-BgpTtr73.js +0 -1
  62. package/dist/index-YMaY4uuk-C_xV5K9Z.mjs +0 -1300
  63. package/dist/orders-tP4WdF5q.js +0 -1
@@ -1,1291 +0,0 @@
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
- }), Yt = {
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 qt(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"], Ut = ["top", "bottom"], Kt = ["bottom", "top"];
49
- function Gt(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 ? Ut : Kt;
57
- default:
58
- return [];
59
- }
60
- }
61
- function Jt(t, e, n, o) {
62
- const i = H(t);
63
- let s = Gt(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 Yt[e] + t.slice(e.length);
69
- }
70
- function Qt(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" ? Qt(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 Zt(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: Zt
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)] : qt(c)), A = h !== "none";
396
- !m && A && R.push(...Jt(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 Wt(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(Wt(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(Wt(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
- }, kt = /* @__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 = kt.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 = kt.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 $t(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 j(t) {
787
- var e;
788
- return (e = ($t(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
789
- }
790
- function $t(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 Y(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 (; Y(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
- j(t)
870
- );
871
- return Pt(e) ? e.host : e;
872
- }
873
- function Nt(t) {
874
- const e = U(t);
875
- return Z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Y(e) && nt(e) ? e : Nt(e);
876
- }
877
- function et(t, e, n) {
878
- var o;
879
- e === void 0 && (e = []), n === void 0 && (n = !0);
880
- const i = Nt(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 Ht(t) {
891
- const e = I(t);
892
- let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
893
- const i = Y(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 (!Y(e))
906
- return X(1);
907
- const n = e.getBoundingClientRect(), {
908
- width: o,
909
- height: i,
910
- $: s
911
- } = Ht(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 Vt(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) ? Vt(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(j(t)).left + n;
954
- }
955
- function _t(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 = j(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 = Y(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 ? _t(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 = j(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 = j(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 = Y(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(j(t));
1039
- else if (z(e))
1040
- o = Oe(e, n);
1041
- else {
1042
- const i = Vt(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 zt(t, e) {
1053
- const n = U(t);
1054
- return n === e || !z(n) || Z(n) ? !1 : I(n).position === "fixed" || zt(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 && zt(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
- } = Ht(t);
1094
- return {
1095
- width: e,
1096
- height: n
1097
- };
1098
- }
1099
- function Te(t, e, n) {
1100
- const o = Y(e), i = j(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 ? _t(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 (!Y(t) || I(t).position === "fixed")
1128
- return null;
1129
- if (e)
1130
- return e(t);
1131
- let n = t.offsetParent;
1132
- return j(t) === n && (n = n.ownerDocument.body), n;
1133
- }
1134
- function It(t, e) {
1135
- const n = F(t);
1136
- if (lt(t))
1137
- return n;
1138
- if (!Y(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 || It, 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: j,
1170
- getClippingRect: Se,
1171
- getOffsetParent: It,
1172
- getElementRects: Pe,
1173
- getClientRects: be,
1174
- getDimensions: Le,
1175
- getScale: J,
1176
- isElement: z,
1177
- isRTL: Ee
1178
- };
1179
- function Xt(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 = j(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 && !Xt(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 && !Xt(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 = ae, We = ie, ke = ue, $e = se, Ne = me, He = re, Ve = ne, _e = le, ze = de, Ie = (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
- Ve as a,
1279
- Fe as b,
1280
- Ie as c,
1281
- Ne as d,
1282
- We as e,
1283
- $e as f,
1284
- tt as g,
1285
- He as h,
1286
- $t as i,
1287
- _e as j,
1288
- ze as l,
1289
- Be as o,
1290
- ke as s
1291
- };