1/** 2 * Swiper 3.4.2 3 * Most modern mobile touch slider and framework with hardware accelerated transitions 4 * 5 * http://www.idangero.us/swiper/ 6 * 7 * Copyright 2017, Vladimir Kharlampidi 8 * The iDangero.us 9 * http://www.idangero.us/ 10 * 11 * Licensed under MIT 12 * 13 * Released on: March 10, 2017 14 */ 15!(function () { 16 "use strict"; 17 var e, 18 a = function (s, i) { 19 function r(e) { 20 return Math.floor(e); 21 } 22 function n() { 23 var e = T.params.autoplay, 24 a = T.slides.eq(T.activeIndex); 25 a.attr("data-swiper-autoplay") && (e = a.attr("data-swiper-autoplay") || T.params.autoplay), 26 (T.autoplayTimeoutId = setTimeout(function () { 27 T.params.loop ? (T.fixLoop(), T._slideNext(), T.emit("onAutoplay", T)) : T.isEnd ? (i.autoplayStopOnLast ? T.stopAutoplay() : (T._slideTo(0), T.emit("onAutoplay", T))) : (T._slideNext(), T.emit("onAutoplay", T)); 28 }, e)); 29 } 30 function o(a, t) { 31 var s = e(a.target); 32 if (!s.is(t)) 33 if ("string" == typeof t) s = s.parents(t); 34 else if (t.nodeType) { 35 var i; 36 return ( 37 s.parents().each(function (e, a) { 38 a === t && (i = t); 39 }), 40 i ? t : void 0 41 ); 42 } 43 if (0 !== s.length) return s[0]; 44 } 45 function l(e, a) { 46 a = a || {}; 47 var t = window.MutationObserver || window.WebkitMutationObserver, 48 s = new t(function (e) { 49 e.forEach(function (e) { 50 T.onResize(!0), T.emit("onObserverUpdate", T, e); 51 }); 52 }); 53 s.observe(e, {attributes: void 0 === a.attributes || a.attributes, childList: void 0 === a.childList || a.childList, characterData: void 0 === a.characterData || a.characterData}), T.observers.push(s); 54 } 55 function p(e) { 56 e.originalEvent && (e = e.originalEvent); 57 var a = e.keyCode || e.charCode; 58 if (!T.params.allowSwipeToNext && ((T.isHorizontal() && 39 === a) || (!T.isHorizontal() && 40 === a))) return !1; 59 if (!T.params.allowSwipeToPrev && ((T.isHorizontal() && 37 === a) || (!T.isHorizontal() && 38 === a))) return !1; 60 if ( 61 !( 62 e.shiftKey || 63 e.altKey || 64 e.ctrlKey || 65 e.metaKey || 66 (document.activeElement && document.activeElement.nodeName && ("input" === document.activeElement.nodeName.toLowerCase() || "textarea" === document.activeElement.nodeName.toLowerCase())) 67 ) 68 ) { 69 if (37 === a || 39 === a || 38 === a || 40 === a) { 70 var t = !1; 71 if (T.container.parents("." + T.params.slideClass).length > 0 && 0 === T.container.parents("." + T.params.slideActiveClass).length) return; 72 var s = {left: window.pageXOffset, top: window.pageYOffset},
73 i = window.innerWidth, 74 r = window.innerHeight, 75 n = T.container.offset(); 76 T.rtl && (n.left = n.left - T.container[0].scrollLeft); 77 for ( 78 var o = [ 79 [n.left, n.top], 80 [n.left + T.width, n.top], 81 [n.left, n.top + T.height], 82 [n.left + T.width, n.top + T.height], 83 ], 84 l = 0; 85 l < o.length; 86 l++ 87 ) { 88 var p = o[l]; 89 p[0] >= s.left && p[0] <= s.left + i && p[1] >= s.top && p[1] <= s.top + r && (t = !0); 90 } 91 if (!t) return; 92 } 93 T.isHorizontal() 94 ? ((37 !== a && 39 !== a) || (e.preventDefault ? e.preventDefault() : (e.returnValue = !1)), ((39 === a && !T.rtl) || (37 === a && T.rtl)) && T.slideNext(), ((37 === a && !T.rtl) || (39 === a && T.rtl)) && T.slidePrev()) 95 : ((38 !== a && 40 !== a) || (e.preventDefault ? e.preventDefault() : (e.returnValue = !1)), 40 === a && T.slideNext(), 38 === a && T.slidePrev()), 96 T.emit("onKeyPress", T, a); 97 } 98 } 99 function d(e) { 100 var a = 0, 101 t = 0, 102 s = 0, 103 i = 0; 104 return ( 105 "detail" in e && (t = e.detail), 106 "wheelDelta" in e && (t = -e.wheelDelta / 120), 107 "wheelDeltaY" in e && (t = -e.wheelDeltaY / 120), 108 "wheelDeltaX" in e && (a = -e.wheelDeltaX / 120), 109 "axis" in e && e.axis === e.HORIZONTAL_AXIS && ((a = t), (t = 0)), 110 (s = 10 * a), 111 (i = 10 * t), 112 "deltaY" in e && (i = e.deltaY), 113 "deltaX" in e && (s = e.deltaX), 114 (s || i) && e.deltaMode && (1 === e.deltaMode ? ((s *= 40), (i *= 40)) : ((s *= 800), (i *= 800))), 115 s && !a && (a = s < 1 ? -1 : 1), 116 i && !t && (t = i < 1 ? -1 : 1), 117 {spinX: a, spinY: t, pixelX: s, pixelY: i} 118 ); 119 } 120 function u(e) { 121 e.originalEvent && (e = e.originalEvent); 122 var a = 0, 123 t = T.rtl ? -1 : 1, 124 s = d(e); 125 if (T.params.mousewheelForceToAxis) 126 if (T.isHorizontal()) { 127 if (!(Math.abs(s.pixelX) > Math.abs(s.pixelY))) return; 128 a = s.pixelX * t; 129 } else { 130 if (!(Math.abs(s.pixelY) > Math.abs(s.pixelX))) return; 131 a = s.pixelY; 132 } 133 else a = Math.abs(s.pixelX) > Math.abs(s.pixelY) ? -s.pixelX * t : -s.pixelY; 134 if (0 !== a) { 135 if ((T.params.mousewheelInvert && (a = -a), T.params.freeMode)) { 136 var i = T.getWrapperTranslate() + a * T.params.mousewheelSensitivity, 137 r = T.isBeginning, 138 n = T.isEnd; 139 if ( 140 (i >= T.minTranslate() && (i = T.minTranslate()), 141 i <= T.maxTranslate() && (i = T.maxTranslate()), 142 T.setWrapperTransition(0), 143 T.setWrapperTranslate(i), 144 T.updateProgress(), 145 T.updateActiveIndex(), 146 ((!r && T.isBeginning) || (!n && T.isEnd)) && T.updateClasses(), 147 T.params.freeModeSticky 148 ? (clearTimeout(T.mousewheel.timeout), 149 (T.mousewheel.timeout = setTimeout(function () { 150 T.slideReset(); 151 }, 300))) 152 : T.params.lazyLoading && T.lazy && T.lazy.load(), 153 T.emit("onScroll", T, e), 154 T.params.autoplay && T.params.autoplayDisableOnInteraction && T.stopAutoplay(), 155 0 === i || i === T.maxTranslate()) 156 ) 157 return; 158 } else { 159 if (new window.Date().getTime() - T.mousewheel.lastScrollTime > 60) 160 if (a < 0) 161 if ((T.isEnd && !T.params.loop) || T.animating) { 162 if (T.params.mousewheelReleaseOnEdges) return !0; 163 } else T.slideNext(), T.emit("onScroll", T, e); 164 else if ((T.isBeginning && !T.params.loop) || T.animating) { 165 if (T.params.mousewheelReleaseOnEdges) return !0; 166 } else T.slidePrev(), T.emit("onScroll", T, e); 167 T.mousewheel.lastScrollTime = new window.Date().getTime(); 168 } 169 return e.preventDefault ? e.preventDefault() : (e.returnValue = !1), !1; 170 } 171 } 172 function c(a, t) { 173 a = e(a); 174 var s, 175 i, 176 r, 177 n = T.rtl ? -1 : 1; 178 (s = a.attr("data-swiper-parallax") || "0"), 179 (i = a.attr("data-swiper-parallax-x")), 180 (r = a.attr("data-swiper-parallax-y")), 181 i || r ? ((i = i || "0"), (r = r || "0")) : T.isHorizontal() ? ((i
181= s), (r = "0")) : ((r = s), (i = "0")), 182 (i = i.indexOf("%") >= 0 ? parseInt(i, 10) * t * n + "%" : i * t * n + "px"), 183 (r = r.indexOf("%") >= 0 ? parseInt(r, 10) * t + "%" : r * t + "px"), 184 a.transform("translate3d(" + i + ", " + r + ",0px)"); 185 } 186 function m(e) { 187 return 0 !== e.indexOf("on") && (e = e[0] !== e[0].toUpperCase() ? "on" + e[0].toUpperCase() + e.substring(1) : "on" + e), e; 188 } 189 if (!(this instanceof a)) return new a(s, i); 190 var h = { 191 direction: "horizontal", 192 touchEventsTarget: "container", 193 initialSlide: 0, 194 speed: 300, 195 autoplay: !1, 196 autoplayDisableOnInteraction: !0, 197 autoplayStopOnLast: !1, 198 iOSEdgeSwipeDetection: !1, 199 iOSEdgeSwipeThreshold: 20, 200 freeMode: !1, 201 freeModeMomentum: !0, 202 freeModeMomentumRatio: 1, 203 freeModeMomentumBounce: !0, 204 freeModeMomentumBounceRatio: 1, 205 freeModeMomentumVelocityRatio: 1, 206 freeModeSticky: !1, 207 freeModeMinimumVelocity: 0.02, 208 autoHeight: !1, 209 setWrapperSize: !1, 210 virtualTranslate: !1, 211 effect: "slide", 212 coverflow: {rotate: 50, stretch: 0, depth: 100, modifier: 1, slideShadows: !0}, 213 flip: {slideShadows: !0, limitRotation: !0}, 214 cube: {slideShadows: !0, shadow: !0, shadowOffset: 20, shadowScale: 0.94}, 215 fade: {crossFade: !1}, 216 parallax: !1, 217 zoom: !1, 218 zoomMax: 3, 219 zoomMin: 1, 220 zoomToggle: !0, 221 scrollbar: null, 222 scrollbarHide: !0, 223 scrollbarDraggable: !1, 224 scrollbarSnapOnRelease: !1, 225 keyboardControl: !1, 226 mousewheelControl: !1, 227 mousewheelReleaseOnEdges: !1, 228 mousewheelInvert: !1, 229 mousewheelForceToAxis: !1, 230 mousewheelSensitivity: 1, 231 mousewheelEventsTarged: "container", 232 hashnav: !1, 233 hashnavWatchState: !1, 234 history: !1, 235 replaceState: !1, 236 breakpoints: void 0, 237 spaceBetween: 0, 238 slidesPerView: 1, 239 slidesPerColumn: 1, 240 slidesPerColumnFill: "column", 241 slidesPerGroup: 1, 242 centeredSlides: !1, 243 slidesOffsetBefore: 0, 244 slidesOffsetAfter: 0, 245 roundLengths: !1, 246 touchRatio: 1, 247 touchAngle: 45, 248 simulateTouch: !0, 249 shortSwipes: !0, 250 longSwipes: !0, 251 longSwipesRatio: 0.5, 252 longSwipesMs: 300, 253 followFinger: !0, 254 onlyExternal: !1, 255 threshold: 0, 256 touchMoveStopPropagation: !0, 257 touchReleaseOnEdges: !1, 258 uniqueNavElements: !0, 259 pagination: null, 260 paginationElement: "span", 261 paginationClickable: !1, 262 paginationHide: !1, 263 paginationBulletRender: null, 264 paginationProgressRender: null, 265 paginationFractionRender: null, 266 paginationCustomRender: null, 267 paginationType: "bullets", 268 resistance: !0, 269 resistanceRatio: 0.85, 270 nextButton: null, 271 prevButton: null, 272 watchSlidesProgress: !1, 273 watchSlidesVisibility: !1, 274 grabCursor: !1, 275 preventClicks: !0, 276 preventClicksPropagation: !0, 277 slideToClickedSlide: !1, 278 lazyLoading: !1, 279 lazyLoadingInPrevNext: !1, 280 lazyLoadingInPrevNextAmount: 1, 281 lazyLoadingOnTransitionStart: !1, 282 preloadImages: !0, 283 updateOnImagesReady: !0, 284 loop: !1, 285 loopAdditionalSlides: 0, 286 loopedSlides: null, 287 control: void 0, 288 controlInverse: !1, 289 controlBy: "slide", 290 normalizeSlideIndex: !0, 291 allowSwipeToPrev: !0, 292 allowSwipeToNext: !0, 293 swipeHandler: null, 294 noSwiping: !0, 295 noSwipingClass: "swiper-no-swiping", 296 passiveListeners: !0, 297 containerModifierClass: "swiper-container-", 298 slideClass: "swiper-slide", 299 slideActiveClass: "swiper-slide-active", 300 slideDuplicateActiveClass: "swiper-slide-duplicate-active", 301 slideVisibleClass: "swiper-slide-visible", 302 slideDuplicateClass: "swiper-slide-duplicate", 303 slideNextClass: "swiper-slide-next", 304 slideDuplicateNextClass: "swiper-slide-duplicate-next", 305 slidePrevClass: "swiper-slide-prev", 306 slideDuplicatePrevClass: "swiper-slide-duplicate-prev", 307 wrapperClass: "swiper-wrapper", 308 bulletClass: "swiper-pagination-bullet", 309 bulletActiveClass: "swiper-pagination-bullet-active", 310 buttonDisabledClass: "swiper-button-disabled", 311 paginationCurrentClass: "swiper-pagination-current", 312 paginationTotalClass: "swiper-pagination-total", 313 paginationHiddenClass: "swiper-pagination-hidden", 314 paginationProgressbarClass: "swiper-pagination-progressbar", 315 paginationClickableClass: "swiper-pagination-clickable", 316 paginationModifierClass: "swiper-pagination-", 317 lazyLoadingClass: "swiper-lazy", 318 lazyStatusLoadingClass: "swiper-lazy-loading", 319 lazyStatusLoadedClass: "swiper-lazy-loaded", 320 lazyPreloaderClass: "swiper-lazy-preloader", 321 notificationClass: "swiper-notification", 322 preloaderClass: "preloader", 323 zoomContainerClass: "swiper-zoom-container", 324 observer: !1, 325 observeParents: !1, 326 a11y: !1, 327 prevSlideMessage: "Previous slide", 328 nextSlideMessage: "Next slide", 329 firstSlideMessage: "This is the first slide", 330 lastSlideMessage: "This is the last slide", 331 paginationBulletMessage: "Go to slide {{index}}", 332 runCallbacksOnInit: !0, 333 }, 334 g = i && i.virtualTranslate; 335 i = i || {}; 336 var f = {}; 337 for (var v in i) 338 if ("object" != typeof i[v] || null === i[v] || i[v].nodeType || i[v] === window || i[v] === document || (void 0 !== t && i[v] instanceof t) || ("undefined" != typeof jQuery && i[v] instanceof jQuery)) f[v] = i[v]; 339 else { 340 f[v] = {}; 341 for (var w in i[v]) f[v][w] = i[v][w]; 342 } 343 for (var y in h) 344 if (void 0 === i[y]) i[y] = h[y]; 345 else if ("object" == typeof i[y]) for (var x in h[y]) void 0 === i[y][x] && (i[y][x] = h[y][x]); 346 var T = this; 347 if ( 348 ((T.params = i), 349 (T.originalParams = f), 350 (T.classNames = []), 351 void 0 !== e && void 0 !== t && (e = t), 352 (void 0 !== e || (e = void 0 === t ? window.Dom7 || window.Zepto || window.jQuery : t)) && 353 ((T.$ = e), 354 (T.currentBreakpoint = void 0), 355 (T.getActiveBreakpoint = function () { 356 if (!T.params.breakpoints) return !1; 357 var e, 358 a = !1, 359 t = []; 360 for (e in T.params.breakpoints) T.params.breakpoints.hasOwnProperty(e) && t.push(e); 361 t.sort(function (e, a) { 362 return parseInt(e, 10) > parseInt(a, 10); 363 }); 364 for (var s = 0; s < t.length; s++) (e = t[s]) >= window.innerWidth && !a && (a = e); 365 return a || "max"; 366 }), 367 (T.setBreakpoint = function () { 368 var e = T.getActiveBreakpoint(); 369 if (e && T.currentBreakpoint !== e) { 370 var a = e in T.params.breakpoints ? T.params.breakpoints[e] : T.originalParams, 371 t = T.params.loop && a.slidesPerView !== T.params.slidesPerView; 372 for (var s in a) T.params[s] = a[s]; 373 (T.currentBreakpoint = e), t && T.destroyLoop && T.reLoop(!0); 374 } 375 }), 376 T.params.breakpoints && T.setBreakpoint(), 377 (T.container = e(s)), 378 0 !== T.container.length)) 379 ) { 380 if (T.container.length > 1) { 381 var b = []; 382 return ( 383 T.container.each(function () { 384 b.push(new a(this, i)); 385 }), 386 b 387 ); 388 } 389 (T.container[0].swiper = T), 390 T.container.data("swiper", T), 391 T.classNames.push(T.params.containerModifierClass + T.params.direction), 392 T.params.freeMode && T.classNames.push(T.params.containerModifierClass + "free-mode"), 393 T.support.flexbox || (T.classNames.push(T.params.containerModifierClass + "no-flexbox"), (T.params.slidesPerColumn = 1)), 394 T.params.autoHeight && T.classNames.push(T.params.containerModifierClass + "autoheight"), 395 (T.params.parallax || T.params.watchSlidesVisibility) && (T.params.watchSlidesProgress = !0), 396 T.params.touchReleaseOnEdges && (T.params.resistanceRatio = 0), 397 ["cube", "coverflow", "flip"].indexOf(T.params.effect) >= 0 && (T.support.transforms3d ? ((T.params.watchSlidesProgress = !0), T.classNames.push(T.params.containerModifierClass + "3d")) : (T.params.effect = "slide")), 398 "slide" !== T.params.effect && T.classNames.push(T.params.containerModifierClass + T.params.effect), 399 "cube" === T.params.effect && 400 ((T.params.resistanceRatio = 0), (T.params.slidesPerView = 1), (T.params.slidesPerColumn = 1), (T.params.slidesPerGroup = 1), (T.params.centeredSlides = !1), (T.params.spaceBetween = 0), (T.params.virtualTranslate = !0)), 401 ("fade" !== T.params.effect && "flip" !== T.params.effect) || 402 ((T.params.slidesPerView = 1), (T.params.slidesPerColumn = 1), (T.params.slidesPerGroup = 1), (T.params.watchSlidesProgress = !0), (T.params.spaceBetween = 0), void 0 === g && (T.params.virtualTranslate = !0)), 403 T.params.grabCursor && T.support.touch && (T.params.grabCursor = !1), 404 (T.wrapper = T.container.children("." + T.params.wrapperClass)), 405 T.params.pagination && 406 ((T.paginationContainer = e(T.params.pagination)), 407 T.params.uniqueNavElements && "string" == typeof T.params.pagination && T.paginationContainer.length > 1 && 1 === T.container.find(T.params.pagination).length && (T.paginationContainer = T.container.find(T.params.pagination)), 408 "bullets" === T.params.paginationType && T.params.paginationClickable ? T.paginationContainer.addClass(T.params.paginationModifierClass + "clickable") : (T.params.paginationClickable = !1), 409 T.paginationContainer.addClass(T.params.paginationModifierClass + T.params.paginationType)), 410 (T.params.nextButton || T.params.prevButton) && 411 (T.params.nextButton && 412 ((T.nextButton = e(T.params.nextButton)), 413 T.params.uniqueNavElements && "string" == typeof T.params.nextButton && T.nextButton.length > 1 && 1 === T.container.find(T.params.nextButton).length && (T.nextButton = T.container.find(T.params.nextButton))), 414 T.params.prevButton && 415 ((T.prevButton = e(T.params.prevButton)), 416 T.params.uniqueNavElements && "string" == typeof T.params.prevButton && T.prevButton.length > 1 && 1 === T.container.find(T.params.prevButton).length && (T.prevButton = T.container.find(T.params.prevButton)))), 417 (T.isHorizontal = function () { 418 return "horizontal" === T.params.direction; 419 }), 420 (T.rtl = T.isHorizontal() && ("rtl" === T.container[0].dir.toLowerCase() || "rtl" === T.container.css("direction"))), 421 T.rtl && T.classNames.push(T.params.containerModifierClass + "rtl"), 422 T.rtl && (T.wrongRTL = "-webkit-box" === T.wrapper.css("display")), 423 T.params.slidesPerColumn > 1 && T.classNames.push(T.params.containerModifierClass + "multirow"), 424 T.device.android && T.classNames.push(T.params.containerModifierClass + "android"), 425 T.container.addClass(T.classNames.join(" ")), 426 (T.translate = 0), 427 (T.progress = 0), 428 (T.velocity = 0), 429 (T.lockSwipeToNext = function () { 430 (T.params.allowSwipeToNext = !1), T.params.allowSwipeToPrev === !1 && T.params.grabCursor && T.unsetGrabCursor(
430); 431 }), 432 (T.lockSwipeToPrev = function () { 433 (T.params.allowSwipeToPrev = !1), T.params.allowSwipeToNext === !1 && T.params.grabCursor && T.unsetGrabCursor(); 434 }), 435 (T.lockSwipes = function () { 436 (T.params.allowSwipeToNext = T.params.allowSwipeToPrev = !1), T.params.grabCursor && T.unsetGrabCursor(); 437 }), 438 (T.unlockSwipeToNext = function () { 439 (T.params.allowSwipeToNext = !0), T.params.allowSwipeToPrev === !0 && T.params.grabCursor && T.setGrabCursor(); 440 }), 441 (T.unlockSwipeToPrev = function () { 442 (T.params.allowSwipeToPrev = !0), T.params.allowSwipeToNext === !0 && T.params.grabCursor && T.setGrabCursor(); 443 }), 444 (T.unlockSwipes = function () { 445 (T.params.allowSwipeToNext = T.params.allowSwipeToPrev = !0), T.params.grabCursor && T.setGrabCursor(); 446 }), 447 (T.setGrabCursor = function (e) { 448 (T.container[0].style.cursor = "move"), (T.container[0].style.cursor = e ? "-webkit-grabbing" : "-webkit-grab"), (T.container[0].style.cursor = e ? "-moz-grabbin" : "-moz-grab"), (T.container[0].style.cursor = e ? "grabbing" : "grab"); 449 }), 450 (T.unsetGrabCursor = function () { 451 T.container[0].style.cursor = ""; 452 }), 453 T.params.grabCursor && T.setGrabCursor(), 454 (T.imagesToLoad = []), 455 (T.imagesLoaded = 0), 456 (T.loadImage = function (e, a, t, s, i, r) { 457 function n() { 458 r && r(); 459 } 460 var o; 461 e.complete && i ? n() : a ? ((o = new window.Image()), (o.onload = n), (o.onerror = n), s && (o.sizes = s), t && (o.srcset = t), a && (o.src = a)) : n(); 462 }), 463 (T.preloadImages = function () { 464 function e() { 465 void 0 !== T && null !== T && T && (void 0 !== T.imagesLoaded && T.imagesLoaded++, T.imagesLoaded === T.imagesToLoad.length && (T.params.updateOnImagesReady && T.update(), T.emit("onImagesReady", T))); 466 } 467 T.imagesToLoad = T.container.find("img"); 468 for (var a = 0; a < T.imagesToLoad.length; a++) 469 T.loadImage( 470 T.imagesToLoad[a], 471 T.imagesToLoad[a].currentSrc || T.imagesToLoad[a].getAttribute("src"), 472 T.imagesToLoad[a].srcset || T.imagesToLoad[a].getAttribute("srcset"), 473 T.imagesToLoad[a].sizes || T.imagesToLoad[a].getAttribute("sizes"), 474 !0, 475 e 476 ); 477 }), 478 (T.autoplayTimeoutId = void 0), 479 (T.autoplaying = !1), 480 (T.autoplayPaused = !1), 481 (T.startAutoplay = function () { 482 return void 0 === T.autoplayTimeoutId && !!T.params.autoplay && !T.autoplaying && ((T.autoplaying = !0), T.emit("onAutoplayStart", T), void n()); 483 }), 484 (T.stopAutoplay = function (e) { 485 T.autoplayTimeoutId && (T.autoplayTimeoutId && clearTimeout(T.autoplayTimeoutId), (T.autoplaying = !1), (T.autoplayTimeoutId = void 0), T.emit("onAutoplayStop", T)); 486 }), 487 (T.pauseAutoplay = function (e) { 488 T.autoplayPaused || 489 (T.autoplayTimeoutId && clearTimeout(T.autoplayTimeoutId), 490 (T.autoplayPaused = !0), 491 0 === e 492 ? ((T.autoplayPaused = !1), n()) 493 : T.wrapper.transitionEnd(function () { 494 T && ((T.autoplayPaused = !1), T.autoplaying ? n() : T.stopAutoplay()); 495 })); 496 }), 497 (T.minTranslate = function () { 498 return -T.snapGrid[0]; 499 }), 500 (T.maxTranslate = function () { 501 return -T.snapGrid[T.snapGrid.length - 1]; 502 }), 503 (T.updateAutoHeight = function () { 504 var e, 505 a = [], 506 t = 0; 507 if ("auto" !== T.params.slidesPerView && T.params.slidesPerView > 1) 508 for (e = 0; e < Math.ceil(T.params.slidesPerView); e++) { 509 var s = T.activeIndex + e; 510 if (s > T.slides.length) break; 511 a.push(T.slides.eq(s)[0]); 512 } 513 else a.push(T.slides.eq(T.activeIndex)[0]); 514 for (e = 0; e < a.length; e++) 515 if (void 0 !== a[e]) { 516 var i = a[e].offsetHeight; 517 t = i > t ? i : t; 518 } 519 t && T.wrapper.css("height", t + "px"); 520 }), 521 (T.updateContainerSize = function () { 522 var e, a; 523 (e = void 0 !== T.params.width ? T.params.width : T.container[0].clientWidth), 524 (a = void 0 !== T.params.height ? T.params.height : T.container[0].clientHeight), 525 (0 === e && T.isHorizontal()) || 526 (0 === a && !T.isHorizontal()) || 527 ((e = e - parseInt(T.container.css("padding-left"), 10) - parseInt(T.container.css("padding-right"), 10)), 528 (a = a - parseInt(T.container.css("padding-top"), 10) - parseInt(T.container.css("padding-bottom"), 10)), 529 (T.width = e), 530 (T.height = a), 531 (T.size = T.isHorizontal() ? T.width : T.height)); 532 }), 533 (T.updateSlidesSize = function () { 534 (T.slides = T.wrapper.children("." + T.params.slideClass)), (T.snapGrid = []), (T.slidesGrid = []), (T.slidesSizesGrid = []); 535 var e, 536 a = T.params.spaceBetween, 537 t = -T.params.slidesOffsetBefore, 538 s = 0, 539 i = 0; 540 if (void 0 !== T.size) { 541 "string" == typeof a && a.indexOf("%") >= 0 && (a = (parseFloat(a.replace("%", "")) / 100) * T.size), (T.virtualSize = -a), T.rtl ? T.slides.css({marginLeft: "", marginTop: ""}) : T.slides.css({marginRight: "", marginBottom: ""}); 542 var n; 543 T.params.slidesPerColumn > 1 && 544 ((n = Math.floor(T.slides.length / T.params.slidesPerColumn) === T.slides.length / T.params.slidesPerColumn ? T.slides.length : Math.ceil(T.slides.length / T.params.slidesPerColumn) * T.params.slidesPerColumn), 545 "auto" !== T.params.slidesPerView && "row" === T.params.slidesPerColumnFill && (n = Math.max(n, T.params.slidesPerView * T.params.slidesPerColumn))); 546 var o, 547 l = T.params.slidesPerColumn, 548 p = n / l, 549 d = p - (T.params.slidesPerColumn * p - T.slides.length); 550 for (e = 0; e < T.slides.length; e++) { 551 o = 0; 552 var u = T.slides.eq(e); 553 if (T.params.slidesPerColumn > 1) { 554 var c, m, h; 555 "column" === T.params.slidesPerColumnFill 556 ? ((m = Math.floor(e / l)), 557 (h = e - m * l), 558 (m > d || (m === d && h === l - 1)) && ++h >= l && ((h = 0), m++), 559 (c = m + (h * n) / l), 560 u.css({"-webkit-box-ordinal-group": c, "-moz-box-ordinal-group": c, "-ms-flex-order": c, "-webkit-order": c, order: c})) 561 : ((h = Math.floor(e / p)), (m = e - h * p)), 562 u 563 .css("margin-" + (T.isHorizontal() ? "top" : "left"), 0 !== h && T.params.spaceBetween && T.params.spaceBetween + "px") 564 .attr("data-swiper-column", m) 565 .attr("data-swiper-row", h); 566 } 567 "none" !== u.css("display") && 568 ("auto" === T.params.slidesPerView 569 ? ((o = T.isHorizontal() ? u.outerWidth(!0) : u.outerHeight(!0)), T.params.roundLengths && (o = r(o))) 570 : ((o = (T.size - (T.params.slidesPerView - 1) * a) / T.params.slidesPerView), T.params.roundLengths && (o = r(o)), T.isHorizontal() ? (T.slides[e].style.width = o + "px") : (T.slides[e].style.height = o + "px")), 571 (T.slides[e].swiperSlideSize = o), 572 T.slidesSizesGrid.push(o), 573 T.params.centeredSlides 574 ? ((t = t + o / 2 + s / 2 + a), 0 === s && 0 !== e && (t = t - T.size / 2 - a), 0 === e && (t = t - T.size / 2 - a), Math.abs(t) < 0.001 && (t = 0), i % T.params.slidesPerGroup == 0 && T.snapGrid.push(t), T.slidesGrid.push(t)) 575 : (i % T.params.slidesPerGroup == 0 && T.snapGrid.push(t), T.slidesGrid.push(t), (t = t + o + a)), 576 (T.virtualSize += o + a), 577 (s = o), 578 i++); 579 } 580 T.virtualSize = Math.max(T.virtualSize, T.size) + T.params.slidesOffsetAfter; 581 var g; 582 if ( 583 (T.rtl && T.wrongRTL && ("slide" === T.params.effect || "coverflow" === T.params.effect) && T.wrapper.css({width: T.virtualSize + T.params.spaceBetween + "px"}), 584 (T.support.flexbox && !T.params.setWrapperSize) || (T.isHorizontal() ? T.wrapper.css({width: T.virtualSize + T.params.spaceBetween + "px"}) : T.wrapper.css({height: T.virtualSize + T.params.spaceBetween + "px"})), 585 T.params.slidesPerColumn > 1 && 586 ((T.virtualSize = (o + T.params.spaceBetween) * n),
587 (T.virtualSize = Math.ceil(T.virtualSize / T.params.slidesPerColumn) - T.params.spaceBetween), 588 T.isHorizontal() ? T.wrapper.css({width: T.virtualSize + T.params.spaceBetween + "px"}) : T.wrapper.css({height: T.virtualSize + T.params.spaceBetween + "px"}), 589 T.params.centeredSlides)) 590 ) { 591 for (g = [], e = 0; e < T.snapGrid.length; e++) T.snapGrid[e] < T.virtualSize + T.snapGrid[0] && g.push(T.snapGrid[e]); 592 T.snapGrid = g; 593 } 594 if (!T.params.centeredSlides) { 595 for (g = [], e = 0; e < T.snapGrid.length; e++) T.snapGrid[e] <= T.virtualSize - T.size && g.push(T.snapGrid[e]); 596 (T.snapGrid = g), Math.floor(T.virtualSize - T.size) - Math.floor(T.snapGrid[T.snapGrid.length - 1]) > 1 && T.snapGrid.push(T.virtualSize - T.size); 597 } 598 0 === T.snapGrid.length && (T.snapGrid = [0]), 599 0 !== T.params.spaceBetween && (T.isHorizontal() ? (T.rtl ? T.slides.css({marginLeft: a + "px"}) : T.slides.css({marginRight: a + "px"})) : T.slides.css({marginBottom: a + "px"})), 600 T.params.watchSlidesProgress && T.updateSlidesOffset(); 601 } 602 }), 603 (T.updateSlidesOffset = function () { 604 for (var e = 0; e < T.slides.length; e++) T.slides[e].swiperSlideOffset = T.isHorizontal() ? T.slides[e].offsetLeft : T.slides[e].offsetTop; 605 }), 606 (T.currentSlidesPerView = function () { 607 var e, 608 a, 609 t = 1; 610 if (T.params.centeredSlides) { 611 var s, 612 i = T.slides[T.activeIndex].swiperSlideSize; 613 for (e = T.activeIndex + 1; e < T.slides.length; e++) T.slides[e] && !s && ((i += T.slides[e].swiperSlideSize), t++, i > T.size && (s = !0)); 614 for (a = T.activeIndex - 1; a >= 0; a--) T.slides[a] && !s && ((i += T.slides[a].swiperSlideSize), t++, i > T.size && (s = !0)); 615 } else for (e = T.activeIndex + 1; e < T.slides.length; e++) T.slidesGrid[e] - T.slidesGrid[T.activeIndex] < T.size && t++; 616 return t; 617 }), 618 (T.updateSlidesProgress = function (e) { 619 if ((void 0 === e && (e = T.translate || 0), 0 !== T.slides.length)) { 620 void 0 === T.slides[0].swiperSlideOffset && T.updateSlidesOffset(); 621 var a = -e; 622 T.rtl && (a = e), T.slides.removeClass(T.params.slideVisibleClass); 623 for (var t = 0; t < T.slides.length; t++) { 624 var s = T.slides[t], 625 i = (a + (T.params.centeredSlides ? T.minTranslate() : 0) - s.swiperSlideOffset) / (s.swiperSlideSize + T.params.spaceBetween); 626 if (T.params.watchSlidesVisibility) { 627 var r = -(a - s.swiperSlideOffset), 628 n = r + T.slidesSizesGrid[t]; 629 ((r >= 0 && r < T.size) || (n > 0 && n <= T.size) || (r <= 0 && n >= T.size)) && T.slides.eq(t).addClass(T.params.slideVisibleClass); 630 } 631 s.progress = T.rtl ? -i : i; 632 } 633 } 634 }), 635 (T.updateProgress = function (e) { 636 void 0 === e && (e = T.translate || 0); 637 var a = T.maxTranslate() - T.minTranslate(), 638 t = T.isBeginning, 639 s = T.isEnd; 640 0 === a ? ((T.progress = 0), (T.isBeginning = T.isEnd = !0)) : ((T.progress = (e - T.minTranslate()) / a), (T.isBeginning = T.progress <= 0), (T.isEnd = T.progress >= 1)), 641 T.isBeginning && !t && T.emit("onReachBeginning", T), 642 T.isEnd && !s && T.emit("onReachEnd", T), 643 T.params.watchSlidesProgress && T.updateSlidesProgress(e), 644 T.emit("onProgress", T, T.progress); 645 }), 646 (T.updateActiveIndex = function () { 647 var e, 648 a, 649 t, 650 s = T.rtl ? T.translate : -T.translate; 651 for (a = 0; a < T.slidesGrid.length; a++) 652 void 0 !== T.slidesGrid[a + 1] 653 ? s >= T.slidesGrid[a] && s < T.slidesGrid[a + 1] - (T.slidesGrid[a + 1] - T.slidesGrid[a]) / 2 654 ? (e = a) 655 : s >= T.slidesGrid[a] && s < T.slidesGrid[a + 1] && (e = a + 1) 656 : s >= T.slidesGrid[a] && (e = a); 657 T.params.normalizeSlideIndex && (e < 0 || void 0 === e) && (e = 0), 658 (t = Math.floor(e / T.params.slidesPerGroup)), 659 t >= T.snapGrid.length && (t = T.snapGrid.length - 1), 660 e !== T.activeIndex && ((T.snapIndex = t), (T.previousIndex = T.activeIndex), (T.activeIndex = e), T.updateClasses(), T.updateRealIndex()); 661 }), 662 (T.updateRealIndex = function () { 663 T.realIndex = parseInt(T.slides.eq(T.activeIndex).attr("data-swiper-slide-index") || T.activeIndex, 10); 664 }), 665 (T.updateClasses = function () { 666 T.slides.removeClass(T.params.slideActiveClass + " " + T.params.slideNextClass + " " + T.params.slidePrevClass + " " + T.params.slideDuplicateActiveClass + " " + T.params.slideDuplicateNextClass + " " + T.params.slideDuplicatePrevClass);
667 var a = T.slides.eq(T.activeIndex); 668 a.addClass(T.params.slideActiveClass), 669 i.loop && 670 (a.hasClass(T.params.slideDuplicateClass) 671 ? T.wrapper.children("." + T.params.slideClass + ":not(." + T.params.slideDuplicateClass + ')[data-swiper-slide-index="' + T.realIndex + '"]').addClass(T.params.slideDuplicateActiveClass) 672 : T.wrapper.children("." + T.params.slideClass + "." + T.params.slideDuplicateClass + '[data-swiper-slide-index="' + T.realIndex + '"]').addClass(T.params.slideDuplicateActiveClass)); 673 var t = a.next("." + T.params.slideClass).addClass(T.params.slideNextClass); 674 T.params.loop && 0 === t.length && ((t = T.slides.eq(0)), t.addClass(T.params.slideNextClass)); 675 var s = a.prev("." + T.params.slideClass).addClass(T.params.slidePrevClass); 676 if ( 677 (T.params.loop && 0 === s.length && ((s = T.slides.eq(-1)), s.addClass(T.params.slidePrevClass)), 678 i.loop && 679 (t.hasClass(T.params.slideDuplicateClass) 680 ? T.wrapper.children("." + T.params.slideClass + ":not(." + T.params.slideDuplicateClass + ')[data-swiper-slide-index="' + t.attr("data-swiper-slide-index") + '"]').addClass(T.params.slideDuplicateNextClass) 681 : T.wrapper.children("." + T.params.slideClass + "." + T.params.slideDuplicateClass + '[data-swiper-slide-index="' + t.attr("data-swiper-slide-index") + '"]').addClass(T.params.slideDuplicateNextClass), 682 s.hasClass(T.params.slideDuplicateClass) 683 ? T.wrapper.children("." + T.params.slideClass + ":not(." + T.params.slideDuplicateClass + ')[data-swiper-slide-index="' + s.attr("data-swiper-slide-index") + '"]').addClass(T.params.slideDuplicatePrevClass) 684 : T.wrapper.children("." + T.params.slideClass + "." + T.params.slideDuplicateClass + '[data-swiper-slide-index="' + s.attr("data-swiper-slide-index") + '"]').addClass(T.params.slideDuplicatePrevClass)), 685 T.paginationContainer && T.paginationContainer.length > 0) 686 ) { 687 var r, 688 n = T.params.loop ? Math.ceil((T.slides.length - 2 * T.loopedSlides) / T.params.slidesPerGroup) : T.snapGrid.length; 689 if ( 690 (T.params.loop 691 ? ((r = Math.ceil((T.activeIndex - T.loopedSlides) / T.params.slidesPerGroup)), 692 r > T.slides.length - 1 - 2 * T.loopedSlides && (r -= T.slides.length - 2 * T.loopedSlides), 693 r > n - 1 && (r -= n), 694 r < 0 && "bullets" !== T.params.paginationType && (r = n + r)) 695 : (r = void 0 !== T.snapIndex ? T.snapIndex : T.activeIndex || 0), 696 "bullets" === T.params.paginationType && 697 T.bullets && 698 T.bullets.length > 0 && 699 (T.bullets.removeClass(T.params.bulletActiveClass), 700 T.paginationContainer.length > 1 701 ? T.bullets.each(function () { 702 e(this).index() === r && e(this).addClass(T.params.bulletActiveClass); 703 }) 704 : T.bullets.eq(r).addClass(T.params.bulletActiveClass)), 705 "fraction" === T.params.paginationType && (T.paginationContainer.find("." + T.params.paginationCurrentClass).text(r + 1), T.paginationContainer.find("." + T.params.paginationTotalClass).text(n)), 706 "progress" === T.params.paginationType) 707 ) { 708 var o = (r + 1) / n, 709 l = o, 710 p = 1; 711 T.isHorizontal() || ((p = o), (l = 1)), 712 T.paginationContainer 713 .find("." + T.params.paginationProgressbarClass) 714 .transform("translate3d(0,0,0) scaleX(" + l + ") scaleY(" + p + ")") 715 .transition(T.params.speed); 716 } 717 "custom" === T.params.paginationType && T.params.paginationCustomRender && (T.paginationContainer.html(T.params.paginationCustomRender(T, r + 1, n)), T.emit("onPaginationRendered", T, T.paginationContainer[0])); 718 } 719 T.params.loop || 720 (T.params.prevButton && 721 T.prevButton && 722 T.prevButton.length > 0 && 723 (T.isBeginning 724 ? (T.prevButton.addClass(T.params.buttonDisabledClass), T.params.a11y && T.a11y && T.a11y.disable(T.prevButton)) 725 : (T.prevButton.removeClass(T.params.buttonDisabledClass), T.params.a11y && T.a11y && T.a11y.enable(T.prevButton))), 726 T.params.nextButton && 727 T.nextButton && 728 T.nextButton.length > 0 && 729 (T.isEnd 730 ? (T.nextButton.addClass(T.params.buttonDisabledClass), T.params.a11y && T.a11y && T.a11y.disable(T.nextButton)) 731 : (T.nextButton.removeClass(T.params.buttonDisabledClass), T.params.a11y && T.a11y && T.a11y.enable(T.nextButton)))); 732 }), 733 (T.updatePagination = function () { 734 if (T.params.pagination && T.paginationContainer && T.paginationContainer.length > 0) { 735 var e = ""; 736 if ("bullets" === T.params.paginationType) { 737 for (var a = T.params.loop ? Math.ceil((T.slides.length - 2 * T.loopedSlides) / T.params.slidesPerGroup) : T.snapGrid.length, t = 0; t < a; t++) 738 e += T.params.paginationBulletRender ? T.params.paginationBulletRender(T, t, T.params.bulletClass) : "<" + T.params.paginationElement + ' class="' + T.params.bulletClass + '"></' + T.params.paginationElement + ">"; 739 T.paginationContainer.html(e), (T.bullets = T.paginationContainer.find("." + T.params.bulletClass)), T.params.paginationClickable && T.params.a11y && T.a11y && T.a11y.initPagination(); 740 } 741 "fraction" === T.params.paginationType && 742 ((e = T.params.paginationFractionRender 743 ? T.params.paginationFractionRender(T, T.params.paginationCurrentClass, T.params.paginationTotalClass) 744 : '<span class="' + T.params.paginationCurrentClass + '"></span> / <span class="' + T.params.paginationTotalClass + '"></span>'), 745 T.paginationContainer.html(e)), 746 "progress" === T.params.paginationType && 747 ((e = T.params.paginationProgressRender ? T.params.paginationProgressRender(T, T.params.paginationProgressbarClass) : '<span class="' + T.params.paginationProgressbarClass + '"></span>'), T.paginationContainer.html(e)), 748 "custom" !== T.params.paginationType && T.emit("onPaginationRendered", T, T.paginationContainer[0]); 749 } 750 }), 751 (T.update = function (e) { 752 function a() { 753 T.rtl, T.translate; 754 (t = Math.min(Math.max(T.translate, T.maxTranslate()), T.minTranslate())), T.setWrapperTranslate(t), T.updateActiveIndex(), T.updateClasses(); 755 } 756 if (T) { 757 T.updateContainerSize(), T.updateSlidesSize(), T.updateProgress(), T.updatePagination(), T.updateClasses(), T.params.scrollbar && T.scrollbar && T.scrollbar.set(); 758 var t; 759 if (e) { 760 T.controller && T.controller.spline && (T.controller.spline = void 0), 761 T.params.freeMode 762 ? (a(), T.params.autoHeight && T.updateAutoHeight()) 763 : (("auto" === T.params.slidesPerView || T.params.slidesPerView > 1) && T.isEnd && !T.params.centeredSlides ? T.slideTo(T.slides.length - 1, 0, !1, !0) : T.slideTo(T.activeIndex, 0, !1, !0)) || a(); 764 } else T.params.autoHeight && T.updateAutoHeight(); 765 } 766 }), 767 (T.onResize = function (e) { 768 T.params.onBeforeResize && T.params.onBeforeResize(T), T.params.breakpoints && T.setBreakpoint(); 769 var a = T.params.allowSwipeToPrev, 770 t = T.params.allowSwipeToNext; 771 (T.params.allowSwipeToPrev = T.params.allowSwipeToNext = !0), 772 T.updateContainerSize(), 773 T.updateSlidesSize(), 774 ("auto" === T.params.slidesPerView || T.params.freeMode || e) && T.updatePagination(), 775 T.params.scrollbar && T.scrollbar && T.scrollbar.set(), 776 T.controller && T.controller.spline && (T.controller.spline = void 0); 777 var s = !1; 778 if (T.params.freeMode) { 779 var i = Math.min(Math.max(T.translate, T.maxTranslate()), T.minTranslate()); 780 T.setWrapperTranslate(i), T.updateActiveIndex(), T.updateClasses(), T.params.autoHeight && T.updateAutoHeight(); 781 } else T.updateClasses(), (s = ("auto" === T.params.slidesPerView || T.params.slidesPerView > 1) && T.isEnd && !T.params.centeredSlides ? T.slideTo(T.slides.length - 1, 0, !1, !0) : T.slideTo(T.activeIndex, 0, !1, !0)); 782 T.params.lazyLoading && !s && T.lazy && T.lazy.load(), (T.params.allowSwipeToPrev = a), (T.params.allowSwipeToNext = t), T.params.onAfterResize && T.params.onAfterResize(T); 783 }), 784 (T.touchEventsDesktop = {start: "mousedown", move: "mousemove", end: "mouseup"}), 785 window.navigator.pointerEnabled 786 ? (T.touchEventsDesktop = {start: "pointerdown", move: "pointermove", end: "pointerup"}) 787 : window.navigator.msPointerEnabled && (T.touchEventsDesktop = {start: "MSPointerDown", move: "MSPointerMove", end: "MSPointerUp"}), 788 (T.touchEvents = { 789 start: T.support.touch || !T.params.simulateTouch ? "touchstart" : T.touchEventsDesktop.start, 790 move: T.support.touch || !T.params.simulateTouch ? "touchmove" : T.touchEventsDesktop.move,
791 end: T.support.touch || !T.params.simulateTouch ? "touchend" : T.touchEventsDesktop.end, 792 }), 793 (window.navigator.pointerEnabled || window.navigator.msPointerEnabled) && ("container" === T.params.touchEventsTarget ? T.container : T.wrapper).addClass("swiper-wp8-" + T.params.direction), 794 (T.initEvents = function (e) { 795 var a = e ? "off" : "on", 796 t = e ? "removeEventListener" : "addEventListener", 797 s = "container" === T.params.touchEventsTarget ? T.container[0] : T.wrapper[0], 798 r = T.support.touch ? s : document, 799 n = !!T.params.nested; 800 if (T.browser.ie) s[t](T.touchEvents.start, T.onTouchStart, !1), r[t](T.touchEvents.move, T.onTouchMove, n), r[t](T.touchEvents.end, T.onTouchEnd, !1); 801 else { 802 if (T.support.touch) { 803 var o = !("touchstart" !== T.touchEvents.start || !T.support.passiveListener || !T.params.passiveListeners) && {passive: !0, capture: !1}; 804 s[t](T.touchEvents.start, T.onTouchStart, o), s[t](T.touchEvents.move, T.onTouchMove, n), s[t](T.touchEvents.end, T.onTouchEnd, o); 805 } 806 ((i.simulateTouch && !T.device.ios && !T.device.android) || (i.simulateTouch && !T.support.touch && T.device.ios)) && 807 (s[t]("mousedown", T.onTouchStart, !1), document[t]("mousemove", T.onTouchMove, n), document[t]("mouseup", T.onTouchEnd, !1)); 808 } 809 window[t]("resize", T.onResize), 810 T.params.nextButton && T.nextButton && T.nextButton.length > 0 && (T.nextButton[a]("click", T.onClickNext), T.params.a11y && T.a11y && T.nextButton[a]("keydown", T.a11y.onEnterKey)), 811 T.params.prevButton && T.prevButton && T.prevButton.length > 0 && (T.prevButton[a]("click", T.onClickPrev), T.params.a11y && T.a11y && T.prevButton[a]("keydown", T.a11y.onEnterKey)), 812 T.params.pagination && 813 T.params.paginationClickable && 814 (T.paginationContainer[a]("click", "." + T.params.bulletClass, T.onClickIndex), T.params.a11y && T.a11y && T.paginationContainer[a]("keydown", "." + T.params.bulletClass, T.a11y.onEnterKey)), 815 (T.params.preventClicks || T.params.preventClicksPropagation) && s[t]("click", T.preventClicks, !0); 816 }), 817 (T.attachEvents = function () { 818 T.initEvents(); 819 }), 820 (T.detachEvents = function () { 821 T.initEvents(!0); 822 }), 823 (T.allowClick = !0), 824 (T.preventClicks = function (e) { 825 T.allowClick || (T.params.preventClicks && e.preventDefault(), T.params.preventClicksPropagation && T.animating && (e.stopPropagation(), e.stopImmediatePropagation())); 826 }), 827 (T.onClickNext = function (e) { 828 e.preventDefault(), (T.isEnd && !T.params.loop) || T.slideNext(); 829 }), 830 (T.onClickPrev = function (e) { 831 e.preventDefault(), (T.isBeginning && !T.params.loop) || T.slidePrev(); 832 }), 833 (T.onClickIndex = function (a) { 834 a.preventDefault(); 835 var t = e(this).index() * T.params.slidesPerGroup; 836 T.params.loop && (t += T.loopedSlides), T.slideTo(t); 837 }), 838 (T.updateClickedSlide = function (a) { 839 var t = o(a, "." + T.params.slideClass), 840 s = !1; 841 if (t) for (var i = 0; i < T.slides.length; i++) T.slides[i] === t && (s = !0); 842 if (!t || !s) return (T.clickedSlide = void 0), void (T.clickedIndex = void 0); 843 if (((T.clickedSlide = t), (T.clickedIndex = e(t).index()), T.params.slideToClickedSlide && void 0 !== T.clickedIndex && T.clickedIndex !== T.activeIndex)) { 844 var r, 845 n = T.clickedIndex, 846 l = "auto" === T.params.slidesPerView ? T.currentSlidesPerView() : T.params.slidesPerView; 847 if (T.params.loop) { 848 if (T.animating) return; 849 (r = parseInt(e(T.clickedSlide).attr("data-swiper-slide-index"), 10)), 850 T.params.centeredSlides 851 ? n < T.loopedSlides - l / 2 || n > T.slides.length - T.loopedSlides + l / 2 852 ? (T.fixLoop(), 853 (n = T.wrapper 854 .children("." + T.params.slideClass + '[data-swiper-slide-index="' + r + '"]:not(.' + T.params.slideDuplicateClass + ")") 855 .eq(0) 856 .index()), 857 setTimeout(function () { 858 T.slideTo(n); 859 }, 0)) 860 : T.slideTo(n) 861 : n > T.slides.length - l 862 ? (T.fixLoop(), 863 (n = T.wrapper 864 .children("." + T.params.slideClass + '[data-swiper-slide-index="' + r + '"]:not(.' + T.params.slideDuplicateClass + ")") 865 .eq(0) 866 .index()), 867 setTimeout(function () { 868 T.slideTo(n); 869 }, 0)) 870 : T.slideTo(n); 871 } else T.slideTo(n); 872 } 873 }); 874 var S, 875 C, 876 z, 877 M, 878 E, 879 P, 880 I, 881 k, 882 L, 883 D, 884 B = "input, select, textarea, button, video", 885 H = Date.now(), 886 G = []; 887 (T.animating = !1), (T.touches = {startX: 0, startY: 0, currentX: 0, currentY: 0, diff: 0}); 888 var X, A; 889 (T.onTouchStart = function (a) { 890 if ((a.originalEvent && (a = a.originalEvent), (X = "touchstart" === a.type) || !("which" in a) || 3 !== a.which)) { 891 if (T.params.noSwiping && o(a, "." + T.params.noSwipingClass)) return void (T.allowClick = !0); 892 if (!T.params.swipeHandler || o(a, T.params.swipeHandler)) { 893 var t = (T.touches.currentX = "touchstart" === a.type ? a.targetTouches[0].pageX : a.pageX), 894 s = (T.touches.currentY = "touchstart" === a.type ? a.targetTouches[0].pageY : a.pageY); 895 if (!(T.device.ios && T.params.iOSEdgeSwipeDetection && t <= T.params.iOSEdgeSwipeThreshold)) { 896 if ( 897 ((S = !0), 898 (C = !1), 899 (z = !0), 900 (E = void 0), 901 (A = void 0), 902 (T.touches.startX = t), 903 (T.touches.startY = s), 904 (M = Date.now()), 905 (T.allowClick = !0), 906 T.updateContainerSize(), 907 (T.swipeDirection = void 0), 908 T.params.threshold > 0 && (k = !1), 909 "touchstart" !== a.type) 910 ) { 911 var i = !0; 912 e(a.target).is(B) && (i = !1), document.activeElement && e(document.activeElement).is(B) && document.activeElement.blur(), i && a.preventDefault(); 913 } 914 T.emit("onTouchStart", T, a); 915 } 916 } 917 } 918 }), 919 (T.onTouchMove = function (a) { 920 if ((a.originalEvent && (a = a.originalEvent), !X || "mousemove" !== a.type)) { 921 if (a.preventedByNestedSwiper) return (T.touches.startX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX), void (T.touches.startY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY); 922 if (T.params.onlyExternal) 923 return ( 924 (T.allowClick = !1), 925 void ( 926 S && ((T.touches.startX = T.touches.currentX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX), (T.touches.startY = T.touches.currentY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY), (M = Date.now())) 927 ) 928 ); 929 if (X && T.params.touchReleaseOnEdges && !T.params.loop) 930 if (T.isHorizontal()) { 931 if ((T.touches.currentX < T.touches.startX && T.translate <= T.maxTranslate()) || (T.touches.currentX > T.touches.startX && T.translate >= T.minTranslate())) return; 932 } else if ((T.touches.currentY < T.touches.startY && T.translate <= T.maxTranslate()) || (T.touches.currentY > T.touches.startY && T.translate >= T.minTranslate())) return; 933 if (X && document.activeElement && a.target === document.activeElement && e(a.target).is(B)) return (C = !0), void (T.allowClick = !1); 934 if ((z && T.emit("onTouchMove", T, a), !(a.targetTouches && a.targetTouches.length > 1))) { 935 if (((T.touches.currentX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX), (T.touches.currentY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY), void 0 === E)) { 936 var t; 937 (T.isHorizontal() && T.touches.currentY === T.touches.startY) || (!T.isHorizontal() && T.touches.currentX === T.touches.startX) 938 ? (E = !1) 939 : ((t = (180 * Math.atan2(Math.abs(T.touches.currentY - T.touches.startY), Math.abs(T.touches.currentX - T.touches.startX))) / Math.PI), (E = T.isHorizontal() ? t > T.params.touchAngle : 90 - t > T.params.touchAngle)); 940 } 941 if ((E && T.emit("onTouchMoveOpposite", T, a), void 0 === A && ((T.touches.currentX === T.touches.startX && T.touches.currentY === T.touches.startY) || (A = !0)), S)) { 942 if (E) return void (S = !1); 943 if (A) { 944 (T.allowClick = !1), 945 T.emit("onSliderMove", T, a), 946 a.preventDefault(), 947 T.params.touchMoveStopPropagation && !T.params.nested && a.stopPropagation(), 948 C || 949 (i.loop && T.fixLoop(), 950 (I = T.getWrapperTranslate()), 951 T.setWrapperTransition(0), 952 T.animating && T.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"), 953 T.params.autoplay && T.autoplaying && (T.params.autoplayDisableOnInteraction ? T.stopAutoplay() : T.pauseAutoplay()), 954 (D = !1), 955 !T.params.grabCursor || (T.params.allowSwipeToNext !== !0 && T.params.allowSwipeToPrev !== !0) || T.setGrabCursor(!0)), 956 (C = !0); 957 var s = (T.touches.diff = T.isHorizontal() ? T.touches.currentX - T.touches.startX : T.touches.currentY - T.touches.startY); 958 (s *= T.params.touchRatio), T.rtl && (s = -s), (T.swipeDirection = s > 0 ? "prev" : "next"), (P = s + I); 959 var r = !0; 960 if ( 961 (s > 0 && P > T.minTranslate() 962 ? ((r = !1), T.params.resistance && (P = T.minTranslate() - 1 + Math.pow(-T.minTranslate() + I + s, T.params.resistanceRatio))) 963 : s < 0 && P < T.maxTranslate() && ((r = !1), T.params.resistance && (P = T.maxTranslate() + 1 - Math.pow(T.maxTranslate() - I - s, T.params.resistanceRatio))), 964 r && (a.preventedByNestedSwiper = !0), 965 !T.params.allowSwipeToNext && "next" === T.swipeDirection && P < I && (P = I), 966 !T.params.allowSwipeToPrev && "prev" === T.swipeDirection && P > I && (P = I), 967 T.params.threshold > 0) 968 ) { 969 if (!(Math.abs(s) > T.params.threshold || k)) return void (P = I); 970 if (!k) 971 return ( 972 (k = !0), (T.touches.startX = T.touches.currentX), (T.touches.startY = T.touches.currentY), (P = I), void (T.touches.diff = T.isHorizontal() ? T.touches.currentX - T.touches.startX : T.touches.currentY - T.touches.startY) 973 ); 974 } 975 T.params.followFinger && 976 ((T.params.freeMode || T.params.watchSlidesProgress) && T.updateActiveIndex(), 977 T.params.freeMode && 978 (0 === G.length && G.push({position: T.touches[T.isHorizontal() ? "startX" : "startY"], time: M}), G.push({position: T.touches[T.isHorizontal() ? "currentX" : "currentY"], time: new window.Date().getTime()})), 979 T.updateProgress(P), 980 T.setWrapperTranslate(P)); 981 } 982 } 983 } 984 } 985 }), 986 (T.onTouchEnd = function (a) { 987 if ((a.originalEvent && (a = a.originalEvent), z && T.emit("onTouchEnd", T, a), (z = !1), S)) { 988 T.params.grabCursor && C && S && (T.params.allowSwipeToNext === !0 || T.params.allowSwipeToPrev === !0) && T.setGrabCursor(!1); 989 var t = Date.now(), 990 s = t - M; 991 if ( 992 (T.allowClick && 993 (T.updateClickedSlide(a), 994 T.emit("onTap", T, a), 995 s < 300 && 996 t - H > 300 && 997 (L && clearTimeout(L), 998 (L = setTimeout(function () { 999 T && (T.params.paginationHide && T.paginationContainer.length > 0 && !e(a.target).hasClass(T.params.bulletClass) && T.paginationContainer.toggleClass(T.params.paginationHiddenClass), T.emit("onClick", T, a)); 1000 }, 300))), 1001 s < 300 && t - H < 300 && (L && clearTimeout(L), T.emit("onDoubleTap", T, a))), 1002 (H = Date.now()), 1003 setTimeout(function () { 1004 T && (T.allowClick = !0); 1005 }, 0), 1006 !S || !C || !T.swipeDirection || 0 === T.touches.diff || P === I) 1007 ) 1008 return void (S = C = !1); 1009 S = C = !1; 1010 var i; 1011 if (((i = T.params.followFinger ? (T.rtl ? T.translate : -T.translate) : -P), T.params.freeMode)) { 1012 if (i < -T.minTranslate()) return void T.slideTo(T.activeIndex); 1013 if (i > -T.maxTranslate()) return void (T.slides.length < T.snapGrid.length ? T.slideTo(T.snapGrid.length - 1) : T.slideTo(T.slides.length - 1)); 1014 if (T.params.freeModeMomentum) { 1015 if (G.length > 1) { 1016 var r = G.pop(), 1017 n = G.pop(), 1018 o = r.position - n.position, 1019 l = r.time - n.time; 1020 (T.velocity = o / l), (T.velocity = T.velocity / 2), Math.abs(T.velocity) < T.params.freeModeMinimumVelocity && (T.velocity = 0), (l > 150 || new window.Date().getTime() - r.time > 300) && (T.velocity = 0); 1021 } else T.velocity = 0; 1022 (T.velocity = T.velocity * T.params.freeModeMomentumVelocityRatio), (G.length = 0); 1023 var p = 1e3 * T.params.freeModeMomentumRatio, 1024 d = T.velocity * p, 1025 u = T.translate + d; 1026 T.rtl && (u = -u); 1027 var c, 1028 m = !1, 1029 h = 20 * Math.abs(T.velocity) * T.params.freeModeMomentumBounceRatio; 1030 if (u < T.maxTranslate()) T.params.freeModeMomentumBounce ? (u + T.maxTranslate() < -h && (u = T.maxTranslate() - h), (c = T.maxTranslate()), (m = !0), (D = !0)) : (u = T.maxTranslate()); 1031 else if (u > T.minTranslate()) T.params.freeModeMomentumBounce ? (u - T.minTranslate() > h && (u = T.minTranslate() + h), (c = T.minTranslate()), (m = !0), (D = !0)) : (u = T.minTranslate()); 1032 else if (T.params.freeModeSticky) { 1033 var g, 1034 f = 0; 1035 for (f = 0; f < T.snapGrid.length; f += 1) 1036 if (T.snapGrid[f] > -u) { 1037 g = f; 1038 break; 1039 } 1040 (u = Math.abs(T.snapGrid[g] - u) < Math.abs(T.snapGrid[g - 1] - u) || "next" === T.swipeDirection ? T.snapGrid[g] : T.
1040snapGrid[g - 1]), T.rtl || (u = -u); 1041 } 1042 if (0 !== T.velocity) p = T.rtl ? Math.abs((-u - T.translate) / T.velocity) : Math.abs((u - T.translate) / T.velocity); 1043 else if (T.params.freeModeSticky) return void T.slideReset(); 1044 T.params.freeModeMomentumBounce && m 1045 ? (T.updateProgress(c), 1046 T.setWrapperTransition(p), 1047 T.setWrapperTranslate(u), 1048 T.onTransitionStart(), 1049 (T.animating = !0), 1050 T.wrapper.transitionEnd(function () { 1051 T && 1052 D && 1053 (T.emit("onMomentumBounce", T), 1054 T.setWrapperTransition(T.params.speed), 1055 T.setWrapperTranslate(c), 1056 T.wrapper.transitionEnd(function () { 1057 T && T.onTransitionEnd(); 1058 })); 1059 })) 1060 : T.velocity 1061 ? (T.updateProgress(u), 1062 T.setWrapperTransition(p), 1063 T.setWrapperTranslate(u), 1064 T.onTransitionStart(), 1065 T.animating || 1066 ((T.animating = !0), 1067 T.wrapper.transitionEnd(function () { 1068 T && T.onTransitionEnd(); 1069 }))) 1070 : T.updateProgress(u), 1071 T.updateActiveIndex(); 1072 } 1073 return void ((!T.params.freeModeMomentum || s >= T.params.longSwipesMs) && (T.updateProgress(), T.updateActiveIndex())); 1074 } 1075 var v, 1076 w = 0, 1077 y = T.slidesSizesGrid[0]; 1078 for (v = 0; v < T.slidesGrid.length; v += T.params.slidesPerGroup) 1079 void 0 !== T.slidesGrid[v + T.params.slidesPerGroup] 1080 ? i >= T.slidesGrid[v] && i < T.slidesGrid[v + T.params.slidesPerGroup] && ((w = v), (y = T.slidesGrid[v + T.params.slidesPerGroup] - T.slidesGrid[v])) 1081 : i >= T.slidesGrid[v] && ((w = v), (y = T.slidesGrid[T.slidesGrid.length - 1] - T.slidesGrid[T.slidesGrid.length - 2])); 1082 var x = (i - T.slidesGrid[w]) / y; 1083 if (s > T.params.longSwipesMs) { 1084 if (!T.params.longSwipes) return void T.slideTo(T.activeIndex); 1085 "next" === T.swipeDirection && (x >= T.params.longSwipesRatio ? T.slideTo(w + T.params.slidesPerGroup) : T.slideTo(w)), 1086 "prev" === T.swipeDirection && (x > 1 - T.params.longSwipesRatio ? T.slideTo(w + T.params.slidesPerGroup) : T.slideTo(w)); 1087 } else { 1088 if (!T.params.shortSwipes) return void T.slideTo(T.activeIndex); 1089 "next" === T.swipeDirection && T.slideTo(w + T.params.slidesPerGroup), "prev" === T.swipeDirection && T.slideTo(w); 1090 } 1091 } 1092 }), 1093 (T._slideTo = function (e, a) { 1094 return T.slideTo(e, a, !0, !0); 1095 }), 1096 (T.slideTo = function (e, a, t, s) { 1097 void 0 === t && (t = !0), void 0 === e && (e = 0), e < 0 && (e = 0), (T.snapIndex = Math.floor(e / T.params.slidesPerGroup)), T.snapIndex >= T.snapGrid.length && (T.snapIndex = T.snapGrid.length - 1); 1098 var i = -T.snapGrid[T.snapIndex]; 1099 if ((T.params.autoplay && T.autoplaying && (s || !T.params.autoplayDisableOnInteraction ? T.pauseAutoplay(a) : T.stopAutoplay()), T.updateProgress(i), T.params.normalizeSlideIndex)) 1100 for (var r = 0; r < T.slidesGrid.length; r++) -Math.floor(100 * i) >= Math.floor(100 * T.slidesGrid[r]) && (e = r); 1101 return ( 1102 !(!T.params.allowSwipeToNext && i < T.translate && i < T.minTranslate()) && 1103 !(!T.params.allowSwipeToPrev && i > T.translate && i > T.maxTranslate() && (T.activeIndex || 0) !== e) && 1104 (void 0 === a && (a = T.params.speed), 1105 (T.previousIndex = T.activeIndex || 0), 1106 (T.activeIndex = e), 1107 T.updateRealIndex(), 1108 (T.rtl && -i === T.translate) || (!T.rtl && i === T.translate) 1109 ? (T.params.autoHeight && T.updateAutoHeight(), T.updateClasses(), "slide" !== T.params.effect && T.setWrapperTranslate(i), !1) 1110 : (T.updateClasses(), 1111 T.onTransitionStart(t), 1112 0 === a || T.browser.lteIE9 1113 ? (T.setWrapperTranslate(i), T.setWrapperTransition(0), T.onTransitionEnd(t)) 1114 : (T.setWrapperTranslate(i), 1115 T.setWrapperTransition(a), 1116 T.animating || 1117 ((T.animating = !0), 1118 T.wrapper.transitionEnd(function () { 1119 T && T.onTransitionEnd(t); 1120 }))), 1121 !0)) 1122 ); 1123 }), 1124 (T.onTransitionStart = function (e) { 1125 void 0 === e && (e = !0), 1126 T.params.autoHeight && T.updateAutoHeight(), 1127 T.lazy && T.lazy.onTransitionStart(), 1128 e && (T.emit("onTransitionStart", T), T.activeIndex !== T.previousIndex && (T.emit("onSlideChangeStart", T), T.activeIndex > T.previousIndex ? T.emit("onSlideNextStart", T) : T.emit("onSlidePrevStart", T))); 1129 }), 1130 (T.onTransitionEnd = function (e) { 1131 (T.animating = !1), 1132 T.setWrapperTransition(0), 1133 void 0 === e && (e = !0), 1134 T.lazy && T.lazy.onTransitionEnd(), 1135 e && (T.emit("onTransitionEnd", T), T.activeIndex !== T.previousIndex && (T.emit("onSlideChangeEnd", T), T.activeIndex > T.previousIndex ? T.emit("onSlideNextEnd", T) : T.emit("onSlidePrevEnd", T))), 1136 T.params.history && T.history && T.history.setHistory(T.params.history, T.activeIndex), 1137 T.params.hashnav && T.hashnav && T.hashnav.setHash(); 1138 }), 1139 (T.slideNext = function (e, a, t) { 1140 if (T.params.loop) { 1141 if (T.animating) return !1; 1142 T.fixLoop(); 1143 T.container[0].clientLeft;
1144 return T.slideTo(T.activeIndex + T.params.slidesPerGroup, a, e, t); 1145 } 1146 return T.slideTo(T.activeIndex + T.params.slidesPerGroup, a, e, t); 1147 }), 1148 (T._slideNext = function (e) { 1149 return T.slideNext(!0, e, !0); 1150 }), 1151 (T.slidePrev = function (e, a, t) { 1152 if (T.params.loop) { 1153 if (T.animating) return !1; 1154 T.fixLoop(); 1155 T.container[0].clientLeft; 1156 return T.slideTo(T.activeIndex - 1, a, e, t); 1157 } 1158 return T.slideTo(T.activeIndex - 1, a, e, t); 1159 }), 1160 (T._slidePrev = function (e) { 1161 return T.slidePrev(!0, e, !0); 1162 }), 1163 (T.slideReset = function (e, a, t) { 1164 return T.slideTo(T.activeIndex, a, e); 1165 }), 1166 (T.disableTouchControl = function () { 1167 return (T.params.onlyExternal = !0), !0; 1168 }), 1169 (T.enableTouchControl = function () { 1170 return (T.params.onlyExternal = !1), !0; 1171 }), 1172 (T.setWrapperTransition = function (e, a) { 1173 T.wrapper.transition(e), 1174 "slide" !== T.params.effect && T.effects[T.params.effect] && T.effects[T.params.effect].setTransition(e), 1175 T.params.parallax && T.parallax && T.parallax.setTransition(e), 1176 T.params.scrollbar && T.scrollbar && T.scrollbar.setTransition(e), 1177 T.params.control && T.controller && T.controller.setTransition(e, a), 1178 T.emit("onSetTransition", T, e); 1179 }), 1180 (T.setWrapperTranslate = function (e, a, t) { 1181 var s = 0, 1182 i = 0; 1183 T.isHorizontal() ? (s = T.rtl ? -e : e) : (i = e), 1184 T.params.roundLengths && ((s = r(s)), (i = r(i))), 1185 T.params.virtualTranslate || (T.support.transforms3d ? T.wrapper.transform("translate3d(" + s + "px, " + i + "px, 0px)") : T.wrapper.transform("translate(" + s + "px, " + i + "px)")), 1186 (T.translate = T.isHorizontal() ? s : i); 1187 var n, 1188 o = T.maxTranslate() - T.minTranslate(); 1189 (n = 0 === o ? 0 : (e - T.minTranslate()) / o), 1190 n !== T.progress && T.updateProgress(e), 1191 a && T.updateActiveIndex(), 1192 "slide" !== T.params.effect && T.effects[T.params.effect] && T.effects[T.params.effect].setTranslate(T.translate), 1193 T.params.parallax && T.parallax && T.parallax.setTranslate(T.translate), 1194 T.params.scrollbar && T.scrollbar && T.scrollbar.setTranslate(T.translate), 1195 T.params.control && T.controller && T.controller.setTranslate(T.translate, t), 1196 T.emit("onSetTranslate", T, T.translate); 1197 }), 1198 (T.getTranslate = function (e, a) { 1199 var t, s, i, r; 1200 return ( 1201 void 0 === a && (a = "x"), 1202 T.params.virtualTranslate 1203 ? T.rtl 1204 ? -T.translate 1205 : T.translate 1206 : ((i = window.getComputedStyle(e, null)), 1207 window.WebKitCSSMatrix 1208 ? ((s = i.transform || i.webkitTransform), 1209 s.split(",").length > 6 && 1210 (s = s 1211 .split(", ") 1212 .map(function (e) { 1213 return e.replace(",", "."); 1214 }) 1215 .join(", ")), 1216 (r = new window.WebKitCSSMatrix("none" === s ? "" : s))) 1217 : ((r = i.MozTransform || i.OTransform || i.MsTransform || i.msTransform || i.transform || i.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,")), (t = r.toString().split(","))), 1218 "x" === a && (s = window.WebKitCSSMatrix ? r.m41 : 16 === t.length ? parseFloat(t[12]) : parseFloat(t[4])), 1219 "y" === a && (s = window.WebKitCSSMatrix ? r.m42 : 16 === t.length ? parseFloat(t[13]) : parseFloat(t[5])), 1220 T.rtl && s && (s = -s), 1221 s || 0) 1222 ); 1223 }), 1224 (T.getWrapperTranslate = function (e) { 1225 return void 0 === e && (e = T.isHorizontal() ? "x" : "y"), T.getTranslate(T.wrapper[0], e); 1226 }), 1227 (T.observers = []), 1228 (T.initObservers = function () { 1229 if (T.params.observeParents) for (var e = T.container.parents(), a = 0; a < e.length; a++) l(e[a]); 1230 l(T.container[0], {childList: !1}
1230), l(T.wrapper[0], {attributes: !1}); 1231 }), 1232 (T.disconnectObservers = function () { 1233 for (var e = 0; e < T.observers.length; e++) T.observers[e].disconnect(); 1234 T.observers = []; 1235 }), 1236 (T.createLoop = function () { 1237 T.wrapper.children("." + T.params.slideClass + "." + T.params.slideDuplicateClass).remove(); 1238 var a = T.wrapper.children("." + T.params.slideClass); 1239 "auto" !== T.params.slidesPerView || T.params.loopedSlides || (T.params.loopedSlides = a.length), 1240 (T.loopedSlides = parseInt(T.params.loopedSlides || T.params.slidesPerView, 10)), 1241 (T.loopedSlides = T.loopedSlides + T.params.loopAdditionalSlides), 1242 T.loopedSlides > a.length && (T.loopedSlides = a.length); 1243 var t, 1244 s = [], 1245 i = []; 1246 for ( 1247 a.each(function (t, r) { 1248 var n = e(this); 1249 t < T.loopedSlides && i.push(r), t < a.length && t >= a.length - T.loopedSlides && s.push(r), n.attr("data-swiper-slide-index", t); 1250 }), 1251 t = 0; 1252 t < i.length; 1253 t++ 1254 ) 1255 T.wrapper.append(e(i[t].cloneNode(!0)).addClass(T.params.slideDuplicateClass)); 1256 for (t = s.length - 1; t >= 0; t--) T.wrapper.prepend(e(s[t].cloneNode(!0)).addClass(T.params.slideDuplicateClass)); 1257 }), 1258 (T.destroyLoop = function () { 1259 T.wrapper.children("." + T.params.slideClass + "." + T.params.slideDuplicateClass).remove(), T.slides.removeAttr("data-swiper-slide-index"); 1260 }), 1261 (T.reLoop = function (e) { 1262 var a = T.activeIndex - T.loopedSlides; 1263 T.destroyLoop(), T.createLoop(), T.updateSlidesSize(), e && T.slideTo(a + T.loopedSlides, 0, !1); 1264 }), 1265 (T.fixLoop = function () { 1266 var e; 1267 T.activeIndex < T.loopedSlides 1268 ? ((e = T.slides.length - 3 * T.loopedSlides + T.activeIndex), (e += T.loopedSlides), T.slideTo(e, 0, !1, !0)) 1269 : (("auto" === T.params.slidesPerView && T.activeIndex >= 2 * T.loopedSlides) || T.activeIndex > T.slides.length - 2 * T.params.slidesPerView) && 1270 ((e = -T.slides.length + T.activeIndex + T.loopedSlides), (e += T.loopedSlides), T.slideTo(e, 0, !1, !0)); 1271 }), 1272 (T.appendSlide = function (e) { 1273 if ((T.params.loop && T.destroyLoop(), "object" == typeof e && e.length)) for (var a = 0; a < e.length; a++) e[a] && T.wrapper.append(e[a]); 1274 else T.wrapper.append(e); 1275 T.params.loop && T.createLoop(), (T.params.observer && T.support.observer) || T.update(!0); 1276 }), 1277 (T.prependSlide = function (e) { 1278 T.params.loop && T.destroyLoop(); 1279 var a = T.activeIndex + 1; 1280 if ("object" == typeof e && e.length) { 1281 for (var t = 0; t < e.length; t++) e[t] && T.wrapper.prepend(e[t]); 1282 a = T.activeIndex + e.length; 1283 } else T.wrapper.prepend(e); 1284 T.params.loop && T.createLoop(), (T.params.observer && T.support.observer) || T.update(!0), T.slideTo(a, 0, !1); 1285 }), 1286 (T.removeSlide = function (e) { 1287 T.params.loop && (T.destroyLoop(), (T.slides = T.wrapper.children("." + T.params.slideClass))); 1288 var a, 1289 t = T.activeIndex; 1290 if ("object" == typeof e && e.length) { 1291 for (var s = 0; s < e.length; s++) (a = e[s]), T.slides[a] && T.slides.eq(a).remove(), a < t && t--; 1292 t = Math.max(t, 0); 1293 } else (a = e), T.slides[a] && T.slides.eq(a).remove(), a < t && t--, (t = Math.max(t, 0)); 1294 T.params.loop && T.createLoop(), (T.params.observer && T.support.observer) || T.update(!0), T.params.loop ? T.slideTo(t + T.loopedSlides, 0, !1) : T.slideTo(t, 0, !1); 1295 }), 1296 (T.removeAllSlides = function () { 1297 for (var e = [], a = 0; a < T.slides.length; a++) e.push(a); 1298 T.removeSlide(e); 1299 }), 1300 (T.effects = { 1301 fade: { 1302 setTranslate: function () { 1303 for (var e = 0; e < T.slides.length; e++) {
1304 var a = T.slides.eq(e), 1305 t = a[0].swiperSlideOffset, 1306 s = -t; 1307 T.params.virtualTranslate || (s -= T.translate); 1308 var i = 0; 1309 T.isHorizontal() || ((i = s), (s = 0)); 1310 var r = T.params.fade.crossFade ? Math.max(1 - Math.abs(a[0].progress), 0) : 1 + Math.min(Math.max(a[0].progress, -1), 0); 1311 a.css({opacity: r}).transform("translate3d(" + s + "px, " + i + "px, 0px)"); 1312 } 1313 }, 1314 setTransition: function (e) { 1315 if ((T.slides.transition(e), T.params.virtualTranslate && 0 !== e)) { 1316 var a = !1; 1317 T.slides.transitionEnd(function () { 1318 if (!a && T) { 1319 (a = !0), (T.animating = !1); 1320 for (var e = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], t = 0; t < e.length; t++) T.wrapper.trigger(e[t]); 1321 } 1322 }); 1323 } 1324 }, 1325 }, 1326 flip: { 1327 setTranslate: function () { 1328 for (var a = 0; a < T.slides.length; a++) { 1329 var t = T.slides.eq(a), 1330 s = t[0].progress; 1331 T.params.flip.limitRotation && (s = Math.max(Math.min(t[0].progress, 1), -1)); 1332 var i = t[0].swiperSlideOffset, 1333 r = -180 * s, 1334 n = r, 1335 o = 0, 1336 l = -i, 1337 p = 0; 1338 if ((T.isHorizontal() ? T.rtl && (n = -n) : ((p = l), (l = 0), (o = -n), (n = 0)), (t[0].style.zIndex = -Math.abs(Math.round(s)) + T.slides.length), T.params.flip.slideShadows)) { 1339 var d = T.isHorizontal() ? t.find(".swiper-slide-shadow-left") : t.find(".swiper-slide-shadow-top"), 1340 u = T.isHorizontal() ? t.find(".swiper-slide-shadow-right") : t.find(".swiper-slide-shadow-bottom"); 1341 0 === d.length && ((d = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "left" : "top") + '"></div>')), t.append(d)), 1342 0 === u.length && ((u = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "right" : "bottom") + '"></div>')), t.append(u)), 1343 d.length && (d[0].style.opacity = Math.max(-s, 0)), 1344 u.length && (u[0].style.opacity = Math.max(s, 0)); 1345 } 1346 t.transform("translate3d(" + l + "px, " + p + "px, 0px) rotateX(" + o + "deg) rotateY(" + n + "deg)"); 1347 } 1348 }, 1349 setTransition: function (a) { 1350 if ((T.slides.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a), T.params.virtualTranslate && 0 !== a)) { 1351 var t = !1; 1352 T.slides.eq(T.activeIndex).transitionEnd(function () { 1353 if (!t && T && e(this).hasClass(T.params.slideActiveClass)) { 1354 (t = !0), (T.animating = !1); 1355 for (var a = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], s = 0; s < a.length; s++) T.wrapper.trigger(a[s]); 1356 } 1357 }); 1358 } 1359 }, 1360 }, 1361 cube: { 1362 setTranslate: function () { 1363 var a, 1364 t = 0; 1365 T.params.cube.shadow && 1366 (T.isHorizontal() 1367 ? ((a = T.wrapper.find(".swiper-cube-shadow")), 0 === a.length && ((a = e('<div class="swiper-cube-shadow"></div>')), T.wrapper.append(a)), a.css({height: T.width + "px"})) 1368 : ((a = T.container.find(".swiper-cube-shadow")), 0 === a.length && ((a = e('<div class="swiper-cube-shadow"></div>')), T.container.append(a)))); 1369 for (var s = 0; s < T.slides.length; s++) { 1370 var i = T.slides.eq(s), 1371 r = 90 * s, 1372 n = Math.floor(r / 360); 1373 T.rtl && ((r = -r), (n = Math.floor(-r / 360))); 1374 var o = Math.max(Math.min(i[0].progress, 1), -1), 1375 l = 0, 1376 p = 0, 1377 d = 0; 1378 s % 4 == 0 1379 ? ((l = 4 * -n * T.size), (d = 0)) 1380 : (s - 1) % 4 == 0 1381 ? ((l = 0), (d = 4 * -n * T.size)) 1382 : (s - 2) % 4 == 0 1383 ? ((l = T.size + 4 * n * T.size), (d = T.size)) 1384 : (s - 3) % 4 == 0 && ((l = -T.size), (d = 3 * T.size + 4 * T.size * n)), 1385 T.rtl && (l = -l), 1386 T.isHorizontal() || ((p = l), (l = 0)); 1387 var u = "rotateX(" + (T.isHorizontal() ? 0 : -r) + "deg) rotateY(" + (T.isHorizontal() ? r : 0) + "deg) translate3d(" + l + "px, " + p + "px, " + d + "px)"; 1388 if ((o <= 1 && o > -1 && ((t = 90 * s + 90 * o), T.rtl && (t = 90 * -s - 90 * o)), i.transform(u), T.params.cube.slideShadows)) { 1389 var c = T.isHorizontal() ? i.find(".swiper-slide-shadow-left") : i.find(".swiper-slide-shadow-top"), 1390 m = T.isHorizontal() ? i.find(".swiper-slide-shadow-right") : i.find(".swiper-slide-shadow-bottom"); 1391 0 === c.length && ((c = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "left" : "top") + '"></div>')), i.append(c)), 1392 0 === m.length && ((m = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "right" : "bottom") + '"></div>')), i.append(m)), 1393 c.length && (c[0].style.opacity = Math.max(-o, 0)), 1394 m.length && (m[0].style.opacity = Math.max(o, 0)); 1395 } 1396 } 1397 if ( 1398 (T.wrapper.css({ 1399 "-webkit-transform-origin": "50% 50% -" + T.size / 2 + "px", 1400 "-moz-transform-origin": "50% 50% -" + T.size / 2 + "px", 1401 "-ms-transform-origin": "50% 50% -" + T.size / 2 + "px", 1402 "transform-origin": "50% 50% -" + T.size / 2 + "px", 1403 }), 1404 T.params.cube.shadow) 1405 ) 1406 if (T.isHorizontal()) a.transform("translate3d(0px, " + (T.width / 2 + T.params.cube.shadowOffset) + "px, " + -T.width / 2 + "px) rotateX(90deg) rotateZ(0deg) scale(" + T.params.cube.shadowScale + ")"); 1407 else { 1408 var h = Math.abs(t) - 90 * Math.floor(Math.abs(t) / 90), 1409 g = 1.5 - (Math.sin((2 * h * Math.PI) / 360) / 2 + Math.cos((2 * h * Math.PI) / 360) / 2), 1410 f = T.params.cube.shadowScale, 1411 v = T.params.cube.shadowScale / g, 1412 w = T.params.cube.shadowOffset; 1413 a.transform("scale3d(" + f + ", 1, " + v + ") translate3d(0px, " + (T.height / 2 + w) + "px, " + -T.height / 2 / v + "px) rotateX(-90deg)"); 1414 } 1415 var y = T.isSafari || T.isUiWebView ? -T.size / 2 : 0; 1416 T.wrapper.transform("translate3d(0px,0," + y + "px) rotateX(" + (T.isHorizontal() ? 0 : t) + "deg) rotateY(" + (T.isHorizontal() ? -t : 0) + "deg)"); 1417 }, 1418 setTransition: function (e) { 1419 T.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), 1420 T.params.cube.shadow && !T.isHorizontal() && T.container.find(".swiper-cube-shadow").transition(e); 1421 }, 1422 }, 1423 coverflow: { 1424 setTranslate: function () { 1425 for ( 1426 var a = T.translate, t = T.isHorizontal() ? -a + T.width / 2 : -a + T.height / 2, s = T.isHorizontal() ? T.params.coverflow.rotate : -T.params.coverflow.rotate, i = T.params.coverflow.depth, r = 0, n = T.slides.length; 1427 r < n; 1428 r++ 1429 ) {
1430 var o = T.slides.eq(r), 1431 l = T.slidesSizesGrid[r], 1432 p = o[0].swiperSlideOffset, 1433 d = ((t - p - l / 2) / l) * T.params.coverflow.modifier, 1434 u = T.isHorizontal() ? s * d : 0, 1435 c = T.isHorizontal() ? 0 : s * d, 1436 m = -i * Math.abs(d), 1437 h = T.isHorizontal() ? 0 : T.params.coverflow.stretch * d, 1438 g = T.isHorizontal() ? T.params.coverflow.stretch * d : 0; 1439 Math.abs(g) < 0.001 && (g = 0), Math.abs(h) < 0.001 && (h = 0), Math.abs(m) < 0.001 && (m = 0), Math.abs(u) < 0.001 && (u = 0), Math.abs(c) < 0.001 && (c = 0); 1440 var f = "translate3d(" + g + "px," + h + "px," + m + "px) rotateX(" + c + "deg) rotateY(" + u + "deg)"; 1441 if ((o.transform(f), (o[0].style.zIndex = 1 - Math.abs(Math.round(d))), T.params.coverflow.slideShadows)) { 1442 var v = T.isHorizontal() ? o.find(".swiper-slide-shadow-left") : o.find(".swiper-slide-shadow-top"), 1443 w = T.isHorizontal() ? o.find(".swiper-slide-shadow-right") : o.find(".swiper-slide-shadow-bottom"); 1444 0 === v.length && ((v = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "left" : "top") + '"></div>')), o.append(v)), 1445 0 === w.length && ((w = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "right" : "bottom") + '"></div>')), o.append(w)), 1446 v.length && (v[0].style.opacity = d > 0 ? d : 0), 1447 w.length && (w[0].style.opacity = -d > 0 ? -d : 0); 1448 } 1449 } 1450 if (T.browser.ie) { 1451 T.wrapper[0].style.perspectiveOrigin = t + "px 50%"; 1452 } 1453 }, 1454 setTransition: function (e) { 1455 T.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e); 1456 }, 1457 }, 1458 }), 1459 (T.lazy = { 1460 initialImageLoaded: !1, 1461 loadImageInSlide: function (a, t) { 1462 if (void 0 !== a && (void 0 === t && (t = !0), 0 !== T.slides.length)) { 1463 var s = T.slides.eq(a), 1464 i = s.find("." + T.params.lazyLoadingClass + ":not(." + T.params.lazyStatusLoadedClass + "):not(." + T.params.lazyStatusLoadingClass + ")"); 1465 !s.hasClass(T.params.lazyLoadingClass) || s.hasClass(T.params.lazyStatusLoadedClass) || s.hasClass(T.params.lazyStatusLoadingClass) || (i = i.add(s[0])), 1466 0 !== i.length && 1467 i.each(function () { 1468 var a = e(this); 1469 a.addClass(T.params.lazyStatusLoadingClass); 1470 var i = a.attr("data-background"), 1471 r = a.attr("data-src"), 1472 n = a.attr("data-srcset"), 1473 o = a.attr("data-sizes"); 1474 T.loadImage(a[0], r || i, n, o, !1, function () { 1475 if (void 0 !== T && null !== T && T) { 1476 if ( 1477 (i 1478 ? (a.css("background-image", 'url("' + i + '")'), a.removeAttr("data-background")) 1479 : (n && (a.attr("srcset", n), a.removeAttr("data-srcset")), o && (a.attr("sizes", o), a.removeAttr("data-sizes")), r && (a.attr("src", r), a.removeAttr("data-src"))), 1480 a.addClass(T.params.lazyStatusLoadedClass).removeClass(T.params.lazyStatusLoadingClass), 1481 s.find("." + T.params.lazyPreloaderClass + ", ." + T.params.preloaderClass).remove(), 1482 T.params.loop && t) 1483 ) { 1484 var e = s.attr("data-swiper-slide-index"); 1485 if (s.hasClass(T.params.slideDuplicateClass)) { 1486 var l = T.wrapper.children('[data-swiper-slide-index="' + e + '"]:not(.' + T.params.slideDuplicateClass + ")"); 1487 T.lazy.loadImageInSlide(l.index(), !1); 1488 } else { 1489 var p = T.wrapper.children("." + T.params.slideDuplicateClass + '[data-swiper-slide-index="' + e + '"]'); 1490 T.lazy.loadImageInSlide(p.index(), !1); 1491 } 1492 } 1493 T.emit("onLazyImageReady", T, s[0], a[0]); 1494 } 1495 }), 1496 T.emit("onLazyImageLoad", T, s[0], a[0]); 1497 }); 1498 } 1499 }, 1500 load: function () { 1501 var a, 1502 t = T.params.slidesPerView; 1503 if (("auto" === t && (t = 0), T.lazy.initialImageLoaded || (T.lazy.initialImageLoaded = !0), T.params.watchSlidesVisibility)) 1504 T.wrapper.children("." + T.params.slideVisibleClass).each(function () { 1505 T.lazy.loadImageInSlide(e(this).index()); 1506 }); 1507 else if (t > 1) for (a = T.activeIndex; a < T.activeIndex + t; a++) T.slides[a] && T.lazy.loadImageInSlide(a); 1508 else T.lazy.loadImageInSlide(T.activeIndex); 1509 if (T.params.lazyLoadingInPrevNext) 1510 if (t > 1 || (T.params.lazyLoadingInPrevNextAmount && T.params.lazyLoadingInPrevNextAmount > 1)) { 1511 var s = T.params.lazyLoadingInPrevNextAmount, 1512 i = t, 1513 r = Math.min(T.activeIndex + i + Math.max(s, i), T.slides.length), 1514 n = Math.max(T.activeIndex - Math.max(i, s), 0); 1515 for (a = T.activeIndex + t; a < r; a++) T.slides[a] && T.lazy.loadImageInSlide(a); 1516 for (a = n; a < T.activeIndex; a++) T.slides[a] && T.lazy.loadImageInSlide(a); 1517 } else { 1518 var o = T.wrapper.children("." + T.params.slideNextClass); 1519 o.length > 0 && T.lazy.loadImageInSlide(o.index()); 1520 var l = T.wrapper.children("." + T.params.slidePrevClass); 1521 l.length > 0 && T.lazy.loadImageInSlide(l.index()); 1522 } 1523 }, 1524 onTransitionStart: function () { 1525 T.params.lazyLoading && (T.params.lazyLoadingOnTransitionStart || (!T.params.lazyLoadingOnTransitionStart && !T.lazy.initialImageLoaded)) && T.lazy.load(); 1526 }, 1527 onTransitionEnd: function () { 1528 T.params.lazyLoading && !T.params.lazyLoadingOnTransitionStart && T.lazy.load(); 1529 }, 1530 }), 1531 (T.scrollbar = { 1532 isTouched: !1, 1533 setDragPosition: function (e) {
1534 var a = T.scrollbar, 1535 t = T.isHorizontal() ? ("touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX || e.clientX) : "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY || e.clientY, 1536 s = t - a.track.offset()[T.isHorizontal() ? "left" : "top"] - a.dragSize / 2, 1537 i = -T.minTranslate() * a.moveDivider, 1538 r = -T.maxTranslate() * a.moveDivider; 1539 s < i ? (s = i) : s > r && (s = r), (s = -s / a.moveDivider), T.updateProgress(s), T.setWrapperTranslate(s, !0); 1540 }, 1541 dragStart: function (e) { 1542 var a = T.scrollbar; 1543 (a.isTouched = !0), 1544 e.preventDefault(), 1545 e.stopPropagation(), 1546 a.setDragPosition(e), 1547 clearTimeout(a.dragTimeout), 1548 a.track.transition(0), 1549 T.params.scrollbarHide && a.track.css("opacity", 1), 1550 T.wrapper.transition(100), 1551 a.drag.transition(100), 1552 T.emit("onScrollbarDragStart", T); 1553 }, 1554 dragMove: function (e) { 1555 var a = T.scrollbar; 1556 a.isTouched && (e.preventDefault ? e.preventDefault() : (e.returnValue = !1), a.setDragPosition(e), T.wrapper.transition(0), a.track.transition(0), a.drag.transition(0), T.emit("onScrollbarDragMove", T)); 1557 }, 1558 dragEnd: function (e) { 1559 var a = T.scrollbar; 1560 a.isTouched && 1561 ((a.isTouched = !1), 1562 T.params.scrollbarHide && 1563 (clearTimeout(a.dragTimeout), 1564 (a.dragTimeout = setTimeout(function () { 1565 a.track.css("opacity", 0), a.track.transition(400); 1566 }, 1e3))), 1567 T.emit("onScrollbarDragEnd", T), 1568 T.params.scrollbarSnapOnRelease && T.slideReset()); 1569 }, 1570 draggableEvents: (function () { 1571 return T.params.simulateTouch !== !1 || T.support.touch ? T.touchEvents : T.touchEventsDesktop; 1572 })(), 1573 enableDraggable: function () { 1574 var a = T.scrollbar, 1575 t = T.support.touch ? a.track : document; 1576 e(a.track).on(a.draggableEvents.start, a.dragStart), e(t).on(a.draggableEvents.move, a.dragMove), e(t).on(a.draggableEvents.end, a.dragEnd); 1577 }, 1578 disableDraggable: function () { 1579 var a = T.scrollbar, 1580 t = T.support.touch ? a.track : document; 1581 e(a.track).off(a.draggableEvents.start, a.dragStart), e(t).off(a.draggableEvents.move, a.dragMove), e(t).off(a.draggableEvents.end, a.dragEnd); 1582 }, 1583 set: function () { 1584 if (T.params.scrollbar) { 1585 var a = T.scrollbar; 1586 (a.track = e(T.params.scrollbar)), 1587 T.params.uniqueNavElements && "string" == typeof T.params.scrollbar && a.track.length > 1 && 1 === T.container.find(T.params.scrollbar).length && (a.track = T.container.find(T.params.scrollbar)), 1588 (a.drag = a.track.find(".swiper-scrollbar-drag")), 1589 0 === a.drag.length && ((a.drag = e('<div class="swiper-scrollbar-drag"></div>')), a.track.append(a.drag)), 1590 (a.drag[0].style.width = ""), 1591 (a.drag[0].style.height = ""), 1592 (a.trackSize = T.isHorizontal() ? a.track[0].offsetWidth : a.track[0].offsetHeight), 1593 (a.divider = T.size / T.virtualSize), 1594 (a.moveDivider = a.divider * (a.trackSize / T.size)), 1595 (a.dragSize = a.trackSize * a.divider), 1596 T.isHorizontal() ? (a.drag[0].style.width = a.dragSize + "px") : (a.drag[0].style.height = a.dragSize + "px"), 1597 a.divider >= 1 ? (a.track[0].style.display = "none") : (a.track[0].style.display = ""), 1598 T.params.scrollbarHide && (a.track[0].style.opacity = 0); 1599 } 1600 }, 1601 setTranslate: function () { 1602 if (T.params.scrollbar) { 1603 var e,
1604 a = T.scrollbar, 1605 t = (T.translate, a.dragSize); 1606 (e = (a.trackSize - a.dragSize) * T.progress), 1607 T.rtl && T.isHorizontal() 1608 ? ((e = -e), e > 0 ? ((t = a.dragSize - e), (e = 0)) : -e + a.dragSize > a.trackSize && (t = a.trackSize + e)) 1609 : e < 0 1610 ? ((t = a.dragSize + e), (e = 0)) 1611 : e + a.dragSize > a.trackSize && (t = a.trackSize - e), 1612 T.isHorizontal() 1613 ? (T.support.transforms3d ? a.drag.transform("translate3d(" + e + "px, 0, 0)") : a.drag.transform("translateX(" + e + "px)"), (a.drag[0].style.width = t + "px")) 1614 : (T.support.transforms3d ? a.drag.transform("translate3d(0px, " + e + "px, 0)") : a.drag.transform("translateY(" + e + "px)"), (a.drag[0].style.height = t + "px")), 1615 T.params.scrollbarHide && 1616 (clearTimeout(a.timeout), 1617 (a.track[0].style.opacity = 1), 1618 (a.timeout = setTimeout(function () { 1619 (a.track[0].style.opacity = 0), a.track.transition(400); 1620 }, 1e3))); 1621 } 1622 }, 1623 setTransition: function (e) { 1624 T.params.scrollbar && T.scrollbar.drag.transition(e); 1625 }, 1626 }), 1627 (T.controller = { 1628 LinearSpline: function (e, a) { 1629 var t = (function () { 1630 var e, a, t; 1631 return function (s, i) { 1632 for (a = -1, e = s.length; e - a > 1; ) s[(t = (e + a) >> 1)] <= i ? (a = t) : (e = t); 1633 return e; 1634 }; 1635 })(); 1636 (this.x = e), (this.y = a), (this.lastIndex = e.length - 1); 1637 var s, i; 1638 this.x.length; 1639 this.interpolate = function (e) { 1640 return e ? ((i = t(this.x, e)), (s = i - 1), ((e - this.x[s]) * (this.y[i] - this.y[s])) / (this.x[i] - this.x[s]) + this.y[s]) : 0; 1641 }; 1642 }, 1643 getInterpolateFunction: function (e) { 1644 T.controller.spline || (T.controller.spline = T.params.loop ? new T.controller.LinearSpline(T.slidesGrid, e.slidesGrid) : new T.controller.LinearSpline(T.snapGrid, e.snapGrid)); 1645 }, 1646 setTranslate: function (e, t) { 1647 function s(a) { 1648 (e = a.rtl && "horizontal" === a.params.direction ? -T.translate : T.translate), 1649 "slide" === T.params.controlBy && (T.controller.getInterpolateFunction(a), (r = -T.controller.spline.interpolate(-e))), 1650 (r && "container" !== T.params.controlBy) || ((i = (a.maxTranslate() - a.minTranslate()) / (T.maxTranslate() - T.minTranslate())), (r = (e - T.minTranslate()) * i + a.minTranslate())), 1651 T.params.controlInverse && (r = a.maxTranslate() - r), 1652 a.updateProgress(r), 1653 a.setWrapperTranslate(r, !1, T), 1654 a.updateActiveIndex(); 1655 } 1656 var i, 1657 r, 1658 n = T.params.control; 1659 if (Array.isArray(n)) for (var o = 0; o < n.length; o++) n[o] !== t && n[o] instanceof a && s(n[o]); 1660 else n instanceof a && t !== n && s(n); 1661 }, 1662 setTransition: function (e, t) { 1663 function s(a) { 1664 a.setWrapperTransition(e, T), 1665 0 !== e && 1666 (a.onTransitionStart(), 1667 a.wrapper.transitionEnd(function () { 1668 r && (a.params.loop && "slide" === T.params.controlBy && a.fixLoop(), a.onTransitionEnd()); 1669 })); 1670 } 1671 var i, 1672 r = T.params.control; 1673 if (Array.isArray(r)) for (i = 0; i < r.length; i++) r[i] !== t && r[i] instanceof a && s(r[i]); 1674 else r instanceof a && t !== r && s(r); 1675 }, 1676 }), 1677 (T.hashnav = { 1678 onHashCange: function (e, a) { 1679 var t = document.location.hash.replace("#", ""); 1680 t !== T.slides.eq(T.activeIndex).attr("data-hash") && T.slideTo(T.wrapper.children("." + T.params.slideClass + '[data-hash="' + t + '"]').index()); 1681 }, 1682 attachEvents: function (a) { 1683 var t = a ? "off" : "on"; 1684 e(window)[t]("hashchange", T.hashnav.onHashCange); 1685 }, 1686 setHash: function () { 1687 if (T.hashnav.initialized && T.params.hashnav) 1688 if (T.params.replaceState && window.history && window.history.replaceState) window.history.replaceState(null, null, "#" + T.slides.eq(T.activeIndex).attr("data-hash") || ""); 1689 else { 1690 var e = T.slides.eq(T.activeIndex), 1691 a = e.attr("data-hash") || e.attr("data-history"); 1692 document.location.hash = a || ""; 1693 } 1694 }, 1695 init: function () { 1696 if (T.params.hashnav && !T.params.history) { 1697 T.hashnav.initialized = !0; 1698 var e = document.location.hash.replace("#", ""); 1699 if (e) 1700 for (var a = 0, t = T.slides.length; a < t; a++) { 1701 var s = T.slides.eq(a), 1702 i = s.attr("data-hash") || s.attr("data-history"); 1703 if (i === e && !s.hasClass(T.params.slideDuplicateClass)) { 1704 var r = s.index(); 1705 T.slideTo(r, 0, T.params.runCallbacksOnInit, !0); 1706 } 1707 } 1708 T.params.hashnavWatchState && T.hashnav.attachEvents(); 1709 } 1710 }, 1711 destroy: function () { 1712 T.params.hashnavWatchState && T.hashnav.attachEvents(!0); 1713 }, 1714 }), 1715 (T.history = { 1716 init: function () { 1717 if (T.params.history) { 1718 if (!window.history || !window.history.pushState) return (T.params.history = !1), void (T.params.hashnav = !0); 1719 (T.history.initialized = !0), 1720 (this.paths = this.getPathValues()), 1721 (this.paths.key || this.paths.value) && (this.scrollToSlide(0, this.paths.value, T.params.runCallbacksOnInit), T.params.replaceState || window.addEventListener("popstate", this.setHistoryPopState)); 1722 } 1723 }, 1724 setHistoryPopState: function () { 1725 (T.history.paths = T.history.getPathValues()), T.history.scrollToSlide(T.params.speed, T.history.paths.value, !1); 1726 }, 1727 getPathValues: function () { 1728 var e = window.location.pathname.slice(1).split("/"), 1729 a = e.length; 1730 return {key: e[a - 2], value: e[a - 1]}; 1731 }, 1732 setHistory: function (e, a) { 1733 if (T.history.initialized && T.params.history) { 1734 var t = T.slides.eq(a), 1735 s = this.slugify(t.attr("data-history")); 1736 window.location.pathname.includes(e) || (s = e + "/" + s), T.params.replaceState ? window.history.replaceState(null, null, s) : window.history.pushState(null, null, s); 1737 } 1738 }, 1739 slugify: function (e) { 1740 return e 1741 .toString() 1742 .toLowerCase() 1743 .replace(/\s+/g, "-") 1744 .replace(/[^\w\-]+/g, "") 1745 .replace(/\-\-+/g, "-") 1746 .replace(/^-+/, "") 1747 .replace(/-+$/, ""); 1748 }, 1749 scrollToSlide: function (e, a, t) { 1750 if (a) 1751 for (var s = 0, i = T.slides.length; s < i; s++) { 1752 var r = T.slides.eq(s), 1753 n = this.slugify(r.attr("data-history")); 1754 if (n === a && !r.hasClass(T.params.slideDuplicateClass)) { 1755 var o = r.index(); 1756 T.slideTo(o, e, t); 1757 } 1758 } 1759 else T.slideTo(0, e, t); 1760 }, 1761 }), 1762 (T.disableKeyboardControl = function () { 1763 (T.params.keyboardControl = !1), e(document).off("keydown", p); 1764 }), 1765 (T.enableKeyboardControl = function () { 1766 (T.params.keyboardControl = !0), e(document).on("keydown", p); 1767 }), 1768 (T.mousewheel = {event: !1, lastScrollTime: new window.Date().getTime()}), 1769 T.params.mousewheelControl && 1770 (T.mousewheel.event = 1771 navigator.userAgent.indexOf("firefox") > -1 1772 ? "DOMMouseScroll" 1773 : (function () { 1774 var e = "onwheel" in document; 1775 if (!e) { 1776 var a = document.createElement("div"); 1777 a.setAttribute("onwheel", "return;"), (e = "function" == typeof a.onwheel); 1778 } 1779 return !e && document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== !0 && (e = document.implementation.hasFeature("Events.wheel", "3.0")), e; 1780 })() 1781 ? "wheel" 1782 : "mousewheel"), 1783 (T.disableMousewheelControl = function () { 1784 if (!T.mousewheel.event) return !1; 1785 var a = T.container; 1786 return "container" !== T.params.mousewheelEventsTarged && (a = e(T.params.mousewheelEventsTarged)), a.off(T.mousewheel.event, u), (T.params.mousewheelControl = !1), !0; 1787 }), 1788 (T.enableMousewheelControl = function () { 1789 if (!T.mousewheel.event) return !1; 1790 var a = T.container; 1791 return "container" !== T.params.mousewheelEventsTarged && (a = e(T.params.mousewheelEventsTarged)), a.on(T.mousewheel.event, u), (T.params.mousewheelControl = !0), !0; 1792 }), 1793 (T.parallax = { 1794 setTranslate: function () { 1795 T.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function () { 1796 c(this, T.progress); 1797 }), 1798 T.slides.each(function () { 1799 var a = e(this); 1800 a.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function () { 1801 c(this, Math.min(Math.max(a[0].progress, -1), 1)); 1802 }); 1803 }); 1804 }, 1805 setTransition: function (a) { 1806 void 0 === a && (a = T.params.speed), 1807 T.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function () { 1808 var t = e(this), 1809 s = parseInt(t.attr("data-swiper-parallax-duration"), 10) || a; 1810 0 === a && (s = 0), t.transition(s); 1811 }); 1812 }, 1813 }), 1814 (T.zoom = { 1815 scale: 1, 1816 currentScale: 1, 1817 isScaling: !1, 1818 gesture: {slide: void 0, slideWidth: void 0, slideHeight: void 0, image: void 0, imageWrap: void 0, zoomMax: T.params.zoomMax}, 1819 image: {isTouched: void 0, isMoved: void 0, currentX: void 0, currentY: void 0, minX: void 0, minY: void 0, maxX: void 0, maxY: void 0, width: void 0, height: void 0, startX: void 0, startY: void 0, touchesStart: {}, touchesCurrent: {}}, 1820 velocity: {x: void 0, y: void 0, prevPositionX: void 0, prevPositionY: void 0, prevTime: void 0}, 1821 getDistanceBetweenTouches: function (e) { 1822 if (e.targetTouches.length < 2) return 1; 1823 var a = e.targetTouches[0].pageX, 1824 t = e.targetTouches[0].pageY, 1825 s = e.targetTouches[1].pageX, 1826 i = e.targetTouches[1].pageY; 1827 return Math.sqrt(Math.pow(s - a, 2) + Math.pow(i - t, 2)); 1828 }, 1829 onGestureStart: function (a) { 1830 var t = T.zoom; 1831 if (!T.support.gestures) { 1832 if ("touchstart" !== a.type || ("touchstart" === a.type && a.targetTouches.length < 2)) return; 1833 t.gesture.scaleStart = t.getDistanceBetweenTouches(a); 1834 } 1835 if ( 1836 !( 1837 (t.gesture.slide && t.gesture.slide.length) || 1838 ((t.gesture.slide = e(this)), 1839 0 === t.gesture.slide.length && (t.gesture.slide = T.slides.eq(T.activeIndex)), 1840 (t.gesture.image = t.gesture.slide.find("img, svg, canvas")), 1841 (t.gesture.imageWrap = t.gesture.image.parent("." + T.params.zoomContainerClass)), 1842 (t.gesture.zoomMax = t.gesture.imageWrap.attr("data-swiper-zoom") || T.params.zoomMax), 1843 0 !== t.gesture.imageWrap.length) 1844 ) 1845 ) 1846 return void (t.gesture.image = void 0); 1847 t.gesture.image.transition(0), (t.isScaling = !0); 1848 }, 1849 onGestureChange: function (e) { 1850 var a = T.zoom; 1851 if (!T.support.gestures) { 1852 if ("touchmove" !== e.type || ("touchmove" === e.type && e.targetTouches.length < 2)) return; 1853 a.gesture.scaleMove = a.getDistanceBetweenTouches(e); 1854 } 1855 a.gesture.image && 1856 0 !== a.gesture.image.length && 1857 (T.support.gestures ? (a.scale = e.scale * a.currentScale) : (a.scale = (a.gesture.scaleMove / a.gesture.scaleStart) * a.currentScale), 1858 a.scale > a.gesture.zoomMax && (a.scale = a.gesture.zoomMax - 1 + Math.pow(a.scale - a.gesture.zoomMax + 1, 0.5)), 1859 a.scale < T.params.zoomMin && (a.scale = T.params.zoomMin + 1 - Math.pow(T.params.zoomMin - a.scale + 1, 0.5)),
1860 a.gesture.image.transform("translate3d(0,0,0) scale(" + a.scale + ")")); 1861 }, 1862 onGestureEnd: function (e) { 1863 var a = T.zoom; 1864 (!T.support.gestures && ("touchend" !== e.type || ("touchend" === e.type && e.changedTouches.length < 2))) || 1865 (a.gesture.image && 1866 0 !== a.gesture.image.length && 1867 ((a.scale = Math.max(Math.min(a.scale, a.gesture.zoomMax), T.params.zoomMin)), 1868 a.gesture.image.transition(T.params.speed).transform("translate3d(0,0,0) scale(" + a.scale + ")"), 1869 (a.currentScale = a.scale), 1870 (a.isScaling = !1), 1871 1 === a.scale && (a.gesture.slide = void 0))); 1872 }, 1873 onTouchStart: function (e, a) { 1874 var t = e.zoom; 1875 t.gesture.image && 1876 0 !== t.gesture.image.length && 1877 (t.image.isTouched || 1878 ("android" === e.device.os && a.preventDefault(), 1879 (t.image.isTouched = !0), 1880 (t.image.touchesStart.x = "touchstart" === a.type ? a.targetTouches[0].pageX : a.pageX), 1881 (t.image.touchesStart.y = "touchstart" === a.type ? a.targetTouches[0].pageY : a.pageY))); 1882 }, 1883 onTouchMove: function (e) { 1884 var a = T.zoom; 1885 if (a.gesture.image && 0 !== a.gesture.image.length && ((T.allowClick = !1), a.image.isTouched && a.gesture.slide)) { 1886 a.image.isMoved || 1887 ((a.image.width = a.gesture.image[0].offsetWidth), 1888 (a.image.height = a.gesture.image[0].offsetHeight), 1889 (a.image.startX = T.getTranslate(a.gesture.imageWrap[0], "x") || 0), 1890 (a.image.startY = T.getTranslate(a.gesture.imageWrap[0], "y") || 0), 1891 (a.gesture.slideWidth = a.gesture.slide[0].offsetWidth), 1892 (a.gesture.slideHeight = a.gesture.slide[0].offsetHeight), 1893 a.gesture.imageWrap.transition(0), 1894 T.rtl && (a.image.startX = -a.image.startX), 1895 T.rtl && (a.image.startY = -a.image.startY)); 1896 var t = a.image.width * a.scale, 1897 s = a.image.height * a.scale; 1898 if (!(t < a.gesture.slideWidth && s < a.gesture.slideHeight)) { 1899 if ( 1900 ((a.image.minX = Math.min(a.gesture.slideWidth / 2 - t / 2, 0)), 1901 (a.image.maxX = -a.image.minX), 1902 (a.image.minY = Math.min(a.gesture.slideHeight / 2 - s / 2, 0)), 1903 (a.image.maxY = -a.image.minY), 1904 (a.image.touchesCurrent.x = "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX), 1905 (a.image.touchesCurrent.y = "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY), 1906 !a.image.isMoved && !a.isScaling) 1907 ) { 1908 if ( 1909 (T.isHorizontal() && Math.floor(a.image.minX) === Math.floor(a.image.startX) && a.image.touchesCurrent.x < a.image.touchesStart.x) || 1910 (Math.floor(a.image.maxX) === Math.floor(a.image.startX) && a.image.touchesCurrent.x > a.image.touchesStart.x) 1911 ) 1912 return void (a.image.isTouched = !1); 1913 if ( 1914 (!T.isHorizontal() && Math.floor(a.image.minY) === Math.floor(a.image.startY) && a.image.touchesCurrent.y < a.image.touchesStart.y) || 1915 (Math.floor(a.image.maxY) === Math.floor(a.image.startY) && a.image.touchesCurrent.y > a.image.touchesStart.y) 1916 ) 1917 return void (a.image.isTouched = !1); 1918 } 1919 e.preventDefault(), 1920 e.stopPropagation(), 1921 (a.image.isMoved = !0), 1922 (a.image.currentX = a.image.touchesCurrent.x - a.image.touchesStart.x + a.image.startX), 1923 (a.image.currentY = a.image.touchesCurrent.y - a.image.touchesStart.y + a.image.startY), 1924 a.image.currentX < a.image.minX && (a.image.currentX = a.image.minX + 1 - Math.pow(a.image.minX - a.image.currentX + 1, 0.8)), 1925 a.image.currentX > a.image.maxX && (a.image.currentX = a.image.maxX - 1 + Math.pow(a.image.currentX - a.image.maxX + 1, 0.8)), 1926 a.image.currentY < a.image.minY && (a.image.currentY = a.image.minY + 1 - Math.pow(a.image.minY - a.image.currentY + 1, 0.8)), 1927 a.image.currentY > a.image.maxY && (a.image.currentY = a.image.maxY - 1 + Math.pow(a.image.currentY - a.image.maxY + 1, 0.8)), 1928 a.velocity.prevPositionX || (a.velocity.prevPositionX = a.image.touchesCurrent.x), 1929 a.velocity.prevPositionY || (a.velocity.prevPositionY = a.image.touchesCurrent.y), 1930 a.velocity.prevTime || (a.velocity.prevTime = Date.now()), 1931 (a.velocity.x = (a.image.touchesCurrent.x - a.velocity.prevPositionX) / (Date.now() - a.velocity.prevTime) / 2), 1932 (a.velocity.y = (a.image.touchesCurrent.y - a.velocity.prevPositionY) / (Date.now() - a.velocity.prevTime) / 2), 1933 Math.abs(a.image.touchesCurrent.x - a.velocity.prevPositionX) < 2 && (a.velocity.x = 0), 1934 Math.abs(a.image.touchesCurrent.y - a.velocity.prevPositionY) < 2 && (a.velocity.y = 0), 1935 (a.velocity.prevPositionX = a.image.touchesCurrent.x), 1936 (a.velocity.prevPositionY = a.image.touchesCurrent.y), 1937 (a.velocity.prevTime = Date.now()), 1938 a.gesture.imageWrap.transform("translate3d(" + a.image.currentX + "px, " + a.image.currentY + "px,0
1938)"); 1939 } 1940 } 1941 }, 1942 onTouchEnd: function (e, a) { 1943 var t = e.zoom; 1944 if (t.gesture.image && 0 !== t.gesture.image.length) { 1945 if (!t.image.isTouched || !t.image.isMoved) return (t.image.isTouched = !1), void (t.image.isMoved = !1); 1946 (t.image.isTouched = !1), (t.image.isMoved = !1); 1947 var s = 300, 1948 i = 300, 1949 r = t.velocity.x * s, 1950 n = t.image.currentX + r, 1951 o = t.velocity.y * i, 1952 l = t.image.currentY + o; 1953 0 !== t.velocity.x && (s = Math.abs((n - t.image.currentX) / t.velocity.x)), 0 !== t.velocity.y && (i = Math.abs((l - t.image.currentY) / t.velocity.y)); 1954 var p = Math.max(s, i); 1955 (t.image.currentX = n), (t.image.currentY = l); 1956 var d = t.image.width * t.scale, 1957 u = t.image.height * t.scale; 1958 (t.image.minX = Math.min(t.gesture.slideWidth / 2 - d / 2, 0)), 1959 (t.image.maxX = -t.image.minX), 1960 (t.image.minY = Math.min(t.gesture.slideHeight / 2 - u / 2, 0)), 1961 (t.image.maxY = -t.image.minY), 1962 (t.image.currentX = Math.max(Math.min(t.image.currentX, t.image.maxX), t.image.minX)), 1963 (t.image.currentY = Math.max(Math.min(t.image.currentY, t.image.maxY), t.image.minY)), 1964 t.gesture.imageWrap.transition(p).transform("translate3d(" + t.image.currentX + "px, " + t.image.currentY + "px,0)"); 1965 } 1966 }, 1967 onTransitionEnd: function (e) { 1968 var a = e.zoom; 1969 a.gesture.slide && 1970 e.previousIndex !== e.activeIndex && 1971 (a.gesture.image.transform("translate3d(0,0,0) scale(1)"), a.gesture.imageWrap.transform("translate3d(0,0,0)"), (a.gesture.slide = a.gesture.image = a.gesture.imageWrap = void 0), (a.scale = a.currentScale = 1)); 1972 }, 1973 toggleZoom: function (a, t) { 1974 var s = a.zoom; 1975 if ( 1976 (s.gesture.slide || 1977 ((s.gesture.slide = a.clickedSlide ? e(a.clickedSlide) : a.slides.eq(a.activeIndex)), (s.gesture.image = s.gesture.slide.find("img, svg, canvas")), (s.gesture.imageWrap = s.gesture.image.parent("." + a.params.zoomContainerClass))), 1978 s.gesture.image && 0 !== s.gesture.image.length) 1979 ) { 1980 var i, r, n, o, l, p, d, u, c, m, h, g, f, v, w, y, x, T; 1981 void 0 === s.image.touchesStart.x && t 1982 ? ((i = "touchend" === t.type ? t.changedTouches[0].pageX : t.pageX), (r = "touchend" === t.type ? t.changedTouches[0].pageY : t.pageY)) 1983 : ((i = s.image.touchesStart.x), (r = s.image.touchesStart.y)), 1984 s.scale && 1 !== s.scale 1985 ? ((s.scale = s.currentScale = 1), s.gesture.imageWrap.transition(300).transform("translate3d(0,0,0)"), s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"), (s.gesture.slide = void 0)) 1986 : ((s.scale = s.currentScale = s.gesture.imageWrap.attr("data-swiper-zoom") || a.params.zoomMax), 1987 t 1988 ? ((x = s.gesture.slide[0].offsetWidth), 1989 (T = s.gesture.slide[0].offsetHeight), 1990 (n = s.gesture.slide.offset().left), 1991 (o = s.gesture.slide.offset().top), 1992 (l = n + x / 2 - i), 1993 (p = o + T / 2 - r), 1994 (c = s.gesture.image[0].offsetWidth), 1995 (m = s.gesture.image[0].offsetHeight),
1996 (h = c * s.scale), 1997 (g = m * s.scale), 1998 (f = Math.min(x / 2 - h / 2, 0)), 1999 (v = Math.min(T / 2 - g / 2, 0)), 2000 (w = -f), 2001 (y = -v), 2002 (d = l * s.scale), 2003 (u = p * s.scale), 2004 d < f && (d = f), 2005 d > w && (d = w), 2006 u < v && (u = v), 2007 u > y && (u = y)) 2008 : ((d = 0), (u = 0)), 2009 s.gesture.imageWrap.transition(300).transform("translate3d(" + d + "px, " + u + "px,0)"), 2010 s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(" + s.scale + ")")); 2011 } 2012 }, 2013 attachEvents: function (a) { 2014 var t = a ? "off" : "on"; 2015 if (T.params.zoom) { 2016 var s = (T.slides, !("touchstart" !== T.touchEvents.start || !T.support.passiveListener || !T.params.passiveListeners) && {passive: !0, capture: !1}); 2017 T.support.gestures 2018 ? (T.slides[t]("gesturestart", T.zoom.onGestureStart, s), T.slides[t]("gesturechange", T.zoom.onGestureChange, s), T.slides[t]("gestureend", T.zoom.onGestureEnd, s)) 2019 : "touchstart" === T.touchEvents.start && (T.slides[t](T.touchEvents.start, T.zoom.onGestureStart, s), T.slides[t](T.touchEvents.move, T.zoom.onGestureChange, s), T.slides[t](T.touchEvents.end, T.zoom.onGestureEnd, s)), 2020 T[t]("touchStart", T.zoom.onTouchStart), 2021 T.slides.each(function (a, s) { 2022 e(s).find("." + T.params.zoomContainerClass).length > 0 && e(s)[t](T.touchEvents.move, T.zoom.onTouchMove); 2023 }), 2024 T[t]("touchEnd", T.zoom.onTouchEnd), 2025 T[t]("transitionEnd", T.zoom.onTransitionEnd), 2026 T.params.zoomToggle && T.on("doubleTap", T.zoom.toggleZoom); 2027 } 2028 }, 2029 init: function () { 2030 T.zoom.attachEvents(); 2031 }, 2032 destroy: function () { 2033 T.zoom.attachEvents(!0); 2034 }, 2035 }), 2036 (T._plugins = []); 2037 for (var Y in T.plugins) { 2038 var O = T.plugins[Y](T, T.params[Y]); 2039 O && T._plugins.push(O); 2040 } 2041 return ( 2042 (T.callPlugins = function (e) { 2043 for (var a = 0; a < T._plugins.length; a++) e in T._plugins[a] && T._plugins[a][e](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]); 2044 }), 2045 (T.emitterEventListeners = {}), 2046 (T.emit = function (e) { 2047 T.params[e] && T.params[e](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]); 2048 var a; 2049 if (T.emitterEventListeners[e]) for (a = 0; a < T.emitterEventListeners[e].length; a++) T.emitterEventListeners[e][a](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]); 2050 T.callPlugins && T.callPlugins(e, arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]); 2051 }), 2052 (T.on = function (e, a) { 2053 return (e = m(e)), T.emitterEventListeners[e] || (T.emitterEventListeners[e] = []), T.emitterEventListeners[e].push(a), T; 2054 }), 2055 (T.off = function (e, a) { 2056 var t; 2057 if (((e = m(e)), void 0 === a)) return (T.emitterEventListeners[e] = []), T; 2058 if (T.emitterEventListeners[e] && 0 !== T.emitterEventListeners[e].length) { 2059 for (t = 0; t < T.emitterEventListeners[e].length; t++) T.emitterEventListeners[e][t] === a && T.emitterEventListeners[e].splice(t, 1); 2060 return T; 2061 } 2062 }), 2063 (T.once = function (e, a) { 2064 e = m(e); 2065 var t = function () { 2066 a(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]), T.off(e, t); 2067 }; 2068 return T.on(e, t), T; 2069 }), 2070 (T.a11y = { 2071 makeFocusable: function (e) { 2072 return e.attr("tabIndex", "0"), e; 2073 }, 2074 addRole: function (e, a) { 2075 return e.attr("role", a), e; 2076 }, 2077 addLabel: function (e, a) { 2078 return e.attr("aria-label", a), e; 2079 }, 2080 disable: function (e) { 2081 return e.attr("aria-disabled", !0), e; 2082 }, 2083 enable: function (e) { 2084 return e.attr("aria-disabled", !1), e; 2085 }, 2086 onEnterKey: function (a) { 2087 13 === a.keyCode && 2088 (e(a.target).is(T.params.nextButton) 2089 ? (T.onClickNext(a), T.isEnd ? T.a11y.notify(T.params.lastSlideMessage) : T.a11y.notify(T.params.nextSlideMessage)) 2090 : e(a.target).is(T.params.prevButton) && (T.onClickPrev(a), T.isBeginning ? T.a11y.notify(T.params.firstSlideMessage) : T.a11y.notify(T.params.prevSlideMessage)), 2091 e(a.target).is("." + T.params.bulletClass) && e(a.target)[0].click()); 2092 }, 2093 liveRegion: e('<span class="' + T.params.notificationClass + '" aria-live="assertive" aria-atomic="true"></span>'), 2094 notify: function (e) { 2095 var a = T.a11y.liveRegion; 2096 0 !== a.length && (a.html(""), a.html(e)); 2097 }, 2098 init: function () { 2099 T.params.nextButton && T.nextButton && T.nextButton.length > 0 && (T.a11y.makeFocusable(T.nextButton), T.a11y.addRole(T.nextButton, "button"), T.a11y.addLabel(T.nextButton, T.params.nextSlideMessage)), 2100 T.params.prevButton && T.prevButton && T.prevButton.length > 0 && (T.a11y.makeFocusable(T.prevButton), T.a11y.addRole(T.prevButton, "button"), T.a11y.addLabel(T.prevButton, T.params.prevSlideMessage)), 2101 e(T.container).append(T.a11y.liveRegion); 2102 }, 2103 initPagination: function () { 2104 T.params.pagination && 2105 T.params.paginationClickable && 2106 T.bullets && 2107 T.bullets.length && 2108 T.bullets.each(function () { 2109 var a = e(this); 2110 T.a11y.makeFocusable(a), T.a11y.addRole(a, "button"), T.a11y.addLabel(a, T.params.paginationBulletMessage.replace(/{{index}}/, a.index() + 1)); 2111 }); 2112 }, 2113 destroy: function () { 2114 T.a11y.liveRegion && T.a11y.liveRegion.length > 0 && T.a11y.liveRegion.remove(); 2115 }, 2116 }), 2117 (T.init = function () { 2118 T.params.loop && T.createLoop(), 2119 T.updateContainerSize(), 2120 T.updateSlidesSize(), 2121 T.updatePagination(), 2122 T.params.scrollbar && T.scrollbar && (T.scrollbar.set(), T.params.scrollbarDraggable && T.scrollbar.enableDraggable()), 2123 "slide" !== T.params.effect && T.effects[T.params.effect] && (T.params.loop || T.updateProgress(), T.effects[T.params.effect].setTranslate()), 2124 T.params.loop 2125 ? T.slideTo(T.params.initialSlide + T.loopedSlides, 0, T.params.runCallbacksOnInit) 2126 : (T.slideTo(T.params.initialSlide, 0, T.params.runCallbacksOnInit), 2127 0 === T.params.initialSlide && (T.parallax && T.params.parallax && T.parallax.setTranslate(), T.lazy && T.params.lazyLoading && (T.lazy.load(), (T.lazy.initialImageLoaded = !0)))), 2128 T.attachEvents(), 2129 T.params.observer && T.support.observer && T.initObservers(), 2130 T.params.preloadImages && !T.params.lazyLoading && T.preloadImages(), 2131 T.params.zoom && T.zoom && T.zoom.init(), 2132 T.params.autoplay && T.startAutoplay(), 2133 T.params.keyboardControl && T.enableKeyboardControl && T.enableKeyboardControl(), 2134 T.params.mousewheelControl && T.enableMousewheelControl && T.enableMousewheelControl(), 2135 T.params.hashnavReplaceState && (T.params.replaceState = T.params.hashnavReplaceState), 2136 T.params.history && T.history && T.history.init(), 2137 T.params.hashnav && T.hashnav && T.hashnav.init(), 2138 T.params.a11y && T.a11y && T.a11y.init(), 2139 T.emit("onInit", T); 2140 }), 2141 (T.cleanupStyles = function () { 2142 T.container.removeClass(T.classNames.join(" ")).removeAttr("style"), 2143 T.wrapper.removeAttr("style"), 2144 T.slides && 2145 T.slides.length && 2146 T.slides.removeClass([T.params.slideVisibleClass, T.params.slideActiveClass, T.params.slideNextClass, T.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"), 2147 T.paginationContainer && T.paginationContainer.length && T.paginationContainer.removeClass(T.params.paginationHiddenClass), 2148 T.bullets && T.bullets.length && T.bullets.removeClass(T.params.bulletActiveClass), 2149 T.params.prevButton && e(T.params.prevButton).removeClass(T.params.buttonDisabledClass), 2150 T.params.nextButton && e(T.params.nextButton).removeClass(T.params.buttonDisabledClass), 2151 T.params.scrollbar && T.scrollbar && (T.scrollbar.track && T.scrollbar.track.length && T.scrollbar.track.removeAttr("style"), T.scrollbar.drag && T.scrollbar.drag.length && T.scrollbar.drag.removeAttr("style")); 2152 }), 2153 (T.destroy = function (e, a) { 2154 T.detachEvents(), 2155 T.stopAutoplay(), 2156 T.params.scrollbar && T.scrollbar && T.params.scrollbarDraggable && T.scrollbar.disableDraggable(), 2157 T.params.loop && T.destroyLoop(), 2158 a && T.cleanupStyles(), 2159 T.disconnectObservers(), 2160 T.params.zoom && T.zoom && T.zoom.destroy(), 2161 T.params.keyboardControl && T.disableKeyboardControl && T.disableKeyboardControl(), 2162 T.params.mousewheelControl && T.disableMousewheelControl && T.disableMousewheelControl(), 2163 T.params.a11y && T.a11y && T.a11y.destroy(), 2164 T.params.history && !T.params.replaceState && window.removeEventListener("popstate", T.history.setHistoryPopState), 2165 T.params.hashnav && T.hashnav && T.hashnav.destroy(), 2166 T.emit("onDestroy"), 2167 e !== !1 && (T = null); 2168 }),
2169 T.init(), 2170 T 2171 ); 2172 } 2173 }; 2174 a.prototype = { 2175 isSafari: (function () { 2176 var e = window.navigator.userAgent.toLowerCase(); 2177 return e.indexOf("safari") >= 0 && e.indexOf("chrome") < 0 && e.indexOf("android") < 0; 2178 })(), 2179 isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent), 2180 isArray: function (e) { 2181 return "[object Array]" === Object.prototype.toString.apply(e); 2182 }, 2183 browser: { 2184 ie: window.navigator.pointerEnabled || window.navigator.msPointerEnabled, 2185 ieTouch: (window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints > 1) || (window.navigator.pointerEnabled && window.navigator.maxTouchPoints > 1), 2186 lteIE9: (function () { 2187 var e = document.createElement("div"); 2188 return (e.innerHTML = "<!--[if lte IE 9]><i></i><![endif]-->"), 1 === e.getElementsByTagName("i").length; 2189 })(), 2190 }, 2191 device: (function () { 2192 var e = window.navigator.userAgent, 2193 a = e.match(/(Android);?[\s\/]+([\d.]+)?/), 2194 t = e.match(/(iPad).*OS\s([\d_]+)/), 2195 s = e.match(/(iPod)(.*OS\s([\d_]+))?/), 2196 i = !t && e.match(/(iPhone\sOS|iOS)\s([\d_]+)/); 2197 return {ios: t || i || s, android: a}; 2198 })(), 2199 support: { 2200 touch: 2201 (window.Modernizr && Modernizr.touch === !0) || 2202 (function () { 2203 return !!("ontouchstart" in window || (window.DocumentTouch && document instanceof DocumentTouch)); 2204 })(), 2205 transforms3d: 2206 (window.Modernizr && Modernizr.csstransforms3d === !0) || 2207 (function () { 2208 var e = document.createElement("div").style; 2209 return "webkitPerspective" in e || "MozPerspective" in e || "OPerspective" in e || "MsPerspective" in e || "perspective" in e; 2210 })(), 2211 flexbox: (function () { 2212 for ( 2213 var e = document.createElement("div").style, a = "alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "), t = 0; 2214 t < a.length; 2215 t++ 2216 ) 2217 if (a[t] in e) return !0; 2218 })(), 2219 observer: (function () { 2220 return "MutationObserver" in window || "WebkitMutationObserver" in window; 2221 })(), 2222 passiveListener: (function () { 2223 var e = !1; 2224 try { 2225 var a = Object.defineProperty({}, "passive", { 2226 get: function () { 2227 e = !0; 2228 }, 2229 }); 2230 window.addEventListener("testPassiveListener", null, a); 2231 } catch (e) {} 2232 return e; 2233 })(), 2234 gestures: (function () { 2235 return "ongesturestart" in window; 2236 })(), 2237 }, 2238 plugins: {}, 2239 }; 2240 for ( 2241 var t = (function () { 2242 var e = function (e) { 2243 var a = this, 2244 t = 0; 2245 for (t = 0; t < e.length; t++) a[t] = e[t]; 2246 return (a.length = e.length), this; 2247 }, 2248 a = function (a, t) { 2249 var s = [], 2250 i = 0; 2251 if (a && !t && a instanceof e) return a; 2252 if (a) 2253 if ("string" == typeof a) { 2254 var r, 2255 n, 2256 o = a.trim(); 2257 if (o.indexOf("<") >= 0 && o.indexOf(">") >= 0) { 2258 var l = "div"; 2259 for ( 2260 0 === o.indexOf("<li") && (l = "ul"), 2261 0 === o.indexOf("<tr") && (l = "tbody"), 2262 (0 !== o.indexOf("<td") && 0 !== o.indexOf("<th")) || (l = "tr"), 2263 0 === o.indexOf("<tbody") && (l = "table"), 2264 0 === o.indexOf("<option") && (l = "select"), 2265 n = document.createElement(l), 2266 n.innerHTML = a, 2267 i = 0; 2268 i < n.childNodes.length; 2269 i++ 2270 ) 2271 s.push(n.childNodes[i]); 2272 } else for (r = t || "#" !== a[0] || a.match(/[ .<>:~]/) ? (t || document).querySelectorAll(a) : [document.getElementById(a.split("#")[1])], i = 0; i < r.length; i++) r[i] && s.push(r[i]); 2273 } else if (a.nodeType || a === window || a === document) s.push(a); 2274 else if (a.length > 0 && a[0].nodeType) for (i = 0; i < a.length; i++) s.push(a[i]); 2275 return new e(s); 2276 }; 2277 return ( 2278 (e.prototype = { 2279 addClass: function (e) { 2280 if (void 0 === e) return this; 2281 for (var a = e.split(" "), t = 0; t < a.length; t++) for (var s = 0; s < this.length; s++) this[s].classList.add(a[t]); 2282 return this; 2283 }, 2284 removeClass: function (e) { 2285 for (var a = e.split(" "), t = 0; t < a.length; t++) for (var s = 0; s < this.length; s++) this[s].classList.remove(a[t]); 2286 return this; 2287 }, 2288 hasClass: function (e) { 2289 return !!this[0] && this[0].classList.contains(e); 2290 }, 2291 toggleClass: function (e) { 2292 for (var a = e.split(" "), t = 0; t < a.length; t++) for (var s = 0; s < this.length; s++) this[s].classList.toggle(a[t]); 2293 return this; 2294 }, 2295 attr: function (e, a) { 2296 if (1 === arguments.length && "string" == typeof e) return this[0] ? this[0].getAttribute(e) : void 0; 2297 for (var t = 0; t < this.length; t++) 2298 if (2 === arguments.length) this[t].setAttribute(e, a); 2299 else for (var s in e) (this[t][s] = e[s]), this[t].setAttribute(s, e[s]); 2300 return this; 2301 }, 2302 removeAttr: function (e) { 2303 for (var a = 0; a < this.length; a++) this[a].removeAttribute(e); 2304 return this; 2305 }, 2306 data: function (e, a) { 2307 if (void 0 !== a) { 2308 for (var t = 0; t < this.length; t++) { 2309 var s = this[t]; 2310 s.dom7ElementDataStorage || (s.dom7ElementDataStorage = {}), (s.dom7ElementDataStorage[e] = a); 2311 } 2312 return this; 2313 } 2314 if (this[0]) { 2315 var i = this[0].getAttribute("data-" + e); 2316 return i ? i : this[0].dom7ElementDataStorage && (e in this[0].dom7ElementDataStorage) ? this[0].dom7ElementDataStorage[e] : void 0; 2317 } 2318 }, 2319 transform: function (e) { 2320 for (var a = 0; a < this.length; a++) { 2321 var t = this[a].style; 2322 t.webkitTransform = t.MsTransform = t.msTransform = t.MozTransform = t.OTransform = t.transform = e; 2323 } 2324 return this; 2325 }, 2326 transition: function (e) { 2327 "string" != typeof e && (e += "ms"); 2328 for (var a = 0; a < this.length; a++) { 2329 var t = this[a].style; 2330 t.webkitTransitionDuration = t.MsTransitionDuration = t.msTransitionDuration = t.MozTransitionDuration = t.OTransitionDuration = t.transitionDuration = e; 2331 } 2332 return this; 2333 }, 2334 on: function (e, t, s, i) { 2335 function r(e) { 2336 var i = e.target; 2337 if (a(i).is(t)) s.call(i, e); 2338 else for (var r = a(i).parents(), n = 0; n < r.length; n++) a(r[n]).is(t) && s.call(r[n], e); 2339 } 2340 var n, 2341 o, 2342 l = e.split(" "); 2343 for (n = 0; n < this.length; n++) 2344 if ("function" == typeof t || t === !1) for ("function" == typeof t && ((s = arguments[1]), (i = arguments[2] || !1)), o = 0; o < l.length; o++) this[n].addEventListener(l[o], s, i); 2345 else for (o = 0; o < l.length; o++) this[n].dom7LiveListeners || (this[n].dom7LiveListeners = []), this[n].dom7LiveListeners.push({listener: s, liveListener: r}), this[n].addEventListener(l[o], r, i); 2346 return this; 2347 }, 2348 off: function (e, a, t, s) { 2349 for (var i = e.split(" "), r = 0; r < i.length; r++) 2350 for (var n = 0; n < this.length; n++) 2351 if ("function" == typeof a || a === !1) "function" == typeof a && ((t = arguments[1]), (s = arguments[2] || !1)), this[n].removeEventListener(i[r], t, s); 2352 else if (this[n].dom7LiveListeners) for (var o = 0; o < this[n].dom7LiveListeners.length; o++) this[n].dom7LiveListeners[o].listener === t && this[n].removeEventListener(i[r], this[n].dom7LiveListeners[o].liveListener, s); 2353 return this; 2354 }, 2355 once: function (e, a, t, s) { 2356 function i(n) { 2357 t(n), r.off(e, a, i, s); 2358 } 2359 var r = this; 2360 "function" == typeof a && ((a = !1), (t = arguments[1]), (s = arguments[2])), r.on(e, a, i, s); 2361 }, 2362 trigger: function (e, a) { 2363 for (var t = 0; t < this.length; t++) { 2364 var s; 2365 try { 2366 s = new window.CustomEvent(e, {detail: a, bubbles: !0, cancelable: !0}); 2367 } catch (t) { 2368 (s = document.createEvent("Event")), s.initEvent(e, !0, !0), (s.detail = a); 2369 } 2370 this[t].dispatchEvent(s); 2371 } 2372 return this; 2373 }, 2374 transitionEnd: function (e) { 2375 function a(r) { 2376 if (r.target === this) for (e.call(this, r), t = 0; t < s.length; t++) i.off(s[t], a); 2377 } 2378 var t, 2379 s = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], 2380 i = this; 2381 if (e) for (t = 0; t < s.length; t++) i.on(s[t], a); 2382 return this; 2383 }, 2384 width: function () { 2385 return this[0] === window ? window.innerWidth : this.length > 0 ? parseFloat(this.css("width")) : null; 2386 }, 2387 outerWidth: function (e) { 2388 return this.length > 0 ? (e ? this[0].offsetWidth + parseFloat(this.css("margin-right")) + parseFloat(this.css("margin-left")) : this[0].offsetWidth) : null; 2389 }, 2390 height: function () { 2391 return this[0] === window ? window.innerHeight : this.length > 0 ? parseFloat(this.css("height")) : null; 2392 }, 2393 outerHeight: function (e) { 2394 return this.length > 0 ? (e ? this[0].offsetHeight + parseFloat(this.css("margin-top")) + parseFloat(this.css("margin-bottom")) : this[0].offsetHeight) : null; 2395 }, 2396 offset: function () { 2397 if (this.length > 0) { 2398 var e = this[0], 2399 a = e.getBoundingClientRect(), 2400 t = document.body, 2401 s = e.clientTop || t.clientTop || 0, 2402 i = e.clientLeft || t.clientLeft || 0, 2403 r = window.pageYOffset || e.scrollTop, 2404 n = window.pageXOffset || e.scrollLeft; 2405 return {top: a.top + r - s, left: a.left + n - i}; 2406 } 2407 return null; 2408 }, 2409 css: function (e, a) { 2410 var t; 2411 if (1 === arguments.length) { 2412 if ("string" != typeof e) { 2413 for (t = 0; t < this.length; t++) for (var s in e) this[t].style[s] = e[s]; 2414 return this; 2415 } 2416 if (this[0]) return window.getComputedStyle(this[0], null).getPropertyValue(e); 2417 } 2418 if (2 === arguments.length && "string" == typeof e) { 2419 for (t = 0; t < this.length; t++) this[t].style[e] = a; 2420 return this; 2421 } 2422 return this; 2423 }, 2424 each: function (e) { 2425 for (var a = 0; a < this.length; a++) e.call(this[a], a, this[a]); 2426 return this; 2427 }, 2428 html: function (e) { 2429 if (void 0 === e) return this[0] ? this[0].innerHTML : void 0; 2430 for (var a = 0; a < this.length; a++) this[a].innerHTML = e; 2431 return this; 2432 }, 2433 text: function (e) { 2434 if (void 0 === e) return this[0] ? this[0].textContent.trim() : null; 2435 for (var a = 0; a < this.length; a++) this[a].textContent = e; 2436 return this; 2437 }, 2438 is: function (t) { 2439 if (!this[0]) return !1; 2440 var s, i; 2441 if ("string" == typeof t) { 2442 var r = this[0]; 2443 if (r === document) return t === document; 2444 if (r === window) return t === window; 2445 if (r.matches) return r.matches(t); 2446 if (r.webkitMatchesSelector) return r.webkitMatchesSelector(t); 2447 if (r.mozMatchesSelector) return r.mozMatchesSelector(t); 2448 if (r.msMatchesSelector) return r.msMatchesSelector(t); 2449 for (s = a(t), i = 0; i < s.length; i++) if (s[i] === this[0]) return !0; 2450 return !1; 2451 } 2452 if (t === document) return this[0] === document; 2453 if (t === window) return this[0] === window; 2454 if (t.nodeType || t instanceof e) { 2455 for (s = t.nodeType ? [t] : t, i = 0; i < s.length; i++) if (s[i] === this[0]) return !0; 2456 return !1; 2457 } 2458 return !1; 2459 }, 2460 index: function () { 2461 if (this[0]) { 2462 for (var e = this[0], a = 0; null !== (e = e.previousSibling); ) 1 === e.nodeType && a++; 2463 return a; 2464 } 2465 }, 2466 eq: function (a) { 2467 if (void 0 === a) return this; 2468 var t, 2469 s = this.length; 2470 return a > s - 1 ? new e([]) : a < 0 ? ((t = s + a), new e(t < 0 ? [] : [this[t]])) : new e([this[a]]); 2471 }, 2472 append: function (a) { 2473 var t, s; 2474 for (t = 0; t < this.length; t++) 2475 if ("string" == typeof a) { 2476 var i = document.createElement("div"); 2477 for (i.innerHTML = a; i.firstChild; ) this[t].appendChild(i.firstChild); 2478 } else if (a instanceof e) for (s = 0; s < a.length; s++) this[t].appendChild(a[s]); 2479 else this[t].appendChild(a); 2480 return this; 2481 }, 2482 prepend: function (a) { 2483 var t, s; 2484 for (t = 0; t < this.length; t++) 2485 if ("string" == typeof a) { 2486 var i = document.createElement("div"); 2487 for (i.innerHTML = a, s = i.childNodes.length - 1; s >= 0; s--) this[t].insertBefore(i.childNodes[s], this[t].childNodes[0]); 2488 } else if (a instanceof e) for (s = 0; s < a.length; s++) this[t].insertBefore(a[s], this[t].childNodes[0]); 2489 else this[t].insertBefore(a, this[t].childNodes[0]); 2490 return this; 2491 }, 2492 insertBefore: function (e) { 2493 for (var t = a(e), s = 0; s < this.length; s++) 2494 if (1 === t.length) t[0].parentNode.insertBefore(this[s], t[0]); 2495 else if (t.length > 1) for (var i = 0; i < t.length; i++) t[i].parentNode.insertBefore(this[s].cloneNode(!0), t[i]); 2496 }, 2497 insertAfter: function (e) { 2498 for (var t = a(e), s = 0; s < this.length; s++) 2499 if (1 === t.length) t[0].parentNode.insertBefore(this[s], t[0].nextSibling); 2500 else if (t.length > 1) for (var i = 0; i < t.length; i++) t[i].parentNode.insertBefore(this[s].cloneNode(!0), t[i].nextSibling); 2501 }, 2502 next: function (t) { 2503 return new e(this.length > 0 ? (t ? (this[0].nextElementSibling && a(this[0].nextElementSibling).is(t) ? [this[0].nextElementSibling] : []) : this[0].nextElementSibling ? [this[0].nextElementSibling] : []) : []); 2504 }, 2505 nextAll: function (t) { 2506 var s = [], 2507 i = this[0]; 2508 if (!i) return new e([]); 2509 for (; i.nextElementSibling; ) { 2510 var r = i.nextElementSibling; 2511 t ? a(r).is(t) && s.push(r) : s.push(r), (i = r); 2512 } 2513 return new e(s); 2514 }, 2515
2515prev: function (t) { 2516 return new e(this.length > 0 ? (t ? (this[0].previousElementSibling && a(this[0].previousElementSibling).is(t) ? [this[0].previousElementSibling] : []) : this[0].previousElementSibling ? [this[0].previousElementSibling] : []) : []); 2517 }, 2518 prevAll: function (t) { 2519 var s = [], 2520 i = this[0]; 2521 if (!i) return new e([]); 2522 for (; i.previousElementSibling; ) { 2523 var r = i.previousElementSibling; 2524 t ? a(r).is(t) && s.push(r) : s.push(r), (i = r); 2525 } 2526 return new e(s); 2527 }, 2528 parent: function (e) { 2529 for (var t = [], s = 0; s < this.length; s++) e ? a(this[s].parentNode).is(e) && t.push(this[s].parentNode) : t.push(this[s].parentNode); 2530 return a(a.unique(t)); 2531 }, 2532 parents: function (e) { 2533 for (var t = [], s = 0; s < this.length; s++) for (var i = this[s].parentNode; i; ) e ? a(i).is(e) && t.push(i) : t.push(i), (i = i.parentNode); 2534 return a(a.unique(t)); 2535 }, 2536 find: function (a) { 2537 for (var t = [], s = 0; s < this.length; s++) for (var i = this[s].querySelectorAll(a), r = 0; r < i.length; r++) t.push(i[r]); 2538 return new e(t); 2539 }, 2540 children: function (t) { 2541 for (var s = [], i = 0; i < this.length; i++) for (var r = this[i].childNodes, n = 0; n < r.length; n++) t ? 1 === r[n].nodeType && a(r[n]).is(t) && s.push(r[n]) : 1 === r[n].nodeType && s.push(r[n]); 2542 return new e(a.unique(s)); 2543 }, 2544 remove: function () { 2545 for (var e = 0; e < this.length; e++) this[e].parentNode && this[e].parentNode.removeChild(this[e]); 2546 return this; 2547 }, 2548 add: function () { 2549 var e, 2550 t, 2551 s = this; 2552 for (e = 0; e < arguments.length; e++) { 2553 var i = a(arguments[e]); 2554 for (t = 0; t < i.length; t++) (s[s.length] = i[t]), s.length++; 2555 } 2556 return s; 2557 }, 2558 }), 2559 (a.fn = e.prototype), 2560 (a.unique = function (e) { 2561 for (var a = [], t = 0; t < e.length; t++) a.indexOf(e[t]) === -1 && a.push(e[t]); 2562 return a; 2563 }), 2564 a 2565 ); 2566 })(), 2567 s = ["jQuery", "Zepto", "Dom7"], 2568 i = 0; 2569 i < s.length; 2570 i++ 2571 ) 2572 window[s[i]] && 2573 (function (e) { 2574 e.fn.swiper = function (t) { 2575 var s; 2576 return ( 2577 e(this).each(function () { 2578 var e = new a(this, t); 2579 s || (s = e); 2580 }), 2581 s 2582 ); 2583 }; 2584 })(window[s[i]]); 2585 var r; 2586 (r = void 0 === t ? window.Dom7 || window.Zepto || window.jQuery : t), 2587 r && 2588 ("transitionEnd" in r.fn || 2589 (r.fn.transitionEnd = function (e) { 2590 function a(r) { 2591 if (r.target === this) for (e.call(this, r), t = 0; t < s.length; t++) i.off(s[t], a); 2592 } 2593 var t, 2594 s = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], 2595 i = this; 2596 if (e) for (t = 0; t < s.length; t++) i.on(s[t], a); 2597 return this; 2598 }), 2599 "transform" in r.fn || 2600 (r.fn.transform = function (e) { 2601 for (var a = 0; a < this.length; a++) { 2602 var t = this[a].style; 2603 t.webkitTransform = t.MsTransform = t.msTransform = t.MozTransform = t.OTransform = t.transform = e; 2604 } 2605 return this; 2606 }), 2607 "transition" in r.fn || 2608 (r.fn.transition = function (e) { 2609 "string" != typeof e && (e += "ms"); 2610 for (var a = 0; a < this.length; a++) { 2611 var t = this[a].style; 2612 t.webkitTransitionDuration = t.MsTransitionDuration = t.msTransitionDuration = t.MozTransitionDuration = t.OTransitionDuration = t.transitionDuration = e; 2613 } 2614 return this; 2615 }), 2616 "outerWidth" in r.fn || 2617 (r.fn.outerWidth = function (e) { 2618 return this.length > 0 ? (e ? this[0].offsetWidth + parseFloat(this.css("margin-right")) + parseFloat(this.css("margin-left")) : this[0].offsetWidth) : null; 2619 })), 2620 (window.Swiper = a); 2621})(), 2622 "undefined" != typeof module 2623 ? (module.exports = window.Swiper) 2624 : "function" == typeof define && 2625 define.amd && 2626 define([], function () { 2627 "use strict"; 2628 return window.Swiper; 2629 }); 2630//# sourceMappingURL=maps/swiper.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.