@oneclick.dev/cms-core-modules 0.0.61 → 0.0.63

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