vendor: 83,663 bytes, lines 1-1764
1/** 2 * Swiper 8.3.0 3 * Most modern mobile touch slider and framework with hardware accelerated transitions 4 * https://swiperjs.com 5 * 6 * Copyright 2014-2022 Vladimir Kharlampidi 7 * 8 * Released under the MIT License 9 * 10 * Released on: July 6, 2022 11 */ 12 13! function (e, t) { 14 "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).Swiper = t() 15}(this, (function () { 16 "use strict"; 17 18 function e(e) { 19 return null !== e && "object" == typeof e && "constructor" in e && e.constructor === Object 20 } 21 22 function t(s, a) { 23 void 0 === s && (s = {}), void 0 === a && (a = {}), Object.keys(a).forEach((i => { 24 void 0 === s[i] ? s[i] = a[i] : e(a[i]) && e(s[i]) && Object.keys(a[i]).length > 0 && t(s[i], a[i]) 25 })) 26 } 27 const s = { 28 body: {}, 29 addEventListener() {}, 30 removeEventListener() {}, 31 activeElement: { 32 blur() {}, 33 nodeName: "" 34 }, 35 querySelector: () => null, 36 querySelectorAll: () => [], 37 getElementById: () => null, 38 createEvent: () => ({ 39 initEvent() {} 40 }), 41 createElement: () => ({ 42 children: [], 43 childNodes: [], 44 style: {}, 45 setAttribute() {}, 46 getElementsByTagName: () => [] 47 }), 48 createElementNS: () => ({}), 49 importNode: () => null, 50 location: { 51 hash: "", 52 host: "", 53 hostname: "", 54 href: "", 55 origin: "", 56 pathname: "", 57 protocol: "", 58 search: "" 59 } 60 }; 61 62 function a() { 63 const e = "undefined" != typeof document ? document : {}; 64 return t(e, s), e 65 } 66 const i = { 67 document: s, 68 navigator: { 69 userAgent: "" 70 }, 71 location: { 72 hash: "", 73 host: "", 74 hostname: "", 75 href: "", 76 origin: "", 77 pathname: "", 78 protocol: "", 79 search: "" 80 }, 81 history: { 82 replaceState() {}, 83 pushState() {}, 84 go() {}, 85 back() {} 86 }, 87 CustomEvent: function () { 88 return this 89 }, 90 addEventListener() {}, 91 removeEventListener() {}, 92 getComputedStyle: () => ({ 93 getPropertyValue: () => "" 94 }), 95 Image() {}, 96 Date() {}, 97 screen: {}, 98 setTimeout() {}, 99 clearTimeout() {}, 100 matchMedia: () => ({}), 101 requestAnimationFrame: e => "undefined" == typeof setTimeout ? (e(), null) : setTimeout(e, 0), 102 cancelAnimationFrame(e) { 103 "undefined" != typeof setTimeout && clearTimeout(e) 104 } 105 }; 106 107 function r() { 108 const e = "undefined" != typeof window ? window : {}; 109 return t(e, i), e 110 } 111 class n extends Array { 112 constructor(e) { 113 "number" == typeof e ? super(e) : (super(...e || []), function (e) { 114 const t = e.__proto__; 115 Object.defineProperty(e, "__proto__", { 116 get: () => t, 117 set(e) { 118 t.__proto__ = e 119 } 120 }) 121 }(this)) 122 } 123 } 124 125 function l(e) { 126 void 0 === e && (e = []); 127 const t = []; 128 return e.forEach((e => { 129 Array.isArray(e) ? t.push(...l(e)) : t.push(e) 130 })), t 131 } 132 133 function o(e, t) { 134 return Array.prototype.filter.call(e, t) 135 } 136 137 function d(e, t) { 138 const s = r(), 139 i = a(); 140 let l = []; 141 if (!t && e instanceof n) return e; 142 if (!e) return new n(l); 143 if ("string" == typeof e) { 144 const s = e.trim(); 145 if (s.indexOf("<") >= 0 && s.indexOf(">") >= 0) { 146 let e = "div"; 147 0 === s.indexOf("<li") && (e = "ul"), 0 === s.indexOf("<tr") && (e = "tbody"), 0 !== s.indexOf("<td") && 0 !== s.indexOf("<th") || (e = "tr"), 0 === s.indexOf("<tbody") && (e = "table"), 0 === s.indexOf("<option") && (e = "select"); 148 const t = i.createElement(e); 149 t.innerHTML = s; 150 for (let e = 0; e < t.childNodes.length; e += 1) l.push(t.childNodes[e]) 151 } else l = function (e, t) { 152 if ("string" != typeof e) return [e]; 153 const s = [], 154 a = t.querySelectorAll(e); 155 for (let e = 0; e < a.length; e += 1) s.push(a[e]); 156 return s 157 }(e.trim(), t || i) 158 } else if (e.nodeType || e === s || e === i) l.push(e); 159 else if (Array.isArray(e)) { 160 if (e instanceof n) return e; 161 l = e 162 } 163 return new n(function (e) { 164 const t = []; 165 for (let s = 0; s < e.length; s += 1) - 1 === t.indexOf(e[s]) && t.push(e[s]); 166 return t 167 }(l)) 168 } 169 d.fn = n.prototype; 170 const c = { 171 addClass: function () { 172 for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++) t[s] = arguments[s]; 173 const a = l(t.map((e => e.split(" ")))); 174 return this.forEach((e => { 175 e.classList.add(...a) 176 })), this 177 }, 178 removeClass: function () { 179 for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++) t[s] = arguments[s]; 180 const a = l(t.map((e => e.split(" ")))); 181 return this.forEach((e => { 182 e.classList.remove(...a) 183 })), this 184 }, 185 hasClass: function () { 186 for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++) t[s] = arguments[s]; 187 const a = l(t.map((e => e.split(" ")))); 188 return o(this, (e => a.filter((t => e.classList.contains(t))).length > 0)).length > 0 189 }, 190 toggleClass: function () { 191 for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++) t[s] = arguments[s]; 192 const a = l(t.map((e => e.split(" ")))); 193 this.forEach((e => { 194 a.forEach((t => { 195 e.classList.toggle(t) 196 })) 197 })) 198 }, 199 attr: function (e, t) { 200 if (1 === arguments.length && "string" == typeof e) return this[0] ? this[0].getAttribute(e) : void 0; 201 for (let s = 0; s < this.length; s += 1) 202 if (2 === arguments.length) this[s].setAttribute(e, t); 203 else 204 for (const t in e) this[s][t] = e[t], this[s].setAttribute(t, e[t]); 205 return this 206 }, 207 removeAttr: function (e) { 208 for (let t = 0; t < this.length; t += 1) this[t].removeAttribute(e); 209 return this 210 }, 211 transform: function (e) { 212 for (let t = 0; t < this.length; t += 1) this[t].style.transform = e; 213 return this 214 }, 215 transition: function (e) { 216 for (let t = 0; t < this.length; t += 1) this[t].style.transitionDuration = "string" != typeof e ? `${e}ms` : e; 217 return this 218 }, 219 on: function () { 220 for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++) t[s] = arguments[s]; 221 let [a, i, r, n] = t; 222 223 function l(e) { 224 const t = e.target; 225 if (!t) return; 226 const s = e.target.dom7EventData || []; 227 if (s.indexOf(e) < 0 && s.unshift(e), d(t).is(i)) r.apply(t, s); 228 else { 229 const e = d(t).parents(); 230 for (let t = 0; t < e.length; t += 1) d(e[t]).is(i) && r.apply(e[t], s) 231 } 232 } 233 234 function o(e) { 235 const t = e && e.target && e.target.dom7EventData || []; 236 t.indexOf(e) < 0 && t.unshift(e), r.apply(this, t) 237 } 238 "function" == typeof t[1] && ([a, r, n] = t, i = void 0), n || (n = !1); 239 const c = a.split(" "); 240 let p; 241 for (let e = 0; e < this.length; e += 1) { 242 const t = this[e]; 243 if (i) 244 for (p = 0; p < c.length; p += 1) { 245 const e = c[p]; 246 t.dom7LiveListeners || (t.dom7LiveListeners = {}), t.dom7LiveListeners[e] || (t.dom7LiveListeners[e] = []), t.dom7LiveListeners[e].push({ 247 listener: r, 248 proxyListener: l 249 }), t.addEventListener(e, l, n) 250 } else 251 for (p = 0; p < c.length; p += 1) { 252 const e = c[p]; 253 t.dom7Listeners || (t.dom7Listeners = {}), t.dom7Listeners[e] || (t.dom7Listeners[e] = []), t.dom7Listeners[e].push({ 254 listener: r, 255 proxyListener: o 256 }), t.addEventListener(e, o, n) 257 } 258 } 259 return this 260 }, 261 off: function () { 262 for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++) t[s] = arguments[s]; 263 let [a, i, r, n] = t; 264 "function" == typeof t[1] && ([a, r, n] = t, i = void 0), n || (n = !1); 265 const l = a.split(" "); 266 for (let e = 0; e < l.length; e += 1) { 267 const t = l[e]; 268 for (let e = 0; e < this.length; e += 1) { 269 const s = this[e]; 270 let a; 271 if (!i && s.dom7Listeners ? a = s.dom7Listeners[t] : i && s.dom7LiveListeners && (a = s.dom7LiveListeners[t]), a && a.length) 272 for (let e = a.length - 1; e >= 0; e -= 1) { 273 const i = a[e]; 274 r && i.listener === r || r && i.listener && i.listener.dom7proxy && i.listener.dom7proxy === r ? (s.removeEventListener(t, i.proxyListener, n), a.splice(e, 1)) : r || (s.removeEventListener(t, i.proxyListener, n), a.splice(e, 1)) 275 } 276 } 277 } 278 return this 279 }, 280 trigger: function () { 281 const e = r(); 282 for (var t = arguments.length, s = new Array(t), a = 0; a < t; a++) s[a] = arguments[a]; 283 const i = s[0].split(" "), 284 n = s[1]; 285 for (let t = 0; t < i.length; t += 1) { 286 const a = i[t]; 287 for (let t = 0; t < this.length; t += 1) { 288 const i = this[t]; 289 if (e.CustomEvent) { 290 const t = new e.CustomEvent(a, { 291 detail: n, 292 bubbles: !0, 293 cancelable: !0 294 }); 295 i.dom7EventData = s.filter(((e, t) => t > 0)), i.dispatchEvent(t), i.dom7EventData = [], delete i.dom7EventData 296 } 297 } 298 } 299 return this 300 }, 301 transitionEnd: function (e) { 302 const t = this; 303 return e && t.on("transitionend", (function s(a) { 304 a.target === this && (e.call(this, a), t.off("transitionend", s)) 305 })), this 306 }, 307 outerWidth: function (e) { 308 if (this.length > 0) { 309 if (e) { 310 const e = this.styles(); 311 return this[0].offsetWidth + parseFloat(e.getPropertyValue("margin-right")) + parseFloat(e.getPropertyValue("margin-left")) 312 } 313 return this[0].offsetWidth 314 } 315 return null 316 }, 317 outerHeight: function (e) { 318 if (this.length > 0) { 319 if (e) { 320 const e = this.styles(); 321 return this[0].offsetHeight + parseFloat(e.getPropertyValue("margin-top")) + parseFloat(e.getPropertyValue("margin-bottom")) 322 } 323 return this[0].offsetHeight 324 } 325 return null 326 }, 327 styles: function () { 328 const e = r(); 329 return this[0] ? e.getComputedStyle(this[0], null) : {} 330 }, 331 offset: function () { 332 if (this.length > 0) { 333 const e = r(), 334 t = a(), 335 s = this[0], 336 i = s.getBoundingClientRect(), 337 n = t.body, 338 l = s.clientTop || n.clientTop || 0, 339 o = s.clientLeft || n.clientLeft || 0, 340 d = s === e ? e.scrollY : s.scrollTop, 341 c = s === e ? e.scrollX : s.scrollLeft; 342 return { 343 top: i.top + d - l, 344 left: i.left + c - o 345 } 346 } 347 return null 348 }, 349 css: function (e, t) { 350 const s = r(); 351 let a; 352 if (1 === arguments.length) { 353 if ("string" != typeof e) { 354 for (a = 0; a < this.length; a += 1) 355 for (const t in e) this[a].style[t] = e[t]; 356 return this 357 } 358 if (this[0]) return s.getComputedStyle(this[0], null).getPropertyValue(e) 359 } 360 if (2 === arguments.length && "string" == typeof e) { 361 for (a = 0; a < this.length; a += 1) this[a].style[e] = t; 362 return this 363 } 364 return this 365 }, 366 each: function (e) { 367 return e ? (this.forEach(((t, s) => { 368 e.apply(t, [t, s]) 369 })), this) : this 370 }, 371 html: function (e) { 372 if (void 0 === e) return this[0] ? this[0].innerHTML : null; 373 for (let t = 0; t < this.length; t += 1) this[t].innerHTML = e; 374 return this 375 }, 376 text: function (e) { 377 if (void 0 === e) return this[0] ? this[0].textContent.trim() : null; 378 for (let t = 0; t < this.length; t += 1) this[t].textContent = e; 379 return this 380 }, 381 is: function (e) { 382 const t = r(), 383 s = a(), 384 i = this[0]; 385 let l, o; 386 if (!i || void 0 === e) return !1; 387 if ("string" == typeof e) { 388 if (i.matches) return i.matches(e); 389 if (i.webkitMatchesSelector) return i.webkitMatchesSelector(e); 390 if (i.msMatchesSelector) return i.msMatchesSelector(e); 391 for (l = d(e), o = 0; o < l.length; o += 1) 392 if (l[o] === i) return !0; 393 return !1 394 } 395 if (e === s) return i === s; 396 if (e === t) return i === t; 397 if (e.nodeType || e instanceof n) { 398 for (l = e.nodeType ? [e] : e, o = 0; o < l.length; o += 1) 399 if (l[o] === i) return !0; 400 return !1 401 } 402 return !1 403 }, 404 index: function () { 405 let e, t = this[0]; 406 if (t) { 407 for (e = 0; null !== (t = t.previousSibling);) 1 === t.nodeType && (e += 1); 408 return e 409 } 410 }, 411 eq: function (e) { 412 if (void 0 === e) return this; 413 const t = this.length; 414 if (e > t - 1) return d([]); 415 if (e < 0) { 416 const s = t + e; 417 return d(s < 0 ? [] : [this[s]]) 418 } 419 return d([this[e]]) 420 }, 421 append: function () { 422 let e; 423 const t = a(); 424 for (let s = 0; s < arguments.length; s += 1) { 425 e = s < 0 || arguments.length <= s ? void 0 : arguments[s]; 426 for (let s = 0; s < this.length; s += 1) 427 if ("string" == typeof e) { 428 const a = t.createElement("div"); 429 for (a.innerHTML = e; a.firstChild;) this[s].appendChild(a.firstChild) 430 } else if (e instanceof n) 431 for (let t = 0; t < e.length; t += 1) this[s].appendChild(e[t]); 432 else this[s].appendChild(e) 433 } 434 return this 435 }, 436 prepend: function (e) { 437 const t = a(); 438 let s, i; 439 for (s = 0; s < this.length; s += 1) 440 if ("string" == typeof e) { 441 const a = t.createElement("div"); 442 for (a.innerHTML = e, i = a.childNodes.length - 1; i >= 0; i -= 1) this[s].insertBefore(a.childNodes[i], this[s].childNodes[0]) 443 } else if (e instanceof n) 444 for (i = 0; i < e.length; i += 1) this[s].insertBefore(e[i], this[s].childNodes[0]); 445 else this[s].insertBefore(e, this[s].childNodes[0]); 446 return this 447 }, 448 next: function (e) { 449 return this.length > 0 ? e ? this[0].nextElementSibling && d(this[0].nextElementSibling).is(e) ? d([this[0].nextElementSibling]) : d([]) : this[0].nextElementSibling ? d([this[0].nextElementSibling]) : d([]) : d([]) 450 }, 451 nextAll: function (e) { 452 const t = []; 453 let s = this[0]; 454 if (!s) return d([]); 455 for (; s.nextElementSibling;) { 456 const a = s.nextElementSibling; 457 e ? d(a).is(e) && t.push(a) : t.push(a), s = a 458 } 459 return d(t) 460 }, 461 prev: function (e) { 462 if (this.length > 0) { 463 const t = this[0]; 464 return e ? t.previousElementSibling && d(t.previousElementSibling).is(e) ? d([t.previousElementSibling]) : d([]) : t.previousElementSibling ? d([t.previousElementSibling]) : d([]) 465 } 466 return d([]) 467 }, 468 prevAll: function (e) { 469 const t = []; 470 let s = this[0]; 471 if (!s) return d([]); 472 for (; s.previousElementSibling;) { 473 const a = s.previousElementSibling; 474 e ? d(a).is(e) && t.push(a) : t.push(a), s = a 475 } 476 return d(t) 477 }, 478 parent: function (e) { 479 const t = []; 480 for (let s = 0; s < this.length; s += 1) null !== this[s].parentNode && (e ? d(this[s].parentNode).is(e) && t.push(this[s].parentNode) : t.push(this[s].parentNode)); 481 return d(t) 482 }, 483 parents: function (e) { 484 const t = []; 485 for (let s = 0; s < this.length; s += 1) { 486 let a = this[s].parentNode; 487 for (; a;) e ? d(a).is(e) && t.push(a) : t.push(a), a = a.parentNode 488 } 489 return d(t) 490 }, 491 closest: function (e) { 492 let t = this; 493 return void 0 === e ? d([]) : (t.is(e) || (t = t.parents(e).eq(0)), t) 494 }, 495 find: function (e) { 496 const t = []; 497 for (let s = 0; s < this.length; s += 1) { 498 const a = this[s].querySelectorAll(e); 499 for (let e = 0; e < a.length; e += 1) t.push(a[e]) 500 } 501 return d(t) 502 }, 503 children: function (e) { 504 const t = []; 505 for (let s = 0; s < this.length; s += 1) { 506 const a = this[s].children; 507 for (let s = 0; s < a.length; s += 1) e && !d(a[s]).is(e) || t.push(a[s]) 508 } 509 return d(t) 510 }, 511 filter: function (e) { 512 return d(o(this, e)) 513 }, 514 remove: function () { 515 for (let e = 0; e < this.length; e += 1) this[e].parentNode && this[e].parentNode.removeChild(this[e]); 516 return this 517 } 518 }; 519 520 function p(e, t) { 521 return void 0 === t && (t = 0), setTimeout(e, t) 522 } 523 524 function u() { 525 return Date.now() 526 } 527 528 function h(e, t) { 529 void 0 === t && (t = "x"); 530 const s = r(); 531 let a, i, n; 532 const l = function (e) { 533 const t = r(); 534 let s; 535 return t.getComputedStyle && (s = t.getComputedStyle(e, null)), !s && e.currentStyle && (s = e.currentStyle), s || (s = e.style), s 536 }(e); 537 return s.WebKitCSSMatrix ? (i = l.transform || l.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((e => e.replace(",", "."))).join(", ")), n = new s.WebKitCSSMatrix("none" === i ? "" : i)) : (n = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), a = n.toString().split(",")), "x" === t && (i = s.WebKitCSSMatrix ? n.m41 : 16 === a.length ? parseFloat(a[12]) : parseFloat(a[4])), "y" === t && (i = s.WebKitCSSMatrix ? n.m42 : 16 === a.length ? parseFloat(a[13]) : parseFloat(a[5])), i || 0 538 } 539 540 function m(e) { 541 return "object" == typeof e && null !== e && e.constructor && "Object" === Object.prototype.toString.call(e).slice(8, -1) 542 } 543 544 function f(e) { 545 return "undefined" != typeof window && void 0 !== window.HTMLElement ? e instanceof HTMLElement : e && (1 === e.nodeType || 11 === e.nodeType) 546 } 547 548 function g() { 549 const e = Object(arguments.length <= 0 ? void 0 : arguments[0]), 550 t = ["__proto__", "constructor", "prototype"]; 551 for (let s = 1; s < arguments.length; s += 1) { 552 const a = s < 0 || arguments.length <= s ? void 0 : arguments[s]; 553 if (null != a && !f(a)) { 554 const s = Object.keys(Object(a)).filter((e => t.indexOf(e) < 0)); 555 for (let t = 0, i = s.length; t < i; t += 1) { 556 const i = s[t], 557 r = Object.getOwnPropertyDescriptor(a, i); 558 void 0 !== r && r.enumerable && (m(e[i]) && m(a[i]) ? a[i].__swiper__ ? e[i] = a[i] : g(e[i], a[i]) : !m(e[i]) && m(a[i]) ? (e[i] = {}, a[i].__swiper__ ? e[i] = a[i] : g(e[i], a[i])) : e[i] = a[i]) 559 } 560 } 561 } 562 return e 563 } 564 565 function v(e, t, s) { 566 e.style.setProperty(t, s) 567 } 568 569 function w(e) { 570 let { 571 swiper: t, 572 targetPosition: s, 573 side: a 574 } = e; 575 const i = r(), 576 n = -t.translate; 577 let l, o = null; 578 const d = t.params.speed; 579 t.wrapperEl.style.scrollSnapType = "none", i.cancelAnimationFrame(t.cssModeFrameID); 580 const c = s > n ? "next" : "prev", 581 p = (e, t) => "next" === c && e >= t || "prev" === c && e <= t, 582 u = () => { 583 l = (new Date).getTime(), null === o && (o = l); 584 const e = Math.max(Math.min((l - o) / d, 1), 0), 585 r = .5 - Math.cos(e * Math.PI) / 2; 586 let c = n + r * (s - n); 587 if (p(c, s) && (c = s), t.wrapperEl.scrollTo({ 588 [a]: c 589 }), p(c, s)) return t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.scrollSnapType = "", setTimeout((() => { 590 t.wrapperEl.style.overflow = "", t.wrapperEl.scrollTo({ 591 [a]: c 592 }) 593 })), void i.cancelAnimationFrame(t.cssModeFrameID); 594 t.cssModeFrameID = i.requestAnimationFrame(u) 595 }; 596 u() 597 } 598 let b, x, y; 599 600 function E() { 601 return b || (b = function () { 602 const e = r(), 603 t = a(); 604 return { 605 smoothScroll: t.documentElement && "scrollBehavior" in t.documentElement.style, 606 touch: !!("ontouchstart" in e || e.DocumentTouch && t instanceof e.DocumentTouch), 607 passiveListener: function () { 608 let t = !1; 609 try { 610 const s = Object.defineProperty({}, "passive", { 611 get() { 612 t = !0 613 } 614 }); 615 e.addEventListener("testPassiveListener", null, s) 616 } catch (e) {} 617 return t 618 }(), 619 gestures: "ongesturestart" in e 620 } 621 }()), b 622 } 623 624 function C(e) { 625 return void 0 === e && (e = {}), x || (x = function (e) { 626 let { 627 userAgent: t 628 } = void 0 === e ? {} : e; 629 const s = E(), 630 a = r(), 631 i = a.navigator.platform, 632 n = t || a.navigator.userAgent, 633 l = { 634 ios: !1, 635 android: !1 636 }, 637 o = a.screen.width, 638 d = a.screen.height, 639 c = n.match(/(Android);?[\s\/]+([\d.]+)?/); 640 let p = n.match(/(iPad).*OS\s([\d_]+)/); 641 const u = n.match(/(iPod)(.*OS\s([\d_]+))?/), 642 h = !p && n.match(/(iPhone\sOS|iOS)\s([\d_]+)/), 643 m = "Win32" === i; 644 let f = "MacIntel" === i; 645 return !p && f && s.touch && ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"].indexOf(`${o}x${d}`) >= 0 && (p = n.match(/(Version)\/([\d.]+)/), p || (p = [0, 1, "13_0_0"]), f = !1), c && !m && (l.os = "android", l.android = !0), (p || h || u) && (l.os = "ios", l.ios = !0), l 646 }(e)), x 647 } 648 649 function T() { 650 return y || (y = function () { 651 const e = r(); 652 return { 653 isSafari: function () { 654 const t = e.navigator.userAgent.toLowerCase(); 655 return t.indexOf("safari") >= 0 && t.indexOf("chrome") < 0 && t.indexOf("android") < 0 656 }(), 657 isWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent) 658 } 659 }()), y 660 } 661 Object.keys(c).forEach((e => { 662 Object.defineProperty(d.fn, e, { 663 value: c[e], 664 writable: !0 665 }) 666 })); 667 var $ = { 668 on(e, t, s) { 669 const a = this; 670 if (!a.eventsListeners || a.destroyed) return a; 671 if ("function" != typeof t) return a; 672 const i = s ? "unshift" : "push"; 673 return e.split(" ").forEach((e => { 674 a.eventsListeners[e] || (a.eventsListeners[e] = []), a.eventsListeners[e][i](t) 675 })), a 676 }, 677 once(e, t, s) { 678 const a = this; 679 if (!a.eventsListeners || a.destroyed) return a; 680 if ("function" != typeof t) return a; 681 682 function i() { 683 a.off(e, i), i.__emitterProxy && delete i.__emitterProxy; 684 for (var s = arguments.length, r = new Array(s), n = 0; n < s; n++) r[n] = arguments[n]; 685 t.apply(a, r) 686 } 687 return i.__emitterProxy = t, a.on(e, i, s) 688 }, 689 onAny(e, t) { 690 const s = this; 691 if (!s.eventsListeners || s.destroyed) return s; 692 if ("function" != typeof e) return s; 693 const a = t ? "unshift" : "push"; 694 return s.eventsAnyListeners.indexOf(e) < 0 && s.eventsAnyListeners[a](e), s 695 }, 696 offAny(e) { 697 const t = this; 698 if (!t.eventsListeners || t.destroyed) return t; 699 if (!t.eventsAnyListeners) return t; 700 const s = t.eventsAnyListeners.indexOf(e); 701 return s >= 0 && t.eventsAnyListeners.splice(s, 1), t 702 }, 703 off(e, t) { 704 const s = this; 705 return !s.eventsListeners || s.destroyed ? s : s.eventsListeners ? (e.split(" ").forEach((e => { 706 void 0 === t ? s.eventsListeners[e] = [] : s.eventsListeners[e] && s.eventsListeners[e].forEach(((a, i) => { 707 (a === t || a.__emitterProxy && a.__emitterProxy === t) && s.eventsListeners[e].splice(i, 1) 708 })) 709 })), s) : s 710 }, 711 emit() { 712 const e = this; 713 if (!e.eventsListeners || e.destroyed) return e; 714 if (!e.eventsListeners) return e; 715 let t, s, a; 716 for (var i = arguments.length, r = new Array(i), n = 0; n < i; n++) r[n] = arguments[n]; 717 "string" == typeof r[0] || Array.isArray(r[0]) ? (t = r[0], s = r.slice(1, r.length), a = e) : (t = r[0].events, s = r[0].data, a = r[0].context || e), s.unshift(a); 718 return (Array.isArray(t) ? t : t.split(" ")).forEach((t => { 719 e.eventsAnyListeners && e.eventsAnyListeners.length && e.eventsAnyListeners.forEach((e => { 720 e.apply(a, [t, ...s]) 721 })), e.eventsListeners && e.eventsListeners[t] && e.eventsListeners[t].forEach((e => { 722 e.apply(a, s) 723 })) 724 })), e 725 } 726 }; 727 var S = { 728 updateSize: function () { 729 const e = this; 730 let t, s; 731 const a = e.$el; 732 t = void 0 !== e.params.width && null !== e.params.width ? e.params.width : a[0].clientWidth, s = void 0 !== e.params.height && null !== e.params.height ? e.params.height : a[0].clientHeight, 0 === t && e.isHorizontal() || 0 === s && e.isVertical() || (t = t - parseInt(a.css("padding-left") || 0, 10) - parseInt(a.css("padding-right") || 0, 10), s = s - parseInt(a.css("padding-top") || 0, 10) - parseInt(a.css("padding-bottom") || 0, 10), Number.isNaN(t) && (t = 0), Number.isNaN(s) && (s = 0), Object.assign(e, { 733 width: t, 734 height: s, 735 size: e.isHorizontal() ? t : s 736 })) 737 }, 738 updateSlides: function () { 739 const e = this; 740 741 function t(t) { 742 return e.isHorizontal() ? t : { 743 width: "height", 744 "margin-top": "margin-left", 745 "margin-bottom ": "margin-right", 746 "margin-left": "margin-top", 747 "margin-right": "margin-bottom", 748 "padding-left": "padding-top", 749 "padding-right": "padding-bottom", 750 marginRight: "marginBottom" 751 } [t] 752 } 753 754 function s(e, s) { 755 return parseFloat(e.getPropertyValue(t(s)) || 0) 756 } 757 const a = e.params, 758 { 759 $wrapperEl: i, 760 size: r, 761 rtlTranslate: n, 762 wrongRTL: l 763 } = e, 764 o = e.virtual && a.virtual.enabled, 765 d = o ? e.virtual.slides.length : e.slides.length, 766 c = i.children(`.${e.params.slideClass}`), 767 p = o ? e.virtual.slides.length : c.length; 768 let u = []; 769 const h = [], 770 m = []; 771 let f = a.slidesOffsetBefore; 772 "function" == typeof f && (f = a.slidesOffsetBefore.call(e)); 773 let g = a.slidesOffsetAfter; 774 "function" == typeof g && (g = a.slidesOffsetAfter.call(e)); 775 const w = e.snapGrid.length, 776 b = e.slidesGrid.length; 777 let x = a.spaceBetween, 778 y = -f, 779 E = 0, 780 C = 0; 781 if (void 0 === r) return; 782 "string" == typeof x && x.indexOf("%") >= 0 && (x = parseFloat(x.replace("%", "")) / 100 * r), e.virtualSize = -x, n ? c.css({ 783 marginLeft: "", 784 marginBottom: "", 785 marginTop: "" 786 }) : c.css({ 787 marginRight: "", 788 marginBottom: "", 789 marginTop: "" 790 }), a.centeredSlides && a.cssMode && (v(e.wrapperEl, "--swiper-centered-offset-before", ""), v(e.wrapperEl, "--swiper-centered-offset-after", "")); 791 const T = a.grid && a.grid.rows > 1 && e.grid; 792 let $; 793 T && e.grid.initSlides(p); 794 const S = "auto" === a.slidesPerView && a.breakpoints && Object.keys(a.breakpoints).filter((e => void 0 !== a.breakpoints[e].slidesPerView)).length > 0; 795 for (let i = 0; i < p; i += 1) { 796 $ = 0; 797 const n = c.eq(i); 798 if (T && e.grid.updateSlide(i, n, p, t), "none" !== n.css("display")) { 799 if ("auto" === a.slidesPerView) { 800 S && (c[i].style[t("width")] = ""); 801 const r = getComputedStyle(n[0]), 802 l = n[0].style.transform, 803 o = n[0].style.webkitTransform; 804 if (l && (n[0].style.transform = "none"), o && (n[0].style.webkitTransform = "none"), a.roundLengths) $ = e.isHorizontal() ? n.outerWidth(!0) : n.outerHeight(!0); 805 else { 806 const e = s(r, "width"), 807 t = s(r, "padding-left"), 808 a = s(r, "padding-right"), 809 i = s(r, "margin-left"), 810 l = s(r, "margin-right"), 811 o = r.getPropertyValue("box-sizing"); 812 if (o && "border-box" === o) $ = e + i + l; 813 else { 814 const { 815 clientWidth: s, 816 offsetWidth: r 817 } = n[0]; 818 $ = e + t + a + i + l + (r - s) 819 } 820 } 821 l && (n[0].style.transform = l), o && (n[0].style.webkitTransform = o), a.roundLengths && ($ = Math.floor($)) 822 } else $ = (r - (a.slidesPerView - 1) * x) / a.slidesPerView, a.roundLengths && ($ = Math.floor($)), c[i] && (c[i].style[t("width")] = `${$}px`); 823 c[i] && (c[i].swiperSlideSize = $), m.push($), a.centeredSlides ? (y = y + $ / 2 + E / 2 + x, 0 === E && 0 !== i && (y = y - r / 2 - x), 0 === i && (y = y - r / 2 - x), Math.abs(y) < .001 && (y = 0), a.roundLengths && (y = Math.floor(y)), C % a.slidesPerGroup == 0 && u.push(y), h.push(y)) : (a.roundLengths && (y = Math.floor(y)), (C - Math.min(e.params.slidesPerGroupSkip, C)) % e.params.slidesPerGroup == 0 && u.push(y), h.push(y), y = y + $ + x), e.virtualSize += $ + x, E = $, C += 1 824 } 825 } 826 if (e.virtualSize = Math.max(e.virtualSize, r) + g, n && l && ("slide" === a.effect || "coverflow" === a.effect) && i.css({ 827 width: `${e.virtualSize+a.spaceBetween}px` 828 }), a.setWrapperSize && i.css({ 829 [t("width")]: `${e.virtualSize+a.spaceBetween}px` 830 }), T && e.grid.updateWrapperSize($, u, t), !a.centeredSlides) { 831 const t = []; 832 for (let s = 0; s < u.length; s += 1) { 833 let i = u[s]; 834 a.roundLengths && (i = Math.floor(i)), u[s] <= e.virtualSize - r && t.push(i) 835 } 836 u = t, Math.floor(e.virtualSize - r) - Math.floor(u[u.length - 1]) > 1 && u.push(e.virtualSize - r) 837 } 838 if (0 === u.length && (u = [0]), 0 !== a.spaceBetween) { 839 const s = e.isHorizontal() && n ? "marginLeft" : t("marginRight"); 840 c.filter(((e, t) => !a.cssMode || t !== c.length - 1)).css({ 841 [s]: `${x}px` 842 }) 843 } 844 if (a.centeredSlides && a.centeredSlidesBounds) { 845 let e = 0; 846 m.forEach((t => { 847 e += t + (a.spaceBetween ? a.spaceBetween : 0) 848 })), e -= a.spaceBetween; 849 const t = e - r; 850 u = u.map((e => e < 0 ? -f : e > t ? t + g : e)) 851 } 852 if (a.centerInsufficientSlides) { 853 let e = 0; 854 if (m.forEach((t => { 855 e += t + (a.spaceBetween ? a.spaceBetween : 0) 856 })), e -= a.spaceBetween, e < r) { 857 const t = (r - e) / 2; 858 u.forEach(((e, s) => { 859 u[s] = e - t 860 })), h.forEach(((e, s) => { 861 h[s] = e + t 862 })) 863 } 864 } 865 if (Object.assign(e, { 866 slides: c, 867 snapGrid: u, 868 slidesGrid: h, 869 slidesSizesGrid: m 870 }), a.centeredSlides && a.cssMode && !a.centeredSlidesBounds) { 871 v(e.wrapperEl, "--swiper-centered-offset-before", -u[0] + "px"), v(e.wrapperEl, "--swiper-centered-offset-after", e.size / 2 - m[m.length - 1] / 2 + "px"); 872 const t = -e.snapGrid[0], 873 s = -e.slidesGrid[0]; 874 e.snapGrid = e.snapGrid.map((e => e + t)), e.slidesGrid = e.slidesGrid.map((e => e + s)) 875 } 876 if (p !== d && e.emit("slidesLengthChange"), u.length !== w && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), h.length !== b && e.emit("slidesGridLengthChange"), a.watchSlidesProgress && e.updateSlidesOffset(), !(o || a.cssMode || "slide" !== a.effect && "fade" !== a.effect)) { 877 const t = `${a.containerModifierClass}backface-hidden`, 878 s = e.$el.hasClass(t); 879 p <= a.maxBackfaceHiddenSlides ? s || e.$el.addClass(t) : s && e.$el.removeClass(t) 880 } 881 }, 882 updateAutoHeight: function (e) { 883 const t = this, 884 s = [], 885 a = t.virtual && t.params.virtual.enabled; 886 let i, r = 0; 887 "number" == typeof e ? t.setTransition(e) : !0 === e && t.setTransition(t.params.speed); 888 const n = e => a ? t.slides.filter((t => parseInt(t.getAttribute("data-swiper-slide-index"), 10) === e))[0] : t.slides.eq(e)[0]; 889 if ("auto" !== t.params.slidesPerView && t.params.slidesPerView > 1) 890 if (t.params.centeredSlides)(t.visibleSlides || d([])).each((e => { 891 s.push(e) 892 })); 893 else 894 for (i = 0; i < Math.ceil(t.params.slidesPerView); i += 1) { 895 const e = t.activeIndex + i; 896 if (e > t.slides.length && !a) break; 897 s.push(n(e)) 898 } else s.push(n(t.activeIndex)); 899 for (i = 0; i < s.length; i += 1) 900 if (void 0 !== s[i]) { 901 const e = s[i].offsetHeight; 902 r = e > r ? e : r 903 }(r || 0 === r) && t.$wrapperEl.css("height", `${r}px`) 904 }, 905 updateSlidesOffset: function () { 906 const e = this, 907 t = e.slides; 908 for (let s = 0; s < t.length; s += 1) t[s].swiperSlideOffset = e.isHorizontal() ? t[s].offsetLeft : t[s].offsetTop 909 }, 910 updateSlidesProgress: function (e) { 911 void 0 === e && (e = this && this.translate || 0); 912 const t = this, 913 s = t.params, 914 { 915 slides: a, 916 rtlTranslate: i, 917 snapGrid: r 918 } = t; 919 if (0 === a.length) return; 920 void 0 === a[0].swiperSlideOffset && t.updateSlidesOffset(); 921 let n = -e; 922 i && (n = e), a.removeClass(s.slideVisibleClass), t.visibleSlidesIndexes = [], t.visibleSlides = []; 923 for (let e = 0; e < a.length; e += 1) { 924 const l = a[e]; 925 let o = l.swiperSlideOffset; 926 s.cssMode && s.centeredSlides && (o -= a[0].swiperSlideOffset); 927 const d = (n + (s.centeredSlides ? t.minTranslate() : 0) - o) / (l.swiperSlideSize + s.spaceBetween), 928 c = (n - r[0] + (s.centeredSlides ? t.minTranslate() : 0) - o) / (l.swiperSlideSize + s.spaceBetween), 929 p = -(n - o), 930 u = p + t.slidesSizesGrid[e]; 931 (p >= 0 && p < t.size - 1 || u > 1 && u <= t.size || p <= 0 && u >= t.size) && (t.visibleSlides.push(l), t.visibleSlidesIndexes.push(e), a.eq(e).addClass(s.slideVisibleClass)), l.progress = i ? -d : d, l.originalProgress = i ? -c : c 932 } 933 t.visibleSlides = d(t.visibleSlides) 934 }, 935 updateProgress: function (e) { 936 const t = this; 937 if (void 0 === e) { 938 const s = t.rtlTranslate ? -1 : 1; 939 e = t && t.translate && t.translate * s || 0 940 } 941 const s = t.params, 942 a = t.maxTranslate() - t.minTranslate(); 943 let { 944 progress: i, 945 isBeginning: r, 946 isEnd: n 947 } = t; 948 const l = r, 949 o = n; 950 0 === a ? (i = 0, r = !0, n = !0) : (i = (e - t.minTranslate()) / a, r = i <= 0, n = i >= 1), Object.assign(t, { 951 progress: i, 952 isBeginning: r, 953 isEnd: n 954 }), (s.watchSlidesProgress || s.centeredSlides && s.autoHeight) && t.updateSlidesProgress(e), r && !l && t.emit("reachBeginning toEdge"), n && !o && t.emit("reachEnd toEdge"), (l && !r || o && !n) && t.emit("fromEdge"), t.emit("progress", i) 955 }, 956 updateSlidesClasses: function () { 957 const e = this, 958 { 959 slides: t, 960 params: s, 961 $wrapperEl: a, 962 activeIndex: i, 963 realIndex: r 964 } = e, 965 n = e.virtual && s.virtual.enabled; 966 let l; 967 t.removeClass(`${s.slideActiveClass} ${s.slideNextClass} ${s.slidePrevClass} ${s.slideDuplicateActiveClass} ${s.slideDuplicateNextClass} ${s.slideDuplicatePrevClass}`), l = n ? e.$wrapperEl.find(`.${s.slideClass}[data-swiper-slide-index="${i}"]`) : t.eq(i), l.addClass(s.slideActiveClass), s.loop && (l.hasClass(s.slideDuplicateClass) ? a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(s.slideDuplicateActiveClass) : a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(s.slideDuplicateActiveClass)); 968 let o = l.nextAll(`.${s.slideClass}`).eq(0).addClass(s.slideNextClass); 969 s.loop && 0 === o.length && (o = t.eq(0), o.addClass(s.slideNextClass)); 970 let d = l.prevAll(`.${s.slideClass}`).eq(0).addClass(s.slidePrevClass); 971 s.loop && 0 === d.length && (d = t.eq(-1), d.addClass(s.slidePrevClass)), s.loop && (o.hasClass(s.slideDuplicateClass) ? a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass) : a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass), d.hasClass(s.slideDuplicateClass) ? a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass) : a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass)), e.emitSlidesClasses() 972 }, 973 updateActiveIndex: function (e) { 974 const t = this, 975 s = t.rtlTranslate ? t.translate : -t.translate, 976 { 977 slidesGrid: a, 978 snapGrid: i, 979 params: r, 980 activeIndex: n, 981 realIndex: l, 982 snapIndex: o 983 } = t; 984 let d, c = e; 985 if (void 0 === c) { 986 for (let e = 0; e < a.length; e += 1) void 0 !== a[e + 1] ? s >= a[e] && s < a[e + 1] - (a[e + 1] - a[e]) / 2 ? c = e : s >= a[e] && s < a[e + 1] && (c = e + 1) : s >= a[e] && (c = e); 987 r.normalizeSlideIndex && (c < 0 || void 0 === c) && (c = 0) 988 } 989 if (i.indexOf(s) >= 0) d = i.indexOf(s); 990 else { 991 const e = Math.min(r.slidesPerGroupSkip, c); 992 d = e + Math.floor((c - e) / r.slidesPerGroup) 993 } 994 if (d >= i.length && (d = i.length - 1), c === n) return void(d !== o && (t.snapIndex = d, t.emit("snapIndexChange"))); 995 const p = parseInt(t.slides.eq(c).attr("data-swiper-slide-index") || c, 10); 996 Object.assign(t, { 997 snapIndex: d, 998 realIndex: p, 999 previousIndex: n, 1000 activeIndex: c 1001 }), t.emit("activeIndexChange"), t.emit("snapIndexChange"), l !== p && t.emit("realIndexChange"), (t.initialized || t.params.runCallbacksOnInit) && t.emit("slideChange") 1002 }, 1003 updateClickedSlide: function (e) { 1004 const t = this, 1005 s = t.params, 1006 a = d(e).closest(`.${s.slideClass}`)[0]; 1007 let i, r = !1; 1008 if (a) 1009 for (let e = 0; e < t.slides.length; e += 1) 1010 if (t.slides[e] === a) { 1011 r = !0, i = e; 1012 break 1013 } if (!a || !r) return t.clickedSlide = void 0, void(t.clickedIndex = void 0); 1014 t.clickedSlide = a, t.virtual && t.params.virtual.enabled ? t.clickedIndex = parseInt(d(a).attr("data-swiper-slide-index"), 10) : t.clickedIndex = i, s.slideToClickedSlide && void 0 !== t.clickedIndex && t.clickedIndex !== t.activeIndex && t.slideToClickedSlide() 1015 } 1016 }; 1017 var M = { 1018 getTranslate: function (e) { 1019 void 0 === e && (e = this.isHorizontal() ? "x" : "y"); 1020 const { 1021 params: t, 1022 rtlTranslate: s, 1023 translate: a, 1024 $wrapperEl: i 1025 } = this; 1026 if (t.virtualTranslate) return s ? -a : a; 1027 if (t.cssMode) return a; 1028 let r = h(i[0], e); 1029 return s && (r = -r), r || 0 1030 }, 1031 setTranslate: function (e, t) { 1032 const s = this, 1033 { 1034 rtlTranslate: a, 1035 params: i, 1036 $wrapperEl: r, 1037 wrapperEl: n, 1038 progress: l 1039 } = s; 1040 let o, d = 0, 1041 c = 0; 1042 s.isHorizontal() ? d = a ? -e : e : c = e, i.roundLengths && (d = Math.floor(d), c = Math.floor(c)), i.cssMode ? n[s.isHorizontal() ? "scrollLeft" : "scrollTop"] = s.isHorizontal() ? -d : -c : i.virtualTranslate || r.transform(`translate3d(${d}px, ${c}px, 0px)`), s.previousTranslate = s.translate, s.translate = s.isHorizontal() ? d : c; 1043 const p = s.maxTranslate() - s.minTranslate(); 1044 o = 0 === p ? 0 : (e - s.minTranslate()) / p, o !== l && s.updateProgress(e), s.emit("setTranslate", s.translate, t) 1045 }, 1046 minTranslate: function () { 1047 return -this.snapGrid[0] 1048 }, 1049 maxTranslate: function () { 1050 return -this.snapGrid[this.snapGrid.length - 1] 1051 }, 1052 translateTo: function (e, t, s, a, i) { 1053 void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === s && (s = !0), void 0 === a && (a = !0); 1054 const r = this, 1055 { 1056 params: n, 1057 wrapperEl: l 1058 } = r; 1059 if (r.animating && n.preventInteractionOnTransition) return !1; 1060 const o = r.minTranslate(), 1061 d = r.maxTranslate(); 1062 let c; 1063 if (c = a && e > o ? o : a && e < d ? d : e, r.updateProgress(c), n.cssMode) { 1064 const e = r.isHorizontal(); 1065 if (0 === t) l[e ? "scrollLeft" : "scrollTop"] = -c; 1066 else { 1067 if (!r.support.smoothScroll) return w({ 1068 swiper: r, 1069 targetPosition: -c, 1070 side: e ? "left" : "top" 1071 }), !0; 1072 l.scrollTo({ 1073 [e ? "left" : "top"]: -c, 1074 behavior: "smooth" 1075 }) 1076 } 1077 return !0 1078 } 1079 return 0 === t ? (r.setTransition(0), r.setTranslate(c), s && (r.emit("beforeTransitionStart", t, i), r.emit("transitionEnd"))) : (r.setTransition(t), r.setTranslate(c), s && (r.emit("beforeTransitionStart", t, i), r.emit("transitionStart")), r.animating || (r.animating = !0, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function (e) { 1080 r && !r.destroyed && e.target === this && (r.$wrapperEl[0].removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.$wrapperEl[0].removeEventListener("webkitTransitionEnd", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, s && r.emit("transitionEnd")) 1081 }), r.$wrapperEl[0].addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.$wrapperEl[0].addEventListener("webkitTransitionEnd", r.onTranslateToWrapperTransitionEnd))), !0 1082 } 1083 }; 1084 1085 function P(e) { 1086 let { 1087 swiper: t, 1088 runCallbacks: s, 1089 direction: a, 1090 step: i 1091 } = e; 1092 const { 1093 activeIndex: r, 1094 previousIndex: n 1095 } = t; 1096 let l = a; 1097 if (l || (l = r > n ? "next" : r < n ? "prev" : "reset"), t.emit(`transition${i}`), s && r !== n) { 1098 if ("reset" === l) return void t.emit(`slideResetTransition${i}`); 1099 t.emit(`slideChangeTransition${i}`), "next" === l ? t.emit(`slideNextTransition${i}`) : t.emit(`slidePrevTransition${i}`) 1100 } 1101 } 1102 var k = { 1103 slideTo: function (e, t, s, a, i) { 1104 if (void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === s && (s = !0), "number" != typeof e && "string" != typeof e) throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`); 1105 if ("string" == typeof e) { 1106 const t = parseInt(e, 10); 1107 if (!isFinite(t)) throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`); 1108 e = t 1109 } 1110 const r = this; 1111 let n = e; 1112 n < 0 && (n = 0); 1113 const { 1114 params: l, 1115 snapGrid: o, 1116 slidesGrid: d, 1117 previousIndex: c, 1118 activeIndex: p, 1119 rtlTranslate: u, 1120 wrapperEl: h, 1121 enabled: m 1122 } = r; 1123 if (r.animating && l.preventInteractionOnTransition || !m && !a && !i) return !1; 1124 const f = Math.min(r.params.slidesPerGroupSkip, n); 1125 let g = f + Math.floor((n - f) / r.params.slidesPerGroup); 1126 g >= o.length && (g = o.length - 1), (p || l.initialSlide || 0) === (c || 0) && s && r.emit("beforeSlideChangeStart"); 1127 const v = -o[g]; 1128 if (r.updateProgress(v), l.normalizeSlideIndex) 1129 for (let e = 0; e < d.length; e += 1) { 1130 const t = -Math.floor(100 * v), 1131 s = Math.floor(100 * d[e]), 1132 a = Math.floor(100 * d[e + 1]); 1133 void 0 !== d[e + 1] ? t >= s && t < a - (a - s) / 2 ? n = e : t >= s && t < a && (n = e + 1) : t >= s && (n = e) 1134 } 1135 if (r.initialized && n !== p) { 1136 if (!r.allowSlideNext && v < r.translate && v < r.minTranslate()) return !1; 1137 if (!r.allowSlidePrev && v > r.translate && v > r.maxTranslate() && (p || 0) !== n) return !1 1138 } 1139 let b; 1140 if (b = n > p ? "next" : n < p ? "prev" : "reset", u && -v === r.translate || !u && v === r.translate) return r.updateActiveIndex(n), l.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), "slide" !== l.effect && r.setTranslate(v), "reset" !== b && (r.transitionStart(s, b), r.transitionEnd(s, b)), !1; 1141 if (l.cssMode) { 1142 const e = r.isHorizontal(), 1143 s = u ? v : -v; 1144 if (0 === t) { 1145 const t = r.virtual && r.params.virtual.enabled; 1146 t && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), h[e ? "scrollLeft" : "scrollTop"] = s, t && requestAnimationFrame((() => { 1147 r.wrapperEl.style.scrollSnapType = "", r._swiperImmediateVirtual = !1 1148 })) 1149 } else { 1150 if (!r.support.smoothScroll) return w({ 1151 swiper: r, 1152 targetPosition: s, 1153 side: e ? "left" : "top" 1154 }), !0; 1155 h.scrollTo({ 1156 [e ? "left" : "top"]: s, 1157 behavior: "smooth" 1158 }) 1159 } 1160 return !0 1161 } 1162 return r.setTransition(t), r.setTranslate(v), r.updateActiveIndex(n), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, a), r.transitionStart(s, b), 0 === t ? r.transitionEnd(s, b) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function (e) { 1163 r && !r.destroyed && e.target === this && (r.$wrapperEl[0].removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.$wrapperEl[0].removeEventListener("webkitTransitionEnd", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(s, b)) 1164 }), r.$wrapperEl[0].addEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.$wrapperEl[0].addEventListener("webkitTransitionEnd", r.onSlideToWrapperTransitionEnd)), !0 1165 }, 1166 slideToLoop: function (e, t, s, a) { 1167 if (void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === s && (s = !0), "string" == typeof e) { 1168 const t = parseInt(e, 10); 1169 if (!isFinite(t)) throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`); 1170 e = t 1171 } 1172 const i = this; 1173 let r = e; 1174 return i.params.loop && (r += i.loopedSlides), i.slideTo(r, t, s, a) 1175 }, 1176 slideNext: function (e, t, s) { 1177 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0); 1178 const a = this, 1179 { 1180 animating: i, 1181 enabled: r, 1182 params: n 1183 } = a; 1184 if (!r) return a; 1185 let l = n.slidesPerGroup; 1186 "auto" === n.slidesPerView && 1 === n.slidesPerGroup && n.slidesPerGroupAuto && (l = Math.max(a.slidesPerViewDynamic("current", !0), 1)); 1187 const o = a.activeIndex < n.slidesPerGroupSkip ? 1 : l; 1188 if (n.loop) { 1189 if (i && n.loopPreventsSlide) return !1; 1190 a.loopFix(), a._clientLeft = a.$wrapperEl[0].clientLeft 1191 } 1192 return n.rewind && a.isEnd ? a.slideTo(0, e, t, s) : a.slideTo(a.activeIndex + o, e, t, s) 1193 }, 1194 slidePrev: function (e, t, s) { 1195 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0); 1196 const a = this, 1197 { 1198 params: i, 1199 animating: r, 1200 snapGrid: n, 1201 slidesGrid: l, 1202 rtlTranslate: o, 1203 enabled: d 1204 } = a; 1205 if (!d) return a; 1206 if (i.loop) { 1207 if (r && i.loopPreventsSlide) return !1; 1208 a.loopFix(), a._clientLeft = a.$wrapperEl[0].clientLeft 1209 } 1210 1211 function c(e) { 1212 return e < 0 ? -Math.floor(Math.abs(e)) : Math.floor(e) 1213 } 1214 const p = c(o ? a.translate : -a.translate), 1215 u = n.map((e => c(e))); 1216 let h = n[u.indexOf(p) - 1]; 1217 if (void 0 === h && i.cssMode) { 1218 let e; 1219 n.forEach(((t, s) => { 1220 p >= t && (e = s) 1221 })), void 0 !== e && (h = n[e > 0 ? e - 1 : e]) 1222 } 1223 let m = 0; 1224 if (void 0 !== h && (m = l.indexOf(h), m < 0 && (m = a.activeIndex - 1), "auto" === i.slidesPerView && 1 === i.slidesPerGroup && i.slidesPerGroupAuto && (m = m - a.slidesPerViewDynamic("previous", !0) + 1, m = Math.max(m, 0))), i.rewind && a.isBeginning) { 1225 const i = a.params.virtual && a.params.virtual.enabled && a.virtual ? a.virtual.slides.length - 1 : a.slides.length - 1; 1226 return a.slideTo(i, e, t, s) 1227 } 1228 return a.slideTo(m, e, t, s) 1229 }, 1230 slideReset: function (e, t, s) { 1231 return void 0 === e && (e = this.params.speed), void 0 === t && (t = !0), this.slideTo(this.activeIndex, e, t, s) 1232 }, 1233 slideToClosest: function (e, t, s, a) { 1234 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0), void 0 === a && (a = .5); 1235 const i = this; 1236 let r = i.activeIndex; 1237 const n = Math.min(i.params.slidesPerGroupSkip, r), 1238 l = n + Math.floor((r - n) / i.params.slidesPerGroup), 1239 o = i.rtlTranslate ? i.translate : -i.translate; 1240 if (o >= i.snapGrid[l]) { 1241 const e = i.snapGrid[l]; 1242 o - e > (i.snapGrid[l + 1] - e) * a && (r += i.params.slidesPerGroup) 1243 } else { 1244 const e = i.snapGrid[l - 1]; 1245 o - e <= (i.snapGrid[l] - e) * a && (r -= i.params.slidesPerGroup) 1246 } 1247 return r = Math.max(r, 0), r = Math.min(r, i.slidesGrid.length - 1), i.slideTo(r, e, t, s) 1248 }, 1249 slideToClickedSlide: function () { 1250 const e = this, 1251 { 1252 params: t, 1253 $wrapperEl: s 1254 } = e, 1255 a = "auto" === t.slidesPerView ? e.slidesPerViewDynamic() : t.slidesPerView; 1256 let i, r = e.clickedIndex; 1257 if (t.loop) { 1258 if (e.animating) return; 1259 i = parseInt(d(e.clickedSlide).attr("data-swiper-slide-index"), 10), t.centeredSlides ? r < e.loopedSlides - a / 2 || r > e.slides.length - e.loopedSlides + a / 2 ? (e.loopFix(), r = s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(), p((() => { 1260 e.slideTo(r) 1261 }))) : e.slideTo(r) : r > e.slides.length - a ? (e.loopFix(), r = s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(), p((() => { 1262 e.slideTo(r) 1263 }))) : e.slideTo(r) 1264 } else e.slideTo(r) 1265 } 1266 }; 1267 var z = { 1268 loopCreate: function () { 1269 const e = this, 1270 t = a(), 1271 { 1272 params: s, 1273 $wrapperEl: i 1274 } = e, 1275 r = i.children().length > 0 ? d(i.children()[0].parentNode) : i; 1276 r.children(`.${s.slideClass}.${s.slideDuplicateClass}`).remove(); 1277 let n = r.children(`.${s.slideClass}`); 1278 if (s.loopFillGroupWithBlank) { 1279 const e = s.slidesPerGroup - n.length % s.slidesPerGroup; 1280 if (e !== s.slidesPerGroup) { 1281 for (let a = 0; a < e; a += 1) { 1282 const e = d(t.createElement("div")).addClass(`${s.slideClass} ${s.slideBlankClass}`); 1283 r.append(e) 1284 } 1285 n = r.children(`.${s.slideClass}`) 1286 } 1287 } 1288 "auto" !== s.slidesPerView || s.loopedSlides || (s.loopedSlides = n.length), e.loopedSlides = Math.ceil(parseFloat(s.loopedSlides || s.slidesPerView, 10)), e.loopedSlides += s.loopAdditionalSlides, e.loopedSlides > n.length && (e.loopedSlides = n.length); 1289 const l = [], 1290 o = []; 1291 n.each(((t, s) => { 1292 const a = d(t); 1293 s < e.loopedSlides && o.push(t), s < n.length && s >= n.length - e.loopedSlides && l.push(t), a.attr("data-swiper-slide-index", s) 1294 })); 1295 for (let e = 0; e < o.length; e += 1) r.append(d(o[e].cloneNode(!0)).addClass(s.slideDuplicateClass)); 1296 for (let e = l.length - 1; e >= 0; e -= 1) r.prepend(d(l[e].cloneNode(!0)).addClass(s.slideDuplicateClass)) 1297 }, 1298 loopFix: function () { 1299 const e = this; 1300 e.emit("beforeLoopFix"); 1301 const { 1302 activeIndex: t, 1303 slides: s, 1304 loopedSlides: a, 1305 allowSlidePrev: i, 1306 allowSlideNext: r, 1307 snapGrid: n, 1308 rtlTranslate: l 1309 } = e; 1310 let o; 1311 e.allowSlidePrev = !0, e.allowSlideNext = !0; 1312 const d = -n[t] - e.getTranslate(); 1313 if (t < a) { 1314 o = s.length - 3 * a + t, o += a; 1315 e.slideTo(o, 0, !1, !0) && 0 !== d && e.setTranslate((l ? -e.translate : e.translate) - d) 1316 } else if (t >= s.length - a) { 1317 o = -s.length + t + a, o += a; 1318 e.slideTo(o, 0, !1, !0) && 0 !== d && e.setTranslate((l ? -e.translate : e.translate) - d) 1319 } 1320 e.allowSlidePrev = i, e.allowSlideNext = r, e.emit("loopFix") 1321 }, 1322 loopDestroy: function () { 1323 const { 1324 $wrapperEl: e, 1325 params: t, 1326 slides: s 1327 } = this; 1328 e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(), s.removeAttr("data-swiper-slide-index") 1329 } 1330 }; 1331 1332 function L(e) { 1333 const t = this, 1334 s = a(), 1335 i = r(), 1336 n = t.touchEventsData, 1337 { 1338 params: l, 1339 touches: o, 1340 enabled: c 1341 } = t; 1342 if (!c) return; 1343 if (t.animating && l.preventInteractionOnTransition) return; 1344 !t.animating && l.cssMode && l.loop && t.loopFix(); 1345 let p = e; 1346 p.originalEvent && (p = p.originalEvent); 1347 let h = d(p.target); 1348 if ("wrapper" === l.touchEventsTarget && !h.closest(t.wrapperEl).length) return; 1349 if (n.isTouchEvent = "touchstart" === p.type, !n.isTouchEvent && "which" in p && 3 === p.which) return; 1350 if (!n.isTouchEvent && "button" in p && p.button > 0) return; 1351 if (n.isTouched && n.isMoved) return; 1352 !!l.noSwipingClass && "" !== l.noSwipingClass && p.target && p.target.shadowRoot && e.path && e.path[0] && (h = d(e.path[0])); 1353 const m = l.noSwipingSelector ? l.noSwipingSelector : `.${l.noSwipingClass}`, 1354 f = !(!p.target || !p.target.shadowRoot); 1355 if (l.noSwiping && (f ? function (e, t) { 1356 return void 0 === t && (t = this), 1357 function t(s) { 1358 if (!s || s === a() || s === r()) return null; 1359 s.assignedSlot && (s = s.assignedSlot); 1360 const i = s.closest(e); 1361 return i || s.getRootNode ? i || t(s.getRootNode().host) : null 1362 }(t) 1363 }(m, h[0]) : h.closest(m)[0])) return void(t.allowClick = !0); 1364 if (l.swipeHandler && !h.closest(l.swipeHandler)[0]) return; 1365 o.currentX = "touchstart" === p.type ? p.targetTouches[0].pageX : p.pageX, o.currentY = "touchstart" === p.type ? p.targetTouches[0].pageY : p.pageY; 1366 const g = o.currentX, 1367 v = o.currentY, 1368 w = l.edgeSwipeDetection || l.iOSEdgeSwipeDetection, 1369 b = l.edgeSwipeThreshold || l.iOSEdgeSwipeThreshold; 1370 if (w && (g <= b || g >= i.innerWidth - b)) { 1371 if ("prevent" !== w) return; 1372 e.preventDefault() 1373 } 1374 if (Object.assign(n, { 1375 isTouched: !0, 1376 isMoved: !1, 1377 allowTouchCallbacks: !0, 1378 isScrolling: void 0, 1379 startMoving: void 0 1380 }), o.startX = g, o.startY = v, n.touchStartTime = u(), t.allowClick = !0, t.updateSize(), t.swipeDirection = void 0, l.threshold > 0 && (n.allowThresholdMove = !1), "touchstart" !== p.type) { 1381 let e = !0; 1382 h.is(n.focusableElements) && (e = !1, "SELECT" === h[0].nodeName && (n.isTouched = !1)), s.activeElement && d(s.activeElement).is(n.focusableElements) && s.activeElement !== h[0] && s.activeElement.blur(); 1383 const a = e && t.allowTouchMove && l.touchStartPreventDefault; 1384 !l.touchStartForcePreventDefault && !a || h[0].isContentEditable || p.preventDefault() 1385 } 1386 t.params.freeMode && t.params.freeMode.enabled && t.freeMode && t.animating && !l.cssMode && t.freeMode.onTouchStart(), t.emit("touchStart", p) 1387 } 1388 1389 function O(e) { 1390 const t = a(), 1391 s = this, 1392 i = s.touchEventsData, 1393 { 1394 params: r, 1395 touches: n, 1396 rtlTranslate: l, 1397 enabled: o 1398 } = s; 1399 if (!o) return; 1400 let c = e; 1401 if (c.originalEvent && (c = c.originalEvent), !i.isTouched) return void(i.startMoving && i.isScrolling && s.emit("touchMoveOpposite", c)); 1402 if (i.isTouchEvent && "touchmove" !== c.type) return; 1403 const p = "touchmove" === c.type && c.targetTouches && (c.targetTouches[0] || c.changedTouches[0]), 1404 h = "touchmove" === c.type ? p.pageX : c.pageX, 1405 m = "touchmove" === c.type ? p.pageY : c.pageY; 1406 if (c.preventedByNestedSwiper) return n.startX = h, void(n.startY = m); 1407 if (!s.allowTouchMove) return d(c.target).is(i.focusableElements) || (s.allowClick = !1), void(i.isTouched && (Object.assign(n, { 1408 startX: h, 1409 startY: m, 1410 currentX: h, 1411 currentY: m 1412 }), i.touchStartTime = u())); 1413 if (i.isTouchEvent && r.touchReleaseOnEdges && !r.loop) 1414 if (s.isVertical()) { 1415 if (m < n.startY && s.translate <= s.maxTranslate() || m > n.startY && s.translate >= s.minTranslate()) return i.isTouched = !1, void(i.isMoved = !1) 1416 } else if (h < n.startX && s.translate <= s.maxTranslate() || h > n.startX && s.translate >= s.minTranslate()) return; 1417 if (i.isTouchEvent && t.activeElement && c.target === t.activeElement && d(c.target).is(i.focusableElements)) return i.isMoved = !0, void(s.allowClick = !1); 1418 if (i.allowTouchCallbacks && s.emit("touchMove", c), c.targetTouches && c.targetTouches.length > 1) return; 1419 n.currentX = h, n.currentY = m; 1420 const f = n.currentX - n.startX, 1421 g = n.currentY - n.startY; 1422 if (s.params.threshold && Math.sqrt(f ** 2 + g ** 2) < s.params.threshold) return; 1423 if (void 0 === i.isScrolling) { 1424 let e; 1425 s.isHorizontal() && n.currentY === n.startY || s.isVertical() && n.currentX === n.startX ? i.isScrolling = !1 : f * f + g * g >= 25 && (e = 180 * Math.atan2(Math.abs(g), Math.abs(f)) / Math.PI, i.isScrolling = s.isHorizontal() ? e > r.touchAngle : 90 - e > r.touchAngle) 1426 } 1427 if (i.isScrolling && s.emit("touchMoveOpposite", c), void 0 === i.startMoving && (n.currentX === n.startX && n.currentY === n.startY || (i.startMoving = !0)), i.isScrolling) return void(i.isTouched = !1); 1428 if (!i.startMoving) return; 1429 s.allowClick = !1, !r.cssMode && c.cancelable && c.preventDefault(), r.touchMoveStopPropagation && !r.nested && c.stopPropagation(), i.isMoved || (r.loop && !r.cssMode && s.loopFix(), i.startTranslate = s.getTranslate(), s.setTransition(0), s.animating && s.$wrapperEl.trigger("webkitTransitionEnd transitionend"), i.allowMomentumBounce = !1, !r.grabCursor || !0 !== s.allowSlideNext && !0 !== s.allowSlidePrev || s.setGrabCursor(!0), s.emit("sliderFirstMove", c)), s.emit("sliderMove", c), i.isMoved = !0; 1430 let v = s.isHorizontal() ? f : g; 1431 n.diff = v, v *= r.touchRatio, l && (v = -v), s.swipeDirection = v > 0 ? "prev" : "next", i.currentTranslate = v + i.startTranslate; 1432 let w = !0, 1433 b = r.resistanceRatio; 1434 if (r.touchReleaseOnEdges && (b = 0), v > 0 && i.currentTranslate > s.minTranslate() ? (w = !1, r.resistance && (i.currentTranslate = s.minTranslate() - 1 + (-s.minTranslate() + i.startTranslate + v) ** b)) : v < 0 && i.currentTranslate < s.maxTranslate() && (w = !1, r.resistance && (i.currentTranslate = s.maxTranslate() + 1 - (s.maxTranslate() - i.startTranslate - v) ** b)), w && (c.preventedByNestedSwiper = !0), !s.allowSlideNext && "next" === s.swipeDirection && i.currentTranslate < i.startTranslate && (i.currentTranslate = i.startTranslate), !s.allowSlidePrev && "prev" === s.swipeDirection && i.currentTranslate > i.startTranslate && (i.currentTranslate = i.startTranslate), s.allowSlidePrev || s.allowSlideNext || (i.currentTranslate = i.startTranslate), r.threshold > 0) { 1435 if (!(Math.abs(v) > r.threshold || i.allowThresholdMove)) return void(i.currentTranslate = i.startTranslate); 1436 if (!i.allowThresholdMove) return i.allowThresholdMove = !0, n.startX = n.currentX, n.startY = n.currentY, i.currentTranslate = i.startTranslate, void(n.diff = s.isHorizontal() ? n.currentX - n.startX : n.currentY - n.startY) 1437 } 1438 r.followFinger && !r.cssMode && ((r.freeMode && r.freeMode.enabled && s.freeMode || r.watchSlidesProgress) && (s.updateActiveIndex(), s.updateSlidesClasses()), s.params.freeMode && r.freeMode.enabled && s.freeMode && s.freeMode.onTouchMove(), s.updateProgress(i.currentTranslate), s.setTranslate(i.currentTranslate)) 1439 } 1440 1441 function I(e) { 1442 const t = this, 1443 s = t.touchEventsData, 1444 { 1445 params: a, 1446 touches: i, 1447 rtlTranslate: r, 1448 slidesGrid: n, 1449 enabled: l 1450 } = t; 1451 if (!l) return; 1452 let o = e; 1453 if (o.originalEvent && (o = o.originalEvent), s.allowTouchCallbacks && t.emit("touchEnd", o), s.allowTouchCallbacks = !1, !s.isTouched) return s.isMoved && a.grabCursor && t.setGrabCursor(!1), s.isMoved = !1, void(s.startMoving = !1); 1454 a.grabCursor && s.isMoved && s.isTouched && (!0 === t.allowSlideNext || !0 === t.allowSlidePrev) && t.setGrabCursor(!1); 1455 const d = u(), 1456 c = d - s.touchStartTime; 1457 if (t.allowClick) { 1458 const e = o.path || o.composedPath && o.composedPath(); 1459 t.updateClickedSlide(e && e[0] || o.target), t.emit("tap click", o), c < 300 && d - s.lastClickTime < 300 && t.emit("doubleTap doubleClick", o) 1460 } 1461 if (s.lastClickTime = u(), p((() => { 1462 t.destroyed || (t.allowClick = !0) 1463 })), !s.isTouched || !s.isMoved || !t.swipeDirection || 0 === i.diff || s.currentTranslate === s.startTranslate) return s.isTouched = !1, s.isMoved = !1, void(s.startMoving = !1); 1464 let h; 1465 if (s.isTouched = !1, s.isMoved = !1, s.startMoving = !1, h = a.followFinger ? r ? t.translate : -t.translate : -s.currentTranslate, a.cssMode) return; 1466 if (t.params.freeMode && a.freeMode.enabled) return void t.freeMode.onTouchEnd({ 1467 currentPos: h 1468 }); 1469 let m = 0, 1470 f = t.slidesSizesGrid[0]; 1471 for (let e = 0; e < n.length; e += e < a.slidesPerGroupSkip ? 1 : a.slidesPerGroup) { 1472 const t = e < a.slidesPerGroupSkip - 1 ? 1 : a.slidesPerGroup; 1473 void 0 !== n[e + t] ? h >= n[e] && h < n[e + t] && (m = e, f = n[e + t] - n[e]) : h >= n[e] && (m = e, f = n[n.length - 1] - n[n.length - 2]) 1474 } 1475 let g = null, 1476 v = null; 1477 a.rewind && (t.isBeginning ? v = t.params.virtual && t.params.virtual.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (g = 0)); 1478 const w = (h - n[m]) / f, 1479 b = m < a.slidesPerGroupSkip - 1 ? 1 : a.slidesPerGroup; 1480 if (c > a.longSwipesMs) { 1481 if (!a.longSwipes) return void t.slideTo(t.activeIndex); 1482 "next" === t.swipeDirection && (w >= a.longSwipesRatio ? t.slideTo(a.rewind && t.isEnd ? g : m + b) : t.slideTo(m)), "prev" === t.swipeDirection && (w > 1 - a.longSwipesRatio ? t.slideTo(m + b) : null !== v && w < 0 && Math.abs(w) > a.longSwipesRatio ? t.slideTo(v) : t.slideTo(m)) 1483 } else { 1484 if (!a.shortSwipes) return void t.slideTo(t.activeIndex); 1485 t.navigation && (o.target === t.navigation.nextEl || o.target === t.navigation.prevEl) ? o.target === t.navigation.nextEl ? t.slideTo(m + b) : t.slideTo(m) : ("next" === t.swipeDirection && t.slideTo(null !== g ? g : m + b), "prev" === t.swipeDirection && t.slideTo(null !== v ? v : m)) 1486 } 1487 } 1488 1489 function A() { 1490 const e = this, 1491 { 1492 params: t, 1493 el: s 1494 } = e; 1495 if (s && 0 === s.offsetWidth) return; 1496 t.breakpoints && e.setBreakpoint(); 1497 const { 1498 allowSlideNext: a, 1499 allowSlidePrev: i, 1500 snapGrid: r 1501 } = e; 1502 e.allowSlideNext = !0, e.allowSlidePrev = !0, e.updateSize(), e.updateSlides(), e.updateSlidesClasses(), ("auto" === t.slidesPerView || t.slidesPerView > 1) && e.isEnd && !e.isBeginning && !e.params.centeredSlides ? e.slideTo(e.slides.length - 1, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0), e.autoplay && e.autoplay.running && e.autoplay.paused && e.autoplay.run(), e.allowSlidePrev = i, e.allowSlideNext = a, e.params.watchOverflow && r !== e.snapGrid && e.checkOverflow() 1503 } 1504 1505 function D(e) { 1506 const t = this; 1507 t.enabled && (t.allowClick || (t.params.preventClicks && e.preventDefault(), t.params.preventClicksPropagation && t.animating && (e.stopPropagation(), e.stopImmediatePropagation()))) 1508 } 1509 1510 function G() { 1511 const e = this, 1512 { 1513 wrapperEl: t, 1514 rtlTranslate: s, 1515 enabled: a 1516 } = e; 1517 if (!a) return; 1518 let i; 1519 e.previousTranslate = e.translate, e.isHorizontal() ? e.translate = -t.scrollLeft : e.translate = -t.scrollTop, 0 === e.translate && (e.translate = 0), e.updateActiveIndex(), e.updateSlidesClasses(); 1520 const r = e.maxTranslate() - e.minTranslate(); 1521 i = 0 === r ? 0 : (e.translate - e.minTranslate()) / r, i !== e.progress && e.updateProgress(s ? -e.translate : e.translate), e.emit("setTranslate", e.translate, !1) 1522 } 1523 let N = !1; 1524 1525 function B() {} 1526 const H = (e, t) => { 1527 const s = a(), 1528 { 1529 params: i, 1530 touchEvents: r, 1531 el: n, 1532 wrapperEl: l, 1533 device: o, 1534 support: d 1535 } = e, 1536 c = !!i.nested, 1537 p = "on" === t ? "addEventListener" : "removeEventListener", 1538 u = t; 1539 if (d.touch) { 1540 const t = !("touchstart" !== r.start || !d.passiveListener || !i.passiveListeners) && { 1541 passive: !0, 1542 capture: !1 1543 }; 1544 n[p](r.start, e.onTouchStart, t), n[p](r.move, e.onTouchMove, d.passiveListener ? { 1545 passive: !1, 1546 capture: c 1547 } : c), n[p](r.end, e.onTouchEnd, t), r.cancel && n[p](r.cancel, e.onTouchEnd, t) 1548 } else n[p](r.start, e.onTouchStart, !1), s[p](r.move, e.onTouchMove, c), s[p](r.end, e.onTouchEnd, !1); 1549 (i.preventClicks || i.preventClicksPropagation) && n[p]("click", e.onClick, !0), i.cssMode && l[p]("scroll", e.onScroll), i.updateOnWindowResize ? e[u](o.ios || o.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", A, !0) : e[u]("observerUpdate", A, !0) 1550 }; 1551 var X = { 1552 attachEvents: function () { 1553 const e = this, 1554 t = a(), 1555 { 1556 params: s, 1557 support: i 1558 } = e; 1559 e.onTouchStart = L.bind(e), e.onTouchMove = O.bind(e), e.onTouchEnd = I.bind(e), s.cssMode && (e.onScroll = G.bind(e)), e.onClick = D.bind(e), i.touch && !N && (t.addEventListener("touchstart", B), N = !0), H(e, "on") 1560 }, 1561 detachEvents: function () { 1562 H(this, "off") 1563 } 1564 }; 1565 const Y = (e, t) => e.grid && t.grid && t.grid.rows > 1; 1566 var R = { 1567 addClasses: function () { 1568 const e = this, 1569 { 1570 classNames: t, 1571 params: s, 1572 rtl: a, 1573 $el: i, 1574 device: r, 1575 support: n 1576 } = e, 1577 l = function (e, t) { 1578 const s = []; 1579 return e.forEach((e => { 1580 "object" == typeof e ? Object.keys(e).forEach((a => { 1581 e[a] && s.push(t + a) 1582 })) : "string" == typeof e && s.push(t + e) 1583 })), s 1584 }(["initialized", s.direction, { 1585 "pointer-events": !n.touch 1586 }, { 1587 "free-mode": e.params.freeMode && s.freeMode.enabled 1588 }, { 1589 autoheight: s.autoHeight 1590 }, { 1591 rtl: a 1592 }, { 1593 grid: s.grid && s.grid.rows > 1 1594 }, { 1595 "grid-column": s.grid && s.grid.rows > 1 && "column" === s.grid.fill 1596 }, { 1597 android: r.android 1598 }, { 1599 ios: r.ios 1600 }, { 1601 "css-mode": s.cssMode 1602 }, { 1603 centered: s.cssMode && s.centeredSlides 1604 }, { 1605 "watch-progress": s.watchSlidesProgress 1606 }], s.containerModifierClass); 1607 t.push(...l), i.addClass([...t].join(" ")), e.emitContainerClasses() 1608 }, 1609 removeClasses: function () { 1610 const { 1611 $el: e, 1612 classNames: t 1613 } = this; 1614 e.removeClass(t.join(" ")), this.emitContainerClasses() 1615 } 1616 }; 1617 var W = { 1618 init: !0, 1619 direction: "horizontal", 1620 touchEventsTarget: "wrapper", 1621 initialSlide: 0, 1622 speed: 300, 1623 cssMode: !1, 1624 updateOnWindowResize: !0, 1625 resizeObserver: !0, 1626 nested: !1, 1627 createElements: !1, 1628 enabled: !0, 1629 focusableElements: "input, select, option, textarea, button, video, label", 1630 width: null, 1631 height: null, 1632 preventInteractionOnTransition: !1, 1633 userAgent: null, 1634 url: null, 1635 edgeSwipeDetection: !1, 1636 edgeSwipeThreshold: 20, 1637 autoHeight: !1, 1638 setWrapperSize: !1, 1639 virtualTranslate: !1, 1640 effect: "slide", 1641 breakpoints: void 0, 1642 breakpointsBase: "window", 1643 spaceBetween: 0, 1644 slidesPerView: 1, 1645 slidesPerGroup: 1, 1646 slidesPerGroupSkip: 0, 1647 slidesPerGroupAuto: !1, 1648 centeredSlides: !1, 1649 centeredSlidesBounds: !1, 1650 slidesOffsetBefore: 0, 1651 slidesOffsetAfter: 0, 1652 normalizeSlideIndex: !0, 1653 centerInsufficientSlides: !1, 1654 watchOverflow: !0, 1655 roundLengths: !1, 1656 touchRatio: 1, 1657 touchAngle: 45, 1658 simulateTouch: !0, 1659 shortSwipes: !0, 1660 longSwipes: !0, 1661 longSwipesRatio: .5, 1662 longSwipesMs: 300, 1663 followFinger: !0, 1664 allowTouchMove: !0, 1665 threshold: 0, 1666 touchMoveStopPropagation: !1, 1667 touchStartPreventDefault: !0, 1668 touchStartForcePreventDefault: !1, 1669 touchReleaseOnEdges: !1, 1670 uniqueNavElements: !0, 1671 resistance: !0, 1672 resistanceRatio: .85, 1673 watchSlidesProgress: !1, 1674 grabCursor: !1, 1675 preventClicks: !0, 1676 preventClicksPropagation: !0, 1677 slideToClickedSlide: !1, 1678 preloadImages: !0, 1679 updateOnImagesReady: !0, 1680 loop: !1, 1681 loopAdditionalSlides: 0, 1682 loopedSlides: null, 1683 loopFillGroupWithBlank: !1, 1684 loopPreventsSlide: !0, 1685 rewind: !1, 1686 allowSlidePrev: !0, 1687 allowSlideNext: !0, 1688 swipeHandler: null, 1689 noSwiping: !0, 1690 noSwipingClass: "swiper-no-swiping", 1691 noSwipingSelector: null, 1692 passiveListeners: !0, 1693 maxBackfaceHiddenSlides: 10, 1694 containerModifierClass: "swiper-", 1695 slideClass: "swiper-slide", 1696 slideBlankClass: "swiper-slide-invisible-blank", 1697 slideActiveClass: "swiper-slide-active", 1698 slideDuplicateActiveClass: "swiper-slide-duplicate-active", 1699 slideVisibleClass: "swiper-slide-visible", 1700 slideDuplicateClass: "swiper-slide-duplicate", 1701 slideNextClass: "swiper-slide-next", 1702 slideDuplicateNextClass: "swiper-slide-duplicate-next", 1703 slidePrevClass: "swiper-slide-prev", 1704 slideDuplicatePrevClass: "swiper-slide-duplicate-prev", 1705 wrapperClass: "swiper-wrapper", 1706 runCallbacksOnInit: !0, 1707 _emitClasses: !1 1708 }; 1709 1710 function j(e, t) { 1711 return function (s) { 1712 void 0 === s && (s = {}); 1713 const a = Object.keys(s)[0], 1714 i = s[a]; 1715 "object" == typeof i && null !== i ? (["navigation", "pagination", "scrollbar"].indexOf(a) >= 0 && !0 === e[a] && (e[a] = { 1716 auto: !0 1717 }), a in e && "enabled" in i ? (!0 === e[a] && (e[a] = { 1718 enabled: !0 1719 }), "object" != typeof e[a] || "enabled" in e[a] || (e[a].enabled = !0), e[a] || (e[a] = { 1720 enabled: !1 1721 }), g(t, s)) : g(t, s)) : g(t, s) 1722 } 1723 } 1724 const _ = { 1725 eventsEmitter: $, 1726 update: S, 1727 translate: M, 1728 transition: { 1729 setTransition: function (e, t) { 1730 const s = this; 1731 s.params.cssMode || s.$wrapperEl.transition(e), s.emit("setTransition", e, t) 1732 }, 1733 transitionStart: function (e, t) { 1734 void 0 === e && (e = !0); 1735 const s = this, 1736 { 1737 params: a 1738 } = s; 1739 a.cssMode || (a.autoHeight && s.updateAutoHeight(), P({ 1740 swiper: s, 1741 runCallbacks: e, 1742 direction: t, 1743 step: "Start" 1744 })) 1745 }, 1746 transitionEnd: function (e, t) { 1747 void 0 === e && (e = !0); 1748 const s = this, 1749 { 1750 params: a 1751 } = s; 1752 s.animating = !1, a.cssMode || (s.setTransition(0), P({ 1753 swiper: s, 1754 runCallbacks: e, 1755 direction: t, 1756 step: "End" 1757 })) 1758 } 1759 }, 1760 slide: k, 1761 loop: z, 1762 grabCursor: { 1763 setGrabCursor: function (e) { 1764 const t = this;
vendor: 1,152 bytes, lines 1765-1786
1765 if (t.support.touch || !t.params.simulateTouch || t.params.watchOverflow && t.isLocked || t.params.cssMode) return; 1766 const s = "container" === t.params.touchEventsTarget ? t.el : t.wrapperEl; 1767 s.style.cursor = "move", s.style.cursor = e ? "grabbing" : "grab" 1768 }, 1769 unsetGrabCursor: function () { 1770 const e = this; 1771 e.support.touch || e.params.watchOverflow && e.isLocked || e.params.cssMode || (e["container" === e.params.touchEventsTarget ? "el" : "wrapperEl"].style.cursor = "") 1772 } 1773 }, 1774 events: X, 1775 breakpoints: { 1776 setBreakpoint: function () { 1777 const e = this, 1778 { 1779 activeIndex: t, 1780 initialized: s, 1781 loopedSlides: a = 0, 1782 params: i, 1783 $el: r 1784 } = e, 1785 n = i.breakpoints; 1786 if (!n || n && 0 === Object.keys(n).length) return;
vendor: 14,140 bytes, lines 1787-2064
1787 const l = e.getBreakpoint(n, e.params.breakpointsBase, e.el); 1788 if (!l || e.currentBreakpoint === l) return; 1789 const o = (l in n ? n[l] : void 0) || e.originalParams, 1790 d = Y(e, i), 1791 c = Y(e, o), 1792 p = i.enabled; 1793 d && !c ? (r.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`), e.emitContainerClasses()) : !d && c && (r.addClass(`${i.containerModifierClass}grid`), (o.grid.fill && "column" === o.grid.fill || !o.grid.fill && "column" === i.grid.fill) && r.addClass(`${i.containerModifierClass}grid-column`), e.emitContainerClasses()), ["navigation", "pagination", "scrollbar"].forEach((t => { 1794 const s = i[t] && i[t].enabled, 1795 a = o[t] && o[t].enabled; 1796 s && !a && e[t].disable(), !s && a && e[t].enable() 1797 })); 1798 const u = o.direction && o.direction !== i.direction, 1799 h = i.loop && (o.slidesPerView !== i.slidesPerView || u); 1800 u && s && e.changeDirection(), g(e.params, o); 1801 const m = e.params.enabled; 1802 Object.assign(e, { 1803 allowTouchMove: e.params.allowTouchMove, 1804 allowSlideNext: e.params.allowSlideNext, 1805 allowSlidePrev: e.params.allowSlidePrev 1806 }), p && !m ? e.disable() : !p && m && e.enable(), e.currentBreakpoint = l, e.emit("_beforeBreakpoint", o), h && s && (e.loopDestroy(), e.loopCreate(), e.updateSlides(), e.slideTo(t - a + e.loopedSlides, 0, !1)), e.emit("breakpoint", o) 1807 }, 1808 getBreakpoint: function (e, t, s) { 1809 if (void 0 === t && (t = "window"), !e || "container" === t && !s) return; 1810 let a = !1; 1811 const i = r(), 1812 n = "window" === t ? i.innerHeight : s.clientHeight, 1813 l = Object.keys(e).map((e => { 1814 if ("string" == typeof e && 0 === e.indexOf("@")) { 1815 const t = parseFloat(e.substr(1)); 1816 return { 1817 value: n * t, 1818 point: e 1819 } 1820 } 1821 return { 1822 value: e, 1823 point: e 1824 } 1825 })); 1826 l.sort(((e, t) => parseInt(e.value, 10) - parseInt(t.value, 10))); 1827 for (let e = 0; e < l.length; e += 1) { 1828 const { 1829 point: r, 1830 value: n 1831 } = l[e]; 1832 "window" === t ? i.matchMedia(`(min-width: ${n}px)`).matches && (a = r) : n <= s.clientWidth && (a = r) 1833 } 1834 return a || "max" 1835 } 1836 }, 1837 checkOverflow: { 1838 checkOverflow: function () { 1839 const e = this, 1840 { 1841 isLocked: t, 1842 params: s 1843 } = e, 1844 { 1845 slidesOffsetBefore: a 1846 } = s; 1847 if (a) { 1848 const t = e.slides.length - 1, 1849 s = e.slidesGrid[t] + e.slidesSizesGrid[t] + 2 * a; 1850 e.isLocked = e.size > s 1851 } else e.isLocked = 1 === e.snapGrid.length; 1852 !0 === s.allowSlideNext && (e.allowSlideNext = !e.isLocked), !0 === s.allowSlidePrev && (e.allowSlidePrev = !e.isLocked), t && t !== e.isLocked && (e.isEnd = !1), t !== e.isLocked && e.emit(e.isLocked ? "lock" : "unlock") 1853 } 1854 }, 1855 classes: R, 1856 images: { 1857 loadImage: function (e, t, s, a, i, n) { 1858 const l = r(); 1859 let o; 1860 1861 function c() { 1862 n && n() 1863 } 1864 d(e).parent("picture")[0] || e.complete && i ? c() : t ? (o = new l.Image, o.onload = c, o.onerror = c, a && (o.sizes = a), s && (o.srcset = s), t && (o.src = t)) : c() 1865 }, 1866 preloadImages: function () { 1867 const e = this; 1868 1869 function t() { 1870 null != e && e && !e.destroyed && (void 0 !== e.imagesLoaded && (e.imagesLoaded += 1), e.imagesLoaded === e.imagesToLoad.length && (e.params.updateOnImagesReady && e.update(), e.emit("imagesReady"))) 1871 } 1872 e.imagesToLoad = e.$el.find("img"); 1873 for (let s = 0; s < e.imagesToLoad.length; s += 1) { 1874 const a = e.imagesToLoad[s]; 1875 e.loadImage(a, a.currentSrc || a.getAttribute("src"), a.srcset || a.getAttribute("srcset"), a.sizes || a.getAttribute("sizes"), !0, t) 1876 } 1877 } 1878 } 1879 }, 1880 q = {}; 1881 class V { 1882 constructor() { 1883 let e, t; 1884 for (var s = arguments.length, a = new Array(s), i = 0; i < s; i++) a[i] = arguments[i]; 1885 if (1 === a.length && a[0].constructor && "Object" === Object.prototype.toString.call(a[0]).slice(8, -1) ? t = a[0] : [e, t] = a, t || (t = {}), t = g({}, t), e && !t.el && (t.el = e), t.el && d(t.el).length > 1) { 1886 const e = []; 1887 return d(t.el).each((s => { 1888 const a = g({}, t, { 1889 el: s 1890 }); 1891 e.push(new V(a)) 1892 })), e 1893 } 1894 const r = this; 1895 r.__swiper__ = !0, r.support = E(), r.device = C({ 1896 userAgent: t.userAgent 1897 }), r.browser = T(), r.eventsListeners = {}, r.eventsAnyListeners = [], r.modules = [...r.__modules__], t.modules && Array.isArray(t.modules) && r.modules.push(...t.modules); 1898 const n = {}; 1899 r.modules.forEach((e => { 1900 e({ 1901 swiper: r, 1902 extendParams: j(t, n), 1903 on: r.on.bind(r), 1904 once: r.once.bind(r), 1905 off: r.off.bind(r), 1906 emit: r.emit.bind(r) 1907 }) 1908 })); 1909 const l = g({}, W, n); 1910 return r.params = g({}, l, q, t), r.originalParams = g({}, r.params), r.passedParams = g({}, t), r.params && r.params.on && Object.keys(r.params.on).forEach((e => { 1911 r.on(e, r.params.on[e]) 1912 })), r.params && r.params.onAny && r.onAny(r.params.onAny), r.$ = d, Object.assign(r, { 1913 enabled: r.params.enabled, 1914 el: e, 1915 classNames: [], 1916 slides: d(), 1917 slidesGrid: [], 1918 snapGrid: [], 1919 slidesSizesGrid: [], 1920 isHorizontal: () => "horizontal" === r.params.direction, 1921 isVertical: () => "vertical" === r.params.direction, 1922 activeIndex: 0, 1923 realIndex: 0, 1924 isBeginning: !0, 1925 isEnd: !1, 1926 translate: 0, 1927 previousTranslate: 0, 1928 progress: 0, 1929 velocity: 0, 1930 animating: !1, 1931 allowSlideNext: r.params.allowSlideNext, 1932 allowSlidePrev: r.params.allowSlidePrev, 1933 touchEvents: function () { 1934 const e = ["touchstart", "touchmove", "touchend", "touchcancel"], 1935 t = ["pointerdown", "pointermove", "pointerup"]; 1936 return r.touchEventsTouch = { 1937 start: e[0], 1938 move: e[1], 1939 end: e[2], 1940 cancel: e[3] 1941 }, r.touchEventsDesktop = { 1942 start: t[0], 1943 move: t[1], 1944 end: t[2] 1945 }, r.support.touch || !r.params.simulateTouch ? r.touchEventsTouch : r.touchEventsDesktop 1946 }(), 1947 touchEventsData: { 1948 isTouched: void 0, 1949 isMoved: void 0, 1950 allowTouchCallbacks: void 0, 1951 touchStartTime: void 0, 1952 isScrolling: void 0, 1953 currentTranslate: void 0, 1954 startTranslate: void 0, 1955 allowThresholdMove: void 0, 1956 focusableElements: r.params.focusableElements, 1957 lastClickTime: u(), 1958 clickTimeout: void 0, 1959 velocities: [], 1960 allowMomentumBounce: void 0, 1961 isTouchEvent: void 0, 1962 startMoving: void 0 1963 }, 1964 allowClick: !0, 1965 allowTouchMove: r.params.allowTouchMove, 1966 touches: { 1967 startX: 0, 1968 startY: 0, 1969 currentX: 0, 1970 currentY: 0, 1971 diff: 0 1972 }, 1973 imagesToLoad: [], 1974 imagesLoaded: 0 1975 }), r.emit("_swiper"), r.params.init && r.init(), r 1976 } 1977 enable() { 1978 const e = this; 1979 e.enabled || (e.enabled = !0, e.params.grabCursor && e.setGrabCursor(), e.emit("enable")) 1980 } 1981 disable() { 1982 const e = this; 1983 e.enabled && (e.enabled = !1, e.params.grabCursor && e.unsetGrabCursor(), e.emit("disable")) 1984 } 1985 setProgress(e, t) { 1986 const s = this; 1987 e = Math.min(Math.max(e, 0), 1); 1988 const a = s.minTranslate(), 1989 i = (s.maxTranslate() - a) * e + a; 1990 s.translateTo(i, void 0 === t ? 0 : t), s.updateActiveIndex(), s.updateSlidesClasses() 1991 } 1992 emitContainerClasses() { 1993 const e = this; 1994 if (!e.params._emitClasses || !e.el) return; 1995 const t = e.el.className.split(" ").filter((t => 0 === t.indexOf("swiper") || 0 === t.indexOf(e.params.containerModifierClass))); 1996 e.emit("_containerClasses", t.join(" ")) 1997 } 1998 getSlideClasses(e) { 1999 const t = this; 2000 return t.destroyed ? "" : e.className.split(" ").filter((e => 0 === e.indexOf("swiper-slide") || 0 === e.indexOf(t.params.slideClass))).join(" ") 2001 } 2002 emitSlidesClasses() { 2003 const e = this; 2004 if (!e.params._emitClasses || !e.el) return; 2005 const t = []; 2006 e.slides.each((s => { 2007 const a = e.getSlideClasses(s); 2008 t.push({ 2009 slideEl: s, 2010 classNames: a 2011 }), e.emit("_slideClass", s, a) 2012 })), e.emit("_slideClasses", t) 2013 } 2014 slidesPerViewDynamic(e, t) { 2015 void 0 === e && (e = "current"), void 0 === t && (t = !1); 2016 const { 2017 params: s, 2018 slides: a, 2019 slidesGrid: i, 2020 slidesSizesGrid: r, 2021 size: n, 2022 activeIndex: l 2023 } = this; 2024 let o = 1; 2025 if (s.centeredSlides) { 2026 let e, t = a[l].swiperSlideSize; 2027 for (let s = l + 1; s < a.length; s += 1) a[s] && !e && (t += a[s].swiperSlideSize, o += 1, t > n && (e = !0)); 2028 for (let s = l - 1; s >= 0; s -= 1) a[s] && !e && (t += a[s].swiperSlideSize, o += 1, t > n && (e = !0)) 2029 } else if ("current" === e) 2030 for (let e = l + 1; e < a.length; e += 1) { 2031 (t ? i[e] + r[e] - i[l] < n : i[e] - i[l] < n) && (o += 1) 2032 } else 2033 for (let e = l - 1; e >= 0; e -= 1) { 2034 i[l] - i[e] < n && (o += 1) 2035 } 2036 return o 2037 } 2038 update() { 2039 const e = this; 2040 if (!e || e.destroyed) return; 2041 const { 2042 snapGrid: t, 2043 params: s 2044 } = e; 2045 2046 function a() { 2047 const t = e.rtlTranslate ? -1 * e.translate : e.translate, 2048 s = Math.min(Math.max(t, e.maxTranslate()), e.minTranslate()); 2049 e.setTranslate(s), e.updateActiveIndex(), e.updateSlidesClasses() 2050 } 2051 let i; 2052 s.breakpoints && e.setBreakpoint(), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), e.params.freeMode && e.params.freeMode.enabled ? (a(), e.params.autoHeight && e.updateAutoHeight()) : (i = ("auto" === e.params.slidesPerView || e.params.slidesPerView > 1) && e.isEnd && !e.params.centeredSlides ? e.slideTo(e.slides.length - 1, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0), i || a()), s.watchOverflow && t !== e.snapGrid && e.checkOverflow(), e.emit("update") 2053 } 2054 changeDirection(e, t) { 2055 void 0 === t && (t = !0); 2056 const s = this, 2057 a = s.params.direction; 2058 return e || (e = "horizontal" === a ? "vertical" : "horizontal"), e === a || "horizontal" !== e && "vertical" !== e || (s.$el.removeClass(`${s.params.containerModifierClass}${a}`).addClass(`${s.params.containerModifierClass}${e}`), s.emitContainerClasses(), s.params.direction = e, s.slides.each((t => { 2059 "vertical" === e ? t.style.width = "" : t.style.height = "" 2060 })), s.emit("changeDirection"), t && s.update()), s 2061 } 2062 changeLanguageDirection(e) { 2063 const t = this; 2064 t.rtl && "rtl" === e || !t.rtl && "ltr" === e || (t.rtl = "rtl" === e, t.rtlTranslate = "horizontal" === t.params.direction && t.rtl, t.rtl ? (t.$el.addClass(`${t.params.containerModifierClass}rtl`), t.el.dir = "rtl") : (t.$el.removeClass(`${t.params.containerModifierClass}
2064rtl`), t.el.dir = "ltr"), t.update()) 2065 } 2066 mount(e) { 2067 const t = this; 2068 if (t.mounted) return !0; 2069 const s = d(e || t.params.el); 2070 if (!(e = s[0])) return !1; 2071 e.swiper = t; 2072 const i = () => `.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`; 2073 let r = (() => { 2074 if (e && e.shadowRoot && e.shadowRoot.querySelector) { 2075 const t = d(e.shadowRoot.querySelector(i())); 2076 return t.children = e => s.children(e), t 2077 } 2078 return s.children ? s.children(i()) : d(s).children(i()) 2079 })(); 2080 if (0 === r.length && t.params.createElements) { 2081 const e = a().createElement("div"); 2082 r = d(e), e.className = t.params.wrapperClass, s.append(e), s.children(`.${t.params.slideClass}`).each((e => { 2083 r.append(e) 2084 })) 2085 } 2086 return Object.assign(t, { 2087 $el: s, 2088 el: e, 2089 $wrapperEl: r, 2090 wrapperEl: r[0], 2091 mounted: !0, 2092 rtl: "rtl" === e.dir.toLowerCase() || "rtl" === s.css("direction"), 2093 rtlTranslate: "horizontal" === t.params.direction && ("rtl" === e.dir.toLowerCase() || "rtl" === s.css("direction")), 2094 wrongRTL: "-webkit-box" === r.css("display") 2095 }), !0 2096 } 2097 init(e) { 2098 const t = this; 2099 if (t.initialized) return t; 2100 return !1 === t.mount(e) || (t.emit("beforeInit"), t.params.breakpoints && t.setBreakpoint(), t.addClasses(), t.params.loop && t.loopCreate(), t.updateSize(), t.updateSlides(), t.params.watchOverflow && t.checkOverflow(), t.params.grabCursor && t.enabled && t.setGrabCursor(), t.params.preloadImages && t.preloadImages(), t.params.loop ? t.slideTo(t.params.initialSlide + t.loopedSlides, 0, t.params.runCallbacksOnInit, !1, !0) : t.slideTo(t.params.initialSlide, 0, t.params.runCallbacksOnInit, !1, !0), t.attachEvents(), t.initialized = !0, t.emit("init"), t.emit("afterInit")), t 2101 } 2102 destroy(e, t) { 2103 void 0 === e && (e = !0), void 0 === t && (t = !0); 2104 const s = this, 2105 { 2106 params: a, 2107 $el: i, 2108 $wrapperEl: r, 2109 slides: n 2110 } = s; 2111 return void 0 === s.params || s.destroyed || (s.emit("beforeDestroy"), s.initialized = !1, s.detachEvents(), a.loop && s.loopDestroy(), t && (s.removeClasses(), i.removeAttr("style"), r.removeAttr("style"), n && n.length && n.removeClass([a.slideVisibleClass, a.slideActiveClass, a.slideNextClass, a.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((e => { 2112 s.off(e) 2113 })), !1 !== e && (s.$el[0].swiper = null, function (e) { 2114 const t = e; 2115 Object.keys(t).forEach((e => { 2116 try { 2117 t[e] = null 2118 } catch (e) {} 2119 try { 2120 delete t[e] 2121 } catch (e) {} 2122 })) 2123 }(s)), s.destroyed = !0), null 2124 } 2125 static extendDefaults(e) { 2126 g(q, e) 2127 } 2128 static get extendedDefaults() { 2129 return q 2130 } 2131 static get defaults() { 2132 return W 2133 } 2134 static installModule(e) { 2135 V.prototype.__modules__ || (V.prototype.__modules__ = []); 2136 const t = V.prototype.__modules__; 2137 "function" == typeof e && t.indexOf(e) < 0 && t.push(e) 2138 } 2139 static use(e) { 2140 return Array.isArray(e) ? (e.forEach((e => V.installModule(e))), V) : (V.installModule(e), V) 2141 } 2142 } 2143 2144 function F(e, t, s, i) { 2145 const r = a();
vendor: 36,296 bytes, lines 2146-2961
2146 return e.params.createElements && Object.keys(i).forEach((a => { 2147 if (!s[a] && !0 === s.auto) { 2148 let n = e.$el.children(`.${i[a]}`)[0]; 2149 n || (n = r.createElement("div"), n.className = i[a], e.$el.append(n)), s[a] = n, t[a] = n 2150 } 2151 })), s 2152 } 2153 2154 function U(e) { 2155 return void 0 === e && (e = ""), `.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}` 2156 } 2157 2158 function K(e) { 2159 const t = this, 2160 { 2161 $wrapperEl: s, 2162 params: a 2163 } = t; 2164 if (a.loop && t.loopDestroy(), "object" == typeof e && "length" in e) 2165 for (let t = 0; t < e.length; t += 1) e[t] && s.append(e[t]); 2166 else s.append(e); 2167 a.loop && t.loopCreate(), a.observer || t.update() 2168 } 2169 2170 function Z(e) { 2171 const t = this, 2172 { 2173 params: s, 2174 $wrapperEl: a, 2175 activeIndex: i 2176 } = t; 2177 s.loop && t.loopDestroy(); 2178 let r = i + 1; 2179 if ("object" == typeof e && "length" in e) { 2180 for (let t = 0; t < e.length; t += 1) e[t] && a.prepend(e[t]); 2181 r = i + e.length 2182 } else a.prepend(e); 2183 s.loop && t.loopCreate(), s.observer || t.update(), t.slideTo(r, 0, !1) 2184 } 2185 2186 function Q(e, t) { 2187 const s = this, 2188 { 2189 $wrapperEl: a, 2190 params: i, 2191 activeIndex: r 2192 } = s; 2193 let n = r; 2194 i.loop && (n -= s.loopedSlides, s.loopDestroy(), s.slides = a.children(`.${i.slideClass}`)); 2195 const l = s.slides.length; 2196 if (e <= 0) return void s.prependSlide(t); 2197 if (e >= l) return void s.appendSlide(t); 2198 let o = n > e ? n + 1 : n; 2199 const d = []; 2200 for (let t = l - 1; t >= e; t -= 1) { 2201 const e = s.slides.eq(t); 2202 e.remove(), d.unshift(e) 2203 } 2204 if ("object" == typeof t && "length" in t) { 2205 for (let e = 0; e < t.length; e += 1) t[e] && a.append(t[e]); 2206 o = n > e ? n + t.length : n 2207 } else a.append(t); 2208 for (let e = 0; e < d.length; e += 1) a.append(d[e]); 2209 i.loop && s.loopCreate(), i.observer || s.update(), i.loop ? s.slideTo(o + s.loopedSlides, 0, !1) : s.slideTo(o, 0, !1) 2210 } 2211 2212 function J(e) { 2213 const t = this, 2214 { 2215 params: s, 2216 $wrapperEl: a, 2217 activeIndex: i 2218 } = t; 2219 let r = i; 2220 s.loop && (r -= t.loopedSlides, t.loopDestroy(), t.slides = a.children(`.${s.slideClass}`)); 2221 let n, l = r; 2222 if ("object" == typeof e && "length" in e) { 2223 for (let s = 0; s < e.length; s += 1) n = e[s], t.slides[n] && t.slides.eq(n).remove(), n < l && (l -= 1); 2224 l = Math.max(l, 0) 2225 } else n = e, t.slides[n] && t.slides.eq(n).remove(), n < l && (l -= 1), l = Math.max(l, 0); 2226 s.loop && t.loopCreate(), s.observer || t.update(), s.loop ? t.slideTo(l + t.loopedSlides, 0, !1) : t.slideTo(l, 0, !1) 2227 } 2228 2229 function ee() { 2230 const e = this, 2231 t = []; 2232 for (let s = 0; s < e.slides.length; s += 1) t.push(s); 2233 e.removeSlide(t) 2234 } 2235 2236 function te(e) { 2237 const { 2238 effect: t, 2239 swiper: s, 2240 on: a, 2241 setTranslate: i, 2242 setTransition: r, 2243 overwriteParams: n, 2244 perspective: l, 2245 recreateShadows: o, 2246 getEffectParams: d 2247 } = e; 2248 let c; 2249 a("beforeInit", (() => { 2250 if (s.params.effect !== t) return; 2251 s.classNames.push(`${s.params.containerModifierClass}${t}`), l && l() && s.classNames.push(`${s.params.containerModifierClass}3d`); 2252 const e = n ? n() : {}; 2253 Object.assign(s.params, e), Object.assign(s.originalParams, e) 2254 })), a("setTranslate", (() => { 2255 s.params.effect === t && i() 2256 })), a("setTransition", ((e, a) => { 2257 s.params.effect === t && r(a) 2258 })), a("transitionEnd", (() => { 2259 if (s.params.effect === t && o) { 2260 if (!d || !d().slideShadows) return; 2261 s.slides.each((e => { 2262 s.$(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove() 2263 })), o() 2264 } 2265 })), a("virtualUpdate", (() => { 2266 s.params.effect === t && (s.slides.length || (c = !0), requestAnimationFrame((() => { 2267 c && s.slides && s.slides.length && (i(), c = !1) 2268 }))) 2269 })) 2270 } 2271 2272 function se(e, t) { 2273 return e.transformEl ? t.find(e.transformEl).css({ 2274 "backface-visibility": "hidden", 2275 "-webkit-backface-visibility": "hidden" 2276 }) : t 2277 } 2278 2279 function ae(e) { 2280 let { 2281 swiper: t, 2282 duration: s, 2283 transformEl: a, 2284 allSlides: i 2285 } = e; 2286 const { 2287 slides: r, 2288 activeIndex: n, 2289 $wrapperEl: l 2290 } = t; 2291 if (t.params.virtualTranslate && 0 !== s) { 2292 let e, s = !1; 2293 e = i ? a ? r.find(a) : r : a ? r.eq(n).find(a) : r.eq(n), e.transitionEnd((() => { 2294 if (s) return; 2295 if (!t || t.destroyed) return; 2296 s = !0, t.animating = !1; 2297 const e = ["webkitTransitionEnd", "transitionend"]; 2298 for (let t = 0; t < e.length; t += 1) l.trigger(e[t]) 2299 })) 2300 } 2301 } 2302 2303 function ie(e, t, s) { 2304 const a = "swiper-slide-shadow" + (s ? `-${s}` : ""), 2305 i = e.transformEl ? t.find(e.transformEl) : t; 2306 let r = i.children(`.${a}`); 2307 return r.length || (r = d(`<div class="swiper-slide-shadow${s?`-${s}`:""}"></div>`), i.append(r)), r 2308 } 2309 Object.keys(_).forEach((e => { 2310 Object.keys(_[e]).forEach((t => { 2311 V.prototype[t] = _[e][t] 2312 })) 2313 })), V.use([function (e) { 2314 let { 2315 swiper: t, 2316 on: s, 2317 emit: a 2318 } = e; 2319 const i = r(); 2320 let n = null, 2321 l = null; 2322 const o = () => { 2323 t && !t.destroyed && t.initialized && (a("beforeResize"), a("resize")) 2324 }, 2325 d = () => { 2326 t && !t.destroyed && t.initialized && a("orientationchange") 2327 }; 2328 s("init", (() => { 2329 t.params.resizeObserver && void 0 !== i.ResizeObserver ? t && !t.destroyed && t.initialized && (n = new ResizeObserver((e => { 2330 l = i.requestAnimationFrame((() => { 2331 const { 2332 width: s, 2333 height: a 2334 } = t; 2335 let i = s, 2336 r = a; 2337 e.forEach((e => { 2338 let { 2339 contentBoxSize: s, 2340 contentRect: a, 2341 target: n 2342 } = e; 2343 n && n !== t.el || (i = a ? a.width : (s[0] || s).inlineSize, r = a ? a.height : (s[0] || s).blockSize) 2344 })), i === s && r === a || o() 2345 })) 2346 })), n.observe(t.el)) : (i.addEventListener("resize", o), i.addEventListener("orientationchange", d)) 2347 })), s("destroy", (() => { 2348 l && i.cancelAnimationFrame(l), n && n.unobserve && t.el && (n.unobserve(t.el), n = null), i.removeEventListener("resize", o), i.removeEventListener("orientationchange", d) 2349 })) 2350 }, function (e) { 2351 let { 2352 swiper: t, 2353 extendParams: s, 2354 on: a, 2355 emit: i 2356 } = e; 2357 const n = [], 2358 l = r(), 2359 o = function (e, t) { 2360 void 0 === t && (t = {}); 2361 const s = new(l.MutationObserver || l.WebkitMutationObserver)((e => { 2362 if (1 === e.length) return void i("observerUpdate", e[0]); 2363 const t = function () { 2364 i("observerUpdate", e[0]) 2365 }; 2366 l.requestAnimationFrame ? l.requestAnimationFrame(t) : l.setTimeout(t, 0) 2367 })); 2368 s.observe(e, { 2369 attributes: void 0 === t.attributes || t.attributes, 2370 childList: void 0 === t.childList || t.childList, 2371 characterData: void 0 === t.characterData || t.characterData 2372 }), n.push(s) 2373 }; 2374 s({ 2375 observer: !1, 2376 observeParents: !1, 2377 observeSlideChildren: !1 2378 }), a("init", (() => { 2379 if (t.params.observer) { 2380 if (t.params.observeParents) { 2381 const e = t.$el.parents(); 2382 for (let t = 0; t < e.length; t += 1) o(e[t]) 2383 } 2384 o(t.$el[0], { 2385 childList: t.params.observeSlideChildren 2386 }), o(t.$wrapperEl[0], { 2387 attributes: !1 2388 }) 2389 } 2390 })), a("destroy", (() => { 2391 n.forEach((e => { 2392 e.disconnect() 2393 })), n.splice(0, n.length) 2394 })) 2395 }]); 2396 const re = [function (e) { 2397 let t, { 2398 swiper: s, 2399 extendParams: a, 2400 on: i, 2401 emit: r 2402 } = e; 2403 2404 function n(e, t) { 2405 const a = s.params.virtual; 2406 if (a.cache && s.virtual.cache[t]) return s.virtual.cache[t]; 2407 const i = a.renderSlide ? d(a.renderSlide.call(s, e, t)) : d(`<div class="${s.params.slideClass}" data-swiper-slide-index="${t}">${e}</div>`); 2408 return i.attr("data-swiper-slide-index") || i.attr("data-swiper-slide-index", t), a.cache && (s.virtual.cache[t] = i), i 2409 } 2410 2411 function l(e) { 2412 const { 2413 slidesPerView: t, 2414 slidesPerGroup: a, 2415 centeredSlides: i 2416 } = s.params, { 2417 addSlidesBefore: l, 2418 addSlidesAfter: o 2419 } = s.params.virtual, { 2420 from: d, 2421 to: c, 2422 slides: p, 2423 slidesGrid: u, 2424 offset: h 2425 } = s.virtual; 2426 s.params.cssMode || s.updateActiveIndex(); 2427 const m = s.activeIndex || 0; 2428 let f, g, v; 2429 f = s.rtlTranslate ? "right" : s.isHorizontal() ? "left" : "top", i ? (g = Math.floor(t / 2) + a + o, v = Math.floor(t / 2) + a + l) : (g = t + (a - 1) + o, v = a + l); 2430 const w = Math.max((m || 0) - v, 0), 2431 b = Math.min((m || 0) + g, p.length - 1), 2432 x = (s.slidesGrid[w] || 0) - (s.slidesGrid[0] || 0); 2433 2434 function y() { 2435 s.updateSlides(), s.updateProgress(), s.updateSlidesClasses(), s.lazy && s.params.lazy.enabled && s.lazy.load(), r("virtualUpdate") 2436 } 2437 if (Object.assign(s.virtual, { 2438 from: w, 2439 to: b, 2440 offset: x, 2441 slidesGrid: s.slidesGrid 2442 }), d === w && c === b && !e) return s.slidesGrid !== u && x !== h && s.slides.css(f, `${x}px`), s.updateProgress(), void r("virtualUpdate"); 2443 if (s.params.virtual.renderExternal) return s.params.virtual.renderExternal.call(s, { 2444 offset: x, 2445 from: w, 2446 to: b, 2447 slides: function () { 2448 const e = []; 2449 for (let t = w; t <= b; t += 1) e.push(p[t]); 2450 return e 2451 }() 2452 }), void(s.params.virtual.renderExternalUpdate ? y() : r("virtualUpdate")); 2453 const E = [], 2454 C = []; 2455 if (e) s.$wrapperEl.find(`.${s.params.slideClass}`).remove(); 2456 else 2457 for (let e = d; e <= c; e += 1)(e < w || e > b) && s.$wrapperEl.find(`.${s.params.slideClass}[data-swiper-slide-index="${e}"]`).remove(); 2458 for (let t = 0; t < p.length; t += 1) t >= w && t <= b && (void 0 === c || e ? C.push(t) : (t > c && C.push(t), t < d && E.push(t))); 2459 C.forEach((e => { 2460 s.$wrapperEl.append(n(p[e], e)) 2461 })), E.sort(((e, t) => t - e)).forEach((e => { 2462 s.$wrapperEl.prepend(n(p[e], e)) 2463 })), s.$wrapperEl.children(".swiper-slide").css(f, `${x}px`), y() 2464 } 2465 a({ 2466 virtual: { 2467 enabled: !1, 2468 slides: [], 2469 cache: !0, 2470 renderSlide: null, 2471 renderExternal: null, 2472 renderExternalUpdate: !0, 2473 addSlidesBefore: 0, 2474 addSlidesAfter: 0 2475 } 2476 }), s.virtual = { 2477 cache: {}, 2478 from: void 0, 2479 to: void 0, 2480 slides: [], 2481 offset: 0, 2482 slidesGrid: [] 2483 }, i("beforeInit", (() => { 2484 s.params.virtual.enabled && (s.virtual.slides = s.params.virtual.slides, s.classNames.push(`${s.params.containerModifierClass}virtual`), s.params.watchSlidesProgress = !0, s.originalParams.watchSlidesProgress = !0, s.params.initialSlide || l()) 2485 })), i("setTranslate", (() => { 2486 s.params.virtual.enabled && (s.params.cssMode && !s._immediateVirtual ? (clearTimeout(t), t = setTimeout((() => { 2487 l() 2488 }), 100)) : l()) 2489 })), i("init update resize", (() => { 2490 s.params.virtual.enabled && s.params.cssMode && v(s.wrapperEl, "--swiper-virtual-size", `${s.virtualSize}px`) 2491 })), Object.assign(s.virtual, { 2492 appendSlide: function (e) { 2493 if ("object" == typeof e && "length" in e) 2494 for (let t = 0; t < e.length; t += 1) e[t] && s.virtual.slides.push(e[t]); 2495 else s.virtual.slides.push(e); 2496 l(!0) 2497 }, 2498 prependSlide: function (e) { 2499 const t = s.activeIndex; 2500 let a = t + 1, 2501 i = 1; 2502 if (Array.isArray(e)) { 2503 for (let t = 0; t < e.length; t += 1) e[t] && s.virtual.slides.unshift(e[t]); 2504 a = t + e.length, i = e.length 2505 } else s.virtual.slides.unshift(e); 2506 if (s.params.virtual.cache) { 2507 const e = s.virtual.cache, 2508 t = {}; 2509 Object.keys(e).forEach((s => { 2510 const a = e[s], 2511 r = a.attr("data-swiper-slide-index"); 2512 r && a.attr("data-swiper-slide-index", parseInt(r, 10) + i), t[parseInt(s, 10) + i] = a 2513 })), s.virtual.cache = t 2514 } 2515 l(!0), s.slideTo(a, 0) 2516 }, 2517 removeSlide: function (e) { 2518 if (null == e) return; 2519 let t = s.activeIndex; 2520 if (Array.isArray(e)) 2521 for (let a = e.length - 1; a >= 0; a -= 1) s.virtual.slides.splice(e[a], 1), s.params.virtual.cache && delete s.virtual.cache[e[a]], e[a] < t && (t -= 1), t = Math.max(t, 0); 2522 else s.virtual.slides.splice(e, 1), s.params.virtual.cache && delete s.virtual.cache[e], e < t && (t -= 1), t = Math.max(t, 0); 2523 l(!0), s.slideTo(t, 0) 2524 }, 2525 removeAllSlides: function () { 2526 s.virtual.slides = [], s.params.virtual.cache && (s.virtual.cache = {}), l(!0), s.slideTo(0, 0) 2527 }, 2528 update: l 2529 }) 2530 }, function (e) { 2531 let { 2532 swiper: t, 2533 extendParams: s, 2534 on: i, 2535 emit: n 2536 } = e; 2537 const l = a(), 2538 o = r(); 2539 2540 function c(e) { 2541 if (!t.enabled) return; 2542 const { 2543 rtlTranslate: s 2544 } = t; 2545 let a = e; 2546 a.originalEvent && (a = a.originalEvent); 2547 const i = a.keyCode || a.charCode, 2548 r = t.params.keyboard.pageUpDown, 2549 d = r && 33 === i, 2550 c = r && 34 === i, 2551 p = 37 === i, 2552 u = 39 === i, 2553 h = 38 === i, 2554 m = 40 === i; 2555 if (!t.allowSlideNext && (t.isHorizontal() && u || t.isVertical() && m || c)) return !1; 2556 if (!t.allowSlidePrev && (t.isHorizontal() && p || t.isVertical() && h || d)) return !1; 2557 if (!(a.shiftKey || a.altKey || a.ctrlKey || a.metaKey || l.activeElement && l.activeElement.nodeName && ("input" === l.activeElement.nodeName.toLowerCase() || "textarea" === l.activeElement.nodeName.toLowerCase()))) { 2558 if (t.params.keyboard.onlyInViewport && (d || c || p || u || h || m)) { 2559 let e = !1; 2560 if (t.$el.parents(`.${t.params.slideClass}`).length > 0 && 0 === t.$el.parents(`.${t.params.slideActiveClass}`).length) return; 2561 const a = t.$el, 2562 i = a[0].clientWidth, 2563 r = a[0].clientHeight, 2564 n = o.innerWidth, 2565 l = o.innerHeight, 2566 d = t.$el.offset(); 2567 s && (d.left -= t.$el[0].scrollLeft); 2568 const c = [ 2569 [d.left, d.top], 2570 [d.left + i, d.top], 2571 [d.left, d.top + r], 2572 [d.left + i, d.top + r] 2573 ]; 2574 for (let t = 0; t < c.length; t += 1) { 2575 const s = c[t]; 2576 if (s[0] >= 0 && s[0] <= n && s[1] >= 0 && s[1] <= l) { 2577 if (0 === s[0] && 0 === s[1]) continue; 2578 e = !0 2579 } 2580 } 2581 if (!e) return 2582 } 2583 t.isHorizontal() ? ((d || c || p || u) && (a.preventDefault ? a.preventDefault() : a.returnValue = !1), ((c || u) && !s || (d || p) && s) && t.slideNext(), ((d || p) && !s || (c || u) && s) && t.slidePrev()) : ((d || c || h || m) && (a.preventDefault ? a.preventDefault() : a.returnValue = !1), (c || m) && t.slideNext(), (d || h) && t.slidePrev()), n("keyPress", i) 2584 } 2585 } 2586 2587 function p() { 2588 t.keyboard.enabled || (d(l).on("keydown", c), t.keyboard.enabled = !0) 2589 } 2590 2591 function u() { 2592 t.keyboard.enabled && (d(l).off("keydown", c), t.keyboard.enabled = !1) 2593 } 2594 t.keyboard = { 2595 enabled: !1 2596 }, s({ 2597 keyboard: { 2598 enabled: !1, 2599 onlyInViewport: !0, 2600 pageUpDown: !0 2601 } 2602 }), i("init", (() => { 2603 t.params.keyboard.enabled && p() 2604 })), i("destroy", (() => { 2605 t.keyboard.enabled && u() 2606 })), Object.assign(t.keyboard, { 2607 enable: p, 2608 disable: u 2609 }) 2610 }, function (e) { 2611 let { 2612 swiper: t, 2613 extendParams: s, 2614 on: a, 2615 emit: i 2616 } = e; 2617 const n = r(); 2618 let l; 2619 s({ 2620 mousewheel: { 2621 enabled: !1, 2622 releaseOnEdges: !1, 2623 invert: !1, 2624 forceToAxis: !1, 2625 sensitivity: 1, 2626 eventsTarget: "container", 2627 thresholdDelta: null, 2628 thresholdTime: null 2629 } 2630 }), t.mousewheel = { 2631 enabled: !1 2632 }; 2633 let o, c = u(); 2634 const h = []; 2635 2636 function m() { 2637 t.enabled && (t.mouseEntered = !0) 2638 } 2639 2640 function f() { 2641 t.enabled && (t.mouseEntered = !1) 2642 } 2643 2644 function g(e) { 2645 return !(t.params.mousewheel.thresholdDelta && e.delta < t.params.mousewheel.thresholdDelta) && (!(t.params.mousewheel.thresholdTime && u() - c < t.params.mousewheel.thresholdTime) && (e.delta >= 6 && u() - c < 60 || (e.direction < 0 ? t.isEnd && !t.params.loop || t.animating || (t.slideNext(), i("scroll", e.raw)) : t.isBeginning && !t.params.loop || t.animating || (t.slidePrev(), i("scroll", e.raw)), c = (new n.Date).getTime(), !1))) 2646 } 2647 2648 function v(e) { 2649 let s = e, 2650 a = !0; 2651 if (!t.enabled) return; 2652 const r = t.params.mousewheel; 2653 t.params.cssMode && s.preventDefault(); 2654 let n = t.$el; 2655 if ("container" !== t.params.mousewheel.eventsTarget && (n = d(t.params.mousewheel.eventsTarget)), !t.mouseEntered && !n[0].contains(s.target) && !r.releaseOnEdges) return !0; 2656 s.originalEvent && (s = s.originalEvent); 2657 let c = 0; 2658 const m = t.rtlTranslate ? -1 : 1, 2659 f = function (e) { 2660 let t = 0, 2661 s = 0, 2662 a = 0, 2663 i = 0; 2664 return "detail" in e && (s = e.detail), "wheelDelta" in e && (s = -e.wheelDelta / 120), "wheelDeltaY" in e && (s = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (t = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS && (t = s, s = 0), a = 10 * t, i = 10 * s, "deltaY" in e && (i = e.deltaY), "deltaX" in e && (a = e.deltaX), e.shiftKey && !a && (a = i, i = 0), (a || i) && e.deltaMode && (1 === e.deltaMode ? (a *= 40, i *= 40) : (a *= 800, i *= 800)), a && !t && (t = a < 1 ? -1 : 1), i && !s && (s = i < 1 ? -1 : 1), { 2665 spinX: t, 2666 spinY: s, 2667 pixelX: a, 2668 pixelY: i 2669 } 2670 }(s); 2671 if (r.forceToAxis) 2672 if (t.isHorizontal()) { 2673 if (!(Math.abs(f.pixelX) > Math.abs(f.pixelY))) return !0; 2674 c = -f.pixelX * m 2675 } else { 2676 if (!(Math.abs(f.pixelY) > Math.abs(f.pixelX))) return !0; 2677 c = -f.pixelY 2678 } 2679 else c = Math.abs(f.pixelX) > Math.abs(f.pixelY) ? -f.pixelX * m : -f.pixelY; 2680 if (0 === c) return !0; 2681 r.invert && (c = -c); 2682 let v = t.getTranslate() + c * r.sensitivity; 2683 if (v >= t.minTranslate() && (v = t.minTranslate()), v <= t.maxTranslate() && (v = t.maxTranslate()), a = !!t.params.loop || !(v === t.minTranslate() || v === t.maxTranslate()), a && t.params.nested && s.stopPropagation(), t.params.freeMode && t.params.freeMode.enabled) { 2684 const e = { 2685 time: u(), 2686 delta: Math.abs(c), 2687 direction: Math.sign(c) 2688 }, 2689 a = o && e.time < o.time + 500 && e.delta <= o.delta && e.direction === o.direction; 2690 if (!a) { 2691 o = void 0, t.params.loop && t.loopFix(); 2692 let n = t.getTranslate() + c * r.sensitivity; 2693 const d = t.isBeginning, 2694 u = t.isEnd; 2695 if (n >= t.minTranslate() && (n = t.minTranslate()), n <= t.maxTranslate() && (n = t.maxTranslate()), t.setTransition(0), t.setTranslate(n), t.updateProgress(), t.updateActiveIndex(), t.updateSlidesClasses(), (!d && t.isBeginning || !u && t.isEnd) && t.updateSlidesClasses(), t.params.freeMode.sticky) { 2696 clearTimeout(l), l = void 0, h.length >= 15 && h.shift(); 2697 const s = h.length ? h[h.length - 1] : void 0, 2698 a = h[0]; 2699 if (h.push(e), s && (e.delta > s.delta || e.direction !== s.direction)) h.splice(0); 2700 else if (h.length >= 15 && e.time - a.time < 500 && a.delta - e.delta >= 1 && e.delta <= 6) { 2701 const s = c > 0 ? .8 : .2; 2702 o = e, h.splice(0), l = p((() => { 2703 t.slideToClosest(t.params.speed, !0, void 0, s) 2704 }), 0) 2705 } 2706 l || (l = p((() => { 2707 o = e, h.splice(0), t.slideToClosest(t.params.speed, !0, void 0, .5) 2708 }), 500)) 2709 } 2710 if (a || i("scroll", s), t.params.autoplay && t.params.autoplayDisableOnInteraction && t.autoplay.stop(), n === t.minTranslate() || n === t.maxTranslate()) return !0 2711 } 2712 } else { 2713 const s = { 2714 time: u(), 2715 delta: Math.abs(c), 2716 direction: Math.sign(c), 2717 raw: e 2718 }; 2719 h.length >= 2 && h.shift(); 2720 const a = h.length ? h[h.length - 1] : void 0; 2721 if (h.push(s), a ? (s.direction !== a.direction || s.delta > a.delta || s.time > a.time + 150) && g(s) : g(s), function (e) { 2722 const s = t.params.mousewheel; 2723 if (e.direction < 0) { 2724 if (t.isEnd && !t.params.loop && s.releaseOnEdges) return !0 2725 } else if (t.isBeginning && !t.params.loop && s.releaseOnEdges) return !0; 2726 return !1 2727 }(s)) return !0 2728 } 2729 return s.preventDefault ? s.preventDefault() : s.returnValue = !1, !1 2730 } 2731 2732 function w(e) { 2733 let s = t.$el; 2734 "container" !== t.params.mousewheel.eventsTarget && (s = d(t.params.mousewheel.eventsTarget)), s[e]("mouseenter", m), s[e]("mouseleave", f), s[e]("wheel", v) 2735 } 2736 2737 function b() { 2738 return t.params.cssMode ? (t.wrapperEl.removeEventListener("wheel", v), !0) : !t.mousewheel.enabled && (w("on"), t.mousewheel.enabled = !0, !0) 2739 } 2740 2741 function x() { 2742 return t.params.cssMode ? (t.wrapperEl.addEventListener(event, v), !0) : !!t.mousewheel.enabled && (w("off"), t.mousewheel.enabled = !1, !0) 2743 } 2744 a("init", (() => { 2745 !t.params.mousewheel.enabled && t.params.cssMode && x(), t.params.mousewheel.enabled && b() 2746 })), a("destroy", (() => { 2747 t.params.cssMode && b(), t.mousewheel.enabled && x() 2748 })), Object.assign(t.mousewheel, { 2749 enable: b, 2750 disable: x 2751 }) 2752 }, function (e) { 2753 let { 2754 swiper: t, 2755 extendParams: s, 2756 on: a, 2757 emit: i 2758 } = e; 2759 2760 function r(e) { 2761 let s; 2762 return e && (s = d(e), t.params.uniqueNavElements && "string" == typeof e && s.length > 1 && 1 === t.$el.find(e).length && (s = t.$el.find(e))), s 2763 } 2764 2765 function n(e, s) { 2766 const a = t.params.navigation; 2767 e && e.length > 0 && (e[s ? "addClass" : "removeClass"](a.disabledClass), e[0] && "BUTTON" === e[0].tagName && (e[0].disabled = s), t.params.watchOverflow && t.enabled && e[t.isLocked ? "addClass" : "removeClass"](a.lockClass)) 2768 } 2769 2770 function l() { 2771 if (t.params.loop) return; 2772 const { 2773 $nextEl: e, 2774 $prevEl: s 2775 } = t.navigation; 2776 n(s, t.isBeginning && !t.params.rewind), n(e, t.isEnd && !t.params.rewind) 2777 } 2778 2779 function o(e) { 2780 e.preventDefault(), (!t.isBeginning || t.params.loop || t.params.rewind) && (t.slidePrev(), i("navigationPrev")) 2781 } 2782 2783 function c(e) { 2784 e.preventDefault(), (!t.isEnd || t.params.loop || t.params.rewind) && (t.slideNext(), i("navigationNext")) 2785 } 2786 2787 function p() { 2788 const e = t.params.navigation; 2789 if (t.params.navigation = F(t, t.originalParams.navigation, t.params.navigation, { 2790 nextEl: "swiper-button-next", 2791 prevEl: "swiper-button-prev" 2792 }), !e.nextEl && !e.prevEl) return; 2793 const s = r(e.nextEl), 2794 a = r(e.prevEl); 2795 s && s.length > 0 && s.on("click", c), a && a.length > 0 && a.on("click", o), Object.assign(t.navigation, { 2796 $nextEl: s, 2797 nextEl: s && s[0], 2798 $prevEl: a, 2799 prevEl: a && a[0] 2800 }), t.enabled || (s && s.addClass(e.lockClass), a && a.addClass(e.lockClass)) 2801 } 2802 2803 function u() { 2804 const { 2805 $nextEl: e, 2806 $prevEl: s 2807 } = t.navigation; 2808 e && e.length && (e.off("click", c), e.removeClass(t.params.navigation.disabledClass)), s && s.length && (s.off("click", o), s.removeClass(t.params.navigation.disabledClass)) 2809 } 2810 s({ 2811 navigation: { 2812 nextEl: null, 2813 prevEl: null, 2814 hideOnClick: !1, 2815 disabledClass: "swiper-button-disabled", 2816 hiddenClass: "swiper-button-hidden", 2817 lockClass: "swiper-button-lock", 2818 navigationDisabledClass: "swiper-navigation-disabled" 2819 } 2820 }), t.navigation = { 2821 nextEl: null, 2822 $nextEl: null, 2823 prevEl: null, 2824 $prevEl: null 2825 }, a("init", (() => { 2826 !1 === t.params.navigation.enabled ? h() : (p(), l()) 2827 })), a("toEdge fromEdge lock unlock", (() => { 2828 l() 2829 })), a("destroy", (() => { 2830 u() 2831 })), a("enable disable", (() => { 2832 const { 2833 $nextEl: e, 2834 $prevEl: s 2835 } = t.navigation; 2836 e && e[t.enabled ? "removeClass" : "addClass"](t.params.navigation.lockClass), s && s[t.enabled ? "removeClass" : "addClass"](t.params.navigation.lockClass) 2837 })), a("click", ((e, s) => { 2838 const { 2839 $nextEl: a, 2840 $prevEl: r 2841 } = t.navigation, n = s.target; 2842 if (t.params.navigation.hideOnClick && !d(n).is(r) && !d(n).is(a)) { 2843 if (t.pagination && t.params.pagination && t.params.pagination.clickable && (t.pagination.el === n || t.pagination.el.contains(n))) return; 2844 let e; 2845 a ? e = a.hasClass(t.params.navigation.hiddenClass) : r && (e = r.hasClass(t.params.navigation.hiddenClass)), i(!0 === e ? "navigationShow" : "navigationHide"), a && a.toggleClass(t.params.navigation.hiddenClass), r && r.toggleClass(t.params.navigation.hiddenClass) 2846 } 2847 })); 2848 const h = () => { 2849 t.$el.addClass(t.params.navigation.navigationDisabledClass), u() 2850 }; 2851 Object.assign(t.navigation, { 2852 enable: () => { 2853 t.$el.removeClass(t.params.navigation.navigationDisabledClass), p(), l() 2854 }, 2855 disable: h, 2856 update: l, 2857 init: p, 2858 destroy: u 2859 }) 2860 }, function (e) { 2861 let { 2862 swiper: t, 2863 extendParams: s, 2864 on: a, 2865 emit: i 2866 } = e; 2867 const r = "swiper-pagination"; 2868 let n; 2869 s({ 2870 pagination: { 2871 el: null, 2872 bulletElement: "span", 2873 clickable: !1, 2874 hideOnClick: !1, 2875 renderBullet: null, 2876 renderProgressbar: null, 2877 renderFraction: null, 2878 renderCustom: null, 2879 progressbarOpposite: !1, 2880 type: "bullets", 2881 dynamicBullets: !1, 2882 dynamicMainBullets: 1, 2883 formatFractionCurrent: e => e, 2884 formatFractionTotal: e => e, 2885 bulletClass: `${r}-bullet`, 2886 bulletActiveClass: `${r}-bullet-active`, 2887 modifierClass: `${r}-`, 2888 currentClass: `${r}-current`, 2889 totalClass: `${r}-total`, 2890 hiddenClass: `${r}-hidden`, 2891 progressbarFillClass: `${r}-progressbar-fill`, 2892 progressbarOppositeClass: `${r}-progressbar-opposite`, 2893 clickableClass: `${r}-clickable`, 2894 lockClass: `${r}-lock`, 2895 horizontalClass: `${r}-horizontal`, 2896 verticalClass: `${r}-vertical`, 2897 paginationDisabledClass: `${r}-disabled` 2898 } 2899 }), t.pagination = { 2900 el: null, 2901 $el: null, 2902 bullets: [] 2903 }; 2904 let l = 0; 2905 2906 function o() { 2907 return !t.params.pagination.el || !t.pagination.el || !t.pagination.$el || 0 === t.pagination.$el.length 2908 } 2909 2910 function c(e, s) { 2911 const { 2912 bulletActiveClass: a 2913 } = t.params.pagination; 2914 e[s]().addClass(`${a}-${s}`)[s]().addClass(`${a}-${s}-${s}`) 2915 } 2916 2917 function p() { 2918 const e = t.rtl, 2919 s = t.params.pagination; 2920 if (o()) return; 2921 const a = t.virtual && t.params.virtual.enabled ? t.virtual.slides.length : t.slides.length, 2922 r = t.pagination.$el; 2923 let p; 2924 const u = t.params.loop ? Math.ceil((a - 2 * t.loopedSlides) / t.params.slidesPerGroup) : t.snapGrid.length; 2925 if (t.params.loop ? (p = Math.ceil((t.activeIndex - t.loopedSlides) / t.params.slidesPerGroup), p > a - 1 - 2 * t.loopedSlides && (p -= a - 2 * t.loopedSlides), p > u - 1 && (p -= u), p < 0 && "bullets" !== t.params.paginationType && (p = u + p)) : p = void 0 !== t.snapIndex ? t.snapIndex : t.activeIndex || 0, "bullets" === s.type && t.pagination.bullets && t.pagination.bullets.length > 0) { 2926 const a = t.pagination.bullets; 2927 let i, o, u; 2928 if (s.dynamicBullets && (n = a.eq(0)[t.isHorizontal() ? "outerWidth" : "outerHeight"](!0), r.css(t.isHorizontal() ? "width" : "height", n * (s.dynamicMainBullets + 4) + "px"), s.dynamicMainBullets > 1 && void 0 !== t.previousIndex && (l += p - (t.previousIndex - t.loopedSlides || 0), l > s.dynamicMainBullets - 1 ? l = s.dynamicMainBullets - 1 : l < 0 && (l = 0)), i = Math.max(p - l, 0), o = i + (Math.min(a.length, s.dynamicMainBullets) - 1), u = (o + i) / 2), a.removeClass(["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((e => `${s.bulletActiveClass}${e}`)).join(" ")), r.length > 1) a.each((e => { 2929 const t = d(e), 2930 a = t.index(); 2931 a === p && t.addClass(s.bulletActiveClass), s.dynamicBullets && (a >= i && a <= o && t.addClass(`${s.bulletActiveClass}-main`), a === i && c(t, "prev"), a === o && c(t, "next")) 2932 })); 2933 else { 2934 const e = a.eq(p), 2935 r = e.index(); 2936 if (e.addClass(s.bulletActiveClass), s.dynamicBullets) { 2937 const e = a.eq(i), 2938 n = a.eq(o); 2939 for (let e = i; e <= o; e += 1) a.eq(e).addClass(`${s.bulletActiveClass}-main`); 2940 if (t.params.loop) 2941 if (r >= a.length) { 2942 for (let e = s.dynamicMainBullets; e >= 0; e -= 1) a.eq(a.length - e).addClass(`${s.bulletActiveClass}-main`); 2943 a.eq(a.length - s.dynamicMainBullets - 1).addClass(`${s.bulletActiveClass}-prev`) 2944 } else c(e, "prev"), c(n, "next"); 2945 else c(e, "prev"), c(n, "next") 2946 } 2947 } 2948 if (s.dynamicBullets) { 2949 const i = Math.min(a.length, s.dynamicMainBullets + 4), 2950 r = (n * i - n) / 2 - u * n, 2951 l = e ? "right" : "left"; 2952 a.css(t.isHorizontal() ? l : "top", `${r}px`) 2953 } 2954 } 2955 if ("fraction" === s.type && (r.find(U(s.currentClass)).text(s.formatFractionCurrent(p + 1)), r.find(U(s.totalClass)).text(s.formatFractionTotal(u))), "progressbar" === s.type) { 2956 let e; 2957 e = s.progressbarOpposite ? t.isHorizontal() ? "vertical" : "horizontal" : t.isHorizontal() ? "horizontal" : "vertical"; 2958 const a = (p + 1) / u; 2959 let i = 1, 2960 n = 1; 2961 "horizontal" === e ? i = a : n = a, r.find(U(s.progressbarFillClass)).transform(`translate3d(0,
29610,0) scaleX(${i}) scaleY(${n})`).transition(t.params.speed) 2962 } 2963 "custom" === s.type && s.renderCustom ? (r.html(s.renderCustom(t, p + 1, u)), i("paginationRender", r[0])) : i("paginationUpdate", r[0]), t.params.watchOverflow && t.enabled && r[t.isLocked ? "addClass" : "removeClass"](s.lockClass) 2964 } 2965 2966 function u() { 2967 const e = t.params.pagination; 2968 if (o()) return; 2969 const s = t.virtual && t.params.virtual.enabled ? t.virtual.slides.length : t.slides.length, 2970 a = t.pagination.$el; 2971 let r = ""; 2972 if ("bullets" === e.type) { 2973 let i = t.params.loop ? Math.ceil((s - 2 * t.loopedSlides) / t.params.slidesPerGroup) : t.snapGrid.length; 2974 t.params.freeMode && t.params.freeMode.enabled && !t.params.loop && i > s && (i = s); 2975 for (let s = 0; s < i; s += 1) e.renderBullet ? r += e.renderBullet.call(t, s, e.bulletClass) : r += `<${e.bulletElement} class="${e.bulletClass}"></${e.bulletElement}>`; 2976 a.html(r), t.pagination.bullets = a.find(U(e.bulletClass)) 2977 } 2978 "fraction" === e.type && (r = e.renderFraction ? e.renderFraction.call(t, e.currentClass, e.totalClass) : `<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`, a.html(r)), "progressbar" === e.type && (r = e.renderProgressbar ? e.renderProgressbar.call(t, e.progressbarFillClass) : `<span class="${e.progressbarFillClass}"></span>`, a.html(r)), "custom" !== e.type && i("paginationRender", t.pagination.$el[0]) 2979 } 2980 2981 function h() { 2982 t.params.pagination = F(t, t.originalParams.pagination, t.params.pagination, { 2983 el: "swiper-pagination" 2984 }); 2985 const e = t.params.pagination; 2986 if (!e.el) return; 2987 let s = d(e.el); 2988 0 !== s.length && (t.params.uniqueNavElements && "string" == typeof e.el && s.length > 1 && (s = t.$el.find(e.el), s.length > 1 && (s = s.filter((e => d(e).parents(".swiper")[0] === t.el)))), "bullets" === e.type && e.clickable && s.addClass(e.clickableClass), s.addClass(e.modifierClass + e.type), s.addClass(t.isHorizontal() ? e.horizontalClass : e.verticalClass), "bullets" === e.type && e.dynamicBullets && (s.addClass(`${e.modifierClass}${e.type}-dynamic`), l = 0, e.dynamicMainBullets < 1 && (e.dynamicMainBullets = 1)), "progressbar" === e.type && e.progressbarOpposite && s.addClass(e.progressbarOppositeClass), e.clickable && s.on("click", U(e.bulletClass), (function (e) { 2989 e.preventDefault(); 2990 let s = d(this).index() * t.params.slidesPerGroup; 2991 t.params.loop && (s += t.loopedSlides), t.slideTo(s) 2992 })), Object.assign(t.pagination, { 2993 $el: s, 2994 el: s[0] 2995 }), t.enabled || s.addClass(e.lockClass)) 2996 } 2997 2998 function m() { 2999 const e = t.params.pagination; 3000 if (o()) return; 3001 const s = t.pagination.$el; 3002 s.removeClass(e.hiddenClass), s.removeClass(e.modifierClass + e.type), s.removeClass(t.isHorizontal() ? e.horizontalClass : e.verticalClass), t.pagination.bullets && t.pagination.bullets.removeClass && t.pagination.bullets.removeClass(e.bulletActiveClass), e.clickable && s.off("click", U(e.bulletClass)) 3003 } 3004 a("init", (() => { 3005 !1 === t.params.pagination.enabled ? f() : (h(), u(), p()) 3006 })), a("activeIndexChange", (() => { 3007 (t.params.loop || void 0 === t.snapIndex) && p() 3008 })), a("snapIndexChange", (() => { 3009 t.params.loop || p() 3010 })), a("slidesLengthChange", (() => { 3011 t.params.loop && (u(), p()) 3012 })), a("snapGridLengthChange", (() => { 3013 t.params.loop || (u(), p()) 3014 })), a("destroy", (() => { 3015 m() 3016 })), a("enable disable", (() => { 3017 const { 3018 $el: e 3019 } = t.pagination; 3020 e && e[t.enabled ? "removeClass" : "addClass"](t.params.pagination.lockClass) 3021 })), a("lock unlock", (() => { 3022 p() 3023 })), a("click", ((e, s) => { 3024 const a = s.target, 3025 { 3026 $el: r 3027 } = t.pagination; 3028 if (t.params.pagination.el && t.params.pagination.hideOnClick && r && r.length > 0 && !d(a).hasClass(t.params.pagination.bulletClass)) { 3029 if (t.navigation && (t.navigation.nextEl && a === t.navigation.nextEl || t.navigation.prevEl && a === t.navigation.prevEl)) return; 3030 const e = r.hasClass(t.params.pagination.hiddenClass); 3031 i(!0 === e ? "paginationShow" : "paginationHide"), r.toggleClass(t.params.pagination.hiddenClass) 3032 } 3033 })); 3034 const f = () => { 3035 t.$el.addClass(t.params.pagination.paginationDisabledClass), t.pagination.$el && t.pagination.$el.addClass(t.params.pagination.paginationDisabledClass), m() 3036 }; 3037 Object.assign(t.pagination, { 3038 enable: () => { 3039 t.$el.removeClass(t.params.pagination.paginationDisabledClass), t.pagination.$el && t.pagination.$el.removeClass(t.params.pagination.paginationDisabledClass), h(), u(), p() 3040 }, 3041 disable: f, 3042 render: u, 3043 update: p, 3044 init: h, 3045 destroy: m 3046 }) 3047 }, function (e) { 3048 let { 3049 swiper: t, 3050 extendParams: s, 3051 on: i, 3052 emit: r 3053 } = e; 3054 const n = a(); 3055 let l, o, c, u, h = !1, 3056 m = null, 3057 f = null; 3058 3059 function g() { 3060 if (!t.params.scrollbar.el || !t.scrollbar.el) return; 3061 const { 3062 scrollbar: e, 3063 rtlTranslate: s, 3064 progress: a 3065 } = t, { 3066 $dragEl: i, 3067 $el: r 3068 } = e, n = t.params.scrollbar; 3069 let l = o, 3070 d = (c - o) * a; 3071 s ? (d = -d, d > 0 ? (l = o - d, d = 0) : -d + o > c && (l = c + d)) : d < 0 ? (l = o + d, d = 0) : d + o > c && (l = c - d), t.isHorizontal() ? (i.transform(`translate3d(${d}px, 0, 0)`), i[0].style.width = `${l}px`) : (i.transform(`translate3d(0px, ${d}
3071px, 0)`), i[0].style.height = `${l}px`), n.hide && (clearTimeout(m), r[0].style.opacity = 1, m = setTimeout((() => { 3072 r[0].style.opacity = 0, r.transition(400) 3073 }), 1e3)) 3074 } 3075 3076 function v() { 3077 if (!t.params.scrollbar.el || !t.scrollbar.el) return; 3078 const { 3079 scrollbar: e 3080 } = t, { 3081 $dragEl: s, 3082 $el: a 3083 } = e; 3084 s[0].style.width = "", s[0].style.height = "", c = t.isHorizontal() ? a[0].offsetWidth : a[0].offsetHeight, u = t.size / (t.virtualSize + t.params.slidesOffsetBefore - (t.params.centeredSlides ? t.snapGrid[0] : 0)), o = "auto" === t.params.scrollbar.dragSize ? c * u : parseInt(t.params.scrollbar.dragSize, 10), t.isHorizontal() ? s[0].style.width = `${o}px` : s[0].style.height = `${o}px`, a[0].style.display = u >= 1 ? "none" : "", t.params.scrollbar.hide && (a[0].style.opacity = 0), t.params.watchOverflow && t.enabled && e.$el[t.isLocked ? "addClass" : "removeClass"](t.params.scrollbar.lockClass) 3085 } 3086 3087 function w(e) { 3088 return t.isHorizontal() ? "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].clientX : e.clientX : "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].clientY : e.clientY 3089 } 3090 3091 function b(e) { 3092 const { 3093 scrollbar: s, 3094 rtlTranslate: a 3095 } = t, { 3096 $el: i 3097 } = s; 3098 let r; 3099 r = (w(e) - i.offset()[t.isHorizontal() ? "left" : "top"] - (null !== l ? l : o / 2)) / (c - o), r = Math.max(Math.min(r, 1), 0), a && (r = 1 - r); 3100 const n = t.minTranslate() + (t.maxTranslate() - t.minTranslate()) * r; 3101 t.updateProgress(n), t.setTranslate(n), t.updateActiveIndex(), t.updateSlidesClasses() 3102 } 3103 3104 function x(e) { 3105 const s = t.params.scrollbar, 3106 { 3107 scrollbar: a, 3108 $wrapperEl: i 3109 } = t, 3110 { 3111 $el: n, 3112 $dragEl: o 3113 } = a; 3114 h = !0, l = e.target === o[0] || e.target === o ? w(e) - e.target.getBoundingClientRect()[t.isHorizontal() ? "left" : "top"] : null, e.preventDefault(), e.stopPropagation(), i.transition(100), o.transition(100), b(e), clearTimeout(f), n.transition(0), s.hide && n.css("opacity", 1), t.params.cssMode && t.$wrapperEl.css("scroll-snap-type", "none"), r("scrollbarDragStart", e) 3115 } 3116 3117 function y(e) { 3118 const { 3119 scrollbar: s, 3120 $wrapperEl: a 3121 } = t, { 3122 $el: i, 3123 $dragEl: n 3124 } = s; 3125 h && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, b(e), a.transition(0), i.transition(0), n.transition(0), r("scrollbarDragMove", e)) 3126 } 3127 3128 function E(e) { 3129 const s = t.params.scrollbar, 3130 { 3131 scrollbar: a, 3132 $wrapperEl: i 3133 } = t, 3134 { 3135 $el: n 3136 } = a; 3137 h && (h = !1, t.params.cssMode && (t.$wrapperEl.css("scroll-snap-type", ""), i.transition("")), s.hide && (clearTimeout(f), f = p((() => { 3138 n.css("opacity", 0), n.transition(400) 3139 }), 1e3)), r("scrollbarDragEnd", e), s.snapOnRelease && t.slideToClosest()) 3140 } 3141 3142 function C(e) { 3143 const { 3144 scrollbar: s, 3145 touchEventsTouch: a, 3146 touchEventsDesktop: i, 3147 params: r, 3148 support: l 3149 } = t, o = s.$el; 3150 if (!o) return; 3151 const d = o[0], 3152 c = !(!l.passiveListener || !r.passiveListeners) && { 3153 passive: !1, 3154 capture: !1 3155 }, 3156 p = !(!l.passiveListener || !r.passiveListeners) && { 3157 passive: !0, 3158 capture: !1 3159 }; 3160 if (!d) return; 3161 const u = "on" === e ? "addEventListener" : "removeEventListener"; 3162 l.touch ? (d[u](a.start, x, c), d[u](a.move, y, c), d[u](a.end, E, p)) : (d[u](i.start, x, c), n[u](i.move, y, c), n[u](i.end, E, p)) 3163 } 3164 3165 function T() { 3166 const { 3167 scrollbar: e, 3168 $el: s 3169 } = t; 3170 t.params.scrollbar = F(t, t.originalParams.scrollbar, t.params.scrollbar, { 3171 el: "swiper-scrollbar" 3172 }); 3173 const a = t.params.scrollbar; 3174 if (!a.el) return; 3175 let i = d(a.el); 3176 t.params.uniqueNavElements && "string" == typeof a.el && i.length > 1 && 1 === s.find(a.el).length && (i = s.find(a.el)), i.addClass(t.isHorizontal() ? a.horizontalClass : a.verticalClass); 3177 let r = i.find(`.${t.params.scrollbar.dragClass}`); 3178 0 === r.length && (r = d(`<div class="${t.params.scrollbar.dragClass}"></div>`), i.append(r)), Object.assign(e, { 3179 $el: i, 3180 el: i[0], 3181 $dragEl: r, 3182 dragEl: r[0] 3183 }), a.draggable && t.params.scrollbar.el && t.scrollbar.el && C("on"), i && i[t.enabled ? "removeClass" : "addClass"](t.params.scrollbar.lockClass) 3184 } 3185 3186 function $() { 3187 const e = t.params.scrollbar, 3188 s = t.scrollbar.$el; 3189 s && s.removeClass(t.isHorizontal() ? e.horizontalClass : e.verticalClass), t.params.scrollbar.el && t.scrollbar.el && C("off") 3190 } 3191 s({ 3192 scrollbar: { 3193 el: null, 3194 dragSize: "auto", 3195 hide: !1, 3196 draggable: !1, 3197 snapOnRelease: !0, 3198 lockClass: "swiper-scrollbar-lock", 3199 dragClass: "swiper-scrollbar-drag", 3200 scrollbarDisabledClass: "swiper-scrollbar-disabled", 3201 horizontalClass: "swiper-scrollbar-horizontal", 3202 verticalClass: "swiper-scrollbar-vertical" 3203 } 3204 }), t.scrollbar = { 3205 el: null, 3206 dragEl: null, 3207 $el: null, 3208 $dragEl: null 3209 }, i("init", (() => { 3210 !1 === t.params.scrollbar.enabled ? S() : (T(), v(), g()) 3211 })), i("update resize observerUpdate lock unlock", (() => { 3212 v() 3213 })), i("setTranslate", (() => { 3214 g() 3215 })), i("setTransition", ((e, s) => { 3216 ! function (e) { 3217 t.params.scrollbar.el && t.scrollbar.el && t.scrollbar.$dragEl.transition(e) 3218 }(s) 3219 })), i("enable disable", (() => { 3220 const { 3221 $el: e 3222 } = t.scrollbar; 3223 e && e[t.enabled ? "removeClass" : "addClass"](t.params.scrollbar.lockClass) 3224 })), i("destroy", (() => { 3225 $() 3226 })); 3227 const S = () => { 3228 t.$el.addClass(t.params.scrollbar.scrollbarDisabledClass), t.scrollbar.$el && t.scrollbar.$el.addClass(t.params.scrollbar.scrollbarDisabledClass), $() 3229 }; 3230 Object.assign(t.scrollbar, { 3231 enable: () => { 3232 t.$el.removeClass(t.params.scrollbar.scrollbarDisabledClass), t.scrollbar.$el && t.scrollbar.$el.removeClass(t.params.scrollbar.scrollbarDisabledClass), T(), v(), g() 3233 }, 3234 disable: S, 3235 updateSize: v, 3236 setTranslate: g, 3237 init: T, 3238 destroy: $ 3239 }) 3240 }, function (e) { 3241 let { 3242 swiper: t, 3243 extendParams: s, 3244 on: a 3245 } = e; 3246 s({ 3247 parallax: { 3248 enabled: !1 3249 } 3250 }); 3251 const i = (e, s) => { 3252 const { 3253 rtl: a 3254 } = t, i = d(e), r = a ? -1 : 1, n = i.attr("data-swiper-parallax") || "0"; 3255 let l = i.attr("data-swiper-parallax-x"), 3256 o = i.attr("data-swiper-parallax-y"); 3257 const c = i.attr("data-swiper-parallax-scale"), 3258 p = i.attr("data-swiper-parallax-opacity"); 3259 if (l || o ? (l = l || "0", o = o || "0") : t.isHorizontal() ? (l = n, o = "0") : (o = n, l = "0"), l = l.indexOf("%") >= 0 ? parseInt(l, 10) * s * r + "%" : l * s * r + "px", o = o.indexOf("%") >= 0 ? parseInt(o, 10) * s + "%" : o * s + "px", null != p) { 3260 const e = p - (p - 1) * (1 - Math.abs(s)); 3261 i[0].style.opacity = e 3262 } 3263 if (null == c) i.transform(`translate3d(${l}, ${o}, 0px)`); 3264 else { 3265 const e = c - (c - 1) * (1 - Math.abs(s)); 3266 i.transform(`translate3d(${l}, ${o}, 0px) scale(${e})`) 3267 } 3268 }, 3269 r = () => { 3270 const { 3271 $el: e, 3272 slides: s, 3273 progress: a, 3274 snapGrid: r 3275 } = t; 3276 e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e => { 3277 i(e, a) 3278 })), s.each(((e, s) => { 3279 let n = e.progress; 3280 t.params.slidesPerGroup > 1 && "auto" !== t.params.slidesPerView && (n += Math.ceil(s / 2) - a * (r.length - 1)), n = Math.min(Math.max(n, -1), 1), d(e).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e => { 3281 i(e, n) 3282 })) 3283 })) 3284 }; 3285 a("beforeInit", (() => { 3286 t.params.parallax.enabled && (t.params.watchSlidesProgress = !0, t.originalParams.watchSlidesProgress = !0) 3287 })), a("init", (() => { 3288 t.params.parallax.enabled && r() 3289 })), a("setTranslate", (() => { 3290 t.params.parallax.enabled && r() 3291 })), a("setTransition", ((e, s) => { 3292 t.params.parallax.enabled && function (e) { 3293 void 0 === e && (e = t.params.speed); 3294 const { 3295 $el: s 3296 } = t; 3297 s.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t => { 3298 const s = d(t); 3299 let a = parseInt(s.attr("data-swiper-parallax-duration"), 10) || e; 3300 0 === e && (a = 0), s.transition(a) 3301 })) 3302 }(s) 3303 })) 3304 }, function (e) { 3305 let { 3306 swiper: t, 3307 extendParams: s, 3308 on: a, 3309 emit: i 3310 } = e; 3311 const n = r(); 3312 s({ 3313 zoom: { 3314 enabled: !1, 3315 maxRatio: 3, 3316 minRatio: 1, 3317 toggle: !0, 3318 containerClass: "swiper-zoom-container", 3319 zoomedSlideClass: "swiper-slide-zoomed" 3320 } 3321 }), t.zoom = { 3322 enabled: !1 3323 }; 3324 let l, o, c, p = 1, 3325 u = !1; 3326 const m = { 3327 $slideEl: void 0, 3328 slideWidth: void 0, 3329 slideHeight: void 0, 3330 $imageEl: void 0, 3331 $imageWrapEl: void 0, 3332 maxRatio: 3 3333 }, 3334 f = { 3335 isTouched: void 0, 3336 isMoved: void 0, 3337 currentX: void 0, 3338 currentY: void 0, 3339 minX: void 0, 3340 minY: void 0, 3341 maxX: void 0, 3342 maxY: void 0, 3343 width: void 0, 3344 height: void 0, 3345 startX: void 0, 3346 startY: void 0, 3347 touchesStart: {}, 3348 touchesCurrent: {} 3349 }, 3350 g = { 3351 x: void 0, 3352 y: void 0, 3353 prevPositionX: void 0, 3354 prevPositionY: void 0, 3355 prevTime: void 0 3356 }; 3357 let v = 1; 3358 3359 function w(e) { 3360 if (e.targetTouches.length < 2) return 1; 3361 const t = e.targetTouches[0].pageX, 3362 s = e.targetTouches[0].pageY, 3363 a = e.targetTouches[1].pageX, 3364 i = e.targetTouches[1].pageY; 3365 return Math.sqrt((a - t) ** 2 + (i - s) ** 2) 3366 } 3367 3368 function b(e) { 3369 const s = t.support, 3370 a = t.params.zoom; 3371 if (o = !1, c = !1, !s.gestures) { 3372 if ("touchstart" !== e.type || "touchstart" === e.type && e.targetTouches.length < 2) return; 3373 o = !0, m.scaleStart = w(e) 3374 } 3375 m.$slideEl && m.$slideEl.length || (m.$slideEl = d(e.target).closest(`.${t.params.slideClass}`), 0 === m.$slideEl.length && (m.$slideEl = t.slides.eq(t.activeIndex)), m.$imageEl = m.$slideEl.find(`.${a.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0), m.$imageWrapEl = m.$imageEl.parent(`.${a.containerClass}`), m.maxRatio = m.$imageWrapEl.attr("data-swiper-zoom") || a.maxRatio, 0 !== m.$imageWrapEl.length) ? (m.$imageEl && m.$imageEl.transition(0), u = !0) : m.$imageEl = void 0 3376 } 3377 3378 function x(e) { 3379 const s = t.support, 3380 a = t.params.zoom, 3381 i = t.zoom; 3382 if (!s.gestures) { 3383 if ("touchmove" !== e.type || "touchmove" === e.type && e.targetTouches.length < 2) return; 3384 c = !0, m.scaleMove = w(e) 3385 } 3386 m.$imageEl && 0 !== m.$imageEl.length ? (s.gestures ? i.scale = e.scale * p : i.scale = m.scaleMove / m.scaleStart * p, i.scale > m.maxRatio && (i.scale = m.maxRatio - 1 + (i.scale - m.maxRatio + 1) ** .5), i.scale < a.minRatio && (i.scale = a.minRatio + 1 - (a.minRatio - i.scale + 1) ** .5), m.$imageEl.transform(`translate3d(0,
33860,0) scale(${i.scale})`)) : "gesturechange" === e.type && b(e) 3387 } 3388 3389 function y(e) { 3390 const s = t.device, 3391 a = t.support, 3392 i = t.params.zoom, 3393 r = t.zoom; 3394 if (!a.gestures) { 3395 if (!o || !c) return; 3396 if ("touchend" !== e.type || "touchend" === e.type && e.changedTouches.length < 2 && !s.android) return; 3397 o = !1, c = !1 3398 } 3399 m.$imageEl && 0 !== m.$imageEl.length && (r.scale = Math.max(Math.min(r.scale, m.maxRatio), i.minRatio), m.$imageEl.transition(t.params.speed).transform(`translate3d(0,0,0) scale(${r.scale})`), p = r.scale, u = !1, 1 === r.scale && (m.$slideEl = void 0)) 3400 } 3401 3402 function E(e) { 3403 const s = t.zoom; 3404 if (!m.$imageEl || 0 === m.$imageEl.length) return; 3405 if (t.allowClick = !1, !f.isTouched || !m.$slideEl) return; 3406 f.isMoved || (f.width = m.$imageEl[0].offsetWidth, f.height = m.$imageEl[0].offsetHeight, f.startX = h(m.$imageWrapEl[0], "x") || 0, f.startY = h(m.$imageWrapEl[0], "y") || 0, m.slideWidth = m.$slideEl[0].offsetWidth, m.slideHeight = m.$slideEl[0].offsetHeight, m.$imageWrapEl.transition(0)); 3407 const a = f.width * s.scale, 3408 i = f.height * s.scale; 3409 if (!(a < m.slideWidth && i < m.slideHeight)) { 3410 if (f.minX = Math.min(m.slideWidth / 2 - a / 2, 0), f.maxX = -f.minX, f.minY = Math.min(m.slideHeight / 2 - i / 2, 0), f.maxY = -f.minY, f.touchesCurrent.x = "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX, f.touchesCurrent.y = "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY, !f.isMoved && !u) { 3411 if (t.isHorizontal() && (Math.floor(f.minX) === Math.floor(f.startX) && f.touchesCurrent.x < f.touchesStart.x || Math.floor(f.maxX) === Math.floor(f.startX) && f.touchesCurrent.x > f.touchesStart.x)) return void(f.isTouched = !1); 3412 if (!t.isHorizontal() && (Math.floor(f.minY) === Math.floor(f.startY) && f.touchesCurrent.y < f.touchesStart.y || Math.floor(f.maxY) === Math.floor(f.startY) && f.touchesCurrent.y > f.touchesStart.y)) return void(f.isTouched = !1) 3413 } 3414 e.cancelable && e.preventDefault(), e.stopPropagation(), f.isMoved = !0, f.currentX = f.touchesCurrent.x - f.touchesStart.x + f.startX, f.currentY = f.touchesCurrent.y - f.touchesStart.y + f.startY, f.currentX < f.minX && (f.currentX = f.minX + 1 - (f.minX - f.currentX + 1) ** .8), f.currentX > f.maxX && (f.currentX = f.maxX - 1 + (f.currentX - f.maxX + 1) ** .8), f.currentY < f.minY && (f.currentY = f.minY + 1 - (f.minY - f.currentY + 1) ** .8), f.currentY > f.maxY && (f.currentY = f.maxY - 1 + (f.currentY - f.maxY + 1) ** .8), g.prevPositionX || (g.prevPositionX = f.touchesCurrent.x), g.prevPositionY || (g.prevPositionY = f.touchesCurrent.y), g.prevTime || (g.prevTime = Date.now()), g.x = (f.touchesCurrent.x - g.prevPositionX) / (Date.now() - g.prevTime) / 2, g.y = (f.touchesCurrent.y - g.prevPositionY) / (Date.now() - g.prevTime) / 2, Math.abs(f.touchesCurrent.x - g.prevPositionX) < 2 && (g.x = 0), Math.abs(f.touchesCurrent.y - g.prevPositionY) < 2 && (g.y = 0), g.prevPositionX = f.touchesCurrent.x, g.prevPositionY = f.touchesCurrent.y, g.prevTime = Date.now(), m.$imageWrapEl.transform(`translate3d(${f.currentX}px, ${f.currentY}px,0)`) 3415 } 3416 } 3417 3418 function C() { 3419 const e = t.zoom; 3420 m.$slideEl && t.previousIndex !== t.activeIndex && (m.$imageEl && m.$imageEl.transform("translate3d(0,0,0) scale(1)"), m.$imageWrapEl && m.$imageWrapEl.transform("translate3d(0,0,0)"), e.scale = 1, p = 1, m.$slideEl = void 0, m.$imageEl = void 0, m.$imageWrapEl = void 0) 3421 } 3422 3423 function T(e) { 3424 const s = t.zoom, 3425 a = t.params.zoom; 3426 if (m.$slideEl || (e && e.target && (m.$slideEl = d(e.target).closest(`.${t.params.slideClass}`)), m.$slideEl || (t.params.virtual && t.params.virtual.enabled && t.virtual ? m.$slideEl = t.$wrapperEl.children(`.${t.params.slideActiveClass}`) : m.$slideEl = t.slides.eq(t.activeIndex)), m.$imageEl = m.$slideEl.find(`.${a.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0), m.$imageWrapEl = m.$imageEl.parent(`.${a.containerClass}`)), !m.$imageEl || 0 === m.$imageEl.length || !m.$imageWrapEl || 0 === m.$imageWrapEl.length) return; 3427 let i, r, l, o, c, u, h, g, v, w, b, x, y, E, C, T, $, S; 3428 t.params.cssMode && (t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.touchAction = "none"), m.$slideEl.addClass(`${a.zoomedSlideClass}`), void 0 === f.touchesStart.x && e ? (i = "touchend" === e.type ? e.changedTouches[0].pageX : e.pageX, r = "touchend" === e.type ? e.changedTouches[0].pageY : e.pageY) : (i = f.touchesStart.x, r = f.touchesStart.y), s.scale = m.$imageWrapEl.attr("data-swiper-zoom") || a.maxRatio, p = m.$imageWrapEl.attr("data-swiper-zoom") || a.maxRatio, e ? ($ = m.$slideEl[0].offsetWidth, S = m.$slideEl[0].offsetHeight, l = m.$slideEl.offset().left + n.scrollX, o = m.$slideEl.offset().top + n.scrollY, c = l + $ / 2 - i, u = o + S / 2 - r, v = m.$imageEl[0].offsetWidth, w = m.$imageEl[0].offsetHeight, b = v * s.scale, x = w * s.scale, y = Math.min($ / 2 - b / 2, 0), E = Math.min(S / 2 - x / 2, 0), C = -y, T = -E, h = c * s.scale, g = u * s.scale, h < y && (h = y), h > C && (h = C), g < E && (g = E), g > T && (g = T)) : (h = 0, g = 0), m.$imageWrapEl.transition(300).transform(`translate3d(${h}px, ${g}
3428px,0)`), m.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${s.scale})`) 3429 } 3430 3431 function $() { 3432 const e = t.zoom, 3433 s = t.params.zoom; 3434 m.$slideEl || (t.params.virtual && t.params.virtual.enabled && t.virtual ? m.$slideEl = t.$wrapperEl.children(`.${t.params.slideActiveClass}`) : m.$slideEl = t.slides.eq(t.activeIndex), m.$imageEl = m.$slideEl.find(`.${s.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0), m.$imageWrapEl = m.$imageEl.parent(`.${s.containerClass}`)), m.$imageEl && 0 !== m.$imageEl.length && m.$imageWrapEl && 0 !== m.$imageWrapEl.length && (t.params.cssMode && (t.wrapperEl.style.overflow = "", t.wrapperEl.style.touchAction = ""), e.scale = 1, p = 1, m.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"), m.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"), m.$slideEl.removeClass(`${s.zoomedSlideClass}`), m.$slideEl = void 0) 3435 } 3436 3437 function S(e) { 3438 const s = t.zoom; 3439 s.scale && 1 !== s.scale ? $() : T(e) 3440 } 3441 3442 function M() { 3443 const e = t.support; 3444 return { 3445 passiveListener: !("touchstart" !== t.touchEvents.start || !e.passiveListener || !t.params.passiveListeners) && { 3446 passive: !0, 3447 capture: !1 3448 }, 3449 activeListenerWithCapture: !e.passiveListener || { 3450 passive: !1, 3451 capture: !0 3452 } 3453 } 3454 } 3455 3456 function P() { 3457 return `.${t.params.slideClass}` 3458 } 3459 3460 function k(e) { 3461 const { 3462 passiveListener: s 3463 } = M(), a = P(); 3464 t.$wrapperEl[e]("gesturestart", a, b, s), t.$wrapperEl[e]("gesturechange", a, x, s), t.$wrapperEl[e]("gestureend", a, y, s) 3465 } 3466 3467 function z() { 3468 l || (l = !0, k("on")) 3469 } 3470 3471 function L() { 3472 l && (l = !1, k("off")) 3473 } 3474 3475 function O() { 3476 const e = t.zoom; 3477 if (e.enabled) return; 3478 e.enabled = !0; 3479 const s = t.support, 3480 { 3481 passiveListener: a, 3482 activeListenerWithCapture: i 3483 } = M(), 3484 r = P(); 3485 s.gestures ? (t.$wrapperEl.on(t.touchEvents.start, z, a), t.$wrapperEl.on(t.touchEvents.end, L, a)) : "touchstart" === t.touchEvents.start && (t.$wrapperEl.on(t.touchEvents.start, r, b, a), t.$wrapperEl.on(t.touchEvents.move, r, x, i), t.$wrapperEl.on(t.touchEvents.end, r, y, a), t.touchEvents.cancel && t.$wrapperEl.on(t.touchEvents.cancel, r, y, a)), t.$wrapperEl.on(t.touchEvents.move, `.${t.params.zoom.containerClass}`, E, i) 3486 } 3487 3488 function I() { 3489 const e = t.zoom; 3490 if (!e.enabled) return; 3491 const s = t.support; 3492 e.enabled = !1; 3493 const { 3494 passiveListener: a, 3495 activeListenerWithCapture: i 3496 } = M(), r = P(); 3497 s.gestures ? (t.$wrapperEl.off(t.touchEvents.start, z, a), t.$wrapperEl.off(t.touchEvents.end, L, a)) : "touchstart" === t.touchEvents.start && (t.$wrapperEl.off(t.touchEvents.start, r, b, a), t.$wrapperEl.off(t.touchEvents.move, r, x, i), t.$wrapperEl.off(t.touchEvents.end, r, y, a), t.touchEvents.cancel && t.$wrapperEl.off(t.touchEvents.cancel, r, y, a)), t.$wrapperEl.off(t.touchEvents.move, `.${t.params.zoom.containerClass}`, E, i) 3498 } 3499 Object.defineProperty(t.zoom, "scale", { 3500 get: () => v, 3501 set(e) { 3502 if (v !== e) { 3503 const t = m.$imageEl ? m.$imageEl[0] : void 0, 3504 s = m.$slideEl ? m.$slideEl[0] : void 0; 3505 i("zoomChange", e, t, s) 3506 } 3507 v = e 3508 } 3509 }), a("init", (() => { 3510 t.params.zoom.enabled && O() 3511 })), a("destroy", (() => { 3512 I() 3513 })), a("touchStart", ((e, s) => { 3514 t.zoom.enabled && function (e) { 3515 const s = t.device; 3516 m.$imageEl && 0 !== m.$imageEl.length && (f.isTouched || (s.android && e.cancelable && e.preventDefault(), f.isTouched = !0, f.touchesStart.x = "touchstart" === e.type ? e.targetTouches[0].pageX : e.pageX, f.touchesStart.y = "touchstart" === e.type ? e.targetTouches[0].pageY : e.pageY)) 3517 }(s) 3518 })), a("touchEnd", ((e, s) => { 3519 t.zoom.enabled && function () { 3520 const e = t.zoom; 3521 if (!m.$imageEl || 0 === m.$imageEl.length) return; 3522 if (!f.isTouched || !f.isMoved) return f.isTouched = !1, void(f.
vendor: 20,676 bytes, lines 3522-3964
3522isMoved = !1); 3523 f.isTouched = !1, f.isMoved = !1; 3524 let s = 300, 3525 a = 300; 3526 const i = g.x * s, 3527 r = f.currentX + i, 3528 n = g.y * a, 3529 l = f.currentY + n; 3530 0 !== g.x && (s = Math.abs((r - f.currentX) / g.x)), 0 !== g.y && (a = Math.abs((l - f.currentY) / g.y)); 3531 const o = Math.max(s, a); 3532 f.currentX = r, f.currentY = l; 3533 const d = f.width * e.scale, 3534 c = f.height * e.scale; 3535 f.minX = Math.min(m.slideWidth / 2 - d / 2, 0), f.maxX = -f.minX, f.minY = Math.min(m.slideHeight / 2 - c / 2, 0), f.maxY = -f.minY, f.currentX = Math.max(Math.min(f.currentX, f.maxX), f.minX), f.currentY = Math.max(Math.min(f.currentY, f.maxY), f.minY), m.$imageWrapEl.transition(o).transform(`translate3d(${f.currentX}px, ${f.currentY}px,0)`) 3536 }() 3537 })), a("doubleTap", ((e, s) => { 3538 !t.animating && t.params.zoom.enabled && t.zoom.enabled && t.params.zoom.toggle && S(s) 3539 })), a("transitionEnd", (() => { 3540 t.zoom.enabled && t.params.zoom.enabled && C() 3541 })), a("slideChange", (() => { 3542 t.zoom.enabled && t.params.zoom.enabled && t.params.cssMode && C() 3543 })), Object.assign(t.zoom, { 3544 enable: O, 3545 disable: I, 3546 in: T, 3547 out: $, 3548 toggle: S 3549 }) 3550 }, function (e) { 3551 let { 3552 swiper: t, 3553 extendParams: s, 3554 on: a, 3555 emit: i 3556 } = e; 3557 s({ 3558 lazy: { 3559 checkInView: !1, 3560 enabled: !1, 3561 loadPrevNext: !1, 3562 loadPrevNextAmount: 1, 3563 loadOnTransitionStart: !1, 3564 scrollingElement: "", 3565 elementClass: "swiper-lazy", 3566 loadingClass: "swiper-lazy-loading", 3567 loadedClass: "swiper-lazy-loaded", 3568 preloaderClass: "swiper-lazy-preloader" 3569 } 3570 }), t.lazy = {}; 3571 let n = !1, 3572 l = !1; 3573 3574 function o(e, s) { 3575 void 0 === s && (s = !0); 3576 const a = t.params.lazy; 3577 if (void 0 === e) return; 3578 if (0 === t.slides.length) return; 3579 const r = t.virtual && t.params.virtual.enabled ? t.$wrapperEl.children(`.${t.params.slideClass}[data-swiper-slide-index="${e}"]`) : t.slides.eq(e), 3580 n = r.find(`.${a.elementClass}:not(.${a.loadedClass}):not(.${a.loadingClass})`); 3581 !r.hasClass(a.elementClass) || r.hasClass(a.loadedClass) || r.hasClass(a.loadingClass) || n.push(r[0]), 0 !== n.length && n.each((e => { 3582 const n = d(e); 3583 n.addClass(a.loadingClass); 3584 const l = n.attr("data-background"), 3585 c = n.attr("data-src"), 3586 p = n.attr("data-srcset"), 3587 u = n.attr("data-sizes"), 3588 h = n.parent("picture"); 3589 t.loadImage(n[0], c || l, p, u, !1, (() => { 3590 if (null != t && t && (!t || t.params) && !t.destroyed) { 3591 if (l ? (n.css("background-image", `url("${l}")`), n.removeAttr("data-background")) : (p && (n.attr("srcset", p), n.removeAttr("data-srcset")), u && (n.attr("sizes", u), n.removeAttr("data-sizes")), h.length && h.children("source").each((e => { 3592 const t = d(e); 3593 t.attr("data-srcset") && (t.attr("srcset", t.attr("data-srcset")), t.removeAttr("data-srcset")) 3594 })), c && (n.attr("src", c), n.removeAttr("data-src"))), n.addClass(a.loadedClass).removeClass(a.loadingClass), r.find(`.${a.preloaderClass}`).remove(), t.params.loop && s) { 3595 const e = r.attr("data-swiper-slide-index"); 3596 if (r.hasClass(t.params.slideDuplicateClass)) { 3597 o(t.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${t.params.slideDuplicateClass})`).index(), !1) 3598 } else { 3599 o(t.$wrapperEl.children(`.${t.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`).index(), !1) 3600 } 3601 } 3602 i("lazyImageReady", r[0], n[0]), t.params.autoHeight && t.updateAutoHeight() 3603 } 3604 })), i("lazyImageLoad", r[0], n[0]) 3605 })) 3606 } 3607 3608 function c() { 3609 const { 3610 $wrapperEl: e, 3611 params: s, 3612 slides: a, 3613 activeIndex: i 3614 } = t, r = t.virtual && s.virtual.enabled, n = s.lazy; 3615 let c = s.slidesPerView; 3616 3617 function p(t) { 3618 if (r) { 3619 if (e.children(`.${s.slideClass}[data-swiper-slide-index="${t}"]`).length) return !0 3620 } else if (a[t]) return !0; 3621 return !1 3622 } 3623 3624 function u(e) { 3625 return r ? d(e).attr("data-swiper-slide-index") : d(e).index() 3626 } 3627 if ("auto" === c && (c = 0), l || (l = !0), t.params.watchSlidesProgress) e.children(`.${s.slideVisibleClass}`).each((e => { 3628 o(r ? d(e).attr("data-swiper-slide-index") : d(e).index()) 3629 })); 3630 else if (c > 1) 3631 for (let e = i; e < i + c; e += 1) p(e) && o(e); 3632 else o(i); 3633 if (n.loadPrevNext) 3634 if (c > 1 || n.loadPrevNextAmount && n.loadPrevNextAmount > 1) { 3635 const e = n.loadPrevNextAmount, 3636 t = Math.ceil(c), 3637 s = Math.min(i + t + Math.max(e, t), a.length), 3638 r = Math.max(i - Math.max(t, e), 0); 3639 for (let e = i + t; e < s; e += 1) p(e) && o(e); 3640 for (let e = r; e < i; e += 1) p(e) && o(e) 3641 } else { 3642 const t = e.children(`.${s.slideNextClass}`); 3643 t.length > 0 && o(u(t)); 3644 const a = e.children(`.${s.slidePrevClass}`); 3645 a.length > 0 && o(u(a)) 3646 } 3647 } 3648 3649 function p() { 3650 const e = r(); 3651 if (!t || t.destroyed) return; 3652 const s = t.params.lazy.scrollingElement ? d(t.params.lazy.scrollingElement) : d(e), 3653 a = s[0] === e, 3654 i = a ? e.innerWidth : s[0].offsetWidth, 3655 l = a ? e.innerHeight : s[0].offsetHeight, 3656 o = t.$el.offset(), 3657 { 3658 rtlTranslate: u 3659 } = t; 3660 let h = !1; 3661 u && (o.left -= t.$el[0].scrollLeft); 3662 const m = [ 3663 [o.left, o.top], 3664 [o.left + t.width, o.top], 3665 [o.left, o.top + t.height], 3666 [o.left + t.width, o.top + t.height] 3667 ]; 3668 for (let e = 0; e < m.length; e += 1) { 3669 const t = m[e]; 3670 if (t[0] >= 0 && t[0] <= i && t[1] >= 0 && t[1] <= l) { 3671 if (0 === t[0] && 0 === t[1]) continue; 3672 h = !0 3673 } 3674 } 3675 const f = !("touchstart" !== t.touchEvents.start || !t.support.passiveListener || !t.params.passiveListeners) && { 3676 passive: !0, 3677 capture: !1 3678 }; 3679 h ? (c(), s.off("scroll", p, f)) : n || (n = !0, s.on("scroll", p, f)) 3680 } 3681 a("beforeInit", (() => { 3682 t.params.lazy.enabled && t.params.preloadImages && (t.params.preloadImages = !1) 3683 })), a("init", (() => { 3684 t.params.lazy.enabled && (t.params.lazy.checkInView ? p() : c()) 3685 })), a("scroll", (() => { 3686 t.params.freeMode && t.params.freeMode.enabled && !t.params.freeMode.sticky && c() 3687 })), a("scrollbarDragMove resize _freeModeNoMomentumRelease", (() => { 3688 t.params.lazy.enabled && (t.params.lazy.checkInView ? p() : c()) 3689 })), a("transitionStart", (() => { 3690 t.params.lazy.enabled && (t.params.lazy.loadOnTransitionStart || !t.params.lazy.loadOnTransitionStart && !l) && (t.params.lazy.checkInView ? p() : c()) 3691 })), a("transitionEnd", (() => { 3692 t.params.lazy.enabled && !t.params.lazy.loadOnTransitionStart && (t.params.lazy.checkInView ? p() : c()) 3693 })), a("slideChange", (() => { 3694 const { 3695 lazy: e, 3696 cssMode: s, 3697 watchSlidesProgress: a, 3698 touchReleaseOnEdges: i, 3699 resistanceRatio: r 3700 } = t.params; 3701 e.enabled && (s || a && (i || 0 === r)) && c() 3702 })), a("destroy", (() => { 3703 t.$el && t.$el.find(`.${t.params.lazy.loadingClass}`).removeClass(t.params.lazy.loadingClass) 3704 })), Object.assign(t.lazy, { 3705 load: c, 3706 loadInSlide: o 3707 }) 3708 }, function (e) { 3709 let { 3710 swiper: t, 3711 extendParams: s, 3712 on: a 3713 } = e; 3714 3715 function i(e, t) { 3716 const s = function () { 3717 let e, t, s; 3718 return (a, i) => { 3719 for (t = -1, e = a.length; e - t > 1;) s = e + t >> 1, a[s] <= i ? t = s : e = s; 3720 return e 3721 } 3722 }(); 3723 let a, i; 3724 return this.x = e, this.y = t, this.lastIndex = e.length - 1, this.interpolate = function (e) { 3725 return e ? (i = s(this.x, e), a = i - 1, (e - this.x[a]) * (this.y[i] - this.y[a]) / (this.x[i] - this.x[a]) + this.y[a]) : 0 3726 }, this 3727 } 3728 3729 function r() { 3730 t.controller.control && t.controller.spline && (t.controller.spline = void 0, delete t.controller.spline) 3731 } 3732 s({ 3733 controller: { 3734 control: void 0, 3735 inverse: !1, 3736 by: "slide" 3737 } 3738 }), t.controller = { 3739 control: void 0 3740 }, a("beforeInit", (() => { 3741 t.controller.control = t.params.controller.control 3742 })), a("update", (() => { 3743 r() 3744 })), a("resize", (() => { 3745 r() 3746 })), a("observerUpdate", (() => { 3747 r() 3748 })), a("setTranslate", ((e, s, a) => { 3749 t.controller.control && t.controller.setTranslate(s, a) 3750 })), a("setTransition", ((e, s, a) => { 3751 t.controller.control && t.controller.setTransition(s, a) 3752 })), Object.assign(t.controller, { 3753 setTranslate: function (e, s) { 3754 const a = t.controller.control; 3755 let r, n; 3756 const l = t.constructor; 3757 3758 function o(e) { 3759 const s = t.rtlTranslate ? -t.translate : t.translate; 3760 "slide" === t.params.controller.by && (! function (e) { 3761 t.controller.spline || (t.controller.spline = t.params.loop ? new i(t.slidesGrid, e.slidesGrid) : new i(t.snapGrid, e.snapGrid)) 3762 }(e), n = -t.controller.spline.interpolate(-s)), n && "container" !== t.params.controller.by || (r = (e.maxTranslate() - e.minTranslate()) / (t.maxTranslate() - t.minTranslate()), n = (s - t.minTranslate()) * r + e.minTranslate()), t.params.controller.inverse && (n = e.maxTranslate() - n), e.updateProgress(n), e.setTranslate(n, t), e.updateActiveIndex(), e.updateSlidesClasses() 3763 } 3764 if (Array.isArray(a)) 3765 for (let e = 0; e < a.length; e += 1) a[e] !== s && a[e] instanceof l && o(a[e]); 3766 else a instanceof l && s !== a && o(a) 3767 }, 3768 setTransition: function (e, s) { 3769 const a = t.constructor, 3770 i = t.controller.control; 3771 let r; 3772 3773 function n(s) { 3774 s.setTransition(e, t), 0 !== e && (s.transitionStart(), s.params.autoHeight && p((() => { 3775 s.updateAutoHeight() 3776 })), s.$wrapperEl.transitionEnd((() => { 3777 i && (s.params.loop && "slide" === t.params.controller.by && s.loopFix(), s.transitionEnd()) 3778 }))) 3779 } 3780 if (Array.isArray(i)) 3781 for (r = 0; r < i.length; r += 1) i[r] !== s && i[r] instanceof a && n(i[r]); 3782 else i instanceof a && s !== i && n(i) 3783 } 3784 }) 3785 }, function (e) { 3786 let { 3787 swiper: t, 3788 extendParams: s, 3789 on: a 3790 } = e; 3791 s({ 3792 a11y: { 3793 enabled: !0, 3794 notificationClass: "swiper-notification", 3795 prevSlideMessage: "Previous slide", 3796 nextSlideMessage: "Next slide", 3797 firstSlideMessage: "This is the first slide", 3798 lastSlideMessage: "This is the last slide", 3799 paginationBulletMessage: "Go to slide {{index}}", 3800 slideLabelMessage: "{{index}} / {{slidesLength}}", 3801 containerMessage: null, 3802 containerRoleDescriptionMessage: null, 3803 itemRoleDescriptionMessage: null, 3804 slideRole: "group", 3805 id: null 3806 } 3807 }); 3808 let i = null; 3809 3810 function r(e) { 3811 const t = i; 3812 0 !== t.length && (t.html(""), t.html(e)) 3813 } 3814 3815 function n(e) { 3816 e.attr("tabIndex", "0") 3817 } 3818 3819 function l(e) { 3820 e.attr("tabIndex", "-1") 3821 } 3822 3823 function o(e, t) { 3824 e.attr("role", t) 3825 } 3826 3827 function c(e, t) { 3828 e.attr("aria-roledescription", t) 3829 } 3830 3831 function p(e, t) { 3832 e.attr("aria-label", t) 3833 } 3834 3835 function u(e) { 3836 e.attr("aria-disabled", !0) 3837 } 3838 3839 function h(e) { 3840 e.attr("aria-disabled", !1) 3841 } 3842 3843 function m(e) { 3844 if (13 !== e.keyCode && 32 !== e.keyCode) return; 3845 const s = t.params.a11y, 3846 a = d(e.target); 3847 t.navigation && t.navigation.$nextEl && a.is(t.navigation.$nextEl) && (t.isEnd && !t.params.loop || t.slideNext(), t.isEnd ? r(s.lastSlideMessage) : r(s.nextSlideMessage)), t.navigation && t.navigation.$prevEl && a.is(t.navigation.$prevEl) && (t.isBeginning && !t.params.loop || t.slidePrev(), t.isBeginning ? r(s.firstSlideMessage) : r(s.prevSlideMessage)), t.pagination && a.is(U(t.params.pagination.bulletClass)) && a[0].click() 3848 } 3849 3850 function f() { 3851 return t.pagination && t.pagination.bullets && t.pagination.bullets.length 3852 } 3853 3854 function g() { 3855 return f() && t.params.pagination.clickable 3856 } 3857 const v = (e, t, s) => { 3858 n(e), "BUTTON" !== e[0].tagName && (o(e, "button"), e.on("keydown", m)), p(e, s), 3859 function (e, t) { 3860 e.attr("aria-controls", t) 3861 }(e, t) 3862 }, 3863 w = e => { 3864 const s = e.target.closest(`.${t.params.slideClass}`); 3865 if (!s || !t.slides.includes(s)) return; 3866 const a = t.slides.indexOf(s) === t.activeIndex, 3867 i = t.params.watchSlidesProgress && t.visibleSlides && t.visibleSlides.includes(s); 3868 a || i || t.slideTo(t.slides.indexOf(s), 0) 3869 }, 3870 b = () => { 3871 const e = t.params.a11y; 3872 e.itemRoleDescriptionMessage && c(d(t.slides), e.itemRoleDescriptionMessage), e.slideRole && o(d(t.slides), e.slideRole); 3873 const s = t.params.loop ? t.slides.filter((e => !e.classList.contains(t.params.slideDuplicateClass))).length : t.slides.length; 3874 e.slideLabelMessage && t.slides.each(((a, i) => { 3875 const r = d(a), 3876 n = t.params.loop ? parseInt(r.attr("data-swiper-slide-index"), 10) : i; 3877 p(r, e.slideLabelMessage.replace(/\{\{index\}\}/, n + 1).replace(/\{\{slidesLength\}\}/, s)) 3878 })) 3879 }, 3880 x = () => { 3881 const e = t.params.a11y; 3882 t.$el.append(i); 3883 const s = t.$el; 3884 e.containerRoleDescriptionMessage && c(s, e.containerRoleDescriptionMessage), e.containerMessage && p(s, e.containerMessage); 3885 const a = t.$wrapperEl, 3886 r = e.id || a.attr("id") || `swiper-wrapper-${n=16,void 0===n&&(n=16),"x".repeat(n).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`; 3887 var n; 3888 const l = t.params.autoplay && t.params.autoplay.enabled ? "off" : "polite"; 3889 var o; 3890 let d, u; 3891 o = r, a.attr("id", o), 3892 function (e, t) { 3893 e.attr("aria-live", t) 3894 }(a, l), b(), t.navigation && t.navigation.$nextEl && (d = t.navigation.$nextEl), t.navigation && t.navigation.$prevEl && (u = t.navigation.$prevEl), d && d.length && v(d, r, e.nextSlideMessage), u && u.length && v(u, r, e.prevSlideMessage), g() && t.pagination.$el.on("keydown", U(t.params.pagination.bulletClass), m), t.$el.on("focus", w, !0) 3895 }; 3896 a("beforeInit", (() => { 3897 i = d(`<span class="${t.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`) 3898 })), a("afterInit", (() => { 3899 t.params.a11y.enabled && x() 3900 })), a("slidesLengthChange snapGridLengthChange slidesGridLengthChange", (() => { 3901 t.params.a11y.enabled && b() 3902 })), a("fromEdge toEdge afterInit lock unlock", (() => { 3903 t.params.a11y.enabled && function () { 3904 if (t.params.loop || t.params.rewind || !t.navigation) return; 3905 const { 3906 $nextEl: e, 3907 $prevEl: s 3908 } = t.navigation; 3909 s && s.length > 0 && (t.isBeginning ? (u(s), l(s)) : (h(s), n(s))), e && e.length > 0 && (t.isEnd ? (u(e), l(e)) : (h(e), n(e))) 3910 }() 3911 })), a("paginationUpdate", (() => { 3912 t.params.a11y.enabled && function () { 3913 const e = t.params.a11y; 3914 f() && t.pagination.bullets.each((s => { 3915 const a = d(s); 3916 t.params.pagination.clickable && (n(a), t.params.pagination.renderBullet || (o(a, "button"), p(a, e.paginationBulletMessage.replace(/\{\{index\}\}/, a.index() + 1)))), a.is(`.${t.params.pagination.bulletActiveClass}`) ? a.attr("aria-current", "true") : a.removeAttr("aria-current") 3917 })) 3918 }() 3919 })), a("destroy", (() => { 3920 t.params.a11y.enabled && function () { 3921 let e, s; 3922 i && i.length > 0 && i.remove(), t.navigation && t.navigation.$nextEl && (e = t.navigation.$nextEl), t.navigation && t.navigation.$prevEl && (s = t.navigation.$prevEl), e && e.off("keydown", m), s && s.off("keydown", m), g() && t.pagination.$el.off("keydown", U(t.params.pagination.bulletClass), m), t.$el.off("focus", w, !0) 3923 }() 3924 })) 3925 }, function (e) { 3926 let { 3927 swiper: t, 3928 extendParams: s, 3929 on: a 3930 } = e; 3931 s({ 3932 history: { 3933 enabled: !1, 3934 root: "", 3935 replaceState: !1, 3936 key: "slides", 3937 keepQuery: !1 3938 } 3939 }); 3940 let i = !1, 3941 n = {}; 3942 const l = e => e.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), 3943 o = e => { 3944 const t = r(); 3945 let s; 3946 s = e ? new URL(e) : t.location; 3947 const a = s.pathname.slice(1).split("/").filter((e => "" !== e)), 3948 i = a.length; 3949 return { 3950 key: a[i - 2], 3951 value: a[i - 1] 3952 } 3953 }, 3954 d = (e, s) => { 3955 const a = r(); 3956 if (!i || !t.params.history.enabled) return; 3957 let n; 3958 n = t.params.url ? new URL(t.params.url) : a.location; 3959 const o = t.slides.eq(s); 3960 let d = l(o.attr("data-history")); 3961 if (t.params.history.root.length > 0) { 3962 let s = t.params.history.root; 3963 "/" === s[s.length - 1] && (s = s.slice(0, s.length - 1)), d = `${s}/${e}/${d}` 3964 } else n.pathname.includes(e) || (d = `${e}/${d}
3964`); 3965 t.params.history.keepQuery && (d += n.search); 3966 const c = a.history.state; 3967 c && c.value === d || (t.params.history.replaceState ? a.history.replaceState({ 3968 value: d 3969 }, null, d) : a.history.pushState({ 3970 value: d 3971 }, null, d)) 3972 }, 3973 c = (e, s, a) => { 3974 if (s) 3975 for (let i = 0, r = t.slides.length; i < r; i += 1) { 3976 const r = t.slides.eq(i); 3977 if (l(r.attr("data-history")) === s && !r.hasClass(t.params.slideDuplicateClass)) { 3978 const s = r.index(); 3979 t.slideTo(s, e, a) 3980 } 3981 } else t.slideTo(0, e, a) 3982 }, 3983 p = () => { 3984 n = o(t.params.url), c(t.params.speed, n.value, !1) 3985 }; 3986 a("init", (() => { 3987 t.params.history.enabled && (() => { 3988 const e = r(); 3989 if (t.params.history) { 3990 if (!e.history || !e.history.pushState) return t.params.history.enabled = !1, void(t.params.hashNavigation.enabled = !0); 3991 i = !0, n = o(t.params.url), (n.key || n.value) && (c(0, n.value, t.params.runCallbacksOnInit), t.params.history.replaceState || e.addEventListener("popstate", p)) 3992 } 3993 })() 3994 })), a("destroy", (() => { 3995 t.params.history.enabled && (() => { 3996 const e = r(); 3997 t.params.history.replaceState || e.removeEventListener("popstate", p) 3998 })() 3999 })), a("transitionEnd _freeModeNoMomentumRelease", (() => { 4000 i && d(t.params.history.key, t.activeIndex) 4001 })), a("slideChange", (() => { 4002 i && t.params.cssMode && d(t.params.history.key, t.activeIndex) 4003 })) 4004 }, function (e) { 4005 let { 4006 swiper: t, 4007 extendParams: s, 4008 emit: i, 4009 on: n 4010 } = e, l = !1; 4011 const o = a(), 4012 c = r(); 4013 s({ 4014 hashNavigation: { 4015 enabled: !1, 4016 replaceState: !1, 4017 watchState: !1 4018 } 4019 }); 4020 const p = () => { 4021 i("hashChange"); 4022 const e = o.location.hash.replace("#", ""); 4023 if (e !== t.slides.eq(t.activeIndex).attr("data-hash")) { 4024 const s = t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index(); 4025 if (void 0 === s) return; 4026 t.slideTo(s) 4027 } 4028 }, 4029 u = () => { 4030 if (l && t.params.hashNavigation.enabled) 4031 if (t.params.hashNavigation.replaceState && c.history && c.history.replaceState) c.history.replaceState(null, null, `#${t.slides.eq(t.activeIndex).attr("data-hash")}` || ""), i("hashSet"); 4032 else { 4033 const e = t.slides.eq(t.activeIndex), 4034 s = e.attr("data-hash") || e.attr("data-history"); 4035 o.location.hash = s || "", i("hashSet") 4036 } 4037 }; 4038 n("init", (() => { 4039 t.params.hashNavigation.enabled && (() => { 4040 if (!t.params.hashNavigation.enabled || t.params.history && t.params.history.enabled) return; 4041 l = !0; 4042 const e = o.location.hash.replace("#", ""); 4043 if (e) { 4044 const s = 0; 4045 for (let a = 0, i = t.slides.length; a < i; a += 1) { 4046 const i = t.slides.eq(a); 4047 if ((i.attr("data-hash") || i.attr("data-history")) === e && !i.hasClass(t.params.slideDuplicateClass)) { 4048 const e = i.index(); 4049 t.slideTo(e, s, t.params.runCallbacksOnInit, !0) 4050 } 4051 } 4052 } 4053 t.params.hashNavigation.watchState && d(c).on("hashchange", p) 4054 })() 4055 })), n("destroy", (() => { 4056 t.params.hashNavigation.enabled && t.params.hashNavigation.watchState && d(c).off("hashchange", p) 4057 })), n("transitionEnd _freeModeNoMomentumRelease", (() => { 4058 l && u() 4059 })), n("slideChange", (() => { 4060 l && t.params.cssMode && u() 4061 })) 4062 }, function (e) { 4063 let t, { 4064 swiper: s, 4065 extendParams: i, 4066 on: r, 4067 emit: n 4068 } = e; 4069 4070 function l() { 4071 const e = s.slides.eq(s.activeIndex); 4072 let a = s.params.autoplay.delay; 4073 e.attr("data-swiper-autoplay") && (a = e.attr("data-swiper-autoplay") || s.params.autoplay.delay), clearTimeout(t), t = p((() => { 4074 let e; 4075 s.params.autoplay.reverseDirection ? s.params.loop ? (s.loopFix(), e = s.slidePrev(s.params.speed, !0, !0), n("autoplay")) : s.isBeginning ? s.params.autoplay.stopOnLastSlide ? d() : (e = s.slideTo(s.slides.length - 1, s.params.speed, !0, !0), n("autoplay")) : (e = s.slidePrev(s.params.speed, !0, !0), n("autoplay")) : s.params.loop ? (s.loopFix(), e = s.slideNext(s.params.speed, !0, !0), n("autoplay")) : s.isEnd ? s.params.autoplay.stopOnLastSlide ? d() : (e = s.slideTo(0, s.params.speed, !0, !0), n("autoplay")) : (e = s.slideNext(s.params.speed, !0, !0), n("autoplay")), (s.params.cssMode && s.autoplay.running || !1 === e) && l() 4076 }), a) 4077 } 4078 4079 function o() { 4080 return void 0 === t && (!s.autoplay.running && (s.autoplay.running = !0, n("autoplayStart"), l(), !0)) 4081 } 4082 4083 function d() { 4084 return !!s.autoplay.running && (void 0 !== t && (t && (clearTimeout(t), t = void 0), s.autoplay.running = !1, n("autoplayStop"), !0)) 4085 } 4086 4087 function c(e) { 4088 s.autoplay.running && (s.autoplay.paused || (t && clearTimeout(t), s.autoplay.paused = !0, 0 !== e && s.params.autoplay.waitForTransition ? ["transitionend", "webkitTransitionEnd"].forEach((e => { 4089 s.$wrapperEl[0].addEventListener(e, h) 4090 })) : (s.autoplay.paused = !1, l()))) 4091 } 4092 4093 function u() { 4094 const e = a(); 4095 "hidden" === e.visibilityState && s.autoplay.running && c(), "visible" === e.visibilityState && s.autoplay.paused && (l(), s.autoplay.paused = !1) 4096 } 4097 4098 function h(e) { 4099 s && !s.destroyed && s.$wrapperEl && e.target === s.$wrapperEl[0] && (["transitionend", "webkitTransitionEnd"].forEach((e => { 4100 s.$wrapperEl[0].removeEventListener(e, h) 4101 })), s.autoplay.paused = !1, s.autoplay.running ? l() : d()) 4102 } 4103 4104 function m() { 4105 s.params.autoplay.disableOnInteraction ? d() : (n("autoplayPause"), c()), ["transitionend", "webkitTransitionEnd"].forEach((e => { 4106 s.$wrapperEl[0].removeEventListener(e, h) 4107 })) 4108 } 4109 4110 function f() { 4111 s.params.autoplay.disableOnInteraction || (s.autoplay.paused = !1, n("autoplayResume"), l()) 4112 } 4113 s.autoplay = { 4114 running: !1, 4115 paused: !1 4116 }, i({ 4117 autoplay: { 4118 enabled: !1, 4119 delay: 3e3, 4120 waitForTransition: !0, 4121 disableOnInteraction: !0, 4122 stopOnLastSlide: !1, 4123 reverseDirection: !1, 4124 pauseOnMouseEnter: !1 4125 } 4126 }), r("init", (() => { 4127 if (s.params.autoplay.enabled) { 4128 o(); 4129 a().addEventListener("visibilitychange", u), s.params.autoplay.pauseOnMouseEnter && (s.$el.on("mouseenter", m), s.$el.on("mouseleave", f)) 4130 } 4131 })), r("beforeTransitionStart", ((e, t, a) => { 4132 s.autoplay.running && (a || !s.params.autoplay.disableOnInteraction ? s.autoplay.pause(t) : d()) 4133 })), r("sliderFirstMove", (() => { 4134 s.autoplay.running && (s.params.autoplay.disableOnInteraction ? d() : c()) 4135 })), r("touchEnd", (() => { 4136 s.params.cssMode && s.autoplay.paused && !s.params.autoplay.disableOnInteraction && l() 4137 })), r("destroy", (() => { 4138 s.$el.off("mouseenter", m), s.$el.off("mouseleave", f), s.autoplay.running && d(); 4139 a().removeEventListener("visibilitychange", u) 4140 })), Object.assign(s.autoplay, { 4141 pause: c, 4142 run: l, 4143 start: o, 4144 stop: d 4145 }) 4146 }, function (e) { 4147 let { 4148 swiper: t, 4149 extendParams: s, 4150 on: a 4151 } = e; 4152 s({ 4153 thumbs: { 4154 swiper: null, 4155 multipleActiveThumbs: !0, 4156 autoScrollOffset: 0, 4157 slideThumbActiveClass: "swiper-slide-thumb-active", 4158 thumbsContainerClass: "swiper-thumbs" 4159 } 4160 }); 4161 let i = !1, 4162 r = !1; 4163 4164 function n() { 4165 const e = t.thumbs.swiper; 4166 if (!e || e.destroyed) return; 4167 const s = e.clickedIndex, 4168 a = e.clickedSlide;
vendor: 17,742 bytes, lines 4169-4525
4169 if (a && d(a).hasClass(t.params.thumbs.slideThumbActiveClass)) return; 4170 if (null == s) return; 4171 let i; 4172 if (i = e.params.loop ? parseInt(d(e.clickedSlide).attr("data-swiper-slide-index"), 10) : s, t.params.loop) { 4173 let e = t.activeIndex; 4174 t.slides.eq(e).hasClass(t.params.slideDuplicateClass) && (t.loopFix(), t._clientLeft = t.$wrapperEl[0].clientLeft, e = t.activeIndex); 4175 const s = t.slides.eq(e).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(), 4176 a = t.slides.eq(e).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(); 4177 i = void 0 === s ? a : void 0 === a ? s : a - e < e - s ? a : s 4178 } 4179 t.slideTo(i) 4180 } 4181 4182 function l() { 4183 const { 4184 thumbs: e 4185 } = t.params; 4186 if (i) return !1; 4187 i = !0; 4188 const s = t.constructor; 4189 if (e.swiper instanceof s) t.thumbs.swiper = e.swiper, Object.assign(t.thumbs.swiper.originalParams, { 4190 watchSlidesProgress: !0, 4191 slideToClickedSlide: !1 4192 }), Object.assign(t.thumbs.swiper.params, { 4193 watchSlidesProgress: !0, 4194 slideToClickedSlide: !1 4195 }); 4196 else if (m(e.swiper)) { 4197 const a = Object.assign({}, e.swiper); 4198 Object.assign(a, { 4199 watchSlidesProgress: !0, 4200 slideToClickedSlide: !1 4201 }), t.thumbs.swiper = new s(a), r = !0 4202 } 4203 return t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass), t.thumbs.swiper.on("tap", n), !0 4204 } 4205 4206 function o(e) { 4207 const s = t.thumbs.swiper; 4208 if (!s || s.destroyed) return; 4209 const a = "auto" === s.params.slidesPerView ? s.slidesPerViewDynamic() : s.params.slidesPerView; 4210 let i = 1; 4211 const r = t.params.thumbs.slideThumbActiveClass; 4212 if (t.params.slidesPerView > 1 && !t.params.centeredSlides && (i = t.params.slidesPerView), t.params.thumbs.multipleActiveThumbs || (i = 1), i = Math.floor(i), s.slides.removeClass(r), s.params.loop || s.params.virtual && s.params.virtual.enabled) 4213 for (let e = 0; e < i; e += 1) s.$wrapperEl.children(`[data-swiper-slide-index="${t.realIndex+e}"]`).addClass(r); 4214 else 4215 for (let e = 0; e < i; e += 1) s.slides.eq(t.realIndex + e).addClass(r); 4216 const n = t.params.thumbs.autoScrollOffset, 4217 l = n && !s.params.loop; 4218 if (t.realIndex !== s.realIndex || l) { 4219 let i, r, o = s.activeIndex; 4220 if (s.params.loop) { 4221 s.slides.eq(o).hasClass(s.params.slideDuplicateClass) && (s.loopFix(), s._clientLeft = s.$wrapperEl[0].clientLeft, o = s.activeIndex); 4222 const e = s.slides.eq(o).prevAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(), 4223 a = s.slides.eq(o).nextAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(); 4224 i = void 0 === e ? a : void 0 === a ? e : a - o == o - e ? s.params.slidesPerGroup > 1 ? a : o : a - o < o - e ? a : e, r = t.activeIndex > t.previousIndex ? "next" : "prev" 4225 } else i = t.realIndex, r = i > t.previousIndex ? "next" : "prev"; 4226 l && (i += "next" === r ? n : -1 * n), s.visibleSlidesIndexes && s.visibleSlidesIndexes.indexOf(i) < 0 && (s.params.centeredSlides ? i = i > o ? i - Math.floor(a / 2) + 1 : i + Math.floor(a / 2) - 1 : i > o && s.params.slidesPerGroup, s.slideTo(i, e ? 0 : void 0)) 4227 } 4228 } 4229 t.thumbs = { 4230 swiper: null 4231 }, a("beforeInit", (() => { 4232 const { 4233 thumbs: e 4234 } = t.params; 4235 e && e.swiper && (l(), o(!0)) 4236 })), a("slideChange update resize observerUpdate", (() => { 4237 o() 4238 })), a("setTransition", ((e, s) => { 4239 const a = t.thumbs.swiper; 4240 a && !a.destroyed && a.setTransition(s) 4241 })), a("beforeDestroy", (() => { 4242 const e = t.thumbs.swiper; 4243 e && !e.destroyed && r && e.destroy() 4244 })), Object.assign(t.thumbs, { 4245 init: l, 4246 update: o 4247 }) 4248 }, function (e) { 4249 let { 4250 swiper: t, 4251 extendParams: s, 4252 emit: a, 4253 once: i 4254 } = e; 4255 s({ 4256 freeMode: { 4257 enabled: !1, 4258 momentum: !0, 4259 momentumRatio: 1, 4260 momentumBounce: !0, 4261 momentumBounceRatio: 1, 4262 momentumVelocityRatio: 1, 4263 sticky: !1, 4264 minimumVelocity: .02 4265 } 4266 }), Object.assign(t, { 4267 freeMode: { 4268 onTouchStart: function () { 4269 const e = t.getTranslate(); 4270 t.setTranslate(e), t.setTransition(0), t.touchEventsData.velocities.length = 0, t.freeMode.onTouchEnd({ 4271 currentPos: t.rtl ? t.translate : -t.translate 4272 }) 4273 }, 4274 onTouchMove: function () { 4275 const { 4276 touchEventsData: e, 4277 touches: s 4278 } = t; 4279 0 === e.velocities.length && e.velocities.push({ 4280 position: s[t.isHorizontal() ? "startX" : "startY"], 4281 time: e.touchStartTime 4282 }), e.velocities.push({ 4283 position: s[t.isHorizontal() ? "currentX" : "currentY"], 4284 time: u() 4285 }) 4286 }, 4287 onTouchEnd: function (e) { 4288 let { 4289 currentPos: s 4290 } = e; 4291 const { 4292 params: r, 4293 $wrapperEl: n, 4294 rtlTranslate: l, 4295 snapGrid: o, 4296 touchEventsData: d 4297 } = t, c = u() - d.touchStartTime; 4298 if (s < -t.minTranslate()) t.slideTo(t.activeIndex); 4299 else if (s > -t.maxTranslate()) t.slides.length < o.length ? t.slideTo(o.length - 1) : t.slideTo(t.slides.length - 1); 4300 else { 4301 if (r.freeMode.momentum) { 4302 if (d.velocities.length > 1) { 4303 const e = d.velocities.pop(), 4304 s = d.velocities.pop(), 4305 a = e.position - s.position, 4306 i = e.time - s.time; 4307 t.velocity = a / i, t.velocity /= 2, Math.abs(t.velocity) < r.freeMode.minimumVelocity && (t.velocity = 0), (i > 150 || u() - e.time > 300) && (t.velocity = 0) 4308 } else t.velocity = 0; 4309 t.velocity *= r.freeMode.momentumVelocityRatio, d.velocities.length = 0; 4310 let e = 1e3 * r.freeMode.momentumRatio; 4311 const s = t.velocity * e; 4312 let c = t.translate + s; 4313 l && (c = -c); 4314 let p, h = !1; 4315 const m = 20 * Math.abs(t.velocity) * r.freeMode.momentumBounceRatio; 4316 let f; 4317 if (c < t.maxTranslate()) r.freeMode.momentumBounce ? (c + t.maxTranslate() < -m && (c = t.maxTranslate() - m), p = t.maxTranslate(), h = !0, d.allowMomentumBounce = !0) : c = t.maxTranslate(), r.loop && r.centeredSlides && (f = !0); 4318 else if (c > t.minTranslate()) r.freeMode.momentumBounce ? (c - t.minTranslate() > m && (c = t.minTranslate() + m), p = t.minTranslate(), h = !0, d.allowMomentumBounce = !0) : c = t.minTranslate(), r.loop && r.centeredSlides && (f = !0); 4319 else if (r.freeMode.sticky) { 4320 let e; 4321 for (let t = 0; t < o.length; t += 1) 4322 if (o[t] > -c) { 4323 e = t; 4324 break 4325 } c = Math.abs(o[e] - c) < Math.abs(o[e - 1] - c) || "next" === t.swipeDirection ? o[e] : o[e - 1], c = -c 4326 } 4327 if (f && i("transitionEnd", (() => { 4328 t.loopFix() 4329 })), 0 !== t.velocity) { 4330 if (e = l ? Math.abs((-c - t.translate) / t.velocity) : Math.abs((c - t.translate) / t.velocity), r.freeMode.sticky) { 4331 const s = Math.abs((l ? -c : c) - t.translate), 4332 a = t.slidesSizesGrid[t.activeIndex]; 4333 e = s < a ? r.speed : s < 2 * a ? 1.5 * r.speed : 2.5 * r.speed 4334 } 4335 } else if (r.freeMode.sticky) return void t.slideToClosest(); 4336 r.freeMode.momentumBounce && h ? (t.updateProgress(p), t.setTransition(e), t.setTranslate(c), t.transitionStart(!0, t.swipeDirection), t.animating = !0, n.transitionEnd((() => { 4337 t && !t.destroyed && d.allowMomentumBounce && (a("momentumBounce"), t.setTransition(r.speed), setTimeout((() => { 4338 t.setTranslate(p), n.transitionEnd((() => { 4339 t && !t.destroyed && t.transitionEnd() 4340 })) 4341 }), 0)) 4342 }))) : t.velocity ? (a("_freeModeNoMomentumRelease"), t.updateProgress(c), t.setTransition(e), t.setTranslate(c), t.transitionStart(!0, t.swipeDirection), t.animating || (t.animating = !0, n.transitionEnd((() => { 4343 t && !t.destroyed && t.transitionEnd() 4344 })))) : t.updateProgress(c), t.updateActiveIndex(), t.updateSlidesClasses() 4345 } else { 4346 if (r.freeMode.sticky) return void t.slideToClosest(); 4347 r.freeMode && a("_freeModeNoMomentumRelease") 4348 }(!r.freeMode.momentum || c >= r.longSwipesMs) && (t.updateProgress(), t.updateActiveIndex(), t.updateSlidesClasses()) 4349 } 4350 } 4351 } 4352 }) 4353 }, function (e) { 4354 let t, s, a, { 4355 swiper: i, 4356 extendParams: r 4357 } = e; 4358 r({ 4359 grid: { 4360 rows: 1, 4361 fill: "column" 4362 } 4363 }), i.grid = { 4364 initSlides: e => { 4365 const { 4366 slidesPerView: r 4367 } = i.params, { 4368 rows: n, 4369 fill: l 4370 } = i.params.grid; 4371 s = t / n, a = Math.floor(e / n), t = Math.floor(e / n) === e / n ? e : Math.ceil(e / n) * n, "auto" !== r && "row" === l && (t = Math.max(t, r * n)) 4372 }, 4373 updateSlide: (e, r, n, l) => { 4374 const { 4375 slidesPerGroup: o, 4376 spaceBetween: d 4377 } = i.params, { 4378 rows: c, 4379 fill: p 4380 } = i.params.grid; 4381 let u, h, m; 4382 if ("row" === p && o > 1) { 4383 const s = Math.floor(e / (o * c)), 4384 a = e - c * o * s, 4385 i = 0 === s ? o : Math.min(Math.ceil((n - s * c * o) / c), o); 4386 m = Math.floor(a / i), h = a - m * i + s * o, u = h + m * t / c, r.css({ 4387 "-webkit-order": u, 4388 order: u 4389 }) 4390 } else "column" === p ? (h = Math.floor(e / c), m = e - h * c, (h > a || h === a && m === c - 1) && (m += 1, m >= c && (m = 0, h += 1))) : (m = Math.floor(e / s), h = e - m * s); 4391 r.css(l("margin-top"), 0 !== m ? d && `${d}px` : "") 4392 }, 4393 updateWrapperSize: (e, s, a) => { 4394 const { 4395 spaceBetween: r, 4396 centeredSlides: n, 4397 roundLengths: l 4398 } = i.params, { 4399 rows: o 4400 } = i.params.grid; 4401 if (i.virtualSize = (e + r) * t, i.virtualSize = Math.ceil(i.virtualSize / o) - r, i.$wrapperEl.css({ 4402 [a("width")]: `${i.virtualSize+r}px` 4403 }), n) { 4404 s.splice(0, s.length); 4405 const e = []; 4406 for (let t = 0; t < s.length; t += 1) { 4407 let a = s[t]; 4408 l && (a = Math.floor(a)), s[t] < i.virtualSize + s[0] && e.push(a) 4409 } 4410 s.push(...e) 4411 } 4412 } 4413 } 4414 }, function (e) { 4415 let { 4416 swiper: t 4417 } = e; 4418 Object.assign(t, { 4419 appendSlide: K.bind(t), 4420 prependSlide: Z.bind(t), 4421 addSlide: Q.bind(t), 4422 removeSlide: J.bind(t), 4423 removeAllSlides: ee.bind(t) 4424 }) 4425 }, function (e) { 4426 let { 4427 swiper: t, 4428 extendParams: s, 4429 on: a 4430 } = e; 4431 s({ 4432 fadeEffect: { 4433 crossFade: !1, 4434 transformEl: null 4435 } 4436 }), te({ 4437 effect: "fade", 4438 swiper: t, 4439 on: a, 4440 setTranslate: () => { 4441 const { 4442 slides: e 4443 } = t, s = t.params.fadeEffect; 4444 for (let a = 0; a < e.length; a += 1) { 4445 const e = t.slides.eq(a); 4446 let i = -e[0].swiperSlideOffset; 4447 t.params.virtualTranslate || (i -= t.translate); 4448 let r = 0; 4449 t.isHorizontal() || (r = i, i = 0); 4450 const n = t.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(e[0].progress), 0) : 1 + Math.min(Math.max(e[0].progress, -1), 0); 4451 se(s, e).css({ 4452 opacity: n 4453 }).transform(`translate3d(${i}px, ${r}px, 0px)`) 4454 } 4455 }, 4456 setTransition: e => { 4457 const { 4458 transformEl: s 4459 } = t.params.fadeEffect; 4460 (s ? t.slides.find(s) : t.slides).transition(e), ae({ 4461 swiper: t, 4462 duration: e, 4463 transformEl: s, 4464 allSlides: !0 4465 }) 4466 }, 4467 overwriteParams: () => ({ 4468 slidesPerView: 1, 4469 slidesPerGroup: 1, 4470 watchSlidesProgress: !0, 4471 spaceBetween: 0, 4472 virtualTranslate: !t.params.cssMode 4473 }) 4474 }) 4475 }, function (e) { 4476 let { 4477 swiper: t, 4478 extendParams: s, 4479 on: a 4480 } = e; 4481 s({ 4482 cubeEffect: { 4483 slideShadows: !0, 4484 shadow: !0, 4485 shadowOffset: 20, 4486 shadowScale: .94 4487 } 4488 }); 4489 const i = (e, t, s) => { 4490 let a = s ? e.find(".swiper-slide-shadow-left") : e.find(".swiper-slide-shadow-top"), 4491 i = s ? e.find(".swiper-slide-shadow-right") : e.find(".swiper-slide-shadow-bottom"); 4492 0 === a.length && (a = d(`<div class="swiper-slide-shadow-${s?"left":"top"}"></div>`), e.append(a)), 0 === i.length && (i = d(`<div class="swiper-slide-shadow-${s?"right":"bottom"}"></div>`), e.append(i)), a.length && (a[0].style.opacity = Math.max(-t, 0)), i.length && (i[0].style.opacity = Math.max(t, 0)) 4493 }; 4494 te({ 4495 effect: "cube", 4496 swiper: t, 4497 on: a, 4498 setTranslate: () => { 4499 const { 4500 $el: e, 4501 $wrapperEl: s, 4502 slides: a, 4503 width: r, 4504 height: n, 4505 rtlTranslate: l, 4506 size: o, 4507 browser: c 4508 } = t, p = t.params.cubeEffect, u = t.isHorizontal(), h = t.virtual && t.params.virtual.enabled; 4509 let m, f = 0; 4510 p.shadow && (u ? (m = s.find(".swiper-cube-shadow"), 0 === m.length && (m = d('<div class="swiper-cube-shadow"></div>'), s.append(m)), m.css({ 4511 height: `${r}px` 4512 })) : (m = e.find(".swiper-cube-shadow"), 0 === m.length && (m = d('<div class="swiper-cube-shadow"></div>'), e.append(m)))); 4513 for (let e = 0; e < a.length; e += 1) { 4514 const t = a.eq(e); 4515 let s = e; 4516 h && (s = parseInt(t.attr("data-swiper-slide-index"), 10)); 4517 let r = 90 * s, 4518 n = Math.floor(r / 360); 4519 l && (r = -r, n = Math.floor(-r / 360)); 4520 const d = Math.max(Math.min(t[0].progress, 1), -1); 4521 let c = 0, 4522 m = 0, 4523 g = 0; 4524 s % 4 == 0 ? (c = 4 * -n * o, g = 0) : (s - 1) % 4 == 0 ? (c = 0, g = 4 * -n * o) : (s - 2) % 4 == 0 ? (c = o + 4 * n * o, g = o) : (s - 3) % 4 == 0 && (c = -o, g = 3 * o + 4 * o * n), l && (c = -c), u || (m = c, c = 0); 4525 const v = `rotateX(${u?0:-r}deg) rotateY(${u?r:0}deg) translate3d(${c}
4525px, ${m}px, ${g}px)`; 4526 d <= 1 && d > -1 && (f = 90 * s + 90 * d, l && (f = 90 * -s - 90 * d)), t.transform(v), p.slideShadows && i(t, d, u) 4527 } 4528 if (s.css({ 4529 "-webkit-transform-origin": `50% 50% -${o/2}px`, 4530 "transform-origin": `50% 50% -${o/2}px` 4531 }), p.shadow) 4532 if (u) m.transform(`translate3d(0px, ${r/2+p.shadowOffset}px, ${-r/2}px) rotateX(90deg) rotateZ(0deg) scale(${p.shadowScale})`); 4533 else { 4534 const e = Math.abs(f) - 90 * Math.floor(Math.abs(f) / 90), 4535 t = 1.5 - (Math.sin(2 * e * Math.PI / 360) / 2 + Math.cos(2 * e * Math.PI / 360) / 2), 4536 s = p.shadowScale, 4537 a = p.shadowScale / t, 4538 i = p.shadowOffset; 4539 m.transform(`scale3d(${s}, 1, ${a}) translate3d(0px, ${n/2+i}px, ${-n/2/a}px) rotateX(-90deg)`) 4540 } const g = c.isSafari || c.isWebView ? -o / 2 : 0; 4541 s.transform(`translate3d(0px,0,${g}px) rotateX(${t.isHorizontal()?0:f}deg) rotateY(${t.isHorizontal()?-f:0}deg)`), s[0].style.setProperty("--swiper-cube-translate-z", `${g}px`) 4542 }, 4543 setTransition: e => { 4544 const { 4545 $el: s, 4546 slides: a 4547 } = t; 4548 a.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), t.params.cubeEffect.shadow && !t.isHorizontal() && s.find(".swiper-cube-shadow").transition(e) 4549 }, 4550 recreateShadows: () => { 4551 const e = t.isHorizontal(); 4552 t.slides.each((t => { 4553 const s = Math.max(Math.min(t.progress, 1), -1); 4554 i(d(t), s, e) 4555 })) 4556 }, 4557 getEffectParams: () => t.params.cubeEffect, 4558 perspective: () => !0, 4559 overwriteParams: () => ({ 4560 slidesPerView: 1, 4561 slidesPerGroup: 1, 4562 watchSlidesProgress: !0, 4563 resistanceRatio: 0, 4564 spaceBetween: 0, 4565 centeredSlides: !1, 4566 virtualTranslate: !0 4567 }) 4568 }) 4569 }, function (e) { 4570 let { 4571 swiper: t, 4572 extendParams: s, 4573 on: a 4574 } = e; 4575 s({ 4576 flipEffect: { 4577 slideShadows: !0, 4578 limitRotation: !0, 4579 transformEl: null 4580 } 4581 }); 4582 const i = (e, s, a) => { 4583 let i = t.isHorizontal() ? e.find(".swiper-slide-shadow-left") : e.find(".swiper-slide-shadow-top"), 4584 r = t.isHorizontal() ? e.find(".swiper-slide-shadow-right") : e.find(".swiper-slide-shadow-bottom"); 4585 0 === i.length && (i = ie(a, e, t.isHorizontal() ? "left" : "top")), 0 === r.length && (r = ie(a, e, t.isHorizontal() ? "right" : "bottom")), i.length && (i[0].style.opacity = Math.max(-s, 0)), r.length && (r[0].style.opacity = Math.max(s, 0)) 4586 }; 4587 te({ 4588 effect: "flip", 4589 swiper: t, 4590 on: a, 4591 setTranslate: () => { 4592 const { 4593 slides: e, 4594 rtlTranslate: s 4595 } = t, a = t.params.flipEffect; 4596 for (let r = 0; r < e.length; r += 1) { 4597 const n = e.eq(r); 4598 let l = n[0].progress; 4599 t.params.flipEffect.limitRotation && (l = Math.max(Math.min(n[0].progress, 1), -1)); 4600 const o = n[0].swiperSlideOffset; 4601 let d = -180 * l, 4602 c = 0, 4603 p = t.params.cssMode ? -o - t.translate : -o, 4604 u = 0; 4605 t.isHorizontal() ? s && (d = -d) : (u = p, p = 0, c = -d, d = 0), n[0].style.zIndex = -Math.abs(Math.round(l)) + e.length, a.slideShadows && i(n, l, a); 4606 const h = `translate3d(${p}px, ${u}
4606px, 0px) rotateX(${c}deg) rotateY(${d}deg)`; 4607 se(a, n).transform(h) 4608 } 4609 }, 4610 setTransition: e => { 4611 const { 4612 transformEl: s 4613 } = t.params.flipEffect; 4614 (s ? t.slides.find(s) : t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), ae({ 4615 swiper: t, 4616 duration: e, 4617 transformEl: s 4618 }) 4619 }, 4620 recreateShadows: () => { 4621 const e = t.params.flipEffect; 4622 t.slides.each((s => { 4623 const a = d(s); 4624 let r = a[0].progress; 4625 t.params.flipEffect.limitRotation && (r = Math.max(Math.min(s.progress, 1), -1)), i(a, r, e) 4626 })) 4627 }, 4628 getEffectParams: () => t.params.flipEffect, 4629 perspective: () => !0, 4630 overwriteParams: () => ({ 4631 slidesPerView: 1, 4632 slidesPerGroup: 1, 4633 watchSlidesProgress: !0, 4634 spaceBetween: 0, 4635 virtualTranslate: !t.params.cssMode 4636 }) 4637 }) 4638 }, function (e) { 4639 let { 4640 swiper: t, 4641 extendParams: s, 4642 on: a 4643 } = e; 4644 s({ 4645 coverflowEffect: { 4646 rotate: 50, 4647 stretch: 0, 4648 depth: 100, 4649 scale: 1, 4650 modifier: 1, 4651 slideShadows: !0, 4652 transformEl: null 4653 } 4654 }), te({ 4655 effect: "coverflow", 4656 swiper: t, 4657 on: a, 4658 setTranslate: () => { 4659 const { 4660 width: e, 4661 height: s, 4662 slides: a, 4663 slidesSizesGrid: i 4664 } = t, r = t.params.coverflowEffect, n = t.isHorizontal(), l = t.translate, o = n ? e / 2 - l : s / 2 - l, d = n ? r.rotate : -r.rotate, c = r.depth; 4665 for (let e = 0, t = a.length; e < t; e += 1) { 4666 const t = a.eq(e), 4667 s = i[e], 4668 l = (o - t[0].swiperSlideOffset - s / 2) / s, 4669 p = "function" == typeof r.modifier ? r.modifier(l) : l * r.modifier; 4670 let u = n ? d * p : 0, 4671 h = n ? 0 : d * p, 4672 m = -c * Math.abs(p), 4673 f = r.stretch; 4674 "string" == typeof f && -1 !== f.indexOf("%") && (f = parseFloat(r.stretch) / 100 * s); 4675 let g = n ? 0 : f * p, 4676 v = n ? f * p : 0, 4677 w = 1 - (1 - r.scale) * Math.abs(p); 4678 Math.abs(v) < .001 && (v = 0), Math.abs(g) < .001 && (g = 0), Math.abs(m) < .001 && (m = 0), Math.abs(u) < .001 && (u = 0), Math.abs(h) < .001 && (h = 0), Math.abs(w) < .001 && (w = 0); 4679 const b = `translate3d(${v}px,${g}px,${m}px) rotateX(${h}deg) rotateY(${u}deg) scale(${w})`; 4680 if (se(r, t).transform(b), t[0].style.zIndex = 1 - Math.abs(Math.round(p)), r.slideShadows) { 4681 let e = n ? t.find(".swiper-slide-shadow-left") : t.find(".swiper-slide-shadow-top"), 4682 s = n ? t.find(".swiper-slide-shadow-right") : t.find(".swiper-slide-shadow-bottom"); 4683 0 === e.length && (e = ie(r, t, n ? "left" : "top")), 0 === s.length && (s = ie(r, t, n ? "right" : "bottom")), e.length && (e[0].style.opacity = p > 0 ? p : 0), s.length && (s[0].style.opacity = -p > 0 ? -p : 0) 4684 } 4685 } 4686 }, 4687 setTransition: e => { 4688 const { 4689 transformEl: s 4690 } = t.params.coverflowEffect; 4691 (s ? t.slides.find(s) : t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e) 4692 }, 4693 perspective: () => !0, 4694 overwriteParams: () => ({ 4695 watchSlidesProgress: !0 4696 }) 4697 }) 4698 }, function (e) { 4699 let { 4700 swiper: t, 4701 extendParams: s, 4702 on: a 4703 } = e; 4704 s({ 4705 creativeEffect: { 4706 transformEl: null, 4707 limitProgress: 1, 4708 shadowPerProgress: !1, 4709 progressMultiplier: 1, 4710 perspective: !0, 4711 prev: { 4712 translate: [0, 0, 0], 4713 rotate: [0, 0, 0], 4714 opacity: 1, 4715 scale: 1 4716 }, 4717 next: { 4718 translate: [0, 0, 0], 4719 rotate: [0, 0, 0], 4720 opacity: 1, 4721 scale: 1 4722 } 4723 } 4724 }); 4725 const i = e => "string" == typeof e ? e : `${e}px`; 4726 te({ 4727 effect: "creative", 4728 swiper: t, 4729 on: a, 4730 setTranslate: () => { 4731 const { 4732 slides: e, 4733 $wrapperEl: s, 4734 slidesSizesGrid: a 4735 } = t, r = t.params.creativeEffect, { 4736 progressMultiplier: n 4737 } = r, l = t.params.centeredSlides; 4738 if (l) { 4739 const e = a[0] / 2 - t.params.slidesOffsetBefore || 0; 4740 s.transform(`translateX(calc(50% - ${e}px))`) 4741 } 4742 for (let s = 0; s < e.length; s += 1) { 4743 const a = e.eq(s), 4744 o = a[0].progress, 4745 d = Math.min(Math.max(a[0].progress, -r.limitProgress), r.limitProgress); 4746 let c = d; 4747 l || (c = Math.min(Math.max(a[0].originalProgress, -r.limitProgress), r.limitProgress)); 4748 const p = a[0].swiperSlideOffset, 4749 u = [t.params.cssMode ? -p - t.translate : -p, 0, 0], 4750 h = [0, 0, 0]; 4751 let m = !1; 4752 t.isHorizontal() || (u[1] = u[0], u[0] = 0); 4753 let f = { 4754 translate: [0, 0, 0], 4755 rotate: [0, 0, 0], 4756 scale: 1, 4757 opacity: 1 4758 }; 4759 d < 0 ? (f = r.next, m = !0) : d > 0 && (f = r.prev, m = !0), u.forEach(((e, t) => { 4760 u[t] = `calc(${e}px + (${i(f.translate[t])} * ${Math.abs(d*n)}))` 4761 })), h.forEach(((e, t) => { 4762 h[t] = f.rotate[t] * Math.abs(d * n) 4763 })), a[0].style.zIndex = -Math.abs(Math.round(o)) + e.length; 4764 const g = u.join(", "), 4765 v = `rotateX(${h[0]}deg) rotateY(${h[1]}deg) rotateZ(${h[2]}deg)`, 4766 w = c < 0 ? `scale(${1+(1-f.scale)*c*n})` : `scale(${1-(1-f.scale)*c*n})`, 4767 b = c < 0 ? 1 + (1 - f.opacity) * c * n : 1 - (1 - f.opacity) * c * n, 4768 x = `translate3d(${g}) ${v} ${w}`; 4769 if (m && f.shadow || !m) { 4770 let e = a.children(".swiper-slide-shadow"); 4771 if (0 === e.length && f.shadow && (e = ie(r, a)), e.length) { 4772 const t = r.shadowPerProgress ? d * (1 / r.limitProgress) : d; 4773 e[0].style.opacity = Math.min(Math.max(Math.abs(t), 0), 1) 4774 } 4775 } 4776 const y = se(r, a); 4777 y.transform(x).css({ 4778 opacity: b 4779 }), f.origin && y.css("transform-origin", f.origin) 4780 } 4781 }, 4782 setTransition: e => { 4783 const { 4784 transformEl: s 4785 } = t.params.creativeEffect; 4786 (s ? t.slides.find(s) : t.slides).transition(e).find(".swiper-slide-shadow").transition(e), ae({ 4787 swiper: t, 4788 duration: e, 4789 transformEl: s, 4790 allSlides: !0 4791 }) 4792 }, 4793 perspective: () => t.params.creativeEffect.perspective, 4794 overwriteParams: () => ({ 4795 watchSlidesProgress: !0, 4796 virtualTranslate: !t.params.cssMode 4797 }) 4798 }) 4799 }, function (e) { 4800 let { 4801 swiper: t, 4802 extendParams: s, 4803 on: a 4804 } = e; 4805 s({ 4806 cardsEffect: { 4807 slideShadows: !0, 4808 transformEl: null, 4809 rotate: !0 4810 } 4811 }), te({ 4812 effect: "cards", 4813 swiper: t, 4814 on: a, 4815 setTranslate: () => { 4816 const { 4817 slides: e, 4818 activeIndex: s 4819 } = t, a = t.params.cardsEffect, { 4820 startTranslate: i, 4821 isTouched: r 4822 } = t.touchEventsData, n = t.translate; 4823 for (let l = 0; l < e.length; l += 1) { 4824 const o = e.eq(l), 4825 d = o[0].progress, 4826 c = Math.min(Math.max(d, -4), 4); 4827 let p = o[0].swiperSlideOffset; 4828 t.params.centeredSlides && !t.params.cssMode && t.$wrapperEl.transform(`translateX(${t.minTranslate()}px)`), t.params.centeredSlides && t.params.cssMode && (p -= e[0].swiperSlideOffset); 4829 let u = t.params.cssMode ? -p - t.translate : -p, 4830 h = 0; 4831 const m = -100 * Math.abs(c); 4832 let f = 1, 4833 g = -2 * c, 4834 v = 8 - .75 * Math.abs(c); 4835 const w = t.virtual && t.params.virtual.enabled ? t.virtual.from + l : l, 4836 b = (w === s || w === s - 1) && c > 0 && c < 1 && (r || t.params.cssMode) && n < i, 4837 x = (w === s || w === s + 1) && c < 0 && c > -1 && (r || t.params.cssMode) && n > i; 4838 if (b || x) { 4839 const e = (1 - Math.abs((Math.abs(c) - .5) / .5)) ** .5; 4840 g += -28 * c * e, f += -.5 * e, v += 96 * e, h = -25 * e * Math.abs(c) + "%" 4841 } 4842 if (u = c < 0 ? `calc(${u}px + (${v*Math.abs(c)}%))` : c > 0 ? `calc(${u}px + (-${v*Math.abs(c)}%))` : `${u}px`, !t.isHorizontal()) { 4843 const e = h; 4844 h = u, u = e 4845 } 4846 const y = c < 0 ? "" + (1 + (1 - f) * c) : "" + (1 - (1 - f) * c), 4847 E = `\n translate3d(${u}, ${h}, ${m}px)\n rotateZ(${a.rotate?g:0}deg)\n scale(${y})\n `; 4848 if (a.slideShadows) { 4849 let e = o.find(".swiper-slide-shadow"); 4850 0 === e.length && (e = ie(a, o)), e.length && (e[0].style.opacity = Math.min(Math.max((Math.abs(c) - .5) / .5, 0), 1)) 4851 } 4852 o[0].style.zIndex = -Math.abs(Math.round(d)) + e.length; 4853 se(a, o).transform(E) 4854 } 4855 }, 4856 setTransition: e => { 4857 const { 4858 transformEl: s 4859 } = t.params.cardsEffect; 4860 (s ? t.slides.find(s) : t.slides).transition(e).find(".swiper-slide-shadow").transition(e), ae({ 4861 swiper: t, 4862 duration: e, 4863 transformEl: s 4864 }) 4865 }, 4866 perspective: () => !0, 4867 overwriteParams: () => ({ 4868 watchSlidesProgress: !0, 4869 virtualTranslate: !t.params.cssMode 4870 }) 4871 }) 4872 }]; 4873 return V.use(re), V 4874})); 4875//# sourceMappingURL=swiper-bundle.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.