mimir-ui-kit 1.38.6 → 1.38.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. package/dist/{combobox-DgSZTriw.js → combobox-CVtJDVoZ.js} +251 -254
  2. package/dist/components/Accordion/Accordion.d.ts +1 -1
  3. package/dist/components/Accordion/Accordion.js +3 -3
  4. package/dist/components/CheckboxMimir/CheckboxMimir.js +4 -4
  5. package/dist/components/Dropdown/Dropdown.js +32 -32
  6. package/dist/components/MultiSelectSearch/MultiSelectSearch.d.ts +1 -0
  7. package/dist/components/MultiSelectSearch/MultiSelectSearch.js +175 -157
  8. package/dist/components/MultiSelectSearch/constants.d.ts +3 -0
  9. package/dist/components/MultiSelectSearch/constants.js +6 -2
  10. package/dist/components/MultiSelectSearch/types.d.ts +4 -0
  11. package/dist/components/MultiSelectSearch/utils.d.ts +1 -0
  12. package/dist/components/MultiSelectSearch/utils.js +19 -14
  13. package/dist/components/RadioGroup/RadioGroup.js +3 -3
  14. package/dist/components/SelectSearch/SelectSearch.js +21 -21
  15. package/dist/components/Slider/Slider.d.ts +21 -8
  16. package/dist/components/Slider/Slider.js +388 -383
  17. package/dist/components/Switcher/Switcher.js +4 -4
  18. package/dist/components/TabTrail/TabTrail.js +4 -4
  19. package/dist/{field-C1kt7aNM.js → field-FJ34aSs4.js} +2 -2
  20. package/dist/{focus-management-BtPpk3D1.js → focus-management-DE4t_lW3.js} +1 -1
  21. package/dist/{hidden-PvGXrYUY.js → hidden-DbgtYPOH.js} +1 -1
  22. package/dist/{keyboard-mgWkd2Vh.js → keyboard-B0lm_zyn.js} +111 -114
  23. package/dist/{label-D4GFpe5F.js → label-y3ANLTNC.js} +2 -2
  24. package/dist/open-closed-CdldUPoq.js +86 -0
  25. package/dist/portal-WDFNoIMz.js +1908 -0
  26. package/dist/{use-active-press-CqLGIFz7.js → use-active-press-86hajhdd.js} +1 -1
  27. package/package.json +1 -1
  28. package/dist/open-closed-D2VjDhAN.js +0 -86
  29. package/dist/portal-DPqg52FR.js +0 -1946
@@ -1,9 +1,9 @@
1
- import { jsxs as X, jsx as V } from "react/jsx-runtime";
1
+ import { jsxs as X, jsx as V, Fragment as Je } from "react/jsx-runtime";
2
2
  import { c as U } from "../../index-DIxK0V-G.js";
3
- import G, { forwardRef as Te, useState as K, useRef as R, useEffect as he, useLayoutEffect as Je, createContext as De, useContext as Qe, useCallback as re, memo as Ge, useMemo as et } from "react";
3
+ import G, { forwardRef as Te, useState as K, useRef as R, useEffect as he, useLayoutEffect as Qe, createContext as De, useContext as et, useCallback as re, memo as Ge, useMemo as tt } from "react";
4
4
  import { EProgressBarPosition as xe } from "./constants.js";
5
5
  import { AppImage as Ee } from "../Image/Image.js";
6
- import { MergedButton as tt } from "../MergedButton/MergedButton.js";
6
+ import { MergedButton as it } from "../MergedButton/MergedButton.js";
7
7
  import '../../assets/Slider.css';function Pe(t) {
8
8
  return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
9
9
  }
@@ -71,7 +71,7 @@ function j() {
71
71
  const t = typeof document < "u" ? document : {};
72
72
  return be(t, Ne), t;
73
73
  }
74
- const it = {
74
+ const st = {
75
75
  document: Ne,
76
76
  navigator: {
77
77
  userAgent: ""
@@ -131,12 +131,12 @@ const it = {
131
131
  };
132
132
  function F() {
133
133
  const t = typeof window < "u" ? window : {};
134
- return be(t, it), t;
134
+ return be(t, st), t;
135
135
  }
136
- function st(t) {
136
+ function rt(t) {
137
137
  return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
138
138
  }
139
- function rt(t) {
139
+ function nt(t) {
140
140
  const e = t;
141
141
  Object.keys(e).forEach((i) => {
142
142
  try {
@@ -155,29 +155,29 @@ function ge(t, e) {
155
155
  function ne() {
156
156
  return Date.now();
157
157
  }
158
- function nt(t) {
158
+ function at(t) {
159
159
  const e = F();
160
160
  let i;
161
161
  return e.getComputedStyle && (i = e.getComputedStyle(t, null)), !i && t.currentStyle && (i = t.currentStyle), i || (i = t.style), i;
162
162
  }
163
- function at(t, e) {
163
+ function lt(t, e) {
164
164
  e === void 0 && (e = "x");
165
165
  const i = F();
166
166
  let s, n, r;
167
- const l = nt(t);
167
+ const l = at(t);
168
168
  return i.WebKitCSSMatrix ? (n = l.transform || l.webkitTransform, n.split(",").length > 6 && (n = n.split(", ").map((o) => o.replace(",", ".")).join(", ")), r = new i.WebKitCSSMatrix(n === "none" ? "" : n)) : (r = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), s = r.toString().split(",")), e === "x" && (i.WebKitCSSMatrix ? n = r.m41 : s.length === 16 ? n = parseFloat(s[12]) : n = parseFloat(s[4])), e === "y" && (i.WebKitCSSMatrix ? n = r.m42 : s.length === 16 ? n = parseFloat(s[13]) : n = parseFloat(s[5])), n || 0;
169
169
  }
170
170
  function te(t) {
171
171
  return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
172
172
  }
173
- function lt(t) {
173
+ function ot(t) {
174
174
  return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
175
175
  }
176
176
  function B() {
177
177
  const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
178
178
  for (let i = 1; i < arguments.length; i += 1) {
179
179
  const s = i < 0 || arguments.length <= i ? void 0 : arguments[i];
180
- if (s != null && !lt(s)) {
180
+ if (s != null && !ot(s)) {
181
181
  const n = Object.keys(Object(s)).filter((r) => e.indexOf(r) < 0);
182
182
  for (let r = 0, l = n.length; r < l; r += 1) {
183
183
  const o = n[r], a = Object.getOwnPropertyDescriptor(s, o);
@@ -231,9 +231,9 @@ function ae(t) {
231
231
  function ve(t, e) {
232
232
  e === void 0 && (e = []);
233
233
  const i = document.createElement(t);
234
- return i.classList.add(...Array.isArray(e) ? e : st(e)), i;
234
+ return i.classList.add(...Array.isArray(e) ? e : rt(e)), i;
235
235
  }
236
- function ot(t, e) {
236
+ function dt(t, e) {
237
237
  const i = [];
238
238
  for (; t.previousElementSibling; ) {
239
239
  const s = t.previousElementSibling;
@@ -241,7 +241,7 @@ function ot(t, e) {
241
241
  }
242
242
  return i;
243
243
  }
244
- function dt(t, e) {
244
+ function ct(t, e) {
245
245
  const i = [];
246
246
  for (; t.nextElementSibling; ) {
247
247
  const s = t.nextElementSibling;
@@ -260,7 +260,7 @@ function Me(t) {
260
260
  return i;
261
261
  }
262
262
  }
263
- function ct(t, e) {
263
+ function ut(t, e) {
264
264
  const i = [];
265
265
  let s = t.parentElement;
266
266
  for (; s; )
@@ -271,7 +271,7 @@ function Ce(t, e, i) {
271
271
  const s = F();
272
272
  return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(s.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(s.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
273
273
  }
274
- function ut(t) {
274
+ function ft(t) {
275
275
  let {
276
276
  swiper: e,
277
277
  extendParams: i,
@@ -294,9 +294,9 @@ function ut(t) {
294
294
  pauseOnMouseEnter: !1
295
295
  }
296
296
  });
297
- let l, o, a = r && r.autoplay ? r.autoplay.delay : 3e3, u = r && r.autoplay ? r.autoplay.delay : 3e3, d, c = (/* @__PURE__ */ new Date()).getTime(), p, f, h, v, y, m, S;
297
+ let l, o, a = r && r.autoplay ? r.autoplay.delay : 3e3, u = r && r.autoplay ? r.autoplay.delay : 3e3, d, c = (/* @__PURE__ */ new Date()).getTime(), p, f, h, v, b, m, y;
298
298
  function g(L) {
299
- !e || e.destroyed || !e.wrapperEl || L.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", g), !(S || L.detail && L.detail.bySwiperTouchMove) && w());
299
+ !e || e.destroyed || !e.wrapperEl || L.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", g), !(y || L.detail && L.detail.bySwiperTouchMove) && S());
300
300
  }
301
301
  const T = () => {
302
302
  if (e.destroyed || !e.autoplay.running) return;
@@ -305,7 +305,7 @@ function ut(t) {
305
305
  e.autoplay.timeLeft = L, n("autoplayTimeLeft", L, L / a), o = requestAnimationFrame(() => {
306
306
  T();
307
307
  });
308
- }, b = () => {
308
+ }, w = () => {
309
309
  let L;
310
310
  return e.virtual && e.params.virtual.enabled ? L = e.slides.filter((z) => z.classList.contains("swiper-slide-active"))[0] : L = e.slides[e.activeIndex], L ? parseInt(L.getAttribute("data-swiper-autoplay"), 10) : void 0;
311
311
  }, I = (L) => {
@@ -313,7 +313,7 @@ function ut(t) {
313
313
  cancelAnimationFrame(o), T();
314
314
  let _ = typeof L > "u" ? e.params.autoplay.delay : L;
315
315
  a = e.params.autoplay.delay, u = e.params.autoplay.delay;
316
- const z = b();
316
+ const z = w();
317
317
  !Number.isNaN(z) && z > 0 && typeof L > "u" && (_ = z, a = z, u = z), d = _;
318
318
  const q = e.params.speed, ee = () => {
319
319
  !e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(q, !0, !0), n("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, q, !0, !0), n("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(q, !0, !0), n("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, q, !0, !0), n("autoplay")), e.params.cssMode && (c = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
@@ -333,23 +333,23 @@ function ut(t) {
333
333
  if (e.destroyed || !e.autoplay.running) return;
334
334
  clearTimeout(l), L || (m = !0);
335
335
  const z = () => {
336
- n("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", g) : w();
336
+ n("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", g) : S();
337
337
  };
338
338
  if (e.autoplay.paused = !0, _) {
339
- y && (d = e.params.autoplay.delay), y = !1, z();
339
+ b && (d = e.params.autoplay.delay), b = !1, z();
340
340
  return;
341
341
  }
342
342
  d = (d || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - c), !(e.isEnd && d < 0 && !e.params.loop) && (d < 0 && (d = 0), z());
343
- }, w = () => {
343
+ }, S = () => {
344
344
  e.isEnd && d < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (c = (/* @__PURE__ */ new Date()).getTime(), m ? (m = !1, I(d)) : I(), e.autoplay.paused = !1, n("autoplayResume"));
345
345
  }, E = () => {
346
346
  if (e.destroyed || !e.autoplay.running) return;
347
347
  const L = j();
348
- L.visibilityState === "hidden" && (m = !0, x(!0)), L.visibilityState === "visible" && w();
348
+ L.visibilityState === "hidden" && (m = !0, x(!0)), L.visibilityState === "visible" && S();
349
349
  }, M = (L) => {
350
- L.pointerType === "mouse" && (m = !0, S = !0, !(e.animating || e.autoplay.paused) && x(!0));
350
+ L.pointerType === "mouse" && (m = !0, y = !0, !(e.animating || e.autoplay.paused) && x(!0));
351
351
  }, P = (L) => {
352
- L.pointerType === "mouse" && (S = !1, e.autoplay.paused && w());
352
+ L.pointerType === "mouse" && (y = !1, e.autoplay.paused && S());
353
353
  }, O = () => {
354
354
  e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", M), e.el.addEventListener("pointerleave", P));
355
355
  }, D = () => {
@@ -364,7 +364,7 @@ function ut(t) {
364
364
  }), s("destroy", () => {
365
365
  D(), J(), e.autoplay.running && C();
366
366
  }), s("_freeModeStaticRelease", () => {
367
- (h || m) && w();
367
+ (h || m) && S();
368
368
  }), s("_freeModeNoMomentumRelease", () => {
369
369
  e.params.autoplay.disableOnInteraction ? C() : x(!0, !0);
370
370
  }), s("beforeTransitionStart", (L, _, z) => {
@@ -385,19 +385,19 @@ function ut(t) {
385
385
  h = !1, f = !1;
386
386
  return;
387
387
  }
388
- h && e.params.cssMode && w(), h = !1, f = !1;
388
+ h && e.params.cssMode && S(), h = !1, f = !1;
389
389
  }
390
390
  }), s("slideChange", () => {
391
- e.destroyed || !e.autoplay.running || (y = !0);
391
+ e.destroyed || !e.autoplay.running || (b = !0);
392
392
  }), Object.assign(e.autoplay, {
393
393
  start: A,
394
394
  stop: C,
395
395
  pause: x,
396
- resume: w
396
+ resume: S
397
397
  });
398
398
  }
399
399
  let oe;
400
- function ft() {
400
+ function pt() {
401
401
  const t = F(), e = j();
402
402
  return {
403
403
  smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
@@ -405,10 +405,10 @@ function ft() {
405
405
  };
406
406
  }
407
407
  function Be() {
408
- return oe || (oe = ft()), oe;
408
+ return oe || (oe = pt()), oe;
409
409
  }
410
410
  let de;
411
- function pt(t) {
411
+ function mt(t) {
412
412
  let {
413
413
  userAgent: e
414
414
  } = t === void 0 ? {} : t;
@@ -423,10 +423,10 @@ function pt(t) {
423
423
  return !d && h && i.touch && v.indexOf(`${o}x${a}`) >= 0 && (d = r.match(/(Version)\/([\d.]+)/), d || (d = [0, 1, "13_0_0"]), h = !1), u && !f && (l.os = "android", l.android = !0), (d || p || c) && (l.os = "ios", l.ios = !0), l;
424
424
  }
425
425
  function Fe(t) {
426
- return t === void 0 && (t = {}), de || (de = pt(t)), de;
426
+ return t === void 0 && (t = {}), de || (de = mt(t)), de;
427
427
  }
428
428
  let ce;
429
- function mt() {
429
+ function ht() {
430
430
  const t = F(), e = Fe();
431
431
  let i = !1;
432
432
  function s() {
@@ -448,10 +448,10 @@ function mt() {
448
448
  isWebView: n
449
449
  };
450
450
  }
451
- function ht() {
452
- return ce || (ce = mt()), ce;
451
+ function gt() {
452
+ return ce || (ce = ht()), ce;
453
453
  }
454
- function gt(t) {
454
+ function vt(t) {
455
455
  let {
456
456
  swiper: e,
457
457
  on: i,
@@ -469,13 +469,13 @@ function gt(t) {
469
469
  height: f
470
470
  } = e;
471
471
  let h = p, v = f;
472
- c.forEach((y) => {
472
+ c.forEach((b) => {
473
473
  let {
474
474
  contentBoxSize: m,
475
- contentRect: S,
475
+ contentRect: y,
476
476
  target: g
477
- } = y;
478
- g && g !== e.el || (h = S ? S.width : (m[0] || m).inlineSize, v = S ? S.height : (m[0] || m).blockSize);
477
+ } = b;
478
+ g && g !== e.el || (h = y ? y.width : (m[0] || m).inlineSize, v = y ? y.height : (m[0] || m).blockSize);
479
479
  }), (h !== p || v !== f) && o();
480
480
  });
481
481
  }), r.observe(e.el));
@@ -494,7 +494,7 @@ function gt(t) {
494
494
  u(), n.removeEventListener("resize", o), n.removeEventListener("orientationchange", d);
495
495
  });
496
496
  }
497
- function vt(t) {
497
+ function wt(t) {
498
498
  let {
499
499
  swiper: e,
500
500
  extendParams: i,
@@ -522,7 +522,7 @@ function vt(t) {
522
522
  }, a = () => {
523
523
  if (e.params.observer) {
524
524
  if (e.params.observeParents) {
525
- const d = ct(e.hostEl);
525
+ const d = ut(e.hostEl);
526
526
  for (let c = 0; c < d.length; c += 1)
527
527
  o(d[c]);
528
528
  }
@@ -543,7 +543,7 @@ function vt(t) {
543
543
  observeSlideChildren: !1
544
544
  }), s("init", a), s("destroy", u);
545
545
  }
546
- var wt = {
546
+ var St = {
547
547
  on(t, e, i) {
548
548
  const s = this;
549
549
  if (!s.eventsListeners || s.destroyed || typeof e != "function") return s;
@@ -598,7 +598,7 @@ var wt = {
598
598
  }), t;
599
599
  }
600
600
  };
601
- function St() {
601
+ function Tt() {
602
602
  const t = this;
603
603
  let e, i;
604
604
  const s = t.el;
@@ -608,10 +608,10 @@ function St() {
608
608
  size: t.isHorizontal() ? e : i
609
609
  }));
610
610
  }
611
- function Tt() {
611
+ function bt() {
612
612
  const t = this;
613
- function e(w, E) {
614
- return parseFloat(w.getPropertyValue(t.getDirectionLabel(E)) || 0);
613
+ function e(S, E) {
614
+ return parseFloat(S.getPropertyValue(t.getDirectionLabel(E)) || 0);
615
615
  }
616
616
  const i = t.params, {
617
617
  wrapperEl: s,
@@ -624,25 +624,25 @@ function Tt() {
624
624
  const f = [], h = [];
625
625
  let v = i.slidesOffsetBefore;
626
626
  typeof v == "function" && (v = i.slidesOffsetBefore.call(t));
627
- let y = i.slidesOffsetAfter;
628
- typeof y == "function" && (y = i.slidesOffsetAfter.call(t));
629
- const m = t.snapGrid.length, S = t.slidesGrid.length;
630
- let g = i.spaceBetween, T = -v, b = 0, I = 0;
627
+ let b = i.slidesOffsetAfter;
628
+ typeof b == "function" && (b = i.slidesOffsetAfter.call(t));
629
+ const m = t.snapGrid.length, y = t.slidesGrid.length;
630
+ let g = i.spaceBetween, T = -v, w = 0, I = 0;
631
631
  if (typeof r > "u")
632
632
  return;
633
- typeof g == "string" && g.indexOf("%") >= 0 ? g = parseFloat(g.replace("%", "")) / 100 * r : typeof g == "string" && (g = parseFloat(g)), t.virtualSize = -g, d.forEach((w) => {
634
- l ? w.style.marginLeft = "" : w.style.marginRight = "", w.style.marginBottom = "", w.style.marginTop = "";
633
+ typeof g == "string" && g.indexOf("%") >= 0 ? g = parseFloat(g.replace("%", "")) / 100 * r : typeof g == "string" && (g = parseFloat(g)), t.virtualSize = -g, d.forEach((S) => {
634
+ l ? S.style.marginLeft = "" : S.style.marginRight = "", S.style.marginBottom = "", S.style.marginTop = "";
635
635
  }), i.centeredSlides && i.cssMode && (ie(s, "--swiper-centered-offset-before", ""), ie(s, "--swiper-centered-offset-after", ""));
636
636
  const A = i.grid && i.grid.rows > 1 && t.grid;
637
637
  A ? t.grid.initSlides(d) : t.grid && t.grid.unsetSlides();
638
638
  let C;
639
- const x = i.slidesPerView === "auto" && i.breakpoints && Object.keys(i.breakpoints).filter((w) => typeof i.breakpoints[w].slidesPerView < "u").length > 0;
640
- for (let w = 0; w < c; w += 1) {
639
+ const x = i.slidesPerView === "auto" && i.breakpoints && Object.keys(i.breakpoints).filter((S) => typeof i.breakpoints[S].slidesPerView < "u").length > 0;
640
+ for (let S = 0; S < c; S += 1) {
641
641
  C = 0;
642
642
  let E;
643
- if (d[w] && (E = d[w]), A && t.grid.updateSlide(w, E, d), !(d[w] && W(E, "display") === "none")) {
643
+ if (d[S] && (E = d[S]), A && t.grid.updateSlide(S, E, d), !(d[S] && W(E, "display") === "none")) {
644
644
  if (i.slidesPerView === "auto") {
645
- x && (d[w].style[t.getDirectionLabel("width")] = "");
645
+ x && (d[S].style[t.getDirectionLabel("width")] = "");
646
646
  const M = getComputedStyle(E), P = E.style.transform, O = E.style.webkitTransform;
647
647
  if (P && (E.style.transform = "none"), O && (E.style.webkitTransform = "none"), i.roundLengths)
648
648
  C = t.isHorizontal() ? Ce(E, "width") : Ce(E, "height");
@@ -660,50 +660,50 @@ function Tt() {
660
660
  }
661
661
  P && (E.style.transform = P), O && (E.style.webkitTransform = O), i.roundLengths && (C = Math.floor(C));
662
662
  } else
663
- C = (r - (i.slidesPerView - 1) * g) / i.slidesPerView, i.roundLengths && (C = Math.floor(C)), d[w] && (d[w].style[t.getDirectionLabel("width")] = `${C}px`);
664
- d[w] && (d[w].swiperSlideSize = C), h.push(C), i.centeredSlides ? (T = T + C / 2 + b / 2 + g, b === 0 && w !== 0 && (T = T - r / 2 - g), w === 0 && (T = T - r / 2 - g), Math.abs(T) < 1 / 1e3 && (T = 0), i.roundLengths && (T = Math.floor(T)), I % i.slidesPerGroup === 0 && p.push(T), f.push(T)) : (i.roundLengths && (T = Math.floor(T)), (I - Math.min(t.params.slidesPerGroupSkip, I)) % t.params.slidesPerGroup === 0 && p.push(T), f.push(T), T = T + C + g), t.virtualSize += C + g, b = C, I += 1;
663
+ C = (r - (i.slidesPerView - 1) * g) / i.slidesPerView, i.roundLengths && (C = Math.floor(C)), d[S] && (d[S].style[t.getDirectionLabel("width")] = `${C}px`);
664
+ d[S] && (d[S].swiperSlideSize = C), h.push(C), i.centeredSlides ? (T = T + C / 2 + w / 2 + g, w === 0 && S !== 0 && (T = T - r / 2 - g), S === 0 && (T = T - r / 2 - g), Math.abs(T) < 1 / 1e3 && (T = 0), i.roundLengths && (T = Math.floor(T)), I % i.slidesPerGroup === 0 && p.push(T), f.push(T)) : (i.roundLengths && (T = Math.floor(T)), (I - Math.min(t.params.slidesPerGroupSkip, I)) % t.params.slidesPerGroup === 0 && p.push(T), f.push(T), T = T + C + g), t.virtualSize += C + g, w = C, I += 1;
665
665
  }
666
666
  }
667
- if (t.virtualSize = Math.max(t.virtualSize, r) + y, l && o && (i.effect === "slide" || i.effect === "coverflow") && (s.style.width = `${t.virtualSize + g}px`), i.setWrapperSize && (s.style[t.getDirectionLabel("width")] = `${t.virtualSize + g}px`), A && t.grid.updateWrapperSize(C, p), !i.centeredSlides) {
668
- const w = [];
667
+ if (t.virtualSize = Math.max(t.virtualSize, r) + b, l && o && (i.effect === "slide" || i.effect === "coverflow") && (s.style.width = `${t.virtualSize + g}px`), i.setWrapperSize && (s.style[t.getDirectionLabel("width")] = `${t.virtualSize + g}px`), A && t.grid.updateWrapperSize(C, p), !i.centeredSlides) {
668
+ const S = [];
669
669
  for (let E = 0; E < p.length; E += 1) {
670
670
  let M = p[E];
671
- i.roundLengths && (M = Math.floor(M)), p[E] <= t.virtualSize - r && w.push(M);
671
+ i.roundLengths && (M = Math.floor(M)), p[E] <= t.virtualSize - r && S.push(M);
672
672
  }
673
- p = w, Math.floor(t.virtualSize - r) - Math.floor(p[p.length - 1]) > 1 && p.push(t.virtualSize - r);
673
+ p = S, Math.floor(t.virtualSize - r) - Math.floor(p[p.length - 1]) > 1 && p.push(t.virtualSize - r);
674
674
  }
675
675
  if (a && i.loop) {
676
- const w = h[0] + g;
676
+ const S = h[0] + g;
677
677
  if (i.slidesPerGroup > 1) {
678
- const E = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / i.slidesPerGroup), M = w * i.slidesPerGroup;
678
+ const E = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / i.slidesPerGroup), M = S * i.slidesPerGroup;
679
679
  for (let P = 0; P < E; P += 1)
680
680
  p.push(p[p.length - 1] + M);
681
681
  }
682
682
  for (let E = 0; E < t.virtual.slidesBefore + t.virtual.slidesAfter; E += 1)
683
- i.slidesPerGroup === 1 && p.push(p[p.length - 1] + w), f.push(f[f.length - 1] + w), t.virtualSize += w;
683
+ i.slidesPerGroup === 1 && p.push(p[p.length - 1] + S), f.push(f[f.length - 1] + S), t.virtualSize += S;
684
684
  }
685
685
  if (p.length === 0 && (p = [0]), g !== 0) {
686
- const w = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
686
+ const S = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
687
687
  d.filter((E, M) => !i.cssMode || i.loop ? !0 : M !== d.length - 1).forEach((E) => {
688
- E.style[w] = `${g}px`;
688
+ E.style[S] = `${g}px`;
689
689
  });
690
690
  }
691
691
  if (i.centeredSlides && i.centeredSlidesBounds) {
692
- let w = 0;
692
+ let S = 0;
693
693
  h.forEach((M) => {
694
- w += M + (g || 0);
695
- }), w -= g;
696
- const E = w - r;
697
- p = p.map((M) => M <= 0 ? -v : M > E ? E + y : M);
694
+ S += M + (g || 0);
695
+ }), S -= g;
696
+ const E = S - r;
697
+ p = p.map((M) => M <= 0 ? -v : M > E ? E + b : M);
698
698
  }
699
699
  if (i.centerInsufficientSlides) {
700
- let w = 0;
700
+ let S = 0;
701
701
  h.forEach((M) => {
702
- w += M + (g || 0);
703
- }), w -= g;
702
+ S += M + (g || 0);
703
+ }), S -= g;
704
704
  const E = (i.slidesOffsetBefore || 0) + (i.slidesOffsetAfter || 0);
705
- if (w + E < r) {
706
- const M = (r - w - E) / 2;
705
+ if (S + E < r) {
706
+ const M = (r - S - E) / 2;
707
707
  p.forEach((P, O) => {
708
708
  p[O] = P - M;
709
709
  }), f.forEach((P, O) => {
@@ -718,15 +718,15 @@ function Tt() {
718
718
  slidesSizesGrid: h
719
719
  }), i.centeredSlides && i.cssMode && !i.centeredSlidesBounds) {
720
720
  ie(s, "--swiper-centered-offset-before", `${-p[0]}px`), ie(s, "--swiper-centered-offset-after", `${t.size / 2 - h[h.length - 1] / 2}px`);
721
- const w = -t.snapGrid[0], E = -t.slidesGrid[0];
722
- t.snapGrid = t.snapGrid.map((M) => M + w), t.slidesGrid = t.slidesGrid.map((M) => M + E);
721
+ const S = -t.snapGrid[0], E = -t.slidesGrid[0];
722
+ t.snapGrid = t.snapGrid.map((M) => M + S), t.slidesGrid = t.slidesGrid.map((M) => M + E);
723
723
  }
724
- if (c !== u && t.emit("slidesLengthChange"), p.length !== m && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), f.length !== S && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !a && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
725
- const w = `${i.containerModifierClass}backface-hidden`, E = t.el.classList.contains(w);
726
- c <= i.maxBackfaceHiddenSlides ? E || t.el.classList.add(w) : E && t.el.classList.remove(w);
724
+ if (c !== u && t.emit("slidesLengthChange"), p.length !== m && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), f.length !== y && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !a && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
725
+ const S = `${i.containerModifierClass}backface-hidden`, E = t.el.classList.contains(S);
726
+ c <= i.maxBackfaceHiddenSlides ? E || t.el.classList.add(S) : E && t.el.classList.remove(S);
727
727
  }
728
728
  }
729
- function bt(t) {
729
+ function yt(t) {
730
730
  const e = this, i = [], s = e.virtual && e.params.virtual.enabled;
731
731
  let n = 0, r;
732
732
  typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
@@ -751,7 +751,7 @@ function bt(t) {
751
751
  }
752
752
  (n || n === 0) && (e.wrapperEl.style.height = `${n}px`);
753
753
  }
754
- function yt() {
754
+ function xt() {
755
755
  const t = this, e = t.slides, i = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
756
756
  for (let s = 0; s < e.length; s += 1)
757
757
  e[s].swiperSlideOffset = (t.isHorizontal() ? e[s].offsetLeft : e[s].offsetTop) - i - t.cssOverflowAdjustment();
@@ -759,7 +759,7 @@ function yt() {
759
759
  const Ie = (t, e, i) => {
760
760
  e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
761
761
  };
762
- function xt(t) {
762
+ function Et(t) {
763
763
  t === void 0 && (t = this && this.translate || 0);
764
764
  const e = this, i = e.params, {
765
765
  slides: s,
@@ -776,11 +776,11 @@ function xt(t) {
776
776
  const u = s[a];
777
777
  let d = u.swiperSlideOffset;
778
778
  i.cssMode && i.centeredSlides && (d -= s[0].swiperSlideOffset);
779
- const c = (l + (i.centeredSlides ? e.minTranslate() : 0) - d) / (u.swiperSlideSize + o), p = (l - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - d) / (u.swiperSlideSize + o), f = -(l - d), h = f + e.slidesSizesGrid[a], v = f >= 0 && f <= e.size - e.slidesSizesGrid[a], y = f >= 0 && f < e.size - 1 || h > 1 && h <= e.size || f <= 0 && h >= e.size;
780
- y && (e.visibleSlides.push(u), e.visibleSlidesIndexes.push(a)), Ie(u, y, i.slideVisibleClass), Ie(u, v, i.slideFullyVisibleClass), u.progress = n ? -c : c, u.originalProgress = n ? -p : p;
779
+ const c = (l + (i.centeredSlides ? e.minTranslate() : 0) - d) / (u.swiperSlideSize + o), p = (l - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - d) / (u.swiperSlideSize + o), f = -(l - d), h = f + e.slidesSizesGrid[a], v = f >= 0 && f <= e.size - e.slidesSizesGrid[a], b = f >= 0 && f < e.size - 1 || h > 1 && h <= e.size || f <= 0 && h >= e.size;
780
+ b && (e.visibleSlides.push(u), e.visibleSlidesIndexes.push(a)), Ie(u, b, i.slideVisibleClass), Ie(u, v, i.slideFullyVisibleClass), u.progress = n ? -c : c, u.originalProgress = n ? -p : p;
781
781
  }
782
782
  }
783
- function Et(t) {
783
+ function Pt(t) {
784
784
  const e = this;
785
785
  if (typeof t > "u") {
786
786
  const d = e.rtlTranslate ? -1 : 1;
@@ -815,7 +815,7 @@ function Et(t) {
815
815
  const ue = (t, e, i) => {
816
816
  e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
817
817
  };
818
- function Pt() {
818
+ function Mt() {
819
819
  const t = this, {
820
820
  slides: e,
821
821
  params: i,
@@ -831,7 +831,7 @@ function Pt() {
831
831
  a = o(`[data-swiper-slide-index="${n}"]`);
832
832
  else
833
833
  l ? (a = e.filter((c) => c.column === n)[0], d = e.filter((c) => c.column === n + 1)[0], u = e.filter((c) => c.column === n - 1)[0]) : a = e[n];
834
- a && (l || (d = dt(a, `.${i.slideClass}, swiper-slide`)[0], i.loop && !d && (d = e[0]), u = ot(a, `.${i.slideClass}, swiper-slide`)[0], i.loop && !u === 0 && (u = e[e.length - 1]))), e.forEach((c) => {
834
+ a && (l || (d = ct(a, `.${i.slideClass}, swiper-slide`)[0], i.loop && !d && (d = e[0]), u = dt(a, `.${i.slideClass}, swiper-slide`)[0], i.loop && !u === 0 && (u = e[e.length - 1]))), e.forEach((c) => {
835
835
  ue(c, c === a, i.slideActiveClass), ue(c, c === d, i.slideNextClass), ue(c, c === u, i.slidePrevClass);
836
836
  }), t.emitSlidesClasses();
837
837
  }
@@ -874,7 +874,7 @@ const se = (t, e) => {
874
874
  for (let l = Math.max(n - e, 0); l <= Math.min(r + e, i - 1); l += 1)
875
875
  l !== n && (l > r || l < n) && fe(t, l);
876
876
  };
877
- function Mt(t) {
877
+ function Ct(t) {
878
878
  const {
879
879
  slidesGrid: e,
880
880
  params: i
@@ -884,7 +884,7 @@ function Mt(t) {
884
884
  typeof e[r + 1] < "u" ? s >= e[r] && s < e[r + 1] - (e[r + 1] - e[r]) / 2 ? n = r : s >= e[r] && s < e[r + 1] && (n = r + 1) : s >= e[r] && (n = r);
885
885
  return i.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
886
886
  }
887
- function Ct(t) {
887
+ function It(t) {
888
888
  const e = this, i = e.rtlTranslate ? e.translate : -e.translate, {
889
889
  snapGrid: s,
890
890
  params: n,
@@ -897,7 +897,7 @@ function Ct(t) {
897
897
  let h = f - e.virtual.slidesBefore;
898
898
  return h < 0 && (h = e.virtual.slides.length + h), h >= e.virtual.slides.length && (h -= e.virtual.slides.length), h;
899
899
  };
900
- if (typeof a > "u" && (a = Mt(e)), s.indexOf(i) >= 0)
900
+ if (typeof a > "u" && (a = Ct(e)), s.indexOf(i) >= 0)
901
901
  u = s.indexOf(i);
902
902
  else {
903
903
  const f = Math.min(n.slidesPerGroupSkip, a);
@@ -933,7 +933,7 @@ function Ct(t) {
933
933
  activeIndex: a
934
934
  }), e.initialized && we(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== p && e.emit("realIndexChange"), e.emit("slideChange"));
935
935
  }
936
- function It(t, e) {
936
+ function Lt(t, e) {
937
937
  const i = this, s = i.params;
938
938
  let n = t.closest(`.${s.slideClass}, swiper-slide`);
939
939
  !n && i.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((o) => {
@@ -955,18 +955,18 @@ function It(t, e) {
955
955
  }
956
956
  s.slideToClickedSlide && i.clickedIndex !== void 0 && i.clickedIndex !== i.activeIndex && i.slideToClickedSlide();
957
957
  }
958
- var Lt = {
959
- updateSize: St,
960
- updateSlides: Tt,
961
- updateAutoHeight: bt,
962
- updateSlidesOffset: yt,
963
- updateSlidesProgress: xt,
964
- updateProgress: Et,
965
- updateSlidesClasses: Pt,
966
- updateActiveIndex: Ct,
967
- updateClickedSlide: It
958
+ var Ot = {
959
+ updateSize: Tt,
960
+ updateSlides: bt,
961
+ updateAutoHeight: yt,
962
+ updateSlidesOffset: xt,
963
+ updateSlidesProgress: Et,
964
+ updateProgress: Pt,
965
+ updateSlidesClasses: Mt,
966
+ updateActiveIndex: It,
967
+ updateClickedSlide: Lt
968
968
  };
969
- function Ot(t) {
969
+ function _t(t) {
970
970
  t === void 0 && (t = this.isHorizontal() ? "x" : "y");
971
971
  const e = this, {
972
972
  params: i,
@@ -978,10 +978,10 @@ function Ot(t) {
978
978
  return s ? -n : n;
979
979
  if (i.cssMode)
980
980
  return n;
981
- let l = at(r, t);
981
+ let l = lt(r, t);
982
982
  return l += e.cssOverflowAdjustment(), s && (l = -l), l || 0;
983
983
  }
984
- function _t(t, e) {
984
+ function zt(t, e) {
985
985
  const i = this, {
986
986
  rtlTranslate: s,
987
987
  params: n,
@@ -995,13 +995,13 @@ function _t(t, e) {
995
995
  const c = i.maxTranslate() - i.minTranslate();
996
996
  c === 0 ? d = 0 : d = (t - i.minTranslate()) / c, d !== l && i.updateProgress(t), i.emit("setTranslate", i.translate, e);
997
997
  }
998
- function zt() {
998
+ function At() {
999
999
  return -this.snapGrid[0];
1000
1000
  }
1001
- function At() {
1001
+ function Dt() {
1002
1002
  return -this.snapGrid[this.snapGrid.length - 1];
1003
1003
  }
1004
- function Dt(t, e, i, s, n) {
1004
+ function Gt(t, e, i, s, n) {
1005
1005
  t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), i === void 0 && (i = !0), s === void 0 && (s = !0);
1006
1006
  const r = this, {
1007
1007
  params: l,
@@ -1033,14 +1033,14 @@ function Dt(t, e, i, s, n) {
1033
1033
  !r || r.destroyed || p.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, r.animating = !1, i && r.emit("transitionEnd"));
1034
1034
  }), r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), !0;
1035
1035
  }
1036
- var Gt = {
1037
- getTranslate: Ot,
1038
- setTranslate: _t,
1039
- minTranslate: zt,
1040
- maxTranslate: At,
1041
- translateTo: Dt
1036
+ var Nt = {
1037
+ getTranslate: _t,
1038
+ setTranslate: zt,
1039
+ minTranslate: At,
1040
+ maxTranslate: Dt,
1041
+ translateTo: Gt
1042
1042
  };
1043
- function Nt(t, e) {
1043
+ function Vt(t, e) {
1044
1044
  const i = this;
1045
1045
  i.params.cssMode || (i.wrapperEl.style.transitionDuration = `${t}ms`, i.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), i.emit("setTransition", t, e);
1046
1046
  }
@@ -1064,7 +1064,7 @@ function $e(t) {
1064
1064
  e.emit(`slideChangeTransition${n}`), o === "next" ? e.emit(`slideNextTransition${n}`) : e.emit(`slidePrevTransition${n}`);
1065
1065
  }
1066
1066
  }
1067
- function Vt(t, e) {
1067
+ function Bt(t, e) {
1068
1068
  t === void 0 && (t = !0);
1069
1069
  const i = this, {
1070
1070
  params: s
@@ -1076,7 +1076,7 @@ function Vt(t, e) {
1076
1076
  step: "Start"
1077
1077
  }));
1078
1078
  }
1079
- function Bt(t, e) {
1079
+ function Ft(t, e) {
1080
1080
  t === void 0 && (t = !0);
1081
1081
  const i = this, {
1082
1082
  params: s
@@ -1088,12 +1088,12 @@ function Bt(t, e) {
1088
1088
  step: "End"
1089
1089
  }));
1090
1090
  }
1091
- var Ft = {
1092
- setTransition: Nt,
1093
- transitionStart: Vt,
1094
- transitionEnd: Bt
1091
+ var $t = {
1092
+ setTransition: Vt,
1093
+ transitionStart: Bt,
1094
+ transitionEnd: Ft
1095
1095
  };
1096
- function $t(t, e, i, s, n) {
1096
+ function Rt(t, e, i, s, n) {
1097
1097
  t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
1098
1098
  const r = this;
1099
1099
  let l = t;
@@ -1112,27 +1112,27 @@ function $t(t, e, i, s, n) {
1112
1112
  return !1;
1113
1113
  typeof e > "u" && (e = r.params.speed);
1114
1114
  const v = Math.min(r.params.slidesPerGroupSkip, l);
1115
- let y = v + Math.floor((l - v) / r.params.slidesPerGroup);
1116
- y >= a.length && (y = a.length - 1);
1117
- const m = -a[y];
1115
+ let b = v + Math.floor((l - v) / r.params.slidesPerGroup);
1116
+ b >= a.length && (b = a.length - 1);
1117
+ const m = -a[b];
1118
1118
  if (o.normalizeSlideIndex)
1119
1119
  for (let g = 0; g < u.length; g += 1) {
1120
- const T = -Math.floor(m * 100), b = Math.floor(u[g] * 100), I = Math.floor(u[g + 1] * 100);
1121
- typeof u[g + 1] < "u" ? T >= b && T < I - (I - b) / 2 ? l = g : T >= b && T < I && (l = g + 1) : T >= b && (l = g);
1120
+ const T = -Math.floor(m * 100), w = Math.floor(u[g] * 100), I = Math.floor(u[g + 1] * 100);
1121
+ typeof u[g + 1] < "u" ? T >= w && T < I - (I - w) / 2 ? l = g : T >= w && T < I && (l = g + 1) : T >= w && (l = g);
1122
1122
  }
1123
1123
  if (r.initialized && l !== c && (!r.allowSlideNext && (p ? m > r.translate && m > r.minTranslate() : m < r.translate && m < r.minTranslate()) || !r.allowSlidePrev && m > r.translate && m > r.maxTranslate() && (c || 0) !== l))
1124
1124
  return !1;
1125
1125
  l !== (d || 0) && i && r.emit("beforeSlideChangeStart"), r.updateProgress(m);
1126
- let S;
1127
- if (l > c ? S = "next" : l < c ? S = "prev" : S = "reset", p && -m === r.translate || !p && m === r.translate)
1128
- return r.updateActiveIndex(l), o.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), o.effect !== "slide" && r.setTranslate(m), S !== "reset" && (r.transitionStart(i, S), r.transitionEnd(i, S)), !1;
1126
+ let y;
1127
+ if (l > c ? y = "next" : l < c ? y = "prev" : y = "reset", p && -m === r.translate || !p && m === r.translate)
1128
+ return r.updateActiveIndex(l), o.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), o.effect !== "slide" && r.setTranslate(m), y !== "reset" && (r.transitionStart(i, y), r.transitionEnd(i, y)), !1;
1129
1129
  if (o.cssMode) {
1130
1130
  const g = r.isHorizontal(), T = p ? m : -m;
1131
1131
  if (e === 0) {
1132
- const b = r.virtual && r.params.virtual.enabled;
1133
- b && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), b && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1132
+ const w = r.virtual && r.params.virtual.enabled;
1133
+ w && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), w && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1134
1134
  f[g ? "scrollLeft" : "scrollTop"] = T;
1135
- })) : f[g ? "scrollLeft" : "scrollTop"] = T, b && requestAnimationFrame(() => {
1135
+ })) : f[g ? "scrollLeft" : "scrollTop"] = T, w && requestAnimationFrame(() => {
1136
1136
  r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1;
1137
1137
  });
1138
1138
  } else {
@@ -1149,11 +1149,11 @@ function $t(t, e, i, s, n) {
1149
1149
  }
1150
1150
  return !0;
1151
1151
  }
1152
- return r.setTransition(e), r.setTranslate(m), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, s), r.transitionStart(i, S), e === 0 ? r.transitionEnd(i, S) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(T) {
1153
- !r || r.destroyed || T.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, S));
1152
+ return r.setTransition(e), r.setTranslate(m), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, s), r.transitionStart(i, y), e === 0 ? r.transitionEnd(i, y) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(T) {
1153
+ !r || r.destroyed || T.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, y));
1154
1154
  }), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
1155
1155
  }
1156
- function Rt(t, e, i, s) {
1156
+ function kt(t, e, i, s) {
1157
1157
  t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
1158
1158
  const n = this;
1159
1159
  if (n.destroyed) return;
@@ -1195,7 +1195,7 @@ function Rt(t, e, i, s) {
1195
1195
  n.slideTo(l, e, i, s);
1196
1196
  }), n;
1197
1197
  }
1198
- function kt(t, e, i) {
1198
+ function Ht(t, e, i) {
1199
1199
  e === void 0 && (e = !0);
1200
1200
  const s = this, {
1201
1201
  enabled: n,
@@ -1218,7 +1218,7 @@ function kt(t, e, i) {
1218
1218
  }
1219
1219
  return r.rewind && s.isEnd ? s.slideTo(0, t, e, i) : s.slideTo(s.activeIndex + a, t, e, i);
1220
1220
  }
1221
- function Ht(t, e, i) {
1221
+ function jt(t, e, i) {
1222
1222
  e === void 0 && (e = !0);
1223
1223
  const s = this, {
1224
1224
  params: n,
@@ -1245,27 +1245,27 @@ function Ht(t, e, i) {
1245
1245
  let v = r[h.indexOf(f) - 1];
1246
1246
  if (typeof v > "u" && n.cssMode) {
1247
1247
  let m;
1248
- r.forEach((S, g) => {
1249
- f >= S && (m = g);
1248
+ r.forEach((y, g) => {
1249
+ f >= y && (m = g);
1250
1250
  }), typeof m < "u" && (v = r[m > 0 ? m - 1 : m]);
1251
1251
  }
1252
- let y = 0;
1253
- if (typeof v < "u" && (y = l.indexOf(v), y < 0 && (y = s.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (y = y - s.slidesPerViewDynamic("previous", !0) + 1, y = Math.max(y, 0))), n.rewind && s.isBeginning) {
1252
+ let b = 0;
1253
+ if (typeof v < "u" && (b = l.indexOf(v), b < 0 && (b = s.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (b = b - s.slidesPerViewDynamic("previous", !0) + 1, b = Math.max(b, 0))), n.rewind && s.isBeginning) {
1254
1254
  const m = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
1255
1255
  return s.slideTo(m, t, e, i);
1256
1256
  } else if (n.loop && s.activeIndex === 0 && n.cssMode)
1257
1257
  return requestAnimationFrame(() => {
1258
- s.slideTo(y, t, e, i);
1258
+ s.slideTo(b, t, e, i);
1259
1259
  }), !0;
1260
- return s.slideTo(y, t, e, i);
1260
+ return s.slideTo(b, t, e, i);
1261
1261
  }
1262
- function jt(t, e, i) {
1262
+ function Wt(t, e, i) {
1263
1263
  e === void 0 && (e = !0);
1264
1264
  const s = this;
1265
1265
  if (!s.destroyed)
1266
1266
  return typeof t > "u" && (t = s.params.speed), s.slideTo(s.activeIndex, t, e, i);
1267
1267
  }
1268
- function Wt(t, e, i, s) {
1268
+ function qt(t, e, i, s) {
1269
1269
  e === void 0 && (e = !0), s === void 0 && (s = 0.5);
1270
1270
  const n = this;
1271
1271
  if (n.destroyed) return;
@@ -1281,7 +1281,7 @@ function Wt(t, e, i, s) {
1281
1281
  }
1282
1282
  return r = Math.max(r, 0), r = Math.min(r, n.slidesGrid.length - 1), n.slideTo(r, t, e, i);
1283
1283
  }
1284
- function qt() {
1284
+ function Yt() {
1285
1285
  const t = this;
1286
1286
  if (t.destroyed) return;
1287
1287
  const {
@@ -1300,16 +1300,16 @@ function qt() {
1300
1300
  } else
1301
1301
  t.slideTo(n);
1302
1302
  }
1303
- var Yt = {
1304
- slideTo: $t,
1305
- slideToLoop: Rt,
1306
- slideNext: kt,
1307
- slidePrev: Ht,
1308
- slideReset: jt,
1309
- slideToClosest: Wt,
1310
- slideToClickedSlide: qt
1303
+ var Xt = {
1304
+ slideTo: Rt,
1305
+ slideToLoop: kt,
1306
+ slideNext: Ht,
1307
+ slidePrev: jt,
1308
+ slideReset: Wt,
1309
+ slideToClosest: qt,
1310
+ slideToClickedSlide: Yt
1311
1311
  };
1312
- function Xt(t) {
1312
+ function Ut(t) {
1313
1313
  const e = this, {
1314
1314
  params: i,
1315
1315
  slidesEl: s
@@ -1346,7 +1346,7 @@ function Xt(t) {
1346
1346
  direction: i.centeredSlides ? void 0 : "next"
1347
1347
  });
1348
1348
  }
1349
- function Ut(t) {
1349
+ function Kt(t) {
1350
1350
  let {
1351
1351
  slideRealIndex: e,
1352
1352
  slideTo: i = !0,
@@ -1374,33 +1374,33 @@ function Ut(t) {
1374
1374
  }
1375
1375
  let v = f.slidesPerView;
1376
1376
  v === "auto" ? v = a.slidesPerViewDynamic() : (v = Math.ceil(parseFloat(f.slidesPerView, 10)), h && v % 2 === 0 && (v = v + 1));
1377
- const y = f.slidesPerGroupAuto ? v : f.slidesPerGroup;
1378
- let m = y;
1379
- m % y !== 0 && (m += y - m % y), m += f.loopAdditionalSlides, a.loopedSlides = m;
1380
- const S = a.grid && f.grid && f.grid.rows > 1;
1381
- u.length < v + m ? ae("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : S && f.grid.fill === "row" && ae("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
1377
+ const b = f.slidesPerGroupAuto ? v : f.slidesPerGroup;
1378
+ let m = b;
1379
+ m % b !== 0 && (m += b - m % b), m += f.loopAdditionalSlides, a.loopedSlides = m;
1380
+ const y = a.grid && f.grid && f.grid.rows > 1;
1381
+ u.length < v + m ? ae("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : y && f.grid.fill === "row" && ae("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
1382
1382
  const g = [], T = [];
1383
- let b = a.activeIndex;
1384
- typeof r > "u" ? r = a.getSlideIndex(u.filter((P) => P.classList.contains(f.slideActiveClass))[0]) : b = r;
1383
+ let w = a.activeIndex;
1384
+ typeof r > "u" ? r = a.getSlideIndex(u.filter((P) => P.classList.contains(f.slideActiveClass))[0]) : w = r;
1385
1385
  const I = s === "next" || !s, A = s === "prev" || !s;
1386
1386
  let C = 0, x = 0;
1387
- const w = S ? Math.ceil(u.length / f.grid.rows) : u.length, M = (S ? u[r].column : r) + (h && typeof n > "u" ? -v / 2 + 0.5 : 0);
1387
+ const S = y ? Math.ceil(u.length / f.grid.rows) : u.length, M = (y ? u[r].column : r) + (h && typeof n > "u" ? -v / 2 + 0.5 : 0);
1388
1388
  if (M < m) {
1389
- C = Math.max(m - M, y);
1389
+ C = Math.max(m - M, b);
1390
1390
  for (let P = 0; P < m - M; P += 1) {
1391
- const O = P - Math.floor(P / w) * w;
1392
- if (S) {
1393
- const D = w - O - 1;
1391
+ const O = P - Math.floor(P / S) * S;
1392
+ if (y) {
1393
+ const D = S - O - 1;
1394
1394
  for (let $ = u.length - 1; $ >= 0; $ -= 1)
1395
1395
  u[$].column === D && g.push($);
1396
1396
  } else
1397
- g.push(w - O - 1);
1397
+ g.push(S - O - 1);
1398
1398
  }
1399
- } else if (M + v > w - m) {
1400
- x = Math.max(M - (w - m * 2), y);
1399
+ } else if (M + v > S - m) {
1400
+ x = Math.max(M - (S - m * 2), b);
1401
1401
  for (let P = 0; P < x; P += 1) {
1402
- const O = P - Math.floor(P / w) * w;
1403
- S ? u.forEach((D, $) => {
1402
+ const O = P - Math.floor(P / S) * S;
1403
+ y ? u.forEach((D, $) => {
1404
1404
  D.column === O && T.push($);
1405
1405
  }) : T.push(O);
1406
1406
  }
@@ -1411,23 +1411,23 @@ function Ut(t) {
1411
1411
  u[P].swiperLoopMoveDOM = !0, p.prepend(u[P]), u[P].swiperLoopMoveDOM = !1;
1412
1412
  }), I && T.forEach((P) => {
1413
1413
  u[P].swiperLoopMoveDOM = !0, p.append(u[P]), u[P].swiperLoopMoveDOM = !1;
1414
- }), a.recalcSlides(), f.slidesPerView === "auto" ? a.updateSlides() : S && (g.length > 0 && A || T.length > 0 && I) && a.slides.forEach((P, O) => {
1414
+ }), a.recalcSlides(), f.slidesPerView === "auto" ? a.updateSlides() : y && (g.length > 0 && A || T.length > 0 && I) && a.slides.forEach((P, O) => {
1415
1415
  a.grid.updateSlide(O, P, a.slides);
1416
1416
  }), f.watchSlidesProgress && a.updateSlidesOffset(), i) {
1417
1417
  if (g.length > 0 && A) {
1418
1418
  if (typeof e > "u") {
1419
- const P = a.slidesGrid[b], D = a.slidesGrid[b + C] - P;
1420
- o ? a.setTranslate(a.translate - D) : (a.slideTo(b + Math.ceil(C), 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - D, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - D));
1419
+ const P = a.slidesGrid[w], D = a.slidesGrid[w + C] - P;
1420
+ o ? a.setTranslate(a.translate - D) : (a.slideTo(w + Math.ceil(C), 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - D, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - D));
1421
1421
  } else if (n) {
1422
- const P = S ? g.length / f.grid.rows : g.length;
1422
+ const P = y ? g.length / f.grid.rows : g.length;
1423
1423
  a.slideTo(a.activeIndex + P, 0, !1, !0), a.touchEventsData.currentTranslate = a.translate;
1424
1424
  }
1425
1425
  } else if (T.length > 0 && I)
1426
1426
  if (typeof e > "u") {
1427
- const P = a.slidesGrid[b], D = a.slidesGrid[b - x] - P;
1428
- o ? a.setTranslate(a.translate - D) : (a.slideTo(b - x, 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - D, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - D));
1427
+ const P = a.slidesGrid[w], D = a.slidesGrid[w - x] - P;
1428
+ o ? a.setTranslate(a.translate - D) : (a.slideTo(w - x, 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - D, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - D));
1429
1429
  } else {
1430
- const P = S ? T.length / f.grid.rows : T.length;
1430
+ const P = y ? T.length / f.grid.rows : T.length;
1431
1431
  a.slideTo(a.activeIndex - P, 0, !1, !0);
1432
1432
  }
1433
1433
  }
@@ -1451,7 +1451,7 @@ function Ut(t) {
1451
1451
  }
1452
1452
  a.emit("loopFix");
1453
1453
  }
1454
- function Kt() {
1454
+ function Zt() {
1455
1455
  const t = this, {
1456
1456
  params: e,
1457
1457
  slidesEl: i
@@ -1468,12 +1468,12 @@ function Kt() {
1468
1468
  i.append(n);
1469
1469
  }), t.recalcSlides(), t.slideTo(t.realIndex, 0);
1470
1470
  }
1471
- var Zt = {
1472
- loopCreate: Xt,
1473
- loopFix: Ut,
1474
- loopDestroy: Kt
1471
+ var Jt = {
1472
+ loopCreate: Ut,
1473
+ loopFix: Kt,
1474
+ loopDestroy: Zt
1475
1475
  };
1476
- function Jt(t) {
1476
+ function Qt(t) {
1477
1477
  const e = this;
1478
1478
  if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
1479
1479
  const i = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
@@ -1481,17 +1481,17 @@ function Jt(t) {
1481
1481
  e.__preventObserver__ = !1;
1482
1482
  });
1483
1483
  }
1484
- function Qt() {
1484
+ function ei() {
1485
1485
  const t = this;
1486
1486
  t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = !0), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
1487
1487
  t.__preventObserver__ = !1;
1488
1488
  }));
1489
1489
  }
1490
- var ei = {
1491
- setGrabCursor: Jt,
1492
- unsetGrabCursor: Qt
1490
+ var ti = {
1491
+ setGrabCursor: Qt,
1492
+ unsetGrabCursor: ei
1493
1493
  };
1494
- function ti(t, e) {
1494
+ function ii(t, e) {
1495
1495
  e === void 0 && (e = this);
1496
1496
  function i(s) {
1497
1497
  if (!s || s === j() || s === F()) return null;
@@ -1507,7 +1507,7 @@ function Le(t, e, i) {
1507
1507
  } = t, r = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
1508
1508
  return r && (i <= l || i >= s.innerWidth - l) ? r === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
1509
1509
  }
1510
- function ii(t) {
1510
+ function si(t) {
1511
1511
  const e = this, i = j();
1512
1512
  let s = t;
1513
1513
  s.originalEvent && (s = s.originalEvent);
@@ -1534,7 +1534,7 @@ function ii(t) {
1534
1534
  const u = !!r.noSwipingClass && r.noSwipingClass !== "", d = s.composedPath ? s.composedPath() : s.path;
1535
1535
  u && s.target && s.target.shadowRoot && d && (a = d[0]);
1536
1536
  const c = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, p = !!(s.target && s.target.shadowRoot);
1537
- if (r.noSwiping && (p ? ti(c, a) : a.closest(c))) {
1537
+ if (r.noSwiping && (p ? ii(c, a) : a.closest(c))) {
1538
1538
  e.allowClick = !0;
1539
1539
  return;
1540
1540
  }
@@ -1553,10 +1553,10 @@ function ii(t) {
1553
1553
  }), l.startX = f, l.startY = h, n.touchStartTime = ne(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, r.threshold > 0 && (n.allowThresholdMove = !1);
1554
1554
  let v = !0;
1555
1555
  a.matches(n.focusableElements) && (v = !1, a.nodeName === "SELECT" && (n.isTouched = !1)), i.activeElement && i.activeElement.matches(n.focusableElements) && i.activeElement !== a && i.activeElement.blur();
1556
- const y = v && e.allowTouchMove && r.touchStartPreventDefault;
1557
- (r.touchStartForcePreventDefault || y) && !a.isContentEditable && s.preventDefault(), r.freeMode && r.freeMode.enabled && e.freeMode && e.animating && !r.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", s);
1556
+ const b = v && e.allowTouchMove && r.touchStartPreventDefault;
1557
+ (r.touchStartForcePreventDefault || b) && !a.isContentEditable && s.preventDefault(), r.freeMode && r.freeMode.enabled && e.freeMode && e.animating && !r.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", s);
1558
1558
  }
1559
- function si(t) {
1559
+ function ri(t) {
1560
1560
  const e = j(), i = this, s = i.touchEventsData, {
1561
1561
  params: n,
1562
1562
  touches: r,
@@ -1619,11 +1619,11 @@ function si(t) {
1619
1619
  i.allowClick = !1, !n.cssMode && a.cancelable && a.preventDefault(), n.touchMoveStopPropagation && !n.nested && a.stopPropagation();
1620
1620
  let h = i.isHorizontal() ? p : f, v = i.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
1621
1621
  n.oneWayMovement && (h = Math.abs(h) * (l ? 1 : -1), v = Math.abs(v) * (l ? 1 : -1)), r.diff = h, h *= n.touchRatio, l && (h = -h, v = -v);
1622
- const y = i.touchesDirection;
1622
+ const b = i.touchesDirection;
1623
1623
  i.swipeDirection = h > 0 ? "prev" : "next", i.touchesDirection = v > 0 ? "prev" : "next";
1624
- const m = i.params.loop && !n.cssMode, S = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
1624
+ const m = i.params.loop && !n.cssMode, y = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
1625
1625
  if (!s.isMoved) {
1626
- if (m && S && i.loopFix({
1626
+ if (m && y && i.loopFix({
1627
1627
  direction: i.swipeDirection
1628
1628
  }), s.startTranslate = i.getTranslate(), i.setTransition(0), i.animating) {
1629
1629
  const I = new window.CustomEvent("transitionend", {
@@ -1638,7 +1638,7 @@ function si(t) {
1638
1638
  s.allowMomentumBounce = !1, n.grabCursor && (i.allowSlideNext === !0 || i.allowSlidePrev === !0) && i.setGrabCursor(!0), i.emit("sliderFirstMove", a);
1639
1639
  }
1640
1640
  let g;
1641
- if ((/* @__PURE__ */ new Date()).getTime(), s.isMoved && s.allowThresholdMove && y !== i.touchesDirection && m && S && Math.abs(h) >= 1) {
1641
+ if ((/* @__PURE__ */ new Date()).getTime(), s.isMoved && s.allowThresholdMove && b !== i.touchesDirection && m && y && Math.abs(h) >= 1) {
1642
1642
  Object.assign(r, {
1643
1643
  startX: d,
1644
1644
  startY: c,
@@ -1649,16 +1649,16 @@ function si(t) {
1649
1649
  return;
1650
1650
  }
1651
1651
  i.emit("sliderMove", a), s.isMoved = !0, s.currentTranslate = h + s.startTranslate;
1652
- let T = !0, b = n.resistanceRatio;
1653
- if (n.touchReleaseOnEdges && (b = 0), h > 0 ? (m && S && !g && s.allowThresholdMove && s.currentTranslate > (n.centeredSlides ? i.minTranslate() - i.slidesSizesGrid[i.activeIndex + 1] : i.minTranslate()) && i.loopFix({
1652
+ let T = !0, w = n.resistanceRatio;
1653
+ if (n.touchReleaseOnEdges && (w = 0), h > 0 ? (m && y && !g && s.allowThresholdMove && s.currentTranslate > (n.centeredSlides ? i.minTranslate() - i.slidesSizesGrid[i.activeIndex + 1] : i.minTranslate()) && i.loopFix({
1654
1654
  direction: "prev",
1655
1655
  setTranslate: !0,
1656
1656
  activeSlideIndex: 0
1657
- }), s.currentTranslate > i.minTranslate() && (T = !1, n.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + h) ** b))) : h < 0 && (m && S && !g && s.allowThresholdMove && s.currentTranslate < (n.centeredSlides ? i.maxTranslate() + i.slidesSizesGrid[i.slidesSizesGrid.length - 1] : i.maxTranslate()) && i.loopFix({
1657
+ }), s.currentTranslate > i.minTranslate() && (T = !1, n.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + h) ** w))) : h < 0 && (m && y && !g && s.allowThresholdMove && s.currentTranslate < (n.centeredSlides ? i.maxTranslate() + i.slidesSizesGrid[i.slidesSizesGrid.length - 1] : i.maxTranslate()) && i.loopFix({
1658
1658
  direction: "next",
1659
1659
  setTranslate: !0,
1660
1660
  activeSlideIndex: i.slides.length - (n.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
1661
- }), s.currentTranslate < i.maxTranslate() && (T = !1, n.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - h) ** b))), T && (a.preventedByNestedSwiper = !0), !i.allowSlideNext && i.swipeDirection === "next" && s.currentTranslate < s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && i.swipeDirection === "prev" && s.currentTranslate > s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && !i.allowSlideNext && (s.currentTranslate = s.startTranslate), n.threshold > 0)
1661
+ }), s.currentTranslate < i.maxTranslate() && (T = !1, n.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - h) ** w))), T && (a.preventedByNestedSwiper = !0), !i.allowSlideNext && i.swipeDirection === "next" && s.currentTranslate < s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && i.swipeDirection === "prev" && s.currentTranslate > s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && !i.allowSlideNext && (s.currentTranslate = s.startTranslate), n.threshold > 0)
1662
1662
  if (Math.abs(h) > n.threshold || s.allowThresholdMove) {
1663
1663
  if (!s.allowThresholdMove) {
1664
1664
  s.allowThresholdMove = !0, r.startX = r.currentX, r.startY = r.currentY, s.currentTranslate = s.startTranslate, r.diff = i.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY;
@@ -1670,13 +1670,13 @@ function si(t) {
1670
1670
  }
1671
1671
  !n.followFinger || n.cssMode || ((n.freeMode && n.freeMode.enabled && i.freeMode || n.watchSlidesProgress) && (i.updateActiveIndex(), i.updateSlidesClasses()), n.freeMode && n.freeMode.enabled && i.freeMode && i.freeMode.onTouchMove(), i.updateProgress(s.currentTranslate), i.setTranslate(s.currentTranslate));
1672
1672
  }
1673
- function ri(t) {
1673
+ function ni(t) {
1674
1674
  const e = this, i = e.touchEventsData;
1675
1675
  let s = t;
1676
1676
  s.originalEvent && (s = s.originalEvent);
1677
1677
  let n;
1678
1678
  if (s.type === "touchend" || s.type === "touchcancel") {
1679
- if (n = [...s.changedTouches].filter((b) => b.identifier === i.touchId)[0], !n || n.identifier !== i.touchId) return;
1679
+ if (n = [...s.changedTouches].filter((w) => w.identifier === i.touchId)[0], !n || n.identifier !== i.touchId) return;
1680
1680
  } else {
1681
1681
  if (i.touchId !== null || s.pointerId !== i.pointerId) return;
1682
1682
  n = s;
@@ -1699,8 +1699,8 @@ function ri(t) {
1699
1699
  l.grabCursor && i.isMoved && i.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
1700
1700
  const c = ne(), p = c - i.touchStartTime;
1701
1701
  if (e.allowClick) {
1702
- const b = s.path || s.composedPath && s.composedPath();
1703
- e.updateClickedSlide(b && b[0] || s.target, b), e.emit("tap click", s), p < 300 && c - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", s);
1702
+ const w = s.path || s.composedPath && s.composedPath();
1703
+ e.updateClickedSlide(w && w[0] || s.target, w), e.emit("tap click", s), p < 300 && c - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", s);
1704
1704
  }
1705
1705
  if (i.lastClickTime = ne(), ge(() => {
1706
1706
  e.destroyed || (e.allowClick = !0);
@@ -1719,26 +1719,26 @@ function ri(t) {
1719
1719
  return;
1720
1720
  }
1721
1721
  const h = f >= -e.maxTranslate() && !e.params.loop;
1722
- let v = 0, y = e.slidesSizesGrid[0];
1723
- for (let b = 0; b < u.length; b += b < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
1724
- const I = b < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1725
- typeof u[b + I] < "u" ? (h || f >= u[b] && f < u[b + I]) && (v = b, y = u[b + I] - u[b]) : (h || f >= u[b]) && (v = b, y = u[u.length - 1] - u[u.length - 2]);
1726
- }
1727
- let m = null, S = null;
1728
- l.rewind && (e.isBeginning ? S = l.virtual && l.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (m = 0));
1729
- const g = (f - u[v]) / y, T = v < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1722
+ let v = 0, b = e.slidesSizesGrid[0];
1723
+ for (let w = 0; w < u.length; w += w < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
1724
+ const I = w < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1725
+ typeof u[w + I] < "u" ? (h || f >= u[w] && f < u[w + I]) && (v = w, b = u[w + I] - u[w]) : (h || f >= u[w]) && (v = w, b = u[u.length - 1] - u[u.length - 2]);
1726
+ }
1727
+ let m = null, y = null;
1728
+ l.rewind && (e.isBeginning ? y = l.virtual && l.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (m = 0));
1729
+ const g = (f - u[v]) / b, T = v < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1730
1730
  if (p > l.longSwipesMs) {
1731
1731
  if (!l.longSwipes) {
1732
1732
  e.slideTo(e.activeIndex);
1733
1733
  return;
1734
1734
  }
1735
- e.swipeDirection === "next" && (g >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? m : v + T) : e.slideTo(v)), e.swipeDirection === "prev" && (g > 1 - l.longSwipesRatio ? e.slideTo(v + T) : S !== null && g < 0 && Math.abs(g) > l.longSwipesRatio ? e.slideTo(S) : e.slideTo(v));
1735
+ e.swipeDirection === "next" && (g >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? m : v + T) : e.slideTo(v)), e.swipeDirection === "prev" && (g > 1 - l.longSwipesRatio ? e.slideTo(v + T) : y !== null && g < 0 && Math.abs(g) > l.longSwipesRatio ? e.slideTo(y) : e.slideTo(v));
1736
1736
  } else {
1737
1737
  if (!l.shortSwipes) {
1738
1738
  e.slideTo(e.activeIndex);
1739
1739
  return;
1740
1740
  }
1741
- e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(v + T) : e.slideTo(v) : (e.swipeDirection === "next" && e.slideTo(m !== null ? m : v + T), e.swipeDirection === "prev" && e.slideTo(S !== null ? S : v));
1741
+ e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(v + T) : e.slideTo(v) : (e.swipeDirection === "next" && e.slideTo(m !== null ? m : v + T), e.swipeDirection === "prev" && e.slideTo(y !== null ? y : v));
1742
1742
  }
1743
1743
  }
1744
1744
  function Oe() {
@@ -1759,11 +1759,11 @@ function Oe() {
1759
1759
  t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
1760
1760
  }, 500)), t.allowSlidePrev = n, t.allowSlideNext = s, t.params.watchOverflow && r !== t.snapGrid && t.checkOverflow();
1761
1761
  }
1762
- function ni(t) {
1762
+ function ai(t) {
1763
1763
  const e = this;
1764
1764
  e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
1765
1765
  }
1766
- function ai() {
1766
+ function li() {
1767
1767
  const t = this, {
1768
1768
  wrapperEl: e,
1769
1769
  rtlTranslate: i,
@@ -1775,11 +1775,11 @@ function ai() {
1775
1775
  const r = t.maxTranslate() - t.minTranslate();
1776
1776
  r === 0 ? n = 0 : n = (t.translate - t.minTranslate()) / r, n !== t.progress && t.updateProgress(i ? -t.translate : t.translate), t.emit("setTranslate", t.translate, !1);
1777
1777
  }
1778
- function li(t) {
1778
+ function oi(t) {
1779
1779
  const e = this;
1780
1780
  se(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
1781
1781
  }
1782
- function oi() {
1782
+ function di() {
1783
1783
  const t = this;
1784
1784
  t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
1785
1785
  }
@@ -1821,21 +1821,21 @@ const Re = (t, e) => {
1821
1821
  capture: !0
1822
1822
  }));
1823
1823
  };
1824
- function di() {
1824
+ function ci() {
1825
1825
  const t = this, {
1826
1826
  params: e
1827
1827
  } = t;
1828
- t.onTouchStart = ii.bind(t), t.onTouchMove = si.bind(t), t.onTouchEnd = ri.bind(t), t.onDocumentTouchStart = oi.bind(t), e.cssMode && (t.onScroll = ai.bind(t)), t.onClick = ni.bind(t), t.onLoad = li.bind(t), Re(t, "on");
1828
+ t.onTouchStart = si.bind(t), t.onTouchMove = ri.bind(t), t.onTouchEnd = ni.bind(t), t.onDocumentTouchStart = di.bind(t), e.cssMode && (t.onScroll = li.bind(t)), t.onClick = ai.bind(t), t.onLoad = oi.bind(t), Re(t, "on");
1829
1829
  }
1830
- function ci() {
1830
+ function ui() {
1831
1831
  Re(this, "off");
1832
1832
  }
1833
- var ui = {
1834
- attachEvents: di,
1835
- detachEvents: ci
1833
+ var fi = {
1834
+ attachEvents: ci,
1835
+ detachEvents: ui
1836
1836
  };
1837
1837
  const _e = (t, e) => t.grid && e.grid && e.grid.rows > 1;
1838
- function fi() {
1838
+ function pi() {
1839
1839
  const t = this, {
1840
1840
  realIndex: e,
1841
1841
  initialized: i,
@@ -1848,19 +1848,19 @@ function fi() {
1848
1848
  const a = (l in r ? r[l] : void 0) || t.originalParams, u = _e(t, s), d = _e(t, a), c = t.params.grabCursor, p = a.grabCursor, f = s.enabled;
1849
1849
  u && !d ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), t.emitContainerClasses()) : !u && d && (n.classList.add(`${s.containerModifierClass}grid`), (a.grid.fill && a.grid.fill === "column" || !a.grid.fill && s.grid.fill === "column") && n.classList.add(`${s.containerModifierClass}grid-column`), t.emitContainerClasses()), c && !p ? t.unsetGrabCursor() : !c && p && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((g) => {
1850
1850
  if (typeof a[g] > "u") return;
1851
- const T = s[g] && s[g].enabled, b = a[g] && a[g].enabled;
1852
- T && !b && t[g].disable(), !T && b && t[g].enable();
1851
+ const T = s[g] && s[g].enabled, w = a[g] && a[g].enabled;
1852
+ T && !w && t[g].disable(), !T && w && t[g].enable();
1853
1853
  });
1854
- const h = a.direction && a.direction !== s.direction, v = s.loop && (a.slidesPerView !== s.slidesPerView || h), y = s.loop;
1854
+ const h = a.direction && a.direction !== s.direction, v = s.loop && (a.slidesPerView !== s.slidesPerView || h), b = s.loop;
1855
1855
  h && i && t.changeDirection(), B(t.params, a);
1856
- const m = t.params.enabled, S = t.params.loop;
1856
+ const m = t.params.enabled, y = t.params.loop;
1857
1857
  Object.assign(t, {
1858
1858
  allowTouchMove: t.params.allowTouchMove,
1859
1859
  allowSlideNext: t.params.allowSlideNext,
1860
1860
  allowSlidePrev: t.params.allowSlidePrev
1861
- }), f && !m ? t.disable() : !f && m && t.enable(), t.currentBreakpoint = l, t.emit("_beforeBreakpoint", a), i && (v ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !y && S ? (t.loopCreate(e), t.updateSlides()) : y && !S && t.loopDestroy()), t.emit("breakpoint", a);
1861
+ }), f && !m ? t.disable() : !f && m && t.enable(), t.currentBreakpoint = l, t.emit("_beforeBreakpoint", a), i && (v ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !b && y ? (t.loopCreate(e), t.updateSlides()) : b && !y && t.loopDestroy()), t.emit("breakpoint", a);
1862
1862
  }
1863
- function pi(t, e, i) {
1863
+ function mi(t, e, i) {
1864
1864
  if (e === void 0 && (e = "window"), !t || e === "container" && !i) return;
1865
1865
  let s = !1;
1866
1866
  const n = F(), r = e === "window" ? n.innerHeight : i.clientHeight, l = Object.keys(t).map((o) => {
@@ -1886,11 +1886,11 @@ function pi(t, e, i) {
1886
1886
  }
1887
1887
  return s || "max";
1888
1888
  }
1889
- var mi = {
1890
- setBreakpoint: fi,
1891
- getBreakpoint: pi
1889
+ var hi = {
1890
+ setBreakpoint: pi,
1891
+ getBreakpoint: mi
1892
1892
  };
1893
- function hi(t, e) {
1893
+ function gi(t, e) {
1894
1894
  const i = [];
1895
1895
  return t.forEach((s) => {
1896
1896
  typeof s == "object" ? Object.keys(s).forEach((n) => {
@@ -1898,14 +1898,14 @@ function hi(t, e) {
1898
1898
  }) : typeof s == "string" && i.push(e + s);
1899
1899
  }), i;
1900
1900
  }
1901
- function gi() {
1901
+ function vi() {
1902
1902
  const t = this, {
1903
1903
  classNames: e,
1904
1904
  params: i,
1905
1905
  rtl: s,
1906
1906
  el: n,
1907
1907
  device: r
1908
- } = t, l = hi(["initialized", i.direction, {
1908
+ } = t, l = gi(["initialized", i.direction, {
1909
1909
  "free-mode": t.params.freeMode && i.freeMode.enabled
1910
1910
  }, {
1911
1911
  autoheight: i.autoHeight
@@ -1928,18 +1928,18 @@ function gi() {
1928
1928
  }], i.containerModifierClass);
1929
1929
  e.push(...l), n.classList.add(...e), t.emitContainerClasses();
1930
1930
  }
1931
- function vi() {
1931
+ function wi() {
1932
1932
  const t = this, {
1933
1933
  el: e,
1934
1934
  classNames: i
1935
1935
  } = t;
1936
1936
  !e || typeof e == "string" || (e.classList.remove(...i), t.emitContainerClasses());
1937
1937
  }
1938
- var wi = {
1939
- addClasses: gi,
1940
- removeClasses: vi
1938
+ var Si = {
1939
+ addClasses: vi,
1940
+ removeClasses: wi
1941
1941
  };
1942
- function Si() {
1942
+ function Ti() {
1943
1943
  const t = this, {
1944
1944
  isLocked: e,
1945
1945
  params: i
@@ -1953,8 +1953,8 @@ function Si() {
1953
1953
  t.isLocked = t.snapGrid.length === 1;
1954
1954
  i.allowSlideNext === !0 && (t.allowSlideNext = !t.isLocked), i.allowSlidePrev === !0 && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = !1), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
1955
1955
  }
1956
- var Ti = {
1957
- checkOverflow: Si
1956
+ var bi = {
1957
+ checkOverflow: Ti
1958
1958
  }, Se = {
1959
1959
  init: !0,
1960
1960
  direction: "horizontal",
@@ -2076,7 +2076,7 @@ var Ti = {
2076
2076
  // Internals
2077
2077
  _emitClasses: !1
2078
2078
  };
2079
- function bi(t, e) {
2079
+ function yi(t, e) {
2080
2080
  return function(s) {
2081
2081
  s === void 0 && (s = {});
2082
2082
  const n = Object.keys(s)[0], r = s[n];
@@ -2096,17 +2096,17 @@ function bi(t, e) {
2096
2096
  };
2097
2097
  }
2098
2098
  const pe = {
2099
- eventsEmitter: wt,
2100
- update: Lt,
2101
- translate: Gt,
2102
- transition: Ft,
2103
- slide: Yt,
2104
- loop: Zt,
2105
- grabCursor: ei,
2106
- events: ui,
2107
- breakpoints: mi,
2108
- checkOverflow: Ti,
2109
- classes: wi
2099
+ eventsEmitter: St,
2100
+ update: Ot,
2101
+ translate: Nt,
2102
+ transition: $t,
2103
+ slide: Xt,
2104
+ loop: Jt,
2105
+ grabCursor: ti,
2106
+ events: fi,
2107
+ breakpoints: hi,
2108
+ checkOverflow: bi,
2109
+ classes: Si
2110
2110
  }, me = {};
2111
2111
  let ye = class k {
2112
2112
  constructor() {
@@ -2127,13 +2127,13 @@ let ye = class k {
2127
2127
  const o = this;
2128
2128
  o.__swiper__ = !0, o.support = Be(), o.device = Fe({
2129
2129
  userAgent: i.userAgent
2130
- }), o.browser = ht(), o.eventsListeners = {}, o.eventsAnyListeners = [], o.modules = [...o.__modules__], i.modules && Array.isArray(i.modules) && o.modules.push(...i.modules);
2130
+ }), o.browser = gt(), o.eventsListeners = {}, o.eventsAnyListeners = [], o.modules = [...o.__modules__], i.modules && Array.isArray(i.modules) && o.modules.push(...i.modules);
2131
2131
  const a = {};
2132
2132
  o.modules.forEach((d) => {
2133
2133
  d({
2134
2134
  params: i,
2135
2135
  swiper: o,
2136
- extendParams: bi(i, a),
2136
+ extendParams: yi(i, a),
2137
2137
  on: o.on.bind(o),
2138
2138
  once: o.once.bind(o),
2139
2139
  off: o.off.bind(o),
@@ -2391,7 +2391,7 @@ let ye = class k {
2391
2391
  a.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), a.removeAttribute("style"), a.removeAttribute("data-swiper-slide-index");
2392
2392
  })), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((a) => {
2393
2393
  s.off(a);
2394
- }), e !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null), rt(s)), s.destroyed = !0), null;
2394
+ }), e !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null), nt(s)), s.destroyed = !0), null;
2395
2395
  }
2396
2396
  static extendDefaults(e) {
2397
2397
  B(me, e);
@@ -2416,7 +2416,7 @@ Object.keys(pe).forEach((t) => {
2416
2416
  ye.prototype[e] = pe[t][e];
2417
2417
  });
2418
2418
  });
2419
- ye.use([gt, vt]);
2419
+ ye.use([vt, wt]);
2420
2420
  const ke = [
2421
2421
  "eventsPrefix",
2422
2422
  "injectStyles",
@@ -2561,10 +2561,10 @@ function qe(t) {
2561
2561
  i.indexOf(s) < 0 && i.push(s);
2562
2562
  }), i.join(" ");
2563
2563
  }
2564
- function yi(t) {
2564
+ function xi(t) {
2565
2565
  return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
2566
2566
  }
2567
- function xi(t) {
2567
+ function Ei(t) {
2568
2568
  let {
2569
2569
  swiper: e,
2570
2570
  slides: i,
@@ -2583,21 +2583,21 @@ function xi(t) {
2583
2583
  virtual: h,
2584
2584
  thumbs: v
2585
2585
  } = e;
2586
- let y, m, S, g, T, b, I, A;
2587
- n.includes("thumbs") && s.thumbs && s.thumbs.swiper && d.thumbs && !d.thumbs.swiper && (y = !0), n.includes("controller") && s.controller && s.controller.control && d.controller && !d.controller.control && (m = !0), n.includes("pagination") && s.pagination && (s.pagination.el || a) && (d.pagination || d.pagination === !1) && c && !c.el && (S = !0), n.includes("scrollbar") && s.scrollbar && (s.scrollbar.el || o) && (d.scrollbar || d.scrollbar === !1) && f && !f.el && (g = !0), n.includes("navigation") && s.navigation && (s.navigation.prevEl || l) && (s.navigation.nextEl || r) && (d.navigation || d.navigation === !1) && p && !p.prevEl && !p.nextEl && (T = !0);
2586
+ let b, m, y, g, T, w, I, A;
2587
+ n.includes("thumbs") && s.thumbs && s.thumbs.swiper && d.thumbs && !d.thumbs.swiper && (b = !0), n.includes("controller") && s.controller && s.controller.control && d.controller && !d.controller.control && (m = !0), n.includes("pagination") && s.pagination && (s.pagination.el || a) && (d.pagination || d.pagination === !1) && c && !c.el && (y = !0), n.includes("scrollbar") && s.scrollbar && (s.scrollbar.el || o) && (d.scrollbar || d.scrollbar === !1) && f && !f.el && (g = !0), n.includes("navigation") && s.navigation && (s.navigation.prevEl || l) && (s.navigation.nextEl || r) && (d.navigation || d.navigation === !1) && p && !p.prevEl && !p.nextEl && (T = !0);
2588
2588
  const C = (x) => {
2589
2589
  e[x] && (e[x].destroy(), x === "navigation" ? (e.isElement && (e[x].prevEl.remove(), e[x].nextEl.remove()), d[x].prevEl = void 0, d[x].nextEl = void 0, e[x].prevEl = void 0, e[x].nextEl = void 0) : (e.isElement && e[x].el.remove(), d[x].el = void 0, e[x].el = void 0));
2590
2590
  };
2591
- n.includes("loop") && e.isElement && (d.loop && !s.loop ? b = !0 : !d.loop && s.loop ? I = !0 : A = !0), u.forEach((x) => {
2591
+ n.includes("loop") && e.isElement && (d.loop && !s.loop ? w = !0 : !d.loop && s.loop ? I = !0 : A = !0), u.forEach((x) => {
2592
2592
  if (Y(d[x]) && Y(s[x]))
2593
2593
  Object.assign(d[x], s[x]), (x === "navigation" || x === "pagination" || x === "scrollbar") && "enabled" in s[x] && !s[x].enabled && C(x);
2594
2594
  else {
2595
- const w = s[x];
2596
- (w === !0 || w === !1) && (x === "navigation" || x === "pagination" || x === "scrollbar") ? w === !1 && C(x) : d[x] = s[x];
2595
+ const S = s[x];
2596
+ (S === !0 || S === !1) && (x === "navigation" || x === "pagination" || x === "scrollbar") ? S === !1 && C(x) : d[x] = s[x];
2597
2597
  }
2598
- }), u.includes("controller") && !m && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && i && h && d.virtual.enabled ? (h.slides = i, h.update(!0)) : n.includes("virtual") && h && d.virtual.enabled && (i && (h.slides = i), h.update(!0)), n.includes("children") && i && d.loop && (A = !0), y && v.init() && v.update(!0), m && (e.controller.control = d.controller.control), S && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-pagination"), a.part.add("pagination"), e.el.appendChild(a)), a && (d.pagination.el = a), c.init(), c.render(), c.update()), g && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-scrollbar"), o.part.add("scrollbar"), e.el.appendChild(o)), o && (d.scrollbar.el = o), f.init(), f.updateSize(), f.setTranslate()), T && (e.isElement && ((!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-next"), r.innerHTML = e.hostEl.constructor.nextButtonSvg, r.part.add("button-next"), e.el.appendChild(r)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), l.innerHTML = e.hostEl.constructor.prevButtonSvg, l.part.add("button-prev"), e.el.appendChild(l))), r && (d.navigation.nextEl = r), l && (d.navigation.prevEl = l), p.init(), p.update()), n.includes("allowSlideNext") && (e.allowSlideNext = s.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = s.allowSlidePrev), n.includes("direction") && e.changeDirection(s.direction, !1), (b || A) && e.loopDestroy(), (I || A) && e.loopCreate(), e.update();
2598
+ }), u.includes("controller") && !m && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && i && h && d.virtual.enabled ? (h.slides = i, h.update(!0)) : n.includes("virtual") && h && d.virtual.enabled && (i && (h.slides = i), h.update(!0)), n.includes("children") && i && d.loop && (A = !0), b && v.init() && v.update(!0), m && (e.controller.control = d.controller.control), y && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-pagination"), a.part.add("pagination"), e.el.appendChild(a)), a && (d.pagination.el = a), c.init(), c.render(), c.update()), g && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-scrollbar"), o.part.add("scrollbar"), e.el.appendChild(o)), o && (d.scrollbar.el = o), f.init(), f.updateSize(), f.setTranslate()), T && (e.isElement && ((!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-next"), r.innerHTML = e.hostEl.constructor.nextButtonSvg, r.part.add("button-next"), e.el.appendChild(r)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), l.innerHTML = e.hostEl.constructor.prevButtonSvg, l.part.add("button-prev"), e.el.appendChild(l))), r && (d.navigation.nextEl = r), l && (d.navigation.prevEl = l), p.init(), p.update()), n.includes("allowSlideNext") && (e.allowSlideNext = s.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = s.allowSlidePrev), n.includes("direction") && e.changeDirection(s.direction, !1), (w || A) && e.loopDestroy(), (I || A) && e.loopCreate(), e.update();
2599
2599
  }
2600
- function Ei(t, e) {
2600
+ function Pi(t, e) {
2601
2601
  t === void 0 && (t = {}), e === void 0 && (e = !0);
2602
2602
  const i = {
2603
2603
  on: {}
@@ -2615,7 +2615,7 @@ function Ei(t, e) {
2615
2615
  events: s
2616
2616
  };
2617
2617
  }
2618
- function Pi(t, e) {
2618
+ function Mi(t, e) {
2619
2619
  let {
2620
2620
  el: i,
2621
2621
  nextEl: s,
@@ -2626,7 +2626,7 @@ function Pi(t, e) {
2626
2626
  } = t;
2627
2627
  He(e) && s && n && (o.params.navigation.nextEl = s, o.originalParams.navigation.nextEl = s, o.params.navigation.prevEl = n, o.originalParams.navigation.prevEl = n), je(e) && r && (o.params.pagination.el = r, o.originalParams.pagination.el = r), We(e) && l && (o.params.scrollbar.el = l, o.originalParams.scrollbar.el = l), o.init(i);
2628
2628
  }
2629
- function Mi(t, e, i, s, n) {
2629
+ function Ci(t, e, i, s, n) {
2630
2630
  const r = [];
2631
2631
  if (!e) return r;
2632
2632
  const l = (a) => {
@@ -2648,7 +2648,7 @@ function Mi(t, e, i, s, n) {
2648
2648
  } else t[a] !== e[a] && l(a);
2649
2649
  }), r;
2650
2650
  }
2651
- const Ci = (t) => {
2651
+ const Ii = (t) => {
2652
2652
  !t || t.destroyed || !t.params.virtual || t.params.virtual && !t.params.virtual.enabled || (t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.parallax && t.params.parallax && t.params.parallax.enabled && t.parallax.setTranslate());
2653
2653
  };
2654
2654
  function le() {
@@ -2670,7 +2670,7 @@ function Xe(t) {
2670
2670
  Ye(i) ? e.push(i) : i.props && i.props.children && Xe(i.props.children).forEach((s) => e.push(s));
2671
2671
  }), e;
2672
2672
  }
2673
- function Ii(t) {
2673
+ function Li(t) {
2674
2674
  const e = [], i = {
2675
2675
  "container-start": [],
2676
2676
  "container-end": [],
@@ -2692,7 +2692,7 @@ function Ii(t) {
2692
2692
  slots: i
2693
2693
  };
2694
2694
  }
2695
- function Li(t, e, i) {
2695
+ function Oi(t, e, i) {
2696
2696
  if (!i) return null;
2697
2697
  const s = (d) => {
2698
2698
  let c = d;
@@ -2714,9 +2714,9 @@ function Li(t, e, i) {
2714
2714
  }));
2715
2715
  }
2716
2716
  function Q(t, e) {
2717
- return typeof window > "u" ? he(t, e) : Je(t, e);
2717
+ return typeof window > "u" ? he(t, e) : Qe(t, e);
2718
2718
  }
2719
- const ze = /* @__PURE__ */ De(null), Ue = /* @__PURE__ */ De(null), Oi = () => Qe(Ue), Ke = /* @__PURE__ */ Te(function(t, e) {
2719
+ const ze = /* @__PURE__ */ De(null), Ue = /* @__PURE__ */ De(null), _i = () => et(Ue), Ke = /* @__PURE__ */ Te(function(t, e) {
2720
2720
  let {
2721
2721
  className: i,
2722
2722
  tag: s = "div",
@@ -2725,15 +2725,15 @@ const ze = /* @__PURE__ */ De(null), Ue = /* @__PURE__ */ De(null), Oi = () => Q
2725
2725
  onSwiper: l,
2726
2726
  ...o
2727
2727
  } = t === void 0 ? {} : t, a = !1;
2728
- const [u, d] = K("swiper"), [c, p] = K(null), [f, h] = K(!1), v = R(!1), y = R(null), m = R(null), S = R(null), g = R(null), T = R(null), b = R(null), I = R(null), A = R(null), {
2728
+ const [u, d] = K("swiper"), [c, p] = K(null), [f, h] = K(!1), v = R(!1), b = R(null), m = R(null), y = R(null), g = R(null), T = R(null), w = R(null), I = R(null), A = R(null), {
2729
2729
  params: C,
2730
2730
  passedParams: x,
2731
- rest: w,
2731
+ rest: S,
2732
2732
  events: E
2733
- } = Ei(o), {
2733
+ } = Pi(o), {
2734
2734
  slides: M,
2735
2735
  slots: P
2736
- } = Ii(r), O = () => {
2736
+ } = Li(r), O = () => {
2737
2737
  h(!f);
2738
2738
  };
2739
2739
  Object.assign(C.on, {
@@ -2757,7 +2757,7 @@ const ze = /* @__PURE__ */ De(null), Ue = /* @__PURE__ */ De(null), Oi = () => Q
2757
2757
  Z(m.current.params.virtual, z), Z(m.current.originalParams.virtual, z);
2758
2758
  }
2759
2759
  };
2760
- y.current || D(), m.current && m.current.on("_beforeBreakpoint", O);
2760
+ b.current || D(), m.current && m.current.on("_beforeBreakpoint", O);
2761
2761
  const $ = () => {
2762
2762
  a || !E || !m.current || Object.keys(E).forEach((_) => {
2763
2763
  m.current.on(_, E[_]);
@@ -2772,11 +2772,11 @@ const ze = /* @__PURE__ */ De(null), Ue = /* @__PURE__ */ De(null), Oi = () => Q
2772
2772
  }), he(() => {
2773
2773
  !v.current && m.current && (m.current.emitSlidesClasses(), v.current = !0);
2774
2774
  }), Q(() => {
2775
- if (e && (e.current = y.current), !!y.current)
2776
- return m.current.destroyed && D(), Pi({
2777
- el: y.current,
2775
+ if (e && (e.current = b.current), !!b.current)
2776
+ return m.current.destroyed && D(), Mi({
2777
+ el: b.current,
2778
2778
  nextEl: T.current,
2779
- prevEl: b.current,
2779
+ prevEl: w.current,
2780
2780
  paginationEl: I.current,
2781
2781
  scrollbarEl: A.current,
2782
2782
  swiper: m.current
@@ -2785,37 +2785,37 @@ const ze = /* @__PURE__ */ De(null), Ue = /* @__PURE__ */ De(null), Oi = () => Q
2785
2785
  };
2786
2786
  }, []), Q(() => {
2787
2787
  $();
2788
- const _ = Mi(x, S.current, M, g.current, (z) => z.key);
2789
- return S.current = x, g.current = M, _.length && m.current && !m.current.destroyed && xi({
2788
+ const _ = Ci(x, y.current, M, g.current, (z) => z.key);
2789
+ return y.current = x, g.current = M, _.length && m.current && !m.current.destroyed && Ei({
2790
2790
  swiper: m.current,
2791
2791
  slides: M,
2792
2792
  passedParams: x,
2793
2793
  changedParams: _,
2794
2794
  nextEl: T.current,
2795
- prevEl: b.current,
2795
+ prevEl: w.current,
2796
2796
  scrollbarEl: A.current,
2797
2797
  paginationEl: I.current
2798
2798
  }), () => {
2799
2799
  J();
2800
2800
  };
2801
2801
  }), Q(() => {
2802
- Ci(m.current);
2802
+ Ii(m.current);
2803
2803
  }, [c]);
2804
2804
  function L() {
2805
- return C.virtual ? Li(m.current, M, c) : M.map((_, z) => /* @__PURE__ */ G.cloneElement(_, {
2805
+ return C.virtual ? Oi(m.current, M, c) : M.map((_, z) => /* @__PURE__ */ G.cloneElement(_, {
2806
2806
  swiper: m.current,
2807
2807
  swiperSlideIndex: z
2808
2808
  }));
2809
2809
  }
2810
2810
  return /* @__PURE__ */ G.createElement(s, le({
2811
- ref: y,
2811
+ ref: b,
2812
2812
  className: qe(`${u}${i ? ` ${i}` : ""}`)
2813
- }, w), /* @__PURE__ */ G.createElement(Ue.Provider, {
2813
+ }, S), /* @__PURE__ */ G.createElement(Ue.Provider, {
2814
2814
  value: m.current
2815
2815
  }, P["container-start"], /* @__PURE__ */ G.createElement(n, {
2816
- className: yi(C.wrapperClass)
2816
+ className: xi(C.wrapperClass)
2817
2817
  }, P["wrapper-start"], L(), P["wrapper-end"]), He(C) && /* @__PURE__ */ G.createElement(G.Fragment, null, /* @__PURE__ */ G.createElement("div", {
2818
- ref: b,
2818
+ ref: w,
2819
2819
  className: "swiper-button-prev"
2820
2820
  }), /* @__PURE__ */ G.createElement("div", {
2821
2821
  ref: T,
@@ -2842,8 +2842,8 @@ const Ze = /* @__PURE__ */ Te(function(t, e) {
2842
2842
  ...d
2843
2843
  } = t === void 0 ? {} : t;
2844
2844
  const c = R(null), [p, f] = K("swiper-slide"), [h, v] = K(!1);
2845
- function y(T, b, I) {
2846
- b === c.current && f(I);
2845
+ function b(T, w, I) {
2846
+ w === c.current && f(I);
2847
2847
  }
2848
2848
  Q(() => {
2849
2849
  if (typeof u < "u" && (c.current.swiperSlideIndex = u), e && (e.current = c.current), !(!c.current || !r)) {
@@ -2851,8 +2851,8 @@ const Ze = /* @__PURE__ */ Te(function(t, e) {
2851
2851
  p !== "swiper-slide" && f("swiper-slide");
2852
2852
  return;
2853
2853
  }
2854
- return r.on("_slideClass", y), () => {
2855
- r && r.off("_slideClass", y);
2854
+ return r.on("_slideClass", b), () => {
2855
+ r && r.off("_slideClass", b);
2856
2856
  };
2857
2857
  }
2858
2858
  }), Q(() => {
@@ -2863,7 +2863,7 @@ const Ze = /* @__PURE__ */ Te(function(t, e) {
2863
2863
  isVisible: p.indexOf("swiper-slide-visible") >= 0,
2864
2864
  isPrev: p.indexOf("swiper-slide-prev") >= 0,
2865
2865
  isNext: p.indexOf("swiper-slide-next") >= 0
2866
- }, S = () => typeof s == "function" ? s(m) : s, g = () => {
2866
+ }, y = () => typeof s == "function" ? s(m) : s, g = () => {
2867
2867
  v(!0);
2868
2868
  };
2869
2869
  return /* @__PURE__ */ G.createElement(i, le({
@@ -2876,35 +2876,35 @@ const Ze = /* @__PURE__ */ Te(function(t, e) {
2876
2876
  }, /* @__PURE__ */ G.createElement("div", {
2877
2877
  className: "swiper-zoom-container",
2878
2878
  "data-swiper-zoom": typeof l == "number" ? l : void 0
2879
- }, S(), o && !h && /* @__PURE__ */ G.createElement("div", {
2879
+ }, y(), o && !h && /* @__PURE__ */ G.createElement("div", {
2880
2880
  className: "swiper-lazy-preloader"
2881
2881
  }))), !l && /* @__PURE__ */ G.createElement(ze.Provider, {
2882
2882
  value: m
2883
- }, S(), o && !h && /* @__PURE__ */ G.createElement("div", {
2883
+ }, y(), o && !h && /* @__PURE__ */ G.createElement("div", {
2884
2884
  className: "swiper-lazy-preloader"
2885
2885
  })));
2886
2886
  });
2887
2887
  Ze.displayName = "SwiperSlide";
2888
- const _i = "_swiper_1f4c7_3", zi = "_slide_1f4c7_9", Ai = "_link_1f4c7_16", Di = "_image_1f4c7_22", Gi = "_navigation_1f4c7_29", Ni = "_pagination_1f4c7_39", Vi = "_slides_1f4c7_58", Bi = "_separator_1f4c7_64", Fi = "_progress_1f4c7_71", $i = "_descriptions_1f4c7_88", N = {
2889
- swiper: _i,
2890
- slide: zi,
2891
- link: Ai,
2892
- image: Di,
2893
- navigation: Gi,
2894
- pagination: Ni,
2888
+ const zi = "_swiper_1f4c7_3", Ai = "_slide_1f4c7_9", Di = "_link_1f4c7_16", Gi = "_image_1f4c7_22", Ni = "_navigation_1f4c7_29", Vi = "_pagination_1f4c7_39", Bi = "_slides_1f4c7_58", Fi = "_separator_1f4c7_64", $i = "_progress_1f4c7_71", Ri = "_descriptions_1f4c7_88", N = {
2889
+ swiper: zi,
2890
+ slide: Ai,
2891
+ link: Di,
2892
+ image: Gi,
2893
+ navigation: Ni,
2894
+ pagination: Vi,
2895
2895
  "is-full": "_is-full_1f4c7_53",
2896
- slides: Vi,
2897
- separator: Bi,
2898
- progress: Fi,
2896
+ slides: Bi,
2897
+ separator: Fi,
2898
+ progress: $i,
2899
2899
  "progress-bar-bottom": "_progress-bar-bottom_1f4c7_78",
2900
2900
  "progress-bar": "_progress-bar_1f4c7_78",
2901
- descriptions: $i
2902
- }, Ri = 15e3, ki = Ge(() => {
2903
- const t = Oi(), e = re(() => {
2901
+ descriptions: Ri
2902
+ }, ki = 15e3, Hi = Ge(() => {
2903
+ const t = _i(), e = re(() => {
2904
2904
  t.slideNext();
2905
2905
  }, [t]), i = re(() => {
2906
2906
  t.slidePrev();
2907
- }, [t]), s = et(
2907
+ }, [t]), s = tt(
2908
2908
  () => [
2909
2909
  {
2910
2910
  isIconButton: !0,
@@ -2921,7 +2921,7 @@ const _i = "_swiper_1f4c7_3", zi = "_slide_1f4c7_9", Ai = "_link_1f4c7_16", Di =
2921
2921
  ],
2922
2922
  [i, e]
2923
2923
  );
2924
- return /* @__PURE__ */ V(tt, { buttons: s });
2924
+ return /* @__PURE__ */ V(it, { buttons: s });
2925
2925
  }), Ae = Ge(
2926
2926
  Te((t, e) => /* @__PURE__ */ V(
2927
2927
  "div",
@@ -2939,116 +2939,121 @@ const _i = "_swiper_1f4c7_3", zi = "_slide_1f4c7_9", Ai = "_link_1f4c7_16", Di =
2939
2939
  }
2940
2940
  ))
2941
2941
  );
2942
- function Ui({
2942
+ function Ki({
2943
2943
  images: t,
2944
- swiperClassName: e,
2945
- slideClassName: i,
2946
- imageClassName: s,
2947
- progressBarPosition: n = "top",
2948
- isFullPaginationWidth: r = !1,
2949
- leftDescription: l,
2950
- rightDescription: o,
2951
- delay: a = Ri,
2952
- ...u
2944
+ children: e,
2945
+ onSlideClick: i,
2946
+ swiperClassName: s,
2947
+ slideClassName: n,
2948
+ imageClassName: r,
2949
+ progressBarPosition: l = "top",
2950
+ isFullPaginationWidth: o = !1,
2951
+ needNavigation: a = !0,
2952
+ leftDescription: u,
2953
+ rightDescription: d,
2954
+ delay: c = ki,
2955
+ ...p
2953
2956
  }) {
2954
- const d = R(null), c = R(null), [p, f] = K(1), h = `0${p}`, v = `0${(t == null ? void 0 : t.length) ?? 0}`, y = re(() => {
2955
- if (c.current) {
2956
- const S = c.current.swiper;
2957
- f(S.realIndex + 1);
2957
+ const f = R(null), h = R(null), [v, b] = K(1), m = `0${v}`, y = `0${(t == null ? void 0 : t.length) ?? 0}`, g = re(() => {
2958
+ if (h.current && a) {
2959
+ const w = h.current.swiper;
2960
+ b(w.realIndex + 1);
2958
2961
  }
2959
- }, []), m = re(
2960
- (S, g) => {
2961
- if (d.current) {
2962
- const T = S.params.autoplay.delay, b = g / T * 100;
2963
- d.current.style.width = `${100 - b}%`;
2962
+ }, [a]), T = re(
2963
+ (w, I) => {
2964
+ if (f.current && a) {
2965
+ const A = w.params.autoplay.delay, C = I / A * 100;
2966
+ f.current.style.width = `${100 - C}%`;
2964
2967
  }
2965
2968
  },
2966
- []
2969
+ [a]
2967
2970
  );
2968
2971
  return /* @__PURE__ */ X(
2969
2972
  Ke,
2970
2973
  {
2971
- ...u,
2972
- ref: c,
2973
- className: U(N.swiper, e),
2974
+ ...p,
2975
+ ref: h,
2976
+ className: U(N.swiper, s),
2974
2977
  loop: !0,
2975
2978
  autoplay: {
2976
- delay: a,
2979
+ delay: c,
2977
2980
  disableOnInteraction: !1
2978
2981
  },
2979
2982
  fadeEffect: {
2980
2983
  crossFade: !0
2981
2984
  },
2982
- modules: [ut],
2983
- onAutoplayTimeLeft: m,
2984
- onSlideChange: y,
2985
+ modules: [ft],
2986
+ onAutoplayTimeLeft: T,
2987
+ onSlideChange: g,
2985
2988
  children: [
2986
- /* @__PURE__ */ X("div", { className: N.navigation, slot: "container-start", children: [
2989
+ /* @__PURE__ */ V("div", { className: N.navigation, slot: "container-start", children: a && /* @__PURE__ */ X(Je, { children: [
2987
2990
  /* @__PURE__ */ X(
2988
2991
  "div",
2989
2992
  {
2990
2993
  "data-testid": "pagination",
2991
2994
  className: U(N.pagination, {
2992
- [N["is-full"]]: r
2995
+ [N["is-full"]]: o
2993
2996
  }),
2994
2997
  children: [
2995
2998
  /* @__PURE__ */ X("h2", { className: N.slides, children: [
2996
- h,
2999
+ m,
2997
3000
  /* @__PURE__ */ V("span", { className: N.separator }),
2998
- v
3001
+ y
2999
3002
  ] }),
3000
- /* @__PURE__ */ V(ki, {})
3003
+ /* @__PURE__ */ V(Hi, {})
3001
3004
  ]
3002
3005
  }
3003
3006
  ),
3004
- n === xe.TOP && /* @__PURE__ */ V(Ae, { ref: d })
3005
- ] }),
3006
- t == null ? void 0 : t.map((S) => {
3007
- if (!S) return null;
3008
- const g = /* @__PURE__ */ V(
3007
+ l === xe.TOP && /* @__PURE__ */ V(Ae, { ref: f })
3008
+ ] }) }),
3009
+ t == null ? void 0 : t.map((w, I) => {
3010
+ if (!w) return null;
3011
+ const A = /* @__PURE__ */ V(
3009
3012
  "a",
3010
3013
  {
3011
3014
  className: N.link,
3012
- href: S.url,
3015
+ href: w.url,
3013
3016
  rel: "noopener noreferrer",
3014
3017
  target: "_blank",
3015
3018
  children: /* @__PURE__ */ V(
3016
3019
  Ee,
3017
3020
  {
3018
- className: U(N.image, s),
3019
- src: S.image
3021
+ className: U(N.image, r),
3022
+ src: w.image
3020
3023
  }
3021
3024
  )
3022
3025
  }
3026
+ ), C = () => typeof e == "function" ? e(w) : w.url ? A : /* @__PURE__ */ V(
3027
+ Ee,
3028
+ {
3029
+ className: U(N.image, r),
3030
+ src: w.image,
3031
+ desktopImage: w.imageDesktop,
3032
+ mobileImage: w.imageMobile
3033
+ }
3023
3034
  );
3024
3035
  return /* @__PURE__ */ V(
3025
3036
  Ze,
3026
3037
  {
3027
- className: U(N.slide, i),
3028
- children: S.url ? g : /* @__PURE__ */ V(
3029
- Ee,
3030
- {
3031
- className: U(N.image, s),
3032
- src: S.image,
3033
- desktopImage: S.imageDesktop,
3034
- mobileImage: S.imageMobile
3035
- }
3036
- )
3038
+ "data-testid": `slide-${I}`,
3039
+ onClick: i,
3040
+ className: U(N.slide, n),
3041
+ children: C()
3037
3042
  },
3038
- S.id
3043
+ w.id
3039
3044
  );
3040
3045
  }),
3041
- n === xe.BOTTOM && /* @__PURE__ */ X("div", { children: [
3046
+ l === xe.BOTTOM && /* @__PURE__ */ X("div", { children: [
3042
3047
  /* @__PURE__ */ V(
3043
3048
  Ae,
3044
3049
  {
3045
- ref: d,
3050
+ ref: f,
3046
3051
  className: N["progress-bar-bottom"]
3047
3052
  }
3048
3053
  ),
3049
3054
  /* @__PURE__ */ X("div", { className: N.descriptions, children: [
3050
- l && /* @__PURE__ */ V("div", { "data-testid": "slider-left-description", children: l }),
3051
- o && /* @__PURE__ */ V("div", { "data-testid": "slider-right-description", children: o })
3055
+ u && /* @__PURE__ */ V("div", { "data-testid": "slider-left-description", children: u }),
3056
+ d && /* @__PURE__ */ V("div", { "data-testid": "slider-right-description", children: d })
3052
3057
  ] })
3053
3058
  ] })
3054
3059
  ]
@@ -3056,5 +3061,5 @@ function Ui({
3056
3061
  );
3057
3062
  }
3058
3063
  export {
3059
- Ui as default
3064
+ Ki as default
3060
3065
  };