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