"use strict"; var _typeof = typeof symbol === "function" && typeof symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof symbol === "function" && obj.constructor === symbol && obj !== symbol.prototype ? "symbol" : typeof obj; }; /* * swiper 2.7.6 * mobile touch slider and framework with hardware accelerated transitions * * http://www.idangero.us/sliders/swiper/ * * copyright 2010-2015, vladimir kharlampidi * the idangero.us * http://www.idangero.us/ * * licensed under gpl & mit * * released on: february 11, 2015 */ var swiper = function swiper(a, b) { "use strict"; function c(a, b) { return document.queryselectorall ? (b || document).queryselectorall(a) : jquery(a, b); }function d(a) { return "[object array]" === object.prototype.tostring.apply(a) ? !0 : !1; }function e() { var a = g - j;return b.freemode && (a = g - j), b.slidesperview > d.slides.length && !b.centeredslides && (a = 0), 0 > a && (a = 0), a; }function f() { function a(a) { var c, d, e = function e() { "undefined" != typeof d && null !== d && (void 0 !== d.imagesloaded && d.imagesloaded++, d.imagesloaded === d.imagestoload.length && (d.reinit(), b.onimagesready && d.firecallback(b.onimagesready, d))); };a.complete ? e() : (d = a.currentsrc || a.getattribute("src"), d ? (c = new image(), c.onload = e, c.onerror = e, c.src = d) : e()); }var d = d.h.addeventlistener, e = "wrapper" === b.eventtarget ? d.wrapper : d.container;if (d.browser.ie10 || d.browser.ie11 ? (d(e, d.touchevents.touchstart, p), d(document, d.touchevents.touchmove, q), d(document, d.touchevents.touchend, r)) : (d.support.touch && (d(e, "touchstart", p), d(e, "touchmove", q), d(e, "touchend", r)), b.simulatetouch && (d(e, "mousedown", p), d(document, "mousemove", q), d(document, "mouseup", r))), b.autoresize && d(window, "resize", d.resizefix), g(), d._wheelevent = !1, b.mousewheelcontrol) { if (void 0 !== document.onmousewheel && (d._wheelevent = "mousewheel"), !d._wheelevent) try { new wheelevent("wheel"), d._wheelevent = "wheel"; } catch (f) {}d._wheelevent || (d._wheelevent = "dommousescroll"), d._wheelevent && d(d.container, d._wheelevent, j); }if (b.keyboardcontrol && d(document, "keydown", i), b.updateonimagesready) { d.imagestoload = c("img", d.container);for (var h = 0; h < d.imagestoload.length; h++) { a(d.imagestoload[h]); } } }function g() { var a, d = d.h.addeventlistener;if (b.preventlinks) { var e = c("a", d.container);for (a = 0; a < e.length; a++) { d(e[a], "click", n); } }if (b.releaseformelements) { var f = c("input, textarea, select", d.container);for (a = 0; a < f.length; a++) { d(f[a], d.touchevents.touchstart, o, !0), d.support.touch && b.simulatetouch && d(f[a], "mousedown", o, !0); } }if (b.onslideclick) for (a = 0; a < d.slides.length; a++) { d(d.slides[a], "click", k); }if (b.onslidetouch) for (a = 0; a < d.slides.length; a++) { d(d.slides[a], d.touchevents.touchstart, l); } }function h() { var a, d = d.h.removeeventlistener;if (b.onslideclick) for (a = 0; a < d.slides.length; a++) { d(d.slides[a], "click", k); }if (b.onslidetouch) for (a = 0; a < d.slides.length; a++) { d(d.slides[a], d.touchevents.touchstart, l); }if (b.releaseformelements) { var e = c("input, textarea, select", d.container);for (a = 0; a < e.length; a++) { d(e[a], d.touchevents.touchstart, o, !0), d.support.touch && b.simulatetouch && d(e[a], "mousedown", o, !0); } }if (b.preventlinks) { var f = c("a", d.container);for (a = 0; a < f.length; a++) { d(f[a], "click", n); } } }function i(a) { var b = a.keycode || a.charcode;if (!(a.shiftkey || a.altkey || a.ctrlkey || a.metakey)) { if (37 === b || 39 === b || 38 === b || 40 === b) { for (var c = !1, d = d.h.getoffset(d.container), e = d.h.windowscroll().left, f = d.h.windowscroll().top, g = d.h.windowwidth(), h = d.h.windowheight(), i = [[d.left, d.top], [d.left + d.width, d.top], [d.left, d.top + d.height], [d.left + d.width, d.top + d.height]], j = 0; j < i.length; j++) { var k = i[j];k[0] >= e && k[0] <= e + g && k[1] >= f && k[1] <= f + h && (c = !0); }if (!c) return; }n ? ((37 === b || 39 === b) && (a.preventdefault ? a.preventdefault() : a.returnvalue = !1), 39 === b && d.swipenext(), 37 === b && d.swipeprev()) : ((38 === b || 40 === b) && (a.preventdefault ? a.preventdefault() : a.returnvalue = !1), 40 === b && d.swipenext(), 38 === b && d.swipeprev()); } }function j(a) { var c = d._wheelevent, d = 0;if (a.detail) d = -a.detail;else if ("mousewheel" === c) { if (b.mousewheelcontrolforcetoaxis) { if (n) { if (!(math.abs(a.wheeldeltax) > math.abs(a.wheeldeltay))) return;d = a.wheeldeltax; } else { if (!(math.abs(a.wheeldeltay) > math.abs(a.wheeldeltax))) return;d = a.wheeldeltay; } } else d = a.wheeldelta; } else if ("dommousescroll" === c) d = -a.detail;else if ("wheel" === c) if (b.mousewheelcontrolforcetoaxis) { if (n) { if (!(math.abs(a.deltax) > math.abs(a.deltay))) return;d = -a.deltax; } else { if (!(math.abs(a.deltay) > math.abs(a.deltax))) return;d = -a.deltay; } } else d = math.abs(a.deltax) > math.abs(a.deltay) ? -a.deltax : -a.deltay;if (b.freemode) { var f = d.getwrappertranslate() + d;if (f > 0 && (f = 0), f < -e() && (f = -e()), d.setwrappertransition(0), d.setwrappertranslate(f), d.updateactiveslide(f), 0 === f || f === -e()) return; } else new date().gettime() - v > 60 && (0 > d ? d.swipenext() : d.swipeprev()), v = new date().gettime();return b.autoplay && d.stopautoplay(!0), a.preventdefault ? a.preventdefault() : a.returnvalue = !1, !1; }function k(a) { d.allowslideclick && (m(a), d.firecallback(b.onslideclick, d, a)); }function l(a) { m(a), d.firecallback(b.onslidetouch, d, a); }function m(a) { if (a.currenttarget) d.clickedslide = a.currenttarget;else { var c = a.srcelement;do { if (c.classname.indexof(b.slideclass) > -1) break;c = c.parentnode; } while (c);d.clickedslide = c; }d.clickedslideindex = d.slides.indexof(d.clickedslide), d.clickedslideloopindex = d.clickedslideindex - (d.loopedslides || 0); }function n(a) { return d.allowlinks ? void 0 : (a.preventdefault ? a.preventdefault() : a.returnvalue = !1, b.preventlinkspropagation && "stoppropagation" in a && a.stoppropagation(), !1); }function o(a) { return a.stoppropagation ? a.stoppropagation() : a.returnvalue = !1, !1; }function p(a) { if (b.preventlinks && (d.allowlinks = !0), d.istouched || b.onlyexternal) return !1;var c = a.target || a.srcelement;document.activeelement && document.activeelement !== document.body && document.activeelement !== c && document.activeelement.blur();var d = "input select textarea".split(" ");if (b.noswiping && c && t(c)) return !1;if (_ = !1, d.istouched = !0, $ = "touchstart" === a.type, !$ && "which" in a && 3 === a.which) return d.istouched = !1, !1;if (!$ || 1 === a.targettouches.length) { d.callplugins("ontouchstartbegin"), !$ && !d.isandroid && d.indexof(c.tagname.tolowercase()) < 0 && (a.preventdefault ? a.preventdefault() : a.returnvalue = !1);var e = $ ? a.targettouches[0].pagex : a.pagex || a.clientx, f = $ ? a.targettouches[0].pagey : a.pagey || a.clienty;d.touches.startx = d.touches.currentx = e, d.touches.starty = d.touches.currenty = f, d.touches.start = d.touches.current = n ? e : f, d.setwrappertransition(0), d.positions.start = d.positions.current = d.getwrappertranslate(), d.setwrappertranslate(d.positions.start), d.times.start = new date().gettime(), i = void 0, b.movestartthreshold > 0 && (x = !1), b.ontouchstart && d.firecallback(b.ontouchstart, d, a), d.callplugins("ontouchstartend"); } }function q(a) { if (d.istouched && !b.onlyexternal && (!$ || "mousemove" !== a.type)) { var c = $ ? a.targettouches[0].pagex : a.pagex || a.clientx, d = $ ? a.targettouches[0].pagey : a.pagey || a.clienty;if ("undefined" == typeof i && n && (i = !!(i || math.abs(d - d.touches.starty) > math.abs(c - d.touches.startx))), "undefined" != typeof i || n || (i = !!(i || math.abs(d - d.touches.starty) < math.abs(c - d.touches.startx))), i) return void (d.istouched = !1);if (n) { if (!b.swipetonext && c < d.touches.startx || !b.swipetoprev && c > d.touches.startx) return; } else if (!b.swipetonext && d < d.touches.starty || !b.swipetoprev && d > d.touches.starty) return;if (a.assignedtoswiper) return void (d.istouched = !1);if (a.assignedtoswiper = !0, b.preventlinks && (d.allowlinks = !1), b.onslideclick && (d.allowslideclick = !1), b.autoplay && d.stopautoplay(!0), !$ || 1 === a.touches.length) { if (d.ismoved || (d.callplugins("ontouchmovestart"), b.loop && (d.fixloop(), d.positions.start = d.getwrappertranslate()), b.ontouchmovestart && d.firecallback(b.ontouchmovestart, d)), d.ismoved = !0, a.preventdefault ? a.preventdefault() : a.returnvalue = !1, d.touches.current = n ? c : d, d.positions.current = (d.touches.current - d.touches.start) * b.touchratio + d.positions.start, d.positions.current > 0 && b.onresistancebefore && d.firecallback(b.onresistancebefore, d, d.positions.current), d.positions.current < -e() && b.onresistanceafter && d.firecallback(b.onresistanceafter, d, math.abs(d.positions.current + e())), b.resistance && "100%" !== b.resistance) { var f;if (d.positions.current > 0 && (f = 1 - d.positions.current / j / 2, d.positions.current = .5 > f ? j / 2 : d.positions.current * f), d.positions.current < -e()) { var g = (d.touches.current - d.touches.start) * b.touchratio + (e() + d.positions.start);f = (j + g) / j;var h = d.positions.current - g * (1 - f) / 2, i = -e() - j / 2;d.positions.current = i > h || 0 >= f ? i : h; } }if (b.resistance && "100%" === b.resistance && (d.positions.current > 0 && (!b.freemode || b.freemodefluid) && (d.positions.current = 0), d.positions.current < -e() && (!b.freemode || b.freemodefluid) && (d.positions.current = -e())), !b.followfinger) return;if (b.movestartthreshold) { if (math.abs(d.touches.current - d.touches.start) > b.movestartthreshold || x) { if (!x) return x = !0, void (d.touches.start = d.touches.current);d.setwrappertranslate(d.positions.current); } else d.positions.current = d.positions.start; } else d.setwrappertranslate(d.positions.current);return (b.freemode || b.watchactiveindex) && d.updateactiveslide(d.positions.current), b.grabcursor && (d.container.style.cursor = "move", d.container.style.cursor = "grabbing", d.container.style.cursor = "-moz-grabbin", d.container.style.cursor = "-webkit-grabbing"), y || (y = d.touches.current), z || (z = new date().gettime()), d.velocity = (d.touches.current - y) / (new date().gettime() - z) / 2, math.abs(d.touches.current - y) < 2 && (d.velocity = 0), y = d.touches.current, z = new date().gettime(), d.callplugins("ontouchmoveend"), b.ontouchmove && d.firecallback(b.ontouchmove, d, a), !1; } } }function r(a) { if (i && d.swipereset(), !b.onlyexternal && d.istouched) { d.istouched = !1, b.grabcursor && (d.container.style.cursor = "move", d.container.style.cursor = "grab", d.container.style.cursor = "-moz-grab", d.container.style.cursor = "-webkit-grab"), d.positions.current || 0 === d.positions.current || (d.positions.current = d.positions.start), b.followfinger && d.setwrappertranslate(d.positions.current), d.times.end = new date().gettime(), d.touches.diff = d.touches.current - d.touches.start, d.touches.abs = math.abs(d.touches.diff), d.positions.diff = d.positions.current - d.positions.start, d.positions.abs = math.abs(d.positions.diff);var c = d.positions.diff, d = d.positions.abs, f = d.times.end - d.times.start;5 > d && 300 > f && d.allowlinks === !1 && (b.freemode || 0 === d || d.swipereset(), b.preventlinks && (d.allowlinks = !0), b.onslideclick && (d.allowslideclick = !0)), settimeout(function () { "undefined" != typeof d && null !== d && (b.preventlinks && (d.allowlinks = !0), b.onslideclick && (d.allowslideclick = !0)); }, 100);var g = e();if (!d.ismoved && b.freemode) return d.ismoved = !1, b.ontouchend && d.firecallback(b.ontouchend, d, a), void d.callplugins("ontouchend");if (!d.ismoved || d.positions.current > 0 || d.positions.current < -g) return d.swipereset(), b.ontouchend && d.firecallback(b.ontouchend, d, a), void d.callplugins("ontouchend");if (d.ismoved = !1, b.freemode) { if (b.freemodefluid) { var h, i = 1e3 * b.momentumratio, j = d.velocity * i, k = d.positions.current + j, l = !1, m = 20 * math.abs(d.velocity) * b.momentumbounceratio;-g > k && (b.momentumbounce && d.support.transitions ? (-m > k + g && (k = -g - m), h = -g, l = !0, _ = !0) : k = -g), k > 0 && (b.momentumbounce && d.support.transitions ? (k > m && (k = m), h = 0, l = !0, _ = !0) : k = 0), 0 !== d.velocity && (i = math.abs((k - d.positions.current) / d.velocity)), d.setwrappertranslate(k), d.setwrappertransition(i), b.momentumbounce && l && d.wrappertransitionend(function () { _ && (b.onmomentumbounce && d.firecallback(b.onmomentumbounce, d), d.callplugins("onmomentumbounce"), d.setwrappertranslate(h), d.setwrappertransition(300)); }), d.updateactiveslide(k); }return (!b.freemodefluid || f >= 300) && d.updateactiveslide(d.positions.current), b.ontouchend && d.firecallback(b.ontouchend, d, a), void d.callplugins("ontouchend"); }h = 0 > c ? "tonext" : "toprev", "tonext" === h && 300 >= f && (30 > d || !b.shortswipes ? d.swipereset() : d.swipenext(!0, !0)), "toprev" === h && 300 >= f && (30 > d || !b.shortswipes ? d.swipereset() : d.swipeprev(!0, !0));var n = 0;if ("auto" === b.slidesperview) { for (var o, p = math.abs(d.getwrappertranslate()), q = 0, r = 0; r < d.slides.length; r++) { if (o = n ? d.slides[r].getwidth(!0, b.roundlengths) : d.slides[r].getheight(!0, b.roundlengths), q += o, q > p) { n = o;break; } }n > j && (n = j); } else n = f * b.slidesperview;"tonext" === h && f > 300 && (d >= n * b.longswipesratio ? d.swipenext(!0, !0) : d.swipereset()), "toprev" === h && f > 300 && (d >= n * b.longswipesratio ? d.swipeprev(!0, !0) : d.swipereset()), b.ontouchend && d.firecallback(b.ontouchend, d, a), d.callplugins("ontouchend"); } }function s(a, b) { return a && a.getattribute("class") && a.getattribute("class").indexof(b) > -1; }function t(a) { var c = !1;do { s(a, b.noswipingclass) && (c = !0), a = a.parentelement; } while (!c && a.parentelement && !s(a, b.wrapperclass));return !c && s(a, b.wrapperclass) && s(a, b.noswipingclass) && (c = !0), c; }function u(a, b) { var c, d = document.createelement("div");return d.innerhtml = b, c = d.firstchild, c.classname += " " + a, c.outerhtml; }function v(a, c, d) { function e() { var f = +new date(), l = f - g;h += i * l / (1e3 / 60), k = "tonext" === j ? h > a : a > h, k ? (d.setwrappertranslate(math.ceil(h)), d._domanimating = !0, window.settimeout(function () { e(); }, 1e3 / 60)) : (b.onslidechangeend && ("to" === c ? d.runcallbacks === !0 && d.firecallback(b.onslidechangeend, d, j) : d.firecallback(b.onslidechangeend, d, j)), d.setwrappertranslate(a), d._domanimating = !1); }var f = "to" === c && d.speed >= 0 ? d.speed : b.speed, g = +new date();if (d.support.transitions || !b.domanimation) d.setwrappertranslate(a), d.setwrappertransition(f);else { var h = d.getwrappertranslate(), i = math.ceil((a - h) / f * (1e3 / 60)), j = h > a ? "tonext" : "toprev", k = "tonext" === j ? h > a : a > h;if (d._domanimating) return;e(); }d.updateactiveslide(a), b.onslidenext && "next" === c && d.runcallbacks === !0 && d.firecallback(b.onslidenext, d, a), b.onslideprev && "prev" === c && d.runcallbacks === !0 && d.firecallback(b.onslideprev, d, a), b.onslidereset && "reset" === c && d.runcallbacks === !0 && d.firecallback(b.onslidereset, d, a), "next" !== c && "prev" !== c && "to" !== c || d.runcallbacks !== !0 || w(c); }function w(a) { if (d.callplugins("onslidechangestart"), b.onslidechangestart) if (b.queuestartcallbacks && d.support.transitions) { if (d._queuestartcallbacks) return;d._queuestartcallbacks = !0, d.firecallback(b.onslidechangestart, d, a), d.wrappertransitionend(function () { d._queuestartcallbacks = !1; }); } else d.firecallback(b.onslidechangestart, d, a);if (b.onslidechangeend) if (d.support.transitions) { if (b.queueendcallbacks) { if (d._queueendcallbacks) return;d._queueendcallbacks = !0, d.wrappertransitionend(function (c) { d.firecallback(b.onslidechangeend, c, a); }); } else d.wrappertransitionend(function (c) { d.firecallback(b.onslidechangeend, c, a); }); } else b.domanimation || settimeout(function () { d.firecallback(b.onslidechangeend, d, a); }, 10); }function x() { var a = d.paginationbuttons;if (a) for (var b = 0; b < a.length; b++) { d.h.removeeventlistener(a[b], "click", z); } }function y() { var a = d.paginationbuttons;if (a) for (var b = 0; b < a.length; b++) { d.h.addeventlistener(a[b], "click", z); } }function z(a) { for (var c, d = a.target || a.srcelement, e = d.paginationbuttons, f = 0; f < e.length; f++) { d === e[f] && (c = f); }b.autoplay && d.stopautoplay(!0), d.swipeto(c); }function a() { ab = settimeout(function () { b.loop ? (d.fixloop(), d.swipenext(!0, !0)) : d.swipenext(!0, !0) || (b.autoplaystoponlast ? (cleartimeout(ab), ab = void 0) : d.swipeto(0)), d.wrappertransitionend(function () { "undefined" != typeof ab && a(); }); }, b.autoplay); }function b() { d.calcslides(), b.loader.slides.length > 0 && 0 === d.slides.length && d.loadslides(), b.loop && d.createloop(), d.init(), f(), b.pagination && d.createpagination(!0), b.loop || b.initialslide > 0 ? d.swipeto(b.initialslide, 0, !1) : d.updateactiveslide(0), b.autoplay && d.startautoplay(), d.centerindex = d.activeindex, b.onswipercreated && d.firecallback(b.onswipercreated, d), d.callplugins("onswipercreated"); }if (!document.body.outerhtml && document.body.__definegetter__ && htmlelement) { var c = htmlelement.prototype;c.__definegetter__ && c.__definegetter__("outerhtml", function () { return new xmlserializer().serializetostring(this); }); }if (window.getcomputedstyle || (window.getcomputedstyle = function (a) { return this.el = a, this.getpropertyvalue = function (b) { var c = /(\-([a-z]){1})/g;return "float" === b && (b = "stylefloat"), c.test(b) && (b = b.replace(c, function () { return arguments[2].touppercase(); })), a.currentstyle[b] ? a.currentstyle[b] : null; }, this; }), array.prototype.indexof || (array.prototype.indexof = function (a, b) { for (var c = b || 0, d = this.length; d > c; c++) { if (this[c] === a) return c; }return -1; }), (document.queryselectorall || window.jquery) && "undefined" != typeof a && (a.nodetype || 0 !== c(a).length)) { var d = this;d.touches = { start: 0, startx: 0, starty: 0, current: 0, currentx: 0, currenty: 0, diff: 0, abs: 0 }, d.positions = { start: 0, abs: 0, diff: 0, current: 0 }, d.times = { start: 0, end: 0 }, d.id = new date().gettime(), d.container = a.nodetype ? a : c(a)[0], d.istouched = !1, d.ismoved = !1, d.activeindex = 0, d.centerindex = 0, d.activeloaderindex = 0, d.activeloopindex = 0, d.previousindex = null, d.velocity = 0, d.snapgrid = [], d.slidesgrid = [], d.imagestoload = [], d.imagesloaded = 0, d.wrapperleft = 0, d.wrapperright = 0, d.wrappertop = 0, d.wrapperbottom = 0, d.isandroid = navigator.useragent.tolowercase().indexof("android") >= 0;var e, f, g, h, i, j, k = { eventtarget: "wrapper", mode: "horizontal", touchratio: 1, speed: 300, freemode: !1, freemodefluid: !1, momentumratio: 1, momentumbounce: !0, momentumbounceratio: 1, slidesperview: 1, slidespergroup: 1, slidesperviewfit: !0, simulatetouch: !0, followfinger: !0, shortswipes: !0, longswipesratio: .5, movestartthreshold: !1, onlyexternal: !1, createpagination: !0, pagination: !1, paginationelement: "span", paginationclickable: !1, paginationasrange: !0, resistance: !0, scrollcontainer: !1, preventlinks: !0, preventlinkspropagation: !1, noswiping: !1, noswipingclass: "swiper-no-swiping", initialslide: 0, keyboardcontrol: !1, mousewheelcontrol: !1, mousewheelcontrolforcetoaxis: !1, usecss3transforms: !0, autoplay: !1, autoplaydisableoninteraction: !0, autoplaystoponlast: !1, loop: !1, loopadditionalslides: 0, roundlengths: !1, calculateheight: !1, csswidthandheight: !1, updateonimagesready: !0, releaseformelements: !0, watchactiveindex: !1, visibilityfullfit: !1, offsetpxbefore: 0, offsetpxafter: 0, offsetslidesbefore: 0, offsetslidesafter: 0, centeredslides: !1, queuestartcallbacks: !1, queueendcallbacks: !1, autoresize: !0, resizereinit: !1, domanimation: !0, loader: { slides: [], slideshtmltype: "inner", surroundgroups: 1, logic: "reload", loadallslides: !1 }, swipetoprev: !0, swipetonext: !0, slideelement: "div", slideclass: "swiper-slide", slideactiveclass: "swiper-slide-active", slidevisibleclass: "swiper-slide-visible", slideduplicateclass: "swiper-slide-duplicate", wrapperclass: "swiper-wrapper", paginationelementclass: "swiper-pagination-switch", paginationactiveclass: "swiper-active-switch", paginationvisibleclass: "swiper-visible-switch" };b = b || {};for (var l in k) { if (l in b && "object" == _typeof(b[l])) for (var m in k[l]) { m in b[l] || (b[l][m] = k[l][m]); } else l in b || (b[l] = k[l]); }d.params = b, b.scrollcontainer && (b.freemode = !0, b.freemodefluid = !0), b.loop && (b.resistance = "100%");var n = "horizontal" === b.mode, o = ["mousedown", "mousemove", "mouseup"];d.browser.ie10 && (o = ["mspointerdown", "mspointermove", "mspointerup"]), d.browser.ie11 && (o = ["pointerdown", "pointermove", "pointerup"]), d.touchevents = { touchstart: d.support.touch || !b.simulatetouch ? "touchstart" : o[0], touchmove: d.support.touch || !b.simulatetouch ? "touchmove" : o[1], touchend: d.support.touch || !b.simulatetouch ? "touchend" : o[2] };for (var p = d.container.childnodes.length - 1; p >= 0; p--) { if (d.container.childnodes[p].classname) for (var q = d.container.childnodes[p].classname.split(/\s+/), r = 0; r < q.length; r++) { q[r] === b.wrapperclass && (e = d.container.childnodes[p]); } }d.wrapper = e, d._extendswiperslide = function (a) { return a.append = function () { return b.loop ? a.insertafter(d.slides.length - d.loopedslides) : (d.wrapper.appendchild(a), d.reinit()), a; }, a.prepend = function () { return b.loop ? (d.wrapper.insertbefore(a, d.slides[d.loopedslides]), d.removeloopedslides(), d.calcslides(), d.createloop()) : d.wrapper.insertbefore(a, d.wrapper.firstchild), d.reinit(), a; }, a.insertafter = function (c) { if ("undefined" == typeof c) return !1;var d;return b.loop ? (d = d.slides[c + 1 + d.loopedslides], d ? d.wrapper.insertbefore(a, d) : d.wrapper.appendchild(a), d.removeloopedslides(), d.calcslides(), d.createloop()) : (d = d.slides[c + 1], d.wrapper.insertbefore(a, d)), d.reinit(), a; }, a.clone = function () { return d._extendswiperslide(a.clonenode(!0)); }, a.remove = function () { d.wrapper.removechild(a), d.reinit(); }, a.html = function (b) { return "undefined" == typeof b ? a.innerhtml : (a.innerhtml = b, a); }, a.index = function () { for (var b, c = d.slides.length - 1; c >= 0; c--) { a === d.slides[c] && (b = c); }return b; }, a.isactive = function () { return a.index() === d.activeindex ? !0 : !1; }, a.swiperslidedatastorage || (a.swiperslidedatastorage = {}), a.getdata = function (b) { return a.swiperslidedatastorage[b]; }, a.setdata = function (b, c) { return a.swiperslidedatastorage[b] = c, a; }, a.data = function (b, c) { return "undefined" == typeof c ? a.getattribute("data-" + b) : (a.setattribute("data-" + b, c), a); }, a.getwidth = function (b, c) { return d.h.getwidth(a, b, c); }, a.getheight = function (b, c) { return d.h.getheight(a, b, c); }, a.getoffset = function () { return d.h.getoffset(a); }, a; }, d.calcslides = function (a) { var c = d.slides ? d.slides.length : !1;d.slides = [], d.displayslides = [];for (var d = 0; d < d.wrapper.childnodes.length; d++) { if (d.wrapper.childnodes[d].classname) for (var e = d.wrapper.childnodes[d].classname, f = e.split(/\s+/), i = 0; i < f.length; i++) { f[i] === b.slideclass && d.slides.push(d.wrapper.childnodes[d]); } }for (d = d.slides.length - 1; d >= 0; d--) { d._extendswiperslide(d.slides[d]); }c !== !1 && (c !== d.slides.length || a) && (h(), g(), d.updateactiveslide(), d.params.pagination && d.createpagination(), d.callplugins("numberofslideschanged")); }, d.createslide = function (a, c, d) { c = c || d.params.slideclass, d = d || b.slideelement;var e = document.createelement(d);return e.innerhtml = a || "", e.classname = c, d._extendswiperslide(e); }, d.appendslide = function (a, b, c) { return a ? a.nodetype ? d._extendswiperslide(a).append() : d.createslide(a, b, c).append() : void 0; }, d.prependslide = function (a, b, c) { return a ? a.nodetype ? d._extendswiperslide(a).prepend() : d.createslide(a, b, c).prepend() : void 0; }, d.insertslideafter = function (a, b, c, d) { return "undefined" == typeof a ? !1 : b.nodetype ? d._extendswiperslide(b).insertafter(a) : d.createslide(b, c, d).insertafter(a); }, d.removeslide = function (a) { if (d.slides[a]) { if (b.loop) { if (!d.slides[a + d.loopedslides]) return !1;d.slides[a + d.loopedslides].remove(), d.removeloopedslides(), d.calcslides(), d.createloop(); } else d.slides[a].remove();return !0; }return !1; }, d.removelastslide = function () { return d.slides.length > 0 ? (b.loop ? (d.slides[d.slides.length - 1 - d.loopedslides].remove(), d.removeloopedslides(), d.calcslides(), d.createloop()) : d.slides[d.slides.length - 1].remove(), !0) : !1; }, d.removeallslides = function () { for (var a = d.slides.length, b = d.slides.length - 1; b >= 0; b--) { d.slides[b].remove(), b === a - 1 && d.setwrappertranslate(0); } }, d.getslide = function (a) { return d.slides[a]; }, d.getlastslide = function () { return d.slides[d.slides.length - 1]; }, d.getfirstslide = function () { return d.slides[0]; }, d.activeslide = function () { return d.slides[d.activeindex]; }, d.firecallback = function () { var a = arguments[0];if ("[object array]" === object.prototype.tostring.call(a)) for (var c = 0; c < a.length; c++) { "function" == typeof a[c] && a[c](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]); } else "[object string]" === object.prototype.tostring.call(a) ? b["on" + a] && d.firecallback(b["on" + a], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]) : a(arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]); }, d.addcallback = function (a, b) { var c, e = this;return e.params["on" + a] ? d(this.params["on" + a]) ? this.params["on" + a].push(b) : "function" == typeof this.params["on" + a] ? (c = this.params["on" + a], this.params["on" + a] = [], this.params["on" + a].push(c), this.params["on" + a].push(b)) : void 0 : (this.params["on" + a] = [], this.params["on" + a].push(b)); }, d.removecallbacks = function (a) { d.params["on" + a] && (d.params["on" + a] = null); };var s = [];for (var t in d.plugins) { if (b[t]) { var u = d.plugins[t](d, b[t]);u && s.push(u); } }d.callplugins = function (a, b) { b || (b = {});for (var c = 0; c < s.length; c++) { a in s[c] && s[c][a](b); } }, !d.browser.ie10 && !d.browser.ie11 || b.onlyexternal || d.wrapper.classlist.add("swiper-wp8-" + (n ? "horizontal" : "vertical")), b.freemode && (d.container.classname += " swiper-free-mode"), d.initialized = !1, d.init = function (a, c) { var d = d.h.getwidth(d.container, !1, b.roundlengths), e = d.h.getheight(d.container, !1, b.roundlengths);if (d !== d.width || e !== d.height || a) { d.width = d, d.height = e;var f, g, h, i, j, k, l;j = n ? d : e;var m = d.wrapper;if (a && d.calcslides(c), "auto" === b.slidesperview) { var n = 0, o = 0;b.slidesoffset > 0 && (m.style.paddingleft = "", m.style.paddingright = "", m.style.paddingtop = "", m.style.paddingbottom = ""), m.style.width = "", m.style.height = "", b.offsetpxbefore > 0 && (n ? d.wrapperleft = b.offsetpxbefore : d.wrappertop = b.offsetpxbefore), b.offsetpxafter > 0 && (n ? d.wrapperright = b.offsetpxafter : d.wrapperbottom = b.offsetpxafter), b.centeredslides && (n ? (d.wrapperleft = (j - this.slides[0].getwidth(!0, b.roundlengths)) / 2, d.wrapperright = (j - d.slides[d.slides.length - 1].getwidth(!0, b.roundlengths)) / 2) : (d.wrappertop = (j - d.slides[0].getheight(!0, b.roundlengths)) / 2, d.wrapperbottom = (j - d.slides[d.slides.length - 1].getheight(!0, b.roundlengths)) / 2)), n ? (d.wrapperleft >= 0 && (m.style.paddingleft = d.wrapperleft + "px"), d.wrapperright >= 0 && (m.style.paddingright = d.wrapperright + "px")) : (d.wrappertop >= 0 && (m.style.paddingtop = d.wrappertop + "px"), d.wrapperbottom >= 0 && (m.style.paddingbottom = d.wrapperbottom + "px")), k = 0;var p = 0;for (d.snapgrid = [], d.slidesgrid = [], h = 0, l = 0; l < d.slides.length; l++) { f = d.slides[l].getwidth(!0, b.roundlengths), g = d.slides[l].getheight(!0, b.roundlengths), b.calculateheight && (h = math.max(h, g));var q = n ? f : g;if (b.centeredslides) { var r = l === d.slides.length - 1 ? 0 : d.slides[l + 1].getwidth(!0, b.roundlengths), s = l === d.slides.length - 1 ? 0 : d.slides[l + 1].getheight(!0, b.roundlengths), t = n ? r : s;if (q > j) { if (b.slidesperviewfit) d.snapgrid.push(k + d.wrapperleft), d.snapgrid.push(k + q - j + d.wrapperleft);else for (var u = 0; u <= math.floor(q / (j + d.wrapperleft)); u++) { d.snapgrid.push(0 === u ? k + d.wrapperleft : k + d.wrapperleft + j * u); }d.slidesgrid.push(k + d.wrapperleft); } else d.snapgrid.push(p), d.slidesgrid.push(p);p += q / 2 + t / 2; } else { if (q > j) { if (b.slidesperviewfit) d.snapgrid.push(k), d.snapgrid.push(k + q - j);else if (0 !== j) for (var v = 0; v <= math.floor(q / j); v++) { d.snapgrid.push(k + j * v); } else d.snapgrid.push(k); } else d.snapgrid.push(k);d.slidesgrid.push(k); }k += q, n += f, o += g; }b.calculateheight && (d.height = h), n ? (g = n + d.wrapperright + d.wrapperleft, b.csswidthandheight && "height" !== b.csswidthandheight || (m.style.width = n + "px"), b.csswidthandheight && "width" !== b.csswidthandheight || (m.style.height = d.height + "px")) : (b.csswidthandheight && "height" !== b.csswidthandheight || (m.style.width = d.width + "px"), b.csswidthandheight && "width" !== b.csswidthandheight || (m.style.height = o + "px"), g = o + d.wrappertop + d.wrapperbottom); } else if (b.scrollcontainer) m.style.width = "", m.style.height = "", i = d.slides[0].getwidth(!0, b.roundlengths), j = d.slides[0].getheight(!0, b.roundlengths), g = n ? i : j, m.style.width = i + "px", m.style.height = j + "px", f = n ? i : j;else { if (b.calculateheight) { for (h = 0, j = 0, n || (d.container.style.height = ""), m.style.height = "", l = 0; l < d.slides.length; l++) { d.slides[l].style.height = "", h = math.max(d.slides[l].getheight(!0), h), n || (j += d.slides[l].getheight(!0)); }g = h, d.height = g, n ? j = g : (j = g, d.container.style.height = j + "px"); } else g = n ? d.height : d.height / b.slidesperview, b.roundlengths && (g = math.ceil(g)), j = n ? d.height : d.slides.length * g;for (f = n ? d.width / b.slidesperview : d.width, b.roundlengths && (f = math.ceil(f)), i = n ? d.slides.length * f : d.width, f = n ? f : g, b.offsetslidesbefore > 0 && (n ? d.wrapperleft = f * b.offsetslidesbefore : d.wrappertop = f * b.offsetslidesbefore), b.offsetslidesafter > 0 && (n ? d.wrapperright = f * b.offsetslidesafter : d.wrapperbottom = f * b.offsetslidesafter), b.offsetpxbefore > 0 && (n ? d.wrapperleft = b.offsetpxbefore : d.wrappertop = b.offsetpxbefore), b.offsetpxafter > 0 && (n ? d.wrapperright = b.offsetpxafter : d.wrapperbottom = b.offsetpxafter), b.centeredslides && (n ? (d.wrapperleft = (j - f) / 2, d.wrapperright = (j - f) / 2) : (d.wrappertop = (j - f) / 2, d.wrapperbottom = (j - f) / 2)), n ? (d.wrapperleft > 0 && (m.style.paddingleft = d.wrapperleft + "px"), d.wrapperright > 0 && (m.style.paddingright = d.wrapperright + "px")) : (d.wrappertop > 0 && (m.style.paddingtop = d.wrappertop + "px"), d.wrapperbottom > 0 && (m.style.paddingbottom = d.wrapperbottom + "px")), g = n ? i + d.wrapperright + d.wrapperleft : j + d.wrappertop + d.wrapperbottom, parsefloat(i) > 0 && (!b.csswidthandheight || "height" === b.csswidthandheight) && (m.style.width = i + "px"), parsefloat(j) > 0 && (!b.csswidthandheight || "width" === b.csswidthandheight) && (m.style.height = j + "px"), k = 0, d.snapgrid = [], d.slidesgrid = [], l = 0; l < d.slides.length; l++) { d.snapgrid.push(k), d.slidesgrid.push(k), k += f, parsefloat(f) > 0 && (!b.csswidthandheight || "height" === b.csswidthandheight) && (d.slides[l].style.width = f + "px"), parsefloat(g) > 0 && (!b.csswidthandheight || "width" === b.csswidthandheight) && (d.slides[l].style.height = g + "px"); } }d.initialized ? (d.callplugins("oninit"), b.oninit && d.firecallback(b.oninit, d)) : (d.callplugins("onfirstinit"), b.onfirstinit && d.firecallback(b.onfirstinit, d)), d.initialized = !0; } }, d.reinit = function (a) { d.init(!0, a); }, d.resizefix = function (a) { d.callplugins("beforeresizefix"), d.init(b.resizereinit || a), b.freemode ? d.getwrappertranslate() < -e() && (d.setwrappertransition(0), d.setwrappertranslate(-e())) : (d.swipeto(b.loop ? d.activeloopindex : d.activeindex, 0, !1), b.autoplay && (d.support.transitions && "undefined" != typeof ab ? "undefined" != typeof ab && (cleartimeout(ab), ab = void 0, d.startautoplay()) : "undefined" != typeof bb && (clearinterval(bb), bb = void 0, d.startautoplay()))), d.callplugins("afterresizefix"); }, d.destroy = function (a) { var c = d.h.removeeventlistener, d = "wrapper" === b.eventtarget ? d.wrapper : d.container;if (d.browser.ie10 || d.browser.ie11 ? (c(d, d.touchevents.touchstart, p), c(document, d.touchevents.touchmove, q), c(document, d.touchevents.touchend, r)) : (d.support.touch && (c(d, "touchstart", p), c(d, "touchmove", q), c(d, "touchend", r)), b.simulatetouch && (c(d, "mousedown", p), c(document, "mousemove", q), c(document, "mouseup", r))), b.autoresize && c(window, "resize", d.resizefix), h(), b.paginationclickable && x(), b.mousewheelcontrol && d._wheelevent && c(d.container, d._wheelevent, j), b.keyboardcontrol && c(document, "keydown", i), b.autoplay && d.stopautoplay(), a) { d.wrapper.removeattribute("style");for (var e = 0; e < d.slides.length; e++) { d.slides[e].removeattribute("style"); } }d.callplugins("ondestroy"), window.jquery && window.jquery(d.container).data("swiper") && window.jquery(d.container).removedata("swiper"), window.zepto && window.zepto(d.container).data("swiper") && window.zepto(d.container).removedata("swiper"), d = null; }, d.disablekeyboardcontrol = function () { b.keyboardcontrol = !1, d.h.removeeventlistener(document, "keydown", i); }, d.enablekeyboardcontrol = function () { b.keyboardcontrol = !0, d.h.addeventlistener(document, "keydown", i); };var v = new date().gettime();if (d.disablemousewheelcontrol = function () { return d._wheelevent ? (b.mousewheelcontrol = !1, d.h.removeeventlistener(d.container, d._wheelevent, j), !0) : !1; }, d.enablemousewheelcontrol = function () { return d._wheelevent ? (b.mousewheelcontrol = !0, d.h.addeventlistener(d.container, d._wheelevent, j), !0) : !1; }, b.grabcursor) { var w = d.container.style;w.cursor = "move", w.cursor = "grab", w.cursor = "-moz-grab", w.cursor = "-webkit-grab"; }d.allowslideclick = !0, d.allowlinks = !0;var x, y, z, $ = !1, _ = !0;d.swipenext = function (a, c) { "undefined" == typeof a && (a = !0), !c && b.loop && d.fixloop(), !c && b.autoplay && d.stopautoplay(!0), d.callplugins("onswipenext");var d = d.getwrappertranslate().tofixed(2), f = d;if ("auto" === b.slidesperview) { for (var g = 0; g < d.snapgrid.length; g++) { if (-d >= d.snapgrid[g].tofixed(2) && -d < d.snapgrid[g + 1].tofixed(2)) { f = -d.snapgrid[g + 1];break; } } } else { var h = f * b.slidespergroup;f = -(math.floor(math.abs(d) / math.floor(h)) * h + h); }return f < -e() && (f = -e()), f === d ? !1 : (v(f, "next", { runcallbacks: a }), !0); }, d.swipeprev = function (a, c) { "undefined" == typeof a && (a = !0), !c && b.loop && d.fixloop(), !c && b.autoplay && d.stopautoplay(!0), d.callplugins("onswipeprev");var d, e = math.ceil(d.getwrappertranslate());if ("auto" === b.slidesperview) { d = 0;for (var f = 1; f < d.snapgrid.length; f++) { if (-e === d.snapgrid[f]) { d = -d.snapgrid[f - 1];break; }if (-e > d.snapgrid[f] && -e < d.snapgrid[f + 1]) { d = -d.snapgrid[f];break; } } } else { var g = f * b.slidespergroup;d = -(math.ceil(-e / g) - 1) * g; }return d > 0 && (d = 0), d === e ? !1 : (v(d, "prev", { runcallbacks: a }), !0); }, d.swipereset = function (a) { "undefined" == typeof a && (a = !0), d.callplugins("onswipereset");{ var c, d = d.getwrappertranslate(), f = f * b.slidespergroup;-e(); }if ("auto" === b.slidesperview) { c = 0;for (var g = 0; g < d.snapgrid.length; g++) { if (-d === d.snapgrid[g]) return;if (-d >= d.snapgrid[g] && -d < d.snapgrid[g + 1]) { c = d.positions.diff > 0 ? -d.snapgrid[g + 1] : -d.snapgrid[g];break; } }-d >= d.snapgrid[d.snapgrid.length - 1] && (c = -d.snapgrid[d.snapgrid.length - 1]), d <= -e() && (c = -e()); } else c = 0 > d ? math.round(d / f) * f : 0, d <= -e() && (c = -e());return b.scrollcontainer && (c = 0 > d ? d : 0), c < -e() && (c = -e()), b.scrollcontainer && j > f && (c = 0), c === d ? !1 : (v(c, "reset", { runcallbacks: a }), !0); }, d.swipeto = function (a, c, d) { a = parseint(a, 10), d.callplugins("onswipeto", { index: a, speed: c }), b.loop && (a += d.loopedslides);var f = d.getwrappertranslate();if (!(!isfinite(a) || a > d.slides.length - 1 || 0 > a)) { var g;return g = "auto" === b.slidesperview ? -d.slidesgrid[a] : -a * f, g < -e() && (g = -e()), g === f ? !1 : ("undefined" == typeof d && (d = !0), v(g, "to", { index: a, speed: c, runcallbacks: d }), !0); } }, d._queuestartcallbacks = !1, d._queueendcallbacks = !1, d.updateactiveslide = function (a) { if (d.initialized && 0 !== d.slides.length) { d.previousindex = d.activeindex, "undefined" == typeof a && (a = d.getwrappertranslate()), a > 0 && (a = 0);var c;if ("auto" === b.slidesperview) { if (d.activeindex = d.slidesgrid.indexof(-a), d.activeindex < 0) { for (c = 0; c < d.slidesgrid.length - 1 && !(-a > d.slidesgrid[c] && -a < d.slidesgrid[c + 1]); c++) {}var d = math.abs(d.slidesgrid[c] + a), e = math.abs(d.slidesgrid[c + 1] + a); d.activeindex = e >= d ? c : c + 1; } } else d.activeindex = math[b.visibilityfullfit ? "ceil" : "round"](-a / f);if (d.activeindex === d.slides.length && (d.activeindex = d.slides.length - 1), d.activeindex < 0 && (d.activeindex = 0), d.slides[d.activeindex]) { if (d.calcvisibleslides(a), d.support.classlist) { var f;for (c = 0; c < d.slides.length; c++) { f = d.slides[c], f.classlist.remove(b.slideactiveclass), d.visibleslides.indexof(f) >= 0 ? f.classlist.add(b.slidevisibleclass) : f.classlist.remove(b.slidevisibleclass); }d.slides[d.activeindex].classlist.add(b.slideactiveclass); } else { var g = new regexp("\\s*" + b.slideactiveclass), h = new regexp("\\s*" + b.slidevisibleclass);for (c = 0; c < d.slides.length; c++) { d.slides[c].classname = d.slides[c].classname.replace(g, "").replace(h, ""), d.visibleslides.indexof(d.slides[c]) >= 0 && (d.slides[c].classname += " " + b.slidevisibleclass); }d.slides[d.activeindex].classname += " " + b.slideactiveclass; }if (b.loop) { var i = d.loopedslides;d.activeloopindex = d.activeindex - i, d.activeloopindex >= d.slides.length - 2 * i && (d.activeloopindex = d.slides.length - 2 * i - d.activeloopindex), d.activeloopindex < 0 && (d.activeloopindex = d.slides.length - 2 * i + d.activeloopindex), d.activeloopindex < 0 && (d.activeloopindex = 0); } else d.activeloopindex = d.activeindex;b.pagination && d.updatepagination(a); } } }, d.createpagination = function (a) { if (b.paginationclickable && d.paginationbuttons && x(), d.paginationcontainer = b.pagination.nodetype ? b.pagination : c(b.pagination)[0], b.createpagination) { var d = "", e = d.slides.length, f = e;b.loop && (f -= 2 * d.loopedslides);for (var g = 0; f > g; g++) { d += "<" + b.paginationelement + ' class="' + b.paginationelementclass + '">"; }d.paginationcontainer.innerhtml = d; }d.paginationbuttons = c("." + b.paginationelementclass, d.paginationcontainer), a || d.updatepagination(), d.callplugins("oncreatepagination"), b.paginationclickable && y(); }, d.updatepagination = function (a) { if (b.pagination && !(d.slides.length < 1)) { var d = c("." + b.paginationactiveclass, d.paginationcontainer);if (d) { var e = d.paginationbuttons;if (0 !== e.length) { for (var f = 0; f < e.length; f++) { e[f].classname = b.paginationelementclass; }var g = b.loop ? d.loopedslides : 0;if (b.paginationasrange) { d.visibleslides || d.calcvisibleslides(a);var h, i = [];for (h = 0; h < d.visibleslides.length; h++) { var j = d.slides.indexof(d.visibleslides[h]) - g;b.loop && 0 > j && (j = d.slides.length - 2 * d.loopedslides + j), b.loop && j >= d.slides.length - 2 * d.loopedslides && (j = d.slides.length - 2 * d.loopedslides - j, j = math.abs(j)), i.push(j); }for (h = 0; h < i.length; h++) { e[i[h]] && (e[i[h]].classname += " " + b.paginationvisibleclass); }b.loop ? void 0 !== e[d.activeloopindex] && (e[d.activeloopindex].classname += " " + b.paginationactiveclass) : e[d.activeindex] && (e[d.activeindex].classname += " " + b.paginationactiveclass); } else b.loop ? e[d.activeloopindex] && (e[d.activeloopindex].classname += " " + b.paginationactiveclass + " " + b.paginationvisibleclass) : e[d.activeindex] && (e[d.activeindex].classname += " " + b.paginationactiveclass + " " + b.paginationvisibleclass); } } } }, d.calcvisibleslides = function (a) { var c = [], d = 0, e = 0, f = 0;n && d.wrapperleft > 0 && (a += d.wrapperleft), !n && d.wrappertop > 0 && (a += d.wrappertop);for (var g = 0; g < d.slides.length; g++) { d += e, e = "auto" === b.slidesperview ? n ? d.h.getwidth(d.slides[g], !0, b.roundlengths) : d.h.getheight(d.slides[g], !0, b.roundlengths) : f, f = d + e;var h = !1;b.visibilityfullfit ? (d >= -a && -a + j >= f && (h = !0), -a >= d && f >= -a + j && (h = !0)) : (f > -a && -a + j >= f && (h = !0), d >= -a && -a + j > d && (h = !0), -a > d && f > -a + j && (h = !0)), h && c.push(d.slides[g]); }0 === c.length && (c = [d.slides[d.activeindex]]), d.visibleslides = c; };var ab, bb;d.startautoplay = function () { if (d.support.transitions) { if ("undefined" != typeof ab) return !1;if (!b.autoplay) return;d.callplugins("onautoplaystart"), b.onautoplaystart && d.firecallback(b.onautoplaystart, d), a(); } else { if ("undefined" != typeof bb) return !1;if (!b.autoplay) return;d.callplugins("onautoplaystart"), b.onautoplaystart && d.firecallback(b.onautoplaystart, d), bb = setinterval(function () { b.loop ? (d.fixloop(), d.swipenext(!0, !0)) : d.swipenext(!0, !0) || (b.autoplaystoponlast ? (clearinterval(bb), bb = void 0) : d.swipeto(0)); }, b.autoplay); } }, d.stopautoplay = function (a) { if (d.support.transitions) { if (!ab) return;ab && cleartimeout(ab), ab = void 0, a && !b.autoplaydisableoninteraction && d.wrappertransitionend(function () { a(); }), d.callplugins("onautoplaystop"), b.onautoplaystop && d.firecallback(b.onautoplaystop, d); } else bb && clearinterval(bb), bb = void 0, d.callplugins("onautoplaystop"), b.onautoplaystop && d.firecallback(b.onautoplaystop, d); }, d.loopcreated = !1, d.removeloopedslides = function () { if (d.loopcreated) for (var a = 0; a < d.slides.length; a++) { d.slides[a].getdata("looped") === !0 && d.wrapper.removechild(d.slides[a]); } }, d.createloop = function () { if (0 !== d.slides.length) { d.loopedslides = "auto" === b.slidesperview ? b.loopedslides || 1 : math.floor(b.slidesperview) + b.loopadditionalslides, d.loopedslides > d.slides.length && (d.loopedslides = d.slides.length);var a, c = "", d = "", e = "", f = d.slides.length, g = math.floor(d.loopedslides / f), h = d.loopedslides % f;for (a = 0; g * f > a; a++) { var i = a;if (a >= f) { var j = math.floor(a / f);i = a - f * j; }e += d.slides[i].outerhtml; }for (a = 0; h > a; a++) { d += u(b.slideduplicateclass, d.slides[a].outerhtml); }for (a = f - h; f > a; a++) { c += u(b.slideduplicateclass, d.slides[a].outerhtml); }var k = c + e + e.innerhtml + e + d;for (e.innerhtml = k, d.loopcreated = !0, d.calcslides(), a = 0; a < d.slides.length; a++) { (a < d.loopedslides || a >= d.slides.length - d.loopedslides) && d.slides[a].setdata("looped", !0); }d.callplugins("oncreateloop"); } }, d.fixloop = function () { var a;d.activeindex < d.loopedslides ? (a = d.slides.length - 3 * d.loopedslides + d.activeindex, d.swipeto(a, 0, !1)) : ("auto" === b.slidesperview && d.activeindex >= 2 * d.loopedslides || d.activeindex > d.slides.length - 2 * b.slidesperview) && (a = -d.slides.length + d.activeindex + d.loopedslides, d.swipeto(a, 0, !1)); }, d.loadslides = function () { var a = "";d.activeloaderindex = 0;for (var c = b.loader.slides, d = b.loader.loadallslides ? c.length : b.slidesperview * (1 + b.loader.surroundgroups), e = 0; d > e; e++) { a += "outer" === b.loader.slideshtmltype ? c[e] : "<" + b.slideelement + ' class="' + b.slideclass + '" data-swiperindex="' + e + '">' + c[e] + ""; }d.wrapper.innerhtml = a, d.calcslides(!0), b.loader.loadallslides || d.wrappertransitionend(d.reloadslides, !0); }, d.reloadslides = function () { var a = b.loader.slides, c = parseint(d.activeslide().data("swiperindex"), 10);if (!(0 > c || c > a.length - 1)) { d.activeloaderindex = c;var d = math.max(0, c - b.slidesperview * b.loader.surroundgroups), e = math.min(c + b.slidesperview * (1 + b.loader.surroundgroups) - 1, a.length - 1);if (c > 0) { var f = -f * (c - d);d.setwrappertranslate(f), d.setwrappertransition(0); }var g;if ("reload" === b.loader.logic) { d.wrapper.innerhtml = "";var h = "";for (g = d; e >= g; g++) { h += "outer" === b.loader.slideshtmltype ? a[g] : "<" + b.slideelement + ' class="' + b.slideclass + '" data-swiperindex="' + g + '">' + a[g] + ""; }d.wrapper.innerhtml = h; } else { var i = 1e3, j = 0;for (g = 0; g < d.slides.length; g++) { var k = d.slides[g].data("swiperindex");d > k || k > e ? d.wrapper.removechild(d.slides[g]) : (i = math.min(k, i), j = math.max(k, j)); }for (g = d; e >= g; g++) { var l;i > g && (l = document.createelement(b.slideelement), l.classname = b.slideclass, l.setattribute("data-swiperindex", g), l.innerhtml = a[g], d.wrapper.insertbefore(l, d.wrapper.firstchild)), g > j && (l = document.createelement(b.slideelement), l.classname = b.slideclass, l.setattribute("data-swiperindex", g), l.innerhtml = a[g], d.wrapper.appendchild(l)); } }d.reinit(!0); } }, b(); } };swiper.prototype = { plugins: {}, wrappertransitionend: function wrappertransitionend(a, b) { "use strict"; function c(h) { if (h.target === f && (a(e), e.params.queueendcallbacks && (e._queueendcallbacks = !1), !b)) for (d = 0; d < g.length; d++) { e.h.removeeventlistener(f, g[d], c); } }var d, e = this, f = e.wrapper, g = ["webkittransitionend", "transitionend", "otransitionend", "mstransitionend", "mstransitionend"];if (a) for (d = 0; d < g.length; d++) { e.h.addeventlistener(f, g[d], c); } }, getwrappertranslate: function getwrappertranslate(a) { "use strict"; var b, c, d, e, f = this.wrapper;return "undefined" == typeof a && (a = "horizontal" === this.params.mode ? "x" : "y"), this.support.transforms && this.params.usecss3transforms ? (d = window.getcomputedstyle(f, null), window.webkitcssmatrix ? e = new webkitcssmatrix("none" === d.webkittransform ? "" : d.webkittransform) : (e = d.moztransform || d.otransform || d.mstransform || d.mstransform || d.transform || d.getpropertyvalue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), b = e.tostring().split(",")), "x" === a && (c = window.webkitcssmatrix ? e.m41 : parsefloat(16 === b.length ? b[12] : b[4])), "y" === a && (c = window.webkitcssmatrix ? e.m42 : parsefloat(16 === b.length ? b[13] : b[5]))) : ("x" === a && (c = parsefloat(f.style.left, 10) || 0), "y" === a && (c = parsefloat(f.style.top, 10) || 0)), c || 0; }, setwrappertranslate: function setwrappertranslate(a, b, c) { "use strict"; var d, e = this.wrapper.style, f = { x: 0, y: 0, z: 0 };3 === arguments.length ? (f.x = a, f.y = b, f.z = c) : ("undefined" == typeof b && (b = "horizontal" === this.params.mode ? "x" : "y"), f[b] = a), this.support.transforms && this.params.usecss3transforms ? (d = this.support.transforms3d ? "translate3d(" + f.x + "px, " + f.y + "px, " + f.z + "px)" : "translate(" + f.x + "px, " + f.y + "px)", e.webkittransform = e.mstransform = e.mstransform = e.moztransform = e.otransform = e.transform = d) : (e.left = f.x + "px", e.top = f.y + "px"), this.callplugins("onsetwrappertransform", f), this.params.onsetwrappertransform && this.firecallback(this.params.onsetwrappertransform, this, f); }, setwrappertransition: function setwrappertransition(a) { "use strict"; var b = this.wrapper.style;b.webkittransitionduration = b.mstransitionduration = b.mstransitionduration = b.moztransitionduration = b.otransitionduration = b.transitionduration = a / 1e3 + "s", this.callplugins("onsetwrappertransition", { duration: a }), this.params.onsetwrappertransition && this.firecallback(this.params.onsetwrappertransition, this, a); }, h: { getwidth: function getwidth(a, b, c) { "use strict"; var d = window.getcomputedstyle(a, null).getpropertyvalue("width"), e = parsefloat(d);return (isnan(e) || d.indexof("%") > 0 || 0 > e) && (e = a.offsetwidth - parsefloat(window.getcomputedstyle(a, null).getpropertyvalue("padding-left")) - parsefloat(window.getcomputedstyle(a, null).getpropertyvalue("padding-right"))), b && (e += parsefloat(window.getcomputedstyle(a, null).getpropertyvalue("padding-left")) + parsefloat(window.getcomputedstyle(a, null).getpropertyvalue("padding-right"))), c ? math.ceil(e) : e; }, getheight: function getheight(a, b, c) { "use strict"; if (b) return a.offsetheight;var d = window.getcomputedstyle(a, null).getpropertyvalue("height"), e = parsefloat(d);return (isnan(e) || d.indexof("%") > 0 || 0 > e) && (e = a.offsetheight - parsefloat(window.getcomputedstyle(a, null).getpropertyvalue("padding-top")) - parsefloat(window.getcomputedstyle(a, null).getpropertyvalue("padding-bottom"))), b && (e += parsefloat(window.getcomputedstyle(a, null).getpropertyvalue("padding-top")) + parsefloat(window.getcomputedstyle(a, null).getpropertyvalue("padding-bottom"))), c ? math.ceil(e) : e; }, getoffset: function getoffset(a) { "use strict"; var b = a.getboundingclientrect(), c = document.body, d = a.clienttop || c.clienttop || 0, e = a.clientleft || c.clientleft || 0, f = window.pageyoffset || a.scrolltop, g = window.pagexoffset || a.scrollleft;return document.documentelement && !window.pageyoffset && (f = document.documentelement.scrolltop, g = document.documentelement.scrollleft), { top: b.top + f - d, left: b.left + g - e }; }, windowwidth: function windowwidth() { "use strict"; return window.innerwidth ? window.innerwidth : document.documentelement && document.documentelement.clientwidth ? document.documentelement.clientwidth : void 0; }, windowheight: function windowheight() { "use strict"; return window.innerheight ? window.innerheight : document.documentelement && document.documentelement.clientheight ? document.documentelement.clientheight : void 0; }, windowscroll: function windowscroll() { "use strict"; return "undefined" != typeof pageyoffset ? { left: window.pagexoffset, top: window.pageyoffset } : document.documentelement ? { left: document.documentelement.scrollleft, top: document.documentelement.scrolltop } : void 0; }, addeventlistener: function addeventlistener(a, b, c, d) { "use strict"; "undefined" == typeof d && (d = !1), a.addeventlistener ? a.addeventlistener(b, c, d) : a.attachevent && a.attachevent("on" + b, c); }, removeeventlistener: function removeeventlistener(a, b, c, d) { "use strict"; "undefined" == typeof d && (d = !1), a.removeeventlistener ? a.removeeventlistener(b, c, d) : a.detachevent && a.detachevent("on" + b, c); } }, settransform: function settransform(a, b) { "use strict"; var c = a.style;c.webkittransform = c.mstransform = c.mstransform = c.moztransform = c.otransform = c.transform = b; }, settranslate: function settranslate(a, b) { "use strict"; var c = a.style, d = { x: b.x || 0, y: b.y || 0, z: b.z || 0 }, e = this.support.transforms3d ? "translate3d(" + d.x + "px," + d.y + "px," + d.z + "px)" : "translate(" + d.x + "px," + d.y + "px)";c.webkittransform = c.mstransform = c.mstransform = c.moztransform = c.otransform = c.transform = e, this.support.transforms || (c.left = d.x + "px", c.top = d.y + "px"); }, settransition: function settransition(a, b) { "use strict"; var c = a.style;c.webkittransitionduration = c.mstransitionduration = c.mstransitionduration = c.moztransitionduration = c.otransitionduration = c.transitionduration = b + "ms"; }, support: { touch: window.modernizr && modernizr.touch === !0 || function () { "use strict"; return !!("ontouchstart" in window || window.documenttouch && document instanceof documenttouch); }(), transforms3d: window.modernizr && modernizr.csstransforms3d === !0 || function () { "use strict"; var a = document.createelement("div").style;return "webkitperspective" in a || "mozperspective" in a || "operspective" in a || "msperspective" in a || "perspective" in a; }(), transforms: window.modernizr && modernizr.csstransforms === !0 || function () { "use strict"; var a = document.createelement("div").style;return "transform" in a || "webkittransform" in a || "moztransform" in a || "mstransform" in a || "mstransform" in a || "otransform" in a; }(), transitions: window.modernizr && modernizr.csstransitions === !0 || function () { "use strict"; var a = document.createelement("div").style;return "transition" in a || "webkittransition" in a || "moztransition" in a || "mstransition" in a || "mstransition" in a || "otransition" in a; }(), classlist: function () { "use strict"; var a = document.createelement("div");return "classlist" in a; }() }, browser: { ie8: function () { "use strict"; var a = -1;if ("microsoft internet explorer" === navigator.appname) { var b = navigator.useragent, c = new regexp(/msie ([0-9]{1,}[\.0-9]{0,})/);null !== c.exec(b) && (a = parsefloat(regexp.$1)); }return -1 !== a && 9 > a; }(), ie10: window.navigator.mspointerenabled, ie11: window.navigator.pointerenabled } }, (window.jquery || window.zepto) && !function (a) { "use strict"; a.fn.swiper = function (b) { var c;return this.each(function (d) { var e = a(this), f = new swiper(e[0], b);d || (c = f), e.data("swiper", f); }), c; }; }(window.jquery || window.zepto), "undefined" != typeof module ? module.exports = swiper : "function" == typeof define && define.amd && define([], function () { "use strict"; return swiper; }); //# sourcemappingurl=idangerous.swiper.min.js.map