@streamlayer/react 1.23.1 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/lib/app/masters.d.ts +0 -1
  2. package/lib/cjs/Question.js +1 -1
  3. package/lib/cjs/advertisement.js +33 -53
  4. package/lib/cjs/analytics.js +1 -1
  5. package/lib/cjs/auth.js +1 -1
  6. package/lib/cjs/bet-pack.js +1 -1
  7. package/lib/cjs/feature.js +1 -1
  8. package/lib/cjs/hooks-n9ax4LRT.js +1 -0
  9. package/lib/cjs/index-ByUNFvMk.js +5 -0
  10. package/lib/cjs/index.js +1 -1
  11. package/lib/cjs/index10.js +1 -1
  12. package/lib/cjs/index11.js +1 -4
  13. package/lib/cjs/index12.js +1 -1
  14. package/lib/cjs/index13.js +1 -1
  15. package/lib/cjs/index14.js +4 -1
  16. package/lib/cjs/index15.js +1 -1
  17. package/lib/cjs/index16.js +2 -2
  18. package/lib/cjs/index2.js +1 -1
  19. package/lib/cjs/index4.js +3 -3
  20. package/lib/cjs/index5.js +1 -1
  21. package/lib/cjs/index6.js +1 -1
  22. package/lib/cjs/index7.js +1 -1
  23. package/lib/cjs/index8.js +1 -1
  24. package/lib/cjs/index9.js +7 -1
  25. package/lib/cjs/insight.js +1 -1
  26. package/lib/cjs/masters.js +1 -1
  27. package/lib/cjs/masters2.js +5 -10
  28. package/lib/cjs/notification.js +1 -1
  29. package/lib/cjs/pause-ad.js +1 -1
  30. package/lib/cjs/points.js +1 -1
  31. package/lib/cjs/polymarket.js +4 -9
  32. package/lib/cjs/sl-types.js +1 -15
  33. package/lib/cjs/storage.js +1 -1
  34. package/lib/cjs/theme.js +1 -17
  35. package/lib/cjs/useStreamLayerApp.js +1 -1
  36. package/lib/cjs/useStreamLayerApp2.js +15 -15
  37. package/lib/cjs/utils.js +8 -8
  38. package/lib/classic/app/masters.d.ts +0 -1
  39. package/lib/classic/cjs/Question.js +1 -1
  40. package/lib/classic/cjs/advertisement.js +33 -53
  41. package/lib/classic/cjs/analytics.js +1 -1
  42. package/lib/classic/cjs/auth.js +1 -1
  43. package/lib/classic/cjs/bet-pack.js +3 -3
  44. package/lib/classic/cjs/feature.js +1 -1
  45. package/lib/classic/cjs/hooks-n9ax4LRT.js +1 -0
  46. package/lib/classic/cjs/index-ByUNFvMk.js +5 -0
  47. package/lib/classic/cjs/index.js +1 -1
  48. package/lib/classic/cjs/index10.js +1 -1
  49. package/lib/classic/cjs/index11.js +1 -1
  50. package/lib/classic/cjs/index12.js +1 -1
  51. package/lib/classic/cjs/index13.js +3 -3
  52. package/lib/classic/cjs/index2.js +2 -2
  53. package/lib/classic/cjs/index3.js +1 -1
  54. package/lib/classic/cjs/index4.js +1 -1
  55. package/lib/classic/cjs/index5.js +1 -1
  56. package/lib/classic/cjs/index6.js +1 -1
  57. package/lib/classic/cjs/index7.js +7 -1
  58. package/lib/classic/cjs/index8.js +1 -1
  59. package/lib/classic/cjs/index9.js +1 -1
  60. package/lib/classic/cjs/insight.js +1 -1
  61. package/lib/classic/cjs/notification.js +1 -1
  62. package/lib/classic/cjs/notification2.js +1 -1
  63. package/lib/classic/cjs/pause-ad.js +1 -1
  64. package/lib/classic/cjs/points.js +1 -1
  65. package/lib/classic/cjs/polymarket.js +4 -9
  66. package/lib/classic/cjs/sl-types.js +1 -15
  67. package/lib/classic/cjs/useStreamLayerApp.js +1 -1
  68. package/lib/classic/cjs/useStreamLayerApp2.js +15 -15
  69. package/lib/classic/cjs/utils.js +8 -8
  70. package/lib/classic/es/Question.js +216 -220
  71. package/lib/classic/es/advertisement.js +14665 -15122
  72. package/lib/classic/es/analytics.js +9 -9
  73. package/lib/classic/es/auth.js +1 -1
  74. package/lib/classic/es/bet-pack.js +637 -650
  75. package/lib/classic/es/feature.js +29 -33
  76. package/lib/classic/es/hooks-n9ax4LRT.js +97 -0
  77. package/lib/classic/es/index-ByUNFvMk.js +3775 -0
  78. package/lib/classic/es/index.js +13 -16
  79. package/lib/classic/es/index10.js +2587 -82
  80. package/lib/classic/es/index11.js +306 -2344
  81. package/lib/classic/es/index12.js +103 -101
  82. package/lib/classic/es/index13.js +449 -464
  83. package/lib/classic/es/index2.js +1244 -1268
  84. package/lib/classic/es/index3.js +10 -10
  85. package/lib/classic/es/index4.js +4 -283
  86. package/lib/classic/es/index5.js +4 -5
  87. package/lib/classic/es/index6.js +285 -5
  88. package/lib/classic/es/index7.js +179 -5
  89. package/lib/classic/es/index8.js +5 -9
  90. package/lib/classic/es/index9.js +7 -315
  91. package/lib/classic/es/insight.js +39 -41
  92. package/lib/classic/es/notification.js +3 -3
  93. package/lib/classic/es/notification2.js +513 -528
  94. package/lib/classic/es/pause-ad.js +116 -116
  95. package/lib/classic/es/points.js +33 -34
  96. package/lib/classic/es/polymarket.js +1049 -1102
  97. package/lib/classic/es/sl-types.js +115 -217
  98. package/lib/classic/es/useStreamLayerApp.js +1 -1
  99. package/lib/classic/es/useStreamLayerApp2.js +6485 -6405
  100. package/lib/classic/es/utils.js +6 -6
  101. package/lib/classic/source.css +110 -0
  102. package/lib/dist/cjs/index-ByUNFvMk.js +5 -0
  103. package/lib/dist/cjs/index.js +1 -1
  104. package/lib/dist/cjs/masters.js +34 -42
  105. package/lib/dist/es/index-ByUNFvMk.js +3775 -0
  106. package/lib/dist/es/index.js +7 -11
  107. package/lib/dist/es/masters.js +13506 -12760
  108. package/lib/dist/index.d.ts +5 -5
  109. package/lib/dist/source.css +64 -0
  110. package/lib/es/Question.js +99 -101
  111. package/lib/es/advertisement.js +14665 -15122
  112. package/lib/es/analytics.js +29 -29
  113. package/lib/es/auth.js +1 -1
  114. package/lib/es/bet-pack.js +12 -11
  115. package/lib/es/feature.js +29 -33
  116. package/lib/es/hooks-n9ax4LRT.js +97 -0
  117. package/lib/es/index-ByUNFvMk.js +3775 -0
  118. package/lib/es/index.js +13 -16
  119. package/lib/es/index10.js +7 -263
  120. package/lib/es/index11.js +172 -822
  121. package/lib/es/index12.js +2587 -178
  122. package/lib/es/index13.js +248 -302
  123. package/lib/es/index14.js +815 -82
  124. package/lib/es/index15.js +306 -2344
  125. package/lib/es/index16.js +451 -454
  126. package/lib/es/index2.js +737 -757
  127. package/lib/es/index4.js +626 -639
  128. package/lib/es/index5.js +10 -10
  129. package/lib/es/index6.js +5 -285
  130. package/lib/es/index7.js +7 -5
  131. package/lib/es/index8.js +283 -5
  132. package/lib/es/index9.js +179 -8
  133. package/lib/es/insight.js +39 -41
  134. package/lib/es/masters.js +4 -5
  135. package/lib/es/masters2.js +408 -441
  136. package/lib/es/notification.js +469 -484
  137. package/lib/es/pause-ad.js +116 -116
  138. package/lib/es/points.js +42 -43
  139. package/lib/es/polymarket.js +1049 -1102
  140. package/lib/es/sl-types.js +114 -235
  141. package/lib/es/storage.js +22 -22
  142. package/lib/es/theme.js +3 -44
  143. package/lib/es/useStreamLayerApp.js +1 -1
  144. package/lib/es/useStreamLayerApp2.js +6485 -6405
  145. package/lib/es/utils.js +6 -6
  146. package/lib/source.css +120 -0
  147. package/lib/style.css +1 -1
  148. package/package.json +15 -15
  149. package/lib/cjs/hooks-WfHlJH12.js +0 -1
  150. package/lib/cjs/index-eShKGO10.js +0 -5
  151. package/lib/classic/cjs/hooks-WfHlJH12.js +0 -1
  152. package/lib/classic/cjs/index-eShKGO10.js +0 -5
  153. package/lib/classic/es/hooks-WfHlJH12.js +0 -98
  154. package/lib/classic/es/index-eShKGO10.js +0 -3757
  155. package/lib/dist/cjs/index-eShKGO10.js +0 -5
  156. package/lib/dist/es/index-eShKGO10.js +0 -3757
  157. package/lib/dist/style.css +0 -1
  158. package/lib/es/hooks-WfHlJH12.js +0 -98
  159. package/lib/es/index-eShKGO10.js +0 -3757
package/lib/es/index4.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { jsx as P, jsxs as F } from "react/jsx-runtime";
2
2
  import { s as _, u as Se, c as Ee } from "./sl-types.js";
3
- import $, { forwardRef as Ae, useState as W, useRef as D, useEffect as X, useLayoutEffect as ft, createContext as je, useMemo as He, useCallback as Re, memo as ht } from "react";
4
- import vt from "lodash.throttle";
5
- import { B as te } from "./index6.js";
6
- import { d as gt } from "./index14.js";
7
- import { e as wt } from "./index11.js";
8
- import { e as bt, f as yt, S as qe } from "./useStreamLayerApp2.js";
3
+ import $, { forwardRef as Ae, useRef as D, useState as W, useEffect as X, useLayoutEffect as mt, createContext as je, useMemo as He, useCallback as Re, memo as ht } from "react";
4
+ import gt from "lodash.throttle";
5
+ import { B as te } from "./index8.js";
6
+ import { d as vt } from "./index9.js";
7
+ import { Q as wt } from "./index14.js";
8
+ import { e as yt, f as bt, S as qe } from "./useStreamLayerApp2.js";
9
9
  import { c as St } from "./feature.js";
10
10
  function _e(t) {
11
11
  return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
@@ -138,10 +138,10 @@ function N() {
138
138
  const t = typeof window < "u" ? window : {};
139
139
  return Oe(t, Et), t;
140
140
  }
141
- function xt(t) {
141
+ function Tt(t) {
142
142
  return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
143
143
  }
144
- function Tt(t) {
144
+ function xt(t) {
145
145
  const e = t;
146
146
  Object.keys(e).forEach((s) => {
147
147
  try {
@@ -154,7 +154,7 @@ function Tt(t) {
154
154
  }
155
155
  });
156
156
  }
157
- function xe(t, e) {
157
+ function Te(t, e) {
158
158
  return e === void 0 && (e = 0), setTimeout(t, e);
159
159
  }
160
160
  function le() {
@@ -205,23 +205,23 @@ function Ye(t) {
205
205
  let l = null, a;
206
206
  const o = e.params.speed;
207
207
  e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
208
- const c = s > i ? "next" : "prev", d = (f, v) => c === "next" && f >= v || c === "prev" && f <= v, u = () => {
208
+ const c = s > i ? "next" : "prev", d = (h, g) => c === "next" && h >= g || c === "prev" && h <= g, p = () => {
209
209
  a = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = a);
210
- const f = Math.max(Math.min((a - l) / o, 1), 0), v = 0.5 - Math.cos(f * Math.PI) / 2;
211
- let h = i + v * (s - i);
212
- if (d(h, s) && (h = s), e.wrapperEl.scrollTo({
213
- [r]: h
214
- }), d(h, s)) {
210
+ const h = Math.max(Math.min((a - l) / o, 1), 0), g = 0.5 - Math.cos(h * Math.PI) / 2;
211
+ let m = i + g * (s - i);
212
+ if (d(m, s) && (m = s), e.wrapperEl.scrollTo({
213
+ [r]: m
214
+ }), d(m, s)) {
215
215
  e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
216
216
  e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
217
- [r]: h
217
+ [r]: m
218
218
  });
219
219
  }), n.cancelAnimationFrame(e.cssModeFrameID);
220
220
  return;
221
221
  }
222
- e.cssModeFrameID = n.requestAnimationFrame(u);
222
+ e.cssModeFrameID = n.requestAnimationFrame(p);
223
223
  };
224
- u();
224
+ p();
225
225
  }
226
226
  function H(t, e) {
227
227
  e === void 0 && (e = "");
@@ -252,7 +252,7 @@ function oe(t) {
252
252
  function de(t, e) {
253
253
  e === void 0 && (e = []);
254
254
  const s = document.createElement(t);
255
- return s.classList.add(...Array.isArray(e) ? e : xt(e)), s;
255
+ return s.classList.add(...Array.isArray(e) ? e : Tt(e)), s;
256
256
  }
257
257
  function Lt(t, e) {
258
258
  const s = [];
@@ -288,14 +288,14 @@ function Xe(t, e) {
288
288
  e ? r.matches(e) && s.push(r) : s.push(r), r = r.parentElement;
289
289
  return s;
290
290
  }
291
- function Te(t, e, s) {
291
+ function xe(t, e, s) {
292
292
  const r = N();
293
293
  return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
294
294
  }
295
295
  function R(t) {
296
296
  return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
297
297
  }
298
- let fe;
298
+ let me;
299
299
  function Ot() {
300
300
  const t = N(), e = K();
301
301
  return {
@@ -304,7 +304,7 @@ function Ot() {
304
304
  };
305
305
  }
306
306
  function Ue() {
307
- return fe || (fe = Ot()), fe;
307
+ return me || (me = Ot()), me;
308
308
  }
309
309
  let he;
310
310
  function zt(t) {
@@ -316,15 +316,15 @@ function zt(t) {
316
316
  android: !1
317
317
  }, a = r.screen.width, o = r.screen.height, c = i.match(/(Android);?[\s\/]+([\d.]+)?/);
318
318
  let d = i.match(/(iPad).*OS\s([\d_]+)/);
319
- const u = i.match(/(iPod)(.*OS\s([\d_]+))?/), f = !d && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/), v = n === "Win32";
320
- let h = n === "MacIntel";
321
- const b = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
322
- return !d && h && s.touch && b.indexOf(`${a}x${o}`) >= 0 && (d = i.match(/(Version)\/([\d.]+)/), d || (d = [0, 1, "13_0_0"]), h = !1), c && !v && (l.os = "android", l.android = !0), (d || f || u) && (l.os = "ios", l.ios = !0), l;
319
+ const p = i.match(/(iPod)(.*OS\s([\d_]+))?/), h = !d && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/), g = n === "Win32";
320
+ let m = n === "MacIntel";
321
+ const T = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
322
+ return !d && m && s.touch && T.indexOf(`${a}x${o}`) >= 0 && (d = i.match(/(Version)\/([\d.]+)/), d || (d = [0, 1, "13_0_0"]), m = !1), c && !g && (l.os = "android", l.android = !0), (d || h || p) && (l.os = "ios", l.ios = !0), l;
323
323
  }
324
324
  function Qe(t) {
325
325
  return t === void 0 && (t = {}), he || (he = zt(t)), he;
326
326
  }
327
- let ve;
327
+ let ge;
328
328
  function _t() {
329
329
  const t = N(), e = Qe();
330
330
  let s = !1;
@@ -348,7 +348,7 @@ function _t() {
348
348
  };
349
349
  }
350
350
  function Ke() {
351
- return ve || (ve = _t()), ve;
351
+ return ge || (ge = _t()), ge;
352
352
  }
353
353
  function $t(t) {
354
354
  let {
@@ -361,21 +361,21 @@ function $t(t) {
361
361
  const a = () => {
362
362
  !e || e.destroyed || !e.initialized || (r("beforeResize"), r("resize"));
363
363
  }, o = () => {
364
- !e || e.destroyed || !e.initialized || (i = new ResizeObserver((u) => {
364
+ !e || e.destroyed || !e.initialized || (i = new ResizeObserver((p) => {
365
365
  l = n.requestAnimationFrame(() => {
366
366
  const {
367
- width: f,
368
- height: v
367
+ width: h,
368
+ height: g
369
369
  } = e;
370
- let h = f, b = v;
371
- u.forEach((M) => {
370
+ let m = h, T = g;
371
+ p.forEach((M) => {
372
372
  let {
373
373
  contentBoxSize: w,
374
- contentRect: p,
375
- target: m
374
+ contentRect: u,
375
+ target: f
376
376
  } = M;
377
- m && m !== e.el || (h = p ? p.width : (w[0] || w).inlineSize, b = p ? p.height : (w[0] || w).blockSize);
378
- }), (h !== f || b !== v) && a();
377
+ f && f !== e.el || (m = u ? u.width : (w[0] || w).inlineSize, T = u ? u.height : (w[0] || w).blockSize);
378
+ }), (m !== h || T !== g) && a();
379
379
  });
380
380
  }), i.observe(e.el));
381
381
  }, c = () => {
@@ -400,30 +400,30 @@ function Gt(t) {
400
400
  on: r,
401
401
  emit: n
402
402
  } = t;
403
- const i = [], l = N(), a = function(d, u) {
404
- u === void 0 && (u = {});
405
- const f = l.MutationObserver || l.WebkitMutationObserver, v = new f((h) => {
403
+ const i = [], l = N(), a = function(d, p) {
404
+ p === void 0 && (p = {});
405
+ const h = l.MutationObserver || l.WebkitMutationObserver, g = new h((m) => {
406
406
  if (e.__preventObserver__) return;
407
- if (h.length === 1) {
408
- n("observerUpdate", h[0]);
407
+ if (m.length === 1) {
408
+ n("observerUpdate", m[0]);
409
409
  return;
410
410
  }
411
- const b = function() {
412
- n("observerUpdate", h[0]);
411
+ const T = function() {
412
+ n("observerUpdate", m[0]);
413
413
  };
414
- l.requestAnimationFrame ? l.requestAnimationFrame(b) : l.setTimeout(b, 0);
414
+ l.requestAnimationFrame ? l.requestAnimationFrame(T) : l.setTimeout(T, 0);
415
415
  });
416
- v.observe(d, {
417
- attributes: typeof u.attributes > "u" ? !0 : u.attributes,
418
- childList: e.isElement || (typeof u.childList > "u" ? !0 : u).childList,
419
- characterData: typeof u.characterData > "u" ? !0 : u.characterData
420
- }), i.push(v);
416
+ g.observe(d, {
417
+ attributes: typeof p.attributes > "u" ? !0 : p.attributes,
418
+ childList: e.isElement || (typeof p.childList > "u" ? !0 : p).childList,
419
+ characterData: typeof p.characterData > "u" ? !0 : p.characterData
420
+ }), i.push(g);
421
421
  }, o = () => {
422
422
  if (e.params.observer) {
423
423
  if (e.params.observeParents) {
424
424
  const d = Xe(e.hostEl);
425
- for (let u = 0; u < d.length; u += 1)
426
- a(d[u]);
425
+ for (let p = 0; p < d.length; p += 1)
426
+ a(d[p]);
427
427
  }
428
428
  a(e.hostEl, {
429
429
  childList: e.params.observeSlideChildren
@@ -509,8 +509,8 @@ function Bt() {
509
509
  }
510
510
  function Dt() {
511
511
  const t = this;
512
- function e(E, x) {
513
- return parseFloat(E.getPropertyValue(t.getDirectionLabel(x)) || 0);
512
+ function e(S, E) {
513
+ return parseFloat(S.getPropertyValue(t.getDirectionLabel(E)) || 0);
514
514
  }
515
515
  const s = t.params, {
516
516
  wrapperEl: r,
@@ -518,111 +518,111 @@ function Dt() {
518
518
  size: i,
519
519
  rtlTranslate: l,
520
520
  wrongRTL: a
521
- } = t, o = t.virtual && s.virtual.enabled, c = o ? t.virtual.slides.length : t.slides.length, d = H(n, `.${t.params.slideClass}, swiper-slide`), u = o ? t.virtual.slides.length : d.length;
522
- let f = [];
523
- const v = [], h = [];
524
- let b = s.slidesOffsetBefore;
525
- typeof b == "function" && (b = s.slidesOffsetBefore.call(t));
521
+ } = t, o = t.virtual && s.virtual.enabled, c = o ? t.virtual.slides.length : t.slides.length, d = H(n, `.${t.params.slideClass}, swiper-slide`), p = o ? t.virtual.slides.length : d.length;
522
+ let h = [];
523
+ const g = [], m = [];
524
+ let T = s.slidesOffsetBefore;
525
+ typeof T == "function" && (T = s.slidesOffsetBefore.call(t));
526
526
  let M = s.slidesOffsetAfter;
527
527
  typeof M == "function" && (M = s.slidesOffsetAfter.call(t));
528
- const w = t.snapGrid.length, p = t.slidesGrid.length;
529
- let m = s.spaceBetween, g = -b, y = 0, T = 0;
528
+ const w = t.snapGrid.length, u = t.slidesGrid.length;
529
+ let f = s.spaceBetween, v = -T, y = 0, C = 0;
530
530
  if (typeof i > "u")
531
531
  return;
532
- typeof m == "string" && m.indexOf("%") >= 0 ? m = parseFloat(m.replace("%", "")) / 100 * i : typeof m == "string" && (m = parseFloat(m)), t.virtualSize = -m, d.forEach((E) => {
533
- l ? E.style.marginLeft = "" : E.style.marginRight = "", E.style.marginBottom = "", E.style.marginTop = "";
532
+ typeof f == "string" && f.indexOf("%") >= 0 ? f = parseFloat(f.replace("%", "")) / 100 * i : typeof f == "string" && (f = parseFloat(f)), t.virtualSize = -f, d.forEach((S) => {
533
+ l ? S.style.marginLeft = "" : S.style.marginRight = "", S.style.marginBottom = "", S.style.marginTop = "";
534
534
  }), s.centeredSlides && s.cssMode && (re(r, "--swiper-centered-offset-before", ""), re(r, "--swiper-centered-offset-after", ""));
535
535
  const A = s.grid && s.grid.rows > 1 && t.grid;
536
536
  A ? t.grid.initSlides(d) : t.grid && t.grid.unsetSlides();
537
537
  let I;
538
- const S = s.slidesPerView === "auto" && s.breakpoints && Object.keys(s.breakpoints).filter((E) => typeof s.breakpoints[E].slidesPerView < "u").length > 0;
539
- for (let E = 0; E < u; E += 1) {
538
+ const b = s.slidesPerView === "auto" && s.breakpoints && Object.keys(s.breakpoints).filter((S) => typeof s.breakpoints[S].slidesPerView < "u").length > 0;
539
+ for (let S = 0; S < p; S += 1) {
540
540
  I = 0;
541
- let x;
542
- if (d[E] && (x = d[E]), A && t.grid.updateSlide(E, x, d), !(d[E] && Y(x, "display") === "none")) {
541
+ let E;
542
+ if (d[S] && (E = d[S]), A && t.grid.updateSlide(S, E, d), !(d[S] && Y(E, "display") === "none")) {
543
543
  if (s.slidesPerView === "auto") {
544
- S && (d[E].style[t.getDirectionLabel("width")] = "");
545
- const k = getComputedStyle(x), L = x.style.transform, O = x.style.webkitTransform;
546
- if (L && (x.style.transform = "none"), O && (x.style.webkitTransform = "none"), s.roundLengths)
547
- I = t.isHorizontal() ? Te(x, "width") : Te(x, "height");
544
+ b && (d[S].style[t.getDirectionLabel("width")] = "");
545
+ const k = getComputedStyle(E), L = E.style.transform, O = E.style.webkitTransform;
546
+ if (L && (E.style.transform = "none"), O && (E.style.webkitTransform = "none"), s.roundLengths)
547
+ I = t.isHorizontal() ? xe(E, "width") : xe(E, "height");
548
548
  else {
549
- const C = e(k, "width"), z = e(k, "padding-left"), U = e(k, "padding-right"), V = e(k, "margin-left"), G = e(k, "margin-right"), j = k.getPropertyValue("box-sizing");
549
+ const x = e(k, "width"), z = e(k, "padding-left"), U = e(k, "padding-right"), V = e(k, "margin-left"), G = e(k, "margin-right"), j = k.getPropertyValue("box-sizing");
550
550
  if (j && j === "border-box")
551
- I = C + V + G;
551
+ I = x + V + G;
552
552
  else {
553
553
  const {
554
- clientWidth: ut,
555
- offsetWidth: mt
556
- } = x;
557
- I = C + z + U + V + G + (mt - ut);
554
+ clientWidth: pt,
555
+ offsetWidth: ft
556
+ } = E;
557
+ I = x + z + U + V + G + (ft - pt);
558
558
  }
559
559
  }
560
- L && (x.style.transform = L), O && (x.style.webkitTransform = O), s.roundLengths && (I = Math.floor(I));
560
+ L && (E.style.transform = L), O && (E.style.webkitTransform = O), s.roundLengths && (I = Math.floor(I));
561
561
  } else
562
- I = (i - (s.slidesPerView - 1) * m) / s.slidesPerView, s.roundLengths && (I = Math.floor(I)), d[E] && (d[E].style[t.getDirectionLabel("width")] = `${I}px`);
563
- d[E] && (d[E].swiperSlideSize = I), h.push(I), s.centeredSlides ? (g = g + I / 2 + y / 2 + m, y === 0 && E !== 0 && (g = g - i / 2 - m), E === 0 && (g = g - i / 2 - m), Math.abs(g) < 1 / 1e3 && (g = 0), s.roundLengths && (g = Math.floor(g)), T % s.slidesPerGroup === 0 && f.push(g), v.push(g)) : (s.roundLengths && (g = Math.floor(g)), (T - Math.min(t.params.slidesPerGroupSkip, T)) % t.params.slidesPerGroup === 0 && f.push(g), v.push(g), g = g + I + m), t.virtualSize += I + m, y = I, T += 1;
562
+ I = (i - (s.slidesPerView - 1) * f) / s.slidesPerView, s.roundLengths && (I = Math.floor(I)), d[S] && (d[S].style[t.getDirectionLabel("width")] = `${I}px`);
563
+ d[S] && (d[S].swiperSlideSize = I), m.push(I), s.centeredSlides ? (v = v + I / 2 + y / 2 + f, y === 0 && S !== 0 && (v = v - i / 2 - f), S === 0 && (v = v - i / 2 - f), Math.abs(v) < 1 / 1e3 && (v = 0), s.roundLengths && (v = Math.floor(v)), C % s.slidesPerGroup === 0 && h.push(v), g.push(v)) : (s.roundLengths && (v = Math.floor(v)), (C - Math.min(t.params.slidesPerGroupSkip, C)) % t.params.slidesPerGroup === 0 && h.push(v), g.push(v), v = v + I + f), t.virtualSize += I + f, y = I, C += 1;
564
564
  }
565
565
  }
566
- if (t.virtualSize = Math.max(t.virtualSize, i) + M, l && a && (s.effect === "slide" || s.effect === "coverflow") && (r.style.width = `${t.virtualSize + m}px`), s.setWrapperSize && (r.style[t.getDirectionLabel("width")] = `${t.virtualSize + m}px`), A && t.grid.updateWrapperSize(I, f), !s.centeredSlides) {
567
- const E = [];
568
- for (let x = 0; x < f.length; x += 1) {
569
- let k = f[x];
570
- s.roundLengths && (k = Math.floor(k)), f[x] <= t.virtualSize - i && E.push(k);
566
+ if (t.virtualSize = Math.max(t.virtualSize, i) + M, l && a && (s.effect === "slide" || s.effect === "coverflow") && (r.style.width = `${t.virtualSize + f}px`), s.setWrapperSize && (r.style[t.getDirectionLabel("width")] = `${t.virtualSize + f}px`), A && t.grid.updateWrapperSize(I, h), !s.centeredSlides) {
567
+ const S = [];
568
+ for (let E = 0; E < h.length; E += 1) {
569
+ let k = h[E];
570
+ s.roundLengths && (k = Math.floor(k)), h[E] <= t.virtualSize - i && S.push(k);
571
571
  }
572
- f = E, Math.floor(t.virtualSize - i) - Math.floor(f[f.length - 1]) > 1 && f.push(t.virtualSize - i);
572
+ h = S, Math.floor(t.virtualSize - i) - Math.floor(h[h.length - 1]) > 1 && h.push(t.virtualSize - i);
573
573
  }
574
574
  if (o && s.loop) {
575
- const E = h[0] + m;
575
+ const S = m[0] + f;
576
576
  if (s.slidesPerGroup > 1) {
577
- const x = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / s.slidesPerGroup), k = E * s.slidesPerGroup;
578
- for (let L = 0; L < x; L += 1)
579
- f.push(f[f.length - 1] + k);
577
+ const E = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / s.slidesPerGroup), k = S * s.slidesPerGroup;
578
+ for (let L = 0; L < E; L += 1)
579
+ h.push(h[h.length - 1] + k);
580
580
  }
581
- for (let x = 0; x < t.virtual.slidesBefore + t.virtual.slidesAfter; x += 1)
582
- s.slidesPerGroup === 1 && f.push(f[f.length - 1] + E), v.push(v[v.length - 1] + E), t.virtualSize += E;
581
+ for (let E = 0; E < t.virtual.slidesBefore + t.virtual.slidesAfter; E += 1)
582
+ s.slidesPerGroup === 1 && h.push(h[h.length - 1] + S), g.push(g[g.length - 1] + S), t.virtualSize += S;
583
583
  }
584
- if (f.length === 0 && (f = [0]), m !== 0) {
585
- const E = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
586
- d.filter((x, k) => !s.cssMode || s.loop ? !0 : k !== d.length - 1).forEach((x) => {
587
- x.style[E] = `${m}px`;
584
+ if (h.length === 0 && (h = [0]), f !== 0) {
585
+ const S = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
586
+ d.filter((E, k) => !s.cssMode || s.loop ? !0 : k !== d.length - 1).forEach((E) => {
587
+ E.style[S] = `${f}px`;
588
588
  });
589
589
  }
590
590
  if (s.centeredSlides && s.centeredSlidesBounds) {
591
- let E = 0;
592
- h.forEach((k) => {
593
- E += k + (m || 0);
594
- }), E -= m;
595
- const x = E > i ? E - i : 0;
596
- f = f.map((k) => k <= 0 ? -b : k > x ? x + M : k);
591
+ let S = 0;
592
+ m.forEach((k) => {
593
+ S += k + (f || 0);
594
+ }), S -= f;
595
+ const E = S > i ? S - i : 0;
596
+ h = h.map((k) => k <= 0 ? -T : k > E ? E + M : k);
597
597
  }
598
598
  if (s.centerInsufficientSlides) {
599
- let E = 0;
600
- h.forEach((k) => {
601
- E += k + (m || 0);
602
- }), E -= m;
603
- const x = (s.slidesOffsetBefore || 0) + (s.slidesOffsetAfter || 0);
604
- if (E + x < i) {
605
- const k = (i - E - x) / 2;
606
- f.forEach((L, O) => {
607
- f[O] = L - k;
608
- }), v.forEach((L, O) => {
609
- v[O] = L + k;
599
+ let S = 0;
600
+ m.forEach((k) => {
601
+ S += k + (f || 0);
602
+ }), S -= f;
603
+ const E = (s.slidesOffsetBefore || 0) + (s.slidesOffsetAfter || 0);
604
+ if (S + E < i) {
605
+ const k = (i - S - E) / 2;
606
+ h.forEach((L, O) => {
607
+ h[O] = L - k;
608
+ }), g.forEach((L, O) => {
609
+ g[O] = L + k;
610
610
  });
611
611
  }
612
612
  }
613
613
  if (Object.assign(t, {
614
614
  slides: d,
615
- snapGrid: f,
616
- slidesGrid: v,
617
- slidesSizesGrid: h
615
+ snapGrid: h,
616
+ slidesGrid: g,
617
+ slidesSizesGrid: m
618
618
  }), s.centeredSlides && s.cssMode && !s.centeredSlidesBounds) {
619
- re(r, "--swiper-centered-offset-before", `${-f[0]}px`), re(r, "--swiper-centered-offset-after", `${t.size / 2 - h[h.length - 1] / 2}px`);
620
- const E = -t.snapGrid[0], x = -t.slidesGrid[0];
621
- t.snapGrid = t.snapGrid.map((k) => k + E), t.slidesGrid = t.slidesGrid.map((k) => k + x);
619
+ re(r, "--swiper-centered-offset-before", `${-h[0]}px`), re(r, "--swiper-centered-offset-after", `${t.size / 2 - m[m.length - 1] / 2}px`);
620
+ const S = -t.snapGrid[0], E = -t.slidesGrid[0];
621
+ t.snapGrid = t.snapGrid.map((k) => k + S), t.slidesGrid = t.slidesGrid.map((k) => k + E);
622
622
  }
623
- if (u !== c && t.emit("slidesLengthChange"), f.length !== w && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), v.length !== p && t.emit("slidesGridLengthChange"), s.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !s.cssMode && (s.effect === "slide" || s.effect === "fade")) {
624
- const E = `${s.containerModifierClass}backface-hidden`, x = t.el.classList.contains(E);
625
- u <= s.maxBackfaceHiddenSlides ? x || t.el.classList.add(E) : x && t.el.classList.remove(E);
623
+ if (p !== c && t.emit("slidesLengthChange"), h.length !== w && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), g.length !== u && t.emit("slidesGridLengthChange"), s.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !s.cssMode && (s.effect === "slide" || s.effect === "fade")) {
624
+ const S = `${s.containerModifierClass}backface-hidden`, E = t.el.classList.contains(S);
625
+ p <= s.maxBackfaceHiddenSlides ? E || t.el.classList.add(S) : E && t.el.classList.remove(S);
626
626
  }
627
627
  }
628
628
  function Ft(t) {
@@ -675,8 +675,8 @@ function jt(t) {
675
675
  const c = r[o];
676
676
  let d = c.swiperSlideOffset;
677
677
  s.cssMode && s.centeredSlides && (d -= r[0].swiperSlideOffset);
678
- const u = (l + (s.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), f = (l - i[0] + (s.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), v = -(l - d), h = v + e.slidesSizesGrid[o], b = v >= 0 && v <= e.size - e.slidesSizesGrid[o], M = v >= 0 && v < e.size - 1 || h > 1 && h <= e.size || v <= 0 && h >= e.size;
679
- M && (e.visibleSlides.push(c), e.visibleSlidesIndexes.push(o)), $e(c, M, s.slideVisibleClass), $e(c, b, s.slideFullyVisibleClass), c.progress = n ? -u : u, c.originalProgress = n ? -f : f;
678
+ const p = (l + (s.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), h = (l - i[0] + (s.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), g = -(l - d), m = g + e.slidesSizesGrid[o], T = g >= 0 && g <= e.size - e.slidesSizesGrid[o], M = g >= 0 && g < e.size - 1 || m > 1 && m <= e.size || g <= 0 && m >= e.size;
679
+ M && (e.visibleSlides.push(c), e.visibleSlidesIndexes.push(o)), $e(c, M, s.slideVisibleClass), $e(c, T, s.slideFullyVisibleClass), c.progress = n ? -p : p, c.originalProgress = n ? -h : h;
680
680
  }
681
681
  }
682
682
  function Ht(t) {
@@ -697,12 +697,12 @@ function Ht(t) {
697
697
  n = 0, i = !0, l = !0;
698
698
  else {
699
699
  n = (t - e.minTranslate()) / r;
700
- const d = Math.abs(t - e.minTranslate()) < 1, u = Math.abs(t - e.maxTranslate()) < 1;
701
- i = d || n <= 0, l = u || n >= 1, d && (n = 0), u && (n = 1);
700
+ const d = Math.abs(t - e.minTranslate()) < 1, p = Math.abs(t - e.maxTranslate()) < 1;
701
+ i = d || n <= 0, l = p || n >= 1, d && (n = 0), p && (n = 1);
702
702
  }
703
703
  if (s.loop) {
704
- const d = e.getSlideIndexByData(0), u = e.getSlideIndexByData(e.slides.length - 1), f = e.slidesGrid[d], v = e.slidesGrid[u], h = e.slidesGrid[e.slidesGrid.length - 1], b = Math.abs(t);
705
- b >= f ? a = (b - f) / h : a = (b + h - v) / h, a > 1 && (a -= 1);
704
+ const d = e.getSlideIndexByData(0), p = e.getSlideIndexByData(e.slides.length - 1), h = e.slidesGrid[d], g = e.slidesGrid[p], m = e.slidesGrid[e.slidesGrid.length - 1], T = Math.abs(t);
705
+ T >= h ? a = (T - h) / m : a = (T + m - g) / m, a > 1 && (a -= 1);
706
706
  }
707
707
  Object.assign(e, {
708
708
  progress: n,
@@ -711,7 +711,7 @@ function Ht(t) {
711
711
  isEnd: l
712
712
  }), (s.watchSlidesProgress || s.centeredSlides && s.autoHeight) && e.updateSlidesProgress(t), i && !o && e.emit("reachBeginning toEdge"), l && !c && e.emit("reachEnd toEdge"), (o && !i || c && !l) && e.emit("fromEdge"), e.emit("progress", n);
713
713
  }
714
- const ge = (t, e, s) => {
714
+ const ve = (t, e, s) => {
715
715
  e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
716
716
  };
717
717
  function Rt() {
@@ -720,18 +720,18 @@ function Rt() {
720
720
  params: s,
721
721
  slidesEl: r,
722
722
  activeIndex: n
723
- } = t, i = t.virtual && s.virtual.enabled, l = t.grid && s.grid && s.grid.rows > 1, a = (u) => H(r, `.${s.slideClass}${u}, swiper-slide${u}`)[0];
723
+ } = t, i = t.virtual && s.virtual.enabled, l = t.grid && s.grid && s.grid.rows > 1, a = (p) => H(r, `.${s.slideClass}${p}, swiper-slide${p}`)[0];
724
724
  let o, c, d;
725
725
  if (i)
726
726
  if (s.loop) {
727
- let u = n - t.virtual.slidesBefore;
728
- u < 0 && (u = t.virtual.slides.length + u), u >= t.virtual.slides.length && (u -= t.virtual.slides.length), o = a(`[data-swiper-slide-index="${u}"]`);
727
+ let p = n - t.virtual.slidesBefore;
728
+ p < 0 && (p = t.virtual.slides.length + p), p >= t.virtual.slides.length && (p -= t.virtual.slides.length), o = a(`[data-swiper-slide-index="${p}"]`);
729
729
  } else
730
730
  o = a(`[data-swiper-slide-index="${n}"]`);
731
731
  else
732
- l ? (o = e.find((u) => u.column === n), d = e.find((u) => u.column === n + 1), c = e.find((u) => u.column === n - 1)) : o = e[n];
733
- o && (l || (d = At(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !d && (d = e[0]), c = Lt(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((u) => {
734
- ge(u, u === o, s.slideActiveClass), ge(u, u === d, s.slideNextClass), ge(u, u === c, s.slidePrevClass);
732
+ l ? (o = e.find((p) => p.column === n), d = e.find((p) => p.column === n + 1), c = e.find((p) => p.column === n - 1)) : o = e[n];
733
+ o && (l || (d = At(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !d && (d = e[0]), c = Lt(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((p) => {
734
+ ve(p, p === o, s.slideActiveClass), ve(p, p === d, s.slideNextClass), ve(p, p === c, s.slidePrevClass);
735
735
  }), t.emitSlidesClasses();
736
736
  }
737
737
  const ne = (t, e) => {
@@ -792,15 +792,15 @@ function Wt(t) {
792
792
  snapIndex: a
793
793
  } = e;
794
794
  let o = t, c;
795
- const d = (v) => {
796
- let h = v - e.virtual.slidesBefore;
797
- return h < 0 && (h = e.virtual.slides.length + h), h >= e.virtual.slides.length && (h -= e.virtual.slides.length), h;
795
+ const d = (g) => {
796
+ let m = g - e.virtual.slidesBefore;
797
+ return m < 0 && (m = e.virtual.slides.length + m), m >= e.virtual.slides.length && (m -= e.virtual.slides.length), m;
798
798
  };
799
799
  if (typeof o > "u" && (o = qt(e)), r.indexOf(s) >= 0)
800
800
  c = r.indexOf(s);
801
801
  else {
802
- const v = Math.min(n.slidesPerGroupSkip, o);
803
- c = v + Math.floor((o - v) / n.slidesPerGroup);
802
+ const g = Math.min(n.slidesPerGroupSkip, o);
803
+ c = g + Math.floor((o - g) / n.slidesPerGroup);
804
804
  }
805
805
  if (c >= r.length && (c = r.length - 1), o === i && !e.params.loop) {
806
806
  c !== a && (e.snapIndex = c, e.emit("snapIndexChange"));
@@ -810,27 +810,27 @@ function Wt(t) {
810
810
  e.realIndex = d(o);
811
811
  return;
812
812
  }
813
- const u = e.grid && n.grid && n.grid.rows > 1;
814
- let f;
813
+ const p = e.grid && n.grid && n.grid.rows > 1;
814
+ let h;
815
815
  if (e.virtual && n.virtual.enabled && n.loop)
816
- f = d(o);
817
- else if (u) {
818
- const v = e.slides.find((b) => b.column === o);
819
- let h = parseInt(v.getAttribute("data-swiper-slide-index"), 10);
820
- Number.isNaN(h) && (h = Math.max(e.slides.indexOf(v), 0)), f = Math.floor(h / n.grid.rows);
816
+ h = d(o);
817
+ else if (p) {
818
+ const g = e.slides.find((T) => T.column === o);
819
+ let m = parseInt(g.getAttribute("data-swiper-slide-index"), 10);
820
+ Number.isNaN(m) && (m = Math.max(e.slides.indexOf(g), 0)), h = Math.floor(m / n.grid.rows);
821
821
  } else if (e.slides[o]) {
822
- const v = e.slides[o].getAttribute("data-swiper-slide-index");
823
- v ? f = parseInt(v, 10) : f = o;
822
+ const g = e.slides[o].getAttribute("data-swiper-slide-index");
823
+ g ? h = parseInt(g, 10) : h = o;
824
824
  } else
825
- f = o;
825
+ h = o;
826
826
  Object.assign(e, {
827
827
  previousSnapIndex: a,
828
828
  snapIndex: c,
829
829
  previousRealIndex: l,
830
- realIndex: f,
830
+ realIndex: h,
831
831
  previousIndex: i,
832
832
  activeIndex: o
833
- }), e.initialized && Ce(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== f && e.emit("realIndexChange"), e.emit("slideChange"));
833
+ }), e.initialized && Ce(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== h && e.emit("realIndexChange"), e.emit("slideChange"));
834
834
  }
835
835
  function Yt(t, e) {
836
836
  const s = this, r = s.params;
@@ -891,8 +891,8 @@ function Qt(t, e) {
891
891
  const c = 0;
892
892
  s.isHorizontal() ? a = r ? -t : t : o = t, n.roundLengths && (a = Math.floor(a), o = Math.floor(o)), s.previousTranslate = s.translate, s.translate = s.isHorizontal() ? a : o, n.cssMode ? i[s.isHorizontal() ? "scrollLeft" : "scrollTop"] = s.isHorizontal() ? -a : -o : n.virtualTranslate || (s.isHorizontal() ? a -= s.cssOverflowAdjustment() : o -= s.cssOverflowAdjustment(), i.style.transform = `translate3d(${a}px, ${o}px, ${c}px)`);
893
893
  let d;
894
- const u = s.maxTranslate() - s.minTranslate();
895
- u === 0 ? d = 0 : d = (t - s.minTranslate()) / u, d !== l && s.updateProgress(t), s.emit("setTranslate", s.translate, e);
894
+ const p = s.maxTranslate() - s.minTranslate();
895
+ p === 0 ? d = 0 : d = (t - s.minTranslate()) / p, d !== l && s.updateProgress(t), s.emit("setTranslate", s.translate, e);
896
896
  }
897
897
  function Kt() {
898
898
  return -this.snapGrid[0];
@@ -911,25 +911,25 @@ function Zt(t, e, s, r, n) {
911
911
  const o = i.minTranslate(), c = i.maxTranslate();
912
912
  let d;
913
913
  if (r && t > o ? d = o : r && t < c ? d = c : d = t, i.updateProgress(d), l.cssMode) {
914
- const u = i.isHorizontal();
914
+ const p = i.isHorizontal();
915
915
  if (e === 0)
916
- a[u ? "scrollLeft" : "scrollTop"] = -d;
916
+ a[p ? "scrollLeft" : "scrollTop"] = -d;
917
917
  else {
918
918
  if (!i.support.smoothScroll)
919
919
  return Ye({
920
920
  swiper: i,
921
921
  targetPosition: -d,
922
- side: u ? "left" : "top"
922
+ side: p ? "left" : "top"
923
923
  }), !0;
924
924
  a.scrollTo({
925
- [u ? "left" : "top"]: -d,
925
+ [p ? "left" : "top"]: -d,
926
926
  behavior: "smooth"
927
927
  });
928
928
  }
929
929
  return !0;
930
930
  }
931
- return e === 0 ? (i.setTransition(0), i.setTranslate(d), s && (i.emit("beforeTransitionStart", e, n), i.emit("transitionEnd"))) : (i.setTransition(e), i.setTranslate(d), s && (i.emit("beforeTransitionStart", e, n), i.emit("transitionStart")), i.animating || (i.animating = !0, i.onTranslateToWrapperTransitionEnd || (i.onTranslateToWrapperTransitionEnd = function(u) {
932
- !i || i.destroyed || u.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onTranslateToWrapperTransitionEnd), i.onTranslateToWrapperTransitionEnd = null, delete i.onTranslateToWrapperTransitionEnd, i.animating = !1, s && i.emit("transitionEnd"));
931
+ return e === 0 ? (i.setTransition(0), i.setTranslate(d), s && (i.emit("beforeTransitionStart", e, n), i.emit("transitionEnd"))) : (i.setTransition(e), i.setTranslate(d), s && (i.emit("beforeTransitionStart", e, n), i.emit("transitionStart")), i.animating || (i.animating = !0, i.onTranslateToWrapperTransitionEnd || (i.onTranslateToWrapperTransitionEnd = function(p) {
932
+ !i || i.destroyed || p.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onTranslateToWrapperTransitionEnd), i.onTranslateToWrapperTransitionEnd = null, delete i.onTranslateToWrapperTransitionEnd, i.animating = !1, s && i.emit("transitionEnd"));
933
933
  }), i.wrapperEl.addEventListener("transitionend", i.onTranslateToWrapperTransitionEnd))), !0;
934
934
  }
935
935
  var es = {
@@ -1002,56 +1002,56 @@ function ns(t, e, s, r, n) {
1002
1002
  snapGrid: o,
1003
1003
  slidesGrid: c,
1004
1004
  previousIndex: d,
1005
- activeIndex: u,
1006
- rtlTranslate: f,
1007
- wrapperEl: v,
1008
- enabled: h
1005
+ activeIndex: p,
1006
+ rtlTranslate: h,
1007
+ wrapperEl: g,
1008
+ enabled: m
1009
1009
  } = i;
1010
- if (!h && !r && !n || i.destroyed || i.animating && a.preventInteractionOnTransition)
1010
+ if (!m && !r && !n || i.destroyed || i.animating && a.preventInteractionOnTransition)
1011
1011
  return !1;
1012
1012
  typeof e > "u" && (e = i.params.speed);
1013
- const b = Math.min(i.params.slidesPerGroupSkip, l);
1014
- let M = b + Math.floor((l - b) / i.params.slidesPerGroup);
1013
+ const T = Math.min(i.params.slidesPerGroupSkip, l);
1014
+ let M = T + Math.floor((l - T) / i.params.slidesPerGroup);
1015
1015
  M >= o.length && (M = o.length - 1);
1016
1016
  const w = -o[M];
1017
1017
  if (a.normalizeSlideIndex)
1018
1018
  for (let y = 0; y < c.length; y += 1) {
1019
- const T = -Math.floor(w * 100), A = Math.floor(c[y] * 100), I = Math.floor(c[y + 1] * 100);
1020
- typeof c[y + 1] < "u" ? T >= A && T < I - (I - A) / 2 ? l = y : T >= A && T < I && (l = y + 1) : T >= A && (l = y);
1019
+ const C = -Math.floor(w * 100), A = Math.floor(c[y] * 100), I = Math.floor(c[y + 1] * 100);
1020
+ typeof c[y + 1] < "u" ? C >= A && C < I - (I - A) / 2 ? l = y : C >= A && C < I && (l = y + 1) : C >= A && (l = y);
1021
1021
  }
1022
- if (i.initialized && l !== u && (!i.allowSlideNext && (f ? w > i.translate && w > i.minTranslate() : w < i.translate && w < i.minTranslate()) || !i.allowSlidePrev && w > i.translate && w > i.maxTranslate() && (u || 0) !== l))
1022
+ if (i.initialized && l !== p && (!i.allowSlideNext && (h ? w > i.translate && w > i.minTranslate() : w < i.translate && w < i.minTranslate()) || !i.allowSlidePrev && w > i.translate && w > i.maxTranslate() && (p || 0) !== l))
1023
1023
  return !1;
1024
1024
  l !== (d || 0) && s && i.emit("beforeSlideChangeStart"), i.updateProgress(w);
1025
- let p;
1026
- l > u ? p = "next" : l < u ? p = "prev" : p = "reset";
1027
- const m = i.virtual && i.params.virtual.enabled;
1028
- if (!(m && n) && (f && -w === i.translate || !f && w === i.translate))
1029
- return i.updateActiveIndex(l), a.autoHeight && i.updateAutoHeight(), i.updateSlidesClasses(), a.effect !== "slide" && i.setTranslate(w), p !== "reset" && (i.transitionStart(s, p), i.transitionEnd(s, p)), !1;
1025
+ let u;
1026
+ l > p ? u = "next" : l < p ? u = "prev" : u = "reset";
1027
+ const f = i.virtual && i.params.virtual.enabled;
1028
+ if (!(f && n) && (h && -w === i.translate || !h && w === i.translate))
1029
+ return i.updateActiveIndex(l), a.autoHeight && i.updateAutoHeight(), i.updateSlidesClasses(), a.effect !== "slide" && i.setTranslate(w), u !== "reset" && (i.transitionStart(s, u), i.transitionEnd(s, u)), !1;
1030
1030
  if (a.cssMode) {
1031
- const y = i.isHorizontal(), T = f ? w : -w;
1031
+ const y = i.isHorizontal(), C = h ? w : -w;
1032
1032
  if (e === 0)
1033
- m && (i.wrapperEl.style.scrollSnapType = "none", i._immediateVirtual = !0), m && !i._cssModeVirtualInitialSet && i.params.initialSlide > 0 ? (i._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1034
- v[y ? "scrollLeft" : "scrollTop"] = T;
1035
- })) : v[y ? "scrollLeft" : "scrollTop"] = T, m && requestAnimationFrame(() => {
1033
+ f && (i.wrapperEl.style.scrollSnapType = "none", i._immediateVirtual = !0), f && !i._cssModeVirtualInitialSet && i.params.initialSlide > 0 ? (i._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1034
+ g[y ? "scrollLeft" : "scrollTop"] = C;
1035
+ })) : g[y ? "scrollLeft" : "scrollTop"] = C, f && requestAnimationFrame(() => {
1036
1036
  i.wrapperEl.style.scrollSnapType = "", i._immediateVirtual = !1;
1037
1037
  });
1038
1038
  else {
1039
1039
  if (!i.support.smoothScroll)
1040
1040
  return Ye({
1041
1041
  swiper: i,
1042
- targetPosition: T,
1042
+ targetPosition: C,
1043
1043
  side: y ? "left" : "top"
1044
1044
  }), !0;
1045
- v.scrollTo({
1046
- [y ? "left" : "top"]: T,
1045
+ g.scrollTo({
1046
+ [y ? "left" : "top"]: C,
1047
1047
  behavior: "smooth"
1048
1048
  });
1049
1049
  }
1050
1050
  return !0;
1051
1051
  }
1052
- const g = Ke().isSafari;
1053
- return m && !n && g && i.isElement && i.virtual.update(!1, !1, l), i.setTransition(e), i.setTranslate(w), i.updateActiveIndex(l), i.updateSlidesClasses(), i.emit("beforeTransitionStart", e, r), i.transitionStart(s, p), e === 0 ? i.transitionEnd(s, p) : i.animating || (i.animating = !0, i.onSlideToWrapperTransitionEnd || (i.onSlideToWrapperTransitionEnd = function(y) {
1054
- !i || i.destroyed || y.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onSlideToWrapperTransitionEnd), i.onSlideToWrapperTransitionEnd = null, delete i.onSlideToWrapperTransitionEnd, i.transitionEnd(s, p));
1052
+ const v = Ke().isSafari;
1053
+ return f && !n && v && i.isElement && i.virtual.update(!1, !1, l), i.setTransition(e), i.setTranslate(w), i.updateActiveIndex(l), i.updateSlidesClasses(), i.emit("beforeTransitionStart", e, r), i.transitionStart(s, u), e === 0 ? i.transitionEnd(s, u) : i.animating || (i.animating = !0, i.onSlideToWrapperTransitionEnd || (i.onSlideToWrapperTransitionEnd = function(y) {
1054
+ !i || i.destroyed || y.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onSlideToWrapperTransitionEnd), i.onSlideToWrapperTransitionEnd = null, delete i.onSlideToWrapperTransitionEnd, i.transitionEnd(s, u));
1055
1055
  }), i.wrapperEl.addEventListener("transitionend", i.onSlideToWrapperTransitionEnd)), !0;
1056
1056
  }
1057
1057
  function as(t, e, s, r) {
@@ -1067,8 +1067,8 @@ function as(t, e, s, r) {
1067
1067
  else {
1068
1068
  let a;
1069
1069
  if (i) {
1070
- const f = l * n.params.grid.rows;
1071
- a = n.slides.find((v) => v.getAttribute("data-swiper-slide-index") * 1 === f).column;
1070
+ const h = l * n.params.grid.rows;
1071
+ a = n.slides.find((g) => g.getAttribute("data-swiper-slide-index") * 1 === h).column;
1072
1072
  } else
1073
1073
  a = n.getSlideIndexByData(l);
1074
1074
  const o = i ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
@@ -1076,19 +1076,19 @@ function as(t, e, s, r) {
1076
1076
  } = n.params;
1077
1077
  let d = n.params.slidesPerView;
1078
1078
  d === "auto" ? d = n.slidesPerViewDynamic() : (d = Math.ceil(parseFloat(n.params.slidesPerView, 10)), c && d % 2 === 0 && (d = d + 1));
1079
- let u = o - a < d;
1080
- if (c && (u = u || a < Math.ceil(d / 2)), r && c && n.params.slidesPerView !== "auto" && !i && (u = !1), u) {
1081
- const f = c ? a < n.activeIndex ? "prev" : "next" : a - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
1079
+ let p = o - a < d;
1080
+ if (c && (p = p || a < Math.ceil(d / 2)), r && c && n.params.slidesPerView !== "auto" && !i && (p = !1), p) {
1081
+ const h = c ? a < n.activeIndex ? "prev" : "next" : a - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
1082
1082
  n.loopFix({
1083
- direction: f,
1083
+ direction: h,
1084
1084
  slideTo: !0,
1085
- activeSlideIndex: f === "next" ? a + 1 : a - o + 1,
1086
- slideRealIndex: f === "next" ? n.realIndex : void 0
1085
+ activeSlideIndex: h === "next" ? a + 1 : a - o + 1,
1086
+ slideRealIndex: h === "next" ? n.realIndex : void 0
1087
1087
  });
1088
1088
  }
1089
1089
  if (i) {
1090
- const f = l * n.params.grid.rows;
1091
- l = n.slides.find((v) => v.getAttribute("data-swiper-slide-index") * 1 === f).column;
1090
+ const h = l * n.params.grid.rows;
1091
+ l = n.slides.find((g) => g.getAttribute("data-swiper-slide-index") * 1 === h).column;
1092
1092
  } else
1093
1093
  l = n.getSlideIndexByData(l);
1094
1094
  }
@@ -1138,22 +1138,22 @@ function os(t, e, s) {
1138
1138
  direction: "prev"
1139
1139
  }), r._clientLeft = r.wrapperEl.clientLeft;
1140
1140
  }
1141
- const u = a ? r.translate : -r.translate;
1142
- function f(p) {
1143
- return p < 0 ? -Math.floor(Math.abs(p)) : Math.floor(p);
1141
+ const p = a ? r.translate : -r.translate;
1142
+ function h(u) {
1143
+ return u < 0 ? -Math.floor(Math.abs(u)) : Math.floor(u);
1144
1144
  }
1145
- const v = f(u), h = i.map((p) => f(p)), b = n.freeMode && n.freeMode.enabled;
1146
- let M = i[h.indexOf(v) - 1];
1147
- if (typeof M > "u" && (n.cssMode || b)) {
1148
- let p;
1149
- i.forEach((m, g) => {
1150
- v >= m && (p = g);
1151
- }), typeof p < "u" && (M = b ? i[p] : i[p > 0 ? p - 1 : p]);
1145
+ const g = h(p), m = i.map((u) => h(u)), T = n.freeMode && n.freeMode.enabled;
1146
+ let M = i[m.indexOf(g) - 1];
1147
+ if (typeof M > "u" && (n.cssMode || T)) {
1148
+ let u;
1149
+ i.forEach((f, v) => {
1150
+ g >= f && (u = v);
1151
+ }), typeof u < "u" && (M = T ? i[u] : i[u > 0 ? u - 1 : u]);
1152
1152
  }
1153
1153
  let w = 0;
1154
1154
  if (typeof M < "u" && (w = l.indexOf(M), w < 0 && (w = r.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (w = w - r.slidesPerViewDynamic("previous", !0) + 1, w = Math.max(w, 0))), n.rewind && r.isBeginning) {
1155
- const p = r.params.virtual && r.params.virtual.enabled && r.virtual ? r.virtual.slides.length - 1 : r.slides.length - 1;
1156
- return r.slideTo(p, t, e, s);
1155
+ const u = r.params.virtual && r.params.virtual.enabled && r.virtual ? r.virtual.slides.length - 1 : r.slides.length - 1;
1156
+ return r.slideTo(u, t, e, s);
1157
1157
  } else if (n.loop && r.activeIndex === 0 && n.cssMode)
1158
1158
  return requestAnimationFrame(() => {
1159
1159
  r.slideTo(w, t, e, s);
@@ -1182,7 +1182,7 @@ function cs(t, e, s, r) {
1182
1182
  }
1183
1183
  return i = Math.max(i, 0), i = Math.min(i, n.slidesGrid.length - 1), n.slideTo(i, t, e, s);
1184
1184
  }
1185
- function ps() {
1185
+ function us() {
1186
1186
  const t = this;
1187
1187
  if (t.destroyed) return;
1188
1188
  const {
@@ -1193,50 +1193,50 @@ function ps() {
1193
1193
  const l = t.isElement ? "swiper-slide" : `.${e.slideClass}`;
1194
1194
  if (e.loop) {
1195
1195
  if (t.animating) return;
1196
- i = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? n < t.loopedSlides - r / 2 || n > t.slides.length - t.loopedSlides + r / 2 ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), xe(() => {
1196
+ i = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? n < t.loopedSlides - r / 2 || n > t.slides.length - t.loopedSlides + r / 2 ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), Te(() => {
1197
1197
  t.slideTo(n);
1198
- })) : t.slideTo(n) : n > t.slides.length - r ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), xe(() => {
1198
+ })) : t.slideTo(n) : n > t.slides.length - r ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), Te(() => {
1199
1199
  t.slideTo(n);
1200
1200
  })) : t.slideTo(n);
1201
1201
  } else
1202
1202
  t.slideTo(n);
1203
1203
  }
1204
- var us = {
1204
+ var ps = {
1205
1205
  slideTo: ns,
1206
1206
  slideToLoop: as,
1207
1207
  slideNext: ls,
1208
1208
  slidePrev: os,
1209
1209
  slideReset: ds,
1210
1210
  slideToClosest: cs,
1211
- slideToClickedSlide: ps
1211
+ slideToClickedSlide: us
1212
1212
  };
1213
- function ms(t, e) {
1213
+ function fs(t, e) {
1214
1214
  const s = this, {
1215
1215
  params: r,
1216
1216
  slidesEl: n
1217
1217
  } = s;
1218
1218
  if (!r.loop || s.virtual && s.params.virtual.enabled) return;
1219
1219
  const i = () => {
1220
- H(n, `.${r.slideClass}, swiper-slide`).forEach((u, f) => {
1221
- u.setAttribute("data-swiper-slide-index", f);
1220
+ H(n, `.${r.slideClass}, swiper-slide`).forEach((p, h) => {
1221
+ p.setAttribute("data-swiper-slide-index", h);
1222
1222
  });
1223
- }, l = s.grid && r.grid && r.grid.rows > 1, a = r.slidesPerGroup * (l ? r.grid.rows : 1), o = s.slides.length % a !== 0, c = l && s.slides.length % r.grid.rows !== 0, d = (u) => {
1224
- for (let f = 0; f < u; f += 1) {
1225
- const v = s.isElement ? de("swiper-slide", [r.slideBlankClass]) : de("div", [r.slideClass, r.slideBlankClass]);
1226
- s.slidesEl.append(v);
1223
+ }, l = s.grid && r.grid && r.grid.rows > 1, a = r.slidesPerGroup * (l ? r.grid.rows : 1), o = s.slides.length % a !== 0, c = l && s.slides.length % r.grid.rows !== 0, d = (p) => {
1224
+ for (let h = 0; h < p; h += 1) {
1225
+ const g = s.isElement ? de("swiper-slide", [r.slideBlankClass]) : de("div", [r.slideClass, r.slideBlankClass]);
1226
+ s.slidesEl.append(g);
1227
1227
  }
1228
1228
  };
1229
1229
  if (o) {
1230
1230
  if (r.loopAddBlankSlides) {
1231
- const u = a - s.slides.length % a;
1232
- d(u), s.recalcSlides(), s.updateSlides();
1231
+ const p = a - s.slides.length % a;
1232
+ d(p), s.recalcSlides(), s.updateSlides();
1233
1233
  } else
1234
1234
  oe("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
1235
1235
  i();
1236
1236
  } else if (c) {
1237
1237
  if (r.loopAddBlankSlides) {
1238
- const u = r.grid.rows - s.slides.length % r.grid.rows;
1239
- d(u), s.recalcSlides(), s.updateSlides();
1238
+ const p = r.grid.rows - s.slides.length % r.grid.rows;
1239
+ d(p), s.recalcSlides(), s.updateSlides();
1240
1240
  } else
1241
1241
  oe("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
1242
1242
  i();
@@ -1248,7 +1248,7 @@ function ms(t, e) {
1248
1248
  initial: e
1249
1249
  });
1250
1250
  }
1251
- function fs(t) {
1251
+ function ms(t) {
1252
1252
  let {
1253
1253
  slideRealIndex: e,
1254
1254
  slideTo: s = !0,
@@ -1264,79 +1264,79 @@ function fs(t) {
1264
1264
  c.emit("beforeLoopFix");
1265
1265
  const {
1266
1266
  slides: d,
1267
- allowSlidePrev: u,
1268
- allowSlideNext: f,
1269
- slidesEl: v,
1270
- params: h
1267
+ allowSlidePrev: p,
1268
+ allowSlideNext: h,
1269
+ slidesEl: g,
1270
+ params: m
1271
1271
  } = c, {
1272
- centeredSlides: b,
1272
+ centeredSlides: T,
1273
1273
  initialSlide: M
1274
- } = h;
1275
- if (c.allowSlidePrev = !0, c.allowSlideNext = !0, c.virtual && h.virtual.enabled) {
1276
- s && (!h.centeredSlides && c.snapIndex === 0 ? c.slideTo(c.virtual.slides.length, 0, !1, !0) : h.centeredSlides && c.snapIndex < h.slidesPerView ? c.slideTo(c.virtual.slides.length + c.snapIndex, 0, !1, !0) : c.snapIndex === c.snapGrid.length - 1 && c.slideTo(c.virtual.slidesBefore, 0, !1, !0)), c.allowSlidePrev = u, c.allowSlideNext = f, c.emit("loopFix");
1274
+ } = m;
1275
+ if (c.allowSlidePrev = !0, c.allowSlideNext = !0, c.virtual && m.virtual.enabled) {
1276
+ s && (!m.centeredSlides && c.snapIndex === 0 ? c.slideTo(c.virtual.slides.length, 0, !1, !0) : m.centeredSlides && c.snapIndex < m.slidesPerView ? c.slideTo(c.virtual.slides.length + c.snapIndex, 0, !1, !0) : c.snapIndex === c.snapGrid.length - 1 && c.slideTo(c.virtual.slidesBefore, 0, !1, !0)), c.allowSlidePrev = p, c.allowSlideNext = h, c.emit("loopFix");
1277
1277
  return;
1278
1278
  }
1279
- let w = h.slidesPerView;
1280
- w === "auto" ? w = c.slidesPerViewDynamic() : (w = Math.ceil(parseFloat(h.slidesPerView, 10)), b && w % 2 === 0 && (w = w + 1));
1281
- const p = h.slidesPerGroupAuto ? w : h.slidesPerGroup;
1282
- let m = p;
1283
- m % p !== 0 && (m += p - m % p), m += h.loopAdditionalSlides, c.loopedSlides = m;
1284
- const g = c.grid && h.grid && h.grid.rows > 1;
1285
- d.length < w + m || c.params.effect === "cards" && d.length < w + m * 2 ? oe("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : g && h.grid.fill === "row" && oe("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
1286
- const y = [], T = [], A = g ? Math.ceil(d.length / h.grid.rows) : d.length, I = l && A - M < w && !b;
1287
- let S = I ? M : c.activeIndex;
1288
- typeof i > "u" ? i = c.getSlideIndex(d.find((C) => C.classList.contains(h.slideActiveClass))) : S = i;
1289
- const E = r === "next" || !r, x = r === "prev" || !r;
1279
+ let w = m.slidesPerView;
1280
+ w === "auto" ? w = c.slidesPerViewDynamic() : (w = Math.ceil(parseFloat(m.slidesPerView, 10)), T && w % 2 === 0 && (w = w + 1));
1281
+ const u = m.slidesPerGroupAuto ? w : m.slidesPerGroup;
1282
+ let f = u;
1283
+ f % u !== 0 && (f += u - f % u), f += m.loopAdditionalSlides, c.loopedSlides = f;
1284
+ const v = c.grid && m.grid && m.grid.rows > 1;
1285
+ d.length < w + f || c.params.effect === "cards" && d.length < w + f * 2 ? oe("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : v && m.grid.fill === "row" && oe("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
1286
+ const y = [], C = [], A = v ? Math.ceil(d.length / m.grid.rows) : d.length, I = l && A - M < w && !T;
1287
+ let b = I ? M : c.activeIndex;
1288
+ typeof i > "u" ? i = c.getSlideIndex(d.find((x) => x.classList.contains(m.slideActiveClass))) : b = i;
1289
+ const S = r === "next" || !r, E = r === "prev" || !r;
1290
1290
  let k = 0, L = 0;
1291
- const O = (g ? d[i].column : i) + (b && typeof n > "u" ? -w / 2 + 0.5 : 0);
1292
- if (O < m) {
1293
- k = Math.max(m - O, p);
1294
- for (let C = 0; C < m - O; C += 1) {
1295
- const z = C - Math.floor(C / A) * A;
1296
- if (g) {
1291
+ const O = (v ? d[i].column : i) + (T && typeof n > "u" ? -w / 2 + 0.5 : 0);
1292
+ if (O < f) {
1293
+ k = Math.max(f - O, u);
1294
+ for (let x = 0; x < f - O; x += 1) {
1295
+ const z = x - Math.floor(x / A) * A;
1296
+ if (v) {
1297
1297
  const U = A - z - 1;
1298
1298
  for (let V = d.length - 1; V >= 0; V -= 1)
1299
1299
  d[V].column === U && y.push(V);
1300
1300
  } else
1301
1301
  y.push(A - z - 1);
1302
1302
  }
1303
- } else if (O + w > A - m) {
1304
- L = Math.max(O - (A - m * 2), p), I && (L = Math.max(L, w - A + M + 1));
1305
- for (let C = 0; C < L; C += 1) {
1306
- const z = C - Math.floor(C / A) * A;
1307
- g ? d.forEach((U, V) => {
1308
- U.column === z && T.push(V);
1309
- }) : T.push(z);
1303
+ } else if (O + w > A - f) {
1304
+ L = Math.max(O - (A - f * 2), u), I && (L = Math.max(L, w - A + M + 1));
1305
+ for (let x = 0; x < L; x += 1) {
1306
+ const z = x - Math.floor(x / A) * A;
1307
+ v ? d.forEach((U, V) => {
1308
+ U.column === z && C.push(V);
1309
+ }) : C.push(z);
1310
1310
  }
1311
1311
  }
1312
1312
  if (c.__preventObserver__ = !0, requestAnimationFrame(() => {
1313
1313
  c.__preventObserver__ = !1;
1314
- }), c.params.effect === "cards" && d.length < w + m * 2 && (T.includes(i) && T.splice(T.indexOf(i), 1), y.includes(i) && y.splice(y.indexOf(i), 1)), x && y.forEach((C) => {
1315
- d[C].swiperLoopMoveDOM = !0, v.prepend(d[C]), d[C].swiperLoopMoveDOM = !1;
1316
- }), E && T.forEach((C) => {
1317
- d[C].swiperLoopMoveDOM = !0, v.append(d[C]), d[C].swiperLoopMoveDOM = !1;
1318
- }), c.recalcSlides(), h.slidesPerView === "auto" ? c.updateSlides() : g && (y.length > 0 && x || T.length > 0 && E) && c.slides.forEach((C, z) => {
1319
- c.grid.updateSlide(z, C, c.slides);
1320
- }), h.watchSlidesProgress && c.updateSlidesOffset(), s) {
1321
- if (y.length > 0 && x) {
1314
+ }), c.params.effect === "cards" && d.length < w + f * 2 && (C.includes(i) && C.splice(C.indexOf(i), 1), y.includes(i) && y.splice(y.indexOf(i), 1)), E && y.forEach((x) => {
1315
+ d[x].swiperLoopMoveDOM = !0, g.prepend(d[x]), d[x].swiperLoopMoveDOM = !1;
1316
+ }), S && C.forEach((x) => {
1317
+ d[x].swiperLoopMoveDOM = !0, g.append(d[x]), d[x].swiperLoopMoveDOM = !1;
1318
+ }), c.recalcSlides(), m.slidesPerView === "auto" ? c.updateSlides() : v && (y.length > 0 && E || C.length > 0 && S) && c.slides.forEach((x, z) => {
1319
+ c.grid.updateSlide(z, x, c.slides);
1320
+ }), m.watchSlidesProgress && c.updateSlidesOffset(), s) {
1321
+ if (y.length > 0 && E) {
1322
1322
  if (typeof e > "u") {
1323
- const C = c.slidesGrid[S], z = c.slidesGrid[S + k] - C;
1324
- o ? c.setTranslate(c.translate - z) : (c.slideTo(S + Math.ceil(k), 0, !1, !0), n && (c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - z, c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - z));
1323
+ const x = c.slidesGrid[b], z = c.slidesGrid[b + k] - x;
1324
+ o ? c.setTranslate(c.translate - z) : (c.slideTo(b + Math.ceil(k), 0, !1, !0), n && (c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - z, c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - z));
1325
1325
  } else if (n) {
1326
- const C = g ? y.length / h.grid.rows : y.length;
1327
- c.slideTo(c.activeIndex + C, 0, !1, !0), c.touchEventsData.currentTranslate = c.translate;
1326
+ const x = v ? y.length / m.grid.rows : y.length;
1327
+ c.slideTo(c.activeIndex + x, 0, !1, !0), c.touchEventsData.currentTranslate = c.translate;
1328
1328
  }
1329
- } else if (T.length > 0 && E)
1329
+ } else if (C.length > 0 && S)
1330
1330
  if (typeof e > "u") {
1331
- const C = c.slidesGrid[S], z = c.slidesGrid[S - L] - C;
1332
- o ? c.setTranslate(c.translate - z) : (c.slideTo(S - L, 0, !1, !0), n && (c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - z, c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - z));
1331
+ const x = c.slidesGrid[b], z = c.slidesGrid[b - L] - x;
1332
+ o ? c.setTranslate(c.translate - z) : (c.slideTo(b - L, 0, !1, !0), n && (c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - z, c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - z));
1333
1333
  } else {
1334
- const C = g ? T.length / h.grid.rows : T.length;
1335
- c.slideTo(c.activeIndex - C, 0, !1, !0);
1334
+ const x = v ? C.length / m.grid.rows : C.length;
1335
+ c.slideTo(c.activeIndex - x, 0, !1, !0);
1336
1336
  }
1337
1337
  }
1338
- if (c.allowSlidePrev = u, c.allowSlideNext = f, c.controller && c.controller.control && !a) {
1339
- const C = {
1338
+ if (c.allowSlidePrev = p, c.allowSlideNext = h, c.controller && c.controller.control && !a) {
1339
+ const x = {
1340
1340
  slideRealIndex: e,
1341
1341
  direction: r,
1342
1342
  setTranslate: n,
@@ -1345,12 +1345,12 @@ function fs(t) {
1345
1345
  };
1346
1346
  Array.isArray(c.controller.control) ? c.controller.control.forEach((z) => {
1347
1347
  !z.destroyed && z.params.loop && z.loopFix({
1348
- ...C,
1349
- slideTo: z.params.slidesPerView === h.slidesPerView ? s : !1
1348
+ ...x,
1349
+ slideTo: z.params.slidesPerView === m.slidesPerView ? s : !1
1350
1350
  });
1351
1351
  }) : c.controller.control instanceof c.constructor && c.controller.control.params.loop && c.controller.control.loopFix({
1352
- ...C,
1353
- slideTo: c.controller.control.params.slidesPerView === h.slidesPerView ? s : !1
1352
+ ...x,
1353
+ slideTo: c.controller.control.params.slidesPerView === m.slidesPerView ? s : !1
1354
1354
  });
1355
1355
  }
1356
1356
  c.emit("loopFix");
@@ -1372,12 +1372,12 @@ function hs() {
1372
1372
  s.append(n);
1373
1373
  }), t.recalcSlides(), t.slideTo(t.realIndex, 0);
1374
1374
  }
1375
- var vs = {
1376
- loopCreate: ms,
1377
- loopFix: fs,
1375
+ var gs = {
1376
+ loopCreate: fs,
1377
+ loopFix: ms,
1378
1378
  loopDestroy: hs
1379
1379
  };
1380
- function gs(t) {
1380
+ function vs(t) {
1381
1381
  const e = this;
1382
1382
  if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
1383
1383
  const s = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
@@ -1391,11 +1391,11 @@ function ws() {
1391
1391
  t.__preventObserver__ = !1;
1392
1392
  }));
1393
1393
  }
1394
- var bs = {
1395
- setGrabCursor: gs,
1394
+ var ys = {
1395
+ setGrabCursor: vs,
1396
1396
  unsetGrabCursor: ws
1397
1397
  };
1398
- function ys(t, e) {
1398
+ function bs(t, e) {
1399
1399
  e === void 0 && (e = this);
1400
1400
  function s(r) {
1401
1401
  if (!r || r === K() || r === N()) return null;
@@ -1437,16 +1437,16 @@ function Ss(t) {
1437
1437
  if (i.touchEventsTarget === "wrapper" && !It(o, e.wrapperEl) || "which" in r && r.which === 3 || "button" in r && r.button > 0 || n.isTouched && n.isMoved) return;
1438
1438
  const c = !!i.noSwipingClass && i.noSwipingClass !== "", d = r.composedPath ? r.composedPath() : r.path;
1439
1439
  c && r.target && r.target.shadowRoot && d && (o = d[0]);
1440
- const u = i.noSwipingSelector ? i.noSwipingSelector : `.${i.noSwipingClass}`, f = !!(r.target && r.target.shadowRoot);
1441
- if (i.noSwiping && (f ? ys(u, o) : o.closest(u))) {
1440
+ const p = i.noSwipingSelector ? i.noSwipingSelector : `.${i.noSwipingClass}`, h = !!(r.target && r.target.shadowRoot);
1441
+ if (i.noSwiping && (h ? bs(p, o) : o.closest(p))) {
1442
1442
  e.allowClick = !0;
1443
1443
  return;
1444
1444
  }
1445
1445
  if (i.swipeHandler && !o.closest(i.swipeHandler))
1446
1446
  return;
1447
1447
  l.currentX = r.pageX, l.currentY = r.pageY;
1448
- const v = l.currentX, h = l.currentY;
1449
- if (!Ge(e, r, v))
1448
+ const g = l.currentX, m = l.currentY;
1449
+ if (!Ge(e, r, g))
1450
1450
  return;
1451
1451
  Object.assign(n, {
1452
1452
  isTouched: !0,
@@ -1454,10 +1454,10 @@ function Ss(t) {
1454
1454
  allowTouchCallbacks: !0,
1455
1455
  isScrolling: void 0,
1456
1456
  startMoving: void 0
1457
- }), l.startX = v, l.startY = h, n.touchStartTime = le(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, i.threshold > 0 && (n.allowThresholdMove = !1);
1458
- let b = !0;
1459
- o.matches(n.focusableElements) && (b = !1, o.nodeName === "SELECT" && (n.isTouched = !1)), s.activeElement && s.activeElement.matches(n.focusableElements) && s.activeElement !== o && (r.pointerType === "mouse" || r.pointerType !== "mouse" && !o.matches(n.focusableElements)) && s.activeElement.blur();
1460
- const M = b && e.allowTouchMove && i.touchStartPreventDefault;
1457
+ }), l.startX = g, l.startY = m, n.touchStartTime = le(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, i.threshold > 0 && (n.allowThresholdMove = !1);
1458
+ let T = !0;
1459
+ o.matches(n.focusableElements) && (T = !1, o.nodeName === "SELECT" && (n.isTouched = !1)), s.activeElement && s.activeElement.matches(n.focusableElements) && s.activeElement !== o && (r.pointerType === "mouse" || r.pointerType !== "mouse" && !o.matches(n.focusableElements)) && s.activeElement.blur();
1460
+ const M = T && e.allowTouchMove && i.touchStartPreventDefault;
1461
1461
  (i.touchStartForcePreventDefault || M) && !o.isContentEditable && r.preventDefault(), i.freeMode && i.freeMode.enabled && e.freeMode && e.animating && !i.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", r);
1462
1462
  }
1463
1463
  function Es(t) {
@@ -1473,30 +1473,30 @@ function Es(t) {
1473
1473
  return;
1474
1474
  let c;
1475
1475
  if (o.type === "touchmove") {
1476
- if (c = [...o.changedTouches].find((T) => T.identifier === r.touchId), !c || c.identifier !== r.touchId) return;
1476
+ if (c = [...o.changedTouches].find((y) => y.identifier === r.touchId), !c || c.identifier !== r.touchId) return;
1477
1477
  } else
1478
1478
  c = o;
1479
1479
  if (!r.isTouched) {
1480
1480
  r.startMoving && r.isScrolling && s.emit("touchMoveOpposite", o);
1481
1481
  return;
1482
1482
  }
1483
- const d = c.pageX, u = c.pageY;
1483
+ const d = c.pageX, p = c.pageY;
1484
1484
  if (o.preventedByNestedSwiper) {
1485
- i.startX = d, i.startY = u;
1485
+ i.startX = d, i.startY = p;
1486
1486
  return;
1487
1487
  }
1488
1488
  if (!s.allowTouchMove) {
1489
1489
  o.target.matches(r.focusableElements) || (s.allowClick = !1), r.isTouched && (Object.assign(i, {
1490
1490
  startX: d,
1491
- startY: u,
1491
+ startY: p,
1492
1492
  currentX: d,
1493
- currentY: u
1493
+ currentY: p
1494
1494
  }), r.touchStartTime = le());
1495
1495
  return;
1496
1496
  }
1497
1497
  if (n.touchReleaseOnEdges && !n.loop) {
1498
1498
  if (s.isVertical()) {
1499
- if (u < i.startY && s.translate <= s.maxTranslate() || u > i.startY && s.translate >= s.minTranslate()) {
1499
+ if (p < i.startY && s.translate <= s.maxTranslate() || p > i.startY && s.translate >= s.minTranslate()) {
1500
1500
  r.isTouched = !1, r.isMoved = !1;
1501
1501
  return;
1502
1502
  }
@@ -1507,12 +1507,12 @@ function Es(t) {
1507
1507
  r.isMoved = !0, s.allowClick = !1;
1508
1508
  return;
1509
1509
  }
1510
- r.allowTouchCallbacks && s.emit("touchMove", o), i.previousX = i.currentX, i.previousY = i.currentY, i.currentX = d, i.currentY = u;
1511
- const f = i.currentX - i.startX, v = i.currentY - i.startY;
1512
- if (s.params.threshold && Math.sqrt(f ** 2 + v ** 2) < s.params.threshold) return;
1510
+ r.allowTouchCallbacks && s.emit("touchMove", o), i.previousX = i.currentX, i.previousY = i.currentY, i.currentX = d, i.currentY = p;
1511
+ const h = i.currentX - i.startX, g = i.currentY - i.startY;
1512
+ if (s.params.threshold && Math.sqrt(h ** 2 + g ** 2) < s.params.threshold) return;
1513
1513
  if (typeof r.isScrolling > "u") {
1514
- let T;
1515
- s.isHorizontal() && i.currentY === i.startY || s.isVertical() && i.currentX === i.startX ? r.isScrolling = !1 : f * f + v * v >= 25 && (T = Math.atan2(Math.abs(v), Math.abs(f)) * 180 / Math.PI, r.isScrolling = s.isHorizontal() ? T > n.touchAngle : 90 - T > n.touchAngle);
1514
+ let y;
1515
+ s.isHorizontal() && i.currentY === i.startY || s.isVertical() && i.currentX === i.startX ? r.isScrolling = !1 : h * h + g * g >= 25 && (y = Math.atan2(Math.abs(g), Math.abs(h)) * 180 / Math.PI, r.isScrolling = s.isHorizontal() ? y > n.touchAngle : 90 - y > n.touchAngle);
1516
1516
  }
1517
1517
  if (r.isScrolling && s.emit("touchMoveOpposite", o), typeof r.startMoving > "u" && (i.currentX !== i.startX || i.currentY !== i.startY) && (r.startMoving = !0), r.isScrolling || o.type === "touchmove" && r.preventTouchMoveFromPointerMove) {
1518
1518
  r.isTouched = !1;
@@ -1521,49 +1521,48 @@ function Es(t) {
1521
1521
  if (!r.startMoving)
1522
1522
  return;
1523
1523
  s.allowClick = !1, !n.cssMode && o.cancelable && o.preventDefault(), n.touchMoveStopPropagation && !n.nested && o.stopPropagation();
1524
- let h = s.isHorizontal() ? f : v, b = s.isHorizontal() ? i.currentX - i.previousX : i.currentY - i.previousY;
1525
- n.oneWayMovement && (h = Math.abs(h) * (l ? 1 : -1), b = Math.abs(b) * (l ? 1 : -1)), i.diff = h, h *= n.touchRatio, l && (h = -h, b = -b);
1524
+ let m = s.isHorizontal() ? h : g, T = s.isHorizontal() ? i.currentX - i.previousX : i.currentY - i.previousY;
1525
+ n.oneWayMovement && (m = Math.abs(m) * (l ? 1 : -1), T = Math.abs(T) * (l ? 1 : -1)), i.diff = m, m *= n.touchRatio, l && (m = -m, T = -T);
1526
1526
  const M = s.touchesDirection;
1527
- s.swipeDirection = h > 0 ? "prev" : "next", s.touchesDirection = b > 0 ? "prev" : "next";
1528
- const w = s.params.loop && !n.cssMode, p = s.touchesDirection === "next" && s.allowSlideNext || s.touchesDirection === "prev" && s.allowSlidePrev;
1527
+ s.swipeDirection = m > 0 ? "prev" : "next", s.touchesDirection = T > 0 ? "prev" : "next";
1528
+ const w = s.params.loop && !n.cssMode, u = s.touchesDirection === "next" && s.allowSlideNext || s.touchesDirection === "prev" && s.allowSlidePrev;
1529
1529
  if (!r.isMoved) {
1530
- if (w && p && s.loopFix({
1530
+ if (w && u && s.loopFix({
1531
1531
  direction: s.swipeDirection
1532
1532
  }), r.startTranslate = s.getTranslate(), s.setTransition(0), s.animating) {
1533
- const T = new window.CustomEvent("transitionend", {
1533
+ const y = new window.CustomEvent("transitionend", {
1534
1534
  bubbles: !0,
1535
1535
  cancelable: !0,
1536
1536
  detail: {
1537
1537
  bySwiperTouchMove: !0
1538
1538
  }
1539
1539
  });
1540
- s.wrapperEl.dispatchEvent(T);
1540
+ s.wrapperEl.dispatchEvent(y);
1541
1541
  }
1542
1542
  r.allowMomentumBounce = !1, n.grabCursor && (s.allowSlideNext === !0 || s.allowSlidePrev === !0) && s.setGrabCursor(!0), s.emit("sliderFirstMove", o);
1543
1543
  }
1544
- let m;
1545
- if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && r.isMoved && r.allowThresholdMove && M !== s.touchesDirection && w && p && Math.abs(h) >= 1) {
1544
+ if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && r.isMoved && r.allowThresholdMove && M !== s.touchesDirection && w && u && Math.abs(m) >= 1) {
1546
1545
  Object.assign(i, {
1547
1546
  startX: d,
1548
- startY: u,
1547
+ startY: p,
1549
1548
  currentX: d,
1550
- currentY: u,
1549
+ currentY: p,
1551
1550
  startTranslate: r.currentTranslate
1552
1551
  }), r.loopSwapReset = !0, r.startTranslate = r.currentTranslate;
1553
1552
  return;
1554
1553
  }
1555
- s.emit("sliderMove", o), r.isMoved = !0, r.currentTranslate = h + r.startTranslate;
1556
- let g = !0, y = n.resistanceRatio;
1557
- if (n.touchReleaseOnEdges && (y = 0), h > 0 ? (w && p && !m && r.allowThresholdMove && r.currentTranslate > (n.centeredSlides ? s.minTranslate() - s.slidesSizesGrid[s.activeIndex + 1] - (n.slidesPerView !== "auto" && s.slides.length - n.slidesPerView >= 2 ? s.slidesSizesGrid[s.activeIndex + 1] + s.params.spaceBetween : 0) - s.params.spaceBetween : s.minTranslate()) && s.loopFix({
1554
+ s.emit("sliderMove", o), r.isMoved = !0, r.currentTranslate = m + r.startTranslate;
1555
+ let f = !0, v = n.resistanceRatio;
1556
+ if (n.touchReleaseOnEdges && (v = 0), m > 0 ? (w && u && r.allowThresholdMove && r.currentTranslate > (n.centeredSlides ? s.minTranslate() - s.slidesSizesGrid[s.activeIndex + 1] - (n.slidesPerView !== "auto" && s.slides.length - n.slidesPerView >= 2 ? s.slidesSizesGrid[s.activeIndex + 1] + s.params.spaceBetween : 0) - s.params.spaceBetween : s.minTranslate()) && s.loopFix({
1558
1557
  direction: "prev",
1559
1558
  setTranslate: !0,
1560
1559
  activeSlideIndex: 0
1561
- }), r.currentTranslate > s.minTranslate() && (g = !1, n.resistance && (r.currentTranslate = s.minTranslate() - 1 + (-s.minTranslate() + r.startTranslate + h) ** y))) : h < 0 && (w && p && !m && r.allowThresholdMove && r.currentTranslate < (n.centeredSlides ? s.maxTranslate() + s.slidesSizesGrid[s.slidesSizesGrid.length - 1] + s.params.spaceBetween + (n.slidesPerView !== "auto" && s.slides.length - n.slidesPerView >= 2 ? s.slidesSizesGrid[s.slidesSizesGrid.length - 1] + s.params.spaceBetween : 0) : s.maxTranslate()) && s.loopFix({
1560
+ }), r.currentTranslate > s.minTranslate() && (f = !1, n.resistance && (r.currentTranslate = s.minTranslate() - 1 + (-s.minTranslate() + r.startTranslate + m) ** v))) : m < 0 && (w && u && r.allowThresholdMove && r.currentTranslate < (n.centeredSlides ? s.maxTranslate() + s.slidesSizesGrid[s.slidesSizesGrid.length - 1] + s.params.spaceBetween + (n.slidesPerView !== "auto" && s.slides.length - n.slidesPerView >= 2 ? s.slidesSizesGrid[s.slidesSizesGrid.length - 1] + s.params.spaceBetween : 0) : s.maxTranslate()) && s.loopFix({
1562
1561
  direction: "next",
1563
1562
  setTranslate: !0,
1564
1563
  activeSlideIndex: s.slides.length - (n.slidesPerView === "auto" ? s.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
1565
- }), r.currentTranslate < s.maxTranslate() && (g = !1, n.resistance && (r.currentTranslate = s.maxTranslate() + 1 - (s.maxTranslate() - r.startTranslate - h) ** y))), g && (o.preventedByNestedSwiper = !0), !s.allowSlideNext && s.swipeDirection === "next" && r.currentTranslate < r.startTranslate && (r.currentTranslate = r.startTranslate), !s.allowSlidePrev && s.swipeDirection === "prev" && r.currentTranslate > r.startTranslate && (r.currentTranslate = r.startTranslate), !s.allowSlidePrev && !s.allowSlideNext && (r.currentTranslate = r.startTranslate), n.threshold > 0)
1566
- if (Math.abs(h) > n.threshold || r.allowThresholdMove) {
1564
+ }), r.currentTranslate < s.maxTranslate() && (f = !1, n.resistance && (r.currentTranslate = s.maxTranslate() + 1 - (s.maxTranslate() - r.startTranslate - m) ** v))), f && (o.preventedByNestedSwiper = !0), !s.allowSlideNext && s.swipeDirection === "next" && r.currentTranslate < r.startTranslate && (r.currentTranslate = r.startTranslate), !s.allowSlidePrev && s.swipeDirection === "prev" && r.currentTranslate > r.startTranslate && (r.currentTranslate = r.startTranslate), !s.allowSlidePrev && !s.allowSlideNext && (r.currentTranslate = r.startTranslate), n.threshold > 0)
1565
+ if (Math.abs(m) > n.threshold || r.allowThresholdMove) {
1567
1566
  if (!r.allowThresholdMove) {
1568
1567
  r.allowThresholdMove = !0, i.startX = i.currentX, i.startY = i.currentY, r.currentTranslate = r.startTranslate, i.diff = s.isHorizontal() ? i.currentX - i.startX : i.currentY - i.startY;
1569
1568
  return;
@@ -1574,13 +1573,13 @@ function Es(t) {
1574
1573
  }
1575
1574
  !n.followFinger || n.cssMode || ((n.freeMode && n.freeMode.enabled && s.freeMode || n.watchSlidesProgress) && (s.updateActiveIndex(), s.updateSlidesClasses()), n.freeMode && n.freeMode.enabled && s.freeMode && s.freeMode.onTouchMove(), s.updateProgress(r.currentTranslate), s.setTranslate(r.currentTranslate));
1576
1575
  }
1577
- function xs(t) {
1576
+ function Ts(t) {
1578
1577
  const e = this, s = e.touchEventsData;
1579
1578
  let r = t;
1580
1579
  r.originalEvent && (r = r.originalEvent);
1581
1580
  let n;
1582
1581
  if (r.type === "touchend" || r.type === "touchcancel") {
1583
- if (n = [...r.changedTouches].find((g) => g.identifier === s.touchId), !n || n.identifier !== s.touchId) return;
1582
+ if (n = [...r.changedTouches].find((v) => v.identifier === s.touchId), !n || n.identifier !== s.touchId) return;
1584
1583
  } else {
1585
1584
  if (s.touchId !== null || r.pointerId !== s.pointerId) return;
1586
1585
  n = r;
@@ -1601,48 +1600,48 @@ function xs(t) {
1601
1600
  return;
1602
1601
  }
1603
1602
  i.grabCursor && s.isMoved && s.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
1604
- const d = le(), u = d - s.touchStartTime;
1603
+ const d = le(), p = d - s.touchStartTime;
1605
1604
  if (e.allowClick) {
1606
- const g = r.path || r.composedPath && r.composedPath();
1607
- e.updateClickedSlide(g && g[0] || r.target, g), e.emit("tap click", r), u < 300 && d - s.lastClickTime < 300 && e.emit("doubleTap doubleClick", r);
1605
+ const v = r.path || r.composedPath && r.composedPath();
1606
+ e.updateClickedSlide(v && v[0] || r.target, v), e.emit("tap click", r), p < 300 && d - s.lastClickTime < 300 && e.emit("doubleTap doubleClick", r);
1608
1607
  }
1609
- if (s.lastClickTime = le(), xe(() => {
1608
+ if (s.lastClickTime = le(), Te(() => {
1610
1609
  e.destroyed || (e.allowClick = !0);
1611
1610
  }), !s.isTouched || !s.isMoved || !e.swipeDirection || l.diff === 0 && !s.loopSwapReset || s.currentTranslate === s.startTranslate && !s.loopSwapReset) {
1612
1611
  s.isTouched = !1, s.isMoved = !1, s.startMoving = !1;
1613
1612
  return;
1614
1613
  }
1615
1614
  s.isTouched = !1, s.isMoved = !1, s.startMoving = !1;
1616
- let f;
1617
- if (i.followFinger ? f = a ? e.translate : -e.translate : f = -s.currentTranslate, i.cssMode)
1615
+ let h;
1616
+ if (i.followFinger ? h = a ? e.translate : -e.translate : h = -s.currentTranslate, i.cssMode)
1618
1617
  return;
1619
1618
  if (i.freeMode && i.freeMode.enabled) {
1620
1619
  e.freeMode.onTouchEnd({
1621
- currentPos: f
1620
+ currentPos: h
1622
1621
  });
1623
1622
  return;
1624
1623
  }
1625
- const v = f >= -e.maxTranslate() && !e.params.loop;
1626
- let h = 0, b = e.slidesSizesGrid[0];
1627
- for (let g = 0; g < o.length; g += g < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
1628
- const y = g < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
1629
- typeof o[g + y] < "u" ? (v || f >= o[g] && f < o[g + y]) && (h = g, b = o[g + y] - o[g]) : (v || f >= o[g]) && (h = g, b = o[o.length - 1] - o[o.length - 2]);
1624
+ const g = h >= -e.maxTranslate() && !e.params.loop;
1625
+ let m = 0, T = e.slidesSizesGrid[0];
1626
+ for (let v = 0; v < o.length; v += v < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
1627
+ const y = v < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
1628
+ typeof o[v + y] < "u" ? (g || h >= o[v] && h < o[v + y]) && (m = v, T = o[v + y] - o[v]) : (g || h >= o[v]) && (m = v, T = o[o.length - 1] - o[o.length - 2]);
1630
1629
  }
1631
1630
  let M = null, w = null;
1632
1631
  i.rewind && (e.isBeginning ? w = i.virtual && i.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (M = 0));
1633
- const p = (f - o[h]) / b, m = h < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
1634
- if (u > i.longSwipesMs) {
1632
+ const u = (h - o[m]) / T, f = m < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
1633
+ if (p > i.longSwipesMs) {
1635
1634
  if (!i.longSwipes) {
1636
1635
  e.slideTo(e.activeIndex);
1637
1636
  return;
1638
1637
  }
1639
- e.swipeDirection === "next" && (p >= i.longSwipesRatio ? e.slideTo(i.rewind && e.isEnd ? M : h + m) : e.slideTo(h)), e.swipeDirection === "prev" && (p > 1 - i.longSwipesRatio ? e.slideTo(h + m) : w !== null && p < 0 && Math.abs(p) > i.longSwipesRatio ? e.slideTo(w) : e.slideTo(h));
1638
+ e.swipeDirection === "next" && (u >= i.longSwipesRatio ? e.slideTo(i.rewind && e.isEnd ? M : m + f) : e.slideTo(m)), e.swipeDirection === "prev" && (u > 1 - i.longSwipesRatio ? e.slideTo(m + f) : w !== null && u < 0 && Math.abs(u) > i.longSwipesRatio ? e.slideTo(w) : e.slideTo(m));
1640
1639
  } else {
1641
1640
  if (!i.shortSwipes) {
1642
1641
  e.slideTo(e.activeIndex);
1643
1642
  return;
1644
1643
  }
1645
- e.navigation && (r.target === e.navigation.nextEl || r.target === e.navigation.prevEl) ? r.target === e.navigation.nextEl ? e.slideTo(h + m) : e.slideTo(h) : (e.swipeDirection === "next" && e.slideTo(M !== null ? M : h + m), e.swipeDirection === "prev" && e.slideTo(w !== null ? w : h));
1644
+ e.navigation && (r.target === e.navigation.nextEl || r.target === e.navigation.prevEl) ? r.target === e.navigation.nextEl ? e.slideTo(m + f) : e.slideTo(m) : (e.swipeDirection === "next" && e.slideTo(M !== null ? M : m + f), e.swipeDirection === "prev" && e.slideTo(w !== null ? w : m));
1646
1645
  }
1647
1646
  }
1648
1647
  function Ne() {
@@ -1663,7 +1662,7 @@ function Ne() {
1663
1662
  t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
1664
1663
  }, 500)), t.allowSlidePrev = n, t.allowSlideNext = r, t.params.watchOverflow && i !== t.snapGrid && t.checkOverflow();
1665
1664
  }
1666
- function Ts(t) {
1665
+ function xs(t) {
1667
1666
  const e = this;
1668
1667
  e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
1669
1668
  }
@@ -1729,7 +1728,7 @@ function ks() {
1729
1728
  const t = this, {
1730
1729
  params: e
1731
1730
  } = t;
1732
- t.onTouchStart = Ss.bind(t), t.onTouchMove = Es.bind(t), t.onTouchEnd = xs.bind(t), t.onDocumentTouchStart = Ms.bind(t), e.cssMode && (t.onScroll = Cs.bind(t)), t.onClick = Ts.bind(t), t.onLoad = Ps.bind(t), Ze(t, "on");
1731
+ t.onTouchStart = Ss.bind(t), t.onTouchMove = Es.bind(t), t.onTouchEnd = Ts.bind(t), t.onDocumentTouchStart = Ms.bind(t), e.cssMode && (t.onScroll = Cs.bind(t)), t.onClick = xs.bind(t), t.onLoad = Ps.bind(t), Ze(t, "on");
1733
1732
  }
1734
1733
  function Is() {
1735
1734
  Ze(this, "off");
@@ -1749,20 +1748,20 @@ function As() {
1749
1748
  if (!i || i && Object.keys(i).length === 0) return;
1750
1749
  const l = K(), a = r.breakpointsBase === "window" || !r.breakpointsBase ? r.breakpointsBase : "container", o = ["window", "container"].includes(r.breakpointsBase) || !r.breakpointsBase ? t.el : l.querySelector(r.breakpointsBase), c = t.getBreakpoint(i, a, o);
1751
1750
  if (!c || t.currentBreakpoint === c) return;
1752
- const d = (c in i ? i[c] : void 0) || t.originalParams, u = Be(t, r), f = Be(t, d), v = t.params.grabCursor, h = d.grabCursor, b = r.enabled;
1753
- u && !f ? (n.classList.remove(`${r.containerModifierClass}grid`, `${r.containerModifierClass}grid-column`), t.emitContainerClasses()) : !u && f && (n.classList.add(`${r.containerModifierClass}grid`), (d.grid.fill && d.grid.fill === "column" || !d.grid.fill && r.grid.fill === "column") && n.classList.add(`${r.containerModifierClass}grid-column`), t.emitContainerClasses()), v && !h ? t.unsetGrabCursor() : !v && h && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((y) => {
1751
+ const d = (c in i ? i[c] : void 0) || t.originalParams, p = Be(t, r), h = Be(t, d), g = t.params.grabCursor, m = d.grabCursor, T = r.enabled;
1752
+ p && !h ? (n.classList.remove(`${r.containerModifierClass}grid`, `${r.containerModifierClass}grid-column`), t.emitContainerClasses()) : !p && h && (n.classList.add(`${r.containerModifierClass}grid`), (d.grid.fill && d.grid.fill === "column" || !d.grid.fill && r.grid.fill === "column") && n.classList.add(`${r.containerModifierClass}grid-column`), t.emitContainerClasses()), g && !m ? t.unsetGrabCursor() : !g && m && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((y) => {
1754
1753
  if (typeof d[y] > "u") return;
1755
- const T = r[y] && r[y].enabled, A = d[y] && d[y].enabled;
1756
- T && !A && t[y].disable(), !T && A && t[y].enable();
1754
+ const C = r[y] && r[y].enabled, A = d[y] && d[y].enabled;
1755
+ C && !A && t[y].disable(), !C && A && t[y].enable();
1757
1756
  });
1758
- const M = d.direction && d.direction !== r.direction, w = r.loop && (d.slidesPerView !== r.slidesPerView || M), p = r.loop;
1757
+ const M = d.direction && d.direction !== r.direction, w = r.loop && (d.slidesPerView !== r.slidesPerView || M), u = r.loop;
1759
1758
  M && s && t.changeDirection(), B(t.params, d);
1760
- const m = t.params.enabled, g = t.params.loop;
1759
+ const f = t.params.enabled, v = t.params.loop;
1761
1760
  Object.assign(t, {
1762
1761
  allowTouchMove: t.params.allowTouchMove,
1763
1762
  allowSlideNext: t.params.allowSlideNext,
1764
1763
  allowSlidePrev: t.params.allowSlidePrev
1765
- }), b && !m ? t.disable() : !b && m && t.enable(), t.currentBreakpoint = c, t.emit("_beforeBreakpoint", d), s && (w ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !p && g ? (t.loopCreate(e), t.updateSlides()) : p && !g && t.loopDestroy()), t.emit("breakpoint", d);
1764
+ }), T && !f ? t.disable() : !T && f && t.enable(), t.currentBreakpoint = c, t.emit("_beforeBreakpoint", d), s && (w ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !u && v ? (t.loopCreate(e), t.updateSlides()) : u && !v && t.loopDestroy()), t.emit("breakpoint", d);
1766
1765
  }
1767
1766
  function Os(t, e, s) {
1768
1767
  if (e === void 0 && (e = "window"), !t || e === "container" && !s) return;
@@ -1999,19 +1998,19 @@ function Fs(t, e) {
1999
1998
  }), B(e, s);
2000
1999
  };
2001
2000
  }
2002
- const be = {
2001
+ const ye = {
2003
2002
  eventsEmitter: Nt,
2004
2003
  update: Xt,
2005
2004
  translate: es,
2006
2005
  transition: is,
2007
- slide: us,
2008
- loop: vs,
2009
- grabCursor: bs,
2006
+ slide: ps,
2007
+ loop: gs,
2008
+ grabCursor: ys,
2010
2009
  events: Ls,
2011
2010
  breakpoints: zs,
2012
2011
  checkOverflow: Ds,
2013
2012
  classes: Ns
2014
- }, ye = {};
2013
+ }, be = {};
2015
2014
  let ze = class q {
2016
2015
  constructor() {
2017
2016
  let e, s;
@@ -2021,11 +2020,11 @@ let ze = class q {
2021
2020
  const l = K();
2022
2021
  if (s.el && typeof s.el == "string" && l.querySelectorAll(s.el).length > 1) {
2023
2022
  const d = [];
2024
- return l.querySelectorAll(s.el).forEach((u) => {
2025
- const f = B({}, s, {
2026
- el: u
2023
+ return l.querySelectorAll(s.el).forEach((p) => {
2024
+ const h = B({}, s, {
2025
+ el: p
2027
2026
  });
2028
- d.push(new q(f));
2027
+ d.push(new q(h));
2029
2028
  }), d;
2030
2029
  }
2031
2030
  const a = this;
@@ -2045,7 +2044,7 @@ let ze = class q {
2045
2044
  });
2046
2045
  });
2047
2046
  const c = B({}, Pe, o);
2048
- return a.params = B({}, c, ye, s), a.originalParams = B({}, a.params), a.passedParams = B({}, s), a.params && a.params.on && Object.keys(a.params.on).forEach((d) => {
2047
+ return a.params = B({}, c, be, s), a.originalParams = B({}, a.params), a.passedParams = B({}, s), a.params && a.params.on && Object.keys(a.params.on).forEach((d) => {
2049
2048
  a.on(d, a.params.on[d]);
2050
2049
  }), a.params && a.params.onAny && a.onAny(a.params.onAny), Object.assign(a, {
2051
2050
  enabled: a.params.enabled,
@@ -2198,17 +2197,17 @@ let ze = class q {
2198
2197
  let d = 1;
2199
2198
  if (typeof n.slidesPerView == "number") return n.slidesPerView;
2200
2199
  if (n.centeredSlides) {
2201
- let u = i[c] ? Math.ceil(i[c].swiperSlideSize) : 0, f;
2202
- for (let v = c + 1; v < i.length; v += 1)
2203
- i[v] && !f && (u += Math.ceil(i[v].swiperSlideSize), d += 1, u > o && (f = !0));
2204
- for (let v = c - 1; v >= 0; v -= 1)
2205
- i[v] && !f && (u += i[v].swiperSlideSize, d += 1, u > o && (f = !0));
2200
+ let p = i[c] ? Math.ceil(i[c].swiperSlideSize) : 0, h;
2201
+ for (let g = c + 1; g < i.length; g += 1)
2202
+ i[g] && !h && (p += Math.ceil(i[g].swiperSlideSize), d += 1, p > o && (h = !0));
2203
+ for (let g = c - 1; g >= 0; g -= 1)
2204
+ i[g] && !h && (p += i[g].swiperSlideSize, d += 1, p > o && (h = !0));
2206
2205
  } else if (e === "current")
2207
- for (let u = c + 1; u < i.length; u += 1)
2208
- (s ? l[u] + a[u] - l[c] < o : l[u] - l[c] < o) && (d += 1);
2206
+ for (let p = c + 1; p < i.length; p += 1)
2207
+ (s ? l[p] + a[p] - l[c] < o : l[p] - l[c] < o) && (d += 1);
2209
2208
  else
2210
- for (let u = c - 1; u >= 0; u -= 1)
2211
- l[c] - l[u] < o && (d += 1);
2209
+ for (let p = c - 1; p >= 0; p -= 1)
2210
+ l[c] - l[p] < o && (d += 1);
2212
2211
  return d;
2213
2212
  }
2214
2213
  update() {
@@ -2295,13 +2294,13 @@ let ze = class q {
2295
2294
  o.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), o.removeAttribute("style"), o.removeAttribute("data-swiper-slide-index");
2296
2295
  })), r.emit("destroy"), Object.keys(r.eventsListeners).forEach((o) => {
2297
2296
  r.off(o);
2298
- }), e !== !1 && (r.el && typeof r.el != "string" && (r.el.swiper = null), Tt(r)), r.destroyed = !0), null;
2297
+ }), e !== !1 && (r.el && typeof r.el != "string" && (r.el.swiper = null), xt(r)), r.destroyed = !0), null;
2299
2298
  }
2300
2299
  static extendDefaults(e) {
2301
- B(ye, e);
2300
+ B(be, e);
2302
2301
  }
2303
2302
  static get extendedDefaults() {
2304
- return ye;
2303
+ return be;
2305
2304
  }
2306
2305
  static get defaults() {
2307
2306
  return Pe;
@@ -2315,9 +2314,9 @@ let ze = class q {
2315
2314
  return Array.isArray(e) ? (e.forEach((s) => q.installModule(s)), q) : (q.installModule(e), q);
2316
2315
  }
2317
2316
  };
2318
- Object.keys(be).forEach((t) => {
2319
- Object.keys(be[t]).forEach((e) => {
2320
- ze.prototype[e] = be[t][e];
2317
+ Object.keys(ye).forEach((t) => {
2318
+ Object.keys(ye[t]).forEach((e) => {
2319
+ ze.prototype[e] = ye[t][e];
2321
2320
  });
2322
2321
  });
2323
2322
  ze.use([$t, Gt]);
@@ -2479,27 +2478,27 @@ function js(t) {
2479
2478
  scrollbarEl: a,
2480
2479
  paginationEl: o
2481
2480
  } = t;
2482
- const c = n.filter((S) => S !== "children" && S !== "direction" && S !== "wrapperClass"), {
2481
+ const c = n.filter((b) => b !== "children" && b !== "direction" && b !== "wrapperClass"), {
2483
2482
  params: d,
2484
- pagination: u,
2485
- navigation: f,
2486
- scrollbar: v,
2487
- virtual: h,
2488
- thumbs: b
2483
+ pagination: p,
2484
+ navigation: h,
2485
+ scrollbar: g,
2486
+ virtual: m,
2487
+ thumbs: T
2489
2488
  } = e;
2490
- let M, w, p, m, g, y, T, A;
2491
- n.includes("thumbs") && r.thumbs && r.thumbs.swiper && !r.thumbs.swiper.destroyed && d.thumbs && (!d.thumbs.swiper || d.thumbs.swiper.destroyed) && (M = !0), n.includes("controller") && r.controller && r.controller.control && d.controller && !d.controller.control && (w = !0), n.includes("pagination") && r.pagination && (r.pagination.el || o) && (d.pagination || d.pagination === !1) && u && !u.el && (p = !0), n.includes("scrollbar") && r.scrollbar && (r.scrollbar.el || a) && (d.scrollbar || d.scrollbar === !1) && v && !v.el && (m = !0), n.includes("navigation") && r.navigation && (r.navigation.prevEl || l) && (r.navigation.nextEl || i) && (d.navigation || d.navigation === !1) && f && !f.prevEl && !f.nextEl && (g = !0);
2492
- const I = (S) => {
2493
- e[S] && (e[S].destroy(), S === "navigation" ? (e.isElement && (e[S].prevEl.remove(), e[S].nextEl.remove()), d[S].prevEl = void 0, d[S].nextEl = void 0, e[S].prevEl = void 0, e[S].nextEl = void 0) : (e.isElement && e[S].el.remove(), d[S].el = void 0, e[S].el = void 0));
2489
+ let M, w, u, f, v, y, C, A;
2490
+ n.includes("thumbs") && r.thumbs && r.thumbs.swiper && !r.thumbs.swiper.destroyed && d.thumbs && (!d.thumbs.swiper || d.thumbs.swiper.destroyed) && (M = !0), n.includes("controller") && r.controller && r.controller.control && d.controller && !d.controller.control && (w = !0), n.includes("pagination") && r.pagination && (r.pagination.el || o) && (d.pagination || d.pagination === !1) && p && !p.el && (u = !0), n.includes("scrollbar") && r.scrollbar && (r.scrollbar.el || a) && (d.scrollbar || d.scrollbar === !1) && g && !g.el && (f = !0), n.includes("navigation") && r.navigation && (r.navigation.prevEl || l) && (r.navigation.nextEl || i) && (d.navigation || d.navigation === !1) && h && !h.prevEl && !h.nextEl && (v = !0);
2491
+ const I = (b) => {
2492
+ e[b] && (e[b].destroy(), b === "navigation" ? (e.isElement && (e[b].prevEl.remove(), e[b].nextEl.remove()), d[b].prevEl = void 0, d[b].nextEl = void 0, e[b].prevEl = void 0, e[b].nextEl = void 0) : (e.isElement && e[b].el.remove(), d[b].el = void 0, e[b].el = void 0));
2494
2493
  };
2495
- n.includes("loop") && e.isElement && (d.loop && !r.loop ? y = !0 : !d.loop && r.loop ? T = !0 : A = !0), c.forEach((S) => {
2496
- if (Q(d[S]) && Q(r[S]))
2497
- Object.assign(d[S], r[S]), (S === "navigation" || S === "pagination" || S === "scrollbar") && "enabled" in r[S] && !r[S].enabled && I(S);
2494
+ n.includes("loop") && e.isElement && (d.loop && !r.loop ? y = !0 : !d.loop && r.loop ? C = !0 : A = !0), c.forEach((b) => {
2495
+ if (Q(d[b]) && Q(r[b]))
2496
+ Object.assign(d[b], r[b]), (b === "navigation" || b === "pagination" || b === "scrollbar") && "enabled" in r[b] && !r[b].enabled && I(b);
2498
2497
  else {
2499
- const E = r[S];
2500
- (E === !0 || E === !1) && (S === "navigation" || S === "pagination" || S === "scrollbar") ? E === !1 && I(S) : d[S] = r[S];
2498
+ const S = r[b];
2499
+ (S === !0 || S === !1) && (b === "navigation" || b === "pagination" || b === "scrollbar") ? S === !1 && I(b) : d[b] = r[b];
2501
2500
  }
2502
- }), c.includes("controller") && !w && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && s && h && d.virtual.enabled ? (h.slides = s, h.update(!0)) : n.includes("virtual") && h && d.virtual.enabled && (s && (h.slides = s), h.update(!0)), n.includes("children") && s && d.loop && (A = !0), M && b.init() && b.update(!0), w && (e.controller.control = d.controller.control), p && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (d.pagination.el = o), u.init(), u.render(), u.update()), m && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), e.el.appendChild(a)), a && (d.scrollbar.el = a), v.init(), v.updateSize(), v.setTranslate()), g && (e.isElement && ((!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-button-next"), i.innerHTML = e.hostEl.constructor.nextButtonSvg, i.part.add("button-next"), e.el.appendChild(i)), (!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))), i && (d.navigation.nextEl = i), l && (d.navigation.prevEl = l), f.init(), f.update()), n.includes("allowSlideNext") && (e.allowSlideNext = r.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = r.allowSlidePrev), n.includes("direction") && e.changeDirection(r.direction, !1), (y || A) && e.loopDestroy(), (T || A) && e.loopCreate(), e.update();
2501
+ }), c.includes("controller") && !w && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && s && m && d.virtual.enabled ? (m.slides = s, m.update(!0)) : n.includes("virtual") && m && d.virtual.enabled && (s && (m.slides = s), m.update(!0)), n.includes("children") && s && d.loop && (A = !0), M && T.init() && T.update(!0), w && (e.controller.control = d.controller.control), u && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (d.pagination.el = o), p.init(), p.render(), p.update()), f && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), e.el.appendChild(a)), a && (d.scrollbar.el = a), g.init(), g.updateSize(), g.setTranslate()), v && (e.isElement && ((!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-button-next"), i.innerHTML = e.hostEl.constructor.nextButtonSvg, i.part.add("button-next"), e.el.appendChild(i)), (!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))), i && (d.navigation.nextEl = i), l && (d.navigation.prevEl = l), h.init(), h.update()), n.includes("allowSlideNext") && (e.allowSlideNext = r.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = r.allowSlidePrev), n.includes("direction") && e.changeDirection(r.direction, !1), (y || A) && e.loopDestroy(), (C || A) && e.loopCreate(), e.update();
2503
2502
  }
2504
2503
  function Hs(t, e) {
2505
2504
  t === void 0 && (t = {}), e === void 0 && (e = !0);
@@ -2555,15 +2554,15 @@ function qs(t, e, s, r, n) {
2555
2554
  const Ws = (t) => {
2556
2555
  !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());
2557
2556
  };
2558
- function pe() {
2559
- return pe = Object.assign ? Object.assign.bind() : function(t) {
2557
+ function ue() {
2558
+ return ue = Object.assign ? Object.assign.bind() : function(t) {
2560
2559
  for (var e = 1; e < arguments.length; e++) {
2561
2560
  var s = arguments[e];
2562
2561
  for (var r in s)
2563
2562
  Object.prototype.hasOwnProperty.call(s, r) && (t[r] = s[r]);
2564
2563
  }
2565
2564
  return t;
2566
- }, pe.apply(this, arguments);
2565
+ }, ue.apply(this, arguments);
2567
2566
  }
2568
2567
  function nt(t) {
2569
2568
  return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
@@ -2599,8 +2598,8 @@ function Ys(t) {
2599
2598
  function Xs(t, e, s) {
2600
2599
  if (!s) return null;
2601
2600
  const r = (d) => {
2602
- let u = d;
2603
- return d < 0 ? u = e.length + d : u >= e.length && (u = u - e.length), u;
2601
+ let p = d;
2602
+ return d < 0 ? p = e.length + d : p >= e.length && (p = p - e.length), p;
2604
2603
  }, n = t.isHorizontal() ? {
2605
2604
  [t.rtlTranslate ? "right" : "left"]: `${s.offset}px`
2606
2605
  } : {
@@ -2611,14 +2610,14 @@ function Xs(t, e, s) {
2611
2610
  } = s, a = t.params.loop ? -e.length : 0, o = t.params.loop ? e.length * 2 : e.length, c = [];
2612
2611
  for (let d = a; d < o; d += 1)
2613
2612
  d >= i && d <= l && c.push(e[r(d)]);
2614
- return c.map((d, u) => /* @__PURE__ */ $.cloneElement(d, {
2613
+ return c.map((d, p) => /* @__PURE__ */ $.cloneElement(d, {
2615
2614
  swiper: t,
2616
2615
  style: n,
2617
- key: d.props.virtualIndex || d.key || `slide-${u}`
2616
+ key: d.props.virtualIndex || d.key || `slide-${p}`
2618
2617
  }));
2619
2618
  }
2620
2619
  function ee(t, e) {
2621
- return typeof window > "u" ? X(t, e) : ft(t, e);
2620
+ return typeof window > "u" ? X(t, e) : mt(t, e);
2622
2621
  }
2623
2622
  const De = /* @__PURE__ */ je(null), Us = /* @__PURE__ */ je(null), lt = /* @__PURE__ */ Ae(function(t, e) {
2624
2623
  let {
@@ -2629,24 +2628,24 @@ const De = /* @__PURE__ */ je(null), Us = /* @__PURE__ */ je(null), lt = /* @__P
2629
2628
  onSwiper: l,
2630
2629
  ...a
2631
2630
  } = t === void 0 ? {} : t, o = !1;
2632
- const [c, d] = W("swiper"), [u, f] = W(null), [v, h] = W(!1), b = D(!1), M = D(null), w = D(null), p = D(null), m = D(null), g = D(null), y = D(null), T = D(null), A = D(null), {
2631
+ const [c, d] = W("swiper"), [p, h] = W(null), [g, m] = W(!1), T = D(!1), M = D(null), w = D(null), u = D(null), f = D(null), v = D(null), y = D(null), C = D(null), A = D(null), {
2633
2632
  params: I,
2634
- passedParams: S,
2635
- rest: E,
2636
- events: x
2633
+ passedParams: b,
2634
+ rest: S,
2635
+ events: E
2637
2636
  } = Hs(a), {
2638
2637
  slides: k,
2639
2638
  slots: L
2640
2639
  } = Ys(i), O = () => {
2641
- h(!v);
2640
+ m(!g);
2642
2641
  };
2643
2642
  Object.assign(I.on, {
2644
2643
  _containerClasses(G, j) {
2645
2644
  d(j);
2646
2645
  }
2647
2646
  });
2648
- const C = () => {
2649
- Object.assign(I.on, x), o = !0;
2647
+ const x = () => {
2648
+ Object.assign(I.on, E), o = !0;
2650
2649
  const G = {
2651
2650
  ...I
2652
2651
  };
@@ -2655,33 +2654,33 @@ const De = /* @__PURE__ */ je(null), Us = /* @__PURE__ */ je(null), lt = /* @__P
2655
2654
  const j = {
2656
2655
  cache: !1,
2657
2656
  slides: k,
2658
- renderExternal: f,
2657
+ renderExternal: h,
2659
2658
  renderExternalUpdate: !1
2660
2659
  };
2661
2660
  J(w.current.params.virtual, j), J(w.current.originalParams.virtual, j);
2662
2661
  }
2663
2662
  };
2664
- M.current || C(), w.current && w.current.on("_beforeBreakpoint", O);
2663
+ M.current || x(), w.current && w.current.on("_beforeBreakpoint", O);
2665
2664
  const z = () => {
2666
- o || !x || !w.current || Object.keys(x).forEach((G) => {
2667
- w.current.on(G, x[G]);
2665
+ o || !E || !w.current || Object.keys(E).forEach((G) => {
2666
+ w.current.on(G, E[G]);
2668
2667
  });
2669
2668
  }, U = () => {
2670
- !x || !w.current || Object.keys(x).forEach((G) => {
2671
- w.current.off(G, x[G]);
2669
+ !E || !w.current || Object.keys(E).forEach((G) => {
2670
+ w.current.off(G, E[G]);
2672
2671
  });
2673
2672
  };
2674
2673
  X(() => () => {
2675
2674
  w.current && w.current.off("_beforeBreakpoint", O);
2676
2675
  }), X(() => {
2677
- !b.current && w.current && (w.current.emitSlidesClasses(), b.current = !0);
2676
+ !T.current && w.current && (w.current.emitSlidesClasses(), T.current = !0);
2678
2677
  }), ee(() => {
2679
2678
  if (e && (e.current = M.current), !!M.current)
2680
- return w.current.destroyed && C(), Rs({
2679
+ return w.current.destroyed && x(), Rs({
2681
2680
  el: M.current,
2682
- nextEl: g.current,
2681
+ nextEl: v.current,
2683
2682
  prevEl: y.current,
2684
- paginationEl: T.current,
2683
+ paginationEl: C.current,
2685
2684
  scrollbarEl: A.current,
2686
2685
  swiper: w.current
2687
2686
  }, I), l && !w.current.destroyed && l(w.current), () => {
@@ -2689,32 +2688,32 @@ const De = /* @__PURE__ */ je(null), Us = /* @__PURE__ */ je(null), lt = /* @__P
2689
2688
  };
2690
2689
  }, []), ee(() => {
2691
2690
  z();
2692
- const G = qs(S, p.current, k, m.current, (j) => j.key);
2693
- return p.current = S, m.current = k, G.length && w.current && !w.current.destroyed && js({
2691
+ const G = qs(b, u.current, k, f.current, (j) => j.key);
2692
+ return u.current = b, f.current = k, G.length && w.current && !w.current.destroyed && js({
2694
2693
  swiper: w.current,
2695
2694
  slides: k,
2696
- passedParams: S,
2695
+ passedParams: b,
2697
2696
  changedParams: G,
2698
- nextEl: g.current,
2697
+ nextEl: v.current,
2699
2698
  prevEl: y.current,
2700
2699
  scrollbarEl: A.current,
2701
- paginationEl: T.current
2700
+ paginationEl: C.current
2702
2701
  }), () => {
2703
2702
  U();
2704
2703
  };
2705
2704
  }), ee(() => {
2706
2705
  Ws(w.current);
2707
- }, [u]);
2706
+ }, [p]);
2708
2707
  function V() {
2709
- return I.virtual ? Xs(w.current, k, u) : k.map((G, j) => /* @__PURE__ */ $.cloneElement(G, {
2708
+ return I.virtual ? Xs(w.current, k, p) : k.map((G, j) => /* @__PURE__ */ $.cloneElement(G, {
2710
2709
  swiper: w.current,
2711
2710
  swiperSlideIndex: j
2712
2711
  }));
2713
2712
  }
2714
- return /* @__PURE__ */ $.createElement(r, pe({
2713
+ return /* @__PURE__ */ $.createElement(r, ue({
2715
2714
  ref: M,
2716
2715
  className: it(`${c}${s ? ` ${s}` : ""}`)
2717
- }, E), /* @__PURE__ */ $.createElement(Us.Provider, {
2716
+ }, S), /* @__PURE__ */ $.createElement(Us.Provider, {
2718
2717
  value: w.current
2719
2718
  }, L["container-start"], /* @__PURE__ */ $.createElement(n, {
2720
2719
  className: Vs(I.wrapperClass)
@@ -2722,13 +2721,13 @@ const De = /* @__PURE__ */ je(null), Us = /* @__PURE__ */ je(null), lt = /* @__P
2722
2721
  ref: y,
2723
2722
  className: "swiper-button-prev"
2724
2723
  }), /* @__PURE__ */ $.createElement("div", {
2725
- ref: g,
2724
+ ref: v,
2726
2725
  className: "swiper-button-next"
2727
2726
  })), rt(I) && /* @__PURE__ */ $.createElement("div", {
2728
2727
  ref: A,
2729
2728
  className: "swiper-scrollbar"
2730
2729
  }), st(I) && /* @__PURE__ */ $.createElement("div", {
2731
- ref: T,
2730
+ ref: C,
2732
2731
  className: "swiper-pagination"
2733
2732
  }), L["container-end"]));
2734
2733
  });
@@ -2745,14 +2744,14 @@ const ae = /* @__PURE__ */ Ae(function(t, e) {
2745
2744
  swiperSlideIndex: c,
2746
2745
  ...d
2747
2746
  } = t === void 0 ? {} : t;
2748
- const u = D(null), [f, v] = W("swiper-slide"), [h, b] = W(!1);
2749
- function M(g, y, T) {
2750
- y === u.current && v(T);
2747
+ const p = D(null), [h, g] = W("swiper-slide"), [m, T] = W(!1);
2748
+ function M(v, y, C) {
2749
+ y === p.current && g(C);
2751
2750
  }
2752
2751
  ee(() => {
2753
- if (typeof c < "u" && (u.current.swiperSlideIndex = c), e && (e.current = u.current), !(!u.current || !i)) {
2752
+ if (typeof c < "u" && (p.current.swiperSlideIndex = c), e && (e.current = p.current), !(!p.current || !i)) {
2754
2753
  if (i.destroyed) {
2755
- f !== "swiper-slide" && v("swiper-slide");
2754
+ h !== "swiper-slide" && g("swiper-slide");
2756
2755
  return;
2757
2756
  }
2758
2757
  return i.on("_slideClass", M), () => {
@@ -2760,31 +2759,31 @@ const ae = /* @__PURE__ */ Ae(function(t, e) {
2760
2759
  };
2761
2760
  }
2762
2761
  }), ee(() => {
2763
- i && u.current && !i.destroyed && v(i.getSlideClasses(u.current));
2762
+ i && p.current && !i.destroyed && g(i.getSlideClasses(p.current));
2764
2763
  }, [i]);
2765
2764
  const w = {
2766
- isActive: f.indexOf("swiper-slide-active") >= 0,
2767
- isVisible: f.indexOf("swiper-slide-visible") >= 0,
2768
- isPrev: f.indexOf("swiper-slide-prev") >= 0,
2769
- isNext: f.indexOf("swiper-slide-next") >= 0
2770
- }, p = () => typeof r == "function" ? r(w) : r, m = () => {
2771
- b(!0);
2765
+ isActive: h.indexOf("swiper-slide-active") >= 0,
2766
+ isVisible: h.indexOf("swiper-slide-visible") >= 0,
2767
+ isPrev: h.indexOf("swiper-slide-prev") >= 0,
2768
+ isNext: h.indexOf("swiper-slide-next") >= 0
2769
+ }, u = () => typeof r == "function" ? r(w) : r, f = () => {
2770
+ T(!0);
2772
2771
  };
2773
- return /* @__PURE__ */ $.createElement(s, pe({
2774
- ref: u,
2775
- className: it(`${f}${n ? ` ${n}` : ""}`),
2772
+ return /* @__PURE__ */ $.createElement(s, ue({
2773
+ ref: p,
2774
+ className: it(`${h}${n ? ` ${n}` : ""}`),
2776
2775
  "data-swiper-slide-index": o,
2777
- onLoad: m
2776
+ onLoad: f
2778
2777
  }, d), l && /* @__PURE__ */ $.createElement(De.Provider, {
2779
2778
  value: w
2780
2779
  }, /* @__PURE__ */ $.createElement("div", {
2781
2780
  className: "swiper-zoom-container",
2782
2781
  "data-swiper-zoom": typeof l == "number" ? l : void 0
2783
- }, p(), a && !h && /* @__PURE__ */ $.createElement("div", {
2782
+ }, u(), a && !m && /* @__PURE__ */ $.createElement("div", {
2784
2783
  className: "swiper-lazy-preloader"
2785
2784
  }))), !l && /* @__PURE__ */ $.createElement(De.Provider, {
2786
2785
  value: w
2787
- }, p(), a && !h && /* @__PURE__ */ $.createElement("div", {
2786
+ }, u(), a && !m && /* @__PURE__ */ $.createElement("div", {
2788
2787
  className: "swiper-lazy-preloader"
2789
2788
  })));
2790
2789
  });
@@ -2820,7 +2819,7 @@ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
2820
2819
  name: "ScreenDescription",
2821
2820
  class: "s14mdh2e",
2822
2821
  propsAsIs: !1
2823
- }), ue = /* @__PURE__ */ _("button")({
2822
+ }), pe = /* @__PURE__ */ _("button")({
2824
2823
  name: "ScreenButton",
2825
2824
  class: "sqtjig9",
2826
2825
  propsAsIs: !1
@@ -2836,7 +2835,7 @@ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
2836
2835
  name: "EmergencyScreenDescription",
2837
2836
  class: "e1xecypc",
2838
2837
  propsAsIs: !1
2839
- }), rr = () => ue, ir = /* @__PURE__ */ _(rr())({
2838
+ }), rr = () => pe, ir = /* @__PURE__ */ _(rr())({
2840
2839
  name: "EmergencyScreenButton",
2841
2840
  class: "e1k6zoyu",
2842
2841
  propsAsIs: !0
@@ -2850,7 +2849,7 @@ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
2850
2849
  name: "ScreenContainerBox",
2851
2850
  class: "s28ooi9",
2852
2851
  propsAsIs: !1
2853
- }), me = ({ children: t }) => /* @__PURE__ */ P(nr, { className: "ScreenContainer", children: /* @__PURE__ */ P("div", { children: t }) }), ar = /* @__PURE__ */ _("img")({
2852
+ }), fe = ({ children: t }) => /* @__PURE__ */ P(nr, { className: "ScreenContainer", children: /* @__PURE__ */ P("div", { children: t }) }), ar = /* @__PURE__ */ _("img")({
2854
2853
  name: "EndScreenMedia",
2855
2854
  class: "e8s3kc9",
2856
2855
  propsAsIs: !1
@@ -2863,14 +2862,14 @@ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
2863
2862
  0
2864
2863
  /* FIRST */
2865
2864
  );
2866
- return e === 0 ? /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Me, { children: [
2865
+ return e === 0 ? /* @__PURE__ */ P(fe, { children: /* @__PURE__ */ F(Me, { children: [
2867
2866
  /* @__PURE__ */ P(or, {}),
2868
2867
  /* @__PURE__ */ F(dt, { children: [
2869
2868
  /* @__PURE__ */ P(ct, { children: "Great picks!" }),
2870
2869
  /* @__PURE__ */ P(ke, { children: "Stay in the Enhanced Stream for live results, predictions, trivia, polls, and match insights." })
2871
2870
  ] }),
2872
2871
  /* @__PURE__ */ P(
2873
- ue,
2872
+ pe,
2874
2873
  {
2875
2874
  "data-a": "intr",
2876
2875
  onClick: () => {
@@ -2883,10 +2882,10 @@ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
2883
2882
  children: "Continue"
2884
2883
  }
2885
2884
  )
2886
- ] }) }, "end") : /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Me, { children: [
2885
+ ] }) }, "end") : /* @__PURE__ */ P(fe, { children: /* @__PURE__ */ F(Me, { children: [
2887
2886
  /* @__PURE__ */ P(ar, { src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png" }),
2888
2887
  /* @__PURE__ */ P(ke, { children: "Look for more live match insights, predictions and more." }),
2889
- /* @__PURE__ */ P(ue, { "data-a": "intr", onClick: () => t({ type: "slOpenGameCenter" }), children: "Open Game Center" })
2888
+ /* @__PURE__ */ P(pe, { "data-a": "intr", onClick: () => t({ type: "slOpenGameCenter" }), children: "Open Game Center" })
2890
2889
  ] }) }, "end");
2891
2890
  }, cr = /* @__PURE__ */ _("div")({
2892
2891
  name: "Container",
@@ -2896,13 +2895,13 @@ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
2896
2895
  className: t
2897
2896
  }) => /* @__PURE__ */ P(cr, {
2898
2897
  className: t,
2899
- children: /* @__PURE__ */ P(gt, {})
2900
- }), pr = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(wt, { close: () => {
2901
- }, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, ur = /* @__PURE__ */ _("span")({
2898
+ children: /* @__PURE__ */ P(vt, {})
2899
+ }), ur = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(wt, { close: () => {
2900
+ }, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, pr = /* @__PURE__ */ _("span")({
2902
2901
  name: "NextButton",
2903
2902
  class: "n991vvm",
2904
2903
  propsAsIs: !1
2905
- }), mr = () => te, fr = /* @__PURE__ */ _(mr())({
2904
+ }), fr = () => te, mr = /* @__PURE__ */ _(fr())({
2906
2905
  name: "IconArrowRight",
2907
2906
  class: "inbj36g",
2908
2907
  propsAsIs: !0
@@ -2910,11 +2909,11 @@ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
2910
2909
  name: "StartScreenSponsor",
2911
2910
  class: "szrvgt",
2912
2911
  propsAsIs: !1
2913
- }), vr = /* @__PURE__ */ _("div")({
2912
+ }), gr = /* @__PURE__ */ _("div")({
2914
2913
  name: "StartScreenNote",
2915
2914
  class: "swqs2ju",
2916
2915
  propsAsIs: !1
2917
- }), gr = ({ countQuestionsAvailable: t, sliderRef: e }) => /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Me, { children: [
2916
+ }), vr = ({ countQuestionsAvailable: t, sliderRef: e }) => /* @__PURE__ */ P(fe, { children: /* @__PURE__ */ F(Me, { children: [
2918
2917
  /* @__PURE__ */ P(ot, {}),
2919
2918
  /* @__PURE__ */ F(dt, { children: [
2920
2919
  /* @__PURE__ */ P(hr, { children: "FEATURED GROUPS+" }),
@@ -2922,20 +2921,19 @@ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
2922
2921
  ] }),
2923
2922
  /* @__PURE__ */ P(ke, { children: "Tee off with these five initial predictions for today’s play." }),
2924
2923
  /* @__PURE__ */ F(
2925
- ue,
2924
+ pe,
2926
2925
  {
2927
2926
  "data-a": "intr",
2928
2927
  onClick: () => {
2929
- var s;
2930
- (s = e.current) == null || s.slideNext();
2928
+ e.current?.slideNext();
2931
2929
  },
2932
2930
  children: [
2933
2931
  t ? `${t} questions available` : "See all questions",
2934
- /* @__PURE__ */ P(ur, { children: /* @__PURE__ */ P(fr, { name: "iconArrowRight" }) })
2932
+ /* @__PURE__ */ P(pr, { children: /* @__PURE__ */ P(mr, { name: "iconArrowRight" }) })
2935
2933
  ]
2936
2934
  }
2937
2935
  ),
2938
- /* @__PURE__ */ P(vr, { children: "Note: Some questions may have been resolved as a result of today’s play." })
2936
+ /* @__PURE__ */ P(gr, { children: "Note: Some questions may have been resolved as a result of today’s play." })
2939
2937
  ] }) }, "start");
2940
2938
  function wr(t, e, s, r) {
2941
2939
  return t.params.createElements && Object.keys(r).forEach((n) => {
@@ -2948,7 +2946,7 @@ function wr(t, e, s, r) {
2948
2946
  function Z(t) {
2949
2947
  return t === void 0 && (t = ""), `.${t.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
2950
2948
  }
2951
- function br(t) {
2949
+ function yr(t) {
2952
2950
  let {
2953
2951
  swiper: e,
2954
2952
  extendParams: s,
@@ -2971,8 +2969,8 @@ function br(t) {
2971
2969
  // 'bullets' or 'progressbar' or 'fraction' or 'custom'
2972
2970
  dynamicBullets: !1,
2973
2971
  dynamicMainBullets: 1,
2974
- formatFractionCurrent: (p) => p,
2975
- formatFractionTotal: (p) => p,
2972
+ formatFractionCurrent: (u) => u,
2973
+ formatFractionTotal: (u) => u,
2976
2974
  bulletClass: `${i}-bullet`,
2977
2975
  bulletActiveClass: `${i}-bullet-active`,
2978
2976
  modifierClass: `${i}-`,
@@ -2995,201 +2993,200 @@ function br(t) {
2995
2993
  function o() {
2996
2994
  return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
2997
2995
  }
2998
- function c(p, m) {
2996
+ function c(u, f) {
2999
2997
  const {
3000
- bulletActiveClass: g
2998
+ bulletActiveClass: v
3001
2999
  } = e.params.pagination;
3002
- p && (p = p[`${m === "prev" ? "previous" : "next"}ElementSibling`], p && (p.classList.add(`${g}-${m}`), p = p[`${m === "prev" ? "previous" : "next"}ElementSibling`], p && p.classList.add(`${g}-${m}-${m}`)));
3000
+ u && (u = u[`${f === "prev" ? "previous" : "next"}ElementSibling`], u && (u.classList.add(`${v}-${f}`), u = u[`${f === "prev" ? "previous" : "next"}ElementSibling`], u && u.classList.add(`${v}-${f}-${f}`)));
3003
3001
  }
3004
- function d(p, m, g) {
3005
- if (p = p % g, m = m % g, m === p + 1)
3002
+ function d(u, f, v) {
3003
+ if (u = u % v, f = f % v, f === u + 1)
3006
3004
  return "next";
3007
- if (m === p - 1)
3005
+ if (f === u - 1)
3008
3006
  return "previous";
3009
3007
  }
3010
- function u(p) {
3011
- const m = p.target.closest(Z(e.params.pagination.bulletClass));
3012
- if (!m)
3008
+ function p(u) {
3009
+ const f = u.target.closest(Z(e.params.pagination.bulletClass));
3010
+ if (!f)
3013
3011
  return;
3014
- p.preventDefault();
3015
- const g = ce(m) * e.params.slidesPerGroup;
3012
+ u.preventDefault();
3013
+ const v = ce(f) * e.params.slidesPerGroup;
3016
3014
  if (e.params.loop) {
3017
- if (e.realIndex === g) return;
3018
- const y = d(e.realIndex, g, e.slides.length);
3019
- y === "next" ? e.slideNext() : y === "previous" ? e.slidePrev() : e.slideToLoop(g);
3015
+ if (e.realIndex === v) return;
3016
+ const y = d(e.realIndex, v, e.slides.length);
3017
+ y === "next" ? e.slideNext() : y === "previous" ? e.slidePrev() : e.slideToLoop(v);
3020
3018
  } else
3021
- e.slideTo(g);
3019
+ e.slideTo(v);
3022
3020
  }
3023
- function f() {
3024
- const p = e.rtl, m = e.params.pagination;
3021
+ function h() {
3022
+ const u = e.rtl, f = e.params.pagination;
3025
3023
  if (o()) return;
3026
- let g = e.pagination.el;
3027
- g = R(g);
3028
- let y, T;
3024
+ let v = e.pagination.el;
3025
+ v = R(v);
3026
+ let y, C;
3029
3027
  const A = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, I = e.params.loop ? Math.ceil(A / e.params.slidesPerGroup) : e.snapGrid.length;
3030
- if (e.params.loop ? (T = e.previousRealIndex || 0, y = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (y = e.snapIndex, T = e.previousSnapIndex) : (T = e.previousIndex || 0, y = e.activeIndex || 0), m.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
3031
- const S = e.pagination.bullets;
3032
- let E, x, k;
3033
- if (m.dynamicBullets && (l = Te(S[0], e.isHorizontal() ? "width" : "height"), g.forEach((L) => {
3034
- L.style[e.isHorizontal() ? "width" : "height"] = `${l * (m.dynamicMainBullets + 4)}px`;
3035
- }), m.dynamicMainBullets > 1 && T !== void 0 && (a += y - (T || 0), a > m.dynamicMainBullets - 1 ? a = m.dynamicMainBullets - 1 : a < 0 && (a = 0)), E = Math.max(y - a, 0), x = E + (Math.min(S.length, m.dynamicMainBullets) - 1), k = (x + E) / 2), S.forEach((L) => {
3036
- const O = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((C) => `${m.bulletActiveClass}${C}`)].map((C) => typeof C == "string" && C.includes(" ") ? C.split(" ") : C).flat();
3028
+ if (e.params.loop ? (C = e.previousRealIndex || 0, y = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (y = e.snapIndex, C = e.previousSnapIndex) : (C = e.previousIndex || 0, y = e.activeIndex || 0), f.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
3029
+ const b = e.pagination.bullets;
3030
+ let S, E, k;
3031
+ if (f.dynamicBullets && (l = xe(b[0], e.isHorizontal() ? "width" : "height"), v.forEach((L) => {
3032
+ L.style[e.isHorizontal() ? "width" : "height"] = `${l * (f.dynamicMainBullets + 4)}px`;
3033
+ }), f.dynamicMainBullets > 1 && C !== void 0 && (a += y - (C || 0), a > f.dynamicMainBullets - 1 ? a = f.dynamicMainBullets - 1 : a < 0 && (a = 0)), S = Math.max(y - a, 0), E = S + (Math.min(b.length, f.dynamicMainBullets) - 1), k = (E + S) / 2), b.forEach((L) => {
3034
+ const O = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((x) => `${f.bulletActiveClass}${x}`)].map((x) => typeof x == "string" && x.includes(" ") ? x.split(" ") : x).flat();
3037
3035
  L.classList.remove(...O);
3038
- }), g.length > 1)
3039
- S.forEach((L) => {
3036
+ }), v.length > 1)
3037
+ b.forEach((L) => {
3040
3038
  const O = ce(L);
3041
- O === y ? L.classList.add(...m.bulletActiveClass.split(" ")) : e.isElement && L.setAttribute("part", "bullet"), m.dynamicBullets && (O >= E && O <= x && L.classList.add(...`${m.bulletActiveClass}-main`.split(" ")), O === E && c(L, "prev"), O === x && c(L, "next"));
3039
+ O === y ? L.classList.add(...f.bulletActiveClass.split(" ")) : e.isElement && L.setAttribute("part", "bullet"), f.dynamicBullets && (O >= S && O <= E && L.classList.add(...`${f.bulletActiveClass}-main`.split(" ")), O === S && c(L, "prev"), O === E && c(L, "next"));
3042
3040
  });
3043
3041
  else {
3044
- const L = S[y];
3045
- if (L && L.classList.add(...m.bulletActiveClass.split(" ")), e.isElement && S.forEach((O, C) => {
3046
- O.setAttribute("part", C === y ? "bullet-active" : "bullet");
3047
- }), m.dynamicBullets) {
3048
- const O = S[E], C = S[x];
3049
- for (let z = E; z <= x; z += 1)
3050
- S[z] && S[z].classList.add(...`${m.bulletActiveClass}-main`.split(" "));
3051
- c(O, "prev"), c(C, "next");
3042
+ const L = b[y];
3043
+ if (L && L.classList.add(...f.bulletActiveClass.split(" ")), e.isElement && b.forEach((O, x) => {
3044
+ O.setAttribute("part", x === y ? "bullet-active" : "bullet");
3045
+ }), f.dynamicBullets) {
3046
+ const O = b[S], x = b[E];
3047
+ for (let z = S; z <= E; z += 1)
3048
+ b[z] && b[z].classList.add(...`${f.bulletActiveClass}-main`.split(" "));
3049
+ c(O, "prev"), c(x, "next");
3052
3050
  }
3053
3051
  }
3054
- if (m.dynamicBullets) {
3055
- const L = Math.min(S.length, m.dynamicMainBullets + 4), O = (l * L - l) / 2 - k * l, C = p ? "right" : "left";
3056
- S.forEach((z) => {
3057
- z.style[e.isHorizontal() ? C : "top"] = `${O}px`;
3052
+ if (f.dynamicBullets) {
3053
+ const L = Math.min(b.length, f.dynamicMainBullets + 4), O = (l * L - l) / 2 - k * l, x = u ? "right" : "left";
3054
+ b.forEach((z) => {
3055
+ z.style[e.isHorizontal() ? x : "top"] = `${O}px`;
3058
3056
  });
3059
3057
  }
3060
3058
  }
3061
- g.forEach((S, E) => {
3062
- if (m.type === "fraction" && (S.querySelectorAll(Z(m.currentClass)).forEach((x) => {
3063
- x.textContent = m.formatFractionCurrent(y + 1);
3064
- }), S.querySelectorAll(Z(m.totalClass)).forEach((x) => {
3065
- x.textContent = m.formatFractionTotal(I);
3066
- })), m.type === "progressbar") {
3067
- let x;
3068
- m.progressbarOpposite ? x = e.isHorizontal() ? "vertical" : "horizontal" : x = e.isHorizontal() ? "horizontal" : "vertical";
3059
+ v.forEach((b, S) => {
3060
+ if (f.type === "fraction" && (b.querySelectorAll(Z(f.currentClass)).forEach((E) => {
3061
+ E.textContent = f.formatFractionCurrent(y + 1);
3062
+ }), b.querySelectorAll(Z(f.totalClass)).forEach((E) => {
3063
+ E.textContent = f.formatFractionTotal(I);
3064
+ })), f.type === "progressbar") {
3065
+ let E;
3066
+ f.progressbarOpposite ? E = e.isHorizontal() ? "vertical" : "horizontal" : E = e.isHorizontal() ? "horizontal" : "vertical";
3069
3067
  const k = (y + 1) / I;
3070
3068
  let L = 1, O = 1;
3071
- x === "horizontal" ? L = k : O = k, S.querySelectorAll(Z(m.progressbarFillClass)).forEach((C) => {
3072
- C.style.transform = `translate3d(0,0,0) scaleX(${L}) scaleY(${O})`, C.style.transitionDuration = `${e.params.speed}ms`;
3069
+ E === "horizontal" ? L = k : O = k, b.querySelectorAll(Z(f.progressbarFillClass)).forEach((x) => {
3070
+ x.style.transform = `translate3d(0,0,0) scaleX(${L}) scaleY(${O})`, x.style.transitionDuration = `${e.params.speed}ms`;
3073
3071
  });
3074
3072
  }
3075
- m.type === "custom" && m.renderCustom ? (S.innerHTML = m.renderCustom(e, y + 1, I), E === 0 && n("paginationRender", S)) : (E === 0 && n("paginationRender", S), n("paginationUpdate", S)), e.params.watchOverflow && e.enabled && S.classList[e.isLocked ? "add" : "remove"](m.lockClass);
3073
+ f.type === "custom" && f.renderCustom ? (b.innerHTML = f.renderCustom(e, y + 1, I), S === 0 && n("paginationRender", b)) : (S === 0 && n("paginationRender", b), n("paginationUpdate", b)), e.params.watchOverflow && e.enabled && b.classList[e.isLocked ? "add" : "remove"](f.lockClass);
3076
3074
  });
3077
3075
  }
3078
- function v() {
3079
- const p = e.params.pagination;
3076
+ function g() {
3077
+ const u = e.params.pagination;
3080
3078
  if (o()) return;
3081
- const m = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
3082
- let g = e.pagination.el;
3083
- g = R(g);
3079
+ const f = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
3080
+ let v = e.pagination.el;
3081
+ v = R(v);
3084
3082
  let y = "";
3085
- if (p.type === "bullets") {
3086
- let T = e.params.loop ? Math.ceil(m / e.params.slidesPerGroup) : e.snapGrid.length;
3087
- e.params.freeMode && e.params.freeMode.enabled && T > m && (T = m);
3088
- for (let A = 0; A < T; A += 1)
3089
- p.renderBullet ? y += p.renderBullet.call(e, A, p.bulletClass) : y += `<${p.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${p.bulletClass}"></${p.bulletElement}>`;
3083
+ if (u.type === "bullets") {
3084
+ let C = e.params.loop ? Math.ceil(f / e.params.slidesPerGroup) : e.snapGrid.length;
3085
+ e.params.freeMode && e.params.freeMode.enabled && C > f && (C = f);
3086
+ for (let A = 0; A < C; A += 1)
3087
+ u.renderBullet ? y += u.renderBullet.call(e, A, u.bulletClass) : y += `<${u.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${u.bulletClass}"></${u.bulletElement}>`;
3090
3088
  }
3091
- p.type === "fraction" && (p.renderFraction ? y = p.renderFraction.call(e, p.currentClass, p.totalClass) : y = `<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`), p.type === "progressbar" && (p.renderProgressbar ? y = p.renderProgressbar.call(e, p.progressbarFillClass) : y = `<span class="${p.progressbarFillClass}"></span>`), e.pagination.bullets = [], g.forEach((T) => {
3092
- p.type !== "custom" && (T.innerHTML = y || ""), p.type === "bullets" && e.pagination.bullets.push(...T.querySelectorAll(Z(p.bulletClass)));
3093
- }), p.type !== "custom" && n("paginationRender", g[0]);
3089
+ u.type === "fraction" && (u.renderFraction ? y = u.renderFraction.call(e, u.currentClass, u.totalClass) : y = `<span class="${u.currentClass}"></span> / <span class="${u.totalClass}"></span>`), u.type === "progressbar" && (u.renderProgressbar ? y = u.renderProgressbar.call(e, u.progressbarFillClass) : y = `<span class="${u.progressbarFillClass}"></span>`), e.pagination.bullets = [], v.forEach((C) => {
3090
+ u.type !== "custom" && (C.innerHTML = y || ""), u.type === "bullets" && e.pagination.bullets.push(...C.querySelectorAll(Z(u.bulletClass)));
3091
+ }), u.type !== "custom" && n("paginationRender", v[0]);
3094
3092
  }
3095
- function h() {
3093
+ function m() {
3096
3094
  e.params.pagination = wr(e, e.originalParams.pagination, e.params.pagination, {
3097
3095
  el: "swiper-pagination"
3098
3096
  });
3099
- const p = e.params.pagination;
3100
- if (!p.el) return;
3101
- let m;
3102
- typeof p.el == "string" && e.isElement && (m = e.el.querySelector(p.el)), !m && typeof p.el == "string" && (m = [...document.querySelectorAll(p.el)]), m || (m = p.el), !(!m || m.length === 0) && (e.params.uniqueNavElements && typeof p.el == "string" && Array.isArray(m) && m.length > 1 && (m = [...e.el.querySelectorAll(p.el)], m.length > 1 && (m = m.find((g) => Xe(g, ".swiper")[0] === e.el))), Array.isArray(m) && m.length === 1 && (m = m[0]), Object.assign(e.pagination, {
3103
- el: m
3104
- }), m = R(m), m.forEach((g) => {
3105
- p.type === "bullets" && p.clickable && g.classList.add(...(p.clickableClass || "").split(" ")), g.classList.add(p.modifierClass + p.type), g.classList.add(e.isHorizontal() ? p.horizontalClass : p.verticalClass), p.type === "bullets" && p.dynamicBullets && (g.classList.add(`${p.modifierClass}${p.type}-dynamic`), a = 0, p.dynamicMainBullets < 1 && (p.dynamicMainBullets = 1)), p.type === "progressbar" && p.progressbarOpposite && g.classList.add(p.progressbarOppositeClass), p.clickable && g.addEventListener("click", u), e.enabled || g.classList.add(p.lockClass);
3097
+ const u = e.params.pagination;
3098
+ if (!u.el) return;
3099
+ let f;
3100
+ typeof u.el == "string" && e.isElement && (f = e.el.querySelector(u.el)), !f && typeof u.el == "string" && (f = [...document.querySelectorAll(u.el)]), f || (f = u.el), !(!f || f.length === 0) && (e.params.uniqueNavElements && typeof u.el == "string" && Array.isArray(f) && f.length > 1 && (f = [...e.el.querySelectorAll(u.el)], f.length > 1 && (f = f.find((v) => Xe(v, ".swiper")[0] === e.el))), Array.isArray(f) && f.length === 1 && (f = f[0]), Object.assign(e.pagination, {
3101
+ el: f
3102
+ }), f = R(f), f.forEach((v) => {
3103
+ u.type === "bullets" && u.clickable && v.classList.add(...(u.clickableClass || "").split(" ")), v.classList.add(u.modifierClass + u.type), v.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass), u.type === "bullets" && u.dynamicBullets && (v.classList.add(`${u.modifierClass}${u.type}-dynamic`), a = 0, u.dynamicMainBullets < 1 && (u.dynamicMainBullets = 1)), u.type === "progressbar" && u.progressbarOpposite && v.classList.add(u.progressbarOppositeClass), u.clickable && v.addEventListener("click", p), e.enabled || v.classList.add(u.lockClass);
3106
3104
  }));
3107
3105
  }
3108
- function b() {
3109
- const p = e.params.pagination;
3106
+ function T() {
3107
+ const u = e.params.pagination;
3110
3108
  if (o()) return;
3111
- let m = e.pagination.el;
3112
- m && (m = R(m), m.forEach((g) => {
3113
- g.classList.remove(p.hiddenClass), g.classList.remove(p.modifierClass + p.type), g.classList.remove(e.isHorizontal() ? p.horizontalClass : p.verticalClass), p.clickable && (g.classList.remove(...(p.clickableClass || "").split(" ")), g.removeEventListener("click", u));
3114
- })), e.pagination.bullets && e.pagination.bullets.forEach((g) => g.classList.remove(...p.bulletActiveClass.split(" ")));
3109
+ let f = e.pagination.el;
3110
+ f && (f = R(f), f.forEach((v) => {
3111
+ v.classList.remove(u.hiddenClass), v.classList.remove(u.modifierClass + u.type), v.classList.remove(e.isHorizontal() ? u.horizontalClass : u.verticalClass), u.clickable && (v.classList.remove(...(u.clickableClass || "").split(" ")), v.removeEventListener("click", p));
3112
+ })), e.pagination.bullets && e.pagination.bullets.forEach((v) => v.classList.remove(...u.bulletActiveClass.split(" ")));
3115
3113
  }
3116
3114
  r("changeDirection", () => {
3117
3115
  if (!e.pagination || !e.pagination.el) return;
3118
- const p = e.params.pagination;
3116
+ const u = e.params.pagination;
3119
3117
  let {
3120
- el: m
3118
+ el: f
3121
3119
  } = e.pagination;
3122
- m = R(m), m.forEach((g) => {
3123
- g.classList.remove(p.horizontalClass, p.verticalClass), g.classList.add(e.isHorizontal() ? p.horizontalClass : p.verticalClass);
3120
+ f = R(f), f.forEach((v) => {
3121
+ v.classList.remove(u.horizontalClass, u.verticalClass), v.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass);
3124
3122
  });
3125
3123
  }), r("init", () => {
3126
- e.params.pagination.enabled === !1 ? w() : (h(), v(), f());
3124
+ e.params.pagination.enabled === !1 ? w() : (m(), g(), h());
3127
3125
  }), r("activeIndexChange", () => {
3128
- typeof e.snapIndex > "u" && f();
3126
+ typeof e.snapIndex > "u" && h();
3129
3127
  }), r("snapIndexChange", () => {
3130
- f();
3128
+ h();
3131
3129
  }), r("snapGridLengthChange", () => {
3132
- v(), f();
3130
+ g(), h();
3133
3131
  }), r("destroy", () => {
3134
- b();
3132
+ T();
3135
3133
  }), r("enable disable", () => {
3136
3134
  let {
3137
- el: p
3135
+ el: u
3138
3136
  } = e.pagination;
3139
- p && (p = R(p), p.forEach((m) => m.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
3137
+ u && (u = R(u), u.forEach((f) => f.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
3140
3138
  }), r("lock unlock", () => {
3141
- f();
3142
- }), r("click", (p, m) => {
3143
- const g = m.target, y = R(e.pagination.el);
3144
- if (e.params.pagination.el && e.params.pagination.hideOnClick && y && y.length > 0 && !g.classList.contains(e.params.pagination.bulletClass)) {
3145
- if (e.navigation && (e.navigation.nextEl && g === e.navigation.nextEl || e.navigation.prevEl && g === e.navigation.prevEl)) return;
3146
- const T = y[0].classList.contains(e.params.pagination.hiddenClass);
3147
- n(T === !0 ? "paginationShow" : "paginationHide"), y.forEach((A) => A.classList.toggle(e.params.pagination.hiddenClass));
3139
+ h();
3140
+ }), r("click", (u, f) => {
3141
+ const v = f.target, y = R(e.pagination.el);
3142
+ if (e.params.pagination.el && e.params.pagination.hideOnClick && y && y.length > 0 && !v.classList.contains(e.params.pagination.bulletClass)) {
3143
+ if (e.navigation && (e.navigation.nextEl && v === e.navigation.nextEl || e.navigation.prevEl && v === e.navigation.prevEl)) return;
3144
+ const C = y[0].classList.contains(e.params.pagination.hiddenClass);
3145
+ n(C === !0 ? "paginationShow" : "paginationHide"), y.forEach((A) => A.classList.toggle(e.params.pagination.hiddenClass));
3148
3146
  }
3149
3147
  });
3150
3148
  const M = () => {
3151
3149
  e.el.classList.remove(e.params.pagination.paginationDisabledClass);
3152
3150
  let {
3153
- el: p
3151
+ el: u
3154
3152
  } = e.pagination;
3155
- p && (p = R(p), p.forEach((m) => m.classList.remove(e.params.pagination.paginationDisabledClass))), h(), v(), f();
3153
+ u && (u = R(u), u.forEach((f) => f.classList.remove(e.params.pagination.paginationDisabledClass))), m(), g(), h();
3156
3154
  }, w = () => {
3157
3155
  e.el.classList.add(e.params.pagination.paginationDisabledClass);
3158
3156
  let {
3159
- el: p
3157
+ el: u
3160
3158
  } = e.pagination;
3161
- p && (p = R(p), p.forEach((m) => m.classList.add(e.params.pagination.paginationDisabledClass))), b();
3159
+ u && (u = R(u), u.forEach((f) => f.classList.add(e.params.pagination.paginationDisabledClass))), T();
3162
3160
  };
3163
3161
  Object.assign(e.pagination, {
3164
3162
  enable: M,
3165
3163
  disable: w,
3166
- render: v,
3167
- update: f,
3168
- init: h,
3169
- destroy: b
3164
+ render: g,
3165
+ update: h,
3166
+ init: m,
3167
+ destroy: T
3170
3168
  });
3171
3169
  }
3172
- const yr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n }) => {
3170
+ const br = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n }) => {
3173
3171
  const i = D(), l = D(), { listOfQuestions: a, countQuestionsAvailable: o } = He(() => {
3174
- const v = t ? Object.values(t) : [];
3172
+ const g = t ? Object.values(t) : [];
3175
3173
  return {
3176
- listOfQuestions: v,
3177
- countQuestionsAvailable: v.filter(({ marketClosed: h }) => !h).length
3174
+ listOfQuestions: g,
3175
+ countQuestionsAvailable: g.filter(({ marketClosed: m }) => !m).length
3178
3176
  };
3179
3177
  }, [t]), c = Re(
3180
- async (v, h) => {
3178
+ async (g, m) => {
3181
3179
  try {
3182
- await e.betPackVote(v, h), s({
3180
+ await e.betPackVote(g, m), s({
3183
3181
  type: "slVoted",
3184
3182
  payload: {
3185
- questionId: v,
3186
- answerId: h
3183
+ questionId: g,
3184
+ answerId: m
3187
3185
  }
3188
3186
  });
3189
3187
  } finally {
3190
3188
  i.current && clearTimeout(i.current), n && (i.current = setTimeout(() => {
3191
- var b;
3192
- (b = l.current) == null || b.slideNext();
3189
+ l.current?.slideNext();
3193
3190
  }, 2e3));
3194
3191
  }
3195
3192
  },
@@ -3198,14 +3195,8 @@ const yr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3198
3195
  X(() => (s({
3199
3196
  type: "slBetPackReady",
3200
3197
  payload: {
3201
- next: () => {
3202
- var v;
3203
- return (v = l.current) == null ? void 0 : v.slideNext();
3204
- },
3205
- prev: () => {
3206
- var v;
3207
- return (v = l.current) == null ? void 0 : v.slidePrev();
3208
- },
3198
+ next: () => l.current?.slideNext(),
3199
+ prev: () => l.current?.slidePrev(),
3209
3200
  current: 0,
3210
3201
  canNext: !0,
3211
3202
  canPrev: !1
@@ -3213,25 +3204,24 @@ const yr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3213
3204
  }), () => {
3214
3205
  i.current && clearTimeout(i.current);
3215
3206
  }), [s]);
3216
- const d = (v) => {
3217
- var h;
3218
- const b = v.realIndex;
3207
+ const d = (g) => {
3208
+ const m = g.realIndex;
3219
3209
  if (s({
3220
3210
  type: "slBetPackChangeCard",
3221
3211
  payload: {
3222
- current: b,
3223
- canNext: b < Object.keys(t).length + 1,
3224
- canPrev: b >= 1
3212
+ current: m,
3213
+ canNext: m < Object.keys(t).length + 1,
3214
+ canPrev: m >= 1
3225
3215
  }
3226
- }), b !== 0 && b !== Object.keys(t).length + 1 && (h = a[b - 1]) != null && h.id) {
3227
- e.openQuestion(a[b - 1].id, {
3216
+ }), m !== 0 && m !== Object.keys(t).length + 1 && a[m - 1]?.id) {
3217
+ e.openQuestion(a[m - 1].id, {
3228
3218
  openedFrom: "bet-pack",
3229
3219
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3230
3220
  // @ts-expect-error
3231
3221
  attributes: {
3232
- id: a[b - 1].id,
3233
- type: a[b - 1].type,
3234
- status: a[b - 1].status,
3222
+ id: a[m - 1].id,
3223
+ type: a[m - 1].type,
3224
+ status: a[m - 1].status,
3235
3225
  attributes: {
3236
3226
  case: void 0
3237
3227
  }
@@ -3240,23 +3230,22 @@ const yr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3240
3230
  return;
3241
3231
  }
3242
3232
  e.closeQuestion();
3243
- }, [u, f] = W(1.1);
3233
+ }, [p, h] = W(1.1);
3244
3234
  return X(() => {
3245
- const v = vt(() => {
3246
- var h;
3247
- const b = (h = l.current) == null ? void 0 : h.size;
3248
- if (!b)
3235
+ const g = gt(() => {
3236
+ const m = l.current?.size;
3237
+ if (!m)
3249
3238
  return;
3250
- const M = 1 + 30 / (b / 100) / 100 * 2;
3251
- f(Math.ceil(M * 1e3) / 1e3);
3239
+ const T = 1 + 30 / (m / 100) / 100 * 2;
3240
+ h(Math.ceil(T * 1e3) / 1e3);
3252
3241
  }, 200);
3253
- return window.addEventListener("resize", v), v(), () => {
3254
- window.removeEventListener("resize", v);
3242
+ return window.addEventListener("resize", g), g(), () => {
3243
+ window.removeEventListener("resize", g);
3255
3244
  };
3256
3245
  }, []), /* @__PURE__ */ F(
3257
3246
  Ks,
3258
3247
  {
3259
- slidesPerView: u,
3248
+ slidesPerView: p,
3260
3249
  spaceBetween: 12,
3261
3250
  centeredSlides: !0,
3262
3251
  centerInsufficientSlides: !0,
@@ -3264,17 +3253,17 @@ const yr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3264
3253
  pagination: {
3265
3254
  clickable: !0
3266
3255
  },
3267
- modules: [br],
3256
+ modules: [yr],
3268
3257
  onSlideChange: d,
3269
3258
  onBeforeSlideChangeStart: () => {
3270
3259
  i.current && clearTimeout(i.current);
3271
3260
  },
3272
- onSwiper: (v) => {
3273
- l.current = v;
3261
+ onSwiper: (g) => {
3262
+ l.current = g;
3274
3263
  },
3275
3264
  children: [
3276
- /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(gr, { sliderRef: l, countQuestionsAvailable: o }) }),
3277
- a.map((v) => v ? /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(me, { children: /* @__PURE__ */ P(pr, { question: v, vote: c }) }, v.id) }) : null),
3265
+ /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(vr, { sliderRef: l, countQuestionsAvailable: o }) }),
3266
+ a.map((g) => g ? /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(fe, { children: /* @__PURE__ */ P(ur, { question: g, vote: c }) }, g.id) }) : null),
3278
3267
  /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(dr, { onEvent: s }) })
3279
3268
  ]
3280
3269
  }
@@ -3286,7 +3275,7 @@ const yr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3286
3275
  {
3287
3276
  onEvent: n,
3288
3277
  actionFn: () => n({ type: "slHardRefresh" }),
3289
- description: l instanceof bt && l.code !== yt.InvalidArgument ? `The event ID was not
3278
+ description: l instanceof yt && l.code !== bt.InvalidArgument ? `The event ID was not
3290
3279
  specified or is invalid.` : `The server is unable to
3291
3280
  handle this request.`
3292
3281
  }
@@ -3299,7 +3288,7 @@ handle this request.`
3299
3288
  load the questions.`
3300
3289
  }
3301
3290
  ) : /* @__PURE__ */ P(
3302
- yr,
3291
+ br,
3303
3292
  {
3304
3293
  data: o.data,
3305
3294
  gamification: t,
@@ -3313,12 +3302,11 @@ handle this request.`
3313
3302
  name: "BetPackContainer",
3314
3303
  class: "b18vssq2",
3315
3304
  propsAsIs: !1
3316
- }), ie = "slBetPackCb", xr = St("betPack-ui"), Tr = (t, e = {}) => {
3317
- var s, r;
3318
- const { questionId: n, answerId: i } = e, l = { questionId: n, answerId: i };
3319
- xr.debug({ id: ie, type: t, ...l }), (s = window.top) == null || s.postMessage({ id: ie, type: t, ...l }, "*"), window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers[ie] && window.webkit.messageHandlers[ie].postMessage({ type: t, ...l }), (r = window.slBetPackCb) != null && r.postMessage && window.slBetPackCb.postMessage(JSON.stringify({ type: t, ...l, from: "base" }));
3305
+ }), ie = "slBetPackCb", Tr = St("betPack-ui"), xr = (t, e = {}) => {
3306
+ const { questionId: s, answerId: r } = e, n = { questionId: s, answerId: r };
3307
+ Tr.debug({ id: ie, type: t, ...n }), window.top?.postMessage({ id: ie, type: t, ...n }, "*"), window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers[ie] && window.webkit.messageHandlers[ie].postMessage({ type: t, ...n }), window.slBetPackCb?.postMessage && window.slBetPackCb.postMessage(JSON.stringify({ type: t, ...n, from: "base" }));
3320
3308
  }, Cr = (t) => {
3321
- Tr(t.type, t.payload);
3309
+ xr(t.type, t.payload);
3322
3310
  }, Pr = /* @__PURE__ */ _("div")({
3323
3311
  name: "Container",
3324
3312
  class: "c1mj28sn",
@@ -3327,11 +3315,11 @@ handle this request.`
3327
3315
  name: "CloseButton",
3328
3316
  class: "coc9f01",
3329
3317
  propsAsIs: !1
3330
- }), Fe = "b590k5k", kr = () => te, pt = /* @__PURE__ */ _(kr())({
3318
+ }), Fe = "b590k5k", kr = () => te, ut = /* @__PURE__ */ _(kr())({
3331
3319
  name: "IconArrowPrev",
3332
3320
  class: "i1tkem14",
3333
3321
  propsAsIs: !0
3334
- }), Ir = () => pt, Lr = /* @__PURE__ */ _(Ir())({
3322
+ }), Ir = () => ut, Lr = /* @__PURE__ */ _(Ir())({
3335
3323
  name: "IconArrowNext",
3336
3324
  class: "i175qlj5",
3337
3325
  propsAsIs: !0
@@ -3359,25 +3347,24 @@ handle this request.`
3359
3347
  const [n, i] = W(), [l, a] = W(), o = Re(
3360
3348
  (c) => {
3361
3349
  if (c.type === "slBetPackReady") {
3362
- const { next: d, prev: u, current: f, canNext: v, canPrev: h } = c.payload || {};
3363
- i({ next: d, prev: u }), a((b) => ({
3364
- current: b != null && b.current ? b == null ? void 0 : b.current : f,
3365
- canPrev: b != null && b.current ? b == null ? void 0 : b.canPrev : h,
3366
- canNext: v
3350
+ const { next: d, prev: p, current: h, canNext: g, canPrev: m } = c.payload || {};
3351
+ i({ next: d, prev: p }), a((T) => ({
3352
+ current: T?.current ? T?.current : h,
3353
+ canPrev: T?.current ? T?.canPrev : m,
3354
+ canNext: g
3367
3355
  }));
3368
3356
  }
3369
3357
  if (c.type === "slBetPackChangeCard") {
3370
- const { current: d, canNext: u, canPrev: f } = c.payload || {};
3371
- a({ current: d, canNext: u, canPrev: f });
3358
+ const { current: d, canNext: p, canPrev: h } = c.payload || {};
3359
+ a({ current: d, canNext: p, canPrev: h });
3372
3360
  }
3373
- e == null || e(c);
3361
+ e?.(c);
3374
3362
  },
3375
3363
  [e]
3376
3364
  );
3377
3365
  return X(() => () => {
3378
- var c;
3379
- const d = t.getFeature(qe.GAMES);
3380
- d && ((c = d.betPack) == null || c.off());
3366
+ const c = t.getFeature(qe.GAMES);
3367
+ c && c.betPack?.off();
3381
3368
  }, [t]), /* @__PURE__ */ F(Pr, { ref: r, children: [
3382
3369
  /* @__PURE__ */ F(Ar, { children: [
3383
3370
  /* @__PURE__ */ F(Or, { children: [
@@ -3388,8 +3375,8 @@ handle this request.`
3388
3375
  ] }),
3389
3376
  /* @__PURE__ */ P(zr, { children: /* @__PURE__ */ P(Gr, { sdk: t, onEvent: o, overlay: !0 }) }),
3390
3377
  /* @__PURE__ */ F(_r, { children: [
3391
- /* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n == null ? void 0 : n.prev, disabled: !(l != null && l.canPrev), children: /* @__PURE__ */ P(pt, { "data-a": "intr", name: "iconArrowPrev", className: Ee((l == null ? void 0 : l.canPrev) && Fe) }) }),
3392
- /* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n == null ? void 0 : n.next, disabled: !(l != null && l.canNext), children: /* @__PURE__ */ P(Lr, { "data-a": "intr", name: "iconArrowPrev", className: Ee((l == null ? void 0 : l.canNext) && Fe) }) })
3378
+ /* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n?.prev, disabled: !l?.canPrev, children: /* @__PURE__ */ P(ut, { "data-a": "intr", name: "iconArrowPrev", className: Ee(l?.canPrev && Fe) }) }),
3379
+ /* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n?.next, disabled: !l?.canNext, children: /* @__PURE__ */ P(Lr, { "data-a": "intr", name: "iconArrowPrev", className: Ee(l?.canNext && Fe) }) })
3393
3380
  ] })
3394
3381
  ] });
3395
3382
  }), $r = ({ user: t, gamification: e, overlay: s, swipeable: r, onEvent: n }) => t.data ? e ? /* @__PURE__ */ P(Sr, { overlay: s, gamification: e, onEvent: n, swipeable: r }) : /* @__PURE__ */ P(Le, {}) : t.error && !t.loading ? /* @__PURE__ */ P(
@@ -3413,6 +3400,6 @@ view this resource.`
3413
3400
  );
3414
3401
  });
3415
3402
  export {
3416
- Gr as Q,
3417
- Wr as n
3403
+ Gr as D,
3404
+ Wr as a
3418
3405
  };