@alfadocs/ui-kit 0.15.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,96 +1,96 @@
1
- import { jsx as V, jsxs as De } from "react/jsx-runtime";
2
- import { useRef as Pe, useState as ne, useCallback as le, useEffect as de, forwardRef as xe, useId as xt, useMemo as Qe, useImperativeHandle as yt, Children as et, isValidElement as tt, createContext as It, useContext as Ct } from "react";
3
- import { c as nt } from "./index-D2ZczOXr.js";
4
- import { useTranslation as ye } from "react-i18next";
5
- import { I as Je } from "./icon-button-C4CGcYuz.js";
6
- import { C as Lt } from "./chevron-left-CX1jqD2M.js";
7
- import { C as wt } from "./chevron-right-BrpYejk0.js";
8
- function Et(e) {
9
- return Object.prototype.toString.call(e) === "[object Object]";
10
- }
11
- function Xe(e) {
12
- return Et(e) || Array.isArray(e);
13
- }
14
- function Tt() {
1
+ import { jsx as V, jsxs as Dt } from "react/jsx-runtime";
2
+ import { useRef as Pt, useState as nt, useCallback as lt, useEffect as dt, forwardRef as xt, useId as xe, useMemo as Qt, useImperativeHandle as ye, Children as te, isValidElement as ee, createContext as Ie, useContext as Ce } from "react";
3
+ import { c as ne } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as yt } from "react-i18next";
5
+ import { I as Jt } from "./icon-button-C4CGcYuz.js";
6
+ import { C as Le } from "./chevron-left-CX1jqD2M.js";
7
+ import { C as we } from "./chevron-right-BrpYejk0.js";
8
+ function Ee(t) {
9
+ return Object.prototype.toString.call(t) === "[object Object]";
10
+ }
11
+ function Xt(t) {
12
+ return Ee(t) || Array.isArray(t);
13
+ }
14
+ function Te() {
15
15
  return !!(typeof window < "u" && window.document && window.document.createElement);
16
16
  }
17
- function Me(e, t) {
18
- const n = Object.keys(e), r = Object.keys(t);
17
+ function Mt(t, e) {
18
+ const n = Object.keys(t), r = Object.keys(e);
19
19
  if (n.length !== r.length) return !1;
20
- const i = JSON.stringify(Object.keys(e.breakpoints || {})), s = JSON.stringify(Object.keys(t.breakpoints || {}));
20
+ const i = JSON.stringify(Object.keys(t.breakpoints || {})), s = JSON.stringify(Object.keys(e.breakpoints || {}));
21
21
  return i !== s ? !1 : n.every((o) => {
22
- const u = e[o], c = t[o];
23
- return typeof u == "function" ? `${u}` == `${c}` : !Xe(u) || !Xe(c) ? u === c : Me(u, c);
22
+ const u = t[o], c = e[o];
23
+ return typeof u == "function" ? `${u}` == `${c}` : !Xt(u) || !Xt(c) ? u === c : Mt(u, c);
24
24
  });
25
25
  }
26
- function Ye(e) {
27
- return e.concat().sort((t, n) => t.name > n.name ? 1 : -1).map((t) => t.options);
26
+ function Yt(t) {
27
+ return t.concat().sort((e, n) => e.name > n.name ? 1 : -1).map((e) => e.options);
28
28
  }
29
- function Dt(e, t) {
30
- if (e.length !== t.length) return !1;
31
- const n = Ye(e), r = Ye(t);
29
+ function De(t, e) {
30
+ if (t.length !== e.length) return !1;
31
+ const n = Yt(t), r = Yt(e);
32
32
  return n.every((i, s) => {
33
33
  const o = r[s];
34
- return Me(i, o);
34
+ return Mt(i, o);
35
35
  });
36
36
  }
37
- function ke(e) {
38
- return typeof e == "number";
37
+ function kt(t) {
38
+ return typeof t == "number";
39
39
  }
40
- function Ae(e) {
41
- return typeof e == "string";
40
+ function At(t) {
41
+ return typeof t == "string";
42
42
  }
43
- function Ie(e) {
44
- return typeof e == "boolean";
43
+ function It(t) {
44
+ return typeof t == "boolean";
45
45
  }
46
- function Ze(e) {
47
- return Object.prototype.toString.call(e) === "[object Object]";
46
+ function Zt(t) {
47
+ return Object.prototype.toString.call(t) === "[object Object]";
48
48
  }
49
- function N(e) {
50
- return Math.abs(e);
49
+ function N(t) {
50
+ return Math.abs(t);
51
51
  }
52
- function Oe(e) {
53
- return Math.sign(e);
52
+ function Ot(t) {
53
+ return Math.sign(t);
54
54
  }
55
- function pe(e, t) {
56
- return N(e - t);
55
+ function pt(t, e) {
56
+ return N(t - e);
57
57
  }
58
- function Pt(e, t) {
59
- if (e === 0 || t === 0 || N(e) <= N(t)) return 0;
60
- const n = pe(N(e), N(t));
61
- return N(n / e);
58
+ function Pe(t, e) {
59
+ if (t === 0 || e === 0 || N(t) <= N(e)) return 0;
60
+ const n = pt(N(t), N(e));
61
+ return N(n / t);
62
62
  }
63
- function At(e) {
64
- return Math.round(e * 100) / 100;
63
+ function Ae(t) {
64
+ return Math.round(t * 100) / 100;
65
65
  }
66
- function me(e) {
67
- return ge(e).map(Number);
66
+ function mt(t) {
67
+ return gt(t).map(Number);
68
68
  }
69
- function J(e) {
70
- return e[be(e)];
69
+ function J(t) {
70
+ return t[bt(t)];
71
71
  }
72
- function be(e) {
73
- return Math.max(0, e.length - 1);
72
+ function bt(t) {
73
+ return Math.max(0, t.length - 1);
74
74
  }
75
- function Fe(e, t) {
76
- return t === be(e);
75
+ function Ft(t, e) {
76
+ return e === bt(t);
77
77
  }
78
- function We(e, t = 0) {
79
- return Array.from(Array(e), (n, r) => t + r);
78
+ function Wt(t, e = 0) {
79
+ return Array.from(Array(t), (n, r) => e + r);
80
80
  }
81
- function ge(e) {
82
- return Object.keys(e);
81
+ function gt(t) {
82
+ return Object.keys(t);
83
83
  }
84
- function ot(e, t) {
85
- return [e, t].reduce((n, r) => (ge(r).forEach((i) => {
86
- const s = n[i], o = r[i], u = Ze(s) && Ze(o);
87
- n[i] = u ? ot(s, o) : o;
84
+ function oe(t, e) {
85
+ return [t, e].reduce((n, r) => (gt(r).forEach((i) => {
86
+ const s = n[i], o = r[i], u = Zt(s) && Zt(o);
87
+ n[i] = u ? oe(s, o) : o;
88
88
  }), n), {});
89
89
  }
90
- function Ne(e, t) {
91
- return typeof t.MouseEvent < "u" && e instanceof t.MouseEvent;
90
+ function Nt(t, e) {
91
+ return typeof e.MouseEvent < "u" && t instanceof e.MouseEvent;
92
92
  }
93
- function Nt(e, t) {
93
+ function Ne(t, e) {
94
94
  const n = {
95
95
  start: r,
96
96
  center: i,
@@ -103,18 +103,18 @@ function Nt(e, t) {
103
103
  return s(c) / 2;
104
104
  }
105
105
  function s(c) {
106
- return t - c;
106
+ return e - c;
107
107
  }
108
108
  function o(c, l) {
109
- return Ae(e) ? n[e](c) : e(t, c, l);
109
+ return At(t) ? n[t](c) : t(e, c, l);
110
110
  }
111
111
  return {
112
112
  measure: o
113
113
  };
114
114
  }
115
- function he() {
116
- let e = [];
117
- function t(i, s, o, u = {
115
+ function ht() {
116
+ let t = [];
117
+ function e(i, s, o, u = {
118
118
  passive: !0
119
119
  }) {
120
120
  let c;
@@ -124,23 +124,23 @@ function he() {
124
124
  const l = i;
125
125
  l.addListener(o), c = () => l.removeListener(o);
126
126
  }
127
- return e.push(c), r;
127
+ return t.push(c), r;
128
128
  }
129
129
  function n() {
130
- e = e.filter((i) => i());
130
+ t = t.filter((i) => i());
131
131
  }
132
132
  const r = {
133
- add: t,
133
+ add: e,
134
134
  clear: n
135
135
  };
136
136
  return r;
137
137
  }
138
- function Mt(e, t, n, r) {
139
- const i = he(), s = 1e3 / 60;
138
+ function Me(t, e, n, r) {
139
+ const i = ht(), s = 1e3 / 60;
140
140
  let o = null, u = 0, c = 0;
141
141
  function l() {
142
- i.add(e, "visibilitychange", () => {
143
- e.hidden && d();
142
+ i.add(t, "visibilitychange", () => {
143
+ t.hidden && d();
144
144
  });
145
145
  }
146
146
  function b() {
@@ -153,13 +153,13 @@ function Mt(e, t, n, r) {
153
153
  for (o = h, u += f; u >= s; )
154
154
  n(), u -= s;
155
155
  const a = u / s;
156
- r(a), c && (c = t.requestAnimationFrame(p));
156
+ r(a), c && (c = e.requestAnimationFrame(p));
157
157
  }
158
158
  function m() {
159
- c || (c = t.requestAnimationFrame(p));
159
+ c || (c = e.requestAnimationFrame(p));
160
160
  }
161
161
  function v() {
162
- t.cancelAnimationFrame(c), o = null, u = 0, c = 0;
162
+ e.cancelAnimationFrame(c), o = null, u = 0, c = 0;
163
163
  }
164
164
  function d() {
165
165
  o = null, u = 0;
@@ -173,8 +173,8 @@ function Mt(e, t, n, r) {
173
173
  render: r
174
174
  };
175
175
  }
176
- function kt(e, t) {
177
- const n = t === "rtl", r = e === "y", i = r ? "y" : "x", s = r ? "x" : "y", o = !r && n ? -1 : 1, u = b(), c = p();
176
+ function ke(t, e) {
177
+ const n = e === "rtl", r = t === "y", i = r ? "y" : "x", s = r ? "x" : "y", o = !r && n ? -1 : 1, u = b(), c = p();
178
178
  function l(d) {
179
179
  const {
180
180
  height: g,
@@ -200,27 +200,27 @@ function kt(e, t) {
200
200
  direction: m
201
201
  };
202
202
  }
203
- function ce(e = 0, t = 0) {
204
- const n = N(e - t);
203
+ function ct(t = 0, e = 0) {
204
+ const n = N(t - e);
205
205
  function r(l) {
206
- return l < e;
206
+ return l < t;
207
207
  }
208
208
  function i(l) {
209
- return l > t;
209
+ return l > e;
210
210
  }
211
211
  function s(l) {
212
212
  return r(l) || i(l);
213
213
  }
214
214
  function o(l) {
215
- return s(l) ? r(l) ? e : t : l;
215
+ return s(l) ? r(l) ? t : e : l;
216
216
  }
217
217
  function u(l) {
218
- return n ? l - n * Math.ceil((l - t) / n) : l;
218
+ return n ? l - n * Math.ceil((l - e) / n) : l;
219
219
  }
220
220
  return {
221
221
  length: n,
222
- max: t,
223
- min: e,
222
+ max: e,
223
+ min: t,
224
224
  constrain: o,
225
225
  reachedAny: s,
226
226
  reachedMax: i,
@@ -228,11 +228,11 @@ function ce(e = 0, t = 0) {
228
228
  removeOffset: u
229
229
  };
230
230
  }
231
- function rt(e, t, n) {
231
+ function re(t, e, n) {
232
232
  const {
233
233
  constrain: r
234
- } = ce(0, e), i = e + 1;
235
- let s = o(t);
234
+ } = ct(0, t), i = t + 1;
235
+ let s = o(e);
236
236
  function o(m) {
237
237
  return n ? N((i + m) % i) : r(m);
238
238
  }
@@ -246,7 +246,7 @@ function rt(e, t, n) {
246
246
  return b().set(u() + m);
247
247
  }
248
248
  function b() {
249
- return rt(e, u(), n);
249
+ return re(t, u(), n);
250
250
  }
251
251
  const p = {
252
252
  get: u,
@@ -256,13 +256,13 @@ function rt(e, t, n) {
256
256
  };
257
257
  return p;
258
258
  }
259
- function Ot(e, t, n, r, i, s, o, u, c, l, b, p, m, v, d, g, h, f, a) {
259
+ function Oe(t, e, n, r, i, s, o, u, c, l, b, p, m, v, d, g, h, f, a) {
260
260
  const {
261
261
  cross: S,
262
262
  direction: C
263
- } = e, L = ["INPUT", "SELECT", "TEXTAREA"], w = {
263
+ } = t, L = ["INPUT", "SELECT", "TEXTAREA"], w = {
264
264
  passive: !1
265
- }, y = he(), I = he(), E = ce(50, 225).constrain(v.measure(20)), P = {
265
+ }, y = ht(), I = ht(), E = ct(50, 225).constrain(v.measure(20)), P = {
266
266
  mouse: 300,
267
267
  touch: 400
268
268
  }, T = {
@@ -270,12 +270,12 @@ function Ot(e, t, n, r, i, s, o, u, c, l, b, p, m, v, d, g, h, f, a) {
270
270
  touch: 600
271
271
  }, j = d ? 43 : 25;
272
272
  let M = !1, B = 0, R = 0, q = !1, X = !1, _ = !1, K = !1;
273
- function oe(x) {
273
+ function ot(x) {
274
274
  if (!a) return;
275
275
  function D(G) {
276
- (Ie(a) || a(x, G)) && k(G);
276
+ (It(a) || a(x, G)) && k(G);
277
277
  }
278
- const z = t;
278
+ const z = e;
279
279
  y.add(z, "dragstart", (G) => G.preventDefault(), w).add(z, "touchmove", () => {
280
280
  }, w).add(z, "touchend", () => {
281
281
  }).add(z, "touchstart", D).add(z, "mousedown", D).add(z, "touchcancel", F).add(z, "contextmenu", F).add(z, "click", $, !0);
@@ -284,35 +284,35 @@ function Ot(e, t, n, r, i, s, o, u, c, l, b, p, m, v, d, g, h, f, a) {
284
284
  y.clear(), I.clear();
285
285
  }
286
286
  function W() {
287
- const x = K ? n : t;
287
+ const x = K ? n : e;
288
288
  I.add(x, "touchmove", O, w).add(x, "touchend", F).add(x, "mousemove", O, w).add(x, "mouseup", F);
289
289
  }
290
- function ee(x) {
290
+ function tt(x) {
291
291
  const D = x.nodeName || "";
292
292
  return L.includes(D);
293
293
  }
294
294
  function Q() {
295
295
  return (d ? T : P)[K ? "mouse" : "touch"];
296
296
  }
297
- function re(x, D) {
298
- const z = p.add(Oe(x) * -1), G = b.byDistance(x, !d).distance;
297
+ function rt(x, D) {
298
+ const z = p.add(Ot(x) * -1), G = b.byDistance(x, !d).distance;
299
299
  return d || N(x) < E ? G : h && D ? G * 0.5 : b.byIndex(z.get(), 0).distance;
300
300
  }
301
301
  function k(x) {
302
- const D = Ne(x, r);
303
- K = D, _ = d && D && !x.buttons && M, M = pe(i.get(), o.get()) >= 2, !(D && x.button !== 0) && (ee(x.target) || (q = !0, s.pointerDown(x), l.useFriction(0).useDuration(0), i.set(o), W(), B = s.readPoint(x), R = s.readPoint(x, S), m.emit("pointerDown")));
302
+ const D = Nt(x, r);
303
+ K = D, _ = d && D && !x.buttons && M, M = pt(i.get(), o.get()) >= 2, !(D && x.button !== 0) && (tt(x.target) || (q = !0, s.pointerDown(x), l.useFriction(0).useDuration(0), i.set(o), W(), B = s.readPoint(x), R = s.readPoint(x, S), m.emit("pointerDown")));
304
304
  }
305
305
  function O(x) {
306
- if (!Ne(x, r) && x.touches.length >= 2) return F(x);
307
- const z = s.readPoint(x), G = s.readPoint(x, S), Y = pe(z, B), Z = pe(G, R);
306
+ if (!Nt(x, r) && x.touches.length >= 2) return F(x);
307
+ const z = s.readPoint(x), G = s.readPoint(x, S), Y = pt(z, B), Z = pt(G, R);
308
308
  if (!X && !K && (!x.cancelable || (X = Y > Z, !X)))
309
309
  return F(x);
310
- const se = s.pointerMove(x);
311
- Y > g && (_ = !0), l.useFriction(0.3).useDuration(0.75), u.start(), i.add(C(se)), x.preventDefault();
310
+ const st = s.pointerMove(x);
311
+ Y > g && (_ = !0), l.useFriction(0.3).useDuration(0.75), u.start(), i.add(C(st)), x.preventDefault();
312
312
  }
313
313
  function F(x) {
314
- const z = b.byDistance(0, !1).index !== p.get(), G = s.pointerUp(x) * Q(), Y = re(C(G), z), Z = Pt(G, Y), se = j - 10 * Z, te = f + Z / 50;
315
- X = !1, q = !1, I.clear(), l.useDuration(se).useFriction(te), c.distance(Y, !d), K = !1, m.emit("pointerUp");
314
+ const z = b.byDistance(0, !1).index !== p.get(), G = s.pointerUp(x) * Q(), Y = rt(C(G), z), Z = Pe(G, Y), st = j - 10 * Z, et = f + Z / 50;
315
+ X = !1, q = !1, I.clear(), l.useDuration(st).useFriction(et), c.distance(Y, !d), K = !1, m.emit("pointerUp");
316
316
  }
317
317
  function $(x) {
318
318
  _ && (x.stopPropagation(), x.preventDefault(), _ = !1);
@@ -321,19 +321,19 @@ function Ot(e, t, n, r, i, s, o, u, c, l, b, p, m, v, d, g, h, f, a) {
321
321
  return q;
322
322
  }
323
323
  return {
324
- init: oe,
324
+ init: ot,
325
325
  destroy: U,
326
326
  pointerDown: H
327
327
  };
328
328
  }
329
- function Ft(e, t) {
329
+ function Fe(t, e) {
330
330
  let r, i;
331
331
  function s(p) {
332
332
  return p.timeStamp;
333
333
  }
334
334
  function o(p, m) {
335
- const d = `client${(m || e.scroll) === "x" ? "X" : "Y"}`;
336
- return (Ne(p, t) ? p : p.touches[0])[d];
335
+ const d = `client${(m || t.scroll) === "x" ? "X" : "Y"}`;
336
+ return (Nt(p, e) ? p : p.touches[0])[d];
337
337
  }
338
338
  function u(p) {
339
339
  return r = p, i = p, o(p);
@@ -354,8 +354,8 @@ function Ft(e, t) {
354
354
  readPoint: o
355
355
  };
356
356
  }
357
- function zt() {
358
- function e(n) {
357
+ function ze() {
358
+ function t(n) {
359
359
  const {
360
360
  offsetTop: r,
361
361
  offsetLeft: i,
@@ -372,38 +372,38 @@ function zt() {
372
372
  };
373
373
  }
374
374
  return {
375
- measure: e
375
+ measure: t
376
376
  };
377
377
  }
378
- function Vt(e) {
379
- function t(r) {
380
- return e * (r / 100);
378
+ function Ve(t) {
379
+ function e(r) {
380
+ return t * (r / 100);
381
381
  }
382
382
  return {
383
- measure: t
383
+ measure: e
384
384
  };
385
385
  }
386
- function jt(e, t, n, r, i, s, o) {
387
- const u = [e].concat(r);
386
+ function je(t, e, n, r, i, s, o) {
387
+ const u = [t].concat(r);
388
388
  let c, l, b = [], p = !1;
389
389
  function m(h) {
390
390
  return i.measureSize(o.measure(h));
391
391
  }
392
392
  function v(h) {
393
393
  if (!s) return;
394
- l = m(e), b = r.map(m);
394
+ l = m(t), b = r.map(m);
395
395
  function f(a) {
396
396
  for (const S of a) {
397
397
  if (p) return;
398
- const C = S.target === e, L = r.indexOf(S.target), w = C ? l : b[L], y = m(C ? e : r[L]);
398
+ const C = S.target === t, L = r.indexOf(S.target), w = C ? l : b[L], y = m(C ? t : r[L]);
399
399
  if (N(y - w) >= 0.5) {
400
- h.reInit(), t.emit("resize");
400
+ h.reInit(), e.emit("resize");
401
401
  break;
402
402
  }
403
403
  }
404
404
  }
405
405
  c = new ResizeObserver((a) => {
406
- (Ie(s) || s(h, a)) && f(a);
406
+ (It(s) || s(h, a)) && f(a);
407
407
  }), n.requestAnimationFrame(() => {
408
408
  u.forEach((a) => c.observe(a));
409
409
  });
@@ -416,15 +416,15 @@ function jt(e, t, n, r, i, s, o) {
416
416
  destroy: d
417
417
  };
418
418
  }
419
- function Bt(e, t, n, r, i, s) {
420
- let o = 0, u = 0, c = i, l = s, b = e.get(), p = 0;
419
+ function Be(t, e, n, r, i, s) {
420
+ let o = 0, u = 0, c = i, l = s, b = t.get(), p = 0;
421
421
  function m() {
422
- const w = r.get() - e.get(), y = !c;
422
+ const w = r.get() - t.get(), y = !c;
423
423
  let I = 0;
424
- return y ? (o = 0, n.set(r), e.set(r), I = w) : (n.set(e), o += w / c, o *= l, b += o, e.add(o), I = b - p), u = Oe(I), p = b, L;
424
+ return y ? (o = 0, n.set(r), t.set(r), I = w) : (n.set(t), o += w / c, o *= l, b += o, t.add(o), I = b - p), u = Ot(I), p = b, L;
425
425
  }
426
426
  function v() {
427
- const w = r.get() - t.get();
427
+ const w = r.get() - e.get();
428
428
  return N(w) < 1e-3;
429
429
  }
430
430
  function d() {
@@ -461,16 +461,16 @@ function Bt(e, t, n, r, i, s) {
461
461
  };
462
462
  return L;
463
463
  }
464
- function Rt(e, t, n, r, i) {
465
- const s = i.measure(10), o = i.measure(50), u = ce(0.1, 0.99);
464
+ function Re(t, e, n, r, i) {
465
+ const s = i.measure(10), o = i.measure(50), u = ct(0.1, 0.99);
466
466
  let c = !1;
467
467
  function l() {
468
- return !(c || !e.reachedAny(n.get()) || !e.reachedAny(t.get()));
468
+ return !(c || !t.reachedAny(n.get()) || !t.reachedAny(e.get()));
469
469
  }
470
470
  function b(v) {
471
471
  if (!l()) return;
472
- const d = e.reachedMin(t.get()) ? "min" : "max", g = N(e[d] - t.get()), h = n.get() - t.get(), f = u.constrain(g / o);
473
- n.subtract(h * f), !v && N(h) < s && (n.set(e.constrain(n.get())), r.useDuration(25).useBaseFriction());
472
+ const d = t.reachedMin(e.get()) ? "min" : "max", g = N(t[d] - e.get()), h = n.get() - e.get(), f = u.constrain(g / o);
473
+ n.subtract(h * f), !v && N(h) < s && (n.set(t.constrain(n.get())), r.useDuration(25).useBaseFriction());
474
474
  }
475
475
  function p(v) {
476
476
  c = !v;
@@ -481,26 +481,26 @@ function Rt(e, t, n, r, i) {
481
481
  toggleActive: p
482
482
  };
483
483
  }
484
- function Ht(e, t, n, r, i) {
485
- const s = ce(-t + e, 0), o = p(), u = b(), c = m();
484
+ function He(t, e, n, r, i) {
485
+ const s = ct(-e + t, 0), o = p(), u = b(), c = m();
486
486
  function l(d, g) {
487
- return pe(d, g) <= 1;
487
+ return pt(d, g) <= 1;
488
488
  }
489
489
  function b() {
490
490
  const d = o[0], g = J(o), h = o.lastIndexOf(d), f = o.indexOf(g) + 1;
491
- return ce(h, f);
491
+ return ct(h, f);
492
492
  }
493
493
  function p() {
494
494
  return n.map((d, g) => {
495
495
  const {
496
496
  min: h,
497
497
  max: f
498
- } = s, a = s.constrain(d), S = !g, C = Fe(n, g);
498
+ } = s, a = s.constrain(d), S = !g, C = Ft(n, g);
499
499
  return S ? f : C || l(h, a) ? h : l(f, a) ? f : a;
500
500
  }).map((d) => parseFloat(d.toFixed(3)));
501
501
  }
502
502
  function m() {
503
- if (t <= e + i) return [s.max];
503
+ if (e <= t + i) return [s.max];
504
504
  if (r === "keepSnaps") return o;
505
505
  const {
506
506
  min: d,
@@ -513,49 +513,49 @@ function Ht(e, t, n, r, i) {
513
513
  scrollContainLimit: u
514
514
  };
515
515
  }
516
- function Gt(e, t, n) {
517
- const r = t[0], i = n ? r - e : J(t);
516
+ function Ge(t, e, n) {
517
+ const r = e[0], i = n ? r - t : J(e);
518
518
  return {
519
- limit: ce(i, r)
519
+ limit: ct(i, r)
520
520
  };
521
521
  }
522
- function Ut(e, t, n, r) {
523
- const s = t.min + 0.1, o = t.max + 0.1, {
522
+ function Ue(t, e, n, r) {
523
+ const s = e.min + 0.1, o = e.max + 0.1, {
524
524
  reachedMin: u,
525
525
  reachedMax: c
526
- } = ce(s, o);
526
+ } = ct(s, o);
527
527
  function l(m) {
528
528
  return m === 1 ? c(n.get()) : m === -1 ? u(n.get()) : !1;
529
529
  }
530
530
  function b(m) {
531
531
  if (!l(m)) return;
532
- const v = e * (m * -1);
532
+ const v = t * (m * -1);
533
533
  r.forEach((d) => d.add(v));
534
534
  }
535
535
  return {
536
536
  loop: b
537
537
  };
538
538
  }
539
- function $t(e) {
539
+ function $e(t) {
540
540
  const {
541
- max: t,
541
+ max: e,
542
542
  length: n
543
- } = e;
543
+ } = t;
544
544
  function r(s) {
545
- const o = s - t;
545
+ const o = s - e;
546
546
  return n ? o / -n : 0;
547
547
  }
548
548
  return {
549
549
  get: r
550
550
  };
551
551
  }
552
- function qt(e, t, n, r, i) {
552
+ function qe(t, e, n, r, i) {
553
553
  const {
554
554
  startEdge: s,
555
555
  endEdge: o
556
- } = e, {
556
+ } = t, {
557
557
  groupSlides: u
558
- } = i, c = p().map(t.measure), l = m(), b = v();
558
+ } = i, c = p().map(e.measure), l = m(), b = v();
559
559
  function p() {
560
560
  return u(r).map((g) => J(g)[o] - g[0][s]).map(N);
561
561
  }
@@ -570,7 +570,7 @@ function qt(e, t, n, r, i) {
570
570
  snapsAligned: b
571
571
  };
572
572
  }
573
- function _t(e, t, n, r, i, s) {
573
+ function _e(t, e, n, r, i, s) {
574
574
  const {
575
575
  groupSlides: o
576
576
  } = i, {
@@ -578,16 +578,16 @@ function _t(e, t, n, r, i, s) {
578
578
  max: c
579
579
  } = r, l = b();
580
580
  function b() {
581
- const m = o(s), v = !e || t === "keepSnaps";
581
+ const m = o(s), v = !t || e === "keepSnaps";
582
582
  return n.length === 1 ? [s] : v ? m : m.slice(u, c).map((d, g, h) => {
583
- const f = !g, a = Fe(h, g);
583
+ const f = !g, a = Ft(h, g);
584
584
  if (f) {
585
585
  const S = J(h[0]) + 1;
586
- return We(S);
586
+ return Wt(S);
587
587
  }
588
588
  if (a) {
589
- const S = be(s) - J(h)[0] + 1;
590
- return We(S, J(h)[0]);
589
+ const S = bt(s) - J(h)[0] + 1;
590
+ return Wt(S, J(h)[0]);
591
591
  }
592
592
  return d;
593
593
  });
@@ -596,7 +596,7 @@ function _t(e, t, n, r, i, s) {
596
596
  slideRegistry: l
597
597
  };
598
598
  }
599
- function Kt(e, t, n, r, i) {
599
+ function Ke(t, e, n, r, i) {
600
600
  const {
601
601
  reachedAny: s,
602
602
  removeOffset: o,
@@ -606,7 +606,7 @@ function Kt(e, t, n, r, i) {
606
606
  return d.concat().sort((g, h) => N(g) - N(h))[0];
607
607
  }
608
608
  function l(d) {
609
- const g = e ? o(d) : u(d), h = t.map((a, S) => ({
609
+ const g = t ? o(d) : u(d), h = e.map((a, S) => ({
610
610
  diff: b(a - g, 0),
611
611
  index: S
612
612
  })).sort((a, S) => N(a.diff) - N(S.diff)), {
@@ -619,13 +619,13 @@ function Kt(e, t, n, r, i) {
619
619
  }
620
620
  function b(d, g) {
621
621
  const h = [d, d + n, d - n];
622
- if (!e) return d;
622
+ if (!t) return d;
623
623
  if (!g) return c(h);
624
- const f = h.filter((a) => Oe(a) === g);
624
+ const f = h.filter((a) => Ot(a) === g);
625
625
  return f.length ? c(f) : J(h) - n;
626
626
  }
627
627
  function p(d, g) {
628
- const h = t[d] - i.get(), f = b(h, g);
628
+ const h = e[d] - i.get(), f = b(h, g);
629
629
  return {
630
630
  index: d,
631
631
  distance: f
@@ -635,12 +635,12 @@ function Kt(e, t, n, r, i) {
635
635
  const h = i.get() + d, {
636
636
  index: f,
637
637
  distance: a
638
- } = l(h), S = !e && s(h);
638
+ } = l(h), S = !t && s(h);
639
639
  if (!g || S) return {
640
640
  index: f,
641
641
  distance: d
642
642
  };
643
- const C = t[f] - a, L = d + b(C, 0);
643
+ const C = e[f] - a, L = d + b(C, 0);
644
644
  return {
645
645
  index: f,
646
646
  distance: L
@@ -652,17 +652,17 @@ function Kt(e, t, n, r, i) {
652
652
  shortcut: b
653
653
  };
654
654
  }
655
- function Qt(e, t, n, r, i, s, o) {
655
+ function Qe(t, e, n, r, i, s, o) {
656
656
  function u(p) {
657
- const m = p.distance, v = p.index !== t.get();
658
- s.add(m), m && (r.duration() ? e.start() : (e.update(), e.render(1), e.update())), v && (n.set(t.get()), t.set(p.index), o.emit("select"));
657
+ const m = p.distance, v = p.index !== e.get();
658
+ s.add(m), m && (r.duration() ? t.start() : (t.update(), t.render(1), t.update())), v && (n.set(e.get()), e.set(p.index), o.emit("select"));
659
659
  }
660
660
  function c(p, m) {
661
661
  const v = i.byDistance(p, m);
662
662
  u(v);
663
663
  }
664
664
  function l(p, m) {
665
- const v = t.clone().set(p), d = i.byIndex(v.get(), m);
665
+ const v = e.clone().set(p), d = i.byIndex(v.get(), m);
666
666
  u(d);
667
667
  }
668
668
  return {
@@ -670,7 +670,7 @@ function Qt(e, t, n, r, i, s, o) {
670
670
  index: l
671
671
  };
672
672
  }
673
- function Jt(e, t, n, r, i, s, o, u) {
673
+ function Je(t, e, n, r, i, s, o, u) {
674
674
  const c = {
675
675
  passive: !0,
676
676
  capture: !0
@@ -680,13 +680,13 @@ function Jt(e, t, n, r, i, s, o, u) {
680
680
  if (!u) return;
681
681
  function d(g) {
682
682
  if ((/* @__PURE__ */ new Date()).getTime() - l > 10) return;
683
- o.emit("slideFocusStart"), e.scrollLeft = 0;
683
+ o.emit("slideFocusStart"), t.scrollLeft = 0;
684
684
  const a = n.findIndex((S) => S.includes(g));
685
- ke(a) && (i.useDuration(0), r.index(a, 0), o.emit("slideFocus"));
685
+ kt(a) && (i.useDuration(0), r.index(a, 0), o.emit("slideFocus"));
686
686
  }
687
- s.add(document, "keydown", p, !1), t.forEach((g, h) => {
687
+ s.add(document, "keydown", p, !1), e.forEach((g, h) => {
688
688
  s.add(g, "focus", (f) => {
689
- (Ie(u) || u(v, f)) && d(h);
689
+ (It(u) || u(v, f)) && d(h);
690
690
  }, c);
691
691
  });
692
692
  }
@@ -697,22 +697,22 @@ function Jt(e, t, n, r, i, s, o, u) {
697
697
  init: b
698
698
  };
699
699
  }
700
- function fe(e) {
701
- let t = e;
700
+ function ft(t) {
701
+ let e = t;
702
702
  function n() {
703
- return t;
703
+ return e;
704
704
  }
705
705
  function r(c) {
706
- t = o(c);
706
+ e = o(c);
707
707
  }
708
708
  function i(c) {
709
- t += o(c);
709
+ e += o(c);
710
710
  }
711
711
  function s(c) {
712
- t -= o(c);
712
+ e -= o(c);
713
713
  }
714
714
  function o(c) {
715
- return ke(c) ? c : c.get();
715
+ return kt(c) ? c : c.get();
716
716
  }
717
717
  return {
718
718
  get: n,
@@ -721,8 +721,8 @@ function fe(e) {
721
721
  subtract: s
722
722
  };
723
723
  }
724
- function st(e, t) {
725
- const n = e.scroll === "x" ? o : u, r = t.style;
724
+ function se(t, e) {
725
+ const n = t.scroll === "x" ? o : u, r = e.style;
726
726
  let i = null, s = !1;
727
727
  function o(m) {
728
728
  return `translate3d(${m}px,0px,0px)`;
@@ -732,14 +732,14 @@ function st(e, t) {
732
732
  }
733
733
  function c(m) {
734
734
  if (s) return;
735
- const v = At(e.direction(m));
735
+ const v = Ae(t.direction(m));
736
736
  v !== i && (r.transform = n(v), i = v);
737
737
  }
738
738
  function l(m) {
739
739
  s = !m;
740
740
  }
741
741
  function b() {
742
- s || (r.transform = "", t.getAttribute("style") || t.removeAttribute("style"));
742
+ s || (r.transform = "", e.getAttribute("style") || e.removeAttribute("style"));
743
743
  }
744
744
  return {
745
745
  clear: b,
@@ -747,8 +747,8 @@ function st(e, t) {
747
747
  toggleActive: l
748
748
  };
749
749
  }
750
- function Xt(e, t, n, r, i, s, o, u, c) {
751
- const b = me(i), p = me(i).reverse(), m = f().concat(a());
750
+ function Xe(t, e, n, r, i, s, o, u, c) {
751
+ const b = mt(i), p = mt(i).reverse(), m = f().concat(a());
752
752
  function v(y, I) {
753
753
  return y.reduce((E, P) => E - i[P], I);
754
754
  }
@@ -758,7 +758,7 @@ function Xt(e, t, n, r, i, s, o, u, c) {
758
758
  function g(y) {
759
759
  return s.map((I, E) => ({
760
760
  start: I - r[E] + 0.5 + y,
761
- end: I + t - 0.5 + y
761
+ end: I + e - 0.5 + y
762
762
  }));
763
763
  }
764
764
  function h(y, I, E) {
@@ -768,8 +768,8 @@ function Xt(e, t, n, r, i, s, o, u, c) {
768
768
  return {
769
769
  index: T,
770
770
  loopPoint: R,
771
- slideLocation: fe(-1),
772
- translate: st(e, c[T]),
771
+ slideLocation: ft(-1),
772
+ translate: se(t, c[T]),
773
773
  target: () => u.get() > R ? j : M
774
774
  };
775
775
  });
@@ -779,7 +779,7 @@ function Xt(e, t, n, r, i, s, o, u, c) {
779
779
  return h(I, n, !1);
780
780
  }
781
781
  function a() {
782
- const y = t - o[0] - 1, I = d(b, y);
782
+ const y = e - o[0] - 1, I = d(b, y);
783
783
  return h(I, -n, !0);
784
784
  }
785
785
  function S() {
@@ -787,7 +787,7 @@ function Xt(e, t, n, r, i, s, o, u, c) {
787
787
  index: y
788
788
  }) => {
789
789
  const I = b.filter((E) => E !== y);
790
- return v(I, t) <= 0.1;
790
+ return v(I, e) <= 0.1;
791
791
  });
792
792
  }
793
793
  function C() {
@@ -810,20 +810,20 @@ function Xt(e, t, n, r, i, s, o, u, c) {
810
810
  loopPoints: m
811
811
  };
812
812
  }
813
- function Yt(e, t, n) {
813
+ function Ye(t, e, n) {
814
814
  let r, i = !1;
815
815
  function s(c) {
816
816
  if (!n) return;
817
817
  function l(b) {
818
818
  for (const p of b)
819
819
  if (p.type === "childList") {
820
- c.reInit(), t.emit("slidesChanged");
820
+ c.reInit(), e.emit("slidesChanged");
821
821
  break;
822
822
  }
823
823
  }
824
824
  r = new MutationObserver((b) => {
825
- i || (Ie(n) || n(c, b)) && l(b);
826
- }), r.observe(e, {
825
+ i || (It(n) || n(c, b)) && l(b);
826
+ }), r.observe(t, {
827
827
  childList: !0
828
828
  });
829
829
  }
@@ -835,25 +835,25 @@ function Yt(e, t, n) {
835
835
  destroy: o
836
836
  };
837
837
  }
838
- function Zt(e, t, n, r) {
838
+ function Ze(t, e, n, r) {
839
839
  const i = {};
840
840
  let s = null, o = null, u, c = !1;
841
841
  function l() {
842
842
  u = new IntersectionObserver((d) => {
843
843
  c || (d.forEach((g) => {
844
- const h = t.indexOf(g.target);
844
+ const h = e.indexOf(g.target);
845
845
  i[h] = g;
846
846
  }), s = null, o = null, n.emit("slidesInView"));
847
847
  }, {
848
- root: e.parentElement,
848
+ root: t.parentElement,
849
849
  threshold: r
850
- }), t.forEach((d) => u.observe(d));
850
+ }), e.forEach((d) => u.observe(d));
851
851
  }
852
852
  function b() {
853
853
  u && u.disconnect(), c = !0;
854
854
  }
855
855
  function p(d) {
856
- return ge(i).reduce((g, h) => {
856
+ return gt(i).reduce((g, h) => {
857
857
  const f = parseInt(h), {
858
858
  isIntersecting: a
859
859
  } = i[f];
@@ -872,16 +872,16 @@ function Zt(e, t, n, r) {
872
872
  get: m
873
873
  };
874
874
  }
875
- function Wt(e, t, n, r, i, s) {
875
+ function We(t, e, n, r, i, s) {
876
876
  const {
877
877
  measureSize: o,
878
878
  startEdge: u,
879
879
  endEdge: c
880
- } = e, l = n[0] && i, b = d(), p = g(), m = n.map(o), v = h();
880
+ } = t, l = n[0] && i, b = d(), p = g(), m = n.map(o), v = h();
881
881
  function d() {
882
882
  if (!l) return 0;
883
883
  const a = n[0];
884
- return N(t[u] - a[u]);
884
+ return N(e[u] - a[u]);
885
885
  }
886
886
  function g() {
887
887
  if (!l) return 0;
@@ -890,7 +890,7 @@ function Wt(e, t, n, r, i, s) {
890
890
  }
891
891
  function h() {
892
892
  return n.map((a, S, C) => {
893
- const L = !S, w = Fe(C, S);
893
+ const L = !S, w = Ft(C, S);
894
894
  return L ? m[S] + b : w ? m[S] + p : C[S + 1][u] - a[u];
895
895
  }).map(N);
896
896
  }
@@ -901,19 +901,19 @@ function Wt(e, t, n, r, i, s) {
901
901
  endGap: p
902
902
  };
903
903
  }
904
- function en(e, t, n, r, i, s, o, u, c) {
904
+ function tn(t, e, n, r, i, s, o, u, c) {
905
905
  const {
906
906
  startEdge: l,
907
907
  endEdge: b,
908
908
  direction: p
909
- } = e, m = ke(n);
909
+ } = t, m = kt(n);
910
910
  function v(f, a) {
911
- return me(f).filter((S) => S % a === 0).map((S) => f.slice(S, S + a));
911
+ return mt(f).filter((S) => S % a === 0).map((S) => f.slice(S, S + a));
912
912
  }
913
913
  function d(f) {
914
- return f.length ? me(f).reduce((a, S, C) => {
915
- const L = J(a) || 0, w = L === 0, y = S === be(f), I = i[l] - s[L][l], E = i[l] - s[S][b], P = !r && w ? p(o) : 0, T = !r && y ? p(u) : 0, j = N(E - T - (I + P));
916
- return C && j > t + c && a.push(S), y && a.push(f.length), a;
914
+ return f.length ? mt(f).reduce((a, S, C) => {
915
+ const L = J(a) || 0, w = L === 0, y = S === bt(f), I = i[l] - s[L][l], E = i[l] - s[S][b], P = !r && w ? p(o) : 0, T = !r && y ? p(u) : 0, j = N(E - T - (I + P));
916
+ return C && j > e + c && a.push(S), y && a.push(f.length), a;
917
917
  }, []).map((a, S, C) => {
918
918
  const L = Math.max(C[S - 1] || 0);
919
919
  return f.slice(L, a);
@@ -926,7 +926,7 @@ function en(e, t, n, r, i, s, o, u, c) {
926
926
  groupSlides: g
927
927
  };
928
928
  }
929
- function tn(e, t, n, r, i, s, o) {
929
+ function en(t, e, n, r, i, s, o) {
930
930
  const {
931
931
  align: u,
932
932
  axis: c,
@@ -944,51 +944,51 @@ function tn(e, t, n, r, i, s, o) {
944
944
  watchSlides: C,
945
945
  watchDrag: L,
946
946
  watchFocus: w
947
- } = s, y = 2, I = zt(), E = I.measure(t), P = n.map(I.measure), T = kt(c, l), j = T.measureSize(E), M = Vt(j), B = Nt(u, j), R = !p && !!a, q = p || !!a, {
947
+ } = s, y = 2, I = ze(), E = I.measure(e), P = n.map(I.measure), T = ke(c, l), j = T.measureSize(E), M = Ve(j), B = Ne(u, j), R = !p && !!a, q = p || !!a, {
948
948
  slideSizes: X,
949
949
  slideSizesWithGaps: _,
950
950
  startGap: K,
951
- endGap: oe
952
- } = Wt(T, E, P, n, q, i), U = en(T, j, h, p, E, P, K, oe, y), {
951
+ endGap: ot
952
+ } = We(T, E, P, n, q, i), U = tn(T, j, h, p, E, P, K, ot, y), {
953
953
  snaps: W,
954
- snapsAligned: ee
955
- } = qt(T, B, E, P, U), Q = -J(W) + J(_), {
956
- snapsContained: re,
954
+ snapsAligned: tt
955
+ } = qe(T, B, E, P, U), Q = -J(W) + J(_), {
956
+ snapsContained: rt,
957
957
  scrollContainLimit: k
958
- } = Ht(j, Q, ee, a, y), O = R ? re : ee, {
958
+ } = He(j, Q, tt, a, y), O = R ? rt : tt, {
959
959
  limit: F
960
- } = Gt(Q, O, p), $ = rt(be(O), b, p), H = $.clone(), A = me(n), x = ({
961
- dragHandler: ae,
962
- scrollBody: Ee,
963
- scrollBounds: Te,
960
+ } = Ge(Q, O, p), $ = re(bt(O), b, p), H = $.clone(), A = mt(n), x = ({
961
+ dragHandler: at,
962
+ scrollBody: Et,
963
+ scrollBounds: Tt,
964
964
  options: {
965
- loop: ve
965
+ loop: vt
966
966
  }
967
967
  }) => {
968
- ve || Te.constrain(ae.pointerDown()), Ee.seek();
968
+ vt || Tt.constrain(at.pointerDown()), Et.seek();
969
969
  }, D = ({
970
- scrollBody: ae,
971
- translate: Ee,
972
- location: Te,
973
- offsetLocation: ve,
974
- previousLocation: dt,
975
- scrollLooper: pt,
976
- slideLooper: mt,
977
- dragHandler: gt,
978
- animation: ht,
979
- eventHandler: Ge,
980
- scrollBounds: bt,
970
+ scrollBody: at,
971
+ translate: Et,
972
+ location: Tt,
973
+ offsetLocation: vt,
974
+ previousLocation: de,
975
+ scrollLooper: pe,
976
+ slideLooper: me,
977
+ dragHandler: ge,
978
+ animation: he,
979
+ eventHandler: Gt,
980
+ scrollBounds: be,
981
981
  options: {
982
- loop: Ue
982
+ loop: Ut
983
983
  }
984
- }, $e) => {
985
- const qe = ae.settled(), vt = !bt.shouldConstrain(), _e = Ue ? qe : qe && vt, Ke = _e && !gt.pointerDown();
986
- Ke && ht.stop();
987
- const St = Te.get() * $e + dt.get() * (1 - $e);
988
- ve.set(St), Ue && (pt.loop(ae.direction()), mt.loop()), Ee.to(ve.get()), Ke && Ge.emit("settle"), _e || Ge.emit("scroll");
989
- }, z = Mt(r, i, () => x(we), (ae) => D(we, ae)), G = 0.68, Y = O[$.get()], Z = fe(Y), se = fe(Y), te = fe(Y), ie = fe(Y), ue = Bt(Z, te, se, ie, m, G), Ce = Kt(p, O, Q, F, ie), Le = Qt(z, $, H, ue, Ce, ie, o), Be = $t(F), Re = he(), lt = Zt(t, n, o, g), {
990
- slideRegistry: He
991
- } = _t(R, a, O, k, U, A), ft = Jt(e, n, He, Le, ue, Re, o, w), we = {
984
+ }, $t) => {
985
+ const qt = at.settled(), ve = !be.shouldConstrain(), _t = Ut ? qt : qt && ve, Kt = _t && !ge.pointerDown();
986
+ Kt && he.stop();
987
+ const Se = Tt.get() * $t + de.get() * (1 - $t);
988
+ vt.set(Se), Ut && (pe.loop(at.direction()), me.loop()), Et.to(vt.get()), Kt && Gt.emit("settle"), _t || Gt.emit("scroll");
989
+ }, z = Me(r, i, () => x(wt), (at) => D(wt, at)), G = 0.68, Y = O[$.get()], Z = ft(Y), st = ft(Y), et = ft(Y), it = ft(Y), ut = Be(Z, et, st, it, m, G), Ct = Ke(p, O, Q, F, it), Lt = Qe(z, $, H, ut, Ct, it, o), Bt = $e(F), Rt = ht(), le = Ze(e, n, o, g), {
990
+ slideRegistry: Ht
991
+ } = _e(R, a, O, k, U, A), fe = Je(t, n, Ht, Lt, ut, Rt, o, w), wt = {
992
992
  ownerDocument: r,
993
993
  ownerWindow: i,
994
994
  eventHandler: o,
@@ -996,56 +996,56 @@ function tn(e, t, n, r, i, s, o) {
996
996
  slideRects: P,
997
997
  animation: z,
998
998
  axis: T,
999
- dragHandler: Ot(T, e, r, i, ie, Ft(T, i), Z, z, Le, ue, Ce, $, o, M, v, d, f, G, L),
1000
- eventStore: Re,
999
+ dragHandler: Oe(T, t, r, i, it, Fe(T, i), Z, z, Lt, ut, Ct, $, o, M, v, d, f, G, L),
1000
+ eventStore: Rt,
1001
1001
  percentOfView: M,
1002
1002
  index: $,
1003
1003
  indexPrevious: H,
1004
1004
  limit: F,
1005
1005
  location: Z,
1006
- offsetLocation: te,
1007
- previousLocation: se,
1006
+ offsetLocation: et,
1007
+ previousLocation: st,
1008
1008
  options: s,
1009
- resizeHandler: jt(t, o, i, n, T, S, I),
1010
- scrollBody: ue,
1011
- scrollBounds: Rt(F, te, ie, ue, M),
1012
- scrollLooper: Ut(Q, F, te, [Z, te, se, ie]),
1013
- scrollProgress: Be,
1014
- scrollSnapList: O.map(Be.get),
1009
+ resizeHandler: je(e, o, i, n, T, S, I),
1010
+ scrollBody: ut,
1011
+ scrollBounds: Re(F, et, it, ut, M),
1012
+ scrollLooper: Ue(Q, F, et, [Z, et, st, it]),
1013
+ scrollProgress: Bt,
1014
+ scrollSnapList: O.map(Bt.get),
1015
1015
  scrollSnaps: O,
1016
- scrollTarget: Ce,
1017
- scrollTo: Le,
1018
- slideLooper: Xt(T, j, Q, X, _, W, O, te, n),
1019
- slideFocus: ft,
1020
- slidesHandler: Yt(t, o, C),
1021
- slidesInView: lt,
1016
+ scrollTarget: Ct,
1017
+ scrollTo: Lt,
1018
+ slideLooper: Xe(T, j, Q, X, _, W, O, et, n),
1019
+ slideFocus: fe,
1020
+ slidesHandler: Ye(e, o, C),
1021
+ slidesInView: le,
1022
1022
  slideIndexes: A,
1023
- slideRegistry: He,
1023
+ slideRegistry: Ht,
1024
1024
  slidesToScroll: U,
1025
- target: ie,
1026
- translate: st(T, t)
1025
+ target: it,
1026
+ translate: se(T, e)
1027
1027
  };
1028
- return we;
1028
+ return wt;
1029
1029
  }
1030
1030
  function nn() {
1031
- let e = {}, t;
1031
+ let t = {}, e;
1032
1032
  function n(l) {
1033
- t = l;
1033
+ e = l;
1034
1034
  }
1035
1035
  function r(l) {
1036
- return e[l] || [];
1036
+ return t[l] || [];
1037
1037
  }
1038
1038
  function i(l) {
1039
- return r(l).forEach((b) => b(t, l)), c;
1039
+ return r(l).forEach((b) => b(e, l)), c;
1040
1040
  }
1041
1041
  function s(l, b) {
1042
- return e[l] = r(l).concat([b]), c;
1042
+ return t[l] = r(l).concat([b]), c;
1043
1043
  }
1044
1044
  function o(l, b) {
1045
- return e[l] = r(l).filter((p) => p !== b), c;
1045
+ return t[l] = r(l).filter((p) => p !== b), c;
1046
1046
  }
1047
1047
  function u() {
1048
- e = {};
1048
+ t = {};
1049
1049
  }
1050
1050
  const c = {
1051
1051
  init: n,
@@ -1078,42 +1078,42 @@ const on = {
1078
1078
  watchSlides: !0,
1079
1079
  watchFocus: !0
1080
1080
  };
1081
- function rn(e) {
1082
- function t(s, o) {
1083
- return ot(s, o || {});
1081
+ function rn(t) {
1082
+ function e(s, o) {
1083
+ return oe(s, o || {});
1084
1084
  }
1085
1085
  function n(s) {
1086
- const o = s.breakpoints || {}, u = ge(o).filter((c) => e.matchMedia(c).matches).map((c) => o[c]).reduce((c, l) => t(c, l), {});
1087
- return t(s, u);
1086
+ const o = s.breakpoints || {}, u = gt(o).filter((c) => t.matchMedia(c).matches).map((c) => o[c]).reduce((c, l) => e(c, l), {});
1087
+ return e(s, u);
1088
1088
  }
1089
1089
  function r(s) {
1090
- return s.map((o) => ge(o.breakpoints || {})).reduce((o, u) => o.concat(u), []).map(e.matchMedia);
1090
+ return s.map((o) => gt(o.breakpoints || {})).reduce((o, u) => o.concat(u), []).map(t.matchMedia);
1091
1091
  }
1092
1092
  return {
1093
- mergeOptions: t,
1093
+ mergeOptions: e,
1094
1094
  optionsAtMedia: n,
1095
1095
  optionsMediaQueries: r
1096
1096
  };
1097
1097
  }
1098
- function sn(e) {
1099
- let t = [];
1098
+ function sn(t) {
1099
+ let e = [];
1100
1100
  function n(s, o) {
1101
- return t = o.filter(({
1101
+ return e = o.filter(({
1102
1102
  options: u
1103
- }) => e.optionsAtMedia(u).active !== !1), t.forEach((u) => u.init(s, e)), o.reduce((u, c) => Object.assign(u, {
1103
+ }) => t.optionsAtMedia(u).active !== !1), e.forEach((u) => u.init(s, t)), o.reduce((u, c) => Object.assign(u, {
1104
1104
  [c.name]: c
1105
1105
  }), {});
1106
1106
  }
1107
1107
  function r() {
1108
- t = t.filter((s) => s.destroy());
1108
+ e = e.filter((s) => s.destroy());
1109
1109
  }
1110
1110
  return {
1111
1111
  init: n,
1112
1112
  destroy: r
1113
1113
  };
1114
1114
  }
1115
- function Se(e, t, n) {
1116
- const r = e.ownerDocument, i = r.defaultView, s = rn(i), o = sn(s), u = he(), c = nn(), {
1115
+ function St(t, e, n) {
1116
+ const r = t.ownerDocument, i = r.defaultView, s = rn(i), o = sn(s), u = ht(), c = nn(), {
1117
1117
  mergeOptions: l,
1118
1118
  optionsAtMedia: b,
1119
1119
  optionsMediaQueries: p
@@ -1122,18 +1122,18 @@ function Se(e, t, n) {
1122
1122
  off: v,
1123
1123
  emit: d
1124
1124
  } = c, g = T;
1125
- let h = !1, f, a = l(on, Se.globalOptions), S = l(a), C = [], L, w, y;
1125
+ let h = !1, f, a = l(on, St.globalOptions), S = l(a), C = [], L, w, y;
1126
1126
  function I() {
1127
1127
  const {
1128
1128
  container: A,
1129
1129
  slides: x
1130
1130
  } = S;
1131
- w = (Ae(A) ? e.querySelector(A) : A) || e.children[0];
1132
- const z = Ae(x) ? w.querySelectorAll(x) : x;
1131
+ w = (At(A) ? t.querySelector(A) : A) || t.children[0];
1132
+ const z = At(x) ? w.querySelectorAll(x) : x;
1133
1133
  y = [].slice.call(z || w.children);
1134
1134
  }
1135
1135
  function E(A) {
1136
- const x = tn(e, w, y, r, i, A, c);
1136
+ const x = en(t, w, y, r, i, A, c);
1137
1137
  if (A.loop && !x.slideLooper.canLoop()) {
1138
1138
  const D = Object.assign({}, A, {
1139
1139
  loop: !1
@@ -1179,7 +1179,7 @@ function Se(e, t, n) {
1179
1179
  function K() {
1180
1180
  return f.scrollSnapList;
1181
1181
  }
1182
- function oe() {
1182
+ function ot() {
1183
1183
  return f.scrollProgress.get(f.offsetLocation.get());
1184
1184
  }
1185
1185
  function U() {
@@ -1188,20 +1188,20 @@ function Se(e, t, n) {
1188
1188
  function W() {
1189
1189
  return f.indexPrevious.get();
1190
1190
  }
1191
- function ee() {
1191
+ function tt() {
1192
1192
  return f.slidesInView.get();
1193
1193
  }
1194
1194
  function Q() {
1195
1195
  return f.slidesInView.get(!1);
1196
1196
  }
1197
- function re() {
1197
+ function rt() {
1198
1198
  return L;
1199
1199
  }
1200
1200
  function k() {
1201
1201
  return f;
1202
1202
  }
1203
1203
  function O() {
1204
- return e;
1204
+ return t;
1205
1205
  }
1206
1206
  function F() {
1207
1207
  return w;
@@ -1218,42 +1218,42 @@ function Se(e, t, n) {
1218
1218
  off: v,
1219
1219
  on: m,
1220
1220
  emit: d,
1221
- plugins: re,
1221
+ plugins: rt,
1222
1222
  previousScrollSnap: W,
1223
1223
  reInit: g,
1224
1224
  rootNode: O,
1225
1225
  scrollNext: R,
1226
1226
  scrollPrev: q,
1227
- scrollProgress: oe,
1227
+ scrollProgress: ot,
1228
1228
  scrollSnapList: K,
1229
1229
  scrollTo: B,
1230
1230
  selectedScrollSnap: U,
1231
1231
  slideNodes: $,
1232
- slidesInView: ee,
1232
+ slidesInView: tt,
1233
1233
  slidesNotInView: Q
1234
1234
  };
1235
- return P(t, n), setTimeout(() => c.emit("init"), 0), H;
1235
+ return P(e, n), setTimeout(() => c.emit("init"), 0), H;
1236
1236
  }
1237
- Se.globalOptions = void 0;
1238
- function ze(e = {}, t = []) {
1239
- const n = Pe(e), r = Pe(t), [i, s] = ne(), [o, u] = ne(), c = le(() => {
1237
+ St.globalOptions = void 0;
1238
+ function zt(t = {}, e = []) {
1239
+ const n = Pt(t), r = Pt(e), [i, s] = nt(), [o, u] = nt(), c = lt(() => {
1240
1240
  i && i.reInit(n.current, r.current);
1241
1241
  }, [i]);
1242
- return de(() => {
1243
- Me(n.current, e) || (n.current = e, c());
1244
- }, [e, c]), de(() => {
1245
- Dt(r.current, t) || (r.current = t, c());
1246
- }, [t, c]), de(() => {
1247
- if (Tt() && o) {
1248
- Se.globalOptions = ze.globalOptions;
1249
- const l = Se(o, n.current, r.current);
1242
+ return dt(() => {
1243
+ Mt(n.current, t) || (n.current = t, c());
1244
+ }, [t, c]), dt(() => {
1245
+ De(r.current, e) || (r.current = e, c());
1246
+ }, [e, c]), dt(() => {
1247
+ if (Te() && o) {
1248
+ St.globalOptions = zt.globalOptions;
1249
+ const l = St(o, n.current, r.current);
1250
1250
  return s(l), () => l.destroy();
1251
1251
  } else
1252
1252
  s(void 0);
1253
1253
  }, [o, s]), [u, i];
1254
1254
  }
1255
- ze.globalOptions = void 0;
1256
- const cn = nt(
1255
+ zt.globalOptions = void 0;
1256
+ const cn = ne(
1257
1257
  "ds:relative ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
1258
1258
  {
1259
1259
  variants: {
@@ -1265,7 +1265,7 @@ const cn = nt(
1265
1265
  },
1266
1266
  defaultVariants: { size: "md" }
1267
1267
  }
1268
- ), an = nt(
1268
+ ), an = ne(
1269
1269
  [
1270
1270
  "ds:shrink-0 ds:basis-[var(--carousel-item-inline-size)]",
1271
1271
  "ds:min-w-0",
@@ -1273,34 +1273,34 @@ const cn = nt(
1273
1273
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1274
1274
  "ds:rounded-[var(--radius-md)]"
1275
1275
  ].join(" ")
1276
- ), it = It(null);
1277
- function ct(e) {
1278
- const t = Ct(it);
1279
- if (!t)
1276
+ ), ie = Ie(null);
1277
+ function ce(t) {
1278
+ const e = Ce(ie);
1279
+ if (!e)
1280
1280
  throw new Error(
1281
- `[Carousel] \`${e}\` must be rendered inside <Carousel>.`
1281
+ `[Carousel] \`${t}\` must be rendered inside <Carousel>.`
1282
1282
  );
1283
- return t;
1283
+ return e;
1284
1284
  }
1285
1285
  function un() {
1286
- const [e, t] = ne(() => typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
1287
- return de(() => {
1286
+ const [t, e] = nt(() => typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
1287
+ return dt(() => {
1288
1288
  if (typeof window > "u" || !window.matchMedia) return;
1289
- const n = window.matchMedia("(prefers-reduced-motion: reduce)"), r = () => t(n.matches);
1289
+ const n = window.matchMedia("(prefers-reduced-motion: reduce)"), r = () => e(n.matches);
1290
1290
  return n.addEventListener("change", r), () => n.removeEventListener("change", r);
1291
- }, []), e;
1291
+ }, []), t;
1292
1292
  }
1293
- function ln(e) {
1294
- let t = null;
1293
+ function ln(t) {
1294
+ let e = null;
1295
1295
  const n = [];
1296
- return et.forEach(e, (r) => {
1297
- tt(r) && r.type.displayName === "Carousel.Header" ? t = r : n.push(r);
1298
- }), { header: t, items: n };
1296
+ return te.forEach(t, (r) => {
1297
+ ee(r) && r.type.displayName === "Carousel.Header" ? e = r : n.push(r);
1298
+ }), { header: e, items: n };
1299
1299
  }
1300
- const at = xe(
1300
+ const ae = xt(
1301
1301
  ({
1302
- children: e,
1303
- size: t = "md",
1302
+ children: t,
1303
+ size: e = "md",
1304
1304
  showControls: n = !0,
1305
1305
  showIndicators: r = !0,
1306
1306
  viewAllSlot: i,
@@ -1310,7 +1310,7 @@ const at = xe(
1310
1310
  "aria-label": c,
1311
1311
  ...l
1312
1312
  }, b) => {
1313
- const { t: p } = ye(), m = un(), v = xt(), d = `${o ?? v}-track`, g = `${o ?? v}-live`, h = Qe(
1313
+ const { t: p } = yt(), m = un(), v = xe(), d = `${o ?? v}-track`, g = `${o ?? v}-live`, h = Qt(
1314
1314
  () => ({
1315
1315
  align: "start",
1316
1316
  // `mandatory` → embla's default tight snap; `proximity` → free-scroll.
@@ -1321,8 +1321,8 @@ const at = xe(
1321
1321
  containScroll: "trimSnaps"
1322
1322
  }),
1323
1323
  [s, m]
1324
- ), [f, a] = ze(h), [S, C] = ne(0), [L, w] = ne(0), [y, I] = ne(!1), [E, P] = ne(!1), [T, j] = ne(""), M = Pe("init");
1325
- de(() => {
1324
+ ), [f, a] = zt(h), [S, C] = nt(0), [L, w] = nt(0), [y, I] = nt(!1), [E, P] = nt(!1), [T, j] = nt(""), M = Pt("init");
1325
+ dt(() => {
1326
1326
  if (!a) return;
1327
1327
  w(a.scrollSnapList().length), C(a.selectedScrollSnap()), I(a.canScrollPrev()), P(a.canScrollNext());
1328
1328
  const k = () => {
@@ -1344,16 +1344,16 @@ const at = xe(
1344
1344
  a.off("select", k), a.off("pointerDown", O), a.off("pointerUp", F), a.off("reInit", $);
1345
1345
  };
1346
1346
  }, [a, p]);
1347
- const B = le(() => {
1347
+ const B = lt(() => {
1348
1348
  a && (M.current = "control", a.scrollPrev());
1349
- }, [a]), R = le(() => {
1349
+ }, [a]), R = lt(() => {
1350
1350
  a && (M.current = "control", a.scrollNext());
1351
- }, [a]), q = le(
1351
+ }, [a]), q = lt(
1352
1352
  (k) => {
1353
1353
  a && (M.current = "control", a.scrollTo(k));
1354
1354
  },
1355
1355
  [a]
1356
- ), X = le(
1356
+ ), X = lt(
1357
1357
  (k) => {
1358
1358
  if (a)
1359
1359
  switch (k.key) {
@@ -1386,7 +1386,7 @@ const at = xe(
1386
1386
  },
1387
1387
  [a]
1388
1388
  );
1389
- yt(
1389
+ ye(
1390
1390
  b,
1391
1391
  () => ({
1392
1392
  scrollTo: q,
@@ -1397,7 +1397,7 @@ const at = xe(
1397
1397
  }),
1398
1398
  [q, B, R, S, L]
1399
1399
  );
1400
- const { header: _, items: K } = ln(e), oe = K.length, U = Math.max(L, oe), W = n && U > 1 || i != null, ee = _ == null && W, Q = r && L > 1, re = Qe(
1400
+ const { header: _, items: K } = ln(t), ot = K.length, U = Math.max(L, ot), W = n && U > 1 || i != null, tt = _ == null && W, Q = r && L > 1, rt = Qt(
1401
1401
  () => ({
1402
1402
  api: a,
1403
1403
  activeIndex: S,
@@ -1421,7 +1421,7 @@ const at = xe(
1421
1421
  d
1422
1422
  ]
1423
1423
  );
1424
- return /* @__PURE__ */ V(it.Provider, { value: re, children: /* @__PURE__ */ De(
1424
+ return /* @__PURE__ */ V(ie.Provider, { value: rt, children: /* @__PURE__ */ Dt(
1425
1425
  "section",
1426
1426
  {
1427
1427
  ...l,
@@ -1431,12 +1431,12 @@ const at = xe(
1431
1431
  onKeyDown: X,
1432
1432
  "data-component": "carousel",
1433
1433
  "data-component-id": o,
1434
- "data-size": t,
1434
+ "data-size": e,
1435
1435
  "data-state": m ? "reduced-motion" : void 0,
1436
- className: cn({ size: t, className: u }),
1436
+ className: cn({ size: e, className: u }),
1437
1437
  children: [
1438
1438
  _,
1439
- ee ? /* @__PURE__ */ V("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-md)]", children: /* @__PURE__ */ De("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:ms-auto", children: [
1439
+ tt ? /* @__PURE__ */ V("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-md)]", children: /* @__PURE__ */ Dt("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:ms-auto", children: [
1440
1440
  i,
1441
1441
  n && U > 1 ? /* @__PURE__ */ V(dn, {}) : null
1442
1442
  ] }) }) : null,
@@ -1446,7 +1446,7 @@ const at = xe(
1446
1446
  id: d,
1447
1447
  role: "presentation",
1448
1448
  className: "ds:flex ds:gap-[var(--spacing-md)]",
1449
- children: et.map(K, (k, O) => tt(k) ? /* @__PURE__ */ V(fn, { index: O, total: U, children: k }) : k)
1449
+ children: te.map(K, (k, O) => ee(k) ? /* @__PURE__ */ V(fn, { index: O, total: U, children: k }) : k)
1450
1450
  }
1451
1451
  ) }),
1452
1452
  Q ? /* @__PURE__ */ V(pn, {}) : null,
@@ -1466,27 +1466,27 @@ const at = xe(
1466
1466
  ) });
1467
1467
  }
1468
1468
  );
1469
- at.displayName = "Carousel";
1470
- const Ve = xe(
1471
- ({ children: e, className: t, ...n }, r) => /* @__PURE__ */ V(
1469
+ ae.displayName = "Carousel";
1470
+ const Vt = xt(
1471
+ ({ children: t, className: e, ...n }, r) => /* @__PURE__ */ V(
1472
1472
  "div",
1473
1473
  {
1474
1474
  ref: r,
1475
1475
  ...n,
1476
1476
  tabIndex: -1,
1477
- className: an({ className: t }),
1478
- children: e
1477
+ className: an({ className: e }),
1478
+ children: t
1479
1479
  }
1480
1480
  )
1481
1481
  );
1482
- Ve.displayName = "Carousel.Item";
1482
+ Vt.displayName = "Carousel.Item";
1483
1483
  function fn({
1484
- children: e,
1485
- index: t,
1484
+ children: t,
1485
+ index: e,
1486
1486
  total: n
1487
1487
  }) {
1488
- const { t: r } = ye(), i = e.props, s = i["aria-label"] ?? r("carousel.slideLabel", {
1489
- current: t + 1,
1488
+ const { t: r } = yt(), i = t.props, s = i["aria-label"] ?? r("carousel.slideLabel", {
1489
+ current: e + 1,
1490
1490
  total: n,
1491
1491
  defaultValue: "{{current}} of {{total}}"
1492
1492
  }), o = {
@@ -1494,48 +1494,48 @@ function fn({
1494
1494
  role: "group",
1495
1495
  "aria-roledescription": r("carousel.slideRoleDescription", "slide"),
1496
1496
  "aria-label": s,
1497
- "data-slide-index": t,
1497
+ "data-slide-index": e,
1498
1498
  "data-slide-id": i.id
1499
1499
  };
1500
- return /* @__PURE__ */ V(Ve, { ...o });
1500
+ return /* @__PURE__ */ V(Vt, { ...o });
1501
1501
  }
1502
- const ut = xe(
1503
- ({ children: e, className: t, ...n }, r) => /* @__PURE__ */ V(
1502
+ const ue = xt(
1503
+ ({ children: t, className: e, ...n }, r) => /* @__PURE__ */ V(
1504
1504
  "div",
1505
1505
  {
1506
1506
  ref: r,
1507
1507
  ...n,
1508
1508
  className: [
1509
1509
  "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-md)]",
1510
- t
1510
+ e
1511
1511
  ].filter(Boolean).join(" "),
1512
- children: e
1512
+ children: t
1513
1513
  }
1514
1514
  )
1515
1515
  );
1516
- ut.displayName = "Carousel.Header";
1516
+ ue.displayName = "Carousel.Header";
1517
1517
  function dn() {
1518
- return /* @__PURE__ */ V(je, {});
1518
+ return /* @__PURE__ */ V(jt, {});
1519
1519
  }
1520
- const je = xe(({ className: e, ...t }, n) => {
1521
- const { t: r } = ye(), { canScrollPrev: i, canScrollNext: s, scrollPrev: o, scrollNext: u, trackId: c } = ct("Carousel.Controls");
1522
- return /* @__PURE__ */ De(
1520
+ const jt = xt(({ className: t, ...e }, n) => {
1521
+ const { t: r } = yt(), { canScrollPrev: i, canScrollNext: s, scrollPrev: o, scrollNext: u, trackId: c } = ce("Carousel.Controls");
1522
+ return /* @__PURE__ */ Dt(
1523
1523
  "div",
1524
1524
  {
1525
1525
  ref: n,
1526
- ...t,
1526
+ ...e,
1527
1527
  className: [
1528
1528
  "ds:hidden ds:md:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
1529
- e
1529
+ t
1530
1530
  ].filter(Boolean).join(" "),
1531
1531
  children: [
1532
1532
  /* @__PURE__ */ V(
1533
- Je,
1533
+ Jt,
1534
1534
  {
1535
1535
  size: "sm",
1536
1536
  intent: "ghost",
1537
1537
  flipIconInRtl: !0,
1538
- icon: /* @__PURE__ */ V(Lt, { "aria-hidden": "true" }),
1538
+ icon: /* @__PURE__ */ V(Le, { "aria-hidden": "true" }),
1539
1539
  "aria-controls": c,
1540
1540
  "aria-label": r("carousel.previous", "Previous slide"),
1541
1541
  disabled: !i,
@@ -1543,12 +1543,12 @@ const je = xe(({ className: e, ...t }, n) => {
1543
1543
  }
1544
1544
  ),
1545
1545
  /* @__PURE__ */ V(
1546
- Je,
1546
+ Jt,
1547
1547
  {
1548
1548
  size: "sm",
1549
1549
  intent: "ghost",
1550
1550
  flipIconInRtl: !0,
1551
- icon: /* @__PURE__ */ V(wt, { "aria-hidden": "true" }),
1551
+ icon: /* @__PURE__ */ V(we, { "aria-hidden": "true" }),
1552
1552
  "aria-controls": c,
1553
1553
  "aria-label": r("carousel.next", "Next slide"),
1554
1554
  disabled: !s,
@@ -1559,49 +1559,57 @@ const je = xe(({ className: e, ...t }, n) => {
1559
1559
  }
1560
1560
  );
1561
1561
  });
1562
- je.displayName = "Carousel.Controls";
1562
+ jt.displayName = "Carousel.Controls";
1563
1563
  function pn() {
1564
- const { t: e } = ye(), { activeIndex: t, count: n, scrollToIndex: r, trackId: i } = ct(
1564
+ const { t } = yt(), { activeIndex: e, count: n, scrollToIndex: r, trackId: i } = ce(
1565
1565
  "Carousel.Indicators"
1566
1566
  );
1567
- return /* @__PURE__ */ V(
1568
- "ol",
1569
- {
1570
- role: "tablist",
1571
- "aria-label": e("carousel.indicatorsLabel", "Slides"),
1572
- className: "ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]",
1573
- children: Array.from({ length: n }).map((s, o) => {
1574
- const u = o === t;
1575
- return /* @__PURE__ */ V("li", { className: "ds:flex", children: /* @__PURE__ */ V(
1576
- "button",
1577
- {
1578
- type: "button",
1579
- role: "tab",
1580
- "aria-controls": i,
1581
- "aria-current": u ? "true" : void 0,
1582
- "aria-label": e("carousel.goToSlide", {
1583
- index: o + 1,
1584
- defaultValue: "Go to slide {{index}}"
1585
- }),
1586
- onClick: () => r(o),
1587
- "data-active": u ? "true" : void 0,
1588
- className: [
1589
- "ds:size-2 ds:rounded-[var(--radius-full)]",
1590
- "ds:transition-[background-color,inline-size] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
1591
- "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
1592
- "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1593
- u ? "ds:bg-[var(--primary)] ds:w-[length:var(--spacing-md)]" : "ds:bg-[var(--border)] ds:hover:bg-[var(--muted-foreground)]"
1594
- ].join(" ")
1595
- }
1596
- ) }, o);
1597
- })
1598
- }
1567
+ return (
1568
+ // `<div role="tablist">` with direct `<button role="tab">` children.
1569
+ // axe's `aria-required-children` rejects `<li>` wrappers between the
1570
+ // tablist and its tabs, and the list semantic adds nothing the
1571
+ // tablist role doesn't already convey. Matches the WAI APG carousel
1572
+ // pattern.
1573
+ /* @__PURE__ */ V(
1574
+ "div",
1575
+ {
1576
+ role: "tablist",
1577
+ "aria-label": t("carousel.indicatorsLabel", "Slides"),
1578
+ className: "ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]",
1579
+ children: Array.from({ length: n }).map((s, o) => {
1580
+ const u = o === e;
1581
+ return /* @__PURE__ */ V(
1582
+ "button",
1583
+ {
1584
+ type: "button",
1585
+ role: "tab",
1586
+ "aria-controls": i,
1587
+ "aria-current": u ? "true" : void 0,
1588
+ "aria-label": t("carousel.goToSlide", {
1589
+ index: o + 1,
1590
+ defaultValue: "Go to slide {{index}}"
1591
+ }),
1592
+ onClick: () => r(o),
1593
+ "data-active": u ? "true" : void 0,
1594
+ className: [
1595
+ "ds:size-2 ds:rounded-[var(--radius-full)]",
1596
+ "ds:transition-[background-color,inline-size] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
1597
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
1598
+ "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1599
+ u ? "ds:bg-[var(--primary)] ds:w-[length:var(--spacing-md)]" : "ds:bg-[var(--border)] ds:hover:bg-[var(--muted-foreground)]"
1600
+ ].join(" ")
1601
+ },
1602
+ o
1603
+ );
1604
+ })
1605
+ }
1606
+ )
1599
1607
  );
1600
1608
  }
1601
- const yn = Object.assign(at, {
1602
- Header: ut,
1603
- Item: Ve,
1604
- Controls: je
1609
+ const yn = Object.assign(ae, {
1610
+ Header: ue,
1611
+ Item: Vt,
1612
+ Controls: jt
1605
1613
  }), In = {
1606
1614
  id: "carousel",
1607
1615
  capabilities: ["navigate", "view_change"],
@@ -1609,12 +1617,12 @@ const yn = Object.assign(at, {
1609
1617
  activeIndex: {
1610
1618
  type: "number",
1611
1619
  description: "Zero-based index of the currently snapped slide.",
1612
- read: (e) => e.getActiveIndex()
1620
+ read: (t) => t.getActiveIndex()
1613
1621
  },
1614
1622
  count: {
1615
1623
  type: "number",
1616
1624
  description: "Total slide count.",
1617
- read: (e) => e.getCount()
1625
+ read: (t) => t.getCount()
1618
1626
  }
1619
1627
  },
1620
1628
  actions: {
@@ -1622,22 +1630,22 @@ const yn = Object.assign(at, {
1622
1630
  safety: "read",
1623
1631
  argsType: "{ index: number }",
1624
1632
  description: "Scroll to the slide at the given index.",
1625
- invoke: (e, t) => {
1626
- e.scrollTo(t.index);
1633
+ invoke: (t, e) => {
1634
+ t.scrollTo(e.index);
1627
1635
  }
1628
1636
  },
1629
1637
  scroll_prev: {
1630
1638
  safety: "read",
1631
1639
  description: "Scroll to the previous slide.",
1632
- invoke: (e) => {
1633
- e.scrollPrev();
1640
+ invoke: (t) => {
1641
+ t.scrollPrev();
1634
1642
  }
1635
1643
  },
1636
1644
  scroll_next: {
1637
1645
  safety: "read",
1638
1646
  description: "Scroll to the next slide.",
1639
- invoke: (e) => {
1640
- e.scrollNext();
1647
+ invoke: (t) => {
1648
+ t.scrollNext();
1641
1649
  }
1642
1650
  }
1643
1651
  },
@@ -1658,4 +1666,4 @@ export {
1658
1666
  yn as C,
1659
1667
  In as c
1660
1668
  };
1661
- //# sourceMappingURL=carousel.agent-2dXpQoqp.js.map
1669
+ //# sourceMappingURL=carousel.agent-OTn-kMQg.js.map