/** * swiper 4.0.5 * 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 7, 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(":~]/) ? (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 () {} } : 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, { width: 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({ width: e.virtualsize + t.spacebetween + "px" }), p.flexbox && !t.setwrappersize || (e.ishorizontal() ? a.css({ width: 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({ width: 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]>= 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).*os\s([\d_]+)/), n = e.match(/(ipod)(.*os\s([\d_]+))?/), o = !r && e.match(/(iphone\sos|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 && s.iosedgeswipedetection && o <= 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 && 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 (r.currenty < r.starty && a.translate <= a.maxtranslate() || r.currenty > r.starty && a.translate >= a.mintranslate()) return } else if (r.currentx < r.startx && a.translate <= a.maxtranslate() || r.currentx > 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)) { if (r.currentx = "touchmove" === o.type ? o.targettouches[0].pagex : o.pagex, r.currenty = "touchmove" === o.type ? o.targettouches[0].pagey : o.pagey, void 0 === i.isscrolling) { var u; a.ishorizontal() && r.currenty === r.starty || a.isvertical() && r.currentx === r.startx ? i.isscrolling = !1 : (u = 180 * math.atan2(math.abs(r.currenty - r.starty), math.abs(r.currentx - r.startx)) / math.pi, i.isscrolling = a.ishorizontal() ? u > s.touchangle : 90 - u > 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 h = a.ishorizontal() ? r.currentx - r.startx : r.currenty - r.starty; r.diff = h, h *= s.touchratio, n && (h = -h), a.swipedirection = h > 0 ? "prev" : "next", i .currenttranslate = h + i.starttranslate; var v = !0, f = s.resistanceratio; if (s.touchreleaseonedges && (f = 0), h > 0 && i.currenttranslate > a.mintranslate() ? (v = ! 1, s.resistance && (i.currenttranslate = a.mintranslate() - 1 + math.pow(-a.mintranslate() + i.starttranslate + h, f))) : h < 0 && i.currenttranslate < a.maxtranslate() && (v = !1, s.resistance && (i.currenttranslate = a.maxtranslate() + 1 - math.pow(a.maxtranslate() - i.starttranslate - h, f))), v && (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(h) > 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 = math.abs(d[s] - y) < math.abs(d[s - 1] - y) || "next" === t.swipedirection ? d[s] : d[s - 1], r || (y = -y) } 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, i = e.allowslidenext, s = e.allowslideprev; if (!a || 0 !== a.offsetwidth) { if (t.breakpoints && e.setbreakpoint(), 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 = !("ontouchstart" !== a.start || !p.passivelistener || !t.passivelisteners) && { passive: !0, capture: !1 }; r.addeventlistener(a.start, e.ontouchstart, o), r.addeventlistener(a.move, e.ontouchmove, 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; if (l.extend(e.params, n), l.extend(e, { allowtouchmove: e.params.allowtouchmove, allowslidenext: e.params.allowslidenext, allowslideprev: e.params.allowslideprev }), e.currentbreakpoint = r, o) { var d = t - a; e.loopdestroy(), e.loopcreate(), e.updateslides(), e.slideto(d + a, 0, !1) } } } }, 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; 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() } } }, x = { 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) : '
' + t + "
"); 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) } }, n = { name: "virtual", params: { virtual: { enabled: !1, slides: [], cache: !0, renderslide: null, renderexternal: null } }, create: function () { var e = this; l.extend(e, { virtual: { update: x.update.bind(e), appendslide: x.appendslide.bind(e), prependslide: x.prependslide.bind(e), renderslide: x.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 + '">"; i.html(s), e.pagination.bullets = i.find("." + t.bulletclass) } "fraction" === t.type && (s = t.renderfraction ? t.renderfraction.call(e, t.currentclass, t .totalclass) : ' / ', i.html(s)), "progressbar" === t.type && (s = t.renderprogressbar ? t.renderprogressbar.call(e, t.progressbarfillclass) : '', 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.movedivider, o = (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, l = -a.mintranslate() * n, d = -a.maxtranslate() * n; o < l ? o = l : o > d && (o = d), a.rtl && (o = d - o), o = -o / n, 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('
'), 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, width: 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.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('') } }), 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("/"), 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) } }) }, 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( '
'), s.append(t)), t.css({ height: n + "px" })) : 0 === (t = i.find(".swiper-cube-shadow")).length && (t = e( '
'), 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('
'), f.append(c)), 0 === m.length && (m = e( '
'), 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('
'), s.append(p)), 0 === c.length && (c = e( '
'), 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('
'), f.append(c)), 0 === m.length && (m = e( '
'), 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) }, 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 $.components = [i, l, d, o, h, n, g, v, w, j, k, _, q, ee, ae, se, ne, le, pe, ue, ve, me, be], $ }); //# sourcemappingurl=swiper.min.js.map