/**
* swiper 6.4.1
* most modern mobile touch slider and framework with hardware accelerated transitions
* https://swiperjs.com
*
* copyright 2014-2020 vladimir kharlampidi
*
* released under the mit license
*
* released on: december 9, 2020
*/
!
function(e, t) {
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = e || self).swiper = t()
} (this, (function() {
"use strict";
function e(e, t) {
for (var a = 0; a < t.length; a++) {
var i = t[a];
i.enumerable = i.enumerable || !1,
i.configurable = !0,
"value" in i && (i.writable = !0),
object.defineproperty(e, i.key, i)
}
}
function t() {
return (t = object.assign ||
function(e) {
for (var t = 1; t < arguments.length; t++) {
var a = arguments[t];
for (var i in a) object.prototype.hasownproperty.call(a, i) && (e[i] = a[i])
}
return e
}).apply(this, arguments)
}
function a(e) {
return null !== e && "object" == typeof e && "constructor" in e && e.constructor === object
}
function i(e, t) {
void 0 === e && (e = {}),
void 0 === t && (t = {}),
object.keys(t).foreach((function(s) {
void 0 === e[s] ? e[s] = t[s] : a(t[s]) && a(e[s]) && object.keys(t[s]).length > 0 && i(e[s], t[s])
}))
}
var s = {
body: {},
addeventlistener: function() {},
removeeventlistener: function() {},
activeelement: {
blur: function() {},
nodename: ""
},
queryselector: function() {
return null
},
queryselectorall: function() {
return []
},
getelementbyid: function() {
return null
},
createevent: function() {
return {
initevent: function() {}
}
},
createelement: function() {
return {
children: [],
childnodes: [],
style: {},
setattribute: function() {},
getelementsbytagname: function() {
return []
}
}
},
createelementns: function() {
return {}
},
importnode: function() {
return null
},
location: {
hash: "",
host: "",
hostname: "",
href: "",
origin: "",
pathname: "",
protocol: "",
search: ""
}
};
function r() {
var e = "undefined" != typeof document ? document: {};
return i(e, s),
e
}
var n = {
document: s,
navigator: {
useragent: ""
},
location: {
hash: "",
host: "",
hostname: "",
href: "",
origin: "",
pathname: "",
protocol: "",
search: ""
},
history: {
replacestate: function() {},
pushstate: function() {},
go: function() {},
back: function() {}
},
customevent: function() {
return this
},
addeventlistener: function() {},
removeeventlistener: function() {},
getcomputedstyle: function() {
return {
getpropertyvalue: function() {
return ""
}
}
},
image: function() {},
date: function() {},
screen: {},
settimeout: function() {},
cleartimeout: function() {},
matchmedia: function() {
return {}
},
requestanimationframe: function(e) {
return "undefined" == typeof settimeout ? (e(), null) : settimeout(e, 0)
},
cancelanimationframe: function(e) {
"undefined" != typeof settimeout && cleartimeout(e)
}
};
function l() {
var e = "undefined" != typeof window ? window: {};
return i(e, n),
e
}
function o(e) {
return (o = object.setprototypeof ? object.getprototypeof: function(e) {
return e.__proto__ || object.getprototypeof(e)
})(e)
}
function d(e, t) {
return (d = object.setprototypeof ||
function(e, t) {
return e.__proto__ = t,
e
})(e, t)
}
function p() {
if ("undefined" == typeof reflect || !reflect.construct) return ! 1;
if (reflect.construct.sham) return ! 1;
if ("function" == typeof proxy) return ! 0;
try {
return date.prototype.tostring.call(reflect.construct(date, [], (function() {}))),
!0
} catch(e) {
return ! 1
}
}
function u(e, t, a) {
return (u = p() ? reflect.construct: function(e, t, a) {
var i = [null];
i.push.apply(i, t);
var s = new(function.bind.apply(e, i));
return a && d(s, a.prototype),
s
}).apply(null, arguments)
}
function c(e) {
var t = "function" == typeof map ? new map: void 0;
return (c = function(e) {
if (null === e || (a = e, -1 === function.tostring.call(a).indexof("[native code]"))) return e;
var a;
if ("function" != typeof e) throw new typeerror("super expression must either be null or a function");
if (void 0 !== t) {
if (t.has(e)) return t.get(e);
t.set(e, i)
}
function i() {
return u(e, arguments, o(this).constructor)
}
return i.prototype = object.create(e.prototype, {
constructor: {
value: i,
enumerable: !1,
writable: !0,
configurable: !0
}
}),
d(i, e)
})(e)
}
var h = function(e) {
var t, a;
function i(t) {
var a, i, s;
return a = e.call.apply(e, [this].concat(t)) || this,
i = function(e) {
if (void 0 === e) throw new referenceerror("this hasn't been initialised - super() hasn't been called");
return e
} (a),
s = i.__proto__,
object.defineproperty(i, "__proto__", {
get: function() {
return s
},
set: function(e) {
s.__proto__ = e
}
}),
a
}
return a = e,
(t = i).prototype = object.create(a.prototype),
t.prototype.constructor = t,
t.__proto__ = a,
i
} (c(array));
function v(e) {
void 0 === e && (e = []);
var t = [];
return e.foreach((function(e) {
array.isarray(e) ? t.push.apply(t, v(e)) : t.push(e)
})),
t
}
function f(e, t) {
return array.prototype.filter.call(e, t)
}
function m(e, t) {
var a = l(),
i = r(),
s = [];
if (!t && e instanceof h) return e;
if (!e) return new h(s);
if ("string" == typeof e) {
var n = e.trim();
if (n.indexof("<") >= 0 && n.indexof(">") >= 0) {
var o = "div";
0 === n.indexof("
0
})).length > 0
},
toggleclass: function() {
for (var e = arguments.length,
t = new array(e), a = 0; a < e; a++) t[a] = arguments[a];
var i = v(t.map((function(e) {
return e.split(" ")
})));
this.foreach((function(e) {
i.foreach((function(t) {
e.classlist.toggle(t)
}))
}))
},
attr: function(e, t) {
if (1 === arguments.length && "string" == typeof e) return this[0] ? this[0].getattribute(e) : void 0;
for (var a = 0; a < this.length; a += 1) if (2 === arguments.length) this[a].setattribute(e, t);
else for (var i in e) this[a][i] = e[i],
this[a].setattribute(i, e[i]);
return this
},
removeattr: function(e) {
for (var t = 0; t < this.length; t += 1) this[t].removeattribute(e);
return this
},
transform: function(e) {
for (var t = 0; t < this.length; t += 1) this[t].style.transform = e;
return this
},
transition: function(e) {
for (var t = 0; t < this.length; t += 1) this[t].style.transitionduration = "string" != typeof e ? e + "ms": e;
return this
},
on: function() {
for (var e = arguments.length,
t = new array(e), a = 0; a < e; a++) t[a] = arguments[a];
var i = t[0],
s = t[1],
r = t[2],
n = t[3];
function l(e) {
var t = e.target;
if (t) {
var a = e.target.dom7eventdata || [];
if (a.indexof(e) < 0 && a.unshift(e), m(t).is(s)) r.apply(t, a);
else for (var i = m(t).parents(), n = 0; n < i.length; n += 1) m(i[n]).is(s) && r.apply(i[n], a)
}
}
function o(e) {
var t = e && e.target && e.target.dom7eventdata || [];
t.indexof(e) < 0 && t.unshift(e),
r.apply(this, t)
}
"function" == typeof t[1] && (i = t[0], r = t[1], n = t[2], s = void 0),
n || (n = !1);
for (var d, p = i.split(" "), u = 0; u < this.length; u += 1) {
var c = this[u];
if (s) for (d = 0; d < p.length; d += 1) {
var h = p[d];
c.dom7livelisteners || (c.dom7livelisteners = {}),
c.dom7livelisteners[h] || (c.dom7livelisteners[h] = []),
c.dom7livelisteners[h].push({
listener: r,
proxylistener: l
}),
c.addeventlistener(h, l, n)
} else for (d = 0; d < p.length; d += 1) {
var v = p[d];
c.dom7listeners || (c.dom7listeners = {}),
c.dom7listeners[v] || (c.dom7listeners[v] = []),
c.dom7listeners[v].push({
listener: r,
proxylistener: o
}),
c.addeventlistener(v, o, n)
}
}
return this
},
off: function() {
for (var e = arguments.length,
t = new array(e), a = 0; a < e; a++) t[a] = arguments[a];
var i = t[0],
s = t[1],
r = t[2],
n = t[3];
"function" == typeof t[1] && (i = t[0], r = t[1], n = t[2], s = void 0),
n || (n = !1);
for (var l = i.split(" "), o = 0; o < l.length; o += 1) for (var d = l[o], p = 0; p < this.length; p += 1) {
var u = this[p],
c = void 0;
if (!s && u.dom7listeners ? c = u.dom7listeners[d] : s && u.dom7livelisteners && (c = u.dom7livelisteners[d]), c && c.length) for (var h = c.length - 1; h >= 0; h -= 1) {
var v = c[h];
r && v.listener === r || r && v.listener && v.listener.dom7proxy && v.listener.dom7proxy === r ? (u.removeeventlistener(d, v.proxylistener, n), c.splice(h, 1)) : r || (u.removeeventlistener(d, v.proxylistener, n), c.splice(h, 1))
}
}
return this
},
trigger: function() {
for (var e = l(), t = arguments.length, a = new array(t), i = 0; i < t; i++) a[i] = arguments[i];
for (var s = a[0].split(" "), r = a[1], n = 0; n < s.length; n += 1) for (var o = s[n], d = 0; d < this.length; d += 1) {
var p = this[d];
if (e.customevent) {
var u = new e.customevent(o, {
detail: r,
bubbles: !0,
cancelable: !0
});
p.dom7eventdata = a.filter((function(e, t) {
return t > 0
})),
p.dispatchevent(u),
p.dom7eventdata = [],
delete p.dom7eventdata
}
}
return this
},
transitionend: function(e) {
var t = this;
return e && t.on("transitionend", (function a(i) {
i.target === this && (e.call(this, i), t.off("transitionend", a))
})),
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
},
styles: function() {
var e = l();
return this[0] ? e.getcomputedstyle(this[0], null) : {}
},
offset: function() {
if (this.length > 0) {
var e = l(),
t = r(),
a = this[0],
i = a.getboundingclientrect(),
s = t.body,
n = a.clienttop || s.clienttop || 0,
o = a.clientleft || s.clientleft || 0,
d = a === e ? e.scrolly: a.scrolltop,
p = a === e ? e.scrollx: a.scrollleft;
return {
top: i.top + d - n,
left: i.left + p - o
}
}
return null
},
css: function(e, t) {
var a, i = l();
if (1 === arguments.length) {
if ("string" != typeof e) {
for (a = 0; a < this.length; a += 1) for (var s in e) this[a].style[s] = e[s];
return this
}
if (this[0]) return i.getcomputedstyle(this[0], null).getpropertyvalue(e)
}
if (2 === arguments.length && "string" == typeof e) {
for (a = 0; a < this.length; a += 1) this[a].style[e] = t;
return this
}
return this
},
each: function(e) {
return e ? (this.foreach((function(t, a) {
e.apply(t, [t, a])
})), this) : this
},
html: function(e) {
if (void 0 === e) return this[0] ? this[0].innerhtml: null;
for (var t = 0; t < this.length; t += 1) this[t].innerhtml = e;
return this
},
text: function(e) {
if (void 0 === e) return this[0] ? this[0].textcontent.trim() : null;
for (var t = 0; t < this.length; t += 1) this[t].textcontent = e;
return this
},
is: function(e) {
var t, a, i = l(),
s = r(),
n = this[0];
if (!n || void 0 === e) return ! 1;
if ("string" == typeof e) {
if (n.matches) return n.matches(e);
if (n.webkitmatchesselector) return n.webkitmatchesselector(e);
if (n.msmatchesselector) return n.msmatchesselector(e);
for (t = m(e), a = 0; a < t.length; a += 1) if (t[a] === n) return ! 0;
return ! 1
}
if (e === s) return n === s;
if (e === i) return n === i;
if (e.nodetype || e instanceof h) {
for (t = e.nodetype ? [e] : e, a = 0; a < t.length; a += 1) if (t[a] === n) 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 = this.length;
if (e > t - 1) return m([]);
if (e < 0) {
var a = t + e;
return m(a < 0 ? [] : [this[a]])
}
return m([this[e]])
},
append: function() {
for (var e, t = r(), a = 0; a < arguments.length; a += 1) {
e = a < 0 || arguments.length <= a ? void 0 : arguments[a];
for (var i = 0; i < this.length; i += 1) if ("string" == typeof e) {
var s = t.createelement("div");
for (s.innerhtml = e; s.firstchild;) this[i].appendchild(s.firstchild)
} else if (e instanceof h) for (var n = 0; n < e.length; n += 1) this[i].appendchild(e[n]);
else this[i].appendchild(e)
}
return this
},
prepend: function(e) {
var t, a, i = r();
for (t = 0; t < this.length; t += 1) if ("string" == typeof e) {
var s = i.createelement("div");
for (s.innerhtml = e, a = s.childnodes.length - 1; a >= 0; a -= 1) this[t].insertbefore(s.childnodes[a], this[t].childnodes[0])
} else if (e instanceof h) for (a = 0; a < e.length; a += 1) this[t].insertbefore(e[a], this[t].childnodes[0]);
else this[t].insertbefore(e, this[t].childnodes[0]);
return this
},
next: function(e) {
return this.length > 0 ? e ? this[0].nextelementsibling && m(this[0].nextelementsibling).is(e) ? m([this[0].nextelementsibling]) : m([]) : this[0].nextelementsibling ? m([this[0].nextelementsibling]) : m([]) : m([])
},
nextall: function(e) {
var t = [],
a = this[0];
if (!a) return m([]);
for (; a.nextelementsibling;) {
var i = a.nextelementsibling;
e ? m(i).is(e) && t.push(i) : t.push(i),
a = i
}
return m(t)
},
prev: function(e) {
if (this.length > 0) {
var t = this[0];
return e ? t.previouselementsibling && m(t.previouselementsibling).is(e) ? m([t.previouselementsibling]) : m([]) : t.previouselementsibling ? m([t.previouselementsibling]) : m([])
}
return m([])
},
prevall: function(e) {
var t = [],
a = this[0];
if (!a) return m([]);
for (; a.previouselementsibling;) {
var i = a.previouselementsibling;
e ? m(i).is(e) && t.push(i) : t.push(i),
a = i
}
return m(t)
},
parent: function(e) {
for (var t = [], a = 0; a < this.length; a += 1) null !== this[a].parentnode && (e ? m(this[a].parentnode).is(e) && t.push(this[a].parentnode) : t.push(this[a].parentnode));
return m(t)
},
parents: function(e) {
for (var t = [], a = 0; a < this.length; a += 1) for (var i = this[a].parentnode; i;) e ? m(i).is(e) && t.push(i) : t.push(i),
i = i.parentnode;
return m(t)
},
closest: function(e) {
var t = this;
return void 0 === e ? m([]) : (t.is(e) || (t = t.parents(e).eq(0)), t)
},
find: function(e) {
for (var t = [], a = 0; a < this.length; a += 1) for (var i = this[a].queryselectorall(e), s = 0; s < i.length; s += 1) t.push(i[s]);
return m(t)
},
children: function(e) {
for (var t = [], a = 0; a < this.length; a += 1) for (var i = this[a].children, s = 0; s < i.length; s += 1) e && !m(i[s]).is(e) || t.push(i[s]);
return m(t)
},
filter: function(e) {
return m(f(this, e))
},
remove: function() {
for (var e = 0; e < this.length; e += 1) this[e].parentnode && this[e].parentnode.removechild(this[e]);
return this
}
};
function e(e, t) {
return void 0 === t && (t = 0),
settimeout(e, t)
}
function x() {
return date.now()
}
function t(e, t) {
void 0 === t && (t = "x");
var a, i, s, r = l(),
n = r.getcomputedstyle(e, null);
return r.webkitcssmatrix ? ((i = n.transform || n.webkittransform).split(",").length > 6 && (i = i.split(", ").map((function(e) {
return e.replace(",", ".")
})).join(", ")), s = new r.webkitcssmatrix("none" === i ? "": i)) : a = (s = 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 = r.webkitcssmatrix ? s.m41: 16 === a.length ? parsefloat(a[12]) : parsefloat(a[4])),
"y" === t && (i = r.webkitcssmatrix ? s.m42: 16 === a.length ? parsefloat(a[13]) : parsefloat(a[5])),
i || 0
}
function c(e) {
return "object" == typeof e && null !== e && e.constructor && e.constructor === object
}
function s() {
for (var e = object(arguments.length <= 0 ? void 0 : arguments[0]), t = 1; t < arguments.length; t += 1) {
var a = t < 0 || arguments.length <= t ? void 0 : arguments[t];
if (null != a) for (var i = object.keys(object(a)), s = 0, r = i.length; s < r; s += 1) {
var n = i[s],
l = object.getownpropertydescriptor(a, n);
void 0 !== l && l.enumerable && (c(e[n]) && c(a[n]) ? s(e[n], a[n]) : !c(e[n]) && c(a[n]) ? (e[n] = {},
s(e[n], a[n])) : e[n] = a[n])
}
}
return e
}
function m(e, t) {
object.keys(t).foreach((function(a) {
c(t[a]) && object.keys(t[a]).foreach((function(i) {
"function" == typeof t[a][i] && (t[a][i] = t[a][i].bind(e))
})),
e[a] = t[a]
}))
}
function z() {
return g || (g = function() {
var e = l(),
t = r();
return {
touch: !!("ontouchstart" in e || e.documenttouch && t instanceof e.documenttouch),
pointerevents: !!e.pointerevent && "maxtouchpoints" in e.navigator && e.navigator.maxtouchpoints >= 0,
observer: "mutationobserver" in e || "webkitmutationobserver" in e,
passivelistener: function() {
var t = !1;
try {
var a = object.defineproperty({},
"passive", {
get: function() {
t = !0
}
});
e.addeventlistener("testpassivelistener", null, a)
} catch(e) {}
return t
} (),
gestures: "ongesturestart" in e
}
} ()),
g
}
function p(e) {
return void 0 === e && (e = {}),
y || (y = function(e) {
var t = (void 0 === e ? {}: e).useragent,
a = z(),
i = l(),
s = i.navigator.platform,
r = t || i.navigator.useragent,
n = {
ios: !1,
android: !1
},
o = i.screen.width,
d = i.screen.height,
p = r.match(/(android);?[\s\/]+([\d.]+)?/),
u = r.match(/(ipad).*os\s([\d_]+)/),
c = r.match(/(ipod)(.*os\s([\d_]+))?/),
h = !u && r.match(/(iphone\sos|ios)\s([\d_]+)/),
v = "win32" === s,
f = "macintel" === s;
return ! u && f && a.touch && ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"].indexof(o + "x" + d) >= 0 && ((u = r.match(/(version)\/([\d.]+)/)) || (u = [0, 1, "13_0_0"]), f = !1),
p && !v && (n.os = "android", n.android = !0),
(u || h || c) && (n.os = "ios", n.ios = !0),
n
} (e)),
y
}
function k() {
return w || (w = function() {
var e, t = l();
return {
isedge: !!t.navigator.useragent.match(/edge/g),
issafari: (e = t.navigator.useragent.tolowercase(), e.indexof("safari") >= 0 && e.indexof("chrome") < 0 && e.indexof("android") < 0),
iswebview: /(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(t.navigator.useragent)
}
} ()),
w
}
object.keys(b).foreach((function(e) {
m.fn[e] = b[e]
}));
var l = {
name: "resize",
create: function() {
var e = this;
s(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(e) {
var t = l();
t.addeventlistener("resize", e.resize.resizehandler),
t.addeventlistener("orientationchange", e.resize.orientationchangehandler)
},
destroy: function(e) {
var t = l();
t.removeeventlistener("resize", e.resize.resizehandler),
t.removeeventlistener("orientationchange", e.resize.orientationchangehandler)
}
}
},
$ = {
attach: function(e, t) {
void 0 === t && (t = {});
var a = l(),
i = this,
s = new(a.mutationobserver || a.webkitmutationobserver)((function(e) {
if (1 !== e.length) {
var t = function() {
i.emit("observerupdate", e[0])
};
a.requestanimationframe ? a.requestanimationframe(t) : a.settimeout(t, 0)
} else i.emit("observerupdate", e[0])
}));
s.observe(e, {
attributes: void 0 === t.attributes || t.attributes,
childlist: void 0 === t.childlist || t.childlist,
characterdata: void 0 === t.characterdata || t.characterdata
}),
i.observer.observers.push(s)
},
init: function() {
var e = this;
if (e.support.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: e.params.observeslidechildren
}),
e.observer.attach(e.$wrapperel[0], {
attributes: !1
})
}
},
destroy: function() {
this.observer.observers.foreach((function(e) {
e.disconnect()
})),
this.observer.observers = []
}
},
i = {
name: "observer",
params: {
observer: !1,
observeparents: !1,
observeslidechildren: !1
},
create: function() {
m(this, {
observer: t(t({},
$), {},
{
observers: []
})
})
},
on: {
init: function(e) {
e.observer.init()
},
destroy: function(e) {
e.observer.destroy()
}
}
};
function o(e) {
var t = this,
a = r(),
i = l(),
s = t.toucheventsdata,
n = t.params,
o = t.touches;
if (!t.animating || !n.preventinteractionontransition) {
var d = e;
d.originalevent && (d = d.originalevent);
var p = m(d.target);
if ("wrapper" !== n.toucheventstarget || p.closest(t.wrapperel).length) if (s.istouchevent = "touchstart" === d.type, s.istouchevent || !("which" in d) || 3 !== d.which) if (! (!s.istouchevent && "button" in d && d.button > 0)) if (!s.istouched || !s.ismoved) if ( !! n.noswipingclass && "" !== n.noswipingclass && d.target && d.target.shadowroot && e.path && e.path[0] && (p = m(e.path[0])), n.noswiping && p.closest(n.noswipingselector ? n.noswipingselector: "." + n.noswipingclass)[0]) t.allowclick = !0;
else if (!n.swipehandler || p.closest(n.swipehandler)[0]) {
o.currentx = "touchstart" === d.type ? d.targettouches[0].pagex: d.pagex,
o.currenty = "touchstart" === d.type ? d.targettouches[0].pagey: d.pagey;
var u = o.currentx,
c = o.currenty,
h = n.edgeswipedetection || n.iosedgeswipedetection,
v = n.edgeswipethreshold || n.iosedgeswipethreshold;
if (!h || !(u <= v || u >= i.innerwidth - v)) {
if (s(s, {
istouched: !0,
ismoved: !1,
allowtouchcallbacks: !0,
isscrolling: void 0,
startmoving: void 0
}), o.startx = u, o.starty = c, s.touchstarttime = x(), t.allowclick = !0, t.updatesize(), t.swipedirection = void 0, n.threshold > 0 && (s.allowthresholdmove = !1), "touchstart" !== d.type) {
var f = !0;
p.is(s.formelements) && (f = !1),
a.activeelement && m(a.activeelement).is(s.formelements) && a.activeelement !== p[0] && a.activeelement.blur();
var g = f && t.allowtouchmove && n.touchstartpreventdefault; ! n.touchstartforcepreventdefault && !g || p[0].iscontenteditable || d.preventdefault()
}
t.emit("touchstart", d)
}
}
}
}
function a(e) {
var t = r(),
a = this,
i = a.toucheventsdata,
s = a.params,
n = a.touches,
l = a.rtltranslate,
o = e;
if (o.originalevent && (o = o.originalevent), i.istouched) {
if (!i.istouchevent || "touchmove" === o.type) {
var d = "touchmove" === o.type && o.targettouches && (o.targettouches[0] || o.changedtouches[0]),
p = "touchmove" === o.type ? d.pagex: o.pagex,
u = "touchmove" === o.type ? d.pagey: o.pagey;
if (o.preventedbynestedswiper) return n.startx = p,
void(n.starty = u);
if (!a.allowtouchmove) return a.allowclick = !1,
void(i.istouched && (s(n, {
startx: p,
starty: u,
currentx: p,
currenty: u
}), i.touchstarttime = x()));
if (i.istouchevent && s.touchreleaseonedges && !s.loop) if (a.isvertical()) {
if (u < n.starty && a.translate <= a.maxtranslate() || u > n.starty && a.translate >= a.mintranslate()) return i.istouched = !1,
void(i.ismoved = !1)
} else if (p < n.startx && a.translate <= a.maxtranslate() || p > n.startx && a.translate >= a.mintranslate()) return;
if (i.istouchevent && t.activeelement && o.target === t.activeelement && m(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)) {
n.currentx = p,
n.currenty = u;
var c = n.currentx - n.startx,
h = n.currenty - n.starty;
if (! (a.params.threshold && math.sqrt(math.pow(c, 2) + math.pow(h, 2)) < a.params.threshold)) {
var v;
if (void 0 === i.isscrolling) a.ishorizontal() && n.currenty === n.starty || a.isvertical() && n.currentx === n.startx ? i.isscrolling = !1 : c * c + h * h >= 25 && (v = 180 * math.atan2(math.abs(h), math.abs(c)) / math.pi, i.isscrolling = a.ishorizontal() ? v > s.touchangle: 90 - v > s.touchangle);
if (i.isscrolling && a.emit("touchmoveopposite", o), void 0 === i.startmoving && (n.currentx === n.startx && n.currenty === n.starty || (i.startmoving = !0)), i.isscrolling) i.istouched = !1;
else if (i.startmoving) {
a.allowclick = !1,
!s.cssmode && o.cancelable && o.preventdefault(),
s.touchmovestoppropagation && !s.nested && o.stoppropagation(),
i.ismoved || (s.loop && a.loopfix(), i.starttranslate = a.gettranslate(), a.settransition(0), a.animating && a.$wrapperel.trigger("webkittransitionend transitionend"), i.allowmomentumbounce = !1, !s.grabcursor || !0 !== a.allowslidenext && !0 !== a.allowslideprev || a.setgrabcursor(!0), a.emit("sliderfirstmove", o)),
a.emit("slidermove", o),
i.ismoved = !0;
var f = a.ishorizontal() ? c: h;
n.diff = f,
f *= s.touchratio,
l && (f = -f),
a.swipedirection = f > 0 ? "prev": "next",
i.currenttranslate = f + i.starttranslate;
var g = !0,
y = s.resistanceratio;
if (s.touchreleaseonedges && (y = 0), f > 0 && i.currenttranslate > a.mintranslate() ? (g = !1, s.resistance && (i.currenttranslate = a.mintranslate() - 1 + math.pow( - a.mintranslate() + i.starttranslate + f, y))) : f < 0 && i.currenttranslate < a.maxtranslate() && (g = !1, s.resistance && (i.currenttranslate = a.maxtranslate() + 1 - math.pow(a.maxtranslate() - i.starttranslate - f, y))), g && (o.preventedbynestedswiper = !0), !a.allowslidenext && "next" === a.swipedirection && i.currenttranslate < i.starttranslate && (i.currenttranslate = i.starttranslate), !a.allowslideprev && "prev" === a.swipedirection && i.currenttranslate > i.starttranslate && (i.currenttranslate = i.starttranslate), s.threshold > 0) {
if (! (math.abs(f) > s.threshold || i.allowthresholdmove)) return void(i.currenttranslate = i.starttranslate);
if (!i.allowthresholdmove) return i.allowthresholdmove = !0,
n.startx = n.currentx,
n.starty = n.currenty,
i.currenttranslate = i.starttranslate,
void(n.diff = a.ishorizontal() ? n.currentx - n.startx: n.currenty - n.starty)
}
s.followfinger && !s.cssmode && ((s.freemode || s.watchslidesprogress || s.watchslidesvisibility) && (a.updateactiveindex(), a.updateslidesclasses()), s.freemode && (0 === i.velocities.length && i.velocities.push({
position: n[a.ishorizontal() ? "startx": "starty"],
time: i.touchstarttime
}), i.velocities.push({
position: n[a.ishorizontal() ? "currentx": "currenty"],
time: x()
})), a.updateprogress(i.currenttranslate), a.settranslate(i.currenttranslate))
}
}
}
}
} else i.startmoving && i.isscrolling && a.emit("touchmoveopposite", o)
}
function d(e) {
var t = this,
a = t.toucheventsdata,
i = t.params,
s = t.touches,
r = t.rtltranslate,
n = t.$wrapperel,
l = t.slidesgrid,
o = t.snapgrid,
d = e;
if (d.originalevent && (d = d.originalevent), a.allowtouchcallbacks && t.emit("touchend", d), a.allowtouchcallbacks = !1, !a.istouched) return a.ismoved && i.grabcursor && t.setgrabcursor(!1),
a.ismoved = !1,
void(a.startmoving = !1);
i.grabcursor && a.ismoved && a.istouched && (!0 === t.allowslidenext || !0 === t.allowslideprev) && t.setgrabcursor(!1);
var p, u = x(),
c = u - a.touchstarttime;
if (t.allowclick && (t.updateclickedslide(d), t.emit("tap click", d), c < 300 && u - a.lastclicktime < 300 && t.emit("doubletap doubleclick", d)), a.lastclicktime = x(), e((function() {
t.destroyed || (t.allowclick = !0)
})), !a.istouched || !a.ismoved || !t.swipedirection || 0 === s.diff || a.currenttranslate === a.starttranslate) return a.istouched = !1,
a.ismoved = !1,
void(a.startmoving = !1);
if (a.istouched = !1, a.ismoved = !1, a.startmoving = !1, p = i.followfinger ? r ? t.translate: -t.translate: -a.currenttranslate, !i.cssmode) if (i.freemode) {
if (p < -t.mintranslate()) return void t.slideto(t.activeindex);
if (p > -t.maxtranslate()) return void(t.slides.length < o.length ? t.slideto(o.length - 1) : t.slideto(t.slides.length - 1));
if (i.freemodemomentum) {
if (a.velocities.length > 1) {
var h = a.velocities.pop(),
v = a.velocities.pop(),
f = h.position - v.position,
m = h.time - v.time;
t.velocity = f / m,
t.velocity /= 2,
math.abs(t.velocity) < i.freemodeminimumvelocity && (t.velocity = 0),
(m > 150 || x() - h.time > 300) && (t.velocity = 0)
} else t.velocity = 0;
t.velocity *= i.freemodemomentumvelocityratio,
a.velocities.length = 0;
var g = 1e3 * i.freemodemomentumratio,
y = t.velocity * g,
w = t.translate + y;
r && (w = -w);
var b, t, c = !1,
s = 20 * math.abs(t.velocity) * i.freemodemomentumbounceratio;
if (w < t.maxtranslate()) i.freemodemomentumbounce ? (w + t.maxtranslate() < -s && (w = t.maxtranslate() - s), b = t.maxtranslate(), c = !0, a.allowmomentumbounce = !0) : w = t.maxtranslate(),
i.loop && i.centeredslides && (t = !0);
else if (w > t.mintranslate()) i.freemodemomentumbounce ? (w - t.mintranslate() > s && (w = t.mintranslate() + s), b = t.mintranslate(), c = !0, a.allowmomentumbounce = !0) : w = t.mintranslate(),
i.loop && i.centeredslides && (t = !0);
else if (i.freemodesticky) {
for (var m, z = 0; z < o.length; z += 1) if (o[z] > -w) {
m = z;
break
}
w = -(w = math.abs(o[m] - w) < math.abs(o[m - 1] - w) || "next" === t.swipedirection ? o[m] : o[m - 1])
}
if (t && t.once("transitionend", (function() {
t.loopfix()
})), 0 !== t.velocity) {
if (g = r ? math.abs(( - w - t.translate) / t.velocity) : math.abs((w - t.translate) / t.velocity), i.freemodesticky) {
var p = math.abs((r ? -w: w) - t.translate),
k = t.slidessizesgrid[t.activeindex];
g = p < k ? i.speed: p < 2 * k ? 1.5 * i.speed: 2.5 * i.speed
}
} else if (i.freemodesticky) return void t.slidetoclosest();
i.freemodemomentumbounce && c ? (t.updateprogress(b), t.settransition(g), t.settranslate(w), t.transitionstart(!0, t.swipedirection), t.animating = !0, n.transitionend((function() {
t && !t.destroyed && a.allowmomentumbounce && (t.emit("momentumbounce"), t.settransition(i.speed), settimeout((function() {
t.settranslate(b),
n.transitionend((function() {
t && !t.destroyed && t.transitionend()
}))
}), 0))
}))) : t.velocity ? (t.updateprogress(w), t.settransition(g), t.settranslate(w), t.transitionstart(!0, t.swipedirection), t.animating || (t.animating = !0, n.transitionend((function() {
t && !t.destroyed && t.transitionend()
})))) : t.updateprogress(w),
t.updateactiveindex(),
t.updateslidesclasses()
} else if (i.freemodesticky) return void t.slidetoclosest(); (!i.freemodemomentum || c >= i.longswipesms) && (t.updateprogress(), t.updateactiveindex(), t.updateslidesclasses())
} else {
for (var l = 0,
$ = t.slidessizesgrid[0], i = 0; i < l.length; i += i < i.slidespergroupskip ? 1 : i.slidespergroup) {
var o = i < i.slidespergroupskip - 1 ? 1 : i.slidespergroup;
void 0 !== l[i + o] ? p >= l[i] && p < l[i + o] && (l = i, $ = l[i + o] - l[i]) : p >= l[i] && (l = i, $ = l[l.length - 1] - l[l.length - 2])
}
var a = (p - l[l]) / $,
d = l < i.slidespergroupskip - 1 ? 1 : i.slidespergroup;
if (c > i.longswipesms) {
if (!i.longswipes) return void t.slideto(t.activeindex);
"next" === t.swipedirection && (a >= i.longswipesratio ? t.slideto(l + d) : t.slideto(l)),
"prev" === t.swipedirection && (a > 1 - i.longswipesratio ? t.slideto(l + d) : t.slideto(l))
} else {
if (!i.shortswipes) return void t.slideto(t.activeindex);
t.navigation && (d.target === t.navigation.nextel || d.target === t.navigation.prevel) ? d.target === t.navigation.nextel ? t.slideto(l + d) : t.slideto(l) : ("next" === t.swipedirection && t.slideto(l + d), "prev" === t.swipedirection && t.slideto(l))
}
}
}
function g() {
var e = this,
t = e.params,
a = e.el;
if (!a || 0 !== a.offsetwidth) {
t.breakpoints && e.setbreakpoint();
var i = e.allowslidenext,
s = e.allowslideprev,
r = e.snapgrid;
e.allowslidenext = !0,
e.allowslideprev = !0,
e.updatesize(),
e.updateslides(),
e.updateslidesclasses(),
("auto" === t.slidesperview || t.slidesperview > 1) && e.isend && !e.isbeginning && !e.params.centeredslides ? e.slideto(e.slides.length - 1, 0, !1, !0) : e.slideto(e.activeindex, 0, !1, !0),
e.autoplay && e.autoplay.running && e.autoplay.paused && e.autoplay.run(),
e.allowslideprev = s,
e.allowslidenext = i,
e.params.watchoverflow && r !== e.snapgrid && e.checkoverflow()
}
}
function n(e) {
var t = this;
t.allowclick || (t.params.preventclicks && e.preventdefault(), t.params.preventclickspropagation && t.animating && (e.stoppropagation(), e.stopimmediatepropagation()))
}
function b() {
var e = this,
t = e.wrapperel,
a = e.rtltranslate;
e.previoustranslate = e.translate,
e.ishorizontal() ? e.translate = a ? t.scrollwidth - t.offsetwidth - t.scrollleft: -t.scrollleft: e.translate = -t.scrolltop,
-0 === e.translate && (e.translate = 0),
e.updateactiveindex(),
e.updateslidesclasses();
var i = e.maxtranslate() - e.mintranslate(); (0 === i ? 0 : (e.translate - e.mintranslate()) / i) !== e.progress && e.updateprogress(a ? -e.translate: e.translate),
e.emit("settranslate", e.translate, !1)
}
var h = !1;
function x() {}
var y = {
init: !0,
direction: "horizontal",
toucheventstarget: "container",
initialslide: 0,
speed: 300,
cssmode: !1,
updateonwindowresize: !0,
nested: !1,
width: null,
height: null,
preventinteractionontransition: !1,
useragent: null,
url: null,
edgeswipedetection: !1,
edgeswipethreshold: 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,
slidespergroupskip: 0,
centeredslides: !1,
centeredslidesbounds: !1,
slidesoffsetbefore: 0,
slidesoffsetafter: 0,
normalizeslideindex: !0,
centerinsufficientslides: !1,
watchoverflow: !1,
roundlengths: !1,
touchratio: 1,
touchangle: 45,
simulatetouch: !0,
shortswipes: !0,
longswipes: !0,
longswipesratio: .5,
longswipesms: 300,
followfinger: !0,
allowtouchmove: !0,
threshold: 0,
touchmovestoppropagation: !1,
touchstartpreventdefault: !0,
touchstartforcepreventdefault: !1,
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,
looppreventsslide: !0,
allowslideprev: !0,
allowslidenext: !0,
swipehandler: null,
noswiping: !0,
noswipingclass: "swiper-no-swiping",
noswipingselector: null,
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,
_emitclasses: !1
},
v = {
modular: {
useparams: function(e) {
var t = this;
t.modules && object.keys(t.modules).foreach((function(a) {
var i = t.modules[a];
i.params && s(e, i.params)
}))
},
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.on && t.on && object.keys(i.on).foreach((function(e) {
t.on(e, i.on[e])
})),
i.create && i.create.bind(t)(s)
}))
}
},
eventsemitter: {
on: function(e, t, a) {
var i = this;
if ("function" != typeof t) return i;
var s = a ? "unshift": "push";
return e.split(" ").foreach((function(e) {
i.eventslisteners[e] || (i.eventslisteners[e] = []),
i.eventslisteners[e][s](t)
})),
i
},
once: function(e, t, a) {
var i = this;
if ("function" != typeof t) return i;
function s() {
i.off(e, s),
s.__emitterproxy && delete s.__emitterproxy;
for (var a = arguments.length,
r = new array(a), n = 0; n < a; n++) r[n] = arguments[n];
t.apply(i, r)
}
return s.__emitterproxy = t,
i.on(e, s, a)
},
onany: function(e, t) {
var a = this;
if ("function" != typeof e) return a;
var i = t ? "unshift": "push";
return a.eventsanylisteners.indexof(e) < 0 && a.eventsanylisteners[i](e),
a
},
offany: function(e) {
var t = this;
if (!t.eventsanylisteners) return t;
var a = t.eventsanylisteners.indexof(e);
return a >= 0 && t.eventsanylisteners.splice(a, 1),
t
},
off: function(e, t) {
var a = this;
return a.eventslisteners ? (e.split(" ").foreach((function(e) {
void 0 === t ? a.eventslisteners[e] = [] : a.eventslisteners[e] && a.eventslisteners[e].foreach((function(i, s) { (i === t || i.__emitterproxy && i.__emitterproxy === t) && a.eventslisteners[e].splice(s, 1)
}))
})), a) : a
},
emit: function() {
var e, t, a, i = this;
if (!i.eventslisteners) return i;
for (var s = arguments.length,
r = new array(s), n = 0; n < s; n++) r[n] = arguments[n];
"string" == typeof r[0] || array.isarray(r[0]) ? (e = r[0], t = r.slice(1, r.length), a = i) : (e = r[0].events, t = r[0].data, a = r[0].context || i),
t.unshift(a);
var l = array.isarray(e) ? e: e.split(" ");
return l.foreach((function(e) {
i.eventsanylisteners && i.eventsanylisteners.length && i.eventsanylisteners.foreach((function(i) {
i.apply(a, [e].concat(t))
})),
i.eventslisteners && i.eventslisteners[e] && i.eventslisteners[e].foreach((function(e) {
e.apply(a, t)
}))
})),
i
}
},
update: {
updatesize: function() {
var e, t, a = this,
i = a.$el;
e = void 0 !== a.params.width && null !== a.params.width ? a.params.width: i[0].clientwidth,
t = void 0 !== a.params.height && null !== a.params.height ? a.params.height: i[0].clientheight,
0 === e && a.ishorizontal() || 0 === t && a.isvertical() || (e = e - parseint(i.css("padding-left") || 0, 10) - parseint(i.css("padding-right") || 0, 10), t = t - parseint(i.css("padding-top") || 0, 10) - parseint(i.css("padding-bottom") || 0, 10), number.isnan(e) && (e = 0), number.isnan(t) && (t = 0), s(a, {
width: e,
height: t,
size: a.ishorizontal() ? e: t
}))
},
updateslides: function() {
var e = this,
t = l(),
a = e.params,
i = e.$wrapperel,
s = e.size,
r = e.rtltranslate,
n = e.wrongrtl,
o = e.virtual && a.virtual.enabled,
d = o ? e.virtual.slides.length: e.slides.length,
p = i.children("." + e.params.slideclass),
u = o ? e.virtual.slides.length: p.length,
c = [],
h = [],
v = [];
function f(e, t) {
return ! a.cssmode || t !== p.length - 1
}
var m = a.slidesoffsetbefore;
"function" == typeof m && (m = a.slidesoffsetbefore.call(e));
var g = a.slidesoffsetafter;
"function" == typeof g && (g = a.slidesoffsetafter.call(e));
var y = e.snapgrid.length,
w = e.snapgrid.length,
b = a.spacebetween,
e = -m,
x = 0,
t = 0;
if (void 0 !== s) {
var c, m;
"string" == typeof b && b.indexof("%") >= 0 && (b = parsefloat(b.replace("%", "")) / 100 * s),
e.virtualsize = -b,
r ? p.css({
marginleft: "",
margintop: ""
}) : p.css({
marginright: "",
marginbottom: ""
}),
a.slidespercolumn > 1 && (c = math.floor(u / a.slidespercolumn) === u / e.params.slidespercolumn ? u: math.ceil(u / a.slidespercolumn) * a.slidespercolumn, "auto" !== a.slidesperview && "row" === a.slidespercolumnfill && (c = math.max(c, a.slidesperview * a.slidespercolumn)));
for (var z, p = a.slidespercolumn,
k = c / p,
l = math.floor(u / a.slidespercolumn), $ = 0; $ < u; $ += 1) {
m = 0;
var i = p.eq($);
if (a.slidespercolumn > 1) {
var o = void 0,
a = void 0,
d = void 0;
if ("row" === a.slidespercolumnfill && a.slidespergroup > 1) {
var g = math.floor($ / (a.slidespergroup * a.slidespercolumn)),
n = $ - a.slidespercolumn * a.slidespergroup * g,
b = 0 === g ? a.slidespergroup: math.min(math.ceil((u - g * p * a.slidespergroup) / p), a.slidespergroup);
o = (a = n - (d = math.floor(n / b)) * b + g * a.slidespergroup) + d * c / p,
i.css({
"-webkit-box-ordinal-group": o,
"-moz-box-ordinal-group": o,
"-ms-flex-order": o,
"-webkit-order": o,
order: o
})
} else "column" === a.slidespercolumnfill ? (d = $ - (a = math.floor($ / p)) * p, (a > l || a === l && d === p - 1) && (d += 1) >= p && (d = 0, a += 1)) : a = $ - (d = math.floor($ / k)) * k;
i.css("margin-" + (e.ishorizontal() ? "top": "left"), 0 !== d && a.spacebetween && a.spacebetween + "px")
}
if ("none" !== i.css("display")) {
if ("auto" === a.slidesperview) {
var h = t.getcomputedstyle(i[0], null),
x = i[0].style.transform,
y = i[0].style.webkittransform;
if (x && (i[0].style.transform = "none"), y && (i[0].style.webkittransform = "none"), a.roundlengths) m = e.ishorizontal() ? i.outerwidth(!0) : i.outerheight(!0);
else if (e.ishorizontal()) {
var v = parsefloat(h.getpropertyvalue("width") || 0),
f = parsefloat(h.getpropertyvalue("padding-left") || 0),
r = parsefloat(h.getpropertyvalue("padding-right") || 0),
w = parsefloat(h.getpropertyvalue("margin-left") || 0),
q = parsefloat(h.getpropertyvalue("margin-right") || 0),
j = h.getpropertyvalue("box-sizing");
if (j && "border-box" === j) m = v + w + q;
else {
var _ = i[0],
u = _.clientwidth;
m = v + f + r + w + q + (_.offsetwidth - u)
}
} else {
var k = parsefloat(h.getpropertyvalue("height") || 0),
z = parsefloat(h.getpropertyvalue("padding-top") || 0),
j = parsefloat(h.getpropertyvalue("padding-bottom") || 0),
q = parsefloat(h.getpropertyvalue("margin-top") || 0),
ee = parsefloat(h.getpropertyvalue("margin-bottom") || 0),
te = h.getpropertyvalue("box-sizing");
if (te && "border-box" === te) m = k + q + ee;
else {
var ae = i[0],
ie = ae.clientheight;
m = k + z + j + q + ee + (ae.offsetheight - ie)
}
}
x && (i[0].style.transform = x),
y && (i[0].style.webkittransform = y),
a.roundlengths && (m = math.floor(m))
} else m = (s - (a.slidesperview - 1) * b) / a.slidesperview,
a.roundlengths && (m = math.floor(m)),
p[$] && (e.ishorizontal() ? p[$].style.width = m + "px": p[$].style.height = m + "px");
p[$] && (p[$].swiperslidesize = m),
v.push(m),
a.centeredslides ? (e = e + m / 2 + x / 2 + b, 0 === x && 0 !== $ && (e = e - s / 2 - b), 0 === $ && (e = e - s / 2 - b), math.abs(e) < .001 && (e = 0), a.roundlengths && (e = math.floor(e)), t % a.slidespergroup == 0 && c.push(e), h.push(e)) : (a.roundlengths && (e = math.floor(e)), (t - math.min(e.params.slidespergroupskip, t)) % e.params.slidespergroup == 0 && c.push(e), h.push(e), e = e + m + b),
e.virtualsize += m + b,
x = m,
t += 1
}
}
if (e.virtualsize = math.max(e.virtualsize, s) + g, r && n && ("slide" === a.effect || "coverflow" === a.effect) && i.css({
width: e.virtualsize + a.spacebetween + "px"
}), a.setwrappersize && (e.ishorizontal() ? i.css({
width: e.virtualsize + a.spacebetween + "px"
}) : i.css({
height: e.virtualsize + a.spacebetween + "px"
})), a.slidespercolumn > 1 && (e.virtualsize = (m + a.spacebetween) * c, e.virtualsize = math.ceil(e.virtualsize / a.slidespercolumn) - a.spacebetween, e.ishorizontal() ? i.css({
width: e.virtualsize + a.spacebetween + "px"
}) : i.css({
height: e.virtualsize + a.spacebetween + "px"
}), a.centeredslides)) {
z = [];
for (var se = 0; se < c.length; se += 1) {
var re = c[se];
a.roundlengths && (re = math.floor(re)),
c[se] < e.virtualsize + c[0] && z.push(re)
}
c = z
}
if (!a.centeredslides) {
z = [];
for (var ne = 0; ne < c.length; ne += 1) {
var le = c[ne];
a.roundlengths && (le = math.floor(le)),
c[ne] <= e.virtualsize - s && z.push(le)
}
c = z,
math.floor(e.virtualsize - s) - math.floor(c[c.length - 1]) > 1 && c.push(e.virtualsize - s)
}
if (0 === c.length && (c = [0]), 0 !== a.spacebetween && (e.ishorizontal() ? r ? p.filter(f).css({
marginleft: b + "px"
}) : p.filter(f).css({
marginright: b + "px"
}) : p.filter(f).css({
marginbottom: b + "px"
})), a.centeredslides && a.centeredslidesbounds) {
var oe = 0;
v.foreach((function(e) {
oe += e + (a.spacebetween ? a.spacebetween: 0)
}));
var de = (oe -= a.spacebetween) - s;
c = c.map((function(e) {
return e < 0 ? -m: e > de ? de + g: e
}))
}
if (a.centerinsufficientslides) {
var pe = 0;
if (v.foreach((function(e) {
pe += e + (a.spacebetween ? a.spacebetween: 0)
})), (pe -= a.spacebetween) < s) {
var ue = (s - pe) / 2;
c.foreach((function(e, t) {
c[t] = e - ue
})),
h.foreach((function(e, t) {
h[t] = e + ue
}))
}
}
s(e, {
slides: p,
snapgrid: c,
slidesgrid: h,
slidessizesgrid: v
}),
u !== d && e.emit("slideslengthchange"),
c.length !== y && (e.params.watchoverflow && e.checkoverflow(), e.emit("snapgridlengthchange")),
h.length !== w && e.emit("slidesgridlengthchange"),
(a.watchslidesprogress || a.watchslidesvisibility) && e.updateslidesoffset()
}
},
updateautoheight: function(e) {
var t, a = this,
i = [],
s = 0;
if ("number" == typeof e ? a.settransition(e) : !0 === e && a.settransition(a.params.speed), "auto" !== a.params.slidesperview && a.params.slidesperview > 1) if (a.params.centeredslides) a.visibleslides.each((function(e) {
i.push(e)
}));
else for (t = 0; t < math.ceil(a.params.slidesperview); t += 1) {
var r = a.activeindex + t;
if (r > a.slides.length) break;
i.push(a.slides.eq(r)[0])
} else i.push(a.slides.eq(a.activeindex)[0]);
for (t = 0; t < i.length; t += 1) if (void 0 !== i[t]) {
var n = i[t].offsetheight;
s = n > s ? n: s
}
s && a.$wrapperel.css("height", s + "px")
},
updateslidesoffset: function() {
for (var e = this.slides,
t = 0; t < e.length; t += 1) e[t].swiperslideoffset = this.ishorizontal() ? e[t].offsetleft: e[t].offsettop
},
updateslidesprogress: function(e) {
void 0 === e && (e = this && this.translate || 0);
var t = this,
a = t.params,
i = t.slides,
s = t.rtltranslate;
if (0 !== i.length) {
void 0 === i[0].swiperslideoffset && t.updateslidesoffset();
var r = -e;
s && (r = e),
i.removeclass(a.slidevisibleclass),
t.visibleslidesindexes = [],
t.visibleslides = [];
for (var n = 0; n < i.length; n += 1) {
var l = i[n],
o = (r + (a.centeredslides ? t.mintranslate() : 0) - l.swiperslideoffset) / (l.swiperslidesize + a.spacebetween);
if (a.watchslidesvisibility || a.centeredslides && a.autoheight) {
var d = -(r - l.swiperslideoffset),
p = d + t.slidessizesgrid[n]; (d >= 0 && d < t.size - 1 || p > 1 && p <= t.size || d <= 0 && p >= t.size) && (t.visibleslides.push(l), t.visibleslidesindexes.push(n), i.eq(n).addclass(a.slidevisibleclass))
}
l.progress = s ? -o: o
}
t.visibleslides = m(t.visibleslides)
}
},
updateprogress: function(e) {
var t = this;
if (void 0 === e) {
var a = t.rtltranslate ? -1 : 1;
e = t && t.translate && t.translate * a || 0
}
var i = t.params,
s = t.maxtranslate() - t.mintranslate(),
r = t.progress,
n = t.isbeginning,
l = t.isend,
o = n,
d = l;
0 === s ? (r = 0, n = !0, l = !0) : (n = (r = (e - t.mintranslate()) / s) <= 0, l = r >= 1),
s(t, {
progress: r,
isbeginning: n,
isend: l
}),
(i.watchslidesprogress || i.watchslidesvisibility || i.centeredslides && i.autoheight) && t.updateslidesprogress(e),
n && !o && t.emit("reachbeginning toedge"),
l && !d && t.emit("reachend toedge"),
(o && !n || d && !l) && t.emit("fromedge"),
t.emit("progress", r)
},
updateslidesclasses: function() {
var e, t = this,
a = t.slides,
i = t.params,
s = t.$wrapperel,
r = t.activeindex,
n = t.realindex,
l = t.virtual && i.virtual.enabled;
a.removeclass(i.slideactiveclass + " " + i.slidenextclass + " " + i.slideprevclass + " " + i.slideduplicateactiveclass + " " + i.slideduplicatenextclass + " " + i.slideduplicateprevclass),
(e = l ? t.$wrapperel.find("." + i.slideclass + '[data-swiper-slide-index="' + r + '"]') : a.eq(r)).addclass(i.slideactiveclass),
i.loop && (e.hasclass(i.slideduplicateclass) ? s.children("." + i.slideclass + ":not(." + i.slideduplicateclass + ')[data-swiper-slide-index="' + n + '"]').addclass(i.slideduplicateactiveclass) : s.children("." + i.slideclass + "." + i.slideduplicateclass + '[data-swiper-slide-index="' + n + '"]').addclass(i.slideduplicateactiveclass));
var o = e.nextall("." + i.slideclass).eq(0).addclass(i.slidenextclass);
i.loop && 0 === o.length && (o = a.eq(0)).addclass(i.slidenextclass);
var d = e.prevall("." + i.slideclass).eq(0).addclass(i.slideprevclass);
i.loop && 0 === d.length && (d = a.eq( - 1)).addclass(i.slideprevclass),
i.loop && (o.hasclass(i.slideduplicateclass) ? s.children("." + i.slideclass + ":not(." + i.slideduplicateclass + ')[data-swiper-slide-index="' + o.attr("data-swiper-slide-index") + '"]').addclass(i.slideduplicatenextclass) : s.children("." + i.slideclass + "." + i.slideduplicateclass + '[data-swiper-slide-index="' + o.attr("data-swiper-slide-index") + '"]').addclass(i.slideduplicatenextclass), d.hasclass(i.slideduplicateclass) ? s.children("." + i.slideclass + ":not(." + i.slideduplicateclass + ')[data-swiper-slide-index="' + d.attr("data-swiper-slide-index") + '"]').addclass(i.slideduplicateprevclass) : s.children("." + i.slideclass + "." + i.slideduplicateclass + '[data-swiper-slide-index="' + d.attr("data-swiper-slide-index") + '"]').addclass(i.slideduplicateprevclass)),
t.emitslidesclasses()
},
updateactiveindex: function(e) {
var t, a = this,
i = a.rtltranslate ? a.translate: -a.translate,
s = a.slidesgrid,
r = a.snapgrid,
n = a.params,
l = a.activeindex,
o = a.realindex,
d = a.snapindex,
p = e;
if (void 0 === p) {
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 ? p = u: i >= s[u] && i < s[u + 1] && (p = u + 1) : i >= s[u] && (p = u);
n.normalizeslideindex && (p < 0 || void 0 === p) && (p = 0)
}
if (r.indexof(i) >= 0) t = r.indexof(i);
else {
var c = math.min(n.slidespergroupskip, p);
t = c + math.floor((p - c) / n.slidespergroup)
}
if (t >= r.length && (t = r.length - 1), p !== l) {
var h = parseint(a.slides.eq(p).attr("data-swiper-slide-index") || p, 10);
s(a, {
snapindex: t,
realindex: h,
previousindex: l,
activeindex: p
}),
a.emit("activeindexchange"),
a.emit("snapindexchange"),
o !== h && a.emit("realindexchange"),
(a.initialized || a.params.runcallbacksoninit) && a.emit("slidechange")
} else t !== d && (a.snapindex = t, a.emit("snapindexchange"))
},
updateclickedslide: function(e) {
var t = this,
a = t.params,
i = m(e.target).closest("." + a.slideclass)[0],
s = !1;
if (i) for (var r = 0; r < t.slides.length; r += 1) t.slides[r] === i && (s = !0);
if (!i || !s) return t.clickedslide = void 0,
void(t.clickedindex = void 0);
t.clickedslide = i,
t.virtual && t.params.virtual.enabled ? t.clickedindex = parseint(m(i).attr("data-swiper-slide-index"), 10) : t.clickedindex = m(i).index(),
a.slidetoclickedslide && void 0 !== t.clickedindex && t.clickedindex !== t.activeindex && t.slidetoclickedslide()
}
},
translate: {
gettranslate: function(e) {
void 0 === e && (e = this.ishorizontal() ? "x": "y");
var t = this,
a = t.params,
i = t.rtltranslate,
s = t.translate,
r = t.$wrapperel;
if (a.virtualtranslate) return i ? -s: s;
if (a.cssmode) return s;
var n = t(r[0], e);
return i && (n = -n),
n || 0
},
settranslate: function(e, t) {
var a = this,
i = a.rtltranslate,
s = a.params,
r = a.$wrapperel,
n = a.wrapperel,
l = a.progress,
o = 0,
d = 0;
a.ishorizontal() ? o = i ? -e: e: d = e,
s.roundlengths && (o = math.floor(o), d = math.floor(d)),
s.cssmode ? n[a.ishorizontal() ? "scrollleft": "scrolltop"] = a.ishorizontal() ? -o: -d: s.virtualtranslate || r.transform("translate3d(" + o + "px, " + d + "px, 0px)"),
a.previoustranslate = a.translate,
a.translate = a.ishorizontal() ? o: d;
var p = a.maxtranslate() - a.mintranslate(); (0 === p ? 0 : (e - a.mintranslate()) / p) !== l && a.updateprogress(e),
a.emit("settranslate", a.translate, t)
},
mintranslate: function() {
return - this.snapgrid[0]
},
maxtranslate: function() {
return - this.snapgrid[this.snapgrid.length - 1]
},
translateto: function(e, t, a, i, s) {
void 0 === e && (e = 0),
void 0 === t && (t = this.params.speed),
void 0 === a && (a = !0),
void 0 === i && (i = !0);
var r = this,
n = r.params,
l = r.wrapperel;
if (r.animating && n.preventinteractionontransition) return ! 1;
var o, d = r.mintranslate(),
p = r.maxtranslate();
if (o = i && e > d ? d: i && e < p ? p: e, r.updateprogress(o), n.cssmode) {
var u, c = r.ishorizontal();
if (0 === t) l[c ? "scrollleft": "scrolltop"] = -o;
else if (l.scrollto) l.scrollto(((u = {})[c ? "left": "top"] = -o, u.behavior = "smooth", u));
else l[c ? "scrollleft": "scrolltop"] = -o;
return ! 0
}
return 0 === t ? (r.settransition(0), r.settranslate(o), a && (r.emit("beforetransitionstart", t, s), r.emit("transitionend"))) : (r.settransition(t), r.settranslate(o), a && (r.emit("beforetransitionstart", t, s), r.emit("transitionstart")), r.animating || (r.animating = !0, r.ontranslatetowrappertransitionend || (r.ontranslatetowrappertransitionend = function(e) {
r && !r.destroyed && e.target === this && (r.$wrapperel[0].removeeventlistener("transitionend", r.ontranslatetowrappertransitionend), r.$wrapperel[0].removeeventlistener("webkittransitionend", r.ontranslatetowrappertransitionend), r.ontranslatetowrappertransitionend = null, delete r.ontranslatetowrappertransitionend, a && r.emit("transitionend"))
}), r.$wrapperel[0].addeventlistener("transitionend", r.ontranslatetowrappertransitionend), r.$wrapperel[0].addeventlistener("webkittransitionend", r.ontranslatetowrappertransitionend))),
!0
}
},
transition: {
settransition: function(e, t) {
var a = this;
a.params.cssmode || a.$wrapperel.transition(e),
a.emit("settransition", e, t)
},
transitionstart: function(e, t) {
void 0 === e && (e = !0);
var a = this,
i = a.activeindex,
s = a.params,
r = a.previousindex;
if (!s.cssmode) {
s.autoheight && a.updateautoheight();
var n = t;
if (n || (n = i > r ? "next": i < r ? "prev": "reset"), a.emit("transitionstart"), e && i !== r) {
if ("reset" === n) return void a.emit("slideresettransitionstart");
a.emit("slidechangetransitionstart"),
"next" === n ? a.emit("slidenexttransitionstart") : a.emit("slideprevtransitionstart")
}
}
},
transitionend: function(e, t) {
void 0 === e && (e = !0);
var a = this,
i = a.activeindex,
s = a.previousindex,
r = a.params;
if (a.animating = !1, !r.cssmode) {
a.settransition(0);
var n = t;
if (n || (n = i > s ? "next": i < s ? "prev": "reset"), a.emit("transitionend"), e && i !== s) {
if ("reset" === n) return void a.emit("slideresettransitionend");
a.emit("slidechangetransitionend"),
"next" === n ? a.emit("slidenexttransitionend") : a.emit("slideprevtransitionend")
}
}
}
},
slide: {
slideto: function(e, t, a, i) {
if (void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === a && (a = !0), "number" != typeof e && "string" != typeof e) throw new error("the 'index' argument cannot have type other than 'number' or 'string'. [" + typeof e + "] given.");
if ("string" == typeof e) {
var s = parseint(e, 10);
if (!isfinite(s)) throw new error("the passed-in 'index' (string) couldn't be converted to 'number'. [" + e + "] given.");
e = s
}
var r = this,
n = e;
n < 0 && (n = 0);
var l = r.params,
o = r.snapgrid,
d = r.slidesgrid,
p = r.previousindex,
u = r.activeindex,
c = r.rtltranslate,
h = r.wrapperel;
if (r.animating && l.preventinteractionontransition) return ! 1;
var v = math.min(r.params.slidespergroupskip, n),
f = v + math.floor((n - v) / r.params.slidespergroup);
f >= o.length && (f = o.length - 1),
(u || l.initialslide || 0) === (p || 0) && a && r.emit("beforeslidechangestart");
var m, g = -o[f];
if (r.updateprogress(g), l.normalizeslideindex) for (var y = 0; y < d.length; y += 1) - math.floor(100 * g) >= math.floor(100 * d[y]) && (n = y);
if (r.initialized && n !== u) {
if (!r.allowslidenext && g < r.translate && g < r.mintranslate()) return ! 1;
if (!r.allowslideprev && g > r.translate && g > r.maxtranslate() && (u || 0) !== n) return ! 1
}
if (m = n > u ? "next": n < u ? "prev": "reset", c && -g === r.translate || !c && g === r.translate) return r.updateactiveindex(n),
l.autoheight && r.updateautoheight(),
r.updateslidesclasses(),
"slide" !== l.effect && r.settranslate(g),
"reset" !== m && (r.transitionstart(a, m), r.transitionend(a, m)),
!1;
if (l.cssmode) {
var w, b = r.ishorizontal(),
e = -g;
if (c && (e = h.scrollwidth - h.offsetwidth - e), 0 === t) h[b ? "scrollleft": "scrolltop"] = e;
else if (h.scrollto) h.scrollto(((w = {})[b ? "left": "top"] = e, w.behavior = "smooth", w));
else h[b ? "scrollleft": "scrolltop"] = e;
return ! 0
}
return 0 === t ? (r.settransition(0), r.settranslate(g), r.updateactiveindex(n), r.updateslidesclasses(), r.emit("beforetransitionstart", t, i), r.transitionstart(a, m), r.transitionend(a, m)) : (r.settransition(t), r.settranslate(g), r.updateactiveindex(n), r.updateslidesclasses(), r.emit("beforetransitionstart", t, i), r.transitionstart(a, m), r.animating || (r.animating = !0, r.onslidetowrappertransitionend || (r.onslidetowrappertransitionend = function(e) {
r && !r.destroyed && e.target === this && (r.$wrapperel[0].removeeventlistener("transitionend", r.onslidetowrappertransitionend), r.$wrapperel[0].removeeventlistener("webkittransitionend", r.onslidetowrappertransitionend), r.onslidetowrappertransitionend = null, delete r.onslidetowrappertransitionend, r.transitionend(a, m))
}), r.$wrapperel[0].addeventlistener("transitionend", r.onslidetowrappertransitionend), r.$wrapperel[0].addeventlistener("webkittransitionend", r.onslidetowrappertransitionend))),
!0
},
slidetoloop: function(e, t, a, i) {
void 0 === e && (e = 0),
void 0 === t && (t = this.params.speed),
void 0 === a && (a = !0);
var s = this,
r = e;
return s.params.loop && (r += s.loopedslides),
s.slideto(r, t, a, i)
},
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,
n = i.activeindex < s.slidespergroupskip ? 1 : s.slidespergroup;
if (s.loop) {
if (r && s.looppreventsslide) return ! 1;
i.loopfix(),
i._clientleft = i.$wrapperel[0].clientleft
}
return i.slideto(i.activeindex + n, 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,
n = i.snapgrid,
l = i.slidesgrid,
o = i.rtltranslate;
if (s.loop) {
if (r && s.looppreventsslide) return ! 1;
i.loopfix(),
i._clientleft = i.$wrapperel[0].clientleft
}
function d(e) {
return e < 0 ? -math.floor(math.abs(e)) : math.floor(e)
}
var p, u = d(o ? i.translate: -i.translate),
c = n.map((function(e) {
return d(e)
})),
h = (n[c.indexof(u)], n[c.indexof(u) - 1]);
return void 0 === h && s.cssmode && n.foreach((function(e) { ! h && u >= e && (h = e)
})),
void 0 !== h && (p = l.indexof(h)) < 0 && (p = i.activeindex - 1),
i.slideto(p, e, t, a)
},
slidereset: function(e, t, a) {
return void 0 === e && (e = this.params.speed),
void 0 === t && (t = !0),
this.slideto(this.activeindex, e, t, a)
},
slidetoclosest: function(e, t, a, i) {
void 0 === e && (e = this.params.speed),
void 0 === t && (t = !0),
void 0 === i && (i = .5);
var s = this,
r = s.activeindex,
n = math.min(s.params.slidespergroupskip, r),
l = n + math.floor((r - n) / s.params.slidespergroup),
o = s.rtltranslate ? s.translate: -s.translate;
if (o >= s.snapgrid[l]) {
var d = s.snapgrid[l];
o - d > (s.snapgrid[l + 1] - d) * i && (r += s.params.slidespergroup)
} else {
var p = s.snapgrid[l - 1];
o - p <= (s.snapgrid[l] - p) * i && (r -= s.params.slidespergroup)
}
return r = math.max(r, 0),
r = math.min(r, s.slidesgrid.length - 1),
s.slideto(r, e, t, a)
},
slidetoclickedslide: function() {
var e, t = this,
a = t.params,
i = t.$wrapperel,
s = "auto" === a.slidesperview ? t.slidesperviewdynamic() : a.slidesperview,
r = t.clickedindex;
if (a.loop) {
if (t.animating) return;
e = parseint(m(t.clickedslide).attr("data-swiper-slide-index"), 10),
a.centeredslides ? r < t.loopedslides - s / 2 || r > t.slides.length - t.loopedslides + s / 2 ? (t.loopfix(), r = i.children("." + a.slideclass + '[data-swiper-slide-index="' + e + '"]:not(.' + a.slideduplicateclass + ")").eq(0).index(), e((function() {
t.slideto(r)
}))) : t.slideto(r) : r > t.slides.length - s ? (t.loopfix(), r = i.children("." + a.slideclass + '[data-swiper-slide-index="' + e + '"]:not(.' + a.slideduplicateclass + ")").eq(0).index(), e((function() {
t.slideto(r)
}))) : t.slideto(r)
} else t.slideto(r)
}
},
loop: {
loopcreate: function() {
var e = this,
t = r(),
a = e.params,
i = e.$wrapperel;
i.children("." + a.slideclass + "." + a.slideduplicateclass).remove();
var s = i.children("." + a.slideclass);
if (a.loopfillgroupwithblank) {
var n = a.slidespergroup - s.length % a.slidespergroup;
if (n !== a.slidespergroup) {
for (var l = 0; l < n; l += 1) {
var o = m(t.createelement("div")).addclass(a.slideclass + " " + a.slideblankclass);
i.append(o)
}
s = i.children("." + a.slideclass)
}
}
"auto" !== a.slidesperview || a.loopedslides || (a.loopedslides = s.length),
e.loopedslides = math.ceil(parsefloat(a.loopedslides || a.slidesperview, 10)),
e.loopedslides += a.loopadditionalslides,
e.loopedslides > s.length && (e.loopedslides = s.length);
var d = [],
p = [];
s.each((function(t, a) {
var i = m(t);
a < e.loopedslides && p.push(t),
a < s.length && a >= s.length - e.loopedslides && d.push(t),
i.attr("data-swiper-slide-index", a)
}));
for (var u = 0; u < p.length; u += 1) i.append(m(p[u].clonenode(!0)).addclass(a.slideduplicateclass));
for (var c = d.length - 1; c >= 0; c -= 1) i.prepend(m(d[c].clonenode(!0)).addclass(a.slideduplicateclass))
},
loopfix: function() {
var e = this;
e.emit("beforeloopfix");
var t, a = e.activeindex,
i = e.slides,
s = e.loopedslides,
r = e.allowslideprev,
n = e.allowslidenext,
l = e.snapgrid,
o = e.rtltranslate;
e.allowslideprev = !0,
e.allowslidenext = !0;
var d = -l[a] - e.gettranslate();
if (a < s) t = i.length - 3 * s + a,
t += s,
e.slideto(t, 0, !1, !0) && 0 !== d && e.settranslate((o ? -e.translate: e.translate) - d);
else if (a >= i.length - s) {
t = -i.length + a + s,
t += s,
e.slideto(t, 0, !1, !0) && 0 !== d && e.settranslate((o ? -e.translate: e.translate) - d)
}
e.allowslideprev = r,
e.allowslidenext = n,
e.emit("loopfix")
},
loopdestroy: function() {
var e = this,
t = e.$wrapperel,
a = e.params,
i = e.slides;
t.children("." + a.slideclass + "." + a.slideduplicateclass + ",." + a.slideclass + "." + a.slideblankclass).remove(),
i.removeattr("data-swiper-slide-index")
}
},
grabcursor: {
setgrabcursor: function(e) {
var t = this;
if (! (t.support.touch || !t.params.simulatetouch || t.params.watchoverflow && t.islocked || t.params.cssmode)) {
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;
e.support.touch || e.params.watchoverflow && e.islocked || e.params.cssmode || (e.el.style.cursor = "")
}
},
manipulation: {
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 && t.support.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 && t.support.observer || t.update(),
t.slideto(r, 0, !1)
},
addslide: function(e, t) {
var a = this,
i = a.$wrapperel,
s = a.params,
r = a.activeindex;
s.loop && (r -= a.loopedslides, a.loopdestroy(), a.slides = i.children("." + s.slideclass));
var n = a.slides.length;
if (e <= 0) a.prependslide(t);
else if (e >= n) a.appendslide(t);
else {
for (var l = r > e ? r + 1 : r, o = [], d = n - 1; d >= e; d -= 1) {
var p = a.slides.eq(d);
p.remove(),
o.unshift(p)
}
if ("object" == typeof t && "length" in t) {
for (var u = 0; u < t.length; u += 1) t[u] && i.append(t[u]);
l = r > e ? r + t.length: r
} else i.append(t);
for (var c = 0; c < o.length; c += 1) i.append(o[c]);
s.loop && a.loopcreate(),
s.observer && a.support.observer || a.update(),
s.loop ? a.slideto(l + a.loopedslides, 0, !1) : a.slideto(l, 0, !1)
}
},
removeslide: function(e) {
var t = this,
a = t.params,
i = t.$wrapperel,
s = t.activeindex;
a.loop && (s -= t.loopedslides, t.loopdestroy(), t.slides = i.children("." + a.slideclass));
var r, n = s;
if ("object" == typeof e && "length" in e) {
for (var l = 0; l < e.length; l += 1) r = e[l],
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 && t.support.observer || t.update(),
a.loop ? t.slideto(n + t.loopedslides, 0, !1) : t.slideto(n, 0, !1)
},
removeallslides: function() {
for (var e = [], t = 0; t < this.slides.length; t += 1) e.push(t);
this.removeslide(e)
}
},
events: {
attachevents: function() {
var e = this,
t = r(),
a = e.params,
i = e.touchevents,
s = e.el,
n = e.wrapperel,
l = e.device,
o = e.support;
e.ontouchstart = o.bind(e),
e.ontouchmove = a.bind(e),
e.ontouchend = d.bind(e),
a.cssmode && (e.onscroll = b.bind(e)),
e.onclick = n.bind(e);
var d = !!a.nested;
if (!o.touch && o.pointerevents) s.addeventlistener(i.start, e.ontouchstart, !1),
t.addeventlistener(i.move, e.ontouchmove, d),
t.addeventlistener(i.end, e.ontouchend, !1);
else {
if (o.touch) {
var p = !("touchstart" !== i.start || !o.passivelistener || !a.passivelisteners) && {
passive: !0,
capture: !1
};
s.addeventlistener(i.start, e.ontouchstart, p),
s.addeventlistener(i.move, e.ontouchmove, o.passivelistener ? {
passive: !1,
capture: d
}: d),
s.addeventlistener(i.end, e.ontouchend, p),
i.cancel && s.addeventlistener(i.cancel, e.ontouchend, p),
h || (t.addeventlistener("touchstart", x), h = !0)
} (a.simulatetouch && !l.ios && !l.android || a.simulatetouch && !o.touch && l.ios) && (s.addeventlistener("mousedown", e.ontouchstart, !1), t.addeventlistener("mousemove", e.ontouchmove, d), t.addeventlistener("mouseup", e.ontouchend, !1))
} (a.preventclicks || a.preventclickspropagation) && s.addeventlistener("click", e.onclick, !0),
a.cssmode && n.addeventlistener("scroll", e.onscroll),
a.updateonwindowresize ? e.on(l.ios || l.android ? "resize orientationchange observerupdate": "resize observerupdate", g, !0) : e.on("observerupdate", g, !0)
},
detachevents: function() {
var e = this,
t = r(),
a = e.params,
i = e.touchevents,
s = e.el,
n = e.wrapperel,
l = e.device,
o = e.support,
d = !!a.nested;
if (!o.touch && o.pointerevents) s.removeeventlistener(i.start, e.ontouchstart, !1),
t.removeeventlistener(i.move, e.ontouchmove, d),
t.removeeventlistener(i.end, e.ontouchend, !1);
else {
if (o.touch) {
var p = !("ontouchstart" !== i.start || !o.passivelistener || !a.passivelisteners) && {
passive: !0,
capture: !1
};
s.removeeventlistener(i.start, e.ontouchstart, p),
s.removeeventlistener(i.move, e.ontouchmove, d),
s.removeeventlistener(i.end, e.ontouchend, p),
i.cancel && s.removeeventlistener(i.cancel, e.ontouchend, p)
} (a.simulatetouch && !l.ios && !l.android || a.simulatetouch && !o.touch && l.ios) && (s.removeeventlistener("mousedown", e.ontouchstart, !1), t.removeeventlistener("mousemove", e.ontouchmove, d), t.removeeventlistener("mouseup", e.ontouchend, !1))
} (a.preventclicks || a.preventclickspropagation) && s.removeeventlistener("click", e.onclick, !0),
a.cssmode && n.removeeventlistener("scroll", e.onscroll),
e.off(l.ios || l.android ? "resize orientationchange observerupdate": "resize observerupdate", g)
}
},
breakpoints: {
setbreakpoint: function() {
var e = this,
t = e.activeindex,
a = e.initialized,
i = e.loopedslides,
s = void 0 === i ? 0 : i,
r = e.params,
n = e.$el,
l = r.breakpoints;
if (l && (!l || 0 !== object.keys(l).length)) {
var o = e.getbreakpoint(l);
if (o && e.currentbreakpoint !== o) {
var d = o in l ? l[o] : void 0;
d && ["slidesperview", "spacebetween", "slidespergroup", "slidespergroupskip", "slidespercolumn"].foreach((function(e) {
var t = d[e];
void 0 !== t && (d[e] = "slidesperview" !== e || "auto" !== t && "auto" !== t ? "slidesperview" === e ? parsefloat(t) : parseint(t, 10) : "auto")
}));
var p = d || e.originalparams,
u = r.slidespercolumn > 1,
c = p.slidespercolumn > 1;
u && !c ? (n.removeclass(r.containermodifierclass + "multirow " + r.containermodifierclass + "multirow-column"), e.emitcontainerclasses()) : !u && c && (n.addclass(r.containermodifierclass + "multirow"), "column" === p.slidespercolumnfill && n.addclass(r.containermodifierclass + "multirow-column"), e.emitcontainerclasses());
var h = p.direction && p.direction !== r.direction,
v = r.loop && (p.slidesperview !== r.slidesperview || h);
h && a && e.changedirection(),
s(e.params, p),
s(e, {
allowtouchmove: e.params.allowtouchmove,
allowslidenext: e.params.allowslidenext,
allowslideprev: e.params.allowslideprev
}),
e.currentbreakpoint = o,
e.emit("_beforebreakpoint", p),
v && a && (e.loopdestroy(), e.loopcreate(), e.updateslides(), e.slideto(t - s + e.loopedslides, 0, !1)),
e.emit("breakpoint", p)
}
}
},
getbreakpoint: function(e) {
var t = l();
if (e) {
var a = !1,
i = object.keys(e).map((function(e) {
if ("string" == typeof e && 0 === e.indexof("@")) {
var a = parsefloat(e.substr(1));
return {
value: t.innerheight * a,
point: e
}
}
return {
value: e,
point: e
}
}));
i.sort((function(e, t) {
return parseint(e.value, 10) - parseint(t.value, 10)
}));
for (var s = 0; s < i.length; s += 1) {
var r = i[s],
n = r.point;
r.value <= t.innerwidth && (a = n)
}
return a || "max"
}
}
},
checkoverflow: {
checkoverflow: function() {
var e = this,
t = e.params,
a = e.islocked,
i = e.slides.length > 0 && t.slidesoffsetbefore + t.spacebetween * (e.slides.length - 1) + e.slides[0].offsetwidth * e.slides.length;
t.slidesoffsetbefore && t.slidesoffsetafter && i ? e.islocked = i <= e.size: e.islocked = 1 === e.snapgrid.length,
e.allowslidenext = !e.islocked,
e.allowslideprev = !e.islocked,
a !== e.islocked && e.emit(e.islocked ? "lock": "unlock"),
a && a !== e.islocked && (e.isend = !1, e.navigation && e.navigation.update())
}
},
classes: {
addclasses: function() {
var e = this,
t = e.classnames,
a = e.params,
i = e.rtl,
s = e.$el,
r = e.device,
n = [];
n.push("initialized"),
n.push(a.direction),
a.freemode && n.push("free-mode"),
a.autoheight && n.push("autoheight"),
i && n.push("rtl"),
a.slidespercolumn > 1 && (n.push("multirow"), "column" === a.slidespercolumnfill && n.push("multirow-column")),
r.android && n.push("android"),
r.ios && n.push("ios"),
a.cssmode && n.push("css-mode"),
n.foreach((function(e) {
t.push(a.containermodifierclass + e)
})),
s.addclass(t.join(" ")),
e.emitcontainerclasses()
},
removeclasses: function() {
var e = this,
t = e.$el,
a = e.classnames;
t.removeclass(a.join(" ")),
e.emitcontainerclasses()
}
},
images: {
loadimage: function(e, t, a, i, s, r) {
var n, o = l();
function d() {
r && r()
}
m(e).parent("picture")[0] || e.complete && s ? d() : t ? ((n = new o.image).onload = d, n.onerror = d, i && (n.sizes = i), a && (n.srcset = a), t && (n.src = t)) : d()
},
preloadimages: function() {
var e = this;
function t() {
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")))
}
e.imagestoload = e.$el.find("img");
for (var a = 0; a < e.imagestoload.length; a += 1) {
var i = e.imagestoload[a];
e.loadimage(i, i.currentsrc || i.getattribute("src"), i.srcset || i.getattribute("srcset"), i.sizes || i.getattribute("sizes"), !0, t)
}
}
}
},
f = {},
r = function() {
function t() {
for (var e, a, i = arguments.length,
s = new array(i), r = 0; r < i; r++) s[r] = arguments[r];
1 === s.length && s[0].constructor && s[0].constructor === object ? a = s[0] : (e = s[0], a = s[1]),
a || (a = {}),
a = s({},
a),
e && !a.el && (a.el = e);
var n = this;
n.support = z(),
n.device = p({
useragent: a.useragent
}),
n.browser = k(),
n.eventslisteners = {},
n.eventsanylisteners = [],
void 0 === n.modules && (n.modules = {}),
object.keys(n.modules).foreach((function(e) {
var t = n.modules[e];
if (t.params) {
var i = object.keys(t.params)[0],
s = t.params[i];
if ("object" != typeof s || null === s) return;
if (! (i in a) || !("enabled" in s)) return; ! 0 === a[i] && (a[i] = {
enabled: !0
}),
"object" != typeof a[i] || "enabled" in a[i] || (a[i].enabled = !0),
a[i] || (a[i] = {
enabled: !1
})
}
}));
var l = s({},
y);
n.useparams(l),
n.params = s({},
l, f, a),
n.originalparams = s({},
n.params),
n.passedparams = s({},
a),
n.params && n.params.on && object.keys(n.params.on).foreach((function(e) {
n.on(e, n.params.on[e])
})),
n.params && n.params.onany && n.onany(n.params.onany),
n.$ = m;
var o = m(n.params.el);
if (e = o[0]) {
if (o.length > 1) {
var d = [];
return o.each((function(e) {
var i = s({},
a, {
el: e
});
d.push(new t(i))
})),
d
}
var p, u, c;
return e.swiper = n,
e && e.shadowroot && e.shadowroot.queryselector ? (p = m(e.shadowroot.queryselector("." + n.params.wrapperclass))).children = function(e) {
return o.children(e)
}: p = o.children("." + n.params.wrapperclass),
s(n, {
$el: o,
el: e,
$wrapperel: p,
wrapperel: p[0],
classnames: [],
slides: m(),
slidesgrid: [],
snapgrid: [],
slidessizesgrid: [],
ishorizontal: function() {
return "horizontal" === n.params.direction
},
isvertical: function() {
return "vertical" === n.params.direction
},
rtl: "rtl" === e.dir.tolowercase() || "rtl" === o.css("direction"),
rtltranslate: "horizontal" === n.params.direction && ("rtl" === e.dir.tolowercase() || "rtl" === o.css("direction")),
wrongrtl: "-webkit-box" === p.css("display"),
activeindex: 0,
realindex: 0,
isbeginning: !0,
isend: !1,
translate: 0,
previoustranslate: 0,
progress: 0,
velocity: 0,
animating: !1,
allowslidenext: n.params.allowslidenext,
allowslideprev: n.params.allowslideprev,
touchevents: (u = ["touchstart", "touchmove", "touchend", "touchcancel"], c = ["mousedown", "mousemove", "mouseup"], n.support.pointerevents && (c = ["pointerdown", "pointermove", "pointerup"]), n.toucheventstouch = {
start: u[0],
move: u[1],
end: u[2],
cancel: u[3]
},
n.toucheventsdesktop = {
start: c[0],
move: c[1],
end: c[2]
},
n.support.touch || !n.params.simulatetouch ? n.toucheventstouch: n.toucheventsdesktop),
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, label",
lastclicktime: x(),
clicktimeout: void 0,
velocities: [],
allowmomentumbounce: void 0,
istouchevent: void 0,
startmoving: void 0
},
allowclick: !0,
allowtouchmove: n.params.allowtouchmove,
touches: {
startx: 0,
starty: 0,
currentx: 0,
currenty: 0,
diff: 0
},
imagestoload: [],
imagesloaded: 0
}),
n.usemodules(),
n.emit("_swiper"),
n.params.init && n.init(),
n
}
}
var a, i, s, r = t.prototype;
return r.emitcontainerclasses = function() {
var e = this;
if (e.params._emitclasses && e.el) {
var t = e.el.classname.split(" ").filter((function(t) {
return 0 === t.indexof("swiper-container") || 0 === t.indexof(e.params.containermodifierclass)
}));
e.emit("_containerclasses", t.join(" "))
}
},
r.getslideclasses = function(e) {
var t = this;
return e.classname.split(" ").filter((function(e) {
return 0 === e.indexof("swiper-slide") || 0 === e.indexof(t.params.slideclass)
})).join(" ")
},
r.emitslidesclasses = function() {
var e = this;
e.params._emitclasses && e.el && e.slides.each((function(t) {
var a = e.getslideclasses(t);
e.emit("_slideclass", t, a)
}))
},
r.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 l, o = a[r].swiperslidesize, d = r + 1; d < a.length; d += 1) a[d] && !l && (n += 1, (o += a[d].swiperslidesize) > s && (l = !0));
for (var p = r - 1; p >= 0; p -= 1) a[p] && !l && (n += 1, (o += a[p].swiperslidesize) > s && (l = !0))
} else for (var u = r + 1; u < a.length; u += 1) i[u] - i[r] < s && (n += 1);
return n
},
r.update = function() {
var e = this;
if (e && !e.destroyed) {
var t = e.snapgrid,
a = e.params;
a.breakpoints && e.setbreakpoint(),
e.updatesize(),
e.updateslides(),
e.updateprogress(),
e.updateslidesclasses(),
e.params.freemode ? (i(), e.params.autoheight && e.updateautoheight()) : (("auto" === e.params.slidesperview || e.params.slidesperview > 1) && e.isend && !e.params.centeredslides ? e.slideto(e.slides.length - 1, 0, !1, !0) : e.slideto(e.activeindex, 0, !1, !0)) || i(),
a.watchoverflow && t !== e.snapgrid && e.checkoverflow(),
e.emit("update")
}
function i() {
var t = e.rtltranslate ? -1 * e.translate: e.translate,
a = math.min(math.max(t, e.maxtranslate()), e.mintranslate());
e.settranslate(a),
e.updateactiveindex(),
e.updateslidesclasses()
}
},
r.changedirection = function(e, t) {
void 0 === t && (t = !0);
var a = this,
i = a.params.direction;
return e || (e = "horizontal" === i ? "vertical": "horizontal"),
e === i || "horizontal" !== e && "vertical" !== e || (a.$el.removeclass("" + a.params.containermodifierclass + i).addclass("" + a.params.containermodifierclass + e), a.emitcontainerclasses(), a.params.direction = e, a.slides.each((function(t) {
"vertical" === e ? t.style.width = "": t.style.height = ""
})), a.emit("changedirection"), t && a.update()),
a
},
r.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.watchoverflow && e.checkoverflow(), 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"), e.emit("afterinit"))
},
r.destroy = function(e, t) {
void 0 === e && (e = !0),
void 0 === t && (t = !0);
var a, i = this,
s = i.params,
r = i.$el,
n = i.$wrapperel,
l = i.slides;
return void 0 === i.params || i.destroyed || (i.emit("beforedestroy"), i.initialized = !1, i.detachevents(), s.loop && i.loopdestroy(), t && (i.removeclasses(), r.removeattr("style"), n.removeattr("style"), l && l.length && l.removeclass([s.slidevisibleclass, s.slideactiveclass, s.slidenextclass, s.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-slide-index")), i.emit("destroy"), object.keys(i.eventslisteners).foreach((function(e) {
i.off(e)
})), !1 !== e && (i.$el[0].swiper = null, a = i, object.keys(a).foreach((function(e) {
try {
a[e] = null
} catch(e) {}
try {
delete a[e]
} catch(e) {}
}))), i.destroyed = !0),
null
},
t.extenddefaults = function(e) {
s(f, e)
},
t.installmodule = function(e) {
t.prototype.modules || (t.prototype.modules = {});
var a = e.name || object.keys(t.prototype.modules).length + "_" + x();
t.prototype.modules[a] = e
},
t.use = function(e) {
return array.isarray(e) ? (e.foreach((function(e) {
return t.installmodule(e)
})), t) : (t.installmodule(e), t)
},
a = t,
s = [{
key: "extendeddefaults",
get: function() {
return f
}
},
{
key: "defaults",
get: function() {
return y
}
}],
(i = null) && e(a.prototype, i),
s && e(a, s),
t
} ();
object.keys(v).foreach((function(e) {
object.keys(v[e]).foreach((function(t) {
r.prototype[t] = v[e][t]
}))
})),
r.use([l, i]);
var w = {
update: function(e) {
var t = this,
a = t.params,
i = a.slidesperview,
s = a.slidespergroup,
r = a.centeredslides,
n = t.params.virtual,
l = n.addslidesbefore,
o = n.addslidesafter,
d = t.virtual,
p = d.from,
u = d.to,
c = d.slides,
h = d.slidesgrid,
v = d.renderslide,
f = d.offset;
t.updateactiveindex();
var m, g, y, w = t.activeindex || 0;
m = t.rtltranslate ? "right": t.ishorizontal() ? "left": "top",
r ? (g = math.floor(i / 2) + s + o, y = math.floor(i / 2) + s + l) : (g = i + (s - 1) + o, y = s + l);
var b = math.max((w || 0) - y, 0),
e = math.min((w || 0) + g, c.length - 1),
x = (t.slidesgrid[b] || 0) - (t.slidesgrid[0] || 0);
function t() {
t.updateslides(),
t.updateprogress(),
t.updateslidesclasses(),
t.lazy && t.params.lazy.enabled && t.lazy.load()
}
if (s(t.virtual, {
from: b,
to: e,
offset: x,
slidesgrid: t.slidesgrid
}), p === b && u === e && !e) return t.slidesgrid !== h && x !== f && t.slides.css(m, x + "px"),
void t.updateprogress();
if (t.params.virtual.renderexternal) return t.params.virtual.renderexternal.call(t, {
offset: x,
from: b,
to: e,
slides: function() {
for (var e = [], t = b; t <= e; t += 1) e.push(c[t]);
return e
} ()
}),
void(t.params.virtual.renderexternalupdate && t());
var c = [],
m = [];
if (e) t.$wrapperel.find("." + t.params.slideclass).remove();
else for (var z = p; z <= u; z += 1)(z < b || z > e) && t.$wrapperel.find("." + t.params.slideclass + '[data-swiper-slide-index="' + z + '"]').remove();
for (var p = 0; p < c.length; p += 1) p >= b && p <= e && (void 0 === u || e ? m.push(p) : (p > u && m.push(p), p < p && c.push(p)));
m.foreach((function(e) {
t.$wrapperel.append(v(c[e], e))
})),
c.sort((function(e, t) {
return t - e
})).foreach((function(e) {
t.$wrapperel.prepend(v(c[e], e))
})),
t.$wrapperel.children(".swiper-slide").css(m, x + "px"),
t()
},
renderslide: function(e, t) {
var a = this,
i = a.params.virtual;
if (i.cache && a.virtual.cache[t]) return a.virtual.cache[t];
var s = i.renderslide ? m(i.renderslide.call(a, e, t)) : m('' + e + "
");
return s.attr("data-swiper-slide-index") || s.attr("data-swiper-slide-index", t),
i.cache && (a.virtual.cache[t] = s),
s
},
appendslide: function(e) {
var t = this;
if ("object" == typeof e && "length" in e) for (var a = 0; a < e.length; a += 1) e[a] && t.virtual.slides.push(e[a]);
else t.virtual.slides.push(e);
t.virtual.update(!0)
},
prependslide: function(e) {
var t = this,
a = t.activeindex,
i = a + 1,
s = 1;
if (array.isarray(e)) {
for (var r = 0; r < e.length; r += 1) e[r] && t.virtual.slides.unshift(e[r]);
i = a + e.length,
s = e.length
} else t.virtual.slides.unshift(e);
if (t.params.virtual.cache) {
var n = t.virtual.cache,
l = {};
object.keys(n).foreach((function(e) {
var t = n[e],
a = t.attr("data-swiper-slide-index");
a && t.attr("data-swiper-slide-index", parseint(a, 10) + 1),
l[parseint(e, 10) + s] = t
})),
t.virtual.cache = l
}
t.virtual.update(!0),
t.slideto(i, 0)
},
removeslide: function(e) {
var t = this;
if (null != e) {
var a = t.activeindex;
if (array.isarray(e)) for (var i = e.length - 1; i >= 0; i -= 1) t.virtual.slides.splice(e[i], 1),
t.params.virtual.cache && delete t.virtual.cache[e[i]],
e[i] < a && (a -= 1),
a = math.max(a, 0);
else t.virtual.slides.splice(e, 1),
t.params.virtual.cache && delete t.virtual.cache[e],
e < a && (a -= 1),
a = math.max(a, 0);
t.virtual.update(!0),
t.slideto(a, 0)
}
},
removeallslides: function() {
var e = this;
e.virtual.slides = [],
e.params.virtual.cache && (e.virtual.cache = {}),
e.virtual.update(!0),
e.slideto(0, 0)
}
},
q = {
name: "virtual",
params: {
virtual: {
enabled: !1,
slides: [],
cache: !0,
renderslide: null,
renderexternal: null,
renderexternalupdate: !0,
addslidesbefore: 0,
addslidesafter: 0
}
},
create: function() {
m(this, {
virtual: t(t({},
w), {},
{
slides: this.params.virtual.slides,
cache: {}
})
})
},
on: {
beforeinit: function(e) {
if (e.params.virtual.enabled) {
e.classnames.push(e.params.containermodifierclass + "virtual");
var t = {
watchslidesprogress: !0
};
s(e.params, t),
s(e.originalparams, t),
e.params.initialslide || e.virtual.update()
}
},
settranslate: function(e) {
e.params.virtual.enabled && e.virtual.update()
}
}
},
j = {
handle: function(e) {
var t = this,
a = l(),
i = r(),
s = t.rtltranslate,
n = e;
n.originalevent && (n = n.originalevent);
var o = n.keycode || n.charcode,
d = t.params.keyboard.pageupdown,
p = d && 33 === o,
u = d && 34 === o,
c = 37 === o,
h = 39 === o,
v = 38 === o,
f = 40 === o;
if (!t.allowslidenext && (t.ishorizontal() && h || t.isvertical() && f || u)) return ! 1;
if (!t.allowslideprev && (t.ishorizontal() && c || t.isvertical() && v || p)) return ! 1;
if (! (n.shiftkey || n.altkey || n.ctrlkey || n.metakey || i.activeelement && i.activeelement.nodename && ("input" === i.activeelement.nodename.tolowercase() || "textarea" === i.activeelement.nodename.tolowercase()))) {
if (t.params.keyboard.onlyinviewport && (p || u || c || h || v || f)) {
var m = !1;
if (t.$el.parents("." + t.params.slideclass).length > 0 && 0 === t.$el.parents("." + t.params.slideactiveclass).length) return;
var g = a.innerwidth,
y = a.innerheight,
w = t.$el.offset();
s && (w.left -= t.$el[0].scrollleft);
for (var b = [[w.left, w.top], [w.left + t.width, w.top], [w.left, w.top + t.height], [w.left + t.width, w.top + t.height]], e = 0; e < b.length; e += 1) {
var x = b[e];
if (x[0] >= 0 && x[0] <= g && x[1] >= 0 && x[1] <= y) {
if (0 === x[0] && 0 === x[1]) continue;
m = !0
}
}
if (!m) return
}
t.ishorizontal() ? ((p || u || c || h) && (n.preventdefault ? n.preventdefault() : n.returnvalue = !1), ((u || h) && !s || (p || c) && s) && t.slidenext(), ((p || c) && !s || (u || h) && s) && t.slideprev()) : ((p || u || v || f) && (n.preventdefault ? n.preventdefault() : n.returnvalue = !1), (u || f) && t.slidenext(), (p || v) && t.slideprev()),
t.emit("keypress", o)
}
},
enable: function() {
var e = this,
t = r();
e.keyboard.enabled || (m(t).on("keydown", e.keyboard.handle), e.keyboard.enabled = !0)
},
disable: function() {
var e = this,
t = r();
e.keyboard.enabled && (m(t).off("keydown", e.keyboard.handle), e.keyboard.enabled = !1)
}
},
_ = {
name: "keyboard",
params: {
keyboard: {
enabled: !1,
onlyinviewport: !0,
pageupdown: !0
}
},
create: function() {
m(this, {
keyboard: t({
enabled: !1
},
j)
})
},
on: {
init: function(e) {
e.params.keyboard.enabled && e.keyboard.enable()
},
destroy: function(e) {
e.keyboard.enabled && e.keyboard.disable()
}
}
};
var u = {
lastscrolltime: x(),
lasteventbeforesnap: void 0,
recentwheelevents: [],
event: function() {
return l().navigator.useragent.indexof("firefox") > -1 ? "dommousescroll": function() {
var e = r(),
t = "onwheel",
a = t in e;
if (!a) {
var i = e.createelement("div");
i.setattribute(t, "return;"),
a = "function" == typeof i.onwheel
}
return ! a && e.implementation && e.implementation.hasfeature && !0 !== e.implementation.hasfeature("", "") && (a = e.implementation.hasfeature("events.wheel", "3.0")),
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),
e.shiftkey && !i && (i = s, s = 0),
(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
}
},
handlemouseenter: function() {
this.mouseentered = !0
},
handlemouseleave: function() {
this.mouseentered = !1
},
handle: function(e) {
var t = e,
a = this,
i = a.params.mousewheel;
a.params.cssmode && t.preventdefault();
var s = a.$el;
if ("container" !== a.params.mousewheel.eventstarget && (s = m(a.params.mousewheel.eventstarget)), !a.mouseentered && !s[0].contains(t.target) && !i.releaseonedges) return ! 0;
t.originalevent && (t = t.originalevent);
var r = 0,
n = a.rtltranslate ? -1 : 1,
l = u.normalize(t);
if (i.forcetoaxis) if (a.ishorizontal()) {
if (! (math.abs(l.pixelx) > math.abs(l.pixely))) return ! 0;
r = -l.pixelx * n
} else {
if (! (math.abs(l.pixely) > math.abs(l.pixelx))) return ! 0;
r = -l.pixely
} else r = math.abs(l.pixelx) > math.abs(l.pixely) ? -l.pixelx * n: -l.pixely;
if (0 === r) return ! 0;
i.invert && (r = -r);
var o = a.gettranslate() + r * i.sensitivity;
if (o >= a.mintranslate() && (o = a.mintranslate()), o <= a.maxtranslate() && (o = a.maxtranslate()), ( !! a.params.loop || !(o === a.mintranslate() || o === a.maxtranslate())) && a.params.nested && t.stoppropagation(), a.params.freemode) {
var d = {
time: x(),
delta: math.abs(r),
direction: math.sign(r)
},
p = a.mousewheel.lasteventbeforesnap,
u = p && d.time < p.time + 500 && d.delta <= p.delta && d.direction === p.direction;
if (!u) {
a.mousewheel.lasteventbeforesnap = void 0,
a.params.loop && a.loopfix();
var c = a.gettranslate() + r * i.sensitivity,
h = a.isbeginning,
v = a.isend;
if (c >= a.mintranslate() && (c = a.mintranslate()), c <= a.maxtranslate() && (c = a.maxtranslate()), a.settransition(0), a.settranslate(c), a.updateprogress(), a.updateactiveindex(), a.updateslidesclasses(), (!h && a.isbeginning || !v && a.isend) && a.updateslidesclasses(), a.params.freemodesticky) {
cleartimeout(a.mousewheel.timeout),
a.mousewheel.timeout = void 0;
var f = a.mousewheel.recentwheelevents;
f.length >= 15 && f.shift();
var g = f.length ? f[f.length - 1] : void 0,
y = f[0];
if (f.push(d), g && (d.delta > g.delta || d.direction !== g.direction)) f.splice(0);
else if (f.length >= 15 && d.time - y.time < 500 && y.delta - d.delta >= 1 && d.delta <= 6) {
var w = r > 0 ? .8 : .2;
a.mousewheel.lasteventbeforesnap = d,
f.splice(0),
a.mousewheel.timeout = e((function() {
a.slidetoclosest(a.params.speed, !0, void 0, w)
}), 0)
}
a.mousewheel.timeout || (a.mousewheel.timeout = e((function() {
a.mousewheel.lasteventbeforesnap = d,
f.splice(0),
a.slidetoclosest(a.params.speed, !0, void 0, .5)
}), 500))
}
if (u || a.emit("scroll", t), a.params.autoplay && a.params.autoplaydisableoninteraction && a.autoplay.stop(), c === a.mintranslate() || c === a.maxtranslate()) return ! 0
}
} else {
var b = {
time: x(),
delta: math.abs(r),
direction: math.sign(r),
raw: e
},
t = a.mousewheel.recentwheelevents;
t.length >= 2 && t.shift();
var c = t.length ? t[t.length - 1] : void 0;
if (t.push(b), c ? (b.direction !== c.direction || b.delta > c.delta || b.time > c.time + 150) && a.mousewheel.animateslider(b) : a.mousewheel.animateslider(b), a.mousewheel.releasescroll(b)) return ! 0
}
return t.preventdefault ? t.preventdefault() : t.returnvalue = !1,
!1
},
animateslider: function(e) {
var t = this,
a = l();
return ! (this.params.mousewheel.thresholddelta && e.delta < this.params.mousewheel.thresholddelta) && (!(this.params.mousewheel.thresholdtime && x() - t.mousewheel.lastscrolltime < this.params.mousewheel.thresholdtime) && (e.delta >= 6 && x() - t.mousewheel.lastscrolltime < 60 || (e.direction < 0 ? t.isend && !t.params.loop || t.animating || (t.slidenext(), t.emit("scroll", e.raw)) : t.isbeginning && !t.params.loop || t.animating || (t.slideprev(), t.emit("scroll", e.raw)), t.mousewheel.lastscrolltime = (new a.date).gettime(), !1)))
},
releasescroll: function(e) {
var t = this,
a = t.params.mousewheel;
if (e.direction < 0) {
if (t.isend && !t.params.loop && a.releaseonedges) return ! 0
} else if (t.isbeginning && !t.params.loop && a.releaseonedges) return ! 0;
return ! 1
},
enable: function() {
var e = this,
t = u.event();
if (e.params.cssmode) return e.wrapperel.removeeventlistener(t, e.mousewheel.handle),
!0;
if (!t) return ! 1;
if (e.mousewheel.enabled) return ! 1;
var a = e.$el;
return "container" !== e.params.mousewheel.eventstarget && (a = m(e.params.mousewheel.eventstarget)),
a.on("mouseenter", e.mousewheel.handlemouseenter),
a.on("mouseleave", e.mousewheel.handlemouseleave),
a.on(t, e.mousewheel.handle),
e.mousewheel.enabled = !0,
!0
},
disable: function() {
var e = this,
t = u.event();
if (e.params.cssmode) return e.wrapperel.addeventlistener(t, e.mousewheel.handle),
!0;
if (!t) return ! 1;
if (!e.mousewheel.enabled) return ! 1;
var a = e.$el;
return "container" !== e.params.mousewheel.eventstarget && (a = m(e.params.mousewheel.eventstarget)),
a.off(t, e.mousewheel.handle),
e.mousewheel.enabled = !1,
!0
}
},
k = {
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), s[e.params.watchoverflow && e.islocked ? "addclass": "removeclass"](t.lockclass)),
i && i.length > 0 && (e.isend ? i.addclass(t.disabledclass) : i.removeclass(t.disabledclass), i[e.params.watchoverflow && e.islocked ? "addclass": "removeclass"](t.lockclass))
}
},
onprevclick: function(e) {
var t = this;
e.preventdefault(),
t.isbeginning && !t.params.loop || t.slideprev()
},
onnextclick: function(e) {
var t = this;
e.preventdefault(),
t.isend && !t.params.loop || t.slidenext()
},
init: function() {
var e, t, a = this,
i = a.params.navigation; (i.nextel || i.prevel) && (i.nextel && (e = m(i.nextel), a.params.uniquenavelements && "string" == typeof i.nextel && e.length > 1 && 1 === a.$el.find(i.nextel).length && (e = a.$el.find(i.nextel))), i.prevel && (t = m(i.prevel), a.params.uniquenavelements && "string" == typeof i.prevel && t.length > 1 && 1 === a.$el.find(i.prevel).length && (t = a.$el.find(i.prevel))), e && e.length > 0 && e.on("click", a.navigation.onnextclick), t && t.length > 0 && t.on("click", a.navigation.onprevclick), s(a.navigation, {
$nextel: e,
nextel: e && e[0],
$prevel: t,
prevel: t && t[0]
}))
},
destroy: function() {
var e = this,
t = e.navigation,
a = t.$nextel,
i = t.$prevel;
a && a.length && (a.off("click", e.navigation.onnextclick), a.removeclass(e.params.navigation.disabledclass)),
i && i.length && (i.off("click", e.navigation.onprevclick), i.removeclass(e.params.navigation.disabledclass))
}
},
z = {
update: function() {
var e = this,
t = e.rtl,
a = e.params.pagination;
if (a.el && e.pagination.el && e.pagination.$el && 0 !== e.pagination.$el.length) {
var i, s = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length: e.slides.length,
r = e.pagination.$el,
n = e.params.loop ? math.ceil((s - 2 * e.loopedslides) / e.params.slidespergroup) : e.snapgrid.length;
if (e.params.loop ? ((i = math.ceil((e.activeindex - e.loopedslides) / e.params.slidespergroup)) > s - 1 - 2 * e.loopedslides && (i -= s - 2 * e.loopedslides), i > n - 1 && (i -= n), i < 0 && "bullets" !== e.params.paginationtype && (i = n + i)) : i = void 0 !== e.snapindex ? e.snapindex: e.activeindex || 0, "bullets" === a.type && e.pagination.bullets && e.pagination.bullets.length > 0) {
var l, o, d, p = e.pagination.bullets;
if (a.dynamicbullets && (e.pagination.bulletsize = p.eq(0)[e.ishorizontal() ? "outerwidth": "outerheight"](!0), r.css(e.ishorizontal() ? "width": "height", e.pagination.bulletsize * (a.dynamicmainbullets + 4) + "px"), a.dynamicmainbullets > 1 && void 0 !== e.previousindex && (e.pagination.dynamicbulletindex += i - e.previousindex, e.pagination.dynamicbulletindex > a.dynamicmainbullets - 1 ? e.pagination.dynamicbulletindex = a.dynamicmainbullets - 1 : e.pagination.dynamicbulletindex < 0 && (e.pagination.dynamicbulletindex = 0)), l = i - e.pagination.dynamicbulletindex, d = ((o = l + (math.min(p.length, a.dynamicmainbullets) - 1)) + l) / 2), p.removeclass(a.bulletactiveclass + " " + a.bulletactiveclass + "-next " + a.bulletactiveclass + "-next-next " + a.bulletactiveclass + "-prev " + a.bulletactiveclass + "-prev-prev " + a.bulletactiveclass + "-main"), r.length > 1) p.each((function(e) {
var t = m(e),
s = t.index();
s === i && t.addclass(a.bulletactiveclass),
a.dynamicbullets && (s >= l && s <= o && t.addclass(a.bulletactiveclass + "-main"), s === l && t.prev().addclass(a.bulletactiveclass + "-prev").prev().addclass(a.bulletactiveclass + "-prev-prev"), s === o && t.next().addclass(a.bulletactiveclass + "-next").next().addclass(a.bulletactiveclass + "-next-next"))
}));
else {
var u = p.eq(i),
c = u.index();
if (u.addclass(a.bulletactiveclass), a.dynamicbullets) {
for (var h = p.eq(l), v = p.eq(o), f = l; f <= o; f += 1) p.eq(f).addclass(a.bulletactiveclass + "-main");
if (e.params.loop) if (c >= p.length - a.dynamicmainbullets) {
for (var g = a.dynamicmainbullets; g >= 0; g -= 1) p.eq(p.length - g).addclass(a.bulletactiveclass + "-main");
p.eq(p.length - a.dynamicmainbullets - 1).addclass(a.bulletactiveclass + "-prev")
} else h.prev().addclass(a.bulletactiveclass + "-prev").prev().addclass(a.bulletactiveclass + "-prev-prev"),
v.next().addclass(a.bulletactiveclass + "-next").next().addclass(a.bulletactiveclass + "-next-next");
else h.prev().addclass(a.bulletactiveclass + "-prev").prev().addclass(a.bulletactiveclass + "-prev-prev"),
v.next().addclass(a.bulletactiveclass + "-next").next().addclass(a.bulletactiveclass + "-next-next")
}
}
if (a.dynamicbullets) {
var y = math.min(p.length, a.dynamicmainbullets + 4),
w = (e.pagination.bulletsize * y - e.pagination.bulletsize) / 2 - d * e.pagination.bulletsize,
b = t ? "right": "left";
p.css(e.ishorizontal() ? b: "top", w + "px")
}
}
if ("fraction" === a.type && (r.find("." + a.currentclass).text(a.formatfractioncurrent(i + 1)), r.find("." + a.totalclass).text(a.formatfractiontotal(n))), "progressbar" === a.type) {
var e;
e = a.progressbaropposite ? e.ishorizontal() ? "vertical": "horizontal": e.ishorizontal() ? "horizontal": "vertical";
var x = (i + 1) / n,
t = 1,
c = 1;
"horizontal" === e ? t = x: c = x,
r.find("." + a.progressbarfillclass).transform("translate3d(0,0,0) scalex(" + t + ") scaley(" + c + ")").transition(e.params.speed)
}
"custom" === a.type && a.rendercustom ? (r.html(a.rendercustom(e, i + 1, n)), e.emit("paginationrender", r[0])) : e.emit("paginationupdate", r[0]),
r[e.params.watchoverflow && e.islocked ? "addclass": "removeclass"](a.lockclass)
}
},
render: function() {
var e = this,
t = e.params.pagination;
if (t.el && e.pagination.el && e.pagination.$el && 0 !== e.pagination.$el.length) {
var a = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length: e.slides.length,
i = e.pagination.$el,
s = "";
if ("bullets" === t.type) {
for (var r = e.params.loop ? math.ceil((a - 2 * e.loopedslides) / e.params.slidespergroup) : e.snapgrid.length, n = 0; n < r; n += 1) t.renderbullet ? s += t.renderbullet.call(e, n, t.bulletclass) : s += "<" + t.bulletelement + ' class="' + t.bulletclass + '">' + t.bulletelement + ">";
i.html(s),
e.pagination.bullets = i.find("." + t.bulletclass.replace(/ /g, "."))
}
"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 e = this,
t = e.params.pagination;
if (t.el) {
var a = m(t.el);
0 !== a.length && (e.params.uniquenavelements && "string" == typeof t.el && a.length > 1 && (a = e.$el.find(t.el)), "bullets" === t.type && t.clickable && a.addclass(t.clickableclass), a.addclass(t.modifierclass + t.type), "bullets" === t.type && t.dynamicbullets && (a.addclass("" + t.modifierclass + t.type + "-dynamic"), e.pagination.dynamicbulletindex = 0, t.dynamicmainbullets < 1 && (t.dynamicmainbullets = 1)), "progressbar" === t.type && t.progressbaropposite && a.addclass(t.progressbaroppositeclass), t.clickable && a.on("click", "." + t.bulletclass.replace(/ /g, "."), (function(t) {
t.preventdefault();
var a = m(this).index() * e.params.slidespergroup;
e.params.loop && (a += e.loopedslides),
e.slideto(a)
})), s(e.pagination, {
$el: a,
el: a[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.replace(/ /g, "."))
}
}
},
j = {
settranslate: function() {
var e = this;
if (e.params.scrollbar.el && e.scrollbar.el) {
var t = e.scrollbar,
a = e.rtltranslate,
i = e.progress,
s = t.dragsize,
r = t.tracksize,
n = t.$dragel,
l = t.$el,
o = e.params.scrollbar,
d = s,
p = (r - s) * i;
a ? (p = -p) > 0 ? (d = s - p, p = 0) : -p + s > r && (d = r + p) : p < 0 ? (d = s + p, p = 0) : p + s > r && (d = r - p),
e.ishorizontal() ? (n.transform("translate3d(" + p + "px, 0, 0)"), n[0].style.width = d + "px") : (n.transform("translate3d(0px, " + p + "px, 0)"), n[0].style.height = d + "px"),
o.hide && (cleartimeout(e.scrollbar.timeout), l[0].style.opacity = 1, e.scrollbar.timeout = settimeout((function() {
l[0].style.opacity = 0,
l.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,
l = 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.scrollbar.hide && (i[0].style.opacity = 0),
s(t, {
tracksize: r,
divider: n,
movedivider: l,
dragsize: s
}),
t.$el[e.params.watchoverflow && e.islocked ? "addclass": "removeclass"](e.params.scrollbar.lockclass)
}
},
getpointerposition: function(e) {
return this.ishorizontal() ? "touchstart" === e.type || "touchmove" === e.type ? e.targettouches[0].clientx: e.clientx: "touchstart" === e.type || "touchmove" === e.type ? e.targettouches[0].clienty: e.clienty
},
setdragposition: function(e) {
var t, a = this,
i = a.scrollbar,
s = a.rtltranslate,
r = i.$el,
n = i.dragsize,
l = i.tracksize,
o = i.dragstartpos;
t = (i.getpointerposition(e) - r.offset()[a.ishorizontal() ? "left": "top"] - (null !== o ? o: n / 2)) / (l - n),
t = math.max(math.min(t, 1), 0),
s && (t = 1 - t);
var d = a.mintranslate() + (a.maxtranslate() - a.mintranslate()) * t;
a.updateprogress(d),
a.settranslate(d),
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,
t.scrollbar.dragstartpos = e.target === n[0] || e.target === n ? i.getpointerposition(e) - e.target.getboundingclientrect()[t.ishorizontal() ? "left": "top"] : null,
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.params.cssmode && t.$wrapperel.css("scroll-snap-type", "none"),
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,
s = t.$wrapperel,
r = i.$el;
t.scrollbar.istouched && (t.scrollbar.istouched = !1, t.params.cssmode && (t.$wrapperel.css("scroll-snap-type", ""), s.transition("")), a.hide && (cleartimeout(t.scrollbar.dragtimeout), t.scrollbar.dragtimeout = e((function() {
r.css("opacity", 0),
r.transition(400)
}), 1e3)), t.emit("scrollbardragend", e), a.snaponrelease && t.slidetoclosest())
},
enabledraggable: function() {
var e = this;
if (e.params.scrollbar.el) {
var t = r(),
a = e.scrollbar,
i = e.toucheventstouch,
s = e.toucheventsdesktop,
n = e.params,
l = e.support,
o = a.$el[0],
d = !(!l.passivelistener || !n.passivelisteners) && {
passive: !1,
capture: !1
},
p = !(!l.passivelistener || !n.passivelisteners) && {
passive: !0,
capture: !1
};
l.touch ? (o.addeventlistener(i.start, e.scrollbar.ondragstart, d), o.addeventlistener(i.move, e.scrollbar.ondragmove, d), o.addeventlistener(i.end, e.scrollbar.ondragend, p)) : (o.addeventlistener(s.start, e.scrollbar.ondragstart, d), t.addeventlistener(s.move, e.scrollbar.ondragmove, d), t.addeventlistener(s.end, e.scrollbar.ondragend, p))
}
},
disabledraggable: function() {
var e = this;
if (e.params.scrollbar.el) {
var t = r(),
a = e.scrollbar,
i = e.toucheventstouch,
s = e.toucheventsdesktop,
n = e.params,
l = e.support,
o = a.$el[0],
d = !(!l.passivelistener || !n.passivelisteners) && {
passive: !1,
capture: !1
},
p = !(!l.passivelistener || !n.passivelisteners) && {
passive: !0,
capture: !1
};
l.touch ? (o.removeeventlistener(i.start, e.scrollbar.ondragstart, d), o.removeeventlistener(i.move, e.scrollbar.ondragmove, d), o.removeeventlistener(i.end, e.scrollbar.ondragend, p)) : (o.removeeventlistener(s.start, e.scrollbar.ondragstart, d), t.removeeventlistener(s.move, e.scrollbar.ondragmove, d), t.removeeventlistener(s.end, e.scrollbar.ondragend, p))
}
},
init: function() {
var e = this;
if (e.params.scrollbar.el) {
var t = e.scrollbar,
a = e.$el,
i = e.params.scrollbar,
s = m(i.el);
e.params.uniquenavelements && "string" == typeof i.el && s.length > 1 && 1 === a.find(i.el).length && (s = a.find(i.el));
var r = s.find("." + e.params.scrollbar.dragclass);
0 === r.length && (r = m(''), s.append(r)),
s(t, {
$el: s,
el: s[0],
$dragel: r,
dragel: r[0]
}),
i.draggable && t.enabledraggable()
}
},
destroy: function() {
this.scrollbar.disabledraggable()
}
},
q = {
settransform: function(e, t) {
var a = this.rtl,
i = m(e),
s = a ? -1 : 1,
r = i.attr("data-swiper-parallax") || "0",
n = i.attr("data-swiper-parallax-x"),
l = i.attr("data-swiper-parallax-y"),
o = i.attr("data-swiper-parallax-scale"),
d = i.attr("data-swiper-parallax-opacity");
if (n || l ? (n = n || "0", l = l || "0") : this.ishorizontal() ? (n = r, l = "0") : (l = r, n = "0"), n = n.indexof("%") >= 0 ? parseint(n, 10) * t * s + "%": n * t * s + "px", l = l.indexof("%") >= 0 ? parseint(l, 10) * t + "%": l * t + "px", null != d) {
var p = d - (d - 1) * (1 - math.abs(t));
i[0].style.opacity = p
}
if (null == o) i.transform("translate3d(" + n + ", " + l + ", 0px)");
else {
var u = o - (o - 1) * (1 - math.abs(t));
i.transform("translate3d(" + n + ", " + l + ", 0px) scale(" + u + ")")
}
},
settranslate: function() {
var e = this,
t = e.$el,
a = e.slides,
i = e.progress,
s = e.snapgrid;
t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t) {
e.parallax.settransform(t, i)
})),
a.each((function(t, a) {
var r = t.progress;
e.params.slidespergroup > 1 && "auto" !== e.params.slidesperview && (r += math.ceil(a / 2) - i * (s.length - 1)),
r = math.min(math.max(r, -1), 1),
m(t).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t) {
e.parallax.settransform(t, r)
}))
}))
},
settransition: function(e) {
void 0 === e && (e = this.params.speed);
this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t) {
var a = m(t),
i = parseint(a.attr("data-swiper-parallax-duration"), 10) || e;
0 === e && (i = 0),
a.transition(i)
}))
}
},
ee = {
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(e) {
var t = this,
a = t.support,
i = t.params.zoom,
s = t.zoom,
r = s.gesture;
if (s.fakegesturetouched = !1, s.fakegesturemoved = !1, !a.gestures) {
if ("touchstart" !== e.type || "touchstart" === e.type && e.targettouches.length < 2) return;
s.fakegesturetouched = !0,
r.scalestart = ee.getdistancebetweentouches(e)
}
r.$slideel && r.$slideel.length || (r.$slideel = m(e.target).closest("." + t.params.slideclass), 0 === r.$slideel.length && (r.$slideel = t.slides.eq(t.activeindex)), r.$imageel = r.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"), r.$imagewrapel = r.$imageel.parent("." + i.containerclass), r.maxratio = r.$imagewrapel.attr("data-swiper-zoom") || i.maxratio, 0 !== r.$imagewrapel.length) ? (r.$imageel && r.$imageel.transition(0), t.zoom.isscaling = !0) : r.$imageel = void 0
},
ongesturechange: function(e) {
var t = this,
a = t.support,
i = t.params.zoom,
s = t.zoom,
r = s.gesture;
if (!a.gestures) {
if ("touchmove" !== e.type || "touchmove" === e.type && e.targettouches.length < 2) return;
s.fakegesturemoved = !0,
r.scalemove = ee.getdistancebetweentouches(e)
}
r.$imageel && 0 !== r.$imageel.length ? (a.gestures ? s.scale = e.scale * s.currentscale: s.scale = r.scalemove / r.scalestart * s.currentscale, s.scale > r.maxratio && (s.scale = r.maxratio - 1 + math.pow(s.scale - r.maxratio + 1, .5)), s.scale < i.minratio && (s.scale = i.minratio + 1 - math.pow(i.minratio - s.scale + 1, .5)), r.$imageel.transform("translate3d(0,0,0) scale(" + s.scale + ")")) : "gesturechange" === e.type && s.ongesturestart(e)
},
ongestureend: function(e) {
var t = this,
a = t.device,
i = t.support,
s = t.params.zoom,
r = t.zoom,
n = r.gesture;
if (!i.gestures) {
if (!r.fakegesturetouched || !r.fakegesturemoved) return;
if ("touchend" !== e.type || "touchend" === e.type && e.changedtouches.length < 2 && !a.android) return;
r.fakegesturetouched = !1,
r.fakegesturemoved = !1
}
n.$imageel && 0 !== n.$imageel.length && (r.scale = math.max(math.min(r.scale, n.maxratio), s.minratio), n.$imageel.transition(t.params.speed).transform("translate3d(0,0,0) scale(" + r.scale + ")"), r.currentscale = r.scale, r.isscaling = !1, 1 === r.scale && (n.$slideel = void 0))
},
ontouchstart: function(e) {
var t = this.device,
a = this.zoom,
i = a.gesture,
s = a.image;
i.$imageel && 0 !== i.$imageel.length && (s.istouched || (t.android && e.cancelable && e.preventdefault(), s.istouched = !0, s.touchesstart.x = "touchstart" === e.type ? e.targettouches[0].pagex: e.pagex, s.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 = t(i.$imagewrapel[0], "x") || 0, s.starty = t(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, s.starty = -s.starty));
var n = s.width * a.scale,
l = s.height * a.scale;
if (! (n < i.slidewidth && l < i.slideheight)) {
if (s.minx = math.min(i.slidewidth / 2 - n / 2, 0), s.maxx = -s.minx, s.miny = math.min(i.slideheight / 2 - l / 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.cancelable && 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,
l = a.currentx + n,
o = i.y * r,
d = a.currenty + o;
0 !== i.x && (s = math.abs((l - a.currentx) / i.x)),
0 !== i.y && (r = math.abs((d - a.currenty) / i.y));
var p = math.max(s, r);
a.currentx = l,
a.currenty = d;
var u = a.width * e.scale,
c = a.height * e.scale;
a.minx = math.min(t.slidewidth / 2 - u / 2, 0),
a.maxx = -a.minx,
a.miny = math.min(t.slideheight / 2 - c / 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 && a.$imageel.transform("translate3d(0,0,0) scale(1)"), a.$imagewrapel && a.$imagewrapel.transform("translate3d(0,0,0)"), t.scale = 1, t.currentscale = 1, a.$slideel = void 0, a.$imageel = void 0, a.$imagewrapel = void 0)
},
toggle: function(e) {
var t = this.zoom;
t.scale && 1 !== t.scale ? t.out() : t. in (e)
},
in:function(e) {
var t, a, i, s, r, n, l, o, d, p, u, c, h, v, f, m, g = this,
y = g.zoom,
w = g.params.zoom,
b = y.gesture,
e = y.image; (b.$slideel || (g.params.virtual && g.params.virtual.enabled && g.virtual ? b.$slideel = g.$wrapperel.children("." + g.params.slideactiveclass) : b.$slideel = g.slides.eq(g.activeindex), b.$imageel = b.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"), b.$imagewrapel = b.$imageel.parent("." + w.containerclass)), b.$imageel && 0 !== b.$imageel.length) && (b.$slideel.addclass("" + w.zoomedslideclass), void 0 === e.touchesstart.x && e ? (t = "touchend" === e.type ? e.changedtouches[0].pagex: e.pagex, a = "touchend" === e.type ? e.changedtouches[0].pagey: e.pagey) : (t = e.touchesstart.x, a = e.touchesstart.y), y.scale = b.$imagewrapel.attr("data-swiper-zoom") || w.maxratio, y.currentscale = b.$imagewrapel.attr("data-swiper-zoom") || w.maxratio, e ? (f = b.$slideel[0].offsetwidth, m = b.$slideel[0].offsetheight, i = b.$slideel.offset().left + f / 2 - t, s = b.$slideel.offset().top + m / 2 - a, l = b.$imageel[0].offsetwidth, o = b.$imageel[0].offsetheight, d = l * y.scale, p = o * y.scale, h = -(u = math.min(f / 2 - d / 2, 0)), v = -(c = math.min(m / 2 - p / 2, 0)), (r = i * y.scale) < u && (r = u), r > h && (r = h), (n = s * y.scale) < c && (n = c), n > v && (n = v)) : (r = 0, n = 0), b.$imagewrapel.transition(300).transform("translate3d(" + r + "px, " + n + "px,0)"), b.$imageel.transition(300).transform("translate3d(0,0,0) scale(" + y.scale + ")"))
},
out: function() {
var e = this,
t = e.zoom,
a = e.params.zoom,
i = t.gesture;
i.$slideel || (e.params.virtual && e.params.virtual.enabled && e.virtual ? i.$slideel = e.$wrapperel.children("." + e.params.slideactiveclass) : i.$slideel = e.slides.eq(e.activeindex), i.$imageel = i.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"), i.$imagewrapel = i.$imageel.parent("." + a.containerclass)),
i.$imageel && 0 !== i.$imageel.length && (t.scale = 1, t.currentscale = 1, i.$imagewrapel.transition(300).transform("translate3d(0,0,0)"), i.$imageel.transition(300).transform("translate3d(0,0,0) scale(1)"), i.$slideel.removeclass("" + a.zoomedslideclass), i.$slideel = void 0)
},
togglegestures: function(e) {
var t = this,
a = t.zoom,
i = a.slideselector,
s = a.passivelistener;
t.$wrapperel[e]("gesturestart", i, a.ongesturestart, s),
t.$wrapperel[e]("gesturechange", i, a.ongesturechange, s),
t.$wrapperel[e]("gestureend", i, a.ongestureend, s)
},
enablegestures: function() {
this.zoom.gesturesenabled || (this.zoom.gesturesenabled = !0, this.zoom.togglegestures("on"))
},
disablegestures: function() {
this.zoom.gesturesenabled && (this.zoom.gesturesenabled = !1, this.zoom.togglegestures("off"))
},
enable: function() {
var e = this,
t = e.support,
a = e.zoom;
if (!a.enabled) {
a.enabled = !0;
var i = !("touchstart" !== e.touchevents.start || !t.passivelistener || !e.params.passivelisteners) && {
passive: !0,
capture: !1
},
s = !t.passivelistener || {
passive: !1,
capture: !0
},
r = "." + e.params.slideclass;
e.zoom.passivelistener = i,
e.zoom.slideselector = r,
t.gestures ? (e.$wrapperel.on(e.touchevents.start, e.zoom.enablegestures, i), e.$wrapperel.on(e.touchevents.end, e.zoom.disablegestures, i)) : "touchstart" === e.touchevents.start && (e.$wrapperel.on(e.touchevents.start, r, a.ongesturestart, i), e.$wrapperel.on(e.touchevents.move, r, a.ongesturechange, s), e.$wrapperel.on(e.touchevents.end, r, a.ongestureend, i), e.touchevents.cancel && e.$wrapperel.on(e.touchevents.cancel, r, a.ongestureend, i)),
e.$wrapperel.on(e.touchevents.move, "." + e.params.zoom.containerclass, a.ontouchmove, s)
}
},
disable: function() {
var e = this,
t = e.zoom;
if (t.enabled) {
var a = e.support;
e.zoom.enabled = !1;
var i = !("touchstart" !== e.touchevents.start || !a.passivelistener || !e.params.passivelisteners) && {
passive: !0,
capture: !1
},
s = !a.passivelistener || {
passive: !1,
capture: !0
},
r = "." + e.params.slideclass;
a.gestures ? (e.$wrapperel.off(e.touchevents.start, e.zoom.enablegestures, i), e.$wrapperel.off(e.touchevents.end, e.zoom.disablegestures, i)) : "touchstart" === e.touchevents.start && (e.$wrapperel.off(e.touchevents.start, r, t.ongesturestart, i), e.$wrapperel.off(e.touchevents.move, r, t.ongesturechange, s), e.$wrapperel.off(e.touchevents.end, r, t.ongestureend, i), e.touchevents.cancel && e.$wrapperel.off(e.touchevents.cancel, r, t.ongestureend, i)),
e.$wrapperel.off(e.touchevents.move, "." + e.params.zoom.containerclass, t.ontouchmove, s)
}
}
},
te = {
loadinslide: function(e, t) {
void 0 === t && (t = !0);
var a = this,
i = a.params.lazy;
if (void 0 !== e && 0 !== a.slides.length) {
var s = a.virtual && a.params.virtual.enabled ? a.$wrapperel.children("." + a.params.slideclass + '[data-swiper-slide-index="' + e + '"]') : a.slides.eq(e),
r = s.find("." + i.elementclass + ":not(." + i.loadedclass + "):not(." + i.loadingclass + ")"); ! s.hasclass(i.elementclass) || s.hasclass(i.loadedclass) || s.hasclass(i.loadingclass) || r.push(s[0]),
0 !== r.length && r.each((function(e) {
var r = m(e);
r.addclass(i.loadingclass);
var n = r.attr("data-background"),
l = r.attr("data-src"),
o = r.attr("data-srcset"),
d = r.attr("data-sizes"),
p = r.parent("picture");
a.loadimage(r[0], l || n, o, d, !1, (function() {
if (null != a && a && (!a || a.params) && !a.destroyed) {
if (n ? (r.css("background-image", 'url("' + n + '")'), r.removeattr("data-background")) : (o && (r.attr("srcset", o), r.removeattr("data-srcset")), d && (r.attr("sizes", d), r.removeattr("data-sizes")), p.length && p.children("source").each((function(e) {
var t = m(e);
t.attr("data-srcset") && (t.attr("srcset", t.attr("data-srcset")), t.removeattr("data-srcset"))
})), l && (r.attr("src", l), r.removeattr("data-src"))), r.addclass(i.loadedclass).removeclass(i.loadingclass), s.find("." + i.preloaderclass).remove(), a.params.loop && t) {
var e = s.attr("data-swiper-slide-index");
if (s.hasclass(a.params.slideduplicateclass)) {
var u = a.$wrapperel.children('[data-swiper-slide-index="' + e + '"]:not(.' + a.params.slideduplicateclass + ")");
a.lazy.loadinslide(u.index(), !1)
} else {
var c = a.$wrapperel.children("." + a.params.slideduplicateclass + '[data-swiper-slide-index="' + e + '"]');
a.lazy.loadinslide(c.index(), !1)
}
}
a.emit("lazyimageready", s[0], r[0]),
a.params.autoheight && a.updateautoheight()
}
})),
a.emit("lazyimageload", s[0], r[0])
}))
}
},
load: function() {
var e = this,
t = e.$wrapperel,
a = e.params,
i = e.slides,
s = e.activeindex,
r = e.virtual && a.virtual.enabled,
n = a.lazy,
l = a.slidesperview;
function o(e) {
if (r) {
if (t.children("." + a.slideclass + '[data-swiper-slide-index="' + e + '"]').length) return ! 0
} else if (i[e]) return ! 0;
return ! 1
}
function d(e) {
return r ? m(e).attr("data-swiper-slide-index") : m(e).index()
}
if ("auto" === l && (l = 0), e.lazy.initialimageloaded || (e.lazy.initialimageloaded = !0), e.params.watchslidesvisibility) t.children("." + a.slidevisibleclass).each((function(t) {
var a = r ? m(t).attr("data-swiper-slide-index") : m(t).index();
e.lazy.loadinslide(a)
}));
else if (l > 1) for (var p = s; p < s + l; p += 1) o(p) && e.lazy.loadinslide(p);
else e.lazy.loadinslide(s);
if (n.loadprevnext) if (l > 1 || n.loadprevnextamount && n.loadprevnextamount > 1) {
for (var u = n.loadprevnextamount,
c = l,
h = math.min(s + c + math.max(u, c), i.length), v = math.max(s - math.max(c, u), 0), f = s + l; f < h; f += 1) o(f) && e.lazy.loadinslide(f);
for (var g = v; g < s; g += 1) o(g) && e.lazy.loadinslide(g)
} else {
var y = t.children("." + a.slidenextclass);
y.length > 0 && e.lazy.loadinslide(d(y));
var w = t.children("." + a.slideprevclass);
w.length > 0 && e.lazy.loadinslide(d(w))
}
},
checkinviewonload: function() {
var e = l(),
t = this;
if (t && !t.destroyed) {
var a = t.params.lazy.scrollingelement ? m(t.params.lazy.scrollingelement) : m(e),
i = a[0] === e,
s = i ? e.innerwidth: a[0].offsetwidth,
r = i ? e.innerheight: a[0].offsetheight,
n = t.$el.offset(),
o = !1;
t.rtltranslate && (n.left -= t.$el[0].scrollleft);
for (var d = [[n.left, n.top], [n.left + t.width, n.top], [n.left, n.top + t.height], [n.left + t.width, n.top + t.height]], p = 0; p < d.length; p += 1) {
var u = d[p];
if (u[0] >= 0 && u[0] <= s && u[1] >= 0 && u[1] <= r) {
if (0 === u[0] && 0 === u[1]) continue;
o = !0
}
}
o ? (t.lazy.load(), a.off("scroll", t.lazy.checkinviewonload)) : t.lazy.scrollhandlerattached || (t.lazy.scrollhandlerattached = !0, a.on("scroll", t.lazy.checkinviewonload))
}
}
},
ae = {
linearspline: function(e, t) {
var a, i, s, r, n, l = function(e, t) {
for (i = -1, a = e.length; a - i > 1;) e[s = a + i >> 1] <= t ? i = s: a = s;
return a
};
return this.x = e,
this.y = t,
this.lastindex = e.length - 1,
this.interpolate = function(e) {
return e ? (n = l(this.x, e), r = n - 1, (e - this.x[r]) * (this.y[n] - this.y[r]) / (this.x[n] - this.x[r]) + this.y[r]) : 0
},
this
},
getinterpolatefunction: function(e) {
var t = this;
t.controller.spline || (t.controller.spline = t.params.loop ? new ae.linearspline(t.slidesgrid, e.slidesgrid) : new ae.linearspline(t.snapgrid, e.snapgrid))
},
settranslate: function(e, t) {
var a, i, s = this,
r = s.controller.control,
n = s.constructor;
function l(e) {
var t = s.rtltranslate ? -s.translate: s.translate;
"slide" === s.params.controller.by && (s.controller.getinterpolatefunction(e), i = -s.controller.spline.interpolate( - t)),
i && "container" !== s.params.controller.by || (a = (e.maxtranslate() - e.mintranslate()) / (s.maxtranslate() - s.mintranslate()), i = (t - s.mintranslate()) * a + e.mintranslate()),
s.params.controller.inverse && (i = e.maxtranslate() - i),
e.updateprogress(i),
e.settranslate(i, s),
e.updateactiveindex(),
e.updateslidesclasses()
}
if (array.isarray(r)) for (var o = 0; o < r.length; o += 1) r[o] !== t && r[o] instanceof n && l(r[o]);
else r instanceof n && t !== r && l(r)
},
settransition: function(e, t) {
var a, i = this,
s = i.constructor,
r = i.controller.control;
function n(t) {
t.settransition(e, i),
0 !== e && (t.transitionstart(), t.params.autoheight && e((function() {
t.updateautoheight()
})), t.$wrapperel.transitionend((function() {
r && (t.params.loop && "slide" === i.params.controller.by && t.loopfix(), t.transitionend())
})))
}
if (array.isarray(r)) for (a = 0; a < r.length; a += 1) r[a] !== t && r[a] instanceof s && n(r[a]);
else r instanceof s && t !== r && n(r)
}
},
ie = {
getrandomnumber: function(e) {
void 0 === e && (e = 16);
return "x".repeat(e).replace(/x/g, (function() {
return math.round(16 * math.random()).tostring(16)
}))
},
makeelfocusable: function(e) {
return e.attr("tabindex", "0"),
e
},
makeelnotfocusable: function(e) {
return e.attr("tabindex", "-1"),
e
},
addelrole: function(e, t) {
return e.attr("role", t),
e
},
addelroledescription: function(e, t) {
return e.attr("aria-role-description", t),
e
},
addelcontrols: function(e, t) {
return e.attr("aria-controls", t),
e
},
addellabel: function(e, t) {
return e.attr("aria-label", t),
e
},
addelid: function(e, t) {
return e.attr("id", t),
e
},
addellive: function(e, t) {
return e.attr("aria-live", t),
e
},
disableel: function(e) {
return e.attr("aria-disabled", !0),
e
},
enableel: function(e) {
return e.attr("aria-disabled", !1),
e
},
onenterkey: function(e) {
var t = this,
a = t.params.a11y;
if (13 === e.keycode) {
var i = m(e.target);
t.navigation && t.navigation.$nextel && i.is(t.navigation.$nextel) && (t.isend && !t.params.loop || t.slidenext(), t.isend ? t.a11y.notify(a.lastslidemessage) : t.a11y.notify(a.nextslidemessage)),
t.navigation && t.navigation.$prevel && i.is(t.navigation.$prevel) && (t.isbeginning && !t.params.loop || t.slideprev(), t.isbeginning ? t.a11y.notify(a.firstslidemessage) : t.a11y.notify(a.prevslidemessage)),
t.pagination && i.is("." + t.params.pagination.bulletclass.replace(/ /g, ".")) && i[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 && e.navigation) {
var t = e.navigation,
a = t.$nextel,
i = t.$prevel;
i && i.length > 0 && (e.isbeginning ? (e.a11y.disableel(i), e.a11y.makeelnotfocusable(i)) : (e.a11y.enableel(i), e.a11y.makeelfocusable(i))),
a && a.length > 0 && (e.isend ? (e.a11y.disableel(a), e.a11y.makeelnotfocusable(a)) : (e.a11y.enableel(a), e.a11y.makeelfocusable(a)))
}
},
updatepagination: function() {
var e = this,
t = e.params.a11y;
e.pagination && e.params.pagination.clickable && e.pagination.bullets && e.pagination.bullets.length && e.pagination.bullets.each((function(a) {
var i = m(a);
e.a11y.makeelfocusable(i),
e.params.pagination.renderbullet || (e.a11y.addelrole(i, "button"), e.a11y.addellabel(i, t.paginationbulletmessage.replace(/\{\{index\}\}/, i.index() + 1)))
}))
},
init: function() {
var e = this,
t = e.params.a11y;
e.$el.append(e.a11y.liveregion);
var a = e.$el;
t.containerroledescriptionmessage && e.a11y.addelroledescription(a, t.containerroledescriptionmessage),
t.containermessage && e.a11y.addellabel(a, t.containermessage);
var i, s, r, n = e.$wrapperel,
l = n.attr("id") || "swiper-wrapper-" + e.a11y.getrandomnumber(16);
e.a11y.addelid(n, l),
i = e.params.autoplay && e.params.autoplay.enabled ? "off": "polite",
e.a11y.addellive(n, i),
t.itemroledescriptionmessage && e.a11y.addelroledescription(m(e.slides), t.itemroledescriptionmessage),
e.a11y.addelrole(m(e.slides), "group"),
e.slides.each((function(t) {
var a = m(t);
e.a11y.addellabel(a, a.index() + 1 + " / " + e.slides.length)
})),
e.navigation && e.navigation.$nextel && (s = e.navigation.$nextel),
e.navigation && e.navigation.$prevel && (r = e.navigation.$prevel),
s && s.length && (e.a11y.makeelfocusable(s), "button" !== s[0].tagname && (e.a11y.addelrole(s, "button"), s.on("keydown", e.a11y.onenterkey)), e.a11y.addellabel(s, t.nextslidemessage), e.a11y.addelcontrols(s, l)),
r && r.length && (e.a11y.makeelfocusable(r), "button" !== r[0].tagname && (e.a11y.addelrole(r, "button"), r.on("keydown", e.a11y.onenterkey)), e.a11y.addellabel(r, t.prevslidemessage), e.a11y.addelcontrols(r, l)),
e.pagination && e.params.pagination.clickable && e.pagination.bullets && e.pagination.bullets.length && e.pagination.$el.on("keydown", "." + e.params.pagination.bulletclass.replace(/ /g, "."), e.a11y.onenterkey)
},
destroy: function() {
var e, t, a = this;
a.a11y.liveregion && a.a11y.liveregion.length > 0 && a.a11y.liveregion.remove(),
a.navigation && a.navigation.$nextel && (e = a.navigation.$nextel),
a.navigation && a.navigation.$prevel && (t = a.navigation.$prevel),
e && e.off("keydown", a.a11y.onenterkey),
t && t.off("keydown", a.a11y.onenterkey),
a.pagination && a.params.pagination.clickable && a.pagination.bullets && a.pagination.bullets.length && a.pagination.$el.off("keydown", "." + a.params.pagination.bulletclass.replace(/ /g, "."), a.a11y.onenterkey)
}
},
se = {
init: function() {
var e = this,
t = l();
if (e.params.history) {
if (!t.history || !t.history.pushstate) return e.params.history.enabled = !1,
void(e.params.hashnavigation.enabled = !0);
var a = e.history;
a.initialized = !0,
a.paths = se.getpathvalues(e.params.url),
(a.paths.key || a.paths.value) && (a.scrolltoslide(0, a.paths.value, e.params.runcallbacksoninit), e.params.history.replacestate || t.addeventlistener("popstate", e.history.sethistorypopstate))
}
},
destroy: function() {
var e = l();
this.params.history.replacestate || e.removeeventlistener("popstate", this.history.sethistorypopstate)
},
sethistorypopstate: function() {
var e = this;
e.history.paths = se.getpathvalues(e.params.url),
e.history.scrolltoslide(e.params.speed, e.history.paths.value, !1)
},
getpathvalues: function(e) {
var t = l(),
a = (e ? new url(e) : t.location).pathname.slice(1).split("/").filter((function(e) {
return "" !== e
})),
i = a.length;
return {
key: a[i - 2],
value: a[i - 1]
}
},
sethistory: function(e, t) {
var a = this,
i = l();
if (a.history.initialized && a.params.history.enabled) {
var s;
s = a.params.url ? new url(a.params.url) : i.location;
var r = a.slides.eq(t),
n = se.slugify(r.attr("data-history"));
s.pathname.includes(e) || (n = e + "/" + n);
var o = i.history.state;
o && o.value === n || (a.params.history.replacestate ? i.history.replacestate({
value: n
},
null, n) : i.history.pushstate({
value: n
},
null, n))
}
},
slugify: function(e) {
return e.tostring().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 (se.slugify(n.attr("data-history")) === t && !n.hasclass(i.params.slideduplicateclass)) {
var l = n.index();
i.slideto(l, e, a)
}
} else i.slideto(0, e, a)
}
},
re = {
onhashcange: function() {
var e = this,
t = r();
e.emit("hashchange");
var a = t.location.hash.replace("#", "");
if (a !== e.slides.eq(e.activeindex).attr("data-hash")) {
var i = e.$wrapperel.children("." + e.params.slideclass + '[data-hash="' + a + '"]').index();
if (void 0 === i) return;
e.slideto(i)
}
},
sethash: function() {
var e = this,
t = l(),
a = r();
if (e.hashnavigation.initialized && e.params.hashnavigation.enabled) if (e.params.hashnavigation.replacestate && t.history && t.history.replacestate) t.history.replacestate(null, null, "#" + e.slides.eq(e.activeindex).attr("data-hash") || ""),
e.emit("hashset");
else {
var i = e.slides.eq(e.activeindex),
s = i.attr("data-hash") || i.attr("data-history");
a.location.hash = s || "",
e.emit("hashset")
}
},
init: function() {
var e = this,
t = r(),
a = l();
if (! (!e.params.hashnavigation.enabled || e.params.history && e.params.history.enabled)) {
e.hashnavigation.initialized = !0;
var i = t.location.hash.replace("#", "");
if (i) for (var s = 0,
n = e.slides.length; s < n; s += 1) {
var o = e.slides.eq(s);
if ((o.attr("data-hash") || o.attr("data-history")) === i && !o.hasclass(e.params.slideduplicateclass)) {
var d = o.index();
e.slideto(d, 0, e.params.runcallbacksoninit, !0)
}
}
e.params.hashnavigation.watchstate && m(a).on("hashchange", e.hashnavigation.onhashcange)
}
},
destroy: function() {
var e = l();
this.params.hashnavigation.watchstate && m(e).off("hashchange", this.hashnavigation.onhashcange)
}
},
ne = {
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),
cleartimeout(e.autoplay.timeout),
e.autoplay.timeout = e((function() {
var t;
e.params.autoplay.reversedirection ? e.params.loop ? (e.loopfix(), t = e.slideprev(e.params.speed, !0, !0), e.emit("autoplay")) : e.isbeginning ? e.params.autoplay.stoponlastslide ? e.autoplay.stop() : (t = e.slideto(e.slides.length - 1, e.params.speed, !0, !0), e.emit("autoplay")) : (t = e.slideprev(e.params.speed, !0, !0), e.emit("autoplay")) : e.params.loop ? (e.loopfix(), t = e.slidenext(e.params.speed, !0, !0), e.emit("autoplay")) : e.isend ? e.params.autoplay.stoponlastslide ? e.autoplay.stop() : (t = e.slideto(0, e.params.speed, !0, !0), e.emit("autoplay")) : (t = e.slidenext(e.params.speed, !0, !0), e.emit("autoplay")),
(e.params.cssmode && e.autoplay.running || !1 === t) && e.autoplay.run()
}), 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.params.autoplay.waitfortransition ? (t.$wrapperel[0].addeventlistener("transitionend", t.autoplay.ontransitionend), t.$wrapperel[0].addeventlistener("webkittransitionend", t.autoplay.ontransitionend)) : (t.autoplay.paused = !1, t.autoplay.run())))
},
onvisibilitychange: function() {
var e = this,
t = r();
"hidden" === t.visibilitystate && e.autoplay.running && e.autoplay.pause(),
"visible" === t.visibilitystate && e.autoplay.paused && (e.autoplay.run(), e.autoplay.paused = !1)
},
ontransitionend: function(e) {
var t = this;
t && !t.destroyed && t.$wrapperel && e.target === t.$wrapperel[0] && (t.$wrapperel[0].removeeventlistener("transitionend", t.autoplay.ontransitionend), t.$wrapperel[0].removeeventlistener("webkittransitionend", t.autoplay.ontransitionend), t.autoplay.paused = !1, t.autoplay.running ? t.autoplay.run() : t.autoplay.stop())
}
},
le = {
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])
}
}))
}
}
},
oe = {
settranslate: function() {
var e, t = this,
a = t.$el,
i = t.$wrapperel,
s = t.slides,
r = t.width,
n = t.height,
l = t.rtltranslate,
o = t.size,
d = t.browser,
p = t.params.cubeeffect,
u = t.ishorizontal(),
c = t.virtual && t.params.virtual.enabled,
h = 0;
p.shadow && (u ? (0 === (e = i.find(".swiper-cube-shadow")).length && (e = m(''), i.append(e)), e.css({
height: r + "px"
})) : 0 === (e = a.find(".swiper-cube-shadow")).length && (e = m(''), a.append(e)));
for (var v = 0; v < s.length; v += 1) {
var f = s.eq(v),
g = v;
c && (g = parseint(f.attr("data-swiper-slide-index"), 10));
var y = 90 * g,
w = math.floor(y / 360);
l && (y = -y, w = math.floor( - y / 360));
var b = math.max(math.min(f[0].progress, 1), -1),
e = 0,
x = 0,
t = 0;
g % 4 == 0 ? (e = 4 * -w * o, t = 0) : (g - 1) % 4 == 0 ? (e = 0, t = 4 * -w * o) : (g - 2) % 4 == 0 ? (e = o + 4 * w * o, t = o) : (g - 3) % 4 == 0 && (e = -o, t = 3 * o + 4 * o * w),
l && (e = -e),
u || (x = e, e = 0);
var c = "rotatex(" + (u ? 0 : -y) + "deg) rotatey(" + (u ? y: 0) + "deg) translate3d(" + e + "px, " + x + "px, " + t + "px)";
if (b <= 1 && b > -1 && (h = 90 * g + 90 * b, l && (h = 90 * -g - 90 * b)), f.transform(c), p.slideshadows) {
var s = u ? f.find(".swiper-slide-shadow-left") : f.find(".swiper-slide-shadow-top"),
m = u ? f.find(".swiper-slide-shadow-right") : f.find(".swiper-slide-shadow-bottom");
0 === s.length && (s = m(''), f.append(s)),
0 === m.length && (m = m(''), f.append(m)),
s.length && (s[0].style.opacity = math.max( - b, 0)),
m.length && (m[0].style.opacity = math.max(b, 0))
}
}
if (i.css({
"-webkit-transform-origin": "50% 50% -" + o / 2 + "px",
"-moz-transform-origin": "50% 50% -" + o / 2 + "px",
"-ms-transform-origin": "50% 50% -" + o / 2 + "px",
"transform-origin": "50% 50% -" + o / 2 + "px"
}), p.shadow) if (u) e.transform("translate3d(0px, " + (r / 2 + p.shadowoffset) + "px, " + -r / 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,
l = p.shadowscale / p,
$ = p.shadowoffset;
e.transform("scale3d(" + k + ", 1, " + l + ") translate3d(0px, " + (n / 2 + $) + "px, " + -n / 2 / l + "px) rotatex(-90deg)")
}
var i = d.issafari || d.iswebview ? -o / 2 : 0;
i.transform("translate3d(0px,0," + i + "px) rotatex(" + (t.ishorizontal() ? 0 : h) + "deg) rotatey(" + (t.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)
}
},
de = {
settranslate: function() {
for (var e = this,
t = e.slides,
a = e.rtltranslate,
i = 0; i < t.length; i += 1) {
var s = t.eq(i),
r = s[0].progress;
e.params.flipeffect.limitrotation && (r = math.max(math.min(s[0].progress, 1), -1));
var n = -180 * r,
l = 0,
o = -s[0].swiperslideoffset,
d = 0;
if (e.ishorizontal() ? a && (n = -n) : (d = o, o = 0, l = -n, n = 0), s[0].style.zindex = -math.abs(math.round(r)) + t.length, e.params.flipeffect.slideshadows) {
var p = e.ishorizontal() ? s.find(".swiper-slide-shadow-left") : s.find(".swiper-slide-shadow-top"),
u = e.ishorizontal() ? s.find(".swiper-slide-shadow-right") : s.find(".swiper-slide-shadow-bottom");
0 === p.length && (p = m(''), s.append(p)),
0 === u.length && (u = m(''), s.append(u)),
p.length && (p[0].style.opacity = math.max( - r, 0)),
u.length && (u[0].style.opacity = math.max(r, 0))
}
s.transform("translate3d(" + o + "px, " + d + "px, 0px) rotatex(" + l + "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])
}
}))
}
}
},
pe = {
settranslate: function() {
for (var e = this,
t = e.width,
a = e.height,
i = e.slides,
s = e.slidessizesgrid,
r = e.params.coverfloweffect,
n = e.ishorizontal(), l = e.translate, o = n ? t / 2 - l: a / 2 - l, d = n ? r.rotate: -r.rotate, p = r.depth, u = 0, c = i.length; u < c; u += 1) {
var h = i.eq(u),
v = s[u],
f = (o - h[0].swiperslideoffset - v / 2) / v * r.modifier,
g = n ? d * f: 0,
y = n ? 0 : d * f,
w = -p * math.abs(f),
b = r.stretch;
"string" == typeof b && -1 !== b.indexof("%") && (b = parsefloat(r.stretch) / 100 * v);
var e = n ? 0 : b * f,
x = n ? b * f: 0,
t = 1 - (1 - r.scale) * math.abs(f);
math.abs(x) < .001 && (x = 0),
math.abs(e) < .001 && (e = 0),
math.abs(w) < .001 && (w = 0),
math.abs(g) < .001 && (g = 0),
math.abs(y) < .001 && (y = 0),
math.abs(t) < .001 && (t = 0);
var c = "translate3d(" + x + "px," + e + "px," + w + "px) rotatex(" + y + "deg) rotatey(" + g + "deg) scale(" + t + ")";
if (h.transform(c), h[0].style.zindex = 1 - math.abs(math.round(f)), r.slideshadows) {
var s = n ? h.find(".swiper-slide-shadow-left") : h.find(".swiper-slide-shadow-top"),
m = n ? h.find(".swiper-slide-shadow-right") : h.find(".swiper-slide-shadow-bottom");
0 === s.length && (s = m(''), h.append(s)),
0 === m.length && (m = m(''), h.append(m)),
s.length && (s[0].style.opacity = f > 0 ? f: 0),
m.length && (m[0].style.opacity = -f > 0 ? -f: 0)
}
}
},
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)
}
},
ue = {
init: function() {
var e = this,
t = e.params.thumbs;
if (e.thumbs.initialized) return ! 1;
e.thumbs.initialized = !0;
var a = e.constructor;
return t.swiper instanceof a ? (e.thumbs.swiper = t.swiper, s(e.thumbs.swiper.originalparams, {
watchslidesprogress: !0,
slidetoclickedslide: !1
}), s(e.thumbs.swiper.params, {
watchslidesprogress: !0,
slidetoclickedslide: !1
})) : c(t.swiper) && (e.thumbs.swiper = new a(s({},
t.swiper, {
watchslidesvisibility: !0,
watchslidesprogress: !0,
slidetoclickedslide: !1
})), e.thumbs.swipercreated = !0),
e.thumbs.swiper.$el.addclass(e.params.thumbs.thumbscontainerclass),
e.thumbs.swiper.on("tap", e.thumbs.onthumbclick),
!0
},
onthumbclick: function() {
var e = this,
t = e.thumbs.swiper;
if (t) {
var a = t.clickedindex,
i = t.clickedslide;
if (! (i && m(i).hasclass(e.params.thumbs.slidethumbactiveclass) || null == a)) {
var s;
if (s = t.params.loop ? parseint(m(t.clickedslide).attr("data-swiper-slide-index"), 10) : a, e.params.loop) {
var r = e.activeindex;
e.slides.eq(r).hasclass(e.params.slideduplicateclass) && (e.loopfix(), e._clientleft = e.$wrapperel[0].clientleft, r = e.activeindex);
var n = e.slides.eq(r).prevall('[data-swiper-slide-index="' + s + '"]').eq(0).index(),
l = e.slides.eq(r).nextall('[data-swiper-slide-index="' + s + '"]').eq(0).index();
s = void 0 === n ? l: void 0 === l ? n: l - r < r - n ? l: n
}
e.slideto(s)
}
}
},
update: function(e) {
var t = this,
a = t.thumbs.swiper;
if (a) {
var i = "auto" === a.params.slidesperview ? a.slidesperviewdynamic() : a.params.slidesperview,
s = t.params.thumbs.autoscrolloffset,
r = s && !a.params.loop;
if (t.realindex !== a.realindex || r) {
var n, l, o = a.activeindex;
if (a.params.loop) {
a.slides.eq(o).hasclass(a.params.slideduplicateclass) && (a.loopfix(), a._clientleft = a.$wrapperel[0].clientleft, o = a.activeindex);
var d = a.slides.eq(o).prevall('[data-swiper-slide-index="' + t.realindex + '"]').eq(0).index(),
p = a.slides.eq(o).nextall('[data-swiper-slide-index="' + t.realindex + '"]').eq(0).index();
n = void 0 === d ? p: void 0 === p ? d: p - o == o - d ? o: p - o < o - d ? p: d,
l = t.activeindex > t.previousindex ? "next": "prev"
} else l = (n = t.realindex) > t.previousindex ? "next": "prev";
r && (n += "next" === l ? s: -1 * s),
a.visibleslidesindexes && a.visibleslidesindexes.indexof(n) < 0 && (a.params.centeredslides ? n = n > o ? n - math.floor(i / 2) + 1 : n + math.floor(i / 2) - 1 : n > o && (n = n - i + 1), a.slideto(n, e ? 0 : void 0))
}
var u = 1,
c = t.params.thumbs.slidethumbactiveclass;
if (t.params.slidesperview > 1 && !t.params.centeredslides && (u = t.params.slidesperview), t.params.thumbs.multipleactivethumbs || (u = 1), u = math.floor(u), a.slides.removeclass(c), a.params.loop || a.params.virtual && a.params.virtual.enabled) for (var h = 0; h < u; h += 1) a.$wrapperel.children('[data-swiper-slide-index="' + (t.realindex + h) + '"]').addclass(c);
else for (var v = 0; v < u; v += 1) a.slides.eq(t.realindex + v).addclass(c)
}
}
},
ce = [q, _, {
name: "mousewheel",
params: {
mousewheel: {
enabled: !1,
releaseonedges: !1,
invert: !1,
forcetoaxis: !1,
sensitivity: 1,
eventstarget: "container",
thresholddelta: null,
thresholdtime: null
}
},
create: function() {
m(this, {
mousewheel: {
enabled: !1,
lastscrolltime: x(),
lasteventbeforesnap: void 0,
recentwheelevents: [],
enable: u.enable,
disable: u.disable,
handle: u.handle,
handlemouseenter: u.handlemouseenter,
handlemouseleave: u.handlemouseleave,
animateslider: u.animateslider,
releasescroll: u.releasescroll
}
})
},
on: {
init: function(e) { ! e.params.mousewheel.enabled && e.params.cssmode && e.mousewheel.disable(),
e.params.mousewheel.enabled && e.mousewheel.enable()
},
destroy: function(e) {
e.params.cssmode && e.mousewheel.enable(),
e.mousewheel.enabled && e.mousewheel.disable()
}
}
},
{
name: "navigation",
params: {
navigation: {
nextel: null,
prevel: null,
hideonclick: !1,
disabledclass: "swiper-button-disabled",
hiddenclass: "swiper-button-hidden",
lockclass: "swiper-button-lock"
}
},
create: function() {
m(this, {
navigation: t({},
k)
})
},
on: {
init: function(e) {
e.navigation.init(),
e.navigation.update()
},
toedge: function(e) {
e.navigation.update()
},
fromedge: function(e) {
e.navigation.update()
},
destroy: function(e) {
e.navigation.destroy()
},
click: function(e, t) {
var a, i = e.navigation,
s = i.$nextel,
r = i.$prevel; ! e.params.navigation.hideonclick || m(t.target).is(r) || m(t.target).is(s) || (s ? a = s.hasclass(e.params.navigation.hiddenclass) : r && (a = r.hasclass(e.params.navigation.hiddenclass)), !0 === a ? e.emit("navigationshow") : e.emit("navigationhide"), s && s.toggleclass(e.params.navigation.hiddenclass), r && r.toggleclass(e.params.navigation.hiddenclass))
}
}
},
{
name: "pagination",
params: {
pagination: {
el: null,
bulletelement: "span",
clickable: !1,
hideonclick: !1,
renderbullet: null,
renderprogressbar: null,
renderfraction: null,
rendercustom: null,
progressbaropposite: !1,
type: "bullets",
dynamicbullets: !1,
dynamicmainbullets: 1,
formatfractioncurrent: function(e) {
return e
},
formatfractiontotal: function(e) {
return e
},
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",
progressbaroppositeclass: "swiper-pagination-progressbar-opposite",
clickableclass: "swiper-pagination-clickable",
lockclass: "swiper-pagination-lock"
}
},
create: function() {
m(this, {
pagination: t({
dynamicbulletindex: 0
},
z)
})
},
on: {
init: function(e) {
e.pagination.init(),
e.pagination.render(),
e.pagination.update()
},
activeindexchange: function(e) { (e.params.loop || void 0 === e.snapindex) && e.pagination.update()
},
snapindexchange: function(e) {
e.params.loop || e.pagination.update()
},
slideslengthchange: function(e) {
e.params.loop && (e.pagination.render(), e.pagination.update())
},
snapgridlengthchange: function(e) {
e.params.loop || (e.pagination.render(), e.pagination.update())
},
destroy: function(e) {
e.pagination.destroy()
},
click: function(e, t) {
e.params.pagination.el && e.params.pagination.hideonclick && e.pagination.$el.length > 0 && !m(t.target).hasclass(e.params.pagination.bulletclass) && (!0 === e.pagination.$el.hasclass(e.params.pagination.hiddenclass) ? e.emit("paginationshow") : e.emit("paginationhide"), e.pagination.$el.toggleclass(e.params.pagination.hiddenclass))
}
}
},
{
name: "scrollbar",
params: {
scrollbar: {
el: null,
dragsize: "auto",
hide: !1,
draggable: !1,
snaponrelease: !0,
lockclass: "swiper-scrollbar-lock",
dragclass: "swiper-scrollbar-drag"
}
},
create: function() {
m(this, {
scrollbar: t({
istouched: !1,
timeout: null,
dragtimeout: null
},
j)
})
},
on: {
init: function(e) {
e.scrollbar.init(),
e.scrollbar.updatesize(),
e.scrollbar.settranslate()
},
update: function(e) {
e.scrollbar.updatesize()
},
resize: function(e) {
e.scrollbar.updatesize()
},
observerupdate: function(e) {
e.scrollbar.updatesize()
},
settranslate: function(e) {
e.scrollbar.settranslate()
},
settransition: function(e, t) {
e.scrollbar.settransition(t)
},
destroy: function(e) {
e.scrollbar.destroy()
}
}
},
{
name: "parallax",
params: {
parallax: {
enabled: !1
}
},
create: function() {
m(this, {
parallax: t({},
q)
})
},
on: {
beforeinit: function(e) {
e.params.parallax.enabled && (e.params.watchslidesprogress = !0, e.originalparams.watchslidesprogress = !0)
},
init: function(e) {
e.params.parallax.enabled && e.parallax.settranslate()
},
settranslate: function(e) {
e.params.parallax.enabled && e.parallax.settranslate()
},
settransition: function(e, t) {
e.params.parallax.enabled && e.parallax.settransition(t)
}
}
},
{
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;
m(e, {
zoom: 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
}
},
ee)
});
var a = 1;
object.defineproperty(e.zoom, "scale", {
get: function() {
return a
},
set: function(t) {
if (a !== t) {
var i = e.zoom.gesture.$imageel ? e.zoom.gesture.$imageel[0] : void 0,
s = e.zoom.gesture.$slideel ? e.zoom.gesture.$slideel[0] : void 0;
e.emit("zoomchange", t, i, s)
}
a = t
}
})
},
on: {
init: function(e) {
e.params.zoom.enabled && e.zoom.enable()
},
destroy: function(e) {
e.zoom.disable()
},
touchstart: function(e, t) {
e.zoom.enabled && e.zoom.ontouchstart(t)
},
touchend: function(e, t) {
e.zoom.enabled && e.zoom.ontouchend(t)
},
doubletap: function(e, t) {
e.params.zoom.enabled && e.zoom.enabled && e.params.zoom.toggle && e.zoom.toggle(t)
},
transitionend: function(e) {
e.zoom.enabled && e.params.zoom.enabled && e.zoom.ontransitionend()
},
slidechange: function(e) {
e.zoom.enabled && e.params.zoom.enabled && e.params.cssmode && e.zoom.ontransitionend()
}
}
},
{
name: "lazy",
params: {
lazy: {
checkinview: !1,
enabled: !1,
loadprevnext: !1,
loadprevnextamount: 1,
loadontransitionstart: !1,
scrollingelement: "",
elementclass: "swiper-lazy",
loadingclass: "swiper-lazy-loading",
loadedclass: "swiper-lazy-loaded",
preloaderclass: "swiper-lazy-preloader"
}
},
create: function() {
m(this, {
lazy: t({
initialimageloaded: !1
},
te)
})
},
on: {
beforeinit: function(e) {
e.params.lazy.enabled && e.params.preloadimages && (e.params.preloadimages = !1)
},
init: function(e) {
e.params.lazy.enabled && !e.params.loop && 0 === e.params.initialslide && (e.params.lazy.checkinview ? e.lazy.checkinviewonload() : e.lazy.load())
},
scroll: function(e) {
e.params.freemode && !e.params.freemodesticky && e.lazy.load()
},
resize: function(e) {
e.params.lazy.enabled && e.lazy.load()
},
scrollbardragmove: function(e) {
e.params.lazy.enabled && e.lazy.load()
},
transitionstart: function(e) {
e.params.lazy.enabled && (e.params.lazy.loadontransitionstart || !e.params.lazy.loadontransitionstart && !e.lazy.initialimageloaded) && e.lazy.load()
},
transitionend: function(e) {
e.params.lazy.enabled && !e.params.lazy.loadontransitionstart && e.lazy.load()
},
slidechange: function(e) {
e.params.lazy.enabled && e.params.cssmode && e.lazy.load()
}
}
},
{
name: "controller",
params: {
controller: {
control: void 0,
inverse: !1,
by: "slide"
}
},
create: function() {
m(this, {
controller: t({
control: this.params.controller.control
},
ae)
})
},
on: {
update: function(e) {
e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline)
},
resize: function(e) {
e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline)
},
observerupdate: function(e) {
e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline)
},
settranslate: function(e, t, a) {
e.controller.control && e.controller.settranslate(t, a)
},
settransition: function(e, t, a) {
e.controller.control && e.controller.settransition(t, a)
}
}
},
{
name: "a11y",
params: {
a11y: {
enabled: !0,
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}}",
containermessage: null,
containerroledescriptionmessage: null,
itemroledescriptionmessage: null
}
},
create: function() {
m(this, {
a11y: t(t({},
ie), {},
{
liveregion: m('')
})
})
},
on: {
afterinit: function(e) {
e.params.a11y.enabled && (e.a11y.init(), e.a11y.updatenavigation())
},
toedge: function(e) {
e.params.a11y.enabled && e.a11y.updatenavigation()
},
fromedge: function(e) {
e.params.a11y.enabled && e.a11y.updatenavigation()
},
paginationupdate: function(e) {
e.params.a11y.enabled && e.a11y.updatepagination()
},
destroy: function(e) {
e.params.a11y.enabled && e.a11y.destroy()
}
}
},
{
name: "history",
params: {
history: {
enabled: !1,
replacestate: !1,
key: "slides"
}
},
create: function() {
m(this, {
history: t({},
se)
})
},
on: {
init: function(e) {
e.params.history.enabled && e.history.init()
},
destroy: function(e) {
e.params.history.enabled && e.history.destroy()
},
transitionend: function(e) {
e.history.initialized && e.history.sethistory(e.params.history.key, e.activeindex)
},
slidechange: function(e) {
e.history.initialized && e.params.cssmode && e.history.sethistory(e.params.history.key, e.activeindex)
}
}
},
{
name: "hash-navigation",
params: {
hashnavigation: {
enabled: !1,
replacestate: !1,
watchstate: !1
}
},
create: function() {
m(this, {
hashnavigation: t({
initialized: !1
},
re)
})
},
on: {
init: function(e) {
e.params.hashnavigation.enabled && e.hashnavigation.init()
},
destroy: function(e) {
e.params.hashnavigation.enabled && e.hashnavigation.destroy()
},
transitionend: function(e) {
e.hashnavigation.initialized && e.hashnavigation.sethash()
},
slidechange: function(e) {
e.hashnavigation.initialized && e.params.cssmode && e.hashnavigation.sethash()
}
}
},
{
name: "autoplay",
params: {
autoplay: {
enabled: !1,
delay: 3e3,
waitfortransition: !0,
disableoninteraction: !0,
stoponlastslide: !1,
reversedirection: !1
}
},
create: function() {
m(this, {
autoplay: t(t({},
ne), {},
{
running: !1,
paused: !1
})
})
},
on: {
init: function(e) {
e.params.autoplay.enabled && (e.autoplay.start(), r().addeventlistener("visibilitychange", e.autoplay.onvisibilitychange))
},
beforetransitionstart: function(e, t, a) {
e.autoplay.running && (a || !e.params.autoplay.disableoninteraction ? e.autoplay.pause(t) : e.autoplay.stop())
},
sliderfirstmove: function(e) {
e.autoplay.running && (e.params.autoplay.disableoninteraction ? e.autoplay.stop() : e.autoplay.pause())
},
touchend: function(e) {
e.params.cssmode && e.autoplay.paused && !e.params.autoplay.disableoninteraction && e.autoplay.run()
},
destroy: function(e) {
e.autoplay.running && e.autoplay.stop(),
r().removeeventlistener("visibilitychange", e.autoplay.onvisibilitychange)
}
}
},
{
name: "effect-fade",
params: {
fadeeffect: {
crossfade: !1
}
},
create: function() {
m(this, {
fadeeffect: t({},
le)
})
},
on: {
beforeinit: function(e) {
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
};
s(e.params, t),
s(e.originalparams, t)
}
},
settranslate: function(e) {
"fade" === e.params.effect && e.fadeeffect.settranslate()
},
settransition: function(e, t) {
"fade" === e.params.effect && e.fadeeffect.settransition(t)
}
}
},
{
name: "effect-cube",
params: {
cubeeffect: {
slideshadows: !0,
shadow: !0,
shadowoffset: 20,
shadowscale: .94
}
},
create: function() {
m(this, {
cubeeffect: t({},
oe)
})
},
on: {
beforeinit: function(e) {
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
};
s(e.params, t),
s(e.originalparams, t)
}
},
settranslate: function(e) {
"cube" === e.params.effect && e.cubeeffect.settranslate()
},
settransition: function(e, t) {
"cube" === e.params.effect && e.cubeeffect.settransition(t)
}
}
},
{
name: "effect-flip",
params: {
flipeffect: {
slideshadows: !0,
limitrotation: !0
}
},
create: function() {
m(this, {
flipeffect: t({},
de)
})
},
on: {
beforeinit: function(e) {
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
};
s(e.params, t),
s(e.originalparams, t)
}
},
settranslate: function(e) {
"flip" === e.params.effect && e.flipeffect.settranslate()
},
settransition: function(e, t) {
"flip" === e.params.effect && e.flipeffect.settransition(t)
}
}
},
{
name: "effect-coverflow",
params: {
coverfloweffect: {
rotate: 50,
stretch: 0,
depth: 100,
scale: 1,
modifier: 1,
slideshadows: !0
}
},
create: function() {
m(this, {
coverfloweffect: t({},
pe)
})
},
on: {
beforeinit: function(e) {
"coverflow" === e.params.effect && (e.classnames.push(e.params.containermodifierclass + "coverflow"), e.classnames.push(e.params.containermodifierclass + "3d"), e.params.watchslidesprogress = !0, e.originalparams.watchslidesprogress = !0)
},
settranslate: function(e) {
"coverflow" === e.params.effect && e.coverfloweffect.settranslate()
},
settransition: function(e, t) {
"coverflow" === e.params.effect && e.coverfloweffect.settransition(t)
}
}
},
{
name: "thumbs",
params: {
thumbs: {
swiper: null,
multipleactivethumbs: !0,
autoscrolloffset: 0,
slidethumbactiveclass: "swiper-slide-thumb-active",
thumbscontainerclass: "swiper-container-thumbs"
}
},
create: function() {
m(this, {
thumbs: t({
swiper: null,
initialized: !1
},
ue)
})
},
on: {
beforeinit: function(e) {
var t = e.params.thumbs;
t && t.swiper && (e.thumbs.init(), e.thumbs.update(!0))
},
slidechange: function(e) {
e.thumbs.swiper && e.thumbs.update()
},
update: function(e) {
e.thumbs.swiper && e.thumbs.update()
},
resize: function(e) {
e.thumbs.swiper && e.thumbs.update()
},
observerupdate: function(e) {
e.thumbs.swiper && e.thumbs.update()
},
settransition: function(e, t) {
var a = e.thumbs.swiper;
a && a.settransition(t)
},
beforedestroy: function(e) {
var t = e.thumbs.swiper;
t && e.thumbs.swipercreated && t && t.destroy()
}
}
}];
return r.use(ce),
r
}));
//# sourcemappingurl=swiper-bundle.min.js.map