@streamlayer/react 1.17.0 → 1.18.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 (77) hide show
  1. package/lib/app/advertisement.d.ts +1 -0
  2. package/lib/app/app.d.ts +3 -0
  3. package/lib/app/provider.d.ts +4 -1
  4. package/lib/app/useStreamLayerApp.d.ts +2 -1
  5. package/lib/cjs/advertisement.js +40 -40
  6. package/lib/cjs/gamification-feature.js +1 -1
  7. package/lib/cjs/index.js +1 -1
  8. package/lib/cjs/index2.js +2 -2
  9. package/lib/cjs/insight.js +1 -1
  10. package/lib/cjs/masters2.js +4 -4
  11. package/lib/cjs/notification.js +1 -1
  12. package/lib/cjs/points.js +1 -1
  13. package/lib/cjs/provider.js +62 -19
  14. package/lib/cjs/useStreamLayerApp2.js +15 -15
  15. package/lib/classic/app/advertisement.d.ts +1 -0
  16. package/lib/classic/app/app.d.ts +3 -0
  17. package/lib/classic/app/provider.d.ts +4 -1
  18. package/lib/classic/app/useStreamLayerApp.d.ts +2 -1
  19. package/lib/classic/cjs/advertisement.js +40 -40
  20. package/lib/classic/cjs/bet-pack.js +5 -1
  21. package/lib/classic/cjs/gamification-feature.js +1 -1
  22. package/lib/classic/cjs/index.js +1 -1
  23. package/lib/classic/cjs/insight.js +1 -1
  24. package/lib/classic/cjs/notification.js +1 -1
  25. package/lib/classic/cjs/points.js +1 -1
  26. package/lib/classic/cjs/provider.js +57 -30
  27. package/lib/classic/cjs/useStreamLayerApp2.js +15 -15
  28. package/lib/classic/es/advertisement.js +6989 -6764
  29. package/lib/classic/es/bet-pack.js +3431 -12
  30. package/lib/classic/es/gamification-feature.js +1 -1
  31. package/lib/classic/es/index.js +4 -6
  32. package/lib/classic/es/insight.js +44 -41
  33. package/lib/classic/es/notification.js +739 -230
  34. package/lib/classic/es/points.js +13 -13
  35. package/lib/classic/es/provider.js +7109 -4730
  36. package/lib/classic/es/useStreamLayerApp.js +1 -1
  37. package/lib/classic/es/useStreamLayerApp2.js +4044 -3824
  38. package/lib/classic/index.d.ts +1 -2
  39. package/lib/dist/cjs/gamification-feature2.js +1 -1
  40. package/lib/dist/cjs/masters.js +48 -44
  41. package/lib/dist/es/gamification-feature2.js +15 -15
  42. package/lib/dist/es/index.js +3 -3
  43. package/lib/dist/es/masters.js +12653 -10178
  44. package/lib/dist/style.css +1 -1
  45. package/lib/es/advertisement.js +6989 -6764
  46. package/lib/es/gamification-feature.js +1 -1
  47. package/lib/es/index.js +3 -5
  48. package/lib/es/index2.js +380 -380
  49. package/lib/es/insight.js +44 -41
  50. package/lib/es/masters2.js +22 -20
  51. package/lib/es/notification.js +739 -230
  52. package/lib/es/points.js +13 -13
  53. package/lib/es/provider.js +7162 -4706
  54. package/lib/es/useStreamLayerApp.js +1 -1
  55. package/lib/es/useStreamLayerApp2.js +4044 -3824
  56. package/lib/index.d.ts +1 -2
  57. package/lib/style.css +1 -1
  58. package/package.json +16 -26
  59. package/lib/app/tvos.d.ts +0 -5
  60. package/lib/cjs/index3.js +0 -1
  61. package/lib/cjs/tvos.js +0 -1
  62. package/lib/classic/app/tvos.d.ts +0 -5
  63. package/lib/classic/cjs/gamification-feature2.js +0 -1
  64. package/lib/classic/cjs/index2.js +0 -5
  65. package/lib/classic/cjs/index3.js +0 -1
  66. package/lib/classic/cjs/masters.js +0 -1
  67. package/lib/classic/cjs/masters2.js +0 -13
  68. package/lib/classic/cjs/tvos.js +0 -1
  69. package/lib/classic/es/gamification-feature2.js +0 -4
  70. package/lib/classic/es/index2.js +0 -3426
  71. package/lib/classic/es/index3.js +0 -76
  72. package/lib/classic/es/masters.js +0 -9
  73. package/lib/classic/es/masters2.js +0 -868
  74. package/lib/classic/es/tvos.js +0 -1352
  75. package/lib/classic/style.css +0 -1
  76. package/lib/es/index3.js +0 -76
  77. package/lib/es/tvos.js +0 -1352
package/lib/es/index2.js CHANGED
@@ -1,7 +1,20 @@
1
1
  import { jsx as P, jsxs as F } from "react/jsx-runtime";
2
- import { s as _, k as te, l as ft, n as ht, o as vt, p as gt, i as Se, f as _e } from "./provider.js";
3
- import $, { forwardRef as Le, useState as W, useRef as D, useEffect as X, useLayoutEffect as wt, createContext as He, useCallback as Ae, useSyncExternalStore as bt, useMemo as Re, memo as yt } from "react";
2
+ import { s as _, B as te, c as ft, f as ht, i as gt, j as vt, k as Se, a as _e } from "./provider.js";
3
+ import $, { useCallback as Le, useSyncExternalStore as wt, forwardRef as Ae, useState as W, useRef as D, useEffect as X, useLayoutEffect as bt, createContext as He, useMemo as Re, memo as yt } from "react";
4
4
  import { C as St, a as Et, S as qe } from "./useStreamLayerApp2.js";
5
+ function xt(t, e, s) {
6
+ let r = new Set(e).add(void 0);
7
+ return t.listen((n, i, l) => {
8
+ r.has(l) && s(n, i, l);
9
+ });
10
+ }
11
+ function Tt(t, e = {}) {
12
+ let s = Le(
13
+ (n) => e.keys ? xt(t, e.keys, n) : t.listen(n),
14
+ [e.keys, t]
15
+ ), r = t.get.bind(t);
16
+ return wt(s, r, r);
17
+ }
5
18
  function $e(t) {
6
19
  return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
7
20
  }
@@ -71,7 +84,7 @@ function K() {
71
84
  const t = typeof document < "u" ? document : {};
72
85
  return Oe(t, We), t;
73
86
  }
74
- const xt = {
87
+ const Ct = {
75
88
  document: We,
76
89
  navigator: {
77
90
  userAgent: ""
@@ -131,12 +144,12 @@ const xt = {
131
144
  };
132
145
  function N() {
133
146
  const t = typeof window < "u" ? window : {};
134
- return Oe(t, xt), t;
147
+ return Oe(t, Ct), t;
135
148
  }
136
- function Tt(t) {
149
+ function Pt(t) {
137
150
  return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
138
151
  }
139
- function Ct(t) {
152
+ function Mt(t) {
140
153
  const e = t;
141
154
  Object.keys(e).forEach((s) => {
142
155
  try {
@@ -155,29 +168,29 @@ function Ee(t, e) {
155
168
  function le() {
156
169
  return Date.now();
157
170
  }
158
- function Pt(t) {
171
+ function kt(t) {
159
172
  const e = N();
160
173
  let s;
161
174
  return e.getComputedStyle && (s = e.getComputedStyle(t, null)), !s && t.currentStyle && (s = t.currentStyle), s || (s = t.style), s;
162
175
  }
163
- function Mt(t, e) {
176
+ function It(t, e) {
164
177
  e === void 0 && (e = "x");
165
178
  const s = N();
166
179
  let r, n, i;
167
- const l = Pt(t);
180
+ const l = kt(t);
168
181
  return s.WebKitCSSMatrix ? (n = l.transform || l.webkitTransform, n.split(",").length > 6 && (n = n.split(", ").map((a) => a.replace(",", ".")).join(", ")), i = new s.WebKitCSSMatrix(n === "none" ? "" : n)) : (i = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = i.toString().split(",")), e === "x" && (s.WebKitCSSMatrix ? n = i.m41 : r.length === 16 ? n = parseFloat(r[12]) : n = parseFloat(r[4])), e === "y" && (s.WebKitCSSMatrix ? n = i.m42 : r.length === 16 ? n = parseFloat(r[13]) : n = parseFloat(r[5])), n || 0;
169
182
  }
170
183
  function se(t) {
171
184
  return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
172
185
  }
173
- function kt(t) {
186
+ function Lt(t) {
174
187
  return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
175
188
  }
176
189
  function B() {
177
190
  const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
178
191
  for (let s = 1; s < arguments.length; s += 1) {
179
192
  const r = s < 0 || arguments.length <= s ? void 0 : arguments[s];
180
- if (r != null && !kt(r)) {
193
+ if (r != null && !Lt(r)) {
181
194
  const n = Object.keys(Object(r)).filter((i) => e.indexOf(i) < 0);
182
195
  for (let i = 0, l = n.length; i < l; i += 1) {
183
196
  const a = n[i], o = Object.getOwnPropertyDescriptor(r, a);
@@ -200,10 +213,10 @@ function Ye(t) {
200
213
  let l = null, a;
201
214
  const o = e.params.speed;
202
215
  e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
203
- const c = s > i ? "next" : "prev", d = (f, v) => c === "next" && f >= v || c === "prev" && f <= v, u = () => {
216
+ const c = s > i ? "next" : "prev", d = (f, g) => c === "next" && f >= g || c === "prev" && f <= g, u = () => {
204
217
  a = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = a);
205
- const f = Math.max(Math.min((a - l) / o, 1), 0), v = 0.5 - Math.cos(f * Math.PI) / 2;
206
- let h = i + v * (s - i);
218
+ const f = Math.max(Math.min((a - l) / o, 1), 0), g = 0.5 - Math.cos(f * Math.PI) / 2;
219
+ let h = i + g * (s - i);
207
220
  if (d(h, s) && (h = s), e.wrapperEl.scrollTo({
208
221
  [r]: h
209
222
  }), d(h, s)) {
@@ -223,7 +236,7 @@ function H(t, e) {
223
236
  const s = N(), r = [...t.children];
224
237
  return s.HTMLSlotElement && t instanceof HTMLSlotElement && r.push(...t.assignedElements()), e ? r.filter((n) => n.matches(e)) : r;
225
238
  }
226
- function It(t, e) {
239
+ function At(t, e) {
227
240
  const s = [e];
228
241
  for (; s.length > 0; ) {
229
242
  const r = s.shift();
@@ -232,10 +245,10 @@ function It(t, e) {
232
245
  s.push(...r.children, ...r.shadowRoot ? r.shadowRoot.children : [], ...r.assignedElements ? r.assignedElements() : []);
233
246
  }
234
247
  }
235
- function Lt(t, e) {
248
+ function Ot(t, e) {
236
249
  const s = N();
237
250
  let r = e.contains(t);
238
- return !r && s.HTMLSlotElement && e instanceof HTMLSlotElement && (r = [...e.assignedElements()].includes(t), r || (r = It(t, e))), r;
251
+ return !r && s.HTMLSlotElement && e instanceof HTMLSlotElement && (r = [...e.assignedElements()].includes(t), r || (r = At(t, e))), r;
239
252
  }
240
253
  function oe(t) {
241
254
  try {
@@ -247,9 +260,9 @@ function oe(t) {
247
260
  function de(t, e) {
248
261
  e === void 0 && (e = []);
249
262
  const s = document.createElement(t);
250
- return s.classList.add(...Array.isArray(e) ? e : Tt(e)), s;
263
+ return s.classList.add(...Array.isArray(e) ? e : Pt(e)), s;
251
264
  }
252
- function At(t, e) {
265
+ function zt(t, e) {
253
266
  const s = [];
254
267
  for (; t.previousElementSibling; ) {
255
268
  const r = t.previousElementSibling;
@@ -257,7 +270,7 @@ function At(t, e) {
257
270
  }
258
271
  return s;
259
272
  }
260
- function Ot(t, e) {
273
+ function _t(t, e) {
261
274
  const s = [];
262
275
  for (; t.nextElementSibling; ) {
263
276
  const r = t.nextElementSibling;
@@ -291,7 +304,7 @@ function R(t) {
291
304
  return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
292
305
  }
293
306
  let fe;
294
- function zt() {
307
+ function $t() {
295
308
  const t = N(), e = K();
296
309
  return {
297
310
  smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
@@ -299,10 +312,10 @@ function zt() {
299
312
  };
300
313
  }
301
314
  function Ue() {
302
- return fe || (fe = zt()), fe;
315
+ return fe || (fe = $t()), fe;
303
316
  }
304
317
  let he;
305
- function _t(t) {
318
+ function Gt(t) {
306
319
  let {
307
320
  userAgent: e
308
321
  } = t === void 0 ? {} : t;
@@ -311,16 +324,16 @@ function _t(t) {
311
324
  android: !1
312
325
  }, a = r.screen.width, o = r.screen.height, c = i.match(/(Android);?[\s\/]+([\d.]+)?/);
313
326
  let d = i.match(/(iPad).*OS\s([\d_]+)/);
314
- const u = i.match(/(iPod)(.*OS\s([\d_]+))?/), f = !d && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/), v = n === "Win32";
327
+ const u = i.match(/(iPod)(.*OS\s([\d_]+))?/), f = !d && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/), g = n === "Win32";
315
328
  let h = n === "MacIntel";
316
329
  const b = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
317
- 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;
330
+ 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 && !g && (l.os = "android", l.android = !0), (d || f || u) && (l.os = "ios", l.ios = !0), l;
318
331
  }
319
332
  function Qe(t) {
320
- return t === void 0 && (t = {}), he || (he = _t(t)), he;
333
+ return t === void 0 && (t = {}), he || (he = Gt(t)), he;
321
334
  }
322
- let ve;
323
- function $t() {
335
+ let ge;
336
+ function Nt() {
324
337
  const t = N(), e = Qe();
325
338
  let s = !1;
326
339
  function r() {
@@ -343,9 +356,9 @@ function $t() {
343
356
  };
344
357
  }
345
358
  function Ke() {
346
- return ve || (ve = $t()), ve;
359
+ return ge || (ge = Nt()), ge;
347
360
  }
348
- function Gt(t) {
361
+ function Bt(t) {
349
362
  let {
350
363
  swiper: e,
351
364
  on: s,
@@ -360,9 +373,9 @@ function Gt(t) {
360
373
  l = n.requestAnimationFrame(() => {
361
374
  const {
362
375
  width: f,
363
- height: v
376
+ height: g
364
377
  } = e;
365
- let h = f, b = v;
378
+ let h = f, b = g;
366
379
  u.forEach((M) => {
367
380
  let {
368
381
  contentBoxSize: w,
@@ -370,7 +383,7 @@ function Gt(t) {
370
383
  target: m
371
384
  } = M;
372
385
  m && m !== e.el || (h = p ? p.width : (w[0] || w).inlineSize, b = p ? p.height : (w[0] || w).blockSize);
373
- }), (h !== f || b !== v) && a();
386
+ }), (h !== f || b !== g) && a();
374
387
  });
375
388
  }), i.observe(e.el));
376
389
  }, c = () => {
@@ -388,7 +401,7 @@ function Gt(t) {
388
401
  c(), n.removeEventListener("resize", a), n.removeEventListener("orientationchange", d);
389
402
  });
390
403
  }
391
- function Nt(t) {
404
+ function Dt(t) {
392
405
  let {
393
406
  swiper: e,
394
407
  extendParams: s,
@@ -397,7 +410,7 @@ function Nt(t) {
397
410
  } = t;
398
411
  const i = [], l = N(), a = function(d, u) {
399
412
  u === void 0 && (u = {});
400
- const f = l.MutationObserver || l.WebkitMutationObserver, v = new f((h) => {
413
+ const f = l.MutationObserver || l.WebkitMutationObserver, g = new f((h) => {
401
414
  if (e.__preventObserver__) return;
402
415
  if (h.length === 1) {
403
416
  n("observerUpdate", h[0]);
@@ -408,11 +421,11 @@ function Nt(t) {
408
421
  };
409
422
  l.requestAnimationFrame ? l.requestAnimationFrame(b) : l.setTimeout(b, 0);
410
423
  });
411
- v.observe(d, {
424
+ g.observe(d, {
412
425
  attributes: typeof u.attributes > "u" ? !0 : u.attributes,
413
426
  childList: e.isElement || (typeof u.childList > "u" ? !0 : u).childList,
414
427
  characterData: typeof u.characterData > "u" ? !0 : u.characterData
415
- }), i.push(v);
428
+ }), i.push(g);
416
429
  }, o = () => {
417
430
  if (e.params.observer) {
418
431
  if (e.params.observeParents) {
@@ -437,7 +450,7 @@ function Nt(t) {
437
450
  observeSlideChildren: !1
438
451
  }), r("init", o), r("destroy", c);
439
452
  }
440
- var Bt = {
453
+ var Ft = {
441
454
  on(t, e, s) {
442
455
  const r = this;
443
456
  if (!r.eventsListeners || r.destroyed || typeof e != "function") return r;
@@ -492,7 +505,7 @@ var Bt = {
492
505
  }), t;
493
506
  }
494
507
  };
495
- function Dt() {
508
+ function jt() {
496
509
  const t = this;
497
510
  let e, s;
498
511
  const r = t.el;
@@ -502,7 +515,7 @@ function Dt() {
502
515
  size: t.isHorizontal() ? e : s
503
516
  }));
504
517
  }
505
- function Ft() {
518
+ function Vt() {
506
519
  const t = this;
507
520
  function e(E, x) {
508
521
  return parseFloat(E.getPropertyValue(t.getDirectionLabel(x)) || 0);
@@ -515,13 +528,13 @@ function Ft() {
515
528
  wrongRTL: a
516
529
  } = 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;
517
530
  let f = [];
518
- const v = [], h = [];
531
+ const g = [], h = [];
519
532
  let b = s.slidesOffsetBefore;
520
533
  typeof b == "function" && (b = s.slidesOffsetBefore.call(t));
521
534
  let M = s.slidesOffsetAfter;
522
535
  typeof M == "function" && (M = s.slidesOffsetAfter.call(t));
523
536
  const w = t.snapGrid.length, p = t.slidesGrid.length;
524
- let m = s.spaceBetween, g = -b, y = 0, T = 0;
537
+ let m = s.spaceBetween, v = -b, y = 0, T = 0;
525
538
  if (typeof i > "u")
526
539
  return;
527
540
  typeof m == "string" && m.indexOf("%") >= 0 ? m = parseFloat(m.replace("%", "")) / 100 * i : typeof m == "string" && (m = parseFloat(m)), t.virtualSize = -m, d.forEach((E) => {
@@ -541,21 +554,21 @@ function Ft() {
541
554
  if (L && (x.style.transform = "none"), O && (x.style.webkitTransform = "none"), s.roundLengths)
542
555
  I = t.isHorizontal() ? xe(x, "width") : xe(x, "height");
543
556
  else {
544
- 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");
545
- if (j && j === "border-box")
546
- I = C + V + G;
557
+ const C = e(k, "width"), z = e(k, "padding-left"), U = e(k, "padding-right"), j = e(k, "margin-left"), G = e(k, "margin-right"), V = k.getPropertyValue("box-sizing");
558
+ if (V && V === "border-box")
559
+ I = C + j + G;
547
560
  else {
548
561
  const {
549
562
  clientWidth: ut,
550
563
  offsetWidth: mt
551
564
  } = x;
552
- I = C + z + U + V + G + (mt - ut);
565
+ I = C + z + U + j + G + (mt - ut);
553
566
  }
554
567
  }
555
568
  L && (x.style.transform = L), O && (x.style.webkitTransform = O), s.roundLengths && (I = Math.floor(I));
556
569
  } else
557
570
  I = (i - (s.slidesPerView - 1) * m) / s.slidesPerView, s.roundLengths && (I = Math.floor(I)), d[E] && (d[E].style[t.getDirectionLabel("width")] = `${I}px`);
558
- 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;
571
+ d[E] && (d[E].swiperSlideSize = I), h.push(I), s.centeredSlides ? (v = v + I / 2 + y / 2 + m, y === 0 && E !== 0 && (v = v - i / 2 - m), E === 0 && (v = v - i / 2 - m), Math.abs(v) < 1 / 1e3 && (v = 0), s.roundLengths && (v = Math.floor(v)), T % s.slidesPerGroup === 0 && f.push(v), g.push(v)) : (s.roundLengths && (v = Math.floor(v)), (T - Math.min(t.params.slidesPerGroupSkip, T)) % t.params.slidesPerGroup === 0 && f.push(v), g.push(v), v = v + I + m), t.virtualSize += I + m, y = I, T += 1;
559
572
  }
560
573
  }
561
574
  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) {
@@ -574,7 +587,7 @@ function Ft() {
574
587
  f.push(f[f.length - 1] + k);
575
588
  }
576
589
  for (let x = 0; x < t.virtual.slidesBefore + t.virtual.slidesAfter; x += 1)
577
- s.slidesPerGroup === 1 && f.push(f[f.length - 1] + E), v.push(v[v.length - 1] + E), t.virtualSize += E;
590
+ s.slidesPerGroup === 1 && f.push(f[f.length - 1] + E), g.push(g[g.length - 1] + E), t.virtualSize += E;
578
591
  }
579
592
  if (f.length === 0 && (f = [0]), m !== 0) {
580
593
  const E = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
@@ -600,27 +613,27 @@ function Ft() {
600
613
  const k = (i - E - x) / 2;
601
614
  f.forEach((L, O) => {
602
615
  f[O] = L - k;
603
- }), v.forEach((L, O) => {
604
- v[O] = L + k;
616
+ }), g.forEach((L, O) => {
617
+ g[O] = L + k;
605
618
  });
606
619
  }
607
620
  }
608
621
  if (Object.assign(t, {
609
622
  slides: d,
610
623
  snapGrid: f,
611
- slidesGrid: v,
624
+ slidesGrid: g,
612
625
  slidesSizesGrid: h
613
626
  }), s.centeredSlides && s.cssMode && !s.centeredSlidesBounds) {
614
627
  re(r, "--swiper-centered-offset-before", `${-f[0]}px`), re(r, "--swiper-centered-offset-after", `${t.size / 2 - h[h.length - 1] / 2}px`);
615
628
  const E = -t.snapGrid[0], x = -t.slidesGrid[0];
616
629
  t.snapGrid = t.snapGrid.map((k) => k + E), t.slidesGrid = t.slidesGrid.map((k) => k + x);
617
630
  }
618
- 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")) {
631
+ if (u !== c && t.emit("slidesLengthChange"), f.length !== w && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), g.length !== p && t.emit("slidesGridLengthChange"), s.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !s.cssMode && (s.effect === "slide" || s.effect === "fade")) {
619
632
  const E = `${s.containerModifierClass}backface-hidden`, x = t.el.classList.contains(E);
620
633
  u <= s.maxBackfaceHiddenSlides ? x || t.el.classList.add(E) : x && t.el.classList.remove(E);
621
634
  }
622
635
  }
623
- function Vt(t) {
636
+ function Ht(t) {
624
637
  const e = this, s = [], r = e.virtual && e.params.virtual.enabled;
625
638
  let n = 0, i;
626
639
  typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
@@ -645,7 +658,7 @@ function Vt(t) {
645
658
  }
646
659
  (n || n === 0) && (e.wrapperEl.style.height = `${n}px`);
647
660
  }
648
- function jt() {
661
+ function Rt() {
649
662
  const t = this, e = t.slides, s = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
650
663
  for (let r = 0; r < e.length; r += 1)
651
664
  e[r].swiperSlideOffset = (t.isHorizontal() ? e[r].offsetLeft : e[r].offsetTop) - s - t.cssOverflowAdjustment();
@@ -653,7 +666,7 @@ function jt() {
653
666
  const Ge = (t, e, s) => {
654
667
  e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
655
668
  };
656
- function Ht(t) {
669
+ function qt(t) {
657
670
  t === void 0 && (t = this && this.translate || 0);
658
671
  const e = this, s = e.params, {
659
672
  slides: r,
@@ -670,11 +683,11 @@ function Ht(t) {
670
683
  const c = r[o];
671
684
  let d = c.swiperSlideOffset;
672
685
  s.cssMode && s.centeredSlides && (d -= r[0].swiperSlideOffset);
673
- 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;
686
+ 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), g = -(l - d), h = g + e.slidesSizesGrid[o], b = g >= 0 && g <= e.size - e.slidesSizesGrid[o], M = g >= 0 && g < e.size - 1 || h > 1 && h <= e.size || g <= 0 && h >= e.size;
674
687
  M && (e.visibleSlides.push(c), e.visibleSlidesIndexes.push(o)), Ge(c, M, s.slideVisibleClass), Ge(c, b, s.slideFullyVisibleClass), c.progress = n ? -u : u, c.originalProgress = n ? -f : f;
675
688
  }
676
689
  }
677
- function Rt(t) {
690
+ function Wt(t) {
678
691
  const e = this;
679
692
  if (typeof t > "u") {
680
693
  const d = e.rtlTranslate ? -1 : 1;
@@ -696,8 +709,8 @@ function Rt(t) {
696
709
  i = d || n <= 0, l = u || n >= 1, d && (n = 0), u && (n = 1);
697
710
  }
698
711
  if (s.loop) {
699
- 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);
700
- b >= f ? a = (b - f) / h : a = (b + h - v) / h, a > 1 && (a -= 1);
712
+ const d = e.getSlideIndexByData(0), u = e.getSlideIndexByData(e.slides.length - 1), f = e.slidesGrid[d], g = e.slidesGrid[u], h = e.slidesGrid[e.slidesGrid.length - 1], b = Math.abs(t);
713
+ b >= f ? a = (b - f) / h : a = (b + h - g) / h, a > 1 && (a -= 1);
701
714
  }
702
715
  Object.assign(e, {
703
716
  progress: n,
@@ -706,10 +719,10 @@ function Rt(t) {
706
719
  isEnd: l
707
720
  }), (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);
708
721
  }
709
- const ge = (t, e, s) => {
722
+ const ve = (t, e, s) => {
710
723
  e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
711
724
  };
712
- function qt() {
725
+ function Yt() {
713
726
  const t = this, {
714
727
  slides: e,
715
728
  params: s,
@@ -725,8 +738,8 @@ function qt() {
725
738
  o = a(`[data-swiper-slide-index="${n}"]`);
726
739
  else
727
740
  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];
728
- o && (l || (d = Ot(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !d && (d = e[0]), c = At(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((u) => {
729
- ge(u, u === o, s.slideActiveClass), ge(u, u === d, s.slideNextClass), ge(u, u === c, s.slidePrevClass);
741
+ o && (l || (d = _t(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !d && (d = e[0]), c = zt(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((u) => {
742
+ ve(u, u === o, s.slideActiveClass), ve(u, u === d, s.slideNextClass), ve(u, u === c, s.slidePrevClass);
730
743
  }), t.emitSlidesClasses();
731
744
  }
732
745
  const ne = (t, e) => {
@@ -768,7 +781,7 @@ const ne = (t, e) => {
768
781
  for (let l = Math.max(n - e, 0); l <= Math.min(i + e, s - 1); l += 1)
769
782
  l !== n && (l > i || l < n) && we(t, l);
770
783
  };
771
- function Wt(t) {
784
+ function Xt(t) {
772
785
  const {
773
786
  slidesGrid: e,
774
787
  params: s
@@ -778,7 +791,7 @@ function Wt(t) {
778
791
  typeof e[i + 1] < "u" ? r >= e[i] && r < e[i + 1] - (e[i + 1] - e[i]) / 2 ? n = i : r >= e[i] && r < e[i + 1] && (n = i + 1) : r >= e[i] && (n = i);
779
792
  return s.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
780
793
  }
781
- function Yt(t) {
794
+ function Ut(t) {
782
795
  const e = this, s = e.rtlTranslate ? e.translate : -e.translate, {
783
796
  snapGrid: r,
784
797
  params: n,
@@ -787,15 +800,15 @@ function Yt(t) {
787
800
  snapIndex: a
788
801
  } = e;
789
802
  let o = t, c;
790
- const d = (v) => {
791
- let h = v - e.virtual.slidesBefore;
803
+ const d = (g) => {
804
+ let h = g - e.virtual.slidesBefore;
792
805
  return h < 0 && (h = e.virtual.slides.length + h), h >= e.virtual.slides.length && (h -= e.virtual.slides.length), h;
793
806
  };
794
- if (typeof o > "u" && (o = Wt(e)), r.indexOf(s) >= 0)
807
+ if (typeof o > "u" && (o = Xt(e)), r.indexOf(s) >= 0)
795
808
  c = r.indexOf(s);
796
809
  else {
797
- const v = Math.min(n.slidesPerGroupSkip, o);
798
- c = v + Math.floor((o - v) / n.slidesPerGroup);
810
+ const g = Math.min(n.slidesPerGroupSkip, o);
811
+ c = g + Math.floor((o - g) / n.slidesPerGroup);
799
812
  }
800
813
  if (c >= r.length && (c = r.length - 1), o === i && !e.params.loop) {
801
814
  c !== a && (e.snapIndex = c, e.emit("snapIndexChange"));
@@ -810,12 +823,12 @@ function Yt(t) {
810
823
  if (e.virtual && n.virtual.enabled && n.loop)
811
824
  f = d(o);
812
825
  else if (u) {
813
- const v = e.slides.find((b) => b.column === o);
814
- let h = parseInt(v.getAttribute("data-swiper-slide-index"), 10);
815
- Number.isNaN(h) && (h = Math.max(e.slides.indexOf(v), 0)), f = Math.floor(h / n.grid.rows);
826
+ const g = e.slides.find((b) => b.column === o);
827
+ let h = parseInt(g.getAttribute("data-swiper-slide-index"), 10);
828
+ Number.isNaN(h) && (h = Math.max(e.slides.indexOf(g), 0)), f = Math.floor(h / n.grid.rows);
816
829
  } else if (e.slides[o]) {
817
- const v = e.slides[o].getAttribute("data-swiper-slide-index");
818
- v ? f = parseInt(v, 10) : f = o;
830
+ const g = e.slides[o].getAttribute("data-swiper-slide-index");
831
+ g ? f = parseInt(g, 10) : f = o;
819
832
  } else
820
833
  f = o;
821
834
  Object.assign(e, {
@@ -827,7 +840,7 @@ function Yt(t) {
827
840
  activeIndex: o
828
841
  }), e.initialized && Te(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== f && e.emit("realIndexChange"), e.emit("slideChange"));
829
842
  }
830
- function Xt(t, e) {
843
+ function Qt(t, e) {
831
844
  const s = this, r = s.params;
832
845
  let n = t.closest(`.${r.slideClass}, swiper-slide`);
833
846
  !n && s.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((a) => {
@@ -849,18 +862,18 @@ function Xt(t, e) {
849
862
  }
850
863
  r.slideToClickedSlide && s.clickedIndex !== void 0 && s.clickedIndex !== s.activeIndex && s.slideToClickedSlide();
851
864
  }
852
- var Ut = {
853
- updateSize: Dt,
854
- updateSlides: Ft,
855
- updateAutoHeight: Vt,
856
- updateSlidesOffset: jt,
857
- updateSlidesProgress: Ht,
858
- updateProgress: Rt,
859
- updateSlidesClasses: qt,
860
- updateActiveIndex: Yt,
861
- updateClickedSlide: Xt
865
+ var Kt = {
866
+ updateSize: jt,
867
+ updateSlides: Vt,
868
+ updateAutoHeight: Ht,
869
+ updateSlidesOffset: Rt,
870
+ updateSlidesProgress: qt,
871
+ updateProgress: Wt,
872
+ updateSlidesClasses: Yt,
873
+ updateActiveIndex: Ut,
874
+ updateClickedSlide: Qt
862
875
  };
863
- function Qt(t) {
876
+ function Jt(t) {
864
877
  t === void 0 && (t = this.isHorizontal() ? "x" : "y");
865
878
  const e = this, {
866
879
  params: s,
@@ -872,10 +885,10 @@ function Qt(t) {
872
885
  return r ? -n : n;
873
886
  if (s.cssMode)
874
887
  return n;
875
- let l = Mt(i, t);
888
+ let l = It(i, t);
876
889
  return l += e.cssOverflowAdjustment(), r && (l = -l), l || 0;
877
890
  }
878
- function Kt(t, e) {
891
+ function Zt(t, e) {
879
892
  const s = this, {
880
893
  rtlTranslate: r,
881
894
  params: n,
@@ -889,13 +902,13 @@ function Kt(t, e) {
889
902
  const u = s.maxTranslate() - s.minTranslate();
890
903
  u === 0 ? d = 0 : d = (t - s.minTranslate()) / u, d !== l && s.updateProgress(t), s.emit("setTranslate", s.translate, e);
891
904
  }
892
- function Jt() {
905
+ function es() {
893
906
  return -this.snapGrid[0];
894
907
  }
895
- function Zt() {
908
+ function ts() {
896
909
  return -this.snapGrid[this.snapGrid.length - 1];
897
910
  }
898
- function es(t, e, s, r, n) {
911
+ function ss(t, e, s, r, n) {
899
912
  t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), s === void 0 && (s = !0), r === void 0 && (r = !0);
900
913
  const i = this, {
901
914
  params: l,
@@ -927,14 +940,14 @@ function es(t, e, s, r, n) {
927
940
  !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"));
928
941
  }), i.wrapperEl.addEventListener("transitionend", i.onTranslateToWrapperTransitionEnd))), !0;
929
942
  }
930
- var ts = {
931
- getTranslate: Qt,
932
- setTranslate: Kt,
933
- minTranslate: Jt,
934
- maxTranslate: Zt,
935
- translateTo: es
943
+ var rs = {
944
+ getTranslate: Jt,
945
+ setTranslate: Zt,
946
+ minTranslate: es,
947
+ maxTranslate: ts,
948
+ translateTo: ss
936
949
  };
937
- function ss(t, e) {
950
+ function is(t, e) {
938
951
  const s = this;
939
952
  s.params.cssMode || (s.wrapperEl.style.transitionDuration = `${t}ms`, s.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), s.emit("setTransition", t, e);
940
953
  }
@@ -958,7 +971,7 @@ function Je(t) {
958
971
  e.emit(`slideChangeTransition${n}`), a === "next" ? e.emit(`slideNextTransition${n}`) : e.emit(`slidePrevTransition${n}`);
959
972
  }
960
973
  }
961
- function rs(t, e) {
974
+ function ns(t, e) {
962
975
  t === void 0 && (t = !0);
963
976
  const s = this, {
964
977
  params: r
@@ -970,7 +983,7 @@ function rs(t, e) {
970
983
  step: "Start"
971
984
  }));
972
985
  }
973
- function is(t, e) {
986
+ function as(t, e) {
974
987
  t === void 0 && (t = !0);
975
988
  const s = this, {
976
989
  params: r
@@ -982,12 +995,12 @@ function is(t, e) {
982
995
  step: "End"
983
996
  }));
984
997
  }
985
- var ns = {
986
- setTransition: ss,
987
- transitionStart: rs,
988
- transitionEnd: is
998
+ var ls = {
999
+ setTransition: is,
1000
+ transitionStart: ns,
1001
+ transitionEnd: as
989
1002
  };
990
- function as(t, e, s, r, n) {
1003
+ function os(t, e, s, r, n) {
991
1004
  t === void 0 && (t = 0), s === void 0 && (s = !0), typeof t == "string" && (t = parseInt(t, 10));
992
1005
  const i = this;
993
1006
  let l = t;
@@ -999,7 +1012,7 @@ function as(t, e, s, r, n) {
999
1012
  previousIndex: d,
1000
1013
  activeIndex: u,
1001
1014
  rtlTranslate: f,
1002
- wrapperEl: v,
1015
+ wrapperEl: g,
1003
1016
  enabled: h
1004
1017
  } = i;
1005
1018
  if (!h && !r && !n || i.destroyed || i.animating && a.preventInteractionOnTransition)
@@ -1026,8 +1039,8 @@ function as(t, e, s, r, n) {
1026
1039
  const y = i.isHorizontal(), T = f ? w : -w;
1027
1040
  if (e === 0)
1028
1041
  m && (i.wrapperEl.style.scrollSnapType = "none", i._immediateVirtual = !0), m && !i._cssModeVirtualInitialSet && i.params.initialSlide > 0 ? (i._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1029
- v[y ? "scrollLeft" : "scrollTop"] = T;
1030
- })) : v[y ? "scrollLeft" : "scrollTop"] = T, m && requestAnimationFrame(() => {
1042
+ g[y ? "scrollLeft" : "scrollTop"] = T;
1043
+ })) : g[y ? "scrollLeft" : "scrollTop"] = T, m && requestAnimationFrame(() => {
1031
1044
  i.wrapperEl.style.scrollSnapType = "", i._immediateVirtual = !1;
1032
1045
  });
1033
1046
  else {
@@ -1037,19 +1050,19 @@ function as(t, e, s, r, n) {
1037
1050
  targetPosition: T,
1038
1051
  side: y ? "left" : "top"
1039
1052
  }), !0;
1040
- v.scrollTo({
1053
+ g.scrollTo({
1041
1054
  [y ? "left" : "top"]: T,
1042
1055
  behavior: "smooth"
1043
1056
  });
1044
1057
  }
1045
1058
  return !0;
1046
1059
  }
1047
- const g = Ke().isSafari;
1048
- 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) {
1060
+ const v = Ke().isSafari;
1061
+ return m && !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, p), e === 0 ? i.transitionEnd(s, p) : i.animating || (i.animating = !0, i.onSlideToWrapperTransitionEnd || (i.onSlideToWrapperTransitionEnd = function(y) {
1049
1062
  !i || i.destroyed || y.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onSlideToWrapperTransitionEnd), i.onSlideToWrapperTransitionEnd = null, delete i.onSlideToWrapperTransitionEnd, i.transitionEnd(s, p));
1050
1063
  }), i.wrapperEl.addEventListener("transitionend", i.onSlideToWrapperTransitionEnd)), !0;
1051
1064
  }
1052
- function ls(t, e, s, r) {
1065
+ function ds(t, e, s, r) {
1053
1066
  t === void 0 && (t = 0), s === void 0 && (s = !0), typeof t == "string" && (t = parseInt(t, 10));
1054
1067
  const n = this;
1055
1068
  if (n.destroyed) return;
@@ -1063,7 +1076,7 @@ function ls(t, e, s, r) {
1063
1076
  let a;
1064
1077
  if (i) {
1065
1078
  const f = l * n.params.grid.rows;
1066
- a = n.slides.find((v) => v.getAttribute("data-swiper-slide-index") * 1 === f).column;
1079
+ a = n.slides.find((g) => g.getAttribute("data-swiper-slide-index") * 1 === f).column;
1067
1080
  } else
1068
1081
  a = n.getSlideIndexByData(l);
1069
1082
  const o = i ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
@@ -1083,7 +1096,7 @@ function ls(t, e, s, r) {
1083
1096
  }
1084
1097
  if (i) {
1085
1098
  const f = l * n.params.grid.rows;
1086
- l = n.slides.find((v) => v.getAttribute("data-swiper-slide-index") * 1 === f).column;
1099
+ l = n.slides.find((g) => g.getAttribute("data-swiper-slide-index") * 1 === f).column;
1087
1100
  } else
1088
1101
  l = n.getSlideIndexByData(l);
1089
1102
  }
@@ -1091,7 +1104,7 @@ function ls(t, e, s, r) {
1091
1104
  n.slideTo(l, e, s, r);
1092
1105
  }), n;
1093
1106
  }
1094
- function os(t, e, s) {
1107
+ function cs(t, e, s) {
1095
1108
  e === void 0 && (e = !0);
1096
1109
  const r = this, {
1097
1110
  enabled: n,
@@ -1114,7 +1127,7 @@ function os(t, e, s) {
1114
1127
  }
1115
1128
  return i.rewind && r.isEnd ? r.slideTo(0, t, e, s) : r.slideTo(r.activeIndex + o, t, e, s);
1116
1129
  }
1117
- function ds(t, e, s) {
1130
+ function ps(t, e, s) {
1118
1131
  e === void 0 && (e = !0);
1119
1132
  const r = this, {
1120
1133
  params: n,
@@ -1137,12 +1150,12 @@ function ds(t, e, s) {
1137
1150
  function f(p) {
1138
1151
  return p < 0 ? -Math.floor(Math.abs(p)) : Math.floor(p);
1139
1152
  }
1140
- const v = f(u), h = i.map((p) => f(p)), b = n.freeMode && n.freeMode.enabled;
1141
- let M = i[h.indexOf(v) - 1];
1153
+ const g = f(u), h = i.map((p) => f(p)), b = n.freeMode && n.freeMode.enabled;
1154
+ let M = i[h.indexOf(g) - 1];
1142
1155
  if (typeof M > "u" && (n.cssMode || b)) {
1143
1156
  let p;
1144
- i.forEach((m, g) => {
1145
- v >= m && (p = g);
1157
+ i.forEach((m, v) => {
1158
+ g >= m && (p = v);
1146
1159
  }), typeof p < "u" && (M = b ? i[p] : i[p > 0 ? p - 1 : p]);
1147
1160
  }
1148
1161
  let w = 0;
@@ -1155,13 +1168,13 @@ function ds(t, e, s) {
1155
1168
  }), !0;
1156
1169
  return r.slideTo(w, t, e, s);
1157
1170
  }
1158
- function cs(t, e, s) {
1171
+ function us(t, e, s) {
1159
1172
  e === void 0 && (e = !0);
1160
1173
  const r = this;
1161
1174
  if (!r.destroyed)
1162
1175
  return typeof t > "u" && (t = r.params.speed), r.slideTo(r.activeIndex, t, e, s);
1163
1176
  }
1164
- function ps(t, e, s, r) {
1177
+ function ms(t, e, s, r) {
1165
1178
  e === void 0 && (e = !0), r === void 0 && (r = 0.5);
1166
1179
  const n = this;
1167
1180
  if (n.destroyed) return;
@@ -1177,7 +1190,7 @@ function ps(t, e, s, r) {
1177
1190
  }
1178
1191
  return i = Math.max(i, 0), i = Math.min(i, n.slidesGrid.length - 1), n.slideTo(i, t, e, s);
1179
1192
  }
1180
- function us() {
1193
+ function fs() {
1181
1194
  const t = this;
1182
1195
  if (t.destroyed) return;
1183
1196
  const {
@@ -1196,16 +1209,16 @@ function us() {
1196
1209
  } else
1197
1210
  t.slideTo(n);
1198
1211
  }
1199
- var ms = {
1200
- slideTo: as,
1201
- slideToLoop: ls,
1202
- slideNext: os,
1203
- slidePrev: ds,
1204
- slideReset: cs,
1205
- slideToClosest: ps,
1206
- slideToClickedSlide: us
1212
+ var hs = {
1213
+ slideTo: os,
1214
+ slideToLoop: ds,
1215
+ slideNext: cs,
1216
+ slidePrev: ps,
1217
+ slideReset: us,
1218
+ slideToClosest: ms,
1219
+ slideToClickedSlide: fs
1207
1220
  };
1208
- function fs(t, e) {
1221
+ function gs(t, e) {
1209
1222
  const s = this, {
1210
1223
  params: r,
1211
1224
  slidesEl: n
@@ -1217,8 +1230,8 @@ function fs(t, e) {
1217
1230
  });
1218
1231
  }, 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) => {
1219
1232
  for (let f = 0; f < u; f += 1) {
1220
- const v = s.isElement ? de("swiper-slide", [r.slideBlankClass]) : de("div", [r.slideClass, r.slideBlankClass]);
1221
- s.slidesEl.append(v);
1233
+ const g = s.isElement ? de("swiper-slide", [r.slideBlankClass]) : de("div", [r.slideClass, r.slideBlankClass]);
1234
+ s.slidesEl.append(g);
1222
1235
  }
1223
1236
  };
1224
1237
  if (o) {
@@ -1243,7 +1256,7 @@ function fs(t, e) {
1243
1256
  initial: e
1244
1257
  });
1245
1258
  }
1246
- function hs(t) {
1259
+ function vs(t) {
1247
1260
  let {
1248
1261
  slideRealIndex: e,
1249
1262
  slideTo: s = !0,
@@ -1261,7 +1274,7 @@ function hs(t) {
1261
1274
  slides: d,
1262
1275
  allowSlidePrev: u,
1263
1276
  allowSlideNext: f,
1264
- slidesEl: v,
1277
+ slidesEl: g,
1265
1278
  params: h
1266
1279
  } = c, {
1267
1280
  centeredSlides: b,
@@ -1276,22 +1289,22 @@ function hs(t) {
1276
1289
  const p = h.slidesPerGroupAuto ? w : h.slidesPerGroup;
1277
1290
  let m = p;
1278
1291
  m % p !== 0 && (m += p - m % p), m += h.loopAdditionalSlides, c.loopedSlides = m;
1279
- const g = c.grid && h.grid && h.grid.rows > 1;
1280
- 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`");
1281
- const y = [], T = [], A = g ? Math.ceil(d.length / h.grid.rows) : d.length, I = l && A - M < w && !b;
1292
+ const v = c.grid && h.grid && h.grid.rows > 1;
1293
+ 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") : v && h.grid.fill === "row" && oe("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
1294
+ const y = [], T = [], A = v ? Math.ceil(d.length / h.grid.rows) : d.length, I = l && A - M < w && !b;
1282
1295
  let S = I ? M : c.activeIndex;
1283
1296
  typeof i > "u" ? i = c.getSlideIndex(d.find((C) => C.classList.contains(h.slideActiveClass))) : S = i;
1284
1297
  const E = r === "next" || !r, x = r === "prev" || !r;
1285
1298
  let k = 0, L = 0;
1286
- const O = (g ? d[i].column : i) + (b && typeof n > "u" ? -w / 2 + 0.5 : 0);
1299
+ const O = (v ? d[i].column : i) + (b && typeof n > "u" ? -w / 2 + 0.5 : 0);
1287
1300
  if (O < m) {
1288
1301
  k = Math.max(m - O, p);
1289
1302
  for (let C = 0; C < m - O; C += 1) {
1290
1303
  const z = C - Math.floor(C / A) * A;
1291
- if (g) {
1304
+ if (v) {
1292
1305
  const U = A - z - 1;
1293
- for (let V = d.length - 1; V >= 0; V -= 1)
1294
- d[V].column === U && y.push(V);
1306
+ for (let j = d.length - 1; j >= 0; j -= 1)
1307
+ d[j].column === U && y.push(j);
1295
1308
  } else
1296
1309
  y.push(A - z - 1);
1297
1310
  }
@@ -1299,18 +1312,18 @@ function hs(t) {
1299
1312
  L = Math.max(O - (A - m * 2), p), I && (L = Math.max(L, w - A + M + 1));
1300
1313
  for (let C = 0; C < L; C += 1) {
1301
1314
  const z = C - Math.floor(C / A) * A;
1302
- g ? d.forEach((U, V) => {
1303
- U.column === z && T.push(V);
1315
+ v ? d.forEach((U, j) => {
1316
+ U.column === z && T.push(j);
1304
1317
  }) : T.push(z);
1305
1318
  }
1306
1319
  }
1307
1320
  if (c.__preventObserver__ = !0, requestAnimationFrame(() => {
1308
1321
  c.__preventObserver__ = !1;
1309
1322
  }), 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) => {
1310
- d[C].swiperLoopMoveDOM = !0, v.prepend(d[C]), d[C].swiperLoopMoveDOM = !1;
1323
+ d[C].swiperLoopMoveDOM = !0, g.prepend(d[C]), d[C].swiperLoopMoveDOM = !1;
1311
1324
  }), E && T.forEach((C) => {
1312
- d[C].swiperLoopMoveDOM = !0, v.append(d[C]), d[C].swiperLoopMoveDOM = !1;
1313
- }), c.recalcSlides(), h.slidesPerView === "auto" ? c.updateSlides() : g && (y.length > 0 && x || T.length > 0 && E) && c.slides.forEach((C, z) => {
1325
+ d[C].swiperLoopMoveDOM = !0, g.append(d[C]), d[C].swiperLoopMoveDOM = !1;
1326
+ }), c.recalcSlides(), h.slidesPerView === "auto" ? c.updateSlides() : v && (y.length > 0 && x || T.length > 0 && E) && c.slides.forEach((C, z) => {
1314
1327
  c.grid.updateSlide(z, C, c.slides);
1315
1328
  }), h.watchSlidesProgress && c.updateSlidesOffset(), s) {
1316
1329
  if (y.length > 0 && x) {
@@ -1318,7 +1331,7 @@ function hs(t) {
1318
1331
  const C = c.slidesGrid[S], z = c.slidesGrid[S + k] - C;
1319
1332
  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));
1320
1333
  } else if (n) {
1321
- const C = g ? y.length / h.grid.rows : y.length;
1334
+ const C = v ? y.length / h.grid.rows : y.length;
1322
1335
  c.slideTo(c.activeIndex + C, 0, !1, !0), c.touchEventsData.currentTranslate = c.translate;
1323
1336
  }
1324
1337
  } else if (T.length > 0 && E)
@@ -1326,7 +1339,7 @@ function hs(t) {
1326
1339
  const C = c.slidesGrid[S], z = c.slidesGrid[S - L] - C;
1327
1340
  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));
1328
1341
  } else {
1329
- const C = g ? T.length / h.grid.rows : T.length;
1342
+ const C = v ? T.length / h.grid.rows : T.length;
1330
1343
  c.slideTo(c.activeIndex - C, 0, !1, !0);
1331
1344
  }
1332
1345
  }
@@ -1350,7 +1363,7 @@ function hs(t) {
1350
1363
  }
1351
1364
  c.emit("loopFix");
1352
1365
  }
1353
- function vs() {
1366
+ function ws() {
1354
1367
  const t = this, {
1355
1368
  params: e,
1356
1369
  slidesEl: s
@@ -1367,12 +1380,12 @@ function vs() {
1367
1380
  s.append(n);
1368
1381
  }), t.recalcSlides(), t.slideTo(t.realIndex, 0);
1369
1382
  }
1370
- var gs = {
1371
- loopCreate: fs,
1372
- loopFix: hs,
1373
- loopDestroy: vs
1383
+ var bs = {
1384
+ loopCreate: gs,
1385
+ loopFix: vs,
1386
+ loopDestroy: ws
1374
1387
  };
1375
- function ws(t) {
1388
+ function ys(t) {
1376
1389
  const e = this;
1377
1390
  if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
1378
1391
  const s = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
@@ -1380,17 +1393,17 @@ function ws(t) {
1380
1393
  e.__preventObserver__ = !1;
1381
1394
  });
1382
1395
  }
1383
- function bs() {
1396
+ function Ss() {
1384
1397
  const t = this;
1385
1398
  t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = !0), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
1386
1399
  t.__preventObserver__ = !1;
1387
1400
  }));
1388
1401
  }
1389
- var ys = {
1390
- setGrabCursor: ws,
1391
- unsetGrabCursor: bs
1402
+ var Es = {
1403
+ setGrabCursor: ys,
1404
+ unsetGrabCursor: Ss
1392
1405
  };
1393
- function Ss(t, e) {
1406
+ function xs(t, e) {
1394
1407
  e === void 0 && (e = this);
1395
1408
  function s(r) {
1396
1409
  if (!r || r === K() || r === N()) return null;
@@ -1406,7 +1419,7 @@ function Ne(t, e, s) {
1406
1419
  } = t, i = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
1407
1420
  return i && (s <= l || s >= r.innerWidth - l) ? i === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
1408
1421
  }
1409
- function Es(t) {
1422
+ function Ts(t) {
1410
1423
  const e = this, s = K();
1411
1424
  let r = t;
1412
1425
  r.originalEvent && (r = r.originalEvent);
@@ -1429,19 +1442,19 @@ function Es(t) {
1429
1442
  return;
1430
1443
  !e.animating && i.cssMode && i.loop && e.loopFix();
1431
1444
  let o = r.target;
1432
- if (i.touchEventsTarget === "wrapper" && !Lt(o, e.wrapperEl) || "which" in r && r.which === 3 || "button" in r && r.button > 0 || n.isTouched && n.isMoved) return;
1445
+ if (i.touchEventsTarget === "wrapper" && !Ot(o, e.wrapperEl) || "which" in r && r.which === 3 || "button" in r && r.button > 0 || n.isTouched && n.isMoved) return;
1433
1446
  const c = !!i.noSwipingClass && i.noSwipingClass !== "", d = r.composedPath ? r.composedPath() : r.path;
1434
1447
  c && r.target && r.target.shadowRoot && d && (o = d[0]);
1435
1448
  const u = i.noSwipingSelector ? i.noSwipingSelector : `.${i.noSwipingClass}`, f = !!(r.target && r.target.shadowRoot);
1436
- if (i.noSwiping && (f ? Ss(u, o) : o.closest(u))) {
1449
+ if (i.noSwiping && (f ? xs(u, o) : o.closest(u))) {
1437
1450
  e.allowClick = !0;
1438
1451
  return;
1439
1452
  }
1440
1453
  if (i.swipeHandler && !o.closest(i.swipeHandler))
1441
1454
  return;
1442
1455
  l.currentX = r.pageX, l.currentY = r.pageY;
1443
- const v = l.currentX, h = l.currentY;
1444
- if (!Ne(e, r, v))
1456
+ const g = l.currentX, h = l.currentY;
1457
+ if (!Ne(e, r, g))
1445
1458
  return;
1446
1459
  Object.assign(n, {
1447
1460
  isTouched: !0,
@@ -1449,13 +1462,13 @@ function Es(t) {
1449
1462
  allowTouchCallbacks: !0,
1450
1463
  isScrolling: void 0,
1451
1464
  startMoving: void 0
1452
- }), l.startX = v, l.startY = h, n.touchStartTime = le(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, i.threshold > 0 && (n.allowThresholdMove = !1);
1465
+ }), l.startX = g, l.startY = h, n.touchStartTime = le(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, i.threshold > 0 && (n.allowThresholdMove = !1);
1453
1466
  let b = !0;
1454
1467
  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();
1455
1468
  const M = b && e.allowTouchMove && i.touchStartPreventDefault;
1456
1469
  (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);
1457
1470
  }
1458
- function xs(t) {
1471
+ function Cs(t) {
1459
1472
  const e = K(), s = this, r = s.touchEventsData, {
1460
1473
  params: n,
1461
1474
  touches: i,
@@ -1503,11 +1516,11 @@ function xs(t) {
1503
1516
  return;
1504
1517
  }
1505
1518
  r.allowTouchCallbacks && s.emit("touchMove", o), i.previousX = i.currentX, i.previousY = i.currentY, i.currentX = d, i.currentY = u;
1506
- const f = i.currentX - i.startX, v = i.currentY - i.startY;
1507
- if (s.params.threshold && Math.sqrt(f ** 2 + v ** 2) < s.params.threshold) return;
1519
+ const f = i.currentX - i.startX, g = i.currentY - i.startY;
1520
+ if (s.params.threshold && Math.sqrt(f ** 2 + g ** 2) < s.params.threshold) return;
1508
1521
  if (typeof r.isScrolling > "u") {
1509
1522
  let T;
1510
- 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);
1523
+ s.isHorizontal() && i.currentY === i.startY || s.isVertical() && i.currentX === i.startX ? r.isScrolling = !1 : f * f + g * g >= 25 && (T = Math.atan2(Math.abs(g), Math.abs(f)) * 180 / Math.PI, r.isScrolling = s.isHorizontal() ? T > n.touchAngle : 90 - T > n.touchAngle);
1511
1524
  }
1512
1525
  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) {
1513
1526
  r.isTouched = !1;
@@ -1516,7 +1529,7 @@ function xs(t) {
1516
1529
  if (!r.startMoving)
1517
1530
  return;
1518
1531
  s.allowClick = !1, !n.cssMode && o.cancelable && o.preventDefault(), n.touchMoveStopPropagation && !n.nested && o.stopPropagation();
1519
- let h = s.isHorizontal() ? f : v, b = s.isHorizontal() ? i.currentX - i.previousX : i.currentY - i.previousY;
1532
+ let h = s.isHorizontal() ? f : g, b = s.isHorizontal() ? i.currentX - i.previousX : i.currentY - i.previousY;
1520
1533
  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);
1521
1534
  const M = s.touchesDirection;
1522
1535
  s.swipeDirection = h > 0 ? "prev" : "next", s.touchesDirection = b > 0 ? "prev" : "next";
@@ -1548,16 +1561,16 @@ function xs(t) {
1548
1561
  return;
1549
1562
  }
1550
1563
  s.emit("sliderMove", o), r.isMoved = !0, r.currentTranslate = h + r.startTranslate;
1551
- let g = !0, y = n.resistanceRatio;
1564
+ let v = !0, y = n.resistanceRatio;
1552
1565
  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({
1553
1566
  direction: "prev",
1554
1567
  setTranslate: !0,
1555
1568
  activeSlideIndex: 0
1556
- }), 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({
1569
+ }), r.currentTranslate > s.minTranslate() && (v = !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({
1557
1570
  direction: "next",
1558
1571
  setTranslate: !0,
1559
1572
  activeSlideIndex: s.slides.length - (n.slidesPerView === "auto" ? s.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
1560
- }), 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)
1573
+ }), r.currentTranslate < s.maxTranslate() && (v = !1, n.resistance && (r.currentTranslate = s.maxTranslate() + 1 - (s.maxTranslate() - r.startTranslate - h) ** y))), v && (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)
1561
1574
  if (Math.abs(h) > n.threshold || r.allowThresholdMove) {
1562
1575
  if (!r.allowThresholdMove) {
1563
1576
  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,13 +1582,13 @@ function xs(t) {
1569
1582
  }
1570
1583
  !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));
1571
1584
  }
1572
- function Ts(t) {
1585
+ function Ps(t) {
1573
1586
  const e = this, s = e.touchEventsData;
1574
1587
  let r = t;
1575
1588
  r.originalEvent && (r = r.originalEvent);
1576
1589
  let n;
1577
1590
  if (r.type === "touchend" || r.type === "touchcancel") {
1578
- if (n = [...r.changedTouches].find((g) => g.identifier === s.touchId), !n || n.identifier !== s.touchId) return;
1591
+ if (n = [...r.changedTouches].find((v) => v.identifier === s.touchId), !n || n.identifier !== s.touchId) return;
1579
1592
  } else {
1580
1593
  if (s.touchId !== null || r.pointerId !== s.pointerId) return;
1581
1594
  n = r;
@@ -1598,8 +1611,8 @@ function Ts(t) {
1598
1611
  i.grabCursor && s.isMoved && s.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
1599
1612
  const d = le(), u = d - s.touchStartTime;
1600
1613
  if (e.allowClick) {
1601
- const g = r.path || r.composedPath && r.composedPath();
1602
- e.updateClickedSlide(g && g[0] || r.target, g), e.emit("tap click", r), u < 300 && d - s.lastClickTime < 300 && e.emit("doubleTap doubleClick", r);
1614
+ const v = r.path || r.composedPath && r.composedPath();
1615
+ e.updateClickedSlide(v && v[0] || r.target, v), e.emit("tap click", r), u < 300 && d - s.lastClickTime < 300 && e.emit("doubleTap doubleClick", r);
1603
1616
  }
1604
1617
  if (s.lastClickTime = le(), Ee(() => {
1605
1618
  e.destroyed || (e.allowClick = !0);
@@ -1617,11 +1630,11 @@ function Ts(t) {
1617
1630
  });
1618
1631
  return;
1619
1632
  }
1620
- const v = f >= -e.maxTranslate() && !e.params.loop;
1633
+ const g = f >= -e.maxTranslate() && !e.params.loop;
1621
1634
  let h = 0, b = e.slidesSizesGrid[0];
1622
- for (let g = 0; g < o.length; g += g < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
1623
- const y = g < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
1624
- 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]);
1635
+ for (let v = 0; v < o.length; v += v < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
1636
+ const y = v < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
1637
+ typeof o[v + y] < "u" ? (g || f >= o[v] && f < o[v + y]) && (h = v, b = o[v + y] - o[v]) : (g || f >= o[v]) && (h = v, b = o[o.length - 1] - o[o.length - 2]);
1625
1638
  }
1626
1639
  let M = null, w = null;
1627
1640
  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));
@@ -1658,11 +1671,11 @@ function Be() {
1658
1671
  t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
1659
1672
  }, 500)), t.allowSlidePrev = n, t.allowSlideNext = r, t.params.watchOverflow && i !== t.snapGrid && t.checkOverflow();
1660
1673
  }
1661
- function Cs(t) {
1674
+ function Ms(t) {
1662
1675
  const e = this;
1663
1676
  e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
1664
1677
  }
1665
- function Ps() {
1678
+ function ks() {
1666
1679
  const t = this, {
1667
1680
  wrapperEl: e,
1668
1681
  rtlTranslate: s,
@@ -1674,11 +1687,11 @@ function Ps() {
1674
1687
  const i = t.maxTranslate() - t.minTranslate();
1675
1688
  i === 0 ? n = 0 : n = (t.translate - t.minTranslate()) / i, n !== t.progress && t.updateProgress(s ? -t.translate : t.translate), t.emit("setTranslate", t.translate, !1);
1676
1689
  }
1677
- function Ms(t) {
1690
+ function Is(t) {
1678
1691
  const e = this;
1679
1692
  ne(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
1680
1693
  }
1681
- function ks() {
1694
+ function Ls() {
1682
1695
  const t = this;
1683
1696
  t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
1684
1697
  }
@@ -1720,21 +1733,21 @@ const Ze = (t, e) => {
1720
1733
  capture: !0
1721
1734
  }));
1722
1735
  };
1723
- function Is() {
1736
+ function As() {
1724
1737
  const t = this, {
1725
1738
  params: e
1726
1739
  } = t;
1727
- t.onTouchStart = Es.bind(t), t.onTouchMove = xs.bind(t), t.onTouchEnd = Ts.bind(t), t.onDocumentTouchStart = ks.bind(t), e.cssMode && (t.onScroll = Ps.bind(t)), t.onClick = Cs.bind(t), t.onLoad = Ms.bind(t), Ze(t, "on");
1740
+ t.onTouchStart = Ts.bind(t), t.onTouchMove = Cs.bind(t), t.onTouchEnd = Ps.bind(t), t.onDocumentTouchStart = Ls.bind(t), e.cssMode && (t.onScroll = ks.bind(t)), t.onClick = Ms.bind(t), t.onLoad = Is.bind(t), Ze(t, "on");
1728
1741
  }
1729
- function Ls() {
1742
+ function Os() {
1730
1743
  Ze(this, "off");
1731
1744
  }
1732
- var As = {
1733
- attachEvents: Is,
1734
- detachEvents: Ls
1745
+ var zs = {
1746
+ attachEvents: As,
1747
+ detachEvents: Os
1735
1748
  };
1736
1749
  const De = (t, e) => t.grid && e.grid && e.grid.rows > 1;
1737
- function Os() {
1750
+ function _s() {
1738
1751
  const t = this, {
1739
1752
  realIndex: e,
1740
1753
  initialized: s,
@@ -1744,22 +1757,22 @@ function Os() {
1744
1757
  if (!i || i && Object.keys(i).length === 0) return;
1745
1758
  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);
1746
1759
  if (!c || t.currentBreakpoint === c) return;
1747
- const d = (c in i ? i[c] : void 0) || t.originalParams, u = De(t, r), f = De(t, d), v = t.params.grabCursor, h = d.grabCursor, b = r.enabled;
1748
- 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) => {
1760
+ const d = (c in i ? i[c] : void 0) || t.originalParams, u = De(t, r), f = De(t, d), g = t.params.grabCursor, h = d.grabCursor, b = r.enabled;
1761
+ 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()), g && !h ? t.unsetGrabCursor() : !g && h && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((y) => {
1749
1762
  if (typeof d[y] > "u") return;
1750
1763
  const T = r[y] && r[y].enabled, A = d[y] && d[y].enabled;
1751
1764
  T && !A && t[y].disable(), !T && A && t[y].enable();
1752
1765
  });
1753
1766
  const M = d.direction && d.direction !== r.direction, w = r.loop && (d.slidesPerView !== r.slidesPerView || M), p = r.loop;
1754
1767
  M && s && t.changeDirection(), B(t.params, d);
1755
- const m = t.params.enabled, g = t.params.loop;
1768
+ const m = t.params.enabled, v = t.params.loop;
1756
1769
  Object.assign(t, {
1757
1770
  allowTouchMove: t.params.allowTouchMove,
1758
1771
  allowSlideNext: t.params.allowSlideNext,
1759
1772
  allowSlidePrev: t.params.allowSlidePrev
1760
- }), 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);
1773
+ }), 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 && v ? (t.loopCreate(e), t.updateSlides()) : p && !v && t.loopDestroy()), t.emit("breakpoint", d);
1761
1774
  }
1762
- function zs(t, e, s) {
1775
+ function $s(t, e, s) {
1763
1776
  if (e === void 0 && (e = "window"), !t || e === "container" && !s) return;
1764
1777
  let r = !1;
1765
1778
  const n = N(), i = e === "window" ? n.innerHeight : s.clientHeight, l = Object.keys(t).map((a) => {
@@ -1785,11 +1798,11 @@ function zs(t, e, s) {
1785
1798
  }
1786
1799
  return r || "max";
1787
1800
  }
1788
- var _s = {
1789
- setBreakpoint: Os,
1790
- getBreakpoint: zs
1801
+ var Gs = {
1802
+ setBreakpoint: _s,
1803
+ getBreakpoint: $s
1791
1804
  };
1792
- function $s(t, e) {
1805
+ function Ns(t, e) {
1793
1806
  const s = [];
1794
1807
  return t.forEach((r) => {
1795
1808
  typeof r == "object" ? Object.keys(r).forEach((n) => {
@@ -1797,14 +1810,14 @@ function $s(t, e) {
1797
1810
  }) : typeof r == "string" && s.push(e + r);
1798
1811
  }), s;
1799
1812
  }
1800
- function Gs() {
1813
+ function Bs() {
1801
1814
  const t = this, {
1802
1815
  classNames: e,
1803
1816
  params: s,
1804
1817
  rtl: r,
1805
1818
  el: n,
1806
1819
  device: i
1807
- } = t, l = $s(["initialized", s.direction, {
1820
+ } = t, l = Ns(["initialized", s.direction, {
1808
1821
  "free-mode": t.params.freeMode && s.freeMode.enabled
1809
1822
  }, {
1810
1823
  autoheight: s.autoHeight
@@ -1827,18 +1840,18 @@ function Gs() {
1827
1840
  }], s.containerModifierClass);
1828
1841
  e.push(...l), n.classList.add(...e), t.emitContainerClasses();
1829
1842
  }
1830
- function Ns() {
1843
+ function Ds() {
1831
1844
  const t = this, {
1832
1845
  el: e,
1833
1846
  classNames: s
1834
1847
  } = t;
1835
1848
  !e || typeof e == "string" || (e.classList.remove(...s), t.emitContainerClasses());
1836
1849
  }
1837
- var Bs = {
1838
- addClasses: Gs,
1839
- removeClasses: Ns
1850
+ var Fs = {
1851
+ addClasses: Bs,
1852
+ removeClasses: Ds
1840
1853
  };
1841
- function Ds() {
1854
+ function js() {
1842
1855
  const t = this, {
1843
1856
  isLocked: e,
1844
1857
  params: s
@@ -1852,8 +1865,8 @@ function Ds() {
1852
1865
  t.isLocked = t.snapGrid.length === 1;
1853
1866
  s.allowSlideNext === !0 && (t.allowSlideNext = !t.isLocked), s.allowSlidePrev === !0 && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = !1), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
1854
1867
  }
1855
- var Fs = {
1856
- checkOverflow: Ds
1868
+ var Vs = {
1869
+ checkOverflow: js
1857
1870
  }, Ce = {
1858
1871
  init: !0,
1859
1872
  direction: "horizontal",
@@ -1975,7 +1988,7 @@ var Fs = {
1975
1988
  // Internals
1976
1989
  _emitClasses: !1
1977
1990
  };
1978
- function Vs(t, e) {
1991
+ function Hs(t, e) {
1979
1992
  return function(s) {
1980
1993
  s === void 0 && (s = {});
1981
1994
  const r = Object.keys(s)[0], n = s[r];
@@ -1995,17 +2008,17 @@ function Vs(t, e) {
1995
2008
  };
1996
2009
  }
1997
2010
  const be = {
1998
- eventsEmitter: Bt,
1999
- update: Ut,
2000
- translate: ts,
2001
- transition: ns,
2002
- slide: ms,
2003
- loop: gs,
2004
- grabCursor: ys,
2005
- events: As,
2006
- breakpoints: _s,
2007
- checkOverflow: Fs,
2008
- classes: Bs
2011
+ eventsEmitter: Ft,
2012
+ update: Kt,
2013
+ translate: rs,
2014
+ transition: ls,
2015
+ slide: hs,
2016
+ loop: bs,
2017
+ grabCursor: Es,
2018
+ events: zs,
2019
+ breakpoints: Gs,
2020
+ checkOverflow: Vs,
2021
+ classes: Fs
2009
2022
  }, ye = {};
2010
2023
  let ze = class q {
2011
2024
  constructor() {
@@ -2032,7 +2045,7 @@ let ze = class q {
2032
2045
  d({
2033
2046
  params: s,
2034
2047
  swiper: a,
2035
- extendParams: Vs(s, o),
2048
+ extendParams: Hs(s, o),
2036
2049
  on: a.on.bind(a),
2037
2050
  once: a.once.bind(a),
2038
2051
  off: a.off.bind(a),
@@ -2194,10 +2207,10 @@ let ze = class q {
2194
2207
  if (typeof n.slidesPerView == "number") return n.slidesPerView;
2195
2208
  if (n.centeredSlides) {
2196
2209
  let u = i[c] ? Math.ceil(i[c].swiperSlideSize) : 0, f;
2197
- for (let v = c + 1; v < i.length; v += 1)
2198
- i[v] && !f && (u += Math.ceil(i[v].swiperSlideSize), d += 1, u > o && (f = !0));
2199
- for (let v = c - 1; v >= 0; v -= 1)
2200
- i[v] && !f && (u += i[v].swiperSlideSize, d += 1, u > o && (f = !0));
2210
+ for (let g = c + 1; g < i.length; g += 1)
2211
+ i[g] && !f && (u += Math.ceil(i[g].swiperSlideSize), d += 1, u > o && (f = !0));
2212
+ for (let g = c - 1; g >= 0; g -= 1)
2213
+ i[g] && !f && (u += i[g].swiperSlideSize, d += 1, u > o && (f = !0));
2201
2214
  } else if (e === "current")
2202
2215
  for (let u = c + 1; u < i.length; u += 1)
2203
2216
  (s ? l[u] + a[u] - l[c] < o : l[u] - l[c] < o) && (d += 1);
@@ -2290,7 +2303,7 @@ let ze = class q {
2290
2303
  o.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), o.removeAttribute("style"), o.removeAttribute("data-swiper-slide-index");
2291
2304
  })), r.emit("destroy"), Object.keys(r.eventsListeners).forEach((o) => {
2292
2305
  r.off(o);
2293
- }), e !== !1 && (r.el && typeof r.el != "string" && (r.el.swiper = null), Ct(r)), r.destroyed = !0), null;
2306
+ }), e !== !1 && (r.el && typeof r.el != "string" && (r.el.swiper = null), Mt(r)), r.destroyed = !0), null;
2294
2307
  }
2295
2308
  static extendDefaults(e) {
2296
2309
  B(ye, e);
@@ -2315,7 +2328,7 @@ Object.keys(be).forEach((t) => {
2315
2328
  ze.prototype[e] = be[t][e];
2316
2329
  });
2317
2330
  });
2318
- ze.use([Gt, Nt]);
2331
+ ze.use([Bt, Dt]);
2319
2332
  const et = [
2320
2333
  "eventsPrefix",
2321
2334
  "injectStyles",
@@ -2460,10 +2473,10 @@ function it(t) {
2460
2473
  s.indexOf(r) < 0 && s.push(r);
2461
2474
  }), s.join(" ");
2462
2475
  }
2463
- function js(t) {
2476
+ function Rs(t) {
2464
2477
  return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
2465
2478
  }
2466
- function Hs(t) {
2479
+ function qs(t) {
2467
2480
  let {
2468
2481
  swiper: e,
2469
2482
  slides: s,
@@ -2478,12 +2491,12 @@ function Hs(t) {
2478
2491
  params: d,
2479
2492
  pagination: u,
2480
2493
  navigation: f,
2481
- scrollbar: v,
2494
+ scrollbar: g,
2482
2495
  virtual: h,
2483
2496
  thumbs: b
2484
2497
  } = e;
2485
- let M, w, p, m, g, y, T, A;
2486
- 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);
2498
+ let M, w, p, m, v, y, T, A;
2499
+ 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) && g && !g.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 && (v = !0);
2487
2500
  const I = (S) => {
2488
2501
  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
2502
  };
@@ -2494,9 +2507,9 @@ function Hs(t) {
2494
2507
  const E = r[S];
2495
2508
  (E === !0 || E === !1) && (S === "navigation" || S === "pagination" || S === "scrollbar") ? E === !1 && I(S) : d[S] = r[S];
2496
2509
  }
2497
- }), 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();
2510
+ }), 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), 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), 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();
2498
2511
  }
2499
- function Rs(t, e) {
2512
+ function Ws(t, e) {
2500
2513
  t === void 0 && (t = {}), e === void 0 && (e = !0);
2501
2514
  const s = {
2502
2515
  on: {}
@@ -2514,7 +2527,7 @@ function Rs(t, e) {
2514
2527
  events: r
2515
2528
  };
2516
2529
  }
2517
- function qs(t, e) {
2530
+ function Ys(t, e) {
2518
2531
  let {
2519
2532
  el: s,
2520
2533
  nextEl: r,
@@ -2525,7 +2538,7 @@ function qs(t, e) {
2525
2538
  } = t;
2526
2539
  tt(e) && r && n && (a.params.navigation.nextEl = r, a.originalParams.navigation.nextEl = r, a.params.navigation.prevEl = n, a.originalParams.navigation.prevEl = n), st(e) && i && (a.params.pagination.el = i, a.originalParams.pagination.el = i), rt(e) && l && (a.params.scrollbar.el = l, a.originalParams.scrollbar.el = l), a.init(s);
2527
2540
  }
2528
- function Ws(t, e, s, r, n) {
2541
+ function Xs(t, e, s, r, n) {
2529
2542
  const i = [];
2530
2543
  if (!e) return i;
2531
2544
  const l = (a) => {
@@ -2547,7 +2560,7 @@ function Ws(t, e, s, r, n) {
2547
2560
  } else t[a] !== e[a] && l(a);
2548
2561
  }), i;
2549
2562
  }
2550
- const Ys = (t) => {
2563
+ const Us = (t) => {
2551
2564
  !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());
2552
2565
  };
2553
2566
  function pe() {
@@ -2569,7 +2582,7 @@ function at(t) {
2569
2582
  nt(s) ? e.push(s) : s.props && s.props.children && at(s.props.children).forEach((r) => e.push(r));
2570
2583
  }), e;
2571
2584
  }
2572
- function Xs(t) {
2585
+ function Qs(t) {
2573
2586
  const e = [], s = {
2574
2587
  "container-start": [],
2575
2588
  "container-end": [],
@@ -2591,7 +2604,7 @@ function Xs(t) {
2591
2604
  slots: s
2592
2605
  };
2593
2606
  }
2594
- function Us(t, e, s) {
2607
+ function Ks(t, e, s) {
2595
2608
  if (!s) return null;
2596
2609
  const r = (d) => {
2597
2610
  let u = d;
@@ -2613,9 +2626,9 @@ function Us(t, e, s) {
2613
2626
  }));
2614
2627
  }
2615
2628
  function ee(t, e) {
2616
- return typeof window > "u" ? X(t, e) : wt(t, e);
2629
+ return typeof window > "u" ? X(t, e) : bt(t, e);
2617
2630
  }
2618
- const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), lt = /* @__PURE__ */ Le(function(t, e) {
2631
+ const Fe = /* @__PURE__ */ He(null), Js = /* @__PURE__ */ He(null), lt = /* @__PURE__ */ Ae(function(t, e) {
2619
2632
  let {
2620
2633
  className: s,
2621
2634
  tag: r = "div",
@@ -2624,20 +2637,20 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), lt = /* @__P
2624
2637
  onSwiper: l,
2625
2638
  ...a
2626
2639
  } = t === void 0 ? {} : t, o = !1;
2627
- 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), {
2640
+ const [c, d] = W("swiper"), [u, f] = W(null), [g, h] = W(!1), b = D(!1), M = D(null), w = D(null), p = D(null), m = D(null), v = D(null), y = D(null), T = D(null), A = D(null), {
2628
2641
  params: I,
2629
2642
  passedParams: S,
2630
2643
  rest: E,
2631
2644
  events: x
2632
- } = Rs(a), {
2645
+ } = Ws(a), {
2633
2646
  slides: k,
2634
2647
  slots: L
2635
- } = Xs(i), O = () => {
2636
- h(!v);
2648
+ } = Qs(i), O = () => {
2649
+ h(!g);
2637
2650
  };
2638
2651
  Object.assign(I.on, {
2639
- _containerClasses(G, j) {
2640
- d(j);
2652
+ _containerClasses(G, V) {
2653
+ d(V);
2641
2654
  }
2642
2655
  });
2643
2656
  const C = () => {
@@ -2647,13 +2660,13 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), lt = /* @__P
2647
2660
  };
2648
2661
  if (delete G.wrapperClass, w.current = new ze(G), w.current.virtual && w.current.params.virtual.enabled) {
2649
2662
  w.current.virtual.slides = k;
2650
- const j = {
2663
+ const V = {
2651
2664
  cache: !1,
2652
2665
  slides: k,
2653
2666
  renderExternal: f,
2654
2667
  renderExternalUpdate: !1
2655
2668
  };
2656
- J(w.current.params.virtual, j), J(w.current.originalParams.virtual, j);
2669
+ J(w.current.params.virtual, V), J(w.current.originalParams.virtual, V);
2657
2670
  }
2658
2671
  };
2659
2672
  M.current || C(), w.current && w.current.on("_beforeBreakpoint", O);
@@ -2672,9 +2685,9 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), lt = /* @__P
2672
2685
  !b.current && w.current && (w.current.emitSlidesClasses(), b.current = !0);
2673
2686
  }), ee(() => {
2674
2687
  if (e && (e.current = M.current), !!M.current)
2675
- return w.current.destroyed && C(), qs({
2688
+ return w.current.destroyed && C(), Ys({
2676
2689
  el: M.current,
2677
- nextEl: g.current,
2690
+ nextEl: v.current,
2678
2691
  prevEl: y.current,
2679
2692
  paginationEl: T.current,
2680
2693
  scrollbarEl: A.current,
@@ -2684,13 +2697,13 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), lt = /* @__P
2684
2697
  };
2685
2698
  }, []), ee(() => {
2686
2699
  z();
2687
- const G = Ws(S, p.current, k, m.current, (j) => j.key);
2688
- return p.current = S, m.current = k, G.length && w.current && !w.current.destroyed && Hs({
2700
+ const G = Xs(S, p.current, k, m.current, (V) => V.key);
2701
+ return p.current = S, m.current = k, G.length && w.current && !w.current.destroyed && qs({
2689
2702
  swiper: w.current,
2690
2703
  slides: k,
2691
2704
  passedParams: S,
2692
2705
  changedParams: G,
2693
- nextEl: g.current,
2706
+ nextEl: v.current,
2694
2707
  prevEl: y.current,
2695
2708
  scrollbarEl: A.current,
2696
2709
  paginationEl: T.current
@@ -2698,26 +2711,26 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), lt = /* @__P
2698
2711
  U();
2699
2712
  };
2700
2713
  }), ee(() => {
2701
- Ys(w.current);
2714
+ Us(w.current);
2702
2715
  }, [u]);
2703
- function V() {
2704
- return I.virtual ? Us(w.current, k, u) : k.map((G, j) => /* @__PURE__ */ $.cloneElement(G, {
2716
+ function j() {
2717
+ return I.virtual ? Ks(w.current, k, u) : k.map((G, V) => /* @__PURE__ */ $.cloneElement(G, {
2705
2718
  swiper: w.current,
2706
- swiperSlideIndex: j
2719
+ swiperSlideIndex: V
2707
2720
  }));
2708
2721
  }
2709
2722
  return /* @__PURE__ */ $.createElement(r, pe({
2710
2723
  ref: M,
2711
2724
  className: it(`${c}${s ? ` ${s}` : ""}`)
2712
- }, E), /* @__PURE__ */ $.createElement(Qs.Provider, {
2725
+ }, E), /* @__PURE__ */ $.createElement(Js.Provider, {
2713
2726
  value: w.current
2714
2727
  }, L["container-start"], /* @__PURE__ */ $.createElement(n, {
2715
- className: js(I.wrapperClass)
2716
- }, L["wrapper-start"], V(), L["wrapper-end"]), tt(I) && /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("div", {
2728
+ className: Rs(I.wrapperClass)
2729
+ }, L["wrapper-start"], j(), L["wrapper-end"]), tt(I) && /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("div", {
2717
2730
  ref: y,
2718
2731
  className: "swiper-button-prev"
2719
2732
  }), /* @__PURE__ */ $.createElement("div", {
2720
- ref: g,
2733
+ ref: v,
2721
2734
  className: "swiper-button-next"
2722
2735
  })), rt(I) && /* @__PURE__ */ $.createElement("div", {
2723
2736
  ref: A,
@@ -2728,7 +2741,7 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), lt = /* @__P
2728
2741
  }), L["container-end"]));
2729
2742
  });
2730
2743
  lt.displayName = "Swiper";
2731
- const ae = /* @__PURE__ */ Le(function(t, e) {
2744
+ const ae = /* @__PURE__ */ Ae(function(t, e) {
2732
2745
  let {
2733
2746
  tag: s = "div",
2734
2747
  children: r,
@@ -2740,14 +2753,14 @@ const ae = /* @__PURE__ */ Le(function(t, e) {
2740
2753
  swiperSlideIndex: c,
2741
2754
  ...d
2742
2755
  } = t === void 0 ? {} : t;
2743
- const u = D(null), [f, v] = W("swiper-slide"), [h, b] = W(!1);
2744
- function M(g, y, T) {
2745
- y === u.current && v(T);
2756
+ const u = D(null), [f, g] = W("swiper-slide"), [h, b] = W(!1);
2757
+ function M(v, y, T) {
2758
+ y === u.current && g(T);
2746
2759
  }
2747
2760
  ee(() => {
2748
2761
  if (typeof c < "u" && (u.current.swiperSlideIndex = c), e && (e.current = u.current), !(!u.current || !i)) {
2749
2762
  if (i.destroyed) {
2750
- f !== "swiper-slide" && v("swiper-slide");
2763
+ f !== "swiper-slide" && g("swiper-slide");
2751
2764
  return;
2752
2765
  }
2753
2766
  return i.on("_slideClass", M), () => {
@@ -2755,7 +2768,7 @@ const ae = /* @__PURE__ */ Le(function(t, e) {
2755
2768
  };
2756
2769
  }
2757
2770
  }), ee(() => {
2758
- i && u.current && !i.destroyed && v(i.getSlideClasses(u.current));
2771
+ i && u.current && !i.destroyed && g(i.getSlideClasses(u.current));
2759
2772
  }, [i]);
2760
2773
  const w = {
2761
2774
  isActive: f.indexOf("swiper-slide-active") >= 0,
@@ -2784,7 +2797,7 @@ const ae = /* @__PURE__ */ Le(function(t, e) {
2784
2797
  })));
2785
2798
  });
2786
2799
  ae.displayName = "SwiperSlide";
2787
- const Ks = () => lt, Js = /* @__PURE__ */ _(Ks())({
2800
+ const Zs = () => lt, er = /* @__PURE__ */ _(Zs())({
2788
2801
  name: "Carousel",
2789
2802
  class: "c1f9jjsn",
2790
2803
  propsAsIs: !0
@@ -2792,14 +2805,14 @@ const Ks = () => lt, Js = /* @__PURE__ */ _(Ks())({
2792
2805
  name: "ScreenWrap",
2793
2806
  class: "s25r51y",
2794
2807
  propsAsIs: !1
2795
- }), Zs = () => te, er = /* @__PURE__ */ _(Zs())({
2808
+ }), tr = () => te, sr = /* @__PURE__ */ _(tr())({
2796
2809
  name: "SponsorIconI",
2797
2810
  class: "s1lvrmx8",
2798
2811
  propsAsIs: !0
2799
2812
  }), ot = ({
2800
2813
  style: t,
2801
2814
  className: e
2802
- }) => /* @__PURE__ */ P(er, {
2815
+ }) => /* @__PURE__ */ P(sr, {
2803
2816
  className: e,
2804
2817
  style: t,
2805
2818
  name: "icon-masters-logo"
@@ -2819,47 +2832,47 @@ const Ks = () => lt, Js = /* @__PURE__ */ _(Ks())({
2819
2832
  name: "ScreenButton",
2820
2833
  class: "sqtjig9",
2821
2834
  propsAsIs: !1
2822
- }), tr = /* @__PURE__ */ _("div")({
2835
+ }), rr = /* @__PURE__ */ _("div")({
2823
2836
  name: "EmergencyContainer",
2824
2837
  class: "e1f9mu2m",
2825
2838
  propsAsIs: !1
2826
- }), sr = /* @__PURE__ */ _("div")({
2839
+ }), ir = /* @__PURE__ */ _("div")({
2827
2840
  name: "EmergencyScreenTitle",
2828
2841
  class: "e1n10yo1",
2829
2842
  propsAsIs: !1
2830
- }), rr = /* @__PURE__ */ _("div")({
2843
+ }), nr = /* @__PURE__ */ _("div")({
2831
2844
  name: "EmergencyScreenDescription",
2832
2845
  class: "e1xecypc",
2833
2846
  propsAsIs: !1
2834
- }), ir = () => ue, nr = /* @__PURE__ */ _(ir())({
2847
+ }), ar = () => ue, lr = /* @__PURE__ */ _(ar())({
2835
2848
  name: "EmergencyScreenButton",
2836
2849
  class: "e1k6zoyu",
2837
2850
  propsAsIs: !0
2838
2851
  }), ke = ({ actionFn: t, description: e, className: s, onEvent: r }) => (X(() => {
2839
2852
  r({ type: "slBetPackReady" });
2840
- }, [r]), /* @__PURE__ */ F(tr, { className: s, children: [
2841
- /* @__PURE__ */ P(sr, { children: "Something went wrong." }),
2842
- /* @__PURE__ */ P(rr, { children: e }),
2843
- /* @__PURE__ */ P(nr, { onClick: t, children: "Try again" })
2844
- ] })), ar = /* @__PURE__ */ _("div")({
2853
+ }, [r]), /* @__PURE__ */ F(rr, { className: s, children: [
2854
+ /* @__PURE__ */ P(ir, { children: "Something went wrong." }),
2855
+ /* @__PURE__ */ P(nr, { children: e }),
2856
+ /* @__PURE__ */ P(lr, { onClick: t, children: "Try again" })
2857
+ ] })), or = /* @__PURE__ */ _("div")({
2845
2858
  name: "ScreenContainerBox",
2846
2859
  class: "s28ooi9",
2847
2860
  propsAsIs: !1
2848
- }), me = ({ children: t }) => /* @__PURE__ */ P(ar, { className: "ScreenContainer", children: /* @__PURE__ */ P("div", { children: t }) }), lr = /* @__PURE__ */ _("img")({
2861
+ }), me = ({ children: t }) => /* @__PURE__ */ P(or, { className: "ScreenContainer", children: /* @__PURE__ */ P("div", { children: t }) }), dr = /* @__PURE__ */ _("img")({
2849
2862
  name: "EndScreenMedia",
2850
2863
  class: "e8s3kc9",
2851
2864
  propsAsIs: !1
2852
- }), or = () => ot, dr = /* @__PURE__ */ _(or())({
2865
+ }), cr = () => ot, pr = /* @__PURE__ */ _(cr())({
2853
2866
  name: "EndScreenSponsorIcon",
2854
2867
  class: "e1uswib2",
2855
2868
  propsAsIs: !0
2856
- }), cr = ({ onEvent: t, height: e }) => {
2869
+ }), ur = ({ onEvent: t, height: e }) => {
2857
2870
  const [s, r] = W(
2858
2871
  0
2859
2872
  /* FIRST */
2860
2873
  );
2861
2874
  return s === 0 ? /* @__PURE__ */ P(me, { height: e, children: /* @__PURE__ */ F(Pe, { children: [
2862
- /* @__PURE__ */ P(dr, {}),
2875
+ /* @__PURE__ */ P(pr, {}),
2863
2876
  /* @__PURE__ */ F(dt, { children: [
2864
2877
  /* @__PURE__ */ P(ct, { children: "Great picks!" }),
2865
2878
  /* @__PURE__ */ P(Me, { children: "Stay in the Enhanced Stream for live results, predictions, trivia, polls, and match insights." })
@@ -2879,40 +2892,40 @@ const Ks = () => lt, Js = /* @__PURE__ */ _(Ks())({
2879
2892
  }
2880
2893
  )
2881
2894
  ] }) }, "end") : /* @__PURE__ */ P(me, { height: e, children: /* @__PURE__ */ F(Pe, { children: [
2882
- /* @__PURE__ */ P(lr, { src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png" }),
2895
+ /* @__PURE__ */ P(dr, { src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png" }),
2883
2896
  /* @__PURE__ */ P(Me, { children: "Look for more live match insights, predictions and more." }),
2884
2897
  /* @__PURE__ */ P(ue, { "data-a": "intr", onClick: () => t({ type: "slOpenGameCenter" }), children: "Open Game Center" })
2885
2898
  ] }) }, "end");
2886
- }, pr = /* @__PURE__ */ _("div")({
2899
+ }, mr = /* @__PURE__ */ _("div")({
2887
2900
  name: "Container",
2888
2901
  class: "cv31tt7",
2889
2902
  propsAsIs: !1
2890
2903
  }), Ie = ({
2891
2904
  className: t
2892
- }) => /* @__PURE__ */ P(pr, {
2905
+ }) => /* @__PURE__ */ P(mr, {
2893
2906
  className: t,
2894
2907
  children: /* @__PURE__ */ P(ft, {})
2895
- }), ur = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(ht, { close: () => {
2896
- }, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, mr = /* @__PURE__ */ _("span")({
2908
+ }), fr = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(ht, { close: () => {
2909
+ }, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, hr = /* @__PURE__ */ _("span")({
2897
2910
  name: "NextButton",
2898
2911
  class: "n991vvm",
2899
2912
  propsAsIs: !1
2900
- }), fr = () => te, hr = /* @__PURE__ */ _(fr())({
2913
+ }), gr = () => te, vr = /* @__PURE__ */ _(gr())({
2901
2914
  name: "IconArrowRight",
2902
2915
  class: "inbj36g",
2903
2916
  propsAsIs: !0
2904
- }), vr = /* @__PURE__ */ _("div")({
2917
+ }), wr = /* @__PURE__ */ _("div")({
2905
2918
  name: "StartScreenSponsor",
2906
2919
  class: "szrvgt",
2907
2920
  propsAsIs: !1
2908
- }), gr = /* @__PURE__ */ _("div")({
2921
+ }), br = /* @__PURE__ */ _("div")({
2909
2922
  name: "StartScreenNote",
2910
2923
  class: "swqs2ju",
2911
2924
  propsAsIs: !1
2912
- }), wr = ({ countQuestionsAvailable: t, sliderRef: e }) => /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Pe, { children: [
2925
+ }), yr = ({ countQuestionsAvailable: t, sliderRef: e }) => /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Pe, { children: [
2913
2926
  /* @__PURE__ */ P(ot, {}),
2914
2927
  /* @__PURE__ */ F(dt, { children: [
2915
- /* @__PURE__ */ P(vr, { children: "FEATURED GROUPS+" }),
2928
+ /* @__PURE__ */ P(wr, { children: "FEATURED GROUPS+" }),
2916
2929
  /* @__PURE__ */ P(ct, { children: "The First Five" })
2917
2930
  ] }),
2918
2931
  /* @__PURE__ */ P(Me, { children: "Tee off with these five initial predictions for today’s play." }),
@@ -2926,25 +2939,12 @@ const Ks = () => lt, Js = /* @__PURE__ */ _(Ks())({
2926
2939
  },
2927
2940
  children: [
2928
2941
  t ? `${t} questions available` : "See all questions",
2929
- /* @__PURE__ */ P(mr, { children: /* @__PURE__ */ P(hr, { name: "iconArrowRight" }) })
2942
+ /* @__PURE__ */ P(hr, { children: /* @__PURE__ */ P(vr, { name: "iconArrowRight" }) })
2930
2943
  ]
2931
2944
  }
2932
2945
  ),
2933
- /* @__PURE__ */ P(gr, { children: "Note: Some questions may have been resolved as a result of today’s play." })
2946
+ /* @__PURE__ */ P(br, { children: "Note: Some questions may have been resolved as a result of today’s play." })
2934
2947
  ] }) }, "start");
2935
- function br(t, e, s) {
2936
- let r = new Set(e).add(void 0);
2937
- return t.listen((n, i, l) => {
2938
- r.has(l) && s(n, i, l);
2939
- });
2940
- }
2941
- function yr(t, e = {}) {
2942
- let s = Ae(
2943
- (n) => e.keys ? br(t, e.keys, n) : t.listen(n),
2944
- [e.keys, t]
2945
- ), r = t.get.bind(t);
2946
- return bt(s, r, r);
2947
- }
2948
2948
  function Sr(t, e, s, r) {
2949
2949
  return t.params.createElements && Object.keys(r).forEach((n) => {
2950
2950
  if (!s[n] && s.auto === !0) {
@@ -3005,12 +3005,12 @@ function Er(t) {
3005
3005
  }
3006
3006
  function c(p, m) {
3007
3007
  const {
3008
- bulletActiveClass: g
3008
+ bulletActiveClass: v
3009
3009
  } = e.params.pagination;
3010
- 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}`)));
3010
+ p && (p = p[`${m === "prev" ? "previous" : "next"}ElementSibling`], p && (p.classList.add(`${v}-${m}`), p = p[`${m === "prev" ? "previous" : "next"}ElementSibling`], p && p.classList.add(`${v}-${m}-${m}`)));
3011
3011
  }
3012
- function d(p, m, g) {
3013
- if (p = p % g, m = m % g, m === p + 1)
3012
+ function d(p, m, v) {
3013
+ if (p = p % v, m = m % v, m === p + 1)
3014
3014
  return "next";
3015
3015
  if (m === p - 1)
3016
3016
  return "previous";
@@ -3020,30 +3020,30 @@ function Er(t) {
3020
3020
  if (!m)
3021
3021
  return;
3022
3022
  p.preventDefault();
3023
- const g = ce(m) * e.params.slidesPerGroup;
3023
+ const v = ce(m) * e.params.slidesPerGroup;
3024
3024
  if (e.params.loop) {
3025
- if (e.realIndex === g) return;
3026
- const y = d(e.realIndex, g, e.slides.length);
3027
- y === "next" ? e.slideNext() : y === "previous" ? e.slidePrev() : e.slideToLoop(g);
3025
+ if (e.realIndex === v) return;
3026
+ const y = d(e.realIndex, v, e.slides.length);
3027
+ y === "next" ? e.slideNext() : y === "previous" ? e.slidePrev() : e.slideToLoop(v);
3028
3028
  } else
3029
- e.slideTo(g);
3029
+ e.slideTo(v);
3030
3030
  }
3031
3031
  function f() {
3032
3032
  const p = e.rtl, m = e.params.pagination;
3033
3033
  if (o()) return;
3034
- let g = e.pagination.el;
3035
- g = R(g);
3034
+ let v = e.pagination.el;
3035
+ v = R(v);
3036
3036
  let y, T;
3037
3037
  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;
3038
3038
  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) {
3039
3039
  const S = e.pagination.bullets;
3040
3040
  let E, x, k;
3041
- if (m.dynamicBullets && (l = xe(S[0], e.isHorizontal() ? "width" : "height"), g.forEach((L) => {
3041
+ if (m.dynamicBullets && (l = xe(S[0], e.isHorizontal() ? "width" : "height"), v.forEach((L) => {
3042
3042
  L.style[e.isHorizontal() ? "width" : "height"] = `${l * (m.dynamicMainBullets + 4)}px`;
3043
3043
  }), 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) => {
3044
3044
  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();
3045
3045
  L.classList.remove(...O);
3046
- }), g.length > 1)
3046
+ }), v.length > 1)
3047
3047
  S.forEach((L) => {
3048
3048
  const O = ce(L);
3049
3049
  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"));
@@ -3066,7 +3066,7 @@ function Er(t) {
3066
3066
  });
3067
3067
  }
3068
3068
  }
3069
- g.forEach((S, E) => {
3069
+ v.forEach((S, E) => {
3070
3070
  if (m.type === "fraction" && (S.querySelectorAll(Z(m.currentClass)).forEach((x) => {
3071
3071
  x.textContent = m.formatFractionCurrent(y + 1);
3072
3072
  }), S.querySelectorAll(Z(m.totalClass)).forEach((x) => {
@@ -3083,12 +3083,12 @@ function Er(t) {
3083
3083
  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);
3084
3084
  });
3085
3085
  }
3086
- function v() {
3086
+ function g() {
3087
3087
  const p = e.params.pagination;
3088
3088
  if (o()) return;
3089
3089
  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;
3090
- let g = e.pagination.el;
3091
- g = R(g);
3090
+ let v = e.pagination.el;
3091
+ v = R(v);
3092
3092
  let y = "";
3093
3093
  if (p.type === "bullets") {
3094
3094
  let T = e.params.loop ? Math.ceil(m / e.params.slidesPerGroup) : e.snapGrid.length;
@@ -3096,9 +3096,9 @@ function Er(t) {
3096
3096
  for (let A = 0; A < T; A += 1)
3097
3097
  p.renderBullet ? y += p.renderBullet.call(e, A, p.bulletClass) : y += `<${p.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${p.bulletClass}"></${p.bulletElement}>`;
3098
3098
  }
3099
- 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) => {
3099
+ 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 = [], v.forEach((T) => {
3100
3100
  p.type !== "custom" && (T.innerHTML = y || ""), p.type === "bullets" && e.pagination.bullets.push(...T.querySelectorAll(Z(p.bulletClass)));
3101
- }), p.type !== "custom" && n("paginationRender", g[0]);
3101
+ }), p.type !== "custom" && n("paginationRender", v[0]);
3102
3102
  }
3103
3103
  function h() {
3104
3104
  e.params.pagination = Sr(e, e.originalParams.pagination, e.params.pagination, {
@@ -3107,19 +3107,19 @@ function Er(t) {
3107
3107
  const p = e.params.pagination;
3108
3108
  if (!p.el) return;
3109
3109
  let m;
3110
- 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, {
3110
+ 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((v) => Xe(v, ".swiper")[0] === e.el))), Array.isArray(m) && m.length === 1 && (m = m[0]), Object.assign(e.pagination, {
3111
3111
  el: m
3112
- }), m = R(m), m.forEach((g) => {
3113
- 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);
3112
+ }), m = R(m), m.forEach((v) => {
3113
+ p.type === "bullets" && p.clickable && v.classList.add(...(p.clickableClass || "").split(" ")), v.classList.add(p.modifierClass + p.type), v.classList.add(e.isHorizontal() ? p.horizontalClass : p.verticalClass), p.type === "bullets" && p.dynamicBullets && (v.classList.add(`${p.modifierClass}${p.type}-dynamic`), a = 0, p.dynamicMainBullets < 1 && (p.dynamicMainBullets = 1)), p.type === "progressbar" && p.progressbarOpposite && v.classList.add(p.progressbarOppositeClass), p.clickable && v.addEventListener("click", u), e.enabled || v.classList.add(p.lockClass);
3114
3114
  }));
3115
3115
  }
3116
3116
  function b() {
3117
3117
  const p = e.params.pagination;
3118
3118
  if (o()) return;
3119
3119
  let m = e.pagination.el;
3120
- m && (m = R(m), m.forEach((g) => {
3121
- 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));
3122
- })), e.pagination.bullets && e.pagination.bullets.forEach((g) => g.classList.remove(...p.bulletActiveClass.split(" ")));
3120
+ m && (m = R(m), m.forEach((v) => {
3121
+ v.classList.remove(p.hiddenClass), v.classList.remove(p.modifierClass + p.type), v.classList.remove(e.isHorizontal() ? p.horizontalClass : p.verticalClass), p.clickable && (v.classList.remove(...(p.clickableClass || "").split(" ")), v.removeEventListener("click", u));
3122
+ })), e.pagination.bullets && e.pagination.bullets.forEach((v) => v.classList.remove(...p.bulletActiveClass.split(" ")));
3123
3123
  }
3124
3124
  r("changeDirection", () => {
3125
3125
  if (!e.pagination || !e.pagination.el) return;
@@ -3127,17 +3127,17 @@ function Er(t) {
3127
3127
  let {
3128
3128
  el: m
3129
3129
  } = e.pagination;
3130
- m = R(m), m.forEach((g) => {
3131
- g.classList.remove(p.horizontalClass, p.verticalClass), g.classList.add(e.isHorizontal() ? p.horizontalClass : p.verticalClass);
3130
+ m = R(m), m.forEach((v) => {
3131
+ v.classList.remove(p.horizontalClass, p.verticalClass), v.classList.add(e.isHorizontal() ? p.horizontalClass : p.verticalClass);
3132
3132
  });
3133
3133
  }), r("init", () => {
3134
- e.params.pagination.enabled === !1 ? w() : (h(), v(), f());
3134
+ e.params.pagination.enabled === !1 ? w() : (h(), g(), f());
3135
3135
  }), r("activeIndexChange", () => {
3136
3136
  typeof e.snapIndex > "u" && f();
3137
3137
  }), r("snapIndexChange", () => {
3138
3138
  f();
3139
3139
  }), r("snapGridLengthChange", () => {
3140
- v(), f();
3140
+ g(), f();
3141
3141
  }), r("destroy", () => {
3142
3142
  b();
3143
3143
  }), r("enable disable", () => {
@@ -3148,9 +3148,9 @@ function Er(t) {
3148
3148
  }), r("lock unlock", () => {
3149
3149
  f();
3150
3150
  }), r("click", (p, m) => {
3151
- const g = m.target, y = R(e.pagination.el);
3152
- if (e.params.pagination.el && e.params.pagination.hideOnClick && y && y.length > 0 && !g.classList.contains(e.params.pagination.bulletClass)) {
3153
- if (e.navigation && (e.navigation.nextEl && g === e.navigation.nextEl || e.navigation.prevEl && g === e.navigation.prevEl)) return;
3151
+ const v = m.target, y = R(e.pagination.el);
3152
+ if (e.params.pagination.el && e.params.pagination.hideOnClick && y && y.length > 0 && !v.classList.contains(e.params.pagination.bulletClass)) {
3153
+ if (e.navigation && (e.navigation.nextEl && v === e.navigation.nextEl || e.navigation.prevEl && v === e.navigation.prevEl)) return;
3154
3154
  const T = y[0].classList.contains(e.params.pagination.hiddenClass);
3155
3155
  n(T === !0 ? "paginationShow" : "paginationHide"), y.forEach((A) => A.classList.toggle(e.params.pagination.hiddenClass));
3156
3156
  }
@@ -3160,7 +3160,7 @@ function Er(t) {
3160
3160
  let {
3161
3161
  el: p
3162
3162
  } = e.pagination;
3163
- p && (p = R(p), p.forEach((m) => m.classList.remove(e.params.pagination.paginationDisabledClass))), h(), v(), f();
3163
+ p && (p = R(p), p.forEach((m) => m.classList.remove(e.params.pagination.paginationDisabledClass))), h(), g(), f();
3164
3164
  }, w = () => {
3165
3165
  e.el.classList.add(e.params.pagination.paginationDisabledClass);
3166
3166
  let {
@@ -3171,7 +3171,7 @@ function Er(t) {
3171
3171
  Object.assign(e.pagination, {
3172
3172
  enable: M,
3173
3173
  disable: w,
3174
- render: v,
3174
+ render: g,
3175
3175
  update: f,
3176
3176
  init: h,
3177
3177
  destroy: b
@@ -3179,18 +3179,18 @@ function Er(t) {
3179
3179
  }
3180
3180
  const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n }) => {
3181
3181
  const i = D(), l = D(), { listOfQuestions: a, countQuestionsAvailable: o } = Re(() => {
3182
- const v = t ? Object.values(t) : [];
3182
+ const g = t ? Object.values(t) : [];
3183
3183
  return {
3184
- listOfQuestions: v,
3185
- countQuestionsAvailable: v.filter(({ marketClosed: h }) => !h).length
3184
+ listOfQuestions: g,
3185
+ countQuestionsAvailable: g.filter(({ marketClosed: h }) => !h).length
3186
3186
  };
3187
- }, [t]), c = Ae(
3188
- async (v, h) => {
3187
+ }, [t]), c = Le(
3188
+ async (g, h) => {
3189
3189
  try {
3190
- await e.betPackVote(v, h), s({
3190
+ await e.betPackVote(g, h), s({
3191
3191
  type: "slVoted",
3192
3192
  payload: {
3193
- questionId: v,
3193
+ questionId: g,
3194
3194
  answerId: h
3195
3195
  }
3196
3196
  });
@@ -3207,12 +3207,12 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3207
3207
  type: "slBetPackReady",
3208
3208
  payload: {
3209
3209
  next: () => {
3210
- var v;
3211
- return (v = l.current) == null ? void 0 : v.slideNext();
3210
+ var g;
3211
+ return (g = l.current) == null ? void 0 : g.slideNext();
3212
3212
  },
3213
3213
  prev: () => {
3214
- var v;
3215
- return (v = l.current) == null ? void 0 : v.slidePrev();
3214
+ var g;
3215
+ return (g = l.current) == null ? void 0 : g.slidePrev();
3216
3216
  },
3217
3217
  current: 0,
3218
3218
  canNext: !0,
@@ -3221,9 +3221,9 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3221
3221
  }), () => {
3222
3222
  i.current && clearTimeout(i.current);
3223
3223
  }), [s]);
3224
- const d = (v) => {
3224
+ const d = (g) => {
3225
3225
  var h;
3226
- const b = v.realIndex;
3226
+ const b = g.realIndex;
3227
3227
  if (s({
3228
3228
  type: "slBetPackChangeCard",
3229
3229
  payload: {
@@ -3250,7 +3250,7 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3250
3250
  e.closeQuestion();
3251
3251
  }, [u, f] = W(1.1);
3252
3252
  return X(() => {
3253
- const v = vt(() => {
3253
+ const g = gt(() => {
3254
3254
  var h;
3255
3255
  const b = (h = l.current) == null ? void 0 : h.size;
3256
3256
  if (!b)
@@ -3258,11 +3258,11 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3258
3258
  const M = 1 + 30 / (b / 100) / 100 * 2;
3259
3259
  f(Math.ceil(M * 1e3) / 1e3);
3260
3260
  }, 200);
3261
- return window.addEventListener("resize", v), v(), () => {
3262
- window.removeEventListener("resize", v);
3261
+ return window.addEventListener("resize", g), g(), () => {
3262
+ window.removeEventListener("resize", g);
3263
3263
  };
3264
3264
  }, []), /* @__PURE__ */ F(
3265
- Js,
3265
+ er,
3266
3266
  {
3267
3267
  slidesPerView: u,
3268
3268
  spaceBetween: 12,
@@ -3277,18 +3277,18 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3277
3277
  onBeforeSlideChangeStart: () => {
3278
3278
  i.current && clearTimeout(i.current);
3279
3279
  },
3280
- onSwiper: (v) => {
3281
- l.current = v;
3280
+ onSwiper: (g) => {
3281
+ l.current = g;
3282
3282
  },
3283
3283
  children: [
3284
- /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(wr, { sliderRef: l, countQuestionsAvailable: o }) }),
3285
- a.map((v) => v ? /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(me, { children: /* @__PURE__ */ P(ur, { question: v, vote: c }) }, v.id) }) : null),
3286
- /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(cr, { onEvent: s }) })
3284
+ /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(yr, { sliderRef: l, countQuestionsAvailable: o }) }),
3285
+ a.map((g) => g ? /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(me, { children: /* @__PURE__ */ P(fr, { question: g, vote: c }) }, g.id) }) : null),
3286
+ /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(ur, { onEvent: s }) })
3287
3287
  ]
3288
3288
  }
3289
3289
  );
3290
3290
  }, Tr = ({ gamification: t, autoplay: e, overlay: s, swipeable: r, onEvent: n }) => {
3291
- const i = yr(t.betPack.getStore()), { error: l, loading: a, data: o } = i;
3291
+ const i = Tt(t.betPack.getStore()), { error: l, loading: a, data: o } = i;
3292
3292
  return a || !Object.hasOwn(i, "data") ? /* @__PURE__ */ P(Ie, {}) : l ? /* @__PURE__ */ P(
3293
3293
  ke,
3294
3294
  {
@@ -3321,7 +3321,7 @@ handle this request.`
3321
3321
  name: "BetPackContainer",
3322
3322
  class: "b18vssq2",
3323
3323
  propsAsIs: !1
3324
- }), ie = "slBetPackCb", Pr = gt("betPack-ui"), Mr = (t, e = {}) => {
3324
+ }), ie = "slBetPackCb", Pr = vt("betPack-ui"), Mr = (t, e = {}) => {
3325
3325
  var s, r;
3326
3326
  const { questionId: n, answerId: i } = e, l = { questionId: n, answerId: i };
3327
3327
  Pr.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" }));
@@ -3335,7 +3335,7 @@ handle this request.`
3335
3335
  name: "CloseButton",
3336
3336
  class: "coc9f01",
3337
3337
  propsAsIs: !1
3338
- }), Ve = "b590k5k", Ar = () => te, pt = /* @__PURE__ */ _(Ar())({
3338
+ }), je = "b590k5k", Ar = () => te, pt = /* @__PURE__ */ _(Ar())({
3339
3339
  name: "IconArrowPrev",
3340
3340
  class: "i1tkem14",
3341
3341
  propsAsIs: !0
@@ -3359,19 +3359,19 @@ handle this request.`
3359
3359
  name: "Footer",
3360
3360
  class: "f1vakhu9",
3361
3361
  propsAsIs: !1
3362
- }), je = /* @__PURE__ */ _("button")({
3362
+ }), Ve = /* @__PURE__ */ _("button")({
3363
3363
  name: "SlideSwitchButton",
3364
3364
  class: "spp13y7",
3365
3365
  propsAsIs: !1
3366
- }), Rr = Le(({ sdk: t, onEvent: e, close: s }, r) => {
3367
- const [n, i] = W(), [l, a] = W(), o = Ae(
3366
+ }), Rr = Ae(({ sdk: t, onEvent: e, close: s }, r) => {
3367
+ const [n, i] = W(), [l, a] = W(), o = Le(
3368
3368
  (c) => {
3369
3369
  if (c.type === "slBetPackReady") {
3370
- const { next: d, prev: u, current: f, canNext: v, canPrev: h } = c.payload || {};
3370
+ const { next: d, prev: u, current: f, canNext: g, canPrev: h } = c.payload || {};
3371
3371
  i({ next: d, prev: u }), a((b) => ({
3372
3372
  current: b != null && b.current ? b == null ? void 0 : b.current : f,
3373
3373
  canPrev: b != null && b.current ? b == null ? void 0 : b.canPrev : h,
3374
- canNext: v
3374
+ canNext: g
3375
3375
  }));
3376
3376
  }
3377
3377
  if (c.type === "slBetPackChangeCard") {
@@ -3396,8 +3396,8 @@ handle this request.`
3396
3396
  ] }),
3397
3397
  /* @__PURE__ */ P(Gr, { children: /* @__PURE__ */ P(Dr, { sdk: t, onEvent: o, overlay: !0 }) }),
3398
3398
  /* @__PURE__ */ F(Nr, { children: [
3399
- /* @__PURE__ */ P(je, { "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: Se((l == null ? void 0 : l.canPrev) && Ve) }) }),
3400
- /* @__PURE__ */ P(je, { "data-a": "intr", onClick: n == null ? void 0 : n.next, disabled: !(l != null && l.canNext), children: /* @__PURE__ */ P(zr, { "data-a": "intr", name: "iconArrowPrev", className: Se((l == null ? void 0 : l.canNext) && Ve) }) })
3399
+ /* @__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: Se((l == null ? void 0 : l.canPrev) && je) }) }),
3400
+ /* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n == null ? void 0 : n.next, disabled: !(l != null && l.canNext), children: /* @__PURE__ */ P(zr, { "data-a": "intr", name: "iconArrowPrev", className: Se((l == null ? void 0 : l.canNext) && je) }) })
3401
3401
  ] })
3402
3402
  ] });
3403
3403
  }), Br = ({ user: t, gamification: e, overlay: s, swipeable: r, onEvent: n }) => t.data ? e ? /* @__PURE__ */ P(Tr, { overlay: s, gamification: e, onEvent: n, swipeable: r }) : /* @__PURE__ */ P(Ie, {}) : t.error && !t.loading ? /* @__PURE__ */ P(