/** * swiper 3.3.1 * most modern mobile touch slider and framework with hardware accelerated transitions * * http://www.idangero.us/swiper/ * * copyright 2016, vladimir kharlampidi * the idangero.us * http://www.idangero.us/ * * licensed under mit * * released on: february 7, 2016 */ ! function() { "use strict"; function e(e) { e.fn.swiper = function(a) { var s; return e(this).each(function() { var e = new t(this, a); s || (s = e) }), s } } var a, t = function(e, s) { function r(e) { return math.floor(e) } function i() { y.autoplaytimeoutid = settimeout(function() { y.params.loop ? (y.fixloop(), y._slidenext(), y.emit("onautoplay", y)) : y.isend ? s.autoplaystoponlast ? y.stopautoplay() : (y._slideto(0), y.emit("onautoplay", y)) : (y._slidenext(), y.emit("onautoplay", y)) }, y.params.autoplay) } function n(e, t) { var s = a(e.target); if(!s.is(t)) if("string" == typeof t) s = s.parents(t); else if(t.nodetype) { var r; return s.parents().each(function(e, a) { a === t && (r = t) }), r ? t : void 0 } if(0 !== s.length) return s[0] } function o(e, a) { a = a || {}; var t = window.mutationobserver || window.webkitmutationobserver, s = new t(function(e) { e.foreach(function(e) { y.onresize(!0), y.emit("onobserverupdate", y, e) }) }); s.observe(e, { attributes: "undefined" == typeof a.attributes ? !0 : a.attributes, childlist: "undefined" == typeof a.childlist ? !0 : a.childlist, characterdata: "undefined" == typeof a.characterdata ? !0 : a.characterdata }), y.observers.push(s) } function l(e) { e.originalevent && (e = e.originalevent); var a = e.keycode || e.charcode; if(!y.params.allowswipetonext && (y.ishorizontal() && 39 === a || !y.ishorizontal() && 40 === a)) return !1; if(!y.params.allowswipetoprev && (y.ishorizontal() && 37 === a || !y.ishorizontal() && 38 === a)) return !1; if(!(e.shiftkey || e.altkey || e.ctrlkey || e.metakey || document.activeelement && document.activeelement.nodename && ("input" === document.activeelement.nodename.tolowercase() || "textarea" === document.activeelement.nodename.tolowercase()))) { if(37 === a || 39 === a || 38 === a || 40 === a) { var t = !1; if(y.container.parents(".swiper-slide").length > 0 && 0 === y.container.parents(".swiper-slide-active").length) return; var s = { left: window.pagexoffset, top: window.pageyoffset }, r = window.innerwidth, i = window.innerheight, n = y.container.offset(); y.rtl && (n.left = n.left - y.container[0].scrollleft); for(var o = [ [n.left, n.top], [n.left + y.width, n.top], [n.left, n.top + y.height], [n.left + y.width, n.top + y.height] ], l = 0; l < o.length; l++) { var p = o[l]; p[0] >= s.left && p[0] <= s.left + r && p[1] >= s.top && p[1] <= s.top + i && (t = !0) } if(!t) return } y.ishorizontal() ? ((37 === a || 39 === a) && (e.preventdefault ? e.preventdefault() : e.returnvalue = !1), (39 === a && !y.rtl || 37 === a && y.rtl) && y.slidenext(), (37 === a && !y.rtl || 39 === a && y.rtl) && y.slideprev()) : ((38 === a || 40 === a) && (e.preventdefault ? e.preventdefault() : e.returnvalue = !1), 40 === a && y.slidenext(), 38 === a && y.slideprev()) } } function p(e) { e.originalevent && (e = e.originalevent); var a = y.mousewheel.event, t = 0, s = y.rtl ? -1 : 1; if("mousewheel" === a) if(y.params.mousewheelforcetoaxis) if(y.ishorizontal()) { if(!(math.abs(e.wheeldeltax) > math.abs(e.wheeldeltay))) return; t = e.wheeldeltax * s } else { if(!(math.abs(e.wheeldeltay) > math.abs(e.wheeldeltax))) return; t = e.wheeldeltay } else t = math.abs(e.wheeldeltax) > math.abs(e.wheeldeltay) ? -e.wheeldeltax * s : -e.wheeldeltay; else if("dommousescroll" === a) t = -e.detail; else if("wheel" === a) if(y.params.mousewheelforcetoaxis) if(y.ishorizontal()) { if(!(math.abs(e.deltax) > math.abs(e.deltay))) return; t = -e.deltax * s } else { if(!(math.abs(e.deltay) > math.abs(e.deltax))) return; t = -e.deltay } else t = math.abs(e.deltax) > math.abs(e.deltay) ? -e.deltax * s : -e.deltay; if(0 !== t) { if(y.params.mousewheelinvert && (t = -t), y.params.freemode) { var r = y.getwrappertranslate() + t * y.params.mousewheelsensitivity, i = y.isbeginning, n = y.isend; if(r >= y.mintranslate() && (r = y.mintranslate()), r <= y.maxtranslate() && (r = y.maxtranslate()), y.setwrappertransition(0), y.setwrappertranslate(r), y.updateprogress(), y.updateactiveindex(), (!i && y.isbeginning || !n && y.isend) && y.updateclasses(), y.params.freemodesticky ? (cleartimeout(y.mousewheel.timeout), y.mousewheel.timeout = settimeout(function() { y.slidereset() }, 300)) : y.params.lazyloading && y.lazy && y.lazy.load(), 0 === r || r === y.maxtranslate()) return } else { if((new window.date).gettime() - y.mousewheel.lastscrolltime > 60) if(0 > t) if(y.isend && !y.params.loop || y.animating) { if(y.params.mousewheelreleaseonedges) return !0 } else y.slidenext(); else if(y.isbeginning && !y.params.loop || y.animating) { if(y.params.mousewheelreleaseonedges) return !0 } else y.slideprev(); y.mousewheel.lastscrolltime = (new window.date).gettime() } return y.params.autoplay && y.stopautoplay(), e.preventdefault ? e.preventdefault() : e.returnvalue = !1, !1 } } function d(e, t) { e = a(e); var s, r, i, n = y.rtl ? -1 : 1; s = e.attr("data-swiper-parallax") || "0", r = e.attr("data-swiper-parallax-x"), i = e.attr("data-swiper-parallax-y"), r || i ? (r = r || "0", i = i || "0") : y.ishorizontal() ? (r = s, i = "0") : (i = s, r = "0"), r = r.indexof("%") >= 0 ? parseint(r, 10) * t * n + "%" : r * t * n + "px", i = i.indexof("%") >= 0 ? parseint(i, 10) * t + "%" : i * t + "px", e.transform("translate3d(" + r + ", " + i + ",0px)") } function u(e) { return 0 !== e.indexof("on") && (e = e[0] !== e[0].touppercase() ? "on" + e[0].touppercase() + e.substring(1) : "on" + e), e } if(!(this instanceof t)) return new t(e, s); var c = { direction: "horizontal", toucheventstarget: "container", initialslide: 0, speed: 300, autoplay: !1, autoplaydisableoninteraction: !0, autoplaystoponlast: !1, iosedgeswipedetection: !1, iosedgeswipethreshold: 20, freemode: !1, freemodemomentum: !0, freemodemomentumratio: 1, freemodemomentumbounce: !0, freemodemomentumbounceratio: 1, freemodesticky: !1, freemodeminimumvelocity: .02, autoheight: !1, setwrappersize: !1, virtualtranslate: !1, effect: "slide", coverflow: { rotate: 50, stretch: 0, depth: 100, modifier: 1, slideshadows: !0 }, flip: { slideshadows: !0, limitrotation: !0 }, cube: { slideshadows: !0, shadow: !0, shadowoffset: 20, shadowscale: .94 }, fade: { crossfade: !1 }, parallax: !1, scrollbar: null, scrollbarhide: !0, scrollbardraggable: !1, scrollbarsnaponrelease: !1, keyboardcontrol: !1, mousewheelcontrol: !1, mousewheelreleaseonedges: !1, mousewheelinvert: !1, mousewheelforcetoaxis: !1, mousewheelsensitivity: 1, hashnav: !1, breakpoints: void 0, spacebetween: 0, slidesperview: 1, slidespercolumn: 1, slidespercolumnfill: "column", slidespergroup: 1, centeredslides: !1, slidesoffsetbefore: 0, slidesoffsetafter: 0, roundlengths: !1, touchratio: 1, touchangle: 45, simulatetouch: !0, shortswipes: !0, longswipes: !0, longswipesratio: .5, longswipesms: 300, followfinger: !0, onlyexternal: !1, threshold: 0, touchmovestoppropagation: !0, uniquenavelements: !0, pagination: null, paginationelement: "span", paginationclickable: !1, paginationhide: !1, paginationbulletrender: null, paginationprogressrender: null, paginationfractionrender: null, paginationcustomrender: null, paginationtype: "bullets", resistance: !0, resistanceratio: .85, nextbutton: null, prevbutton: null, watchslidesprogress: !1, watchslidesvisibility: !1, grabcursor: !1, preventclicks: !0, preventclickspropagation: !0, slidetoclickedslide: !1, lazyloading: !1, lazyloadinginprevnext: !1, lazyloadinginprevnextamount: 1, lazyloadingontransitionstart: !1, preloadimages: !0, updateonimagesready: !0, loop: !1, loopadditionalslides: 0, loopedslides: null, control: void 0, controlinverse: !1, controlby: "slide", allowswipetoprev: !0, allowswipetonext: !0, swipehandler: null, noswiping: !0, noswipingclass: "swiper-no-swiping", slideclass: "swiper-slide", slideactiveclass: "swiper-slide-active", slidevisibleclass: "swiper-slide-visible", slideduplicateclass: "swiper-slide-duplicate", slidenextclass: "swiper-slide-next", slideprevclass: "swiper-slide-prev", wrapperclass: "swiper-wrapper", bulletclass: "swiper-pagination-bullet", bulletactiveclass: "swiper-pagination-bullet-active", buttondisabledclass: "swiper-button-disabled", paginationcurrentclass: "swiper-pagination-current", paginationtotalclass: "swiper-pagination-total", paginationhiddenclass: "swiper-pagination-hidden", paginationprogressbarclass: "swiper-pagination-progressbar", observer: !1, observeparents: !1, a11y: !1, prevslidemessage: "previous slide", nextslidemessage: "next slide", firstslidemessage: "this is the first slide", lastslidemessage: "this is the last slide", paginationbulletmessage: "go to slide {{index}}", runcallbacksoninit: !0 }, m = s && s.virtualtranslate; s = s || {}; var f = {}; for(var g in s) if("object" != typeof s[g] || null === s[g] || (s[g].nodetype || s[g] === window || s[g] === document || "undefined" != typeof dom7 && s[g] instanceof dom7 || "undefined" != typeof jquery && s[g] instanceof jquery)) f[g] = s[g]; else { f[g] = {}; for(var h in s[g]) f[g][h] = s[g][h] } for(var v in c) if("undefined" == typeof s[v]) s[v] = c[v]; else if("object" == typeof s[v]) for(var w in c[v]) "undefined" == typeof s[v][w] && (s[v][w] = c[v][w]); var y = this; if(y.params = s, y.originalparams = f, y.classnames = [], "undefined" != typeof a && "undefined" != typeof dom7 && (a = dom7), ("undefined" != typeof a || (a = "undefined" == typeof dom7 ? window.dom7 || window.zepto || window.jquery : dom7)) && (y.$ = a, y.currentbreakpoint = void 0, y.getactivebreakpoint = function() { if(!y.params.breakpoints) return !1; var e, a = !1, t = []; for(e in y.params.breakpoints) y.params.breakpoints.hasownproperty(e) && t.push(e); t.sort(function(e, a) { return parseint(e, 10) > parseint(a, 10) }); for(var s = 0; s < t.length; s++) e = t[s], e >= window.innerwidth && !a && (a = e); return a || "max" }, y.setbreakpoint = function() { var e = y.getactivebreakpoint(); if(e && y.currentbreakpoint !== e) { var a = e in y.params.breakpoints ? y.params.breakpoints[e] : y.originalparams, t = y.params.loop && a.slidesperview !== y.params.slidesperview; for(var s in a) y.params[s] = a[s]; y.currentbreakpoint = e, t && y.destroyloop && y.reloop(!0) } }, y.params.breakpoints && y.setbreakpoint(), y.container = a(e), 0 !== y.container.length)) { if(y.container.length > 1) { var b = []; return y.container.each(function() { b.push(new t(this, s)) }), b } y.container[0].swiper = y, y.container.data("swiper", y), y.classnames.push("swiper-container-" + y.params.direction), y.params.freemode && y.classnames.push("swiper-container-free-mode"), y.support.flexbox || (y.classnames.push("swiper-container-no-flexbox"), y.params.slidespercolumn = 1), y.params.autoheight && y.classnames.push("swiper-container-autoheight"), (y.params.parallax || y.params.watchslidesvisibility) && (y.params.watchslidesprogress = !0), ["cube", "coverflow", "flip"].indexof(y.params.effect) >= 0 && (y.support.transforms3d ? (y.params.watchslidesprogress = !0, y.classnames.push("swiper-container-3d")) : y.params.effect = "slide"), "slide" !== y.params.effect && y.classnames.push("swiper-container-" + y.params.effect), "cube" === y.params.effect && (y.params.resistanceratio = 0, y.params.slidesperview = 1, y.params.slidespercolumn = 1, y.params.slidespergroup = 1, y.params.centeredslides = !1, y.params.spacebetween = 0, y.params.virtualtranslate = !0, y.params.setwrappersize = !1), ("fade" === y.params.effect || "flip" === y.params.effect) && (y.params.slidesperview = 1, y.params.slidespercolumn = 1, y.params.slidespergroup = 1, y.params.watchslidesprogress = !0, y.params.spacebetween = 0, y.params.setwrappersize = !1, "undefined" == typeof m && (y.params.virtualtranslate = !0)), y.params.grabcursor && y.support.touch && (y.params.grabcursor = !1), y.wrapper = y.container.children("." + y.params.wrapperclass), y.params.pagination && (y.paginationcontainer = a(y.params.pagination), y.params.uniquenavelements && "string" == typeof y.params.pagination && y.paginationcontainer.length > 1 && 1 === y.container.find(y.params.pagination).length && (y.paginationcontainer = y.container.find(y.params.pagination)), "bullets" === y.params.paginationtype && y.params.paginationclickable ? y.paginationcontainer.addclass("swiper-pagination-clickable") : y.params.paginationclickable = !1, y.paginationcontainer.addclass("swiper-pagination-" + y.params.paginationtype)), (y.params.nextbutton || y.params.prevbutton) && (y.params.nextbutton && (y.nextbutton = a(y.params.nextbutton), y.params.uniquenavelements && "string" == typeof y.params.nextbutton && y.nextbutton.length > 1 && 1 === y.container.find(y.params.nextbutton).length && (y.nextbutton = y.container.find(y.params.nextbutton))), y.params.prevbutton && (y.prevbutton = a(y.params.prevbutton), y.params.uniquenavelements && "string" == typeof y.params.prevbutton && y.prevbutton.length > 1 && 1 === y.container.find(y.params.prevbutton).length && (y.prevbutton = y.container.find(y.params.prevbutton)))), y.ishorizontal = function() { return "horizontal" === y.params.direction }, y.rtl = y.ishorizontal() && ("rtl" === y.container[0].dir.tolowercase() || "rtl" === y.container.css("direction")), y.rtl && y.classnames.push("swiper-container-rtl"), y.rtl && (y.wrongrtl = "-webkit-box" === y.wrapper.css("display")), y.params.slidespercolumn > 1 && y.classnames.push("swiper-container-multirow"), y.device.android && y.classnames.push("swiper-container-android"), y.container.addclass(y.classnames.join(" ")), y.translate = 0, y.progress = 0, y.velocity = 0, y.lockswipetonext = function() { y.params.allowswipetonext = !1 }, y.lockswipetoprev = function() { y.params.allowswipetoprev = !1 }, y.lockswipes = function() { y.params.allowswipetonext = y.params.allowswipetoprev = !1 }, y.unlockswipetonext = function() { y.params.allowswipetonext = !0 }, y.unlockswipetoprev = function() { y.params.allowswipetoprev = !0 }, y.unlockswipes = function() { y.params.allowswipetonext = y.params.allowswipetoprev = !0 }, y.params.grabcursor && (y.container[0].style.cursor = "move", y.container[0].style.cursor = "-webkit-grab", y.container[0].style.cursor = "-moz-grab", y.container[0].style.cursor = "grab"), y.imagestoload = [], y.imagesloaded = 0, y.loadimage = function(e, a, t, s, r) { function i() { r && r() } var n; e.complete && s ? i() : a ? (n = new window.image, n.onload = i, n.onerror = i, t && (n.srcset = t), a && (n.src = a)) : i() }, y.preloadimages = function() { function e() { "undefined" != typeof y && null !== y && (void 0 !== y.imagesloaded && y.imagesloaded++, y.imagesloaded === y.imagestoload.length && (y.params.updateonimagesready && y.update(), y.emit("onimagesready", y))) } y.imagestoload = y.container.find("img"); for(var a = 0; a < y.imagestoload.length; a++) y.loadimage(y.imagestoload[a], y.imagestoload[a].currentsrc || y.imagestoload[a].getattribute("src"), y.imagestoload[a].srcset || y.imagestoload[a].getattribute("srcset"), !0, e) }, y.autoplaytimeoutid = void 0, y.autoplaying = !1, y.autoplaypaused = !1, y.startautoplay = function() { return "undefined" != typeof y.autoplaytimeoutid ? !1 : y.params.autoplay ? y.autoplaying ? !1 : (y.autoplaying = !0, y.emit("onautoplaystart", y), void i()) : !1 }, y.stopautoplay = function(e) { y.autoplaytimeoutid && (y.autoplaytimeoutid && cleartimeout(y.autoplaytimeoutid), y.autoplaying = !1, y.autoplaytimeoutid = void 0, y.emit("onautoplaystop", y)) }, y.pauseautoplay = function(e) { y.autoplaypaused || (y.autoplaytimeoutid && cleartimeout(y.autoplaytimeoutid), y.autoplaypaused = !0, 0 === e ? (y.autoplaypaused = !1, i()) : y.wrapper.transitionend(function() { y && (y.autoplaypaused = !1, y.autoplaying ? i() : y.stopautoplay()) })) }, y.mintranslate = function() { return -y.snapgrid[0] }, y.maxtranslate = function() { return -y.snapgrid[y.snapgrid.length - 1] }, y.updateautoheight = function() { var e = y.slides.eq(y.activeindex)[0]; if("undefined" != typeof e) { var a = e.offsetheight; a && y.wrapper.css("height", a + "px") } }, y.updatecontainersize = function() { var e, a; e = "undefined" != typeof y.params.width ? y.params.width : y.container[0].clientwidth, a = "undefined" != typeof y.params.height ? y.params.height : y.container[0].clientheight, 0 === e && y.ishorizontal() || 0 === a && !y.ishorizontal() || (e = e - parseint(y.container.css("padding-left"), 10) - parseint(y.container.css("padding-right"), 10), a = a - parseint(y.container.css("padding-top"), 10) - parseint(y.container.css("padding-bottom"), 10), y.width = e, y.height = a, y.size = y.ishorizontal() ? y.width : y.height) }, y.updateslidessize = function() { y.slides = y.wrapper.children("." + y.params.slideclass), y.snapgrid = [], y.slidesgrid = [], y.slidessizesgrid = []; var e, a = y.params.spacebetween, t = -y.params.slidesoffsetbefore, s = 0, i = 0; if("undefined" != typeof y.size) { "string" == typeof a && a.indexof("%") >= 0 && (a = parsefloat(a.replace("%", "")) / 100 * y.size), y.virtualsize = -a, y.rtl ? y.slides.css({ marginleft: "", margintop: "" }) : y.slides.css({ marginright: "", marginbottom: "" }); var n; y.params.slidespercolumn > 1 && (n = math.floor(y.slides.length / y.params.slidespercolumn) === y.slides.length / y.params.slidespercolumn ? y.slides.length : math.ceil(y.slides.length / y.params.slidespercolumn) * y.params.slidespercolumn, "auto" !== y.params.slidesperview && "row" === y.params.slidespercolumnfill && (n = math.max(n, y.params.slidesperview * y.params.slidespercolumn))); var o, l = y.params.slidespercolumn, p = n / l, d = p - (y.params.slidespercolumn * p - y.slides.length); for(e = 0; e < y.slides.length; e++) { o = 0; var u = y.slides.eq(e); if(y.params.slidespercolumn > 1) { var c, m, f; "column" === y.params.slidespercolumnfill ? (m = math.floor(e / l), f = e - m * l, (m > d || m === d && f === l - 1) && ++f >= l && (f = 0, m++), c = m + f * n / l, u.css({ "-webkit-box-ordinal-group": c, "-moz-box-ordinal-group": c, "-ms-flex-order": c, "-webkit-order": c, order: c })) : (f = math.floor(e / p), m = e - f * p), u.css({ "margin-top": 0 !== f && y.params.spacebetween && y.params.spacebetween + "px" }).attr("data-swiper-column", m).attr("data-swiper-row", f) } "none" !== u.css("display") && ("auto" === y.params.slidesperview ? (o = y.ishorizontal() ? u.outerwidth(!0) : u.outerheight(!0), y.params.roundlengths && (o = r(o))) : (o = (y.size - (y.params.slidesperview - 1) * a) / y.params.slidesperview, y.params.roundlengths && (o = r(o)), y.ishorizontal() ? y.slides[e].style.width = o + "px" : y.slides[e].style.height = o + "px"), y.slides[e].swiperslidesize = o, y.slidessizesgrid.push(o), y.params.centeredslides ? (t = t + o / 2 + s / 2 + a, 0 === e && (t = t - y.size / 2 - a), math.abs(t) < .001 && (t = 0), i % y.params.slidespergroup === 0 && y.snapgrid.push(t), y.slidesgrid.push(t)) : (i % y.params.slidespergroup === 0 && y.snapgrid.push(t), y.slidesgrid.push(t), t = t + o + a), y.virtualsize += o + a, s = o, i++) } y.virtualsize = math.max(y.virtualsize, y.size) + y.params.slidesoffsetafter; var g; if(y.rtl && y.wrongrtl && ("slide" === y.params.effect || "coverflow" === y.params.effect) && y.wrapper.css({ width: y.virtualsize + y.params.spacebetween + "px" }), (!y.support.flexbox || y.params.setwrappersize) && (y.ishorizontal() ? y.wrapper.css({ width: y.virtualsize + y.params.spacebetween + "px" }) : y.wrapper.css({ height: y.virtualsize + y.params.spacebetween + "px" })), y.params.slidespercolumn > 1 && (y.virtualsize = (o + y.params.spacebetween) * n, y.virtualsize = math.ceil(y.virtualsize / y.params.slidespercolumn) - y.params.spacebetween, y.wrapper.css({ width: y.virtualsize + y.params.spacebetween + "px" }), y.params.centeredslides)) { for(g = [], e = 0; e < y.snapgrid.length; e++) y.snapgrid[e] < y.virtualsize + y.snapgrid[0] && g.push(y.snapgrid[e]); y.snapgrid = g } if(!y.params.centeredslides) { for(g = [], e = 0; e < y.snapgrid.length; e++) y.snapgrid[e] <= y.virtualsize - y.size && g.push(y.snapgrid[e]); y.snapgrid = g, math.floor(y.virtualsize - y.size) - math.floor(y.snapgrid[y.snapgrid.length - 1]) > 1 && y.snapgrid.push(y.virtualsize - y.size) } 0 === y.snapgrid.length && (y.snapgrid = [0]), 0 !== y.params.spacebetween && (y.ishorizontal() ? y.rtl ? y.slides.css({ marginleft: a + "px" }) : y.slides.css({ marginright: a + "px" }) : y.slides.css({ marginbottom: a + "px" })), y.params.watchslidesprogress && y.updateslidesoffset() } }, y.updateslidesoffset = function() { for(var e = 0; e < y.slides.length; e++) y.slides[e].swiperslideoffset = y.ishorizontal() ? y.slides[e].offsetleft : y.slides[e].offsettop }, y.updateslidesprogress = function(e) { if("undefined" == typeof e && (e = y.translate || 0), 0 !== y.slides.length) { "undefined" == typeof y.slides[0].swiperslideoffset && y.updateslidesoffset(); var a = -e; y.rtl && (a = e), y.slides.removeclass(y.params.slidevisibleclass); for(var t = 0; t < y.slides.length; t++) { var s = y.slides[t], r = (a - s.swiperslideoffset) / (s.swiperslidesize + y.params.spacebetween); if(y.params.watchslidesvisibility) { var i = -(a - s.swiperslideoffset), n = i + y.slidessizesgrid[t], o = i >= 0 && i < y.size || n > 0 && n <= y.size || 0 >= i && n >= y.size; o && y.slides.eq(t).addclass(y.params.slidevisibleclass) } s.progress = y.rtl ? -r : r } } }, y.updateprogress = function(e) { "undefined" == typeof e && (e = y.translate || 0); var a = y.maxtranslate() - y.mintranslate(), t = y.isbeginning, s = y.isend; 0 === a ? (y.progress = 0, y.isbeginning = y.isend = !0) : (y.progress = (e - y.mintranslate()) / a, y.isbeginning = y.progress <= 0, y.isend = y.progress >= 1), y.isbeginning && !t && y.emit("onreachbeginning", y), y.isend && !s && y.emit("onreachend", y), y.params.watchslidesprogress && y.updateslidesprogress(e), y.emit("onprogress", y, y.progress) }, y.updateactiveindex = function() { var e, a, t, s = y.rtl ? y.translate : -y.translate; for(a = 0; a < y.slidesgrid.length; a++) "undefined" != typeof y.slidesgrid[a + 1] ? s >= y.slidesgrid[a] && s < y.slidesgrid[a + 1] - (y.slidesgrid[a + 1] - y.slidesgrid[a]) / 2 ? e = a : s >= y.slidesgrid[a] && s < y.slidesgrid[a + 1] && (e = a + 1) : s >= y.slidesgrid[a] && (e = a); (0 > e || "undefined" == typeof e) && (e = 0), t = math.floor(e / y.params.slidespergroup), t >= y.snapgrid.length && (t = y.snapgrid.length - 1), e !== y.activeindex && (y.snapindex = t, y.previousindex = y.activeindex, y.activeindex = e, y.updateclasses()) }, y.updateclasses = function() { y.slides.removeclass(y.params.slideactiveclass + " " + y.params.slidenextclass + " " + y.params.slideprevclass); var e = y.slides.eq(y.activeindex); e.addclass(y.params.slideactiveclass); var t = e.next("." + y.params.slideclass).addclass(y.params.slidenextclass); y.params.loop && 0 === t.length && y.slides.eq(0).addclass(y.params.slidenextclass); var s = e.prev("." + y.params.slideclass).addclass(y.params.slideprevclass); if(y.params.loop && 0 === s.length && y.slides.eq(-1).addclass(y.params.slideprevclass), y.paginationcontainer && y.paginationcontainer.length > 0) { var r, i = y.params.loop ? math.ceil((y.slides.length - 2 * y.loopedslides) / y.params.slidespergroup) : y.snapgrid.length; if(y.params.loop ? (r = math.ceil((y.activeindex - y.loopedslides) / y.params.slidespergroup), r > y.slides.length - 1 - 2 * y.loopedslides && (r -= y.slides.length - 2 * y.loopedslides), r > i - 1 && (r -= i), 0 > r && "bullets" !== y.params.paginationtype && (r = i + r)) : r = "undefined" != typeof y.snapindex ? y.snapindex : y.activeindex || 0, "bullets" === y.params.paginationtype && y.bullets && y.bullets.length > 0 && (y.bullets.removeclass(y.params.bulletactiveclass), y.paginationcontainer.length > 1 ? y.bullets.each(function() { a(this).index() === r && a(this).addclass(y.params.bulletactiveclass) }) : y.bullets.eq(r).addclass(y.params.bulletactiveclass)), "fraction" === y.params.paginationtype && (y.paginationcontainer.find("." + y.params.paginationcurrentclass).text(r + 1), y.paginationcontainer.find("." + y.params.paginationtotalclass).text(i)), "progress" === y.params.paginationtype) { var n = (r + 1) / i, o = n, l = 1; y.ishorizontal() || (l = n, o = 1), y.paginationcontainer.find("." + y.params.paginationprogressbarclass).transform("translate3d(0,0,0) scalex(" + o + ") scaley(" + l + ")").transition(y.params.speed) } "custom" === y.params.paginationtype && y.params.paginationcustomrender && (y.paginationcontainer.html(y.params.paginationcustomrender(y, r + 1, i)), y.emit("onpaginationrendered", y, y.paginationcontainer[0])) } y.params.loop || (y.params.prevbutton && y.prevbutton && y.prevbutton.length > 0 && (y.isbeginning ? (y.prevbutton.addclass(y.params.buttondisabledclass), y.params.a11y && y.a11y && y.a11y.disable(y.prevbutton)) : (y.prevbutton.removeclass(y.params.buttondisabledclass), y.params.a11y && y.a11y && y.a11y.enable(y.prevbutton))), y.params.nextbutton && y.nextbutton && y.nextbutton.length > 0 && (y.isend ? (y.nextbutton.addclass(y.params.buttondisabledclass), y.params.a11y && y.a11y && y.a11y.disable(y.nextbutton)) : (y.nextbutton.removeclass(y.params.buttondisabledclass), y.params.a11y && y.a11y && y.a11y.enable(y.nextbutton)))) }, y.updatepagination = function() { if(y.params.pagination && y.paginationcontainer && y.paginationcontainer.length > 0) { var e = ""; if("bullets" === y.params.paginationtype) { for(var a = y.params.loop ? math.ceil((y.slides.length - 2 * y.loopedslides) / y.params.slidespergroup) : y.snapgrid.length, t = 0; a > t; t++) e += y.params.paginationbulletrender ? y.params.paginationbulletrender(t, y.params.bulletclass) : "<" + y.params.paginationelement + ' class="' + y.params.bulletclass + '">"; y.paginationcontainer.html(e), y.bullets = y.paginationcontainer.find("." + y.params.bulletclass), y.params.paginationclickable && y.params.a11y && y.a11y && y.a11y.initpagination() } "fraction" === y.params.paginationtype && (e = y.params.paginationfractionrender ? y.params.paginationfractionrender(y, y.params.paginationcurrentclass, y.params.paginationtotalclass) : ' / ', y.paginationcontainer.html(e)), "progress" === y.params.paginationtype && (e = y.params.paginationprogressrender ? y.params.paginationprogressrender(y, y.params.paginationprogressbarclass) : '', y.paginationcontainer.html(e)), "custom" !== y.params.paginationtype && y.emit("onpaginationrendered", y, y.paginationcontainer[0]) } }, y.update = function(e) { function a() { s = math.min(math.max(y.translate, y.maxtranslate()), y.mintranslate()), y.setwrappertranslate(s), y.updateactiveindex(), y.updateclasses() } if(y.updatecontainersize(), y.updateslidessize(), y.updateprogress(), y.updatepagination(), y.updateclasses(), y.params.scrollbar && y.scrollbar && y.scrollbar.set(), e) { var t, s; y.controller && y.controller.spline && (y.controller.spline = void 0), y.params.freemode ? (a(), y.params.autoheight && y.updateautoheight()) : (t = ("auto" === y.params.slidesperview || y.params.slidesperview > 1) && y.isend && !y.params.centeredslides ? y.slideto(y.slides.length - 1, 0, !1, !0) : y.slideto(y.activeindex, 0, !1, !0), t || a()) } else y.params.autoheight && y.updateautoheight() }, y.onresize = function(e) { y.params.breakpoints && y.setbreakpoint(); var a = y.params.allowswipetoprev, t = y.params.allowswipetonext; y.params.allowswipetoprev = y.params.allowswipetonext = !0, y.updatecontainersize(), y.updateslidessize(), ("auto" === y.params.slidesperview || y.params.freemode || e) && y.updatepagination(), y.params.scrollbar && y.scrollbar && y.scrollbar.set(), y.controller && y.controller.spline && (y.controller.spline = void 0); var s = !1; if(y.params.freemode) { var r = math.min(math.max(y.translate, y.maxtranslate()), y.mintranslate()); y.setwrappertranslate(r), y.updateactiveindex(), y.updateclasses(), y.params.autoheight && y.updateautoheight() } else y.updateclasses(), s = ("auto" === y.params.slidesperview || y.params.slidesperview > 1) && y.isend && !y.params.centeredslides ? y.slideto(y.slides.length - 1, 0, !1, !0) : y.slideto(y.activeindex, 0, !1, !0); y.params.lazyloading && !s && y.lazy && y.lazy.load(), y.params.allowswipetoprev = a, y.params.allowswipetonext = t }; var x = ["mousedown", "mousemove", "mouseup"]; window.navigator.pointerenabled ? x = ["pointerdown", "pointermove", "pointerup"] : window.navigator.mspointerenabled && (x = ["mspointerdown", "mspointermove", "mspointerup"]), y.touchevents = { start: y.support.touch || !y.params.simulatetouch ? "touchstart" : x[0], move: y.support.touch || !y.params.simulatetouch ? "touchmove" : x[1], end: y.support.touch || !y.params.simulatetouch ? "touchend" : x[2] }, (window.navigator.pointerenabled || window.navigator.mspointerenabled) && ("container" === y.params.toucheventstarget ? y.container : y.wrapper).addclass("swiper-wp8-" + y.params.direction), y.initevents = function(e) { var a = e ? "off" : "on", t = e ? "removeeventlistener" : "addeventlistener", r = "container" === y.params.toucheventstarget ? y.container[0] : y.wrapper[0], i = y.support.touch ? r : document, n = y.params.nested ? !0 : !1; y.browser.ie ? (r[t](y.touchevents.start, y.ontouchstart, !1), i[t](y.touchevents.move, y.ontouchmove, n), i[t](y.touchevents.end, y.ontouchend, !1)) : (y.support.touch && (r[t](y.touchevents.start, y.ontouchstart, !1), r[t](y.touchevents.move, y.ontouchmove, n), r[t](y.touchevents.end, y.ontouchend, !1)), !s.simulatetouch || y.device.ios || y.device.android || (r[t]("mousedown", y.ontouchstart, !1), document[t]("mousemove", y.ontouchmove, n), document[t]("mouseup", y.ontouchend, !1))), window[t]("resize", y.onresize), y.params.nextbutton && y.nextbutton && y.nextbutton.length > 0 && (y.nextbutton[a]("click", y.onclicknext), y.params.a11y && y.a11y && y.nextbutton[a]("keydown", y.a11y.onenterkey)), y.params.prevbutton && y.prevbutton && y.prevbutton.length > 0 && (y.prevbutton[a]("click", y.onclickprev), y.params.a11y && y.a11y && y.prevbutton[a]("keydown", y.a11y.onenterkey)), y.params.pagination && y.params.paginationclickable && (y.paginationcontainer[a]("click", "." + y.params.bulletclass, y.onclickindex), y.params.a11y && y.a11y && y.paginationcontainer[a]("keydown", "." + y.params.bulletclass, y.a11y.onenterkey)), (y.params.preventclicks || y.params.preventclickspropagation) && r[t]("click", y.preventclicks, !0) }, y.attachevents = function() { y.initevents() }, y.detachevents = function() { y.initevents(!0) }, y.allowclick = !0, y.preventclicks = function(e) { y.allowclick || (y.params.preventclicks && e.preventdefault(), y.params.preventclickspropagation && y.animating && (e.stoppropagation(), e.stopimmediatepropagation())) }, y.onclicknext = function(e) { e.preventdefault(), (!y.isend || y.params.loop) && y.slidenext() }, y.onclickprev = function(e) { e.preventdefault(), (!y.isbeginning || y.params.loop) && y.slideprev() }, y.onclickindex = function(e) { e.preventdefault(); var t = a(this).index() * y.params.slidespergroup; y.params.loop && (t += y.loopedslides), y.slideto(t) }, y.updateclickedslide = function(e) { var t = n(e, "." + y.params.slideclass), s = !1; if(t) for(var r = 0; r < y.slides.length; r++) y.slides[r] === t && (s = !0); if(!t || !s) return y.clickedslide = void 0, void(y.clickedindex = void 0); if(y.clickedslide = t, y.clickedindex = a(t).index(), y.params.slidetoclickedslide && void 0 !== y.clickedindex && y.clickedindex !== y.activeindex) { var i, o = y.clickedindex; if(y.params.loop) { if(y.animating) return; i = a(y.clickedslide).attr("data-swiper-slide-index"), y.params.centeredslides ? o < y.loopedslides - y.params.slidesperview / 2 || o > y.slides.length - y.loopedslides + y.params.slidesperview / 2 ? (y.fixloop(), o = y.wrapper.children("." + y.params.slideclass + '[data-swiper-slide-index="' + i + '"]:not(.swiper-slide-duplicate)').eq(0).index(), settimeout(function() { y.slideto(o) }, 0)) : y.slideto(o) : o > y.slides.length - y.params.slidesperview ? (y.fixloop(), o = y.wrapper.children("." + y.params.slideclass + '[data-swiper-slide-index="' + i + '"]:not(.swiper-slide-duplicate)').eq(0).index(), settimeout(function() { y.slideto(o) }, 0)) : y.slideto(o) } else y.slideto(o) } }; var t, s, c, z, m, p, i, k, e, b, d = "input, select, textarea, button", l = date.now(), h = []; y.animating = !1, y.touches = { startx: 0, starty: 0, currentx: 0, currenty: 0, diff: 0 }; var g, a; if(y.ontouchstart = function(e) { if(e.originalevent && (e = e.originalevent), g = "touchstart" === e.type, g || !("which" in e) || 3 !== e.which) { if(y.params.noswiping && n(e, "." + y.params.noswipingclass)) return void(y.allowclick = !0); if(!y.params.swipehandler || n(e, y.params.swipehandler)) { var t = y.touches.currentx = "touchstart" === e.type ? e.targettouches[0].pagex : e.pagex, s = y.touches.currenty = "touchstart" === e.type ? e.targettouches[0].pagey : e.pagey; if(!(y.device.ios && y.params.iosedgeswipedetection && t <= y.params.iosedgeswipethreshold)) { if(t = !0, s = !1, c = !0, m = void 0, a = void 0, y.touches.startx = t, y.touches.starty = s, z = date.now(), y.allowclick = !0, y.updatecontainersize(), y.swipedirection = void 0, y.params.threshold > 0 && (k = !1), "touchstart" !== e.type) { var r = !0; a(e.target).is(d) && (r = !1), document.activeelement && a(document.activeelement).is(d) && document.activeelement.blur(), r && e.preventdefault() } y.emit("ontouchstart", y, e) } } } }, y.ontouchmove = function(e) { if(e.originalevent && (e = e.originalevent), !g || "mousemove" !== e.type) { if(e.preventedbynestedswiper) return y.touches.startx = "touchmove" === e.type ? e.targettouches[0].pagex : e.pagex, void(y.touches.starty = "touchmove" === e.type ? e.targettouches[0].pagey : e.pagey); if(y.params.onlyexternal) return y.allowclick = !1, void(t && (y.touches.startx = y.touches.currentx = "touchmove" === e.type ? e.targettouches[0].pagex : e.pagex, y.touches.starty = y.touches.currenty = "touchmove" === e.type ? e.targettouches[0].pagey : e.pagey, z = date.now())); if(g && document.activeelement && e.target === document.activeelement && a(e.target).is(d)) return s = !0, void(y.allowclick = !1); if(c && y.emit("ontouchmove", y, e), !(e.targettouches && e.targettouches.length > 1)) { if(y.touches.currentx = "touchmove" === e.type ? e.targettouches[0].pagex : e.pagex, y.touches.currenty = "touchmove" === e.type ? e.targettouches[0].pagey : e.pagey, "undefined" == typeof m) { var t = 180 * math.atan2(math.abs(y.touches.currenty - y.touches.starty), math.abs(y.touches.currentx - y.touches.startx)) / math.pi; m = y.ishorizontal() ? t > y.params.touchangle : 90 - t > y.params.touchangle } if(m && y.emit("ontouchmoveopposite", y, e), "undefined" == typeof a && y.browser.ietouch && (y.touches.currentx !== y.touches.startx || y.touches.currenty !== y.touches.starty) && (a = !0), t) { if(m) return void(t = !1); if(a || !y.browser.ietouch) { y.allowclick = !1, y.emit("onslidermove", y, e), e.preventdefault(), y.params.touchmovestoppropagation && !y.params.nested && e.stoppropagation(), s || (s.loop && y.fixloop(), i = y.getwrappertranslate(), y.setwrappertransition(0), y.animating && y.wrapper.trigger("webkittransitionend transitionend otransitionend mstransitionend mstransitionend"), y.params.autoplay && y.autoplaying && (y.params.autoplaydisableoninteraction ? y.stopautoplay() : y.pauseautoplay()), b = !1, y.params.grabcursor && (y.container[0].style.cursor = "move", y.container[0].style.cursor = "-webkit-grabbing", y.container[0].style.cursor = "-moz-grabbin", y.container[0].style.cursor = "grabbing")), s = !0; var r = y.touches.diff = y.ishorizontal() ? y.touches.currentx - y.touches.startx : y.touches.currenty - y.touches.starty; r *= y.params.touchratio, y.rtl && (r = -r), y.swipedirection = r > 0 ? "prev" : "next", p = r + i; var i = !0; if(r > 0 && p > y.mintranslate() ? (i = !1, y.params.resistance && (p = y.mintranslate() - 1 + math.pow(-y.mintranslate() + i + r, y.params.resistanceratio))) : 0 > r && p < y.maxtranslate() && (i = !1, y.params.resistance && (p = y.maxtranslate() + 1 - math.pow(y.maxtranslate() - i - r, y.params.resistanceratio))), i && (e.preventedbynestedswiper = !0), !y.params.allowswipetonext && "next" === y.swipedirection && i > p && (p = i), !y.params.allowswipetoprev && "prev" === y.swipedirection && p > i && (p = i), y.params.followfinger) { if(y.params.threshold > 0) { if(!(math.abs(r) > y.params.threshold || k)) return void(p = i); if(!k) return k = !0, y.touches.startx = y.touches.currentx, y.touches.starty = y.touches.currenty, p = i, void(y.touches.diff = y.ishorizontal() ? y.touches.currentx - y.touches.startx : y.touches.currenty - y.touches.starty) }(y.params.freemode || y.params.watchslidesprogress) && y.updateactiveindex(), y.params.freemode && (0 === h.length && h.push({ position: y.touches[y.ishorizontal() ? "startx" : "starty"], time: z }), h.push({ position: y.touches[y.ishorizontal() ? "currentx" : "currenty"], time: (new window.date).gettime() })), y.updateprogress(p), y.setwrappertranslate(p) } } } } } }, y.ontouchend = function(e) { if(e.originalevent && (e = e.originalevent), c && y.emit("ontouchend", y, e), c = !1, t) { y.params.grabcursor && s && t && (y.container[0].style.cursor = "move", y.container[0].style.cursor = "-webkit-grab", y.container[0].style.cursor = "-moz-grab", y.container[0].style.cursor = "grab"); var t = date.now(), s = t - z; if(y.allowclick && (y.updateclickedslide(e), y.emit("ontap", y, e), 300 > s && t - l > 300 && (e && cleartimeout(e), e = settimeout(function() { y && (y.params.paginationhide && y.paginationcontainer.length > 0 && !a(e.target).hasclass(y.params.bulletclass) && y.paginationcontainer.toggleclass(y.params.paginationhiddenclass), y.emit("onclick", y, e)) }, 300)), 300 > s && 300 > t - l && (e && cleartimeout(e), y.emit("ondoubletap", y, e))), l = date.now(), settimeout(function() { y && (y.allowclick = !0) }, 0), !t || !s || !y.swipedirection || 0 === y.touches.diff || p === i) return void(t = s = !1); t = s = !1; var r; if(r = y.params.followfinger ? y.rtl ? y.translate : -y.translate : -p, y.params.freemode) { if(r < -y.mintranslate()) return void y.slideto(y.activeindex); if(r > -y.maxtranslate()) return void(y.slides.length < y.snapgrid.length ? y.slideto(y.snapgrid.length - 1) : y.slideto(y.slides.length - 1)); if(y.params.freemodemomentum) { if(h.length > 1) { var i = h.pop(), n = h.pop(), o = i.position - n.position, l = i.time - n.time; y.velocity = o / l, y.velocity = y.velocity / 2, math.abs(y.velocity) < y.params.freemodeminimumvelocity && (y.velocity = 0), (l > 150 || (new window.date).gettime() - i.time > 300) && (y.velocity = 0) } else y.velocity = 0; h.length = 0; var p = 1e3 * y.params.freemodemomentumratio, d = y.velocity * p, u = y.translate + d; y.rtl && (u = -u); var c, m = !1, f = 20 * math.abs(y.velocity) * y.params.freemodemomentumbounceratio; if(u < y.maxtranslate()) y.params.freemodemomentumbounce ? (u + y.maxtranslate() < -f && (u = y.maxtranslate() - f), c = y.maxtranslate(), m = !0, b = !0) : u = y.maxtranslate(); else if(u > y.mintranslate()) y.params.freemodemomentumbounce ? (u - y.mintranslate() > f && (u = y.mintranslate() + f), c = y.mintranslate(), m = !0, b = !0) : u = y.mintranslate(); else if(y.params.freemodesticky) { var g, h = 0; for(h = 0; h < y.snapgrid.length; h += 1) if(y.snapgrid[h] > -u) { g = h; break } u = math.abs(y.snapgrid[g] - u) < math.abs(y.snapgrid[g - 1] - u) || "next" === y.swipedirection ? y.snapgrid[g] : y.snapgrid[g - 1], y.rtl || (u = -u) } if(0 !== y.velocity) p = y.rtl ? math.abs((-u - y.translate) / y.velocity) : math.abs((u - y.translate) / y.velocity); else if(y.params.freemodesticky) return void y.slidereset(); y.params.freemodemomentumbounce && m ? (y.updateprogress(c), y.setwrappertransition(p), y.setwrappertranslate(u), y.ontransitionstart(), y.animating = !0, y.wrapper.transitionend(function() { y && b && (y.emit("onmomentumbounce", y), y.setwrappertransition(y.params.speed), y.setwrappertranslate(c), y.wrapper.transitionend(function() { y && y.ontransitionend() })) })) : y.velocity ? (y.updateprogress(u), y.setwrappertransition(p), y.setwrappertranslate(u), y.ontransitionstart(), y.animating || (y.animating = !0, y.wrapper.transitionend(function() { y && y.ontransitionend() }))) : y.updateprogress(u), y.updateactiveindex() } return void((!y.params.freemodemomentum || s >= y.params.longswipesms) && (y.updateprogress(), y.updateactiveindex())) } var v, w = 0, b = y.slidessizesgrid[0]; for(v = 0; v < y.slidesgrid.length; v += y.params.slidespergroup) "undefined" != typeof y.slidesgrid[v + y.params.slidespergroup] ? r >= y.slidesgrid[v] && r < y.slidesgrid[v + y.params.slidespergroup] && (w = v, b = y.slidesgrid[v + y.params.slidespergroup] - y.slidesgrid[v]) : r >= y.slidesgrid[v] && (w = v, b = y.slidesgrid[y.slidesgrid.length - 1] - y.slidesgrid[y.slidesgrid.length - 2]); var x = (r - y.slidesgrid[w]) / b; if(s > y.params.longswipesms) { if(!y.params.longswipes) return void y.slideto(y.activeindex); "next" === y.swipedirection && (x >= y.params.longswipesratio ? y.slideto(w + y.params.slidespergroup) : y.slideto(w)), "prev" === y.swipedirection && (x > 1 - y.params.longswipesratio ? y.slideto(w + y.params.slidespergroup) : y.slideto(w)) } else { if(!y.params.shortswipes) return void y.slideto(y.activeindex); "next" === y.swipedirection && y.slideto(w + y.params.slidespergroup), "prev" === y.swipedirection && y.slideto(w) } } }, y._slideto = function(e, a) { return y.slideto(e, a, !0, !0) }, y.slideto = function(e, a, t, s) { "undefined" == typeof t && (t = !0), "undefined" == typeof e && (e = 0), 0 > e && (e = 0), y.snapindex = math.floor(e / y.params.slidespergroup), y.snapindex >= y.snapgrid.length && (y.snapindex = y.snapgrid.length - 1); var r = -y.snapgrid[y.snapindex]; y.params.autoplay && y.autoplaying && (s || !y.params.autoplaydisableoninteraction ? y.pauseautoplay(a) : y.stopautoplay()), y.updateprogress(r); for(var i = 0; i < y.slidesgrid.length; i++) - math.floor(100 * r) >= math.floor(100 * y.slidesgrid[i]) && (e = i); return !y.params.allowswipetonext && r < y.translate && r < y.mintranslate() ? !1 : !y.params.allowswipetoprev && r > y.translate && r > y.maxtranslate() && (y.activeindex || 0) !== e ? !1 : ("undefined" == typeof a && (a = y.params.speed), y.previousindex = y.activeindex || 0, y.activeindex = e, y.rtl && -r === y.translate || !y.rtl && r === y.translate ? (y.params.autoheight && y.updateautoheight(), y.updateclasses(), "slide" !== y.params.effect && y.setwrappertranslate(r), !1) : (y.updateclasses(), y.ontransitionstart(t), 0 === a ? (y.setwrappertranslate(r), y.setwrappertransition(0), y.ontransitionend(t)) : (y.setwrappertranslate(r), y.setwrappertransition(a), y.animating || (y.animating = !0, y.wrapper.transitionend(function() { y && y.ontransitionend(t) }))), !0)) }, y.ontransitionstart = function(e) { "undefined" == typeof e && (e = !0), y.params.autoheight && y.updateautoheight(), y.lazy && y.lazy.ontransitionstart(), e && (y.emit("ontransitionstart", y), y.activeindex !== y.previousindex && (y.emit("onslidechangestart", y), y.activeindex > y.previousindex ? y.emit("onslidenextstart", y) : y.emit("onslideprevstart", y))) }, y.ontransitionend = function(e) { y.animating = !1, y.setwrappertransition(0), "undefined" == typeof e && (e = !0), y.lazy && y.lazy.ontransitionend(), e && (y.emit("ontransitionend", y), y.activeindex !== y.previousindex && (y.emit("onslidechangeend", y), y.activeindex > y.previousindex ? y.emit("onslidenextend", y) : y.emit("onslideprevend", y))), y.params.hashnav && y.hashnav && y.hashnav.sethash() }, y.slidenext = function(e, a, t) { if(y.params.loop) { if(y.animating) return !1; y.fixloop(); y.container[0].clientleft; return y.slideto(y.activeindex + y.params.slidespergroup, a, e, t) } return y.slideto(y.activeindex + y.params.slidespergroup, a, e, t) }, y._slidenext = function(e) { return y.slidenext(!0, e, !0) }, y.slideprev = function(e, a, t) { if(y.params.loop) { if(y.animating) return !1; y.fixloop(); y.container[0].clientleft; return y.slideto(y.activeindex - 1, a, e, t) } return y.slideto(y.activeindex - 1, a, e, t) }, y._slideprev = function(e) { return y.slideprev(!0, e, !0) }, y.slidereset = function(e, a, t) { return y.slideto(y.activeindex, a, e) }, y.setwrappertransition = function(e, a) { y.wrapper.transition(e), "slide" !== y.params.effect && y.effects[y.params.effect] && y.effects[y.params.effect].settransition(e), y.params.parallax && y.parallax && y.parallax.settransition(e), y.params.scrollbar && y.scrollbar && y.scrollbar.settransition(e), y.params.control && y.controller && y.controller.settransition(e, a), y.emit("onsettransition", y, e) }, y.setwrappertranslate = function(e, a, t) { var s = 0, i = 0, n = 0; y.ishorizontal() ? s = y.rtl ? -e : e : i = e, y.params.roundlengths && (s = r(s), i = r(i)), y.params.virtualtranslate || (y.support.transforms3d ? y.wrapper.transform("translate3d(" + s + "px, " + i + "px, " + n + "px)") : y.wrapper.transform("translate(" + s + "px, " + i + "px)")), y.translate = y.ishorizontal() ? s : i; var o, l = y.maxtranslate() - y.mintranslate(); o = 0 === l ? 0 : (e - y.mintranslate()) / l, o !== y.progress && y.updateprogress(e), a && y.updateactiveindex(), "slide" !== y.params.effect && y.effects[y.params.effect] && y.effects[y.params.effect].settranslate(y.translate), y.params.parallax && y.parallax && y.parallax.settranslate(y.translate), y.params.scrollbar && y.scrollbar && y.scrollbar.settranslate(y.translate), y.params.control && y.controller && y.controller.settranslate(y.translate, t), y.emit("onsettranslate", y, y.translate) }, y.gettranslate = function(e, a) { var t, s, r, i; return "undefined" == typeof a && (a = "x"), y.params.virtualtranslate ? y.rtl ? -y.translate : y.translate : (r = window.getcomputedstyle(e, null), window.webkitcssmatrix ? (s = r.transform || r.webkittransform, s.split(",").length > 6 && (s = s.split(", ").map(function(e) { return e.replace(",", ".") }).join(", ")), i = new window.webkitcssmatrix("none" === s ? "" : s)) : (i = r.moztransform || r.otransform || r.mstransform || r.mstransform || r.transform || r.getpropertyvalue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), t = i.tostring().split(",")), "x" === a && (s = window.webkitcssmatrix ? i.m41 : 16 === t.length ? parsefloat(t[12]) : parsefloat(t[4])), "y" === a && (s = window.webkitcssmatrix ? i.m42 : 16 === t.length ? parsefloat(t[13]) : parsefloat(t[5])), y.rtl && s && (s = -s), s || 0) }, y.getwrappertranslate = function(e) { return "undefined" == typeof e && (e = y.ishorizontal() ? "x" : "y"), y.gettranslate(y.wrapper[0], e) }, y.observers = [], y.initobservers = function() { if(y.params.observeparents) for(var e = y.container.parents(), a = 0; a < e.length; a++) o(e[a]); o(y.container[0], { childlist: !1 }), o(y.wrapper[0], { attributes: !1 }) }, y.disconnectobservers = function() { for(var e = 0; e < y.observers.length; e++) y.observers[e].disconnect(); y.observers = [] }, y.createloop = function() { y.wrapper.children("." + y.params.slideclass + "." + y.params.slideduplicateclass).remove(); var e = y.wrapper.children("." + y.params.slideclass); "auto" !== y.params.slidesperview || y.params.loopedslides || (y.params.loopedslides = e.length), y.loopedslides = parseint(y.params.loopedslides || y.params.slidesperview, 10), y.loopedslides = y.loopedslides + y.params.loopadditionalslides, y.loopedslides > e.length && (y.loopedslides = e.length); var t, s = [], r = []; for(e.each(function(t, i) { var n = a(this); t < y.loopedslides && r.push(i), t < e.length && t >= e.length - y.loopedslides && s.push(i), n.attr("data-swiper-slide-index", t) }), t = 0; t < r.length; t++) y.wrapper.append(a(r[t].clonenode(!0)).addclass(y.params.slideduplicateclass)); for(t = s.length - 1; t >= 0; t--) y.wrapper.prepend(a(s[t].clonenode(!0)).addclass(y.params.slideduplicateclass)) }, y.destroyloop = function() { y.wrapper.children("." + y.params.slideclass + "." + y.params.slideduplicateclass).remove(), y.slides.removeattr("data-swiper-slide-index") }, y.reloop = function(e) { var a = y.activeindex - y.loopedslides; y.destroyloop(), y.createloop(), y.updateslidessize(), e && y.slideto(a + y.loopedslides, 0, !1) }, y.fixloop = function() { var e; y.activeindex < y.loopedslides ? (e = y.slides.length - 3 * y.loopedslides + y.activeindex, e += y.loopedslides, y.slideto(e, 0, !1, !0)) : ("auto" === y.params.slidesperview && y.activeindex >= 2 * y.loopedslides || y.activeindex > y.slides.length - 2 * y.params.slidesperview) && (e = -y.slides.length + y.activeindex + y.loopedslides, e += y.loopedslides, y.slideto(e, 0, !1, !0)) }, y.appendslide = function(e) { if(y.params.loop && y.destroyloop(), "object" == typeof e && e.length) for(var a = 0; a < e.length; a++) e[a] && y.wrapper.append(e[a]); else y.wrapper.append(e); y.params.loop && y.createloop(), y.params.observer && y.support.observer || y.update(!0) }, y.prependslide = function(e) { y.params.loop && y.destroyloop(); var a = y.activeindex + 1; if("object" == typeof e && e.length) { for(var t = 0; t < e.length; t++) e[t] && y.wrapper.prepend(e[t]); a = y.activeindex + e.length } else y.wrapper.prepend(e); y.params.loop && y.createloop(), y.params.observer && y.support.observer || y.update(!0), y.slideto(a, 0, !1) }, y.removeslide = function(e) { y.params.loop && (y.destroyloop(), y.slides = y.wrapper.children("." + y.params.slideclass)); var a, t = y.activeindex; if("object" == typeof e && e.length) { for(var s = 0; s < e.length; s++) a = e[s], y.slides[a] && y.slides.eq(a).remove(), t > a && t--; t = math.max(t, 0) } else a = e, y.slides[a] && y.slides.eq(a).remove(), t > a && t--, t = math.max(t, 0); y.params.loop && y.createloop(), y.params.observer && y.support.observer || y.update(!0), y.params.loop ? y.slideto(t + y.loopedslides, 0, !1) : y.slideto(t, 0, !1) }, y.removeallslides = function() { for(var e = [], a = 0; a < y.slides.length; a++) e.push(a); y.removeslide(e) }, y.effects = { fade: { settranslate: function() { for(var e = 0; e < y.slides.length; e++) { var a = y.slides.eq(e), t = a[0].swiperslideoffset, s = -t; y.params.virtualtranslate || (s -= y.translate); var r = 0; y.ishorizontal() || (r = s, s = 0); var i = y.params.fade.crossfade ? math.max(1 - math.abs(a[0].progress), 0) : 1 + math.min(math.max(a[0].progress, -1), 0); a.css({ opacity: i }).transform("translate3d(" + s + "px, " + r + "px, 0px)") } }, settransition: function(e) { if(y.slides.transition(e), y.params.virtualtranslate && 0 !== e) { var a = !1; y.slides.transitionend(function() { if(!a && y) { a = !0, y.animating = !1; for(var e = ["webkittransitionend", "transitionend", "otransitionend", "mstransitionend", "mstransitionend"], t = 0; t < e.length; t++) y.wrapper.trigger(e[t]) } }) } } }, flip: { settranslate: function() { for(var e = 0; e < y.slides.length; e++) { var t = y.slides.eq(e), s = t[0].progress; y.params.flip.limitrotation && (s = math.max(math.min(t[0].progress, 1), -1)); var r = t[0].swiperslideoffset, i = -180 * s, n = i, o = 0, l = -r, p = 0; if(y.ishorizontal() ? y.rtl && (n = -n) : (p = l, l = 0, o = -n, n = 0), t[0].style.zindex = -math.abs(math.round(s)) + y.slides.length, y.params.flip.slideshadows) { var d = y.ishorizontal() ? t.find(".swiper-slide-shadow-left") : t.find(".swiper-slide-shadow-top"), u = y.ishorizontal() ? t.find(".swiper-slide-shadow-right") : t.find(".swiper-slide-shadow-bottom"); 0 === d.length && (d = a('
'), t.append(d)), 0 === u.length && (u = a('
'), t.append(u)), d.length && (d[0].style.opacity = math.max(-s, 0)), u.length && (u[0].style.opacity = math.max(s, 0)) } t.transform("translate3d(" + l + "px, " + p + "px, 0px) rotatex(" + o + "deg) rotatey(" + n + "deg)") } }, settransition: function(e) { if(y.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), y.params.virtualtranslate && 0 !== e) { var t = !1; y.slides.eq(y.activeindex).transitionend(function() { if(!t && y && a(this).hasclass(y.params.slideactiveclass)) { t = !0, y.animating = !1; for(var e = ["webkittransitionend", "transitionend", "otransitionend", "mstransitionend", "mstransitionend"], s = 0; s < e.length; s++) y.wrapper.trigger(e[s]) } }) } } }, cube: { settranslate: function() { var e, t = 0; y.params.cube.shadow && (y.ishorizontal() ? (e = y.wrapper.find(".swiper-cube-shadow"), 0 === e.length && (e = a('
'), y.wrapper.append(e)), e.css({ height: y.width + "px" })) : (e = y.container.find(".swiper-cube-shadow"), 0 === e.length && (e = a('
'), y.container.append(e)))); for(var s = 0; s < y.slides.length; s++) { var r = y.slides.eq(s), i = 90 * s, n = math.floor(i / 360); y.rtl && (i = -i, n = math.floor(-i / 360)); var o = math.max(math.min(r[0].progress, 1), -1), l = 0, p = 0, d = 0; s % 4 === 0 ? (l = 4 * -n * y.size, d = 0) : (s - 1) % 4 === 0 ? (l = 0, d = 4 * -n * y.size) : (s - 2) % 4 === 0 ? (l = y.size + 4 * n * y.size, d = y.size) : (s - 3) % 4 === 0 && (l = -y.size, d = 3 * y.size + 4 * y.size * n), y.rtl && (l = -l), y.ishorizontal() || (p = l, l = 0); var u = "rotatex(" + (y.ishorizontal() ? 0 : -i) + "deg) rotatey(" + (y.ishorizontal() ? i : 0) + "deg) translate3d(" + l + "px, " + p + "px, " + d + "px)"; if(1 >= o && o > -1 && (t = 90 * s + 90 * o, y.rtl && (t = 90 * -s - 90 * o)), r.transform(u), y.params.cube.slideshadows) { var c = y.ishorizontal() ? r.find(".swiper-slide-shadow-left") : r.find(".swiper-slide-shadow-top"), m = y.ishorizontal() ? r.find(".swiper-slide-shadow-right") : r.find(".swiper-slide-shadow-bottom"); 0 === c.length && (c = a('
'), r.append(c)), 0 === m.length && (m = a('
'), r.append(m)), c.length && (c[0].style.opacity = math.max(-o, 0)), m.length && (m[0].style.opacity = math.max(o, 0)) } } if(y.wrapper.css({ "-webkit-transform-origin": "50% 50% -" + y.size / 2 + "px", "-moz-transform-origin": "50% 50% -" + y.size / 2 + "px", "-ms-transform-origin": "50% 50% -" + y.size / 2 + "px", "transform-origin": "50% 50% -" + y.size / 2 + "px" }), y.params.cube.shadow) if(y.ishorizontal()) e.transform("translate3d(0px, " + (y.width / 2 + y.params.cube.shadowoffset) + "px, " + -y.width / 2 + "px) rotatex(90deg) rotatez(0deg) scale(" + y.params.cube.shadowscale + ")"); else { var f = math.abs(t) - 90 * math.floor(math.abs(t) / 90), g = 1.5 - (math.sin(2 * f * math.pi / 360) / 2 + math.cos(2 * f * math.pi / 360) / 2), h = y.params.cube.shadowscale, v = y.params.cube.shadowscale / g, w = y.params.cube.shadowoffset; e.transform("scale3d(" + h + ", 1, " + v + ") translate3d(0px, " + (y.height / 2 + w) + "px, " + -y.height / 2 / v + "px) rotatex(-90deg)") } var b = y.issafari || y.isuiwebview ? -y.size / 2 : 0; y.wrapper.transform("translate3d(0px,0," + b + "px) rotatex(" + (y.ishorizontal() ? 0 : t) + "deg) rotatey(" + (y.ishorizontal() ? -t : 0) + "deg)") }, settransition: function(e) { y.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), y.params.cube.shadow && !y.ishorizontal() && y.container.find(".swiper-cube-shadow").transition(e) } }, coverflow: { settranslate: function() { for(var e = y.translate, t = y.ishorizontal() ? -e + y.width / 2 : -e + y.height / 2, s = y.ishorizontal() ? y.params.coverflow.rotate : -y.params.coverflow.rotate, r = y.params.coverflow.depth, i = 0, n = y.slides.length; n > i; i++) { var o = y.slides.eq(i), l = y.slidessizesgrid[i], p = o[0].swiperslideoffset, d = (t - p - l / 2) / l * y.params.coverflow.modifier, u = y.ishorizontal() ? s * d : 0, c = y.ishorizontal() ? 0 : s * d, m = -r * math.abs(d), f = y.ishorizontal() ? 0 : y.params.coverflow.stretch * d, g = y.ishorizontal() ? y.params.coverflow.stretch * d : 0; math.abs(g) < .001 && (g = 0), math.abs(f) < .001 && (f = 0), math.abs(m) < .001 && (m = 0), math.abs(u) < .001 && (u = 0), math.abs(c) < .001 && (c = 0); var h = "translate3d(" + g + "px," + f + "px," + m + "px) rotatex(" + c + "deg) rotatey(" + u + "deg)"; if(o.transform(h), o[0].style.zindex = -math.abs(math.round(d)) + 1, y.params.coverflow.slideshadows) { var v = y.ishorizontal() ? o.find(".swiper-slide-shadow-left") : o.find(".swiper-slide-shadow-top"), w = y.ishorizontal() ? o.find(".swiper-slide-shadow-right") : o.find(".swiper-slide-shadow-bottom"); 0 === v.length && (v = a('
'), o.append(v)), 0 === w.length && (w = a('
'), o.append(w)), v.length && (v[0].style.opacity = d > 0 ? d : 0), w.length && (w[0].style.opacity = -d > 0 ? -d : 0) } } if(y.browser.ie) { var b = y.wrapper[0].style; b.perspectiveorigin = t + "px 50%" } }, settransition: function(e) { y.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e) } } }, y.lazy = { initialimageloaded: !1, loadimageinslide: function(e, t) { if("undefined" != typeof e && ("undefined" == typeof t && (t = !0), 0 !== y.slides.length)) { var s = y.slides.eq(e), r = s.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)"); !s.hasclass("swiper-lazy") || s.hasclass("swiper-lazy-loaded") || s.hasclass("swiper-lazy-loading") || (r = r.add(s[0])), 0 !== r.length && r.each(function() { var e = a(this); e.addclass("swiper-lazy-loading"); var r = e.attr("data-background"), i = e.attr("data-src"), n = e.attr("data-srcset"); y.loadimage(e[0], i || r, n, !1, function() { if(r ? (e.css("background-image", 'url("' + r + '")'), e.removeattr("data-background")) : (n && (e.attr("srcset", n), e.removeattr("data-srcset")), i && (e.attr("src", i), e.removeattr("data-src"))), e.addclass("swiper-lazy-loaded").removeclass("swiper-lazy-loading"), s.find(".swiper-lazy-preloader, .preloader").remove(), y.params.loop && t) { var a = s.attr("data-swiper-slide-index"); if(s.hasclass(y.params.slideduplicateclass)) { var o = y.wrapper.children('[data-swiper-slide-index="' + a + '"]:not(.' + y.params.slideduplicateclass + ")"); y.lazy.loadimageinslide(o.index(), !1) } else { var l = y.wrapper.children("." + y.params.slideduplicateclass + '[data-swiper-slide-index="' + a + '"]'); y.lazy.loadimageinslide(l.index(), !1) } } y.emit("onlazyimageready", y, s[0], e[0]) }), y.emit("onlazyimageload", y, s[0], e[0]) }) } }, load: function() { var e; if(y.params.watchslidesvisibility) y.wrapper.children("." + y.params.slidevisibleclass).each(function() { y.lazy.loadimageinslide(a(this).index()) }); else if(y.params.slidesperview > 1) for(e = y.activeindex; e < y.activeindex + y.params.slidesperview; e++) y.slides[e] && y.lazy.loadimageinslide(e); else y.lazy.loadimageinslide(y.activeindex); if(y.params.lazyloadinginprevnext) if(y.params.slidesperview > 1 || y.params.lazyloadinginprevnextamount && y.params.lazyloadinginprevnextamount > 1) { var t = y.params.lazyloadinginprevnextamount, s = y.params.slidesperview, r = math.min(y.activeindex + s + math.max(t, s), y.slides.length), i = math.max(y.activeindex - math.max(s, t), 0); for(e = y.activeindex + y.params.slidesperview; r > e; e++) y.slides[e] && y.lazy.loadimageinslide(e); for(e = i; e < y.activeindex; e++) y.slides[e] && y.lazy.loadimageinslide(e) } else { var n = y.wrapper.children("." + y.params.slidenextclass); n.length > 0 && y.lazy.loadimageinslide(n.index()); var o = y.wrapper.children("." + y.params.slideprevclass); o.length > 0 && y.lazy.loadimageinslide(o.index()) } }, ontransitionstart: function() { y.params.lazyloading && (y.params.lazyloadingontransitionstart || !y.params.lazyloadingontransitionstart && !y.lazy.initialimageloaded) && y.lazy.load() }, ontransitionend: function() { y.params.lazyloading && !y.params.lazyloadingontransitionstart && y.lazy.load() } }, y.scrollbar = { istouched: !1, setdragposition: function(e) { var a = y.scrollbar, t = y.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 = t - a.track.offset()[y.ishorizontal() ? "left" : "top"] - a.dragsize / 2, r = -y.mintranslate() * a.movedivider, i = -y.maxtranslate() * a.movedivider; r > s ? s = r : s > i && (s = i), s = -s / a.movedivider, y.updateprogress(s), y.setwrappertranslate(s, !0) }, dragstart: function(e) { var a = y.scrollbar; a.istouched = !0, e.preventdefault(), e.stoppropagation(), a.setdragposition(e), cleartimeout(a.dragtimeout), a.track.transition(0), y.params.scrollbarhide && a.track.css("opacity", 1), y.wrapper.transition(100), a.drag.transition(100), y.emit("onscrollbardragstart", y) }, dragmove: function(e) { var a = y.scrollbar; a.istouched && (e.preventdefault ? e.preventdefault() : e.returnvalue = !1, a.setdragposition(e), y.wrapper.transition(0), a.track.transition(0), a.drag.transition(0), y.emit("onscrollbardragmove", y)) }, dragend: function(e) { var a = y.scrollbar; a.istouched && (a.istouched = !1, y.params.scrollbarhide && (cleartimeout(a.dragtimeout), a.dragtimeout = settimeout(function() { a.track.css("opacity", 0), a.track.transition(400) }, 1e3)), y.emit("onscrollbardragend", y), y.params.scrollbarsnaponrelease && y.slidereset()) }, enabledraggable: function() { var e = y.scrollbar, t = y.support.touch ? e.track : document; a(e.track).on(y.touchevents.start, e.dragstart), a(t).on(y.touchevents.move, e.dragmove), a(t).on(y.touchevents.end, e.dragend) }, disabledraggable: function() { var e = y.scrollbar, t = y.support.touch ? e.track : document; a(e.track).off(y.touchevents.start, e.dragstart), a(t).off(y.touchevents.move, e.dragmove), a(t).off(y.touchevents.end, e.dragend) }, set: function() { if(y.params.scrollbar) { var e = y.scrollbar; e.track = a(y.params.scrollbar), y.params.uniquenavelements && "string" == typeof y.params.scrollbar && e.track.length > 1 && 1 === y.container.find(y.params.scrollbar).length && (e.track = y.container.find(y.params.scrollbar)), e.drag = e.track.find(".swiper-scrollbar-drag"), 0 === e.drag.length && (e.drag = a('
'), e.track.append(e.drag)), e.drag[0].style.width = "", e.drag[0].style.height = "", e.tracksize = y.ishorizontal() ? e.track[0].offsetwidth : e.track[0].offsetheight, e.divider = y.size / y.virtualsize, e.movedivider = e.divider * (e.tracksize / y.size), e.dragsize = e.tracksize * e.divider, y.ishorizontal() ? e.drag[0].style.width = e.dragsize + "px" : e.drag[0].style.height = e.dragsize + "px", e.divider >= 1 ? e.track[0].style.display = "none" : e.track[0].style.display = "", y.params.scrollbarhide && (e.track[0].style.opacity = 0) } }, settranslate: function() { if(y.params.scrollbar) { var e, a = y.scrollbar, t = (y.translate || 0, a.dragsize); e = (a.tracksize - a.dragsize) * y.progress, y.rtl && y.ishorizontal() ? (e = -e, e > 0 ? (t = a.dragsize - e, e = 0) : -e + a.dragsize > a.tracksize && (t = a.tracksize + e)) : 0 > e ? (t = a.dragsize + e, e = 0) : e + a.dragsize > a.tracksize && (t = a.tracksize - e), y.ishorizontal() ? (y.support.transforms3d ? a.drag.transform("translate3d(" + e + "px, 0, 0)") : a.drag.transform("translatex(" + e + "px)"), a.drag[0].style.width = t + "px") : (y.support.transforms3d ? a.drag.transform("translate3d(0px, " + e + "px, 0)") : a.drag.transform("translatey(" + e + "px)"), a.drag[0].style.height = t + "px"), y.params.scrollbarhide && (cleartimeout(a.timeout), a.track[0].style.opacity = 1, a.timeout = settimeout(function() { a.track[0].style.opacity = 0, a.track.transition(400) }, 1e3)) } }, settransition: function(e) { y.params.scrollbar && y.scrollbar.drag.transition(e) } }, y.controller = { linearspline: function(e, a) { this.x = e, this.y = a, this.lastindex = e.length - 1; var t, s; this.x.length; this.interpolate = function(e) { return e ? (s = r(this.x, e), t = s - 1, (e - this.x[t]) * (this.y[s] - this.y[t]) / (this.x[s] - this.x[t]) + this.y[t]) : 0 }; var r = function() { var e, a, t; return function(s, r) { for(a = -1, e = s.length; e - a > 1;) s[t = e + a >> 1] <= r ? a = t : e = t; return e } }() }, getinterpolatefunction: function(e) { y.controller.spline || (y.controller.spline = y.params.loop ? new y.controller.linearspline(y.slidesgrid, e.slidesgrid) : new y.controller.linearspline(y.snapgrid, e.snapgrid)) }, settranslate: function(e, a) { function s(a) { e = a.rtl && "horizontal" === a.params.direction ? -y.translate : y.translate, "slide" === y.params.controlby && (y.controller.getinterpolatefunction(a), i = -y.controller.spline.interpolate(-e)), i && "container" !== y.params.controlby || (r = (a.maxtranslate() - a.mintranslate()) / (y.maxtranslate() - y.mintranslate()), i = (e - y.mintranslate()) * r + a.mintranslate()), y.params.controlinverse && (i = a.maxtranslate() - i), a.updateprogress(i), a.setwrappertranslate(i, !1, y), a.updateactiveindex() } var r, i, n = y.params.control; if(y.isarray(n)) for(var o = 0; o < n.length; o++) n[o] !== a && n[o] instanceof t && s(n[o]); else n instanceof t && a !== n && s(n) }, settransition: function(e, a) { function s(a) { a.setwrappertransition(e, y), 0 !== e && (a.ontransitionstart(), a.wrapper.transitionend(function() { i && (a.params.loop && "slide" === y.params.controlby && a.fixloop(), a.ontransitionend()) })) } var r, i = y.params.control; if(y.isarray(i)) for(r = 0; r < i.length; r++) i[r] !== a && i[r] instanceof t && s(i[r]); else i instanceof t && a !== i && s(i) } }, y.hashnav = { init: function() { if(y.params.hashnav) { y.hashnav.initialized = !0; var e = document.location.hash.replace("#", ""); if(e) for(var a = 0, t = 0, s = y.slides.length; s > t; t++) { var r = y.slides.eq(t), i = r.attr("data-hash"); if(i === e && !r.hasclass(y.params.slideduplicateclass)) { var n = r.index(); y.slideto(n, a, y.params.runcallbacksoninit, !0) } } } }, sethash: function() { y.hashnav.initialized && y.params.hashnav && (document.location.hash = y.slides.eq(y.activeindex).attr("data-hash") || "") } }, y.disablekeyboardcontrol = function() { y.params.keyboardcontrol = !1, a(document).off("keydown", l) }, y.enablekeyboardcontrol = function() { y.params.keyboardcontrol = !0, a(document).on("keydown", l) }, y.mousewheel = { event: !1, lastscrolltime: (new window.date).gettime() }, y.params.mousewheelcontrol) { try { new window.wheelevent("wheel"), y.mousewheel.event = "wheel" } catch(o) { (window.wheelevent || y.container[0] && "wheel" in y.container[0]) && (y.mousewheel.event = "wheel") }!y.mousewheel.event && window.wheelevent, y.mousewheel.event || void 0 === document.onmousewheel || (y.mousewheel.event = "mousewheel"), y.mousewheel.event || (y.mousewheel.event = "dommousescroll") } y.disablemousewheelcontrol = function() { return y.mousewheel.event ? (y.container.off(y.mousewheel.event, p), !0) : !1 }, y.enablemousewheelcontrol = function() { return y.mousewheel.event ? (y.container.on(y.mousewheel.event, p), !0) : !1 }, y.parallax = { settranslate: function() { y.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function() { d(this, y.progress) }), y.slides.each(function() { var e = a(this); e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function() { var a = math.min(math.max(e[0].progress, -1), 1); d(this, a) }) }) }, settransition: function(e) { "undefined" == typeof e && (e = y.params.speed), y.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function() { var t = a(this), s = parseint(t.attr("data-swiper-parallax-duration"), 10) || e; 0 === e && (s = 0), t.transition(s) }) } }, y._plugins = []; for(var n in y.plugins) { var r = y.plugins[n](y, y.params[n]); r && y._plugins.push(r) } return y.callplugins = function(e) { for(var a = 0; a < y._plugins.length; a++) e in y._plugins[a] && y._plugins[a][e](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]) }, y.emittereventlisteners = {}, y.emit = function(e) { y.params[e] && y.params[e](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]); var a; if(y.emittereventlisteners[e]) for(a = 0; a < y.emittereventlisteners[e].length; a++) y.emittereventlisteners[e][a](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]); y.callplugins && y.callplugins(e, arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]) }, y.on = function(e, a) { return e = u(e), y.emittereventlisteners[e] || (y.emittereventlisteners[e] = []), y.emittereventlisteners[e].push(a), y }, y.off = function(e, a) { var t; if(e = u(e), "undefined" == typeof a) return y.emittereventlisteners[e] = [], y; if(y.emittereventlisteners[e] && 0 !== y.emittereventlisteners[e].length) { for(t = 0; t < y.emittereventlisteners[e].length; t++) y.emittereventlisteners[e][t] === a && y.emittereventlisteners[e].splice(t, 1); return y } }, y.once = function(e, a) { e = u(e); var t = function() { a(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]), y.off(e, t) }; return y.on(e, t), y }, y.a11y = { makefocusable: function(e) { return e.attr("tabindex", "0"), e }, addrole: function(e, a) { return e.attr("role", a), e }, addlabel: function(e, a) { return e.attr("aria-label", a), e }, disable: function(e) { return e.attr("aria-disabled", !0), e }, enable: function(e) { return e.attr("aria-disabled", !1), e }, onenterkey: function(e) { 13 === e.keycode && (a(e.target).is(y.params.nextbutton) ? (y.onclicknext(e), y.isend ? y.a11y.notify(y.params.lastslidemessage) : y.a11y.notify(y.params.nextslidemessage)) : a(e.target).is(y.params.prevbutton) && (y.onclickprev(e), y.isbeginning ? y.a11y.notify(y.params.firstslidemessage) : y.a11y.notify(y.params.prevslidemessage)), a(e.target).is("." + y.params.bulletclass) && a(e.target)[0].click()) }, liveregion: a(''), notify: function(e) { var a = y.a11y.liveregion; 0 !== a.length && (a.html(""), a.html(e)) }, init: function() { y.params.nextbutton && y.nextbutton && y.nextbutton.length > 0 && (y.a11y.makefocusable(y.nextbutton), y.a11y.addrole(y.nextbutton, "button"), y.a11y.addlabel(y.nextbutton, y.params.nextslidemessage)), y.params.prevbutton && y.prevbutton && y.prevbutton.length > 0 && (y.a11y.makefocusable(y.prevbutton), y.a11y.addrole(y.prevbutton, "button"), y.a11y.addlabel(y.prevbutton, y.params.prevslidemessage)), a(y.container).append(y.a11y.liveregion) }, initpagination: function() { y.params.pagination && y.params.paginationclickable && y.bullets && y.bullets.length && y.bullets.each(function() { var e = a(this); y.a11y.makefocusable(e), y.a11y.addrole(e, "button"), y.a11y.addlabel(e, y.params.paginationbulletmessage.replace(/{{index}}/, e.index() + 1)) }) }, destroy: function() { y.a11y.liveregion && y.a11y.liveregion.length > 0 && y.a11y.liveregion.remove() } }, y.init = function() { y.params.loop && y.createloop(), y.updatecontainersize(), y.updateslidessize(), y.updatepagination(), y.params.scrollbar && y.scrollbar && (y.scrollbar.set(), y.params.scrollbardraggable && y.scrollbar.enabledraggable()), "slide" !== y.params.effect && y.effects[y.params.effect] && (y.params.loop || y.updateprogress(), y.effects[y.params.effect].settranslate()), y.params.loop ? y.slideto(y.params.initialslide + y.loopedslides, 0, y.params.runcallbacksoninit) : (y.slideto(y.params.initialslide, 0, y.params.runcallbacksoninit), 0 === y.params.initialslide && (y.parallax && y.params.parallax && y.parallax.settranslate(), y.lazy && y.params.lazyloading && (y.lazy.load(), y.lazy.initialimageloaded = !0))), y.attachevents(), y.params.observer && y.support.observer && y.initobservers(), y.params.preloadimages && !y.params.lazyloading && y.preloadimages(), y.params.autoplay && y.startautoplay(), y.params.keyboardcontrol && y.enablekeyboardcontrol && y.enablekeyboardcontrol(), y.params.mousewheelcontrol && y.enablemousewheelcontrol && y.enablemousewheelcontrol(), y.params.hashnav && y.hashnav && y.hashnav.init(), y.params.a11y && y.a11y && y.a11y.init(), y.emit("oninit", y) }, y.cleanupstyles = function() { y.container.removeclass(y.classnames.join(" ")).removeattr("style"), y.wrapper.removeattr("style"), y.slides && y.slides.length && y.slides.removeclass([y.params.slidevisibleclass, y.params.slideactiveclass, y.params.slidenextclass, y.params.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-column").removeattr("data-swiper-row"), y.paginationcontainer && y.paginationcontainer.length && y.paginationcontainer.removeclass(y.params.paginationhiddenclass), y.bullets && y.bullets.length && y.bullets.removeclass(y.params.bulletactiveclass), y.params.prevbutton && a(y.params.prevbutton).removeclass(y.params.buttondisabledclass), y.params.nextbutton && a(y.params.nextbutton).removeclass(y.params.buttondisabledclass), y.params.scrollbar && y.scrollbar && (y.scrollbar.track && y.scrollbar.track.length && y.scrollbar.track.removeattr("style"), y.scrollbar.drag && y.scrollbar.drag.length && y.scrollbar.drag.removeattr("style")) }, y.destroy = function(e, a) { y.detachevents(), y.stopautoplay(), y.params.scrollbar && y.scrollbar && y.params.scrollbardraggable && y.scrollbar.disabledraggable(), y.params.loop && y.destroyloop(), a && y.cleanupstyles(), y.disconnectobservers(), y.params.keyboardcontrol && y.disablekeyboardcontrol && y.disablekeyboardcontrol(), y.params.mousewheelcontrol && y.disablemousewheelcontrol && y.disablemousewheelcontrol(), y.params.a11y && y.a11y && y.a11y.destroy(), y.emit("ondestroy"), e !== !1 && (y = null) }, y.init(), y } }; t.prototype = { issafari: function() { var e = navigator.useragent.tolowercase(); return e.indexof("safari") >= 0 && e.indexof("chrome") < 0 && e.indexof("android") < 0 }(), isuiwebview: /(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(navigator.useragent), isarray: function(e) { return "[object array]" === object.prototype.tostring.apply(e) }, browser: { ie: window.navigator.pointerenabled || window.navigator.mspointerenabled, ietouch: window.navigator.mspointerenabled && window.navigator.msmaxtouchpoints > 1 || window.navigator.pointerenabled && window.navigator.maxtouchpoints > 1 }, device: function() { var e = navigator.useragent, a = e.match(/(android);?[\s\/]+([\d.]+)?/), t = e.match(/(ipad).*os\s([\d_]+)/), s = e.match(/(ipod)(.*os\s([\d_]+))?/), r = !t && e.match(/(iphone\sos)\s([\d_]+)/); return { ios: t || r || s, android: a } }(), support: { touch: window.modernizr && modernizr.touch === !0 || function() { return !!("ontouchstart" in window || window.documenttouch && document instanceof documenttouch) }(), transforms3d: window.modernizr && modernizr.csstransforms3d === !0 || function() { var e = document.createelement("div").style; return "webkitperspective" in e || "mozperspective" in e || "operspective" in e || "msperspective" in e || "perspective" in e }(), flexbox: function() { for(var e = document.createelement("div").style, a = "alignitems webkitalignitems webkitboxalign msflexalign mozboxalign webkitflexdirection msflexdirection mozboxdirection mozboxorient webkitboxdirection webkitboxorient".split(" "), t = 0; t < a.length; t++) if(a[t] in e) return !0 }(), observer: function() { return "mutationobserver" in window || "webkitmutationobserver" in window }() }, plugins: {} }; for(var s = ["jquery", "zepto", "dom7"], r = 0; r < s.length; r++) window[s[r]] && e(window[s[r]]); var i; i = "undefined" == typeof dom7 ? window.dom7 || window.zepto || window.jquery : dom7, i && ("transitionend" in i.fn || (i.fn.transitionend = function(e) { function a(i) { if(i.target === this) for(e.call(this, i), t = 0; t < s.length; t++) r.off(s[t], a) } var t, s = ["webkittransitionend", "transitionend", "otransitionend", "mstransitionend", "mstransitionend"], r = this; if(e) for(t = 0; t < s.length; t++) r.on(s[t], a); return this }), "transform" in i.fn || (i.fn.transform = function(e) { for(var a = 0; a < this.length; a++) { var t = this[a].style; t.webkittransform = t.mstransform = t.mstransform = t.moztransform = t.otransform = t.transform = e } return this }), "transition" in i.fn || (i.fn.transition = function(e) { "string" != typeof e && (e += "ms"); for(var a = 0; a < this.length; a++) { var t = this[a].style; t.webkittransitionduration = t.mstransitionduration = t.mstransitionduration = t.moztransitionduration = t.otransitionduration = t.transitionduration = e } return this })), window.swiper = t }(), "undefined" != typeof module ? module.exports = window.swiper : "function" == typeof define && define.amd && define([], function() { "use strict"; return window.swiper }); //# sourcemappingurl=maps/swiper.jquery.min.js.map