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}">`; + 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.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 = '
', Zs = typeof window < "u" && typeof window.document < "u", Vi = Zs ? window : {}, Zn = Zs && Vi.document.documentElement ? "ontouchstart" in Vi.document.documentElement : !1, Ir = Zs ? "PointerEvent" in Vi : !1, Se = "viewer", Ed = "move", xd = "rotate", As = "switch", _s = "transform", Za = "zoom", Ss = "".concat(Se, "-active"), ju = "".concat(Se, "-close"), bs = "".concat(Se, "-fade"), Xa = "".concat(Se, "-fixed"), qu = "".concat(Se, "-fullscreen"), yl = "".concat(Se, "-fullscreen-exit"), Di = "".concat(Se, "-hide"), $u = "".concat(Se, "-hide-md-down"), ef = "".concat(Se, "-hide-sm-down"), tf = "".concat(Se, "-hide-xs-down"), ii = "".concat(Se, "-in"), wr = "".concat(Se, "-invisible"), Xn = "".concat(Se, "-loading"), nf = "".concat(Se, "-move"), wl = "".concat(Se, "-open"), Cn = "".concat(Se, "-show"), ct = "".concat(Se, "-transition"), en = "click", Ya = "dblclick", Cl = "dragstart", Ul = "focusin", Qs = "keydown", vi = "load", _n = "error", rf = Zn ? "touchend touchcancel" : "mouseup", sf = Zn ? "touchmove" : "mousemove", af = Zn ? "touchstart" : "mousedown", Ml = Ir ? "pointerdown" : af, Tl = Ir ? "pointerenter" : "mouseenter", Fl = Ir ? "pointerleave" : "mouseleave", Vr = Ir ? "pointermove" : sf, Il = Ir ? "pointerup pointercancel" : rf, Rl = "resize", fi = "transitionend", Bl = "wheel", Dl = "gesturestart gesturechange gestureend", Ql = "ready", Nl = "show", Ll = "shown", Pl = "hide", Vl = "hidden", kl = "view", Mr = "viewed", Ol = "move", zl = "moved", Wl = "rotate", Gl = "rotated", Hl = "scale", Jl = "scaled", Zl = "zoom", Xl = "zoomed", Yl = "play", kr = "playing", Kl = "stop", Cr = "".concat(Se, "Action"), Rr = /\s+/, Or = ["zoom-in", "zoom-out", "one-to-one", "reset", "prev", "play", "next", "rotate-left", "rotate-right", "flip-horizontal", "flip-vertical"]; -function $n(n) { +}, If = '
', sa = typeof window < "u" && typeof window.document < "u", ji = sa ? window : {}, tr = sa && ji.document.documentElement ? "ontouchstart" in ji.document.documentElement : !1, Or = sa ? "PointerEvent" in ji : !1, Fe = "viewer", Kd = "move", qd = "rotate", Ms = "switch", Ts = "transform", lo = "zoom", Fs = "".concat(Fe, "-active"), Rf = "".concat(Fe, "-close"), Is = "".concat(Fe, "-fade"), co = "".concat(Fe, "-fixed"), Bf = "".concat(Fe, "-fullscreen"), jl = "".concat(Fe, "-fullscreen-exit"), Hi = "".concat(Fe, "-hide"), Df = "".concat(Fe, "-hide-md-down"), Nf = "".concat(Fe, "-hide-sm-down"), Lf = "".concat(Fe, "-hide-xs-down"), di = "".concat(Fe, "-in"), Tr = "".concat(Fe, "-invisible"), ir = "".concat(Fe, "-loading"), Qf = "".concat(Fe, "-move"), $l = "".concat(Fe, "-open"), Dn = "".concat(Fe, "-show"), mt = "".concat(Fe, "-transition"), pn = "click", ho = "dblclick", ec = "dragstart", tc = "focusin", Hs = "keydown", yi = "load", Mn = "error", Pf = tr ? "touchend touchcancel" : "mouseup", Vf = tr ? "touchmove" : "mousemove", kf = tr ? "touchstart" : "mousedown", ic = Or ? "pointerdown" : kf, nc = Or ? "pointerenter" : "mouseenter", rc = Or ? "pointerleave" : "mouseleave", Xr = Or ? "pointermove" : Vf, sc = Or ? "pointerup pointercancel" : Pf, ac = "resize", _i = "transitionend", oc = "wheel", lc = "gesturestart gesturechange gestureend", cc = "ready", dc = "show", hc = "shown", uc = "hide", fc = "hidden", pc = "view", Dr = "viewed", mc = "move", gc = "moved", vc = "rotate", Ac = "rotated", Sc = "scale", _c = "scaled", xc = "zoom", bc = "zoomed", Ec = "play", Yr = "playing", yc = "stop", Fr = "".concat(Fe, "Action"), zr = /\s+/, Kr = ["zoom-in", "zoom-out", "one-to-one", "reset", "prev", "play", "next", "rotate-left", "rotate-right", "flip-horizontal", "flip-vertical"]; +function ar(n) { return typeof n == "string"; } -var of = { +var Of = { ctrl: "ctrlKey", shift: "shiftKey", alt: "altKey", meta: "metaKey" }; -function jl(n, e) { - return n ? n === !0 ? !0 : $n(n) && n.split("+").every(function(t) { - return e[of[t.trim().toLowerCase()]]; +function wc(n, e) { + return n ? n === !0 ? !0 : ar(n) && n.split("+").every(function(t) { + return e[Of[t.trim().toLowerCase()]]; }) : !1; } -var lf = Number.isNaN || Vi.isNaN; -function nt(n) { - return typeof n == "number" && !lf(n); +var zf = Number.isNaN || ji.isNaN; +function at(n) { + return typeof n == "number" && !zf(n); } -function pi(n) { +function xi(n) { return typeof n > "u"; } -function er(n) { - return Ja(n) === "object" && n !== null; +function or(n) { + return oo(n) === "object" && n !== null; } -var cf = Object.prototype.hasOwnProperty; -function zt(n) { - if (!er(n)) +var Wf = Object.prototype.hasOwnProperty; +function qt(n) { + if (!or(n)) return !1; try { var e = n.constructor, t = e.prototype; - return e && t && cf.call(t, "isPrototypeOf"); + return e && t && Wf.call(t, "isPrototypeOf"); } catch { return !1; } } -function Ke(n) { +function qe(n) { return typeof n == "function"; } -function tt(n, e) { - if (n && Ke(e)) - if (Array.isArray(n) || nt(n.length)) { +function nt(n, e) { + if (n && qe(e)) + if (Array.isArray(n) || at(n.length)) { var t = n.length, i; for (i = 0; i < t && e.call(n, n[i], i, n) !== !1; i += 1) ; - } else er(n) && Object.keys(n).forEach(function(r) { + } else or(n) && Object.keys(n).forEach(function(r) { e.call(n, n[r], r, n); }); return n; } -function Ns(n, e, t) { - tt(t, function(i) { +function Js(n, e, t) { + nt(t, function(i) { var r = e.getAttribute(i); r !== null && n.setAttribute(i, r); }); } -function Dt(n, e) { +function Ht(n, e) { var t = n.transition; return t && t[e] !== !1; } -var Nt = Object.assign || function(e) { +var Jt = Object.assign || function(e) { for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) i[r - 1] = arguments[r]; - return er(e) && i.length > 0 && i.forEach(function(s) { - er(s) && Object.keys(s).forEach(function(a) { + return or(e) && i.length > 0 && i.forEach(function(s) { + or(s) && Object.keys(s).forEach(function(a) { e[a] = s[a]; }); }), e; -}, df = /^(?:width|height|left|top|marginLeft|marginTop)$/; -function Ai(n, e) { +}, Gf = /^(?:width|height|left|top|marginLeft|marginTop)$/; +function wi(n, e) { var t = n.style; - tt(e, function(i, r) { - df.test(r) && nt(i) && (i += "px"), t[r] = i; + nt(e, function(i, r) { + Gf.test(r) && at(i) && (i += "px"), t[r] = i; }); } -function hf(n) { - return $n(n) ? n.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(//g, ">") : n; +function Hf(n) { + return ar(n) ? n.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(//g, ">") : n; } -function Gn(n, e) { - return !n || !e ? !1 : n.classList ? n.classList.contains(e) : n.className.split(Rr).indexOf(e) > -1; +function jn(n, e) { + return !n || !e ? !1 : n.classList ? n.classList.contains(e) : n.className.split(zr).indexOf(e) > -1; } -function Ae(n, e) { +function Me(n, e) { if (!(!n || !e)) { - if (nt(n.length)) { - tt(n, function(i) { - Ae(i, e); + if (at(n.length)) { + nt(n, function(i) { + Me(i, e); }); return; } @@ -4169,11 +4169,11 @@ function Ae(n, e) { t ? t.indexOf(e) < 0 && (n.className = "".concat(t, " ").concat(e)) : n.className = e; } } -function Ye(n, e) { +function Ke(n, e) { if (!(!n || !e)) { - if (nt(n.length)) { - tt(n, function(i) { - Ye(i, e); + if (at(n.length)) { + nt(n, function(i) { + Ke(i, e); }); return; } @@ -4182,35 +4182,35 @@ function Ye(n, e) { return; } var t = n.className; - t && t.indexOf(e) >= 0 && (n.className = t.split(Rr).filter(function(i) { + t && t.indexOf(e) >= 0 && (n.className = t.split(zr).filter(function(i) { return i && i !== e; }).join(" ")); } } -function ai(n, e, t) { +function pi(n, e, t) { if (e) { - if (nt(n.length)) { - tt(n, function(i) { - ai(i, e, t); + if (at(n.length)) { + nt(n, function(i) { + pi(i, e, t); }); return; } - t ? Ae(n, e) : Ye(n, e); + t ? Me(n, e) : Ke(n, e); } } -var uf = /([a-z\d])([A-Z])/g; -function Go(n) { - return n.replace(uf, "$1-$2").toLowerCase(); +var Jf = /([a-z\d])([A-Z])/g; +function ol(n) { + return n.replace(Jf, "$1-$2").toLowerCase(); } -function $i(n, e) { - return er(n[e]) ? n[e] : n.dataset ? n.dataset[e] : n.getAttribute("data-".concat(Go(e))); +function fn(n, e) { + return or(n[e]) ? n[e] : n.dataset ? n.dataset[e] : n.getAttribute("data-".concat(ol(e))); } -function Ka(n, e, t) { - er(t) ? n[e] = t : n.dataset ? n.dataset[e] = t : n.setAttribute("data-".concat(Go(e)), t); +function uo(n, e, t) { + or(t) ? n[e] = t : n.dataset ? n.dataset[e] = t : n.setAttribute("data-".concat(ol(e)), t); } -var yd = (function() { +var jd = (function() { var n = !1; - if (Zs) { + if (sa) { var e = !1, t = function() { }, i = Object.defineProperty({}, "once", { get: function() { @@ -4225,53 +4225,53 @@ var yd = (function() { e = s; } }); - Vi.addEventListener("test", t, i), Vi.removeEventListener("test", t, i); + ji.addEventListener("test", t, i), ji.removeEventListener("test", t, i); } return n; })(); -function qe(n, e, t) { +function et(n, e, t) { var i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, r = t; - e.trim().split(Rr).forEach(function(s) { - if (!yd) { + e.trim().split(zr).forEach(function(s) { + if (!jd) { var a = n.listeners; a && a[s] && a[s][t] && (r = a[s][t], delete a[s][t], Object.keys(a[s]).length === 0 && delete a[s], Object.keys(a).length === 0 && delete n.listeners); } n.removeEventListener(s, r, i); }); } -function Ce(n, e, t) { +function De(n, e, t) { var i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, r = t; - e.trim().split(Rr).forEach(function(s) { - if (i.once && !yd) { + e.trim().split(zr).forEach(function(s) { + if (i.once && !jd) { var a = n.listeners, o = a === void 0 ? {} : a; r = function() { delete o[s][t], n.removeEventListener(s, r, i); - for (var c = arguments.length, d = new Array(c), h = 0; h < c; h++) - d[h] = arguments[h]; + for (var c = arguments.length, d = new Array(c), u = 0; u < c; u++) + d[u] = arguments[u]; t.apply(n, d); }, o[s] || (o[s] = {}), o[s][t] && n.removeEventListener(s, o[s][t], i), o[s][t] = r, n.listeners = o; } n.addEventListener(s, r, i); }); } -function ut(n, e, t, i) { +function At(n, e, t, i) { var r; - return Ke(Event) && Ke(CustomEvent) ? r = new CustomEvent(e, Js({ + return qe(Event) && qe(CustomEvent) ? r = new CustomEvent(e, ra({ bubbles: !0, cancelable: !0, detail: t }, i)) : (r = document.createEvent("CustomEvent"), r.initCustomEvent(e, !0, !0, t)), n.dispatchEvent(r); } -function ff(n) { +function Zf(n) { var e = n.getBoundingClientRect(); return { left: e.left + (window.pageXOffset - document.documentElement.clientLeft), top: e.top + (window.pageYOffset - document.documentElement.clientTop) }; } -function Es(n) { +function Rs(n) { var e = n.rotate, t = n.scaleX, i = n.scaleY, r = n.translateX, s = n.translateY, a = []; - nt(r) && r !== 0 && a.push("translateX(".concat(r, "px)")), nt(s) && s !== 0 && a.push("translateY(".concat(s, "px)")), nt(e) && e !== 0 && a.push("rotate(".concat(e, "deg)")), nt(t) && nt(i) && (t !== 1 || i !== 1) && (a.push("scaleX(".concat(t, ")")), a.push("scaleY(".concat(i, ")"))); + at(r) && r !== 0 && a.push("translateX(".concat(r, "px)")), at(s) && s !== 0 && a.push("translateY(".concat(s, "px)")), at(e) && e !== 0 && a.push("rotate(".concat(e, "deg)")), at(t) && at(i) && (t !== 1 || i !== 1) && (a.push("scaleX(".concat(t, ")")), a.push("scaleY(".concat(i, ")"))); var o = a.length ? a.join(" ") : "none"; return { WebkitTransform: o, @@ -4279,46 +4279,46 @@ function Es(n) { transform: o }; } -function pf(n) { - return $n(n) ? decodeURIComponent(n.replace(/^.*\//, "").replace(/[?&#].*$/, "")) : ""; +function Xf(n) { + return ar(n) ? decodeURIComponent(n.replace(/^.*\//, "").replace(/[?&#].*$/, "")) : ""; } -var oa = Vi.navigator && /Version\/\d+(\.\d+)+?\s+Safari/i.test(Vi.navigator.userAgent); -function wd(n, e, t) { +var _a = ji.navigator && /Version\/\d+(\.\d+)+?\s+Safari/i.test(ji.navigator.userAgent); +function $d(n, e, t) { var i = document.createElement("img"); - if (n.naturalWidth && !oa) + if (n.naturalWidth && !_a) return t(n.naturalWidth, n.naturalHeight), i; var r = document.body || document.documentElement; return i.onload = function() { - t(i.width, i.height), oa || r.removeChild(i); - }, Ns(i, n, e.inheritedAttributes), i.src = n.src, oa || (i.style.cssText = "left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;", r.appendChild(i)), i; + t(i.width, i.height), _a || r.removeChild(i); + }, Js(i, n, e.inheritedAttributes), i.src = n.src, _a || (i.style.cssText = "left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;", r.appendChild(i)), i; } -function Un(n) { +function Nn(n) { switch (n) { case 2: - return tf; + return Lf; case 3: - return ef; + return Nf; case 4: - return $u; + return Df; default: return ""; } } -function ql(n) { - var e = Js({}, n), t = []; - return tt(n, function(i, r) { - delete e[r], tt(e, function(s) { - var a = Math.abs(i.startX - s.startX), o = Math.abs(i.startY - s.startY), l = Math.abs(i.endX - s.endX), c = Math.abs(i.endY - s.endY), d = Math.sqrt(a * a + o * o), h = Math.sqrt(l * l + c * c), f = (h - d) / d; - t.push(f); +function Cc(n) { + var e = ra({}, n), t = []; + return nt(n, function(i, r) { + delete e[r], nt(e, function(s) { + var a = Math.abs(i.startX - s.startX), o = Math.abs(i.startY - s.startY), l = Math.abs(i.endX - s.endX), c = Math.abs(i.endY - s.endY), d = Math.sqrt(a * a + o * o), u = Math.sqrt(l * l + c * c), h = (u - d) / d; + t.push(h); }); }), t.sort(function(i, r) { return Math.abs(i) < Math.abs(r); }), t[0]; } -function $l(n) { - var e = Js({}, n), t = []; - return tt(n, function(i, r) { - delete e[r], tt(e, function(s) { +function Uc(n) { + var e = ra({}, n), t = []; + return nt(n, function(i, r) { + delete e[r], nt(e, function(s) { var a = Math.atan2(s.startY - i.startY, s.startX - i.startX), o = Math.atan2(s.endY - i.endY, s.endX - i.endX), l = o - a; l > Math.PI ? l -= Math.PI * 2 : l < -Math.PI && (l += Math.PI * 2), t.push(l * 180 / Math.PI); }); @@ -4326,20 +4326,20 @@ function $l(n) { return Math.abs(r) - Math.abs(i); }), t[0] || 0; } -function zr(n, e) { +function qr(n, e) { var t = n.pageX, i = n.pageY, r = { endX: t, endY: i }; - return e ? r : Js({ + return e ? r : ra({ timeStamp: Date.now(), startX: t, startY: i }, r); } -function mf(n) { +function Yf(n) { var e = 0, t = 0, i = 0; - return tt(n, function(r) { + return nt(n, function(r) { var s = r.startX, a = r.startY; e += s, t += a, i += 1; }), e /= i, t /= i, { @@ -4347,7 +4347,7 @@ function mf(n) { pageY: t }; } -var gf = { +var Kf = { render: function() { this.initContainer(), this.initViewer(), this.initList(), this.renderViewer(); }, @@ -4366,64 +4366,64 @@ var gf = { e.inline && (i = { width: Math.max(t.offsetWidth, e.minWidth), height: Math.max(t.offsetHeight, e.minHeight) - }, this.parentData = i), (this.fulled || !i) && (i = this.containerData), this.viewerData = Nt({}, i); + }, this.parentData = i), (this.fulled || !i) && (i = this.containerData), this.viewerData = Jt({}, i); }, renderViewer: function() { - this.options.inline && !this.fulled && Ai(this.viewer, this.viewerData); + this.options.inline && !this.fulled && wi(this.viewer, this.viewerData); }, initList: function() { - var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.index, i = this.element, r = this.options, s = this.list, a = [], o = zt(r.navbar) ? r.navbar : {}, l = document.createElement("li"); + var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.index, i = this.element, r = this.options, s = this.list, a = [], o = qt(r.navbar) ? r.navbar : {}, l = document.createElement("li"); this.containerData || this.initContainer(), s.appendChild(l); var c = this.isNavbarVertical ? l.offsetHeight + parseInt(window.getComputedStyle(l).marginTop, 10) : l.offsetWidth + parseInt(window.getComputedStyle(l).marginLeft, 10); s.removeChild(l); - var d = nt(o.visibleItemCount) ? Math.floor(o.visibleItemCount) : Math.floor((this.isNavbarVertical ? this.containerData.height : this.containerData.width) / c); + var d = at(o.visibleItemCount) ? Math.floor(o.visibleItemCount) : Math.floor((this.isNavbarVertical ? this.containerData.height : this.containerData.width) / c); d = Math.min(d, this.length); - var h = d > 0 ? Math.min(Math.max(0, t - Math.floor(d / 2)), Math.max(0, this.length - d)) : 0, f = d > 0 ? Math.min(this.length, h + d) : this.length; - if (s.innerHTML = "", tt(this.images, function(g, v) { - if (!(d > 0 && (v < h || v >= f))) { - var m = g.src, p = g.alt || pf(m), A = e.getImageURL(g); + var u = d > 0 ? Math.min(Math.max(0, t - Math.floor(d / 2)), Math.max(0, this.length - d)) : 0, h = d > 0 ? Math.min(this.length, u + d) : this.length; + if (s.innerHTML = "", nt(this.images, function(g, v) { + if (!(d > 0 && (v < u || v >= h))) { + var m = g.src, p = g.alt || Xf(m), A = e.getImageURL(g); if (m || A) { - var _ = document.createElement("li"), S = document.createElement("img"); - Ns(S, g, r.inheritedAttributes), r.navbar && (S.src = m || A), S.alt = p, S.setAttribute("data-original-url", A || m), _.setAttribute("data-index", v), _.setAttribute("data-viewer-action", "view"), _.setAttribute("role", "button"), r.keyboard && _.setAttribute("tabindex", 0), _.appendChild(S), s.appendChild(_), a.push(_); + var b = document.createElement("li"), x = document.createElement("img"); + Js(x, g, r.inheritedAttributes), r.navbar && (x.src = m || A), x.alt = p, x.setAttribute("data-original-url", A || m), b.setAttribute("data-index", v), b.setAttribute("data-viewer-action", "view"), b.setAttribute("role", "button"), r.keyboard && b.setAttribute("tabindex", 0), b.appendChild(x), s.appendChild(b), a.push(b); } } }), this.items = a, this.viewed) { - var u = this.getItem(this.index); - u && (Ae(u, Ss), u.setAttribute("aria-selected", !0)); + var f = this.getItem(this.index); + f && (Me(f, Fs), f.setAttribute("aria-selected", !0)); } - tt(a, function(g) { + nt(a, function(g) { var v = g.firstElementChild, m, p; - Ka(v, "filled", !0), r.loading && Ae(g, Xn), Ce(v, vi, m = function(_) { - qe(v, _n, p), r.loading && Ye(g, Xn), e.loadImage(_); + uo(v, "filled", !0), r.loading && Me(g, ir), De(v, yi, m = function(b) { + et(v, Mn, p), r.loading && Ke(g, ir), e.loadImage(b); }, { once: !0 - }), Ce(v, _n, p = function() { - qe(v, vi, m), r.loading && Ye(g, Xn); + }), De(v, Mn, p = function() { + et(v, yi, m), r.loading && Ke(g, ir); }, { once: !0 }); - }), Dt(r, "view") && Ce(i, Mr, function() { - Ae(s, ct); + }), Ht(r, "view") && De(i, Dr, function() { + Me(s, mt); }, { once: !0 }); }, getItem: function(e) { var t; - return tt(this.items, function(i) { - return Number($i(i, "index")) === e ? (t = i, !1) : !0; + return nt(this.items, function(i) { + return Number(fn(i, "index")) === e ? (t = i, !1) : !0; }), t; }, renderList: function() { var e = this.index, t = this.getItem(e); if (t) { var i = t.nextElementSibling, r = parseInt(window.getComputedStyle(i || t)[this.isNavbarVertical ? "marginTop" : "marginLeft"], 10), s = this.isNavbarVertical ? t.offsetHeight : t.offsetWidth, a = s + r; - Ai(this.list, Nt(br({}, this.isNavbarVertical ? "height" : "width", a * this.items.length - r), Es(br({}, this.isNavbarVertical ? "translateY" : "translateX", ((this.isNavbarVertical ? this.viewerData.height : this.viewerData.width) - s) / 2 - (this.isNavbarVertical ? t.offsetTop : t.offsetLeft))))); + wi(this.list, Jt(yr({}, this.isNavbarVertical ? "height" : "width", a * this.items.length - r), Rs(yr({}, this.isNavbarVertical ? "translateY" : "translateX", ((this.isNavbarVertical ? this.viewerData.height : this.viewerData.width) - s) / 2 - (this.isNavbarVertical ? t.offsetTop : t.offsetLeft))))); } }, resetList: function() { var e = this.list; - e.innerHTML = "", Ye(e, ct), Ai(e, Nt(br({}, this.isNavbarVertical ? "height" : "width", 0), Es(br({}, this.isNavbarVertical ? "translateY" : "translateX", 0)))); + e.innerHTML = "", Ke(e, mt), wi(e, Jt(yr({}, this.isNavbarVertical ? "height" : "width", 0), Rs(yr({}, this.isNavbarVertical ? "translateY" : "translateX", 0)))); }, initImage: function(e) { var t = this, i = this.options, r = this.image, s = this.viewerData, a = this.title, o = this.toolbar, l = this.navbar, c = { @@ -4431,60 +4431,60 @@ var gf = { right: 0, bottom: 0, left: 0 - }, d = this.imageData || {}, h = a.offsetHeight, f; - h && (c.bottom = s.height - a.offsetTop), tt([o, l], function(v) { + }, d = this.imageData || {}, u = a.offsetHeight, h; + u && (c.bottom = s.height - a.offsetTop), nt([o, l], function(v) { var m = v.offsetWidth, p = v.offsetHeight; !m && !p || ["top", "right", "bottom", "left"].some(function(A) { - if (Gn(v, "".concat(Se, "-").concat(v === o ? "toolbar" : "navbar", "-").concat(A))) { - var _ = v.offsetLeft + m; - return A === "top" ? _ = v.offsetTop + p : A === "right" ? _ = s.width - v.offsetLeft : A === "bottom" && (_ = s.height - v.offsetTop), c[A] = Math.max(c[A], _), !0; + if (jn(v, "".concat(Fe, "-").concat(v === o ? "toolbar" : "navbar", "-").concat(A))) { + var b = v.offsetLeft + m; + return A === "top" ? b = v.offsetTop + p : A === "right" ? b = s.width - v.offsetLeft : A === "bottom" && (b = s.height - v.offsetTop), c[A] = Math.max(c[A], b), !0; } return !1; }); }); - var u = Math.max(s.width - c.left - c.right, c.left, c.right), g = Math.max(s.height - c.top - c.bottom, c.top, c.bottom); + var f = Math.max(s.width - c.left - c.right, c.left, c.right), g = Math.max(s.height - c.top - c.bottom, c.top, c.bottom); this.imageInitializing = { abort: function() { - f.onload = null; - } - }, f = wd(r, i, function(v, m) { - var p = v / m, A = Math.max(0, Math.min(1, i.initialCoverage)), _ = u, S = g; - t.imageInitializing = !1, g * p > u ? S = u / p : _ = g * p, A = nt(A) ? A : 0.9, _ = Math.min(_ * A, v), S = Math.min(S * A, m); - var M = c.left + (u - _) / 2, C = c.top + (g - S) / 2, U = { - left: M, - top: C, - x: M, - y: C, - width: _, - height: S, + h.onload = null; + } + }, h = $d(r, i, function(v, m) { + var p = v / m, A = Math.max(0, Math.min(1, i.initialCoverage)), b = f, x = g; + t.imageInitializing = !1, g * p > f ? x = f / p : b = g * p, A = at(A) ? A : 0.9, b = Math.min(b * A, v), x = Math.min(x * A, m); + var E = c.left + (f - b) / 2, y = c.top + (g - x) / 2, M = { + left: E, + top: y, + x: E, + y, + width: b, + height: x, oldRatio: 1, - ratio: _ / v, + ratio: b / v, aspectRatio: p, naturalWidth: v, naturalHeight: m - }, T = Nt({}, U); - i.rotatable && (U.rotate = d.rotate || 0, T.rotate = 0), i.scalable && (U.scaleX = d.scaleX || 1, U.scaleY = d.scaleY || 1, T.scaleX = 1, T.scaleY = 1), t.imageData = U, t.initialImageData = T, e && e(); + }, S = Jt({}, M); + i.rotatable && (M.rotate = d.rotate || 0, S.rotate = 0), i.scalable && (M.scaleX = d.scaleX || 1, M.scaleY = d.scaleY || 1, S.scaleX = 1, S.scaleY = 1), t.imageData = M, t.initialImageData = S, e && e(); }); }, renderImage: function(e) { var t = this, i = this.image, r = this.imageData; - if (Ai(i, Nt({ + if (wi(i, Jt({ width: r.width, height: r.height, // XXX: Not to use translateX/Y to avoid image shaking when zooming marginLeft: r.x, marginTop: r.y - }, Es(r))), this.magnifierPoint && this.renderMagnifier(), e) { + }, Rs(r))), this.magnifierPoint && this.renderMagnifier(), e) { var s = !1; - if (this.viewing ? s = "view" : this.moving ? s = "move" : this.rotating ? s = "rotate" : this.scaling ? s = "scale" : this.zooming && (s = "zoom"), s && Dt(this.options, s) && Gn(i, ct)) { + if (this.viewing ? s = "view" : this.moving ? s = "move" : this.rotating ? s = "rotate" : this.scaling ? s = "scale" : this.zooming && (s = "zoom"), s && Ht(this.options, s) && jn(i, mt)) { var a = function() { t.imageRendering = !1, e(); }; this.imageRendering = { abort: function() { - qe(i, fi, a); + et(i, _i, a); } - }, Ce(i, fi, a, { + }, De(i, _i, a, { once: !0 }); } else @@ -4495,29 +4495,29 @@ var gf = { var e = this.image; e && (this.viewing && this.viewing.abort(), e.parentNode.removeChild(e), this.image = null, this.title.innerHTML = ""); } -}, vf = { +}, qf = { bind: function() { var e = this.options, t = this.viewer, i = this.canvas, r = this.ownerDocument; - Ce(t, en, this.onClick = this.click.bind(this)), Ce(t, Cl, this.onDragStart = this.dragstart.bind(this)), Ce(t, Tl, this.onMagnifyEnter = this.magnify.bind(this)), Ce(t, Vr, this.onMagnify = this.magnify.bind(this)), Ce(t, Fl, this.onMagnifierLeave = this.hideMagnifier.bind(this)), Ce(i, Ml, this.onPointerDown = this.pointerdown.bind(this)), Ce(r, Vr, this.onPointerMove = this.pointermove.bind(this)), Ce(r, Il, this.onPointerUp = this.pointerup.bind(this)), Ce(r, Qs, this.onKeyDown = this.keydown.bind(this)), Ce(window, Rl, this.onResize = this.resize.bind(this)), (e.zoomable && e.zoomOnWheel || e.slideOnWheel) && Ce(t, Bl, this.onWheel = this.wheel.bind(this), { + De(t, pn, this.onClick = this.click.bind(this)), De(t, ec, this.onDragStart = this.dragstart.bind(this)), De(t, nc, this.onMagnifyEnter = this.magnify.bind(this)), De(t, Xr, this.onMagnify = this.magnify.bind(this)), De(t, rc, this.onMagnifierLeave = this.hideMagnifier.bind(this)), De(i, ic, this.onPointerDown = this.pointerdown.bind(this)), De(r, Xr, this.onPointerMove = this.pointermove.bind(this)), De(r, sc, this.onPointerUp = this.pointerup.bind(this)), De(r, Hs, this.onKeyDown = this.keydown.bind(this)), De(window, ac, this.onResize = this.resize.bind(this)), (e.zoomable && e.zoomOnWheel || e.slideOnWheel) && De(t, oc, this.onWheel = this.wheel.bind(this), { passive: !1, capture: !0 - }), (e.zoomable && e.zoomOnGesture || e.rotatable && e.rotateOnGesture) && Ce(t, Dl, this.onGesture = this.gesture.bind(this), { + }), (e.zoomable && e.zoomOnGesture || e.rotatable && e.rotateOnGesture) && De(t, lc, this.onGesture = this.gesture.bind(this), { passive: !1 - }), e.toggleOnDblclick && Ce(i, Ya, this.onDblclick = this.dblclick.bind(this)); + }), e.toggleOnDblclick && De(i, ho, this.onDblclick = this.dblclick.bind(this)); }, unbind: function() { var e = this.options, t = this.viewer, i = this.canvas, r = this.ownerDocument; - qe(t, en, this.onClick), qe(t, Cl, this.onDragStart), qe(t, Tl, this.onMagnifyEnter), qe(t, Vr, this.onMagnify), qe(t, Fl, this.onMagnifierLeave), qe(i, Ml, this.onPointerDown), qe(r, Vr, this.onPointerMove), qe(r, Il, this.onPointerUp), qe(r, Qs, this.onKeyDown), qe(window, Rl, this.onResize), (e.zoomable && e.zoomOnWheel || e.slideOnWheel) && qe(t, Bl, this.onWheel, { + et(t, pn, this.onClick), et(t, ec, this.onDragStart), et(t, nc, this.onMagnifyEnter), et(t, Xr, this.onMagnify), et(t, rc, this.onMagnifierLeave), et(i, ic, this.onPointerDown), et(r, Xr, this.onPointerMove), et(r, sc, this.onPointerUp), et(r, Hs, this.onKeyDown), et(window, ac, this.onResize), (e.zoomable && e.zoomOnWheel || e.slideOnWheel) && et(t, oc, this.onWheel, { passive: !1, capture: !0 - }), (e.zoomable && e.zoomOnGesture || e.rotatable && e.rotateOnGesture) && qe(t, Dl, this.onGesture, { + }), (e.zoomable && e.zoomOnGesture || e.rotatable && e.rotateOnGesture) && et(t, lc, this.onGesture, { passive: !1 - }), e.toggleOnDblclick && qe(i, Ya, this.onDblclick); + }), e.toggleOnDblclick && et(i, ho, this.onDblclick); } -}, Af = { +}, jf = { click: function(e) { - var t = this.options, i = this.imageData, r = e.target, s = $i(r, Cr); - switch (!s && r.localName === "img" && r.parentElement.localName === "li" && (r = r.parentElement, s = $i(r, Cr)), Zn && e.isTrusted && r === this.canvas && clearTimeout(this.clickCanvasTimeout), this.actionEvent = e, s) { + var t = this.options, i = this.imageData, r = e.target, s = fn(r, Fr); + switch (!s && r.localName === "img" && r.parentElement.localName === "li" && (r = r.parentElement, s = fn(r, Fr)), tr && e.isTrusted && r === this.canvas && clearTimeout(this.clickCanvasTimeout), this.actionEvent = e, s) { case "mix": this.played ? this.stop() : t.inline ? this.fulled ? this.exit() : this.full() : this.hide(); break; @@ -4525,7 +4525,7 @@ var gf = { this.pointerMoved || this.hide(); break; case "view": - this.view($i(r, "index")); + this.view(fn(r, "index")); break; case "zoom-in": this.zoom(0.1, !0); @@ -4565,19 +4565,19 @@ var gf = { } }, dblclick: function(e) { - e.preventDefault(), this.viewed && e.target === this.image && (Zn && e.isTrusted && clearTimeout(this.doubleClickImageTimeout), this.actionEvent = e.isTrusted ? e : e.detail && e.detail.originalEvent, this.toggle()); + e.preventDefault(), this.viewed && e.target === this.image && (tr && e.isTrusted && clearTimeout(this.doubleClickImageTimeout), this.actionEvent = e.isTrusted ? e : e.detail && e.detail.originalEvent, this.toggle()); }, load: function() { var e = this; this.timeout && (clearTimeout(this.timeout), this.timeout = !1); var t = this.element, i = this.options, r = this.image, s = this.index, a = this.viewerData; - Ye(r, wr), i.loading && Ye(this.canvas, Xn), r.style.cssText = "height:0;" + "margin-left:".concat(a.width / 2, "px;") + "margin-top:".concat(a.height / 2, "px;") + "max-width:none!important;position:relative;width:0;", this.initImage(function() { - ai(r, nf, i.movable), ai(r, ct, Dt(i, "view")), e.renderImage(function() { + Ke(r, Tr), i.loading && Ke(this.canvas, ir), r.style.cssText = "height:0;" + "margin-left:".concat(a.width / 2, "px;") + "margin-top:".concat(a.height / 2, "px;") + "max-width:none!important;position:relative;width:0;", this.initImage(function() { + pi(r, Qf, i.movable), pi(r, mt, Ht(i, "view")), e.renderImage(function() { e.viewed = !0, e.viewing = !1, setTimeout(function() { - ai(r, ct, i.transition); - }, 300), Ke(i.viewed) && Ce(t, Mr, i.viewed, { + pi(r, mt, i.transition); + }, 300), qe(i.viewed) && De(t, Dr, i.viewed, { once: !0 - }), ut(t, Mr, { + }), At(t, Dr, { originalImage: e.images[s], index: s, image: r, @@ -4589,15 +4589,15 @@ var gf = { }); }, loadImage: function(e) { - var t = e.target, i = t.parentNode, r = i.offsetWidth || 30, s = i.offsetHeight || 50, a = !!$i(t, "filled"); - wd(t, this.options, function(o, l) { - var c = o / l, d = r, h = s; - s * c > r ? a ? d = s * c : h = r / c : a ? h = r / c : d = s * c, Ai(t, Nt({ + var t = e.target, i = t.parentNode, r = i.offsetWidth || 30, s = i.offsetHeight || 50, a = !!fn(t, "filled"); + $d(t, this.options, function(o, l) { + var c = o / l, d = r, u = s; + s * c > r ? a ? d = s * c : u = r / c : a ? u = r / c : d = s * c, wi(t, Jt({ width: d, - height: h - }, Es({ + height: u + }, Rs({ translateX: (r - d) / 2, - translateY: (s - h) / 2 + translateY: (s - u) / 2 }))); }); }, @@ -4656,39 +4656,39 @@ var gf = { }, this.renderMagnifier(); }, renderMagnifier: function() { - var e = this.options, t = this.imageData, i = this.magnifier, r = this.magnifierImage, s = this.viewer, a = zt(e.magnifier) ? e.magnifier : {}, o = this.magnifierPoint; + var e = this.options, t = this.imageData, i = this.magnifier, r = this.magnifierImage, s = this.viewer, a = qt(e.magnifier) ? e.magnifier : {}, o = this.magnifierPoint; if (!e.magnifier || !this.fulled || !this.viewed || !i || !r || !o) { this.hideMagnifier(); return; } - var l = Math.max(1, Number(a.size) || 100), c = Math.max(1, Number(a.zoomRatio) || 2), d = Number(a.opacity), h = s.getBoundingClientRect(), f = o.clientX - h.left, u = o.clientY - h.top, g = this.image.currentSrc || this.image.src, v = this.image.getBoundingClientRect(); + var l = Math.max(1, Number(a.size) || 100), c = Math.max(1, Number(a.zoomRatio) || 2), d = Number(a.opacity), u = s.getBoundingClientRect(), h = o.clientX - u.left, f = o.clientY - u.top, g = this.image.currentSrc || this.image.src, v = this.image.getBoundingClientRect(); if (o.clientX < v.left || o.clientX > v.right || o.clientY < v.top || o.clientY > v.bottom) { this.hideMagnifier(); return; } - var m = nt(t.scaleX) ? t.scaleX : 1, p = nt(t.scaleY) ? t.scaleY : 1, A = (t.rotate || 0) * Math.PI / 180, _ = Math.cos(A), S = Math.sin(A), M = _ * m, C = S * m, U = -S * p, T = _ * p, y = m * p; - if (y === 0) { + var m = at(t.scaleX) ? t.scaleX : 1, p = at(t.scaleY) ? t.scaleY : 1, A = (t.rotate || 0) * Math.PI / 180, b = Math.cos(A), x = Math.sin(A), E = b * m, y = x * m, M = -x * p, S = b * p, U = m * p; + if (U === 0) { this.hideMagnifier(); return; } - var b = t.x + t.width / 2, x = t.y + t.height / 2, D = (T * (f - b) - U * (u - x)) / y, F = (-C * (f - b) + M * (u - x)) / y, Q = D + t.width / 2, V = F + t.height / 2, O = t.width * c, B = t.height * c, R = M * (Q * c - O / 2) + U * (V * c - B / 2), Z = C * (Q * c - O / 2) + T * (V * c - B / 2); + var I = t.x + t.width / 2, C = t.y + t.height / 2, B = (S * (h - I) - M * (f - C)) / U, F = (-y * (h - I) + E * (f - C)) / U, T = B + t.width / 2, N = F + t.height / 2, O = t.width * c, R = t.height * c, L = E * (T * c - O / 2) + M * (N * c - R / 2), k = y * (T * c - O / 2) + S * (N * c - R / 2); this.magnifierSourcePoint = { - x: Q, - y: V - }, i.style.width = "".concat(l, "px"), i.style.height = "".concat(l, "px"), i.style.opacity = "".concat(Math.max(0, Math.min(1, nt(d) ? d : 1))), r.src = g, r.style.width = "".concat(O, "px"), r.style.height = "".concat(B, "px"), r.style.left = "".concat(l / 2 - O / 2 - R, "px"), r.style.top = "".concat(l / 2 - B / 2 - Z, "px"), r.style.transform = "rotate(".concat(t.rotate || 0, "deg) scaleX(").concat(m, ") scaleY(").concat(p, ")"), i.removeAttribute("aria-hidden"), Ae(i, "viewer-show"); + x: T, + y: N + }, i.style.width = "".concat(l, "px"), i.style.height = "".concat(l, "px"), i.style.opacity = "".concat(Math.max(0, Math.min(1, at(d) ? d : 1))), r.src = g, r.style.width = "".concat(O, "px"), r.style.height = "".concat(R, "px"), r.style.left = "".concat(l / 2 - O / 2 - L, "px"), r.style.top = "".concat(l / 2 - R / 2 - k, "px"), r.style.transform = "rotate(".concat(t.rotate || 0, "deg) scaleX(").concat(m, ") scaleY(").concat(p, ")"), i.removeAttribute("aria-hidden"), Me(i, "viewer-show"); }, hideMagnifier: function() { - this.magnifier && (Ye(this.magnifier, "viewer-show"), this.magnifier.setAttribute("aria-hidden", !0), this.magnifierPoint = null); + this.magnifier && (Ke(this.magnifier, "viewer-show"), this.magnifier.setAttribute("aria-hidden", !0), this.magnifierPoint = null); }, pointerdown: function(e) { var t = this.options, i = this.pointers, r = this.imageData, s = e.buttons, a = e.button, o = Object.keys(i).length === 0; if (this.pointerMoved = !1, !(!this.viewed || this.showing || this.viewing || this.hiding || (e.type === "mousedown" || e.type === "pointerdown" && e.pointerType === "mouse") && // No primary button (Usually the left button) - (nt(s) && s !== 1 || nt(a) && a !== 0 || e.ctrlKey))) { - e.preventDefault(), e.changedTouches ? tt(e.changedTouches, function(c) { - i[c.identifier] = zr(c); - }) : i[e.pointerId || 0] = zr(e); - var l = t.movable ? Ed : !1; - (t.zoomable && t.zoomOnTouch || t.rotatable && t.rotateOnTouch) && Object.keys(i).length > 1 ? l = _s : t.slideOnTouch && (e.pointerType === "touch" || e.type === "touchstart") && this.isSwitchable() && (l = As), l && Ye(this.image, ct), o && (this.rotateThreshold = r.rotate === 0), this.switching = l === As ? { + (at(s) && s !== 1 || at(a) && a !== 0 || e.ctrlKey))) { + e.preventDefault(), e.changedTouches ? nt(e.changedTouches, function(c) { + i[c.identifier] = qr(c); + }) : i[e.pointerId || 0] = qr(e); + var l = t.movable ? Kd : !1; + (t.zoomable && t.zoomOnTouch || t.rotatable && t.rotateOnTouch) && Object.keys(i).length > 1 ? l = Ts : t.slideOnTouch && (e.pointerType === "touch" || e.type === "touchstart") && this.isSwitchable() && (l = Ms), l && Ke(this.image, mt), o && (this.rotateThreshold = r.rotate === 0), this.switching = l === Ms ? { x: r.x, y: r.y } : !1, this.action = l; @@ -4696,14 +4696,14 @@ var gf = { }, pointermove: function(e) { var t = this.pointers, i = this.action; - !this.viewed || !i || (e.preventDefault(), e.changedTouches ? tt(e.changedTouches, function(r) { - Nt(t[r.identifier] || {}, zr(r, !0)); - }) : Nt(t[e.pointerId || 0] || {}, zr(e, !0)), this.change(e), Ye(this.image, ct)); + !this.viewed || !i || (e.preventDefault(), e.changedTouches ? nt(e.changedTouches, function(r) { + Jt(t[r.identifier] || {}, qr(r, !0)); + }) : Jt(t[e.pointerId || 0] || {}, qr(e, !0)), this.change(e), Ke(this.image, mt)); }, pointerup: function(e) { var t = this, i = this.options, r = this.action, s = this.pointers, a = this.viewerData, o; - if (e.changedTouches ? tt(e.changedTouches, function(u) { - o = s[u.identifier], delete s[u.identifier]; + if (e.changedTouches ? nt(e.changedTouches, function(f) { + o = s[f.identifier], delete s[f.identifier]; }) : (o = s[e.pointerId || 0], delete s[e.pointerId || 0]), Object.keys(s).length === 0) { if (this.rotateThreshold) { var l = Math.round(this.imageData.rotate / 90) * 90; @@ -4713,19 +4713,19 @@ var gf = { } if (r) { e.preventDefault(); - var c = r === _s ? Dt(i, Za) || Dt(i, xd) : Dt(i, r); - if (ai(this.image, ct, c), r === As && this.switching) { - var d = this.imageData, h = this.switching, f = d.x - h.x; - this.switching = !1, this.actionEvent = e, Math.abs(f) > a.width / 2 ? f > 0 ? this.prev(i.loop) : this.next(i.loop) : (d.x !== h.x || d.y !== h.y) && this.moveTo(h.x, h.y); + var c = r === Ts ? Ht(i, lo) || Ht(i, qd) : Ht(i, r); + if (pi(this.image, mt, c), r === Ms && this.switching) { + var d = this.imageData, u = this.switching, h = d.x - u.x; + this.switching = !1, this.actionEvent = e, Math.abs(h) > a.width / 2 ? h > 0 ? this.prev(i.loop) : this.next(i.loop) : (d.x !== u.x || d.y !== u.y) && this.moveTo(u.x, u.y); } - this.action = !1, Zn && r !== Za && r !== _s && o && Date.now() - o.timeStamp < 500 && (clearTimeout(this.clickCanvasTimeout), clearTimeout(this.doubleClickImageTimeout), i.toggleOnDblclick && this.viewed && e.target === this.image ? this.pointerMoved ? this.imageClicked = !1 : this.imageClicked ? (this.imageClicked = !1, this.doubleClickImageTimeout = setTimeout(function() { - ut(t.image, Ya, { + this.action = !1, tr && r !== lo && r !== Ts && o && Date.now() - o.timeStamp < 500 && (clearTimeout(this.clickCanvasTimeout), clearTimeout(this.doubleClickImageTimeout), i.toggleOnDblclick && this.viewed && e.target === this.image ? this.pointerMoved ? this.imageClicked = !1 : this.imageClicked ? (this.imageClicked = !1, this.doubleClickImageTimeout = setTimeout(function() { + At(t.image, ho, { originalEvent: e }); }, 50)) : (this.imageClicked = !0, this.doubleClickImageTimeout = setTimeout(function() { t.imageClicked = !1; }, 500)) : (this.imageClicked = !1, i.backdrop && i.backdrop !== "static" && e.target === this.canvas && (this.clickCanvasTimeout = setTimeout(function() { - ut(t.canvas, en, { + At(t.canvas, pn, { originalEvent: e }); }, 50)))); @@ -4735,18 +4735,18 @@ var gf = { var e = this; if (!(!this.isShown || this.hiding)) { this.fulled && (this.close(), this.initBody(), this.open()), this.initContainer(), this.initViewer(), this.renderViewer(); - var t = zt(this.options.navbar) ? this.options.navbar : {}; - if (pi(t.visibleItemCount) && this.initList(this.index), this.renderList(), this.viewed && this.initImage(function() { + var t = qt(this.options.navbar) ? this.options.navbar : {}; + if (xi(t.visibleItemCount) && this.initList(this.index), this.renderList(), this.viewed && this.initImage(function() { e.renderImage(); }), this.played) { if (this.options.fullscreen && this.fulled && !(document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement)) { this.stop(); return; } - tt(this.player.getElementsByTagName("img"), function(i) { - Ce(i, vi, e.loadImage.bind(e), { + nt(this.player.getElementsByTagName("img"), function(i) { + De(i, yi, e.loadImage.bind(e), { once: !0 - }), ut(i, vi); + }), At(i, yi); }); } } @@ -4759,13 +4759,13 @@ var gf = { }, 50); var s = 1; e.deltaY ? s = e.deltaY > 0 ? 1 : -1 : e.wheelDelta ? s = -e.wheelDelta / 120 : e.detail && (s = e.detail > 0 ? 1 : -1); - var a = r && r.contains(e.target), o = !a && i.zoomable && jl(i.zoomOnWheel, e); + var a = r && r.contains(e.target), o = !a && i.zoomable && wc(i.zoomOnWheel, e); if (o) { var l = Number(i.zoomRatio) || 0.1; this.actionEvent = e, this.zoom(-s * l, !0); return; } - jl(i.slideOnWheel, e) && (this.actionEvent = e, s > 0 ? this.next(i.loop) : s < 0 && this.prev(i.loop)); + wc(i.slideOnWheel, e) && (this.actionEvent = e, s > 0 ? this.next(i.loop) : s < 0 && this.prev(i.loop)); } }, gesture: function(e) { @@ -4777,7 +4777,7 @@ var gf = { break; case "gesturechange": { var i = e.scale || 1, r = i / (this.gestureScale || 1), s = Number(e.rotation), a = s - (this.gestureRotation || 0); - this.gestureScale = i, t.zoomable && t.zoomOnGesture && r !== 1 && (this.actionEvent = e, this.zoom(r >= 1 ? r - 1 : 1 - 1 / r)), t.rotatable && t.rotateOnGesture && nt(s) && (this.gestureRotation = s, a !== 0 && (this.actionEvent = e, this.rotate(a))); + this.gestureScale = i, t.zoomable && t.zoomOnGesture && r !== 1 && (this.actionEvent = e, this.zoom(r >= 1 ? r - 1 : 1 - 1 / r)), t.rotatable && t.rotateOnGesture && at(s) && (this.gestureRotation = s, a !== 0 && (this.actionEvent = e, this.rotate(a))); break; } case "gestureend": @@ -4789,7 +4789,7 @@ var gf = { break; } } -}, _f = { +}, $f = { /** Show the viewer (only available in modal mode) * @param {boolean} [immediate=false] - Indicates if show the viewer immediately or not. * @returns {Viewer} this @@ -4801,25 +4801,25 @@ var gf = { if (!this.ready) return this.build(), this.ready && this.show(e), this; var r = this.actionEvent || this.showOriginalEvent || this.viewOriginalEvent || null; - if (this.actionEvent = null, this.showOriginalEvent = r, Ke(i.show) && Ce(t, Nl, i.show, { + if (this.actionEvent = null, this.showOriginalEvent = r, qe(i.show) && De(t, dc, i.show, { once: !0 - }), ut(t, Nl, { + }), At(t, dc, { originalEvent: r }) === !1 || !this.ready) return this; this.hiding && this.transitioning.abort(), this.showing = !0, this.open(); var s = this.viewer; - if (Ye(s, Di), s.setAttribute("role", "dialog"), s.setAttribute("aria-labelledby", this.title.id), s.setAttribute("aria-modal", !0), s.removeAttribute("aria-hidden"), Dt(i, "show") && !e) { + if (Ke(s, Hi), s.setAttribute("role", "dialog"), s.setAttribute("aria-labelledby", this.title.id), s.setAttribute("aria-modal", !0), s.removeAttribute("aria-hidden"), Ht(i, "show") && !e) { var a = this.shown.bind(this); this.transitioning = { abort: function() { - qe(s, fi, a), Ye(s, ii); + et(s, _i, a), Ke(s, di); } - }, Ae(s, ct), s.initialOffsetWidth = s.offsetWidth, Ce(s, fi, a, { + }, Me(s, mt), s.initialOffsetWidth = s.offsetWidth, De(s, _i, a, { once: !0 - }), Ae(s, ii); + }), Me(s, di); } else - Ae(s, ii), this.shown(); + Me(s, di), this.shown(); return this; }, /** @@ -4832,27 +4832,27 @@ var gf = { if (r.inline || this.hiding || !(this.isShown || this.showing)) return this; var s = this.actionEvent || this.hideOriginalEvent || null; - if (this.actionEvent = null, this.hideOriginalEvent = s, Ke(r.hide) && Ce(i, Pl, r.hide, { + if (this.actionEvent = null, this.hideOriginalEvent = s, qe(r.hide) && De(i, uc, r.hide, { once: !0 - }), ut(i, Pl, { + }), At(i, uc, { originalEvent: s }) === !1 || this.destroyed) return this; this.showing && this.transitioning.abort(), this.hiding = !0, this.played ? this.stop() : this.viewing && this.viewing.abort(); var a = this.viewer, o = this.image, l = function() { - Ye(a, ii), e.hidden(); + Ke(a, di), e.hidden(); }; - if (Dt(r, "hide") && !t) { - var c = function(f) { - f && f.target === a && (qe(a, fi, c), e.hidden()); + if (Ht(r, "hide") && !t) { + var c = function(h) { + h && h.target === a && (et(a, _i, c), e.hidden()); }, d = function() { - Gn(a, ct) ? (Ce(a, fi, c), Ye(a, ii)) : l(); + jn(a, mt) ? (De(a, _i, c), Ke(a, di)) : l(); }; this.transitioning = { abort: function() { - e.viewed && Gn(o, ct) ? qe(o, fi, d) : Gn(a, ct) && qe(a, fi, c); + e.viewed && jn(o, mt) ? et(o, _i, d) : jn(a, mt) && et(a, _i, c); } - }, this.viewed && Gn(o, ct) ? (Ce(o, fi, d, { + }, this.viewed && jn(o, mt) ? (De(o, _i, d, { once: !0 }), this.zoomable = !0, this.zoomTo(0, !1)) : d(); } else @@ -4874,57 +4874,57 @@ var gf = { this.viewing && this.viewing.abort(); var s = this.element, a = this.options, o = this.title, l = this.canvas, c = this.getItem(t); c || (this.initList(t), c = this.getItem(t)); - var d = c.querySelector("img"), h = $i(d, "originalUrl"), f = d.getAttribute("alt"), u = document.createElement("img"); - if (Ns(u, d, a.inheritedAttributes), u.src = h, u.alt = f, Ke(a.view) && Ce(s, kl, a.view, { + var d = c.querySelector("img"), u = fn(d, "originalUrl"), h = d.getAttribute("alt"), f = document.createElement("img"); + if (Js(f, d, a.inheritedAttributes), f.src = u, f.alt = h, qe(a.view) && De(s, pc, a.view, { once: !0 - }), ut(s, kl, { + }), At(s, pc, { originalImage: this.images[t], index: t, - image: u, + image: f, originalEvent: r }) === !1 || !this.isShown || this.hiding || this.played) return this; this.hideMagnifier(); var g = this.getItem(i); - g && (Ye(g, Ss), g.removeAttribute("aria-selected")), Ae(c, Ss), c.setAttribute("aria-selected", !0), a.focus && c.focus(), this.image = u, this.viewed = !1, this.index = t, this.imageData = {}, Ae(u, wr), a.loading && Ae(l, Xn), l.innerHTML = "", l.appendChild(u), this.renderList(), o.innerHTML = ""; + g && (Ke(g, Fs), g.removeAttribute("aria-selected")), Me(c, Fs), c.setAttribute("aria-selected", !0), a.focus && c.focus(), this.image = f, this.viewed = !1, this.index = t, this.imageData = {}, Me(f, Tr), a.loading && Me(l, ir), l.innerHTML = "", l.appendChild(f), this.renderList(), o.innerHTML = ""; var v = function() { - var A = e.imageData, _ = Array.isArray(a.title) ? a.title[1] : a.title; - if (o.innerHTML = hf(Ke(_) ? _.call(e, u, A) : "".concat(f, " (").concat(A.naturalWidth, " × ").concat(A.naturalHeight, ")")), a.preload) { - var S = t < i ? -1 : 1, M = t + S; - if ((M < 0 || M >= e.length) && (a.loop ? M = S > 0 ? 0 : e.length - 1 : M = -1), M !== t) { - var C = e.images[M], U = document.createElement("img"); - Ns(U, C, a.inheritedAttributes), U.src = e.getImageURL(C) || C.src; + var A = e.imageData, b = Array.isArray(a.title) ? a.title[1] : a.title; + if (o.innerHTML = Hf(qe(b) ? b.call(e, f, A) : "".concat(h, " (").concat(A.naturalWidth, " × ").concat(A.naturalHeight, ")")), a.preload) { + var x = t < i ? -1 : 1, E = t + x; + if ((E < 0 || E >= e.length) && (a.loop ? E = x > 0 ? 0 : e.length - 1 : E = -1), E !== t) { + var y = e.images[E], M = document.createElement("img"); + Js(M, y, a.inheritedAttributes), M.src = e.getImageURL(y) || y.src; } } }; - Ce(s, Mr, v, { + De(s, Dr, v, { once: !0 }); var m = function() { - var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, _, S, M = function() { - qe(u, vi, _), qe(u, _n, S), e.timeout && (clearTimeout(e.timeout), e.timeout = !1); + var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, b, x, E = function() { + et(f, yi, b), et(f, Mn, x), e.timeout && (clearTimeout(e.timeout), e.timeout = !1); }; e.viewing = { abort: function() { - qe(s, Mr, v), u.complete ? e.imageRendering ? e.imageRendering.abort() : e.imageInitializing && e.imageInitializing.abort() : (u.src = "", M()); + et(s, Dr, v), f.complete ? e.imageRendering ? e.imageRendering.abort() : e.imageInitializing && e.imageInitializing.abort() : (f.src = "", E()); } - }, u.complete ? e.load() : (Ce(u, vi, _ = function() { - M(), e.load(); + }, f.complete ? e.load() : (De(f, yi, b = function() { + E(), e.load(); }, { once: !0 - }), Ce(u, _n, S = function() { - if (M(), !A) { - var U = d.src; - if (U && U !== u.src) { - u.src = U, m(!0); + }), De(f, Mn, x = function() { + if (E(), !A) { + var M = d.src; + if (M && M !== f.src) { + f.src = M, m(!0); return; } } - Ye(u, wr), a.loading && Ye(e.canvas, Xn); + Ke(f, Tr), a.loading && Ke(e.canvas, ir); }, { once: !0 }), e.timeout && clearTimeout(e.timeout), e.timeout = setTimeout(function() { - Ye(u, wr), e.timeout = !1; + Ke(f, Tr), e.timeout = !1; }, 1e3)); }; return m(), this; @@ -4957,7 +4957,7 @@ var gf = { */ move: function(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, i = this.imageData; - return this.moveTo(pi(e) ? e : i.x + Number(e), pi(t) ? t : i.y + Number(t)), this; + return this.moveTo(xi(e) ? e : i.x + Number(e), xi(t) ? t : i.y + Number(t)), this; }, /** * Move the image to an absolute point. @@ -4969,11 +4969,11 @@ var gf = { var t = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, r = this.element, s = this.options, a = this.imageData; if (e = Number(e), i = Number(i), this.viewed && !this.played && s.movable) { var o = a.x, l = a.y, c = !1; - if (nt(e) ? c = !0 : e = o, nt(i) ? c = !0 : i = l, c) { + if (at(e) ? c = !0 : e = o, at(i) ? c = !0 : i = l, c) { var d = this.actionEvent || null; - if (this.actionEvent = null, Ke(s.move) && Ce(r, Ol, s.move, { + if (this.actionEvent = null, qe(s.move) && De(r, mc, s.move, { once: !0 - }), ut(r, Ol, { + }), At(r, mc, { x: e, y: i, oldX: o, @@ -4981,10 +4981,10 @@ var gf = { originalEvent: d }) === !1) return this; - a.x = e, a.y = i, a.left = e, a.top = i, ai(this.image, ct, Dt(s, "move")), this.moving = !0, this.renderImage(function() { - t.moving = !1, Ke(s.moved) && Ce(r, zl, s.moved, { + a.x = e, a.y = i, a.left = e, a.top = i, pi(this.image, mt, Ht(s, "move")), this.moving = !0, this.renderImage(function() { + t.moving = !1, qe(s.moved) && De(r, gc, s.moved, { once: !0 - }), ut(r, zl, { + }), At(r, gc, { x: e, y: i, oldX: o, @@ -5013,20 +5013,20 @@ var gf = { */ rotateTo: function(e) { var t = this, i = this.element, r = this.options, s = this.imageData; - if (e = Number(e), nt(e) && this.viewed && !this.played && r.rotatable) { + if (e = Number(e), at(e) && this.viewed && !this.played && r.rotatable) { var a = s.rotate, o = this.actionEvent || null; - if (this.actionEvent = null, Ke(r.rotate) && Ce(i, Wl, r.rotate, { + if (this.actionEvent = null, qe(r.rotate) && De(i, vc, r.rotate, { once: !0 - }), ut(i, Wl, { + }), At(i, vc, { degree: e, oldDegree: a, originalEvent: o }) === !1) return this; - s.rotate = e, ai(this.image, ct, Dt(r, "rotate")), this.rotating = !0, this.renderImage(function() { - t.rotating = !1, Ke(r.rotated) && Ce(i, Gl, r.rotated, { + s.rotate = e, pi(this.image, mt, Ht(r, "rotate")), this.rotating = !0, this.renderImage(function() { + t.rotating = !1, qe(r.rotated) && De(i, Ac, r.rotated, { once: !0 - }), ut(i, Gl, { + }), At(i, Ac, { degree: e, oldDegree: a, originalEvent: o @@ -5063,11 +5063,11 @@ var gf = { var t = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, r = this.element, s = this.options, a = this.imageData; if (e = Number(e), i = Number(i), this.viewed && !this.played && s.scalable) { var o = a.scaleX, l = a.scaleY, c = !1; - if (nt(e) ? c = !0 : e = o, nt(i) ? c = !0 : i = l, c) { + if (at(e) ? c = !0 : e = o, at(i) ? c = !0 : i = l, c) { var d = this.actionEvent || null; - if (this.actionEvent = null, Ke(s.scale) && Ce(r, Hl, s.scale, { + if (this.actionEvent = null, qe(s.scale) && De(r, Sc, s.scale, { once: !0 - }), ut(r, Hl, { + }), At(r, Sc, { scaleX: e, scaleY: i, oldScaleX: o, @@ -5075,10 +5075,10 @@ var gf = { originalEvent: d }) === !1) return this; - a.scaleX = e, a.scaleY = i, ai(this.image, ct, Dt(s, "scale")), this.scaling = !0, this.renderImage(function() { - t.scaling = !1, Ke(s.scaled) && Ce(r, Jl, s.scaled, { + a.scaleX = e, a.scaleY = i, pi(this.image, mt, Ht(s, "scale")), this.scaling = !0, this.renderImage(function() { + t.scaling = !1, qe(s.scaled) && De(r, _c, s.scaled, { once: !0 - }), ut(r, Jl, { + }), At(r, _c, { scaleX: e, scaleY: i, oldScaleX: o, @@ -5111,14 +5111,14 @@ var gf = { * @returns {Viewer} this */ zoomTo: function(e) { - var t = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, s = this.element, a = this.options, o = this.pointers, l = this.imageData, c = this.zoomable, d = l.x, h = l.y, f = l.width, u = l.height, g = l.naturalWidth, v = l.naturalHeight; - if (this.zoomable = !1, e = Math.max(0, e), nt(e) && this.viewed && !this.played && (c || a.zoomable)) { + var t = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, s = this.element, a = this.options, o = this.pointers, l = this.imageData, c = this.zoomable, d = l.x, u = l.y, h = l.width, f = l.height, g = l.naturalWidth, v = l.naturalHeight; + if (this.zoomable = !1, e = Math.max(0, e), at(e) && this.viewed && !this.played && (c || a.zoomable)) { if (!c) { - var m = Math.max(0.01, Ke(a.minZoomRatio) ? a.minZoomRatio.call(this, this.image, l) : a.minZoomRatio), p = Math.min(100, Ke(a.maxZoomRatio) ? a.maxZoomRatio.call(this, this.image, l) : a.maxZoomRatio); + var m = Math.max(0.01, qe(a.minZoomRatio) ? a.minZoomRatio.call(this, this.image, l) : a.minZoomRatio), p = Math.min(100, qe(a.maxZoomRatio) ? a.maxZoomRatio.call(this, this.image, l) : a.maxZoomRatio); e = Math.min(Math.max(e, m), p); } var A = this.actionEvent || null; - if (this.actionEvent = null, A && A.type !== en) + if (this.actionEvent = null, A && A.type !== pn) switch (A.type) { case "wheel": a.zoomRatio >= 0.055 && e > 0.95 && e < 1.05 && (e = 1); @@ -5129,28 +5129,28 @@ var gf = { e > 0.99 && e < 1.01 && (e = 1); break; } - var _ = g * e, S = v * e, M = _ - f, C = S - u, U = l.ratio; - if (Ke(a.zoom) && Ce(s, Zl, a.zoom, { + var b = g * e, x = v * e, E = b - h, y = x - f, M = l.ratio; + if (qe(a.zoom) && De(s, xc, a.zoom, { once: !0 - }), ut(s, Zl, { + }), At(s, xc, { ratio: e, - oldRatio: U, + oldRatio: M, originalEvent: A }) === !1) return this; - if (this.zooming = !0, A && A.type !== en) { - var T = ff(this.viewer), y = o && Object.keys(o).length > 0 ? mf(o) : { + if (this.zooming = !0, A && A.type !== pn) { + var S = Zf(this.viewer), U = o && Object.keys(o).length > 0 ? Yf(o) : { pageX: A.pageX, pageY: A.pageY }; - l.x -= M * ((y.pageX - T.left - d) / f), l.y -= C * ((y.pageY - T.top - h) / u); - } else zt(r) && nt(r.x) && nt(r.y) ? (l.x -= M * ((r.x - d) / f), l.y -= C * ((r.y - h) / u)) : (l.x -= M / 2, l.y -= C / 2); - l.left = l.x, l.top = l.y, l.width = _, l.height = S, l.oldRatio = U, l.ratio = e, ai(this.image, ct, Dt(a, "zoom")), this.renderImage(function() { - t.zooming = !1, Ke(a.zoomed) && Ce(s, Xl, a.zoomed, { + l.x -= E * ((U.pageX - S.left - d) / h), l.y -= y * ((U.pageY - S.top - u) / f); + } else qt(r) && at(r.x) && at(r.y) ? (l.x -= E * ((r.x - d) / h), l.y -= y * ((r.y - u) / f)) : (l.x -= E / 2, l.y -= y / 2); + l.left = l.x, l.top = l.y, l.width = b, l.height = x, l.oldRatio = M, l.ratio = e, pi(this.image, mt, Ht(a, "zoom")), this.renderImage(function() { + t.zooming = !1, qe(a.zoomed) && De(s, bc, a.zoomed, { once: !0 - }), ut(s, Xl, { + }), At(s, bc, { ratio: e, - oldRatio: U, + oldRatio: M, originalEvent: A }, { cancelable: !1 @@ -5169,58 +5169,58 @@ var gf = { if (!this.isShown || this.played) return this; var i = this.element, r = this.options, s = this.actionEvent || null; - if (this.actionEvent = null, Ke(r.play) && Ce(i, Yl, r.play, { + if (this.actionEvent = null, qe(r.play) && De(i, Ec, r.play, { once: !0 - }), ut(i, Yl, { + }), At(i, Ec, { originalEvent: s }) === !1) return this; var a = this.player, o = this.loadImage.bind(this), l = [], c = 0, d = 0; - if (this.played = !0, this.onLoadWhenPlay = o, t && this.requestFullscreen(t), Ae(a, Cn), a.removeAttribute("aria-hidden"), tt(this.images, function(u, g) { + if (this.played = !0, this.onLoadWhenPlay = o, t && this.requestFullscreen(t), Me(a, Dn), a.removeAttribute("aria-hidden"), nt(this.images, function(f, g) { var v = document.createElement("img"); - v.src = e.getImageURL(u) || u.src, v.alt = u.alt || "", v.referrerPolicy = u.referrerPolicy, c += 1, Ae(v, bs), ai(v, ct, Dt(r, "play")), g === e.index && (Ae(v, ii), d = g), l.push(v), Ce(v, vi, o, { + v.src = e.getImageURL(f) || f.src, v.alt = f.alt || "", v.referrerPolicy = f.referrerPolicy, c += 1, Me(v, Is), pi(v, mt, Ht(r, "play")), g === e.index && (Me(v, di), d = g), l.push(v), De(v, yi, o, { once: !0 }), a.appendChild(v); - }), nt(r.interval) && r.interval > 0) { - var h = function() { + }), at(r.interval) && r.interval > 0) { + var u = function() { clearTimeout(e.playing.timeout); var g = e.actionEvent || null; e.actionEvent = null; var v = d - 1; - if (v = v >= 0 ? v : c - 1, Ke(r.playing) && Ce(i, kr, r.playing, { + if (v = v >= 0 ? v : c - 1, qe(r.playing) && De(i, Yr, r.playing, { once: !0 - }), ut(i, kr, { + }), At(i, Yr, { originalImage: e.images[v], index: v, image: l[v], originalEvent: g }) === !1) { - e.playing.timeout = r.autoplay ? setTimeout(h, r.interval) : null; + e.playing.timeout = r.autoplay ? setTimeout(u, r.interval) : null; return; } - Ye(l[d], ii), d = v, Ae(l[d], ii), e.playing.timeout = r.autoplay ? setTimeout(h, r.interval) : null; - }, f = function() { + Ke(l[d], di), d = v, Me(l[d], di), e.playing.timeout = r.autoplay ? setTimeout(u, r.interval) : null; + }, h = function() { clearTimeout(e.playing.timeout); var g = e.actionEvent || null; e.actionEvent = null; var v = d + 1; - if (v = v < c ? v : 0, Ke(r.playing) && Ce(i, kr, r.playing, { + if (v = v < c ? v : 0, qe(r.playing) && De(i, Yr, r.playing, { once: !0 - }), ut(i, kr, { + }), At(i, Yr, { originalImage: e.images[v], index: v, image: l[v], originalEvent: g }) === !1) { - e.playing.timeout = r.autoplay ? setTimeout(f, r.interval) : null; + e.playing.timeout = r.autoplay ? setTimeout(h, r.interval) : null; return; } - Ye(l[d], ii), d = v, Ae(l[d], ii), e.playing.timeout = r.autoplay ? setTimeout(f, r.interval) : null; + Ke(l[d], di), d = v, Me(l[d], di), e.playing.timeout = r.autoplay ? setTimeout(h, r.interval) : null; }; c > 1 && (this.playing = { - prev: h, - next: f, - timeout: r.autoplay ? setTimeout(f, r.interval) : null + prev: u, + next: h, + timeout: r.autoplay ? setTimeout(h, r.interval) : null }); } return this; @@ -5234,44 +5234,44 @@ var gf = { if (!this.played) return this; var t = this.element, i = this.options, r = this.actionEvent || null; - if (this.actionEvent = null, Ke(i.stop) && Ce(t, Kl, i.stop, { + if (this.actionEvent = null, qe(i.stop) && De(t, yc, i.stop, { once: !0 - }), ut(t, Kl, { + }), At(t, yc, { originalEvent: r }) === !1) return this; var s = this.player; - return clearTimeout(this.playing.timeout), this.playing = !1, this.played = !1, tt(s.getElementsByTagName("img"), function(a) { - qe(a, vi, e.onLoadWhenPlay); - }), Ye(s, Cn), s.setAttribute("aria-hidden", !0), s.innerHTML = "", this.exitFullscreen(), this; + return clearTimeout(this.playing.timeout), this.playing = !1, this.played = !1, nt(s.getElementsByTagName("img"), function(a) { + et(a, yi, e.onLoadWhenPlay); + }), Ke(s, Dn), s.setAttribute("aria-hidden", !0), s.innerHTML = "", this.exitFullscreen(), this; }, // Enter modal mode (only available in inline mode) full: function() { var e = this, t = this.options, i = this.viewer, r = this.image, s = this.list; - return !this.isShown || this.played || this.fulled || !t.inline ? this : (this.fulled = !0, this.open(), Ae(this.button, yl), Ye(s, ct), this.viewed && Ye(r, ct), Ae(i, Xa), i.setAttribute("role", "dialog"), i.setAttribute("aria-labelledby", this.title.id), i.setAttribute("aria-modal", !0), i.removeAttribute("style"), Ai(i, { + return !this.isShown || this.played || this.fulled || !t.inline ? this : (this.fulled = !0, this.open(), Me(this.button, jl), Ke(s, mt), this.viewed && Ke(r, mt), Me(i, co), i.setAttribute("role", "dialog"), i.setAttribute("aria-labelledby", this.title.id), i.setAttribute("aria-modal", !0), i.removeAttribute("style"), wi(i, { zIndex: t.zIndex - }), t.focus && this.enforceFocus(), this.initContainer(), this.viewerData = Nt({}, this.containerData), this.renderList(), this.viewed && this.initImage(function() { + }), t.focus && this.enforceFocus(), this.initContainer(), this.viewerData = Jt({}, this.containerData), this.renderList(), this.viewed && this.initImage(function() { e.renderImage(); }), this); }, // Exit modal mode (only available in inline mode) exit: function() { var e = this, t = this.options, i = this.viewer, r = this.image, s = this.list; - return !this.isShown || this.played || !this.fulled || !t.inline ? this : (this.fulled = !1, this.close(), Ye(this.button, yl), Ye(s, ct), this.viewed && Ye(r, ct), t.focus && this.clearEnforceFocus(), i.removeAttribute("role"), i.removeAttribute("aria-labelledby"), i.removeAttribute("aria-modal"), Ye(i, Xa), Ai(i, { + return !this.isShown || this.played || !this.fulled || !t.inline ? this : (this.fulled = !1, this.close(), Ke(this.button, jl), Ke(s, mt), this.viewed && Ke(r, mt), t.focus && this.clearEnforceFocus(), i.removeAttribute("role"), i.removeAttribute("aria-labelledby"), i.removeAttribute("aria-modal"), Ke(i, co), wi(i, { zIndex: t.zIndexInline - }), this.viewerData = Nt({}, this.parentData), this.renderViewer(), this.renderList(), this.viewed && this.initImage(function() { + }), this.viewerData = Jt({}, this.parentData), this.renderViewer(), this.renderList(), this.viewed && this.initImage(function() { e.renderImage(); }), this); }, // Show the current ratio of the image with percentage tooltip: function() { var e = this, t = this.options, i = this.tooltipBox, r = this.imageData; - return !this.viewed || this.played || !t.tooltip ? this : (i.textContent = "".concat(Math.round(r.ratio * 100), "%"), this.tooltipping ? clearTimeout(this.tooltipping) : Dt(t, "tooltip") ? (this.fading && ut(i, fi), Ae(i, Cn), Ae(i, bs), Ae(i, ct), i.removeAttribute("aria-hidden"), i.initialOffsetWidth = i.offsetWidth, Ae(i, ii)) : (Ae(i, Cn), i.removeAttribute("aria-hidden")), this.tooltipping = setTimeout(function() { - Dt(t, "tooltip") ? (Ce(i, fi, function() { - Ye(i, Cn), Ye(i, bs), Ye(i, ct), i.setAttribute("aria-hidden", !0), e.fading = !1; + return !this.viewed || this.played || !t.tooltip ? this : (i.textContent = "".concat(Math.round(r.ratio * 100), "%"), this.tooltipping ? clearTimeout(this.tooltipping) : Ht(t, "tooltip") ? (this.fading && At(i, _i), Me(i, Dn), Me(i, Is), Me(i, mt), i.removeAttribute("aria-hidden"), i.initialOffsetWidth = i.offsetWidth, Me(i, di)) : (Me(i, Dn), i.removeAttribute("aria-hidden")), this.tooltipping = setTimeout(function() { + Ht(t, "tooltip") ? (De(i, _i, function() { + Ke(i, Dn), Ke(i, Is), Ke(i, mt), i.setAttribute("aria-hidden", !0), e.fading = !1; }, { once: !0 - }), Ye(i, ii), e.fading = !0) : (Ye(i, Cn), i.setAttribute("aria-hidden", !0)), e.tooltipping = !1; + }), Ke(i, di), e.fading = !0) : (Ke(i, Dn), i.setAttribute("aria-hidden", !0)), e.tooltipping = !1; }, 1e3), this); }, /** @@ -5283,7 +5283,7 @@ var gf = { }, // Reset the image to its initial state reset: function() { - return this.viewed && !this.played && (this.imageData = Nt({}, this.initialImageData), this.renderImage()), this; + return this.viewed && !this.played && (this.imageData = Jt({}, this.initialImageData), this.renderImage()), this; }, /** * Update the viewer when images or options changed. @@ -5292,19 +5292,19 @@ var gf = { */ update: function(e) { var t = this, i = this.element, r = this.options, s = this.isImg; - if (zt(e) && Nt(r, e), s && !i.parentNode) + if (qt(e) && Jt(r, e), s && !i.parentNode) return this.destroy(); var a = []; - if (tt(s ? [i] : i.querySelectorAll("img"), function(d) { - Ke(r.filter) ? r.filter.call(t, d) && a.push(d) : t.getImageURL(d) && a.push(d); + if (nt(s ? [i] : i.querySelectorAll("img"), function(d) { + qe(r.filter) ? r.filter.call(t, d) && a.push(d) : t.getImageURL(d) && a.push(d); }), !a.length) return this; if (this.images = a, this.length = a.length, this.ready) { var o = []; - if (tt(this.items, function(d) { - var h = d.querySelector("img"), f = Number($i(d, "index")), u = a[f]; - u && h ? (u.src !== h.src || u.alt !== h.alt) && o.push(f) : o.push(f); - }), Ai(this.list, { + if (nt(this.items, function(d) { + var u = d.querySelector("img"), h = Number(fn(d, "index")), f = a[h]; + f && u ? (f.src !== u.src || f.alt !== u.alt) && o.push(h) : o.push(h); + }), wi(this.list, { width: "auto" }), this.initList(), this.isShown) if (this.length) { @@ -5314,7 +5314,7 @@ var gf = { this.viewed = !1, this.view(Math.max(Math.min(this.index - l, this.length - 1), 0)); else { var c = this.getItem(this.index); - Ae(c, Ss), c.setAttribute("aria-selected", !0); + Me(c, Fs), c.setAttribute("aria-selected", !0); } } } else @@ -5326,16 +5326,16 @@ var gf = { // Destroy the viewer destroy: function() { var e = this.element, t = this.options; - return e[Se] ? (this.destroyed = !0, this.ready ? (this.played && this.stop(), t.inline ? (this.fulled && this.exit(), this.unbind()) : this.isShown ? (this.viewing && (this.imageRendering ? this.imageRendering.abort() : this.imageInitializing && this.imageInitializing.abort()), this.hiding && this.transitioning.abort(), this.hidden()) : this.showing && (this.transitioning.abort(), this.hidden()), this.ready = !1, this.viewer.parentNode.removeChild(this.viewer)) : t.inline && (this.delaying ? this.delaying.abort() : this.initializing && this.initializing.abort()), t.inline || (qe(e, en, this.onElementClick), qe(e, Qs, this.onElementKeyDown)), e[Se] = void 0, this) : this; + return e[Fe] ? (this.destroyed = !0, this.ready ? (this.played && this.stop(), t.inline ? (this.fulled && this.exit(), this.unbind()) : this.isShown ? (this.viewing && (this.imageRendering ? this.imageRendering.abort() : this.imageInitializing && this.imageInitializing.abort()), this.hiding && this.transitioning.abort(), this.hidden()) : this.showing && (this.transitioning.abort(), this.hidden()), this.ready = !1, this.viewer.parentNode.removeChild(this.viewer)) : t.inline && (this.delaying ? this.delaying.abort() : this.initializing && this.initializing.abort()), t.inline || (et(e, pn, this.onElementClick), et(e, Hs, this.onElementKeyDown)), e[Fe] = void 0, this) : this; } -}, Sf = { +}, ep = { getImageURL: function(e) { var t = this.options.url; - return $n(t) ? t = e.getAttribute(t) : Ke(t) ? t = t.call(this, e) : t = "", t; + return ar(t) ? t = e.getAttribute(t) : qe(t) ? t = t.call(this, e) : t = "", t; }, enforceFocus: function() { var e = this; - this.clearEnforceFocus(), Ce(document, Ul, this.onFocusin = function(t) { + this.clearEnforceFocus(), De(document, tc, this.onFocusin = function(t) { var i = e.viewer, r = t.target; if (!(r === document || r === i || i.contains(r))) { for (; r; ) { @@ -5348,29 +5348,29 @@ var gf = { }); }, clearEnforceFocus: function() { - this.onFocusin && (qe(document, Ul, this.onFocusin), this.onFocusin = null); + this.onFocusin && (et(document, tc, this.onFocusin), this.onFocusin = null); }, open: function() { var e = this.body; - Ae(e, wl), this.scrollbarWidth > 0 && (e.style.paddingRight = "".concat(this.scrollbarWidth + (parseFloat(this.initialBodyComputedPaddingRight) || 0), "px")); + Me(e, $l), this.scrollbarWidth > 0 && (e.style.paddingRight = "".concat(this.scrollbarWidth + (parseFloat(this.initialBodyComputedPaddingRight) || 0), "px")); }, close: function() { var e = this.body; - Ye(e, wl), this.scrollbarWidth > 0 && (e.style.paddingRight = this.initialBodyPaddingRight); + Ke(e, $l), this.scrollbarWidth > 0 && (e.style.paddingRight = this.initialBodyPaddingRight); }, shown: function() { var e = this.element, t = this.options, i = this.viewer; - this.fulled = !0, this.isShown = !0, this.render(), this.bind(), this.showing = !1, t.focus && (i.focus(), this.enforceFocus()), Ke(t.shown) && Ce(e, Ll, t.shown, { + this.fulled = !0, this.isShown = !0, this.render(), this.bind(), this.showing = !1, t.focus && (i.focus(), this.enforceFocus()), qe(t.shown) && De(e, hc, t.shown, { once: !0 - }), ut(e, Ll, { + }), At(e, hc, { originalEvent: this.showOriginalEvent || null }) !== !1 && (this.showOriginalEvent = null, this.ready && this.isShown && !this.hiding && this.view(this.index)); }, hidden: function() { var e = this.element, t = this.options, i = this.viewer, r = i.ownerDocument.activeElement; - r && i.contains(r) && Ke(r.blur) && r.blur(), t.focus && this.clearEnforceFocus(), this.close(), this.unbind(), Ae(i, Di), i.removeAttribute("role"), i.removeAttribute("aria-labelledby"), i.removeAttribute("aria-modal"), i.setAttribute("aria-hidden", !0), this.resetList(), this.resetImage(), this.fulled = !1, this.viewed = !1, this.isShown = !1, this.hiding = !1, this.destroyed || (Ke(t.hidden) && Ce(e, Vl, t.hidden, { + r && i.contains(r) && qe(r.blur) && r.blur(), t.focus && this.clearEnforceFocus(), this.close(), this.unbind(), Me(i, Hi), i.removeAttribute("role"), i.removeAttribute("aria-labelledby"), i.removeAttribute("aria-modal"), i.setAttribute("aria-hidden", !0), this.resetList(), this.resetImage(), this.fulled = !1, this.viewed = !1, this.isShown = !1, this.hiding = !1, this.destroyed || (qe(t.hidden) && De(e, fc, t.hidden, { once: !0 - }), ut(e, Vl, { + }), At(e, fc, { originalEvent: this.hideOriginalEvent || null }, { cancelable: !1 @@ -5380,7 +5380,7 @@ var gf = { var t = this.ownerDocument; if (this.fulled && !(t.fullscreenElement || t.webkitFullscreenElement || t.mozFullScreenElement || t.msFullscreenElement)) { var i = t.documentElement; - i.requestFullscreen ? zt(e) ? i.requestFullscreen(e) : i.requestFullscreen() : i.webkitRequestFullscreen ? i.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT) : i.mozRequestFullScreen ? i.mozRequestFullScreen() : i.msRequestFullscreen && i.msRequestFullscreen(); + i.requestFullscreen ? qt(e) ? i.requestFullscreen(e) : i.requestFullscreen() : i.webkitRequestFullscreen ? i.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT) : i.mozRequestFullScreen ? i.mozRequestFullScreen() : i.msRequestFullscreen && i.msRequestFullscreen(); } }, exitFullscreen: function() { @@ -5393,42 +5393,42 @@ var gf = { var s = r.endX - r.startX, a = r.endY - r.startY; switch (this.action) { // Move the current image - case Ed: + case Kd: (s !== 0 || a !== 0) && (this.pointerMoved = !0, this.actionEvent = e, this.move(s, a)); break; // Zoom the current image - case Za: + case lo: if (t.zoomable && t.zoomOnTouch) { - var o = ql(i); + var o = Cc(i); o !== 0 && (this.actionEvent = e, this.zoom(o)); } break; // Rotate the current image - case xd: + case qd: if (t.rotatable && t.rotateOnTouch) { - var l = $l(i); + var l = Uc(i); l !== 0 && (this.actionEvent = e, this.rotate(l)); } break; // Transform the current image - case _s: + case Ts: if (t.zoomable && t.zoomOnTouch) { - var c = ql(i); + var c = Cc(i); c !== 0 && (this.actionEvent = e, this.zoom(c)); } if (t.rotatable && t.rotateOnTouch) { - var d = $l(i); + var d = Uc(i); d !== 0 && (this.actionEvent = e, this.rotate(d)); } break; - case As: { - var h = Math.abs(s); - h > 1 && h > Math.abs(a) && (this.pointerMoved = !0, this.actionEvent = e, this.move(s, 0)); + case Ms: { + var u = Math.abs(s); + u > 1 && u > Math.abs(a) && (this.pointerMoved = !0, this.actionEvent = e, this.move(s, 0)); break; } } - tt(i, function(f) { - f.startX = f.endX, f.startY = f.endY; + nt(i, function(h) { + h.startX = h.endX, h.startY = h.endY; }); } }, @@ -5436,27 +5436,27 @@ var gf = { var e = this.imageData, t = this.viewerData; return this.length > 1 && e.x >= 0 && e.y >= 0 && e.width <= t.width && e.height <= t.height; } -}, bf = Vi.Viewer, Ef = /* @__PURE__ */ (function(n) { +}, tp = ji.Viewer, ip = /* @__PURE__ */ (function(n) { return function() { return n += 1, n; }; -})(-1), ja = /* @__PURE__ */ (function() { +})(-1), fo = /* @__PURE__ */ (function() { function n(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - if (Zu(this, n), !e || e.nodeType !== 1 && e.nodeType !== 11) + if (Mf(this, n), !e || e.nodeType !== 1 && e.nodeType !== 11) throw new Error("The first argument is required and must be an element."); - this.element = e, this.ownerDocument = e.ownerDocument || e.host.ownerDocument, this.options = Nt({}, xl, zt(t) && t), this.action = !1, this.actionEvent = null, this.fading = !1, this.fulled = !1, this.hiding = !1, this.imageClicked = !1, this.imageData = {}, this.index = this.options.initialViewIndex, this.isImg = !1, this.isShown = !1, this.length = 0, this.moving = !1, this.played = !1, this.playing = !1, this.pointers = {}, this.ready = !1, this.rotating = !1, this.scaling = !1, this.showing = !1, this.timeout = !1, this.tooltipping = !1, this.viewed = !1, this.viewing = !1, this.wheeling = !1, this.zoomable = !1, this.zooming = !1, this.pointerMoved = !1, this.id = Ef(), this.init(); + this.element = e, this.ownerDocument = e.ownerDocument || e.host.ownerDocument, this.options = Jt({}, ql, qt(t) && t), this.action = !1, this.actionEvent = null, this.fading = !1, this.fulled = !1, this.hiding = !1, this.imageClicked = !1, this.imageData = {}, this.index = this.options.initialViewIndex, this.isImg = !1, this.isShown = !1, this.length = 0, this.moving = !1, this.played = !1, this.playing = !1, this.pointers = {}, this.ready = !1, this.rotating = !1, this.scaling = !1, this.showing = !1, this.timeout = !1, this.tooltipping = !1, this.viewed = !1, this.viewing = !1, this.wheeling = !1, this.zoomable = !1, this.zooming = !1, this.pointerMoved = !1, this.id = ip(), this.init(); } - return Xu(n, [{ + return Tf(n, [{ key: "init", value: function() { var t = this, i = this.element, r = this.options; - if (!i[Se]) { - i[Se] = this, r.focus && !r.keyboard && (r.focus = !1); + if (!i[Fe]) { + i[Fe] = this, r.focus && !r.keyboard && (r.focus = !1); var s = i.localName === "img", a = []; - if (tt(s ? [i] : i.querySelectorAll("img"), function(c) { - Ke(r.filter) ? r.filter.call(t, c) && a.push(c) : t.getImageURL(c) && a.push(c); - }), this.isImg = s, this.length = a.length, this.images = a, this.initBody(), pi(this.ownerDocument.createElement(Se).style.transition) && (r.transition = !1), r.inline) { + if (nt(s ? [i] : i.querySelectorAll("img"), function(c) { + qe(r.filter) ? r.filter.call(t, c) && a.push(c) : t.getImageURL(c) && a.push(c); + }), this.isImg = s, this.length = a.length, this.images = a, this.initBody(), xi(this.ownerDocument.createElement(Fe).style.transition) && (r.transition = !1), r.inline) { var o = 0, l = function() { if (o += 1, o === t.length) { var d; @@ -5471,33 +5471,33 @@ var gf = { }; this.initializing = { abort: function() { - tt(a, function(d) { - d.complete || (qe(d, vi, l), qe(d, _n, l)); + nt(a, function(d) { + d.complete || (et(d, yi, l), et(d, Mn, l)); }); } - }, tt(a, function(c) { + }, nt(a, function(c) { if (c.complete) l(); else { - var d, h; - Ce(c, vi, d = function() { - qe(c, _n, h), l(); + var d, u; + De(c, yi, d = function() { + et(c, Mn, u), l(); }, { once: !0 - }), Ce(c, _n, h = function() { - qe(c, vi, d), l(); + }), De(c, Mn, u = function() { + et(c, yi, d), l(); }, { once: !0 }); } }); } else - Ce(i, en, this.onElementClick = function(c) { + De(i, pn, this.onElementClick = function(c) { var d = c.target; - d.localName === "img" && (!Ke(r.filter) || r.filter.call(t, d)) && (t.actionEvent = c, t.view(t.images.indexOf(d))); - }), Ce(i, Qs, this.onElementKeyDown = function(c) { - var d = c.target, h = c.key; - d.localName === "img" && (h === "Enter" || h === " ") && (c.preventDefault(), (!Ke(r.filter) || r.filter.call(t, d)) && (t.actionEvent = c, t.view(t.images.indexOf(d)))); + d.localName === "img" && (!qe(r.filter) || r.filter.call(t, d)) && (t.actionEvent = c, t.view(t.images.indexOf(d))); + }), De(i, Hs, this.onElementKeyDown = function(c) { + var d = c.target, u = c.key; + d.localName === "img" && (u === "Enter" || u === " ") && (c.preventDefault(), (!qe(r.filter) || r.filter.call(t, d)) && (t.actionEvent = c, t.view(t.images.indexOf(d)))); }); } } @@ -5507,58 +5507,58 @@ var gf = { var t = this; if (!this.ready) { var i = this.element, r = this.options, s = i.parentNode, a = document.createElement("div"); - a.innerHTML = Ku; - var o = a.querySelector(".".concat(Se, "-container")), l = o.querySelector(".".concat(Se, "-title")), c = o.querySelector(".".concat(Se, "-toolbar")), d = o.querySelector(".".concat(Se, "-navbar")), h = o.querySelector(".".concat(Se, "-navigation")), f = o.querySelector(".".concat(Se, "-button")), u = o.querySelector(".".concat(Se, "-canvas")); - this.parent = s, this.viewer = o, this.title = l, this.toolbar = c, this.navbar = d, this.navigation = h, this.button = f, this.canvas = u, this.magnifier = o.querySelector(".".concat(Se, "-magnifier")), this.magnifierImage = o.querySelector(".".concat(Se, "-magnifier-image")), this.tooltipBox = o.querySelector(".".concat(Se, "-tooltip")), this.player = o.querySelector(".".concat(Se, "-player")), this.list = o.querySelector(".".concat(Se, "-list")), o.id = "".concat(Se).concat(this.id), l.id = "".concat(Se, "Title").concat(this.id), Ae(l, r.title ? Un(Array.isArray(r.title) ? r.title[0] : r.title) : Di), r.title && l.removeAttribute("aria-hidden"); - var g = zt(r.navbar) ? r.navbar : {}, v = r.navbar, m = pi(g.size) ? r.navbar : g.size, p = ["top", "right", "bottom", "left"].indexOf(g.position) !== -1 ? g.position : "bottom"; - zt(r.navbar) && (v = pi(g.show) ? !0 : g.show), Ae(d, v ? Un(v) : Di), v && d.removeAttribute("aria-hidden"), ["small", "medium", "large"].indexOf(m) !== -1 && Ae(d, "".concat(Se, "-").concat(m)); + a.innerHTML = If; + var o = a.querySelector(".".concat(Fe, "-container")), l = o.querySelector(".".concat(Fe, "-title")), c = o.querySelector(".".concat(Fe, "-toolbar")), d = o.querySelector(".".concat(Fe, "-navbar")), u = o.querySelector(".".concat(Fe, "-navigation")), h = o.querySelector(".".concat(Fe, "-button")), f = o.querySelector(".".concat(Fe, "-canvas")); + this.parent = s, this.viewer = o, this.title = l, this.toolbar = c, this.navbar = d, this.navigation = u, this.button = h, this.canvas = f, this.magnifier = o.querySelector(".".concat(Fe, "-magnifier")), this.magnifierImage = o.querySelector(".".concat(Fe, "-magnifier-image")), this.tooltipBox = o.querySelector(".".concat(Fe, "-tooltip")), this.player = o.querySelector(".".concat(Fe, "-player")), this.list = o.querySelector(".".concat(Fe, "-list")), o.id = "".concat(Fe).concat(this.id), l.id = "".concat(Fe, "Title").concat(this.id), Me(l, r.title ? Nn(Array.isArray(r.title) ? r.title[0] : r.title) : Hi), r.title && l.removeAttribute("aria-hidden"); + var g = qt(r.navbar) ? r.navbar : {}, v = r.navbar, m = xi(g.size) ? r.navbar : g.size, p = ["top", "right", "bottom", "left"].indexOf(g.position) !== -1 ? g.position : "bottom"; + qt(r.navbar) && (v = xi(g.show) ? !0 : g.show), Me(d, v ? Nn(v) : Hi), v && d.removeAttribute("aria-hidden"), ["small", "medium", "large"].indexOf(m) !== -1 && Me(d, "".concat(Fe, "-").concat(m)); var A = p === "left" || p === "right"; - if (this.isNavbarVertical = A, Ae(d, "".concat(Se, "-navbar-").concat(p)), v) { - var _ = A ? h : l, S = A ? "navigation" : "title"; - Ae(_, "".concat(Se, "-").concat(S, "-navbar-").concat(p)), A && Ae(l, "".concat(Se, "-title-navbar-").concat(p)), ["small", "large"].indexOf(m) !== -1 && (Ae(_, "".concat(Se, "-").concat(S, "-navbar-").concat(A ? "".concat(p, "-") : "").concat(m)), A && Ae(l, "".concat(Se, "-title-navbar-").concat(p, "-").concat(m))); + if (this.isNavbarVertical = A, Me(d, "".concat(Fe, "-navbar-").concat(p)), v) { + var b = A ? u : l, x = A ? "navigation" : "title"; + Me(b, "".concat(Fe, "-").concat(x, "-navbar-").concat(p)), A && Me(l, "".concat(Fe, "-title-navbar-").concat(p)), ["small", "large"].indexOf(m) !== -1 && (Me(b, "".concat(Fe, "-").concat(x, "-navbar-").concat(A ? "".concat(p, "-") : "").concat(m)), A && Me(l, "".concat(Fe, "-title-navbar-").concat(p, "-").concat(m))); } - if (zt(r.navigation) ? tt(h.querySelectorAll('[role="button"]'), function(F) { - var Q = $i(F, Cr), V = r.navigation[Q], O = zt(V), B = O && !pi(V.show) ? V.show : V, R = O && !pi(V.size) ? V.size : V; - ai(F, Di, !B), nt(B) && Ae(F, Un(B)), ["small", "large"].indexOf(R) !== -1 && Ae(F, "".concat(Se, "-").concat(R)); - }) : Ae(h, r.navigation ? Un(r.navigation) : Di), r.navigation && h.removeAttribute("aria-hidden"), ai(f, Di, !r.button), r.button && f.removeAttribute("aria-hidden"), r.keyboard && (f.setAttribute("tabindex", 0), tt(h.querySelectorAll('[role="button"]'), function(F) { + if (qt(r.navigation) ? nt(u.querySelectorAll('[role="button"]'), function(F) { + var T = fn(F, Fr), N = r.navigation[T], O = qt(N), R = O && !xi(N.show) ? N.show : N, L = O && !xi(N.size) ? N.size : N; + pi(F, Hi, !R), at(R) && Me(F, Nn(R)), ["small", "large"].indexOf(L) !== -1 && Me(F, "".concat(Fe, "-").concat(L)); + }) : Me(u, r.navigation ? Nn(r.navigation) : Hi), r.navigation && u.removeAttribute("aria-hidden"), pi(h, Hi, !r.button), r.button && h.removeAttribute("aria-hidden"), r.keyboard && (h.setAttribute("tabindex", 0), nt(u.querySelectorAll('[role="button"]'), function(F) { F.setAttribute("tabindex", 0); - })), r.backdrop && (Ae(o, "".concat(Se, "-backdrop")), !r.inline && r.backdrop !== "static" && Ka(u, Cr, "hide")), $n(r.className) && r.className && r.className.split(Rr).forEach(function(F) { - Ae(o, F); + })), r.backdrop && (Me(o, "".concat(Fe, "-backdrop")), !r.inline && r.backdrop !== "static" && uo(f, Fr, "hide")), ar(r.className) && r.className && r.className.split(zr).forEach(function(F) { + Me(o, F); }), r.toolbar) { - var M = document.createElement("ul"), C = zt(r.toolbar), U = C && ["top", "right", "bottom", "left"].indexOf(r.toolbar.position) !== -1 ? r.toolbar.position : "bottom", T = Or.slice(0, 3), y = Or.slice(7, 9), b = Or.slice(9); - C || Ae(c, Un(r.toolbar)), c.removeAttribute("aria-hidden"), Ae(c, "".concat(Se, "-toolbar-").concat(U)), Ae(l, "".concat(Se, "-title-toolbar-").concat(U)), v && U === p && (Ae(c, "".concat(Se, "-toolbar-navbar-").concat(p)), ["small", "large"].indexOf(m) !== -1 && Ae(c, "".concat(Se, "-toolbar-navbar-").concat(m))), tt(C ? r.toolbar : Or, function(F, Q) { - if (Q !== "position") { - var V = C && zt(F), O = C ? Go(Q) : F, B = V && !pi(F.show) ? F.show : F; - if (!(!B || !r.zoomable && T.indexOf(O) !== -1 || !r.rotatable && y.indexOf(O) !== -1 || !r.scalable && b.indexOf(O) !== -1)) { - var R = V && !pi(F.size) ? F.size : F, Z = V && !pi(F.click) ? F.click : F, K = document.createElement("li"); - r.keyboard && K.setAttribute("tabindex", 0), K.setAttribute("role", "button"), Ae(K, "".concat(Se, "-").concat(O)), Ke(Z) || Ka(K, Cr, O), nt(B) && Ae(K, Un(B)), ["small", "large"].indexOf(R) !== -1 ? Ae(K, "".concat(Se, "-").concat(R)) : O === "play" && Ae(K, "".concat(Se, "-large")), Ke(Z) && Ce(K, en, Z.bind(t)), M.appendChild(K); + var E = document.createElement("ul"), y = qt(r.toolbar), M = y && ["top", "right", "bottom", "left"].indexOf(r.toolbar.position) !== -1 ? r.toolbar.position : "bottom", S = Kr.slice(0, 3), U = Kr.slice(7, 9), I = Kr.slice(9); + y || Me(c, Nn(r.toolbar)), c.removeAttribute("aria-hidden"), Me(c, "".concat(Fe, "-toolbar-").concat(M)), Me(l, "".concat(Fe, "-title-toolbar-").concat(M)), v && M === p && (Me(c, "".concat(Fe, "-toolbar-navbar-").concat(p)), ["small", "large"].indexOf(m) !== -1 && Me(c, "".concat(Fe, "-toolbar-navbar-").concat(m))), nt(y ? r.toolbar : Kr, function(F, T) { + if (T !== "position") { + var N = y && qt(F), O = y ? ol(T) : F, R = N && !xi(F.show) ? F.show : F; + if (!(!R || !r.zoomable && S.indexOf(O) !== -1 || !r.rotatable && U.indexOf(O) !== -1 || !r.scalable && I.indexOf(O) !== -1)) { + var L = N && !xi(F.size) ? F.size : F, k = N && !xi(F.click) ? F.click : F, G = document.createElement("li"); + r.keyboard && G.setAttribute("tabindex", 0), G.setAttribute("role", "button"), Me(G, "".concat(Fe, "-").concat(O)), qe(k) || uo(G, Fr, O), at(R) && Me(G, Nn(R)), ["small", "large"].indexOf(L) !== -1 ? Me(G, "".concat(Fe, "-").concat(L)) : O === "play" && Me(G, "".concat(Fe, "-large")), qe(k) && De(G, pn, k.bind(t)), E.appendChild(G); } } - }), c.appendChild(M), (U === "left" || U === "right") && Ae(h, "".concat(Se, "-navigation-toolbar-").concat(U)); + }), c.appendChild(E), (M === "left" || M === "right") && Me(u, "".concat(Fe, "-navigation-toolbar-").concat(M)); } else - Ae(c, Di); + Me(c, Hi); if (!r.rotatable) { - var x = c.querySelectorAll('li[class*="rotate"]'); - Ae(x, wr), tt(x, function(F) { + var C = c.querySelectorAll('li[class*="rotate"]'); + Me(C, Tr), nt(C, function(F) { c.appendChild(F); }); } if (r.inline) - Ae(f, qu), Ai(o, { + Me(h, Bf), wi(o, { zIndex: r.zIndexInline - }), window.getComputedStyle(s).position === "static" && Ai(s, { + }), window.getComputedStyle(s).position === "static" && wi(s, { position: "relative" }), s.insertBefore(o, i.nextSibling); else { - Ae(f, ju), Ae(o, Xa), Ae(o, bs), Ae(o, Di), Ai(o, { + Me(h, Rf), Me(o, co), Me(o, Is), Me(o, Hi), wi(o, { zIndex: r.zIndex }); - var D = r.container; - $n(D) && (D = this.ownerDocument.querySelector(D)), D || (D = this.body), D.appendChild(o); + var B = r.container; + ar(B) && (B = this.ownerDocument.querySelector(B)), B || (B = this.body), B.appendChild(o); } - if (r.inline && (this.render(), this.bind(), this.isShown = !0), this.ready = !0, Ke(r.ready) && Ce(i, Ql, r.ready, { + if (r.inline && (this.render(), this.bind(), this.isShown = !0), this.ready = !0, qe(r.ready) && De(i, cc, r.ready, { once: !0 - }), ut(i, Ql) === !1) { + }), At(i, cc) === !1) { this.ready = !1; return; } @@ -5583,7 +5583,7 @@ var gf = { }, { key: "setDefaults", value: function(t) { - Nt(xl, zt(t) && t); + Jt(ql, qt(t) && t); } /** * Get the no conflict viewer class. @@ -5592,13 +5592,13 @@ var gf = { }, { key: "noConflict", value: function() { - return window.Viewer = bf, n; + return window.Viewer = tp, n; } }]); })(); -Nt(ja.prototype, gf, vf, Af, _f, Sf); -const xf = '.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{direction:ltr;font-size:0;inset:0;line-height:0;overflow:hidden;position:absolute;-webkit-tap-highlight-color:transparent;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container *::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container *::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{inset:0;overflow:hidden;position:absolute}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-magnifier{background-color:#fff;background-repeat:no-repeat;border:2px solid #fff;border-radius:50%;box-shadow:0 1px 5px #00000080;box-sizing:border-box;display:none;left:16px;overflow:hidden;pointer-events:none;position:absolute;top:16px;z-index:2}.viewer-magnifier.viewer-show{display:block}.viewer-magnifier-image{left:0;max-width:none!important;position:absolute;top:0;-ms-transform-origin:center;transform-origin:center}.viewer-navigation{left:0;position:absolute;right:0;top:50%}.viewer-navigation>.viewer-prev,.viewer-navigation>.viewer-next{background-color:#00000080;border-radius:50%;cursor:pointer;height:40px;margin-top:-20px;position:absolute;width:40px}.viewer-navigation>.viewer-prev:focus,.viewer-navigation>.viewer-next:focus,.viewer-navigation>.viewer-prev:hover,.viewer-navigation>.viewer-next:hover{background-color:#000c}.viewer-navigation>.viewer-prev:focus,.viewer-navigation>.viewer-next:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-navigation>.viewer-prev:before,.viewer-navigation>.viewer-next:before{margin:10px}.viewer-navigation>.viewer-prev{left:15px}.viewer-navigation>.viewer-next{right:15px}.viewer-navigation>.viewer-large{height:48px;margin-top:-24px;width:48px}.viewer-navigation>.viewer-large:before{margin:14px}.viewer-navigation>.viewer-small{height:32px;margin-top:-16px;width:32px}.viewer-navigation>.viewer-small:before{margin:6px}.viewer-navigation-toolbar-left>.viewer-prev{left:51px}.viewer-navigation-toolbar-right>.viewer-next{right:51px}.viewer-navigation-navbar-left>.viewer-prev{left:67px}.viewer-navigation-navbar-right>.viewer-next{right:67px}.viewer-navigation-navbar-left-small>.viewer-prev{left:57px}.viewer-navigation-navbar-right-small>.viewer-next{right:57px}.viewer-navigation-navbar-left-large>.viewer-prev{left:77px}.viewer-navigation-navbar-right-large>.viewer-next{right:77px}.viewer-navigation.viewer-navigation-toolbar-left.viewer-navigation-navbar-left>.viewer-prev{left:103px}.viewer-navigation.viewer-navigation-toolbar-left.viewer-navigation-navbar-left.viewer-navigation-navbar-left-small>.viewer-prev{left:93px}.viewer-navigation.viewer-navigation-toolbar-left.viewer-navigation-navbar-left.viewer-navigation-navbar-left-large>.viewer-prev{left:113px}.viewer-navigation.viewer-navigation-toolbar-right.viewer-navigation-navbar-right>.viewer-next{right:103px}.viewer-navigation.viewer-navigation-toolbar-right.viewer-navigation-navbar-right.viewer-navigation-navbar-right-small>.viewer-next{right:93px}.viewer-navigation.viewer-navigation-toolbar-right.viewer-navigation-navbar-right.viewer-navigation-navbar-right-large>.viewer-next{right:113px}.viewer-navbar{background-color:#00000080;bottom:0;left:0;overflow:hidden;position:absolute;right:0}.viewer-navbar.viewer-small>.viewer-list{height:40px}.viewer-navbar.viewer-small>.viewer-list>li{height:40px;width:24px}.viewer-navbar.viewer-large>.viewer-list{height:60px}.viewer-navbar.viewer-large>.viewer-list>li{height:60px;width:36px}.viewer-navbar-top{bottom:auto;top:0}.viewer-navbar-left,.viewer-navbar-right{bottom:0;top:0;width:52px}:is(.viewer-navbar-left,.viewer-navbar-right)>.viewer-list{height:auto;padding:0 1px;width:50px}:is(.viewer-navbar-left,.viewer-navbar-right)>.viewer-list>li{float:none;height:30px;width:50px}:is(.viewer-navbar-left,.viewer-navbar-right)>.viewer-list>li+li{margin-left:0;margin-top:1px}.viewer-navbar-left.viewer-small,.viewer-navbar-right.viewer-small{width:42px}:is(.viewer-navbar-left.viewer-small,.viewer-navbar-right.viewer-small)>.viewer-list{width:40px}:is(.viewer-navbar-left.viewer-small,.viewer-navbar-right.viewer-small)>.viewer-list>li{height:24px;width:40px}.viewer-navbar-left.viewer-large,.viewer-navbar-right.viewer-large{width:62px}:is(.viewer-navbar-left.viewer-large,.viewer-navbar-right.viewer-large)>.viewer-list{width:60px}:is(.viewer-navbar-left.viewer-large,.viewer-navbar-right.viewer-large)>.viewer-list>li{height:36px;width:60px}.viewer-navbar-left{right:auto}.viewer-navbar-right{left:auto}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;cursor:none;display:none;inset:0;position:absolute;z-index:1}.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar{bottom:0;left:0;position:absolute;right:0;text-align:center}.viewer-toolbar.viewer-toolbar-top{bottom:auto;top:0}.viewer-toolbar.viewer-toolbar-navbar-top{top:52px}.viewer-toolbar.viewer-toolbar-navbar-top.viewer-toolbar-navbar-small{top:42px}.viewer-toolbar.viewer-toolbar-navbar-top.viewer-toolbar-navbar-large{top:62px}.viewer-toolbar.viewer-toolbar-navbar-right{right:52px}.viewer-toolbar.viewer-toolbar-navbar-right.viewer-toolbar-navbar-small{right:42px}.viewer-toolbar.viewer-toolbar-navbar-right.viewer-toolbar-navbar-large{right:62px}.viewer-toolbar.viewer-toolbar-navbar-bottom{bottom:52px}.viewer-toolbar.viewer-toolbar-navbar-bottom.viewer-toolbar-navbar-small{bottom:42px}.viewer-toolbar.viewer-toolbar-navbar-bottom.viewer-toolbar-navbar-large{bottom:62px}.viewer-toolbar.viewer-toolbar-navbar-left{left:52px}.viewer-toolbar.viewer-toolbar-navbar-left.viewer-toolbar-navbar-small{left:42px}.viewer-toolbar.viewer-toolbar-navbar-left.viewer-toolbar-navbar-large{left:62px}.viewer-toolbar.viewer-toolbar-left,.viewer-toolbar.viewer-toolbar-right{inset:50% 0 auto auto;-ms-transform:translateY(-50%);transform:translateY(-50%);width:36px}.viewer-toolbar.viewer-toolbar-left>ul,.viewer-toolbar.viewer-toolbar-right>ul{margin:0;padding:3px 6px}.viewer-toolbar.viewer-toolbar-left>ul>li,.viewer-toolbar.viewer-toolbar-right>ul>li{float:none}.viewer-toolbar.viewer-toolbar-left>ul>li+li,.viewer-toolbar.viewer-toolbar-right>ul>li+li{margin-left:0;margin-top:1px!important}.viewer-toolbar.viewer-toolbar-left>ul>.viewer-small,.viewer-toolbar.viewer-toolbar-right>ul>.viewer-small{margin:0 3px}.viewer-toolbar.viewer-toolbar-left>ul>.viewer-large,.viewer-toolbar.viewer-toolbar-right>ul>.viewer-large{margin:0 -3px}.viewer-toolbar.viewer-toolbar-left{left:0;right:auto}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:#00000080;border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:#000c;border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{bottom:0;color:#ccc;display:inline-block;font-size:12px;left:50%;line-height:1.2;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;padding:5px;position:absolute;text-overflow:ellipsis;-ms-transform:translateX(-50%);transform:translate(-50%);transition:opacity .15s;white-space:nowrap}.viewer-title.viewer-title-navbar-bottom{bottom:52px}.viewer-title.viewer-title-navbar-bottom.viewer-title-navbar-small{bottom:42px}.viewer-title.viewer-title-navbar-bottom.viewer-title-navbar-large{bottom:62px}.viewer-title.viewer-title-toolbar-bottom{bottom:42px}.viewer-title.viewer-title-toolbar-bottom.viewer-title-navbar-bottom{bottom:94px}.viewer-title.viewer-title-toolbar-bottom.viewer-title-navbar-bottom.viewer-title-navbar-small{bottom:84px}.viewer-title.viewer-title-toolbar-bottom.viewer-title-navbar-bottom.viewer-title-navbar-large{bottom:104px}.viewer-title.viewer-title-toolbar-left,.viewer-title.viewer-title-toolbar-right,.viewer-title.viewer-title-navbar-left,.viewer-title.viewer-title-navbar-right{max-width:none;text-align:center;-ms-transform:none;transform:none}.viewer-title.viewer-title-toolbar-left{left:36px;right:0}.viewer-title.viewer-title-toolbar-right{left:0;right:36px}.viewer-title.viewer-title-navbar-left{left:52px;right:0}.viewer-title.viewer-title-navbar-left.viewer-title-navbar-left-small{left:42px}.viewer-title.viewer-title-navbar-left.viewer-title-navbar-left-large{left:62px}.viewer-title.viewer-title-navbar-right{left:0;right:52px}.viewer-title.viewer-title-navbar-right.viewer-title-navbar-right-small{right:42px}.viewer-title.viewer-title-navbar-right.viewer-title-navbar-right-large{right:62px}.viewer-title.viewer-title-toolbar-left.viewer-title-navbar-right{left:36px}.viewer-title.viewer-title-toolbar-right.viewer-title-navbar-left{right:36px}.viewer-title.viewer-title-toolbar-left.viewer-title-navbar-left{left:88px}.viewer-title.viewer-title-toolbar-left.viewer-title-navbar-left.viewer-title-navbar-left-small{left:78px}.viewer-title.viewer-title-toolbar-left.viewer-title-navbar-left.viewer-title-navbar-left-large{left:98px}.viewer-title.viewer-title-toolbar-right.viewer-title-navbar-right{right:88px}.viewer-title.viewer-title-toolbar-right.viewer-title-navbar-right.viewer-title-navbar-right-small{right:78px}.viewer-title.viewer-title-toolbar-right.viewer-title-navbar-right.viewer-title-navbar-right-large{right:98px}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:#00000080;border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.viewer-loading:after{animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,.1);border-left-color:#ffffff80;border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media(max-width:767px){.viewer-hide-xs-down{display:none}}@media(max-width:991px){.viewer-hide-sm-down{display:none}}@media(max-width:1199px){.viewer-hide-md-down{display:none}}'; -class yf extends cr { +Jt(fo.prototype, Kf, qf, jf, $f, ep); +const np = '.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{direction:ltr;font-size:0;inset:0;line-height:0;overflow:hidden;position:absolute;-webkit-tap-highlight-color:transparent;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container *::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container *::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{inset:0;overflow:hidden;position:absolute}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-magnifier{background-color:#fff;background-repeat:no-repeat;border:2px solid #fff;border-radius:50%;box-shadow:0 1px 5px #00000080;box-sizing:border-box;display:none;left:16px;overflow:hidden;pointer-events:none;position:absolute;top:16px;z-index:2}.viewer-magnifier.viewer-show{display:block}.viewer-magnifier-image{left:0;max-width:none!important;position:absolute;top:0;-ms-transform-origin:center;transform-origin:center}.viewer-navigation{left:0;position:absolute;right:0;top:50%}.viewer-navigation>.viewer-prev,.viewer-navigation>.viewer-next{background-color:#00000080;border-radius:50%;cursor:pointer;height:40px;margin-top:-20px;position:absolute;width:40px}.viewer-navigation>.viewer-prev:focus,.viewer-navigation>.viewer-next:focus,.viewer-navigation>.viewer-prev:hover,.viewer-navigation>.viewer-next:hover{background-color:#000c}.viewer-navigation>.viewer-prev:focus,.viewer-navigation>.viewer-next:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-navigation>.viewer-prev:before,.viewer-navigation>.viewer-next:before{margin:10px}.viewer-navigation>.viewer-prev{left:15px}.viewer-navigation>.viewer-next{right:15px}.viewer-navigation>.viewer-large{height:48px;margin-top:-24px;width:48px}.viewer-navigation>.viewer-large:before{margin:14px}.viewer-navigation>.viewer-small{height:32px;margin-top:-16px;width:32px}.viewer-navigation>.viewer-small:before{margin:6px}.viewer-navigation-toolbar-left>.viewer-prev{left:51px}.viewer-navigation-toolbar-right>.viewer-next{right:51px}.viewer-navigation-navbar-left>.viewer-prev{left:67px}.viewer-navigation-navbar-right>.viewer-next{right:67px}.viewer-navigation-navbar-left-small>.viewer-prev{left:57px}.viewer-navigation-navbar-right-small>.viewer-next{right:57px}.viewer-navigation-navbar-left-large>.viewer-prev{left:77px}.viewer-navigation-navbar-right-large>.viewer-next{right:77px}.viewer-navigation.viewer-navigation-toolbar-left.viewer-navigation-navbar-left>.viewer-prev{left:103px}.viewer-navigation.viewer-navigation-toolbar-left.viewer-navigation-navbar-left.viewer-navigation-navbar-left-small>.viewer-prev{left:93px}.viewer-navigation.viewer-navigation-toolbar-left.viewer-navigation-navbar-left.viewer-navigation-navbar-left-large>.viewer-prev{left:113px}.viewer-navigation.viewer-navigation-toolbar-right.viewer-navigation-navbar-right>.viewer-next{right:103px}.viewer-navigation.viewer-navigation-toolbar-right.viewer-navigation-navbar-right.viewer-navigation-navbar-right-small>.viewer-next{right:93px}.viewer-navigation.viewer-navigation-toolbar-right.viewer-navigation-navbar-right.viewer-navigation-navbar-right-large>.viewer-next{right:113px}.viewer-navbar{background-color:#00000080;bottom:0;left:0;overflow:hidden;position:absolute;right:0}.viewer-navbar.viewer-small>.viewer-list{height:40px}.viewer-navbar.viewer-small>.viewer-list>li{height:40px;width:24px}.viewer-navbar.viewer-large>.viewer-list{height:60px}.viewer-navbar.viewer-large>.viewer-list>li{height:60px;width:36px}.viewer-navbar-top{bottom:auto;top:0}.viewer-navbar-left,.viewer-navbar-right{bottom:0;top:0;width:52px}:is(.viewer-navbar-left,.viewer-navbar-right)>.viewer-list{height:auto;padding:0 1px;width:50px}:is(.viewer-navbar-left,.viewer-navbar-right)>.viewer-list>li{float:none;height:30px;width:50px}:is(.viewer-navbar-left,.viewer-navbar-right)>.viewer-list>li+li{margin-left:0;margin-top:1px}.viewer-navbar-left.viewer-small,.viewer-navbar-right.viewer-small{width:42px}:is(.viewer-navbar-left.viewer-small,.viewer-navbar-right.viewer-small)>.viewer-list{width:40px}:is(.viewer-navbar-left.viewer-small,.viewer-navbar-right.viewer-small)>.viewer-list>li{height:24px;width:40px}.viewer-navbar-left.viewer-large,.viewer-navbar-right.viewer-large{width:62px}:is(.viewer-navbar-left.viewer-large,.viewer-navbar-right.viewer-large)>.viewer-list{width:60px}:is(.viewer-navbar-left.viewer-large,.viewer-navbar-right.viewer-large)>.viewer-list>li{height:36px;width:60px}.viewer-navbar-left{right:auto}.viewer-navbar-right{left:auto}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;cursor:none;display:none;inset:0;position:absolute;z-index:1}.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar{bottom:0;left:0;position:absolute;right:0;text-align:center}.viewer-toolbar.viewer-toolbar-top{bottom:auto;top:0}.viewer-toolbar.viewer-toolbar-navbar-top{top:52px}.viewer-toolbar.viewer-toolbar-navbar-top.viewer-toolbar-navbar-small{top:42px}.viewer-toolbar.viewer-toolbar-navbar-top.viewer-toolbar-navbar-large{top:62px}.viewer-toolbar.viewer-toolbar-navbar-right{right:52px}.viewer-toolbar.viewer-toolbar-navbar-right.viewer-toolbar-navbar-small{right:42px}.viewer-toolbar.viewer-toolbar-navbar-right.viewer-toolbar-navbar-large{right:62px}.viewer-toolbar.viewer-toolbar-navbar-bottom{bottom:52px}.viewer-toolbar.viewer-toolbar-navbar-bottom.viewer-toolbar-navbar-small{bottom:42px}.viewer-toolbar.viewer-toolbar-navbar-bottom.viewer-toolbar-navbar-large{bottom:62px}.viewer-toolbar.viewer-toolbar-navbar-left{left:52px}.viewer-toolbar.viewer-toolbar-navbar-left.viewer-toolbar-navbar-small{left:42px}.viewer-toolbar.viewer-toolbar-navbar-left.viewer-toolbar-navbar-large{left:62px}.viewer-toolbar.viewer-toolbar-left,.viewer-toolbar.viewer-toolbar-right{inset:50% 0 auto auto;-ms-transform:translateY(-50%);transform:translateY(-50%);width:36px}.viewer-toolbar.viewer-toolbar-left>ul,.viewer-toolbar.viewer-toolbar-right>ul{margin:0;padding:3px 6px}.viewer-toolbar.viewer-toolbar-left>ul>li,.viewer-toolbar.viewer-toolbar-right>ul>li{float:none}.viewer-toolbar.viewer-toolbar-left>ul>li+li,.viewer-toolbar.viewer-toolbar-right>ul>li+li{margin-left:0;margin-top:1px!important}.viewer-toolbar.viewer-toolbar-left>ul>.viewer-small,.viewer-toolbar.viewer-toolbar-right>ul>.viewer-small{margin:0 3px}.viewer-toolbar.viewer-toolbar-left>ul>.viewer-large,.viewer-toolbar.viewer-toolbar-right>ul>.viewer-large{margin:0 -3px}.viewer-toolbar.viewer-toolbar-left{left:0;right:auto}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:#00000080;border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:#000c;border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{bottom:0;color:#ccc;display:inline-block;font-size:12px;left:50%;line-height:1.2;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;padding:5px;position:absolute;text-overflow:ellipsis;-ms-transform:translateX(-50%);transform:translate(-50%);transition:opacity .15s;white-space:nowrap}.viewer-title.viewer-title-navbar-bottom{bottom:52px}.viewer-title.viewer-title-navbar-bottom.viewer-title-navbar-small{bottom:42px}.viewer-title.viewer-title-navbar-bottom.viewer-title-navbar-large{bottom:62px}.viewer-title.viewer-title-toolbar-bottom{bottom:42px}.viewer-title.viewer-title-toolbar-bottom.viewer-title-navbar-bottom{bottom:94px}.viewer-title.viewer-title-toolbar-bottom.viewer-title-navbar-bottom.viewer-title-navbar-small{bottom:84px}.viewer-title.viewer-title-toolbar-bottom.viewer-title-navbar-bottom.viewer-title-navbar-large{bottom:104px}.viewer-title.viewer-title-toolbar-left,.viewer-title.viewer-title-toolbar-right,.viewer-title.viewer-title-navbar-left,.viewer-title.viewer-title-navbar-right{max-width:none;text-align:center;-ms-transform:none;transform:none}.viewer-title.viewer-title-toolbar-left{left:36px;right:0}.viewer-title.viewer-title-toolbar-right{left:0;right:36px}.viewer-title.viewer-title-navbar-left{left:52px;right:0}.viewer-title.viewer-title-navbar-left.viewer-title-navbar-left-small{left:42px}.viewer-title.viewer-title-navbar-left.viewer-title-navbar-left-large{left:62px}.viewer-title.viewer-title-navbar-right{left:0;right:52px}.viewer-title.viewer-title-navbar-right.viewer-title-navbar-right-small{right:42px}.viewer-title.viewer-title-navbar-right.viewer-title-navbar-right-large{right:62px}.viewer-title.viewer-title-toolbar-left.viewer-title-navbar-right{left:36px}.viewer-title.viewer-title-toolbar-right.viewer-title-navbar-left{right:36px}.viewer-title.viewer-title-toolbar-left.viewer-title-navbar-left{left:88px}.viewer-title.viewer-title-toolbar-left.viewer-title-navbar-left.viewer-title-navbar-left-small{left:78px}.viewer-title.viewer-title-toolbar-left.viewer-title-navbar-left.viewer-title-navbar-left-large{left:98px}.viewer-title.viewer-title-toolbar-right.viewer-title-navbar-right{right:88px}.viewer-title.viewer-title-toolbar-right.viewer-title-navbar-right.viewer-title-navbar-right-small{right:78px}.viewer-title.viewer-title-toolbar-right.viewer-title-navbar-right.viewer-title-navbar-right-large{right:98px}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:#00000080;border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.viewer-loading:after{animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,.1);border-left-color:#ffffff80;border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media(max-width:767px){.viewer-hide-xs-down{display:none}}@media(max-width:991px){.viewer-hide-sm-down{display:none}}@media(max-width:1199px){.viewer-hide-md-down{display:none}}'; +class rp extends hr { viewer; container; imageUrl = ""; @@ -5606,7 +5606,7 @@ class yf extends cr { this.imageUrl = e, setTimeout(() => { if (this.container = this.query("#imageContainer") ?? void 0, !this.container) return; const t = document.createElement("img"); - t.src = this.imageUrl, t.style.display = "none", this.container.appendChild(t), this.viewer = new ja(t, { + t.src = this.imageUrl, t.style.display = "none", this.container.appendChild(t), this.viewer = new fo(t, { inline: !0, // インラインモードに変更 container: this.container, @@ -5655,7 +5655,7 @@ class yf extends cr { } getCustomStyles() { return this.css` - ${xf} + ${np} :host { --cc-viewer-z-index-each: 1000; @@ -5709,7 +5709,7 @@ class yf extends cr { onAfterRender() { if (!this.isShow || !this.imageUrl || this.viewer || (this.container = this.query("#imageContainer"), !this.container)) return; const e = document.createElement("img"); - e.src = this.imageUrl, e.style.display = "none", this.container.appendChild(e), this.viewer = new ja(e, { + e.src = this.imageUrl, e.style.display = "none", this.container.appendChild(e), this.viewer = new fo(e, { inline: !0, // インラインモードに変更 container: this.container, @@ -5746,8 +5746,8 @@ class yf extends cr { }); } } -customElements.get("cc-viewer-image") || customElements.define("cc-viewer-image", yf); -class Ls extends cr { +customElements.get("cc-viewer-image") || customElements.define("cc-viewer-image", rp); +class Zs extends hr { imgUrl = ""; /** * m1-t9 D5(SRH-2): aframe CDN の Subresource Integrity。 @@ -5810,7 +5810,7 @@ class Ls extends cr { display: none; } -