diff --git a/dist/chuci.js b/dist/chuci.js index 5c200eb..cb3b8e1 100644 --- a/dist/chuci.js +++ b/dist/chuci.js @@ -1,4 +1,4 @@ -class Hs extends HTMLElement { +class na extends HTMLElement { _shadowRoot; _connected = !1; constructor() { @@ -44,16 +44,16 @@ class Hs extends HTMLElement { })); } } -function pl(n) { +function zl(n) { return n !== null && typeof n == "object" && "constructor" in n && n.constructor === Object; } -function Oo(n = {}, e = {}) { +function rl(n = {}, e = {}) { const t = ["__proto__", "constructor", "prototype"]; Object.keys(e).filter((i) => t.indexOf(i) < 0).forEach((i) => { - typeof n[i] > "u" ? n[i] = e[i] : pl(e[i]) && pl(n[i]) && Object.keys(e[i]).length > 0 && Oo(n[i], e[i]); + typeof n[i] > "u" ? n[i] = e[i] : zl(e[i]) && zl(n[i]) && Object.keys(e[i]).length > 0 && rl(n[i], e[i]); }); } -const fd = { +const Od = { body: {}, addEventListener() { }, @@ -108,12 +108,12 @@ const fd = { search: "" } }; -function Ht() { +function $t() { const n = typeof document < "u" ? document : {}; - return Oo(n, fd), n; + return rl(n, Od), n; } -const _h = { - document: fd, +const $h = { + document: Od, navigator: { userAgent: "" }, @@ -170,14 +170,14 @@ const _h = { typeof setTimeout > "u" || clearTimeout(n); } }; -function Mt() { +function Lt() { const n = typeof window < "u" ? window : {}; - return Oo(n, _h), n; + return rl(n, $h), n; } -function Yi(n = "") { +function dn(n = "") { return n.trim().split(" ").filter((e) => !!e.trim()); } -function Sh(n) { +function eu(n) { const e = n; Object.keys(e).forEach((t) => { try { @@ -190,65 +190,65 @@ function Sh(n) { } }); } -function zo(n, e = 0) { +function sl(n, e = 0) { return setTimeout(n, e); } -function Is() { +function Os() { return Date.now(); } -function bh(n) { - const e = Mt(); +function tu(n) { + const e = Lt(); let t; return e.getComputedStyle && (t = e.getComputedStyle(n, null)), !t && n.currentStyle && (t = n.currentStyle), t || (t = n.style), t; } -function Eh(n, e = "x") { - const t = Mt(); +function iu(n, e = "x") { + const t = Lt(); let i, r, s; - const a = bh(n); + const a = tu(n); return t.WebKitCSSMatrix ? (r = a.transform || a.webkitTransform, r.split(",").length > 6 && (r = r.split(", ").map((o) => o.replace(",", ".")).join(", ")), s = new t.WebKitCSSMatrix(r === "none" ? "" : r)) : (s = a.MozTransform || a.OTransform || a.MsTransform || a.msTransform || a.transform || a.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), i = s.toString().split(",")), e === "x" && (t.WebKitCSSMatrix ? r = s.m41 : i.length === 16 ? r = parseFloat(i[12]) : r = parseFloat(i[4])), e === "y" && (t.WebKitCSSMatrix ? r = s.m42 : i.length === 16 ? r = parseFloat(i[13]) : r = parseFloat(i[5])), r || 0; } -function Sr(n) { +function Er(n) { return typeof n == "object" && n !== null && n.constructor && Object.prototype.toString.call(n).slice(8, -1) === "Object"; } -function xh(n) { +function nu(n) { return typeof window < "u" && typeof window.HTMLElement < "u" ? n instanceof HTMLElement : n && (n.nodeType === 1 || n.nodeType === 11); } -function jt(...n) { +function si(...n) { const e = Object(n[0]); for (let t = 1; t < n.length; t += 1) { const i = n[t]; - if (i != null && !xh(i)) { + if (i != null && !nu(i)) { const r = Object.keys(Object(i)).filter((s) => s !== "__proto__" && s !== "constructor" && s !== "prototype"); for (let s = 0, a = r.length; s < a; s += 1) { const o = r[s], l = Object.getOwnPropertyDescriptor(i, o); - l !== void 0 && l.enumerable && (Sr(e[o]) && Sr(i[o]) ? i[o].__swiper__ ? e[o] = i[o] : jt(e[o], i[o]) : !Sr(e[o]) && Sr(i[o]) ? (e[o] = {}, i[o].__swiper__ ? e[o] = i[o] : jt(e[o], i[o])) : e[o] = i[o]); + l !== void 0 && l.enumerable && (Er(e[o]) && Er(i[o]) ? i[o].__swiper__ ? e[o] = i[o] : si(e[o], i[o]) : !Er(e[o]) && Er(i[o]) ? (e[o] = {}, i[o].__swiper__ ? e[o] = i[o] : si(e[o], i[o])) : e[o] = i[o]); } } } return e; } -function wn(n, e, t) { +function Bn(n, e, t) { n.style.setProperty(e, t); } -function pd({ +function zd({ swiper: n, targetPosition: e, side: t }) { - const i = Mt(), r = -n.translate; + const i = Lt(), r = -n.translate; let s = null, a; const o = n.params.speed; n.wrapperEl.style.scrollSnapType = "none", i.cancelAnimationFrame(n.cssModeFrameID); - const l = e > r ? "next" : "prev", c = (h, f) => l === "next" && h >= f || l === "prev" && h <= f, d = () => { + const l = e > r ? "next" : "prev", c = (u, h) => l === "next" && u >= h || l === "prev" && u <= h, d = () => { a = (/* @__PURE__ */ new Date()).getTime(), s === null && (s = a); - const h = Math.max(Math.min((a - s) / o, 1), 0), f = 0.5 - Math.cos(h * Math.PI) / 2; - let u = r + f * (e - r); - if (c(u, e) && (u = e), n.wrapperEl.scrollTo({ - [t]: u - }), c(u, e)) { + const u = Math.max(Math.min((a - s) / o, 1), 0), h = 0.5 - Math.cos(u * Math.PI) / 2; + let f = r + h * (e - r); + if (c(f, e) && (f = e), n.wrapperEl.scrollTo({ + [t]: f + }), c(f, e)) { n.wrapperEl.style.overflow = "hidden", n.wrapperEl.style.scrollSnapType = "", setTimeout(() => { n.wrapperEl.style.overflow = "", n.wrapperEl.scrollTo({ - [t]: u + [t]: f }); }), i.cancelAnimationFrame(n.cssModeFrameID); return; @@ -257,11 +257,11 @@ function pd({ }; d(); } -function gi(n, e = "") { - const t = Mt(), i = [...n.children]; +function Ei(n, e = "") { + const t = Lt(), i = [...n.children]; return t.HTMLSlotElement && n instanceof HTMLSlotElement && i.push(...n.assignedElements()), e ? i.filter((r) => r.matches(e)) : i; } -function yh(n, e) { +function ru(n, e) { const t = [e]; for (; t.length > 0; ) { const i = t.shift(); @@ -270,30 +270,30 @@ function yh(n, e) { t.push(...i.children, ...i.shadowRoot ? i.shadowRoot.children : [], ...i.assignedElements ? i.assignedElements() : []); } } -function wh(n, e) { - const t = Mt(); +function su(n, e) { + const t = Lt(); let i = e.contains(n); - return !i && t.HTMLSlotElement && e instanceof HTMLSlotElement && (i = [...e.assignedElements()].includes(n), i || (i = yh(n, e))), i; + return !i && t.HTMLSlotElement && e instanceof HTMLSlotElement && (i = [...e.assignedElements()].includes(n), i || (i = ru(n, e))), i; } -function Rs(n) { +function zs(n) { try { console.warn(n); return; } catch { } } -function Ur(n, e = []) { +function Br(n, e = []) { const t = document.createElement(n); - return t.classList.add(...Array.isArray(e) ? e : Yi(e)), t; + return t.classList.add(...Array.isArray(e) ? e : dn(e)), t; } -function md(n) { - const e = Mt(), t = Ht(), i = n.getBoundingClientRect(), r = t.body, s = n.clientTop || r.clientTop || 0, a = n.clientLeft || r.clientLeft || 0, o = n === e ? e.scrollY : n.scrollTop, l = n === e ? e.scrollX : n.scrollLeft; +function Wd(n) { + const e = Lt(), t = $t(), i = n.getBoundingClientRect(), r = t.body, s = n.clientTop || r.clientTop || 0, a = n.clientLeft || r.clientLeft || 0, o = n === e ? e.scrollY : n.scrollTop, l = n === e ? e.scrollX : n.scrollLeft; return { top: i.top + o - s, left: i.left + l - a }; } -function Ch(n, e) { +function au(n, e) { const t = []; for (; n.previousElementSibling; ) { const i = n.previousElementSibling; @@ -301,7 +301,7 @@ function Ch(n, e) { } return t; } -function Uh(n, e) { +function ou(n, e) { const t = []; for (; n.nextElementSibling; ) { const i = n.nextElementSibling; @@ -309,10 +309,10 @@ function Uh(n, e) { } return t; } -function qi(n, e) { - return Mt().getComputedStyle(n, null).getPropertyValue(e); +function un(n, e) { + return Lt().getComputedStyle(n, null).getPropertyValue(e); } -function Bs(n) { +function Ws(n) { let e = n, t; if (e) { for (t = 0; (e = e.previousSibling) !== null; ) @@ -320,56 +320,56 @@ function Bs(n) { return t; } } -function Ds(n, e) { +function Gs(n, e) { const t = []; let i = n.parentElement; for (; i; ) e ? i.matches(e) && t.push(i) : t.push(i), i = i.parentElement; return t; } -function Wa(n, e, t) { - const i = Mt(); +function ro(n, e, t) { + const i = Lt(); return n[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(i.getComputedStyle(n, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(i.getComputedStyle(n, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom")); } -function bt(n) { +function Ut(n) { return (Array.isArray(n) ? n : [n]).filter((e) => !!e); } -function Ga(n, e = "") { +function so(n, e = "") { typeof trustedTypes < "u" ? n.innerHTML = trustedTypes.createPolicy("html", { createHTML: (t) => t }).createHTML(e) : n.innerHTML = e; } -let ea; -function Mh() { - const n = Mt(), e = Ht(); +let fa; +function lu() { + const n = Lt(), e = $t(); return { smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style, touch: !!("ontouchstart" in n || n.DocumentTouch && e instanceof n.DocumentTouch) }; } -function gd() { - return ea || (ea = Mh()), ea; +function Gd() { + return fa || (fa = lu()), fa; } -let ta; -function Th({ +let pa; +function cu({ userAgent: n } = {}) { - const e = gd(), t = Mt(), i = t.navigator.platform, r = n || t.navigator.userAgent, s = { + const e = Gd(), t = Lt(), i = t.navigator.platform, r = n || t.navigator.userAgent, s = { ios: !1, android: !1 }, a = t.screen.width, o = t.screen.height, l = r.match(/(Android);?[\s\/]+([\d.]+)?/); let c = r.match(/(iPad)(?!\1).*OS\s([\d_]+)/); - const d = r.match(/(iPod)(.*OS\s([\d_]+))?/), h = !c && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), f = i === "Win32"; - let u = i === "MacIntel"; + const d = r.match(/(iPod)(.*OS\s([\d_]+))?/), u = !c && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), h = i === "Win32"; + let f = i === "MacIntel"; const g = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"]; - return !c && u && e.touch && g.indexOf(`${a}x${o}`) >= 0 && (c = r.match(/(Version)\/([\d.]+)/), c || (c = [0, 1, "13_0_0"]), u = !1), l && !f && (s.os = "android", s.android = !0), (c || h || d) && (s.os = "ios", s.ios = !0), s; + return !c && f && e.touch && g.indexOf(`${a}x${o}`) >= 0 && (c = r.match(/(Version)\/([\d.]+)/), c || (c = [0, 1, "13_0_0"]), f = !1), l && !h && (s.os = "android", s.android = !0), (c || u || d) && (s.os = "ios", s.ios = !0), s; } -function vd(n = {}) { - return ta || (ta = Th(n)), ta; +function Hd(n = {}) { + return pa || (pa = cu(n)), pa; } -let ia; -function Fh() { - const n = Mt(), e = vd(); +let ma; +function du() { + const n = Lt(), e = Hd(); let t = !1; function i() { const o = n.navigator.userAgent.toLowerCase(); @@ -390,15 +390,15 @@ function Fh() { isWebView: r }; } -function Ad() { - return ia || (ia = Fh()), ia; +function Jd() { + return ma || (ma = du()), ma; } -function Ih({ +function hu({ swiper: n, on: e, emit: t }) { - const i = Mt(); + const i = Lt(); let r = null, s = null; const a = () => { !n || n.destroyed || !n.initialized || (t("beforeResize"), t("resize")); @@ -406,17 +406,17 @@ function Ih({ !n || n.destroyed || !n.initialized || (r = new ResizeObserver((d) => { s = i.requestAnimationFrame(() => { const { - width: h, - height: f + width: u, + height: h } = n; - let u = h, g = f; + let f = u, g = h; d.forEach(({ contentBoxSize: v, contentRect: m, target: p }) => { - p && p !== n.el || (u = m ? m.width : (v[0] || v).inlineSize, g = m ? m.height : (v[0] || v).blockSize); - }), (u !== h || g !== f) && a(); + p && p !== n.el || (f = m ? m.width : (v[0] || v).inlineSize, g = m ? m.height : (v[0] || v).blockSize); + }), (f !== u || g !== h) && a(); }); }), r.observe(n.el)); }, l = () => { @@ -434,33 +434,33 @@ function Ih({ l(), i.removeEventListener("resize", a), i.removeEventListener("orientationchange", c); }); } -function Rh({ +function uu({ swiper: n, extendParams: e, on: t, emit: i }) { - const r = [], s = Mt(), a = (c, d = {}) => { - const h = s.MutationObserver || s.WebkitMutationObserver, f = new h((u) => { + const r = [], s = Lt(), a = (c, d = {}) => { + const u = s.MutationObserver || s.WebkitMutationObserver, h = new u((f) => { if (n.__preventObserver__) return; - if (u.length === 1) { - i("observerUpdate", u[0]); + if (f.length === 1) { + i("observerUpdate", f[0]); return; } const g = function() { - i("observerUpdate", u[0]); + i("observerUpdate", f[0]); }; s.requestAnimationFrame ? s.requestAnimationFrame(g) : s.setTimeout(g, 0); }); - f.observe(c, { + h.observe(c, { attributes: typeof d.attributes > "u" ? !0 : d.attributes, childList: n.isElement || (typeof d.childList > "u" ? !0 : d).childList, characterData: typeof d.characterData > "u" ? !0 : d.characterData - }), r.push(f); + }), r.push(h); }, o = () => { if (n.params.observer) { if (n.params.observeParents) { - const c = Ds(n.hostEl); + const c = Gs(n.hostEl); for (let d = 0; d < c.length; d += 1) a(c[d]); } @@ -481,7 +481,7 @@ function Rh({ observeSlideChildren: !1 }), t("init", o), t("destroy", l); } -var Bh = { +var fu = { on(n, e, t) { const i = this; if (!i.eventsListeners || i.destroyed || typeof e != "function") return i; @@ -531,147 +531,147 @@ var Bh = { }), e; } }; -function Dh() { +function pu() { const n = this; let e, t; const i = n.el; - typeof n.params.width < "u" && n.params.width !== null ? e = n.params.width : e = i.clientWidth, typeof n.params.height < "u" && n.params.height !== null ? t = n.params.height : t = i.clientHeight, !(e === 0 && n.isHorizontal() || t === 0 && n.isVertical()) && (e = e - parseInt(qi(i, "padding-left") || 0, 10) - parseInt(qi(i, "padding-right") || 0, 10), t = t - parseInt(qi(i, "padding-top") || 0, 10) - parseInt(qi(i, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(t) && (t = 0), Object.assign(n, { + typeof n.params.width < "u" && n.params.width !== null ? e = n.params.width : e = i.clientWidth, typeof n.params.height < "u" && n.params.height !== null ? t = n.params.height : t = i.clientHeight, !(e === 0 && n.isHorizontal() || t === 0 && n.isVertical()) && (e = e - parseInt(un(i, "padding-left") || 0, 10) - parseInt(un(i, "padding-right") || 0, 10), t = t - parseInt(un(i, "padding-top") || 0, 10) - parseInt(un(i, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(t) && (t = 0), Object.assign(n, { width: e, height: t, size: n.isHorizontal() ? e : t })); } -function Qh() { +function mu() { const n = this; - function e(b, x) { - return parseFloat(b.getPropertyValue(n.getDirectionLabel(x)) || 0); + function e(I, C) { + return parseFloat(I.getPropertyValue(n.getDirectionLabel(C)) || 0); } const t = n.params, { wrapperEl: i, slidesEl: r, rtlTranslate: s, wrongRTL: a - } = n, o = n.virtual && t.virtual.enabled, l = o ? n.virtual.slides.length : n.slides.length, c = gi(r, `.${n.params.slideClass}, swiper-slide`), d = o ? n.virtual.slides.length : c.length; - let h = []; - const f = [], u = []; + } = n, o = n.virtual && t.virtual.enabled, l = o ? n.virtual.slides.length : n.slides.length, c = Ei(r, `.${n.params.slideClass}, swiper-slide`), d = o ? n.virtual.slides.length : c.length; + let u = []; + const h = [], f = []; let g = t.slidesOffsetBefore; typeof g == "function" && (g = t.slidesOffsetBefore.call(n)); let v = t.slidesOffsetAfter; typeof v == "function" && (v = t.slidesOffsetAfter.call(n)); const m = n.snapGrid.length, p = n.slidesGrid.length, A = n.size - g - v; - let _ = t.spaceBetween, S = -g, M = 0, C = 0; + let b = t.spaceBetween, x = -g, E = 0, y = 0; if (typeof A > "u") return; - typeof _ == "string" && _.indexOf("%") >= 0 ? _ = parseFloat(_.replace("%", "")) / 100 * A : typeof _ == "string" && (_ = parseFloat(_)), n.virtualSize = -_ - g - v, c.forEach((b) => { - s ? b.style.marginLeft = "" : b.style.marginRight = "", b.style.marginBottom = "", b.style.marginTop = ""; - }), t.centeredSlides && t.cssMode && (wn(i, "--swiper-centered-offset-before", ""), wn(i, "--swiper-centered-offset-after", "")), t.cssMode && (wn(i, "--swiper-slides-offset-before", `${g}px`), wn(i, "--swiper-slides-offset-after", `${v}px`)); - const U = t.grid && t.grid.rows > 1 && n.grid; - U ? n.grid.initSlides(c) : n.grid && n.grid.unsetSlides(); - let T; - const y = t.slidesPerView === "auto" && t.breakpoints && Object.keys(t.breakpoints).filter((b) => typeof t.breakpoints[b].slidesPerView < "u").length > 0; - for (let b = 0; b < d; b += 1) { - T = 0; - const x = c[b]; - if (!(x && (U && n.grid.updateSlide(b, x, c), qi(x, "display") === "none"))) { + typeof b == "string" && b.indexOf("%") >= 0 ? b = parseFloat(b.replace("%", "")) / 100 * A : typeof b == "string" && (b = parseFloat(b)), n.virtualSize = -b - g - v, c.forEach((I) => { + s ? I.style.marginLeft = "" : I.style.marginRight = "", I.style.marginBottom = "", I.style.marginTop = ""; + }), t.centeredSlides && t.cssMode && (Bn(i, "--swiper-centered-offset-before", ""), Bn(i, "--swiper-centered-offset-after", "")), t.cssMode && (Bn(i, "--swiper-slides-offset-before", `${g}px`), Bn(i, "--swiper-slides-offset-after", `${v}px`)); + const M = t.grid && t.grid.rows > 1 && n.grid; + M ? n.grid.initSlides(c) : n.grid && n.grid.unsetSlides(); + let S; + const U = t.slidesPerView === "auto" && t.breakpoints && Object.keys(t.breakpoints).filter((I) => typeof t.breakpoints[I].slidesPerView < "u").length > 0; + for (let I = 0; I < d; I += 1) { + S = 0; + const C = c[I]; + if (!(C && (M && n.grid.updateSlide(I, C, c), un(C, "display") === "none"))) { if (o && t.slidesPerView === "auto") - t.virtual.slidesPerViewAutoSlideSize && (T = t.virtual.slidesPerViewAutoSlideSize), T && x && (t.roundLengths && (T = Math.floor(T)), x.style[n.getDirectionLabel("width")] = `${T}px`); + t.virtual.slidesPerViewAutoSlideSize && (S = t.virtual.slidesPerViewAutoSlideSize), S && C && (t.roundLengths && (S = Math.floor(S)), C.style[n.getDirectionLabel("width")] = `${S}px`); else if (t.slidesPerView === "auto") { - y && (x.style[n.getDirectionLabel("width")] = ""); - const D = getComputedStyle(x), F = x.style.transform, Q = x.style.webkitTransform; - if (F && (x.style.transform = "none"), Q && (x.style.webkitTransform = "none"), t.roundLengths) - T = n.isHorizontal() ? Wa(x, "width") : Wa(x, "height"); + U && (C.style[n.getDirectionLabel("width")] = ""); + const B = getComputedStyle(C), F = C.style.transform, T = C.style.webkitTransform; + if (F && (C.style.transform = "none"), T && (C.style.webkitTransform = "none"), t.roundLengths) + S = n.isHorizontal() ? ro(C, "width") : ro(C, "height"); else { - const V = e(D, "width"), O = e(D, "padding-left"), B = e(D, "padding-right"), R = e(D, "margin-left"), Z = e(D, "margin-right"), K = D.getPropertyValue("box-sizing"); - if (K && K === "border-box") - T = V + R + Z; + const N = e(B, "width"), O = e(B, "padding-left"), R = e(B, "padding-right"), L = e(B, "margin-left"), k = e(B, "margin-right"), G = B.getPropertyValue("box-sizing"); + if (G && G === "border-box") + S = N + L + k; else { const { - clientWidth: se, - offsetWidth: Ue - } = x; - T = V + O + B + R + Z + (Ue - se); + clientWidth: $, + offsetWidth: xe + } = C; + S = N + O + R + L + k + (xe - $); } } - F && (x.style.transform = F), Q && (x.style.webkitTransform = Q), t.roundLengths && (T = Math.floor(T)); + F && (C.style.transform = F), T && (C.style.webkitTransform = T), t.roundLengths && (S = Math.floor(S)); } else - T = (A - (t.slidesPerView - 1) * _) / t.slidesPerView, t.roundLengths && (T = Math.floor(T)), x && (x.style[n.getDirectionLabel("width")] = `${T}px`); - x && (x.swiperSlideSize = T), u.push(T), t.centeredSlides ? (S = S + T / 2 + M / 2 + _, M === 0 && b !== 0 && (S = S - A / 2 - _), b === 0 && (S = S - A / 2 - _), Math.abs(S) < 1 / 1e3 && (S = 0), t.roundLengths && (S = Math.floor(S)), C % t.slidesPerGroup === 0 && h.push(S), f.push(S)) : (t.roundLengths && (S = Math.floor(S)), (C - Math.min(n.params.slidesPerGroupSkip, C)) % n.params.slidesPerGroup === 0 && h.push(S), f.push(S), S = S + T + _), n.virtualSize += T + _, M = T, C += 1; + S = (A - (t.slidesPerView - 1) * b) / t.slidesPerView, t.roundLengths && (S = Math.floor(S)), C && (C.style[n.getDirectionLabel("width")] = `${S}px`); + C && (C.swiperSlideSize = S), f.push(S), t.centeredSlides ? (x = x + S / 2 + E / 2 + b, E === 0 && I !== 0 && (x = x - A / 2 - b), I === 0 && (x = x - A / 2 - b), Math.abs(x) < 1 / 1e3 && (x = 0), t.roundLengths && (x = Math.floor(x)), y % t.slidesPerGroup === 0 && u.push(x), h.push(x)) : (t.roundLengths && (x = Math.floor(x)), (y - Math.min(n.params.slidesPerGroupSkip, y)) % n.params.slidesPerGroup === 0 && u.push(x), h.push(x), x = x + S + b), n.virtualSize += S + b, E = S, y += 1; } } - if (n.virtualSize = Math.max(n.virtualSize, A) + v, s && a && (t.effect === "slide" || t.effect === "coverflow") && (i.style.width = `${n.virtualSize + _}px`), t.setWrapperSize && (i.style[n.getDirectionLabel("width")] = `${n.virtualSize + _}px`), U && n.grid.updateWrapperSize(T, h), !t.centeredSlides) { - const b = t.slidesPerView !== "auto" && t.slidesPerView % 1 !== 0, x = t.snapToSlideEdge && !t.loop && (t.slidesPerView === "auto" || b); - let D = h.length; - if (x) { - let Q; + if (n.virtualSize = Math.max(n.virtualSize, A) + v, s && a && (t.effect === "slide" || t.effect === "coverflow") && (i.style.width = `${n.virtualSize + b}px`), t.setWrapperSize && (i.style[n.getDirectionLabel("width")] = `${n.virtualSize + b}px`), M && n.grid.updateWrapperSize(S, u), !t.centeredSlides) { + const I = t.slidesPerView !== "auto" && t.slidesPerView % 1 !== 0, C = t.snapToSlideEdge && !t.loop && (t.slidesPerView === "auto" || I); + let B = u.length; + if (C) { + let T; if (t.slidesPerView === "auto") { - Q = 1; - let V = 0; - for (let O = u.length - 1; O >= 0 && (V += u[O] + (O < u.length - 1 ? _ : 0), V <= A); O -= 1) - Q = u.length - O; + T = 1; + let N = 0; + for (let O = f.length - 1; O >= 0 && (N += f[O] + (O < f.length - 1 ? b : 0), N <= A); O -= 1) + T = f.length - O; } else - Q = Math.floor(t.slidesPerView); - D = Math.max(d - Q, 0); + T = Math.floor(t.slidesPerView); + B = Math.max(d - T, 0); } const F = []; - for (let Q = 0; Q < h.length; Q += 1) { - let V = h[Q]; - t.roundLengths && (V = Math.floor(V)), x ? Q <= D && F.push(V) : h[Q] <= n.virtualSize - A && F.push(V); + for (let T = 0; T < u.length; T += 1) { + let N = u[T]; + t.roundLengths && (N = Math.floor(N)), C ? T <= B && F.push(N) : u[T] <= n.virtualSize - A && F.push(N); } - h = F, Math.floor(n.virtualSize - A) - Math.floor(h[h.length - 1]) > 1 && (x || h.push(n.virtualSize - A)); + u = F, Math.floor(n.virtualSize - A) - Math.floor(u[u.length - 1]) > 1 && (C || u.push(n.virtualSize - A)); } if (o && t.loop) { - const b = u[0] + _; + const I = f[0] + b; if (t.slidesPerGroup > 1) { - const x = Math.ceil((n.virtual.slidesBefore + n.virtual.slidesAfter) / t.slidesPerGroup), D = b * t.slidesPerGroup; - for (let F = 0; F < x; F += 1) - h.push(h[h.length - 1] + D); + const C = Math.ceil((n.virtual.slidesBefore + n.virtual.slidesAfter) / t.slidesPerGroup), B = I * t.slidesPerGroup; + for (let F = 0; F < C; F += 1) + u.push(u[u.length - 1] + B); } - for (let x = 0; x < n.virtual.slidesBefore + n.virtual.slidesAfter; x += 1) - t.slidesPerGroup === 1 && h.push(h[h.length - 1] + b), f.push(f[f.length - 1] + b), n.virtualSize += b; + for (let C = 0; C < n.virtual.slidesBefore + n.virtual.slidesAfter; C += 1) + t.slidesPerGroup === 1 && u.push(u[u.length - 1] + I), h.push(h[h.length - 1] + I), n.virtualSize += I; } - if (h.length === 0 && (h = [0]), _ !== 0) { - const b = n.isHorizontal() && s ? "marginLeft" : n.getDirectionLabel("marginRight"); - c.filter((x, D) => !t.cssMode || t.loop ? !0 : D !== c.length - 1).forEach((x) => { - x.style[b] = `${_}px`; + if (u.length === 0 && (u = [0]), b !== 0) { + const I = n.isHorizontal() && s ? "marginLeft" : n.getDirectionLabel("marginRight"); + c.filter((C, B) => !t.cssMode || t.loop ? !0 : B !== c.length - 1).forEach((C) => { + C.style[I] = `${b}px`; }); } if (t.centeredSlides && t.centeredSlidesBounds) { - let b = 0; - u.forEach((D) => { - b += D + (_ || 0); - }), b -= _; - const x = b > A ? b - A : 0; - h = h.map((D) => D <= 0 ? -g : D > x ? x + v : D); + let I = 0; + f.forEach((B) => { + I += B + (b || 0); + }), I -= b; + const C = I > A ? I - A : 0; + u = u.map((B) => B <= 0 ? -g : B > C ? C + v : B); } if (t.centerInsufficientSlides) { - let b = 0; - if (u.forEach((x) => { - b += x + (_ || 0); - }), b -= _, b < A) { - const x = (A - b) / 2; - h.forEach((D, F) => { - h[F] = D - x; - }), f.forEach((D, F) => { - f[F] = D + x; + let I = 0; + if (f.forEach((C) => { + I += C + (b || 0); + }), I -= b, I < A) { + const C = (A - I) / 2; + u.forEach((B, F) => { + u[F] = B - C; + }), h.forEach((B, F) => { + h[F] = B + C; }); } } if (Object.assign(n, { slides: c, - snapGrid: h, - slidesGrid: f, - slidesSizesGrid: u + snapGrid: u, + slidesGrid: h, + slidesSizesGrid: f }), t.centeredSlides && t.cssMode && !t.centeredSlidesBounds) { - wn(i, "--swiper-centered-offset-before", `${-h[0]}px`), wn(i, "--swiper-centered-offset-after", `${n.size / 2 - u[u.length - 1] / 2}px`); - const b = -n.snapGrid[0], x = -n.slidesGrid[0]; - n.snapGrid = n.snapGrid.map((D) => D + b), n.slidesGrid = n.slidesGrid.map((D) => D + x); + Bn(i, "--swiper-centered-offset-before", `${-u[0]}px`), Bn(i, "--swiper-centered-offset-after", `${n.size / 2 - f[f.length - 1] / 2}px`); + const I = -n.snapGrid[0], C = -n.slidesGrid[0]; + n.snapGrid = n.snapGrid.map((B) => B + I), n.slidesGrid = n.slidesGrid.map((B) => B + C); } - if (d !== l && n.emit("slidesLengthChange"), h.length !== m && (n.params.watchOverflow && n.checkOverflow(), n.emit("snapGridLengthChange")), f.length !== p && n.emit("slidesGridLengthChange"), t.watchSlidesProgress && n.updateSlidesOffset(), n.emit("slidesUpdated"), !o && !t.cssMode && (t.effect === "slide" || t.effect === "fade")) { - const b = `${t.containerModifierClass}backface-hidden`, x = n.el.classList.contains(b); - d <= t.maxBackfaceHiddenSlides ? x || n.el.classList.add(b) : x && n.el.classList.remove(b); + if (d !== l && n.emit("slidesLengthChange"), u.length !== m && (n.params.watchOverflow && n.checkOverflow(), n.emit("snapGridLengthChange")), h.length !== p && n.emit("slidesGridLengthChange"), t.watchSlidesProgress && n.updateSlidesOffset(), n.emit("slidesUpdated"), !o && !t.cssMode && (t.effect === "slide" || t.effect === "fade")) { + const I = `${t.containerModifierClass}backface-hidden`, C = n.el.classList.contains(I); + d <= t.maxBackfaceHiddenSlides ? C || n.el.classList.add(I) : C && n.el.classList.remove(I); } } -function Nh(n) { +function gu(n) { const e = this, t = [], i = e.virtual && e.params.virtual.enabled; let r = 0, s; typeof n == "number" ? e.setTransition(n) : n === !0 && e.setTransition(e.params.speed); @@ -696,15 +696,15 @@ function Nh(n) { } (r || r === 0) && (e.wrapperEl.style.height = `${r}px`); } -function Lh() { +function vu() { const n = this, e = n.slides, t = n.isElement ? n.isHorizontal() ? n.wrapperEl.offsetLeft : n.wrapperEl.offsetTop : 0; for (let i = 0; i < e.length; i += 1) e[i].swiperSlideOffset = (n.isHorizontal() ? e[i].offsetLeft : e[i].offsetTop) - t - n.cssOverflowAdjustment(); } -const ml = (n, e, t) => { +const Wl = (n, e, t) => { e && !n.classList.contains(t) ? n.classList.add(t) : !e && n.classList.contains(t) && n.classList.remove(t); }; -function Ph(n = this && this.translate || 0) { +function Au(n = this && this.translate || 0) { const e = this, t = e.params, { slides: i, rtlTranslate: r, @@ -720,11 +720,11 @@ function Ph(n = this && this.translate || 0) { const c = i[l]; let d = c.swiperSlideOffset; t.cssMode && t.centeredSlides && (d -= i[0].swiperSlideOffset); - const h = (a + (t.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + o), f = (a - s[0] + (t.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + o), u = -(a - d), g = u + e.slidesSizesGrid[l], v = u >= 0 && u <= e.size - e.slidesSizesGrid[l], m = u >= 0 && u < e.size - 1 || g > 1 && g <= e.size || u <= 0 && g >= e.size; - m && (e.visibleSlides.push(c), e.visibleSlidesIndexes.push(l)), ml(c, m, t.slideVisibleClass), ml(c, v, t.slideFullyVisibleClass), c.progress = r ? -h : h, c.originalProgress = r ? -f : f; + const u = (a + (t.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + o), h = (a - s[0] + (t.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + o), f = -(a - d), g = f + e.slidesSizesGrid[l], v = f >= 0 && f <= e.size - e.slidesSizesGrid[l], m = f >= 0 && f < e.size - 1 || g > 1 && g <= e.size || f <= 0 && g >= e.size; + m && (e.visibleSlides.push(c), e.visibleSlidesIndexes.push(l)), Wl(c, m, t.slideVisibleClass), Wl(c, v, t.slideFullyVisibleClass), c.progress = r ? -u : u, c.originalProgress = r ? -h : h; } } -function Vh(n) { +function Su(n) { const e = this; if (typeof n > "u") { const d = e.rtlTranslate ? -1 : 1; @@ -742,12 +742,12 @@ function Vh(n) { r = 0, s = !0, a = !0; else { r = (n - e.minTranslate()) / i; - const d = Math.abs(n - e.minTranslate()) < 1, h = Math.abs(n - e.maxTranslate()) < 1; - s = d || r <= 0, a = h || r >= 1, d && (r = 0), h && (r = 1); + const d = Math.abs(n - e.minTranslate()) < 1, u = Math.abs(n - e.maxTranslate()) < 1; + s = d || r <= 0, a = u || r >= 1, d && (r = 0), u && (r = 1); } if (t.loop) { - const d = e.getSlideIndexByData(0), h = e.getSlideIndexByData(e.slides.length - 1), f = e.slidesGrid[d], u = e.slidesGrid[h], g = e.slidesGrid[e.slidesGrid.length - 1], v = Math.abs(n); - v >= f ? o = (v - f) / g : o = (v + g - u) / g, o > 1 && (o -= 1); + const d = e.getSlideIndexByData(0), u = e.getSlideIndexByData(e.slides.length - 1), h = e.slidesGrid[d], f = e.slidesGrid[u], g = e.slidesGrid[e.slidesGrid.length - 1], v = Math.abs(n); + v >= h ? o = (v - h) / g : o = (v + g - f) / g, o > 1 && (o -= 1); } Object.assign(e, { progress: r, @@ -756,30 +756,30 @@ function Vh(n) { isEnd: a }), (t.watchSlidesProgress || t.centeredSlides && t.autoHeight) && e.updateSlidesProgress(n), s && !l && e.emit("reachBeginning toEdge"), a && !c && e.emit("reachEnd toEdge"), (l && !s || c && !a) && e.emit("fromEdge"), e.emit("progress", r); } -const na = (n, e, t) => { +const ga = (n, e, t) => { e && !n.classList.contains(t) ? n.classList.add(t) : !e && n.classList.contains(t) && n.classList.remove(t); }; -function kh() { +function _u() { const n = this, { slides: e, params: t, slidesEl: i, activeIndex: r - } = n, s = n.virtual && t.virtual.enabled, a = n.grid && t.grid && t.grid.rows > 1, o = (h) => gi(i, `.${t.slideClass}${h}, swiper-slide${h}`)[0]; + } = n, s = n.virtual && t.virtual.enabled, a = n.grid && t.grid && t.grid.rows > 1, o = (u) => Ei(i, `.${t.slideClass}${u}, swiper-slide${u}`)[0]; let l, c, d; if (s) if (t.loop) { - let h = r - n.virtual.slidesBefore; - h < 0 && (h = n.virtual.slides.length + h), h >= n.virtual.slides.length && (h -= n.virtual.slides.length), l = o(`[data-swiper-slide-index="${h}"]`); + let u = r - n.virtual.slidesBefore; + u < 0 && (u = n.virtual.slides.length + u), u >= n.virtual.slides.length && (u -= n.virtual.slides.length), l = o(`[data-swiper-slide-index="${u}"]`); } else l = o(`[data-swiper-slide-index="${r}"]`); else - a ? (l = e.find((h) => h.column === r), d = e.find((h) => h.column === r + 1), c = e.find((h) => h.column === r - 1)) : l = e[r]; - l && (a || (d = Uh(l, `.${t.slideClass}, swiper-slide`)[0], t.loop && !d && (d = e[0]), c = Ch(l, `.${t.slideClass}, swiper-slide`)[0], t.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((h) => { - na(h, h === l, t.slideActiveClass), na(h, h === d, t.slideNextClass), na(h, h === c, t.slidePrevClass); + a ? (l = e.find((u) => u.column === r), d = e.find((u) => u.column === r + 1), c = e.find((u) => u.column === r - 1)) : l = e[r]; + l && (a || (d = ou(l, `.${t.slideClass}, swiper-slide`)[0], t.loop && !d && (d = e[0]), c = au(l, `.${t.slideClass}, swiper-slide`)[0], t.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((u) => { + ga(u, u === l, t.slideActiveClass), ga(u, u === d, t.slideNextClass), ga(u, u === c, t.slidePrevClass); }), n.emitSlidesClasses(); } -const vs = (n, e) => { +const Us = (n, e) => { if (!n || n.destroyed || !n.params) return; const t = () => n.isElement ? "swiper-slide" : `.${n.params.slideClass}`, i = e.closest(t()); if (i) { @@ -788,11 +788,11 @@ const vs = (n, e) => { i.shadowRoot && (r = i.shadowRoot.querySelector(`.${n.params.lazyPreloaderClass}`), r && !r.lazyPreloaderManaged && r.remove()); })), r && !r.lazyPreloaderManaged && r.remove(); } -}, ra = (n, e) => { +}, va = (n, e) => { if (!n.slides[e]) return; const t = n.slides[e].querySelector('[loading="lazy"]'); t && t.removeAttribute("loading"); -}, Ha = (n) => { +}, ao = (n) => { if (!n || n.destroyed || !n.params) return; let e = n.params.lazyPreloadPrevNext; const t = n.slides.length; @@ -804,7 +804,7 @@ const vs = (n, e) => { o.push(...Array.from({ length: e }).map((l, c) => a + i + c)), n.slides.forEach((l, c) => { - o.includes(l.column) && ra(n, c); + o.includes(l.column) && va(n, c); }); return; } @@ -812,13 +812,13 @@ const vs = (n, e) => { if (n.params.rewind || n.params.loop) for (let a = r - e; a <= s + e; a += 1) { const o = (a % t + t) % t; - (o < r || o > s) && ra(n, o); + (o < r || o > s) && va(n, o); } else for (let a = Math.max(r - e, 0); a <= Math.min(s + e, t - 1); a += 1) - a !== r && (a > s || a < r) && ra(n, a); + a !== r && (a > s || a < r) && va(n, a); }; -function Oh(n) { +function xu(n) { const { slidesGrid: e, params: t @@ -828,7 +828,7 @@ function Oh(n) { typeof e[s + 1] < "u" ? i >= e[s] && i < e[s + 1] - (e[s + 1] - e[s]) / 2 ? r = s : i >= e[s] && i < e[s + 1] && (r = s + 1) : i >= e[s] && (r = s); return t.normalizeSlideIndex && (r < 0 || typeof r > "u") && (r = 0), r; } -function zh(n) { +function bu(n) { const e = this, t = e.rtlTranslate ? e.translate : -e.translate, { snapGrid: i, params: r, @@ -837,15 +837,15 @@ function zh(n) { snapIndex: o } = e; let l = n, c; - const d = (u) => { - let g = u - e.virtual.slidesBefore; + const d = (f) => { + let g = f - e.virtual.slidesBefore; return g < 0 && (g = e.virtual.slides.length + g), g >= e.virtual.slides.length && (g -= e.virtual.slides.length), g; }; - if (typeof l > "u" && (l = Oh(e)), i.indexOf(t) >= 0) + if (typeof l > "u" && (l = xu(e)), i.indexOf(t) >= 0) c = i.indexOf(t); else { - const u = Math.min(r.slidesPerGroupSkip, l); - c = u + Math.floor((l - u) / r.slidesPerGroup); + const f = Math.min(r.slidesPerGroupSkip, l); + c = f + Math.floor((l - f) / r.slidesPerGroup); } if (c >= i.length && (c = i.length - 1), l === s && !e.params.loop) { c !== o && (e.snapIndex = c, e.emit("snapIndexChange")); @@ -855,29 +855,29 @@ function zh(n) { e.realIndex = d(l); return; } - const h = e.grid && r.grid && r.grid.rows > 1; - let f; + const u = e.grid && r.grid && r.grid.rows > 1; + let h; if (e.virtual && r.virtual.enabled) - r.loop ? f = d(l) : f = l; - else if (h) { - const u = e.slides.find((v) => v.column === l); - let g = parseInt(u.getAttribute("data-swiper-slide-index"), 10); - Number.isNaN(g) && (g = Math.max(e.slides.indexOf(u), 0)), f = Math.floor(g / r.grid.rows); + r.loop ? h = d(l) : h = l; + else if (u) { + const f = e.slides.find((v) => v.column === l); + let g = parseInt(f.getAttribute("data-swiper-slide-index"), 10); + Number.isNaN(g) && (g = Math.max(e.slides.indexOf(f), 0)), h = Math.floor(g / r.grid.rows); } else if (e.slides[l]) { - const u = e.slides[l].getAttribute("data-swiper-slide-index"); - u ? f = parseInt(u, 10) : f = l; + const f = e.slides[l].getAttribute("data-swiper-slide-index"); + f ? h = parseInt(f, 10) : h = l; } else - f = l; + h = l; Object.assign(e, { previousSnapIndex: o, snapIndex: c, previousRealIndex: a, - realIndex: f, + realIndex: h, previousIndex: s, activeIndex: l - }), e.initialized && Ha(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (a !== f && e.emit("realIndexChange"), e.emit("slideChange")); + }), e.initialized && ao(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (a !== h && e.emit("realIndexChange"), e.emit("slideChange")); } -function Wh(n, e) { +function Eu(n, e) { const t = this, i = t.params; let r = n.closest(`.${i.slideClass}, swiper-slide`); !r && t.isElement && e && e.length > 1 && e.includes(n) && [...e.slice(e.indexOf(n) + 1, e.length)].forEach((o) => { @@ -899,18 +899,18 @@ function Wh(n, e) { } i.slideToClickedSlide && t.clickedIndex !== void 0 && t.clickedIndex !== t.activeIndex && t.slideToClickedSlide(); } -var Gh = { - updateSize: Dh, - updateSlides: Qh, - updateAutoHeight: Nh, - updateSlidesOffset: Lh, - updateSlidesProgress: Ph, - updateProgress: Vh, - updateSlidesClasses: kh, - updateActiveIndex: zh, - updateClickedSlide: Wh +var yu = { + updateSize: pu, + updateSlides: mu, + updateAutoHeight: gu, + updateSlidesOffset: vu, + updateSlidesProgress: Au, + updateProgress: Su, + updateSlidesClasses: _u, + updateActiveIndex: bu, + updateClickedSlide: Eu }; -function Hh(n = this.isHorizontal() ? "x" : "y") { +function wu(n = this.isHorizontal() ? "x" : "y") { const e = this, { params: t, rtlTranslate: i, @@ -921,10 +921,10 @@ function Hh(n = this.isHorizontal() ? "x" : "y") { return i ? -r : r; if (t.cssMode) return r; - let a = Eh(s, n); + let a = iu(s, n); return a += e.cssOverflowAdjustment(), i && (a = -a), a || 0; } -function Jh(n, e) { +function Cu(n, e) { const t = this, { rtlTranslate: i, params: r, @@ -935,16 +935,16 @@ function Jh(n, e) { const c = 0; t.isHorizontal() ? o = i ? -n : n : l = n, r.roundLengths && (o = Math.floor(o), l = Math.floor(l)), t.previousTranslate = t.translate, t.translate = t.isHorizontal() ? o : l, r.cssMode ? s[t.isHorizontal() ? "scrollLeft" : "scrollTop"] = t.isHorizontal() ? -o : -l : r.virtualTranslate || (t.isHorizontal() ? o -= t.cssOverflowAdjustment() : l -= t.cssOverflowAdjustment(), s.style.transform = `translate3d(${o}px, ${l}px, ${c}px)`); let d; - const h = t.maxTranslate() - t.minTranslate(); - h === 0 ? d = 0 : d = (n - t.minTranslate()) / h, d !== a && t.updateProgress(n), t.emit("setTranslate", t.translate, e); + const u = t.maxTranslate() - t.minTranslate(); + u === 0 ? d = 0 : d = (n - t.minTranslate()) / u, d !== a && t.updateProgress(n), t.emit("setTranslate", t.translate, e); } -function Zh() { +function Uu() { return -this.snapGrid[0]; } -function Xh() { +function Mu() { return -this.snapGrid[this.snapGrid.length - 1]; } -function Yh(n = 0, e = this.params.speed, t = !0, i = !0, r) { +function Tu(n = 0, e = this.params.speed, t = !0, i = !0, r) { const s = this, { params: a, wrapperEl: o @@ -954,39 +954,39 @@ function Yh(n = 0, e = this.params.speed, t = !0, i = !0, r) { const l = s.minTranslate(), c = s.maxTranslate(); let d; if (i && n > l ? d = l : i && n < c ? d = c : d = n, s.updateProgress(d), a.cssMode) { - const h = s.isHorizontal(); + const u = s.isHorizontal(); if (e === 0) - o[h ? "scrollLeft" : "scrollTop"] = -d; + o[u ? "scrollLeft" : "scrollTop"] = -d; else { if (!s.support.smoothScroll) - return pd({ + return zd({ swiper: s, targetPosition: -d, - side: h ? "left" : "top" + side: u ? "left" : "top" }), !0; o.scrollTo({ - [h ? "left" : "top"]: -d, + [u ? "left" : "top"]: -d, behavior: "smooth" }); } return !0; } - return e === 0 ? (s.setTransition(0), s.setTranslate(d), t && (s.emit("beforeTransitionStart", e, r), s.emit("transitionEnd"))) : (s.setTransition(e), s.setTranslate(d), t && (s.emit("beforeTransitionStart", e, r), s.emit("transitionStart")), s.animating || (s.animating = !0, s.onTranslateToWrapperTransitionEnd || (s.onTranslateToWrapperTransitionEnd = function(f) { - !s || s.destroyed || f.target === this && (s.wrapperEl.removeEventListener("transitionend", s.onTranslateToWrapperTransitionEnd), s.onTranslateToWrapperTransitionEnd = null, delete s.onTranslateToWrapperTransitionEnd, s.animating = !1, t && s.emit("transitionEnd")); + return e === 0 ? (s.setTransition(0), s.setTranslate(d), t && (s.emit("beforeTransitionStart", e, r), s.emit("transitionEnd"))) : (s.setTransition(e), s.setTranslate(d), t && (s.emit("beforeTransitionStart", e, r), s.emit("transitionStart")), s.animating || (s.animating = !0, s.onTranslateToWrapperTransitionEnd || (s.onTranslateToWrapperTransitionEnd = function(h) { + !s || s.destroyed || h.target === this && (s.wrapperEl.removeEventListener("transitionend", s.onTranslateToWrapperTransitionEnd), s.onTranslateToWrapperTransitionEnd = null, delete s.onTranslateToWrapperTransitionEnd, s.animating = !1, t && s.emit("transitionEnd")); }), s.wrapperEl.addEventListener("transitionend", s.onTranslateToWrapperTransitionEnd))), !0; } -var Kh = { - getTranslate: Hh, - setTranslate: Jh, - minTranslate: Zh, - maxTranslate: Xh, - translateTo: Yh +var Fu = { + getTranslate: wu, + setTranslate: Cu, + minTranslate: Uu, + maxTranslate: Mu, + translateTo: Tu }; -function jh(n, e) { +function Iu(n, e) { const t = this; t.params.cssMode || (t.wrapperEl.style.transitionDuration = `${n}ms`, t.wrapperEl.style.transitionDelay = n === 0 ? "0ms" : ""), t.emit("setTransition", n, e); } -function _d({ +function Zd({ swiper: n, runCallbacks: e, direction: t, @@ -999,34 +999,34 @@ function _d({ let a = t; a || (r > s ? a = "next" : r < s ? a = "prev" : a = "reset"), n.emit(`transition${i}`), e && a === "reset" ? n.emit(`slideResetTransition${i}`) : e && r !== s && (n.emit(`slideChangeTransition${i}`), a === "next" ? n.emit(`slideNextTransition${i}`) : n.emit(`slidePrevTransition${i}`)); } -function qh(n = !0, e) { +function Ru(n = !0, e) { const t = this, { params: i } = t; - i.cssMode || (i.autoHeight && t.updateAutoHeight(), _d({ + i.cssMode || (i.autoHeight && t.updateAutoHeight(), Zd({ swiper: t, runCallbacks: n, direction: e, step: "Start" })); } -function $h(n = !0, e) { +function Bu(n = !0, e) { const t = this, { params: i } = t; - t.animating = !1, !i.cssMode && (t.setTransition(0), _d({ + t.animating = !1, !i.cssMode && (t.setTransition(0), Zd({ swiper: t, runCallbacks: n, direction: e, step: "End" })); } -var eu = { - setTransition: jh, - transitionStart: qh, - transitionEnd: $h +var Du = { + setTransition: Iu, + transitionStart: Ru, + transitionEnd: Bu }; -function tu(n = 0, e, t = !0, i, r) { +function Nu(n = 0, e, t = !0, i, r) { typeof n == "string" && (n = parseInt(n, 10)); const s = this; let a = n; @@ -1036,9 +1036,9 @@ function tu(n = 0, e, t = !0, i, r) { snapGrid: l, slidesGrid: c, previousIndex: d, - activeIndex: h, - rtlTranslate: f, - wrapperEl: u, + activeIndex: u, + rtlTranslate: h, + wrapperEl: f, enabled: g } = s; if (!g && !i && !r || s.destroyed || s.animating && o.preventInteractionOnTransition) @@ -1049,46 +1049,46 @@ function tu(n = 0, e, t = !0, i, r) { m >= l.length && (m = l.length - 1); const p = -l[m]; if (o.normalizeSlideIndex) - for (let U = 0; U < c.length; U += 1) { - const T = -Math.floor(p * 100), y = Math.floor(c[U] * 100), b = Math.floor(c[U + 1] * 100); - typeof c[U + 1] < "u" ? T >= y && T < b - (b - y) / 2 ? a = U : T >= y && T < b && (a = U + 1) : T >= y && (a = U); + for (let M = 0; M < c.length; M += 1) { + const S = -Math.floor(p * 100), U = Math.floor(c[M] * 100), I = Math.floor(c[M + 1] * 100); + typeof c[M + 1] < "u" ? S >= U && S < I - (I - U) / 2 ? a = M : S >= U && S < I && (a = M + 1) : S >= U && (a = M); } - if (s.initialized && a !== h && (!s.allowSlideNext && (f ? p > s.translate && p > s.minTranslate() : p < s.translate && p < s.minTranslate()) || !s.allowSlidePrev && p > s.translate && p > s.maxTranslate() && (h || 0) !== a)) + if (s.initialized && a !== u && (!s.allowSlideNext && (h ? p > s.translate && p > s.minTranslate() : p < s.translate && p < s.minTranslate()) || !s.allowSlidePrev && p > s.translate && p > s.maxTranslate() && (u || 0) !== a)) return !1; a !== (d || 0) && t && s.emit("beforeSlideChangeStart"), s.updateProgress(p); let A; - a > h ? A = "next" : a < h ? A = "prev" : A = "reset"; - const _ = s.virtual && s.params.virtual.enabled; - if (!(_ && r) && (f && -p === s.translate || !f && p === s.translate)) + a > u ? A = "next" : a < u ? A = "prev" : A = "reset"; + const b = s.virtual && s.params.virtual.enabled; + if (!(b && r) && (h && -p === s.translate || !h && p === s.translate)) return s.updateActiveIndex(a), o.autoHeight && s.updateAutoHeight(), s.updateSlidesClasses(), o.effect !== "slide" && s.setTranslate(p), A !== "reset" && (s.transitionStart(t, A), s.transitionEnd(t, A)), !1; if (o.cssMode) { - const U = s.isHorizontal(), T = f ? p : -p; + const M = s.isHorizontal(), S = h ? p : -p; if (e === 0) - _ && (s.wrapperEl.style.scrollSnapType = "none", s._immediateVirtual = !0), _ && !s._cssModeVirtualInitialSet && s.params.initialSlide > 0 ? (s._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => { - u[U ? "scrollLeft" : "scrollTop"] = T; - })) : u[U ? "scrollLeft" : "scrollTop"] = T, _ && requestAnimationFrame(() => { + b && (s.wrapperEl.style.scrollSnapType = "none", s._immediateVirtual = !0), b && !s._cssModeVirtualInitialSet && s.params.initialSlide > 0 ? (s._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => { + f[M ? "scrollLeft" : "scrollTop"] = S; + })) : f[M ? "scrollLeft" : "scrollTop"] = S, b && requestAnimationFrame(() => { s.wrapperEl.style.scrollSnapType = "", s._immediateVirtual = !1; }); else { if (!s.support.smoothScroll) - return pd({ + return zd({ swiper: s, - targetPosition: T, - side: U ? "left" : "top" + targetPosition: S, + side: M ? "left" : "top" }), !0; - u.scrollTo({ - [U ? "left" : "top"]: T, + f.scrollTo({ + [M ? "left" : "top"]: S, behavior: "smooth" }); } return !0; } - const C = Ad().isSafari; - return _ && !r && C && s.isElement && s.virtual.update(!1, !1, a), s.setTransition(e), s.setTranslate(p), s.updateActiveIndex(a), s.updateSlidesClasses(), s.emit("beforeTransitionStart", e, i), s.transitionStart(t, A), e === 0 ? s.transitionEnd(t, A) : s.animating || (s.animating = !0, s.onSlideToWrapperTransitionEnd || (s.onSlideToWrapperTransitionEnd = function(T) { - !s || s.destroyed || T.target === this && (s.wrapperEl.removeEventListener("transitionend", s.onSlideToWrapperTransitionEnd), s.onSlideToWrapperTransitionEnd = null, delete s.onSlideToWrapperTransitionEnd, s.transitionEnd(t, A)); + const y = Jd().isSafari; + return b && !r && y && s.isElement && s.virtual.update(!1, !1, a), s.setTransition(e), s.setTranslate(p), s.updateActiveIndex(a), s.updateSlidesClasses(), s.emit("beforeTransitionStart", e, i), s.transitionStart(t, A), e === 0 ? s.transitionEnd(t, A) : s.animating || (s.animating = !0, s.onSlideToWrapperTransitionEnd || (s.onSlideToWrapperTransitionEnd = function(S) { + !s || s.destroyed || S.target === this && (s.wrapperEl.removeEventListener("transitionend", s.onSlideToWrapperTransitionEnd), s.onSlideToWrapperTransitionEnd = null, delete s.onSlideToWrapperTransitionEnd, s.transitionEnd(t, A)); }), s.wrapperEl.addEventListener("transitionend", s.onSlideToWrapperTransitionEnd)), !0; } -function iu(n = 0, e, t = !0, i) { +function Lu(n = 0, e, t = !0, i) { typeof n == "string" && (n = parseInt(n, 10)); const r = this; if (r.destroyed) return; @@ -1108,13 +1108,13 @@ function iu(n = 0, e, t = !0, i) { const l = s ? Math.ceil(r.slides.length / r.params.grid.rows) : r.slides.length, { centeredSlides: c, slidesOffsetBefore: d, - slidesOffsetAfter: h - } = r.params, f = c || !!d || !!h; - let u = r.params.slidesPerView; - u === "auto" ? u = r.slidesPerViewDynamic() : (u = Math.ceil(parseFloat(r.params.slidesPerView, 10)), f && u % 2 === 0 && (u = u + 1)); - let g = l - o < u; - if (f && (g = g || o < Math.ceil(u / 2)), i && f && r.params.slidesPerView !== "auto" && !s && (g = !1), g) { - const v = f ? o < r.activeIndex ? "prev" : "next" : o - r.activeIndex - 1 < r.params.slidesPerView ? "next" : "prev"; + slidesOffsetAfter: u + } = r.params, h = c || !!d || !!u; + let f = r.params.slidesPerView; + f === "auto" ? f = r.slidesPerViewDynamic() : (f = Math.ceil(parseFloat(r.params.slidesPerView, 10)), h && f % 2 === 0 && (f = f + 1)); + let g = l - o < f; + if (h && (g = g || o < Math.ceil(f / 2)), i && h && r.params.slidesPerView !== "auto" && !s && (g = !1), g) { + const v = h ? o < r.activeIndex ? "prev" : "next" : o - r.activeIndex - 1 < r.params.slidesPerView ? "next" : "prev"; r.loopFix({ direction: v, slideTo: !0, @@ -1132,7 +1132,7 @@ function iu(n = 0, e, t = !0, i) { r.slideTo(a, e, t, i); }), r; } -function nu(n, e = !0, t) { +function Qu(n, e = !0, t) { const i = this, { enabled: r, params: s, @@ -1154,7 +1154,7 @@ function nu(n, e = !0, t) { } return s.rewind && i.isEnd ? i.slideTo(0, n, e, t) : i.slideTo(i.activeIndex + l, n, e, t); } -function ru(n, e = !0, t) { +function Pu(n, e = !0, t) { const i = this, { params: r, snapGrid: s, @@ -1172,16 +1172,16 @@ function ru(n, e = !0, t) { direction: "prev" }), i._clientLeft = i.wrapperEl.clientLeft; } - const h = o ? i.translate : -i.translate; - function f(A) { + const u = o ? i.translate : -i.translate; + function h(A) { return A < 0 ? -Math.floor(Math.abs(A)) : Math.floor(A); } - const u = f(h), g = s.map((A) => f(A)), v = r.freeMode && r.freeMode.enabled; - let m = s[g.indexOf(u) - 1]; + const f = h(u), g = s.map((A) => h(A)), v = r.freeMode && r.freeMode.enabled; + let m = s[g.indexOf(f) - 1]; if (typeof m > "u" && (r.cssMode || v)) { let A; - s.forEach((_, S) => { - u >= _ && (A = S); + s.forEach((b, x) => { + f >= b && (A = x); }), typeof A < "u" && (m = v ? s[A] : s[A > 0 ? A - 1 : A]); } let p = 0; @@ -1194,12 +1194,12 @@ function ru(n, e = !0, t) { }), !0; return i.slideTo(p, n, e, t); } -function su(n, e = !0, t) { +function Vu(n, e = !0, t) { const i = this; if (!i.destroyed) return typeof n > "u" && (n = i.params.speed), i.slideTo(i.activeIndex, n, e, t); } -function au(n, e = !0, t, i = 0.5) { +function ku(n, e = !0, t, i = 0.5) { const r = this; if (r.destroyed) return; typeof n > "u" && (n = r.params.speed); @@ -1214,7 +1214,7 @@ function au(n, e = !0, t, i = 0.5) { } return s = Math.max(s, 0), s = Math.min(s, r.slidesGrid.length - 1), r.slideTo(s, n, e, t); } -function ou() { +function Ou() { const n = this; if (n.destroyed) return; const { @@ -1225,68 +1225,68 @@ function ou() { const a = n.isElement ? "swiper-slide" : `.${e.slideClass}`, o = n.grid && n.params.grid && n.params.grid.rows > 1; if (e.loop) { if (n.animating) return; - s = parseInt(n.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? n.slideToLoop(s) : r > (o ? (n.slides.length - i) / 2 - (n.params.grid.rows - 1) : n.slides.length - i) ? (n.loopFix(), r = n.getSlideIndex(gi(t, `${a}[data-swiper-slide-index="${s}"]`)[0]), zo(() => { + s = parseInt(n.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? n.slideToLoop(s) : r > (o ? (n.slides.length - i) / 2 - (n.params.grid.rows - 1) : n.slides.length - i) ? (n.loopFix(), r = n.getSlideIndex(Ei(t, `${a}[data-swiper-slide-index="${s}"]`)[0]), sl(() => { n.slideTo(r); })) : n.slideTo(r); } else n.slideTo(r); } -var lu = { - slideTo: tu, - slideToLoop: iu, - slideNext: nu, - slidePrev: ru, - slideReset: su, - slideToClosest: au, - slideToClickedSlide: ou +var zu = { + slideTo: Nu, + slideToLoop: Lu, + slideNext: Qu, + slidePrev: Pu, + slideReset: Vu, + slideToClosest: ku, + slideToClickedSlide: Ou }; -function cu(n, e) { +function Wu(n, e) { const t = this, { params: i, slidesEl: r } = t; if (!i.loop || t.virtual && t.params.virtual.enabled) return; const s = () => { - gi(r, `.${i.slideClass}, swiper-slide`).forEach((g, v) => { + Ei(r, `.${i.slideClass}, swiper-slide`).forEach((g, v) => { g.setAttribute("data-swiper-slide-index", v); }); }, a = () => { - const u = gi(r, `.${i.slideBlankClass}`); - u.forEach((g) => { + const f = Ei(r, `.${i.slideBlankClass}`); + f.forEach((g) => { g.remove(); - }), u.length > 0 && (t.recalcSlides(), t.updateSlides()); + }), f.length > 0 && (t.recalcSlides(), t.updateSlides()); }, o = t.grid && i.grid && i.grid.rows > 1; i.loopAddBlankSlides && (i.slidesPerGroup > 1 || o) && a(); - const l = i.slidesPerGroup * (o ? i.grid.rows : 1), c = t.slides.length % l !== 0, d = o && t.slides.length % i.grid.rows !== 0, h = (u) => { - for (let g = 0; g < u; g += 1) { - const v = t.isElement ? Ur("swiper-slide", [i.slideBlankClass]) : Ur("div", [i.slideClass, i.slideBlankClass]); + const l = i.slidesPerGroup * (o ? i.grid.rows : 1), c = t.slides.length % l !== 0, d = o && t.slides.length % i.grid.rows !== 0, u = (f) => { + for (let g = 0; g < f; g += 1) { + const v = t.isElement ? Br("swiper-slide", [i.slideBlankClass]) : Br("div", [i.slideClass, i.slideBlankClass]); t.slidesEl.append(v); } }; if (c) { if (i.loopAddBlankSlides) { - const u = l - t.slides.length % l; - h(u), t.recalcSlides(), t.updateSlides(); + const f = l - t.slides.length % l; + u(f), t.recalcSlides(), t.updateSlides(); } else - Rs("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)"); + zs("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)"); s(); } else if (d) { if (i.loopAddBlankSlides) { - const u = i.grid.rows - t.slides.length % i.grid.rows; - h(u), t.recalcSlides(), t.updateSlides(); + const f = i.grid.rows - t.slides.length % i.grid.rows; + u(f), t.recalcSlides(), t.updateSlides(); } else - Rs("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)"); + zs("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)"); s(); } else s(); - const f = i.centeredSlides || !!i.slidesOffsetBefore || !!i.slidesOffsetAfter; + const h = i.centeredSlides || !!i.slidesOffsetBefore || !!i.slidesOffsetAfter; t.loopFix({ slideRealIndex: n, - direction: f ? void 0 : "next", + direction: h ? void 0 : "next", initial: e }); } -function du({ +function Gu({ slideRealIndex: n, slideTo: e = !0, direction: t, @@ -1302,99 +1302,99 @@ function du({ const { slides: c, allowSlidePrev: d, - allowSlideNext: h, - slidesEl: f, - params: u + allowSlideNext: u, + slidesEl: h, + params: f } = l, { centeredSlides: g, slidesOffsetBefore: v, slidesOffsetAfter: m, initialSlide: p - } = u, A = g || !!v || !!m; - if (l.allowSlidePrev = !0, l.allowSlideNext = !0, l.virtual && u.virtual.enabled) { - e && (!A && l.snapIndex === 0 ? l.slideTo(l.virtual.slides.length, 0, !1, !0) : A && l.snapIndex < u.slidesPerView ? l.slideTo(l.virtual.slides.length + l.snapIndex, 0, !1, !0) : l.snapIndex === l.snapGrid.length - 1 && l.slideTo(l.virtual.slidesBefore, 0, !1, !0)), l.allowSlidePrev = d, l.allowSlideNext = h, l.emit("loopFix"); + } = f, A = g || !!v || !!m; + if (l.allowSlidePrev = !0, l.allowSlideNext = !0, l.virtual && f.virtual.enabled) { + e && (!A && l.snapIndex === 0 ? l.slideTo(l.virtual.slides.length, 0, !1, !0) : A && l.snapIndex < f.slidesPerView ? l.slideTo(l.virtual.slides.length + l.snapIndex, 0, !1, !0) : l.snapIndex === l.snapGrid.length - 1 && l.slideTo(l.virtual.slidesBefore, 0, !1, !0)), l.allowSlidePrev = d, l.allowSlideNext = u, l.emit("loopFix"); return; } - let _ = u.slidesPerView; - _ === "auto" ? _ = l.slidesPerViewDynamic() : (_ = Math.ceil(parseFloat(u.slidesPerView, 10)), A && _ % 2 === 0 && (_ = _ + 1)); - const S = u.slidesPerGroupAuto ? _ : u.slidesPerGroup; - let M = A ? Math.max(S, Math.ceil(_ / 2)) : S; - M % S !== 0 && (M += S - M % S), M += u.loopAdditionalSlides, l.loopedSlides = M; - const C = l.grid && u.grid && u.grid.rows > 1; - c.length < _ + M || l.params.effect === "cards" && c.length < _ + M * 2 ? Rs("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : C && u.grid.fill === "row" && Rs("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`"); - const U = [], T = [], y = C ? Math.ceil(c.length / u.grid.rows) : c.length, b = s && y - p < _ && !A; - let x = b ? p : l.activeIndex; - typeof r > "u" ? r = l.getSlideIndex(c.find((R) => R.classList.contains(u.slideActiveClass))) : x = r; - const D = t === "next" || !t, F = t === "prev" || !t; - let Q = 0, V = 0; - const B = (C ? c[r].column : r) + (A && typeof i > "u" ? -_ / 2 + 0.5 : 0); - if (B < M) { - Q = Math.max(M - B, S); - for (let R = 0; R < M - B; R += 1) { - const Z = R - Math.floor(R / y) * y; - if (C) { - const K = y - Z - 1; - for (let se = c.length - 1; se >= 0; se -= 1) - c[se].column === K && U.push(se); + let b = f.slidesPerView; + b === "auto" ? b = l.slidesPerViewDynamic() : (b = Math.ceil(parseFloat(f.slidesPerView, 10)), A && b % 2 === 0 && (b = b + 1)); + const x = f.slidesPerGroupAuto ? b : f.slidesPerGroup; + let E = A ? Math.max(x, Math.ceil(b / 2)) : x; + E % x !== 0 && (E += x - E % x), E += f.loopAdditionalSlides, l.loopedSlides = E; + const y = l.grid && f.grid && f.grid.rows > 1; + c.length < b + E || l.params.effect === "cards" && c.length < b + E * 2 ? zs("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : y && f.grid.fill === "row" && zs("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`"); + const M = [], S = [], U = y ? Math.ceil(c.length / f.grid.rows) : c.length, I = s && U - p < b && !A; + let C = I ? p : l.activeIndex; + typeof r > "u" ? r = l.getSlideIndex(c.find((L) => L.classList.contains(f.slideActiveClass))) : C = r; + const B = t === "next" || !t, F = t === "prev" || !t; + let T = 0, N = 0; + const R = (y ? c[r].column : r) + (A && typeof i > "u" ? -b / 2 + 0.5 : 0); + if (R < E) { + T = Math.max(E - R, x); + for (let L = 0; L < E - R; L += 1) { + const k = L - Math.floor(L / U) * U; + if (y) { + const G = U - k - 1; + for (let $ = c.length - 1; $ >= 0; $ -= 1) + c[$].column === G && M.push($); } else - U.push(y - Z - 1); + M.push(U - k - 1); } - } else if (B + _ > y - M) { - V = Math.max(B - (y - M * 2), S), b && (V = Math.max(V, _ - y + p + 1)); - for (let R = 0; R < V; R += 1) { - const Z = R - Math.floor(R / y) * y; - C ? c.forEach((K, se) => { - K.column === Z && T.push(se); - }) : T.push(Z); + } else if (R + b > U - E) { + N = Math.max(R - (U - E * 2), x), I && (N = Math.max(N, b - U + p + 1)); + for (let L = 0; L < N; L += 1) { + const k = L - Math.floor(L / U) * U; + y ? c.forEach((G, $) => { + G.column === k && S.push($); + }) : S.push(k); } } if (l.__preventObserver__ = !0, requestAnimationFrame(() => { l.__preventObserver__ = !1; - }), l.params.effect === "cards" && c.length < _ + M * 2 && (T.includes(r) && T.splice(T.indexOf(r), 1), U.includes(r) && U.splice(U.indexOf(r), 1)), F && U.forEach((R) => { - c[R].swiperLoopMoveDOM = !0, f.prepend(c[R]), c[R].swiperLoopMoveDOM = !1; - }), D && T.forEach((R) => { - c[R].swiperLoopMoveDOM = !0, f.append(c[R]), c[R].swiperLoopMoveDOM = !1; - }), l.recalcSlides(), u.slidesPerView === "auto" ? l.updateSlides() : C && (U.length > 0 && F || T.length > 0 && D) && l.slides.forEach((R, Z) => { - l.grid.updateSlide(Z, R, l.slides); - }), u.watchSlidesProgress && l.updateSlidesOffset(), e) { - if (U.length > 0 && F) { + }), l.params.effect === "cards" && c.length < b + E * 2 && (S.includes(r) && S.splice(S.indexOf(r), 1), M.includes(r) && M.splice(M.indexOf(r), 1)), F && M.forEach((L) => { + c[L].swiperLoopMoveDOM = !0, h.prepend(c[L]), c[L].swiperLoopMoveDOM = !1; + }), B && S.forEach((L) => { + c[L].swiperLoopMoveDOM = !0, h.append(c[L]), c[L].swiperLoopMoveDOM = !1; + }), l.recalcSlides(), f.slidesPerView === "auto" ? l.updateSlides() : y && (M.length > 0 && F || S.length > 0 && B) && l.slides.forEach((L, k) => { + l.grid.updateSlide(k, L, l.slides); + }), f.watchSlidesProgress && l.updateSlidesOffset(), e) { + if (M.length > 0 && F) { if (typeof n > "u") { - const R = l.slidesGrid[x], K = l.slidesGrid[x + Q] - R; - o ? l.setTranslate(l.translate - K) : (l.slideTo(x + Math.ceil(Q), 0, !1, !0), i && (l.touchEventsData.startTranslate = l.touchEventsData.startTranslate - K, l.touchEventsData.currentTranslate = l.touchEventsData.currentTranslate - K)); + const L = l.slidesGrid[C], G = l.slidesGrid[C + T] - L; + o ? l.setTranslate(l.translate - G) : (l.slideTo(C + Math.ceil(T), 0, !1, !0), i && (l.touchEventsData.startTranslate = l.touchEventsData.startTranslate - G, l.touchEventsData.currentTranslate = l.touchEventsData.currentTranslate - G)); } else if (i) { - const R = C ? U.length / u.grid.rows : U.length; - l.slideTo(l.activeIndex + R, 0, !1, !0), l.touchEventsData.currentTranslate = l.translate; + const L = y ? M.length / f.grid.rows : M.length; + l.slideTo(l.activeIndex + L, 0, !1, !0), l.touchEventsData.currentTranslate = l.translate; } - } else if (T.length > 0 && D) + } else if (S.length > 0 && B) if (typeof n > "u") { - const R = l.slidesGrid[x], K = l.slidesGrid[x - V] - R; - o ? l.setTranslate(l.translate - K) : (l.slideTo(x - V, 0, !1, !0), i && (l.touchEventsData.startTranslate = l.touchEventsData.startTranslate - K, l.touchEventsData.currentTranslate = l.touchEventsData.currentTranslate - K)); + const L = l.slidesGrid[C], G = l.slidesGrid[C - N] - L; + o ? l.setTranslate(l.translate - G) : (l.slideTo(C - N, 0, !1, !0), i && (l.touchEventsData.startTranslate = l.touchEventsData.startTranslate - G, l.touchEventsData.currentTranslate = l.touchEventsData.currentTranslate - G)); } else { - const R = C ? T.length / u.grid.rows : T.length; - l.slideTo(l.activeIndex - R, 0, !1, !0); + const L = y ? S.length / f.grid.rows : S.length; + l.slideTo(l.activeIndex - L, 0, !1, !0); } } - if (l.allowSlidePrev = d, l.allowSlideNext = h, l.controller && l.controller.control && !a) { - const R = { + if (l.allowSlidePrev = d, l.allowSlideNext = u, l.controller && l.controller.control && !a) { + const L = { slideRealIndex: n, direction: t, setTranslate: i, activeSlideIndex: r, byController: !0 }; - Array.isArray(l.controller.control) ? l.controller.control.forEach((Z) => { - !Z.destroyed && Z.params.loop && Z.loopFix({ - ...R, - slideTo: Z.params.slidesPerView === u.slidesPerView ? e : !1 + Array.isArray(l.controller.control) ? l.controller.control.forEach((k) => { + !k.destroyed && k.params.loop && k.loopFix({ + ...L, + slideTo: k.params.slidesPerView === f.slidesPerView ? e : !1 }); }) : l.controller.control instanceof l.constructor && l.controller.control.params.loop && l.controller.control.loopFix({ - ...R, - slideTo: l.controller.control.params.slidesPerView === u.slidesPerView ? e : !1 + ...L, + slideTo: l.controller.control.params.slidesPerView === f.slidesPerView ? e : !1 }); } l.emit("loopFix"); } -function hu() { +function Hu() { const n = this, { params: e, slidesEl: t @@ -1411,12 +1411,12 @@ function hu() { t.append(r); }), n.recalcSlides(), n.slideTo(n.realIndex, 0); } -var uu = { - loopCreate: cu, - loopFix: du, - loopDestroy: hu +var Ju = { + loopCreate: Wu, + loopFix: Gu, + loopDestroy: Hu }; -function fu(n) { +function Zu(n) { const e = this; if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return; const t = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl; @@ -1424,35 +1424,35 @@ function fu(n) { e.__preventObserver__ = !1; }); } -function pu() { +function Xu() { const n = this; n.params.watchOverflow && n.isLocked || n.params.cssMode || (n.isElement && (n.__preventObserver__ = !0), n[n.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", n.isElement && requestAnimationFrame(() => { n.__preventObserver__ = !1; })); } -var mu = { - setGrabCursor: fu, - unsetGrabCursor: pu +var Yu = { + setGrabCursor: Zu, + unsetGrabCursor: Xu }; -function gu(n, e = this) { +function Ku(n, e = this) { function t(i) { - if (!i || i === Ht() || i === Mt()) return null; + if (!i || i === $t() || i === Lt()) return null; i.assignedSlot && (i = i.assignedSlot); const r = i.closest(n); return !r && !i.getRootNode ? null : r || t(i.getRootNode().host); } return t(e); } -function gl(n, e, t) { - const i = Mt(), { +function Gl(n, e, t) { + const i = Lt(), { params: r } = n, s = r.edgeSwipeDetection, a = r.edgeSwipeThreshold; return s && (t <= a || t >= i.innerWidth - a) ? s === "prevent" ? (e.preventDefault(), !0) : !1 : !0; } -function vu(n) { +function qu(n) { const e = this; if (e.destroyed) return; - const t = Ht(); + const t = $t(); let i = n; i.originalEvent && (i = i.originalEvent); const r = e.touchEventsData; @@ -1462,7 +1462,7 @@ function vu(n) { r.pointerId = i.pointerId; } else i.type === "touchstart" && i.targetTouches.length === 1 && (r.touchId = i.targetTouches[0].identifier); if (i.type === "touchstart") { - gl(e, i, i.targetTouches[0].pageX); + Gl(e, i, i.targetTouches[0].pageX); return; } const { @@ -1474,19 +1474,19 @@ function vu(n) { return; !e.animating && s.cssMode && s.loop && e.loopFix(); let l = i.target; - if (s.touchEventsTarget === "wrapper" && !wh(l, e.wrapperEl) || "which" in i && i.which === 3 || "button" in i && i.button > 0 || r.isTouched && r.isMoved) return; + if (s.touchEventsTarget === "wrapper" && !su(l, e.wrapperEl) || "which" in i && i.which === 3 || "button" in i && i.button > 0 || r.isTouched && r.isMoved) return; const c = !!s.noSwipingClass && s.noSwipingClass !== "", d = i.composedPath ? i.composedPath() : i.path; c && i.target && i.target.shadowRoot && d && (l = d[0]); - const h = s.noSwipingSelector ? s.noSwipingSelector : `.${s.noSwipingClass}`, f = !!(i.target && i.target.shadowRoot); - if (s.noSwiping && (f ? gu(h, l) : l.closest(h))) { + const u = s.noSwipingSelector ? s.noSwipingSelector : `.${s.noSwipingClass}`, h = !!(i.target && i.target.shadowRoot); + if (s.noSwiping && (h ? Ku(u, l) : l.closest(u))) { e.allowClick = !0; return; } if (s.swipeHandler && !l.closest(s.swipeHandler)) return; a.currentX = i.pageX, a.currentY = i.pageY; - const u = a.currentX, g = a.currentY; - if (!gl(e, i, u)) + const f = a.currentX, g = a.currentY; + if (!Gl(e, i, f)) return; Object.assign(r, { isTouched: !0, @@ -1494,14 +1494,14 @@ function vu(n) { allowTouchCallbacks: !0, isScrolling: void 0, startMoving: void 0 - }), a.startX = u, a.startY = g, r.touchStartTime = Is(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, s.threshold > 0 && (r.allowThresholdMove = !1); + }), a.startX = f, a.startY = g, r.touchStartTime = Os(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, s.threshold > 0 && (r.allowThresholdMove = !1); let v = !0; l.matches(r.focusableElements) && (v = !1, l.nodeName === "SELECT" && (r.isTouched = !1)), t.activeElement && t.activeElement.matches(r.focusableElements) && t.activeElement !== l && (i.pointerType === "mouse" || i.pointerType !== "mouse" && !l.matches(r.focusableElements)) && t.activeElement.blur(); const m = v && e.allowTouchMove && s.touchStartPreventDefault; (s.touchStartForcePreventDefault || m) && !l.isContentEditable && i.preventDefault(), s.freeMode && s.freeMode.enabled && e.freeMode && e.animating && !s.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", i); } -function Au(n) { - const e = Ht(), t = this; +function ju(n) { + const e = $t(), t = this; if (t.destroyed) return; const i = t.touchEventsData, { params: r, @@ -1515,30 +1515,30 @@ function Au(n) { return; let c; if (l.type === "touchmove") { - if (c = [...l.changedTouches].find((M) => M.identifier === i.touchId), !c || c.identifier !== i.touchId) return; + if (c = [...l.changedTouches].find((E) => E.identifier === i.touchId), !c || c.identifier !== i.touchId) return; } else c = l; if (!i.isTouched) { i.startMoving && i.isScrolling && t.emit("touchMoveOpposite", l); return; } - const d = c.pageX, h = c.pageY; + const d = c.pageX, u = c.pageY; if (l.preventedByNestedSwiper) { - s.startX = d, s.startY = h; + s.startX = d, s.startY = u; return; } if (!t.allowTouchMove) { l.target.matches(i.focusableElements) || (t.allowClick = !1), i.isTouched && (Object.assign(s, { startX: d, - startY: h, + startY: u, currentX: d, - currentY: h - }), i.touchStartTime = Is()); + currentY: u + }), i.touchStartTime = Os()); return; } if (r.touchReleaseOnEdges && !r.loop) if (t.isVertical()) { - if (h < s.startY && t.translate <= t.maxTranslate() || h > s.startY && t.translate >= t.minTranslate()) { + if (u < s.startY && t.translate <= t.maxTranslate() || u > s.startY && t.translate >= t.minTranslate()) { i.isTouched = !1, i.isMoved = !1; return; } @@ -1552,12 +1552,12 @@ function Au(n) { i.isMoved = !0, t.allowClick = !1; return; } - i.allowTouchCallbacks && t.emit("touchMove", l), s.previousX = s.currentX, s.previousY = s.currentY, s.currentX = d, s.currentY = h; - const f = s.currentX - s.startX, u = s.currentY - s.startY; - if (t.params.threshold && Math.sqrt(f ** 2 + u ** 2) < t.params.threshold) return; + i.allowTouchCallbacks && t.emit("touchMove", l), s.previousX = s.currentX, s.previousY = s.currentY, s.currentX = d, s.currentY = u; + const h = s.currentX - s.startX, f = s.currentY - s.startY; + if (t.params.threshold && Math.sqrt(h ** 2 + f ** 2) < t.params.threshold) return; if (typeof i.isScrolling > "u") { - let M; - t.isHorizontal() && s.currentY === s.startY || t.isVertical() && s.currentX === s.startX ? i.isScrolling = !1 : f * f + u * u >= 25 && (M = Math.atan2(Math.abs(u), Math.abs(f)) * 180 / Math.PI, i.isScrolling = t.isHorizontal() ? M > r.touchAngle : 90 - M > r.touchAngle); + let E; + t.isHorizontal() && s.currentY === s.startY || t.isVertical() && s.currentX === s.startX ? i.isScrolling = !1 : h * h + f * f >= 25 && (E = Math.atan2(Math.abs(f), Math.abs(h)) * 180 / Math.PI, i.isScrolling = t.isHorizontal() ? E > r.touchAngle : 90 - E > r.touchAngle); } if (i.isScrolling && t.emit("touchMoveOpposite", l), typeof i.startMoving > "u" && (s.currentX !== s.startX || s.currentY !== s.startY) && (i.startMoving = !0), i.isScrolling || l.type === "touchmove" && i.preventTouchMoveFromPointerMove) { i.isTouched = !1; @@ -1566,7 +1566,7 @@ function Au(n) { if (!i.startMoving) return; t.allowClick = !1, !r.cssMode && l.cancelable && l.preventDefault(), r.touchMoveStopPropagation && !r.nested && l.stopPropagation(); - let g = t.isHorizontal() ? f : u, v = t.isHorizontal() ? s.currentX - s.previousX : s.currentY - s.previousY; + let g = t.isHorizontal() ? h : f, v = t.isHorizontal() ? s.currentX - s.previousX : s.currentY - s.previousY; r.oneWayMovement && (g = Math.abs(g) * (a ? 1 : -1), v = Math.abs(v) * (a ? 1 : -1)), s.diff = g, g *= r.touchRatio, a && (g = -g, v = -v); const m = t.touchesDirection; t.swipeDirection = g > 0 ? "prev" : "next", t.touchesDirection = v > 0 ? "prev" : "next"; @@ -1575,38 +1575,38 @@ function Au(n) { if (p && A && t.loopFix({ direction: t.swipeDirection }), i.startTranslate = t.getTranslate(), t.setTransition(0), t.animating) { - const M = new window.CustomEvent("transitionend", { + const E = new window.CustomEvent("transitionend", { bubbles: !0, cancelable: !0, detail: { bySwiperTouchMove: !0 } }); - t.wrapperEl.dispatchEvent(M); + t.wrapperEl.dispatchEvent(E); } i.allowMomentumBounce = !1, r.grabCursor && (t.allowSlideNext === !0 || t.allowSlidePrev === !0) && t.setGrabCursor(!0), t.emit("sliderFirstMove", l); } if ((/* @__PURE__ */ new Date()).getTime(), r._loopSwapReset !== !1 && i.isMoved && i.allowThresholdMove && m !== t.touchesDirection && p && A && Math.abs(g) >= 1) { Object.assign(s, { startX: d, - startY: h, + startY: u, currentX: d, - currentY: h, + currentY: u, startTranslate: i.currentTranslate }), i.loopSwapReset = !0, i.startTranslate = i.currentTranslate; return; } t.emit("sliderMove", l), i.isMoved = !0, i.currentTranslate = g + i.startTranslate; - let _ = !0, S = r.resistanceRatio; - if (r.touchReleaseOnEdges && (S = 0), g > 0 ? (p && A && i.allowThresholdMove && i.currentTranslate > (r.centeredSlides ? t.minTranslate() - t.slidesSizesGrid[t.activeIndex + 1] - (r.slidesPerView !== "auto" && t.slides.length - r.slidesPerView >= 2 ? t.slidesSizesGrid[t.activeIndex + 1] + t.params.spaceBetween : 0) - t.params.spaceBetween : t.minTranslate()) && t.loopFix({ + let b = !0, x = r.resistanceRatio; + if (r.touchReleaseOnEdges && (x = 0), g > 0 ? (p && A && i.allowThresholdMove && i.currentTranslate > (r.centeredSlides ? t.minTranslate() - t.slidesSizesGrid[t.activeIndex + 1] - (r.slidesPerView !== "auto" && t.slides.length - r.slidesPerView >= 2 ? t.slidesSizesGrid[t.activeIndex + 1] + t.params.spaceBetween : 0) - t.params.spaceBetween : t.minTranslate()) && t.loopFix({ direction: "prev", setTranslate: !0, activeSlideIndex: 0 - }), i.currentTranslate > t.minTranslate() && (_ = !1, r.resistance && (i.currentTranslate = t.minTranslate() - 1 + (-t.minTranslate() + i.startTranslate + g) ** S))) : g < 0 && (p && A && i.allowThresholdMove && i.currentTranslate < (r.centeredSlides ? t.maxTranslate() + t.slidesSizesGrid[t.slidesSizesGrid.length - 1] + t.params.spaceBetween + (r.slidesPerView !== "auto" && t.slides.length - r.slidesPerView >= 2 ? t.slidesSizesGrid[t.slidesSizesGrid.length - 1] + t.params.spaceBetween : 0) : t.maxTranslate()) && t.loopFix({ + }), i.currentTranslate > t.minTranslate() && (b = !1, r.resistance && (i.currentTranslate = t.minTranslate() - 1 + (-t.minTranslate() + i.startTranslate + g) ** x))) : g < 0 && (p && A && i.allowThresholdMove && i.currentTranslate < (r.centeredSlides ? t.maxTranslate() + t.slidesSizesGrid[t.slidesSizesGrid.length - 1] + t.params.spaceBetween + (r.slidesPerView !== "auto" && t.slides.length - r.slidesPerView >= 2 ? t.slidesSizesGrid[t.slidesSizesGrid.length - 1] + t.params.spaceBetween : 0) : t.maxTranslate()) && t.loopFix({ direction: "next", setTranslate: !0, activeSlideIndex: t.slides.length - (r.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(parseFloat(r.slidesPerView, 10))) - }), i.currentTranslate < t.maxTranslate() && (_ = !1, r.resistance && (i.currentTranslate = t.maxTranslate() + 1 - (t.maxTranslate() - i.startTranslate - g) ** S))), _ && (l.preventedByNestedSwiper = !0), !t.allowSlideNext && t.swipeDirection === "next" && i.currentTranslate < i.startTranslate && (i.currentTranslate = i.startTranslate), !t.allowSlidePrev && t.swipeDirection === "prev" && i.currentTranslate > i.startTranslate && (i.currentTranslate = i.startTranslate), !t.allowSlidePrev && !t.allowSlideNext && (i.currentTranslate = i.startTranslate), r.threshold > 0) + }), i.currentTranslate < t.maxTranslate() && (b = !1, r.resistance && (i.currentTranslate = t.maxTranslate() + 1 - (t.maxTranslate() - i.startTranslate - g) ** x))), b && (l.preventedByNestedSwiper = !0), !t.allowSlideNext && t.swipeDirection === "next" && i.currentTranslate < i.startTranslate && (i.currentTranslate = i.startTranslate), !t.allowSlidePrev && t.swipeDirection === "prev" && i.currentTranslate > i.startTranslate && (i.currentTranslate = i.startTranslate), !t.allowSlidePrev && !t.allowSlideNext && (i.currentTranslate = i.startTranslate), r.threshold > 0) if (Math.abs(g) > r.threshold || i.allowThresholdMove) { if (!i.allowThresholdMove) { i.allowThresholdMove = !0, s.startX = s.currentX, s.startY = s.currentY, i.currentTranslate = i.startTranslate, s.diff = t.isHorizontal() ? s.currentX - s.startX : s.currentY - s.startY; @@ -1618,7 +1618,7 @@ function Au(n) { } !r.followFinger || r.cssMode || ((r.freeMode && r.freeMode.enabled && t.freeMode || r.watchSlidesProgress) && (t.updateActiveIndex(), t.updateSlidesClasses()), r.freeMode && r.freeMode.enabled && t.freeMode && t.freeMode.onTouchMove(), t.updateProgress(i.currentTranslate), t.setTranslate(i.currentTranslate)); } -function _u(n) { +function $u(n) { const e = this; if (e.destroyed) return; const t = e.touchEventsData; @@ -1626,7 +1626,7 @@ function _u(n) { i.originalEvent && (i = i.originalEvent); let r; if (i.type === "touchend" || i.type === "touchcancel") { - if (r = [...i.changedTouches].find((M) => M.identifier === t.touchId), !r || r.identifier !== t.touchId) return; + if (r = [...i.changedTouches].find((E) => E.identifier === t.touchId), !r || r.identifier !== t.touchId) return; } else { if (t.touchId !== null || i.pointerId !== t.pointerId) return; r = i; @@ -1647,51 +1647,51 @@ function _u(n) { return; } a.grabCursor && t.isMoved && t.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1); - const h = Is(), f = h - t.touchStartTime; + const u = Os(), h = u - t.touchStartTime; if (e.allowClick) { - const M = i.path || i.composedPath && i.composedPath(); - e.updateClickedSlide(M && M[0] || i.target, M), e.emit("tap click", i), f < 300 && h - t.lastClickTime < 300 && e.emit("doubleTap doubleClick", i); + const E = i.path || i.composedPath && i.composedPath(); + e.updateClickedSlide(E && E[0] || i.target, E), e.emit("tap click", i), h < 300 && u - t.lastClickTime < 300 && e.emit("doubleTap doubleClick", i); } - if (t.lastClickTime = Is(), zo(() => { + if (t.lastClickTime = Os(), sl(() => { e.destroyed || (e.allowClick = !0); }), !t.isTouched || !t.isMoved || !e.swipeDirection || o.diff === 0 && !t.loopSwapReset || t.currentTranslate === t.startTranslate && !t.loopSwapReset) { t.isTouched = !1, t.isMoved = !1, t.startMoving = !1; return; } t.isTouched = !1, t.isMoved = !1, t.startMoving = !1; - let u; - if (a.followFinger ? u = l ? e.translate : -e.translate : u = -t.currentTranslate, a.cssMode) + let f; + if (a.followFinger ? f = l ? e.translate : -e.translate : f = -t.currentTranslate, a.cssMode) return; if (a.freeMode && a.freeMode.enabled) { e.freeMode.onTouchEnd({ - currentPos: u + currentPos: f }); return; } - const g = u >= -e.maxTranslate() && !e.params.loop; + const g = f >= -e.maxTranslate() && !e.params.loop; let v = 0, m = e.slidesSizesGrid[0]; - for (let M = 0; M < c.length; M += M < a.slidesPerGroupSkip ? 1 : a.slidesPerGroup) { - const C = M < a.slidesPerGroupSkip - 1 ? 1 : a.slidesPerGroup; - typeof c[M + C] < "u" ? (g || u >= c[M] && u < c[M + C]) && (v = M, m = c[M + C] - c[M]) : (g || u >= c[M]) && (v = M, m = c[c.length - 1] - c[c.length - 2]); + for (let E = 0; E < c.length; E += E < a.slidesPerGroupSkip ? 1 : a.slidesPerGroup) { + const y = E < a.slidesPerGroupSkip - 1 ? 1 : a.slidesPerGroup; + typeof c[E + y] < "u" ? (g || f >= c[E] && f < c[E + y]) && (v = E, m = c[E + y] - c[E]) : (g || f >= c[E]) && (v = E, m = c[c.length - 1] - c[c.length - 2]); } let p = null, A = null; a.rewind && (e.isBeginning ? A = a.virtual && a.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (p = 0)); - const _ = (u - c[v]) / m, S = v < a.slidesPerGroupSkip - 1 ? 1 : a.slidesPerGroup; - if (f > a.longSwipesMs) { + const b = (f - c[v]) / m, x = v < a.slidesPerGroupSkip - 1 ? 1 : a.slidesPerGroup; + if (h > a.longSwipesMs) { if (!a.longSwipes) { e.slideTo(e.activeIndex); return; } - e.swipeDirection === "next" && (_ >= a.longSwipesRatio ? e.slideTo(a.rewind && e.isEnd ? p : v + S) : e.slideTo(v)), e.swipeDirection === "prev" && (_ > 1 - a.longSwipesRatio ? e.slideTo(v + S) : A !== null && _ < 0 && Math.abs(_) > a.longSwipesRatio ? e.slideTo(A) : e.slideTo(v)); + e.swipeDirection === "next" && (b >= a.longSwipesRatio ? e.slideTo(a.rewind && e.isEnd ? p : v + x) : e.slideTo(v)), e.swipeDirection === "prev" && (b > 1 - a.longSwipesRatio ? e.slideTo(v + x) : A !== null && b < 0 && Math.abs(b) > a.longSwipesRatio ? e.slideTo(A) : e.slideTo(v)); } else { if (!a.shortSwipes) { e.slideTo(e.activeIndex); return; } - e.navigation && (i.target === e.navigation.nextEl || i.target === e.navigation.prevEl) ? i.target === e.navigation.nextEl ? e.slideTo(v + S) : e.slideTo(v) : (e.swipeDirection === "next" && e.slideTo(p !== null ? p : v + S), e.swipeDirection === "prev" && e.slideTo(A !== null ? A : v)); + e.navigation && (i.target === e.navigation.nextEl || i.target === e.navigation.prevEl) ? i.target === e.navigation.nextEl ? e.slideTo(v + x) : e.slideTo(v) : (e.swipeDirection === "next" && e.slideTo(p !== null ? p : v + x), e.swipeDirection === "prev" && e.slideTo(A !== null ? A : v)); } } -function vl() { +function Hl() { const n = this, { params: e, el: t @@ -1714,11 +1714,11 @@ function vl() { n.autoplay && n.autoplay.running && n.autoplay.paused && n.autoplay.resume(); }, 500)), n.allowSlidePrev = r, n.allowSlideNext = i, n.params.watchOverflow && s !== n.snapGrid && n.checkOverflow(); } -function Su(n) { +function ef(n) { const e = this; e.destroyed || e.enabled && (e.allowClick || (e.params.preventClicks && n.preventDefault(), e.params.preventClicksPropagation && e.animating && (n.stopPropagation(), n.stopImmediatePropagation()))); } -function bu() { +function tf() { const n = this; if (n.destroyed) return; const { @@ -1732,16 +1732,16 @@ function bu() { const s = n.maxTranslate() - n.minTranslate(); s === 0 ? r = 0 : r = (n.translate - n.minTranslate()) / s, r !== n.progress && n.updateProgress(t ? -n.translate : n.translate), n.emit("setTranslate", n.translate, !1); } -function Eu(n) { +function nf(n) { const e = this; - e.destroyed || (vs(e, n.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update()); + e.destroyed || (Us(e, n.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update()); } -function xu() { +function rf() { const n = this; n.destroyed || n.documentTouchHandlerProceeded || (n.documentTouchHandlerProceeded = !0, n.params.touchReleaseOnEdges && (n.el.style.touchAction = "auto")); } -const Sd = (n, e) => { - const t = Ht(), { +const Xd = (n, e) => { + const t = $t(), { params: i, el: r, wrapperEl: s, @@ -1774,25 +1774,25 @@ const Sd = (n, e) => { passive: !0 }), t[l]("contextmenu", n.onTouchEnd, { passive: !0 - }), (i.preventClicks || i.preventClicksPropagation) && r[l]("click", n.onClick, !0), i.cssMode && s[l]("scroll", n.onScroll), i.updateOnWindowResize ? n[c](a.ios || a.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", vl, !0) : n[c]("observerUpdate", vl, !0), r[l]("load", n.onLoad, { + }), (i.preventClicks || i.preventClicksPropagation) && r[l]("click", n.onClick, !0), i.cssMode && s[l]("scroll", n.onScroll), i.updateOnWindowResize ? n[c](a.ios || a.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", Hl, !0) : n[c]("observerUpdate", Hl, !0), r[l]("load", n.onLoad, { capture: !0 })); }; -function yu() { +function sf() { const n = this, { params: e } = n; - n.onTouchStart = vu.bind(n), n.onTouchMove = Au.bind(n), n.onTouchEnd = _u.bind(n), n.onDocumentTouchStart = xu.bind(n), e.cssMode && (n.onScroll = bu.bind(n)), n.onClick = Su.bind(n), n.onLoad = Eu.bind(n), Sd(n, "on"); + n.onTouchStart = qu.bind(n), n.onTouchMove = ju.bind(n), n.onTouchEnd = $u.bind(n), n.onDocumentTouchStart = rf.bind(n), e.cssMode && (n.onScroll = tf.bind(n)), n.onClick = ef.bind(n), n.onLoad = nf.bind(n), Xd(n, "on"); } -function wu() { - Sd(this, "off"); +function af() { + Xd(this, "off"); } -var Cu = { - attachEvents: yu, - detachEvents: wu +var of = { + attachEvents: sf, + detachEvents: af }; -const Al = (n, e) => n.grid && e.grid && e.grid.rows > 1; -function Uu() { +const Jl = (n, e) => n.grid && e.grid && e.grid.rows > 1; +function lf() { const n = this, { realIndex: e, initialized: t, @@ -1800,27 +1800,27 @@ function Uu() { el: r } = n, s = i.breakpoints; if (!s || s && Object.keys(s).length === 0) return; - const a = Ht(), o = i.breakpointsBase === "window" || !i.breakpointsBase ? i.breakpointsBase : "container", l = ["window", "container"].includes(i.breakpointsBase) || !i.breakpointsBase ? n.el : a.querySelector(i.breakpointsBase), c = n.getBreakpoint(s, o, l); + const a = $t(), o = i.breakpointsBase === "window" || !i.breakpointsBase ? i.breakpointsBase : "container", l = ["window", "container"].includes(i.breakpointsBase) || !i.breakpointsBase ? n.el : a.querySelector(i.breakpointsBase), c = n.getBreakpoint(s, o, l); if (!c || n.currentBreakpoint === c) return; - const h = (c in s ? s[c] : void 0) || n.originalParams, f = Al(n, i), u = Al(n, h), g = n.params.grabCursor, v = h.grabCursor, m = i.enabled; - f && !u ? (r.classList.remove(`${i.containerModifierClass}grid`, `${i.containerModifierClass}grid-column`), n.emitContainerClasses()) : !f && u && (r.classList.add(`${i.containerModifierClass}grid`), (h.grid.fill && h.grid.fill === "column" || !h.grid.fill && i.grid.fill === "column") && r.classList.add(`${i.containerModifierClass}grid-column`), n.emitContainerClasses()), g && !v ? n.unsetGrabCursor() : !g && v && n.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((C) => { - if (typeof h[C] > "u") return; - const U = i[C] && i[C].enabled, T = h[C] && h[C].enabled; - U && !T && n[C].disable(), !U && T && n[C].enable(); + const u = (c in s ? s[c] : void 0) || n.originalParams, h = Jl(n, i), f = Jl(n, u), g = n.params.grabCursor, v = u.grabCursor, m = i.enabled; + h && !f ? (r.classList.remove(`${i.containerModifierClass}grid`, `${i.containerModifierClass}grid-column`), n.emitContainerClasses()) : !h && f && (r.classList.add(`${i.containerModifierClass}grid`), (u.grid.fill && u.grid.fill === "column" || !u.grid.fill && i.grid.fill === "column") && r.classList.add(`${i.containerModifierClass}grid-column`), n.emitContainerClasses()), g && !v ? n.unsetGrabCursor() : !g && v && n.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((y) => { + if (typeof u[y] > "u") return; + const M = i[y] && i[y].enabled, S = u[y] && u[y].enabled; + M && !S && n[y].disable(), !M && S && n[y].enable(); }); - const p = h.direction && h.direction !== i.direction, A = i.loop && (h.slidesPerView !== i.slidesPerView || p), _ = i.loop; - p && t && n.changeDirection(), jt(n.params, h); - const S = n.params.enabled, M = n.params.loop; + const p = u.direction && u.direction !== i.direction, A = i.loop && (u.slidesPerView !== i.slidesPerView || p), b = i.loop; + p && t && n.changeDirection(), si(n.params, u); + const x = n.params.enabled, E = n.params.loop; Object.assign(n, { allowTouchMove: n.params.allowTouchMove, allowSlideNext: n.params.allowSlideNext, allowSlidePrev: n.params.allowSlidePrev - }), m && !S ? n.disable() : !m && S && n.enable(), n.currentBreakpoint = c, n.emit("_beforeBreakpoint", h), t && (A ? (n.loopDestroy(), n.loopCreate(e), n.updateSlides()) : !_ && M ? (n.loopCreate(e), n.updateSlides()) : _ && !M && n.loopDestroy()), n.emit("breakpoint", h); + }), m && !x ? n.disable() : !m && x && n.enable(), n.currentBreakpoint = c, n.emit("_beforeBreakpoint", u), t && (A ? (n.loopDestroy(), n.loopCreate(e), n.updateSlides()) : !b && E ? (n.loopCreate(e), n.updateSlides()) : b && !E && n.loopDestroy()), n.emit("breakpoint", u); } -function Mu(n, e = "window", t) { +function cf(n, e = "window", t) { if (!n || e === "container" && !t) return; let i = !1; - const r = Mt(), s = e === "window" ? r.innerHeight : t.clientHeight, a = Object.keys(n).map((o) => { + const r = Lt(), s = e === "window" ? r.innerHeight : t.clientHeight, a = Object.keys(n).map((o) => { if (typeof o == "string" && o.indexOf("@") === 0) { const l = parseFloat(o.substr(1)); return { @@ -1843,11 +1843,11 @@ function Mu(n, e = "window", t) { } return i || "max"; } -var Tu = { - setBreakpoint: Uu, - getBreakpoint: Mu +var df = { + setBreakpoint: lf, + getBreakpoint: cf }; -function Fu(n, e) { +function hf(n, e) { const t = []; return n.forEach((i) => { typeof i == "object" ? Object.keys(i).forEach((r) => { @@ -1855,14 +1855,14 @@ function Fu(n, e) { }) : typeof i == "string" && t.push(e + i); }), t; } -function Iu() { +function uf() { const n = this, { classNames: e, params: t, rtl: i, el: r, device: s - } = n, a = Fu(["initialized", t.direction, { + } = n, a = hf(["initialized", t.direction, { "free-mode": n.params.freeMode && t.freeMode.enabled }, { autoheight: t.autoHeight @@ -1885,18 +1885,18 @@ function Iu() { }], t.containerModifierClass); e.push(...a), r.classList.add(...e), n.emitContainerClasses(); } -function Ru() { +function ff() { const n = this, { el: e, classNames: t } = n; !e || typeof e == "string" || (e.classList.remove(...t), n.emitContainerClasses()); } -var Bu = { - addClasses: Iu, - removeClasses: Ru +var pf = { + addClasses: uf, + removeClasses: ff }; -function Du() { +function mf() { const n = this, { isLocked: e, params: t @@ -1910,9 +1910,9 @@ function Du() { n.isLocked = n.snapGrid.length === 1; t.allowSlideNext === !0 && (n.allowSlideNext = !n.isLocked), t.allowSlidePrev === !0 && (n.allowSlidePrev = !n.isLocked), e && e !== n.isLocked && (n.isEnd = !1), e !== n.isLocked && n.emit(n.isLocked ? "lock" : "unlock"); } -var Qu = { - checkOverflow: Du -}, _l = { +var gf = { + checkOverflow: mf +}, Zl = { init: !0, direction: "horizontal", oneWayMovement: !1, @@ -2034,55 +2034,55 @@ var Qu = { // Internals _emitClasses: !1 }; -function Nu(n, e) { +function vf(n, e) { return function(i = {}) { const r = Object.keys(i)[0], s = i[r]; if (typeof s != "object" || s === null) { - jt(e, i); + si(e, i); return; } if (n[r] === !0 && (n[r] = { enabled: !0 }), r === "navigation" && n[r] && n[r].enabled && !n[r].prevEl && !n[r].nextEl && (n[r].auto = !0), ["pagination", "scrollbar"].indexOf(r) >= 0 && n[r] && n[r].enabled && !n[r].el && (n[r].auto = !0), !(r in n && "enabled" in s)) { - jt(e, i); + si(e, i); return; } typeof n[r] == "object" && !("enabled" in n[r]) && (n[r].enabled = !0), n[r] || (n[r] = { enabled: !1 - }), jt(e, i); + }), si(e, i); }; } -const sa = { - eventsEmitter: Bh, - update: Gh, - translate: Kh, - transition: eu, - slide: lu, - loop: uu, - grabCursor: mu, - events: Cu, - breakpoints: Tu, - checkOverflow: Qu, - classes: Bu -}, aa = {}; -class Kt { +const Aa = { + eventsEmitter: fu, + update: yu, + translate: Fu, + transition: Du, + slide: zu, + loop: Ju, + grabCursor: Yu, + events: of, + breakpoints: df, + checkOverflow: gf, + classes: pf +}, Sa = {}; +class ri { constructor(...e) { let t, i; - e.length === 1 && e[0].constructor && Object.prototype.toString.call(e[0]).slice(8, -1) === "Object" ? i = e[0] : [t, i] = e, i || (i = {}), i = jt({}, i), t && !i.el && (i.el = t); - const r = Ht(); + e.length === 1 && e[0].constructor && Object.prototype.toString.call(e[0]).slice(8, -1) === "Object" ? i = e[0] : [t, i] = e, i || (i = {}), i = si({}, i), t && !i.el && (i.el = t); + const r = $t(); if (i.el && typeof i.el == "string" && r.querySelectorAll(i.el).length > 1) { const l = []; return r.querySelectorAll(i.el).forEach((c) => { - const d = jt({}, i, { + const d = si({}, i, { el: c }); - l.push(new Kt(d)); + l.push(new ri(d)); }), l; } const s = this; - s.__swiper__ = !0, s.support = gd(), s.device = vd({ + s.__swiper__ = !0, s.support = Gd(), s.device = Hd({ userAgent: i.userAgent - }), s.browser = Ad(), s.eventsListeners = {}, s.eventsAnyListeners = [], s.modules = [...s.__modules__], i.modules && Array.isArray(i.modules) && i.modules.forEach((l) => { + }), s.browser = Jd(), s.eventsListeners = {}, s.eventsAnyListeners = [], s.modules = [...s.__modules__], i.modules && Array.isArray(i.modules) && i.modules.forEach((l) => { typeof l == "function" && s.modules.indexOf(l) < 0 && s.modules.push(l); }); const a = {}; @@ -2090,15 +2090,15 @@ class Kt { l({ params: i, swiper: s, - extendParams: Nu(i, a), + extendParams: vf(i, a), on: s.on.bind(s), once: s.once.bind(s), off: s.off.bind(s), emit: s.emit.bind(s) }); }); - const o = jt({}, _l, a); - return s.params = jt({}, o, aa, i), s.originalParams = jt({}, s.params), s.passedParams = jt({}, i), s.params && s.params.on && Object.keys(s.params.on).forEach((l) => { + const o = si({}, Zl, a); + return s.params = si({}, o, Sa, i), s.originalParams = si({}, s.params), s.passedParams = si({}, i), s.params && s.params.on && Object.keys(s.params.on).forEach((l) => { s.on(l, s.params.on[l]); }), s.params && s.params.onAny && s.onAny(s.params.onAny), Object.assign(s, { enabled: s.params.enabled, @@ -2189,8 +2189,8 @@ class Kt { const { slidesEl: t, params: i - } = this, r = gi(t, `.${i.slideClass}, swiper-slide`), s = Bs(r[0]); - return Bs(e) - s; + } = this, r = Ei(t, `.${i.slideClass}, swiper-slide`), s = Ws(r[0]); + return Ws(e) - s; } getSlideIndexByData(e) { return this.getSlideIndex(this.slides.find((t) => t.getAttribute("data-swiper-slide-index") * 1 === e)); @@ -2203,7 +2203,7 @@ class Kt { slidesEl: t, params: i } = e; - e.slides = gi(t, `.${i.slideClass}, swiper-slide`); + e.slides = Ei(t, `.${i.slideClass}, swiper-slide`); } enable() { const e = this; @@ -2253,17 +2253,17 @@ class Kt { let d = 1; if (typeof r.slidesPerView == "number") return r.slidesPerView; if (r.centeredSlides) { - let h = s[c] ? Math.ceil(s[c].swiperSlideSize) : 0, f; - for (let u = c + 1; u < s.length; u += 1) - s[u] && !f && (h += Math.ceil(s[u].swiperSlideSize), d += 1, h > l && (f = !0)); - for (let u = c - 1; u >= 0; u -= 1) - s[u] && !f && (h += s[u].swiperSlideSize, d += 1, h > l && (f = !0)); + let u = s[c] ? Math.ceil(s[c].swiperSlideSize) : 0, h; + for (let f = c + 1; f < s.length; f += 1) + s[f] && !h && (u += Math.ceil(s[f].swiperSlideSize), d += 1, u > l && (h = !0)); + for (let f = c - 1; f >= 0; f -= 1) + s[f] && !h && (u += s[f].swiperSlideSize, d += 1, u > l && (h = !0)); } else if (e === "current") - for (let h = c + 1; h < s.length; h += 1) - (t ? a[h] + o[h] - a[c] < l : a[h] - a[c] < l) && (d += 1); + for (let u = c + 1; u < s.length; u += 1) + (t ? a[u] + o[u] - a[c] < l : a[u] - a[c] < l) && (d += 1); else - for (let h = c - 1; h >= 0; h -= 1) - a[c] - a[h] < l && (d += 1); + for (let u = c - 1; u >= 0; u -= 1) + a[c] - a[u] < l && (d += 1); return d; } update() { @@ -2274,7 +2274,7 @@ class Kt { params: i } = e; i.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((a) => { - a.complete && vs(e, a); + a.complete && Us(e, a); }), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(); function r() { const a = e.rtlTranslate ? e.translate * -1 : e.translate, o = Math.min(Math.max(a, e.maxTranslate()), e.minTranslate()); @@ -2311,8 +2311,8 @@ class Kt { return !1; i.swiper = t, i.parentNode && i.parentNode.host && i.parentNode.host.nodeName === t.params.swiperElementNodeName.toUpperCase() && (t.isElement = !0); const r = () => `.${(t.params.wrapperClass || "").trim().split(" ").join(".")}`; - let a = i && i.shadowRoot && i.shadowRoot.querySelector ? i.shadowRoot.querySelector(r()) : gi(i, r())[0]; - return !a && t.params.createElements && (a = Ur("div", t.params.wrapperClass), i.append(a), gi(i, `.${t.params.slideClass}`).forEach((o) => { + let a = i && i.shadowRoot && i.shadowRoot.querySelector ? i.shadowRoot.querySelector(r()) : Ei(i, r())[0]; + return !a && t.params.createElements && (a = Br("div", t.params.wrapperClass), i.append(a), Ei(i, `.${t.params.slideClass}`).forEach((o) => { a.append(o); })), Object.assign(t, { el: i, @@ -2321,9 +2321,9 @@ class Kt { hostEl: t.isElement ? i.parentNode.host : i, mounted: !0, // RTL - rtl: i.dir.toLowerCase() === "rtl" || qi(i, "direction") === "rtl", - rtlTranslate: t.params.direction === "horizontal" && (i.dir.toLowerCase() === "rtl" || qi(i, "direction") === "rtl"), - wrongRTL: qi(a, "display") === "-webkit-box" + rtl: i.dir.toLowerCase() === "rtl" || un(i, "direction") === "rtl", + rtlTranslate: t.params.direction === "horizontal" && (i.dir.toLowerCase() === "rtl" || un(i, "direction") === "rtl"), + wrongRTL: un(a, "display") === "-webkit-box" }), !0; } init(e) { @@ -2332,10 +2332,10 @@ class Kt { t.emit("beforeInit"), t.params.breakpoints && t.setBreakpoint(), t.addClasses(), t.updateSize(), t.updateSlides(), t.params.watchOverflow && t.checkOverflow(), t.params.grabCursor && t.enabled && t.setGrabCursor(), t.params.loop && t.virtual && t.params.virtual.enabled ? t.slideTo(t.params.initialSlide + t.virtual.slidesBefore, 0, t.params.runCallbacksOnInit, !1, !0) : t.slideTo(t.params.initialSlide, 0, t.params.runCallbacksOnInit, !1, !0), t.params.loop && t.loopCreate(void 0, !0), t.attachEvents(); const r = [...t.el.querySelectorAll('[loading="lazy"]')]; return t.isElement && r.push(...t.hostEl.querySelectorAll('[loading="lazy"]')), r.forEach((s) => { - s.complete ? vs(t, s) : s.addEventListener("load", (a) => { - vs(t, a.target); + s.complete ? Us(t, s) : s.addEventListener("load", (a) => { + Us(t, a.target); }); - }), Ha(t), t.initialized = !0, Ha(t), t.emit("init"), t.emit("afterInit"), t; + }), ao(t), t.initialized = !0, ao(t), t.emit("init"), t.emit("afterInit"), t; } destroy(e = !0, t = !0) { const i = this, { @@ -2348,39 +2348,39 @@ class Kt { l.classList.remove(r.slideVisibleClass, r.slideFullyVisibleClass, r.slideActiveClass, r.slideNextClass, r.slidePrevClass), l.removeAttribute("style"), l.removeAttribute("data-swiper-slide-index"); })), i.emit("destroy"), Object.keys(i.eventsListeners).forEach((l) => { i.off(l); - }), e !== !1 && (i.el && typeof i.el != "string" && (i.el.swiper = null), Sh(i)), i.destroyed = !0), null; + }), e !== !1 && (i.el && typeof i.el != "string" && (i.el.swiper = null), eu(i)), i.destroyed = !0), null; } static extendDefaults(e) { - jt(aa, e); + si(Sa, e); } static get extendedDefaults() { - return aa; + return Sa; } static get defaults() { - return _l; + return Zl; } static installModule(e) { - Kt.prototype.__modules__ || (Kt.prototype.__modules__ = []); - const t = Kt.prototype.__modules__; + ri.prototype.__modules__ || (ri.prototype.__modules__ = []); + const t = ri.prototype.__modules__; typeof e == "function" && t.indexOf(e) < 0 && t.push(e); } static use(e) { - return Array.isArray(e) ? (e.forEach((t) => Kt.installModule(t)), Kt) : (Kt.installModule(e), Kt); + return Array.isArray(e) ? (e.forEach((t) => ri.installModule(t)), ri) : (ri.installModule(e), ri); } } -Object.keys(sa).forEach((n) => { - Object.keys(sa[n]).forEach((e) => { - Kt.prototype[e] = sa[n][e]; +Object.keys(Aa).forEach((n) => { + Object.keys(Aa[n]).forEach((e) => { + ri.prototype[e] = Aa[n][e]; }); }); -Kt.use([Ih, Rh]); -function Lu({ +ri.use([hu, uu]); +function Af({ swiper: n, extendParams: e, on: t, emit: i }) { - const r = Ht(), s = Mt(); + const r = $t(), s = Lt(); n.keyboard = { enabled: !1 }, e({ @@ -2396,31 +2396,31 @@ function Lu({ const { rtlTranslate: d } = n; - let h = c; - h.originalEvent && (h = h.originalEvent); - const f = h.keyCode || h.charCode, u = n.params.keyboard.pageUpDown, g = u && f === 33, v = u && f === 34, m = f === 37, p = f === 39, A = f === 38, _ = f === 40; - if (!n.allowSlideNext && (n.isHorizontal() && p || n.isVertical() && _ || v) || !n.allowSlidePrev && (n.isHorizontal() && m || n.isVertical() && A || g)) + let u = c; + u.originalEvent && (u = u.originalEvent); + const h = u.keyCode || u.charCode, f = n.params.keyboard.pageUpDown, g = f && h === 33, v = f && h === 34, m = h === 37, p = h === 39, A = h === 38, b = h === 40; + if (!n.allowSlideNext && (n.isHorizontal() && p || n.isVertical() && b || v) || !n.allowSlidePrev && (n.isHorizontal() && m || n.isVertical() && A || g)) return !1; - if (h.shiftKey || h.altKey || h.ctrlKey || h.metaKey || r.activeElement && (r.activeElement.isContentEditable || r.activeElement.nodeName && (r.activeElement.nodeName.toLowerCase() === "input" || r.activeElement.nodeName.toLowerCase() === "textarea"))) + if (u.shiftKey || u.altKey || u.ctrlKey || u.metaKey || r.activeElement && (r.activeElement.isContentEditable || r.activeElement.nodeName && (r.activeElement.nodeName.toLowerCase() === "input" || r.activeElement.nodeName.toLowerCase() === "textarea"))) return; - if (n.params.keyboard.onlyInViewport && (g || v || m || p || A || _)) { - let M = !1; - if (Ds(n.el, `.${n.params.slideClass}, swiper-slide`).length > 0 && Ds(n.el, `.${n.params.slideActiveClass}`).length === 0) + if (n.params.keyboard.onlyInViewport && (g || v || m || p || A || b)) { + let E = !1; + if (Gs(n.el, `.${n.params.slideClass}, swiper-slide`).length > 0 && Gs(n.el, `.${n.params.slideActiveClass}`).length === 0) return; - const C = n.el, U = C.clientWidth, T = C.clientHeight, y = s.innerWidth, b = s.innerHeight, x = md(C); - d && (x.left -= C.scrollLeft); - const D = [[x.left, x.top], [x.left + U, x.top], [x.left, x.top + T], [x.left + U, x.top + T]]; - for (let F = 0; F < D.length; F += 1) { - const Q = D[F]; - if (Q[0] >= 0 && Q[0] <= y && Q[1] >= 0 && Q[1] <= b) { - if (Q[0] === 0 && Q[1] === 0) continue; - M = !0; + const y = n.el, M = y.clientWidth, S = y.clientHeight, U = s.innerWidth, I = s.innerHeight, C = Wd(y); + d && (C.left -= y.scrollLeft); + const B = [[C.left, C.top], [C.left + M, C.top], [C.left, C.top + S], [C.left + M, C.top + S]]; + for (let F = 0; F < B.length; F += 1) { + const T = B[F]; + if (T[0] >= 0 && T[0] <= U && T[1] >= 0 && T[1] <= I) { + if (T[0] === 0 && T[1] === 0) continue; + E = !0; } } - if (!M) return; + if (!E) return; } - const S = n.params.keyboard.speed; - n.isHorizontal() ? ((g || v || m || p) && (h.preventDefault ? h.preventDefault() : h.returnValue = !1), ((v || p) && !d || (g || m) && d) && n.slideNext(S), ((g || m) && !d || (v || p) && d) && n.slidePrev(S)) : ((g || v || A || _) && (h.preventDefault ? h.preventDefault() : h.returnValue = !1), (v || _) && n.slideNext(S), (g || A) && n.slidePrev(S)), i("keyPress", f); + const x = n.params.keyboard.speed; + n.isHorizontal() ? ((g || v || m || p) && (u.preventDefault ? u.preventDefault() : u.returnValue = !1), ((v || p) && !d || (g || m) && d) && n.slideNext(x), ((g || m) && !d || (v || p) && d) && n.slidePrev(x)) : ((g || v || A || b) && (u.preventDefault ? u.preventDefault() : u.returnValue = !1), (v || b) && n.slideNext(x), (g || A) && n.slidePrev(x)), i("keyPress", h); } function o() { n.keyboard.enabled || (r.addEventListener("keydown", a), n.keyboard.enabled = !0); @@ -2437,16 +2437,16 @@ function Lu({ disable: l }); } -function Wo(n, e, t, i) { +function al(n, e, t, i) { return n.params.createElements && Object.keys(i).forEach((r) => { if (!t[r] && t.auto === !0) { - let s = gi(n.el, `.${i[r]}`)[0]; - s || (s = Ur("div", i[r]), s.className = i[r], n.el.append(s)), t[r] = s, e[r] = s; + let s = Ei(n.el, `.${i[r]}`)[0]; + s || (s = Br("div", i[r]), s.className = i[r], n.el.append(s)), t[r] = s, e[r] = s; } }), t; } -const Sl = ''; -function Pu({ +const Xl = ''; +function Sf({ swiper: n, extendParams: e, on: t, @@ -2466,120 +2466,120 @@ function Pu({ }), n.navigation = { nextEl: null, prevEl: null, - arrowSvg: Sl + arrowSvg: Xl }; - function r(u) { + function r(f) { let g; - return u && typeof u == "string" && n.isElement && (g = n.el.querySelector(u) || n.hostEl.querySelector(u), g) ? g : (u && (typeof u == "string" && (g = [...document.querySelectorAll(u)]), n.params.uniqueNavElements && typeof u == "string" && g && g.length > 1 && n.el.querySelectorAll(u).length === 1 ? g = n.el.querySelector(u) : g && g.length === 1 && (g = g[0])), u && !g ? u : g); + return f && typeof f == "string" && n.isElement && (g = n.el.querySelector(f) || n.hostEl.querySelector(f), g) ? g : (f && (typeof f == "string" && (g = [...document.querySelectorAll(f)]), n.params.uniqueNavElements && typeof f == "string" && g && g.length > 1 && n.el.querySelectorAll(f).length === 1 ? g = n.el.querySelector(f) : g && g.length === 1 && (g = g[0])), f && !g ? f : g); } - function s(u, g) { + function s(f, g) { const v = n.params.navigation; - u = bt(u), u.forEach((m) => { + f = Ut(f), f.forEach((m) => { m && (m.classList[g ? "add" : "remove"](...v.disabledClass.split(" ")), m.tagName === "BUTTON" && (m.disabled = g), n.params.watchOverflow && n.enabled && m.classList[n.isLocked ? "add" : "remove"](v.lockClass)); }); } function a() { const { - nextEl: u, + nextEl: f, prevEl: g } = n.navigation; if (n.params.loop) { - s(g, !1), s(u, !1); + s(g, !1), s(f, !1); return; } - s(g, n.isBeginning && !n.params.rewind), s(u, n.isEnd && !n.params.rewind); + s(g, n.isBeginning && !n.params.rewind), s(f, n.isEnd && !n.params.rewind); } - function o(u) { - u.preventDefault(), !(n.isBeginning && !n.params.loop && !n.params.rewind) && (n.slidePrev(), i("navigationPrev")); + function o(f) { + f.preventDefault(), !(n.isBeginning && !n.params.loop && !n.params.rewind) && (n.slidePrev(), i("navigationPrev")); } - function l(u) { - u.preventDefault(), !(n.isEnd && !n.params.loop && !n.params.rewind) && (n.slideNext(), i("navigationNext")); + function l(f) { + f.preventDefault(), !(n.isEnd && !n.params.loop && !n.params.rewind) && (n.slideNext(), i("navigationNext")); } function c() { - const u = n.params.navigation; - if (n.params.navigation = Wo(n, n.originalParams.navigation, n.params.navigation, { + const f = n.params.navigation; + if (n.params.navigation = al(n, n.originalParams.navigation, n.params.navigation, { nextEl: "swiper-button-next", prevEl: "swiper-button-prev" - }), !(u.nextEl || u.prevEl)) return; - let g = r(u.nextEl), v = r(u.prevEl); + }), !(f.nextEl || f.prevEl)) return; + let g = r(f.nextEl), v = r(f.prevEl); Object.assign(n.navigation, { nextEl: g, prevEl: v - }), g = bt(g), v = bt(v); + }), g = Ut(g), v = Ut(v); const m = (p, A) => { if (p) { - if (u.addIcons && p.matches(".swiper-button-next,.swiper-button-prev") && !p.querySelector("svg")) { - const _ = document.createElement("div"); - Ga(_, Sl), p.appendChild(_.querySelector("svg")), _.remove(); + if (f.addIcons && p.matches(".swiper-button-next,.swiper-button-prev") && !p.querySelector("svg")) { + const b = document.createElement("div"); + so(b, Xl), p.appendChild(b.querySelector("svg")), b.remove(); } p.addEventListener("click", A === "next" ? l : o); } - !n.enabled && p && p.classList.add(...u.lockClass.split(" ")); + !n.enabled && p && p.classList.add(...f.lockClass.split(" ")); }; g.forEach((p) => m(p, "next")), v.forEach((p) => m(p, "prev")); } function d() { let { - nextEl: u, + nextEl: f, prevEl: g } = n.navigation; - u = bt(u), g = bt(g); + f = Ut(f), g = Ut(g); const v = (m, p) => { m.removeEventListener("click", p === "next" ? l : o), m.classList.remove(...n.params.navigation.disabledClass.split(" ")); }; - u.forEach((m) => v(m, "next")), g.forEach((m) => v(m, "prev")); + f.forEach((m) => v(m, "next")), g.forEach((m) => v(m, "prev")); } t("init", () => { - n.params.navigation.enabled === !1 ? f() : (c(), a()); + n.params.navigation.enabled === !1 ? h() : (c(), a()); }), t("toEdge fromEdge lock unlock", () => { a(); }), t("destroy", () => { d(); }), t("enable disable", () => { let { - nextEl: u, + nextEl: f, prevEl: g } = n.navigation; - if (u = bt(u), g = bt(g), n.enabled) { + if (f = Ut(f), g = Ut(g), n.enabled) { a(); return; } - [...u, ...g].filter((v) => !!v).forEach((v) => v.classList.add(n.params.navigation.lockClass)); - }), t("click", (u, g) => { + [...f, ...g].filter((v) => !!v).forEach((v) => v.classList.add(n.params.navigation.lockClass)); + }), t("click", (f, g) => { let { nextEl: v, prevEl: m } = n.navigation; - v = bt(v), m = bt(m); + v = Ut(v), m = Ut(m); const p = g.target; let A = m.includes(p) || v.includes(p); if (n.isElement && !A) { - const _ = g.path || g.composedPath && g.composedPath(); - _ && (A = _.find((S) => v.includes(S) || m.includes(S))); + const b = g.path || g.composedPath && g.composedPath(); + b && (A = b.find((x) => v.includes(x) || m.includes(x))); } if (n.params.navigation.hideOnClick && !A) { if (n.pagination && n.params.pagination && n.params.pagination.clickable && (n.pagination.el === p || n.pagination.el.contains(p))) return; - let _; - v.length ? _ = v[0].classList.contains(n.params.navigation.hiddenClass) : m.length && (_ = m[0].classList.contains(n.params.navigation.hiddenClass)), i(_ === !0 ? "navigationShow" : "navigationHide"), [...v, ...m].filter((S) => !!S).forEach((S) => S.classList.toggle(n.params.navigation.hiddenClass)); + let b; + v.length ? b = v[0].classList.contains(n.params.navigation.hiddenClass) : m.length && (b = m[0].classList.contains(n.params.navigation.hiddenClass)), i(b === !0 ? "navigationShow" : "navigationHide"), [...v, ...m].filter((x) => !!x).forEach((x) => x.classList.toggle(n.params.navigation.hiddenClass)); } }); - const h = () => { + const u = () => { n.el.classList.remove(...n.params.navigation.navigationDisabledClass.split(" ")), c(), a(); - }, f = () => { + }, h = () => { n.el.classList.add(...n.params.navigation.navigationDisabledClass.split(" ")), d(); }; Object.assign(n.navigation, { - enable: h, - disable: f, + enable: u, + disable: h, update: a, init: c, destroy: d }); } -function zn(n = "") { +function Kn(n = "") { return `.${n.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g, "\\$1").replace(/ /g, ".")}`; } -function Vu({ +function _f({ swiper: n, extendParams: e, on: t, @@ -2627,121 +2627,121 @@ function Vu({ } function l(p, A) { const { - bulletActiveClass: _ + bulletActiveClass: b } = n.params.pagination; - p && (p = p[`${A === "prev" ? "previous" : "next"}ElementSibling`], p && (p.classList.add(`${_}-${A}`), p = p[`${A === "prev" ? "previous" : "next"}ElementSibling`], p && p.classList.add(`${_}-${A}-${A}`))); + p && (p = p[`${A === "prev" ? "previous" : "next"}ElementSibling`], p && (p.classList.add(`${b}-${A}`), p = p[`${A === "prev" ? "previous" : "next"}ElementSibling`], p && p.classList.add(`${b}-${A}-${A}`))); } - function c(p, A, _) { - if (p = p % _, A = A % _, A === p + 1) + function c(p, A, b) { + if (p = p % b, A = A % b, A === p + 1) return "next"; if (A === p - 1) return "previous"; } function d(p) { - const A = p.target.closest(zn(n.params.pagination.bulletClass)); + const A = p.target.closest(Kn(n.params.pagination.bulletClass)); if (!A) return; p.preventDefault(); - const _ = Bs(A) * n.params.slidesPerGroup; + const b = Ws(A) * n.params.slidesPerGroup; if (n.params.loop) { - if (n.realIndex === _) return; - const S = c(n.realIndex, _, n.slides.length); - S === "next" ? n.slideNext() : S === "previous" ? n.slidePrev() : n.slideToLoop(_); + if (n.realIndex === b) return; + const x = c(n.realIndex, b, n.slides.length); + x === "next" ? n.slideNext() : x === "previous" ? n.slidePrev() : n.slideToLoop(b); } else - n.slideTo(_); + n.slideTo(b); } - function h() { + function u() { const p = n.rtl, A = n.params.pagination; if (o()) return; - let _ = n.pagination.el; - _ = bt(_); - let S, M; - const C = n.virtual && n.params.virtual.enabled ? n.virtual.slides.length : n.slides.length, U = n.params.loop ? Math.ceil(C / n.params.slidesPerGroup) : n.snapGrid.length; - if (n.params.loop ? (M = n.previousRealIndex || 0, S = n.params.slidesPerGroup > 1 ? Math.floor(n.realIndex / n.params.slidesPerGroup) : n.realIndex) : typeof n.snapIndex < "u" ? (S = n.snapIndex, M = n.previousSnapIndex) : (M = n.previousIndex || 0, S = n.activeIndex || 0), A.type === "bullets" && n.pagination.bullets && n.pagination.bullets.length > 0) { - const T = n.pagination.bullets; - let y, b, x; - if (A.dynamicBullets && (s = Wa(T[0], n.isHorizontal() ? "width" : "height"), _.forEach((D) => { - D.style[n.isHorizontal() ? "width" : "height"] = `${s * (A.dynamicMainBullets + 4)}px`; - }), A.dynamicMainBullets > 1 && M !== void 0 && (a += S - (M || 0), a > A.dynamicMainBullets - 1 ? a = A.dynamicMainBullets - 1 : a < 0 && (a = 0)), y = Math.max(S - a, 0), b = y + (Math.min(T.length, A.dynamicMainBullets) - 1), x = (b + y) / 2), T.forEach((D) => { - const F = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((Q) => `${A.bulletActiveClass}${Q}`)].map((Q) => typeof Q == "string" && Q.includes(" ") ? Q.split(" ") : Q).flat(); - D.classList.remove(...F); - }), _.length > 1) - T.forEach((D) => { - const F = Bs(D); - F === S ? D.classList.add(...A.bulletActiveClass.split(" ")) : n.isElement && D.setAttribute("part", "bullet"), A.dynamicBullets && (F >= y && F <= b && D.classList.add(...`${A.bulletActiveClass}-main`.split(" ")), F === y && l(D, "prev"), F === b && l(D, "next")); + let b = n.pagination.el; + b = Ut(b); + let x, E; + const y = n.virtual && n.params.virtual.enabled ? n.virtual.slides.length : n.slides.length, M = n.params.loop ? Math.ceil(y / n.params.slidesPerGroup) : n.snapGrid.length; + if (n.params.loop ? (E = n.previousRealIndex || 0, x = n.params.slidesPerGroup > 1 ? Math.floor(n.realIndex / n.params.slidesPerGroup) : n.realIndex) : typeof n.snapIndex < "u" ? (x = n.snapIndex, E = n.previousSnapIndex) : (E = n.previousIndex || 0, x = n.activeIndex || 0), A.type === "bullets" && n.pagination.bullets && n.pagination.bullets.length > 0) { + const S = n.pagination.bullets; + let U, I, C; + if (A.dynamicBullets && (s = ro(S[0], n.isHorizontal() ? "width" : "height"), b.forEach((B) => { + B.style[n.isHorizontal() ? "width" : "height"] = `${s * (A.dynamicMainBullets + 4)}px`; + }), A.dynamicMainBullets > 1 && E !== void 0 && (a += x - (E || 0), a > A.dynamicMainBullets - 1 ? a = A.dynamicMainBullets - 1 : a < 0 && (a = 0)), U = Math.max(x - a, 0), I = U + (Math.min(S.length, A.dynamicMainBullets) - 1), C = (I + U) / 2), S.forEach((B) => { + const F = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((T) => `${A.bulletActiveClass}${T}`)].map((T) => typeof T == "string" && T.includes(" ") ? T.split(" ") : T).flat(); + B.classList.remove(...F); + }), b.length > 1) + S.forEach((B) => { + const F = Ws(B); + F === x ? B.classList.add(...A.bulletActiveClass.split(" ")) : n.isElement && B.setAttribute("part", "bullet"), A.dynamicBullets && (F >= U && F <= I && B.classList.add(...`${A.bulletActiveClass}-main`.split(" ")), F === U && l(B, "prev"), F === I && l(B, "next")); }); else { - const D = T[S]; - if (D && D.classList.add(...A.bulletActiveClass.split(" ")), n.isElement && T.forEach((F, Q) => { - F.setAttribute("part", Q === S ? "bullet-active" : "bullet"); + const B = S[x]; + if (B && B.classList.add(...A.bulletActiveClass.split(" ")), n.isElement && S.forEach((F, T) => { + F.setAttribute("part", T === x ? "bullet-active" : "bullet"); }), A.dynamicBullets) { - const F = T[y], Q = T[b]; - for (let V = y; V <= b; V += 1) - T[V] && T[V].classList.add(...`${A.bulletActiveClass}-main`.split(" ")); - l(F, "prev"), l(Q, "next"); + const F = S[U], T = S[I]; + for (let N = U; N <= I; N += 1) + S[N] && S[N].classList.add(...`${A.bulletActiveClass}-main`.split(" ")); + l(F, "prev"), l(T, "next"); } } if (A.dynamicBullets) { - const D = Math.min(T.length, A.dynamicMainBullets + 4), F = (s * D - s) / 2 - x * s, Q = p ? "right" : "left"; - T.forEach((V) => { - V.style[n.isHorizontal() ? Q : "top"] = `${F}px`; + const B = Math.min(S.length, A.dynamicMainBullets + 4), F = (s * B - s) / 2 - C * s, T = p ? "right" : "left"; + S.forEach((N) => { + N.style[n.isHorizontal() ? T : "top"] = `${F}px`; }); } } - _.forEach((T, y) => { - if (A.type === "fraction" && (T.querySelectorAll(zn(A.currentClass)).forEach((b) => { - b.textContent = A.formatFractionCurrent(S + 1); - }), T.querySelectorAll(zn(A.totalClass)).forEach((b) => { - b.textContent = A.formatFractionTotal(U); + b.forEach((S, U) => { + if (A.type === "fraction" && (S.querySelectorAll(Kn(A.currentClass)).forEach((I) => { + I.textContent = A.formatFractionCurrent(x + 1); + }), S.querySelectorAll(Kn(A.totalClass)).forEach((I) => { + I.textContent = A.formatFractionTotal(M); })), A.type === "progressbar") { - let b; - A.progressbarOpposite ? b = n.isHorizontal() ? "vertical" : "horizontal" : b = n.isHorizontal() ? "horizontal" : "vertical"; - const x = (S + 1) / U; - let D = 1, F = 1; - b === "horizontal" ? D = x : F = x, T.querySelectorAll(zn(A.progressbarFillClass)).forEach((Q) => { - Q.style.transform = `translate3d(0,0,0) scaleX(${D}) scaleY(${F})`, Q.style.transitionDuration = `${n.params.speed}ms`; + let I; + A.progressbarOpposite ? I = n.isHorizontal() ? "vertical" : "horizontal" : I = n.isHorizontal() ? "horizontal" : "vertical"; + const C = (x + 1) / M; + let B = 1, F = 1; + I === "horizontal" ? B = C : F = C, S.querySelectorAll(Kn(A.progressbarFillClass)).forEach((T) => { + T.style.transform = `translate3d(0,0,0) scaleX(${B}) scaleY(${F})`, T.style.transitionDuration = `${n.params.speed}ms`; }); } - A.type === "custom" && A.renderCustom ? (Ga(T, A.renderCustom(n, S + 1, U)), y === 0 && i("paginationRender", T)) : (y === 0 && i("paginationRender", T), i("paginationUpdate", T)), n.params.watchOverflow && n.enabled && T.classList[n.isLocked ? "add" : "remove"](A.lockClass); + A.type === "custom" && A.renderCustom ? (so(S, A.renderCustom(n, x + 1, M)), U === 0 && i("paginationRender", S)) : (U === 0 && i("paginationRender", S), i("paginationUpdate", S)), n.params.watchOverflow && n.enabled && S.classList[n.isLocked ? "add" : "remove"](A.lockClass); }); } - function f() { + function h() { const p = n.params.pagination; if (o()) return; const A = n.virtual && n.params.virtual.enabled ? n.virtual.slides.length : n.grid && n.params.grid.rows > 1 ? n.slides.length / Math.ceil(n.params.grid.rows) : n.slides.length; - let _ = n.pagination.el; - _ = bt(_); - let S = ""; + let b = n.pagination.el; + b = Ut(b); + let x = ""; if (p.type === "bullets") { - let M = n.params.loop ? Math.ceil(A / n.params.slidesPerGroup) : n.snapGrid.length; - n.params.freeMode && n.params.freeMode.enabled && M > A && (M = A); - for (let C = 0; C < M; C += 1) - p.renderBullet ? S += p.renderBullet.call(n, C, p.bulletClass) : S += `<${p.bulletElement} ${n.isElement ? 'part="bullet"' : ""} class="${p.bulletClass}">${p.bulletElement}>`; + let E = n.params.loop ? Math.ceil(A / n.params.slidesPerGroup) : n.snapGrid.length; + n.params.freeMode && n.params.freeMode.enabled && E > A && (E = A); + for (let y = 0; y < E; y += 1) + p.renderBullet ? x += p.renderBullet.call(n, y, p.bulletClass) : x += `<${p.bulletElement} ${n.isElement ? 'part="bullet"' : ""} class="${p.bulletClass}">${p.bulletElement}>`; } - p.type === "fraction" && (p.renderFraction ? S = p.renderFraction.call(n, p.currentClass, p.totalClass) : S = ` / `), p.type === "progressbar" && (p.renderProgressbar ? S = p.renderProgressbar.call(n, p.progressbarFillClass) : S = ``), n.pagination.bullets = [], _.forEach((M) => { - p.type !== "custom" && Ga(M, S || ""), p.type === "bullets" && n.pagination.bullets.push(...M.querySelectorAll(zn(p.bulletClass))); - }), p.type !== "custom" && i("paginationRender", _[0]); + p.type === "fraction" && (p.renderFraction ? x = p.renderFraction.call(n, p.currentClass, p.totalClass) : x = ` / `), p.type === "progressbar" && (p.renderProgressbar ? x = p.renderProgressbar.call(n, p.progressbarFillClass) : x = ``), n.pagination.bullets = [], b.forEach((E) => { + p.type !== "custom" && so(E, x || ""), p.type === "bullets" && n.pagination.bullets.push(...E.querySelectorAll(Kn(p.bulletClass))); + }), p.type !== "custom" && i("paginationRender", b[0]); } - function u() { - n.params.pagination = Wo(n, n.originalParams.pagination, n.params.pagination, { + function f() { + n.params.pagination = al(n, n.originalParams.pagination, n.params.pagination, { el: "swiper-pagination" }); const p = n.params.pagination; if (!p.el) return; let A; - typeof p.el == "string" && n.isElement && (A = n.el.querySelector(p.el)), !A && typeof p.el == "string" && (A = [...document.querySelectorAll(p.el)]), A || (A = p.el), !(!A || A.length === 0) && (n.params.uniqueNavElements && typeof p.el == "string" && Array.isArray(A) && A.length > 1 && (A = [...n.el.querySelectorAll(p.el)], A.length > 1 && (A = A.find((_) => Ds(_, ".swiper")[0] === n.el))), Array.isArray(A) && A.length === 1 && (A = A[0]), Object.assign(n.pagination, { + typeof p.el == "string" && n.isElement && (A = n.el.querySelector(p.el)), !A && typeof p.el == "string" && (A = [...document.querySelectorAll(p.el)]), A || (A = p.el), !(!A || A.length === 0) && (n.params.uniqueNavElements && typeof p.el == "string" && Array.isArray(A) && A.length > 1 && (A = [...n.el.querySelectorAll(p.el)], A.length > 1 && (A = A.find((b) => Gs(b, ".swiper")[0] === n.el))), Array.isArray(A) && A.length === 1 && (A = A[0]), Object.assign(n.pagination, { el: A - }), A = bt(A), A.forEach((_) => { - p.type === "bullets" && p.clickable && _.classList.add(...(p.clickableClass || "").split(" ")), _.classList.add(p.modifierClass + p.type), _.classList.add(n.isHorizontal() ? p.horizontalClass : p.verticalClass), p.type === "bullets" && p.dynamicBullets && (_.classList.add(`${p.modifierClass}${p.type}-dynamic`), a = 0, p.dynamicMainBullets < 1 && (p.dynamicMainBullets = 1)), p.type === "progressbar" && p.progressbarOpposite && _.classList.add(p.progressbarOppositeClass), p.clickable && _.addEventListener("click", d), n.enabled || _.classList.add(p.lockClass); + }), A = Ut(A), A.forEach((b) => { + p.type === "bullets" && p.clickable && b.classList.add(...(p.clickableClass || "").split(" ")), b.classList.add(p.modifierClass + p.type), b.classList.add(n.isHorizontal() ? p.horizontalClass : p.verticalClass), p.type === "bullets" && p.dynamicBullets && (b.classList.add(`${p.modifierClass}${p.type}-dynamic`), a = 0, p.dynamicMainBullets < 1 && (p.dynamicMainBullets = 1)), p.type === "progressbar" && p.progressbarOpposite && b.classList.add(p.progressbarOppositeClass), p.clickable && b.addEventListener("click", d), n.enabled || b.classList.add(p.lockClass); })); } function g() { const p = n.params.pagination; if (o()) return; let A = n.pagination.el; - A && (A = bt(A), A.forEach((_) => { - _.classList.remove(p.hiddenClass), _.classList.remove(p.modifierClass + p.type), _.classList.remove(n.isHorizontal() ? p.horizontalClass : p.verticalClass), p.clickable && (_.classList.remove(...(p.clickableClass || "").split(" ")), _.removeEventListener("click", d)); - })), n.pagination.bullets && n.pagination.bullets.forEach((_) => _.classList.remove(...p.bulletActiveClass.split(" "))); + A && (A = Ut(A), A.forEach((b) => { + b.classList.remove(p.hiddenClass), b.classList.remove(p.modifierClass + p.type), b.classList.remove(n.isHorizontal() ? p.horizontalClass : p.verticalClass), p.clickable && (b.classList.remove(...(p.clickableClass || "").split(" ")), b.removeEventListener("click", d)); + })), n.pagination.bullets && n.pagination.bullets.forEach((b) => b.classList.remove(...p.bulletActiveClass.split(" "))); } t("changeDirection", () => { if (!n.pagination || !n.pagination.el) return; @@ -2749,32 +2749,32 @@ function Vu({ let { el: A } = n.pagination; - A = bt(A), A.forEach((_) => { - _.classList.remove(p.horizontalClass, p.verticalClass), _.classList.add(n.isHorizontal() ? p.horizontalClass : p.verticalClass); + A = Ut(A), A.forEach((b) => { + b.classList.remove(p.horizontalClass, p.verticalClass), b.classList.add(n.isHorizontal() ? p.horizontalClass : p.verticalClass); }); }), t("init", () => { - n.params.pagination.enabled === !1 ? m() : (u(), f(), h()); + n.params.pagination.enabled === !1 ? m() : (f(), h(), u()); }), t("activeIndexChange", () => { - typeof n.snapIndex > "u" && h(); + typeof n.snapIndex > "u" && u(); }), t("snapIndexChange", () => { - h(); + u(); }), t("snapGridLengthChange", () => { - f(), h(); + h(), u(); }), t("destroy", () => { g(); }), t("enable disable", () => { let { el: p } = n.pagination; - p && (p = bt(p), p.forEach((A) => A.classList[n.enabled ? "remove" : "add"](n.params.pagination.lockClass))); + p && (p = Ut(p), p.forEach((A) => A.classList[n.enabled ? "remove" : "add"](n.params.pagination.lockClass))); }), t("lock unlock", () => { - h(); + u(); }), t("click", (p, A) => { - const _ = A.target, S = bt(n.pagination.el); - if (n.params.pagination.el && n.params.pagination.hideOnClick && S && S.length > 0 && !_.classList.contains(n.params.pagination.bulletClass)) { - if (n.navigation && (n.navigation.nextEl && _ === n.navigation.nextEl || n.navigation.prevEl && _ === n.navigation.prevEl)) return; - const M = S[0].classList.contains(n.params.pagination.hiddenClass); - i(M === !0 ? "paginationShow" : "paginationHide"), S.forEach((C) => C.classList.toggle(n.params.pagination.hiddenClass)); + const b = A.target, x = Ut(n.pagination.el); + if (n.params.pagination.el && n.params.pagination.hideOnClick && x && x.length > 0 && !b.classList.contains(n.params.pagination.bulletClass)) { + if (n.navigation && (n.navigation.nextEl && b === n.navigation.nextEl || n.navigation.prevEl && b === n.navigation.prevEl)) return; + const E = x[0].classList.contains(n.params.pagination.hiddenClass); + i(E === !0 ? "paginationShow" : "paginationHide"), x.forEach((y) => y.classList.toggle(n.params.pagination.hiddenClass)); } }); const v = () => { @@ -2782,31 +2782,31 @@ function Vu({ let { el: p } = n.pagination; - p && (p = bt(p), p.forEach((A) => A.classList.remove(n.params.pagination.paginationDisabledClass))), u(), f(), h(); + p && (p = Ut(p), p.forEach((A) => A.classList.remove(n.params.pagination.paginationDisabledClass))), f(), h(), u(); }, m = () => { n.el.classList.add(n.params.pagination.paginationDisabledClass); let { el: p } = n.pagination; - p && (p = bt(p), p.forEach((A) => A.classList.add(n.params.pagination.paginationDisabledClass))), g(); + p && (p = Ut(p), p.forEach((A) => A.classList.add(n.params.pagination.paginationDisabledClass))), g(); }; Object.assign(n.pagination, { enable: v, disable: m, - render: f, - update: h, - init: u, + render: h, + update: u, + init: f, destroy: g }); } -function ku({ +function xf({ swiper: n, extendParams: e, on: t, emit: i }) { - const r = Ht(); - let s = !1, a = null, o = null, l, c, d, h; + const r = $t(); + let s = !1, a = null, o = null, l, c, d, u; e({ scrollbar: { el: null, @@ -2824,167 +2824,167 @@ function ku({ el: null, dragEl: null }; - function f() { + function h() { if (!n.params.scrollbar.el || !n.scrollbar.el) return; const { - scrollbar: x, - rtlTranslate: D + scrollbar: C, + rtlTranslate: B } = n, { dragEl: F, - el: Q - } = x, V = n.params.scrollbar, O = n.params.loop ? n.progressLoop : n.progress; - let B = c, R = (d - c) * O; - D ? (R = -R, R > 0 ? (B = c - R, R = 0) : -R + c > d && (B = d + R)) : R < 0 ? (B = c + R, R = 0) : R + c > d && (B = d - R), n.isHorizontal() ? (F.style.transform = `translate3d(${R}px, 0, 0)`, F.style.width = `${B}px`) : (F.style.transform = `translate3d(0px, ${R}px, 0)`, F.style.height = `${B}px`), V.hide && (clearTimeout(a), Q.style.opacity = 1, a = setTimeout(() => { - Q.style.opacity = 0, Q.style.transitionDuration = "400ms"; + el: T + } = C, N = n.params.scrollbar, O = n.params.loop ? n.progressLoop : n.progress; + let R = c, L = (d - c) * O; + B ? (L = -L, L > 0 ? (R = c - L, L = 0) : -L + c > d && (R = d + L)) : L < 0 ? (R = c + L, L = 0) : L + c > d && (R = d - L), n.isHorizontal() ? (F.style.transform = `translate3d(${L}px, 0, 0)`, F.style.width = `${R}px`) : (F.style.transform = `translate3d(0px, ${L}px, 0)`, F.style.height = `${R}px`), N.hide && (clearTimeout(a), T.style.opacity = 1, a = setTimeout(() => { + T.style.opacity = 0, T.style.transitionDuration = "400ms"; }, 1e3)); } - function u(x) { - !n.params.scrollbar.el || !n.scrollbar.el || (n.scrollbar.dragEl.style.transitionDuration = `${x}ms`); + function f(C) { + !n.params.scrollbar.el || !n.scrollbar.el || (n.scrollbar.dragEl.style.transitionDuration = `${C}ms`); } function g() { if (!n.params.scrollbar.el || !n.scrollbar.el) return; const { - scrollbar: x + scrollbar: C } = n, { - dragEl: D, + dragEl: B, el: F - } = x; - D.style.width = "", D.style.height = "", d = n.isHorizontal() ? F.offsetWidth : F.offsetHeight, h = n.size / (n.virtualSize + n.params.slidesOffsetBefore - (n.params.centeredSlides ? n.snapGrid[0] : 0)), n.params.scrollbar.dragSize === "auto" ? c = d * h : c = parseInt(n.params.scrollbar.dragSize, 10), n.isHorizontal() ? D.style.width = `${c}px` : D.style.height = `${c}px`, h >= 1 ? F.style.display = "none" : F.style.display = "", n.params.scrollbar.hide && (F.style.opacity = 0), n.params.watchOverflow && n.enabled && x.el.classList[n.isLocked ? "add" : "remove"](n.params.scrollbar.lockClass); + } = C; + B.style.width = "", B.style.height = "", d = n.isHorizontal() ? F.offsetWidth : F.offsetHeight, u = n.size / (n.virtualSize + n.params.slidesOffsetBefore - (n.params.centeredSlides ? n.snapGrid[0] : 0)), n.params.scrollbar.dragSize === "auto" ? c = d * u : c = parseInt(n.params.scrollbar.dragSize, 10), n.isHorizontal() ? B.style.width = `${c}px` : B.style.height = `${c}px`, u >= 1 ? F.style.display = "none" : F.style.display = "", n.params.scrollbar.hide && (F.style.opacity = 0), n.params.watchOverflow && n.enabled && C.el.classList[n.isLocked ? "add" : "remove"](n.params.scrollbar.lockClass); } - function v(x) { - return n.isHorizontal() ? x.clientX : x.clientY; + function v(C) { + return n.isHorizontal() ? C.clientX : C.clientY; } - function m(x) { + function m(C) { const { - scrollbar: D, + scrollbar: B, rtlTranslate: F } = n, { - el: Q - } = D; - let V; - V = (v(x) - md(Q)[n.isHorizontal() ? "left" : "top"] - (l !== null ? l : c / 2)) / (d - c), V = Math.max(Math.min(V, 1), 0), F && (V = 1 - V); - const O = n.minTranslate() + (n.maxTranslate() - n.minTranslate()) * V; + el: T + } = B; + let N; + N = (v(C) - Wd(T)[n.isHorizontal() ? "left" : "top"] - (l !== null ? l : c / 2)) / (d - c), N = Math.max(Math.min(N, 1), 0), F && (N = 1 - N); + const O = n.minTranslate() + (n.maxTranslate() - n.minTranslate()) * N; n.updateProgress(O), n.setTranslate(O), n.updateActiveIndex(), n.updateSlidesClasses(); } - function p(x) { - const D = n.params.scrollbar, { + function p(C) { + const B = n.params.scrollbar, { scrollbar: F, - wrapperEl: Q + wrapperEl: T } = n, { - el: V, + el: N, dragEl: O } = F; - s = !0, l = x.target === O ? v(x) - x.target.getBoundingClientRect()[n.isHorizontal() ? "left" : "top"] : null, x.preventDefault(), x.stopPropagation(), Q.style.transitionDuration = "100ms", O.style.transitionDuration = "100ms", m(x), clearTimeout(o), V.style.transitionDuration = "0ms", D.hide && (V.style.opacity = 1), n.params.cssMode && (n.wrapperEl.style["scroll-snap-type"] = "none"), i("scrollbarDragStart", x); + s = !0, l = C.target === O ? v(C) - C.target.getBoundingClientRect()[n.isHorizontal() ? "left" : "top"] : null, C.preventDefault(), C.stopPropagation(), T.style.transitionDuration = "100ms", O.style.transitionDuration = "100ms", m(C), clearTimeout(o), N.style.transitionDuration = "0ms", B.hide && (N.style.opacity = 1), n.params.cssMode && (n.wrapperEl.style["scroll-snap-type"] = "none"), i("scrollbarDragStart", C); } - function A(x) { + function A(C) { const { - scrollbar: D, + scrollbar: B, wrapperEl: F } = n, { - el: Q, - dragEl: V - } = D; - s && (x.preventDefault && x.cancelable ? x.preventDefault() : x.returnValue = !1, m(x), F.style.transitionDuration = "0ms", Q.style.transitionDuration = "0ms", V.style.transitionDuration = "0ms", i("scrollbarDragMove", x)); + el: T, + dragEl: N + } = B; + s && (C.preventDefault && C.cancelable ? C.preventDefault() : C.returnValue = !1, m(C), F.style.transitionDuration = "0ms", T.style.transitionDuration = "0ms", N.style.transitionDuration = "0ms", i("scrollbarDragMove", C)); } - function _(x) { - const D = n.params.scrollbar, { + function b(C) { + const B = n.params.scrollbar, { scrollbar: F, - wrapperEl: Q + wrapperEl: T } = n, { - el: V + el: N } = F; - s && (s = !1, n.params.cssMode && (n.wrapperEl.style["scroll-snap-type"] = "", Q.style.transitionDuration = ""), D.hide && (clearTimeout(o), o = zo(() => { - V.style.opacity = 0, V.style.transitionDuration = "400ms"; - }, 1e3)), i("scrollbarDragEnd", x), D.snapOnRelease && n.slideToClosest()); + s && (s = !1, n.params.cssMode && (n.wrapperEl.style["scroll-snap-type"] = "", T.style.transitionDuration = ""), B.hide && (clearTimeout(o), o = sl(() => { + N.style.opacity = 0, N.style.transitionDuration = "400ms"; + }, 1e3)), i("scrollbarDragEnd", C), B.snapOnRelease && n.slideToClosest()); } - function S(x) { + function x(C) { const { - scrollbar: D, + scrollbar: B, params: F - } = n, Q = D.el; - if (!Q) return; - const V = Q, O = F.passiveListeners ? { + } = n, T = B.el; + if (!T) return; + const N = T, O = F.passiveListeners ? { passive: !1, capture: !1 - } : !1, B = F.passiveListeners ? { + } : !1, R = F.passiveListeners ? { passive: !0, capture: !1 } : !1; - if (!V) return; - const R = x === "on" ? "addEventListener" : "removeEventListener"; - V[R]("pointerdown", p, O), r[R]("pointermove", A, O), r[R]("pointerup", _, B); + if (!N) return; + const L = C === "on" ? "addEventListener" : "removeEventListener"; + N[L]("pointerdown", p, O), r[L]("pointermove", A, O), r[L]("pointerup", b, R); } - function M() { - !n.params.scrollbar.el || !n.scrollbar.el || S("on"); + function E() { + !n.params.scrollbar.el || !n.scrollbar.el || x("on"); } - function C() { - !n.params.scrollbar.el || !n.scrollbar.el || S("off"); + function y() { + !n.params.scrollbar.el || !n.scrollbar.el || x("off"); } - function U() { + function M() { const { - scrollbar: x, - el: D + scrollbar: C, + el: B } = n; - n.params.scrollbar = Wo(n, n.originalParams.scrollbar, n.params.scrollbar, { + n.params.scrollbar = al(n, n.originalParams.scrollbar, n.params.scrollbar, { el: "swiper-scrollbar" }); const F = n.params.scrollbar; if (!F.el) return; - let Q; - if (typeof F.el == "string" && n.isElement && (Q = n.el.querySelector(F.el)), !Q && typeof F.el == "string") { - if (Q = r.querySelectorAll(F.el), !Q.length) return; - } else Q || (Q = F.el); - n.params.uniqueNavElements && typeof F.el == "string" && Q.length > 1 && D.querySelectorAll(F.el).length === 1 && (Q = D.querySelector(F.el)), Q.length > 0 && (Q = Q[0]), Q.classList.add(n.isHorizontal() ? F.horizontalClass : F.verticalClass); - let V; - Q && (V = Q.querySelector(zn(n.params.scrollbar.dragClass)), V || (V = Ur("div", n.params.scrollbar.dragClass), Q.append(V))), Object.assign(x, { - el: Q, - dragEl: V - }), F.draggable && M(), Q && Q.classList[n.enabled ? "remove" : "add"](...Yi(n.params.scrollbar.lockClass)); - } - function T() { - const x = n.params.scrollbar, D = n.scrollbar.el; - D && D.classList.remove(...Yi(n.isHorizontal() ? x.horizontalClass : x.verticalClass)), C(); + let T; + if (typeof F.el == "string" && n.isElement && (T = n.el.querySelector(F.el)), !T && typeof F.el == "string") { + if (T = r.querySelectorAll(F.el), !T.length) return; + } else T || (T = F.el); + n.params.uniqueNavElements && typeof F.el == "string" && T.length > 1 && B.querySelectorAll(F.el).length === 1 && (T = B.querySelector(F.el)), T.length > 0 && (T = T[0]), T.classList.add(n.isHorizontal() ? F.horizontalClass : F.verticalClass); + let N; + T && (N = T.querySelector(Kn(n.params.scrollbar.dragClass)), N || (N = Br("div", n.params.scrollbar.dragClass), T.append(N))), Object.assign(C, { + el: T, + dragEl: N + }), F.draggable && E(), T && T.classList[n.enabled ? "remove" : "add"](...dn(n.params.scrollbar.lockClass)); + } + function S() { + const C = n.params.scrollbar, B = n.scrollbar.el; + B && B.classList.remove(...dn(n.isHorizontal() ? C.horizontalClass : C.verticalClass)), y(); } t("changeDirection", () => { if (!n.scrollbar || !n.scrollbar.el) return; - const x = n.params.scrollbar; + const C = n.params.scrollbar; let { - el: D + el: B } = n.scrollbar; - D = bt(D), D.forEach((F) => { - F.classList.remove(x.horizontalClass, x.verticalClass), F.classList.add(n.isHorizontal() ? x.horizontalClass : x.verticalClass); + B = Ut(B), B.forEach((F) => { + F.classList.remove(C.horizontalClass, C.verticalClass), F.classList.add(n.isHorizontal() ? C.horizontalClass : C.verticalClass); }); }), t("init", () => { - n.params.scrollbar.enabled === !1 ? b() : (U(), g(), f()); + n.params.scrollbar.enabled === !1 ? I() : (M(), g(), h()); }), t("update resize observerUpdate lock unlock changeDirection", () => { g(); }), t("setTranslate", () => { - f(); - }), t("setTransition", (x, D) => { - u(D); + h(); + }), t("setTransition", (C, B) => { + f(B); }), t("enable disable", () => { const { - el: x + el: C } = n.scrollbar; - x && x.classList[n.enabled ? "remove" : "add"](...Yi(n.params.scrollbar.lockClass)); + C && C.classList[n.enabled ? "remove" : "add"](...dn(n.params.scrollbar.lockClass)); }), t("destroy", () => { - T(); + S(); }); - const y = () => { - n.el.classList.remove(...Yi(n.params.scrollbar.scrollbarDisabledClass)), n.scrollbar.el && n.scrollbar.el.classList.remove(...Yi(n.params.scrollbar.scrollbarDisabledClass)), U(), g(), f(); - }, b = () => { - n.el.classList.add(...Yi(n.params.scrollbar.scrollbarDisabledClass)), n.scrollbar.el && n.scrollbar.el.classList.add(...Yi(n.params.scrollbar.scrollbarDisabledClass)), T(); + const U = () => { + n.el.classList.remove(...dn(n.params.scrollbar.scrollbarDisabledClass)), n.scrollbar.el && n.scrollbar.el.classList.remove(...dn(n.params.scrollbar.scrollbarDisabledClass)), M(), g(), h(); + }, I = () => { + n.el.classList.add(...dn(n.params.scrollbar.scrollbarDisabledClass)), n.scrollbar.el && n.scrollbar.el.classList.add(...dn(n.params.scrollbar.scrollbarDisabledClass)), S(); }; Object.assign(n.scrollbar, { - enable: y, - disable: b, + enable: U, + disable: I, updateSize: g, - setTranslate: f, - init: U, - destroy: T + setTranslate: h, + init: M, + destroy: S }); } -function Ou({ +function bf({ swiper: n, extendParams: e, on: t, @@ -3006,111 +3006,111 @@ function Ou({ pauseOnMouseEnter: !1 } }); - let s, a, o = r && r.autoplay ? r.autoplay.delay : 3e3, l = r && r.autoplay ? r.autoplay.delay : 3e3, c, d = (/* @__PURE__ */ new Date()).getTime(), h, f, u, g, v, m; - function p(B) { - !n || n.destroyed || !n.wrapperEl || B.target === n.wrapperEl && (n.wrapperEl.removeEventListener("transitionend", p), !(m || B.detail && B.detail.bySwiperTouchMove) && y()); + let s, a, o = r && r.autoplay ? r.autoplay.delay : 3e3, l = r && r.autoplay ? r.autoplay.delay : 3e3, c, d = (/* @__PURE__ */ new Date()).getTime(), u, h, f, g, v, m; + function p(R) { + !n || n.destroyed || !n.wrapperEl || R.target === n.wrapperEl && (n.wrapperEl.removeEventListener("transitionend", p), !(m || R.detail && R.detail.bySwiperTouchMove) && U()); } const A = () => { if (n.destroyed || !n.autoplay.running) return; - n.autoplay.paused ? h = !0 : h && (l = c, h = !1); - const B = n.autoplay.paused ? c : d + l - (/* @__PURE__ */ new Date()).getTime(); - n.autoplay.timeLeft = B, i("autoplayTimeLeft", B, B / o), a = requestAnimationFrame(() => { + n.autoplay.paused ? u = !0 : u && (l = c, u = !1); + const R = n.autoplay.paused ? c : d + l - (/* @__PURE__ */ new Date()).getTime(); + n.autoplay.timeLeft = R, i("autoplayTimeLeft", R, R / o), a = requestAnimationFrame(() => { A(); }); - }, _ = () => { - let B; - return n.virtual && n.params.virtual.enabled ? B = n.slides.find((Z) => Z.classList.contains("swiper-slide-active")) : B = n.slides[n.activeIndex], B ? parseInt(B.getAttribute("data-swiper-autoplay"), 10) : void 0; - }, S = () => { - let B = n.params.autoplay.delay; - const R = _(); - return !Number.isNaN(R) && R > 0 && (B = R), B; - }, M = (B) => { + }, b = () => { + let R; + return n.virtual && n.params.virtual.enabled ? R = n.slides.find((k) => k.classList.contains("swiper-slide-active")) : R = n.slides[n.activeIndex], R ? parseInt(R.getAttribute("data-swiper-autoplay"), 10) : void 0; + }, x = () => { + let R = n.params.autoplay.delay; + const L = b(); + return !Number.isNaN(L) && L > 0 && (R = L), R; + }, E = (R) => { if (n.destroyed || !n.autoplay.running) return; cancelAnimationFrame(a), A(); - let R = B; - typeof R > "u" && (R = S(), o = R, l = R), c = R; - const Z = n.params.speed, K = () => { - !n || n.destroyed || (n.params.autoplay.reverseDirection ? !n.isBeginning || n.params.loop || n.params.rewind ? (n.slidePrev(Z, !0, !0), i("autoplay")) : n.params.autoplay.stopOnLastSlide || (n.slideTo(n.slides.length - 1, Z, !0, !0), i("autoplay")) : !n.isEnd || n.params.loop || n.params.rewind ? (n.slideNext(Z, !0, !0), i("autoplay")) : n.params.autoplay.stopOnLastSlide || (n.slideTo(0, Z, !0, !0), i("autoplay")), n.params.cssMode && (d = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => { - M(); + let L = R; + typeof L > "u" && (L = x(), o = L, l = L), c = L; + const k = n.params.speed, G = () => { + !n || n.destroyed || (n.params.autoplay.reverseDirection ? !n.isBeginning || n.params.loop || n.params.rewind ? (n.slidePrev(k, !0, !0), i("autoplay")) : n.params.autoplay.stopOnLastSlide || (n.slideTo(n.slides.length - 1, k, !0, !0), i("autoplay")) : !n.isEnd || n.params.loop || n.params.rewind ? (n.slideNext(k, !0, !0), i("autoplay")) : n.params.autoplay.stopOnLastSlide || (n.slideTo(0, k, !0, !0), i("autoplay")), n.params.cssMode && (d = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => { + E(); }))); }; - return R > 0 ? (clearTimeout(s), s = setTimeout(() => { - K(); - }, R)) : requestAnimationFrame(() => { - K(); - }), R; - }, C = () => { - d = (/* @__PURE__ */ new Date()).getTime(), n.autoplay.running = !0, M(), i("autoplayStart"); - }, U = () => { + return L > 0 ? (clearTimeout(s), s = setTimeout(() => { + G(); + }, L)) : requestAnimationFrame(() => { + G(); + }), L; + }, y = () => { + d = (/* @__PURE__ */ new Date()).getTime(), n.autoplay.running = !0, E(), i("autoplayStart"); + }, M = () => { n.autoplay.running = !1, clearTimeout(s), cancelAnimationFrame(a), i("autoplayStop"); - }, T = (B, R) => { + }, S = (R, L) => { if (n.destroyed || !n.autoplay.running) return; - clearTimeout(s), B || (v = !0); - const Z = () => { - i("autoplayPause"), n.params.autoplay.waitForTransition ? n.wrapperEl.addEventListener("transitionend", p) : y(); + clearTimeout(s), R || (v = !0); + const k = () => { + i("autoplayPause"), n.params.autoplay.waitForTransition ? n.wrapperEl.addEventListener("transitionend", p) : U(); }; - if (n.autoplay.paused = !0, R) { - Z(); + if (n.autoplay.paused = !0, L) { + k(); return; } - c = (c || n.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - d), !(n.isEnd && c < 0 && !n.params.loop) && (c < 0 && (c = 0), Z()); - }, y = () => { - n.isEnd && c < 0 && !n.params.loop || n.destroyed || !n.autoplay.running || (d = (/* @__PURE__ */ new Date()).getTime(), v ? (v = !1, M(c)) : M(), n.autoplay.paused = !1, i("autoplayResume")); - }, b = () => { + c = (c || n.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - d), !(n.isEnd && c < 0 && !n.params.loop) && (c < 0 && (c = 0), k()); + }, U = () => { + n.isEnd && c < 0 && !n.params.loop || n.destroyed || !n.autoplay.running || (d = (/* @__PURE__ */ new Date()).getTime(), v ? (v = !1, E(c)) : E(), n.autoplay.paused = !1, i("autoplayResume")); + }, I = () => { if (n.destroyed || !n.autoplay.running) return; - const B = Ht(); - B.visibilityState === "hidden" && (v = !0, T(!0)), B.visibilityState === "visible" && y(); - }, x = (B) => { - B.pointerType === "mouse" && (v = !0, m = !0, !(n.animating || n.autoplay.paused) && T(!0)); - }, D = (B) => { - B.pointerType === "mouse" && (m = !1, n.autoplay.paused && y()); + const R = $t(); + R.visibilityState === "hidden" && (v = !0, S(!0)), R.visibilityState === "visible" && U(); + }, C = (R) => { + R.pointerType === "mouse" && (v = !0, m = !0, !(n.animating || n.autoplay.paused) && S(!0)); + }, B = (R) => { + R.pointerType === "mouse" && (m = !1, n.autoplay.paused && U()); }, F = () => { - n.params.autoplay.pauseOnMouseEnter && (n.el.addEventListener("pointerenter", x), n.el.addEventListener("pointerleave", D)); - }, Q = () => { - n.el && typeof n.el != "string" && (n.el.removeEventListener("pointerenter", x), n.el.removeEventListener("pointerleave", D)); - }, V = () => { - Ht().addEventListener("visibilitychange", b); + n.params.autoplay.pauseOnMouseEnter && (n.el.addEventListener("pointerenter", C), n.el.addEventListener("pointerleave", B)); + }, T = () => { + n.el && typeof n.el != "string" && (n.el.removeEventListener("pointerenter", C), n.el.removeEventListener("pointerleave", B)); + }, N = () => { + $t().addEventListener("visibilitychange", I); }, O = () => { - Ht().removeEventListener("visibilitychange", b); + $t().removeEventListener("visibilitychange", I); }; t("init", () => { - n.params.autoplay.enabled && (F(), V(), C()); + n.params.autoplay.enabled && (F(), N(), y()); }), t("destroy", () => { - Q(), O(), n.autoplay.running && U(); + T(), O(), n.autoplay.running && M(); }), t("_freeModeStaticRelease", () => { - (u || v) && y(); + (f || v) && U(); }), t("_freeModeNoMomentumRelease", () => { - n.params.autoplay.disableOnInteraction ? U() : T(!0, !0); - }), t("beforeTransitionStart", (B, R, Z) => { - n.destroyed || !n.autoplay.running || (Z || !n.params.autoplay.disableOnInteraction ? T(!0, !0) : U()); + n.params.autoplay.disableOnInteraction ? M() : S(!0, !0); + }), t("beforeTransitionStart", (R, L, k) => { + n.destroyed || !n.autoplay.running || (k || !n.params.autoplay.disableOnInteraction ? S(!0, !0) : M()); }), t("sliderFirstMove", () => { if (!(n.destroyed || !n.autoplay.running)) { if (n.params.autoplay.disableOnInteraction) { - U(); + M(); return; } - f = !0, u = !1, v = !1, g = setTimeout(() => { - v = !0, u = !0, T(!0); + h = !0, f = !1, v = !1, g = setTimeout(() => { + v = !0, f = !0, S(!0); }, 200); } }), t("touchEnd", () => { - if (!(n.destroyed || !n.autoplay.running || !f)) { + if (!(n.destroyed || !n.autoplay.running || !h)) { if (clearTimeout(g), clearTimeout(s), n.params.autoplay.disableOnInteraction) { - u = !1, f = !1; + f = !1, h = !1; return; } - u && n.params.cssMode && y(), u = !1, f = !1; + f && n.params.cssMode && U(), f = !1, h = !1; } }), t("slideChange", () => { - n.destroyed || !n.autoplay.running || n.autoplay.paused && (c = S(), o = S()); + n.destroyed || !n.autoplay.running || n.autoplay.paused && (c = x(), o = x()); }), Object.assign(n.autoplay, { - start: C, - stop: U, - pause: T, - resume: y + start: y, + stop: M, + pause: S, + resume: U }); } -function zu({ +function Ef({ swiper: n, extendParams: e, on: t @@ -3135,10 +3135,10 @@ function zu({ function a() { const d = n.thumbs.swiper; if (!d || d.destroyed) return; - const h = d.clickedIndex, f = d.clickedSlide; - if (f && f.classList.contains(n.params.thumbs.slideThumbActiveClass) || typeof h > "u" || h === null) return; - let u; - d.params.loop ? u = parseInt(d.clickedSlide.getAttribute("data-swiper-slide-index"), 10) : u = h, n.params.loop ? n.slideToLoop(u) : n.slideTo(u); + const u = d.clickedIndex, h = d.clickedSlide; + if (h && h.classList.contains(n.params.thumbs.slideThumbActiveClass) || typeof u > "u" || u === null) return; + let f; + d.params.loop ? f = parseInt(d.clickedSlide.getAttribute("data-swiper-slide-index"), 10) : f = u, n.params.loop ? n.slideToLoop(f) : n.slideTo(f); } function o() { const { @@ -3146,8 +3146,8 @@ function zu({ } = n.params; if (i) return !1; i = !0; - const h = n.constructor; - if (d.swiper instanceof h) { + const u = n.constructor; + if (d.swiper instanceof u) { if (d.swiper.destroyed) return i = !1, !1; n.thumbs.swiper = d.swiper, Object.assign(n.thumbs.swiper.originalParams, { @@ -3157,12 +3157,12 @@ function zu({ watchSlidesProgress: !0, slideToClickedSlide: !1 }), n.thumbs.swiper.update(); - } else if (Sr(d.swiper)) { - const f = Object.assign({}, d.swiper); - Object.assign(f, { + } else if (Er(d.swiper)) { + const h = Object.assign({}, d.swiper); + Object.assign(h, { watchSlidesProgress: !0, slideToClickedSlide: !1 - }), n.thumbs.swiper = new h(f), r = !0; + }), n.thumbs.swiper = new u(h), r = !0; } return n.thumbs.swiper.el.classList.add(n.params.thumbs.thumbsContainerClass), n.thumbs.swiper.on("tap", a), s() && n.thumbs.swiper.on("virtualUpdate", () => { l(!1, { @@ -3170,34 +3170,34 @@ function zu({ }); }), !0; } - function l(d, h) { - const f = n.thumbs.swiper; - if (!f || f.destroyed) return; - let u = 1; + function l(d, u) { + const h = n.thumbs.swiper; + if (!h || h.destroyed) return; + let f = 1; const g = n.params.thumbs.slideThumbActiveClass; - if (n.params.slidesPerView > 1 && !n.params.centeredSlides && (u = n.params.slidesPerView), n.params.thumbs.multipleActiveThumbs || (u = 1), u = Math.floor(u), f.slides.forEach((v) => v.classList.remove(g)), f.params.loop || s()) - for (let v = 0; v < u; v += 1) - gi(f.slidesEl, `[data-swiper-slide-index="${n.realIndex + v}"]`).forEach((m) => { + if (n.params.slidesPerView > 1 && !n.params.centeredSlides && (f = n.params.slidesPerView), n.params.thumbs.multipleActiveThumbs || (f = 1), f = Math.floor(f), h.slides.forEach((v) => v.classList.remove(g)), h.params.loop || s()) + for (let v = 0; v < f; v += 1) + Ei(h.slidesEl, `[data-swiper-slide-index="${n.realIndex + v}"]`).forEach((m) => { m.classList.add(g); }); else - for (let v = 0; v < u; v += 1) - f.slides[n.realIndex + v] && f.slides[n.realIndex + v].classList.add(g); - (h?.autoScroll ?? !0) && c(d ? 0 : void 0); + for (let v = 0; v < f; v += 1) + h.slides[n.realIndex + v] && h.slides[n.realIndex + v].classList.add(g); + (u?.autoScroll ?? !0) && c(d ? 0 : void 0); } function c(d) { - const h = n.thumbs.swiper; - if (!h || h.destroyed) return; - const f = h.params.slidesPerView === "auto" ? h.slidesPerViewDynamic() : h.params.slidesPerView, u = n.params.thumbs.autoScrollOffset, g = u && !h.params.loop; - if (n.realIndex !== h.realIndex || g) { - const v = h.activeIndex; + const u = n.thumbs.swiper; + if (!u || u.destroyed) return; + const h = u.params.slidesPerView === "auto" ? u.slidesPerViewDynamic() : u.params.slidesPerView, f = n.params.thumbs.autoScrollOffset, g = f && !u.params.loop; + if (n.realIndex !== u.realIndex || g) { + const v = u.activeIndex; let m, p; - if (h.params.loop) { - const A = h.slides.find((_) => _.getAttribute("data-swiper-slide-index") === `${n.realIndex}`); - m = h.slides.indexOf(A), p = n.activeIndex > n.previousIndex ? "next" : "prev"; + if (u.params.loop) { + const A = u.slides.find((b) => b.getAttribute("data-swiper-slide-index") === `${n.realIndex}`); + m = u.slides.indexOf(A), p = n.activeIndex > n.previousIndex ? "next" : "prev"; } else m = n.realIndex, p = m > n.previousIndex ? "next" : "prev"; - g && (m += p === "next" ? u : -1 * u), h.visibleSlidesIndexes && h.visibleSlidesIndexes.indexOf(m) < 0 && (h.params.centeredSlides ? m > v ? m = m - Math.floor(f / 2) + 1 : m = m + Math.floor(f / 2) - 1 : m > v && h.params.slidesPerGroup, h.slideTo(m, d)); + g && (m += p === "next" ? f : -1 * f), u.visibleSlidesIndexes && u.visibleSlidesIndexes.indexOf(m) < 0 && (u.params.centeredSlides ? m > v ? m = m - Math.floor(h / 2) + 1 : m = m + Math.floor(h / 2) - 1 : m > v && u.params.slidesPerGroup, u.slideTo(m, d)); } } t("beforeInit", () => { @@ -3206,8 +3206,8 @@ function zu({ } = n.params; if (!(!d || !d.swiper)) if (typeof d.swiper == "string" || d.swiper instanceof HTMLElement) { - const h = Ht(), f = () => { - const g = typeof d.swiper == "string" ? h.querySelector(d.swiper) : d.swiper; + const u = $t(), h = () => { + const g = typeof d.swiper == "string" ? u.querySelector(d.swiper) : d.swiper; if (g && g.swiper) d.swiper = g.swiper, o(), l(!0); else if (g) { @@ -3217,18 +3217,18 @@ function zu({ g.addEventListener(v, m); } return g; - }, u = () => { + }, f = () => { if (n.destroyed) return; - f() || requestAnimationFrame(u); + h() || requestAnimationFrame(f); }; - requestAnimationFrame(u); + requestAnimationFrame(f); } else o(), l(!0); }), t("slideChange update resize observerUpdate", () => { l(); - }), t("setTransition", (d, h) => { - const f = n.thumbs.swiper; - !f || f.destroyed || f.setTransition(h); + }), t("setTransition", (d, u) => { + const h = n.thumbs.swiper; + !h || h.destroyed || h.setTransition(u); }), t("beforeDestroy", () => { const d = n.thumbs.swiper; !d || d.destroyed || r && d.destroy(); @@ -3237,11 +3237,11 @@ function zu({ update: l }); } -const Wu = ':root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}:is(.swiper:not(.swiper-watch-progress),.swiper-watch-progress .swiper-slide-visible) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{--swiper-navigation-size: 44px}.swiper-button-prev,.swiper-button-next{position:absolute;width:var(--swiper-navigation-size);height:var(--swiper-navigation-size);z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}:is(.swiper-button-prev,.swiper-button-next).swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}:is(.swiper-button-prev,.swiper-button-next).swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled :is(.swiper-button-prev,.swiper-button-next){display:none!important}:is(.swiper-button-prev,.swiper-button-next) ::slotted(svg),:is(.swiper-button-prev,.swiper-button-next) svg{width:100%;height:100%;object-fit:contain;transform-origin:center;fill:currentColor;pointer-events:none}.swiper-button-lock{display:none}.swiper-button-prev,.swiper-button-next{top:var(--swiper-navigation-top-offset, 50%);margin-top:calc(0px - (var(--swiper-navigation-size) / 2))}.swiper-button-prev{left:var(--swiper-navigation-sides-offset, 4px);right:auto}.swiper-button-prev ::slotted(.swiper-navigation-icon),.swiper-button-prev .swiper-navigation-icon{transform:rotate(180deg)}.swiper-button-next{right:var(--swiper-navigation-sides-offset, 4px);left:auto}.swiper-horizontal .swiper-button-prev,.swiper-horizontal .swiper-button-next,.swiper-horizontal~.swiper-button-prev,.swiper-horizontal~.swiper-button-next{top:var(--swiper-navigation-top-offset, 50%);margin-top:calc(0px - (var(--swiper-navigation-size) / 2));margin-left:0}.swiper-horizontal .swiper-button-prev,.swiper-horizontal~.swiper-button-prev,.swiper-horizontal.swiper-rtl .swiper-button-next,.swiper-horizontal.swiper-rtl~.swiper-button-next{left:var(--swiper-navigation-sides-offset, 4px);right:auto}.swiper-horizontal .swiper-button-next,.swiper-horizontal~.swiper-button-next,.swiper-horizontal.swiper-rtl .swiper-button-prev,.swiper-horizontal.swiper-rtl~.swiper-button-prev{right:var(--swiper-navigation-sides-offset, 4px);left:auto}:is(.swiper-horizontal .swiper-button-prev,.swiper-horizontal~.swiper-button-prev,.swiper-horizontal.swiper-rtl .swiper-button-next,.swiper-horizontal.swiper-rtl~.swiper-button-next) ::slotted(.swiper-navigation-icon),:is(.swiper-horizontal .swiper-button-prev,.swiper-horizontal~.swiper-button-prev,.swiper-horizontal.swiper-rtl .swiper-button-next,.swiper-horizontal.swiper-rtl~.swiper-button-next) .swiper-navigation-icon{transform:rotate(180deg)}:is(.swiper-horizontal.swiper-rtl .swiper-button-prev,.swiper-horizontal.swiper-rtl~.swiper-button-prev) ::slotted(.swiper-navigation-icon),:is(.swiper-horizontal.swiper-rtl .swiper-button-prev,.swiper-horizontal.swiper-rtl~.swiper-button-prev) .swiper-navigation-icon{transform:rotate(0)}.swiper-vertical .swiper-button-prev,.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-prev,.swiper-vertical~.swiper-button-next{left:var(--swiper-navigation-top-offset, 50%);right:auto;margin-left:calc(0px - (var(--swiper-navigation-size) / 2));margin-top:0}.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-prev{top:var(--swiper-navigation-sides-offset, 4px);bottom:auto}:is(.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-prev) ::slotted(.swiper-navigation-icon),:is(.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-prev) .swiper-navigation-icon{transform:rotate(-90deg)}.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset, 4px);top:auto}:is(.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-next) ::slotted(.swiper-navigation-icon),:is(.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-next) .swiper-navigation-icon{transform:rotate(90deg)}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets) .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets) .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, .1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, .5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}'; -function Gu(n) { +const yf = ':root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}:is(.swiper:not(.swiper-watch-progress),.swiper-watch-progress .swiper-slide-visible) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{--swiper-navigation-size: 44px}.swiper-button-prev,.swiper-button-next{position:absolute;width:var(--swiper-navigation-size);height:var(--swiper-navigation-size);z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}:is(.swiper-button-prev,.swiper-button-next).swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}:is(.swiper-button-prev,.swiper-button-next).swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled :is(.swiper-button-prev,.swiper-button-next){display:none!important}:is(.swiper-button-prev,.swiper-button-next) ::slotted(svg),:is(.swiper-button-prev,.swiper-button-next) svg{width:100%;height:100%;object-fit:contain;transform-origin:center;fill:currentColor;pointer-events:none}.swiper-button-lock{display:none}.swiper-button-prev,.swiper-button-next{top:var(--swiper-navigation-top-offset, 50%);margin-top:calc(0px - (var(--swiper-navigation-size) / 2))}.swiper-button-prev{left:var(--swiper-navigation-sides-offset, 4px);right:auto}.swiper-button-prev ::slotted(.swiper-navigation-icon),.swiper-button-prev .swiper-navigation-icon{transform:rotate(180deg)}.swiper-button-next{right:var(--swiper-navigation-sides-offset, 4px);left:auto}.swiper-horizontal .swiper-button-prev,.swiper-horizontal .swiper-button-next,.swiper-horizontal~.swiper-button-prev,.swiper-horizontal~.swiper-button-next{top:var(--swiper-navigation-top-offset, 50%);margin-top:calc(0px - (var(--swiper-navigation-size) / 2));margin-left:0}.swiper-horizontal .swiper-button-prev,.swiper-horizontal~.swiper-button-prev,.swiper-horizontal.swiper-rtl .swiper-button-next,.swiper-horizontal.swiper-rtl~.swiper-button-next{left:var(--swiper-navigation-sides-offset, 4px);right:auto}.swiper-horizontal .swiper-button-next,.swiper-horizontal~.swiper-button-next,.swiper-horizontal.swiper-rtl .swiper-button-prev,.swiper-horizontal.swiper-rtl~.swiper-button-prev{right:var(--swiper-navigation-sides-offset, 4px);left:auto}:is(.swiper-horizontal .swiper-button-prev,.swiper-horizontal~.swiper-button-prev,.swiper-horizontal.swiper-rtl .swiper-button-next,.swiper-horizontal.swiper-rtl~.swiper-button-next) ::slotted(.swiper-navigation-icon),:is(.swiper-horizontal .swiper-button-prev,.swiper-horizontal~.swiper-button-prev,.swiper-horizontal.swiper-rtl .swiper-button-next,.swiper-horizontal.swiper-rtl~.swiper-button-next) .swiper-navigation-icon{transform:rotate(180deg)}:is(.swiper-horizontal.swiper-rtl .swiper-button-prev,.swiper-horizontal.swiper-rtl~.swiper-button-prev) ::slotted(.swiper-navigation-icon),:is(.swiper-horizontal.swiper-rtl .swiper-button-prev,.swiper-horizontal.swiper-rtl~.swiper-button-prev) .swiper-navigation-icon{transform:rotate(0)}.swiper-vertical .swiper-button-prev,.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-prev,.swiper-vertical~.swiper-button-next{left:var(--swiper-navigation-top-offset, 50%);right:auto;margin-left:calc(0px - (var(--swiper-navigation-size) / 2));margin-top:0}.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-prev{top:var(--swiper-navigation-sides-offset, 4px);bottom:auto}:is(.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-prev) ::slotted(.swiper-navigation-icon),:is(.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-prev) .swiper-navigation-icon{transform:rotate(-90deg)}.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset, 4px);top:auto}:is(.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-next) ::slotted(.swiper-navigation-icon),:is(.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-next) .swiper-navigation-icon{transform:rotate(90deg)}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets) .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets) .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, .1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, .5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}'; +function wf(n) { return n.replace(/\\/g, "\\\\").replace(/"/g, '\\"'); } -class Hu extends Hs { +class Cf extends na { slider; thumbsSlider; divContainer; @@ -3313,13 +3313,13 @@ class Hu extends Hs { const e = this.query("#divGallery")?.querySelector(".swiper-wrapper"); e && this.slides.forEach((t, i) => { const r = t.getAttribute("thumbnail-url") || "", s = document.createElement("div"); - s.className = "swiper-slide gallery-thumb", s.setAttribute("data-index", String(i)), s.style.setProperty("background-image", `url("${Gu(r)}")`), e.appendChild(s); + s.className = "swiper-slide gallery-thumb", s.setAttribute("data-index", String(i)), s.style.setProperty("background-image", `url("${wf(r)}")`), e.appendChild(s); }); } render() { const e = ` `, t = this.css` :host { @@ -3484,12 +3484,12 @@ class Hu extends Hs { initializeSwiper() { this.divContainer = this.query("#divContainer") ?? void 0, this.divSlides = this.query("#divSlides") ?? void 0, this.divGallery = this.query("#divGallery") ?? void 0, this.divPagination = this.query("#divPagination") ?? void 0, this.divPrevious = this.query("#divPrevious") ?? void 0, this.divNext = this.query("#divNext") ?? void 0, this.slides.some((i) => i.getAttribute("caption")) && this.divContainer && this.divContainer.classList.add("has-captions"); const t = this.slides.length >= 2; - this.divContainer && (this.slider && this.slider.destroy(), this.thumbsSlider && (this.thumbsSlider.destroy(!0, !1), this.thumbsSlider = void 0), this.hasThumb && this.divGallery && (this.thumbsSlider = new Kt(this.divGallery, { + this.divContainer && (this.slider && this.slider.destroy(), this.thumbsSlider && (this.thumbsSlider.destroy(!0, !1), this.thumbsSlider = void 0), this.hasThumb && this.divGallery && (this.thumbsSlider = new ri(this.divGallery, { spaceBetween: 10, slidesPerView: Math.min(Math.max(4, this.slides.length), 8), watchSlidesProgress: !0 - })), this.slider = new Kt(this.divContainer, { - modules: [Pu, Vu, ku, Ou, zu, Lu], + })), this.slider = new ri(this.divContainer, { + modules: [Sf, _f, xf, bf, Ef, Af], navigation: { prevEl: this.divPrevious, nextEl: this.divNext @@ -3525,8 +3525,8 @@ class Hu extends Hs { })); } } -customElements.get("cc-swiper") || customElements.define("cc-swiper", Hu); -class Ju extends Hs { +customElements.get("cc-swiper") || customElements.define("cc-swiper", Cf); +class Uf extends na { static get observedAttributes() { return ["thumbnail-url", "image-url", "image-type", "caption"]; } @@ -3558,8 +3558,8 @@ class Ju extends Hs { this.updateShadowRoot(e); } } -customElements.get("cc-swiper-slide") || customElements.define("cc-swiper-slide", Ju); -class cr extends Hs { +customElements.get("cc-swiper-slide") || customElements.define("cc-swiper-slide", Uf); +class hr extends na { _showPrevButton = !0; _showNextButton = !0; isShow = !1; @@ -3751,29 +3751,29 @@ class cr extends Hs { e && (e.style.display = this._showPrevButton ? "" : "none"), t && (t.style.display = this._showNextButton ? "" : "none"); } } -function Zu(n, e) { +function Mf(n, e) { if (!(n instanceof e)) throw new TypeError("Cannot call a class as a function"); } -function bl(n, e) { +function Yl(n, e) { for (var t = 0; t < e.length; t++) { var i = e[t]; - i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, bd(i.key), i); + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, Yd(i.key), i); } } -function Xu(n, e, t) { - return e && bl(n.prototype, e), t && bl(n, t), Object.defineProperty(n, "prototype", { +function Tf(n, e, t) { + return e && Yl(n.prototype, e), t && Yl(n, t), Object.defineProperty(n, "prototype", { writable: !1 }), n; } -function br(n, e, t) { - return (e = bd(e)) in n ? Object.defineProperty(n, e, { +function yr(n, e, t) { + return (e = Yd(e)) in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n; } -function El(n, e) { +function Kl(n, e) { var t = Object.keys(n); if (Object.getOwnPropertySymbols) { var i = Object.getOwnPropertySymbols(n); @@ -3783,18 +3783,18 @@ function El(n, e) { } return t; } -function Js(n) { +function ra(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; - e % 2 ? El(Object(t), !0).forEach(function(i) { - br(n, i, t[i]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : El(Object(t)).forEach(function(i) { + e % 2 ? Kl(Object(t), !0).forEach(function(i) { + yr(n, i, t[i]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Kl(Object(t)).forEach(function(i) { Object.defineProperty(n, i, Object.getOwnPropertyDescriptor(t, i)); }); } return n; } -function Yu(n, e) { +function Ff(n, e) { if (typeof n != "object" || !n) return n; var t = n[Symbol.toPrimitive]; if (t !== void 0) { @@ -3804,19 +3804,19 @@ function Yu(n, e) { } return (e === "string" ? String : Number)(n); } -function bd(n) { - var e = Yu(n, "string"); +function Yd(n) { + var e = Ff(n, "string"); return typeof e == "symbol" ? e : e + ""; } -function Ja(n) { +function oo(n) { "@babel/helpers - typeof"; - return Ja = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { + return oo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; } : function(e) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; - }, Ja(n); + }, oo(n); } -var xl = { +var ql = { /** * Enable a modal backdrop, specify `static` for a backdrop * which doesn't close the modal on click. @@ -4072,92 +4072,92 @@ var xl = { play: null, playing: null, stop: null -}, Ku = '