well-waterfall 1.2.10 → 1.2.11
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.
- package/dist/index.js +1179 -1160
- package/dist/index.js.map +1 -1
- package/dist/util.d.ts +2 -1
- package/package.json +2 -2
- package/src/index.ts +3 -3
- package/src/modules/controller.ts +2 -2
- package/src/modules/manipulation.ts +25 -4
- package/src/modules/thumbs.ts +2 -2
- package/src/util.ts +9 -5
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
function de(e = "") {
|
|
3
3
|
return e.trim().split(" ").filter((t) => !!t.trim());
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function Mt(e) {
|
|
6
6
|
Object.keys(e).forEach((t) => {
|
|
7
7
|
try {
|
|
8
8
|
e[t] = null;
|
|
@@ -20,11 +20,11 @@ function Se(e, t = 0) {
|
|
|
20
20
|
function ae() {
|
|
21
21
|
return Date.now();
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function It(e) {
|
|
24
24
|
return window.getComputedStyle(e, null);
|
|
25
25
|
}
|
|
26
26
|
function Ke(e, t = "x") {
|
|
27
|
-
const s =
|
|
27
|
+
const s = It(e), a = s.transform || s.webkitTransform;
|
|
28
28
|
if (!a || a === "none")
|
|
29
29
|
return 0;
|
|
30
30
|
const n = new DOMMatrixReadOnly(a);
|
|
@@ -33,22 +33,22 @@ function Ke(e, t = "x") {
|
|
|
33
33
|
function _e(e) {
|
|
34
34
|
return typeof e == "object" && e !== null && e.constructor === Object && Object.prototype.toString.call(e).slice(8, -1) === "Object";
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Rt(e) {
|
|
37
37
|
return typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : !!e && typeof e == "object" && (e.nodeType === 1 || e.nodeType === 11);
|
|
38
38
|
}
|
|
39
39
|
function se(e, ...t) {
|
|
40
40
|
const s = Object(e);
|
|
41
41
|
for (let a = 0; a < t.length; a += 1) {
|
|
42
42
|
const n = t[a];
|
|
43
|
-
if (n == null ||
|
|
43
|
+
if (n == null || Rt(n))
|
|
44
44
|
continue;
|
|
45
|
-
const i = n, u = Object.keys(Object(i)).filter((
|
|
46
|
-
for (const
|
|
47
|
-
const r = Object.getOwnPropertyDescriptor(i,
|
|
45
|
+
const i = n, u = Object.keys(Object(i)).filter((o) => o !== "__proto__" && o !== "constructor" && o !== "prototype");
|
|
46
|
+
for (const o of u) {
|
|
47
|
+
const r = Object.getOwnPropertyDescriptor(i, o);
|
|
48
48
|
if (!r || !r.enumerable)
|
|
49
49
|
continue;
|
|
50
|
-
const m = i[
|
|
51
|
-
_e(s[
|
|
50
|
+
const m = i[o];
|
|
51
|
+
_e(s[o]) && _e(m) ? m.__swiper__ ? s[o] = m : se(s[o], m) : !_e(s[o]) && _e(m) ? (s[o] = {}, m.__swiper__ ? s[o] = m : se(s[o], m)) : s[o] = m;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
return s;
|
|
@@ -71,7 +71,7 @@ function Q(e, t = "") {
|
|
|
71
71
|
const s = [...e.children];
|
|
72
72
|
return e instanceof HTMLSlotElement && s.push(...e.assignedElements()), t ? s.filter((a) => a.matches(t)) : s;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function wt(e, t) {
|
|
75
75
|
const s = [t];
|
|
76
76
|
for (; s.length > 0; ) {
|
|
77
77
|
const a = s.shift();
|
|
@@ -81,9 +81,9 @@ function Mt(e, t) {
|
|
|
81
81
|
}
|
|
82
82
|
return !1;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Pt(e, t) {
|
|
85
85
|
let s = t.contains(e);
|
|
86
|
-
return !s && t instanceof HTMLSlotElement && (s = [...t.assignedElements()].includes(e), s || (s =
|
|
86
|
+
return !s && t instanceof HTMLSlotElement && (s = [...t.assignedElements()].includes(e), s || (s = wt(e, t))), s;
|
|
87
87
|
}
|
|
88
88
|
function Ne(e) {
|
|
89
89
|
try {
|
|
@@ -102,14 +102,14 @@ function ze(e) {
|
|
|
102
102
|
left: t.left + window.scrollX - (e.clientLeft || 0)
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Ot(e, t) {
|
|
106
106
|
const s = [];
|
|
107
107
|
let a = e.previousElementSibling;
|
|
108
108
|
for (; a; )
|
|
109
109
|
(!t || a.matches(t)) && s.push(a), a = a.previousElementSibling;
|
|
110
110
|
return s;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Dt(e, t) {
|
|
113
113
|
const s = [];
|
|
114
114
|
let a = e.nextElementSibling;
|
|
115
115
|
for (; a; )
|
|
@@ -151,34 +151,34 @@ function le(e, t = "") {
|
|
|
151
151
|
const s = globalThis.trustedTypes;
|
|
152
152
|
typeof s < "u" ? e.innerHTML = s.createPolicy("html", { createHTML: (a) => a }).createHTML(t) : e.innerHTML = t;
|
|
153
153
|
}
|
|
154
|
-
let
|
|
155
|
-
function
|
|
154
|
+
let Ye;
|
|
155
|
+
function Nt() {
|
|
156
156
|
return typeof window > "u" ? { touch: !1 } : {
|
|
157
157
|
touch: "ontouchstart" in window || navigator.maxTouchPoints > 0
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
return
|
|
160
|
+
function gt() {
|
|
161
|
+
return Ye || (Ye = Nt()), Ye;
|
|
162
162
|
}
|
|
163
163
|
let Fe;
|
|
164
|
-
function
|
|
164
|
+
function zt({ userAgent: e } = {}) {
|
|
165
165
|
if (typeof window > "u")
|
|
166
166
|
return { ios: !1, android: !1 };
|
|
167
|
-
const t =
|
|
167
|
+
const t = gt(), s = navigator.platform, a = e || navigator.userAgent, n = { ios: !1, android: !1 }, i = /(Android);?[\s/]+([\d.]+)?/.test(a), u = /(iPhone\sOS|iOS|iPod)/.test(a), o = /iPad/.test(a), r = s === "MacIntel" && t.touch && navigator.maxTouchPoints > 1, m = o || r;
|
|
168
168
|
return i && !(s === "Win32") && (n.os = "android", n.android = !0), (m || u) && (n.os = "ios", n.ios = !0), n;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
return Fe || (Fe =
|
|
170
|
+
function Tt(e = {}) {
|
|
171
|
+
return Fe || (Fe = zt(e)), Fe;
|
|
172
172
|
}
|
|
173
173
|
let Xe;
|
|
174
|
-
function
|
|
174
|
+
function $t() {
|
|
175
175
|
if (typeof window > "u")
|
|
176
176
|
return { isSafari: !1, isWebView: !1, need3dFix: !1 };
|
|
177
|
-
const e =
|
|
177
|
+
const e = Tt(), t = navigator.userAgent, s = t.toLowerCase(), a = s.includes("safari") && !s.includes("chrome") && !s.includes("android"), n = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t), i = a || n && e.ios;
|
|
178
178
|
return { isSafari: a, isWebView: n, need3dFix: i };
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
return Xe || (Xe =
|
|
180
|
+
function Et() {
|
|
181
|
+
return Xe || (Xe = $t()), Xe;
|
|
182
182
|
}
|
|
183
183
|
const Oe = (e, t) => {
|
|
184
184
|
if (!e || e.destroyed || !e.params)
|
|
@@ -208,50 +208,50 @@ const Oe = (e, t) => {
|
|
|
208
208
|
t = Math.min(t, s);
|
|
209
209
|
const a = e.params.slidesPerView === "auto" ? e.slidesPerViewDynamic() : Math.ceil(e.params.slidesPerView), n = e.activeIndex;
|
|
210
210
|
if (e.params.grid && (e.params.grid.rows ?? 1) > 1) {
|
|
211
|
-
const u = n,
|
|
212
|
-
|
|
213
|
-
r.column !== void 0 &&
|
|
211
|
+
const u = n, o = [u - t];
|
|
212
|
+
o.push(...Array.from({ length: t }).map((r, m) => u + a + m)), e.slides.forEach((r, m) => {
|
|
213
|
+
r.column !== void 0 && o.includes(r.column) && Ue(e, m);
|
|
214
214
|
});
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
217
|
const i = n + a - 1;
|
|
218
218
|
if (e.params.rewind || e.params.loop)
|
|
219
219
|
for (let u = n - t; u <= i + t; u += 1) {
|
|
220
|
-
const
|
|
221
|
-
(
|
|
220
|
+
const o = (u % s + s) % s;
|
|
221
|
+
(o < n || o > i) && Ue(e, o);
|
|
222
222
|
}
|
|
223
223
|
else
|
|
224
224
|
for (let u = Math.max(n - t, 0); u <= Math.min(i + t, s - 1); u += 1)
|
|
225
225
|
u !== n && (u > i || u < n) && Ue(e, u);
|
|
226
226
|
};
|
|
227
|
-
function
|
|
227
|
+
function kt(e, t = "window", s) {
|
|
228
228
|
if (!e || t === "container" && !s)
|
|
229
229
|
return;
|
|
230
230
|
let a = !1;
|
|
231
231
|
const n = t === "window" ? window.innerHeight : s.clientHeight, i = Object.keys(e).map((u) => {
|
|
232
232
|
if (typeof u == "string" && u.indexOf("@") === 0) {
|
|
233
|
-
const
|
|
234
|
-
return { value: n *
|
|
233
|
+
const o = parseFloat(u.substr(1));
|
|
234
|
+
return { value: n * o, point: u };
|
|
235
235
|
}
|
|
236
236
|
return { value: u, point: u };
|
|
237
237
|
});
|
|
238
|
-
i.sort((u,
|
|
238
|
+
i.sort((u, o) => parseInt(String(u.value), 10) - parseInt(String(o.value), 10));
|
|
239
239
|
for (let u = 0; u < i.length; u += 1) {
|
|
240
|
-
const { point:
|
|
241
|
-
t === "window" ? window.matchMedia(`(min-width: ${r}px)`).matches && (a =
|
|
240
|
+
const { point: o, value: r } = i[u];
|
|
241
|
+
t === "window" ? window.matchMedia(`(min-width: ${r}px)`).matches && (a = o) : r <= s.clientWidth && (a = o);
|
|
242
242
|
}
|
|
243
243
|
return a || "max";
|
|
244
244
|
}
|
|
245
245
|
const it = (e, t) => !!(e.grid && t.grid && t.grid.rows > 1);
|
|
246
|
-
function
|
|
246
|
+
function Gt() {
|
|
247
247
|
const e = this, { realIndex: t, initialized: s, params: a, el: n } = e, i = a.breakpoints;
|
|
248
248
|
if (!i || i && Object.keys(i).length === 0)
|
|
249
249
|
return;
|
|
250
|
-
const u = a.breakpointsBase === "window" || !a.breakpointsBase ? a.breakpointsBase : "container",
|
|
250
|
+
const u = a.breakpointsBase === "window" || !a.breakpointsBase ? a.breakpointsBase : "container", o = ["window", "container"].includes(a.breakpointsBase) || !a.breakpointsBase ? e.el : document.querySelector(a.breakpointsBase), r = e.getBreakpoint(i, u, o);
|
|
251
251
|
if (!r || e.currentBreakpoint === r)
|
|
252
252
|
return;
|
|
253
|
-
const m = i, c = (r in m ? m[r] : void 0) || e.originalParams, T = it(e, a),
|
|
254
|
-
T && !
|
|
253
|
+
const m = i, c = (r in m ? m[r] : void 0) || e.originalParams, T = it(e, a), d = it(e, c), l = e.params.grabCursor, g = c.grabCursor, v = a.enabled;
|
|
254
|
+
T && !d ? (n.classList.remove(`${a.containerModifierClass}grid`, `${a.containerModifierClass}grid-column`), e.emitContainerClasses()) : !T && d && (n.classList.add(`${a.containerModifierClass}grid`), (c.grid.fill && c.grid.fill === "column" || !c.grid.fill && a.grid.fill === "column") && n.classList.add(`${a.containerModifierClass}grid-column`), e.emitContainerClasses()), l && !g ? e.unsetGrabCursor() : !l && g && e.setGrabCursor();
|
|
255
255
|
const S = (A, R) => A[R];
|
|
256
256
|
["navigation", "pagination", "scrollbar"].forEach((A) => {
|
|
257
257
|
const R = S(c, A);
|
|
@@ -269,8 +269,8 @@ function zt() {
|
|
|
269
269
|
allowSlidePrev: e.params.allowSlidePrev
|
|
270
270
|
}), v && !y ? e.disable() : !v && y && e.enable(), e.currentBreakpoint = r, e.emit("_beforeBreakpoint", c), s && (p ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !E && I ? (e.loopCreate(t), e.updateSlides()) : E && !I && e.loopDestroy()), e.emit("breakpoint", c);
|
|
271
271
|
}
|
|
272
|
-
var
|
|
273
|
-
function
|
|
272
|
+
var Bt = { setBreakpoint: Gt, getBreakpoint: kt };
|
|
273
|
+
function Ht() {
|
|
274
274
|
const e = this, { isLocked: t, params: s } = e, { slidesOffsetBefore: a } = s;
|
|
275
275
|
if (a) {
|
|
276
276
|
const n = e.slides.length - 1, i = e.slidesGrid[n] + e.slidesSizesGrid[n] + a * 2;
|
|
@@ -279,8 +279,8 @@ function kt() {
|
|
|
279
279
|
e.isLocked = e.snapGrid.length === 1;
|
|
280
280
|
s.allowSlideNext === !0 && (e.allowSlideNext = !e.isLocked), s.allowSlidePrev === !0 && (e.allowSlidePrev = !e.isLocked), t && t !== e.isLocked && (e.isEnd = !1), t !== e.isLocked && e.emit(e.isLocked ? "lock" : "unlock");
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
function
|
|
282
|
+
var Vt = { checkOverflow: Ht };
|
|
283
|
+
function Wt(e, t) {
|
|
284
284
|
const s = [];
|
|
285
285
|
return e.forEach((a) => {
|
|
286
286
|
typeof a == "object" ? Object.keys(a).forEach((n) => {
|
|
@@ -288,8 +288,8 @@ function Bt(e, t) {
|
|
|
288
288
|
}) : typeof a == "string" && s.push(t + a);
|
|
289
289
|
}), s;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
const e = this, { classNames: t, params: s, rtl: a, el: n, device: i } = e, u =
|
|
291
|
+
function Yt() {
|
|
292
|
+
const e = this, { classNames: t, params: s, rtl: a, el: n, device: i } = e, u = Wt([
|
|
293
293
|
"initialized",
|
|
294
294
|
s.direction,
|
|
295
295
|
{ "free-mode": e.params.freeMode && s.freeMode.enabled },
|
|
@@ -305,12 +305,12 @@ function Ht() {
|
|
|
305
305
|
], s.containerModifierClass);
|
|
306
306
|
t.push(...u), n.classList.add(...t), e.emitContainerClasses();
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function Ft() {
|
|
309
309
|
const e = this, { el: t, classNames: s } = e;
|
|
310
310
|
!t || typeof t == "string" || (t.classList.remove(...s), e.emitContainerClasses());
|
|
311
311
|
}
|
|
312
|
-
var
|
|
313
|
-
const
|
|
312
|
+
var Xt = { addClasses: Yt, removeClasses: Ft };
|
|
313
|
+
const vt = {
|
|
314
314
|
init: !0,
|
|
315
315
|
direction: "horizontal",
|
|
316
316
|
oneWayMovement: !1,
|
|
@@ -427,7 +427,7 @@ const Tt = {
|
|
|
427
427
|
// Internals
|
|
428
428
|
_emitClasses: !1
|
|
429
429
|
};
|
|
430
|
-
var
|
|
430
|
+
var Ut = {
|
|
431
431
|
on(e, t, s) {
|
|
432
432
|
const a = this;
|
|
433
433
|
if (!a.eventsListeners || a.destroyed || typeof t != "function")
|
|
@@ -480,35 +480,35 @@ var Wt = {
|
|
|
480
480
|
s = u.events, a = u.data ?? [], n = u.context || t;
|
|
481
481
|
}
|
|
482
482
|
return a.unshift(n), (Array.isArray(s) ? s : s.split(" ")).forEach((u) => {
|
|
483
|
-
t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((
|
|
484
|
-
|
|
485
|
-
}), t.eventsListeners && t.eventsListeners[u] && t.eventsListeners[u].forEach((
|
|
486
|
-
|
|
483
|
+
t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((o) => {
|
|
484
|
+
o.apply(n, [u, ...a]);
|
|
485
|
+
}), t.eventsListeners && t.eventsListeners[u] && t.eventsListeners[u].forEach((o) => {
|
|
486
|
+
o.apply(n, a);
|
|
487
487
|
});
|
|
488
488
|
}), t;
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
|
-
function
|
|
491
|
+
function qt(e) {
|
|
492
492
|
const t = this;
|
|
493
493
|
t.destroyed || t.enabled && (t.allowClick || (t.params.preventClicks && e.preventDefault(), t.params.preventClicksPropagation && t.animating && (e.stopPropagation(), e.stopImmediatePropagation())));
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function jt() {
|
|
496
496
|
const e = this;
|
|
497
497
|
e.destroyed || e.documentTouchHandlerProceeded || (e.documentTouchHandlerProceeded = !0, e.params.touchReleaseOnEdges && (e.el.style.touchAction = "auto"));
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function Kt(e) {
|
|
500
500
|
const t = this;
|
|
501
501
|
t.destroyed || (Oe(t, e.target), !(t.params.cssMode || t.params.slidesPerView !== "auto" && !t.params.autoHeight) && t.update());
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Zt() {
|
|
504
504
|
const e = this, { params: t, el: s } = e;
|
|
505
505
|
if (s && s.offsetWidth === 0)
|
|
506
506
|
return;
|
|
507
507
|
t.breakpoints && e.setBreakpoint();
|
|
508
508
|
const { allowSlideNext: a, allowSlidePrev: n, snapGrid: i } = e, u = e.virtual && e.params.virtual?.enabled;
|
|
509
509
|
e.allowSlideNext = !0, e.allowSlidePrev = !0, e.updateSize(), e.updateSlides(), e.updateSlidesClasses();
|
|
510
|
-
const
|
|
511
|
-
if ((t.slidesPerView === "auto" || t.slidesPerView > 1) && e.isEnd && !e.isBeginning && !e.params.centeredSlides && !
|
|
510
|
+
const o = u && t.loop;
|
|
511
|
+
if ((t.slidesPerView === "auto" || t.slidesPerView > 1) && e.isEnd && !e.isBeginning && !e.params.centeredSlides && !o) {
|
|
512
512
|
const r = u ? e.virtual.slides.length : e.slides.length;
|
|
513
513
|
e.slideTo(r - 1, 0, !1, !0);
|
|
514
514
|
} else
|
|
@@ -521,7 +521,7 @@ function qt() {
|
|
|
521
521
|
}
|
|
522
522
|
e.allowSlidePrev = n, e.allowSlideNext = a, e.params.watchOverflow && i !== e.snapGrid && e.checkOverflow();
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function Qt() {
|
|
525
525
|
const e = this;
|
|
526
526
|
if (e.destroyed)
|
|
527
527
|
return;
|
|
@@ -533,7 +533,7 @@ function jt() {
|
|
|
533
533
|
const i = e.maxTranslate() - e.minTranslate();
|
|
534
534
|
i === 0 ? n = 0 : n = (e.translate - e.minTranslate()) / i, n !== e.progress && e.updateProgress(s ? -e.translate : e.translate), e.emit("setTranslate", e.translate, !1);
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function Jt(e) {
|
|
537
537
|
const t = this;
|
|
538
538
|
if (t.destroyed)
|
|
539
539
|
return;
|
|
@@ -548,7 +548,7 @@ function Kt(e) {
|
|
|
548
548
|
if (["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(a.type) && !(["pointercancel", "contextmenu"].includes(a.type) && (t.browser.isSafari || t.browser.isWebView)))
|
|
549
549
|
return;
|
|
550
550
|
s.pointerId = null, s.touchId = null;
|
|
551
|
-
const { params: i, touches: u, rtlTranslate:
|
|
551
|
+
const { params: i, touches: u, rtlTranslate: o, slidesGrid: r, enabled: m } = t;
|
|
552
552
|
if (!m || !i.simulateTouch && a.pointerType === "mouse")
|
|
553
553
|
return;
|
|
554
554
|
if (s.allowTouchCallbacks && t.emit("touchEnd", a), s.allowTouchCallbacks = !1, !s.isTouched) {
|
|
@@ -569,17 +569,17 @@ function Kt(e) {
|
|
|
569
569
|
}
|
|
570
570
|
s.isTouched = !1, s.isMoved = !1, s.startMoving = !1;
|
|
571
571
|
let T;
|
|
572
|
-
if (i.followFinger ? T =
|
|
572
|
+
if (i.followFinger ? T = o ? t.translate : -t.translate : T = -(s.currentTranslate ?? 0), i.cssMode)
|
|
573
573
|
return;
|
|
574
574
|
if (i.freeMode && i.freeMode.enabled) {
|
|
575
575
|
t.freeMode.onTouchEnd({ currentPos: T });
|
|
576
576
|
return;
|
|
577
577
|
}
|
|
578
|
-
const
|
|
578
|
+
const d = T >= -t.maxTranslate() && !t.params.loop;
|
|
579
579
|
let l = 0, g = t.slidesSizesGrid[0];
|
|
580
580
|
for (let E = 0; E < r.length; E += E < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
|
|
581
581
|
const y = E < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
|
|
582
|
-
typeof r[E + y] < "u" ? (
|
|
582
|
+
typeof r[E + y] < "u" ? (d || T >= r[E] && T < r[E + y]) && (l = E, g = r[E + y] - r[E]) : (d || T >= r[E]) && (l = E, g = r[r.length - 1] - r[r.length - 2]);
|
|
583
583
|
}
|
|
584
584
|
let v = null, S = null;
|
|
585
585
|
i.rewind && (t.isBeginning ? S = i.virtual?.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (v = 0));
|
|
@@ -598,14 +598,14 @@ function Kt(e) {
|
|
|
598
598
|
t.navigation && (a.target === t.navigation.nextEl || a.target === t.navigation.prevEl) ? a.target === t.navigation.nextEl ? t.slideTo(l + p) : t.slideTo(l) : (t.swipeDirection === "next" && t.slideTo(v !== null ? v : l + p), t.swipeDirection === "prev" && t.slideTo(S !== null ? S : l));
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function es(e) {
|
|
602
602
|
const t = this;
|
|
603
603
|
if (t.destroyed)
|
|
604
604
|
return;
|
|
605
605
|
const s = t.touchEventsData, { params: a, touches: n, rtlTranslate: i, enabled: u } = t;
|
|
606
606
|
if (!u || !a.simulateTouch && e.pointerType === "mouse")
|
|
607
607
|
return;
|
|
608
|
-
const
|
|
608
|
+
const o = e, r = o.originalEvent ?? o;
|
|
609
609
|
if (r.type === "pointermove" && (s.touchId !== null || r.pointerId !== s.pointerId))
|
|
610
610
|
return;
|
|
611
611
|
let m;
|
|
@@ -651,12 +651,12 @@ function Zt(e) {
|
|
|
651
651
|
return;
|
|
652
652
|
}
|
|
653
653
|
s.allowTouchCallbacks && t.emit("touchMove", r), n.previousX = n.currentX, n.previousY = n.currentY, n.currentX = f, n.currentY = c;
|
|
654
|
-
const T = n.currentX - n.startX,
|
|
655
|
-
if (t.params.threshold && Math.sqrt(T ** 2 +
|
|
654
|
+
const T = n.currentX - n.startX, d = n.currentY - n.startY;
|
|
655
|
+
if (t.params.threshold && Math.sqrt(T ** 2 + d ** 2) < t.params.threshold)
|
|
656
656
|
return;
|
|
657
657
|
if (typeof s.isScrolling > "u") {
|
|
658
658
|
let I;
|
|
659
|
-
t.isHorizontal() && n.currentY === n.startY || t.isVertical() && n.currentX === n.startX ? s.isScrolling = !1 : T * T +
|
|
659
|
+
t.isHorizontal() && n.currentY === n.startY || t.isVertical() && n.currentX === n.startX ? s.isScrolling = !1 : T * T + d * d >= 25 && (I = Math.atan2(Math.abs(d), Math.abs(T)) * 180 / Math.PI, s.isScrolling = t.isHorizontal() ? I > a.touchAngle : 90 - I > a.touchAngle);
|
|
660
660
|
}
|
|
661
661
|
if (s.isScrolling && t.emit("touchMoveOpposite", r), typeof s.startMoving > "u" && (n.currentX !== n.startX || n.currentY !== n.startY) && (s.startMoving = !0), s.isScrolling || r.type === "touchmove" && s.preventTouchMoveFromPointerMove) {
|
|
662
662
|
s.isTouched = !1;
|
|
@@ -665,7 +665,7 @@ function Zt(e) {
|
|
|
665
665
|
if (!s.startMoving)
|
|
666
666
|
return;
|
|
667
667
|
t.allowClick = !1, !a.cssMode && r.cancelable && r.preventDefault(), a.touchMoveStopPropagation && !a.nested && r.stopPropagation();
|
|
668
|
-
let l = t.isHorizontal() ? T :
|
|
668
|
+
let l = t.isHorizontal() ? T : d, g = t.isHorizontal() ? n.currentX - n.previousX : n.currentY - n.previousY;
|
|
669
669
|
a.oneWayMovement && (l = Math.abs(l) * (i ? 1 : -1), g = Math.abs(g) * (i ? 1 : -1)), n.diff = l, l *= a.touchRatio, i && (l = -l, g = -g);
|
|
670
670
|
const v = t.touchesDirection;
|
|
671
671
|
t.swipeDirection = l > 0 ? "prev" : "next", t.touchesDirection = g > 0 ? "prev" : "next";
|
|
@@ -713,7 +713,7 @@ function Zt(e) {
|
|
|
713
713
|
}
|
|
714
714
|
!a.followFinger || a.cssMode || ((a.freeMode && a.freeMode.enabled && t.freeMode || a.watchSlidesProgress) && (t.updateActiveIndex(), t.updateSlidesClasses()), a.freeMode && a.freeMode.enabled && t.freeMode && t.freeMode.onTouchMove(), t.updateProgress(s.currentTranslate), t.setTranslate(s.currentTranslate ?? 0));
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function ts(e, t) {
|
|
717
717
|
function s(a) {
|
|
718
718
|
if (!a || a === document || a === window)
|
|
719
719
|
return null;
|
|
@@ -731,7 +731,7 @@ function lt(e, t, s) {
|
|
|
731
731
|
const { params: a } = e, n = a.edgeSwipeDetection, i = a.edgeSwipeThreshold;
|
|
732
732
|
return n && (s <= i || s >= window.innerWidth - i) ? n === "prevent" ? (t.preventDefault(), !0) : !1 : !0;
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function ss(e) {
|
|
735
735
|
const t = this;
|
|
736
736
|
if (t.destroyed)
|
|
737
737
|
return;
|
|
@@ -750,23 +750,23 @@ function Jt(e) {
|
|
|
750
750
|
if (!u || !n.simulateTouch && s.pointerType === "mouse" || t.animating && n.preventInteractionOnTransition)
|
|
751
751
|
return;
|
|
752
752
|
!t.animating && n.cssMode && n.loop && t.loopFix();
|
|
753
|
-
let
|
|
754
|
-
if (n.touchEventsTarget === "wrapper" && !
|
|
753
|
+
let o = s.target;
|
|
754
|
+
if (n.touchEventsTarget === "wrapper" && !Pt(o, t.wrapperEl))
|
|
755
755
|
return;
|
|
756
756
|
const r = s;
|
|
757
757
|
if (typeof r.which == "number" && r.which === 3 || typeof r.button == "number" && r.button > 0 || a.isTouched && a.isMoved)
|
|
758
758
|
return;
|
|
759
759
|
const m = !!n.noSwipingClass && n.noSwipingClass !== "", f = s.composedPath ? s.composedPath() : s.path;
|
|
760
|
-
m && s.target && s.target.shadowRoot && f && (
|
|
760
|
+
m && s.target && s.target.shadowRoot && f && (o = f[0]);
|
|
761
761
|
const c = n.noSwipingSelector ? n.noSwipingSelector : `.${n.noSwipingClass}`, T = !!(s.target && s.target.shadowRoot);
|
|
762
|
-
if (n.noSwiping && (T ?
|
|
762
|
+
if (n.noSwiping && (T ? ts(c, o) : o.closest(c))) {
|
|
763
763
|
t.allowClick = !0;
|
|
764
764
|
return;
|
|
765
765
|
}
|
|
766
|
-
if (n.swipeHandler && typeof n.swipeHandler == "string" && !
|
|
766
|
+
if (n.swipeHandler && typeof n.swipeHandler == "string" && !o.closest(n.swipeHandler))
|
|
767
767
|
return;
|
|
768
|
-
const
|
|
769
|
-
i.currentX =
|
|
768
|
+
const d = s;
|
|
769
|
+
i.currentX = d.pageX, i.currentY = d.pageY;
|
|
770
770
|
const l = i.currentX, g = i.currentY;
|
|
771
771
|
if (!lt(t, s, l))
|
|
772
772
|
return;
|
|
@@ -778,41 +778,41 @@ function Jt(e) {
|
|
|
778
778
|
startMoving: void 0
|
|
779
779
|
}), i.startX = l, i.startY = g, a.touchStartTime = ae(), t.allowClick = !0, t.updateSize(), t.swipeDirection = void 0, n.threshold > 0 && (a.allowThresholdMove = !1);
|
|
780
780
|
let v = !0;
|
|
781
|
-
|
|
781
|
+
o.matches(a.focusableElements) && (v = !1, o.nodeName === "SELECT" && (a.isTouched = !1)), document.activeElement && document.activeElement.matches(a.focusableElements) && document.activeElement !== o && (d.pointerType === "mouse" || d.pointerType !== "mouse" && !o.matches(a.focusableElements)) && document.activeElement.blur();
|
|
782
782
|
const S = v && t.allowTouchMove && n.touchStartPreventDefault;
|
|
783
|
-
(n.touchStartForcePreventDefault || S) && !
|
|
783
|
+
(n.touchStartForcePreventDefault || S) && !o.isContentEditable && s.preventDefault(), n.freeMode && n.freeMode.enabled && t.freeMode && t.animating && !n.cssMode && t.freeMode.onTouchStart(), t.emit("touchStart", s);
|
|
784
784
|
}
|
|
785
|
-
const
|
|
786
|
-
const { params: s, el: a, wrapperEl: n, device: i } = e, u = !!s.nested,
|
|
785
|
+
const St = (e, t) => {
|
|
786
|
+
const { params: s, el: a, wrapperEl: n, device: i } = e, u = !!s.nested, o = t === "on" ? "addEventListener" : "removeEventListener", r = t;
|
|
787
787
|
if (!a || typeof a == "string")
|
|
788
788
|
return;
|
|
789
|
-
document[
|
|
789
|
+
document[o]("touchstart", e.onDocumentTouchStart, {
|
|
790
790
|
passive: !1,
|
|
791
791
|
capture: u
|
|
792
|
-
}), a[
|
|
792
|
+
}), a[o]("touchstart", e.onTouchStart, { passive: !1 }), a[o]("pointerdown", e.onTouchStart, { passive: !1 }), document[o]("touchmove", e.onTouchMove, {
|
|
793
793
|
passive: !1,
|
|
794
794
|
capture: u
|
|
795
|
-
}), document[
|
|
795
|
+
}), document[o]("pointermove", e.onTouchMove, {
|
|
796
796
|
passive: !1,
|
|
797
797
|
capture: u
|
|
798
|
-
}), document[
|
|
798
|
+
}), document[o]("touchend", e.onTouchEnd, { passive: !0 }), document[o]("pointerup", e.onTouchEnd, { passive: !0 }), document[o]("pointercancel", e.onTouchEnd, { passive: !0 }), document[o]("touchcancel", e.onTouchEnd, { passive: !0 }), document[o]("pointerout", e.onTouchEnd, { passive: !0 }), document[o]("pointerleave", e.onTouchEnd, { passive: !0 }), document[o]("contextmenu", e.onTouchEnd, { passive: !0 }), (s.preventClicks || s.preventClicksPropagation) && a[o]("click", e.onClick, !0), s.cssMode && n[o]("scroll", e.onScroll);
|
|
799
799
|
const m = (f) => {
|
|
800
|
-
e[r](f,
|
|
800
|
+
e[r](f, Zt, !0);
|
|
801
801
|
};
|
|
802
|
-
s.updateOnWindowResize ? m(i.ios || i.android ? "resize orientationchange observerUpdate" : "resize observerUpdate") : m("observerUpdate"), a[
|
|
802
|
+
s.updateOnWindowResize ? m(i.ios || i.android ? "resize orientationchange observerUpdate" : "resize observerUpdate") : m("observerUpdate"), a[o]("load", e.onLoad, { capture: !0 });
|
|
803
803
|
};
|
|
804
|
-
function
|
|
804
|
+
function as() {
|
|
805
805
|
const e = this, { params: t } = e;
|
|
806
|
-
e.onTouchStart =
|
|
806
|
+
e.onTouchStart = ss.bind(e), e.onTouchMove = es.bind(e), e.onTouchEnd = Jt.bind(e), e.onDocumentTouchStart = jt.bind(e), t.cssMode && (e.onScroll = Qt.bind(e)), e.onClick = qt.bind(e), e.onLoad = Kt.bind(e), St(e, "on");
|
|
807
807
|
}
|
|
808
|
-
function
|
|
809
|
-
|
|
808
|
+
function ns() {
|
|
809
|
+
St(this, "off");
|
|
810
810
|
}
|
|
811
|
-
var
|
|
812
|
-
attachEvents:
|
|
813
|
-
detachEvents:
|
|
811
|
+
var is = {
|
|
812
|
+
attachEvents: as,
|
|
813
|
+
detachEvents: ns
|
|
814
814
|
};
|
|
815
|
-
function
|
|
815
|
+
function ls(e) {
|
|
816
816
|
const t = this;
|
|
817
817
|
if (!t.params.simulateTouch || t.params.watchOverflow && t.isLocked || t.params.cssMode)
|
|
818
818
|
return;
|
|
@@ -821,17 +821,17 @@ function as(e) {
|
|
|
821
821
|
t.__preventObserver__ = !1;
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function rs() {
|
|
825
825
|
const e = this;
|
|
826
826
|
e.params.watchOverflow && e.isLocked || e.params.cssMode || (e.isElement && (e.__preventObserver__ = !0), e[e.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", e.isElement && requestAnimationFrame(() => {
|
|
827
827
|
e.__preventObserver__ = !1;
|
|
828
828
|
}));
|
|
829
829
|
}
|
|
830
|
-
var
|
|
831
|
-
setGrabCursor:
|
|
832
|
-
unsetGrabCursor:
|
|
830
|
+
var os = {
|
|
831
|
+
setGrabCursor: ls,
|
|
832
|
+
unsetGrabCursor: rs
|
|
833
833
|
};
|
|
834
|
-
function
|
|
834
|
+
function ds(e, t) {
|
|
835
835
|
const s = this, { params: a, slidesEl: n } = s;
|
|
836
836
|
if (!a.loop || s.virtual && s.params.virtual?.enabled)
|
|
837
837
|
return;
|
|
@@ -840,29 +840,29 @@ function ls(e, t) {
|
|
|
840
840
|
l.setAttribute("data-swiper-slide-index", String(g));
|
|
841
841
|
});
|
|
842
842
|
}, u = () => {
|
|
843
|
-
const
|
|
844
|
-
|
|
843
|
+
const d = Q(n, `.${a.slideBlankClass}`);
|
|
844
|
+
d.forEach((l) => {
|
|
845
845
|
l.remove();
|
|
846
|
-
}),
|
|
847
|
-
},
|
|
848
|
-
a.loopAddBlankSlides && (a.slidesPerGroup > 1 ||
|
|
849
|
-
const r = a.slidesPerGroup * (
|
|
850
|
-
for (let l = 0; l <
|
|
846
|
+
}), d.length > 0 && (s.recalcSlides(), s.updateSlides());
|
|
847
|
+
}, o = s.grid && a.grid && a.grid.rows > 1;
|
|
848
|
+
a.loopAddBlankSlides && (a.slidesPerGroup > 1 || o) && u();
|
|
849
|
+
const r = a.slidesPerGroup * (o ? a.grid.rows : 1), m = s.slides.length % r !== 0, f = o && s.slides.length % a.grid.rows !== 0, c = (d) => {
|
|
850
|
+
for (let l = 0; l < d; l += 1) {
|
|
851
851
|
const g = s.isElement ? ne("swiper-slide", [a.slideBlankClass]) : ne("div", [a.slideClass, a.slideBlankClass]);
|
|
852
852
|
s.slidesEl.append(g);
|
|
853
853
|
}
|
|
854
854
|
};
|
|
855
855
|
if (m) {
|
|
856
856
|
if (a.loopAddBlankSlides) {
|
|
857
|
-
const
|
|
858
|
-
c(
|
|
857
|
+
const d = r - s.slides.length % r;
|
|
858
|
+
c(d), s.recalcSlides(), s.updateSlides();
|
|
859
859
|
} else
|
|
860
860
|
Ne("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
|
|
861
861
|
i();
|
|
862
862
|
} else if (f) {
|
|
863
863
|
if (a.loopAddBlankSlides) {
|
|
864
|
-
const
|
|
865
|
-
c(
|
|
864
|
+
const d = a.grid.rows - s.slides.length % a.grid.rows;
|
|
865
|
+
c(d), s.recalcSlides(), s.updateSlides();
|
|
866
866
|
} else
|
|
867
867
|
Ne("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
|
|
868
868
|
i();
|
|
@@ -875,7 +875,7 @@ function ls(e, t) {
|
|
|
875
875
|
initial: t
|
|
876
876
|
});
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function cs() {
|
|
879
879
|
const e = this, { params: t, slidesEl: s } = e;
|
|
880
880
|
if (!t.loop || !s || e.virtual && e.params.virtual?.enabled)
|
|
881
881
|
return;
|
|
@@ -890,20 +890,20 @@ function rs() {
|
|
|
890
890
|
s.append(n);
|
|
891
891
|
}), e.recalcSlides(), e.slideTo(e.realIndex, 0);
|
|
892
892
|
}
|
|
893
|
-
function
|
|
894
|
-
const { slideRealIndex: t, slideTo: s = !0, direction: a, setTranslate: n, activeSlideIndex: i, initial: u, byController:
|
|
893
|
+
function fs(e = {}) {
|
|
894
|
+
const { slideRealIndex: t, slideTo: s = !0, direction: a, setTranslate: n, activeSlideIndex: i, initial: u, byController: o, byMousewheel: r } = e;
|
|
895
895
|
let m = i;
|
|
896
896
|
const f = this;
|
|
897
897
|
if (!f.params.loop)
|
|
898
898
|
return;
|
|
899
899
|
f.emit("beforeLoopFix");
|
|
900
|
-
const { slides: c, allowSlidePrev: T, allowSlideNext:
|
|
900
|
+
const { slides: c, allowSlidePrev: T, allowSlideNext: d, slidesEl: l, params: g } = f, { centeredSlides: v, slidesOffsetBefore: S, slidesOffsetAfter: h, initialSlide: p } = g, E = v || !!S || !!h;
|
|
901
901
|
if (f.allowSlidePrev = !0, f.allowSlideNext = !0, f.virtual && g.virtual?.enabled) {
|
|
902
902
|
if (s) {
|
|
903
|
-
const k = f.virtual.slides.length,
|
|
904
|
-
!E && f.snapIndex === 0 ? f.slideTo(k, 0, !1, !0) : E && f.snapIndex < g.slidesPerView ? f.slideTo(k + f.snapIndex, 0, !1, !0) : f.snapIndex === f.snapGrid.length - 1 && f.slideTo(
|
|
903
|
+
const k = f.virtual.slides.length, Y = f.virtual.slidesBefore ?? 0;
|
|
904
|
+
!E && f.snapIndex === 0 ? f.slideTo(k, 0, !1, !0) : E && f.snapIndex < g.slidesPerView ? f.slideTo(k + f.snapIndex, 0, !1, !0) : f.snapIndex === f.snapGrid.length - 1 && f.slideTo(Y, 0, !1, !0);
|
|
905
905
|
}
|
|
906
|
-
f.allowSlidePrev = T, f.allowSlideNext =
|
|
906
|
+
f.allowSlidePrev = T, f.allowSlideNext = d, f.emit("loopFix");
|
|
907
907
|
return;
|
|
908
908
|
}
|
|
909
909
|
let y = g.slidesPerView;
|
|
@@ -922,33 +922,33 @@ function os(e = {}) {
|
|
|
922
922
|
if (z < A) {
|
|
923
923
|
L = Math.max(A - z, I);
|
|
924
924
|
for (let k = 0; k < A - z; k += 1) {
|
|
925
|
-
const
|
|
925
|
+
const Y = k - Math.floor(k / b) * b;
|
|
926
926
|
if (R) {
|
|
927
|
-
const q = b -
|
|
927
|
+
const q = b - Y - 1;
|
|
928
928
|
for (let O = c.length - 1; O >= 0; O -= 1)
|
|
929
929
|
c[O].column === q && _.push(O);
|
|
930
930
|
} else
|
|
931
|
-
_.push(b -
|
|
931
|
+
_.push(b - Y - 1);
|
|
932
932
|
}
|
|
933
933
|
} else if (z + y > b - A) {
|
|
934
934
|
N = Math.max(z - (b - A * 2), I), M && (N = Math.max(N, y - b + p + 1));
|
|
935
935
|
for (let k = 0; k < N; k += 1) {
|
|
936
|
-
const
|
|
936
|
+
const Y = k - Math.floor(k / b) * b;
|
|
937
937
|
R ? c.forEach((q, O) => {
|
|
938
|
-
q.column ===
|
|
939
|
-
}) : P.push(
|
|
938
|
+
q.column === Y && P.push(O);
|
|
939
|
+
}) : P.push(Y);
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
942
|
if (f.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
943
943
|
f.__preventObserver__ = !1;
|
|
944
944
|
}), f.params.effect === "cards" && c.length < y + A * 2 && (P.includes(m) && P.splice(P.indexOf(m), 1), _.includes(m) && _.splice(_.indexOf(m), 1)), w && _.forEach((k) => {
|
|
945
|
-
const
|
|
946
|
-
|
|
945
|
+
const Y = c[k];
|
|
946
|
+
Y.swiperLoopMoveDOM = !0, l.prepend(Y), Y.swiperLoopMoveDOM = !1;
|
|
947
947
|
}), x && P.forEach((k) => {
|
|
948
|
-
const
|
|
949
|
-
|
|
950
|
-
}), f.recalcSlides(), g.slidesPerView === "auto" ? f.updateSlides() : R && (_.length > 0 && w || P.length > 0 && x) && f.slides.forEach((k,
|
|
951
|
-
f.grid.updateSlide(
|
|
948
|
+
const Y = c[k];
|
|
949
|
+
Y.swiperLoopMoveDOM = !0, l.append(Y), Y.swiperLoopMoveDOM = !1;
|
|
950
|
+
}), f.recalcSlides(), g.slidesPerView === "auto" ? f.updateSlides() : R && (_.length > 0 && w || P.length > 0 && x) && f.slides.forEach((k, Y) => {
|
|
951
|
+
f.grid.updateSlide(Y, k, f.slides);
|
|
952
952
|
}), g.watchSlidesProgress && f.updateSlidesOffset(), s) {
|
|
953
953
|
if (_.length > 0 && w) {
|
|
954
954
|
if (typeof t > "u") {
|
|
@@ -967,9 +967,9 @@ function os(e = {}) {
|
|
|
967
967
|
f.slideTo(f.activeIndex - k, 0, !1, !0);
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
|
-
f.allowSlidePrev = T, f.allowSlideNext =
|
|
970
|
+
f.allowSlidePrev = T, f.allowSlideNext = d;
|
|
971
971
|
const V = f.controller?.control;
|
|
972
|
-
if (V && !
|
|
972
|
+
if (V && !o) {
|
|
973
973
|
const k = {
|
|
974
974
|
slideRealIndex: t,
|
|
975
975
|
direction: a,
|
|
@@ -977,10 +977,10 @@ function os(e = {}) {
|
|
|
977
977
|
activeSlideIndex: m,
|
|
978
978
|
byController: !0
|
|
979
979
|
};
|
|
980
|
-
Array.isArray(V) ? V.forEach((
|
|
981
|
-
!
|
|
980
|
+
Array.isArray(V) ? V.forEach((Y) => {
|
|
981
|
+
!Y.destroyed && Y.params.loop && Y.loopFix({
|
|
982
982
|
...k,
|
|
983
|
-
slideTo:
|
|
983
|
+
slideTo: Y.params.slidesPerView === g.slidesPerView ? s : !1
|
|
984
984
|
});
|
|
985
985
|
}) : V instanceof f.constructor && V.params.loop && V.loopFix({
|
|
986
986
|
...k,
|
|
@@ -989,12 +989,12 @@ function os(e = {}) {
|
|
|
989
989
|
}
|
|
990
990
|
f.emit("loopFix");
|
|
991
991
|
}
|
|
992
|
-
var
|
|
993
|
-
loopCreate:
|
|
994
|
-
loopFix:
|
|
995
|
-
loopDestroy:
|
|
992
|
+
var us = {
|
|
993
|
+
loopCreate: ds,
|
|
994
|
+
loopFix: fs,
|
|
995
|
+
loopDestroy: cs
|
|
996
996
|
};
|
|
997
|
-
function
|
|
997
|
+
function ps(e, t) {
|
|
998
998
|
return function(a = {}) {
|
|
999
999
|
const n = Object.keys(a)[0], i = a[n];
|
|
1000
1000
|
if (typeof i != "object" || i === null) {
|
|
@@ -1008,8 +1008,8 @@ function cs(e, t) {
|
|
|
1008
1008
|
typeof e[n] == "object" && !("enabled" in e[n]) && (e[n].enabled = !0), e[n] || (e[n] = { enabled: !1 }), se(t, a);
|
|
1009
1009
|
};
|
|
1010
1010
|
}
|
|
1011
|
-
const
|
|
1012
|
-
const a = [], n = (
|
|
1011
|
+
const ms = ({ swiper: e, extendParams: t, on: s }) => {
|
|
1012
|
+
const a = [], n = (o, r = {}) => {
|
|
1013
1013
|
const m = window.MutationObserver || window.WebkitMutationObserver;
|
|
1014
1014
|
if (!m)
|
|
1015
1015
|
return;
|
|
@@ -1025,7 +1025,7 @@ const fs = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
1025
1025
|
};
|
|
1026
1026
|
window.requestAnimationFrame ? window.requestAnimationFrame(T) : window.setTimeout(T, 0);
|
|
1027
1027
|
});
|
|
1028
|
-
f.observe(
|
|
1028
|
+
f.observe(o, {
|
|
1029
1029
|
attributes: typeof r.attributes > "u" ? !0 : r.attributes,
|
|
1030
1030
|
childList: e.isElement || (typeof r.childList > "u" ? !0 : r.childList),
|
|
1031
1031
|
characterData: typeof r.characterData > "u" ? !0 : r.characterData
|
|
@@ -1033,17 +1033,17 @@ const fs = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
1033
1033
|
}, i = () => {
|
|
1034
1034
|
if (e.params.observer) {
|
|
1035
1035
|
if (e.params.observeParents) {
|
|
1036
|
-
const
|
|
1037
|
-
for (let r = 0; r <
|
|
1038
|
-
n(
|
|
1036
|
+
const o = ue(e.hostEl);
|
|
1037
|
+
for (let r = 0; r < o.length; r += 1)
|
|
1038
|
+
n(o[r]);
|
|
1039
1039
|
}
|
|
1040
1040
|
n(e.hostEl, {
|
|
1041
1041
|
childList: e.params.observeSlideChildren
|
|
1042
1042
|
}), n(e.wrapperEl, { attributes: !1 });
|
|
1043
1043
|
}
|
|
1044
1044
|
}, u = () => {
|
|
1045
|
-
a.forEach((
|
|
1046
|
-
|
|
1045
|
+
a.forEach((o) => {
|
|
1046
|
+
o.disconnect();
|
|
1047
1047
|
}), a.splice(0, a.length);
|
|
1048
1048
|
};
|
|
1049
1049
|
t({
|
|
@@ -1051,7 +1051,7 @@ const fs = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
1051
1051
|
observeParents: !1,
|
|
1052
1052
|
observeSlideChildren: !1
|
|
1053
1053
|
}), s("init", i), s("destroy", u);
|
|
1054
|
-
},
|
|
1054
|
+
}, hs = ({ swiper: e, on: t, emit: s }) => {
|
|
1055
1055
|
let a = null, n = null;
|
|
1056
1056
|
const i = () => {
|
|
1057
1057
|
!e || e.destroyed || !e.initialized || (s("beforeResize"), s("resize"));
|
|
@@ -1059,16 +1059,16 @@ const fs = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
1059
1059
|
!e || e.destroyed || !e.initialized || (a = new ResizeObserver((m) => {
|
|
1060
1060
|
n = window.requestAnimationFrame(() => {
|
|
1061
1061
|
const { width: f, height: c } = e;
|
|
1062
|
-
let T = f,
|
|
1062
|
+
let T = f, d = c;
|
|
1063
1063
|
m.forEach(({ contentBoxSize: l, contentRect: g, target: v }) => {
|
|
1064
1064
|
if (v && v !== e.el)
|
|
1065
1065
|
return;
|
|
1066
1066
|
const S = Array.isArray(l) ? l[0] : l;
|
|
1067
|
-
T = g ? g.width : S.inlineSize,
|
|
1068
|
-
}), (T !== f ||
|
|
1067
|
+
T = g ? g.width : S.inlineSize, d = g ? g.height : S.blockSize;
|
|
1068
|
+
}), (T !== f || d !== c) && i();
|
|
1069
1069
|
});
|
|
1070
1070
|
}), a.observe(e.el));
|
|
1071
|
-
},
|
|
1071
|
+
}, o = () => {
|
|
1072
1072
|
n && window.cancelAnimationFrame(n), a && a.unobserve && e.el && (a.unobserve(e.el), a = null);
|
|
1073
1073
|
}, r = () => {
|
|
1074
1074
|
!e || e.destroyed || !e.initialized || s("orientationchange");
|
|
@@ -1080,17 +1080,17 @@ const fs = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
window.addEventListener("resize", i), window.addEventListener("orientationchange", r);
|
|
1082
1082
|
}), t("destroy", () => {
|
|
1083
|
-
|
|
1083
|
+
o(), window.removeEventListener("resize", i), window.removeEventListener("orientationchange", r);
|
|
1084
1084
|
});
|
|
1085
1085
|
};
|
|
1086
|
-
function
|
|
1086
|
+
function gs(e, t = !0, s) {
|
|
1087
1087
|
const a = this, { enabled: n, params: i, animating: u } = a;
|
|
1088
1088
|
if (!n || a.destroyed)
|
|
1089
1089
|
return a;
|
|
1090
1090
|
typeof e > "u" && (e = a.params.speed);
|
|
1091
|
-
let
|
|
1092
|
-
i.slidesPerView === "auto" && i.slidesPerGroup === 1 && i.slidesPerGroupAuto && (
|
|
1093
|
-
const r = a.activeIndex < i.slidesPerGroupSkip ? 1 :
|
|
1091
|
+
let o = i.slidesPerGroup;
|
|
1092
|
+
i.slidesPerView === "auto" && i.slidesPerGroup === 1 && i.slidesPerGroupAuto && (o = Math.max(a.slidesPerViewDynamic("current", !0), 1));
|
|
1093
|
+
const r = a.activeIndex < i.slidesPerGroupSkip ? 1 : o, m = a.virtual && i.virtual?.enabled;
|
|
1094
1094
|
if (i.loop) {
|
|
1095
1095
|
if (u && !m && i.loopPreventsSliding)
|
|
1096
1096
|
return !1;
|
|
@@ -1101,8 +1101,8 @@ function ps(e, t = !0, s) {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
return i.rewind && a.isEnd ? a.slideTo(0, e, t, s) : a.slideTo(a.activeIndex + r, e, t, s);
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1105
|
-
const a = this, { params: n, snapGrid: i, slidesGrid: u, rtlTranslate:
|
|
1104
|
+
function Ts(e, t = !0, s) {
|
|
1105
|
+
const a = this, { params: n, snapGrid: i, slidesGrid: u, rtlTranslate: o, enabled: r, animating: m } = a;
|
|
1106
1106
|
if (!r || a.destroyed)
|
|
1107
1107
|
return a;
|
|
1108
1108
|
typeof e > "u" && (e = a.params.speed);
|
|
@@ -1112,16 +1112,16 @@ function ms(e, t = !0, s) {
|
|
|
1112
1112
|
return !1;
|
|
1113
1113
|
a.loopFix({ direction: "prev" }), a._clientLeft = a.wrapperEl.clientLeft;
|
|
1114
1114
|
}
|
|
1115
|
-
const c =
|
|
1115
|
+
const c = o ? a.translate : -a.translate;
|
|
1116
1116
|
function T(h) {
|
|
1117
1117
|
return h < 0 ? -Math.floor(Math.abs(h)) : Math.floor(h);
|
|
1118
1118
|
}
|
|
1119
|
-
const
|
|
1120
|
-
let v = i[l.indexOf(
|
|
1119
|
+
const d = T(c), l = i.map((h) => T(h)), g = n.freeMode && n.freeMode.enabled;
|
|
1120
|
+
let v = i[l.indexOf(d) - 1];
|
|
1121
1121
|
if (typeof v > "u" && (n.cssMode || g)) {
|
|
1122
1122
|
let h;
|
|
1123
1123
|
i.forEach((p, E) => {
|
|
1124
|
-
|
|
1124
|
+
d >= p && (h = E);
|
|
1125
1125
|
}), typeof h < "u" && (v = g ? i[h] : i[h > 0 ? h - 1 : h]);
|
|
1126
1126
|
}
|
|
1127
1127
|
let S = 0;
|
|
@@ -1134,25 +1134,25 @@ function ms(e, t = !0, s) {
|
|
|
1134
1134
|
}), !0;
|
|
1135
1135
|
return a.slideTo(S, e, t, s);
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1137
|
+
function Es(e, t = !0, s) {
|
|
1138
1138
|
const a = this;
|
|
1139
1139
|
if (!a.destroyed)
|
|
1140
1140
|
return typeof e > "u" && (e = a.params.speed), a.slideTo(a.activeIndex, e, t, s);
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1142
|
+
function vs(e = 0, t, s = !0, a, n) {
|
|
1143
1143
|
typeof e == "string" && (e = parseInt(e, 10));
|
|
1144
1144
|
const i = this;
|
|
1145
1145
|
let u = e;
|
|
1146
1146
|
u < 0 && (u = 0);
|
|
1147
|
-
const { params:
|
|
1148
|
-
if (!l && !a && !n || i.destroyed || i.animating &&
|
|
1147
|
+
const { params: o, snapGrid: r, slidesGrid: m, previousIndex: f, activeIndex: c, rtlTranslate: T, wrapperEl: d, enabled: l } = i;
|
|
1148
|
+
if (!l && !a && !n || i.destroyed || i.animating && o.preventInteractionOnTransition)
|
|
1149
1149
|
return !1;
|
|
1150
1150
|
typeof t > "u" && (t = i.params.speed);
|
|
1151
1151
|
const g = Math.min(i.params.slidesPerGroupSkip, u);
|
|
1152
1152
|
let v = g + Math.floor((u - g) / i.params.slidesPerGroup);
|
|
1153
1153
|
v >= r.length && (v = r.length - 1);
|
|
1154
1154
|
const S = -r[v];
|
|
1155
|
-
if (
|
|
1155
|
+
if (o.normalizeSlideIndex)
|
|
1156
1156
|
for (let A = 0; A < m.length; A += 1) {
|
|
1157
1157
|
const R = -Math.floor(S * 100), _ = Math.floor(m[A] * 100), P = Math.floor(m[A + 1] * 100);
|
|
1158
1158
|
typeof m[A + 1] < "u" ? R >= _ && R < P - (P - _) / 2 ? u = A : R >= _ && R < P && (u = A + 1) : R >= _ && (u = A);
|
|
@@ -1164,24 +1164,24 @@ function gs(e = 0, t, s = !0, a, n) {
|
|
|
1164
1164
|
u > c ? h = "next" : u < c ? h = "prev" : h = "reset";
|
|
1165
1165
|
const p = i.virtual && i.params.virtual?.enabled;
|
|
1166
1166
|
if (!(p && n) && (T && -S === i.translate || !T && S === i.translate))
|
|
1167
|
-
return i.updateActiveIndex(u),
|
|
1168
|
-
if (
|
|
1167
|
+
return i.updateActiveIndex(u), o.autoHeight && i.updateAutoHeight(), i.updateSlidesClasses(), o.effect !== "slide" && i.setTranslate(S), h !== "reset" && (i.transitionStart(s, h), i.transitionEnd(s, h)), !1;
|
|
1168
|
+
if (o.cssMode) {
|
|
1169
1169
|
const A = i.isHorizontal(), R = T ? S : -S;
|
|
1170
1170
|
return t === 0 ? (p && (i.wrapperEl.style.scrollSnapType = "none", i._immediateVirtual = !0), p && !i._cssModeVirtualInitialSet && (i.params.initialSlide ?? 0) > 0 ? (i._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
1171
|
-
|
|
1172
|
-
})) :
|
|
1171
|
+
d[A ? "scrollLeft" : "scrollTop"] = R;
|
|
1172
|
+
})) : d[A ? "scrollLeft" : "scrollTop"] = R, p && requestAnimationFrame(() => {
|
|
1173
1173
|
i.wrapperEl.style.scrollSnapType = "", i._immediateVirtual = !1;
|
|
1174
|
-
})) :
|
|
1174
|
+
})) : d.scrollTo({
|
|
1175
1175
|
[A ? "left" : "top"]: R,
|
|
1176
1176
|
behavior: "smooth"
|
|
1177
1177
|
}), !0;
|
|
1178
1178
|
}
|
|
1179
|
-
const I =
|
|
1179
|
+
const I = Et().isSafari;
|
|
1180
1180
|
return p && !n && I && i.isElement && i.virtual.update(!1, !1, u), i.setTransition(t), i.setTranslate(S), i.updateActiveIndex(u), i.updateSlidesClasses(), i.emit("beforeTransitionStart", t, a), i.transitionStart(s, h), t === 0 ? i.transitionEnd(s, h) : i.animating || (i.animating = !0, i.onSlideToWrapperTransitionEnd || (i.onSlideToWrapperTransitionEnd = function(R) {
|
|
1181
1181
|
!i || i.destroyed || R.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onSlideToWrapperTransitionEnd), i.onSlideToWrapperTransitionEnd = null, delete i.onSlideToWrapperTransitionEnd, i.transitionEnd(s, h));
|
|
1182
1182
|
}), i.wrapperEl.addEventListener("transitionend", i.onSlideToWrapperTransitionEnd)), !0;
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function Ss() {
|
|
1185
1185
|
const e = this;
|
|
1186
1186
|
if (e.destroyed)
|
|
1187
1187
|
return;
|
|
@@ -1189,34 +1189,34 @@ function Ts() {
|
|
|
1189
1189
|
if (a === void 0 || n === void 0)
|
|
1190
1190
|
return;
|
|
1191
1191
|
const i = t.slidesPerView === "auto" ? e.slidesPerViewDynamic() : t.slidesPerView;
|
|
1192
|
-
let u = e.getSlideIndexWhenGrid(n),
|
|
1192
|
+
let u = e.getSlideIndexWhenGrid(n), o;
|
|
1193
1193
|
const r = e.isElement ? "swiper-slide" : `.${t.slideClass}`, m = e.grid && e.params.grid && e.params.grid.rows > 1;
|
|
1194
1194
|
if (t.loop) {
|
|
1195
1195
|
if (e.animating)
|
|
1196
1196
|
return;
|
|
1197
|
-
|
|
1197
|
+
o = parseInt(a.getAttribute("data-swiper-slide-index"), 10), t.centeredSlides ? e.slideToLoop(o) : u > (m ? (e.slides.length - i) / 2 - (e.params.grid.rows - 1) : e.slides.length - i) ? (e.loopFix(), u = e.getSlideIndex(Q(s, `${r}[data-swiper-slide-index="${o}"]`)[0]), Se(() => {
|
|
1198
1198
|
e.slideTo(u);
|
|
1199
1199
|
})) : e.slideTo(u);
|
|
1200
1200
|
} else
|
|
1201
1201
|
e.slideTo(u);
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function bs(e, t = !0, s, a = 0.5) {
|
|
1204
1204
|
const n = this;
|
|
1205
1205
|
if (n.destroyed)
|
|
1206
1206
|
return;
|
|
1207
1207
|
typeof e > "u" && (e = n.params.speed);
|
|
1208
1208
|
let i = n.activeIndex;
|
|
1209
|
-
const u = Math.min(n.params.slidesPerGroupSkip, i),
|
|
1210
|
-
if (r >= n.snapGrid[
|
|
1211
|
-
const m = n.snapGrid[
|
|
1209
|
+
const u = Math.min(n.params.slidesPerGroupSkip, i), o = u + Math.floor((i - u) / n.params.slidesPerGroup), r = n.rtlTranslate ? n.translate : -n.translate;
|
|
1210
|
+
if (r >= n.snapGrid[o]) {
|
|
1211
|
+
const m = n.snapGrid[o], f = n.snapGrid[o + 1];
|
|
1212
1212
|
r - m > (f - m) * a && (i += n.params.slidesPerGroup);
|
|
1213
1213
|
} else {
|
|
1214
|
-
const m = n.snapGrid[
|
|
1214
|
+
const m = n.snapGrid[o - 1], f = n.snapGrid[o];
|
|
1215
1215
|
r - m <= (f - m) * a && (i -= n.params.slidesPerGroup);
|
|
1216
1216
|
}
|
|
1217
1217
|
return i = Math.max(i, 0), i = Math.min(i, n.slidesGrid.length - 1), n.slideTo(i, e, t, s);
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function ys(e = 0, t, s = !0, a) {
|
|
1220
1220
|
typeof e == "string" && (e = parseInt(e, 10));
|
|
1221
1221
|
const n = this;
|
|
1222
1222
|
if (n.destroyed)
|
|
@@ -1228,22 +1228,22 @@ function vs(e = 0, t, s = !0, a) {
|
|
|
1228
1228
|
if (n.virtual && n.params.virtual?.enabled)
|
|
1229
1229
|
u = u + (n.virtual.slidesBefore ?? 0);
|
|
1230
1230
|
else {
|
|
1231
|
-
let
|
|
1231
|
+
let o;
|
|
1232
1232
|
if (i) {
|
|
1233
1233
|
const g = u * n.params.grid.rows;
|
|
1234
|
-
|
|
1234
|
+
o = n.slides.find((S) => Number(S.getAttribute("data-swiper-slide-index")) === g)?.column ?? 0;
|
|
1235
1235
|
} else
|
|
1236
|
-
|
|
1236
|
+
o = n.getSlideIndexByData(u);
|
|
1237
1237
|
const r = i ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, { centeredSlides: m, slidesOffsetBefore: f, slidesOffsetAfter: c } = n.params, T = m || !!f || !!c;
|
|
1238
|
-
let
|
|
1239
|
-
n.params.slidesPerView === "auto" ?
|
|
1240
|
-
let l = r -
|
|
1241
|
-
if (T && (l = l ||
|
|
1242
|
-
const g = T ?
|
|
1238
|
+
let d;
|
|
1239
|
+
n.params.slidesPerView === "auto" ? d = n.slidesPerViewDynamic() : (d = Math.ceil(parseFloat(String(n.params.slidesPerView))), T && d % 2 === 0 && (d = d + 1));
|
|
1240
|
+
let l = r - o < d;
|
|
1241
|
+
if (T && (l = l || o < Math.ceil(d / 2)), a && T && n.params.slidesPerView !== "auto" && !i && (l = !1), l) {
|
|
1242
|
+
const g = T ? o < n.activeIndex ? "prev" : "next" : o - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
|
|
1243
1243
|
n.loopFix({
|
|
1244
1244
|
direction: g,
|
|
1245
1245
|
slideTo: !0,
|
|
1246
|
-
activeSlideIndex: g === "next" ?
|
|
1246
|
+
activeSlideIndex: g === "next" ? o + 1 : o - r + 1,
|
|
1247
1247
|
slideRealIndex: g === "next" ? n.realIndex : void 0
|
|
1248
1248
|
});
|
|
1249
1249
|
}
|
|
@@ -1257,38 +1257,38 @@ function vs(e = 0, t, s = !0, a) {
|
|
|
1257
1257
|
n.slideTo(u, t, s, a);
|
|
1258
1258
|
}), n;
|
|
1259
1259
|
}
|
|
1260
|
-
var
|
|
1261
|
-
slideTo:
|
|
1262
|
-
slideToLoop:
|
|
1263
|
-
slideNext:
|
|
1264
|
-
slidePrev:
|
|
1265
|
-
slideReset:
|
|
1266
|
-
slideToClosest:
|
|
1267
|
-
slideToClickedSlide:
|
|
1260
|
+
var As = {
|
|
1261
|
+
slideTo: vs,
|
|
1262
|
+
slideToLoop: ys,
|
|
1263
|
+
slideNext: gs,
|
|
1264
|
+
slidePrev: Ts,
|
|
1265
|
+
slideReset: Es,
|
|
1266
|
+
slideToClosest: bs,
|
|
1267
|
+
slideToClickedSlide: Ss
|
|
1268
1268
|
};
|
|
1269
|
-
function
|
|
1269
|
+
function _s(e, t) {
|
|
1270
1270
|
const s = this;
|
|
1271
1271
|
s.params.cssMode || (s.wrapperEl.style.transitionDuration = `${e}ms`, s.wrapperEl.style.transitionDelay = e === 0 ? "0ms" : ""), s.emit("setTransition", e, t);
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function bt({ swiper: e, runCallbacks: t, direction: s, step: a }) {
|
|
1274
1274
|
const { activeIndex: n, previousIndex: i } = e;
|
|
1275
1275
|
let u = s;
|
|
1276
1276
|
u || (n > i ? u = "next" : n < i ? u = "prev" : u = "reset"), e.emit(`transition${a}`), t && u === "reset" ? e.emit(`slideResetTransition${a}`) : t && n !== i && (e.emit(`slideChangeTransition${a}`), u === "next" ? e.emit(`slideNextTransition${a}`) : e.emit(`slidePrevTransition${a}`));
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1278
|
+
function xs(e = !0, t) {
|
|
1279
1279
|
const s = this, { params: a } = s;
|
|
1280
|
-
s.animating = !1, !a.cssMode && (s.setTransition(0),
|
|
1280
|
+
s.animating = !1, !a.cssMode && (s.setTransition(0), bt({ swiper: s, runCallbacks: e, direction: t, step: "End" }));
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function Ls(e = !0, t) {
|
|
1283
1283
|
const s = this, { params: a } = s;
|
|
1284
|
-
a.cssMode || (a.autoHeight && s.updateAutoHeight(),
|
|
1284
|
+
a.cssMode || (a.autoHeight && s.updateAutoHeight(), bt({ swiper: s, runCallbacks: e, direction: t, step: "Start" }));
|
|
1285
1285
|
}
|
|
1286
|
-
var
|
|
1287
|
-
setTransition:
|
|
1288
|
-
transitionStart:
|
|
1289
|
-
transitionEnd:
|
|
1286
|
+
var Cs = {
|
|
1287
|
+
setTransition: _s,
|
|
1288
|
+
transitionStart: Ls,
|
|
1289
|
+
transitionEnd: xs
|
|
1290
1290
|
};
|
|
1291
|
-
function
|
|
1291
|
+
function Ms(e = this.isHorizontal() ? "x" : "y") {
|
|
1292
1292
|
const t = this, { params: s, rtlTranslate: a, translate: n, wrapperEl: i } = t;
|
|
1293
1293
|
if (s.virtualTranslate)
|
|
1294
1294
|
return a ? -n : n;
|
|
@@ -1297,30 +1297,30 @@ function xs(e = this.isHorizontal() ? "x" : "y") {
|
|
|
1297
1297
|
let u = Ke(i, e);
|
|
1298
1298
|
return u += t.cssOverflowAdjustment(), a && (u = -u), u || 0;
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1300
|
+
function Is() {
|
|
1301
1301
|
return -this.snapGrid[this.snapGrid.length - 1];
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1303
|
+
function Rs() {
|
|
1304
1304
|
return -this.snapGrid[0];
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1306
|
+
function ws(e, t) {
|
|
1307
1307
|
const s = this, { rtlTranslate: a, params: n, wrapperEl: i, progress: u } = s;
|
|
1308
|
-
let
|
|
1308
|
+
let o = 0, r = 0;
|
|
1309
1309
|
const m = 0;
|
|
1310
|
-
s.isHorizontal() ?
|
|
1310
|
+
s.isHorizontal() ? o = a ? -e : e : r = e, n.roundLengths && (o = Math.floor(o), r = Math.floor(r)), s.previousTranslate = s.translate, s.translate = s.isHorizontal() ? o : r, n.cssMode ? i[s.isHorizontal() ? "scrollLeft" : "scrollTop"] = s.isHorizontal() ? -o : -r : n.virtualTranslate || (s.isHorizontal() ? o -= s.cssOverflowAdjustment() : r -= s.cssOverflowAdjustment(), i.style.transform = `translate3d(${o}px, ${r}px, ${m}px)`);
|
|
1311
1311
|
let f;
|
|
1312
1312
|
const c = s.maxTranslate() - s.minTranslate();
|
|
1313
1313
|
c === 0 ? f = 0 : f = (e - s.minTranslate()) / c, f !== u && s.updateProgress(e), s.emit("setTranslate", s.translate, t);
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1316
|
-
const i = this, { params: u, wrapperEl:
|
|
1315
|
+
function Ps(e = 0, t = this.params.speed, s = !0, a = !0, n) {
|
|
1316
|
+
const i = this, { params: u, wrapperEl: o } = i;
|
|
1317
1317
|
if (i.animating && u.preventInteractionOnTransition)
|
|
1318
1318
|
return !1;
|
|
1319
1319
|
const r = i.minTranslate(), m = i.maxTranslate();
|
|
1320
1320
|
let f;
|
|
1321
1321
|
if (a && e > r ? f = r : a && e < m ? f = m : f = e, i.updateProgress(f), u.cssMode) {
|
|
1322
1322
|
const c = i.isHorizontal();
|
|
1323
|
-
return t === 0 ?
|
|
1323
|
+
return t === 0 ? o[c ? "scrollLeft" : "scrollTop"] = -f : o.scrollTo({
|
|
1324
1324
|
[c ? "left" : "top"]: -f,
|
|
1325
1325
|
behavior: "smooth"
|
|
1326
1326
|
}), !0;
|
|
@@ -1329,36 +1329,36 @@ function Is(e = 0, t = this.params.speed, s = !0, a = !0, n) {
|
|
|
1329
1329
|
!i || i.destroyed || T.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onTranslateToWrapperTransitionEnd), i.onTranslateToWrapperTransitionEnd = null, delete i.onTranslateToWrapperTransitionEnd, i.animating = !1, s && i.emit("transitionEnd"));
|
|
1330
1330
|
}), i.wrapperEl.addEventListener("transitionend", i.onTranslateToWrapperTransitionEnd))), !0;
|
|
1331
1331
|
}
|
|
1332
|
-
var
|
|
1333
|
-
getTranslate:
|
|
1334
|
-
setTranslate:
|
|
1335
|
-
minTranslate:
|
|
1336
|
-
maxTranslate:
|
|
1337
|
-
translateTo:
|
|
1332
|
+
var Os = {
|
|
1333
|
+
getTranslate: Ms,
|
|
1334
|
+
setTranslate: ws,
|
|
1335
|
+
minTranslate: Rs,
|
|
1336
|
+
maxTranslate: Is,
|
|
1337
|
+
translateTo: Ps
|
|
1338
1338
|
};
|
|
1339
|
-
function
|
|
1339
|
+
function Ds(e) {
|
|
1340
1340
|
const { slidesGrid: t, params: s } = e, a = e.rtlTranslate ? e.translate : -e.translate;
|
|
1341
1341
|
let n;
|
|
1342
1342
|
for (let i = 0; i < t.length; i += 1)
|
|
1343
1343
|
typeof t[i + 1] < "u" ? a >= t[i] && a < t[i + 1] - (t[i + 1] - t[i]) / 2 ? n = i : a >= t[i] && a < t[i + 1] && (n = i + 1) : a >= t[i] && (n = i);
|
|
1344
1344
|
return s.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1347
|
-
const t = this, s = t.rtlTranslate ? t.translate : -t.translate, { snapGrid: a, params: n, activeIndex: i, realIndex: u, snapIndex:
|
|
1346
|
+
function Ns(e) {
|
|
1347
|
+
const t = this, s = t.rtlTranslate ? t.translate : -t.translate, { snapGrid: a, params: n, activeIndex: i, realIndex: u, snapIndex: o } = t;
|
|
1348
1348
|
let r = e, m;
|
|
1349
|
-
const f = (
|
|
1349
|
+
const f = (d) => {
|
|
1350
1350
|
const l = t.virtual.slides;
|
|
1351
|
-
let g =
|
|
1351
|
+
let g = d - (t.virtual.slidesBefore ?? 0);
|
|
1352
1352
|
return g < 0 && (g = l.length + g), g >= l.length && (g -= l.length), g;
|
|
1353
1353
|
};
|
|
1354
|
-
if (typeof r > "u" && (r =
|
|
1354
|
+
if (typeof r > "u" && (r = Ds(t)), a.indexOf(s) >= 0)
|
|
1355
1355
|
m = a.indexOf(s);
|
|
1356
1356
|
else {
|
|
1357
|
-
const
|
|
1358
|
-
m =
|
|
1357
|
+
const d = Math.min(n.slidesPerGroupSkip, r);
|
|
1358
|
+
m = d + Math.floor((r - d) / n.slidesPerGroup);
|
|
1359
1359
|
}
|
|
1360
1360
|
if (m >= a.length && (m = a.length - 1), r === i && !t.params.loop) {
|
|
1361
|
-
m !==
|
|
1361
|
+
m !== o && (t.snapIndex = m, t.emit("snapIndexChange"));
|
|
1362
1362
|
return;
|
|
1363
1363
|
}
|
|
1364
1364
|
if (r === i && t.params.loop && t.virtual && t.params.virtual?.enabled) {
|
|
@@ -1370,16 +1370,16 @@ function Ps(e) {
|
|
|
1370
1370
|
if (t.virtual && n.virtual?.enabled)
|
|
1371
1371
|
n.loop ? T = f(r) : T = r;
|
|
1372
1372
|
else if (c) {
|
|
1373
|
-
const
|
|
1374
|
-
let l = parseInt(
|
|
1375
|
-
Number.isNaN(l) && (l = Math.max(t.slides.indexOf(
|
|
1373
|
+
const d = t.slides.find((g) => g.column === r);
|
|
1374
|
+
let l = parseInt(d.getAttribute("data-swiper-slide-index"), 10);
|
|
1375
|
+
Number.isNaN(l) && (l = Math.max(t.slides.indexOf(d), 0)), T = Math.floor(l / n.grid.rows);
|
|
1376
1376
|
} else if (t.slides[r]) {
|
|
1377
|
-
const
|
|
1378
|
-
|
|
1377
|
+
const d = t.slides[r].getAttribute("data-swiper-slide-index");
|
|
1378
|
+
d ? T = parseInt(d, 10) : T = r;
|
|
1379
1379
|
} else
|
|
1380
1380
|
T = r;
|
|
1381
1381
|
Object.assign(t, {
|
|
1382
|
-
previousSnapIndex:
|
|
1382
|
+
previousSnapIndex: o,
|
|
1383
1383
|
snapIndex: m,
|
|
1384
1384
|
previousRealIndex: u,
|
|
1385
1385
|
realIndex: T,
|
|
@@ -1387,46 +1387,46 @@ function Ps(e) {
|
|
|
1387
1387
|
activeIndex: r
|
|
1388
1388
|
}), t.initialized && Qe(t), t.emit("activeIndexChange"), t.emit("snapIndexChange"), (t.initialized || t.params.runCallbacksOnInit) && (u !== T && t.emit("realIndexChange"), t.emit("slideChange"));
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function zs(e) {
|
|
1391
1391
|
const t = this, s = [], a = t.virtual && t.params.virtual?.enabled;
|
|
1392
1392
|
let n = 0, i;
|
|
1393
1393
|
typeof e == "number" ? t.setTransition(e) : e === !0 && t.setTransition(t.params.speed);
|
|
1394
|
-
const u = (
|
|
1394
|
+
const u = (o) => a ? t.slides[t.getSlideIndexByData(o)] : t.slides[o];
|
|
1395
1395
|
if (t.params.slidesPerView !== "auto" && t.params.slidesPerView > 1)
|
|
1396
1396
|
if (t.params.centeredSlides)
|
|
1397
|
-
(t.visibleSlides || []).forEach((
|
|
1398
|
-
s.push(
|
|
1397
|
+
(t.visibleSlides || []).forEach((o) => {
|
|
1398
|
+
s.push(o);
|
|
1399
1399
|
});
|
|
1400
1400
|
else
|
|
1401
1401
|
for (i = 0; i < Math.ceil(t.params.slidesPerView); i += 1) {
|
|
1402
|
-
const
|
|
1403
|
-
if (
|
|
1402
|
+
const o = t.activeIndex + i;
|
|
1403
|
+
if (o > t.slides.length && !a)
|
|
1404
1404
|
break;
|
|
1405
|
-
const r = u(
|
|
1405
|
+
const r = u(o);
|
|
1406
1406
|
r && s.push(r);
|
|
1407
1407
|
}
|
|
1408
1408
|
else {
|
|
1409
|
-
const
|
|
1410
|
-
|
|
1409
|
+
const o = u(t.activeIndex);
|
|
1410
|
+
o && s.push(o);
|
|
1411
1411
|
}
|
|
1412
1412
|
for (i = 0; i < s.length; i += 1)
|
|
1413
1413
|
if (typeof s[i] < "u") {
|
|
1414
|
-
const
|
|
1415
|
-
n =
|
|
1414
|
+
const o = s[i].offsetHeight;
|
|
1415
|
+
n = o > n ? o : n;
|
|
1416
1416
|
}
|
|
1417
1417
|
(n || n === 0) && (t.wrapperEl.style.height = `${n}px`);
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function $s(e, t) {
|
|
1420
1420
|
const s = this, a = s.params;
|
|
1421
1421
|
let n = e.closest(`.${a.slideClass}, swiper-slide`);
|
|
1422
|
-
!n && s.isElement && t && t.length > 1 && t.includes(e) && [...t.slice(t.indexOf(e) + 1, t.length)].forEach((
|
|
1423
|
-
!n &&
|
|
1422
|
+
!n && s.isElement && t && t.length > 1 && t.includes(e) && [...t.slice(t.indexOf(e) + 1, t.length)].forEach((o) => {
|
|
1423
|
+
!n && o.matches && o.matches(`.${a.slideClass}, swiper-slide`) && (n = o);
|
|
1424
1424
|
});
|
|
1425
1425
|
let i = !1, u;
|
|
1426
1426
|
if (n) {
|
|
1427
|
-
for (let
|
|
1428
|
-
if (s.slides[
|
|
1429
|
-
i = !0, u =
|
|
1427
|
+
for (let o = 0; o < s.slides.length; o += 1)
|
|
1428
|
+
if (s.slides[o] === n) {
|
|
1429
|
+
i = !0, u = o;
|
|
1430
1430
|
break;
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
@@ -1438,14 +1438,14 @@ function Ds(e, t) {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
a.slideToClickedSlide && s.clickedIndex !== void 0 && s.clickedIndex !== s.activeIndex && s.slideToClickedSlide();
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1441
|
+
function ks(e) {
|
|
1442
1442
|
const t = this;
|
|
1443
1443
|
if (typeof e > "u") {
|
|
1444
1444
|
const f = t.rtlTranslate ? -1 : 1;
|
|
1445
1445
|
e = t && t.translate && t.translate * f || 0;
|
|
1446
1446
|
}
|
|
1447
1447
|
const s = t.params, a = t.maxTranslate() - t.minTranslate();
|
|
1448
|
-
let { progress: n, isBeginning: i, isEnd: u } = t,
|
|
1448
|
+
let { progress: n, isBeginning: i, isEnd: u } = t, o = t.progressLoop;
|
|
1449
1449
|
const r = i, m = u;
|
|
1450
1450
|
if (a === 0)
|
|
1451
1451
|
n = 0, i = !0, u = !0;
|
|
@@ -1455,17 +1455,17 @@ function Ns(e) {
|
|
|
1455
1455
|
i = f || n <= 0, u = c || n >= 1, f && (n = 0), c && (n = 1);
|
|
1456
1456
|
}
|
|
1457
1457
|
if (s.loop) {
|
|
1458
|
-
const f = t.getSlideIndexByData(0), c = t.getSlideIndexByData(t.slides.length - 1), T = t.slidesGrid[f],
|
|
1459
|
-
g >= T ?
|
|
1458
|
+
const f = t.getSlideIndexByData(0), c = t.getSlideIndexByData(t.slides.length - 1), T = t.slidesGrid[f], d = t.slidesGrid[c], l = t.slidesGrid[t.slidesGrid.length - 1], g = Math.abs(e);
|
|
1459
|
+
g >= T ? o = (g - T) / l : o = (g + l - d) / l, o > 1 && (o -= 1);
|
|
1460
1460
|
}
|
|
1461
1461
|
Object.assign(t, {
|
|
1462
1462
|
progress: n,
|
|
1463
|
-
progressLoop:
|
|
1463
|
+
progressLoop: o,
|
|
1464
1464
|
isBeginning: i,
|
|
1465
1465
|
isEnd: u
|
|
1466
1466
|
}), (s.watchSlidesProgress || s.centeredSlides && s.autoHeight) && t.updateSlidesProgress(e), i && !r && t.emit("reachBeginning toEdge"), u && !m && t.emit("reachEnd toEdge"), (r && !i || m && !u) && t.emit("fromEdge"), t.emit("progress", n);
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1468
|
+
function Gs() {
|
|
1469
1469
|
const e = this;
|
|
1470
1470
|
let t, s;
|
|
1471
1471
|
const a = e.el;
|
|
@@ -1475,14 +1475,14 @@ function zs() {
|
|
|
1475
1475
|
size: e.isHorizontal() ? t : s
|
|
1476
1476
|
}));
|
|
1477
1477
|
}
|
|
1478
|
-
function
|
|
1478
|
+
function Bs() {
|
|
1479
1479
|
const e = this;
|
|
1480
1480
|
function t(b, M) {
|
|
1481
1481
|
return parseFloat(b.getPropertyValue(e.getDirectionLabel(M)) || "0");
|
|
1482
1482
|
}
|
|
1483
|
-
const s = e.params, { wrapperEl: a, slidesEl: n, rtlTranslate: i, wrongRTL: u } = e,
|
|
1483
|
+
const s = e.params, { wrapperEl: a, slidesEl: n, rtlTranslate: i, wrongRTL: u } = e, o = !!(e.virtual && s.virtual?.enabled), r = o ? e.virtual.slides.length : e.slides.length, m = Q(n, `.${e.params.slideClass}, swiper-slide`), f = o ? e.virtual.slides.length : m.length;
|
|
1484
1484
|
let c = [];
|
|
1485
|
-
const T = [],
|
|
1485
|
+
const T = [], d = [], l = (b) => typeof b == "function" ? b.call(e) : b, g = l(s.slidesOffsetBefore), v = l(s.slidesOffsetAfter), S = e.snapGrid.length, h = e.slidesGrid.length, p = e.size - g - v;
|
|
1486
1486
|
let E = s.spaceBetween, y = -g, I = 0, A = 0;
|
|
1487
1487
|
if (typeof p > "u")
|
|
1488
1488
|
return;
|
|
@@ -1497,7 +1497,7 @@ function $s() {
|
|
|
1497
1497
|
_ = 0;
|
|
1498
1498
|
const M = m[b];
|
|
1499
1499
|
if (!(M && (R && e.grid.updateSlide(b, M, m), ce(M, "display") === "none"))) {
|
|
1500
|
-
if (
|
|
1500
|
+
if (o && s.slidesPerView === "auto")
|
|
1501
1501
|
s.virtual?.slidesPerViewAutoSlideSize && (_ = s.virtual.slidesPerViewAutoSlideSize), _ && M && (s.roundLengths && (_ = Math.floor(_)), M.style[e.getDirectionLabel("width")] = `${_}px`);
|
|
1502
1502
|
else if (s.slidesPerView === "auto") {
|
|
1503
1503
|
P && (M.style[e.getDirectionLabel("width")] = "");
|
|
@@ -1509,14 +1509,14 @@ function $s() {
|
|
|
1509
1509
|
if (k && k === "border-box")
|
|
1510
1510
|
_ = L + z + V;
|
|
1511
1511
|
else {
|
|
1512
|
-
const { clientWidth:
|
|
1513
|
-
_ = L + N + $ + z + V + (q -
|
|
1512
|
+
const { clientWidth: Y, offsetWidth: q } = M;
|
|
1513
|
+
_ = L + N + $ + z + V + (q - Y);
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
1516
|
x && (M.style.transform = x), w && (M.style.webkitTransform = w), s.roundLengths && (_ = Math.floor(_));
|
|
1517
1517
|
} else
|
|
1518
1518
|
_ = (p - (s.slidesPerView - 1) * E) / s.slidesPerView, s.roundLengths && (_ = Math.floor(_)), M && (M.style[e.getDirectionLabel("width")] = `${_}px`);
|
|
1519
|
-
M && (M.swiperSlideSize = _),
|
|
1519
|
+
M && (M.swiperSlideSize = _), d.push(_), s.centeredSlides ? (y = y + _ / 2 + I / 2 + E, I === 0 && b !== 0 && (y = y - p / 2 - E), b === 0 && (y = y - p / 2 - E), Math.abs(y) < 1 / 1e3 && (y = 0), s.roundLengths && (y = Math.floor(y)), A % s.slidesPerGroup === 0 && c.push(y), T.push(y)) : (s.roundLengths && (y = Math.floor(y)), (A - Math.min(e.params.slidesPerGroupSkip, A)) % e.params.slidesPerGroup === 0 && c.push(y), T.push(y), y = y + _ + E), e.virtualSize += _ + E, I = _, A += 1;
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
1522
|
if (e.virtualSize = Math.max(e.virtualSize, p) + v, i && u && (s.effect === "slide" || s.effect === "coverflow") && (a.style.width = `${e.virtualSize + E}px`), s.setWrapperSize && (a.style[e.getDirectionLabel("width")] = `${e.virtualSize + E}px`), R && e.grid.updateWrapperSize(_, c), !s.centeredSlides) {
|
|
@@ -1527,8 +1527,8 @@ function $s() {
|
|
|
1527
1527
|
if (s.slidesPerView === "auto") {
|
|
1528
1528
|
w = 1;
|
|
1529
1529
|
let L = 0;
|
|
1530
|
-
for (let N =
|
|
1531
|
-
w =
|
|
1530
|
+
for (let N = d.length - 1; N >= 0 && (L += d[N] + (N < d.length - 1 ? E : 0), L <= p); N -= 1)
|
|
1531
|
+
w = d.length - N;
|
|
1532
1532
|
} else
|
|
1533
1533
|
w = Math.floor(s.slidesPerView);
|
|
1534
1534
|
C = Math.max(f - w, 0);
|
|
@@ -1540,8 +1540,8 @@ function $s() {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
c = x, Math.floor(e.virtualSize - p) - Math.floor(c[c.length - 1]) > 1 && (M || c.push(e.virtualSize - p));
|
|
1542
1542
|
}
|
|
1543
|
-
if (
|
|
1544
|
-
const b =
|
|
1543
|
+
if (o && s.loop) {
|
|
1544
|
+
const b = d[0] + E, M = e.virtual.slidesBefore ?? 0, C = e.virtual.slidesAfter ?? 0, x = M + C;
|
|
1545
1545
|
if (s.slidesPerGroup > 1) {
|
|
1546
1546
|
const w = Math.ceil(x / s.slidesPerGroup), L = b * s.slidesPerGroup;
|
|
1547
1547
|
for (let N = 0; N < w; N += 1)
|
|
@@ -1558,7 +1558,7 @@ function $s() {
|
|
|
1558
1558
|
}
|
|
1559
1559
|
if (s.centeredSlides && s.centeredSlidesBounds) {
|
|
1560
1560
|
let b = 0;
|
|
1561
|
-
|
|
1561
|
+
d.forEach((C) => {
|
|
1562
1562
|
b += C + (E || 0);
|
|
1563
1563
|
}), b -= E;
|
|
1564
1564
|
const M = b > p ? b - p : 0;
|
|
@@ -1566,7 +1566,7 @@ function $s() {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
if (s.centerInsufficientSlides) {
|
|
1568
1568
|
let b = 0;
|
|
1569
|
-
if (
|
|
1569
|
+
if (d.forEach((M) => {
|
|
1570
1570
|
b += M + (E || 0);
|
|
1571
1571
|
}), b -= E, b < p) {
|
|
1572
1572
|
const M = (p - b) / 2;
|
|
@@ -1581,13 +1581,13 @@ function $s() {
|
|
|
1581
1581
|
slides: m,
|
|
1582
1582
|
snapGrid: c,
|
|
1583
1583
|
slidesGrid: T,
|
|
1584
|
-
slidesSizesGrid:
|
|
1584
|
+
slidesSizesGrid: d
|
|
1585
1585
|
}), s.centeredSlides && s.cssMode && !s.centeredSlidesBounds) {
|
|
1586
|
-
fe(a, "--swiper-centered-offset-before", `${-c[0]}px`), fe(a, "--swiper-centered-offset-after", `${e.size / 2 -
|
|
1586
|
+
fe(a, "--swiper-centered-offset-before", `${-c[0]}px`), fe(a, "--swiper-centered-offset-after", `${e.size / 2 - d[d.length - 1] / 2}px`);
|
|
1587
1587
|
const b = -e.snapGrid[0], M = -e.slidesGrid[0];
|
|
1588
1588
|
e.snapGrid = e.snapGrid.map((C) => C + b), e.slidesGrid = e.slidesGrid.map((C) => C + M);
|
|
1589
1589
|
}
|
|
1590
|
-
if (f !== r && e.emit("slidesLengthChange"), c.length !== S && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), T.length !== h && e.emit("slidesGridLengthChange"), s.watchSlidesProgress && e.updateSlidesOffset(), e.emit("slidesUpdated"), !
|
|
1590
|
+
if (f !== r && e.emit("slidesLengthChange"), c.length !== S && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), T.length !== h && e.emit("slidesGridLengthChange"), s.watchSlidesProgress && e.updateSlidesOffset(), e.emit("slidesUpdated"), !o && !s.cssMode && (s.effect === "slide" || s.effect === "fade")) {
|
|
1591
1591
|
const b = `${s.containerModifierClass}backface-hidden`, M = e.el.classList.contains(b);
|
|
1592
1592
|
f <= s.maxBackfaceHiddenSlides ? M || e.el.classList.add(b) : M && e.el.classList.remove(b);
|
|
1593
1593
|
}
|
|
@@ -1595,22 +1595,22 @@ function $s() {
|
|
|
1595
1595
|
const qe = (e, t, s) => {
|
|
1596
1596
|
t && !e.classList.contains(s) ? e.classList.add(s) : !t && e.classList.contains(s) && e.classList.remove(s);
|
|
1597
1597
|
};
|
|
1598
|
-
function
|
|
1599
|
-
const e = this, { slides: t, params: s, slidesEl: a, activeIndex: n } = e, i = !!(e.virtual && s.virtual?.enabled), u = e.grid && s.grid && s.grid.rows > 1,
|
|
1598
|
+
function Hs() {
|
|
1599
|
+
const e = this, { slides: t, params: s, slidesEl: a, activeIndex: n } = e, i = !!(e.virtual && s.virtual?.enabled), u = e.grid && s.grid && s.grid.rows > 1, o = (c) => Q(a, `.${s.slideClass}${c}, swiper-slide${c}`)[0];
|
|
1600
1600
|
let r, m, f;
|
|
1601
1601
|
if (i)
|
|
1602
1602
|
if (s.loop) {
|
|
1603
1603
|
const c = e.virtual.slides;
|
|
1604
1604
|
let T = n - (e.virtual.slidesBefore ?? 0);
|
|
1605
|
-
T < 0 && (T = c.length + T), T >= c.length && (T -= c.length), r =
|
|
1605
|
+
T < 0 && (T = c.length + T), T >= c.length && (T -= c.length), r = o(`[data-swiper-slide-index="${T}"]`);
|
|
1606
1606
|
} else
|
|
1607
|
-
r =
|
|
1607
|
+
r = o(`[data-swiper-slide-index="${n}"]`);
|
|
1608
1608
|
else u ? (r = t.find((c) => c.column === n), f = t.find((c) => c.column === n + 1), m = t.find((c) => c.column === n - 1)) : r = t[n];
|
|
1609
|
-
r && (u || (f =
|
|
1609
|
+
r && (u || (f = Dt(r, `.${s.slideClass}, swiper-slide`)[0], s.loop && !f && (f = t[0]), m = Ot(r, `.${s.slideClass}, swiper-slide`)[0], s.loop && !m === 0 && (m = t[t.length - 1]))), t.forEach((c) => {
|
|
1610
1610
|
qe(c, c === r, s.slideActiveClass), qe(c, c === f, s.slideNextClass), qe(c, c === m, s.slidePrevClass);
|
|
1611
1611
|
}), e.emitSlidesClasses();
|
|
1612
1612
|
}
|
|
1613
|
-
function
|
|
1613
|
+
function Vs() {
|
|
1614
1614
|
const e = this, t = e.slides, s = e.isElement ? e.isHorizontal() ? e.wrapperEl.offsetLeft : e.wrapperEl.offsetTop : 0;
|
|
1615
1615
|
for (let a = 0; a < t.length; a += 1)
|
|
1616
1616
|
t[a].swiperSlideOffset = (e.isHorizontal() ? t[a].offsetLeft : t[a].offsetTop) - s - e.cssOverflowAdjustment();
|
|
@@ -1618,46 +1618,46 @@ function Gs() {
|
|
|
1618
1618
|
const rt = (e, t, s) => {
|
|
1619
1619
|
t && !e.classList.contains(s) ? e.classList.add(s) : !t && e.classList.contains(s) && e.classList.remove(s);
|
|
1620
1620
|
};
|
|
1621
|
-
function
|
|
1621
|
+
function Ws(e = this && this.translate || 0) {
|
|
1622
1622
|
const t = this, s = t.params, { slides: a, rtlTranslate: n, snapGrid: i } = t;
|
|
1623
1623
|
if (a.length === 0)
|
|
1624
1624
|
return;
|
|
1625
1625
|
typeof a[0].swiperSlideOffset > "u" && t.updateSlidesOffset();
|
|
1626
1626
|
let u = -e;
|
|
1627
1627
|
n && (u = e), t.visibleSlidesIndexes = [], t.visibleSlides = [];
|
|
1628
|
-
let
|
|
1629
|
-
typeof
|
|
1628
|
+
let o = s.spaceBetween;
|
|
1629
|
+
typeof o == "string" && o.indexOf("%") >= 0 ? o = parseFloat(o.replace("%", "")) / 100 * t.size : typeof o == "string" && (o = parseFloat(o));
|
|
1630
1630
|
for (let r = 0; r < a.length; r += 1) {
|
|
1631
1631
|
const m = a[r];
|
|
1632
1632
|
let f = m.swiperSlideOffset ?? 0;
|
|
1633
1633
|
s.cssMode && s.centeredSlides && (f -= a[0].swiperSlideOffset ?? 0);
|
|
1634
|
-
const c = m.swiperSlideSize ?? 0, T = (u + (s.centeredSlides ? t.minTranslate() : 0) - f) / (c +
|
|
1635
|
-
S && (t.visibleSlides.push(m), t.visibleSlidesIndexes.push(r)), rt(m, S, s.slideVisibleClass), rt(m, v, s.slideFullyVisibleClass), m.progress = n ? -T : T, m.originalProgress = n ? -
|
|
1636
|
-
}
|
|
1637
|
-
}
|
|
1638
|
-
var
|
|
1639
|
-
updateSize:
|
|
1640
|
-
updateSlides:
|
|
1641
|
-
updateAutoHeight:
|
|
1642
|
-
updateSlidesOffset:
|
|
1643
|
-
updateSlidesProgress:
|
|
1644
|
-
updateProgress:
|
|
1645
|
-
updateSlidesClasses:
|
|
1646
|
-
updateActiveIndex:
|
|
1647
|
-
updateClickedSlide:
|
|
1634
|
+
const c = m.swiperSlideSize ?? 0, T = (u + (s.centeredSlides ? t.minTranslate() : 0) - f) / (c + o), d = (u - i[0] + (s.centeredSlides ? t.minTranslate() : 0) - f) / (c + o), l = -(u - f), g = l + t.slidesSizesGrid[r], v = l >= 0 && l <= t.size - t.slidesSizesGrid[r], S = l >= 0 && l < t.size - 1 || g > 1 && g <= t.size || l <= 0 && g >= t.size;
|
|
1635
|
+
S && (t.visibleSlides.push(m), t.visibleSlidesIndexes.push(r)), rt(m, S, s.slideVisibleClass), rt(m, v, s.slideFullyVisibleClass), m.progress = n ? -T : T, m.originalProgress = n ? -d : d;
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
var Ys = {
|
|
1639
|
+
updateSize: Gs,
|
|
1640
|
+
updateSlides: Bs,
|
|
1641
|
+
updateAutoHeight: zs,
|
|
1642
|
+
updateSlidesOffset: Vs,
|
|
1643
|
+
updateSlidesProgress: Ws,
|
|
1644
|
+
updateProgress: ks,
|
|
1645
|
+
updateSlidesClasses: Hs,
|
|
1646
|
+
updateActiveIndex: Ns,
|
|
1647
|
+
updateClickedSlide: $s
|
|
1648
1648
|
};
|
|
1649
|
-
const
|
|
1650
|
-
eventsEmitter:
|
|
1651
|
-
update:
|
|
1652
|
-
translate:
|
|
1653
|
-
transition:
|
|
1654
|
-
slide:
|
|
1655
|
-
loop:
|
|
1656
|
-
grabCursor:
|
|
1657
|
-
events:
|
|
1658
|
-
breakpoints:
|
|
1659
|
-
checkOverflow:
|
|
1660
|
-
classes:
|
|
1649
|
+
const Fs = {
|
|
1650
|
+
eventsEmitter: Ut,
|
|
1651
|
+
update: Ys,
|
|
1652
|
+
translate: Os,
|
|
1653
|
+
transition: Cs,
|
|
1654
|
+
slide: As,
|
|
1655
|
+
loop: us,
|
|
1656
|
+
grabCursor: os,
|
|
1657
|
+
events: is,
|
|
1658
|
+
breakpoints: Bt,
|
|
1659
|
+
checkOverflow: Vt,
|
|
1660
|
+
classes: Xt
|
|
1661
1661
|
}, Je = {};
|
|
1662
1662
|
class te {
|
|
1663
1663
|
static extendedDefaults;
|
|
@@ -1665,34 +1665,34 @@ class te {
|
|
|
1665
1665
|
constructor(...t) {
|
|
1666
1666
|
let s, a;
|
|
1667
1667
|
if (t.length === 1 && t[0] !== null && typeof t[0] == "object" && Object.prototype.toString.call(t[0]).slice(8, -1) === "Object" ? a = t[0] : [s, a] = t, a || (a = {}), a = se({}, a), s && !a.el && (a.el = s), a.el && typeof a.el == "string" && typeof document < "u" && document.querySelectorAll(a.el).length > 1) {
|
|
1668
|
-
const
|
|
1668
|
+
const o = [];
|
|
1669
1669
|
return document.querySelectorAll(a.el).forEach((r) => {
|
|
1670
1670
|
const m = se({}, a, { el: r });
|
|
1671
|
-
|
|
1672
|
-
}),
|
|
1671
|
+
o.push(new te(m));
|
|
1672
|
+
}), o;
|
|
1673
1673
|
}
|
|
1674
1674
|
const n = this;
|
|
1675
|
-
n.__swiper__ = !0, n.support =
|
|
1676
|
-
const r =
|
|
1675
|
+
n.__swiper__ = !0, n.support = gt(), n.device = Tt({ userAgent: a.userAgent ?? void 0 }), n.browser = Et(), n.eventsListeners = {}, n.eventsAnyListeners = [], n.modules = [...n.__modules__ || []], a.modules && Array.isArray(a.modules) && a.modules.forEach((o) => {
|
|
1676
|
+
const r = o;
|
|
1677
1677
|
typeof r == "function" && n.modules.indexOf(r) < 0 && n.modules.push(r);
|
|
1678
1678
|
});
|
|
1679
1679
|
const i = {};
|
|
1680
|
-
n.modules.forEach((
|
|
1681
|
-
|
|
1680
|
+
n.modules.forEach((o) => {
|
|
1681
|
+
o({
|
|
1682
1682
|
params: a,
|
|
1683
1683
|
swiper: n,
|
|
1684
|
-
extendParams:
|
|
1684
|
+
extendParams: ps(a, i),
|
|
1685
1685
|
on: n.on.bind(n),
|
|
1686
1686
|
once: n.once.bind(n),
|
|
1687
1687
|
off: n.off.bind(n),
|
|
1688
1688
|
emit: n.emit.bind(n)
|
|
1689
1689
|
});
|
|
1690
1690
|
});
|
|
1691
|
-
const u = se({},
|
|
1691
|
+
const u = se({}, vt, i);
|
|
1692
1692
|
if (n.params = se({}, u, Je, a), n.originalParams = se({}, n.params), n.passedParams = se({}, a), n.params && n.params.on) {
|
|
1693
|
-
const
|
|
1694
|
-
Object.keys(
|
|
1695
|
-
const m =
|
|
1693
|
+
const o = n.params.on;
|
|
1694
|
+
Object.keys(o).forEach((r) => {
|
|
1695
|
+
const m = o[r];
|
|
1696
1696
|
m && n.on(r, m);
|
|
1697
1697
|
});
|
|
1698
1698
|
}
|
|
@@ -1852,22 +1852,24 @@ class te {
|
|
|
1852
1852
|
* Get dynamically calculated amount of slides per view, useful only when slidesPerView set to `auto`
|
|
1853
1853
|
*/
|
|
1854
1854
|
slidesPerViewDynamic(t = "current", s = !1) {
|
|
1855
|
-
const { params: a, slides: n, slidesGrid: i, slidesSizesGrid: u, size:
|
|
1855
|
+
const { params: a, slides: n, slidesGrid: i, slidesSizesGrid: u, size: o, activeIndex: r } = this;
|
|
1856
1856
|
let m = 1;
|
|
1857
1857
|
if (typeof a.slidesPerView == "number")
|
|
1858
1858
|
return a.slidesPerView;
|
|
1859
|
+
if (!o)
|
|
1860
|
+
return m;
|
|
1859
1861
|
if (a.centeredSlides) {
|
|
1860
1862
|
let f = n[r] ? Math.ceil(n[r].swiperSlideSize ?? 0) : 0, c = !1;
|
|
1861
1863
|
for (let T = r + 1; T < n.length; T += 1)
|
|
1862
|
-
n[T] && !c && (f += Math.ceil(n[T].swiperSlideSize ?? 0), m += 1, f >
|
|
1864
|
+
n[T] && !c && (f += Math.ceil(n[T].swiperSlideSize ?? 0), m += 1, f > o && (c = !0));
|
|
1863
1865
|
for (let T = r - 1; T >= 0; T -= 1)
|
|
1864
|
-
n[T] && !c && (f += n[T].swiperSlideSize ?? 0, m += 1, f >
|
|
1866
|
+
n[T] && !c && (f += n[T].swiperSlideSize ?? 0, m += 1, f > o && (c = !0));
|
|
1865
1867
|
} else if (t === "current")
|
|
1866
1868
|
for (let f = r + 1; f < n.length; f += 1)
|
|
1867
|
-
(s ? i[f] + u[f] - i[r] <
|
|
1869
|
+
(s ? i[f] + u[f] - i[r] < o : i[f] - i[r] < o) && (m += 1);
|
|
1868
1870
|
else
|
|
1869
1871
|
for (let f = r - 1; f >= 0; f -= 1)
|
|
1870
|
-
i[r] - i[f] <
|
|
1872
|
+
i[r] - i[f] < o && (m += 1);
|
|
1871
1873
|
return m;
|
|
1872
1874
|
}
|
|
1873
1875
|
/**
|
|
@@ -1886,8 +1888,8 @@ class te {
|
|
|
1886
1888
|
u.complete && Oe(t, u);
|
|
1887
1889
|
}), t.updateSize(), t.updateSlides(), t.updateProgress(), t.updateSlidesClasses();
|
|
1888
1890
|
function n() {
|
|
1889
|
-
const u = t.rtlTranslate ? t.translate * -1 : t.translate,
|
|
1890
|
-
t.setTranslate(
|
|
1891
|
+
const u = t.rtlTranslate ? t.translate * -1 : t.translate, o = Math.min(Math.max(u, t.maxTranslate()), t.minTranslate());
|
|
1892
|
+
t.setTranslate(o), t.updateActiveIndex(), t.updateSlidesClasses();
|
|
1891
1893
|
}
|
|
1892
1894
|
let i;
|
|
1893
1895
|
if (a.freeMode?.enabled && !a.cssMode)
|
|
@@ -1977,12 +1979,12 @@ class te {
|
|
|
1977
1979
|
* Useful if you need to destroy Swiper and to init again with new options or in different direction
|
|
1978
1980
|
*/
|
|
1979
1981
|
destroy(t = !0, s = !0) {
|
|
1980
|
-
const a = this, { params: n, el: i, wrapperEl: u, slides:
|
|
1981
|
-
return typeof a.params > "u" || a.destroyed || (a.emit("beforeDestroy"), a.initialized = !1, a.detachEvents(), n.loop && a.loopDestroy(), s && (a.removeClasses(), i && typeof i != "string" && i.removeAttribute("style"), u && u.removeAttribute("style"),
|
|
1982
|
+
const a = this, { params: n, el: i, wrapperEl: u, slides: o } = a;
|
|
1983
|
+
return typeof a.params > "u" || a.destroyed || (a.emit("beforeDestroy"), a.initialized = !1, a.detachEvents(), n.loop && a.loopDestroy(), s && (a.removeClasses(), i && typeof i != "string" && i.removeAttribute("style"), u && u.removeAttribute("style"), o && o.length && o.forEach((r) => {
|
|
1982
1984
|
r.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), r.removeAttribute("style"), r.removeAttribute("data-swiper-slide-index");
|
|
1983
1985
|
})), a.emit("destroy"), Object.keys(a.eventsListeners).forEach((r) => {
|
|
1984
1986
|
a.off(r);
|
|
1985
|
-
}), t !== !1 && (a.el && typeof a.el != "string" && (a.el.swiper = null),
|
|
1987
|
+
}), t !== !1 && (a.el && typeof a.el != "string" && (a.el.swiper = null), Mt(a)), a.destroyed = !0), null;
|
|
1986
1988
|
}
|
|
1987
1989
|
static extendDefaults(t) {
|
|
1988
1990
|
se(Je, t);
|
|
@@ -2003,18 +2005,18 @@ Object.defineProperty(te, "extendedDefaults", {
|
|
|
2003
2005
|
});
|
|
2004
2006
|
Object.defineProperty(te, "defaults", {
|
|
2005
2007
|
get() {
|
|
2006
|
-
return
|
|
2008
|
+
return vt;
|
|
2007
2009
|
}
|
|
2008
2010
|
});
|
|
2009
|
-
const ot =
|
|
2011
|
+
const ot = Fs, Xs = te.prototype;
|
|
2010
2012
|
Object.keys(ot).forEach((e) => {
|
|
2011
2013
|
const t = ot[e];
|
|
2012
2014
|
Object.keys(t).forEach((s) => {
|
|
2013
|
-
|
|
2015
|
+
Xs[s] = t[s];
|
|
2014
2016
|
});
|
|
2015
2017
|
});
|
|
2016
|
-
te.use([
|
|
2017
|
-
const
|
|
2018
|
+
te.use([hs, ms]);
|
|
2019
|
+
const Us = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
2018
2020
|
t({
|
|
2019
2021
|
virtual: {
|
|
2020
2022
|
enabled: !1,
|
|
@@ -2032,7 +2034,10 @@ const Ws = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2032
2034
|
e.virtual = {
|
|
2033
2035
|
cache: {},
|
|
2034
2036
|
from: 0,
|
|
2035
|
-
|
|
2037
|
+
// -1 marks "nothing rendered yet": no real update can produce to < from,
|
|
2038
|
+
// so the first update() never mistakes slide 0 for an already-rendered
|
|
2039
|
+
// slide and always appends the full [from, to] window (#8202).
|
|
2040
|
+
to: -1,
|
|
2036
2041
|
slides: [],
|
|
2037
2042
|
offset: 0,
|
|
2038
2043
|
slidesGrid: []
|
|
@@ -2041,7 +2046,7 @@ const Ws = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2041
2046
|
return e.params.virtual;
|
|
2042
2047
|
}
|
|
2043
2048
|
let u;
|
|
2044
|
-
const
|
|
2049
|
+
const o = () => u ??= document.createElement("div");
|
|
2045
2050
|
function r(l, g) {
|
|
2046
2051
|
const v = i();
|
|
2047
2052
|
if (v.cache && e.virtual.cache[g])
|
|
@@ -2050,7 +2055,7 @@ const Ws = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2050
2055
|
if (v.renderSlide) {
|
|
2051
2056
|
const h = v.renderSlide.call(e, l, g);
|
|
2052
2057
|
if (typeof h == "string") {
|
|
2053
|
-
const p =
|
|
2058
|
+
const p = o();
|
|
2054
2059
|
le(p, h), S = p.children[0];
|
|
2055
2060
|
} else
|
|
2056
2061
|
S = h;
|
|
@@ -2080,11 +2085,11 @@ const Ws = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2080
2085
|
h ? ($ = Math.floor(L / 2) + N + A, z = Math.floor(L / 2) + N + I) : ($ = L + (N - 1) + A, z = (E ? L : N) + I);
|
|
2081
2086
|
let V = x - z, k = x + $;
|
|
2082
2087
|
E || (V = Math.max(V, 0), k = Math.min(k, b.length - 1));
|
|
2083
|
-
let
|
|
2084
|
-
E && x >= z ? (V -= z, h || (
|
|
2088
|
+
let Y = (e.slidesGrid[V] || 0) - (e.slidesGrid[0] || 0);
|
|
2089
|
+
E && x >= z ? (V -= z, h || (Y += e.slidesGrid[0])) : E && x < z && (V = -z, h && (Y += e.slidesGrid[0])), Object.assign(e.virtual, {
|
|
2085
2090
|
from: V,
|
|
2086
2091
|
to: k,
|
|
2087
|
-
offset:
|
|
2092
|
+
offset: Y,
|
|
2088
2093
|
slidesGrid: e.slidesGrid,
|
|
2089
2094
|
slidesBefore: z,
|
|
2090
2095
|
slidesAfter: $
|
|
@@ -2093,8 +2098,8 @@ const Ws = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2093
2098
|
e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), a("virtualUpdate");
|
|
2094
2099
|
}
|
|
2095
2100
|
if (_ === V && P === k && !l) {
|
|
2096
|
-
e.slidesGrid !== M &&
|
|
2097
|
-
X.style.setProperty(w, `${
|
|
2101
|
+
e.slidesGrid !== M && Y !== C && e.slides.forEach((X) => {
|
|
2102
|
+
X.style.setProperty(w, `${Y - Math.abs(e.cssOverflowAdjustment())}px`);
|
|
2098
2103
|
}), e.updateProgress(), a("virtualUpdate");
|
|
2099
2104
|
return;
|
|
2100
2105
|
}
|
|
@@ -2104,7 +2109,7 @@ const Ws = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2104
2109
|
for (let j = V; j <= k; j += 1)
|
|
2105
2110
|
X.push(b[j]);
|
|
2106
2111
|
O.renderExternal.call(e, {
|
|
2107
|
-
offset:
|
|
2112
|
+
offset: Y,
|
|
2108
2113
|
from: V,
|
|
2109
2114
|
to: k,
|
|
2110
2115
|
slides: X
|
|
@@ -2145,7 +2150,7 @@ const Ws = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2145
2150
|
e.slidesEl.prepend(r(b[X], X));
|
|
2146
2151
|
});
|
|
2147
2152
|
Q(e.slidesEl, ".swiper-slide, swiper-slide").forEach((X) => {
|
|
2148
|
-
X.style.setProperty(w, `${
|
|
2153
|
+
X.style.setProperty(w, `${Y - Math.abs(e.cssOverflowAdjustment())}px`);
|
|
2149
2154
|
}), q();
|
|
2150
2155
|
}
|
|
2151
2156
|
function f(l) {
|
|
@@ -2195,7 +2200,7 @@ const Ws = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2195
2200
|
i().cache && (delete e.virtual.cache[l], v(l)), e.virtual.slides.splice(l, 1), l < g && (g -= 1), g = Math.max(g, 0);
|
|
2196
2201
|
m(!0), e.slideTo(g, 0);
|
|
2197
2202
|
}
|
|
2198
|
-
function
|
|
2203
|
+
function d() {
|
|
2199
2204
|
e.virtual.slides = [], i().cache && (e.virtual.cache = {}), m(!0), e.slideTo(0, 0);
|
|
2200
2205
|
}
|
|
2201
2206
|
s("beforeInit", () => {
|
|
@@ -2220,10 +2225,10 @@ const Ws = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2220
2225
|
appendSlide: f,
|
|
2221
2226
|
prependSlide: c,
|
|
2222
2227
|
removeSlide: T,
|
|
2223
|
-
removeAllSlides:
|
|
2228
|
+
removeAllSlides: d,
|
|
2224
2229
|
update: m
|
|
2225
2230
|
});
|
|
2226
|
-
},
|
|
2231
|
+
}, qs = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
2227
2232
|
t({
|
|
2228
2233
|
keyboard: {
|
|
2229
2234
|
enabled: !1,
|
|
@@ -2238,7 +2243,7 @@ const Ws = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2238
2243
|
function i(r) {
|
|
2239
2244
|
if (!e.enabled)
|
|
2240
2245
|
return;
|
|
2241
|
-
const { rtlTranslate: m } = e, f = "originalEvent" in r && r.originalEvent ? r.originalEvent : r, c = f.keyCode || f.charCode, T = n(),
|
|
2246
|
+
const { rtlTranslate: m } = e, f = "originalEvent" in r && r.originalEvent ? r.originalEvent : r, c = f.keyCode || f.charCode, T = n(), d = !!T.pageUpDown, l = d && c === 33, g = d && c === 34, v = c === 37, S = c === 39, h = c === 38, p = c === 40;
|
|
2242
2247
|
if (!e.allowSlideNext && (e.isHorizontal() && S || e.isVertical() && p || g) || !e.allowSlidePrev && (e.isHorizontal() && v || e.isVertical() && h || l))
|
|
2243
2248
|
return !1;
|
|
2244
2249
|
if (f.shiftKey || f.altKey || f.ctrlKey || f.metaKey)
|
|
@@ -2275,19 +2280,19 @@ const Ws = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2275
2280
|
function u() {
|
|
2276
2281
|
e.keyboard.enabled || (document.addEventListener("keydown", i), e.keyboard.enabled = !0);
|
|
2277
2282
|
}
|
|
2278
|
-
function
|
|
2283
|
+
function o() {
|
|
2279
2284
|
e.keyboard.enabled && (document.removeEventListener("keydown", i), e.keyboard.enabled = !1);
|
|
2280
2285
|
}
|
|
2281
2286
|
e.keyboard = {
|
|
2282
2287
|
enabled: !1,
|
|
2283
2288
|
enable: u,
|
|
2284
|
-
disable:
|
|
2289
|
+
disable: o
|
|
2285
2290
|
}, s("init", () => {
|
|
2286
2291
|
n().enabled && u();
|
|
2287
2292
|
}), s("destroy", () => {
|
|
2288
|
-
e.keyboard.enabled &&
|
|
2293
|
+
e.keyboard.enabled && o();
|
|
2289
2294
|
});
|
|
2290
|
-
},
|
|
2295
|
+
}, js = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
2291
2296
|
t({
|
|
2292
2297
|
mousewheel: {
|
|
2293
2298
|
enabled: !1,
|
|
@@ -2301,7 +2306,7 @@ const Ws = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2301
2306
|
noMousewheelClass: "swiper-no-mousewheel"
|
|
2302
2307
|
}
|
|
2303
2308
|
});
|
|
2304
|
-
let n, i = ae(), u,
|
|
2309
|
+
let n, i = ae(), u, o = !1;
|
|
2305
2310
|
const r = [];
|
|
2306
2311
|
function m() {
|
|
2307
2312
|
return e.params.mousewheel;
|
|
@@ -2317,12 +2322,12 @@ const Ws = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2317
2322
|
};
|
|
2318
2323
|
}
|
|
2319
2324
|
function c() {
|
|
2320
|
-
e.enabled && (
|
|
2325
|
+
e.enabled && (o = !0);
|
|
2321
2326
|
}
|
|
2322
2327
|
function T() {
|
|
2323
|
-
e.enabled && (
|
|
2328
|
+
e.enabled && (o = !1);
|
|
2324
2329
|
}
|
|
2325
|
-
function
|
|
2330
|
+
function d(p) {
|
|
2326
2331
|
const E = m();
|
|
2327
2332
|
return E.thresholdDelta && p.delta < E.thresholdDelta || E.thresholdTime && ae() - i < E.thresholdTime ? !1 : p.delta >= 6 && ae() - i < 60 ? !0 : (p.direction < 0 ? (!e.isEnd || e.params.loop) && !e.animating && (e.slideNext(), a("scroll", p.raw)) : (!e.isBeginning || e.params.loop) && !e.animating && (e.slidePrev(), a("scroll", p.raw)), i = new window.Date().getTime(), !1);
|
|
2328
2333
|
}
|
|
@@ -2346,7 +2351,7 @@ const Ws = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2346
2351
|
let A = e.el;
|
|
2347
2352
|
I.eventsTarget !== "container" && (A = document.querySelector(I.eventsTarget));
|
|
2348
2353
|
const R = A && A.contains(E.target);
|
|
2349
|
-
if (!
|
|
2354
|
+
if (!o && !R && !I.releaseOnEdges)
|
|
2350
2355
|
return !0;
|
|
2351
2356
|
let _ = 0;
|
|
2352
2357
|
const P = e.rtlTranslate ? -1 : 1, b = f(E);
|
|
@@ -2377,7 +2382,7 @@ const Ws = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2377
2382
|
};
|
|
2378
2383
|
r.length >= 2 && r.shift();
|
|
2379
2384
|
const w = r.length ? r[r.length - 1] : void 0;
|
|
2380
|
-
if (r.push(x), w ? (x.direction !== w.direction || x.delta > w.delta || x.time > w.time + 150) &&
|
|
2385
|
+
if (r.push(x), w ? (x.direction !== w.direction || x.delta > w.delta || x.time > w.time + 150) && d(x) : d(x), l(x))
|
|
2381
2386
|
return !0;
|
|
2382
2387
|
} else {
|
|
2383
2388
|
const x = {
|
|
@@ -2398,16 +2403,16 @@ const Ws = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2398
2403
|
if (r.push(x), V && (x.delta > V.delta || x.direction !== V.direction))
|
|
2399
2404
|
r.splice(0);
|
|
2400
2405
|
else if (r.length >= 15 && k && x.time - k.time < 500 && k.delta - x.delta >= 1 && x.delta <= 6) {
|
|
2401
|
-
const
|
|
2406
|
+
const Y = _ > 0 ? 0.8 : 0.2;
|
|
2402
2407
|
u = x, r.splice(0), n = Se(() => {
|
|
2403
|
-
e.destroyed || !e.params || e.slideToClosest(e.params.speed, !0, void 0,
|
|
2408
|
+
e.destroyed || !e.params || e.slideToClosest(e.params.speed, !0, void 0, Y);
|
|
2404
2409
|
}, 0);
|
|
2405
2410
|
}
|
|
2406
2411
|
n || (n = Se(() => {
|
|
2407
2412
|
if (e.destroyed || !e.params)
|
|
2408
2413
|
return;
|
|
2409
|
-
const
|
|
2410
|
-
u = x, r.splice(0), e.slideToClosest(e.params.speed, !0, void 0,
|
|
2414
|
+
const Y = 0.5;
|
|
2415
|
+
u = x, r.splice(0), e.slideToClosest(e.params.speed, !0, void 0, Y);
|
|
2411
2416
|
}, 500));
|
|
2412
2417
|
}
|
|
2413
2418
|
w || a("scroll", E);
|
|
@@ -2444,12 +2449,12 @@ function st(e, t, s, a) {
|
|
|
2444
2449
|
const n = s ?? {}, i = t ?? {};
|
|
2445
2450
|
return e.params.createElements && Object.keys(a).forEach((u) => {
|
|
2446
2451
|
if (!n[u] && n.auto === !0) {
|
|
2447
|
-
let
|
|
2448
|
-
|
|
2452
|
+
let o = Q(e.el, `.${a[u]}`)[0];
|
|
2453
|
+
o || (o = ne("div", a[u]), o.className = a[u], e.el.append(o)), n[u] = o, i[u] = o;
|
|
2449
2454
|
}
|
|
2450
2455
|
}), n;
|
|
2451
2456
|
}
|
|
2452
|
-
const dt = '<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>',
|
|
2457
|
+
const dt = '<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>', Ks = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
2453
2458
|
t({
|
|
2454
2459
|
navigation: {
|
|
2455
2460
|
nextEl: null,
|
|
@@ -2479,7 +2484,7 @@ const dt = '<svg class="swiper-navigation-icon" width="11" height="20" viewBox="
|
|
|
2479
2484
|
h && (h.classList[g ? "add" : "remove"](...v.disabledClass.split(" ")), h.tagName === "BUTTON" && (h.disabled = g), e.params.watchOverflow && e.enabled && h.classList[e.isLocked ? "add" : "remove"](v.lockClass));
|
|
2480
2485
|
});
|
|
2481
2486
|
}
|
|
2482
|
-
function
|
|
2487
|
+
function o() {
|
|
2483
2488
|
const { nextEl: l, prevEl: g } = e.navigation;
|
|
2484
2489
|
if (e.params.loop) {
|
|
2485
2490
|
u(g, !1), u(l, !1);
|
|
@@ -2527,15 +2532,15 @@ const dt = '<svg class="swiper-navigation-icon" width="11" height="20" viewBox="
|
|
|
2527
2532
|
S.forEach((E) => p(E, "next")), h.forEach((E) => p(E, "prev"));
|
|
2528
2533
|
}
|
|
2529
2534
|
s("init", () => {
|
|
2530
|
-
n().enabled === !1 ?
|
|
2535
|
+
n().enabled === !1 ? d() : (f(), o());
|
|
2531
2536
|
}), s("toEdge fromEdge lock unlock", () => {
|
|
2532
|
-
|
|
2537
|
+
o();
|
|
2533
2538
|
}), s("destroy", () => {
|
|
2534
2539
|
c();
|
|
2535
2540
|
}), s("enable disable", () => {
|
|
2536
2541
|
const l = n(), { nextEl: g, prevEl: v } = e.navigation, S = U(g), h = U(v);
|
|
2537
2542
|
if (e.enabled) {
|
|
2538
|
-
|
|
2543
|
+
o();
|
|
2539
2544
|
return;
|
|
2540
2545
|
}
|
|
2541
2546
|
[...S, ...h].filter((p) => !!p).forEach((p) => p.classList.add(l.lockClass));
|
|
@@ -2555,15 +2560,15 @@ const dt = '<svg class="swiper-navigation-icon" width="11" height="20" viewBox="
|
|
|
2555
2560
|
});
|
|
2556
2561
|
const T = () => {
|
|
2557
2562
|
const l = n();
|
|
2558
|
-
e.el.classList.remove(...l.navigationDisabledClass.split(" ")), f(),
|
|
2559
|
-
},
|
|
2563
|
+
e.el.classList.remove(...l.navigationDisabledClass.split(" ")), f(), o();
|
|
2564
|
+
}, d = () => {
|
|
2560
2565
|
const l = n();
|
|
2561
2566
|
e.el.classList.add(...l.navigationDisabledClass.split(" ")), c();
|
|
2562
2567
|
};
|
|
2563
2568
|
Object.assign(e.navigation, {
|
|
2564
2569
|
enable: T,
|
|
2565
|
-
disable:
|
|
2566
|
-
update:
|
|
2570
|
+
disable: d,
|
|
2571
|
+
update: o,
|
|
2567
2572
|
init: f,
|
|
2568
2573
|
destroy: c
|
|
2569
2574
|
});
|
|
@@ -2571,7 +2576,12 @@ const dt = '<svg class="swiper-navigation-icon" width="11" height="20" viewBox="
|
|
|
2571
2576
|
function oe(e = "") {
|
|
2572
2577
|
return `.${e.trim().replace(/([.:!+/()[\]#>~*^$|=,'"@{}\\])/g, "\\$1").replace(/ /g, ".")}`;
|
|
2573
2578
|
}
|
|
2574
|
-
const
|
|
2579
|
+
const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.params.freeMode?.enabled, ct = (e) => {
|
|
2580
|
+
if (Zs(e))
|
|
2581
|
+
return e.virtual.slides.length;
|
|
2582
|
+
const t = e.params.grid?.rows;
|
|
2583
|
+
return e.grid && t && t > 1 ? e.slides.length / Math.ceil(t) : e.slides.length;
|
|
2584
|
+
}, Js = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
2575
2585
|
const n = "swiper-pagination";
|
|
2576
2586
|
t({
|
|
2577
2587
|
pagination: {
|
|
@@ -2609,14 +2619,14 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
2609
2619
|
bullets: []
|
|
2610
2620
|
};
|
|
2611
2621
|
let i, u = 0;
|
|
2612
|
-
function
|
|
2622
|
+
function o() {
|
|
2613
2623
|
return e.params.pagination;
|
|
2614
2624
|
}
|
|
2615
2625
|
function r() {
|
|
2616
|
-
return !
|
|
2626
|
+
return !o().el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
|
|
2617
2627
|
}
|
|
2618
2628
|
function m(h, p) {
|
|
2619
|
-
const { bulletActiveClass: E } =
|
|
2629
|
+
const { bulletActiveClass: E } = o();
|
|
2620
2630
|
if (!h)
|
|
2621
2631
|
return;
|
|
2622
2632
|
let y = h[`${p === "prev" ? "previous" : "next"}ElementSibling`];
|
|
@@ -2629,7 +2639,7 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
2629
2639
|
return "previous";
|
|
2630
2640
|
}
|
|
2631
2641
|
function c(h) {
|
|
2632
|
-
const E = h.target.closest(oe(
|
|
2642
|
+
const E = h.target.closest(oe(o().bulletClass));
|
|
2633
2643
|
if (!E)
|
|
2634
2644
|
return;
|
|
2635
2645
|
h.preventDefault();
|
|
@@ -2643,12 +2653,12 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
2643
2653
|
e.slideTo(y);
|
|
2644
2654
|
}
|
|
2645
2655
|
function T() {
|
|
2646
|
-
const h = e.rtl, p =
|
|
2656
|
+
const h = e.rtl, p = o();
|
|
2647
2657
|
if (r())
|
|
2648
2658
|
return;
|
|
2649
2659
|
const E = U(e.pagination.el);
|
|
2650
2660
|
let y, I;
|
|
2651
|
-
const A = ct(e)
|
|
2661
|
+
const A = ct(e), R = e.params.loop ? Math.ceil(A / (e.params.slidesPerGroup ?? 1)) : e.snapGrid.length;
|
|
2652
2662
|
if (e.params.loop ? (I = e.previousRealIndex || 0, y = (e.params.slidesPerGroup ?? 1) > 1 ? Math.floor(e.realIndex / (e.params.slidesPerGroup ?? 1)) : e.realIndex) : typeof e.snapIndex < "u" ? (y = e.snapIndex, I = e.previousSnapIndex) : (I = e.previousIndex || 0, y = e.activeIndex || 0), p.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
|
|
2653
2663
|
const _ = e.pagination.bullets;
|
|
2654
2664
|
let P = 0, b = 0, M = 0;
|
|
@@ -2709,25 +2719,25 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
2709
2719
|
p.type === "custom" && p.renderCustom ? (le(_, p.renderCustom(e, y + 1, R)), P === 0 && a("paginationRender", _)) : (P === 0 && a("paginationRender", _), a("paginationUpdate", _)), e.params.watchOverflow && e.enabled && _.classList[e.isLocked ? "add" : "remove"](p.lockClass);
|
|
2710
2720
|
});
|
|
2711
2721
|
}
|
|
2712
|
-
function
|
|
2713
|
-
const h =
|
|
2722
|
+
function d() {
|
|
2723
|
+
const h = o();
|
|
2714
2724
|
if (r())
|
|
2715
2725
|
return;
|
|
2716
|
-
const p =
|
|
2717
|
-
let
|
|
2726
|
+
const p = ct(e), E = U(e.pagination.el);
|
|
2727
|
+
let y = "";
|
|
2718
2728
|
if (h.type === "bullets") {
|
|
2719
|
-
let
|
|
2720
|
-
e.params.freeMode &&
|
|
2721
|
-
for (let
|
|
2722
|
-
h.renderBullet ?
|
|
2729
|
+
let I = e.params.loop ? Math.ceil(p / (e.params.slidesPerGroup ?? 1)) : e.snapGrid.length;
|
|
2730
|
+
e.params.freeMode && Qs(e) && I > p && (I = p);
|
|
2731
|
+
for (let A = 0; A < I; A += 1)
|
|
2732
|
+
h.renderBullet ? y += h.renderBullet.call(e, A, h.bulletClass) : y += `<${h.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${h.bulletClass}"></${h.bulletElement}>`;
|
|
2723
2733
|
}
|
|
2724
|
-
h.type === "fraction" && (h.renderFraction ?
|
|
2725
|
-
h.type !== "custom" && le(
|
|
2726
|
-
}), h.type !== "custom" && a("paginationRender",
|
|
2734
|
+
h.type === "fraction" && (h.renderFraction ? y = h.renderFraction.call(e, h.currentClass, h.totalClass) : y = `<span class="${h.currentClass}"></span> / <span class="${h.totalClass}"></span>`), h.type === "progressbar" && (h.renderProgressbar ? y = h.renderProgressbar.call(e, h.progressbarFillClass) : y = `<span class="${h.progressbarFillClass}"></span>`), e.pagination.bullets = [], E.forEach((I) => {
|
|
2735
|
+
h.type !== "custom" && le(I, y || ""), h.type === "bullets" && e.pagination.bullets.push(...Array.from(I.querySelectorAll(oe(h.bulletClass))));
|
|
2736
|
+
}), h.type !== "custom" && a("paginationRender", E[0]);
|
|
2727
2737
|
}
|
|
2728
2738
|
function l() {
|
|
2729
2739
|
e.params.pagination = st(e, e.originalParams.pagination, e.params.pagination, { el: "swiper-pagination" });
|
|
2730
|
-
const h =
|
|
2740
|
+
const h = o();
|
|
2731
2741
|
if (!h.el)
|
|
2732
2742
|
return;
|
|
2733
2743
|
let p;
|
|
@@ -2744,7 +2754,7 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
2744
2754
|
});
|
|
2745
2755
|
}
|
|
2746
2756
|
function g() {
|
|
2747
|
-
const h =
|
|
2757
|
+
const h = o();
|
|
2748
2758
|
if (r())
|
|
2749
2759
|
return;
|
|
2750
2760
|
const p = e.pagination.el;
|
|
@@ -2755,30 +2765,30 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
2755
2765
|
s("changeDirection", () => {
|
|
2756
2766
|
if (!e.pagination || !e.pagination.el)
|
|
2757
2767
|
return;
|
|
2758
|
-
const h =
|
|
2768
|
+
const h = o();
|
|
2759
2769
|
U(e.pagination.el).forEach((E) => {
|
|
2760
2770
|
E.classList.remove(h.horizontalClass, h.verticalClass), E.classList.add(e.isHorizontal() ? h.horizontalClass : h.verticalClass);
|
|
2761
2771
|
});
|
|
2762
2772
|
}), s("init", () => {
|
|
2763
|
-
|
|
2773
|
+
o().enabled === !1 ? S() : (l(), d(), T());
|
|
2764
2774
|
}), s("activeIndexChange", () => {
|
|
2765
2775
|
typeof e.snapIndex > "u" && T();
|
|
2766
2776
|
}), s("snapIndexChange", () => {
|
|
2767
2777
|
T();
|
|
2768
2778
|
}), s("snapGridLengthChange", () => {
|
|
2769
|
-
|
|
2779
|
+
d(), T();
|
|
2770
2780
|
}), s("destroy", () => {
|
|
2771
2781
|
g();
|
|
2772
2782
|
}), s("enable disable", () => {
|
|
2773
2783
|
const { el: h } = e.pagination;
|
|
2774
2784
|
if (h) {
|
|
2775
|
-
const p =
|
|
2785
|
+
const p = o();
|
|
2776
2786
|
U(h).forEach((y) => y.classList[e.enabled ? "remove" : "add"](p.lockClass));
|
|
2777
2787
|
}
|
|
2778
2788
|
}), s("lock unlock", () => {
|
|
2779
2789
|
T();
|
|
2780
2790
|
}), s("click", (h, p) => {
|
|
2781
|
-
const E = p.target, y = U(e.pagination.el), I =
|
|
2791
|
+
const E = p.target, y = U(e.pagination.el), I = o();
|
|
2782
2792
|
if (I.el && I.hideOnClick && y && y.length > 0 && !E.classList.contains(I.bulletClass)) {
|
|
2783
2793
|
if (e.navigation && (e.navigation.nextEl && E === e.navigation.nextEl || e.navigation.prevEl && E === e.navigation.prevEl))
|
|
2784
2794
|
return;
|
|
@@ -2787,12 +2797,12 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
2787
2797
|
}
|
|
2788
2798
|
});
|
|
2789
2799
|
const v = () => {
|
|
2790
|
-
const h =
|
|
2800
|
+
const h = o();
|
|
2791
2801
|
e.el.classList.remove(h.paginationDisabledClass);
|
|
2792
2802
|
const { el: p } = e.pagination;
|
|
2793
|
-
p && U(p).forEach((y) => y.classList.remove(h.paginationDisabledClass)), l(),
|
|
2803
|
+
p && U(p).forEach((y) => y.classList.remove(h.paginationDisabledClass)), l(), d(), T();
|
|
2794
2804
|
}, S = () => {
|
|
2795
|
-
const h =
|
|
2805
|
+
const h = o();
|
|
2796
2806
|
e.el.classList.add(h.paginationDisabledClass);
|
|
2797
2807
|
const { el: p } = e.pagination;
|
|
2798
2808
|
p && U(p).forEach((y) => y.classList.add(h.paginationDisabledClass)), g();
|
|
@@ -2800,13 +2810,13 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
2800
2810
|
Object.assign(e.pagination, {
|
|
2801
2811
|
enable: v,
|
|
2802
2812
|
disable: S,
|
|
2803
|
-
render:
|
|
2813
|
+
render: d,
|
|
2804
2814
|
update: T,
|
|
2805
2815
|
init: l,
|
|
2806
2816
|
destroy: g
|
|
2807
2817
|
});
|
|
2808
|
-
},
|
|
2809
|
-
let n = !1, i = null, u = null,
|
|
2818
|
+
}, ea = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
2819
|
+
let n = !1, i = null, u = null, o = 0, r = 0, m = 0, f = 0;
|
|
2810
2820
|
t({
|
|
2811
2821
|
scrollbar: {
|
|
2812
2822
|
el: null,
|
|
@@ -2837,7 +2847,7 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
2837
2847
|
w.style.opacity = "0", w.style.transitionDuration = "400ms";
|
|
2838
2848
|
}, 1e3));
|
|
2839
2849
|
}
|
|
2840
|
-
function
|
|
2850
|
+
function d(b) {
|
|
2841
2851
|
!c().el || !e.scrollbar.el || (e.scrollbar.dragEl.style.transitionDuration = `${b}ms`);
|
|
2842
2852
|
}
|
|
2843
2853
|
function l() {
|
|
@@ -2853,13 +2863,13 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
2853
2863
|
function v(b) {
|
|
2854
2864
|
const { scrollbar: M, rtlTranslate: C } = e, { el: x } = M;
|
|
2855
2865
|
let w;
|
|
2856
|
-
w = (g(b) - ze(x)[e.isHorizontal() ? "left" : "top"] - (
|
|
2866
|
+
w = (g(b) - ze(x)[e.isHorizontal() ? "left" : "top"] - (o !== null ? o : r / 2)) / (m - r), w = Math.max(Math.min(w, 1), 0), C && (w = 1 - w);
|
|
2857
2867
|
const L = e.minTranslate() + (e.maxTranslate() - e.minTranslate()) * w;
|
|
2858
2868
|
e.updateProgress(L), e.setTranslate(L), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
2859
2869
|
}
|
|
2860
2870
|
function S(b) {
|
|
2861
2871
|
const M = c(), { scrollbar: C, wrapperEl: x } = e, { el: w, dragEl: L } = C;
|
|
2862
|
-
n = !0,
|
|
2872
|
+
n = !0, o = b.target === L ? g(b) - b.target.getBoundingClientRect()[e.isHorizontal() ? "left" : "top"] : null, b.preventDefault(), b.stopPropagation(), x.style.transitionDuration = "100ms", L.style.transitionDuration = "100ms", v(b), u && clearTimeout(u), w.style.transitionDuration = "0ms", M.hide && (w.style.opacity = "1"), e.params.cssMode && (e.wrapperEl.style.scrollSnapType = "none"), a("scrollbarDragStart", b);
|
|
2863
2873
|
}
|
|
2864
2874
|
function h(b) {
|
|
2865
2875
|
const { scrollbar: M, wrapperEl: C } = e, { el: x, dragEl: w } = M;
|
|
@@ -2891,7 +2901,7 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
2891
2901
|
if (!C.el)
|
|
2892
2902
|
return;
|
|
2893
2903
|
let x;
|
|
2894
|
-
if (typeof C.el == "string" && e.isElement
|
|
2904
|
+
if (typeof C.el == "string" && e.isElement && (x = e.el.querySelector(C.el)), !x && typeof C.el == "string") {
|
|
2895
2905
|
if (x = document.querySelectorAll(C.el), !x.length)
|
|
2896
2906
|
return;
|
|
2897
2907
|
} else x || (x = C.el);
|
|
@@ -2922,7 +2932,7 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
2922
2932
|
}), s("setTranslate", () => {
|
|
2923
2933
|
T();
|
|
2924
2934
|
}), s("setTransition", (b, M) => {
|
|
2925
|
-
|
|
2935
|
+
d(M);
|
|
2926
2936
|
}), s("enable disable", () => {
|
|
2927
2937
|
const { el: b } = e.scrollbar;
|
|
2928
2938
|
b && b.classList[e.enabled ? "remove" : "add"](...de(c().lockClass));
|
|
@@ -2944,7 +2954,7 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
2944
2954
|
init: A,
|
|
2945
2955
|
destroy: R
|
|
2946
2956
|
});
|
|
2947
|
-
},
|
|
2957
|
+
}, ta = ({ swiper: e, extendParams: t, on: s }) => {
|
|
2948
2958
|
t({
|
|
2949
2959
|
parallax: {
|
|
2950
2960
|
enabled: !1
|
|
@@ -2955,13 +2965,13 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
2955
2965
|
}
|
|
2956
2966
|
const n = "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]", i = (r, m) => {
|
|
2957
2967
|
const { rtl: f } = e, c = f ? -1 : 1, T = r.getAttribute("data-swiper-parallax") || "0";
|
|
2958
|
-
let
|
|
2968
|
+
let d = r.getAttribute("data-swiper-parallax-x"), l = r.getAttribute("data-swiper-parallax-y");
|
|
2959
2969
|
const g = r.getAttribute("data-swiper-parallax-scale"), v = r.getAttribute("data-swiper-parallax-opacity"), S = r.getAttribute("data-swiper-parallax-rotate");
|
|
2960
|
-
if (
|
|
2970
|
+
if (d || l ? (d = d || "0", l = l || "0") : e.isHorizontal() ? (d = T, l = "0") : (l = T, d = "0"), d.indexOf("%") >= 0 ? d = `${parseInt(d, 10) * m * c}%` : d = `${Number(d) * m * c}px`, l.indexOf("%") >= 0 ? l = `${parseInt(l, 10) * m}%` : l = `${Number(l) * m}px`, typeof v < "u" && v !== null) {
|
|
2961
2971
|
const p = Number(v), E = p - (p - 1) * (1 - Math.abs(m));
|
|
2962
2972
|
r.style.opacity = String(E);
|
|
2963
2973
|
}
|
|
2964
|
-
let h = `translate3d(${
|
|
2974
|
+
let h = `translate3d(${d}, ${l}, 0px)`;
|
|
2965
2975
|
if (typeof g < "u" && g !== null) {
|
|
2966
2976
|
const p = Number(g), E = p - (p - 1) * (1 - Math.abs(m));
|
|
2967
2977
|
h += ` scale(${E})`;
|
|
@@ -2973,19 +2983,19 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
2973
2983
|
r.style.transform = h;
|
|
2974
2984
|
}, u = () => {
|
|
2975
2985
|
const { el: r, slides: m, progress: f, snapGrid: c } = e, T = Q(r, n);
|
|
2976
|
-
e.isElement && T.push(...Q(e.hostEl, n)), T.forEach((
|
|
2977
|
-
i(
|
|
2978
|
-
}), m.forEach((
|
|
2979
|
-
let g =
|
|
2980
|
-
(e.params.slidesPerGroup ?? 1) > 1 && e.params.slidesPerView !== "auto" && (g += Math.ceil(l / 2) - f * (c.length - 1)), g = Math.min(Math.max(g, -1), 1),
|
|
2986
|
+
e.isElement && T.push(...Q(e.hostEl, n)), T.forEach((d) => {
|
|
2987
|
+
i(d, f);
|
|
2988
|
+
}), m.forEach((d, l) => {
|
|
2989
|
+
let g = d.progress ?? 0;
|
|
2990
|
+
(e.params.slidesPerGroup ?? 1) > 1 && e.params.slidesPerView !== "auto" && (g += Math.ceil(l / 2) - f * (c.length - 1)), g = Math.min(Math.max(g, -1), 1), d.querySelectorAll(`${n}, [data-swiper-parallax-rotate]`).forEach((S) => {
|
|
2981
2991
|
i(S, g);
|
|
2982
2992
|
});
|
|
2983
2993
|
});
|
|
2984
|
-
},
|
|
2994
|
+
}, o = (r = e.params.speed ?? 300) => {
|
|
2985
2995
|
const { el: m, hostEl: f } = e, c = [...m.querySelectorAll(n)];
|
|
2986
2996
|
e.isElement && c.push(...f.querySelectorAll(n)), c.forEach((T) => {
|
|
2987
|
-
const
|
|
2988
|
-
let l = (
|
|
2997
|
+
const d = T.getAttribute("data-swiper-parallax-duration");
|
|
2998
|
+
let l = (d ? parseInt(d, 10) : 0) || r;
|
|
2989
2999
|
r === 0 && (l = 0), T.style.transitionDuration = `${l}ms`;
|
|
2990
3000
|
});
|
|
2991
3001
|
};
|
|
@@ -2996,9 +3006,9 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
2996
3006
|
}), s("setTranslate", () => {
|
|
2997
3007
|
a().enabled && u();
|
|
2998
3008
|
}), s("setTransition", (r, m) => {
|
|
2999
|
-
a().enabled &&
|
|
3009
|
+
a().enabled && o(m);
|
|
3000
3010
|
});
|
|
3001
|
-
},
|
|
3011
|
+
}, sa = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
3002
3012
|
t({
|
|
3003
3013
|
zoom: {
|
|
3004
3014
|
enabled: !1,
|
|
@@ -3016,10 +3026,10 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
3016
3026
|
function n() {
|
|
3017
3027
|
return e.params.zoom;
|
|
3018
3028
|
}
|
|
3019
|
-
let i = 1, u = !1,
|
|
3029
|
+
let i = 1, u = !1, o = !1, r = { x: 0, y: 0 };
|
|
3020
3030
|
const m = -3;
|
|
3021
3031
|
let f = !1, c = !1;
|
|
3022
|
-
const T = [],
|
|
3032
|
+
const T = [], d = {
|
|
3023
3033
|
originX: 0,
|
|
3024
3034
|
originY: 0,
|
|
3025
3035
|
slideEl: void 0,
|
|
@@ -3057,7 +3067,7 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
3057
3067
|
},
|
|
3058
3068
|
set(O) {
|
|
3059
3069
|
if (v !== O) {
|
|
3060
|
-
const G =
|
|
3070
|
+
const G = d.imageEl, H = d.slideEl;
|
|
3061
3071
|
a("zoomChange", O, G, H);
|
|
3062
3072
|
}
|
|
3063
3073
|
v = O;
|
|
@@ -3070,7 +3080,7 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
3070
3080
|
return Math.sqrt((H - O) ** 2 + (F - G) ** 2);
|
|
3071
3081
|
}
|
|
3072
3082
|
function h() {
|
|
3073
|
-
const O = n(), G =
|
|
3083
|
+
const O = n(), G = d.imageWrapEl?.getAttribute("data-swiper-zoom"), H = G != null ? Number(G) : O.maxRatio, F = d.imageEl;
|
|
3074
3084
|
if (O.limitToOriginalSize && F && F.naturalWidth) {
|
|
3075
3085
|
const K = F.naturalWidth / F.offsetWidth;
|
|
3076
3086
|
return Math.min(K, H);
|
|
@@ -3078,9 +3088,9 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
3078
3088
|
return H;
|
|
3079
3089
|
}
|
|
3080
3090
|
function p() {
|
|
3081
|
-
if (T.length < 2 || !
|
|
3091
|
+
if (T.length < 2 || !d.imageEl)
|
|
3082
3092
|
return [null, null];
|
|
3083
|
-
const O =
|
|
3093
|
+
const O = d.imageEl.getBoundingClientRect();
|
|
3084
3094
|
return [
|
|
3085
3095
|
(T[0].pageX + (T[1].pageX - T[0].pageX) / 2 - O.x - window.scrollX) / i,
|
|
3086
3096
|
(T[0].pageY + (T[1].pageY - T[0].pageY) / 2 - O.y - window.scrollY) / i
|
|
@@ -3102,19 +3112,19 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
3102
3112
|
return;
|
|
3103
3113
|
const G = n();
|
|
3104
3114
|
if (f = !1, c = !1, T.push(O), !(T.length < 2)) {
|
|
3105
|
-
if (f = !0,
|
|
3115
|
+
if (f = !0, d.scaleStart = S(), !d.slideEl) {
|
|
3106
3116
|
const H = O.target;
|
|
3107
|
-
|
|
3108
|
-
let F =
|
|
3109
|
-
if (F && (F = F.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0] ?? null),
|
|
3110
|
-
|
|
3117
|
+
d.slideEl = H?.closest(`.${e.params.slideClass}, swiper-slide`) ?? void 0, d.slideEl || (d.slideEl = e.slides[e.activeIndex]);
|
|
3118
|
+
let F = d.slideEl?.querySelector(`.${G.containerClass}`) ?? null;
|
|
3119
|
+
if (F && (F = F.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0] ?? null), d.imageEl = F ?? void 0, F ? d.imageWrapEl = ue(F, `.${G.containerClass}`)[0] ?? void 0 : d.imageWrapEl = void 0, !d.imageWrapEl) {
|
|
3120
|
+
d.imageEl = void 0;
|
|
3111
3121
|
return;
|
|
3112
3122
|
}
|
|
3113
|
-
|
|
3123
|
+
d.maxRatio = h();
|
|
3114
3124
|
}
|
|
3115
|
-
if (
|
|
3125
|
+
if (d.imageEl) {
|
|
3116
3126
|
const [H, F] = p();
|
|
3117
|
-
|
|
3127
|
+
d.originX = H ?? 0, d.originY = F ?? 0, d.imageEl.style.transitionDuration = "0ms";
|
|
3118
3128
|
}
|
|
3119
3129
|
u = !0;
|
|
3120
3130
|
}
|
|
@@ -3123,13 +3133,13 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
3123
3133
|
if (!y(O))
|
|
3124
3134
|
return;
|
|
3125
3135
|
const G = n(), H = e.zoom, F = T.findIndex((K) => K.pointerId === O.pointerId);
|
|
3126
|
-
F >= 0 && (T[F] = O), !(T.length < 2) && (c = !0,
|
|
3136
|
+
F >= 0 && (T[F] = O), !(T.length < 2) && (c = !0, d.scaleMove = S(), d.imageEl && (H.scale = d.scaleMove / (d.scaleStart ?? 1) * i, H.scale > d.maxRatio && (H.scale = d.maxRatio - 1 + (H.scale - d.maxRatio + 1) ** 0.5), H.scale < G.minRatio && (H.scale = G.minRatio + 1 - (G.minRatio - H.scale + 1) ** 0.5), d.imageEl.style.transform = `translate3d(0,0,0) scale(${H.scale})`));
|
|
3127
3137
|
}
|
|
3128
3138
|
function _(O) {
|
|
3129
3139
|
if (!y(O) || O.pointerType === "mouse" && O.type === "pointerout")
|
|
3130
3140
|
return;
|
|
3131
3141
|
const G = n(), H = e.zoom, F = T.findIndex((K) => K.pointerId === O.pointerId);
|
|
3132
|
-
F >= 0 && T.splice(F, 1), !(!f || !c) && (f = !1, c = !1,
|
|
3142
|
+
F >= 0 && T.splice(F, 1), !(!f || !c) && (f = !1, c = !1, d.imageEl && (H.scale = Math.max(Math.min(H.scale, d.maxRatio), G.minRatio), d.imageEl.style.transitionDuration = `${e.params.speed}ms`, d.imageEl.style.transform = `translate3d(0,0,0) scale(${H.scale})`, i = H.scale, u = !1, H.scale > 1 && d.slideEl ? d.slideEl.classList.add(`${G.zoomedSlideClass}`) : H.scale <= 1 && d.slideEl && d.slideEl.classList.remove(`${G.zoomedSlideClass}`), H.scale === 1 && (d.originX = 0, d.originY = 0, d.slideEl = void 0)));
|
|
3133
3143
|
}
|
|
3134
3144
|
let P;
|
|
3135
3145
|
function b() {
|
|
@@ -3142,20 +3152,19 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
3142
3152
|
}
|
|
3143
3153
|
function C(O) {
|
|
3144
3154
|
const G = e.device;
|
|
3145
|
-
if (
|
|
3155
|
+
if (l.isTouched)
|
|
3146
3156
|
return;
|
|
3147
|
-
G.android && O.cancelable && O.preventDefault(), l.isTouched = !0;
|
|
3148
3157
|
const H = T.length > 0 ? T[0] : O;
|
|
3149
|
-
l.touchesStart.x = H.pageX, l.touchesStart.y = H.pageY;
|
|
3158
|
+
l.touchesStart.x = H.pageX, l.touchesStart.y = H.pageY, d.imageEl && (G.android && O.cancelable && O.preventDefault(), l.isTouched = !0);
|
|
3150
3159
|
}
|
|
3151
3160
|
function x(O) {
|
|
3152
3161
|
const H = O.pointerType === "mouse" && n().panOnMouseMove;
|
|
3153
3162
|
if (!y(O) || !I(O))
|
|
3154
3163
|
return;
|
|
3155
3164
|
const F = e.zoom;
|
|
3156
|
-
if (!
|
|
3165
|
+
if (!d.imageEl)
|
|
3157
3166
|
return;
|
|
3158
|
-
if (!l.isTouched || !
|
|
3167
|
+
if (!l.isTouched || !d.slideEl) {
|
|
3159
3168
|
H && N(O);
|
|
3160
3169
|
return;
|
|
3161
3170
|
}
|
|
@@ -3163,9 +3172,9 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
3163
3172
|
N(O);
|
|
3164
3173
|
return;
|
|
3165
3174
|
}
|
|
3166
|
-
l.isMoved || (l.width =
|
|
3175
|
+
l.isMoved || (l.width = d.imageEl.offsetWidth || d.imageEl.clientWidth, l.height = d.imageEl.offsetHeight || d.imageEl.clientHeight, l.startX = Ke(d.imageWrapEl, "x") || 0, l.startY = Ke(d.imageWrapEl, "y") || 0, d.slideWidth = d.slideEl.offsetWidth, d.slideHeight = d.slideEl.offsetHeight, d.imageWrapEl.style.transitionDuration = "0ms");
|
|
3167
3176
|
const K = l.width * F.scale, ie = l.height * F.scale;
|
|
3168
|
-
l.minX = Math.min(
|
|
3177
|
+
l.minX = Math.min(d.slideWidth / 2 - K / 2, 0), l.maxX = -l.minX, l.minY = Math.min(d.slideHeight / 2 - ie / 2, 0), l.maxY = -l.minY, l.touchesCurrent.x = T.length > 0 ? T[0].pageX : O.pageX, l.touchesCurrent.y = T.length > 0 ? T[0].pageY : O.pageY, Math.max(Math.abs(l.touchesCurrent.x - (l.touchesStart.x ?? 0)), Math.abs(l.touchesCurrent.y - (l.touchesStart.y ?? 0))) > 5 && (e.allowClick = !1);
|
|
3169
3178
|
const j = l.startX ?? 0, J = l.startY ?? 0;
|
|
3170
3179
|
if (!l.isMoved && !u) {
|
|
3171
3180
|
if (e.isHorizontal() && (Math.floor(l.minX) === Math.floor(j) && l.touchesCurrent.x < (l.touchesStart.x ?? 0) || Math.floor(l.maxX) === Math.floor(j) && l.touchesCurrent.x > (l.touchesStart.x ?? 0))) {
|
|
@@ -3178,12 +3187,12 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
3178
3187
|
}
|
|
3179
3188
|
}
|
|
3180
3189
|
O.cancelable && O.preventDefault(), O.stopPropagation(), M(), l.isMoved = !0;
|
|
3181
|
-
const Z = (F.scale - i) / (
|
|
3182
|
-
l.currentX = l.touchesCurrent.x - (l.touchesStart.x ?? 0) + j + Z * (l.width - ee * 2), l.currentY = l.touchesCurrent.y - (l.touchesStart.y ?? 0) + J + Z * (l.height - re * 2), l.currentX < l.minX && (l.currentX = l.minX + 1 - (l.minX - l.currentX + 1) ** 0.8), l.currentX > l.maxX && (l.currentX = l.maxX - 1 + (l.currentX - l.maxX + 1) ** 0.8), l.currentY < l.minY && (l.currentY = l.minY + 1 - (l.minY - l.currentY + 1) ** 0.8), l.currentY > l.maxY && (l.currentY = l.maxY - 1 + (l.currentY - l.maxY + 1) ** 0.8), g.prevPositionX || (g.prevPositionX = l.touchesCurrent.x), g.prevPositionY || (g.prevPositionY = l.touchesCurrent.y), g.prevTime || (g.prevTime = Date.now()), g.x = (l.touchesCurrent.x - g.prevPositionX) / (Date.now() - g.prevTime) / 2, g.y = (l.touchesCurrent.y - g.prevPositionY) / (Date.now() - g.prevTime) / 2, Math.abs(l.touchesCurrent.x - g.prevPositionX) < 2 && (g.x = 0), Math.abs(l.touchesCurrent.y - g.prevPositionY) < 2 && (g.y = 0), g.prevPositionX = l.touchesCurrent.x, g.prevPositionY = l.touchesCurrent.y, g.prevTime = Date.now(),
|
|
3190
|
+
const Z = (F.scale - i) / (d.maxRatio - n().minRatio), { originX: ee, originY: re } = d;
|
|
3191
|
+
l.currentX = l.touchesCurrent.x - (l.touchesStart.x ?? 0) + j + Z * (l.width - ee * 2), l.currentY = l.touchesCurrent.y - (l.touchesStart.y ?? 0) + J + Z * (l.height - re * 2), l.currentX < l.minX && (l.currentX = l.minX + 1 - (l.minX - l.currentX + 1) ** 0.8), l.currentX > l.maxX && (l.currentX = l.maxX - 1 + (l.currentX - l.maxX + 1) ** 0.8), l.currentY < l.minY && (l.currentY = l.minY + 1 - (l.minY - l.currentY + 1) ** 0.8), l.currentY > l.maxY && (l.currentY = l.maxY - 1 + (l.currentY - l.maxY + 1) ** 0.8), g.prevPositionX || (g.prevPositionX = l.touchesCurrent.x), g.prevPositionY || (g.prevPositionY = l.touchesCurrent.y), g.prevTime || (g.prevTime = Date.now()), g.x = (l.touchesCurrent.x - g.prevPositionX) / (Date.now() - g.prevTime) / 2, g.y = (l.touchesCurrent.y - g.prevPositionY) / (Date.now() - g.prevTime) / 2, Math.abs(l.touchesCurrent.x - g.prevPositionX) < 2 && (g.x = 0), Math.abs(l.touchesCurrent.y - g.prevPositionY) < 2 && (g.y = 0), g.prevPositionX = l.touchesCurrent.x, g.prevPositionY = l.touchesCurrent.y, g.prevTime = Date.now(), d.imageWrapEl.style.transform = `translate3d(${l.currentX}px, ${l.currentY}px,0)`;
|
|
3183
3192
|
}
|
|
3184
3193
|
function w() {
|
|
3185
3194
|
const O = e.zoom;
|
|
3186
|
-
if (T.length = 0, !
|
|
3195
|
+
if (T.length = 0, !d.imageEl)
|
|
3187
3196
|
return;
|
|
3188
3197
|
if (!l.isTouched || !l.isMoved) {
|
|
3189
3198
|
l.isTouched = !1, l.isMoved = !1;
|
|
@@ -3196,53 +3205,53 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
3196
3205
|
const Z = Math.max(G, H);
|
|
3197
3206
|
l.currentX = X, l.currentY = J;
|
|
3198
3207
|
const ee = l.width * O.scale, re = l.height * O.scale;
|
|
3199
|
-
l.minX = Math.min(
|
|
3208
|
+
l.minX = Math.min(d.slideWidth / 2 - ee / 2, 0), l.maxX = -l.minX, l.minY = Math.min(d.slideHeight / 2 - re / 2, 0), l.maxY = -l.minY, l.currentX = Math.max(Math.min(l.currentX, l.maxX), l.minX), l.currentY = Math.max(Math.min(l.currentY, l.maxY), l.minY), d.imageWrapEl.style.transitionDuration = `${Z}ms`, d.imageWrapEl.style.transform = `translate3d(${l.currentX}px, ${l.currentY}px,0)`;
|
|
3200
3209
|
}
|
|
3201
3210
|
function L() {
|
|
3202
3211
|
const O = e.zoom;
|
|
3203
|
-
|
|
3212
|
+
d.slideEl && e.activeIndex !== e.slides.indexOf(d.slideEl) && (d.imageEl && (d.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), d.imageWrapEl && (d.imageWrapEl.style.transform = "translate3d(0,0,0)"), d.slideEl.classList.remove(`${n().zoomedSlideClass}`), O.scale = 1, i = 1, d.slideEl = void 0, d.imageEl = void 0, d.imageWrapEl = void 0, d.originX = 0, d.originY = 0);
|
|
3204
3213
|
}
|
|
3205
3214
|
function N(O) {
|
|
3206
|
-
if (i <= 1 || !
|
|
3215
|
+
if (i <= 1 || !d.imageWrapEl || !y(O) || !I(O))
|
|
3207
3216
|
return;
|
|
3208
|
-
const G = window.getComputedStyle(
|
|
3209
|
-
if (!
|
|
3210
|
-
|
|
3217
|
+
const G = window.getComputedStyle(d.imageWrapEl).transform, H = new window.DOMMatrix(G);
|
|
3218
|
+
if (!o) {
|
|
3219
|
+
o = !0, r.x = O.clientX, r.y = O.clientY, l.startX = H.e, l.startY = H.f, l.width = d.imageEl.offsetWidth || d.imageEl.clientWidth, l.height = d.imageEl.offsetHeight || d.imageEl.clientHeight, d.slideWidth = d.slideEl.offsetWidth, d.slideHeight = d.slideEl.offsetHeight;
|
|
3211
3220
|
return;
|
|
3212
3221
|
}
|
|
3213
|
-
const F = (O.clientX - r.x) * m, K = (O.clientY - r.y) * m, ie = l.width * i, X = l.height * i, j =
|
|
3214
|
-
|
|
3222
|
+
const F = (O.clientX - r.x) * m, K = (O.clientY - r.y) * m, ie = l.width * i, X = l.height * i, j = d.slideWidth, J = d.slideHeight, Z = Math.min(j / 2 - ie / 2, 0), ee = -Z, re = Math.min(J / 2 - X / 2, 0), Ie = -re, he = Math.max(Math.min(l.startX + F, ee), Z), ge = Math.max(Math.min(l.startY + K, Ie), re);
|
|
3223
|
+
d.imageWrapEl.style.transitionDuration = "0ms", d.imageWrapEl.style.transform = `translate3d(${he}px, ${ge}px, 0)`, r.x = O.clientX, r.y = O.clientY, l.startX = he, l.startY = ge, l.currentX = he, l.currentY = ge;
|
|
3215
3224
|
}
|
|
3216
3225
|
function $(O) {
|
|
3217
3226
|
const G = e.zoom, H = n();
|
|
3218
|
-
if (!
|
|
3219
|
-
if (O && typeof O != "number" && "target" in O && O.target && (
|
|
3227
|
+
if (!d.slideEl) {
|
|
3228
|
+
if (O && typeof O != "number" && "target" in O && O.target && (d.slideEl = O.target.closest(`.${e.params.slideClass}, swiper-slide`) ?? void 0), !d.slideEl) {
|
|
3220
3229
|
const nt = e.params.virtual;
|
|
3221
|
-
nt && nt.enabled && e.virtual ?
|
|
3230
|
+
nt && nt.enabled && e.virtual ? d.slideEl = Q(e.slidesEl, `.${e.params.slideActiveClass}`)[0] ?? void 0 : d.slideEl = e.slides[e.activeIndex];
|
|
3222
3231
|
}
|
|
3223
|
-
let Ee =
|
|
3224
|
-
Ee && (Ee = Ee.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0] ?? null),
|
|
3232
|
+
let Ee = d.slideEl?.querySelector(`.${H.containerClass}`) ?? null;
|
|
3233
|
+
Ee && (Ee = Ee.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0] ?? null), d.imageEl = Ee ?? void 0, Ee ? d.imageWrapEl = ue(Ee, `.${H.containerClass}`)[0] ?? void 0 : d.imageWrapEl = void 0;
|
|
3225
3234
|
}
|
|
3226
|
-
if (!
|
|
3235
|
+
if (!d.imageEl || !d.imageWrapEl || !d.slideEl)
|
|
3227
3236
|
return;
|
|
3228
|
-
|
|
3237
|
+
d.maxRatio = h(), e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), d.slideEl.classList.add(`${H.zoomedSlideClass}`);
|
|
3229
3238
|
let F, K, ie, X, j, J, Z, ee, re, Ie, he, ge, Re, we, Ge, Be, He, Ve;
|
|
3230
|
-
const
|
|
3231
|
-
typeof l.touchesStart.x > "u" &&
|
|
3232
|
-
const
|
|
3239
|
+
const Ct = O && typeof O != "number";
|
|
3240
|
+
typeof l.touchesStart.x > "u" && Ct ? (F = O.pageX, K = O.pageY) : (F = l.touchesStart.x, K = l.touchesStart.y);
|
|
3241
|
+
const We = i, Te = typeof O == "number" ? O : null;
|
|
3233
3242
|
i === 1 && Te && (F = void 0, K = void 0, l.touchesStart.x = void 0, l.touchesStart.y = void 0);
|
|
3234
3243
|
const at = h();
|
|
3235
|
-
G.scale = Te || at, i = Te || at, O && !(i === 1 && Te) ? (He =
|
|
3244
|
+
G.scale = Te || at, i = Te || at, O && !(i === 1 && Te) ? (He = d.slideEl.offsetWidth, Ve = d.slideEl.offsetHeight, ie = ze(d.slideEl).left + window.scrollX, X = ze(d.slideEl).top + window.scrollY, j = ie + He / 2 - (F ?? 0), J = X + Ve / 2 - (K ?? 0), re = d.imageEl.offsetWidth || d.imageEl.clientWidth, Ie = d.imageEl.offsetHeight || d.imageEl.clientHeight, he = re * G.scale, ge = Ie * G.scale, Re = Math.min(He / 2 - he / 2, 0), we = Math.min(Ve / 2 - ge / 2, 0), Ge = -Re, Be = -we, We > 0 && Te && typeof l.currentX == "number" && typeof l.currentY == "number" ? (Z = l.currentX * G.scale / We, ee = l.currentY * G.scale / We) : (Z = j * G.scale, ee = J * G.scale), Z < Re && (Z = Re), Z > Ge && (Z = Ge), ee < we && (ee = we), ee > Be && (ee = Be)) : (Z = 0, ee = 0), Te && G.scale === 1 && (d.originX = 0, d.originY = 0), l.currentX = Z, l.currentY = ee, d.imageWrapEl.style.transitionDuration = "300ms", d.imageWrapEl.style.transform = `translate3d(${Z}px, ${ee}px,0)`, d.imageEl.style.transitionDuration = "300ms", d.imageEl.style.transform = `translate3d(0,0,0) scale(${G.scale})`;
|
|
3236
3245
|
}
|
|
3237
3246
|
function z() {
|
|
3238
3247
|
const O = e.zoom, G = n();
|
|
3239
|
-
if (!
|
|
3248
|
+
if (!d.slideEl) {
|
|
3240
3249
|
const H = e.params.virtual;
|
|
3241
|
-
H && H.enabled && e.virtual ?
|
|
3242
|
-
let F =
|
|
3243
|
-
F && (F = F.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0] ?? null),
|
|
3250
|
+
H && H.enabled && e.virtual ? d.slideEl = Q(e.slidesEl, `.${e.params.slideActiveClass}`)[0] ?? void 0 : d.slideEl = e.slides[e.activeIndex];
|
|
3251
|
+
let F = d.slideEl?.querySelector(`.${G.containerClass}`) ?? null;
|
|
3252
|
+
F && (F = F.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0] ?? null), d.imageEl = F ?? void 0, F ? d.imageWrapEl = ue(F, `.${G.containerClass}`)[0] ?? void 0 : d.imageWrapEl = void 0;
|
|
3244
3253
|
}
|
|
3245
|
-
!
|
|
3254
|
+
!d.imageEl || !d.imageWrapEl || !d.slideEl || (d.maxRatio = h(), e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), O.scale = 1, i = 1, l.currentX = void 0, l.currentY = void 0, l.touchesStart.x = void 0, l.touchesStart.y = void 0, d.imageWrapEl.style.transitionDuration = "300ms", d.imageWrapEl.style.transform = "translate3d(0,0,0)", d.imageEl.style.transitionDuration = "300ms", d.imageEl.style.transform = "translate3d(0,0,0) scale(1)", d.slideEl.classList.remove(`${G.zoomedSlideClass}`), d.slideEl = void 0, d.originX = 0, d.originY = 0, G.panOnMouseMove && (r = { x: 0, y: 0 }, o && (o = !1, l.startX = 0, l.startY = 0)));
|
|
3246
3255
|
}
|
|
3247
3256
|
function V(O) {
|
|
3248
3257
|
const G = e.zoom;
|
|
@@ -3252,7 +3261,7 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
3252
3261
|
const O = e.params.passiveListeners ? { passive: !0, capture: !1 } : !1, G = e.params.passiveListeners ? { passive: !1, capture: !0 } : !0;
|
|
3253
3262
|
return { passiveListener: O, activeListenerWithCapture: G };
|
|
3254
3263
|
}
|
|
3255
|
-
function
|
|
3264
|
+
function Y() {
|
|
3256
3265
|
const O = e.zoom;
|
|
3257
3266
|
if (O.enabled)
|
|
3258
3267
|
return;
|
|
@@ -3273,7 +3282,7 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
3273
3282
|
}), e.wrapperEl.removeEventListener("pointermove", x, H);
|
|
3274
3283
|
}
|
|
3275
3284
|
s("init", () => {
|
|
3276
|
-
n().enabled &&
|
|
3285
|
+
n().enabled && Y();
|
|
3277
3286
|
}), s("destroy", () => {
|
|
3278
3287
|
q();
|
|
3279
3288
|
}), s("touchStart", (O, G) => {
|
|
@@ -3287,7 +3296,7 @@ const ct = (e) => !!e.virtual && !!e.params.virtual?.enabled, qs = (e) => !!e.pa
|
|
|
3287
3296
|
}), s("slideChange", () => {
|
|
3288
3297
|
e.zoom.enabled && n().enabled && e.params.cssMode && L();
|
|
3289
3298
|
}), Object.assign(e.zoom, {
|
|
3290
|
-
enable:
|
|
3299
|
+
enable: Y,
|
|
3291
3300
|
disable: q,
|
|
3292
3301
|
in: $,
|
|
3293
3302
|
out: z,
|
|
@@ -3301,9 +3310,9 @@ class ft {
|
|
|
3301
3310
|
binarySearch;
|
|
3302
3311
|
constructor(t, s) {
|
|
3303
3312
|
let a, n, i;
|
|
3304
|
-
this.binarySearch = (u,
|
|
3313
|
+
this.binarySearch = (u, o) => {
|
|
3305
3314
|
for (n = -1, a = u.length; a - n > 1; )
|
|
3306
|
-
i = a + n >> 1, u[i] <=
|
|
3315
|
+
i = a + n >> 1, u[i] <= o ? n = i : a = i;
|
|
3307
3316
|
return a;
|
|
3308
3317
|
}, this.x = t, this.y = s, this.lastIndex = t.length - 1;
|
|
3309
3318
|
}
|
|
@@ -3314,7 +3323,7 @@ class ft {
|
|
|
3314
3323
|
return (t - this.x[a]) * (this.y[s] - this.y[a]) / (this.x[s] - this.x[a]) + this.y[a];
|
|
3315
3324
|
}
|
|
3316
3325
|
}
|
|
3317
|
-
const
|
|
3326
|
+
const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
3318
3327
|
t({
|
|
3319
3328
|
controller: {
|
|
3320
3329
|
control: void 0,
|
|
@@ -3334,7 +3343,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3334
3343
|
function i(r, m) {
|
|
3335
3344
|
const f = e.controller.control;
|
|
3336
3345
|
let c, T;
|
|
3337
|
-
const
|
|
3346
|
+
const d = e.constructor;
|
|
3338
3347
|
function l(g) {
|
|
3339
3348
|
if (g.destroyed)
|
|
3340
3349
|
return;
|
|
@@ -3344,27 +3353,27 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3344
3353
|
if (Array.isArray(f))
|
|
3345
3354
|
for (let g = 0; g < f.length; g += 1) {
|
|
3346
3355
|
const v = f[g];
|
|
3347
|
-
v && v !== m && v instanceof
|
|
3356
|
+
v && v !== m && v instanceof d && l(v);
|
|
3348
3357
|
}
|
|
3349
|
-
else f instanceof
|
|
3358
|
+
else f instanceof d && m !== f && l(f);
|
|
3350
3359
|
}
|
|
3351
3360
|
function u(r, m) {
|
|
3352
3361
|
const f = e.constructor, c = e.controller.control;
|
|
3353
|
-
function T(
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
}), xe(
|
|
3357
|
-
c &&
|
|
3362
|
+
function T(d) {
|
|
3363
|
+
d.destroyed || (d.setTransition(r, e), r !== 0 && (d.transitionStart(), d.params.autoHeight && Se(() => {
|
|
3364
|
+
d.updateAutoHeight();
|
|
3365
|
+
}), xe(d.wrapperEl, () => {
|
|
3366
|
+
c && d.transitionEnd();
|
|
3358
3367
|
})));
|
|
3359
3368
|
}
|
|
3360
3369
|
if (Array.isArray(c))
|
|
3361
|
-
for (let
|
|
3362
|
-
const l = c[
|
|
3370
|
+
for (let d = 0; d < c.length; d += 1) {
|
|
3371
|
+
const l = c[d];
|
|
3363
3372
|
l && l !== m && l instanceof f && T(l);
|
|
3364
3373
|
}
|
|
3365
3374
|
else c instanceof f && m !== c && T(c);
|
|
3366
3375
|
}
|
|
3367
|
-
function
|
|
3376
|
+
function o() {
|
|
3368
3377
|
e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline);
|
|
3369
3378
|
}
|
|
3370
3379
|
s("beforeInit", () => {
|
|
@@ -3376,22 +3385,22 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3376
3385
|
if (f && f.swiper)
|
|
3377
3386
|
c.push(f.swiper);
|
|
3378
3387
|
else if (f) {
|
|
3379
|
-
const T = `${e.params.eventsPrefix}init`,
|
|
3388
|
+
const T = `${e.params.eventsPrefix}init`, d = (l) => {
|
|
3380
3389
|
const g = l.detail;
|
|
3381
|
-
g && g[0] && c.push(g[0]), e.update(), f.removeEventListener(T,
|
|
3390
|
+
g && g[0] && c.push(g[0]), e.update(), f.removeEventListener(T, d);
|
|
3382
3391
|
};
|
|
3383
|
-
f.addEventListener(T,
|
|
3392
|
+
f.addEventListener(T, d);
|
|
3384
3393
|
}
|
|
3385
3394
|
});
|
|
3386
3395
|
return;
|
|
3387
3396
|
}
|
|
3388
3397
|
e.controller.control = r;
|
|
3389
3398
|
}), s("update", () => {
|
|
3390
|
-
|
|
3399
|
+
o();
|
|
3391
3400
|
}), s("resize", () => {
|
|
3392
|
-
|
|
3401
|
+
o();
|
|
3393
3402
|
}), s("observerUpdate", () => {
|
|
3394
|
-
|
|
3403
|
+
o();
|
|
3395
3404
|
}), s("setTranslate", (r, m, f) => {
|
|
3396
3405
|
e.controller.control && (!Array.isArray(e.controller.control) && e.controller.control.destroyed || e.controller.setTranslate(m, f));
|
|
3397
3406
|
}), s("setTransition", (r, m, f) => {
|
|
@@ -3400,7 +3409,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3400
3409
|
setTranslate: i,
|
|
3401
3410
|
setTransition: u
|
|
3402
3411
|
});
|
|
3403
|
-
},
|
|
3412
|
+
}, na = (e) => !!e.virtual && !!e.params.virtual?.enabled, ia = ({ swiper: e, extendParams: t, on: s }) => {
|
|
3404
3413
|
t({
|
|
3405
3414
|
a11y: {
|
|
3406
3415
|
enabled: !0,
|
|
@@ -3424,7 +3433,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3424
3433
|
clicked: !1
|
|
3425
3434
|
};
|
|
3426
3435
|
let a = null, n = !1, i, u = (/* @__PURE__ */ new Date()).getTime();
|
|
3427
|
-
function
|
|
3436
|
+
function o() {
|
|
3428
3437
|
return e.params.a11y;
|
|
3429
3438
|
}
|
|
3430
3439
|
function r(L) {
|
|
@@ -3450,7 +3459,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3450
3459
|
z.setAttribute("role", N);
|
|
3451
3460
|
});
|
|
3452
3461
|
}
|
|
3453
|
-
function
|
|
3462
|
+
function d(L, N) {
|
|
3454
3463
|
U(L).forEach((z) => {
|
|
3455
3464
|
z.setAttribute("aria-roledescription", N);
|
|
3456
3465
|
});
|
|
@@ -3483,7 +3492,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3483
3492
|
function p(L) {
|
|
3484
3493
|
if (L.keyCode !== 13 && L.keyCode !== 32)
|
|
3485
3494
|
return;
|
|
3486
|
-
const N =
|
|
3495
|
+
const N = o(), $ = e.params.pagination, z = L.target;
|
|
3487
3496
|
if (!(e.pagination && e.pagination.el && (z === e.pagination.el || e.pagination.el.contains(z)) && !z.matches(oe($?.bulletClass)))) {
|
|
3488
3497
|
if (e.navigation && e.navigation.prevEl && e.navigation.nextEl) {
|
|
3489
3498
|
const V = U(e.navigation.prevEl);
|
|
@@ -3506,7 +3515,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3506
3515
|
return y() && !!L?.clickable;
|
|
3507
3516
|
}
|
|
3508
3517
|
function A() {
|
|
3509
|
-
const L =
|
|
3518
|
+
const L = o();
|
|
3510
3519
|
if (!y())
|
|
3511
3520
|
return;
|
|
3512
3521
|
const N = e.params.pagination;
|
|
@@ -3527,41 +3536,41 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3527
3536
|
}, b = (L) => {
|
|
3528
3537
|
u = (/* @__PURE__ */ new Date()).getTime();
|
|
3529
3538
|
}, M = (L) => {
|
|
3530
|
-
const N =
|
|
3539
|
+
const N = o();
|
|
3531
3540
|
if (e.a11y.clicked || !N.scrollOnFocus || (/* @__PURE__ */ new Date()).getTime() - u < 100)
|
|
3532
3541
|
return;
|
|
3533
3542
|
const z = L.target.closest(`.${e.params.slideClass}, swiper-slide`);
|
|
3534
3543
|
if (!z || !e.slides.includes(z))
|
|
3535
3544
|
return;
|
|
3536
3545
|
i = z;
|
|
3537
|
-
const V =
|
|
3538
|
-
if (k ||
|
|
3546
|
+
const V = na(e), k = (V ? parseInt(z.getAttribute("data-swiper-slide-index") || "0", 10) : e.slides.indexOf(z)) === e.activeIndex, Y = e.params.watchSlidesProgress && e.visibleSlides && e.visibleSlides.includes(z);
|
|
3547
|
+
if (k || Y)
|
|
3539
3548
|
return;
|
|
3540
3549
|
const q = L.sourceCapabilities;
|
|
3541
3550
|
q && q.firesTouchEvents || (e.isHorizontal() ? e.el.scrollLeft = 0 : e.el.scrollTop = 0, requestAnimationFrame(() => {
|
|
3542
3551
|
n || (e.params.loop ? e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(z.getAttribute("data-swiper-slide-index") || "0", 10)), 0) : V ? e.slideTo(e.getSlideIndexWhenGrid(parseInt(z.getAttribute("data-swiper-slide-index") || "0", 10)), 0) : e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(z)), 0), n = !1);
|
|
3543
3552
|
}));
|
|
3544
3553
|
}, C = () => {
|
|
3545
|
-
const L =
|
|
3546
|
-
L.itemRoleDescriptionMessage &&
|
|
3554
|
+
const L = o();
|
|
3555
|
+
L.itemRoleDescriptionMessage && d(e.slides, L.itemRoleDescriptionMessage), L.slideRole && T(e.slides, L.slideRole);
|
|
3547
3556
|
const N = e.slides.length, $ = L.slideLabelMessage;
|
|
3548
3557
|
$ && e.slides.forEach((z, V) => {
|
|
3549
|
-
const k = e.params.loop ? parseInt(z.getAttribute("data-swiper-slide-index") || "0", 10) : V,
|
|
3550
|
-
l(z,
|
|
3558
|
+
const k = e.params.loop ? parseInt(z.getAttribute("data-swiper-slide-index") || "0", 10) : V, Y = $.replace(/\{\{index\}\}/, String(k + 1)).replace(/\{\{slidesLength\}\}/, String(N));
|
|
3559
|
+
l(z, Y);
|
|
3551
3560
|
});
|
|
3552
3561
|
}, x = () => {
|
|
3553
|
-
const L =
|
|
3562
|
+
const L = o();
|
|
3554
3563
|
a && e.el.append(a);
|
|
3555
3564
|
const N = e.el;
|
|
3556
|
-
L.containerRoleDescriptionMessage &&
|
|
3565
|
+
L.containerRoleDescriptionMessage && d(N, L.containerRoleDescriptionMessage), L.containerMessage && l(N, L.containerMessage), L.containerRole && T(N, L.containerRole);
|
|
3557
3566
|
const $ = e.wrapperEl, z = String(L.id || $.getAttribute("id") || `swiper-wrapper-${m(16)}`);
|
|
3558
3567
|
if (g($, z), L.wrapperLiveRegion) {
|
|
3559
3568
|
const q = e.params.autoplay, O = e.params.autoplay && q?.enabled ? "off" : "polite";
|
|
3560
3569
|
v($, O);
|
|
3561
3570
|
}
|
|
3562
3571
|
C();
|
|
3563
|
-
const V = e.navigation ? e.navigation : { nextEl: void 0, prevEl: void 0 }, k = U(V.nextEl),
|
|
3564
|
-
k && k.forEach((q) => R(q, z, L.nextSlideMessage)),
|
|
3572
|
+
const V = e.navigation ? e.navigation : { nextEl: void 0, prevEl: void 0 }, k = U(V.nextEl), Y = U(V.prevEl);
|
|
3573
|
+
k && k.forEach((q) => R(q, z, L.nextSlideMessage)), Y && Y.forEach((q) => R(q, z, L.prevSlideMessage)), I() && U(e.pagination.el).forEach((O) => {
|
|
3565
3574
|
O.addEventListener("keydown", p);
|
|
3566
3575
|
}), document.addEventListener("visibilitychange", b), e.el.addEventListener("focus", M, !0), e.el.addEventListener("pointerdown", _, !0), e.el.addEventListener("pointerup", P, !0);
|
|
3567
3576
|
};
|
|
@@ -3573,19 +3582,19 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3573
3582
|
}), document.removeEventListener("visibilitychange", b), e.el && typeof e.el != "string" && (e.el.removeEventListener("focus", M, !0), e.el.removeEventListener("pointerdown", _, !0), e.el.removeEventListener("pointerup", P, !0));
|
|
3574
3583
|
}
|
|
3575
3584
|
s("beforeInit", () => {
|
|
3576
|
-
a = ne("span",
|
|
3585
|
+
a = ne("span", o().notificationClass), a.setAttribute("aria-live", "assertive"), a.setAttribute("aria-atomic", "true");
|
|
3577
3586
|
}), s("afterInit", () => {
|
|
3578
|
-
|
|
3587
|
+
o().enabled && x();
|
|
3579
3588
|
}), s("slidesLengthChange snapGridLengthChange slidesGridLengthChange", () => {
|
|
3580
|
-
|
|
3589
|
+
o().enabled && C();
|
|
3581
3590
|
}), s("fromEdge toEdge afterInit lock unlock", () => {
|
|
3582
|
-
|
|
3591
|
+
o().enabled && E();
|
|
3583
3592
|
}), s("paginationUpdate", () => {
|
|
3584
|
-
|
|
3593
|
+
o().enabled && A();
|
|
3585
3594
|
}), s("destroy", () => {
|
|
3586
|
-
|
|
3595
|
+
o().enabled && w();
|
|
3587
3596
|
});
|
|
3588
|
-
},
|
|
3597
|
+
}, la = ({ swiper: e, extendParams: t, on: s }) => {
|
|
3589
3598
|
t({
|
|
3590
3599
|
history: {
|
|
3591
3600
|
enabled: !1,
|
|
@@ -3599,12 +3608,12 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3599
3608
|
function i() {
|
|
3600
3609
|
return e.params.history;
|
|
3601
3610
|
}
|
|
3602
|
-
const u = (
|
|
3611
|
+
const u = (d) => d.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), o = (d) => {
|
|
3603
3612
|
let l;
|
|
3604
|
-
|
|
3613
|
+
d ? l = new URL(d) : l = window.location;
|
|
3605
3614
|
const g = l.pathname.slice(1).split("/").filter((p) => p !== ""), v = g.length, S = g[v - 2], h = g[v - 1];
|
|
3606
3615
|
return { key: S, value: h };
|
|
3607
|
-
}, r = (
|
|
3616
|
+
}, r = (d, l) => {
|
|
3608
3617
|
const g = i();
|
|
3609
3618
|
if (!a || !g.enabled)
|
|
3610
3619
|
return;
|
|
@@ -3615,36 +3624,36 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3615
3624
|
return;
|
|
3616
3625
|
let p = u(h.getAttribute("data-history") || "");
|
|
3617
3626
|
const E = g.root;
|
|
3618
|
-
E.length > 0 ? p = `${E[E.length - 1] === "/" ? E.slice(0, E.length - 1) : E}/${
|
|
3627
|
+
E.length > 0 ? p = `${E[E.length - 1] === "/" ? E.slice(0, E.length - 1) : E}/${d ? `${d}/` : ""}${p}` : v.pathname.includes(d || "") || (p = `${d ? `${d}/` : ""}${p}`), g.keepQuery && (p += v.search);
|
|
3619
3628
|
const y = window.history.state;
|
|
3620
3629
|
y && y.value === p || (g.replaceState ? window.history.replaceState({ value: p }, "", p) : window.history.pushState({ value: p }, "", p));
|
|
3621
|
-
}, m = (
|
|
3630
|
+
}, m = (d, l, g) => {
|
|
3622
3631
|
if (l)
|
|
3623
3632
|
for (let v = 0, S = e.slides.length; v < S; v += 1) {
|
|
3624
3633
|
const h = e.slides[v];
|
|
3625
3634
|
if (u(h.getAttribute("data-history") || "") === l) {
|
|
3626
3635
|
const E = e.getSlideIndex(h);
|
|
3627
|
-
e.slideTo(E,
|
|
3636
|
+
e.slideTo(E, d, g);
|
|
3628
3637
|
}
|
|
3629
3638
|
}
|
|
3630
3639
|
else
|
|
3631
|
-
e.slideTo(0,
|
|
3640
|
+
e.slideTo(0, d, g);
|
|
3632
3641
|
}, f = () => {
|
|
3633
|
-
n =
|
|
3642
|
+
n = o(e.params.url), m(e.params.speed, n.value, !1);
|
|
3634
3643
|
}, c = () => {
|
|
3635
|
-
const
|
|
3636
|
-
if (
|
|
3644
|
+
const d = e.params.history;
|
|
3645
|
+
if (d) {
|
|
3637
3646
|
if (!window.history || !window.history.pushState) {
|
|
3638
|
-
|
|
3647
|
+
d.enabled = !1;
|
|
3639
3648
|
const l = e.params.hashNavigation;
|
|
3640
3649
|
l && (l.enabled = !0);
|
|
3641
3650
|
return;
|
|
3642
3651
|
}
|
|
3643
|
-
if (a = !0, n =
|
|
3644
|
-
|
|
3652
|
+
if (a = !0, n = o(e.params.url), !n.key && !n.value) {
|
|
3653
|
+
d.replaceState || window.addEventListener("popstate", f);
|
|
3645
3654
|
return;
|
|
3646
3655
|
}
|
|
3647
|
-
m(0, n.value, e.params.runCallbacksOnInit),
|
|
3656
|
+
m(0, n.value, e.params.runCallbacksOnInit), d.replaceState || window.addEventListener("popstate", f);
|
|
3648
3657
|
}
|
|
3649
3658
|
}, T = () => {
|
|
3650
3659
|
i().replaceState || window.removeEventListener("popstate", f);
|
|
@@ -3658,7 +3667,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3658
3667
|
}), s("slideChange", () => {
|
|
3659
3668
|
a && e.params.cssMode && r(i().key, e.activeIndex);
|
|
3660
3669
|
});
|
|
3661
|
-
}, je = (e) => !!e.virtual && !!e.params.virtual?.enabled,
|
|
3670
|
+
}, je = (e) => !!e.virtual && !!e.params.virtual?.enabled, ra = ({ swiper: e, extendParams: t, emit: s, on: a }) => {
|
|
3662
3671
|
let n = !1;
|
|
3663
3672
|
t({
|
|
3664
3673
|
hashNavigation: {
|
|
@@ -3667,8 +3676,8 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3667
3676
|
watchState: !1,
|
|
3668
3677
|
getSlideIndex(f, c) {
|
|
3669
3678
|
if (je(e)) {
|
|
3670
|
-
const
|
|
3671
|
-
return
|
|
3679
|
+
const d = e.slides.find((g) => g.getAttribute("data-hash") === c);
|
|
3680
|
+
return d ? parseInt(d.getAttribute("data-swiper-slide-index") || "0", 10) : 0;
|
|
3672
3681
|
}
|
|
3673
3682
|
const T = Q(e.slidesEl, `.${e.params.slideClass}[data-hash="${c}"], swiper-slide[data-hash="${c}"]`)[0];
|
|
3674
3683
|
return T ? e.getSlideIndex(T) : 0;
|
|
@@ -3682,12 +3691,12 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3682
3691
|
s("hashChange");
|
|
3683
3692
|
const f = document.location.hash.replace("#", ""), c = je(e) ? e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`) : e.slides[e.activeIndex], T = c ? c.getAttribute("data-hash") : "";
|
|
3684
3693
|
if (f !== T) {
|
|
3685
|
-
const
|
|
3686
|
-
if (typeof
|
|
3694
|
+
const d = i().getSlideIndex(e, f);
|
|
3695
|
+
if (typeof d > "u" || Number.isNaN(d))
|
|
3687
3696
|
return;
|
|
3688
|
-
e.slideTo(
|
|
3697
|
+
e.slideTo(d);
|
|
3689
3698
|
}
|
|
3690
|
-
},
|
|
3699
|
+
}, o = () => {
|
|
3691
3700
|
const f = i();
|
|
3692
3701
|
if (!n || !f.enabled)
|
|
3693
3702
|
return;
|
|
@@ -3712,11 +3721,11 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3712
3721
|
}), a("destroy", () => {
|
|
3713
3722
|
i().enabled && m();
|
|
3714
3723
|
}), a("transitionEnd _freeModeNoMomentumRelease", () => {
|
|
3715
|
-
n &&
|
|
3724
|
+
n && o();
|
|
3716
3725
|
}), a("slideChange", () => {
|
|
3717
|
-
n && e.params.cssMode &&
|
|
3726
|
+
n && e.params.cssMode && o();
|
|
3718
3727
|
});
|
|
3719
|
-
},
|
|
3728
|
+
}, oa = ({ swiper: e, extendParams: t, on: s, emit: a, params: n }) => {
|
|
3720
3729
|
e.autoplay = {
|
|
3721
3730
|
running: !1,
|
|
3722
3731
|
paused: !1,
|
|
@@ -3736,7 +3745,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3736
3745
|
return e.params.autoplay;
|
|
3737
3746
|
}
|
|
3738
3747
|
const u = typeof n.autoplay == "object" && n.autoplay && typeof n.autoplay.delay == "number" ? n.autoplay.delay : 3e3;
|
|
3739
|
-
let
|
|
3748
|
+
let o, r, m = u, f = u, c = 0, T = (/* @__PURE__ */ new Date()).getTime(), d = !1, l = !1, g = !1, v, S = !1, h = !1;
|
|
3740
3749
|
function p(z) {
|
|
3741
3750
|
if (!e || e.destroyed || !e.wrapperEl || z.target !== e.wrapperEl)
|
|
3742
3751
|
return;
|
|
@@ -3747,7 +3756,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3747
3756
|
const E = () => {
|
|
3748
3757
|
if (e.destroyed || !e.autoplay.running)
|
|
3749
3758
|
return;
|
|
3750
|
-
e.autoplay.paused ?
|
|
3759
|
+
e.autoplay.paused ? d = !0 : d && (f = c, d = !1);
|
|
3751
3760
|
const z = e.autoplay.paused ? c : T + f - (/* @__PURE__ */ new Date()).getTime();
|
|
3752
3761
|
e.autoplay.timeLeft = z, a("autoplayTimeLeft", z, z / m), r = requestAnimationFrame(() => {
|
|
3753
3762
|
E();
|
|
@@ -3755,7 +3764,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3755
3764
|
}, y = () => {
|
|
3756
3765
|
let z;
|
|
3757
3766
|
const V = !!e.params.virtual?.enabled;
|
|
3758
|
-
if (e.virtual && V ? z = e.slides.find((
|
|
3767
|
+
if (e.virtual && V ? z = e.slides.find((Y) => Y.classList.contains("swiper-slide-active")) : z = e.slides[e.activeIndex], !z)
|
|
3759
3768
|
return;
|
|
3760
3769
|
const k = z.getAttribute("data-swiper-autoplay");
|
|
3761
3770
|
if (k != null)
|
|
@@ -3770,7 +3779,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3770
3779
|
r !== void 0 && cancelAnimationFrame(r), E();
|
|
3771
3780
|
let V = z;
|
|
3772
3781
|
typeof V > "u" && (V = I(), m = V, f = V), c = V;
|
|
3773
|
-
const k = e.params.speed,
|
|
3782
|
+
const k = e.params.speed, Y = () => {
|
|
3774
3783
|
if (!e || e.destroyed)
|
|
3775
3784
|
return;
|
|
3776
3785
|
const q = i();
|
|
@@ -3778,15 +3787,15 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3778
3787
|
A();
|
|
3779
3788
|
}));
|
|
3780
3789
|
};
|
|
3781
|
-
return V > 0 ? (
|
|
3782
|
-
|
|
3790
|
+
return V > 0 ? (o !== void 0 && clearTimeout(o), o = setTimeout(() => {
|
|
3791
|
+
Y();
|
|
3783
3792
|
}, V)) : requestAnimationFrame(() => {
|
|
3784
|
-
|
|
3793
|
+
Y();
|
|
3785
3794
|
}), V;
|
|
3786
|
-
}, R = () => (T = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, A(), a("autoplayStart"), !0), _ = () => (e.autoplay.running = !1,
|
|
3795
|
+
}, R = () => (T = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, A(), a("autoplayStart"), !0), _ = () => (e.autoplay.running = !1, o !== void 0 && clearTimeout(o), r !== void 0 && cancelAnimationFrame(r), a("autoplayStop"), !0), P = (z, V) => {
|
|
3787
3796
|
if (e.destroyed || !e.autoplay.running)
|
|
3788
3797
|
return;
|
|
3789
|
-
|
|
3798
|
+
o !== void 0 && clearTimeout(o), z || (S = !0);
|
|
3790
3799
|
const k = () => {
|
|
3791
3800
|
a("autoplayPause"), i().waitForTransition ? e.wrapperEl.addEventListener("transitionend", p) : b();
|
|
3792
3801
|
};
|
|
@@ -3834,7 +3843,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3834
3843
|
}
|
|
3835
3844
|
}), s("touchEnd", () => {
|
|
3836
3845
|
if (!(e.destroyed || !e.autoplay.running || !l)) {
|
|
3837
|
-
if (v !== void 0 && clearTimeout(v),
|
|
3846
|
+
if (v !== void 0 && clearTimeout(v), o !== void 0 && clearTimeout(o), i().disableOnInteraction) {
|
|
3838
3847
|
g = !1, l = !1;
|
|
3839
3848
|
return;
|
|
3840
3849
|
}
|
|
@@ -3848,7 +3857,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3848
3857
|
pause: P,
|
|
3849
3858
|
resume: b
|
|
3850
3859
|
});
|
|
3851
|
-
},
|
|
3860
|
+
}, da = ({ swiper: e, extendParams: t, on: s }) => {
|
|
3852
3861
|
t({
|
|
3853
3862
|
thumbs: {
|
|
3854
3863
|
swiper: null,
|
|
@@ -3872,12 +3881,12 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3872
3881
|
const T = c.params.virtual;
|
|
3873
3882
|
return !!T && !!T.enabled;
|
|
3874
3883
|
}
|
|
3875
|
-
function
|
|
3884
|
+
function o() {
|
|
3876
3885
|
const c = e.thumbs.swiper;
|
|
3877
3886
|
if (!c || c.destroyed)
|
|
3878
3887
|
return;
|
|
3879
|
-
const T = c.clickedIndex,
|
|
3880
|
-
if (
|
|
3888
|
+
const T = c.clickedIndex, d = c.clickedSlide, l = i();
|
|
3889
|
+
if (d && d.classList.contains(l.slideThumbActiveClass) || typeof T > "u" || T === null)
|
|
3881
3890
|
return;
|
|
3882
3891
|
let g;
|
|
3883
3892
|
if (c.params.loop) {
|
|
@@ -3911,25 +3920,25 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3911
3920
|
slideToClickedSlide: !1
|
|
3912
3921
|
}), e.thumbs.swiper = new T(l), n = !0;
|
|
3913
3922
|
}
|
|
3914
|
-
const
|
|
3915
|
-
return
|
|
3923
|
+
const d = e.thumbs.swiper;
|
|
3924
|
+
return d ? (d.el.classList.add(c.thumbsContainerClass), d.on("tap", o), u() && d.on("virtualUpdate", () => {
|
|
3916
3925
|
m(!1, { autoScroll: !1 });
|
|
3917
3926
|
}), !0) : !1;
|
|
3918
3927
|
}
|
|
3919
3928
|
function m(c, T) {
|
|
3920
|
-
const
|
|
3921
|
-
if (!
|
|
3929
|
+
const d = e.thumbs.swiper;
|
|
3930
|
+
if (!d || d.destroyed)
|
|
3922
3931
|
return;
|
|
3923
3932
|
let l = 1;
|
|
3924
3933
|
const g = i(), v = g.slideThumbActiveClass, S = e.params.slidesPerView;
|
|
3925
|
-
if (typeof S == "number" && S > 1 && !e.params.centeredSlides && (l = S), g.multipleActiveThumbs || (l = 1), l = Math.floor(l),
|
|
3934
|
+
if (typeof S == "number" && S > 1 && !e.params.centeredSlides && (l = S), g.multipleActiveThumbs || (l = 1), l = Math.floor(l), d.slides.forEach((h) => h.classList.remove(v)), d.params.loop || u())
|
|
3926
3935
|
for (let h = 0; h < l; h += 1)
|
|
3927
|
-
Q(
|
|
3936
|
+
Q(d.slidesEl, `[data-swiper-slide-index="${e.realIndex + h}"]`).forEach((p) => {
|
|
3928
3937
|
p.classList.add(v);
|
|
3929
3938
|
});
|
|
3930
3939
|
else
|
|
3931
3940
|
for (let h = 0; h < l; h += 1) {
|
|
3932
|
-
const p =
|
|
3941
|
+
const p = d.slides[e.realIndex + h];
|
|
3933
3942
|
p && p.classList.add(v);
|
|
3934
3943
|
}
|
|
3935
3944
|
(T?.autoScroll ?? !0) && f(c ? 0 : void 0);
|
|
@@ -3938,7 +3947,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3938
3947
|
const T = e.thumbs.swiper;
|
|
3939
3948
|
if (!T || T.destroyed)
|
|
3940
3949
|
return;
|
|
3941
|
-
const
|
|
3950
|
+
const d = T.params.slidesPerView, l = d === "auto" ? T.slidesPerViewDynamic() : d ?? 1, g = i().autoScrollOffset, v = g && !T.params.loop;
|
|
3942
3951
|
if (e.realIndex !== T.realIndex || v) {
|
|
3943
3952
|
const S = T.activeIndex;
|
|
3944
3953
|
let h, p;
|
|
@@ -3966,19 +3975,19 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3966
3975
|
l.addEventListener(g, v);
|
|
3967
3976
|
}
|
|
3968
3977
|
return l;
|
|
3969
|
-
},
|
|
3978
|
+
}, d = () => {
|
|
3970
3979
|
if (e.destroyed)
|
|
3971
3980
|
return;
|
|
3972
|
-
T() || requestAnimationFrame(
|
|
3981
|
+
T() || requestAnimationFrame(d);
|
|
3973
3982
|
};
|
|
3974
|
-
requestAnimationFrame(
|
|
3983
|
+
requestAnimationFrame(d);
|
|
3975
3984
|
} else
|
|
3976
3985
|
r(), m(!0);
|
|
3977
3986
|
}), s("slideChange update resize observerUpdate", () => {
|
|
3978
3987
|
m();
|
|
3979
3988
|
}), s("setTransition", (c, T) => {
|
|
3980
|
-
const
|
|
3981
|
-
!
|
|
3989
|
+
const d = e.thumbs.swiper;
|
|
3990
|
+
!d || d.destroyed || d.setTransition(T);
|
|
3982
3991
|
}), s("beforeDestroy", () => {
|
|
3983
3992
|
const c = e.thumbs.swiper;
|
|
3984
3993
|
!c || c.destroyed || n && c.destroy();
|
|
@@ -3986,7 +3995,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3986
3995
|
init: r,
|
|
3987
3996
|
update: m
|
|
3988
3997
|
});
|
|
3989
|
-
},
|
|
3998
|
+
}, ca = ({ swiper: e, extendParams: t, emit: s, once: a }) => {
|
|
3990
3999
|
t({
|
|
3991
4000
|
freeMode: {
|
|
3992
4001
|
enabled: !1,
|
|
@@ -4020,10 +4029,10 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4020
4029
|
time: ae()
|
|
4021
4030
|
});
|
|
4022
4031
|
}
|
|
4023
|
-
function
|
|
4032
|
+
function o({ currentPos: r }) {
|
|
4024
4033
|
if (e.params.cssMode)
|
|
4025
4034
|
return;
|
|
4026
|
-
const { wrapperEl: m, rtlTranslate: f, snapGrid: c, touchEventsData: T } = e,
|
|
4035
|
+
const { wrapperEl: m, rtlTranslate: f, snapGrid: c, touchEventsData: T } = e, d = e.params, l = n(), g = ae(), v = g - (T.touchStartTime ?? g);
|
|
4027
4036
|
if (r < -e.minTranslate()) {
|
|
4028
4037
|
e.slideTo(e.activeIndex);
|
|
4029
4038
|
return;
|
|
@@ -4047,9 +4056,9 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4047
4056
|
const I = Math.abs(e.velocity) * 20 * l.momentumBounceRatio;
|
|
4048
4057
|
let A = !1;
|
|
4049
4058
|
if (p < e.maxTranslate())
|
|
4050
|
-
l.momentumBounce ? (p + e.maxTranslate() < -I && (p = e.maxTranslate() - I), y = e.maxTranslate(), E = !0, T.allowMomentumBounce = !0) : p = e.maxTranslate(),
|
|
4059
|
+
l.momentumBounce ? (p + e.maxTranslate() < -I && (p = e.maxTranslate() - I), y = e.maxTranslate(), E = !0, T.allowMomentumBounce = !0) : p = e.maxTranslate(), d.loop && d.centeredSlides && (A = !0);
|
|
4051
4060
|
else if (p > e.minTranslate())
|
|
4052
|
-
l.momentumBounce ? (p - e.minTranslate() > I && (p = e.minTranslate() + I), y = e.minTranslate(), E = !0, T.allowMomentumBounce = !0) : p = e.minTranslate(),
|
|
4061
|
+
l.momentumBounce ? (p - e.minTranslate() > I && (p = e.minTranslate() + I), y = e.minTranslate(), E = !0, T.allowMomentumBounce = !0) : p = e.minTranslate(), d.loop && d.centeredSlides && (A = !0);
|
|
4053
4062
|
else if (l.sticky) {
|
|
4054
4063
|
let R = 0;
|
|
4055
4064
|
for (let _ = 0; _ < c.length; _ += 1)
|
|
@@ -4063,7 +4072,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4063
4072
|
e.loopFix();
|
|
4064
4073
|
}), e.velocity !== 0) {
|
|
4065
4074
|
if (f ? S = Math.abs((-p - e.translate) / e.velocity) : S = Math.abs((p - e.translate) / e.velocity), l.sticky) {
|
|
4066
|
-
const R = Math.abs((f ? -p : p) - e.translate), _ = e.slidesSizesGrid[e.activeIndex], P =
|
|
4075
|
+
const R = Math.abs((f ? -p : p) - e.translate), _ = e.slidesSizesGrid[e.activeIndex], P = d.speed;
|
|
4067
4076
|
R < _ ? S = P : R < 2 * _ ? S = P * 1.5 : S = P * 2.5;
|
|
4068
4077
|
}
|
|
4069
4078
|
} else if (l.sticky) {
|
|
@@ -4071,7 +4080,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4071
4080
|
return;
|
|
4072
4081
|
}
|
|
4073
4082
|
l.momentumBounce && E && y !== void 0 ? (e.updateProgress(y), e.setTransition(S), e.setTranslate(p), e.transitionStart(!0, e.swipeDirection), e.animating = !0, xe(m, () => {
|
|
4074
|
-
!e || e.destroyed || !T.allowMomentumBounce || (s("momentumBounce"), e.setTransition(
|
|
4083
|
+
!e || e.destroyed || !T.allowMomentumBounce || (s("momentumBounce"), e.setTransition(d.speed), setTimeout(() => {
|
|
4075
4084
|
e.setTranslate(y), xe(m, () => {
|
|
4076
4085
|
!e || e.destroyed || e.transitionEnd();
|
|
4077
4086
|
});
|
|
@@ -4084,14 +4093,14 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4084
4093
|
return;
|
|
4085
4094
|
} else
|
|
4086
4095
|
s("_freeModeNoMomentumRelease");
|
|
4087
|
-
(!l.momentum || v >=
|
|
4096
|
+
(!l.momentum || v >= d.longSwipesMs) && (s("_freeModeStaticRelease"), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses());
|
|
4088
4097
|
}
|
|
4089
4098
|
e.freeMode = {
|
|
4090
4099
|
onTouchStart: i,
|
|
4091
4100
|
onTouchMove: u,
|
|
4092
|
-
onTouchEnd:
|
|
4101
|
+
onTouchEnd: o
|
|
4093
4102
|
};
|
|
4094
|
-
},
|
|
4103
|
+
}, fa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
4095
4104
|
t({
|
|
4096
4105
|
grid: {
|
|
4097
4106
|
rows: 1,
|
|
@@ -4101,7 +4110,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4101
4110
|
function a() {
|
|
4102
4111
|
return e.params.grid;
|
|
4103
4112
|
}
|
|
4104
|
-
let n, i, u,
|
|
4113
|
+
let n, i, u, o;
|
|
4105
4114
|
const r = () => {
|
|
4106
4115
|
let v = e.params.spaceBetween ?? 0;
|
|
4107
4116
|
return typeof v == "string" && v.indexOf("%") >= 0 ? v = parseFloat(v.replace("%", "")) / 100 * e.size : typeof v == "string" && (v = parseFloat(v)), v;
|
|
@@ -4124,7 +4133,7 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4124
4133
|
} else I === "column" ? (_ = Math.floor(v / y), P = v - _ * y, (_ > u || _ === u && P === y - 1) && (P += 1, P >= y && (P = 0, _ += 1))) : (P = Math.floor(v / i), _ = v - P * i);
|
|
4125
4134
|
const b = S;
|
|
4126
4135
|
b.row = P, b.column = _, S.style.height = `calc((100% - ${(y - 1) * E}px) / ${y})`, S.style.setProperty(e.getDirectionLabel("margin-top"), P !== 0 && E ? `${E}px` : ""), b.swiperSlideGridSet = !0;
|
|
4127
|
-
},
|
|
4136
|
+
}, d = (v, S) => {
|
|
4128
4137
|
const { centeredSlides: h, roundLengths: p } = e.params, E = r(), { rows: y } = a();
|
|
4129
4138
|
if (e.virtualSize = (v + E) * n, e.virtualSize = Math.ceil(e.virtualSize / y) - E, e.params.cssMode || e.wrapperEl.style.setProperty(e.getDirectionLabel("width"), `${e.virtualSize + E}px`), h) {
|
|
4130
4139
|
const I = [];
|
|
@@ -4136,34 +4145,34 @@ const Js = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4136
4145
|
}
|
|
4137
4146
|
}, l = () => {
|
|
4138
4147
|
const v = e.params.grid;
|
|
4139
|
-
|
|
4148
|
+
o = !!(v && (v.rows ?? 1) > 1);
|
|
4140
4149
|
}, g = () => {
|
|
4141
4150
|
const { params: v, el: S } = e, h = v.grid, p = !!(h && (h.rows ?? 1) > 1);
|
|
4142
|
-
|
|
4151
|
+
o && !p ? (S.classList.remove(`${v.containerModifierClass}grid`, `${v.containerModifierClass}grid-column`), u = 1, e.emitContainerClasses()) : !o && p && (S.classList.add(`${v.containerModifierClass}grid`), h.fill === "column" && S.classList.add(`${v.containerModifierClass}grid-column`), e.emitContainerClasses()), o = p;
|
|
4143
4152
|
};
|
|
4144
4153
|
s("init", l), s("update", g), e.grid = {
|
|
4145
4154
|
initSlides: f,
|
|
4146
4155
|
unsetSlides: c,
|
|
4147
4156
|
updateSlide: T,
|
|
4148
|
-
updateWrapperSize:
|
|
4157
|
+
updateWrapperSize: d
|
|
4149
4158
|
};
|
|
4150
4159
|
};
|
|
4151
|
-
function
|
|
4160
|
+
function ua(e, t) {
|
|
4152
4161
|
const s = this, { params: a, activeIndex: n, slidesEl: i } = s;
|
|
4153
4162
|
let u = n;
|
|
4154
4163
|
a.loop && (u -= s.loopedSlides ?? 0, s.loopDestroy(), s.recalcSlides());
|
|
4155
|
-
const
|
|
4164
|
+
const o = s.slides.length;
|
|
4156
4165
|
if (e <= 0) {
|
|
4157
4166
|
s.prependSlide(t);
|
|
4158
4167
|
return;
|
|
4159
4168
|
}
|
|
4160
|
-
if (e >=
|
|
4169
|
+
if (e >= o) {
|
|
4161
4170
|
s.appendSlide(t);
|
|
4162
4171
|
return;
|
|
4163
4172
|
}
|
|
4164
4173
|
let r = u > e ? u + 1 : u;
|
|
4165
4174
|
const m = [];
|
|
4166
|
-
for (let f =
|
|
4175
|
+
for (let f = o - 1; f >= e; f -= 1) {
|
|
4167
4176
|
const c = s.slides[f];
|
|
4168
4177
|
c && (c.remove(), m.unshift(c));
|
|
4169
4178
|
}
|
|
@@ -4179,15 +4188,15 @@ function oa(e, t) {
|
|
|
4179
4188
|
i.append(m[f]);
|
|
4180
4189
|
s.recalcSlides(), a.loop && s.loopCreate(), (!a.observer || s.isElement) && s.update(), a.loop ? s.slideTo(r + (s.loopedSlides ?? 0), 0, !1) : s.slideTo(r, 0, !1);
|
|
4181
4190
|
}
|
|
4182
|
-
function
|
|
4191
|
+
function pa(e) {
|
|
4183
4192
|
const t = this, { params: s, slidesEl: a } = t;
|
|
4184
4193
|
s.loop && t.loopDestroy();
|
|
4185
4194
|
const n = (i) => {
|
|
4186
4195
|
if (typeof i == "string") {
|
|
4187
4196
|
const u = document.createElement("div");
|
|
4188
4197
|
le(u, i);
|
|
4189
|
-
const
|
|
4190
|
-
|
|
4198
|
+
const o = u.children[0];
|
|
4199
|
+
o && a.append(o), le(u, "");
|
|
4191
4200
|
} else
|
|
4192
4201
|
a.append(i);
|
|
4193
4202
|
};
|
|
@@ -4200,22 +4209,22 @@ function da(e) {
|
|
|
4200
4209
|
n(e);
|
|
4201
4210
|
t.recalcSlides(), s.loop && t.loopCreate(), (!s.observer || t.isElement) && t.update();
|
|
4202
4211
|
}
|
|
4203
|
-
function
|
|
4212
|
+
function ma(e) {
|
|
4204
4213
|
const t = this, { params: s, activeIndex: a, slidesEl: n } = t;
|
|
4205
4214
|
s.loop && t.loopDestroy();
|
|
4206
4215
|
let i = a + 1;
|
|
4207
|
-
const u = (
|
|
4208
|
-
if (typeof
|
|
4216
|
+
const u = (o) => {
|
|
4217
|
+
if (typeof o == "string") {
|
|
4209
4218
|
const r = document.createElement("div");
|
|
4210
|
-
le(r,
|
|
4219
|
+
le(r, o);
|
|
4211
4220
|
const m = r.children[0];
|
|
4212
4221
|
m && n.prepend(m), le(r, "");
|
|
4213
4222
|
} else
|
|
4214
|
-
n.prepend(
|
|
4223
|
+
n.prepend(o);
|
|
4215
4224
|
};
|
|
4216
4225
|
if (Array.isArray(e)) {
|
|
4217
|
-
for (let
|
|
4218
|
-
const r = e[
|
|
4226
|
+
for (let o = 0; o < e.length; o += 1) {
|
|
4227
|
+
const r = e[o];
|
|
4219
4228
|
r && u(r);
|
|
4220
4229
|
}
|
|
4221
4230
|
i = a + e.length;
|
|
@@ -4223,21 +4232,21 @@ function ca(e) {
|
|
|
4223
4232
|
u(e);
|
|
4224
4233
|
t.recalcSlides(), s.loop && t.loopCreate(), (!s.observer || t.isElement) && t.update(), t.slideTo(i, 0, !1);
|
|
4225
4234
|
}
|
|
4226
|
-
function
|
|
4235
|
+
function ha() {
|
|
4227
4236
|
const e = this, t = [];
|
|
4228
4237
|
for (let s = 0; s < e.slides.length; s += 1)
|
|
4229
4238
|
t.push(s);
|
|
4230
4239
|
e.removeSlide(t);
|
|
4231
4240
|
}
|
|
4232
|
-
function
|
|
4241
|
+
function ga(e) {
|
|
4233
4242
|
const t = this, { params: s, activeIndex: a } = t;
|
|
4234
4243
|
let n = a;
|
|
4235
4244
|
s.loop && (n -= t.loopedSlides ?? 0, t.loopDestroy());
|
|
4236
4245
|
let i = n;
|
|
4237
4246
|
if (Array.isArray(e)) {
|
|
4238
4247
|
for (let u = 0; u < e.length; u += 1) {
|
|
4239
|
-
const
|
|
4240
|
-
t.slides[
|
|
4248
|
+
const o = e[u];
|
|
4249
|
+
t.slides[o] && t.slides[o].remove(), o < i && (i -= 1);
|
|
4241
4250
|
}
|
|
4242
4251
|
i = Math.max(i, 0);
|
|
4243
4252
|
} else {
|
|
@@ -4246,21 +4255,21 @@ function ua(e) {
|
|
|
4246
4255
|
}
|
|
4247
4256
|
t.recalcSlides(), s.loop && t.loopCreate(), (!s.observer || t.isElement) && t.update(), s.loop ? t.slideTo(i + (t.loopedSlides ?? 0), 0, !1) : t.slideTo(i, 0, !1);
|
|
4248
4257
|
}
|
|
4249
|
-
const
|
|
4258
|
+
const Ta = ({ swiper: e }) => {
|
|
4250
4259
|
Object.assign(e, {
|
|
4251
|
-
appendSlide:
|
|
4252
|
-
prependSlide:
|
|
4253
|
-
addSlide:
|
|
4254
|
-
removeSlide:
|
|
4255
|
-
removeAllSlides:
|
|
4260
|
+
appendSlide: pa.bind(e),
|
|
4261
|
+
prependSlide: ma.bind(e),
|
|
4262
|
+
addSlide: ua.bind(e),
|
|
4263
|
+
removeSlide: ga.bind(e),
|
|
4264
|
+
removeAllSlides: ha.bind(e)
|
|
4256
4265
|
});
|
|
4257
4266
|
};
|
|
4258
4267
|
function ye(e) {
|
|
4259
|
-
const { effect: t, swiper: s, on: a, setTranslate: n, setTransition: i, overwriteParams: u, perspective:
|
|
4268
|
+
const { effect: t, swiper: s, on: a, setTranslate: n, setTransition: i, overwriteParams: u, perspective: o, recreateShadows: r, getEffectParams: m } = e;
|
|
4260
4269
|
a("beforeInit", () => {
|
|
4261
4270
|
if (s.params.effect !== t)
|
|
4262
4271
|
return;
|
|
4263
|
-
s.classNames.push(`${s.params.containerModifierClass}${t}`),
|
|
4272
|
+
s.classNames.push(`${s.params.containerModifierClass}${t}`), o && o() && s.classNames.push(`${s.params.containerModifierClass}3d`);
|
|
4264
4273
|
const c = u ? u() : {};
|
|
4265
4274
|
Object.assign(s.params, c), Object.assign(s.originalParams, c);
|
|
4266
4275
|
}), a("setTranslate _virtualUpdated", () => {
|
|
@@ -4273,7 +4282,7 @@ function ye(e) {
|
|
|
4273
4282
|
if (!c || !c.slideShadows)
|
|
4274
4283
|
return;
|
|
4275
4284
|
s.slides.forEach((T) => {
|
|
4276
|
-
T.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((
|
|
4285
|
+
T.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((d) => d.remove());
|
|
4277
4286
|
}), r();
|
|
4278
4287
|
}
|
|
4279
4288
|
});
|
|
@@ -4291,16 +4300,16 @@ function Me(e, t) {
|
|
|
4291
4300
|
function ke({ swiper: e, duration: t, transformElements: s, allSlides: a }) {
|
|
4292
4301
|
const { activeIndex: n } = e, i = (u) => {
|
|
4293
4302
|
if (!u.parentElement)
|
|
4294
|
-
return e.slides.find((
|
|
4303
|
+
return e.slides.find((o) => o.shadowRoot && o.shadowRoot === u.parentNode);
|
|
4295
4304
|
if (u.parentElement instanceof HTMLElement)
|
|
4296
4305
|
return u.parentElement;
|
|
4297
4306
|
};
|
|
4298
4307
|
if (e.params.virtualTranslate && t !== 0) {
|
|
4299
|
-
let u = !1,
|
|
4300
|
-
a ?
|
|
4308
|
+
let u = !1, o;
|
|
4309
|
+
a ? o = s : o = s.filter((r) => {
|
|
4301
4310
|
const m = r.classList.contains("swiper-slide-transform") ? i(r) : r;
|
|
4302
4311
|
return !!m && e.getSlideIndex(m) === n;
|
|
4303
|
-
}),
|
|
4312
|
+
}), o.forEach((r) => {
|
|
4304
4313
|
xe(r, () => {
|
|
4305
4314
|
if (u || !e || e.destroyed)
|
|
4306
4315
|
return;
|
|
@@ -4311,7 +4320,7 @@ function ke({ swiper: e, duration: t, transformElements: s, allSlides: a }) {
|
|
|
4311
4320
|
});
|
|
4312
4321
|
}
|
|
4313
4322
|
}
|
|
4314
|
-
const
|
|
4323
|
+
const Ea = ({ swiper: e, extendParams: t, on: s }) => {
|
|
4315
4324
|
t({
|
|
4316
4325
|
fadeEffect: {
|
|
4317
4326
|
crossFade: !1
|
|
@@ -4325,22 +4334,22 @@ const ma = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4325
4334
|
swiper: e,
|
|
4326
4335
|
on: s,
|
|
4327
4336
|
setTranslate: () => {
|
|
4328
|
-
const { slides: u } = e,
|
|
4337
|
+
const { slides: u } = e, o = a();
|
|
4329
4338
|
for (let r = 0; r < u.length; r += 1) {
|
|
4330
4339
|
const m = u[r];
|
|
4331
4340
|
let c = -(m.swiperSlideOffset ?? 0);
|
|
4332
4341
|
e.params.virtualTranslate || (c -= e.translate);
|
|
4333
4342
|
let T = 0;
|
|
4334
4343
|
e.isHorizontal() || (T = c, c = 0);
|
|
4335
|
-
const
|
|
4344
|
+
const d = m.progress ?? 0, l = o.crossFade ? Math.max(1 - Math.abs(d), 0) : 1 + Math.min(Math.max(d, -1), 0), g = Me(o, m);
|
|
4336
4345
|
g.style.opacity = String(l), g.style.transform = `translate3d(${c}px, ${T}px, 0px)`;
|
|
4337
4346
|
}
|
|
4338
4347
|
},
|
|
4339
4348
|
setTransition: (u) => {
|
|
4340
|
-
const
|
|
4341
|
-
|
|
4349
|
+
const o = e.slides.map((r) => me(r));
|
|
4350
|
+
o.forEach((r) => {
|
|
4342
4351
|
r.style.transitionDuration = `${u}ms`;
|
|
4343
|
-
}), ke({ swiper: e, duration: u, transformElements:
|
|
4352
|
+
}), ke({ swiper: e, duration: u, transformElements: o, allSlides: !0 });
|
|
4344
4353
|
},
|
|
4345
4354
|
overwriteParams: () => ({
|
|
4346
4355
|
slidesPerView: 1,
|
|
@@ -4350,7 +4359,7 @@ const ma = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4350
4359
|
virtualTranslate: !e.params.cssMode
|
|
4351
4360
|
})
|
|
4352
4361
|
});
|
|
4353
|
-
},
|
|
4362
|
+
}, va = ({ swiper: e, extendParams: t, on: s }) => {
|
|
4354
4363
|
t({
|
|
4355
4364
|
cubeEffect: {
|
|
4356
4365
|
slideShadows: !0,
|
|
@@ -4371,7 +4380,7 @@ const ma = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4371
4380
|
swiper: e,
|
|
4372
4381
|
on: s,
|
|
4373
4382
|
setTranslate: () => {
|
|
4374
|
-
const { el: r, wrapperEl: m, slides: f, width: c, height: T, rtlTranslate:
|
|
4383
|
+
const { el: r, wrapperEl: m, slides: f, width: c, height: T, rtlTranslate: d, size: l } = e, g = $e(e), v = a(), S = e.isHorizontal(), h = !!(e.virtual && e.params.virtual?.enabled);
|
|
4375
4384
|
let p = 0, E = null;
|
|
4376
4385
|
v.shadow && (S ? (E = e.wrapperEl.querySelector(".swiper-cube-shadow"), E || (E = ne("div", "swiper-cube-shadow"), e.wrapperEl.append(E)), E.style.height = `${c}px`) : (E = r.querySelector(".swiper-cube-shadow"), E || (E = ne("div", "swiper-cube-shadow"), r.append(E))));
|
|
4377
4386
|
for (let y = 0; y < f.length; y += 1) {
|
|
@@ -4379,12 +4388,12 @@ const ma = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4379
4388
|
let A = y;
|
|
4380
4389
|
h && (A = parseInt(I.getAttribute("data-swiper-slide-index") ?? "0", 10));
|
|
4381
4390
|
let R = A * 90, _ = Math.floor(R / 360);
|
|
4382
|
-
|
|
4391
|
+
d && (R = -R, _ = Math.floor(-R / 360));
|
|
4383
4392
|
const P = Math.max(Math.min(I.progress ?? 0, 1), -1);
|
|
4384
4393
|
let b = 0, M = 0, C = 0;
|
|
4385
|
-
A % 4 === 0 ? (b = -_ * 4 * l, C = 0) : (A - 1) % 4 === 0 ? (b = 0, C = -_ * 4 * l) : (A - 2) % 4 === 0 ? (b = l + _ * 4 * l, C = l) : (A - 3) % 4 === 0 && (b = -l, C = 3 * l + l * 4 * _),
|
|
4394
|
+
A % 4 === 0 ? (b = -_ * 4 * l, C = 0) : (A - 1) % 4 === 0 ? (b = 0, C = -_ * 4 * l) : (A - 2) % 4 === 0 ? (b = l + _ * 4 * l, C = l) : (A - 3) % 4 === 0 && (b = -l, C = 3 * l + l * 4 * _), d && (b = -b), S || (M = b, b = 0);
|
|
4386
4395
|
const x = `rotateX(${g(S ? 0 : -R)}deg) rotateY(${g(S ? R : 0)}deg) translate3d(${b}px, ${M}px, ${C}px)`;
|
|
4387
|
-
P <= 1 && P > -1 && (p = A * 90 + P * 90,
|
|
4396
|
+
P <= 1 && P > -1 && (p = A * 90 + P * 90, d && (p = -A * 90 - P * 90)), I.style.transform = x, v.slideShadows && n(I, P, S);
|
|
4388
4397
|
}
|
|
4389
4398
|
if (m.style.transformOrigin = `50% 50% -${l / 2}px`, m.style.setProperty("-webkit-transform-origin", `50% 50% -${l / 2}px`), v.shadow && E)
|
|
4390
4399
|
if (S)
|
|
@@ -4430,10 +4439,10 @@ function be(e, t, s) {
|
|
|
4430
4439
|
const a = `swiper-slide-shadow${s ? `-${s}` : ""}${e ? ` swiper-slide-shadow-${e}` : ""}`, n = me(t), i = `.${a.split(" ").join(".")}`, u = n.querySelector(i);
|
|
4431
4440
|
if (u)
|
|
4432
4441
|
return u;
|
|
4433
|
-
const
|
|
4434
|
-
return n.append(
|
|
4442
|
+
const o = ne("div", a.split(" "));
|
|
4443
|
+
return n.append(o), o;
|
|
4435
4444
|
}
|
|
4436
|
-
const
|
|
4445
|
+
const Sa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
4437
4446
|
t({
|
|
4438
4447
|
flipEffect: {
|
|
4439
4448
|
slideShadows: !0,
|
|
@@ -4454,13 +4463,13 @@ const ga = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4454
4463
|
setTranslate: () => {
|
|
4455
4464
|
const { slides: r, rtlTranslate: m } = e, f = a(), c = $e(e);
|
|
4456
4465
|
for (let T = 0; T < r.length; T += 1) {
|
|
4457
|
-
const
|
|
4458
|
-
let l =
|
|
4466
|
+
const d = r[T];
|
|
4467
|
+
let l = d.progress ?? 0;
|
|
4459
4468
|
f.limitRotation && (l = Math.max(Math.min(l, 1), -1));
|
|
4460
|
-
const g =
|
|
4469
|
+
const g = d.swiperSlideOffset ?? 0;
|
|
4461
4470
|
let S = -180 * l, h = 0, p = e.params.cssMode ? -g - e.translate : -g, E = 0;
|
|
4462
|
-
e.isHorizontal() ? m && (S = -S) : (E = p, p = 0, h = -S, S = 0),
|
|
4463
|
-
const y = `translate3d(${p}px, ${E}px, 0px) rotateX(${c(h)}deg) rotateY(${c(S)}deg)`, I = Me(f,
|
|
4471
|
+
e.isHorizontal() ? m && (S = -S) : (E = p, p = 0, h = -S, S = 0), d.style.zIndex = String(-Math.abs(Math.round(l)) + r.length), f.slideShadows && n(d, l);
|
|
4472
|
+
const y = `translate3d(${p}px, ${E}px, 0px) rotateX(${c(h)}deg) rotateY(${c(S)}deg)`, I = Me(f, d);
|
|
4464
4473
|
I.style.transform = y;
|
|
4465
4474
|
}
|
|
4466
4475
|
},
|
|
@@ -4489,7 +4498,7 @@ const ga = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4489
4498
|
virtualTranslate: !e.params.cssMode
|
|
4490
4499
|
})
|
|
4491
4500
|
});
|
|
4492
|
-
},
|
|
4501
|
+
}, ba = ({ swiper: e, extendParams: t, on: s }) => {
|
|
4493
4502
|
t({
|
|
4494
4503
|
coverflowEffect: {
|
|
4495
4504
|
rotate: 50,
|
|
@@ -4508,9 +4517,9 @@ const ga = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4508
4517
|
swiper: e,
|
|
4509
4518
|
on: s,
|
|
4510
4519
|
setTranslate: () => {
|
|
4511
|
-
const { width: u, height:
|
|
4520
|
+
const { width: u, height: o, slides: r, slidesSizesGrid: m } = e, f = a(), c = e.isHorizontal(), T = e.translate, d = c ? -T + u / 2 : -T + o / 2, l = c ? f.rotate : -f.rotate, g = f.depth, v = $e(e);
|
|
4512
4521
|
for (let S = 0, h = r.length; S < h; S += 1) {
|
|
4513
|
-
const p = r[S], E = m[S], y = p.swiperSlideOffset ?? 0, I = (
|
|
4522
|
+
const p = r[S], E = m[S], y = p.swiperSlideOffset ?? 0, I = (d - y - E / 2) / E, A = typeof f.modifier == "function" ? f.modifier(I) : I * f.modifier;
|
|
4514
4523
|
let R = c ? l * A : 0, _ = c ? 0 : l * A, P = -g * Math.abs(A), b = typeof f.stretch == "string" && f.stretch.indexOf("%") !== -1 ? parseFloat(f.stretch) / 100 * E : f.stretch, M = c ? 0 : b * A, C = c ? b * A : 0, x = 1 - (1 - f.scale) * Math.abs(A);
|
|
4515
4524
|
Math.abs(C) < 1e-3 && (C = 0), Math.abs(M) < 1e-3 && (M = 0), Math.abs(P) < 1e-3 && (P = 0), Math.abs(R) < 1e-3 && (R = 0), Math.abs(_) < 1e-3 && (_ = 0), Math.abs(x) < 1e-3 && (x = 0);
|
|
4516
4525
|
const w = `translate3d(${C}px,${M}px,${P}px) rotateX(${v(_)}deg) rotateY(${v(R)}deg) scale(${x})`, L = Me(f, p);
|
|
@@ -4532,7 +4541,7 @@ const ga = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4532
4541
|
watchSlidesProgress: !0
|
|
4533
4542
|
})
|
|
4534
4543
|
});
|
|
4535
|
-
},
|
|
4544
|
+
}, ya = ({ swiper: e, extendParams: t, on: s }) => {
|
|
4536
4545
|
t({
|
|
4537
4546
|
creativeEffect: {
|
|
4538
4547
|
limitProgress: 1,
|
|
@@ -4556,19 +4565,19 @@ const ga = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4556
4565
|
function a() {
|
|
4557
4566
|
return e.params.creativeEffect;
|
|
4558
4567
|
}
|
|
4559
|
-
const n = (
|
|
4568
|
+
const n = (o) => typeof o == "string" ? o : `${o}px`;
|
|
4560
4569
|
ye({
|
|
4561
4570
|
effect: "creative",
|
|
4562
4571
|
swiper: e,
|
|
4563
4572
|
on: s,
|
|
4564
4573
|
setTranslate: () => {
|
|
4565
|
-
const { slides:
|
|
4574
|
+
const { slides: o, wrapperEl: r, slidesSizesGrid: m } = e, f = a(), { progressMultiplier: c } = f, T = e.params.centeredSlides, d = $e(e);
|
|
4566
4575
|
if (T) {
|
|
4567
4576
|
const l = m[0] / 2 - (e.params.slidesOffsetBefore ?? 0);
|
|
4568
4577
|
r.style.transform = `translateX(calc(50% - ${l}px))`;
|
|
4569
4578
|
}
|
|
4570
|
-
for (let l = 0; l <
|
|
4571
|
-
const g =
|
|
4579
|
+
for (let l = 0; l < o.length; l += 1) {
|
|
4580
|
+
const g = o[l], v = g.progress ?? 0, S = Math.min(Math.max(v, -f.limitProgress), f.limitProgress);
|
|
4572
4581
|
let h = S;
|
|
4573
4582
|
T || (h = Math.min(Math.max(g.originalProgress ?? 0, -f.limitProgress), f.limitProgress));
|
|
4574
4583
|
const p = g.swiperSlideOffset ?? 0, E = [
|
|
@@ -4588,8 +4597,8 @@ const ga = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4588
4597
|
E[w] = `calc(${x}px + (${n(A.translate[w])} * ${Math.abs(S * c)}))`;
|
|
4589
4598
|
}), y.forEach((x, w) => {
|
|
4590
4599
|
y[w] = A.rotate[w] * Math.abs(S * c);
|
|
4591
|
-
}), g.style.zIndex = String(-Math.abs(Math.round(v)) +
|
|
4592
|
-
const R = E.join(", "), _ = `rotateX(${
|
|
4600
|
+
}), g.style.zIndex = String(-Math.abs(Math.round(v)) + o.length);
|
|
4601
|
+
const R = E.join(", "), _ = `rotateX(${d(y[0])}deg) rotateY(${d(y[1])}deg) rotateZ(${d(y[2])}deg)`, P = h < 0 ? `scale(${1 + (1 - A.scale) * h * c})` : `scale(${1 - (1 - A.scale) * h * c})`, b = h < 0 ? 1 + (1 - A.opacity) * h * c : 1 - (1 - A.opacity) * h * c, M = `translate3d(${R}) ${_} ${P}`;
|
|
4593
4602
|
if (I && A.shadow || !I) {
|
|
4594
4603
|
let x = g.querySelector(".swiper-slide-shadow");
|
|
4595
4604
|
if (!x && A.shadow && (x = be("creative", g)), x) {
|
|
@@ -4601,13 +4610,13 @@ const ga = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4601
4610
|
C.style.transform = M, C.style.opacity = String(b), A.origin && (C.style.transformOrigin = A.origin);
|
|
4602
4611
|
}
|
|
4603
4612
|
},
|
|
4604
|
-
setTransition: (
|
|
4613
|
+
setTransition: (o) => {
|
|
4605
4614
|
const r = e.slides.map((m) => me(m));
|
|
4606
4615
|
r.forEach((m) => {
|
|
4607
|
-
m.style.transitionDuration = `${
|
|
4608
|
-
f.style.transitionDuration = `${
|
|
4616
|
+
m.style.transitionDuration = `${o}ms`, m.querySelectorAll(".swiper-slide-shadow").forEach((f) => {
|
|
4617
|
+
f.style.transitionDuration = `${o}ms`;
|
|
4609
4618
|
});
|
|
4610
|
-
}), ke({ swiper: e, duration:
|
|
4619
|
+
}), ke({ swiper: e, duration: o, transformElements: r, allSlides: !0 });
|
|
4611
4620
|
},
|
|
4612
4621
|
perspective: () => a().perspective,
|
|
4613
4622
|
overwriteParams: () => ({
|
|
@@ -4615,7 +4624,7 @@ const ga = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4615
4624
|
virtualTranslate: !e.params.cssMode
|
|
4616
4625
|
})
|
|
4617
4626
|
});
|
|
4618
|
-
},
|
|
4627
|
+
}, Aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
4619
4628
|
t({
|
|
4620
4629
|
cardsEffect: {
|
|
4621
4630
|
slideShadows: !0,
|
|
@@ -4632,15 +4641,15 @@ const ga = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4632
4641
|
swiper: e,
|
|
4633
4642
|
on: s,
|
|
4634
4643
|
setTranslate: () => {
|
|
4635
|
-
const { slides: u, activeIndex:
|
|
4636
|
-
for (let
|
|
4637
|
-
const l = u[
|
|
4644
|
+
const { slides: u, activeIndex: o, rtlTranslate: r } = e, m = a(), { startTranslate: f, isTouched: c } = e.touchEventsData, T = r ? -e.translate : e.translate;
|
|
4645
|
+
for (let d = 0; d < u.length; d += 1) {
|
|
4646
|
+
const l = u[d], g = l.progress ?? 0, v = Math.min(Math.max(g, -4), 4);
|
|
4638
4647
|
let S = l.swiperSlideOffset ?? 0;
|
|
4639
4648
|
e.params.centeredSlides && !e.params.cssMode && (e.wrapperEl.style.transform = `translateX(${e.minTranslate()}px)`), e.params.centeredSlides && e.params.cssMode && (S -= u[0].swiperSlideOffset ?? 0);
|
|
4640
4649
|
let h = e.params.cssMode ? -S - e.translate : -S, p = 0;
|
|
4641
4650
|
const E = -100 * Math.abs(v);
|
|
4642
4651
|
let y = 1, I = -m.perSlideRotate * v, A = m.perSlideOffset - Math.abs(v) * 0.75;
|
|
4643
|
-
const R = e.virtual && e.params.virtual?.enabled ? e.virtual.from +
|
|
4652
|
+
const R = e.virtual && e.params.virtual?.enabled ? e.virtual.from + d : d, _ = (R === o || R === o - 1) && v > 0 && v < 1 && (c || e.params.cssMode) && (T ?? 0) < (f ?? 0), P = (R === o || R === o + 1) && v < 0 && v > -1 && (c || e.params.cssMode) && (T ?? 0) > (f ?? 0);
|
|
4644
4653
|
if (_ || P) {
|
|
4645
4654
|
const x = (1 - Math.abs((Math.abs(v) - 0.5) / 0.5)) ** 0.5;
|
|
4646
4655
|
I += -28 * v * x, y += -0.5 * x, A += 96 * x, p = `${(m.rotate || e.isHorizontal() ? -25 : 0) * x * Math.abs(v)}%`;
|
|
@@ -4664,12 +4673,12 @@ const ga = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4664
4673
|
}
|
|
4665
4674
|
},
|
|
4666
4675
|
setTransition: (u) => {
|
|
4667
|
-
const
|
|
4668
|
-
|
|
4676
|
+
const o = e.slides.map((r) => me(r));
|
|
4677
|
+
o.forEach((r) => {
|
|
4669
4678
|
r.style.transitionDuration = `${u}ms`, r.querySelectorAll(".swiper-slide-shadow").forEach((m) => {
|
|
4670
4679
|
m.style.transitionDuration = `${u}ms`;
|
|
4671
4680
|
});
|
|
4672
|
-
}), ke({ swiper: e, duration: u, transformElements:
|
|
4681
|
+
}), ke({ swiper: e, duration: u, transformElements: o });
|
|
4673
4682
|
},
|
|
4674
4683
|
perspective: () => !0,
|
|
4675
4684
|
overwriteParams: () => ({
|
|
@@ -4680,38 +4689,38 @@ const ga = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4680
4689
|
virtualTranslate: !e.params.cssMode
|
|
4681
4690
|
})
|
|
4682
4691
|
});
|
|
4683
|
-
},
|
|
4684
|
-
Ws,
|
|
4685
|
-
Fs,
|
|
4686
|
-
Xs,
|
|
4692
|
+
}, _a = [
|
|
4687
4693
|
Us,
|
|
4694
|
+
qs,
|
|
4688
4695
|
js,
|
|
4689
4696
|
Ks,
|
|
4690
|
-
Zs,
|
|
4691
|
-
Qs,
|
|
4692
4697
|
Js,
|
|
4698
|
+
ea,
|
|
4693
4699
|
ta,
|
|
4694
4700
|
sa,
|
|
4695
4701
|
aa,
|
|
4696
|
-
na,
|
|
4697
4702
|
ia,
|
|
4698
4703
|
la,
|
|
4699
4704
|
ra,
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4705
|
+
oa,
|
|
4706
|
+
da,
|
|
4707
|
+
ca,
|
|
4708
|
+
fa,
|
|
4704
4709
|
Ta,
|
|
4705
4710
|
Ea,
|
|
4706
|
-
va
|
|
4711
|
+
va,
|
|
4712
|
+
Sa,
|
|
4713
|
+
ba,
|
|
4714
|
+
ya,
|
|
4715
|
+
Aa
|
|
4707
4716
|
];
|
|
4708
|
-
te.use(
|
|
4717
|
+
te.use(_a);
|
|
4709
4718
|
function B(e, t, s) {
|
|
4710
4719
|
const a = e.getAttribute(t)?.trim();
|
|
4711
4720
|
if (!(!a || a === s))
|
|
4712
4721
|
return a;
|
|
4713
4722
|
}
|
|
4714
|
-
function
|
|
4723
|
+
function xa(e, t, s) {
|
|
4715
4724
|
const a = e.getAttribute(t)?.trim();
|
|
4716
4725
|
if (!a) return;
|
|
4717
4726
|
if (a.toLowerCase() === "auto") return "auto";
|
|
@@ -4724,7 +4733,7 @@ function Ce(e, t, s) {
|
|
|
4724
4733
|
if (!(!a || a === s))
|
|
4725
4734
|
return a;
|
|
4726
4735
|
}
|
|
4727
|
-
function
|
|
4736
|
+
function W(e, t, s) {
|
|
4728
4737
|
const a = e.getAttribute(t)?.trim();
|
|
4729
4738
|
if (!a) return;
|
|
4730
4739
|
const n = Number(a);
|
|
@@ -4738,269 +4747,272 @@ function D(e, t, s) {
|
|
|
4738
4747
|
if (a === "false") return s === !1 ? void 0 : !1;
|
|
4739
4748
|
}
|
|
4740
4749
|
}
|
|
4741
|
-
function
|
|
4750
|
+
function La(e) {
|
|
4742
4751
|
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
4743
4752
|
}
|
|
4744
|
-
function
|
|
4753
|
+
function yt(e) {
|
|
4745
4754
|
if (typeof e != "object" || e === null) return e;
|
|
4746
4755
|
for (const t in e) {
|
|
4747
4756
|
const s = e[t];
|
|
4748
|
-
s == null ? delete e[t] : typeof s == "object" && s !== null && !
|
|
4757
|
+
s == null ? delete e[t] : typeof s == "object" && s !== null && !La(s) && (yt(s), Object.keys(s).length === 0 && delete e[t]);
|
|
4749
4758
|
}
|
|
4750
4759
|
return e;
|
|
4751
4760
|
}
|
|
4752
|
-
function
|
|
4753
|
-
|
|
4754
|
-
return s && console.log(`📊 Found ${a.length} matching swiper(s) for "${t}"`), a;
|
|
4761
|
+
function At(e, t) {
|
|
4762
|
+
return e.find((s) => s.name?.toLowerCase() === t?.toLowerCase());
|
|
4755
4763
|
}
|
|
4756
|
-
function
|
|
4764
|
+
function Ca(e, t, s) {
|
|
4765
|
+
const a = e.filter((n) => n.name?.toLowerCase() === t?.toLowerCase()).map((n) => n.swiper);
|
|
4766
|
+
return s && console.log(`📊 Found ${a.length} matching waterfall(s) for "${t}"`), a;
|
|
4767
|
+
}
|
|
4768
|
+
function Ma() {
|
|
4757
4769
|
document.querySelectorAll('[waterfall] .swiper-wrapper[role="list"]').forEach((e) => {
|
|
4758
4770
|
e.removeAttribute("role");
|
|
4759
4771
|
});
|
|
4760
4772
|
}
|
|
4761
|
-
const ve = "waterfall",
|
|
4762
|
-
function
|
|
4763
|
-
e.allowSlideNext = D(t,
|
|
4764
|
-
disabledClass: B(t,
|
|
4765
|
-
enabled: D(t,
|
|
4766
|
-
hiddenClass: B(t,
|
|
4767
|
-
hideOnClick: D(t,
|
|
4768
|
-
lockClass: B(t,
|
|
4769
|
-
navigationDisabledClass: B(t,
|
|
4770
|
-
nextEl: `[${ve}='${s}'] [${pe}=${
|
|
4771
|
-
prevEl: `[${ve}='${s}'] [${pe}=${
|
|
4773
|
+
const ve = "waterfall", mo = "waterfall-preload", ho = "waterfall-postload", go = "waterfall-content", Ia = "waterfall-debug-mode", To = "waterfall-advanced-debug-mode", Eo = "waterfall-a11y", Ra = "waterfall-a11y-container-message", wa = "waterfall-a11y-container-role", Pa = "waterfall-a11y-container-role-description-message", Oa = "waterfall-a11y-enabled", Da = "waterfall-a11y-first-slide-message", Na = "waterfall-a11y-id", za = "waterfall-a11y-item-role-description-message", $a = "waterfall-a11y-last-slide-message", ka = "waterfall-a11y-next-slide-message", Ga = "waterfall-a11y-notification-class", Ba = "waterfall-a11y-pagination-bullet-message", Ha = "waterfall-a11y-prev-slide-message", Va = "waterfall-a11y-scroll-on-focus", Wa = "waterfall-a11y-slide-label-message", Ya = "waterfall-a11y-slide-role", Fa = "waterfall-centered-slides-lmobile", Xa = "waterfall-slides-per-view-lmobile", Ua = "waterfall-slides-per-group-lmobile", qa = "waterfall-space-between-lmobile", ja = "waterfall-centered-slides-tablet", Ka = "waterfall-slides-per-view-tablet", vo = "waterfall-slides-per-group-tablet", Za = "waterfall-space-between-tablet", Qa = "waterfall-centered-slides-desktop", Ja = "waterfall-slides-per-view-desktop", en = "waterfall-slides-per-group-desktop", tn = "waterfall-space-between-desktop", sn = "waterfall-centered-slides-large", an = "waterfall-slides-per-view-large", ut = "waterfall-slides-per-group-large", nn = "waterfall-space-between-large", ln = "waterfall-centered-slides-xlarge", rn = "waterfall-slides-per-view-xlarge", on = "waterfall-slides-per-group-xlarge", dn = "waterfall-space-between-xlarge", et = "waterfall-controller", cn = "waterfall-controller-by", fn = "waterfall-controller-inverse", So = "waterfall-effect-crossfade", un = "waterfall-coverflow-depth", pn = "waterfall-coverflow-modifier", mn = "waterfall-coverflow-rotate", hn = "waterfall-coverflow-scale", gn = "waterfall-coverflow-slide-shadows", Tn = "waterfall-coverflow-stretch", En = "waterfall-flip-limit-rotation", vn = "waterfall-flip-slide-shadows", Sn = "waterfall-cube-shadow", bn = "waterfall-cube-shadow-offset", yn = "waterfall-cube-shadow-scale", An = "waterfall-cube-slide-shadows", _n = "waterfall-cards-per-slide-offset", xn = "waterfall-cards-per-slide-rotate", Ln = "waterfall-cards-rotate", Cn = "waterfall-cards-slide-shadows", Mn = "waterfall-allow-slide-next", In = "waterfall-allow-slide-prev", Rn = "waterfall-allow-touch-move", wn = "waterfall-auto-height", Pn = "waterfall-breakpoints-base", On = "waterfall-center-insufficient-slides", Dn = "waterfall-centered-slides", bo = "waterfall-centered-slides-bounds", Nn = "waterfall-container-modifier-class", zn = "waterfall-create-elements", $n = "waterfall-css-mode", kn = "waterfall-direction", Gn = "waterfall-edge-swipe-detection", Bn = "waterfall-edge-swipe-threshold", Hn = "waterfall-effect", Vn = "waterfall-enabled", Wn = "waterfall-events-prefix", Yn = "waterfall-focusable-elements", Fn = "waterfall-follow-finger", Xn = "waterfall-grab-cursor", Un = "waterfall-height", qn = "waterfall-init", jn = "waterfall-initial-slide", Kn = "waterfall-lazy-preload-prev-next", Zn = "waterfall-lazy-preloader-class", Qn = "waterfall-long-swipes", Jn = "waterfall-long-swipes-ms", ei = "waterfall-long-swipes-ratio", yo = "waterfall-loop-mode", ti = "waterfall-loop-add-blank-slides", si = "waterfall-loop-additional-slides", ai = "waterfall-loop-prevents-sliding", ni = "waterfall-max-backface-hidden-slides", ii = "waterfall-nested", li = "waterfall-no-swiping", ri = "waterfall-no-swiping-class", oi = "waterfall-no-swiping-selector", di = "waterfall-normalize-slide-index", ci = "waterfall-observe-parents", fi = "waterfall-observe-slide-children", ui = "waterfall-observer", pi = "waterfall-data-one-way-movement", mi = "waterfall-passive-listeners", hi = "waterfall-prevent-clicks", gi = "waterfall-prevent-clicks-propagation", Ti = "waterfall-prevent-interaction-on-transition", Ei = "waterfall-resistance", vi = "waterfall-resistance-ratio", Si = "waterfall-resize-observer", Ao = "waterfall-rewind", bi = "waterfall-round-lengths", yi = "waterfall-run-callbacks-on-init", Ai = "waterfall-set-wrapper-size", _i = "waterfall-short-swipes", xi = "waterfall-simulate-touch", Li = "waterfall-slide-active-class", Ci = "waterfall-slide-class", Mi = "waterfall-slide-blank-class", Ii = "waterfall-slide-fully-visible-class", Ri = "waterfall-slide-next-class", wi = "waterfall-slide-prev-class", Pi = "waterfall-slide-to-clicked-slide", Oi = "waterfall-slide-visible-class", Di = "waterfall-slides-offset-after", Ni = "waterfall-slides-offset-before", zi = "waterfall-slides-per-group", $i = "waterfall-slides-per-group-auto", ki = "waterfall-slides-per-group-skip", Gi = "waterfall-slides-per-view", Bi = "waterfall-space-between", Hi = "waterfall-speed", Vi = "waterfall-swipe-handler", Wi = "waterfall-swiper-element-node-name", Yi = "waterfall-threshold", Fi = "waterfall-touch-angle", Xi = "waterfall-touch-events-target", Ui = "waterfall-touch-move-stop-propagation", qi = "waterfall-touch-ratio", ji = "waterfall-touch-release-on-edges", Ki = "waterfall-touch-start-force-prevent-default", Zi = "waterfall-touch-start-prevent-default", Qi = "waterfall-unique-nav-elements", Ji = "waterfall-update-on-window-resize", el = "waterfall-url", tl = "waterfall-user-agent", _o = "waterfall-virtual-translate", sl = "waterfall-watch-overflow", al = "waterfall-watch-slides-progress", nl = "waterfall-width", il = "waterfall-wrapper-class", ll = "waterfall-hash-replace-state", rl = "waterfall-hash-watch-state", ol = "waterfall-history-keep-query", dl = "waterfall-history-key", cl = "waterfall-history-replace-state", fl = "waterfall-history-root", ul = "waterfall-keyboard-enabled", pl = "waterfall-keyboard-only-in-viewport", ml = "waterfall-keyboard-page-up-down", hl = "waterfall-mouse-enabled", gl = "waterfall-mouse-events-target", Tl = "waterfall-mouse-force-to-axis", El = "waterfall-mouse-invert", vl = "waterfall-mouse-no-mouse-wheel-class", Sl = "waterfall-mouse-release-on-edges", bl = "waterfall-mouse-sensitivity", yl = "waterfall-mouse-threshold-delta", Al = "waterfall-mouse-threshold-time", _l = "waterfall-grid-rows", xl = "waterfall-grid-fill", Ll = "waterfall-navigation-disabled-class", Cl = "waterfall-navigation-enabled", Ml = "waterfall-navigation-hidden-class", Il = "waterfall-navigation-hide-on-click", _t = "waterfall-navigation-lock-class", Rl = "waterfall-navigation-navigation-disabled-class", wl = "waterfall-pagination-type", xo = "waterfall-pagination-bullet-class", Pl = "waterfall-pagination-bullet-active-class", Ol = "waterfall-pagination-clickable", Dl = "waterfall-pagination-clickable-class", Nl = "waterfall-pagination-current-class", zl = "waterfall-pagination-dynamic-bullets", $l = "waterfall-pagination-dynamic-main-bullets", kl = "waterfall-pagination-enabled", Gl = "waterfall-pagination-hidden-class", Bl = "waterfall-pagination-hide-on-click", Hl = "waterfall-pagination-horizontal-class", Lo = "waterfall-pagination-lock-class", Vl = "waterfall-pagination-modifier-class", Wl = "waterfall-pagination-pagination-disabled-class", Yl = "waterfall-pagination-progressbar-fill-class", Fl = "waterfall-pagination-progressbar-opposite", Xl = "waterfall-pagination-progressbar-opposite-class", Ul = "waterfall-pagination-total-class", ql = "waterfall-pagination-vertical-class", jl = "waterfall-autoplay-mode", xt = "waterfall-smooth-autoplay", Kl = "waterfall-delay", Zl = "waterfall-disable-on-interaction", Ql = "waterfall-reverse-direction", Jl = "waterfall-pause-on-mouse-enter", er = "waterfall-stop-on-last-slide", Co = "waterfall-wait-for-transition", tr = "waterfall-free-mode-enabled", sr = "waterfall-free-mode-minimum-velocity", ar = "waterfall-free-mode-momentum", nr = "waterfall-free-mode-momentum-bounce", ir = "waterfall-free-mode-momentum-bounce-ratio", lr = "waterfall-free-mode-momentum-ratio", rr = "waterfall-free-mode-momentum-velocity-ratio", or = "waterfall-free-mode-sticky", Mo = "waterfall-scrollbar-drag-class", dr = "waterfall-scrollbar-drag-size", cr = "waterfall-scrollbar-draggable", fr = "waterfall-scrollbar-enabled", ur = "waterfall-scrollbar-hide", pr = "waterfall-scrollbar-horizontal-class", mr = "waterfall-scrollbar-lock-class", hr = "waterfall-scrollbar-scrollbar-disabled-class", gr = "waterfall-scrollbar-vertical-class", Tr = "waterfall-scrollbar-snap-on-release", tt = "waterfall-thumbs", Er = "waterfall-thumbs-auto-scroll-offset", vr = "waterfall-thumbs-multiple-active-thumbs", Sr = "waterfall-slide-thumb-active-class", br = "waterfall-thumbs-container-class", yr = "waterfall-add-slide", pt = "waterfall-add-index", Ar = "waterfall-append-slide", _r = "waterfall-prepend-slide", xr = "waterfall-remove-slide", mt = "waterfall-remove-index", Io = "waterfall-remove-all-slides", Ro = "waterfall-zoom", wo = "waterfall-zoom-enabled", Lr = "waterfall-zoom-container-class", Cr = "waterfall-zoom-limit-to-original-size", Mr = "waterfall-zoom-max-ratio", Ir = "waterfall-zoom-min-ratio", Rr = "waterfall-zoom-pan-on-mouse-move", wr = "waterfall-zoom-toggle", Pr = "waterfall-zoomed-slide-class", Po = "waterfall-zoom-fade", Or = "waterfall-parallax-enabled", Oo = "data-swiper-parallax", Do = "data-swiper-parallax-x", No = "data-swiper-parallax-y", zo = "data-swiper-parallax-scale", $o = "data-swiper-parallax-opacity", ko = "data-swiper-parallax-duration", Dr = "waterfall-playback-mode", pe = "waterfall-el", Nr = "pagination", zr = "pagination-bullet", Go = "pagination-bullet-active", Bo = "waterfall-navigation", $r = "navigation-next", kr = "navigation-prev", Gr = "scrollbar", Br = "scrollbar-drag", Hr = "slide-count";
|
|
4774
|
+
function Vr(e, t, s) {
|
|
4775
|
+
e.allowSlideNext = D(t, Mn, !0), e.allowSlidePrev = D(t, In, !0), e.navigation = {
|
|
4776
|
+
disabledClass: B(t, Ll, "swiper-button-disabled"),
|
|
4777
|
+
enabled: D(t, Cl),
|
|
4778
|
+
hiddenClass: B(t, Ml, "swiper-button-hidden"),
|
|
4779
|
+
hideOnClick: D(t, Il, !1),
|
|
4780
|
+
lockClass: B(t, _t, "swiper-button-lock"),
|
|
4781
|
+
navigationDisabledClass: B(t, Rl, "swiper-navigation-disabled"),
|
|
4782
|
+
nextEl: `[${ve}='${s}'] [${pe}=${$r}]`,
|
|
4783
|
+
prevEl: `[${ve}='${s}'] [${pe}=${kr}]`
|
|
4772
4784
|
};
|
|
4773
4785
|
}
|
|
4774
|
-
function
|
|
4775
|
-
e.breakpointsBase = B(t,
|
|
4786
|
+
function Wr(e, t) {
|
|
4787
|
+
e.breakpointsBase = B(t, Pn, "window"), e.breakpoints = {
|
|
4776
4788
|
478: {
|
|
4777
|
-
centeredSlides: D(t,
|
|
4778
|
-
slidesPerView:
|
|
4779
|
-
slidesPerGroup:
|
|
4780
|
-
spaceBetween:
|
|
4789
|
+
centeredSlides: D(t, Fa),
|
|
4790
|
+
slidesPerView: W(t, Xa),
|
|
4791
|
+
slidesPerGroup: W(t, Ua),
|
|
4792
|
+
spaceBetween: W(t, qa)
|
|
4781
4793
|
},
|
|
4782
4794
|
767: {
|
|
4783
|
-
centeredSlides: D(t,
|
|
4784
|
-
slidesPerView:
|
|
4785
|
-
slidesPerGroup:
|
|
4786
|
-
spaceBetween:
|
|
4795
|
+
centeredSlides: D(t, ja),
|
|
4796
|
+
slidesPerView: W(t, Ka),
|
|
4797
|
+
slidesPerGroup: W(t, ut),
|
|
4798
|
+
spaceBetween: W(t, Za)
|
|
4787
4799
|
},
|
|
4788
4800
|
991: {
|
|
4789
|
-
centeredSlides: D(t,
|
|
4790
|
-
slidesPerView:
|
|
4791
|
-
slidesPerGroup:
|
|
4792
|
-
spaceBetween:
|
|
4801
|
+
centeredSlides: D(t, Qa),
|
|
4802
|
+
slidesPerView: W(t, Ja),
|
|
4803
|
+
slidesPerGroup: W(t, en),
|
|
4804
|
+
spaceBetween: W(t, tn)
|
|
4793
4805
|
},
|
|
4794
4806
|
1280: {
|
|
4795
|
-
centeredSlides: D(t,
|
|
4796
|
-
slidesPerView:
|
|
4797
|
-
slidesPerGroup:
|
|
4798
|
-
spaceBetween:
|
|
4807
|
+
centeredSlides: D(t, sn),
|
|
4808
|
+
slidesPerView: W(t, an),
|
|
4809
|
+
slidesPerGroup: W(t, ut),
|
|
4810
|
+
spaceBetween: W(t, nn)
|
|
4799
4811
|
},
|
|
4800
4812
|
1440: {
|
|
4801
|
-
centeredSlides: D(t,
|
|
4802
|
-
slidesPerView:
|
|
4803
|
-
slidesPerGroup:
|
|
4804
|
-
spaceBetween:
|
|
4813
|
+
centeredSlides: D(t, ln),
|
|
4814
|
+
slidesPerView: W(t, rn),
|
|
4815
|
+
slidesPerGroup: W(t, on),
|
|
4816
|
+
spaceBetween: W(t, dn)
|
|
4805
4817
|
}
|
|
4806
4818
|
};
|
|
4807
4819
|
}
|
|
4808
|
-
function
|
|
4809
|
-
const s = t.querySelector(`[${pe}=${
|
|
4820
|
+
function Yr(e, t) {
|
|
4821
|
+
const s = t.querySelector(`[${pe}=${Nr}]`);
|
|
4810
4822
|
if (!s) return;
|
|
4811
|
-
const a = B(t,
|
|
4823
|
+
const a = B(t, wl), n = t.querySelector(`[${pe}=${zr}]`);
|
|
4812
4824
|
e.pagination = {
|
|
4813
|
-
bulletActiveClass: B(t,
|
|
4825
|
+
bulletActiveClass: B(t, Pl, "swiper-pagination-bullet-active"),
|
|
4814
4826
|
bulletClass: n?.getAttribute("class")?.trim() || "swiper-pagination-bullet",
|
|
4815
4827
|
bulletElement: n?.tagName?.toLowerCase() || "span",
|
|
4816
|
-
clickable: D(t,
|
|
4817
|
-
clickableClass: B(t,
|
|
4818
|
-
currentClass: B(t,
|
|
4819
|
-
dynamicBullets: D(t,
|
|
4820
|
-
dynamicMainBullets:
|
|
4828
|
+
clickable: D(t, Ol, !1),
|
|
4829
|
+
clickableClass: B(t, Dl, "swiper-pagination-clickable"),
|
|
4830
|
+
currentClass: B(t, Nl, "swiper-pagination-current"),
|
|
4831
|
+
dynamicBullets: D(t, zl, !1),
|
|
4832
|
+
dynamicMainBullets: W(t, $l, 1),
|
|
4821
4833
|
el: s || null,
|
|
4822
|
-
enabled: D(t,
|
|
4823
|
-
hiddenClass: B(t,
|
|
4824
|
-
hideOnClick: D(t,
|
|
4825
|
-
horizontalClass: B(t,
|
|
4826
|
-
lockClass: B(t,
|
|
4827
|
-
modifierClass: B(t,
|
|
4834
|
+
enabled: D(t, kl),
|
|
4835
|
+
hiddenClass: B(t, Gl, "swiper-pagination-hidden"),
|
|
4836
|
+
hideOnClick: D(t, Bl, !0),
|
|
4837
|
+
horizontalClass: B(t, Hl, "swiper-pagination-horizontal"),
|
|
4838
|
+
lockClass: B(t, _t, "swiper-pagination-lock"),
|
|
4839
|
+
modifierClass: B(t, Vl, "swiper-pagination-"),
|
|
4828
4840
|
paginationDisabledClass: B(
|
|
4829
4841
|
t,
|
|
4830
|
-
|
|
4842
|
+
Wl,
|
|
4831
4843
|
"swiper-pagination-disabled"
|
|
4832
4844
|
),
|
|
4833
4845
|
progressbarFillClass: B(
|
|
4834
4846
|
t,
|
|
4835
|
-
|
|
4847
|
+
Yl,
|
|
4836
4848
|
"swiper-pagination-progressbar-fill"
|
|
4837
4849
|
),
|
|
4838
|
-
progressbarOpposite: D(t,
|
|
4850
|
+
progressbarOpposite: D(t, Fl, !1),
|
|
4839
4851
|
progressbarOppositeClass: B(
|
|
4840
4852
|
t,
|
|
4841
|
-
|
|
4853
|
+
Xl,
|
|
4842
4854
|
"swiper-pagination-progressbar-opposite"
|
|
4843
4855
|
),
|
|
4844
4856
|
renderBullet: i(),
|
|
4845
|
-
totalClass: B(t,
|
|
4857
|
+
totalClass: B(t, Ul, "swiper-pagination-total"),
|
|
4846
4858
|
type: u(),
|
|
4847
|
-
verticalClass: B(t,
|
|
4859
|
+
verticalClass: B(t, ql, "swiper-pagination-vertical")
|
|
4848
4860
|
};
|
|
4849
4861
|
function i() {
|
|
4850
4862
|
if (a === "numberBullets")
|
|
4851
|
-
return (
|
|
4863
|
+
return (o, r) => `<span class="${r}">${o + 1}</span>`;
|
|
4852
4864
|
if (a === "bullets")
|
|
4853
|
-
return (
|
|
4865
|
+
return (o, r) => `<span class="${r}"></span>`;
|
|
4854
4866
|
}
|
|
4855
4867
|
function u() {
|
|
4856
4868
|
return a === "numberBullets" || a === "bullets" ? "bullets" : a === "fraction" ? "fraction" : a === "progressbar" ? "progressbar" : a === "custom" ? "custom" : "bullets";
|
|
4857
4869
|
}
|
|
4858
4870
|
}
|
|
4859
|
-
function
|
|
4860
|
-
const s = t.querySelector(`[${pe}=${
|
|
4871
|
+
function Fr(e, t) {
|
|
4872
|
+
const s = t.querySelector(`[${pe}=${Gr}]`);
|
|
4861
4873
|
if (!s) return;
|
|
4862
|
-
const a = s?.querySelector(`[${pe}=${
|
|
4874
|
+
const a = s?.querySelector(`[${pe}=${Br}]`);
|
|
4863
4875
|
e.scrollbar = {
|
|
4864
4876
|
dragClass: a?.getAttribute("class") || "",
|
|
4865
|
-
dragSize: Ce(t,
|
|
4866
|
-
draggable: D(t,
|
|
4877
|
+
dragSize: Ce(t, dr, "auto"),
|
|
4878
|
+
draggable: D(t, cr, !1),
|
|
4867
4879
|
el: s || null,
|
|
4868
|
-
enabled: D(t,
|
|
4869
|
-
hide: D(t,
|
|
4870
|
-
horizontalClass: B(t,
|
|
4871
|
-
lockClass: B(t,
|
|
4872
|
-
scrollbarDisabledClass: B(t,
|
|
4873
|
-
snapOnRelease: D(t,
|
|
4880
|
+
enabled: D(t, fr),
|
|
4881
|
+
hide: D(t, ur, !0),
|
|
4882
|
+
horizontalClass: B(t, pr, "swiper-scrollbar-horizontal"),
|
|
4883
|
+
lockClass: B(t, mr, "swiper-scrollbar-lock"),
|
|
4884
|
+
scrollbarDisabledClass: B(t, hr, "swiper-scrollbar-disabled"),
|
|
4885
|
+
snapOnRelease: D(t, Tr, !0),
|
|
4874
4886
|
// NOTE doc says false but actually true
|
|
4875
|
-
verticalClass: B(t,
|
|
4887
|
+
verticalClass: B(t, gr, "swiper-scrollbar-vertical")
|
|
4876
4888
|
};
|
|
4877
4889
|
}
|
|
4878
|
-
function
|
|
4879
|
-
const s = B(t,
|
|
4880
|
-
s === "loop" && (e.loop = !0), s === "rewind" && (e.rewind = !0), s === "none" && (e.loop = !1, e.rewind = !1), e.loopAddBlankSlides = D(t,
|
|
4881
|
-
const a = D(t,
|
|
4882
|
-
let i =
|
|
4883
|
-
n && (i = 0), a && (
|
|
4890
|
+
function Xr(e, t) {
|
|
4891
|
+
const s = B(t, Dr, "none");
|
|
4892
|
+
s === "loop" && (e.loop = !0), s === "rewind" && (e.rewind = !0), s === "none" && (e.loop = !1, e.rewind = !1), e.loopAddBlankSlides = D(t, ti, !0), e.loopAdditionalSlides = W(t, si, 0), e.loopPreventsSliding = D(t, ai, !0);
|
|
4893
|
+
const a = D(t, jl, !1), n = D(t, xt, !1);
|
|
4894
|
+
let i = W(t, Kl, void 0);
|
|
4895
|
+
n && (i = 0), a && (Ur(), e.autoplay = {
|
|
4884
4896
|
delay: i,
|
|
4885
|
-
disableOnInteraction: D(t,
|
|
4897
|
+
disableOnInteraction: D(t, Zl, !1),
|
|
4886
4898
|
// documentation says default is true, doesn't appear to be correct
|
|
4887
|
-
reverseDirection: D(t,
|
|
4888
|
-
pauseOnMouseEnter: D(t,
|
|
4889
|
-
stopOnLastSlide: D(t,
|
|
4890
|
-
}), e.speed =
|
|
4899
|
+
reverseDirection: D(t, Ql, !1),
|
|
4900
|
+
pauseOnMouseEnter: D(t, Jl, !1),
|
|
4901
|
+
stopOnLastSlide: D(t, er, !1)
|
|
4902
|
+
}), e.speed = W(t, Hi, 300), e.oneWayMovement = D(t, pi, !1);
|
|
4891
4903
|
}
|
|
4892
|
-
function
|
|
4893
|
-
document.querySelectorAll(`[${
|
|
4904
|
+
function Ur() {
|
|
4905
|
+
document.querySelectorAll(`[${xt}='true'] .swiper-wrapper`).forEach((e) => {
|
|
4894
4906
|
e.style.transitionTimingFunction = "linear";
|
|
4895
4907
|
});
|
|
4896
4908
|
}
|
|
4897
|
-
function
|
|
4898
|
-
const s = B(t,
|
|
4909
|
+
function qr(e, t) {
|
|
4910
|
+
const s = B(t, Hn, "slide");
|
|
4899
4911
|
e.effect = s, s === "fade" ? e.fadeEffect = { crossFade: !0 } : s === "coverflow" ? e.coverflowEffect = {
|
|
4900
|
-
depth:
|
|
4901
|
-
modifier:
|
|
4902
|
-
rotate:
|
|
4903
|
-
scale:
|
|
4904
|
-
slideShadows: D(t,
|
|
4905
|
-
stretch:
|
|
4912
|
+
depth: W(t, un, 100),
|
|
4913
|
+
modifier: W(t, pn, 1),
|
|
4914
|
+
rotate: W(t, mn, 50),
|
|
4915
|
+
scale: W(t, hn, 1),
|
|
4916
|
+
slideShadows: D(t, gn, !0),
|
|
4917
|
+
stretch: W(t, Tn, 0)
|
|
4906
4918
|
} : s === "flip" ? e.flipEffect = {
|
|
4907
|
-
limitRotation: D(t,
|
|
4908
|
-
slideShadows: D(t, hn, !0)
|
|
4909
|
-
} : s === "cube" ? e.cubeEffect = {
|
|
4910
|
-
shadow: D(t, gn, !0),
|
|
4911
|
-
shadowOffset: Y(t, Tn, 20),
|
|
4912
|
-
shadowScale: Y(t, En, 0.94),
|
|
4919
|
+
limitRotation: D(t, En, !0),
|
|
4913
4920
|
slideShadows: D(t, vn, !0)
|
|
4914
|
-
} : s === "
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4921
|
+
} : s === "cube" ? e.cubeEffect = {
|
|
4922
|
+
shadow: D(t, Sn, !0),
|
|
4923
|
+
shadowOffset: W(t, bn, 20),
|
|
4924
|
+
shadowScale: W(t, yn, 0.94),
|
|
4918
4925
|
slideShadows: D(t, An, !0)
|
|
4926
|
+
} : s === "cards" && (e.cardsEffect = {
|
|
4927
|
+
perSlideOffset: W(t, _n, 8),
|
|
4928
|
+
perSlideRotate: W(t, xn, 2),
|
|
4929
|
+
rotate: D(t, Ln, !0),
|
|
4930
|
+
slideShadows: D(t, Cn, !0)
|
|
4919
4931
|
});
|
|
4920
4932
|
}
|
|
4921
|
-
function
|
|
4922
|
-
e.autoHeight = D(t,
|
|
4923
|
-
fill: Ce(t,
|
|
4924
|
-
rows:
|
|
4925
|
-
}, e.height =
|
|
4933
|
+
function jr(e, t) {
|
|
4934
|
+
e.autoHeight = D(t, wn, !1), e.centerInsufficientSlides = D(t, On, !1), e.centeredSlides = D(t, Dn, !1), e.direction = Ce(t, kn, "horizontal"), e.grid = {
|
|
4935
|
+
fill: Ce(t, xl, "column"),
|
|
4936
|
+
rows: W(t, _l, 1)
|
|
4937
|
+
}, e.height = W(t, Un), e.slidesOffsetAfter = W(t, Di, 0), e.slidesOffsetBefore = W(t, Ni, 0), e.slidesPerGroup = W(t, zi, 1), e.slidesPerGroupAuto = D(t, $i, !1), e.slidesPerGroupSkip = W(t, ki, 0), e.slidesPerView = xa(t, Gi, 1), e.spaceBetween = W(t, Bi, 0), e.width = W(t, nl);
|
|
4926
4938
|
}
|
|
4927
|
-
function
|
|
4928
|
-
e.containerModifierClass = B(t,
|
|
4939
|
+
function Kr(e, t) {
|
|
4940
|
+
e.containerModifierClass = B(t, Nn, "swiper-"), e.initialSlide = W(t, jn, 0), e.nested = D(t, ii, !1), e.normalizeSlideIndex = D(t, di, !0), e.slideActiveClass = B(t, Li, "swiper-slide-active"), e.slideBlankClass = B(t, Mi, "swiper-slide-blank"), e.slideClass = B(t, Ci, "swiper-slide"), e.slideFullyVisibleClass = B(t, Ii, "swiper-slide-fully-visible"), e.slideNextClass = B(t, Ri, "swiper-slide-next"), e.slidePrevClass = B(t, wi, "swiper-slide-prev"), e.slideVisibleClass = B(t, Oi, "swiper-slide-visible"), e.swipeHandler = B(t, Vi), e.swiperElementNodeName = B(t, Wi, "SWIPER-CONTAINER"), e.wrapperClass = B(t, il, "swiper-wrapper");
|
|
4929
4941
|
}
|
|
4930
|
-
function
|
|
4942
|
+
function Zr() {
|
|
4931
4943
|
document.querySelectorAll(".swiper-wrapper").forEach((e) => {
|
|
4932
4944
|
e.querySelectorAll(".swiper-slide").forEach((t, s) => {
|
|
4933
|
-
const a = t.querySelector(`[${pe}=${
|
|
4945
|
+
const a = t.querySelector(`[${pe}=${Hr}]`);
|
|
4934
4946
|
a && (a.textContent = (s + 1).toString());
|
|
4935
4947
|
});
|
|
4936
4948
|
});
|
|
4937
4949
|
}
|
|
4938
|
-
function
|
|
4950
|
+
function Qr(e, t, s, a) {
|
|
4939
4951
|
const n = B(t, tt, "");
|
|
4940
4952
|
if (!n || n === "")
|
|
4941
4953
|
return;
|
|
4942
|
-
const i = s
|
|
4954
|
+
const i = At(s, n);
|
|
4943
4955
|
if (!i) {
|
|
4944
4956
|
a && console.warn("A matching thumbs waterfall was not found for ", n);
|
|
4945
4957
|
return;
|
|
4946
4958
|
}
|
|
4947
4959
|
return e.thumbs = {
|
|
4948
|
-
autoScrollOffset:
|
|
4949
|
-
multipleActiveThumbs: D(t,
|
|
4950
|
-
slideThumbActiveClass: B(t,
|
|
4960
|
+
autoScrollOffset: W(t, Er, 0),
|
|
4961
|
+
multipleActiveThumbs: D(t, vr, !1),
|
|
4962
|
+
slideThumbActiveClass: B(t, Sr, "swiper-slide-thumb-active"),
|
|
4951
4963
|
swiper: i.swiper,
|
|
4952
|
-
thumbsContainerClass: B(t,
|
|
4964
|
+
thumbsContainerClass: B(t, br, "swiper-thumbs")
|
|
4953
4965
|
}, e;
|
|
4954
4966
|
}
|
|
4955
|
-
function
|
|
4967
|
+
function Jr(e, t) {
|
|
4956
4968
|
e.keyboard = {
|
|
4957
|
-
enabled: D(t,
|
|
4958
|
-
onlyInViewport: D(t,
|
|
4959
|
-
pageUpDown: D(t,
|
|
4969
|
+
enabled: D(t, ul, !1),
|
|
4970
|
+
onlyInViewport: D(t, pl, !0),
|
|
4971
|
+
pageUpDown: D(t, ml, !0)
|
|
4960
4972
|
};
|
|
4961
4973
|
}
|
|
4962
|
-
function
|
|
4974
|
+
function eo(e, t) {
|
|
4963
4975
|
e.hashNavigation = {
|
|
4964
4976
|
//getSlideIndex
|
|
4965
|
-
replaceState: D(t,
|
|
4966
|
-
watchState: D(t,
|
|
4977
|
+
replaceState: D(t, ll, !1),
|
|
4978
|
+
watchState: D(t, rl, !1)
|
|
4967
4979
|
};
|
|
4968
4980
|
}
|
|
4969
|
-
function
|
|
4981
|
+
function to(e, t) {
|
|
4970
4982
|
e.history = {
|
|
4971
|
-
keepQuery: D(t,
|
|
4972
|
-
key: B(t,
|
|
4973
|
-
replaceState: D(t,
|
|
4974
|
-
root: B(t,
|
|
4983
|
+
keepQuery: D(t, ol, !1),
|
|
4984
|
+
key: B(t, dl, "slides"),
|
|
4985
|
+
replaceState: D(t, cl, !1),
|
|
4986
|
+
root: B(t, fl, "")
|
|
4975
4987
|
};
|
|
4976
4988
|
}
|
|
4977
|
-
function
|
|
4989
|
+
function so(e, t, s, a) {
|
|
4978
4990
|
const n = B(t, et, "");
|
|
4979
4991
|
if (!n) return;
|
|
4980
|
-
const i =
|
|
4992
|
+
const i = Ca(s, n, a);
|
|
4981
4993
|
a && (i.length ? console.log(`Controller Swipers for selector "${n}":`, i) : console.error(`No controller swipers found for selector "${n}"`)), e.controller = {
|
|
4982
|
-
by: Ce(t,
|
|
4994
|
+
by: Ce(t, cn, "slide"),
|
|
4983
4995
|
control: i,
|
|
4984
|
-
inverse: D(t,
|
|
4996
|
+
inverse: D(t, fn, !1)
|
|
4985
4997
|
};
|
|
4986
4998
|
}
|
|
4987
|
-
function
|
|
4999
|
+
function ao(e, t) {
|
|
4988
5000
|
return e.a11y = {
|
|
4989
|
-
containerMessage: B(t,
|
|
4990
|
-
containerRole: B(t,
|
|
4991
|
-
containerRoleDescriptionMessage: B(t,
|
|
4992
|
-
enabled: D(t,
|
|
4993
|
-
firstSlideMessage: B(t,
|
|
4994
|
-
id: B(t,
|
|
4995
|
-
itemRoleDescriptionMessage: B(t,
|
|
4996
|
-
lastSlideMessage: B(t,
|
|
4997
|
-
nextSlideMessage: B(t,
|
|
4998
|
-
notificationClass: B(t,
|
|
4999
|
-
paginationBulletMessage: B(t,
|
|
5000
|
-
prevSlideMessage: B(t,
|
|
5001
|
-
scrollOnFocus: D(t,
|
|
5002
|
-
slideLabelMessage: B(t,
|
|
5003
|
-
slideRole: B(t,
|
|
5001
|
+
containerMessage: B(t, Ra, ""),
|
|
5002
|
+
containerRole: B(t, wa, ""),
|
|
5003
|
+
containerRoleDescriptionMessage: B(t, Pa, ""),
|
|
5004
|
+
enabled: D(t, Oa, !0),
|
|
5005
|
+
firstSlideMessage: B(t, Da, "This is the first slide"),
|
|
5006
|
+
id: B(t, Na, ""),
|
|
5007
|
+
itemRoleDescriptionMessage: B(t, za, ""),
|
|
5008
|
+
lastSlideMessage: B(t, $a, "This is the last slide"),
|
|
5009
|
+
nextSlideMessage: B(t, ka, "Next slide"),
|
|
5010
|
+
notificationClass: B(t, Ga, "swiper-notification"),
|
|
5011
|
+
paginationBulletMessage: B(t, Ba, "Go to slide {{index}}"),
|
|
5012
|
+
prevSlideMessage: B(t, Ha, "Previous slide"),
|
|
5013
|
+
scrollOnFocus: D(t, Va, !0),
|
|
5014
|
+
slideLabelMessage: B(t, Wa, "{{index}} / {{slidesLength}}"),
|
|
5015
|
+
slideRole: B(t, Ya, "group")
|
|
5004
5016
|
}, e;
|
|
5005
5017
|
}
|
|
5006
5018
|
function Pe(e, t) {
|
|
@@ -5010,7 +5022,9 @@ function Pe(e, t) {
|
|
|
5010
5022
|
}
|
|
5011
5023
|
const s = /* @__PURE__ */ new Set();
|
|
5012
5024
|
document.querySelectorAll(`[${e}]`).forEach((a) => {
|
|
5013
|
-
const n = a.getAttribute(e)
|
|
5025
|
+
const n = a.getAttribute(e);
|
|
5026
|
+
if (!n) return;
|
|
5027
|
+
const i = At(window.waterfalls, n);
|
|
5014
5028
|
if (!i) {
|
|
5015
5029
|
console.warn(`[MANIPULATION] No Waterfall found with name: "${n}"`);
|
|
5016
5030
|
return;
|
|
@@ -5020,109 +5034,114 @@ function Pe(e, t) {
|
|
|
5020
5034
|
console.error(`[MANIPULATION] Invalid Swiper instance in Waterfall "${n}"`);
|
|
5021
5035
|
return;
|
|
5022
5036
|
}
|
|
5023
|
-
|
|
5024
|
-
|
|
5037
|
+
const o = a.cloneNode(!0);
|
|
5038
|
+
if (o.removeAttribute(e), t === "add" ? o.removeAttribute(pt) : t === "remove" && o.removeAttribute(mt), o.classList.contains("swiper-slide") || o.classList.add("swiper-slide"), t === "append")
|
|
5039
|
+
u.appendSlide(o.outerHTML);
|
|
5025
5040
|
else if (t === "prepend")
|
|
5026
|
-
u.prependSlide(
|
|
5041
|
+
u.prependSlide(o.outerHTML);
|
|
5027
5042
|
else if (t === "add") {
|
|
5028
|
-
let
|
|
5029
|
-
|
|
5043
|
+
let m = Number(a.getAttribute(pt));
|
|
5044
|
+
m || (m = 1);
|
|
5045
|
+
const f = document.createElement("div");
|
|
5046
|
+
f.innerHTML = o.outerHTML;
|
|
5047
|
+
const c = f.children[0];
|
|
5048
|
+
c && u.addSlide(m, c);
|
|
5030
5049
|
} else if (t === "remove") {
|
|
5031
|
-
const
|
|
5032
|
-
|
|
5050
|
+
const m = Number(a.getAttribute(mt));
|
|
5051
|
+
m !== -1 ? u.removeSlide(m) : console.warn(`[MANIPULATION] Slide not found in Swiper for removal: ${n}`);
|
|
5033
5052
|
}
|
|
5034
5053
|
a.remove();
|
|
5035
|
-
const
|
|
5036
|
-
|
|
5054
|
+
const r = a.closest(".w-dyn-list");
|
|
5055
|
+
r && s.add(r), u.update();
|
|
5037
5056
|
}), s.forEach((a) => a.remove());
|
|
5038
5057
|
}
|
|
5039
|
-
function
|
|
5040
|
-
Pe(
|
|
5058
|
+
function no() {
|
|
5059
|
+
Pe(yr, "add"), Pe(Ar, "append"), Pe(_r, "prepend"), Pe(xr, "remove");
|
|
5041
5060
|
}
|
|
5042
|
-
function
|
|
5061
|
+
function io(e, t) {
|
|
5043
5062
|
e.zoom = {
|
|
5044
|
-
containerClass: B(t,
|
|
5045
|
-
limitToOriginalSize: D(t,
|
|
5046
|
-
maxRatio:
|
|
5047
|
-
minRatio:
|
|
5048
|
-
panOnMouseMove: D(t,
|
|
5049
|
-
toggle: D(t,
|
|
5050
|
-
zoomedSlideClass: B(t,
|
|
5063
|
+
containerClass: B(t, Lr, "swiper-zoom-container"),
|
|
5064
|
+
limitToOriginalSize: D(t, Cr, !1),
|
|
5065
|
+
maxRatio: W(t, Mr, 3),
|
|
5066
|
+
minRatio: W(t, Ir, 1),
|
|
5067
|
+
panOnMouseMove: D(t, Rr, !1),
|
|
5068
|
+
toggle: D(t, wr, !0),
|
|
5069
|
+
zoomedSlideClass: B(t, Pr, "swiper-slide-zoomed")
|
|
5051
5070
|
};
|
|
5052
5071
|
}
|
|
5053
|
-
function
|
|
5054
|
-
e.allowTouchMove = D(t,
|
|
5072
|
+
function lo(e, t) {
|
|
5073
|
+
e.allowTouchMove = D(t, Rn, !0), e.edgeSwipeDetection = D(t, Gn, !1), e.edgeSwipeThreshold = W(t, Bn, 20), e.focusableElements = B(
|
|
5055
5074
|
t,
|
|
5056
|
-
|
|
5075
|
+
Yn,
|
|
5057
5076
|
"input, select, option, textarea, button, video, label"
|
|
5058
|
-
), e.followFinger = D(t,
|
|
5077
|
+
), e.followFinger = D(t, Fn, !0), e.grabCursor = D(t, Xn, !1), e.longSwipes = D(t, Qn, !0), e.longSwipesMs = W(t, Jn, 300), e.longSwipesRatio = W(t, ei, 0.5), e.noSwiping = D(t, li, !0), e.noSwipingClass = B(t, ri, "swiper-no-swiping"), e.noSwipingSelector = B(t, oi), e.preventClicks = D(t, hi, !0), e.preventClicksPropagation = D(t, gi, !0), e.preventInteractionOnTransition = D(t, Ti, !1), e.resistance = D(t, Ei, !0), e.resistanceRatio = W(t, vi, 0.85), e.shortSwipes = D(t, _i, !0), e.simulateTouch = D(t, xi, !0), e.slideToClickedSlide = D(t, Pi, !1), e.threshold = W(t, Yi, 5), e.touchAngle = W(t, Fi, 45), e.touchEventsTarget = Ce(t, Xi, "wrapper"), e.touchMoveStopPropagation = D(t, Ui, !1), e.touchRatio = W(t, qi, 1), e.touchReleaseOnEdges = D(t, ji, !1), e.touchStartForcePreventDefault = D(t, Ki, !1), e.touchStartPreventDefault = D(t, Zi, !0);
|
|
5059
5078
|
}
|
|
5060
|
-
function
|
|
5079
|
+
function ro(e, t) {
|
|
5061
5080
|
e.mousewheel = {
|
|
5062
|
-
enabled: D(t,
|
|
5063
|
-
eventsTarget: B(t,
|
|
5064
|
-
forceToAxis: D(t,
|
|
5065
|
-
invert: D(t,
|
|
5066
|
-
noMousewheelClass: B(t,
|
|
5067
|
-
releaseOnEdges: D(t,
|
|
5068
|
-
sensitivity:
|
|
5069
|
-
thresholdDelta:
|
|
5070
|
-
thresholdTime:
|
|
5081
|
+
enabled: D(t, hl, !1),
|
|
5082
|
+
eventsTarget: B(t, gl, "container"),
|
|
5083
|
+
forceToAxis: D(t, Tl, !1),
|
|
5084
|
+
invert: D(t, El, !1),
|
|
5085
|
+
noMousewheelClass: B(t, vl, "swiper-no-mousewheel"),
|
|
5086
|
+
releaseOnEdges: D(t, Sl, !1),
|
|
5087
|
+
sensitivity: W(t, bl, 1),
|
|
5088
|
+
thresholdDelta: W(t, yl),
|
|
5089
|
+
thresholdTime: W(t, Al)
|
|
5071
5090
|
};
|
|
5072
5091
|
}
|
|
5073
|
-
function
|
|
5092
|
+
function oo(e, t) {
|
|
5074
5093
|
e.freeMode = {
|
|
5075
|
-
enabled: D(t,
|
|
5076
|
-
minimumVelocity:
|
|
5077
|
-
momentum: D(t,
|
|
5078
|
-
momentumBounce: D(t,
|
|
5079
|
-
momentumBounceRatio:
|
|
5080
|
-
momentumRatio:
|
|
5081
|
-
momentumVelocityRatio:
|
|
5082
|
-
sticky: D(t,
|
|
5094
|
+
enabled: D(t, tr, !1),
|
|
5095
|
+
minimumVelocity: W(t, sr, 0.02),
|
|
5096
|
+
momentum: D(t, ar, !0),
|
|
5097
|
+
momentumBounce: D(t, nr, !0),
|
|
5098
|
+
momentumBounceRatio: W(t, ir, 1),
|
|
5099
|
+
momentumRatio: W(t, lr, 1),
|
|
5100
|
+
momentumVelocityRatio: W(t, rr, 1),
|
|
5101
|
+
sticky: D(t, or, !1)
|
|
5083
5102
|
};
|
|
5084
5103
|
}
|
|
5085
|
-
function ro(e, t) {
|
|
5086
|
-
e.lazyPreloadPrevNext = Y(t, Xn, 0), e.lazyPreloaderClass = B(t, Un, "swiper-lazy-preloader");
|
|
5087
|
-
}
|
|
5088
|
-
function oo(e, t) {
|
|
5089
|
-
e.createElements = D(t, Pn, !1), e.cssMode = D(t, On, !1), e.enabled = D(t, kn, !0), e.eventsPrefix = B(t, Gn, "swiper"), e.init = D(t, Wn, !0), e.maxBackfaceHiddenSlides = Y(t, ei, 10), e.passiveListeners = D(t, ci, !0), e.roundLengths = D(t, Ti, !1), e.runCallbacksOnInit = D(t, Ei, !0), e.setWrapperSize = D(t, vi, !1), e.uniqueNavElements = D(t, qi, !0), e.url = B(t, Ki), e.userAgent = B(t, Zi);
|
|
5090
|
-
}
|
|
5091
5104
|
function co(e, t) {
|
|
5092
|
-
e.
|
|
5105
|
+
e.lazyPreloadPrevNext = W(t, Kn, 0), e.lazyPreloaderClass = B(t, Zn, "swiper-lazy-preloader");
|
|
5093
5106
|
}
|
|
5094
5107
|
function fo(e, t) {
|
|
5108
|
+
e.createElements = D(t, zn, !1), e.cssMode = D(t, $n, !1), e.enabled = D(t, Vn, !0), e.eventsPrefix = B(t, Wn, "swiper"), e.init = D(t, qn, !0), e.maxBackfaceHiddenSlides = W(t, ni, 10), e.passiveListeners = D(t, mi, !0), e.roundLengths = D(t, bi, !1), e.runCallbacksOnInit = D(t, yi, !0), e.setWrapperSize = D(t, Ai, !1), e.uniqueNavElements = D(t, Qi, !0), e.url = B(t, el), e.userAgent = B(t, tl);
|
|
5109
|
+
}
|
|
5110
|
+
function uo(e, t) {
|
|
5111
|
+
e.observeParents = D(t, ci, !1), e.observeSlideChildren = D(t, fi, !1), e.observer = D(t, ui, !1), e.resizeObserver = D(t, Si, !0), e.updateOnWindowResize = D(t, Ji, !0), e.watchOverflow = D(t, sl, !0), e.watchSlidesProgress = D(t, al, !1);
|
|
5112
|
+
}
|
|
5113
|
+
function po(e, t) {
|
|
5095
5114
|
e.parallax = {
|
|
5096
|
-
enabled: D(t,
|
|
5115
|
+
enabled: D(t, Or, !1)
|
|
5097
5116
|
};
|
|
5098
5117
|
}
|
|
5099
|
-
console.log("🚿 Hello from Wellflow Waterfall v1.2.
|
|
5118
|
+
console.log("🚿 Hello from Wellflow Waterfall v1.2.11");
|
|
5100
5119
|
const De = [];
|
|
5101
5120
|
window.waterfalls = De;
|
|
5102
|
-
function
|
|
5121
|
+
function ht(e, t) {
|
|
5103
5122
|
let s = t;
|
|
5104
5123
|
return document.querySelectorAll(e).forEach((a) => {
|
|
5105
|
-
|
|
5124
|
+
Lt(a, s++);
|
|
5106
5125
|
}), s;
|
|
5107
5126
|
}
|
|
5108
5127
|
let Ae = 0;
|
|
5109
5128
|
document.addEventListener("DOMContentLoaded", () => {
|
|
5110
5129
|
document.querySelectorAll(`[${ve}]`).forEach((e) => {
|
|
5111
|
-
e.hasAttribute(tt) || e.hasAttribute(et) ||
|
|
5112
|
-
}), Ae =
|
|
5130
|
+
e.hasAttribute(tt) || e.hasAttribute(et) || Lt(e, Ae++);
|
|
5131
|
+
}), Ae = ht(`[${ve}][${tt}]`, Ae), Ae = ht(`[${ve}][${et}]`, Ae), Zr(), Ma();
|
|
5113
5132
|
});
|
|
5114
|
-
function
|
|
5133
|
+
function Lt(e, t) {
|
|
5115
5134
|
{
|
|
5116
5135
|
const s = B(e, ve, `Swiper ${t}`);
|
|
5117
5136
|
if (!s) return;
|
|
5118
|
-
const a = !!D(e,
|
|
5137
|
+
const a = !!D(e, Ia, !1);
|
|
5119
5138
|
a && console.warn(`Initializing Waterfall: ${s}`);
|
|
5120
5139
|
let n = {};
|
|
5121
|
-
|
|
5122
|
-
const i =
|
|
5140
|
+
Kr(n, e), Wr(n, e), Xr(n, e), Vr(n, e, s), Yr(n, e), Fr(n, e), qr(n, e), oo(n, e), jr(n, e), Qr(n, e, De, a), Jr(n, e), ro(n, e), lo(n, e), eo(n, e), to(n, e), so(n, e, De, a), ao(n, e), co(n, e), uo(n, e), io(n, e), po(n, e), fo(n, e), no(), a && console.warn(n);
|
|
5141
|
+
const i = yt(n), u = e.querySelector(".swiper");
|
|
5123
5142
|
a && console.log("SWIPER: ", u);
|
|
5124
|
-
const
|
|
5125
|
-
if (a && console.log("SWIPER SLIDES: ",
|
|
5143
|
+
const o = u?.querySelectorAll(".swiper-slide") || [];
|
|
5144
|
+
if (a && console.log("SWIPER SLIDES: ", o), o.length === 0) {
|
|
5126
5145
|
console.warn(`Skipping "${s}": no .swiper-slide elements found.`);
|
|
5127
5146
|
return;
|
|
5128
5147
|
}
|
|
@@ -5131,269 +5150,269 @@ function At(e, t) {
|
|
|
5131
5150
|
}
|
|
5132
5151
|
}
|
|
5133
5152
|
export {
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5153
|
+
Eo as ATTR_A11Y,
|
|
5154
|
+
Ra as ATTR_A11Y_CONTAINER_MESSAGE,
|
|
5155
|
+
wa as ATTR_A11Y_CONTAINER_ROLE,
|
|
5156
|
+
Pa as ATTR_A11Y_CONTAINER_ROLE_DESCRIPTION_MESSAGE,
|
|
5157
|
+
Oa as ATTR_A11Y_ENABLED,
|
|
5158
|
+
Da as ATTR_A11Y_FIRST_SLIDE_MESSAGE,
|
|
5159
|
+
Na as ATTR_A11Y_ID,
|
|
5160
|
+
za as ATTR_A11Y_ITEM_ROLE_DESCRIPTION_MESSAGE,
|
|
5161
|
+
$a as ATTR_A11Y_LAST_SLIDE_MESSAGE,
|
|
5162
|
+
ka as ATTR_A11Y_NEXT_SLIDE_MESSAGE,
|
|
5163
|
+
Ga as ATTR_A11Y_NOTIFICATION_CLASS,
|
|
5164
|
+
Ba as ATTR_A11Y_PAGINATION_BULLET_MESSAGE,
|
|
5165
|
+
Ha as ATTR_A11Y_PREV_SLIDE_MESSAGE,
|
|
5166
|
+
Va as ATTR_A11Y_SCROLL_ON_FOCUS,
|
|
5167
|
+
Wa as ATTR_A11Y_SLIDE_LABEL_MESSAGE,
|
|
5168
|
+
Ya as ATTR_A11Y_SLIDE_ROLE,
|
|
5169
|
+
To as ATTR_ADVANCED_DEBUG_MODE,
|
|
5170
|
+
Mn as ATTR_ALLOW_SLIDE_NEXT,
|
|
5171
|
+
In as ATTR_ALLOW_SLIDE_PREV,
|
|
5172
|
+
Rn as ATTR_ALLOW_TOUCH_MOVE,
|
|
5173
|
+
jl as ATTR_AUTOPLAY,
|
|
5174
|
+
wn as ATTR_AUTO_HEIGHT,
|
|
5175
|
+
Pn as ATTR_BREAKPOINTS_BASE,
|
|
5176
|
+
_n as ATTR_CARDS_PER_SLIDE_OFFSET,
|
|
5177
|
+
xn as ATTR_CARDS_PER_SLIDE_ROTATE,
|
|
5178
|
+
Ln as ATTR_CARDS_ROTATE,
|
|
5179
|
+
Cn as ATTR_CARDS_SLIDE_SHADOWS,
|
|
5180
|
+
Dn as ATTR_CENTERED_SLIDES,
|
|
5181
|
+
bo as ATTR_CENTERED_SLIDES_BOUNDS,
|
|
5182
|
+
On as ATTR_CENTER_INSUFFICIENT_SLIDES,
|
|
5183
|
+
Nn as ATTR_CONTAINER_MODIFIER_CLASS,
|
|
5165
5184
|
et as ATTR_CONTROLLER,
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5185
|
+
cn as ATTR_CONTROLLER_BY,
|
|
5186
|
+
fn as ATTR_CONTROLLER_INVERSE,
|
|
5187
|
+
un as ATTR_COVERFLOW_DEPTH,
|
|
5188
|
+
pn as ATTR_COVERFLOW_MODIFIER,
|
|
5189
|
+
mn as ATTR_COVERFLOW_ROTATE,
|
|
5190
|
+
hn as ATTR_COVERFLOW_SCALE,
|
|
5191
|
+
gn as ATTR_COVERFLOW_SLIDE_SHADOWS,
|
|
5192
|
+
Tn as ATTR_COVERFLOW_STRETCH,
|
|
5193
|
+
zn as ATTR_CREATE_ELEMENTS,
|
|
5194
|
+
$n as ATTR_CSS_MODE,
|
|
5195
|
+
Sn as ATTR_CUBE_SHADOW,
|
|
5196
|
+
bn as ATTR_CUBE_SHADOW_OFFSET,
|
|
5197
|
+
yn as ATTR_CUBE_SHADOW_SCALE,
|
|
5198
|
+
An as ATTR_CUBE_SLIDE_SHADOWS,
|
|
5199
|
+
Ia as ATTR_DEBUG_MODE,
|
|
5200
|
+
Kl as ATTR_DELAY,
|
|
5201
|
+
Qa as ATTR_DESKTOP_CENTERED_SLIDES,
|
|
5202
|
+
en as ATTR_DESKTOP_SLIDES_PER_GROUP,
|
|
5203
|
+
Ja as ATTR_DESKTOP_SLIDES_PER_VIEW,
|
|
5204
|
+
tn as ATTR_DESKTOP_SPACE_BETWEEN,
|
|
5205
|
+
kn as ATTR_DIRECTION,
|
|
5206
|
+
Zl as ATTR_DISABLE_ON_INTERACTION,
|
|
5207
|
+
Gn as ATTR_EDGE_SWIPE_DETECTION,
|
|
5208
|
+
Bn as ATTR_EDGE_SWIPE_THRESHOLD,
|
|
5209
|
+
Hn as ATTR_EFFECT,
|
|
5210
|
+
So as ATTR_EFFECT_CROSSFADE,
|
|
5211
|
+
Vn as ATTR_ENABLED,
|
|
5212
|
+
Wn as ATTR_EVENTS_PREFIX,
|
|
5213
|
+
En as ATTR_FLIP_LIMIT_ROTATION,
|
|
5214
|
+
vn as ATTR_FLIP_SLIDE_SHADOWS,
|
|
5215
|
+
Yn as ATTR_FOCUSABLE_ELEMENTS,
|
|
5216
|
+
Fn as ATTR_FOLLOW_FINGER,
|
|
5217
|
+
tr as ATTR_FREE_MODE_ENABLED,
|
|
5218
|
+
sr as ATTR_FREE_MODE_MINIMUM_VELOCITY,
|
|
5219
|
+
ar as ATTR_FREE_MODE_MOMENTUM,
|
|
5220
|
+
nr as ATTR_FREE_MODE_MOMENTUM_BOUNCE,
|
|
5221
|
+
ir as ATTR_FREE_MODE_MOMENTUM_BOUNCE_RATIO,
|
|
5222
|
+
lr as ATTR_FREE_MODE_MOMENTUM_RATIO,
|
|
5223
|
+
rr as ATTR_FREE_MODE_MOMENTUM_VELOCITY_RATIO,
|
|
5224
|
+
or as ATTR_FREE_MODE_STICKY,
|
|
5225
|
+
Xn as ATTR_GRAB_CURSOR,
|
|
5226
|
+
xl as ATTR_GRID_FILL,
|
|
5227
|
+
_l as ATTR_GRID_ROWS,
|
|
5228
|
+
ll as ATTR_HASH_REPLACE_STATE,
|
|
5229
|
+
rl as ATTR_HASH_WATCH_STATE,
|
|
5230
|
+
Un as ATTR_HEIGHT,
|
|
5231
|
+
ol as ATTR_HISTORY_KEEP_QUERY,
|
|
5232
|
+
dl as ATTR_HISTORY_KEY,
|
|
5233
|
+
cl as ATTR_HISTORY_REPLACE_STATE,
|
|
5234
|
+
fl as ATTR_HISTORY_ROOT,
|
|
5235
|
+
qn as ATTR_INIT,
|
|
5236
|
+
jn as ATTR_INITIAL_SLIDE,
|
|
5237
|
+
ul as ATTR_KEYBOARD_ENABLED,
|
|
5238
|
+
pl as ATTR_KEYBOARD_ONLY_IN_VIEWPORT,
|
|
5239
|
+
ml as ATTR_KEYBOARD_PAGE_UP_DOWN,
|
|
5240
|
+
sn as ATTR_LARGE_CENTERED_SLIDES,
|
|
5222
5241
|
ut as ATTR_LARGE_SLIDES_PER_GROUP,
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5242
|
+
an as ATTR_LARGE_SLIDES_PER_VIEW,
|
|
5243
|
+
nn as ATTR_LARGE_SPACE_BETWEEN,
|
|
5244
|
+
Zn as ATTR_LAZY_PRELOADER_CLASS,
|
|
5245
|
+
Kn as ATTR_LAZY_PRELOAD_PREV_NEXT,
|
|
5246
|
+
Fa as ATTR_LMOBILE_CENTERED_SLIDES,
|
|
5247
|
+
Ua as ATTR_LMOBILE_SLIDES_PER_GROUP,
|
|
5248
|
+
Xa as ATTR_LMOBILE_SLIDES_PER_VIEW,
|
|
5249
|
+
qa as ATTR_LMOBILE_SPACE_BETWEEN,
|
|
5250
|
+
Qn as ATTR_LONG_SWIPES,
|
|
5251
|
+
Jn as ATTR_LONG_SWIPES_MS,
|
|
5252
|
+
ei as ATTR_LONG_SWIPES_RATIO,
|
|
5253
|
+
yo as ATTR_LOOP,
|
|
5254
|
+
si as ATTR_LOOP_ADD_ADDITIONAL_SLIDES,
|
|
5255
|
+
ti as ATTR_LOOP_ADD_BLANK_SLIDES,
|
|
5256
|
+
ai as ATTR_LOOP_PREVENTS_SLIDING,
|
|
5257
|
+
pt as ATTR_MANIPULATION_ADD_INDEX,
|
|
5258
|
+
yr as ATTR_MANIPULATION_ADD_SLIDE,
|
|
5259
|
+
Ar as ATTR_MANIPULATION_APPEND_SLIDE,
|
|
5260
|
+
_r as ATTR_MANIPULATION_PREPEND_SLIDE,
|
|
5261
|
+
Io as ATTR_MANIPULATION_REMOVE_ALL_SLIDES,
|
|
5262
|
+
mt as ATTR_MANIPULATION_REMOVE_INDEX,
|
|
5263
|
+
xr as ATTR_MANIPULATION_REMOVE_SLIDE,
|
|
5264
|
+
ni as ATTR_MAX_BACKFACE_HIDDEN_SLIDES,
|
|
5265
|
+
hl as ATTR_MOUSE_ENABLED,
|
|
5266
|
+
gl as ATTR_MOUSE_EVENTS_TARGET,
|
|
5267
|
+
Tl as ATTR_MOUSE_FORCE_TO_AXIS,
|
|
5268
|
+
El as ATTR_MOUSE_INVERT,
|
|
5269
|
+
vl as ATTR_MOUSE_NO_MOUSE_WHEEL_CLASS,
|
|
5270
|
+
Sl as ATTR_MOUSE_RELEASE_ON_EDGES,
|
|
5271
|
+
bl as ATTR_MOUSE_SENSITIVITY,
|
|
5272
|
+
yl as ATTR_MOUSE_THRESHOLD_DELTA,
|
|
5273
|
+
Al as ATTR_MOUSE_THRESHOLD_TIME,
|
|
5274
|
+
Ll as ATTR_NAVIGATION_DISABLED_CLASS,
|
|
5275
|
+
Cl as ATTR_NAVIGATION_ENABLED,
|
|
5276
|
+
Ml as ATTR_NAVIGATION_HIDDEN_CLASS,
|
|
5277
|
+
Il as ATTR_NAVIGATION_HIDE_ON_CLICK,
|
|
5278
|
+
_t as ATTR_NAVIGATION_LOCK_CLASS,
|
|
5279
|
+
Rl as ATTR_NAVIGATION_NAVIGATION_DISABLED_CLASS,
|
|
5280
|
+
ii as ATTR_NESTED,
|
|
5281
|
+
di as ATTR_NORMALIZE_SLIDE_INDEX,
|
|
5282
|
+
li as ATTR_NO_SWIPING,
|
|
5283
|
+
ri as ATTR_NO_SWIPING_CLASS,
|
|
5284
|
+
oi as ATTR_NO_SWIPING_SELECTOR,
|
|
5285
|
+
ui as ATTR_OBSERVER,
|
|
5286
|
+
fi as ATTR_OBSERVE_SLIDE_CHILDREN,
|
|
5287
|
+
ci as ATTR_OBSERVE_SLIDE_PARENTS,
|
|
5288
|
+
pi as ATTR_ONE_WAY_MOVEMENT,
|
|
5289
|
+
Pl as ATTR_PAGINATION_BULLET_ACTIVE_CLASS,
|
|
5290
|
+
xo as ATTR_PAGINATION_BULLET_CLASS,
|
|
5291
|
+
Ol as ATTR_PAGINATION_CLICKABLE,
|
|
5292
|
+
Dl as ATTR_PAGINATION_CLICKABLE_CLASS,
|
|
5293
|
+
Nl as ATTR_PAGINATION_CURRENT_CLASS,
|
|
5294
|
+
zl as ATTR_PAGINATION_DYNAMIC_BULLETS,
|
|
5295
|
+
$l as ATTR_PAGINATION_DYNAMIC_MAIN_BULLETS,
|
|
5296
|
+
kl as ATTR_PAGINATION_ENABLED,
|
|
5297
|
+
Gl as ATTR_PAGINATION_HIDDEN_CLASS,
|
|
5298
|
+
Bl as ATTR_PAGINATION_HIDE_ON_CLICK,
|
|
5299
|
+
Hl as ATTR_PAGINATION_HORIZONTAL_CLASS,
|
|
5300
|
+
Lo as ATTR_PAGINATION_LOCK_CLASS,
|
|
5301
|
+
Vl as ATTR_PAGINATION_MODIFIER_CLASS,
|
|
5302
|
+
Wl as ATTR_PAGINATION_PAGINATION_DISABLED_CLASS,
|
|
5303
|
+
Yl as ATTR_PAGINATION_PROGRESSBAR_FILL_CLASS,
|
|
5304
|
+
Fl as ATTR_PAGINATION_PROGRESSBAR_OPPOSITE,
|
|
5305
|
+
Xl as ATTR_PAGINATION_PROGRESSBAR_OPPOSITE_CLASS,
|
|
5306
|
+
Ul as ATTR_PAGINATION_TOTAL_CLASS,
|
|
5307
|
+
wl as ATTR_PAGINATION_TYPE,
|
|
5308
|
+
ql as ATTR_PAGINATION_VERTICAL_CLASS,
|
|
5309
|
+
Oo as ATTR_PARALLAX,
|
|
5310
|
+
ko as ATTR_PARALLAX_DURATION,
|
|
5311
|
+
Or as ATTR_PARALLAX_ENABLED,
|
|
5312
|
+
$o as ATTR_PARALLAX_OPACITY,
|
|
5313
|
+
zo as ATTR_PARALLAX_SCALE,
|
|
5314
|
+
Do as ATTR_PARALLAX_X,
|
|
5315
|
+
No as ATTR_PARALLAX_Y,
|
|
5316
|
+
mi as ATTR_PASSIVE_LISTENERS,
|
|
5317
|
+
Jl as ATTR_PAUSE_ON_MOUSE_ENTER,
|
|
5318
|
+
Dr as ATTR_PLAYBACK_MODE,
|
|
5319
|
+
hi as ATTR_PREVENT_CLICKS,
|
|
5320
|
+
gi as ATTR_PREVENT_CLICKS_PROPAGATION,
|
|
5321
|
+
Ti as ATTR_PREVENT_INTERACTION_ON_TRANSITION,
|
|
5322
|
+
Ei as ATTR_RESISTANCE,
|
|
5323
|
+
vi as ATTR_RESISTANCE_RATIO,
|
|
5324
|
+
Si as ATTR_RESIZE_OBSERVER,
|
|
5325
|
+
Ql as ATTR_REVERSE_DIRECTION,
|
|
5326
|
+
Ao as ATTR_REWIND,
|
|
5327
|
+
bi as ATTR_ROUND_LENGTHS,
|
|
5328
|
+
yi as ATTR_RUN_CALLBACKS_ON_INIT,
|
|
5329
|
+
cr as ATTR_SCROLLBAR_DRAGGABLE,
|
|
5330
|
+
Mo as ATTR_SCROLLBAR_DRAG_CLASS,
|
|
5331
|
+
dr as ATTR_SCROLLBAR_DRAG_SIZE,
|
|
5332
|
+
fr as ATTR_SCROLLBAR_ENABLED,
|
|
5333
|
+
ur as ATTR_SCROLLBAR_HIDE,
|
|
5334
|
+
pr as ATTR_SCROLLBAR_HORIZONTAL_CLASS,
|
|
5335
|
+
mr as ATTR_SCROLLBAR_LOCK_CLASS,
|
|
5336
|
+
hr as ATTR_SCROLLBAR_SCROLLBAR_DISABLED_CLASS,
|
|
5337
|
+
Tr as ATTR_SCROLLBAR_SNAP_ON_RELEASE,
|
|
5338
|
+
gr as ATTR_SCROLLBAR_VERTICAL_CLASS,
|
|
5339
|
+
Ai as ATTR_SET_WRAPPER_SIZE,
|
|
5340
|
+
_i as ATTR_SHORT_SWIPES,
|
|
5341
|
+
xi as ATTR_SIMULATE_TOUCH,
|
|
5342
|
+
Di as ATTR_SLIDES_OFFSET_AFTER,
|
|
5343
|
+
Ni as ATTR_SLIDES_OFFSET_BEFORE,
|
|
5344
|
+
zi as ATTR_SLIDES_PER_GROUP,
|
|
5345
|
+
$i as ATTR_SLIDES_PER_GROUP_AUTO,
|
|
5346
|
+
ki as ATTR_SLIDES_PER_GROUP_SKIP,
|
|
5347
|
+
Gi as ATTR_SLIDES_PER_VIEW,
|
|
5348
|
+
Li as ATTR_SLIDE_ACTIVE_CLASS,
|
|
5349
|
+
Mi as ATTR_SLIDE_BLANK_CLASS,
|
|
5350
|
+
Ci as ATTR_SLIDE_CLASS,
|
|
5351
|
+
Ii as ATTR_SLIDE_FULLY_VISIBLE_CLASS,
|
|
5352
|
+
Ri as ATTR_SLIDE_NEXT_CLASS,
|
|
5353
|
+
wi as ATTR_SLIDE_PREV_CLASS,
|
|
5354
|
+
Pi as ATTR_SLIDE_TO_CLICKED_SLIDE,
|
|
5355
|
+
Oi as ATTR_SLIDE_VISIBLE_CLASS,
|
|
5356
|
+
xt as ATTR_SMOOTH_AUTOPLAY,
|
|
5357
|
+
Bi as ATTR_SPACE_BETWEEN,
|
|
5358
|
+
Hi as ATTR_SPEED,
|
|
5359
|
+
er as ATTR_STOP_ON_LAST_SLIDE,
|
|
5360
|
+
Wi as ATTR_SWIPER_ELEMENT_NODE_NAME,
|
|
5361
|
+
Vi as ATTR_SWIPE_HANDLER,
|
|
5362
|
+
ja as ATTR_TABLET_CENTERED_SLIDES,
|
|
5363
|
+
vo as ATTR_TABLET_SLIDES_PER_GROUP,
|
|
5364
|
+
Ka as ATTR_TABLET_SLIDES_PER_VIEW,
|
|
5365
|
+
Za as ATTR_TABLET_SPACE_BETWEEN,
|
|
5366
|
+
Yi as ATTR_THRESHOLD,
|
|
5348
5367
|
tt as ATTR_THUMBS,
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
+
Er as ATTR_THUMBS_AUTO_SCROLL_OFFSET,
|
|
5369
|
+
br as ATTR_THUMBS_CONTAINER_CLASS,
|
|
5370
|
+
vr as ATTR_THUMBS_MULTIPLE_ACTIVE_THUMBS,
|
|
5371
|
+
Sr as ATTR_THUMBS_SLIDE_THUMB_ACTIVE_CLASS,
|
|
5372
|
+
Fi as ATTR_TOUCH_ANGLE,
|
|
5373
|
+
Xi as ATTR_TOUCH_EVENTS_TARGET,
|
|
5374
|
+
Ui as ATTR_TOUCH_MOVE_STOP_PROPAGATION,
|
|
5375
|
+
qi as ATTR_TOUCH_RATIO,
|
|
5376
|
+
ji as ATTR_TOUCH_RELEASE_ON_EDGES,
|
|
5377
|
+
Ki as ATTR_TOUCH_START_FORCE_PREVENT_DEFAULT,
|
|
5378
|
+
Zi as ATTR_TOUCH_START_PREVENT_DEFAULT,
|
|
5379
|
+
Qi as ATTR_UNIQUE_NAV_ELEMENTS,
|
|
5380
|
+
Ji as ATTR_UPDATE_ON_WINDOW_RESIZE,
|
|
5381
|
+
el as ATTR_URL,
|
|
5382
|
+
tl as ATTR_USER_AGENT,
|
|
5383
|
+
_o as ATTR_VIRTUAL_TRANSLATE,
|
|
5384
|
+
Co as ATTR_WAIT_FOR_TRANSITION,
|
|
5385
|
+
sl as ATTR_WATCH_OVERFLOW,
|
|
5386
|
+
al as ATTR_WATCH_SLIDES_PROGRESS,
|
|
5368
5387
|
ve as ATTR_WATERFALL,
|
|
5369
|
-
|
|
5388
|
+
go as ATTR_WATERFALL_CONTENT,
|
|
5370
5389
|
pe as ATTR_WATERFALL_ELEMENT,
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5390
|
+
ho as ATTR_WATERFALL_POSTLOAD,
|
|
5391
|
+
mo as ATTR_WATERFALL_PRELOAD,
|
|
5392
|
+
nl as ATTR_WIDTH,
|
|
5393
|
+
il as ATTR_WRAPPER_CLASS,
|
|
5394
|
+
ln as ATTR_XLARGE_CENTERED_SLIDES,
|
|
5395
|
+
on as ATTR_XLARGE_SLIDES_PER_GROUP,
|
|
5396
|
+
rn as ATTR_XLARGE_SLIDES_PER_VIEW,
|
|
5397
|
+
dn as ATTR_XLARGE_SPACE_BETWEEN,
|
|
5398
|
+
Ro as ATTR_ZOOM,
|
|
5399
|
+
Pr as ATTR_ZOOMED_SLIDE_CLASS,
|
|
5400
|
+
Lr as ATTR_ZOOM_CONTAINER_CLASS,
|
|
5401
|
+
wo as ATTR_ZOOM_ENABLED,
|
|
5402
|
+
Po as ATTR_ZOOM_FADE,
|
|
5403
|
+
Cr as ATTR_ZOOM_LIMIT_TO_ORIGINAL_SIZE,
|
|
5404
|
+
Mr as ATTR_ZOOM_MAX_RATIO,
|
|
5405
|
+
Ir as ATTR_ZOOM_MIN_RATIO,
|
|
5406
|
+
Rr as ATTR_ZOOM_PAN_ON_MOUSE_MOVE,
|
|
5407
|
+
wr as ATTR_ZOOM_TOGGLE,
|
|
5408
|
+
Bo as EL_NAVIGATION,
|
|
5409
|
+
$r as EL_NAVIGATION_NEXT,
|
|
5410
|
+
kr as EL_NAVIGATION_PREV,
|
|
5411
|
+
Nr as EL_PAGINATION,
|
|
5412
|
+
zr as EL_PAGINATION_BULLET,
|
|
5413
|
+
Go as EL_PAGINATION_BULLET_ACTIVE,
|
|
5414
|
+
Gr as EL_SCROLLBAR,
|
|
5415
|
+
Br as EL_SCROLLBAR_DRAG,
|
|
5416
|
+
Hr as EL_SLIDE_COUNT
|
|
5398
5417
|
};
|
|
5399
5418
|
//# sourceMappingURL=index.js.map
|