zoukankan      html  css  js  c++  java
  • swiper实现移动端导航和内容板块的联动

    第一部分:HTML

    <!DOCTYPE html>
    <html lang="en">
    
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="css/index.css">
        <link rel="stylesheet" href="css/swiper.min copy.css">
        <script src="js/jquery.min.js"></script>
        <script src="js/swiper.min copy.js"></script>
        <title>Document</title>
        <script>
            var bw = (document.documentElement.clientWidth / 7.5) + "px";
            var htmlTag = document.getElementsByTagName("html")[0];
            htmlTag.style.fontSize = bw;
        </script>
    </head>
    
    <body>
        <div id="top">
            <div class="swiper-container nav" id="nav">
                <div class="swiper-wrapper">
                    <div style="font-weight: bold;" class="swiper-slide nav-a">
                        <span style="color: #fff;">宝马</span>
                    </div>
                    <div class="swiper-slide nav-a">
                        <span>奔驰</span>
                    </div>
                    <div class="swiper-slide nav-a">
                        <span>捷豹</span>
                    </div>
                    <div class="swiper-slide nav-a">
                        <span>保时捷</span>
                    </div>
                    <div class="swiper-slide nav-a">
                        <span>路虎</span>
                    </div>
                    <div class="swiper-slide nav-a">
                        <span>大众</span>
                    </div>
                    <div class="swiper-slide nav-a">
                        <span>丰田</span>
                    </div>
                    <div class="swiper-slide nav-a">
                        <span>本田</span>
                    </div>
                    <div class="swiper-slide nav-a">
                        <span>奥迪</span>
                    </div>
                    <div class="swiper-slide nav-a">
                        <span>沃尔沃</span>
                    </div>
                    <div class="bar">
                        <div class="color"></div>
                    </div>
                </div>
            </div>
        </div>
        <div class="swiper-container" id="page">
            <div class="swiper-wrapper">
                <div class="swiper-slide slidepage"> 宝马 </div>
                <div class="swiper-slide slidepage"> 奔驰 </div>
                <div class="swiper-slide slidepage"> 捷豹 </div>
                <div class="swiper-slide slidepage"> 保时捷 </div>
                <div class="swiper-slide slidepage"> 路虎 </div>
                <div class="swiper-slide slidepage"> 大众 </div>
                <div class="swiper-slide slidepage"> 丰田 </div>
                <div class="swiper-slide slidepage"> 本田 </div>
                <div class="swiper-slide slidepage"> 奥迪 </div>
                <div class="swiper-slide slidepage"> 沃尔沃 </div>
            </div>
        </div>
    </body>
    </html>
    

    第二部分:CSS

    body,
    dd,
    dl,
    dt,
    fieldset,
    form,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    html,
    img,
    legend,
    li,
    ol,
    p,
    ul {
    	margin: 0;
    	padding: 0
    }
    
    fieldset,
    img {
    	border: none
    }
    
    address,
    caption,
    cite,
    code,
    dfn,
    th,
    var {
    	font-style: normal;
    	font-weight: 400
    }
    
    ol,
    ul {
    	list-style: none
    }
    
    input,
    select {
    	vertical-align: middle
    }
    
    input,
    select,
    textarea {
    	font-size: 12px;
    	margin: 0
    }
    
    table {
    	border-collapse: collapse
    }
    html,body{
        height: 100%;
    }
    .mescroll {
         100%;
        height: 100%;
        margin: 0 auto;
        overflow-y: scroll;
        padding-top: .03rem;
    }
    #top {
        position: fixed;
        top: 0;
        z-index: 5;
         100%;
        background: #fff;
    }
    #nav .bar .color{
         .2rem;
        margin: 0 auto;
        height: 1px;
        background: #FFFFFF;
      }
      #nav .bar {
         .5rem;
        height: .03rem;
        position: absolute;
        bottom: .12rem;
    }
    .nav-a span{
        line-height: .55rem;
    }
    #page {
        height:100%;
        padding-top: .58rem;
    
    }
    #page .slidepage {
    	height:100%;
    }
    
    .nav{
        position: relative;
        background-color: #4396f7;
        height: .56rem;
    }
    .nav-list{
        overflow: hidden;
        overflow-x: scroll;
        white-space: nowrap;
        display: flex;
        height: .56rem;
        align-items: center;
    }
    .nav-a {
        color: rgba(255,255,255,.7);
        text-decoration: none;
        font-size: .16rem;
        margin:  0px;
        line-height: .28rem;
        display: inline-block;
        height: 100%;
        overflow: hidden;
        position: relative;
        text-align: center;
    }
    

    第三部分:JS

       //暂时设计每个slide大小需要一致
        barwidth = 36 //导航条的长度px
        tSpeed = 100 //切换速度300ms
        var navSwiper = new Swiper('#nav', {
            slidesPerView: 6,
            freeMode: true,
            on: {
                init: function () {
                    navSlideWidth = this.slides.eq(0).css('width'); //导航字数需要统一,每个导航宽度一致
                    bar = this.$el.find('.bar')
                    bar.css('width', navSlideWidth)
                    bar.transition(tSpeed)
                    navSum = this.slides[this.slides.length - 1].offsetLeft //最后一个slide的位置
                    clientWidth = parseInt(this.$wrapperEl.css('width')) //Nav的可视宽度
                    navWidth = 0
                    for (i = 0; i < this.slides.length; i++) {
                        navWidth += parseInt(this.slides.eq(i).css('width'))
                    }
                    topBar = this.$el.parents('body').find('#top') //页头
                },
            },
        });
        var pageSwiper = new Swiper('#page', {
            watchSlidesProgress: true,
            resistanceRatio: 0,
            on: {
                touchMove: function () {
                    progress = this.progress
                    bar.transition(0)
                    bar.transform('translateX(' + navSum * progress + 'px)')
                },
                transitionStart: function () {
                    activeIndex = this.activeIndex
                    activeSlidePosition = navSwiper.slides[activeIndex].offsetLeft
                    //释放时导航粉色条移动过渡
                    bar.transition(tSpeed)
                    bar.transform('translateX(' + activeSlidePosition + 'px)')
                    //释放时文字变色过渡
                    navSwiper.slides.eq(activeIndex).find('span').transition(tSpeed)
                    navSwiper.slides.eq(activeIndex).find('span').css('color', '#fff')
                    navSwiper.slides.eq(activeIndex).css('font-weight', 'bold')
                    if (activeIndex > 0) {
                        navSwiper.slides.eq(activeIndex - 1).find('span').transition(tSpeed)
                        navSwiper.slides.eq(activeIndex - 1).find('span').css('color', 'rgba(255,255,255,.7)')
                        navSwiper.slides.eq(activeIndex - 1).css('font-weight', 'inherit')
                    }
                    if (activeIndex < this.slides.length) {
                        navSwiper.slides.eq(activeIndex + 1).find('span').transition(tSpeed)
                        navSwiper.slides.eq(activeIndex + 1).find('span').css('color', 'rgba(255,255,255,.7)')
                        navSwiper.slides.eq(activeIndex + 1).css('font-weight', 'inherit')
                    }
                    //导航居中
                    navActiveSlideLeft = navSwiper.slides[activeIndex].offsetLeft //activeSlide距左边的距离
                    navSwiper.setTransition(tSpeed)
                    if (navActiveSlideLeft < (clientWidth - parseInt(navSlideWidth)) / 2) {
                        navSwiper.setTranslate(0)
                    } else if (navActiveSlideLeft > navWidth - (parseInt(navSlideWidth) + clientWidth) / 2) {
                        navSwiper.setTranslate(clientWidth - navWidth)
                    } else {
                        navSwiper.setTranslate((clientWidth - parseInt(navSlideWidth)) / 2 - navActiveSlideLeft)
                    }
                },
            }
        });
        navSwiper.on('tap', function (e) {
            clickIndex = this.clickedIndex
            clickSlide = this.slides.eq(clickIndex)
            pageSwiper.slideTo(clickIndex, 0);
            this.slides.find('span').css('color', 'rgba(255,255,255,.7)');
            clickSlide.find('span').css('color', '#fff');
        })
    
    swiper.min copy.js
    /**
     * Swiper 4.0.7
     * Most modern mobile touch slider and framework with hardware accelerated transitions
     * http://www.idangero.us/swiper/
     *
     * Copyright 2014-2017 Vladimir Kharlampidi
     *
     * Released under the MIT License
     *
     * Released on: November 28, 2017
     */
    ! function (e, t) {
        "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : e.Swiper = t()
    }(this, function () {
        "use strict";
    
        function e(e, t) {
            var a = [],
                i = 0;
            if (e && !t && e instanceof r) return e;
            if (e)
                if ("string" == typeof e) {
                    var s, n, o = e.trim();
                    if (o.indexOf("<") >= 0 && o.indexOf(">") >= 0) {
                        var l = "div";
                        for (0 === o.indexOf("<li") && (l = "ul"), 0 === o.indexOf("<tr") && (l = "tbody"), 0 !== o.indexOf("<td") && 0 !== o.indexOf("<th") || (l = "tr"), 0 === o.indexOf("<tbody") && (l = "table"), 0 === o.indexOf("<option") && (l = "select"), (n = document.createElement(l)).innerHTML = o, i = 0; i < n.childNodes.length; i += 1) a.push(n.childNodes[i])
                    } else
                        for (s = t || "#" !== e[0] || e.match(/[ .<>:~]/) ? (t || document).querySelectorAll(e.trim()) : [document.getElementById(e.trim().split("#")[1])], i = 0; i < s.length; i += 1) s[i] && a.push(s[i])
                } else if (e.nodeType || e === window || e === document) a.push(e);
            else if (e.length > 0 && e[0].nodeType)
                for (i = 0; i < e.length; i += 1) a.push(e[i]);
            return new r(a)
        }
    
        function t(e) {
            for (var t = [], a = 0; a < e.length; a += 1) - 1 === t.indexOf(e[a]) && t.push(e[a]);
            return t
        }
    
        function a() {
            var e = "onwheel" in d;
            if (!e) {
                var t = d.createElement("div");
                t.setAttribute("onwheel", "return;"), e = "function" == typeof t.onwheel
            }
            return !e && d.implementation && d.implementation.hasFeature && !0 !== d.implementation.hasFeature("", "") && (e = d.implementation.hasFeature("Events.wheel", "3.0")), e
        }
        var i, s = i = "undefined" == typeof window ? {
                navigator: {
                    userAgent: ""
                },
                location: {},
                history: {},
                addEventListener: function () {},
                removeEventListener: function () {},
                getComputedStyle: function () {
                    return {}
                },
                Image: function () {},
                Date: function () {},
                screen: {}
            } : window,
            r = function (e) {
                for (var t = this, a = 0; a < e.length; a += 1) t[a] = e[a];
                return t.length = e.length, this
            };
        e.fn = r.prototype, e.Class = r, e.Dom7 = r;
        "resize scroll".split(" ");
        var n = {
            addClass: function (e) {
                var t = this;
                if (void 0 === e) return this;
                for (var a = e.split(" "), i = 0; i < a.length; i += 1)
                    for (var s = 0; s < this.length; s += 1) void 0 !== t[s].classList && t[s].classList.add(a[i]);
                return this
            },
            removeClass: function (e) {
                for (var t = this, a = e.split(" "), i = 0; i < a.length; i += 1)
                    for (var s = 0; s < this.length; s += 1) void 0 !== t[s].classList && t[s].classList.remove(a[i]);
                return this
            },
            hasClass: function (e) {
                return !!this[0] && this[0].classList.contains(e)
            },
            toggleClass: function (e) {
                for (var t = this, a = e.split(" "), i = 0; i < a.length; i += 1)
                    for (var s = 0; s < this.length; s += 1) void 0 !== t[s].classList && t[s].classList.toggle(a[i]);
                return this
            },
            attr: function (e, t) {
                var a = arguments,
                    i = this;
                if (1 !== arguments.length || "string" != typeof e) {
                    for (var s = 0; s < this.length; s += 1)
                        if (2 === a.length) i[s].setAttribute(e, t);
                        else
                            for (var r in e) i[s][r] = e[r], i[s].setAttribute(r, e[r]);
                    return this
                }
                if (this[0]) return this[0].getAttribute(e)
            },
            removeAttr: function (e) {
                for (var t = this, a = 0; a < this.length; a += 1) t[a].removeAttribute(e);
                return this
            },
            data: function (e, t) {
                var a, i = this;
                if (void 0 !== t) {
                    for (var s = 0; s < this.length; s += 1)(a = i[s]).dom7ElementDataStorage || (a.dom7ElementDataStorage = {}), a.dom7ElementDataStorage[e] = t;
                    return this
                }
                if (a = this[0]) {
                    if (a.dom7ElementDataStorage && e in a.dom7ElementDataStorage) return a.dom7ElementDataStorage[e];
                    var r = a.getAttribute("data-" + e);
                    if (r) return r
                }
            },
            transform: function (e) {
                for (var t = this, a = 0; a < this.length; a += 1) {
                    var i = t[a].style;
                    i.webkitTransform = e, i.transform = e
                }
                return this
            },
            transition: function (e) {
                var t = this;
                "string" != typeof e && (e += "ms");
                for (var a = 0; a < this.length; a += 1) {
                    var i = t[a].style;
                    i.webkitTransitionDuration = e, i.transitionDuration = e
                }
                return this
            },
            on: function () {
                function t(t) {
                    var a = t.target;
                    if (a) {
                        var i = t.target.dom7EventData || [];
                        if (i.unshift(t), e(a).is(o)) l.apply(a, i);
                        else
                            for (var s = e(a).parents(), r = 0; r < s.length; r += 1) e(s[r]).is(o) && l.apply(s[r], i)
                    }
                }
    
                function a(e) {
                    var t = e && e.target ? e.target.dom7EventData || [] : [];
                    t.unshift(e), l.apply(this, t)
                }
                for (var i = this, s = [], r = arguments.length; r--;) s[r] = arguments[r];
                var n = s[0],
                    o = s[1],
                    l = s[2],
                    d = s[3];
                if ("function" == typeof s[1]) {
                    var p;
                    n = (p = s)[0], l = p[1], d = p[2], o = void 0
                }
                d || (d = !1);
                for (var c, u = n.split(" "), h = 0; h < this.length; h += 1) {
                    var v = i[h];
                    if (o)
                        for (c = 0; c < u.length; c += 1) v.dom7LiveListeners || (v.dom7LiveListeners = []), v.dom7LiveListeners.push({
                            type: n,
                            listener: l,
                            proxyListener: t
                        }), v.addEventListener(u[c], t, d);
                    else
                        for (c = 0; c < u.length; c += 1) v.dom7Listeners || (v.dom7Listeners = []), v.dom7Listeners.push({
                            type: n,
                            listener: l,
                            proxyListener: a
                        }), v.addEventListener(u[c], a, d)
                }
                return this
            },
            off: function () {
                for (var e = this, t = [], a = arguments.length; a--;) t[a] = arguments[a];
                var i = t[0],
                    s = t[1],
                    r = t[2],
                    n = t[3];
                if ("function" == typeof t[1]) {
                    var o;
                    i = (o = t)[0], r = o[1], n = o[2], s = void 0
                }
                n || (n = !1);
                for (var l = i.split(" "), d = 0; d < l.length; d += 1)
                    for (var p = 0; p < this.length; p += 1) {
                        var c = e[p];
                        if (s) {
                            if (c.dom7LiveListeners)
                                for (var u = 0; u < c.dom7LiveListeners.length; u += 1) r ? c.dom7LiveListeners[u].listener === r && c.removeEventListener(l[d], c.dom7LiveListeners[u].proxyListener, n) : c.dom7LiveListeners[u].type === l[d] && c.removeEventListener(l[d], c.dom7LiveListeners[u].proxyListener, n)
                        } else if (c.dom7Listeners)
                            for (var h = 0; h < c.dom7Listeners.length; h += 1) r ? c.dom7Listeners[h].listener === r && c.removeEventListener(l[d], c.dom7Listeners[h].proxyListener, n) : c.dom7Listeners[h].type === l[d] && c.removeEventListener(l[d], c.dom7Listeners[h].proxyListener, n)
                    }
                return this
            },
            trigger: function () {
                for (var e = this, t = [], a = arguments.length; a--;) t[a] = arguments[a];
                for (var i = t[0].split(" "), s = t[1], r = 0; r < i.length; r += 1)
                    for (var n = 0; n < this.length; n += 1) {
                        var o = void 0;
                        try {
                            o = new window.CustomEvent(i[r], {
                                detail: s,
                                bubbles: !0,
                                cancelable: !0
                            })
                        } catch (e) {
                            (o = document.createEvent("Event")).initEvent(i[r], !0, !0), o.detail = s
                        }
                        e[n].dom7EventData = t.filter(function (e, t) {
                            return t > 0
                        }), e[n].dispatchEvent(o), e[n].dom7EventData = [], delete e[n].dom7EventData
                    }
                return this
            },
            transitionEnd: function (e) {
                function t(r) {
                    if (r.target === this)
                        for (e.call(this, r), a = 0; a < i.length; a += 1) s.off(i[a], t)
                }
                var a, i = ["webkitTransitionEnd", "transitionend"],
                    s = this;
                if (e)
                    for (a = 0; a < i.length; a += 1) s.on(i[a], t);
                return this
            },
            outerWidth: function (e) {
                if (this.length > 0) {
                    if (e) {
                        var t = this.styles();
                        return this[0].offsetWidth + parseFloat(t.getPropertyValue("margin-right")) + parseFloat(t.getPropertyValue("margin-left"))
                    }
                    return this[0].offsetWidth
                }
                return null
            },
            outerHeight: function (e) {
                if (this.length > 0) {
                    if (e) {
                        var t = this.styles();
                        return this[0].offsetHeight + parseFloat(t.getPropertyValue("margin-top")) + parseFloat(t.getPropertyValue("margin-bottom"))
                    }
                    return this[0].offsetHeight
                }
                return null
            },
            offset: function () {
                if (this.length > 0) {
                    var e = this[0],
                        t = e.getBoundingClientRect(),
                        a = document.body,
                        i = e.clientTop || a.clientTop || 0,
                        s = e.clientLeft || a.clientLeft || 0,
                        r = e === window ? window.scrollY : e.scrollTop,
                        n = e === window ? window.scrollX : e.scrollLeft;
                    return {
                        top: t.top + r - i,
                        left: t.left + n - s
                    }
                }
                return null
            },
            css: function (e, t) {
                var a, i = this;
                if (1 === arguments.length) {
                    if ("string" != typeof e) {
                        for (a = 0; a < this.length; a += 1)
                            for (var s in e) i[a].style[s] = e[s];
                        return this
                    }
                    if (this[0]) return window.getComputedStyle(this[0], null).getPropertyValue(e)
                }
                if (2 === arguments.length && "string" == typeof e) {
                    for (a = 0; a < this.length; a += 1) i[a].style[e] = t;
                    return this
                }
                return this
            },
            each: function (e) {
                var t = this;
                if (!e) return this;
                for (var a = 0; a < this.length; a += 1)
                    if (!1 === e.call(t[a], a, t[a])) return t;
                return this
            },
            html: function (e) {
                var t = this;
                if (void 0 === e) return this[0] ? this[0].innerHTML : void 0;
                for (var a = 0; a < this.length; a += 1) t[a].innerHTML = e;
                return this
            },
            text: function (e) {
                var t = this;
                if (void 0 === e) return this[0] ? this[0].textContent.trim() : null;
                for (var a = 0; a < this.length; a += 1) t[a].textContent = e;
                return this
            },
            is: function (t) {
                var a, i, s = this[0];
                if (!s || void 0 === t) return !1;
                if ("string" == typeof t) {
                    if (s.matches) return s.matches(t);
                    if (s.webkitMatchesSelector) return s.webkitMatchesSelector(t);
                    if (s.msMatchesSelector) return s.msMatchesSelector(t);
                    for (a = e(t), i = 0; i < a.length; i += 1)
                        if (a[i] === s) return !0;
                    return !1
                }
                if (t === document) return s === document;
                if (t === window) return s === window;
                if (t.nodeType || t instanceof r) {
                    for (a = t.nodeType ? [t] : t, i = 0; i < a.length; i += 1)
                        if (a[i] === s) return !0;
                    return !1
                }
                return !1
            },
            index: function () {
                var e, t = this[0];
                if (t) {
                    for (e = 0; null !== (t = t.previousSibling);) 1 === t.nodeType && (e += 1);
                    return e
                }
            },
            eq: function (e) {
                if (void 0 === e) return this;
                var t, a = this.length;
                return e > a - 1 ? new r([]) : e < 0 ? (t = a + e, new r(t < 0 ? [] : [this[t]])) : new r([this[e]])
            },
            append: function () {
                for (var e = this, t = [], a = arguments.length; a--;) t[a] = arguments[a];
                for (var i, s = 0; s < t.length; s += 1) {
                    i = t[s];
                    for (var n = 0; n < this.length; n += 1)
                        if ("string" == typeof i) {
                            var o = document.createElement("div");
                            for (o.innerHTML = i; o.firstChild;) e[n].appendChild(o.firstChild)
                        } else if (i instanceof r)
                        for (var l = 0; l < i.length; l += 1) e[n].appendChild(i[l]);
                    else e[n].appendChild(i)
                }
                return this
            },
            prepend: function (e) {
                var t, a, i = this;
                for (t = 0; t < this.length; t += 1)
                    if ("string" == typeof e) {
                        var s = document.createElement("div");
                        for (s.innerHTML = e, a = s.childNodes.length - 1; a >= 0; a -= 1) i[t].insertBefore(s.childNodes[a], i[t].childNodes[0])
                    } else if (e instanceof r)
                    for (a = 0; a < e.length; a += 1) i[t].insertBefore(e[a], i[t].childNodes[0]);
                else i[t].insertBefore(e, i[t].childNodes[0]);
                return this
            },
            next: function (t) {
                return new r(this.length > 0 ? t ? this[0].nextElementSibling && e(this[0].nextElementSibling).is(t) ? [this[0].nextElementSibling] : [] : this[0].nextElementSibling ? [this[0].nextElementSibling] : [] : [])
            },
            nextAll: function (t) {
                var a = [],
                    i = this[0];
                if (!i) return new r([]);
                for (; i.nextElementSibling;) {
                    var s = i.nextElementSibling;
                    t ? e(s).is(t) && a.push(s) : a.push(s), i = s
                }
                return new r(a)
            },
            prev: function (t) {
                if (this.length > 0) {
                    var a = this[0];
                    return new r(t ? a.previousElementSibling && e(a.previousElementSibling).is(t) ? [a.previousElementSibling] : [] : a.previousElementSibling ? [a.previousElementSibling] : [])
                }
                return new r([])
            },
            prevAll: function (t) {
                var a = [],
                    i = this[0];
                if (!i) return new r([]);
                for (; i.previousElementSibling;) {
                    var s = i.previousElementSibling;
                    t ? e(s).is(t) && a.push(s) : a.push(s), i = s
                }
                return new r(a)
            },
            parent: function (a) {
                for (var i = this, s = [], r = 0; r < this.length; r += 1) null !== i[r].parentNode && (a ? e(i[r].parentNode).is(a) && s.push(i[r].parentNode) : s.push(i[r].parentNode));
                return e(t(s))
            },
            parents: function (a) {
                for (var i = this, s = [], r = 0; r < this.length; r += 1)
                    for (var n = i[r].parentNode; n;) a ? e(n).is(a) && s.push(n) : s.push(n), n = n.parentNode;
                return e(t(s))
            },
            closest: function (e) {
                var t = this;
                return void 0 === e ? new r([]) : (t.is(e) || (t = t.parents(e).eq(0)), t)
            },
            find: function (e) {
                for (var t = this, a = [], i = 0; i < this.length; i += 1)
                    for (var s = t[i].querySelectorAll(e), n = 0; n < s.length; n += 1) a.push(s[n]);
                return new r(a)
            },
            children: function (a) {
                for (var i = this, s = [], n = 0; n < this.length; n += 1)
                    for (var o = i[n].childNodes, l = 0; l < o.length; l += 1) a ? 1 === o[l].nodeType && e(o[l]).is(a) && s.push(o[l]) : 1 === o[l].nodeType && s.push(o[l]);
                return new r(t(s))
            },
            remove: function () {
                for (var e = this, t = 0; t < this.length; t += 1) e[t].parentNode && e[t].parentNode.removeChild(e[t]);
                return this
            },
            add: function () {
                for (var t = [], a = arguments.length; a--;) t[a] = arguments[a];
                var i, s, r = this;
                for (i = 0; i < t.length; i += 1) {
                    var n = e(t[i]);
                    for (s = 0; s < n.length; s += 1) r[r.length] = n[s], r.length += 1
                }
                return r
            },
            styles: function () {
                return this[0] ? window.getComputedStyle(this[0], null) : {}
            }
        };
        Object.keys(n).forEach(function (t) {
            e.fn[t] = n[t]
        });
        var o, l = {
                deleteProps: function (e) {
                    var t = e;
                    Object.keys(t).forEach(function (e) {
                        try {
                            t[e] = null
                        } catch (e) {}
                        try {
                            delete t[e]
                        } catch (e) {}
                    })
                },
                nextTick: function (e, t) {
                    return void 0 === t && (t = 0), setTimeout(e, t)
                },
                now: function () {
                    return Date.now()
                },
                getTranslate: function (e, t) {
                    void 0 === t && (t = "x");
                    var a, i, r, n = s.getComputedStyle(e, null);
                    return s.WebKitCSSMatrix ? ((i = n.transform || n.webkitTransform).split(",").length > 6 && (i = i.split(", ").map(function (e) {
                        return e.replace(",", ".")
                    }).join(", ")), r = new s.WebKitCSSMatrix("none" === i ? "" : i)) : a = (r = n.MozTransform || n.OTransform || n.MsTransform || n.msTransform || n.transform || n.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,")).toString().split(","), "x" === t && (i = s.WebKitCSSMatrix ? r.m41 : 16 === a.length ? parseFloat(a[12]) : parseFloat(a[4])), "y" === t && (i = s.WebKitCSSMatrix ? r.m42 : 16 === a.length ? parseFloat(a[13]) : parseFloat(a[5])), i || 0
                },
                parseUrlQuery: function (e) {
                    var t, a, i, r, n = {},
                        o = e || s.location.href;
                    if ("string" == typeof o && o.length)
                        for (r = (a = (o = o.indexOf("?") > -1 ? o.replace(/S*?/, "") : "").split("&").filter(function (e) {
                                return "" !== e
                            })).length, t = 0; t < r; t += 1) i = a[t].replace(/#S+/g, "").split("="), n[decodeURIComponent(i[0])] = void 0 === i[1] ? void 0 : decodeURIComponent(i[1]) || "";
                    return n
                },
                isObject: function (e) {
                    return "object" == typeof e && null !== e && e.constructor && e.constructor === Object
                },
                extend: function () {
                    for (var e = [], t = arguments.length; t--;) e[t] = arguments[t];
                    for (var a = Object(e[0]), i = 1; i < e.length; i += 1) {
                        var s = e[i];
                        if (void 0 !== s && null !== s)
                            for (var r = Object.keys(Object(s)), n = 0, o = r.length; n < o; n += 1) {
                                var d = r[n],
                                    p = Object.getOwnPropertyDescriptor(s, d);
                                void 0 !== p && p.enumerable && (l.isObject(a[d]) && l.isObject(s[d]) ? l.extend(a[d], s[d]) : !l.isObject(a[d]) && l.isObject(s[d]) ? (a[d] = {}, l.extend(a[d], s[d])) : a[d] = s[d])
                            }
                    }
                    return a
                }
            },
            d = o = "undefined" == typeof document ? {
                addEventListener: function () {},
                removeEventListener: function () {},
                activeElement: {
                    blur: function () {},
                    nodeName: ""
                },
                querySelector: function () {
                    return {}
                },
                querySelectorAll: function () {
                    return []
                },
                createElement: function () {
                    return {
                        style: {},
                        setAttribute: function () {},
                        getElementsByTagName: function () {
                            return []
                        }
                    }
                },
                location: {
                    hash: ""
                }
            } : document,
            p = {
                touch: s.Modernizr && !0 === s.Modernizr.touch || !!("ontouchstart" in s || s.DocumentTouch && d instanceof s.DocumentTouch),
                transforms3d: s.Modernizr && !0 === s.Modernizr.csstransforms3d || function () {
                    var e = d.createElement("div").style;
                    return "webkitPerspective" in e || "MozPerspective" in e || "OPerspective" in e || "MsPerspective" in e || "perspective" in e
                }(),
                flexbox: function () {
                    for (var e = d.createElement("div").style, t = "alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "), a = 0; a < t.length; a += 1)
                        if (t[a] in e) return !0;
                    return !1
                }(),
                observer: "MutationObserver" in s || "WebkitMutationObserver" in s,
                passiveListener: function () {
                    var e = !1;
                    try {
                        var t = Object.defineProperty({}, "passive", {
                            get: function () {
                                e = !0
                            }
                        });
                        s.addEventListener("testPassiveListener", null, t)
                    } catch (e) {}
                    return e
                }(),
                gestures: "ongesturestart" in s
            },
            c = function (e) {
                void 0 === e && (e = {});
                var t = this;
                t.params = e, t.eventsListeners = {}, t.params && t.params.on && Object.keys(t.params.on).forEach(function (e) {
                    t.on(e, t.params.on[e])
                })
            },
            u = {
                components: {}
            };
        c.prototype.on = function (e, t) {
            var a = this;
            return "function" != typeof t ? a : (e.split(" ").forEach(function (e) {
                a.eventsListeners[e] || (a.eventsListeners[e] = []), a.eventsListeners[e].push(t)
            }), a)
        }, c.prototype.once = function (e, t) {
            function a() {
                for (var s = [], r = arguments.length; r--;) s[r] = arguments[r];
                t.apply(i, s), i.off(e, a)
            }
            var i = this;
            return "function" != typeof t ? i : i.on(e, a)
        }, c.prototype.off = function (e, t) {
            var a = this;
            return e.split(" ").forEach(function (e) {
                void 0 === t ? a.eventsListeners[e] = [] : a.eventsListeners[e].forEach(function (i, s) {
                    i === t && a.eventsListeners[e].splice(s, 1)
                })
            }), a
        }, c.prototype.emit = function () {
            for (var e = [], t = arguments.length; t--;) e[t] = arguments[t];
            var a = this;
            if (!a.eventsListeners) return a;
            var i, s, r;
            return "string" == typeof e[0] || Array.isArray(e[0]) ? (i = e[0], s = e.slice(1, e.length), r = a) : (i = e[0].events, s = e[0].data, r = e[0].context || a), (Array.isArray(i) ? i : i.split(" ")).forEach(function (e) {
                if (a.eventsListeners[e]) {
                    var t = [];
                    a.eventsListeners[e].forEach(function (e) {
                        t.push(e)
                    }), t.forEach(function (e) {
                        e.apply(r, s)
                    })
                }
            }), a
        }, c.prototype.useModulesParams = function (e) {
            var t = this;
            t.modules && Object.keys(t.modules).forEach(function (a) {
                var i = t.modules[a];
                i.params && l.extend(e, i.params)
            })
        }, c.prototype.useModules = function (e) {
            void 0 === e && (e = {});
            var t = this;
            t.modules && Object.keys(t.modules).forEach(function (a) {
                var i = t.modules[a],
                    s = e[a] || {};
                i.instance && Object.keys(i.instance).forEach(function (e) {
                    var a = i.instance[e];
                    t[e] = "function" == typeof a ? a.bind(t) : a
                }), i.on && t.on && Object.keys(i.on).forEach(function (e) {
                    t.on(e, i.on[e])
                }), i.create && i.create.bind(t)(s)
            })
        }, u.components.set = function (e) {
            var t = this;
            t.use && t.use(e)
        }, c.installModule = function (e) {
            for (var t = [], a = arguments.length - 1; a-- > 0;) t[a] = arguments[a + 1];
            var i = this;
            i.prototype.modules || (i.prototype.modules = {});
            var s = e.name || Object.keys(i.prototype.modules).length + "_" + l.now();
            return i.prototype.modules[s] = e, e.proto && Object.keys(e.proto).forEach(function (t) {
                i.prototype[t] = e.proto[t]
            }), e.static && Object.keys(e.static).forEach(function (t) {
                i[t] = e.static[t]
            }), e.install && e.install.apply(i, t), i
        }, c.use = function (e) {
            for (var t = [], a = arguments.length - 1; a-- > 0;) t[a] = arguments[a + 1];
            var i = this;
            return Array.isArray(e) ? (e.forEach(function (e) {
                return i.installModule(e)
            }), i) : i.installModule.apply(i, [e].concat(t))
        }, Object.defineProperties(c, u);
        var h = {
                updateSize: function () {
                    var e, t, a = this,
                        i = a.$el;
                    e = void 0 !== a.params.width ? a.params.width : i[0].clientWidth, t = void 0 !== a.params.height ? a.params.height : i[0].clientHeight, 0 === e && a.isHorizontal() || 0 === t && a.isVertical() || (e = e - parseInt(i.css("padding-left"), 10) - parseInt(i.css("padding-right"), 10), t = t - parseInt(i.css("padding-top"), 10) - parseInt(i.css("padding-bottom"), 10), l.extend(a, {
                         e,
                        height: t,
                        size: a.isHorizontal() ? e : t
                    }))
                },
                updateSlides: function () {
                    var e = this,
                        t = e.params,
                        a = e.$wrapperEl,
                        i = e.size,
                        s = e.rtl,
                        r = e.wrongRTL,
                        n = a.children("." + e.params.slideClass),
                        o = e.virtual && t.virtual.enabled ? e.virtual.slides.length : n.length,
                        d = [],
                        c = [],
                        u = [],
                        h = t.slidesOffsetBefore;
                    "function" == typeof h && (h = t.slidesOffsetBefore.call(e));
                    var v = t.slidesOffsetAfter;
                    "function" == typeof v && (v = t.slidesOffsetAfter.call(e));
                    var f = o,
                        m = e.snapGrid.length,
                        g = e.snapGrid.length,
                        b = t.spaceBetween,
                        w = -h,
                        y = 0,
                        x = 0;
                    if (void 0 !== i) {
                        "string" == typeof b && b.indexOf("%") >= 0 && (b = parseFloat(b.replace("%", "")) / 100 * i), e.virtualSize = -b, s ? n.css({
                            marginLeft: "",
                            marginTop: ""
                        }) : n.css({
                            marginRight: "",
                            marginBottom: ""
                        });
                        var T;
                        t.slidesPerColumn > 1 && (T = Math.floor(o / t.slidesPerColumn) === o / e.params.slidesPerColumn ? o : Math.ceil(o / t.slidesPerColumn) * t.slidesPerColumn, "auto" !== t.slidesPerView && "row" === t.slidesPerColumnFill && (T = Math.max(T, t.slidesPerView * t.slidesPerColumn)));
                        for (var E, S = t.slidesPerColumn, C = T / S, M = C - (t.slidesPerColumn * C - o), z = 0; z < o; z += 1) {
                            E = 0;
                            var P = n.eq(z);
                            if (t.slidesPerColumn > 1) {
                                var k = void 0,
                                    $ = void 0,
                                    I = void 0;
                                "column" === t.slidesPerColumnFill ? (I = z - ($ = Math.floor(z / S)) * S, ($ > M || $ === M && I === S - 1) && (I += 1) >= S && (I = 0, $ += 1), k = $ + I * T / S, P.css({
                                    "-webkit-box-ordinal-group": k,
                                    "-moz-box-ordinal-group": k,
                                    "-ms-flex-order": k,
                                    "-webkit-order": k,
                                    order: k
                                })) : $ = z - (I = Math.floor(z / C)) * C, P.css("margin-" + (e.isHorizontal() ? "top" : "left"), 0 !== I && t.spaceBetween && t.spaceBetween + "px").attr("data-swiper-column", $).attr("data-swiper-row", I)
                            }
                            "none" !== P.css("display") && ("auto" === t.slidesPerView ? (E = e.isHorizontal() ? P.outerWidth(!0) : P.outerHeight(!0), t.roundLengths && (E = Math.floor(E))) : (E = (i - (t.slidesPerView - 1) * b) / t.slidesPerView, t.roundLengths && (E = Math.floor(E)), n[z] && (e.isHorizontal() ? n[z].style.width = E + "px" : n[z].style.height = E + "px")), n[z] && (n[z].swiperSlideSize = E), u.push(E), t.centeredSlides ? (w = w + E / 2 + y / 2 + b, 0 === y && 0 !== z && (w = w - i / 2 - b), 0 === z && (w = w - i / 2 - b), Math.abs(w) < .001 && (w = 0), x % t.slidesPerGroup == 0 && d.push(w), c.push(w)) : (x % t.slidesPerGroup == 0 && d.push(w), c.push(w), w = w + E + b), e.virtualSize += E + b, y = E, x += 1)
                        }
                        e.virtualSize = Math.max(e.virtualSize, i) + v;
                        var L;
                        if (s && r && ("slide" === t.effect || "coverflow" === t.effect) && a.css({
                                 e.virtualSize + t.spaceBetween + "px"
                            }), p.flexbox && !t.setWrapperSize || (e.isHorizontal() ? a.css({
                                 e.virtualSize + t.spaceBetween + "px"
                            }) : a.css({
                                height: e.virtualSize + t.spaceBetween + "px"
                            })), t.slidesPerColumn > 1 && (e.virtualSize = (E + t.spaceBetween) * T, e.virtualSize = Math.ceil(e.virtualSize / t.slidesPerColumn) - t.spaceBetween, e.isHorizontal() ? a.css({
                                 e.virtualSize + t.spaceBetween + "px"
                            }) : a.css({
                                height: e.virtualSize + t.spaceBetween + "px"
                            }), t.centeredSlides)) {
                            L = [];
                            for (var D = 0; D < d.length; D += 1) d[D] < e.virtualSize + d[0] && L.push(d[D]);
                            d = L
                        }
                        if (!t.centeredSlides) {
                            L = [];
                            for (var O = 0; O < d.length; O += 1) d[O] <= e.virtualSize - i && L.push(d[O]);
                            d = L, Math.floor(e.virtualSize - i) - Math.floor(d[d.length - 1]) > 1 && d.push(e.virtualSize - i)
                        }
                        0 === d.length && (d = [0]), 0 !== t.spaceBetween && (e.isHorizontal() ? s ? n.css({
                            marginLeft: b + "px"
                        }) : n.css({
                            marginRight: b + "px"
                        }) : n.css({
                            marginBottom: b + "px"
                        })), l.extend(e, {
                            slides: n,
                            snapGrid: d,
                            slidesGrid: c,
                            slidesSizesGrid: u
                        }), o !== f && e.emit("slidesLengthChange"), d.length !== m && e.emit("snapGridLengthChange"), c.length !== g && e.emit("slidesGridLengthChange"), (t.watchSlidesProgress || t.watchSlidesVisibility) && e.updateSlidesOffset()
                    }
                },
                updateAutoHeight: function () {
                    var e, t = this,
                        a = [],
                        i = 0;
                    if ("auto" !== t.params.slidesPerView && t.params.slidesPerView > 1)
                        for (e = 0; e < Math.ceil(t.params.slidesPerView); e += 1) {
                            var s = t.activeIndex + e;
                            if (s > t.slides.length) break;
                            a.push(t.slides.eq(s)[0])
                        } else a.push(t.slides.eq(t.activeIndex)[0]);
                    for (e = 0; e < a.length; e += 1)
                        if (void 0 !== a[e]) {
                            var r = a[e].offsetHeight;
                            i = r > i ? r : i
                        } i && t.$wrapperEl.css("height", i + "px")
                },
                updateSlidesOffset: function () {
                    for (var e = this, t = e.slides, a = 0; a < t.length; a += 1) t[a].swiperSlideOffset = e.isHorizontal() ? t[a].offsetLeft : t[a].offsetTop
                },
                updateSlidesProgress: function (e) {
                    void 0 === e && (e = this.translate || 0);
                    var t = this,
                        a = t.params,
                        i = t.slides,
                        s = t.rtl;
                    if (0 !== i.length) {
                        void 0 === i[0].swiperSlideOffset && t.updateSlidesOffset();
                        var r = -e;
                        s && (r = e), i.removeClass(a.slideVisibleClass);
                        for (var n = 0; n < i.length; n += 1) {
                            var o = i[n],
                                l = (r + (a.centeredSlides ? t.minTranslate() : 0) - o.swiperSlideOffset) / (o.swiperSlideSize + a.spaceBetween);
                            if (a.watchSlidesVisibility) {
                                var d = -(r - o.swiperSlideOffset),
                                    p = d + t.slidesSizesGrid[n];
                                (d >= 0 && d < t.size || p > 0 && p <= t.size || d <= 0 && p >= t.size) && i.eq(n).addClass(a.slideVisibleClass)
                            }
                            o.progress = s ? -l : l
                        }
                    }
                },
                updateProgress: function (e) {
                    void 0 === e && (e = this.translate || 0);
                    var t = this,
                        a = t.params,
                        i = t.maxTranslate() - t.minTranslate(),
                        s = t.progress,
                        r = t.isBeginning,
                        n = t.isEnd,
                        o = r,
                        d = n;
                    0 === i ? (s = 0, r = !0, n = !0) : (r = (s = (e - t.minTranslate()) / i) <= 0, n = s >= 1), l.extend(t, {
                        progress: s,
                        isBeginning: r,
                        isEnd: n
                    }), (a.watchSlidesProgress || a.watchSlidesVisibility) && t.updateSlidesProgress(e), r && !o && t.emit("reachBeginning toEdge"), n && !d && t.emit("reachEnd toEdge"), (o && !r || d && !n) && t.emit("fromEdge"), t.emit("progress", s)
                },
                updateSlidesClasses: function () {
                    var e = this,
                        t = e.slides,
                        a = e.params,
                        i = e.$wrapperEl,
                        s = e.activeIndex,
                        r = e.realIndex,
                        n = e.virtual && a.virtual.enabled;
                    t.removeClass(a.slideActiveClass + " " + a.slideNextClass + " " + a.slidePrevClass + " " + a.slideDuplicateActiveClass + " " + a.slideDuplicateNextClass + " " + a.slideDuplicatePrevClass);
                    var o;
                    (o = n ? e.$wrapperEl.find("." + a.slideClass + '[data-swiper-slide-index="' + s + '"]') : t.eq(s)).addClass(a.slideActiveClass), a.loop && (o.hasClass(a.slideDuplicateClass) ? i.children("." + a.slideClass + ":not(." + a.slideDuplicateClass + ')[data-swiper-slide-index="' + r + '"]').addClass(a.slideDuplicateActiveClass) : i.children("." + a.slideClass + "." + a.slideDuplicateClass + '[data-swiper-slide-index="' + r + '"]').addClass(a.slideDuplicateActiveClass));
                    var l = o.nextAll("." + a.slideClass).eq(0).addClass(a.slideNextClass);
                    a.loop && 0 === l.length && (l = t.eq(0)).addClass(a.slideNextClass);
                    var d = o.prevAll("." + a.slideClass).eq(0).addClass(a.slidePrevClass);
                    a.loop && 0 === d.length && (d = t.eq(-1)).addClass(a.slidePrevClass), a.loop && (l.hasClass(a.slideDuplicateClass) ? i.children("." + a.slideClass + ":not(." + a.slideDuplicateClass + ')[data-swiper-slide-index="' + l.attr("data-swiper-slide-index") + '"]').addClass(a.slideDuplicateNextClass) : i.children("." + a.slideClass + "." + a.slideDuplicateClass + '[data-swiper-slide-index="' + l.attr("data-swiper-slide-index") + '"]').addClass(a.slideDuplicateNextClass), d.hasClass(a.slideDuplicateClass) ? i.children("." + a.slideClass + ":not(." + a.slideDuplicateClass + ')[data-swiper-slide-index="' + d.attr("data-swiper-slide-index") + '"]').addClass(a.slideDuplicatePrevClass) : i.children("." + a.slideClass + "." + a.slideDuplicateClass + '[data-swiper-slide-index="' + d.attr("data-swiper-slide-index") + '"]').addClass(a.slideDuplicatePrevClass))
                },
                updateActiveIndex: function (e) {
                    var t, a = this,
                        i = a.rtl ? a.translate : -a.translate,
                        s = a.slidesGrid,
                        r = a.snapGrid,
                        n = a.params,
                        o = a.activeIndex,
                        d = a.realIndex,
                        p = a.snapIndex,
                        c = e;
                    if (void 0 === c) {
                        for (var u = 0; u < s.length; u += 1) void 0 !== s[u + 1] ? i >= s[u] && i < s[u + 1] - (s[u + 1] - s[u]) / 2 ? c = u : i >= s[u] && i < s[u + 1] && (c = u + 1) : i >= s[u] && (c = u);
                        n.normalizeSlideIndex && (c < 0 || void 0 === c) && (c = 0)
                    }
                    if ((t = r.indexOf(i) >= 0 ? r.indexOf(i) : Math.floor(c / n.slidesPerGroup)) >= r.length && (t = r.length - 1), c !== o) {
                        var h = parseInt(a.slides.eq(c).attr("data-swiper-slide-index") || c, 10);
                        l.extend(a, {
                            snapIndex: t,
                            realIndex: h,
                            previousIndex: o,
                            activeIndex: c
                        }), a.emit("activeIndexChange"), a.emit("snapIndexChange"), d !== h && a.emit("realIndexChange"), a.emit("slideChange")
                    } else t !== p && (a.snapIndex = t, a.emit("snapIndexChange"))
                },
                updateClickedSlide: function (t) {
                    var a = this,
                        i = a.params,
                        s = e(t.target).closest("." + i.slideClass)[0],
                        r = !1;
                    if (s)
                        for (var n = 0; n < a.slides.length; n += 1) a.slides[n] === s && (r = !0);
                    if (!s || !r) return a.clickedSlide = void 0, void(a.clickedIndex = void 0);
                    a.clickedSlide = s, a.virtual && a.params.virtual.enabled ? a.clickedIndex = parseInt(e(s).attr("data-swiper-slide-index"), 10) : a.clickedIndex = e(s).index(), i.slideToClickedSlide && void 0 !== a.clickedIndex && a.clickedIndex !== a.activeIndex && a.slideToClickedSlide()
                }
            },
            v = {
                getTranslate: function (e) {
                    void 0 === e && (e = this.isHorizontal() ? "x" : "y");
                    var t = this,
                        a = t.params,
                        i = t.rtl,
                        s = t.translate,
                        r = t.$wrapperEl;
                    if (a.virtualTranslate) return i ? -s : s;
                    var n = l.getTranslate(r[0], e);
                    return i && (n = -n), n || 0
                },
                setTranslate: function (e, t) {
                    var a = this,
                        i = a.rtl,
                        s = a.params,
                        r = a.$wrapperEl,
                        n = a.progress,
                        o = 0,
                        l = 0;
                    a.isHorizontal() ? o = i ? -e : e : l = e, s.roundLengths && (o = Math.floor(o), l = Math.floor(l)), s.virtualTranslate || (p.transforms3d ? r.transform("translate3d(" + o + "px, " + l + "px, 0px)") : r.transform("translate(" + o + "px, " + l + "px)")), a.translate = a.isHorizontal() ? o : l;
                    var d = a.maxTranslate() - a.minTranslate();
                    (0 === d ? 0 : (e - a.minTranslate()) / d) !== n && a.updateProgress(e), a.emit("setTranslate", a.translate, t)
                },
                minTranslate: function () {
                    return -this.snapGrid[0]
                },
                maxTranslate: function () {
                    return -this.snapGrid[this.snapGrid.length - 1]
                }
            },
            f = {
                setTransition: function (e, t) {
                    var a = this;
                    a.$wrapperEl.transition(e), a.emit("setTransition", e, t)
                },
                transitionStart: function (e) {
                    void 0 === e && (e = !0);
                    var t = this,
                        a = t.activeIndex,
                        i = t.params,
                        s = t.previousIndex;
                    i.autoHeight && t.updateAutoHeight(), t.emit("transitionStart"), e && a !== s && (t.emit("slideChangeTransitionStart"), a > s ? t.emit("slideNextTransitionStart") : t.emit("slidePrevTransitionStart"))
                },
                transitionEnd: function (e) {
                    void 0 === e && (e = !0);
                    var t = this,
                        a = t.activeIndex,
                        i = t.previousIndex;
                    t.animating = !1, t.setTransition(0), t.emit("transitionEnd"), e && a !== i && (t.emit("slideChangeTransitionEnd"), a > i ? t.emit("slideNextTransitionEnd") : t.emit("slidePrevTransitionEnd"))
                }
            },
            m = function () {
                return {
                    isSafari: function () {
                        var e = s.navigator.userAgent.toLowerCase();
                        return e.indexOf("safari") >= 0 && e.indexOf("chrome") < 0 && e.indexOf("android") < 0
                    }(),
                    isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(s.navigator.userAgent),
                    ie: s.navigator.pointerEnabled || s.navigator.msPointerEnabled,
                    ieTouch: s.navigator.msPointerEnabled && s.navigator.msMaxTouchPoints > 1 || s.navigator.pointerEnabled && s.navigator.maxTouchPoints > 1,
                    lteIE9: function () {
                        var e = d.createElement("div");
                        return e.innerHTML = "x3c!--[if lte IE 9]><i></i><![endif]--x3e", 1 === e.getElementsByTagName("i").length
                    }()
                }
            }(),
            g = {
                slideTo: function (e, t, a, i) {
                    void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === a && (a = !0);
                    var s = this,
                        r = e;
                    r < 0 && (r = 0);
                    var n = s.params,
                        o = s.snapGrid,
                        l = s.slidesGrid,
                        d = s.previousIndex,
                        p = s.activeIndex,
                        c = s.rtl,
                        u = s.$wrapperEl,
                        h = Math.floor(r / n.slidesPerGroup);
                    h >= o.length && (h = o.length - 1), (p || n.initialSlide || 0) === (d || 0) && a && s.emit("beforeSlideChangeStart");
                    var v = -o[h];
                    if (s.updateProgress(v), n.normalizeSlideIndex)
                        for (var f = 0; f < l.length; f += 1) - Math.floor(100 * v) >= Math.floor(100 * l[f]) && (r = f);
                    return !(!s.allowSlideNext && v < s.translate && v < s.minTranslate() || !s.allowSlidePrev && v > s.translate && v > s.maxTranslate() && (p || 0) !== r || (c && -v === s.translate || !c && v === s.translate ? (s.updateActiveIndex(r), n.autoHeight && s.updateAutoHeight(), s.updateSlidesClasses(), "slide" !== n.effect && s.setTranslate(v), 1) : (0 === t || m.lteIE9 ? (s.setTransition(0), s.setTranslate(v), s.updateActiveIndex(r), s.updateSlidesClasses(), s.emit("beforeTransitionStart", t, i), s.transitionStart(a), s.transitionEnd(a)) : (s.setTransition(t), s.setTranslate(v), s.updateActiveIndex(r), s.updateSlidesClasses(), s.emit("beforeTransitionStart", t, i), s.transitionStart(a), s.animating || (s.animating = !0, u.transitionEnd(function () {
                        s && !s.destroyed && s.transitionEnd(a)
                    }))), 0)))
                },
                slideNext: function (e, t, a) {
                    void 0 === e && (e = this.params.speed), void 0 === t && (t = !0);
                    var i = this,
                        s = i.params,
                        r = i.animating;
                    return s.loop ? !r && (i.loopFix(), i._clientLeft = i.$wrapperEl[0].clientLeft, i.slideTo(i.activeIndex + s.slidesPerGroup, e, t, a)) : i.slideTo(i.activeIndex + s.slidesPerGroup, e, t, a)
                },
                slidePrev: function (e, t, a) {
                    void 0 === e && (e = this.params.speed), void 0 === t && (t = !0);
                    var i = this,
                        s = i.params,
                        r = i.animating;
                    return s.loop ? !r && (i.loopFix(), i._clientLeft = i.$wrapperEl[0].clientLeft, i.slideTo(i.activeIndex - 1, e, t, a)) : i.slideTo(i.activeIndex - 1, e, t, a)
                },
                slideReset: function (e, t, a) {
                    void 0 === e && (e = this.params.speed), void 0 === t && (t = !0);
                    var i = this;
                    return i.slideTo(i.activeIndex, e, t, a)
                },
                slideToClickedSlide: function () {
                    var t, a = this,
                        i = a.params,
                        s = a.$wrapperEl,
                        r = "auto" === i.slidesPerView ? a.slidesPerViewDynamic() : i.slidesPerView,
                        n = a.clickedIndex;
                    if (i.loop) {
                        if (a.animating) return;
                        t = parseInt(e(a.clickedSlide).attr("data-swiper-slide-index"), 10), i.centeredSlides ? n < a.loopedSlides - r / 2 || n > a.slides.length - a.loopedSlides + r / 2 ? (a.loopFix(), n = s.children("." + i.slideClass + '[data-swiper-slide-index="' + t + '"]:not(.' + i.slideDuplicateClass + ")").eq(0).index(), l.nextTick(function () {
                            a.slideTo(n)
                        })) : a.slideTo(n) : n > a.slides.length - r ? (a.loopFix(), n = s.children("." + i.slideClass + '[data-swiper-slide-index="' + t + '"]:not(.' + i.slideDuplicateClass + ")").eq(0).index(), l.nextTick(function () {
                            a.slideTo(n)
                        })) : a.slideTo(n)
                    } else a.slideTo(n)
                }
            },
            b = {
                loopCreate: function () {
                    var t = this,
                        a = t.params,
                        i = t.$wrapperEl;
                    i.children("." + a.slideClass + "." + a.slideDuplicateClass).remove();
                    var s = i.children("." + a.slideClass);
                    if (a.loopFillGroupWithBlank) {
                        var r = a.slidesPerGroup - s.length % a.slidesPerGroup;
                        if (r !== a.slidesPerGroup) {
                            for (var n = 0; n < r; n += 1) {
                                var o = e(d.createElement("div")).addClass(a.slideClass + " " + a.slideBlankClass);
                                i.append(o)
                            }
                            s = i.children("." + a.slideClass)
                        }
                    }
                    "auto" !== a.slidesPerView || a.loopedSlides || (a.loopedSlides = s.length), t.loopedSlides = parseInt(a.loopedSlides || a.slidesPerView, 10), t.loopedSlides += a.loopAdditionalSlides, t.loopedSlides > s.length && (t.loopedSlides = s.length);
                    var l = [],
                        p = [];
                    s.each(function (a, i) {
                        var r = e(i);
                        a < t.loopedSlides && p.push(i), a < s.length && a >= s.length - t.loopedSlides && l.push(i), r.attr("data-swiper-slide-index", a)
                    });
                    for (var c = 0; c < p.length; c += 1) i.append(e(p[c].cloneNode(!0)).addClass(a.slideDuplicateClass));
                    for (var u = l.length - 1; u >= 0; u -= 1) i.prepend(e(l[u].cloneNode(!0)).addClass(a.slideDuplicateClass))
                },
                loopFix: function () {
                    var e, t = this,
                        a = t.params,
                        i = t.activeIndex,
                        s = t.slides,
                        r = t.loopedSlides,
                        n = t.allowSlidePrev,
                        o = t.allowSlideNext;
                    t.allowSlidePrev = !0, t.allowSlideNext = !0, i < r ? (e = s.length - 3 * r + i, e += r, t.slideTo(e, 0, !1, !0)) : ("auto" === a.slidesPerView && i >= 2 * r || i > s.length - 2 * a.slidesPerView) && (e = -s.length + i + r, e += r, t.slideTo(e, 0, !1, !0)), t.allowSlidePrev = n, t.allowSlideNext = o
                },
                loopDestroy: function () {
                    var e = this,
                        t = e.$wrapperEl,
                        a = e.params,
                        i = e.slides;
                    t.children("." + a.slideClass + "." + a.slideDuplicateClass).remove(), i.removeAttr("data-swiper-slide-index")
                }
            },
            w = {
                setGrabCursor: function (e) {
                    var t = this;
                    if (!p.touch && t.params.simulateTouch) {
                        var a = t.el;
                        a.style.cursor = "move", a.style.cursor = e ? "-webkit-grabbing" : "-webkit-grab", a.style.cursor = e ? "-moz-grabbin" : "-moz-grab", a.style.cursor = e ? "grabbing" : "grab"
                    }
                },
                unsetGrabCursor: function () {
                    var e = this;
                    p.touch || (e.el.style.cursor = "")
                }
            },
            y = {
                appendSlide: function (e) {
                    var t = this,
                        a = t.$wrapperEl,
                        i = t.params;
                    if (i.loop && t.loopDestroy(), "object" == typeof e && "length" in e)
                        for (var s = 0; s < e.length; s += 1) e[s] && a.append(e[s]);
                    else a.append(e);
                    i.loop && t.loopCreate(), i.observer && p.observer || t.update()
                },
                prependSlide: function (e) {
                    var t = this,
                        a = t.params,
                        i = t.$wrapperEl,
                        s = t.activeIndex;
                    a.loop && t.loopDestroy();
                    var r = s + 1;
                    if ("object" == typeof e && "length" in e) {
                        for (var n = 0; n < e.length; n += 1) e[n] && i.prepend(e[n]);
                        r = s + e.length
                    } else i.prepend(e);
                    a.loop && t.loopCreate(), a.observer && p.observer || t.update(), t.slideTo(r, 0, !1)
                },
                removeSlide: function (e) {
                    var t = this,
                        a = t.params,
                        i = t.$wrapperEl,
                        s = t.activeIndex;
                    a.loop && (t.loopDestroy(), t.slides = i.children("." + a.slideClass));
                    var r, n = s;
                    if ("object" == typeof e && "length" in e) {
                        for (var o = 0; o < e.length; o += 1) r = e[o], t.slides[r] && t.slides.eq(r).remove(), r < n && (n -= 1);
                        n = Math.max(n, 0)
                    } else r = e, t.slides[r] && t.slides.eq(r).remove(), r < n && (n -= 1), n = Math.max(n, 0);
                    a.loop && t.loopCreate(), a.observer && p.observer || t.update(), a.loop ? t.slideTo(n + t.loopedSlides, 0, !1) : t.slideTo(n, 0, !1)
                },
                removeAllSlides: function () {
                    for (var e = this, t = [], a = 0; a < e.slides.length; a += 1) t.push(a);
                    e.removeSlide(t)
                }
            },
            x = function () {
                var e = s.navigator.userAgent,
                    t = {
                        ios: !1,
                        android: !1,
                        androidChrome: !1,
                        desktop: !1,
                        windows: !1,
                        iphone: !1,
                        ipod: !1,
                        ipad: !1,
                        cordova: s.cordova || s.phonegap,
                        phonegap: s.cordova || s.phonegap
                    },
                    a = e.match(/(Windows Phone);?[s/]+([d.]+)?/),
                    i = e.match(/(Android);?[s/]+([d.]+)?/),
                    r = e.match(/(iPad).*OSs([d_]+)/),
                    n = e.match(/(iPod)(.*OSs([d_]+))?/),
                    o = !r && e.match(/(iPhonesOS|iOS)s([d_]+)/);
                if (a && (t.os = "windows", t.osVersion = a[2], t.windows = !0), i && !a && (t.os = "android", t.osVersion = i[2], t.android = !0, t.androidChrome = e.toLowerCase().indexOf("chrome") >= 0), (r || o || n) && (t.os = "ios", t.ios = !0), o && !n && (t.osVersion = o[2].replace(/_/g, "."), t.iphone = !0), r && (t.osVersion = r[2].replace(/_/g, "."), t.ipad = !0), n && (t.osVersion = n[3] ? n[3].replace(/_/g, ".") : null, t.iphone = !0), t.ios && t.osVersion && e.indexOf("Version/") >= 0 && "10" === t.osVersion.split(".")[0] && (t.osVersion = e.toLowerCase().split("version/")[1].split(" ")[0]), t.desktop = !(t.os || t.android || t.webView), t.webView = (o || r || n) && e.match(/.*AppleWebKit(?!.*Safari)/i), t.os && "ios" === t.os) {
                    var l = t.osVersion.split("."),
                        p = d.querySelector('meta[name="viewport"]');
                    t.minimalUi = !t.webView && (n || o) && (1 * l[0] == 7 ? 1 * l[1] >= 1 : 1 * l[0] > 7) && p && p.getAttribute("content").indexOf("minimal-ui") >= 0
                }
                return t.pixelRatio = s.devicePixelRatio || 1, t
            }(),
            T = function (t) {
                var a = this,
                    i = a.touchEventsData,
                    s = a.params,
                    r = a.touches,
                    n = t;
                if (n.originalEvent && (n = n.originalEvent), i.isTouchEvent = "touchstart" === n.type, (i.isTouchEvent || !("which" in n) || 3 !== n.which) && (!i.isTouched || !i.isMoved))
                    if (s.noSwiping && e(n.target).closest("." + s.noSwipingClass)[0]) a.allowClick = !0;
                    else if (!s.swipeHandler || e(n).closest(s.swipeHandler)[0]) {
                    r.currentX = "touchstart" === n.type ? n.targetTouches[0].pageX : n.pageX, r.currentY = "touchstart" === n.type ? n.targetTouches[0].pageY : n.pageY;
                    var o = r.currentX,
                        p = r.currentY;
                    if (!(x.ios && !x.cordova && s.iOSEdgeSwipeDetection && o <= s.iOSEdgeSwipeThreshold && o >= window.screen.width - s.iOSEdgeSwipeThreshold)) {
                        if (l.extend(i, {
                                isTouched: !0,
                                isMoved: !1,
                                allowTouchCallbacks: !0,
                                isScrolling: void 0,
                                startMoving: void 0
                            }), r.startX = o, r.startY = p, i.touchStartTime = l.now(), a.allowClick = !0, a.updateSize(), a.swipeDirection = void 0, s.threshold > 0 && (i.allowThresholdMove = !1), "touchstart" !== n.type) {
                            var c = !0;
                            e(n.target).is(i.formElements) && (c = !1), d.activeElement && e(d.activeElement).is(i.formElements) && d.activeElement.blur(), c && a.allowTouchMove && n.preventDefault()
                        }
                        a.emit("touchStart", n)
                    }
                }
            },
            E = function (t) {
                var a = this,
                    i = a.touchEventsData,
                    s = a.params,
                    r = a.touches,
                    n = a.rtl,
                    o = t;
                if (o.originalEvent && (o = o.originalEvent), !i.isTouchEvent || "mousemove" !== o.type) {
                    var p = "touchmove" === o.type ? o.targetTouches[0].pageX : o.pageX,
                        c = "touchmove" === o.type ? o.targetTouches[0].pageY : o.pageY;
                    if (o.preventedByNestedSwiper) return r.startX = p, void(r.startY = c);
                    if (!a.allowTouchMove) return a.allowClick = !1, void(i.isTouched && (l.extend(r, {
                        startX: p,
                        startY: c,
                        currentX: p,
                        currentY: c
                    }), i.touchStartTime = l.now()));
                    if (i.isTouchEvent && s.touchReleaseOnEdges && !s.loop)
                        if (a.isVertical()) {
                            if (c < r.startY && a.translate <= a.maxTranslate() || c > r.startY && a.translate >= a.minTranslate()) return i.isTouched = !1, void(i.isMoved = !1)
                        } else if (p < r.startX && a.translate <= a.maxTranslate() || p > r.startX && a.translate >= a.minTranslate()) return;
                    if (i.isTouchEvent && d.activeElement && o.target === d.activeElement && e(o.target).is(i.formElements)) return i.isMoved = !0, void(a.allowClick = !1);
                    if (i.allowTouchCallbacks && a.emit("touchMove", o), !(o.targetTouches && o.targetTouches.length > 1)) {
                        r.currentX = p, r.currentY = c;
                        var u = r.currentX - r.startX,
                            h = r.currentY - r.startY;
                        if (void 0 === i.isScrolling) {
                            var v;
                            a.isHorizontal() && r.currentY === r.startY || a.isVertical() && r.currentX === r.startX ? i.isScrolling = !1 : u * u + h * h >= 25 && (v = 180 * Math.atan2(Math.abs(h), Math.abs(u)) / Math.PI, i.isScrolling = a.isHorizontal() ? v > s.touchAngle : 90 - v > s.touchAngle)
                        }
                        if (i.isScrolling && a.emit("touchMoveOpposite", o), "undefined" == typeof startMoving && (r.currentX === r.startX && r.currentY === r.startY || (i.startMoving = !0)), i.isTouched)
                            if (i.isScrolling) i.isTouched = !1;
                            else if (i.startMoving) {
                            a.allowClick = !1, o.preventDefault(), s.touchMoveStopPropagation && !s.nested && o.stopPropagation(), i.isMoved || (s.loop && a.loopFix(), i.startTranslate = a.getTranslate(), a.setTransition(0), a.animating && a.$wrapperEl.trigger("webkitTransitionEnd transitionend"), i.allowMomentumBounce = !1, !s.grabCursor || !0 !== a.allowSlideNext && !0 !== a.allowSlidePrev || a.setGrabCursor(!0), a.emit("sliderFirstMove", o)), a.emit("sliderMove", o), i.isMoved = !0;
                            var f = a.isHorizontal() ? u : h;
                            r.diff = f, f *= s.touchRatio, n && (f = -f), a.swipeDirection = f > 0 ? "prev" : "next", i.currentTranslate = f + i.startTranslate;
                            var m = !0,
                                g = s.resistanceRatio;
                            if (s.touchReleaseOnEdges && (g = 0), f > 0 && i.currentTranslate > a.minTranslate() ? (m = !1, s.resistance && (i.currentTranslate = a.minTranslate() - 1 + Math.pow(-a.minTranslate() + i.startTranslate + f, g))) : f < 0 && i.currentTranslate < a.maxTranslate() && (m = !1, s.resistance && (i.currentTranslate = a.maxTranslate() + 1 - Math.pow(a.maxTranslate() - i.startTranslate - f, g))), m && (o.preventedByNestedSwiper = !0), !a.allowSlideNext && "next" === a.swipeDirection && i.currentTranslate < i.startTranslate && (i.currentTranslate = i.startTranslate), !a.allowSlidePrev && "prev" === a.swipeDirection && i.currentTranslate > i.startTranslate && (i.currentTranslate = i.startTranslate), s.threshold > 0) {
                                if (!(Math.abs(f) > s.threshold || i.allowThresholdMove)) return void(i.currentTranslate = i.startTranslate);
                                if (!i.allowThresholdMove) return i.allowThresholdMove = !0, r.startX = r.currentX, r.startY = r.currentY, i.currentTranslate = i.startTranslate, void(r.diff = a.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY)
                            }
                            s.followFinger && ((s.freeMode || s.watchSlidesProgress || s.watchSlidesVisibility) && (a.updateActiveIndex(), a.updateSlidesClasses()), s.freeMode && (0 === i.velocities.length && i.velocities.push({
                                position: r[a.isHorizontal() ? "startX" : "startY"],
                                time: i.touchStartTime
                            }), i.velocities.push({
                                position: r[a.isHorizontal() ? "currentX" : "currentY"],
                                time: l.now()
                            })), a.updateProgress(i.currentTranslate), a.setTranslate(i.currentTranslate))
                        }
                    }
                }
            },
            S = function (e) {
                var t = this,
                    a = t.touchEventsData,
                    i = t.params,
                    s = t.touches,
                    r = t.rtl,
                    n = t.$wrapperEl,
                    o = t.slidesGrid,
                    d = t.snapGrid,
                    p = e;
                if (p.originalEvent && (p = p.originalEvent), a.allowTouchCallbacks && t.emit("touchEnd", p), a.allowTouchCallbacks = !1, a.isTouched) {
                    i.grabCursor && a.isMoved && a.isTouched && (!0 === t.allowSlideNext || !0 === t.allowSlidePrev) && t.setGrabCursor(!1);
                    var c = l.now(),
                        u = c - a.touchStartTime;
                    if (t.allowClick && (t.updateClickedSlide(p), t.emit("tap", p), u < 300 && c - a.lastClickTime > 300 && (a.clickTimeout && clearTimeout(a.clickTimeout), a.clickTimeout = l.nextTick(function () {
                            t && !t.destroyed && t.emit("click", p)
                        }, 300)), u < 300 && c - a.lastClickTime < 300 && (a.clickTimeout && clearTimeout(a.clickTimeout), t.emit("doubleTap", p))), a.lastClickTime = l.now(), l.nextTick(function () {
                            t.destroyed || (t.allowClick = !0)
                        }), !a.isTouched || !a.isMoved || !t.swipeDirection || 0 === s.diff || a.currentTranslate === a.startTranslate) return a.isTouched = !1, void(a.isMoved = !1);
                    a.isTouched = !1, a.isMoved = !1;
                    var h;
                    if (h = i.followFinger ? r ? t.translate : -t.translate : -a.currentTranslate, i.freeMode) {
                        if (h < -t.minTranslate()) return void t.slideTo(t.activeIndex);
                        if (h > -t.maxTranslate()) return void(t.slides.length < d.length ? t.slideTo(d.length - 1) : t.slideTo(t.slides.length - 1));
                        if (i.freeModeMomentum) {
                            if (a.velocities.length > 1) {
                                var v = a.velocities.pop(),
                                    f = a.velocities.pop(),
                                    m = v.position - f.position,
                                    g = v.time - f.time;
                                t.velocity = m / g, t.velocity /= 2, Math.abs(t.velocity) < i.freeModeMinimumVelocity && (t.velocity = 0), (g > 150 || l.now() - v.time > 300) && (t.velocity = 0)
                            } else t.velocity = 0;
                            t.velocity *= i.freeModeMomentumVelocityRatio, a.velocities.length = 0;
                            var b = 1e3 * i.freeModeMomentumRatio,
                                w = t.velocity * b,
                                y = t.translate + w;
                            r && (y = -y);
                            var x, T = !1,
                                E = 20 * Math.abs(t.velocity) * i.freeModeMomentumBounceRatio;
                            if (y < t.maxTranslate()) i.freeModeMomentumBounce ? (y + t.maxTranslate() < -E && (y = t.maxTranslate() - E), x = t.maxTranslate(), T = !0, a.allowMomentumBounce = !0) : y = t.maxTranslate();
                            else if (y > t.minTranslate()) i.freeModeMomentumBounce ? (y - t.minTranslate() > E && (y = t.minTranslate() + E), x = t.minTranslate(), T = !0, a.allowMomentumBounce = !0) : y = t.minTranslate();
                            else if (i.freeModeSticky) {
                                for (var S, C = 0; C < d.length; C += 1)
                                    if (d[C] > -y) {
                                        S = C;
                                        break
                                    } y = -(y = Math.abs(d[S] - y) < Math.abs(d[S - 1] - y) || "next" === t.swipeDirection ? d[S] : d[S - 1])
                            }
                            if (0 !== t.velocity) b = r ? Math.abs((-y - t.translate) / t.velocity) : Math.abs((y - t.translate) / t.velocity);
                            else if (i.freeModeSticky) return void t.slideReset();
                            i.freeModeMomentumBounce && T ? (t.updateProgress(x), t.setTransition(b), t.setTranslate(y), t.transitionStart(), t.animating = !0, n.transitionEnd(function () {
                                t && !t.destroyed && a.allowMomentumBounce && (t.emit("momentumBounce"), t.setTransition(i.speed), t.setTranslate(x), n.transitionEnd(function () {
                                    t && !t.destroyed && t.transitionEnd()
                                }))
                            })) : t.velocity ? (t.updateProgress(y), t.setTransition(b), t.setTranslate(y), t.transitionStart(), t.animating || (t.animating = !0, n.transitionEnd(function () {
                                t && !t.destroyed && t.transitionEnd()
                            }))) : t.updateProgress(y), t.updateActiveIndex(), t.updateSlidesClasses()
                        }(!i.freeModeMomentum || u >= i.longSwipesMs) && (t.updateProgress(), t.updateActiveIndex(), t.updateSlidesClasses())
                    } else {
                        for (var M = 0, z = t.slidesSizesGrid[0], P = 0; P < o.length; P += i.slidesPerGroup) void 0 !== o[P + i.slidesPerGroup] ? h >= o[P] && h < o[P + i.slidesPerGroup] && (M = P, z = o[P + i.slidesPerGroup] - o[P]) : h >= o[P] && (M = P, z = o[o.length - 1] - o[o.length - 2]);
                        var k = (h - o[M]) / z;
                        if (u > i.longSwipesMs) {
                            if (!i.longSwipes) return void t.slideTo(t.activeIndex);
                            "next" === t.swipeDirection && (k >= i.longSwipesRatio ? t.slideTo(M + i.slidesPerGroup) : t.slideTo(M)), "prev" === t.swipeDirection && (k > 1 - i.longSwipesRatio ? t.slideTo(M + i.slidesPerGroup) : t.slideTo(M))
                        } else {
                            if (!i.shortSwipes) return void t.slideTo(t.activeIndex);
                            "next" === t.swipeDirection && t.slideTo(M + i.slidesPerGroup), "prev" === t.swipeDirection && t.slideTo(M)
                        }
                    }
                }
            },
            C = function () {
                var e = this,
                    t = e.params,
                    a = e.el;
                if (!a || 0 !== a.offsetWidth) {
                    t.breakpoints && e.setBreakpoint();
                    var i = e.allowSlideNext,
                        s = e.allowSlidePrev;
                    if (e.allowSlideNext = !0, e.allowSlidePrev = !0, e.updateSize(), e.updateSlides(), t.freeMode) {
                        var r = Math.min(Math.max(e.translate, e.maxTranslate()), e.minTranslate());
                        e.setTranslate(r), e.updateActiveIndex(), e.updateSlidesClasses(), t.autoHeight && e.updateAutoHeight()
                    } else e.updateSlidesClasses(), ("auto" === t.slidesPerView || t.slidesPerView > 1) && e.isEnd && !e.params.centeredSlides ? e.slideTo(e.slides.length - 1, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0);
                    e.allowSlidePrev = s, e.allowSlideNext = i
                }
            },
            M = function (e) {
                var t = this;
                t.allowClick || (t.params.preventClicks && e.preventDefault(), t.params.preventClicksPropagation && t.animating && (e.stopPropagation(), e.stopImmediatePropagation()))
            },
            z = {
                init: !0,
                direction: "horizontal",
                touchEventsTarget: "container",
                initialSlide: 0,
                speed: 300,
                iOSEdgeSwipeDetection: !1,
                iOSEdgeSwipeThreshold: 20,
                freeMode: !1,
                freeModeMomentum: !0,
                freeModeMomentumRatio: 1,
                freeModeMomentumBounce: !0,
                freeModeMomentumBounceRatio: 1,
                freeModeMomentumVelocityRatio: 1,
                freeModeSticky: !1,
                freeModeMinimumVelocity: .02,
                autoHeight: !1,
                setWrapperSize: !1,
                virtualTranslate: !1,
                effect: "slide",
                breakpoints: void 0,
                spaceBetween: 0,
                slidesPerView: 1,
                slidesPerColumn: 1,
                slidesPerColumnFill: "column",
                slidesPerGroup: 1,
                centeredSlides: !1,
                slidesOffsetBefore: 0,
                slidesOffsetAfter: 0,
                normalizeSlideIndex: !0,
                roundLengths: !1,
                touchRatio: 1,
                touchAngle: 45,
                simulateTouch: !0,
                shortSwipes: !0,
                longSwipes: !0,
                longSwipesRatio: .5,
                longSwipesMs: 300,
                followFinger: !0,
                allowTouchMove: !0,
                threshold: 0,
                touchMoveStopPropagation: !0,
                touchReleaseOnEdges: !1,
                uniqueNavElements: !0,
                resistance: !0,
                resistanceRatio: .85,
                watchSlidesProgress: !1,
                watchSlidesVisibility: !1,
                grabCursor: !1,
                preventClicks: !0,
                preventClicksPropagation: !0,
                slideToClickedSlide: !1,
                preloadImages: !0,
                updateOnImagesReady: !0,
                loop: !1,
                loopAdditionalSlides: 0,
                loopedSlides: null,
                loopFillGroupWithBlank: !1,
                allowSlidePrev: !0,
                allowSlideNext: !0,
                swipeHandler: null,
                noSwiping: !0,
                noSwipingClass: "swiper-no-swiping",
                passiveListeners: !0,
                containerModifierClass: "swiper-container-",
                slideClass: "swiper-slide",
                slideBlankClass: "swiper-slide-invisible-blank",
                slideActiveClass: "swiper-slide-active",
                slideDuplicateActiveClass: "swiper-slide-duplicate-active",
                slideVisibleClass: "swiper-slide-visible",
                slideDuplicateClass: "swiper-slide-duplicate",
                slideNextClass: "swiper-slide-next",
                slideDuplicateNextClass: "swiper-slide-duplicate-next",
                slidePrevClass: "swiper-slide-prev",
                slideDuplicatePrevClass: "swiper-slide-duplicate-prev",
                wrapperClass: "swiper-wrapper",
                runCallbacksOnInit: !0
            },
            P = {
                update: h,
                translate: v,
                transition: f,
                slide: g,
                loop: b,
                grabCursor: w,
                manipulation: y,
                events: {
                    attachEvents: function () {
                        var e = this,
                            t = e.params,
                            a = e.touchEvents,
                            i = e.el,
                            s = e.wrapperEl;
                        e.onTouchStart = T.bind(e), e.onTouchMove = E.bind(e), e.onTouchEnd = S.bind(e), e.onClick = M.bind(e);
                        var r = "container" === t.touchEventsTarget ? i : s,
                            n = !!t.nested;
                        if (m.ie) r.addEventListener(a.start, e.onTouchStart, !1), (p.touch ? r : d).addEventListener(a.move, e.onTouchMove, n), (p.touch ? r : d).addEventListener(a.end, e.onTouchEnd, !1);
                        else {
                            if (p.touch) {
                                var o = !("touchstart" !== a.start || !p.passiveListener || !t.passiveListeners) && {
                                    passive: !0,
                                    capture: !1
                                };
                                r.addEventListener(a.start, e.onTouchStart, o), r.addEventListener(a.move, e.onTouchMove, p.passiveListener ? {
                                    passive: !1,
                                    capture: n
                                } : n), r.addEventListener(a.end, e.onTouchEnd, o)
                            }(t.simulateTouch && !x.ios && !x.android || t.simulateTouch && !p.touch && x.ios) && (r.addEventListener("mousedown", e.onTouchStart, !1), d.addEventListener("mousemove", e.onTouchMove, n), d.addEventListener("mouseup", e.onTouchEnd, !1))
                        }(t.preventClicks || t.preventClicksPropagation) && r.addEventListener("click", e.onClick, !0), e.on("resize observerUpdate", C)
                    },
                    detachEvents: function () {
                        var e = this,
                            t = e.params,
                            a = e.touchEvents,
                            i = e.el,
                            s = e.wrapperEl,
                            r = "container" === t.touchEventsTarget ? i : s,
                            n = !!t.nested;
                        if (m.ie) r.removeEventListener(a.start, e.onTouchStart, !1), (p.touch ? r : d).removeEventListener(a.move, e.onTouchMove, n), (p.touch ? r : d).removeEventListener(a.end, e.onTouchEnd, !1);
                        else {
                            if (p.touch) {
                                var o = !("onTouchStart" !== a.start || !p.passiveListener || !t.passiveListeners) && {
                                    passive: !0,
                                    capture: !1
                                };
                                r.removeEventListener(a.start, e.onTouchStart, o), r.removeEventListener(a.move, e.onTouchMove, n), r.removeEventListener(a.end, e.onTouchEnd, o)
                            }(t.simulateTouch && !x.ios && !x.android || t.simulateTouch && !p.touch && x.ios) && (r.removeEventListener("mousedown", e.onTouchStart, !1), d.removeEventListener("mousemove", e.onTouchMove, n), d.removeEventListener("mouseup", e.onTouchEnd, !1))
                        }(t.preventClicks || t.preventClicksPropagation) && r.removeEventListener("click", e.onClick, !0), e.off("resize observerUpdate", C)
                    }
                },
                breakpoints: {
                    setBreakpoint: function () {
                        var e = this,
                            t = e.activeIndex,
                            a = e.loopedSlides;
                        void 0 === a && (a = 0);
                        var i = e.params,
                            s = i.breakpoints;
                        if (s && (!s || 0 !== Object.keys(s).length)) {
                            var r = e.getBreakpoint(s);
                            if (r && e.currentBreakpoint !== r) {
                                var n = r in s ? s[r] : e.originalParams,
                                    o = i.loop && n.slidesPerView !== i.slidesPerView;
                                l.extend(e.params, n), l.extend(e, {
                                    allowTouchMove: e.params.allowTouchMove,
                                    allowSlideNext: e.params.allowSlideNext,
                                    allowSlidePrev: e.params.allowSlidePrev
                                }), e.currentBreakpoint = r, o && (e.loopDestroy(), e.loopCreate(), e.updateSlides(), e.slideTo(t - a + e.loopedSlides, 0, !1)), e.emit("breakpoint", n)
                            }
                        }
                    },
                    getBreakpoint: function (e) {
                        if (e) {
                            var t = !1,
                                a = [];
                            Object.keys(e).forEach(function (e) {
                                a.push(e)
                            }), a.sort(function (e, t) {
                                return parseInt(e, 10) - parseInt(t, 10)
                            });
                            for (var i = 0; i < a.length; i += 1) {
                                var r = a[i];
                                r >= s.innerWidth && !t && (t = r)
                            }
                            return t || "max"
                        }
                    }
                },
                classes: {
                    addClasses: function () {
                        var e = this,
                            t = e.classNames,
                            a = e.params,
                            i = e.rtl,
                            r = e.$el,
                            n = [];
                        n.push(a.direction), a.freeMode && n.push("free-mode"), p.flexbox || n.push("no-flexbox"), a.autoHeight && n.push("autoheight"), i && n.push("rtl"), a.slidesPerColumn > 1 && n.push("multirow"), x.android && n.push("android"), x.ios && n.push("ios"), (s.navigator.pointerEnabled || s.navigator.msPointerEnabled) && n.push("wp8-" + a.direction), n.forEach(function (e) {
                            t.push(a.containerModifierClass + e)
                        }), r.addClass(t.join(" "))
                    },
                    removeClasses: function () {
                        var e = this,
                            t = e.$el,
                            a = e.classNames;
                        t.removeClass(a.join(" "))
                    }
                },
                images: {
                    loadImage: function (e, t, a, i, r, n) {
                        function o() {
                            n && n()
                        }
                        var l;
                        e.complete && r ? o() : t ? ((l = new s.Image).onload = o, l.onerror = o, i && (l.sizes = i), a && (l.srcset = a), t && (l.src = t)) : o()
                    },
                    preloadImages: function () {
                        var e = this;
                        e.imagesToLoad = e.$el.find("img");
                        for (var t = 0; t < e.imagesToLoad.length; t += 1) {
                            var a = e.imagesToLoad[t];
                            e.loadImage(a, a.currentSrc || a.getAttribute("src"), a.srcset || a.getAttribute("srcset"), a.sizes || a.getAttribute("sizes"), !0, function () {
                                void 0 !== e && null !== e && e && !e.destroyed && (void 0 !== e.imagesLoaded && (e.imagesLoaded += 1), e.imagesLoaded === e.imagesToLoad.length && (e.params.updateOnImagesReady && e.update(), e.emit("imagesReady")))
                            })
                        }
                    }
                }
            },
            k = {},
            $ = function (t) {
                function a() {
                    for (var i = [], r = arguments.length; r--;) i[r] = arguments[r];
                    var n, o;
                    if (1 === i.length && i[0].constructor && i[0].constructor === Object) o = i[0];
                    else {
                        var d;
                        n = (d = i)[0], o = d[1]
                    }
                    o || (o = {}), o = l.extend({}, o), n && !o.el && (o.el = n), t.call(this, o), Object.keys(P).forEach(function (e) {
                        Object.keys(P[e]).forEach(function (t) {
                            a.prototype[t] || (a.prototype[t] = P[e][t])
                        })
                    });
                    var c = this;
                    void 0 === c.modules && (c.modules = {}), Object.keys(c.modules).forEach(function (e) {
                        var t = c.modules[e];
                        if (t.params) {
                            var a = Object.keys(t.params)[0],
                                i = t.params[a];
                            if ("object" != typeof i) return;
                            if (!(a in o && "enabled" in i)) return;
                            !0 === o[a] && (o[a] = {
                                enabled: !0
                            }), "object" != typeof o[a] || "enabled" in o[a] || (o[a].enabled = !0), o[a] || (o[a] = {
                                enabled: !1
                            })
                        }
                    });
                    var u = l.extend({}, z);
                    c.useModulesParams(u), c.params = l.extend({}, u, k, o), c.originalParams = l.extend({}, c.params), c.passedParams = l.extend({}, o);
                    var h = e(c.params.el);
                    if (n = h[0]) {
                        if (h.length > 1) {
                            var v = [];
                            return h.each(function (e, t) {
                                var i = l.extend({}, o, {
                                    el: t
                                });
                                v.push(new a(i))
                            }), v
                        }
                        n.swiper = c, h.data("swiper", c);
                        var f = h.children("." + c.params.wrapperClass);
                        return l.extend(c, {
                            $el: h,
                            el: n,
                            $wrapperEl: f,
                            wrapperEl: f[0],
                            classNames: [],
                            slides: e(),
                            slidesGrid: [],
                            snapGrid: [],
                            slidesSizesGrid: [],
                            isHorizontal: function () {
                                return "horizontal" === c.params.direction
                            },
                            isVertical: function () {
                                return "vertical" === c.params.direction
                            },
                            rtl: "horizontal" === c.params.direction && ("rtl" === n.dir.toLowerCase() || "rtl" === h.css("direction")),
                            wrongRTL: "-webkit-box" === f.css("display"),
                            activeIndex: 0,
                            realIndex: 0,
                            isBeginning: !0,
                            isEnd: !1,
                            translate: 0,
                            progress: 0,
                            velocity: 0,
                            animating: !1,
                            allowSlideNext: c.params.allowSlideNext,
                            allowSlidePrev: c.params.allowSlidePrev,
                            touchEvents: function () {
                                var e = ["touchstart", "touchmove", "touchend"],
                                    t = ["mousedown", "mousemove", "mouseup"];
                                return s.navigator.pointerEnabled ? t = ["pointerdown", "pointermove", "pointerup"] : s.navigator.msPointerEnabled && (t = ["MSPointerDown", "MsPointerMove", "MsPointerUp"]), {
                                    start: p.touch || !c.params.simulateTouch ? e[0] : t[0],
                                    move: p.touch || !c.params.simulateTouch ? e[1] : t[1],
                                    end: p.touch || !c.params.simulateTouch ? e[2] : t[2]
                                }
                            }(),
                            touchEventsData: {
                                isTouched: void 0,
                                isMoved: void 0,
                                allowTouchCallbacks: void 0,
                                touchStartTime: void 0,
                                isScrolling: void 0,
                                currentTranslate: void 0,
                                startTranslate: void 0,
                                allowThresholdMove: void 0,
                                formElements: "input, select, option, textarea, button, video",
                                lastClickTime: l.now(),
                                clickTimeout: void 0,
                                velocities: [],
                                allowMomentumBounce: void 0,
                                isTouchEvent: void 0,
                                startMoving: void 0
                            },
                            allowClick: !0,
                            allowTouchMove: c.params.allowTouchMove,
                            touches: {
                                startX: 0,
                                startY: 0,
                                currentX: 0,
                                currentY: 0,
                                diff: 0
                            },
                            imagesToLoad: [],
                            imagesLoaded: 0
                        }), c.useModules(), c.params.init && c.init(), c
                    }
                }
                t && (a.__proto__ = t), a.prototype = Object.create(t && t.prototype), a.prototype.constructor = a;
                var i = {
                    extendedDefaults: {},
                    defaults: {},
                    Class: {},
                    $: {}
                };
                return a.prototype.slidesPerViewDynamic = function () {
                    var e = this,
                        t = e.params,
                        a = e.slides,
                        i = e.slidesGrid,
                        s = e.size,
                        r = e.activeIndex,
                        n = 1;
                    if (t.centeredSlides) {
                        for (var o, l = a[r].swiperSlideSize, d = r + 1; d < a.length; d += 1) a[d] && !o && (n += 1, (l += a[d].swiperSlideSize) > s && (o = !0));
                        for (var p = r - 1; p >= 0; p -= 1) a[p] && !o && (n += 1, (l += a[p].swiperSlideSize) > s && (o = !0))
                    } else
                        for (var c = r + 1; c < a.length; c += 1) i[c] - i[r] < s && (n += 1);
                    return n
                }, a.prototype.update = function () {
                    function e() {
                        a = Math.min(Math.max(t.translate, t.maxTranslate()), t.minTranslate()), t.setTranslate(a), t.updateActiveIndex(), t.updateSlidesClasses()
                    }
                    var t = this;
                    if (t && !t.destroyed) {
                        t.updateSize(), t.updateSlides(), t.updateProgress(), t.updateSlidesClasses();
                        var a;
                        t.params.freeMode ? (e(), t.params.autoHeight && t.updateAutoHeight()) : (("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)) || e(), t.emit("update")
                    }
                }, a.prototype.init = function () {
                    var e = this;
                    e.initialized || (e.emit("beforeInit"), e.params.breakpoints && e.setBreakpoint(), e.addClasses(), e.params.loop && e.loopCreate(), e.updateSize(), e.updateSlides(), e.params.grabCursor && e.setGrabCursor(), e.params.preloadImages && e.preloadImages(), e.params.loop ? e.slideTo(e.params.initialSlide + e.loopedSlides, 0, e.params.runCallbacksOnInit) : e.slideTo(e.params.initialSlide, 0, e.params.runCallbacksOnInit), e.attachEvents(), e.initialized = !0, e.emit("init"))
                }, a.prototype.destroy = function (e, t) {
                    void 0 === e && (e = !0), void 0 === t && (t = !0);
                    var a = this,
                        i = a.params,
                        s = a.$el,
                        r = a.$wrapperEl,
                        n = a.slides;
                    a.emit("beforeDestroy"), a.initialized = !1, a.detachEvents(), i.loop && a.loopDestroy(), t && (a.removeClasses(), s.removeAttr("style"), r.removeAttr("style"), n && n.length && n.removeClass([i.slideVisibleClass, i.slideActiveClass, i.slideNextClass, i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")), a.emit("destroy"), Object.keys(a.eventsListeners).forEach(function (e) {
                        a.off(e)
                    }), !1 !== e && (a.$el[0].swiper = null, a.$el.data("swiper", null), l.deleteProps(a)), a.destroyed = !0
                }, a.extendDefaults = function (e) {
                    l.extend(k, e)
                }, i.extendedDefaults.get = function () {
                    return k
                }, i.defaults.get = function () {
                    return z
                }, i.Class.get = function () {
                    return t
                }, i.$.get = function () {
                    return e
                }, Object.defineProperties(a, i), a
            }(c),
            I = {
                name: "device",
                proto: {
                    device: x
                },
                static: {
                    device: x
                }
            },
            L = {
                name: "support",
                proto: {
                    support: p
                },
                static: {
                    support: p
                }
            },
            D = {
                name: "browser",
                proto: {
                    browser: m
                },
                static: {
                    browser: m
                }
            },
            O = {
                name: "resize",
                create: function () {
                    var e = this;
                    l.extend(e, {
                        resize: {
                            resizeHandler: function () {
                                e && !e.destroyed && e.initialized && (e.emit("beforeResize"), e.emit("resize"))
                            },
                            orientationChangeHandler: function () {
                                e && !e.destroyed && e.initialized && e.emit("orientationchange")
                            }
                        }
                    })
                },
                on: {
                    init: function () {
                        var e = this;
                        s.addEventListener("resize", e.resize.resizeHandler), s.addEventListener("orientationchange", e.resize.orientationChangeHandler)
                    },
                    destroy: function () {
                        var e = this;
                        s.removeEventListener("resize", e.resize.resizeHandler), s.removeEventListener("orientationchange", e.resize.orientationChangeHandler)
                    }
                }
            },
            A = {
                func: s.MutationObserver || s.WebkitMutationObserver,
                attach: function (e, t) {
                    void 0 === t && (t = {});
                    var a = this,
                        i = new(0, A.func)(function (e) {
                            e.forEach(function (e) {
                                a.emit("observerUpdate", e)
                            })
                        });
                    i.observe(e, {
                        attributes: void 0 === t.attributes || t.attributes,
                        childList: void 0 === t.childList || t.childList,
                        characterData: void 0 === t.characterData || t.characterData
                    }), a.observer.observers.push(i)
                },
                init: function () {
                    var e = this;
                    if (p.observer && e.params.observer) {
                        if (e.params.observeParents)
                            for (var t = e.$el.parents(), a = 0; a < t.length; a += 1) e.observer.attach(t[a]);
                        e.observer.attach(e.$el[0], {
                            childList: !1
                        }), e.observer.attach(e.$wrapperEl[0], {
                            attributes: !1
                        })
                    }
                },
                destroy: function () {
                    var e = this;
                    e.observer.observers.forEach(function (e) {
                        e.disconnect()
                    }), e.observer.observers = []
                }
            },
            H = {
                name: "observer",
                params: {
                    observer: !1,
                    observeParents: !1
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        observer: {
                            init: A.init.bind(e),
                            attach: A.attach.bind(e),
                            destroy: A.destroy.bind(e),
                            observers: []
                        }
                    })
                },
                on: {
                    init: function () {
                        this.observer.init()
                    },
                    destroy: function () {
                        this.observer.destroy()
                    }
                }
            },
            N = {
                update: function (e) {
                    function t() {
                        a.updateSlides(), a.updateProgress(), a.updateSlidesClasses(), a.lazy && a.params.lazy.enabled && a.lazy.load()
                    }
                    var a = this,
                        i = a.params,
                        s = i.slidesPerView,
                        r = i.slidesPerGroup,
                        n = i.centeredSlides,
                        o = a.virtual,
                        d = o.from,
                        p = o.to,
                        c = o.slides,
                        u = o.slidesGrid,
                        h = o.renderSlide,
                        v = o.offset;
                    a.updateActiveIndex();
                    var f, m = a.activeIndex || 0;
                    f = a.rtl && a.isHorizontal() ? "right" : a.isHorizontal() ? "left" : "top";
                    var g, b;
                    n ? (g = Math.floor(s / 2) + r, b = Math.floor(s / 2) + r) : (g = s + (r - 1), b = r);
                    var w = Math.max((m || 0) - b, 0),
                        y = Math.min((m || 0) + g, c.length - 1),
                        x = (a.slidesGrid[w] || 0) - (a.slidesGrid[0] || 0);
                    if (l.extend(a.virtual, {
                            from: w,
                            to: y,
                            offset: x,
                            slidesGrid: a.slidesGrid
                        }), d === w && p === y && !e) return a.slidesGrid !== u && x !== v && a.slides.css(f, x + "px"), void a.updateProgress();
                    if (a.params.virtual.renderExternal) return a.params.virtual.renderExternal.call(a, {
                        offset: x,
                        from: w,
                        to: y,
                        slides: function () {
                            for (var e = [], t = w; t <= y; t += 1) e.push(c[t]);
                            return e
                        }()
                    }), void t();
                    var T = [],
                        E = [];
                    if (e) a.$wrapperEl.find("." + a.params.slideClass).remove();
                    else
                        for (var S = d; S <= p; S += 1)(S < w || S > y) && a.$wrapperEl.find("." + a.params.slideClass + '[data-swiper-slide-index="' + S + '"]').remove();
                    for (var C = 0; C < c.length; C += 1) C >= w && C <= y && (void 0 === p || e ? E.push(C) : (C > p && E.push(C), C < d && T.push(C)));
                    E.forEach(function (e) {
                        a.$wrapperEl.append(h(c[e], e))
                    }), T.sort(function (e, t) {
                        return e < t
                    }).forEach(function (e) {
                        a.$wrapperEl.prepend(h(c[e], e))
                    }), a.$wrapperEl.children(".swiper-slide").css(f, x + "px"), t()
                },
                renderSlide: function (t, a) {
                    var i = this,
                        s = i.params.virtual;
                    if (s.cache && i.virtual.cache[a]) return i.virtual.cache[a];
                    var r = e(s.renderSlide ? s.renderSlide.call(i, t, a) : '<div class="' + i.params.slideClass + '" data-swiper-slide-index="' + a + '">' + t + "</div>");
                    return r.attr("data-swiper-slide-index") || r.attr("data-swiper-slide-index", a), s.cache && (i.virtual.cache[a] = r), r
                },
                appendSlide: function (e) {
                    var t = this;
                    t.virtual.slides.push(e), t.virtual.update(!0)
                },
                prependSlide: function (e) {
                    var t = this;
                    if (t.virtual.slides.unshift(e), t.params.virtual.cache) {
                        var a = t.virtual.cache,
                            i = {};
                        Object.keys(a).forEach(function (e) {
                            i[e + 1] = a[e]
                        }), t.virtual.cache = i
                    }
                    t.virtual.update(!0), t.slideNext(0)
                }
            },
            X = {
                name: "virtual",
                params: {
                    virtual: {
                        enabled: !1,
                        slides: [],
                        cache: !0,
                        renderSlide: null,
                        renderExternal: null
                    }
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        virtual: {
                            update: N.update.bind(e),
                            appendSlide: N.appendSlide.bind(e),
                            prependSlide: N.prependSlide.bind(e),
                            renderSlide: N.renderSlide.bind(e),
                            slides: e.params.virtual.slides,
                            cache: {}
                        }
                    })
                },
                on: {
                    beforeInit: function () {
                        var e = this;
                        if (e.params.virtual.enabled) {
                            e.classNames.push(e.params.containerModifierClass + "virtual");
                            var t = {
                                watchSlidesProgress: !0
                            };
                            l.extend(e.params, t), l.extend(e.originalParams, t), e.virtual.update()
                        }
                    },
                    setTranslate: function () {
                        var e = this;
                        e.params.virtual.enabled && e.virtual.update()
                    }
                }
            },
            Y = {
                handle: function (e) {
                    var t = this,
                        a = e;
                    a.originalEvent && (a = a.originalEvent);
                    var i = a.keyCode || a.charCode;
                    if (!t.allowSlideNext && (t.isHorizontal() && 39 === i || t.isVertical() && 40 === i)) return !1;
                    if (!t.allowSlidePrev && (t.isHorizontal() && 37 === i || t.isVertical() && 38 === i)) return !1;
                    if (!(a.shiftKey || a.altKey || a.ctrlKey || a.metaKey || d.activeElement && d.activeElement.nodeName && ("input" === d.activeElement.nodeName.toLowerCase() || "textarea" === d.activeElement.nodeName.toLowerCase()))) {
                        if (37 === i || 39 === i || 38 === i || 40 === i) {
                            var r = !1;
                            if (t.$el.parents("." + t.params.slideClass).length > 0 && 0 === t.$el.parents("." + t.params.slideActiveClass).length) return;
                            var n = {
                                    left: s.pageXOffset,
                                    top: s.pageYOffset
                                },
                                o = s.innerWidth,
                                l = s.innerHeight,
                                p = t.$el.offset();
                            t.rtl && (p.left -= t.$el[0].scrollLeft);
                            for (var c = [
                                    [p.left, p.top],
                                    [p.left + t.width, p.top],
                                    [p.left, p.top + t.height],
                                    [p.left + t.width, p.top + t.height]
                                ], u = 0; u < c.length; u += 1) {
                                var h = c[u];
                                h[0] >= n.left && h[0] <= n.left + o && h[1] >= n.top && h[1] <= n.top + l && (r = !0)
                            }
                            if (!r) return
                        }
                        t.isHorizontal() ? (37 !== i && 39 !== i || (a.preventDefault ? a.preventDefault() : a.returnValue = !1), (39 === i && !t.rtl || 37 === i && t.rtl) && t.slideNext(), (37 === i && !t.rtl || 39 === i && t.rtl) && t.slidePrev()) : (38 !== i && 40 !== i || (a.preventDefault ? a.preventDefault() : a.returnValue = !1), 40 === i && t.slideNext(), 38 === i && t.slidePrev()), t.emit("keyPress", i)
                    }
                },
                enable: function () {
                    var t = this;
                    t.keyboard.enabled || (e(d).on("keydown", t.keyboard.handle), t.keyboard.enabled = !0)
                },
                disable: function () {
                    var t = this;
                    t.keyboard.enabled && (e(d).off("keydown", t.keyboard.handle), t.keyboard.enabled = !1)
                }
            },
            G = {
                name: "keyboard",
                params: {
                    keyboard: {
                        enabled: !1
                    }
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        keyboard: {
                            enabled: !1,
                            enable: Y.enable.bind(e),
                            disable: Y.disable.bind(e),
                            handle: Y.handle.bind(e)
                        }
                    })
                },
                on: {
                    init: function () {
                        var e = this;
                        e.params.keyboard.enabled && e.keyboard.enable()
                    },
                    destroy: function () {
                        var e = this;
                        e.keyboard.enabled && e.keyboard.disable()
                    }
                }
            },
            B = {
                lastScrollTime: l.now(),
                event: s.navigator.userAgent.indexOf("firefox") > -1 ? "DOMMouseScroll" : a() ? "wheel" : "mousewheel",
                normalize: function (e) {
                    var t = 0,
                        a = 0,
                        i = 0,
                        s = 0;
                    return "detail" in e && (a = e.detail), "wheelDelta" in e && (a = -e.wheelDelta / 120), "wheelDeltaY" in e && (a = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (t = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS && (t = a, a = 0), i = 10 * t, s = 10 * a, "deltaY" in e && (s = e.deltaY), "deltaX" in e && (i = e.deltaX), (i || s) && e.deltaMode && (1 === e.deltaMode ? (i *= 40, s *= 40) : (i *= 800, s *= 800)), i && !t && (t = i < 1 ? -1 : 1), s && !a && (a = s < 1 ? -1 : 1), {
                        spinX: t,
                        spinY: a,
                        pixelX: i,
                        pixelY: s
                    }
                },
                handle: function (e) {
                    var t = e,
                        a = this,
                        i = a.params.mousewheel;
                    t.originalEvent && (t = t.originalEvent);
                    var r = 0,
                        n = a.rtl ? -1 : 1,
                        o = B.normalize(t);
                    if (i.forceToAxis)
                        if (a.isHorizontal()) {
                            if (!(Math.abs(o.pixelX) > Math.abs(o.pixelY))) return !0;
                            r = o.pixelX * n
                        } else {
                            if (!(Math.abs(o.pixelY) > Math.abs(o.pixelX))) return !0;
                            r = o.pixelY
                        }
                    else r = Math.abs(o.pixelX) > Math.abs(o.pixelY) ? -o.pixelX * n : -o.pixelY;
                    if (0 === r) return !0;
                    if (i.invert && (r = -r), a.params.freeMode) {
                        var d = a.getTranslate() + r * i.sensitivity,
                            p = a.isBeginning,
                            c = a.isEnd;
                        if (d >= a.minTranslate() && (d = a.minTranslate()), d <= a.maxTranslate() && (d = a.maxTranslate()), a.setTransition(0), a.setTranslate(d), a.updateProgress(), a.updateActiveIndex(), a.updateSlidesClasses(), (!p && a.isBeginning || !c && a.isEnd) && a.updateSlidesClasses(), a.params.freeModeSticky && (clearTimeout(a.mousewheel.timeout), a.mousewheel.timeout = l.nextTick(function () {
                                a.slideReset()
                            }, 300)), a.emit("scroll", t), a.params.autoplay && a.params.autoplayDisableOnInteraction && a.stopAutoplay(), 0 === d || d === a.maxTranslate()) return !0
                    } else {
                        if (l.now() - a.mousewheel.lastScrollTime > 60)
                            if (r < 0)
                                if (a.isEnd && !a.params.loop || a.animating) {
                                    if (i.releaseOnEdges) return !0
                                } else a.slideNext(), a.emit("scroll", t);
                        else if (a.isBeginning && !a.params.loop || a.animating) {
                            if (i.releaseOnEdges) return !0
                        } else a.slidePrev(), a.emit("scroll", t);
                        a.mousewheel.lastScrollTime = (new s.Date).getTime()
                    }
                    return t.preventDefault ? t.preventDefault() : t.returnValue = !1, !1
                },
                enable: function () {
                    var t = this;
                    if (!B.event) return !1;
                    if (t.mousewheel.enabled) return !1;
                    var a = t.$el;
                    return "container" !== t.params.mousewheel.eventsTarged && (a = e(t.params.mousewheel.eventsTarged)), a.on(B.event, t.mousewheel.handle), t.mousewheel.enabled = !0, !0
                },
                disable: function () {
                    var t = this;
                    if (!B.event) return !1;
                    if (!t.mousewheel.enabled) return !1;
                    var a = t.$el;
                    return "container" !== t.params.mousewheel.eventsTarged && (a = e(t.params.mousewheel.eventsTarged)), a.off(B.event, t.mousewheel.handle), t.mousewheel.enabled = !1, !0
                }
            },
            V = {
                name: "mousewheel",
                params: {
                    mousewheel: {
                        enabled: !1,
                        releaseOnEdges: !1,
                        invert: !1,
                        forceToAxis: !1,
                        sensitivity: 1,
                        eventsTarged: "container"
                    }
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        mousewheel: {
                            enabled: !1,
                            enable: B.enable.bind(e),
                            disable: B.disable.bind(e),
                            handle: B.handle.bind(e),
                            lastScrollTime: l.now()
                        }
                    })
                },
                on: {
                    init: function () {
                        var e = this;
                        e.params.mousewheel.enabled && e.mousewheel.enable()
                    },
                    destroy: function () {
                        var e = this;
                        e.mousewheel.enabled && e.mousewheel.disable()
                    }
                }
            },
            R = {
                update: function () {
                    var e = this,
                        t = e.params.navigation;
                    if (!e.params.loop) {
                        var a = e.navigation,
                            i = a.$nextEl,
                            s = a.$prevEl;
                        s && s.length > 0 && (e.isBeginning ? s.addClass(t.disabledClass) : s.removeClass(t.disabledClass)), i && i.length > 0 && (e.isEnd ? i.addClass(t.disabledClass) : i.removeClass(t.disabledClass))
                    }
                },
                init: function () {
                    var t = this,
                        a = t.params.navigation;
                    if (a.nextEl || a.prevEl) {
                        var i, s;
                        a.nextEl && (i = e(a.nextEl), t.params.uniqueNavElements && "string" == typeof a.nextEl && i.length > 1 && 1 === t.$el.find(a.nextEl).length && (i = t.$el.find(a.nextEl))), a.prevEl && (s = e(a.prevEl), t.params.uniqueNavElements && "string" == typeof a.prevEl && s.length > 1 && 1 === t.$el.find(a.prevEl).length && (s = t.$el.find(a.prevEl))), i && i.length > 0 && i.on("click", function (e) {
                            e.preventDefault(), t.isEnd && !t.params.loop || t.slideNext()
                        }), s && s.length > 0 && s.on("click", function (e) {
                            e.preventDefault(), t.isBeginning && !t.params.loop || t.slidePrev()
                        }), l.extend(t.navigation, {
                            $nextEl: i,
                            nextEl: i && i[0],
                            $prevEl: s,
                            prevEl: s && s[0]
                        })
                    }
                },
                destroy: function () {
                    var e = this,
                        t = e.navigation,
                        a = t.$nextEl,
                        i = t.$prevEl;
                    a && a.length && (a.off("click"), a.removeClass(e.params.navigation.disabledClass)), i && i.length && (i.off("click"), i.removeClass(e.params.navigation.disabledClass))
                }
            },
            W = {
                name: "navigation",
                params: {
                    navigation: {
                        nextEl: null,
                        prevEl: null,
                        hideOnClick: !1,
                        disabledClass: "swiper-button-disabled",
                        hiddenClass: "swiper-button-hidden"
                    }
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        navigation: {
                            init: R.init.bind(e),
                            update: R.update.bind(e),
                            destroy: R.destroy.bind(e)
                        }
                    })
                },
                on: {
                    init: function () {
                        var e = this;
                        e.navigation.init(), e.navigation.update()
                    },
                    toEdge: function () {
                        this.navigation.update()
                    },
                    fromEdge: function () {
                        this.navigation.update()
                    },
                    destroy: function () {
                        this.navigation.destroy()
                    },
                    click: function (t) {
                        var a = this,
                            i = a.navigation,
                            s = i.$nextEl,
                            r = i.$prevEl;
                        !a.params.navigation.hideOnClick || e(t.target).is(r) || e(t.target).is(s) || (s && s.toggleClass(a.params.navigation.hiddenClass), r && r.toggleClass(a.params.navigation.hiddenClass))
                    }
                }
            },
            F = {
                update: function () {
                    var t = this,
                        a = t.rtl,
                        i = t.params.pagination;
                    if (i.el && t.pagination.el && t.pagination.$el && 0 !== t.pagination.$el.length) {
                        var s, r = t.virtual && t.params.virtual.enabled ? t.virtual.slides.length : t.slides.length,
                            n = t.pagination.$el,
                            o = t.params.loop ? Math.ceil((r - 2 * t.loopedSlides) / t.params.slidesPerGroup) : t.snapGrid.length;
                        if (t.params.loop ? ((s = Math.ceil((t.activeIndex - t.loopedSlides) / t.params.slidesPerGroup)) > r - 1 - 2 * t.loopedSlides && (s -= r - 2 * t.loopedSlides), s > o - 1 && (s -= o), s < 0 && "bullets" !== t.params.paginationType && (s = o + s)) : s = void 0 !== t.snapIndex ? t.snapIndex : t.activeIndex || 0, "bullets" === i.type && t.pagination.bullets && t.pagination.bullets.length > 0) {
                            var l = t.pagination.bullets;
                            if (i.dynamicBullets && (t.pagination.bulletSize = l.eq(0)[t.isHorizontal() ? "outerWidth" : "outerHeight"](!0), n.css(t.isHorizontal() ? "width" : "height", 5 * t.pagination.bulletSize + "px")), l.removeClass(i.bulletActiveClass + " " + i.bulletActiveClass + "-next " + i.bulletActiveClass + "-next-next " + i.bulletActiveClass + "-prev " + i.bulletActiveClass + "-prev-prev"), n.length > 1) l.each(function (t, a) {
                                var r = e(a);
                                r.index() === s && (r.addClass(i.bulletActiveClass), i.dynamicBullets && (r.prev().addClass(i.bulletActiveClass + "-prev").prev().addClass(i.bulletActiveClass + "-prev-prev"), r.next().addClass(i.bulletActiveClass + "-next").next().addClass(i.bulletActiveClass + "-next-next")))
                            });
                            else {
                                var d = l.eq(s);
                                d.addClass(i.bulletActiveClass), i.dynamicBullets && (d.prev().addClass(i.bulletActiveClass + "-prev").prev().addClass(i.bulletActiveClass + "-prev-prev"), d.next().addClass(i.bulletActiveClass + "-next").next().addClass(i.bulletActiveClass + "-next-next"))
                            }
                            if (i.dynamicBullets) {
                                var p = Math.min(l.length, 5),
                                    c = (t.pagination.bulletSize * p - t.pagination.bulletSize) / 2 - s * t.pagination.bulletSize,
                                    u = a ? "right" : "left";
                                l.css(t.isHorizontal() ? u : "top", c + "px")
                            }
                        }
                        if ("fraction" === i.type && (n.find("." + i.currentClass).text(s + 1), n.find("." + i.totalClass).text(o)), "progressbar" === i.type) {
                            var h = (s + 1) / o,
                                v = h,
                                f = 1;
                            t.isHorizontal() || (f = h, v = 1), n.find("." + i.progressbarFillClass).transform("translate3d(0,0,0) scaleX(" + v + ") scaleY(" + f + ")").transition(t.params.speed)
                        }
                        "custom" === i.type && i.renderCustom ? (n.html(i.renderCustom(t, s + 1, o)), t.emit("paginationRender", t, n[0])) : t.emit("paginationUpdate", t, n[0])
                    }
                },
                render: function () {
                    var e = this,
                        t = e.params.pagination;
                    if (t.el && e.pagination.el && e.pagination.$el && 0 !== e.pagination.$el.length) {
                        var a = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length,
                            i = e.pagination.$el,
                            s = "";
                        if ("bullets" === t.type) {
                            for (var r = e.params.loop ? Math.ceil((a - 2 * e.loopedSlides) / e.params.slidesPerGroup) : e.snapGrid.length, n = 0; n < r; n += 1) t.renderBullet ? s += t.renderBullet.call(e, n, t.bulletClass) : s += "<" + t.bulletElement + ' class="' + t.bulletClass + '"></' + t.bulletElement + ">";
                            i.html(s), e.pagination.bullets = i.find("." + t.bulletClass)
                        }
                        "fraction" === t.type && (s = t.renderFraction ? t.renderFraction.call(e, t.currentClass, t.totalClass) : '<span class="' + t.currentClass + '"></span> / <span class="' + t.totalClass + '"></span>', i.html(s)), "progressbar" === t.type && (s = t.renderProgressbar ? t.renderProgressbar.call(e, t.progressbarFillClass) : '<span class="' + t.progressbarFillClass + '"></span>', i.html(s)), "custom" !== t.type && e.emit("paginationRender", e.pagination.$el[0])
                    }
                },
                init: function () {
                    var t = this,
                        a = t.params.pagination;
                    if (a.el) {
                        var i = e(a.el);
                        0 !== i.length && (t.params.uniqueNavElements && "string" == typeof a.el && i.length > 1 && 1 === t.$el.find(a.el).length && (i = t.$el.find(a.el)), "bullets" === a.type && a.clickable && i.addClass(a.clickableClass), i.addClass(a.modifierClass + a.type), "bullets" === a.type && a.dynamicBullets && i.addClass("" + a.modifierClass + a.type + "-dynamic"), a.clickable && i.on("click", "." + a.bulletClass, function (a) {
                            a.preventDefault();
                            var i = e(this).index() * t.params.slidesPerGroup;
                            t.params.loop && (i += t.loopedSlides), t.slideTo(i)
                        }), l.extend(t.pagination, {
                            $el: i,
                            el: i[0]
                        }))
                    }
                },
                destroy: function () {
                    var e = this,
                        t = e.params.pagination;
                    if (t.el && e.pagination.el && e.pagination.$el && 0 !== e.pagination.$el.length) {
                        var a = e.pagination.$el;
                        a.removeClass(t.hiddenClass), a.removeClass(t.modifierClass + t.type), e.pagination.bullets && e.pagination.bullets.removeClass(t.bulletActiveClass), t.clickable && a.off("click", "." + t.bulletClass)
                    }
                }
            },
            j = {
                name: "pagination",
                params: {
                    pagination: {
                        el: null,
                        bulletElement: "span",
                        clickable: !1,
                        hideOnClick: !1,
                        renderBullet: null,
                        renderProgressbar: null,
                        renderFraction: null,
                        renderCustom: null,
                        type: "bullets",
                        dynamicBullets: !1,
                        bulletClass: "swiper-pagination-bullet",
                        bulletActiveClass: "swiper-pagination-bullet-active",
                        modifierClass: "swiper-pagination-",
                        currentClass: "swiper-pagination-current",
                        totalClass: "swiper-pagination-total",
                        hiddenClass: "swiper-pagination-hidden",
                        progressbarFillClass: "swiper-pagination-progressbar-fill",
                        clickableClass: "swiper-pagination-clickable"
                    }
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        pagination: {
                            init: F.init.bind(e),
                            render: F.render.bind(e),
                            update: F.update.bind(e),
                            destroy: F.destroy.bind(e)
                        }
                    })
                },
                on: {
                    init: function () {
                        var e = this;
                        e.pagination.init(), e.pagination.render(), e.pagination.update()
                    },
                    activeIndexChange: function () {
                        var e = this;
                        e.params.loop ? e.pagination.update() : void 0 === e.snapIndex && e.pagination.update()
                    },
                    snapIndexChange: function () {
                        var e = this;
                        e.params.loop || e.pagination.update()
                    },
                    slidesLengthChange: function () {
                        var e = this;
                        e.params.loop && (e.pagination.render(), e.pagination.update())
                    },
                    snapGridLengthChange: function () {
                        var e = this;
                        e.params.loop || (e.pagination.render(), e.pagination.update())
                    },
                    destroy: function () {
                        this.pagination.destroy()
                    },
                    click: function (t) {
                        var a = this;
                        a.params.pagination.el && a.params.pagination.hideOnClick && a.pagination.$el.length > 0 && !e(t.target).hasClass(a.params.pagination.bulletClass) && a.pagination.$el.toggleClass(a.params.pagination.hiddenClass)
                    }
                }
            },
            q = {
                setTranslate: function () {
                    var e = this;
                    if (e.params.scrollbar.el && e.scrollbar.el) {
                        var t = e.scrollbar,
                            a = e.rtl,
                            i = e.progress,
                            s = t.dragSize,
                            r = t.trackSize,
                            n = t.$dragEl,
                            o = t.$el,
                            l = e.params.scrollbar,
                            d = s,
                            c = (r - s) * i;
                        a && e.isHorizontal() ? (c = -c) > 0 ? (d = s - c, c = 0) : -c + s > r && (d = r + c) : c < 0 ? (d = s + c, c = 0) : c + s > r && (d = r - c), e.isHorizontal() ? (p.transforms3d ? n.transform("translate3d(" + c + "px, 0, 0)") : n.transform("translateX(" + c + "px)"), n[0].style.width = d + "px") : (p.transforms3d ? n.transform("translate3d(0px, " + c + "px, 0)") : n.transform("translateY(" + c + "px)"), n[0].style.height = d + "px"), l.hide && (clearTimeout(e.scrollbar.timeout), o[0].style.opacity = 1, e.scrollbar.timeout = setTimeout(function () {
                            o[0].style.opacity = 0, o.transition(400)
                        }, 1e3))
                    }
                },
                setTransition: function (e) {
                    var t = this;
                    t.params.scrollbar.el && t.scrollbar.el && t.scrollbar.$dragEl.transition(e)
                },
                updateSize: function () {
                    var e = this;
                    if (e.params.scrollbar.el && e.scrollbar.el) {
                        var t = e.scrollbar,
                            a = t.$dragEl,
                            i = t.$el;
                        a[0].style.width = "", a[0].style.height = "";
                        var s, r = e.isHorizontal() ? i[0].offsetWidth : i[0].offsetHeight,
                            n = e.size / e.virtualSize,
                            o = n * (r / e.size);
                        s = "auto" === e.params.scrollbar.dragSize ? r * n : parseInt(e.params.scrollbar.dragSize, 10), e.isHorizontal() ? a[0].style.width = s + "px" : a[0].style.height = s + "px", i[0].style.display = n >= 1 ? "none" : "", e.params.scrollbarHide && (i[0].style.opacity = 0), l.extend(t, {
                            trackSize: r,
                            divider: n,
                            moveDivider: o,
                            dragSize: s
                        })
                    }
                },
                setDragPosition: function (e) {
                    var t, a = this,
                        i = a.scrollbar,
                        s = i.$el,
                        r = i.dragSize,
                        n = i.trackSize;
                    t = ((a.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) - s.offset()[a.isHorizontal() ? "left" : "top"] - r / 2) / (n - r), t = Math.max(Math.min(t, 1), 0), a.rtl && (t = 1 - t);
                    var o = a.minTranslate() + (a.maxTranslate() - a.minTranslate()) * t;
                    a.updateProgress(o), a.setTranslate(o), a.updateActiveIndex(), a.updateSlidesClasses()
                },
                onDragStart: function (e) {
                    var t = this,
                        a = t.params.scrollbar,
                        i = t.scrollbar,
                        s = t.$wrapperEl,
                        r = i.$el,
                        n = i.$dragEl;
                    t.scrollbar.isTouched = !0, e.preventDefault(), e.stopPropagation(), s.transition(100), n.transition(100), i.setDragPosition(e), clearTimeout(t.scrollbar.dragTimeout), r.transition(0), a.hide && r.css("opacity", 1), t.emit("scrollbarDragStart", e)
                },
                onDragMove: function (e) {
                    var t = this,
                        a = t.scrollbar,
                        i = t.$wrapperEl,
                        s = a.$el,
                        r = a.$dragEl;
                    t.scrollbar.isTouched && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, a.setDragPosition(e), i.transition(0), s.transition(0), r.transition(0), t.emit("scrollbarDragMove", e))
                },
                onDragEnd: function (e) {
                    var t = this,
                        a = t.params.scrollbar,
                        i = t.scrollbar.$el;
                    t.scrollbar.isTouched && (t.scrollbar.isTouched = !1, a.hide && (clearTimeout(t.scrollbar.dragTimeout), t.scrollbar.dragTimeout = l.nextTick(function () {
                        i.css("opacity", 0), i.transition(400)
                    }, 1e3)), t.emit("scrollbarDragEnd", e), a.snapOnRelease && t.slideReset())
                },
                enableDraggable: function () {
                    var t = this;
                    if (t.params.scrollbar.el) {
                        var a = t.scrollbar.$el,
                            i = p.touch ? a[0] : document;
                        a.on(t.scrollbar.dragEvents.start, t.scrollbar.onDragStart), e(i).on(t.scrollbar.dragEvents.move, t.scrollbar.onDragMove), e(i).on(t.scrollbar.dragEvents.end, t.scrollbar.onDragEnd)
                    }
                },
                disableDraggable: function () {
                    var t = this;
                    if (t.params.scrollbar.el) {
                        var a = t.scrollbar.$el,
                            i = p.touch ? a[0] : document;
                        a.off(t.scrollbar.dragEvents.start), e(i).off(t.scrollbar.dragEvents.move), e(i).off(t.scrollbar.dragEvents.end)
                    }
                },
                init: function () {
                    var t = this;
                    if (t.params.scrollbar.el) {
                        var a = t.scrollbar,
                            i = t.$el,
                            s = t.touchEvents,
                            r = t.params.scrollbar,
                            n = e(r.el);
                        t.params.uniqueNavElements && "string" == typeof r.el && n.length > 1 && 1 === i.find(r.el).length && (n = i.find(r.el));
                        var o = n.find(".swiper-scrollbar-drag");
                        0 === o.length && (o = e('<div class="swiper-scrollbar-drag"></div>'), n.append(o)), t.scrollbar.dragEvents = !1 !== t.params.simulateTouch || p.touch ? s : {
                            start: "mousedown",
                            move: "mousemove",
                            end: "mouseup"
                        }, l.extend(a, {
                            $el: n,
                            el: n[0],
                            $dragEl: o,
                            dragEl: o[0]
                        }), r.draggable && a.enableDraggable()
                    }
                },
                destroy: function () {
                    this.scrollbar.disableDraggable()
                }
            },
            K = {
                name: "scrollbar",
                params: {
                    scrollbar: {
                        el: null,
                        dragSize: "auto",
                        hide: !1,
                        draggable: !1,
                        snapOnRelease: !0
                    }
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        scrollbar: {
                            init: q.init.bind(e),
                            destroy: q.destroy.bind(e),
                            updateSize: q.updateSize.bind(e),
                            setTranslate: q.setTranslate.bind(e),
                            setTransition: q.setTransition.bind(e),
                            enableDraggable: q.enableDraggable.bind(e),
                            disableDraggable: q.disableDraggable.bind(e),
                            setDragPosition: q.setDragPosition.bind(e),
                            onDragStart: q.onDragStart.bind(e),
                            onDragMove: q.onDragMove.bind(e),
                            onDragEnd: q.onDragEnd.bind(e),
                            isTouched: !1,
                            timeout: null,
                            dragTimeout: null
                        }
                    })
                },
                on: {
                    init: function () {
                        var e = this;
                        e.scrollbar.init(), e.scrollbar.updateSize(), e.scrollbar.setTranslate()
                    },
                    update: function () {
                        this.scrollbar.updateSize()
                    },
                    resize: function () {
                        this.scrollbar.updateSize()
                    },
                    observerUpdate: function () {
                        this.scrollbar.updateSize()
                    },
                    setTranslate: function () {
                        this.scrollbar.setTranslate()
                    },
                    setTransition: function (e) {
                        this.scrollbar.setTransition(e)
                    },
                    destroy: function () {
                        this.scrollbar.destroy()
                    }
                }
            },
            U = {
                setTransform: function (t, a) {
                    var i = this,
                        s = i.rtl,
                        r = e(t),
                        n = s ? -1 : 1,
                        o = r.attr("data-swiper-parallax") || "0",
                        l = r.attr("data-swiper-parallax-x"),
                        d = r.attr("data-swiper-parallax-y"),
                        p = r.attr("data-swiper-parallax-scale"),
                        c = r.attr("data-swiper-parallax-opacity");
                    if (l || d ? (l = l || "0", d = d || "0") : i.isHorizontal() ? (l = o, d = "0") : (d = o, l = "0"), l = l.indexOf("%") >= 0 ? parseInt(l, 10) * a * n + "%" : l * a * n + "px", d = d.indexOf("%") >= 0 ? parseInt(d, 10) * a + "%" : d * a + "px", void 0 !== c && null !== c) {
                        var u = c - (c - 1) * (1 - Math.abs(a));
                        r[0].style.opacity = u
                    }
                    if (void 0 === p || null === p) r.transform("translate3d(" + l + ", " + d + ", 0px)");
                    else {
                        var h = p - (p - 1) * (1 - Math.abs(a));
                        r.transform("translate3d(" + l + ", " + d + ", 0px) scale(" + h + ")")
                    }
                },
                setTranslate: function () {
                    var t = this,
                        a = t.$el,
                        i = t.slides,
                        s = t.progress,
                        r = t.snapGrid;
                    a.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function (e, a) {
                        t.parallax.setTransform(a, s)
                    }), i.each(function (a, i) {
                        var n = i.progress;
                        t.params.slidesPerGroup > 1 && "auto" !== t.params.slidesPerView && (n += Math.ceil(a / 2) - s * (r.length - 1)), n = Math.min(Math.max(n, -1), 1), e(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function (e, a) {
                            t.parallax.setTransform(a, n)
                        })
                    })
                },
                setTransition: function (t) {
                    void 0 === t && (t = this.params.speed), this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function (a, i) {
                        var s = e(i),
                            r = parseInt(s.attr("data-swiper-parallax-duration"), 10) || t;
                        0 === t && (r = 0), s.transition(r)
                    })
                }
            },
            _ = {
                name: "parallax",
                params: {
                    parallax: {
                        enabled: !1
                    }
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        parallax: {
                            setTransform: U.setTransform.bind(e),
                            setTranslate: U.setTranslate.bind(e),
                            setTransition: U.setTransition.bind(e)
                        }
                    })
                },
                on: {
                    beforeInit: function () {
                        this.params.watchSlidesProgress = !0
                    },
                    init: function () {
                        var e = this;
                        e.params.parallax && e.parallax.setTranslate()
                    },
                    setTranslate: function () {
                        var e = this;
                        e.params.parallax && e.parallax.setTranslate()
                    },
                    setTransition: function (e) {
                        var t = this;
                        t.params.parallax && t.parallax.setTransition(e)
                    }
                }
            },
            Z = {
                getDistanceBetweenTouches: function (e) {
                    if (e.targetTouches.length < 2) return 1;
                    var t = e.targetTouches[0].pageX,
                        a = e.targetTouches[0].pageY,
                        i = e.targetTouches[1].pageX,
                        s = e.targetTouches[1].pageY;
                    return Math.sqrt(Math.pow(i - t, 2) + Math.pow(s - a, 2))
                },
                onGestureStart: function (t) {
                    var a = this,
                        i = a.params.zoom,
                        s = a.zoom,
                        r = s.gesture;
                    if (s.fakeGestureTouched = !1, s.fakeGestureMoved = !1, !p.gestures) {
                        if ("touchstart" !== t.type || "touchstart" === t.type && t.targetTouches.length < 2) return;
                        s.fakeGestureTouched = !0, r.scaleStart = Z.getDistanceBetweenTouches(t)
                    }
                    r.$slideEl && r.$slideEl.length || (r.$slideEl = e(this), 0 === r.$slideEl.length && (r.$slideEl = a.slides.eq(a.activeIndex)), r.$imageEl = r.$slideEl.find("img, svg, canvas"), r.$imageWrapEl = r.$imageEl.parent("." + i.containerClass), r.maxRatio = r.$imageWrapEl.attr("data-swiper-zoom") || i.maxRatio, 0 !== r.$imageWrapEl.length) ? (r.$imageEl.transition(0), a.zoom.isScaling = !0) : r.$imageEl = void 0
                },
                onGestureChange: function (e) {
                    var t = this,
                        a = t.params.zoom,
                        i = t.zoom,
                        s = i.gesture;
                    if (!p.gestures) {
                        if ("touchmove" !== e.type || "touchmove" === e.type && e.targetTouches.length < 2) return;
                        i.fakeGestureMoved = !0, s.scaleMove = Z.getDistanceBetweenTouches(e)
                    }
                    s.$imageEl && 0 !== s.$imageEl.length && (p.gestures ? t.zoom.scale = e.scale * i.currentScale : i.scale = s.scaleMove / s.scaleStart * i.currentScale, i.scale > s.maxRatio && (i.scale = s.maxRatio - 1 + Math.pow(i.scale - s.maxRatio + 1, .5)), i.scale < a.minRatio && (i.scale = a.minRatio + 1 - Math.pow(a.minRatio - i.scale + 1, .5)), s.$imageEl.transform("translate3d(0,0,0) scale(" + i.scale + ")"))
                },
                onGestureEnd: function (e) {
                    var t = this,
                        a = t.params.zoom,
                        i = t.zoom,
                        s = i.gesture;
                    if (!p.gestures) {
                        if (!i.fakeGestureTouched || !i.fakeGestureMoved) return;
                        if ("touchend" !== e.type || "touchend" === e.type && e.changedTouches.length < 2 && !x.android) return;
                        i.fakeGestureTouched = !1, i.fakeGestureMoved = !1
                    }
                    s.$imageEl && 0 !== s.$imageEl.length && (i.scale = Math.max(Math.min(i.scale, s.maxRatio), a.minRatio), s.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale(" + i.scale + ")"), i.currentScale = i.scale, i.isScaling = !1, 1 === i.scale && (s.$slideEl = void 0))
                },
                onTouchStart: function (e) {
                    var t = this.zoom,
                        a = t.gesture,
                        i = t.image;
                    a.$imageEl && 0 !== a.$imageEl.length && (i.isTouched || (x.android && e.preventDefault(), i.isTouched = !0, i.touchesStart.x = "touchstart" === e.type ? e.targetTouches[0].pageX : e.pageX, i.touchesStart.y = "touchstart" === e.type ? e.targetTouches[0].pageY : e.pageY))
                },
                onTouchMove: function (e) {
                    var t = this,
                        a = t.zoom,
                        i = a.gesture,
                        s = a.image,
                        r = a.velocity;
                    if (i.$imageEl && 0 !== i.$imageEl.length && (t.allowClick = !1, s.isTouched && i.$slideEl)) {
                        s.isMoved || (s.width = i.$imageEl[0].offsetWidth, s.height = i.$imageEl[0].offsetHeight, s.startX = l.getTranslate(i.$imageWrapEl[0], "x") || 0, s.startY = l.getTranslate(i.$imageWrapEl[0], "y") || 0, i.slideWidth = i.$slideEl[0].offsetWidth, i.slideHeight = i.$slideEl[0].offsetHeight, i.$imageWrapEl.transition(0), t.rtl && (s.startX = -s.startX), t.rtl && (s.startY = -s.startY));
                        var n = s.width * a.scale,
                            o = s.height * a.scale;
                        if (!(n < i.slideWidth && o < i.slideHeight)) {
                            if (s.minX = Math.min(i.slideWidth / 2 - n / 2, 0), s.maxX = -s.minX, s.minY = Math.min(i.slideHeight / 2 - o / 2, 0), s.maxY = -s.minY, s.touchesCurrent.x = "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX, s.touchesCurrent.y = "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY, !s.isMoved && !a.isScaling) {
                                if (t.isHorizontal() && (Math.floor(s.minX) === Math.floor(s.startX) && s.touchesCurrent.x < s.touchesStart.x || Math.floor(s.maxX) === Math.floor(s.startX) && s.touchesCurrent.x > s.touchesStart.x)) return void(s.isTouched = !1);
                                if (!t.isHorizontal() && (Math.floor(s.minY) === Math.floor(s.startY) && s.touchesCurrent.y < s.touchesStart.y || Math.floor(s.maxY) === Math.floor(s.startY) && s.touchesCurrent.y > s.touchesStart.y)) return void(s.isTouched = !1)
                            }
                            e.preventDefault(), e.stopPropagation(), s.isMoved = !0, s.currentX = s.touchesCurrent.x - s.touchesStart.x + s.startX, s.currentY = s.touchesCurrent.y - s.touchesStart.y + s.startY, s.currentX < s.minX && (s.currentX = s.minX + 1 - Math.pow(s.minX - s.currentX + 1, .8)), s.currentX > s.maxX && (s.currentX = s.maxX - 1 + Math.pow(s.currentX - s.maxX + 1, .8)), s.currentY < s.minY && (s.currentY = s.minY + 1 - Math.pow(s.minY - s.currentY + 1, .8)), s.currentY > s.maxY && (s.currentY = s.maxY - 1 + Math.pow(s.currentY - s.maxY + 1, .8)), r.prevPositionX || (r.prevPositionX = s.touchesCurrent.x), r.prevPositionY || (r.prevPositionY = s.touchesCurrent.y), r.prevTime || (r.prevTime = Date.now()), r.x = (s.touchesCurrent.x - r.prevPositionX) / (Date.now() - r.prevTime) / 2, r.y = (s.touchesCurrent.y - r.prevPositionY) / (Date.now() - r.prevTime) / 2, Math.abs(s.touchesCurrent.x - r.prevPositionX) < 2 && (r.x = 0), Math.abs(s.touchesCurrent.y - r.prevPositionY) < 2 && (r.y = 0), r.prevPositionX = s.touchesCurrent.x, r.prevPositionY = s.touchesCurrent.y, r.prevTime = Date.now(), i.$imageWrapEl.transform("translate3d(" + s.currentX + "px, " + s.currentY + "px,0)")
                        }
                    }
                },
                onTouchEnd: function () {
                    var e = this.zoom,
                        t = e.gesture,
                        a = e.image,
                        i = e.velocity;
                    if (t.$imageEl && 0 !== t.$imageEl.length) {
                        if (!a.isTouched || !a.isMoved) return a.isTouched = !1, void(a.isMoved = !1);
                        a.isTouched = !1, a.isMoved = !1;
                        var s = 300,
                            r = 300,
                            n = i.x * s,
                            o = a.currentX + n,
                            l = i.y * r,
                            d = a.currentY + l;
                        0 !== i.x && (s = Math.abs((o - a.currentX) / i.x)), 0 !== i.y && (r = Math.abs((d - a.currentY) / i.y));
                        var p = Math.max(s, r);
                        a.currentX = o, a.currentY = d;
                        var c = a.width * e.scale,
                            u = a.height * e.scale;
                        a.minX = Math.min(t.slideWidth / 2 - c / 2, 0), a.maxX = -a.minX, a.minY = Math.min(t.slideHeight / 2 - u / 2, 0), a.maxY = -a.minY, a.currentX = Math.max(Math.min(a.currentX, a.maxX), a.minX), a.currentY = Math.max(Math.min(a.currentY, a.maxY), a.minY), t.$imageWrapEl.transition(p).transform("translate3d(" + a.currentX + "px, " + a.currentY + "px,0)")
                    }
                },
                onTransitionEnd: function () {
                    var e = this,
                        t = e.zoom,
                        a = t.gesture;
                    a.$slideEl && e.previousIndex !== e.activeIndex && (a.$imageEl.transform("translate3d(0,0,0) scale(1)"), a.$imageWrapEl.transform("translate3d(0,0,0)"), a.$slideEl = void 0, a.$imageEl = void 0, a.$imageWrapEl = void 0, t.scale = 1, t.currentScale = 1)
                },
                toggle: function (e) {
                    var t = this.zoom;
                    t.scale && 1 !== t.scale ? t.out() : t.in(e)
                },
                in: function (t) {
                    var a = this,
                        i = a.zoom,
                        s = a.params.zoom,
                        r = i.gesture,
                        n = i.image;
                    if (r.$slideEl || (r.$slideEl = a.clickedSlide ? e(a.clickedSlide) : a.slides.eq(a.activeIndex), r.$imageEl = r.$slideEl.find("img, svg, canvas"), r.$imageWrapEl = r.$imageEl.parent("." + s.containerClass)), r.$imageEl && 0 !== r.$imageEl.length) {
                        r.$slideEl.addClass("" + s.zoomedSlideClass);
                        var o, l, d, p, c, u, h, v, f, m, g, b, w, y, x, T;
                        void 0 === n.touchesStart.x && t ? (o = "touchend" === t.type ? t.changedTouches[0].pageX : t.pageX, l = "touchend" === t.type ? t.changedTouches[0].pageY : t.pageY) : (o = n.touchesStart.x, l = n.touchesStart.y), i.scale = r.$imageWrapEl.attr("data-swiper-zoom") || s.maxRatio, i.currentScale = r.$imageWrapEl.attr("data-swiper-zoom") || s.maxRatio, t ? (x = r.$slideEl[0].offsetWidth, T = r.$slideEl[0].offsetHeight, d = r.$slideEl.offset().left + x / 2 - o, p = r.$slideEl.offset().top + T / 2 - l, h = r.$imageEl[0].offsetWidth, v = r.$imageEl[0].offsetHeight, f = h * i.scale, m = v * i.scale, w = -(g = Math.min(x / 2 - f / 2, 0)), y = -(b = Math.min(T / 2 - m / 2, 0)), c = d * i.scale, u = p * i.scale, c < g && (c = g), c > w && (c = w), u < b && (u = b), u > y && (u = y)) : (c = 0, u = 0), r.$imageWrapEl.transition(300).transform("translate3d(" + c + "px, " + u + "px,0)"), r.$imageEl.transition(300).transform("translate3d(0,0,0) scale(" + i.scale + ")")
                    }
                },
                out: function () {
                    var t = this,
                        a = t.zoom,
                        i = t.params.zoom,
                        s = a.gesture;
                    s.$slideEl || (s.$slideEl = t.clickedSlide ? e(t.clickedSlide) : t.slides.eq(t.activeIndex), s.$imageEl = s.$slideEl.find("img, svg, canvas"), s.$imageWrapEl = s.$imageEl.parent("." + i.containerClass)), s.$imageEl && 0 !== s.$imageEl.length && (a.scale = 1, a.currentScale = 1, s.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"), s.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"), s.$slideEl.removeClass("" + i.zoomedSlideClass), s.$slideEl = void 0)
                },
                enable: function () {
                    var t = this,
                        a = t.zoom;
                    if (!a.enabled) {
                        a.enabled = !0;
                        var i = t.slides,
                            s = !("touchstart" !== t.touchEvents.start || !p.passiveListener || !t.params.passiveListeners) && {
                                passive: !0,
                                capture: !1
                            };
                        p.gestures ? (i.on("gesturestart", a.onGestureStart, s), i.on("gesturechange", a.onGestureChange, s), i.on("gestureend", a.onGestureEnd, s)) : "touchstart" === t.touchEvents.start && (i.on(t.touchEvents.start, a.onGestureStart, s), i.on(t.touchEvents.move, a.onGestureChange, s), i.on(t.touchEvents.end, a.onGestureEnd, s)), t.slides.each(function (i, s) {
                            var r = e(s);
                            r.find("." + t.params.zoom.containerClass).length > 0 && r.on(t.touchEvents.move, a.onTouchMove)
                        })
                    }
                },
                disable: function () {
                    var t = this,
                        a = t.zoom;
                    if (a.enabled) {
                        t.zoom.enabled = !1;
                        var i = t.slides,
                            s = !("touchstart" !== t.touchEvents.start || !p.passiveListener || !t.params.passiveListeners) && {
                                passive: !0,
                                capture: !1
                            };
                        p.gestures ? (i.off("gesturestart", a.onGestureStart, s), i.off("gesturechange", a.onGestureChange, s), i.off("gestureend", a.onGestureEnd, s)) : "touchstart" === t.touchEvents.start && (i.off(t.touchEvents.start, a.onGestureStart, s), i.off(t.touchEvents.move, a.onGestureChange, s), i.off(t.touchEvents.end, a.onGestureEnd, s)), t.slides.each(function (i, s) {
                            var r = e(s);
                            r.find("." + t.params.zoom.containerClass).length > 0 && r.off(t.touchEvents.move, a.onTouchMove)
                        })
                    }
                }
            },
            Q = {
                name: "zoom",
                params: {
                    zoom: {
                        enabled: !1,
                        maxRatio: 3,
                        minRatio: 1,
                        toggle: !0,
                        containerClass: "swiper-zoom-container",
                        zoomedSlideClass: "swiper-slide-zoomed"
                    }
                },
                create: function () {
                    var e = this,
                        t = {
                            enabled: !1,
                            scale: 1,
                            currentScale: 1,
                            isScaling: !1,
                            gesture: {
                                $slideEl: void 0,
                                slideWidth: void 0,
                                slideHeight: void 0,
                                $imageEl: void 0,
                                $imageWrapEl: void 0,
                                maxRatio: 3
                            },
                            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,
                                 void 0,
                                height: void 0,
                                startX: void 0,
                                startY: void 0,
                                touchesStart: {},
                                touchesCurrent: {}
                            },
                            velocity: {
                                x: void 0,
                                y: void 0,
                                prevPositionX: void 0,
                                prevPositionY: void 0,
                                prevTime: void 0
                            }
                        };
                    "onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function (a) {
                        t[a] = Z[a].bind(e)
                    }), l.extend(e, {
                        zoom: t
                    })
                },
                on: {
                    init: function () {
                        var e = this;
                        e.params.zoom.enabled && e.zoom.enable()
                    },
                    destroy: function () {
                        this.zoom.disable()
                    },
                    touchStart: function (e) {
                        var t = this;
                        t.zoom.enabled && t.zoom.onTouchStart(e)
                    },
                    touchEnd: function (e) {
                        var t = this;
                        t.zoom.enabled && t.zoom.onTouchEnd(e)
                    },
                    doubleTap: function (e) {
                        var t = this;
                        t.params.zoom.enabled && t.zoom.enabled && t.params.zoom.toggle && t.zoom.toggle(e)
                    },
                    transitionEnd: function () {
                        var e = this;
                        e.zoom.enabled && e.params.zoom.enabled && e.zoom.onTransitionEnd()
                    }
                }
            },
            J = {
                loadInSlide: function (t, a) {
                    void 0 === a && (a = !0);
                    var i = this,
                        s = i.params.lazy;
                    if (void 0 !== t && 0 !== i.slides.length) {
                        var r = i.virtual && i.params.virtual.enabled ? i.$wrapperEl.children("." + i.params.slideClass + '[data-swiper-slide-index="' + t + '"]') : i.slides.eq(t),
                            n = r.find("." + s.elementClass + ":not(." + s.loadedClass + "):not(." + s.loadingClass + ")");
                        !r.hasClass(s.elementClass) || r.hasClass(s.loadedClass) || r.hasClass(s.loadingClass) || (n = n.add(r[0])), 0 !== n.length && n.each(function (t, n) {
                            var o = e(n);
                            o.addClass(s.loadingClass);
                            var l = o.attr("data-background"),
                                d = o.attr("data-src"),
                                p = o.attr("data-srcset"),
                                c = o.attr("data-sizes");
                            i.loadImage(o[0], d || l, p, c, !1, function () {
                                if (void 0 !== i && null !== i && i && (!i || i.params) && !i.destroyed) {
                                    if (l ? (o.css("background-image", 'url("' + l + '")'), o.removeAttr("data-background")) : (p && (o.attr("srcset", p), o.removeAttr("data-srcset")), c && (o.attr("sizes", c), o.removeAttr("data-sizes")), d && (o.attr("src", d), o.removeAttr("data-src"))), o.addClass(s.loadedClass).removeClass(s.loadingClass), r.find("." + s.preloaderClass).remove(), i.params.loop && a) {
                                        var e = r.attr("data-swiper-slide-index");
                                        if (r.hasClass(i.params.slideDuplicateClass)) {
                                            var t = i.$wrapperEl.children('[data-swiper-slide-index="' + e + '"]:not(.' + i.params.slideDuplicateClass + ")");
                                            i.lazy.loadInSlide(t.index(), !1)
                                        } else {
                                            var n = i.$wrapperEl.children("." + i.params.slideDuplicateClass + '[data-swiper-slide-index="' + e + '"]');
                                            i.lazy.loadInSlide(n.index(), !1)
                                        }
                                    }
                                    i.emit("lazyImageReady", r[0], o[0])
                                }
                            }), i.emit("lazyImageLoad", r[0], o[0])
                        })
                    }
                },
                load: function () {
                    function t(e) {
                        if (l) {
                            if (s.children("." + r.slideClass + '[data-swiper-slide-index="' + e + '"]').length) return !0
                        } else if (n[e]) return !0;
                        return !1
                    }
    
                    function a(t) {
                        return l ? e(t).attr("data-swiper-slide-index") : e(t).index()
                    }
                    var i = this,
                        s = i.$wrapperEl,
                        r = i.params,
                        n = i.slides,
                        o = i.activeIndex,
                        l = i.virtual && r.virtual.enabled,
                        d = r.lazy,
                        p = r.slidesPerView;
                    if ("auto" === p && (p = 0), i.lazy.initialImageLoaded || (i.lazy.initialImageLoaded = !0), i.params.watchSlidesVisibility) s.children("." + r.slideVisibleClass).each(function (t, a) {
                        var s = l ? e(a).attr("data-swiper-slide-index") : e(a).index();
                        i.lazy.loadInSlide(s)
                    });
                    else if (p > 1)
                        for (var c = o; c < o + p; c += 1) t(c) && i.lazy.loadInSlide(c);
                    else i.lazy.loadInSlide(o);
                    if (d.loadPrevNext)
                        if (p > 1 || d.loadPrevNextAmount && d.loadPrevNextAmount > 1) {
                            for (var u = d.loadPrevNextAmount, h = p, v = Math.min(o + h + Math.max(u, h), n.length), f = Math.max(o - Math.max(h, u), 0), m = o + p; m < v; m += 1) t(m) && i.lazy.loadInSlide(m);
                            for (var g = f; g < o; g += 1) t(g) && i.lazy.loadInSlide(g)
                        } else {
                            var b = s.children("." + r.slideNextClass);
                            b.length > 0 && i.lazy.loadInSlide(a(b));
                            var w = s.children("." + r.slidePrevClass);
                            w.length > 0 && i.lazy.loadInSlide(a(w))
                        }
                }
            },
            ee = {
                name: "lazy",
                params: {
                    lazy: {
                        enabled: !1,
                        loadPrevNext: !1,
                        loadPrevNextAmount: 1,
                        loadOnTransitionStart: !1,
                        elementClass: "swiper-lazy",
                        loadingClass: "swiper-lazy-loading",
                        loadedClass: "swiper-lazy-loaded",
                        preloaderClass: "swiper-lazy-preloader"
                    }
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        lazy: {
                            initialImageLoaded: !1,
                            load: J.load.bind(e),
                            loadInSlide: J.loadInSlide.bind(e)
                        }
                    })
                },
                on: {
                    beforeInit: function () {
                        var e = this;
                        e.params.lazy.enabled && e.params.preloadImages && (e.params.preloadImages = !1)
                    },
                    init: function () {
                        var e = this;
                        e.params.lazy.enabled && !e.params.loop && 0 === e.params.initialSlide && e.lazy.load()
                    },
                    scroll: function () {
                        var e = this;
                        e.params.freeMode && !e.params.freeModeSticky && e.lazy.load()
                    },
                    resize: function () {
                        var e = this;
                        e.params.lazy.enabled && e.lazy.load()
                    },
                    scrollbarDragMove: function () {
                        var e = this;
                        e.params.lazy.enabled && e.lazy.load()
                    },
                    transitionStart: function () {
                        var e = this;
                        e.params.lazy.enabled && (e.params.lazy.loadOnTransitionStart || !e.params.lazy.loadOnTransitionStart && !e.lazy.initialImageLoaded) && e.lazy.load()
                    },
                    transitionEnd: function () {
                        var e = this;
                        e.params.lazy.enabled && !e.params.lazy.loadOnTransitionStart && e.lazy.load()
                    }
                }
            },
            te = {
                LinearSpline: function (e, t) {
                    var a = function () {
                        var e, t, a;
                        return function (i, s) {
                            for (t = -1, e = i.length; e - t > 1;) i[a = e + t >> 1] <= s ? t = a : e = a;
                            return e
                        }
                    }();
                    this.x = e, this.y = t, this.lastIndex = e.length - 1;
                    var i, s;
                    return this.interpolate = function (e) {
                        return e ? (s = a(this.x, e), i = s - 1, (e - this.x[i]) * (this.y[s] - this.y[i]) / (this.x[s] - this.x[i]) + this.y[i]) : 0
                    }, this
                },
                getInterpolateFunction: function (e) {
                    var t = this;
                    t.controller.spline || (t.controller.spline = t.params.loop ? new te.LinearSpline(t.slidesGrid, e.slidesGrid) : new te.LinearSpline(t.snapGrid, e.snapGrid))
                },
                setTranslate: function (e, t) {
                    function a(e) {
                        var t = e.rtl && "horizontal" === e.params.direction ? -r.translate : r.translate;
                        "slide" === r.params.controller.by && (r.controller.getInterpolateFunction(e), s = -r.controller.spline.interpolate(-t)), s && "container" !== r.params.controller.by || (i = (e.maxTranslate() - e.minTranslate()) / (r.maxTranslate() - r.minTranslate()), s = (t - r.minTranslate()) * i + e.minTranslate()), r.params.controller.inverse && (s = e.maxTranslate() - s), e.updateProgress(s), e.setTranslate(s, r), e.updateActiveIndex(), e.updateSlidesClasses()
                    }
                    var i, s, r = this,
                        n = r.controller.control;
                    if (Array.isArray(n))
                        for (var o = 0; o < n.length; o += 1) n[o] !== t && n[o] instanceof $ && a(n[o]);
                    else n instanceof $ && t !== n && a(n)
                },
                setTransition: function (e, t) {
                    function a(t) {
                        t.setTransition(e, s), 0 !== e && (t.transitionStart(), t.$wrapperEl.transitionEnd(function () {
                            r && (t.params.loop && "slide" === s.params.controller.by && t.loopFix(), t.transitionEnd())
                        }))
                    }
                    var i, s = this,
                        r = s.controller.control;
                    if (Array.isArray(r))
                        for (i = 0; i < r.length; i += 1) r[i] !== t && r[i] instanceof $ && a(r[i]);
                    else r instanceof $ && t !== r && a(r)
                }
            },
            ae = {
                name: "controller",
                params: {
                    controller: {
                        control: void 0,
                        inverse: !1,
                        by: "slide"
                    }
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        controller: {
                            control: e.params.controller.control,
                            getInterpolateFunction: te.getInterpolateFunction.bind(e),
                            setTranslate: te.setTranslate.bind(e),
                            setTransition: te.setTransition.bind(e)
                        }
                    })
                },
                on: {
                    update: function () {
                        var e = this;
                        e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline)
                    },
                    resize: function () {
                        var e = this;
                        e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline)
                    },
                    observerUpdate: function () {
                        var e = this;
                        e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline)
                    },
                    setTranslate: function (e, t) {
                        var a = this;
                        a.controller.control && a.controller.setTranslate(e, t)
                    },
                    setTransition: function (e, t) {
                        var a = this;
                        a.controller.control && a.controller.setTransition(e, t)
                    }
                }
            },
            ie = {
                makeElFocusable: function (e) {
                    return e.attr("tabIndex", "0"), e
                },
                addElRole: function (e, t) {
                    return e.attr("role", t), e
                },
                addElLabel: function (e, t) {
                    return e.attr("aria-label", t), e
                },
                disableEl: function (e) {
                    return e.attr("aria-disabled", !0), e
                },
                enableEl: function (e) {
                    return e.attr("aria-disabled", !1), e
                },
                onEnterKey: function (t) {
                    var a = this,
                        i = a.params.a11y;
                    if (13 === t.keyCode) {
                        var s = e(t.target);
                        a.navigation && a.navigation.$nextEl && s.is(a.navigation.$nextEl) && (a.isEnd && !a.params.loop || a.slideNext(), a.isEnd ? a.a11y.notify(i.lastSlideMessage) : a.a11y.notify(i.nextSlideMessage)), a.navigation && a.navigation.$prevEl && s.is(a.navigation.$prevEl) && (a.isBeginning && !a.params.loop || a.slidePrev(), a.isBeginning ? a.a11y.notify(i.firstSlideMessage) : a.a11y.notify(i.prevSlideMessage)), a.pagination && s.is("." + a.params.pagination.bulletClass) && s[0].click()
                    }
                },
                notify: function (e) {
                    var t = this.a11y.liveRegion;
                    0 !== t.length && (t.html(""), t.html(e))
                },
                updateNavigation: function () {
                    var e = this;
                    if (!e.params.loop) {
                        var t = e.navigation,
                            a = t.$nextEl,
                            i = t.$prevEl;
                        i && i.length > 0 && (e.isBeginning ? e.a11y.disableEl(i) : e.a11y.enableEl(i)), a && a.length > 0 && (e.isEnd ? e.a11y.disableEl(a) : e.a11y.enableEl(a))
                    }
                },
                updatePagination: function () {
                    var t = this,
                        a = t.params.a11y;
                    t.pagination && t.params.pagination.clickable && t.pagination.bullets && t.pagination.bullets.length && t.pagination.bullets.each(function (i, s) {
                        var r = e(s);
                        t.a11y.makeElFocusable(r), t.a11y.addElRole(r, "button"), t.a11y.addElLabel(r, a.paginationBulletMessage.replace(/{{index}}/, r.index() + 1))
                    })
                },
                init: function () {
                    var e = this;
                    e.$el.append(e.a11y.liveRegion);
                    var t, a, i = e.params.a11y;
                    e.navigation && e.navigation.$nextEl && (t = e.navigation.$nextEl), e.navigation && e.navigation.$prevEl && (a = e.navigation.$prevEl), t && (e.a11y.makeElFocusable(t), e.a11y.addElRole(t, "button"), e.a11y.addElLabel(t, i.nextSlideMessage), t.on("keydown", e.a11y.onEnterKey)), a && (e.a11y.makeElFocusable(a), e.a11y.addElRole(a, "button"), e.a11y.addElLabel(a, i.prevSlideMessage), a.on("keydown", e.a11y.onEnterKey)), e.pagination && e.params.pagination.clickable && e.pagination.bullets && e.pagination.bullets.length && e.pagination.$el.on("keydown", "." + e.params.pagination.bulletClass, e.a11y.onEnterKey)
                },
                destroy: function () {
                    var e = this;
                    e.a11y.liveRegion && e.a11y.liveRegion.length > 0 && e.a11y.liveRegion.remove();
                    var t, a;
                    e.navigation && e.navigation.$nextEl && (t = e.navigation.$nextEl), e.navigation && e.navigation.$prevEl && (a = e.navigation.$prevEl), t && t.off("keydown", e.a11y.onEnterKey), a && a.off("keydown", e.a11y.onEnterKey), e.pagination && e.params.pagination.clickable && e.pagination.bullets && e.pagination.bullets.length && e.pagination.$el.off("keydown", "." + e.params.pagination.bulletClass, e.a11y.onEnterKey)
                }
            },
            se = {
                name: "a11y",
                params: {
                    a11y: {
                        enabled: !1,
                        notificationClass: "swiper-notification",
                        prevSlideMessage: "Previous slide",
                        nextSlideMessage: "Next slide",
                        firstSlideMessage: "This is the first slide",
                        lastSlideMessage: "This is the last slide",
                        paginationBulletMessage: "Go to slide {{index}}"
                    }
                },
                create: function () {
                    var t = this;
                    l.extend(t, {
                        a11y: {
                            liveRegion: e('<span class="' + t.params.a11y.notificationClass + '" aria-live="assertive" aria-atomic="true"></span>')
                        }
                    }), Object.keys(ie).forEach(function (e) {
                        t.a11y[e] = ie[e].bind(t)
                    })
                },
                on: {
                    init: function () {
                        var e = this;
                        e.params.a11y.enabled && (e.a11y.init(), e.a11y.updateNavigation())
                    },
                    toEdge: function () {
                        var e = this;
                        e.params.a11y.enabled && e.a11y.updateNavigation()
                    },
                    fromEdge: function () {
                        var e = this;
                        e.params.a11y.enabled && e.a11y.updateNavigation()
                    },
                    paginationUpdate: function () {
                        var e = this;
                        e.params.a11y.enabled && e.a11y.updatePagination()
                    },
                    destroy: function () {
                        var e = this;
                        e.params.a11y.enabled && e.a11y.destroy()
                    }
                }
            },
            re = {
                init: function () {
                    var e = this;
                    if (e.params.history) {
                        if (!s.history || !s.history.pushState) return e.params.history.enabled = !1, void(e.params.hashNavigation.enabled = !0);
                        var t = e.history;
                        t.initialized = !0, t.paths = re.getPathValues(), (t.paths.key || t.paths.value) && (t.scrollToSlide(0, t.paths.value, e.params.runCallbacksOnInit), e.params.history.replaceState || s.addEventListener("popstate", e.history.setHistoryPopState))
                    }
                },
                destroy: function () {
                    var e = this;
                    e.params.history.replaceState || s.removeEventListener("popstate", e.history.setHistoryPopState)
                },
                setHistoryPopState: function () {
                    var e = this;
                    e.history.paths = re.getPathValues(), e.history.scrollToSlide(e.params.speed, e.history.paths.value, !1)
                },
                getPathValues: function () {
                    var e = s.location.pathname.slice(1).split("/").filter(function (e) {
                            return "" !== e
                        }),
                        t = e.length;
                    return {
                        key: e[t - 2],
                        value: e[t - 1]
                    }
                },
                setHistory: function (e, t) {
                    var a = this;
                    if (a.history.initialized && a.params.history.enabled) {
                        var i = a.slides.eq(t),
                            r = re.slugify(i.attr("data-history"));
                        s.location.pathname.includes(e) || (r = e + "/" + r);
                        var n = s.history.state;
                        n && n.value === r || (a.params.history.replaceState ? s.history.replaceState({
                            value: r
                        }, null, r) : s.history.pushState({
                            value: r
                        }, null, r))
                    }
                },
                slugify: function (e) {
                    return e.toString().toLowerCase().replace(/s+/g, "-").replace(/[^w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, "")
                },
                scrollToSlide: function (e, t, a) {
                    var i = this;
                    if (t)
                        for (var s = 0, r = i.slides.length; s < r; s += 1) {
                            var n = i.slides.eq(s);
                            if (re.slugify(n.attr("data-history")) === t && !n.hasClass(i.params.slideDuplicateClass)) {
                                var o = n.index();
                                i.slideTo(o, e, a)
                            }
                        } else i.slideTo(0, e, a)
                }
            },
            ne = {
                name: "history",
                params: {
                    history: {
                        enabled: !1,
                        replaceState: !1,
                        key: "slides"
                    }
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        history: {
                            init: re.init.bind(e),
                            setHistory: re.setHistory.bind(e),
                            setHistoryPopState: re.setHistoryPopState.bind(e),
                            scrollToSlide: re.scrollToSlide.bind(e),
                            destroy: re.destroy.bind(e)
                        }
                    })
                },
                on: {
                    init: function () {
                        var e = this;
                        e.params.history.enabled && e.history.init()
                    },
                    destroy: function () {
                        var e = this;
                        e.params.history.enabled && e.history.destroy()
                    },
                    transitionEnd: function () {
                        var e = this;
                        e.history.initialized && e.history.setHistory(e.params.history.key, e.activeIndex)
                    }
                }
            },
            oe = {
                onHashCange: function () {
                    var e = this,
                        t = d.location.hash.replace("#", "");
                    t !== e.slides.eq(e.activeIndex).attr("data-hash") && e.slideTo(e.$wrapperEl.children("." + e.params.slideClass + '[data-hash="' + t + '"]').index())
                },
                setHash: function () {
                    var e = this;
                    if (e.hashNavigation.initialized && e.params.hashNavigation.enabled)
                        if (e.params.hashNavigation.replaceState && s.history && s.history.replaceState) s.history.replaceState(null, null, "#" + e.slides.eq(e.activeIndex).attr("data-hash") || "");
                        else {
                            var t = e.slides.eq(e.activeIndex),
                                a = t.attr("data-hash") || t.attr("data-history");
                            d.location.hash = a || ""
                        }
                },
                init: function () {
                    var t = this;
                    if (!(!t.params.hashNavigation.enabled || t.params.history && t.params.history.enabled)) {
                        t.hashNavigation.initialized = !0;
                        var a = d.location.hash.replace("#", "");
                        if (a)
                            for (var i = 0, r = t.slides.length; i < r; i += 1) {
                                var n = t.slides.eq(i);
                                if ((n.attr("data-hash") || n.attr("data-history")) === a && !n.hasClass(t.params.slideDuplicateClass)) {
                                    var o = n.index();
                                    t.slideTo(o, 0, t.params.runCallbacksOnInit, !0)
                                }
                            }
                        t.params.hashNavigation.watchState && e(s).on("hashchange", t.hashNavigation.onHashCange)
                    }
                },
                destroy: function () {
                    var t = this;
                    t.params.hashNavigation.watchState && e(s).off("hashchange", t.hashNavigation.onHashCange)
                }
            },
            le = {
                name: "hash-navigation",
                params: {
                    hashNavigation: {
                        enabled: !1,
                        replaceState: !1,
                        watchState: !1
                    }
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        hashNavigation: {
                            initialized: !1,
                            init: oe.init.bind(e),
                            destroy: oe.destroy.bind(e),
                            setHash: oe.setHash.bind(e),
                            onHashCange: oe.onHashCange.bind(e)
                        }
                    })
                },
                on: {
                    init: function () {
                        var e = this;
                        e.params.hashNavigation.enabled && e.hashNavigation.init()
                    },
                    destroy: function () {
                        var e = this;
                        e.params.hashNavigation.enabled && e.hashNavigation.destroy()
                    },
                    transitionEnd: function () {
                        var e = this;
                        e.hashNavigation.initialized && e.hashNavigation.setHash()
                    }
                }
            },
            de = {
                run: function () {
                    var e = this,
                        t = e.slides.eq(e.activeIndex),
                        a = e.params.autoplay.delay;
                    t.attr("data-swiper-autoplay") && (a = t.attr("data-swiper-autoplay") || e.params.autoplay.delay), e.autoplay.timeout = l.nextTick(function () {
                        e.params.loop ? (e.loopFix(), e.slideNext(e.params.speed, !0, !0), e.emit("autoplay")) : e.isEnd ? e.params.autoplay.stopOnLastSlide ? e.autoplay.stop() : (e.slideTo(0, e.params.speed, !0, !0), e.emit("autoplay")) : (e.slideNext(e.params.speed, !0, !0), e.emit("autoplay"))
                    }, a)
                },
                start: function () {
                    var e = this;
                    return void 0 === e.autoplay.timeout && (!e.autoplay.running && (e.autoplay.running = !0, e.emit("autoplayStart"), e.autoplay.run(), !0))
                },
                stop: function () {
                    var e = this;
                    return !!e.autoplay.running && (void 0 !== e.autoplay.timeout && (e.autoplay.timeout && (clearTimeout(e.autoplay.timeout), e.autoplay.timeout = void 0), e.autoplay.running = !1, e.emit("autoplayStop"), !0))
                },
                pause: function (e) {
                    var t = this;
                    t.autoplay.running && (t.autoplay.paused || (t.autoplay.timeout && clearTimeout(t.autoplay.timeout), t.autoplay.paused = !0, 0 === e ? (t.autoplay.paused = !1, t.autoplay.run()) : t.$wrapperEl.transitionEnd(function () {
                        t && !t.destroyed && (t.autoplay.paused = !1, t.autoplay.running ? t.autoplay.run() : t.autoplay.stop())
                    })))
                }
            },
            pe = {
                name: "autoplay",
                params: {
                    autoplay: {
                        enabled: !1,
                        delay: 3e3,
                        disableOnInteraction: !0,
                        stopOnLastSlide: !1
                    }
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        autoplay: {
                            running: !1,
                            paused: !1,
                            run: de.run.bind(e),
                            start: de.start.bind(e),
                            stop: de.stop.bind(e),
                            pause: de.pause.bind(e)
                        }
                    })
                },
                on: {
                    init: function () {
                        var e = this;
                        e.params.autoplay.enabled && e.autoplay.start()
                    },
                    beforeTransitionStart: function (e, t) {
                        var a = this;
                        a.autoplay.running && (t || !a.params.autoplay.disableOnInteraction ? a.autoplay.pause(e) : a.autoplay.stop())
                    },
                    sliderFirstMove: function () {
                        var e = this;
                        e.autoplay.running && (e.params.autoplay.disableOnInteraction ? e.autoplay.stop() : e.autoplay.pause())
                    },
                    destroy: function () {
                        var e = this;
                        e.autoplay.running && e.autoplay.stop()
                    }
                }
            },
            ce = {
                setTranslate: function () {
                    for (var e = this, t = e.slides, a = 0; a < t.length; a += 1) {
                        var i = e.slides.eq(a),
                            s = -i[0].swiperSlideOffset;
                        e.params.virtualTranslate || (s -= e.translate);
                        var r = 0;
                        e.isHorizontal() || (r = s, s = 0);
                        var n = e.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(i[0].progress), 0) : 1 + Math.min(Math.max(i[0].progress, -1), 0);
                        i.css({
                            opacity: n
                        }).transform("translate3d(" + s + "px, " + r + "px, 0px)")
                    }
                },
                setTransition: function (e) {
                    var t = this,
                        a = t.slides,
                        i = t.$wrapperEl;
                    if (a.transition(e), t.params.virtualTranslate && 0 !== e) {
                        var s = !1;
                        a.transitionEnd(function () {
                            if (!s && t && !t.destroyed) {
                                s = !0, t.animating = !1;
                                for (var e = ["webkitTransitionEnd", "transitionend"], a = 0; a < e.length; a += 1) i.trigger(e[a])
                            }
                        })
                    }
                }
            },
            ue = {
                name: "effect-fade",
                params: {
                    fadeEffect: {
                        crossFade: !1
                    }
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        fadeEffect: {
                            setTranslate: ce.setTranslate.bind(e),
                            setTransition: ce.setTransition.bind(e)
                        }
                    })
                },
                on: {
                    beforeInit: function () {
                        var e = this;
                        if ("fade" === e.params.effect) {
                            e.classNames.push(e.params.containerModifierClass + "fade");
                            var t = {
                                slidesPerView: 1,
                                slidesPerColumn: 1,
                                slidesPerGroup: 1,
                                watchSlidesProgress: !0,
                                spaceBetween: 0,
                                virtualTranslate: !0
                            };
                            l.extend(e.params, t), l.extend(e.originalParams, t)
                        }
                    },
                    setTranslate: function () {
                        var e = this;
                        "fade" === e.params.effect && e.fadeEffect.setTranslate()
                    },
                    setTransition: function (e) {
                        var t = this;
                        "fade" === t.params.effect && t.fadeEffect.setTransition(e)
                    }
                }
            },
            he = {
                setTranslate: function () {
                    var t, a = this,
                        i = a.$el,
                        s = a.$wrapperEl,
                        r = a.slides,
                        n = a.width,
                        o = a.height,
                        l = a.rtl,
                        d = a.size,
                        p = a.params.cubeEffect,
                        c = a.isHorizontal(),
                        u = a.virtual && a.params.virtual.enabled,
                        h = 0;
                    p.shadow && (c ? (0 === (t = s.find(".swiper-cube-shadow")).length && (t = e('<div class="swiper-cube-shadow"></div>'), s.append(t)), t.css({
                        height: n + "px"
                    })) : 0 === (t = i.find(".swiper-cube-shadow")).length && (t = e('<div class="swiper-cube-shadow"></div>'), i.append(t)));
                    for (var v = 0; v < r.length; v += 1) {
                        var f = r.eq(v),
                            g = v;
                        u && (g = parseInt(f.attr("data-swiper-slide-index"), 10));
                        var b = 90 * g,
                            w = Math.floor(b / 360);
                        l && (b = -b, w = Math.floor(-b / 360));
                        var y = Math.max(Math.min(f[0].progress, 1), -1),
                            x = 0,
                            T = 0,
                            E = 0;
                        g % 4 == 0 ? (x = 4 * -w * d, E = 0) : (g - 1) % 4 == 0 ? (x = 0, E = 4 * -w * d) : (g - 2) % 4 == 0 ? (x = d + 4 * w * d, E = d) : (g - 3) % 4 == 0 && (x = -d, E = 3 * d + 4 * d * w), l && (x = -x), c || (T = x, x = 0);
                        var S = "rotateX(" + (c ? 0 : -b) + "deg) rotateY(" + (c ? b : 0) + "deg) translate3d(" + x + "px, " + T + "px, " + E + "px)";
                        if (y <= 1 && y > -1 && (h = 90 * g + 90 * y, l && (h = 90 * -g - 90 * y)), f.transform(S), p.slideShadows) {
                            var C = c ? f.find(".swiper-slide-shadow-left") : f.find(".swiper-slide-shadow-top"),
                                M = c ? f.find(".swiper-slide-shadow-right") : f.find(".swiper-slide-shadow-bottom");
                            0 === C.length && (C = e('<div class="swiper-slide-shadow-' + (c ? "left" : "top") + '"></div>'), f.append(C)), 0 === M.length && (M = e('<div class="swiper-slide-shadow-' + (c ? "right" : "bottom") + '"></div>'), f.append(M)), C.length && (C[0].style.opacity = Math.max(-y, 0)), M.length && (M[0].style.opacity = Math.max(y, 0))
                        }
                    }
                    if (s.css({
                            "-webkit-transform-origin": "50% 50% -" + d / 2 + "px",
                            "-moz-transform-origin": "50% 50% -" + d / 2 + "px",
                            "-ms-transform-origin": "50% 50% -" + d / 2 + "px",
                            "transform-origin": "50% 50% -" + d / 2 + "px"
                        }), p.shadow)
                        if (c) t.transform("translate3d(0px, " + (n / 2 + p.shadowOffset) + "px, " + -n / 2 + "px) rotateX(90deg) rotateZ(0deg) scale(" + p.shadowScale + ")");
                        else {
                            var z = Math.abs(h) - 90 * Math.floor(Math.abs(h) / 90),
                                P = 1.5 - (Math.sin(2 * z * Math.PI / 360) / 2 + Math.cos(2 * z * Math.PI / 360) / 2),
                                k = p.shadowScale,
                                $ = p.shadowScale / P,
                                I = p.shadowOffset;
                            t.transform("scale3d(" + k + ", 1, " + $ + ") translate3d(0px, " + (o / 2 + I) + "px, " + -o / 2 / $ + "px) rotateX(-90deg)")
                        } var L = m.isSafari || m.isUiWebView ? -d / 2 : 0;
                    s.transform("translate3d(0px,0," + L + "px) rotateX(" + (a.isHorizontal() ? 0 : h) + "deg) rotateY(" + (a.isHorizontal() ? -h : 0) + "deg)")
                },
                setTransition: function (e) {
                    var t = this,
                        a = t.$el;
                    t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), t.params.cubeEffect.shadow && !t.isHorizontal() && a.find(".swiper-cube-shadow").transition(e)
                }
            },
            ve = {
                name: "effect-cube",
                params: {
                    cubeEffect: {
                        slideShadows: !0,
                        shadow: !0,
                        shadowOffset: 20,
                        shadowScale: .94
                    }
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        cubeEffect: {
                            setTranslate: he.setTranslate.bind(e),
                            setTransition: he.setTransition.bind(e)
                        }
                    })
                },
                on: {
                    beforeInit: function () {
                        var e = this;
                        if ("cube" === e.params.effect) {
                            e.classNames.push(e.params.containerModifierClass + "cube"), e.classNames.push(e.params.containerModifierClass + "3d");
                            var t = {
                                slidesPerView: 1,
                                slidesPerColumn: 1,
                                slidesPerGroup: 1,
                                watchSlidesProgress: !0,
                                resistanceRatio: 0,
                                spaceBetween: 0,
                                centeredSlides: !1,
                                virtualTranslate: !0
                            };
                            l.extend(e.params, t), l.extend(e.originalParams, t)
                        }
                    },
                    setTranslate: function () {
                        var e = this;
                        "cube" === e.params.effect && e.cubeEffect.setTranslate()
                    },
                    setTransition: function (e) {
                        var t = this;
                        "cube" === t.params.effect && t.cubeEffect.setTransition(e)
                    }
                }
            },
            fe = {
                setTranslate: function () {
                    for (var t = this, a = t.slides, i = 0; i < a.length; i += 1) {
                        var s = a.eq(i),
                            r = s[0].progress;
                        t.params.flipEffect.limitRotation && (r = Math.max(Math.min(s[0].progress, 1), -1));
                        var n = -180 * r,
                            o = 0,
                            l = -s[0].swiperSlideOffset,
                            d = 0;
                        if (t.isHorizontal() ? t.rtl && (n = -n) : (d = l, l = 0, o = -n, n = 0), s[0].style.zIndex = -Math.abs(Math.round(r)) + a.length, t.params.flipEffect.slideShadows) {
                            var p = t.isHorizontal() ? s.find(".swiper-slide-shadow-left") : s.find(".swiper-slide-shadow-top"),
                                c = t.isHorizontal() ? s.find(".swiper-slide-shadow-right") : s.find(".swiper-slide-shadow-bottom");
                            0 === p.length && (p = e('<div class="swiper-slide-shadow-' + (t.isHorizontal() ? "left" : "top") + '"></div>'), s.append(p)), 0 === c.length && (c = e('<div class="swiper-slide-shadow-' + (t.isHorizontal() ? "right" : "bottom") + '"></div>'), s.append(c)), p.length && (p[0].style.opacity = Math.max(-r, 0)), c.length && (c[0].style.opacity = Math.max(r, 0))
                        }
                        s.transform("translate3d(" + l + "px, " + d + "px, 0px) rotateX(" + o + "deg) rotateY(" + n + "deg)")
                    }
                },
                setTransition: function (e) {
                    var t = this,
                        a = t.slides,
                        i = t.activeIndex,
                        s = t.$wrapperEl;
                    if (a.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), t.params.virtualTranslate && 0 !== e) {
                        var r = !1;
                        a.eq(i).transitionEnd(function () {
                            if (!r && t && !t.destroyed) {
                                r = !0, t.animating = !1;
                                for (var e = ["webkitTransitionEnd", "transitionend"], a = 0; a < e.length; a += 1) s.trigger(e[a])
                            }
                        })
                    }
                }
            },
            me = {
                name: "effect-flip",
                params: {
                    flipEffect: {
                        slideShadows: !0,
                        limitRotation: !0
                    }
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        flipEffect: {
                            setTranslate: fe.setTranslate.bind(e),
                            setTransition: fe.setTransition.bind(e)
                        }
                    })
                },
                on: {
                    beforeInit: function () {
                        var e = this;
                        if ("flip" === e.params.effect) {
                            e.classNames.push(e.params.containerModifierClass + "flip"), e.classNames.push(e.params.containerModifierClass + "3d");
                            var t = {
                                slidesPerView: 1,
                                slidesPerColumn: 1,
                                slidesPerGroup: 1,
                                watchSlidesProgress: !0,
                                spaceBetween: 0,
                                virtualTranslate: !0
                            };
                            l.extend(e.params, t), l.extend(e.originalParams, t)
                        }
                    },
                    setTranslate: function () {
                        var e = this;
                        "flip" === e.params.effect && e.flipEffect.setTranslate()
                    },
                    setTransition: function (e) {
                        var t = this;
                        "flip" === t.params.effect && t.flipEffect.setTransition(e)
                    }
                }
            },
            ge = {
                setTranslate: function () {
                    for (var t = this, a = t.width, i = t.height, s = t.slides, r = t.$wrapperEl, n = t.slidesSizesGrid, o = t.params.coverflowEffect, l = t.isHorizontal(), d = t.translate, p = l ? a / 2 - d : i / 2 - d, c = l ? o.rotate : -o.rotate, u = o.depth, h = 0, v = s.length; h < v; h += 1) {
                        var f = s.eq(h),
                            g = n[h],
                            b = (p - f[0].swiperSlideOffset - g / 2) / g * o.modifier,
                            w = l ? c * b : 0,
                            y = l ? 0 : c * b,
                            x = -u * Math.abs(b),
                            T = l ? 0 : o.stretch * b,
                            E = l ? o.stretch * b : 0;
                        Math.abs(E) < .001 && (E = 0), Math.abs(T) < .001 && (T = 0), Math.abs(x) < .001 && (x = 0), Math.abs(w) < .001 && (w = 0), Math.abs(y) < .001 && (y = 0);
                        var S = "translate3d(" + E + "px," + T + "px," + x + "px)  rotateX(" + y + "deg) rotateY(" + w + "deg)";
                        if (f.transform(S), f[0].style.zIndex = 1 - Math.abs(Math.round(b)), o.slideShadows) {
                            var C = l ? f.find(".swiper-slide-shadow-left") : f.find(".swiper-slide-shadow-top"),
                                M = l ? f.find(".swiper-slide-shadow-right") : f.find(".swiper-slide-shadow-bottom");
                            0 === C.length && (C = e('<div class="swiper-slide-shadow-' + (l ? "left" : "top") + '"></div>'), f.append(C)), 0 === M.length && (M = e('<div class="swiper-slide-shadow-' + (l ? "right" : "bottom") + '"></div>'), f.append(M)), C.length && (C[0].style.opacity = b > 0 ? b : 0), M.length && (M[0].style.opacity = -b > 0 ? -b : 0)
                        }
                    }
                    m.ie && (r[0].style.perspectiveOrigin = p + "px 50%")
                },
                setTransition: function (e) {
                    this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)
                }
            },
            be = {
                name: "effect-coverflow",
                params: {
                    coverflowEffect: {
                        rotate: 50,
                        stretch: 0,
                        depth: 100,
                        modifier: 1,
                        slideShadows: !0
                    }
                },
                create: function () {
                    var e = this;
                    l.extend(e, {
                        coverflowEffect: {
                            setTranslate: ge.setTranslate.bind(e),
                            setTransition: ge.setTransition.bind(e)
                        }
                    })
                },
                on: {
                    beforeInit: function () {
                        var e = this;
                        "coverflow" === e.params.effect && (e.classNames.push(e.params.containerModifierClass + "coverflow"), e.classNames.push(e.params.containerModifierClass + "3d"), e.params.watchSlidesProgress = !0, e.originalParams.watchSlidesProgress = !0)
                    },
                    setTranslate: function () {
                        var e = this;
                        "coverflow" === e.params.effect && e.coverflowEffect.setTranslate()
                    },
                    setTransition: function (e) {
                        var t = this;
                        "coverflow" === t.params.effect && t.coverflowEffect.setTransition(e)
                    }
                }
            };
        return $.use([I, L, D, O, H, X, G, V, W, j, K, _, Q, ee, ae, se, ne, le, pe, ue, ve, me, be]), $
    });
    //# sourceMappingURL=swiper.min.js.map
    

      

      

  • 相关阅读:
    Nginx 七层反向代理
    Nginx Rewrite域名及资源重定向!(重点)
    对FPM 模块进行参数优化!
    Nginx压力测试及通用优化
    LNMP架构及应用部署!(重点)
    安装PHP解析环境!
    Mysql安装并修改字符集 ----> 基于源码包安装
    Nginx安装部署!
    python入门
    Android学习进度三
  • 原文地址:https://www.cnblogs.com/520yh/p/14120585.html
Copyright © 2011-2022 走看看