var e, a, t, r = b.rtl ? b.translate :-b.translate;
for(a = 0; a < b.slidesGrid.length; a++)
"undefined"!= typeof b.slidesGrid[a + 1]? r >= b.slidesGrid[a] && r < b.slidesGrid[a + 1]-(b.slidesGrid[a + 1]- b.slidesGrid[a]) / 2 ? e = a : r >= b.slidesGrid[a] && r < b.slidesGrid[a + 1] && (e = a + 1): r >= b.slidesGrid[a] && (e = a);
(0 > e ||"undefined"== typeof e) && (e = 0),
t = Math.floor(e / b.params.slidesPerGroup),
t >= b.snapGrid.length && (t = b.snapGrid.length- 1),
b.paginationContainer.find("."+ b.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+ o +") scaleY("+ l +")").transition(b.params.speed)
}
"custom"=== b.params.paginationType && b.params.paginationCustomRender && (b.paginationContainer.html(b.params.paginationCustomRender(b, i + 1, s)),
-Math.floor(100 * i)>= Math.floor(100 * b.slidesGrid[s]) && (e = s);
return !b.params.allowSwipeToNext && i < b.translate && i < b.minTranslate()?!1 :!b.params.allowSwipeToPrev && i > b.translate && i > b.maxTranslate() && (b.activeIndex || 0)!== e ?!1 :("undefined"== typeof a && (a = b.params.speed),
b.params.virtualTranslate ||(b.support.transforms3d ? b.wrapper.transform("translate3d("+ r +"px, "+ i +"px, "+ n +"px)"): b.wrapper.transform("translate("+ r +"px, "+ i +"px)")),
for(var e = b.translate, t = b.isHorizontal()?-e + b.width / 2 :-e + b.height / 2, r = b.isHorizontal()? b.params.coverflow.rotate :-b.params.coverflow.rotate, i = b.params.coverflow.depth, s = 0, n = b.slides.length; n > s; s++) {
var o = b.slides.eq(s)
, l = b.slidesSizesGrid[s]
, p = o[0].swiperSlideOffset
, d =(t - p - l / 2) / l * b.params.coverflow.modifier
, u = b.isHorizontal()? r * d : 0
, c = b.isHorizontal()? 0 : r * d
, m =-i * Math.abs(d)
, h = b.isHorizontal()? 0 : b.params.coverflow.stretch * d
, f = b.isHorizontal()? b.params.coverflow.stretch * d : 0;
Math.abs(f)<.001 && (f = 0),
Math.abs(h)<.001 && (h = 0),
Math.abs(m)<.001 && (m = 0),
Math.abs(u)<.001 && (u = 0),
Math.abs(c)<.001 && (c = 0);
var g ="translate3d("+ f +"px,"+ h +"px,"+ m +"px) rotateX("+ c +"deg) rotateY("+ u +"deg)";
if(o.transform(g),
o[0].style.zIndex =-Math.abs(Math.round(d))+ 1,
b.params.coverflow.slideShadows) {
var v = b.isHorizontal()? o.find(".swiper-slide-shadow-left"): o.find(".swiper-slide-shadow-top")
, w = b.isHorizontal()? o.find(".swiper-slide-shadow-right"): o.find(".swiper-slide-shadow-bottom");
e = 0):-e + a.dragSize > a.trackSize && (t = a.trackSize + e)): 0 > e ?(t = a.dragSize + e,
e = 0): e + a.dragSize > a.trackSize && (t = a.trackSize - e),
b.isHorizontal()?(b.support.transforms3d ? a.drag.transform("translate3d("+ e +"px, 0, 0)"): a.drag.transform("translateX("+ e +"px)"),
a.drag[0].style.width= t +"px"):(b.support.transforms3d ? a.drag.transform("translate3d(0px, "+ e +"px, 0)"): a.drag.transform("translateY("+ e +"px)"),
(e -this.x[t])*(this.y[r]-this.y[t]) / (this.x[r]-this.x[t])+this.y[t]): 0
}
;
var i = function() {
var e, a, t;
return function(r, i) {
for(a =-1,
e = r.length; e - a > 1;)
r[t = e + a >> 1]<= i ? a = t : e = t;
return e
}
}()
},
getInterpolateFunction: function(e) {
b.controller.spline ||(b.controller.spline = b.params.loop? new b.controller.LinearSpline(b.slidesGrid,e.slidesGrid): new b.controller.LinearSpline(b.snapGrid,e.snapGrid))
},
setTranslate: function(e, a) {
function r(a) {
e = a.rtl && "horizontal"=== a.params.direction ?-b.translate : b.translate,
return new e(this.length> 0 ? t ?this[0].nextElementSibling && a(this[0].nextElementSibling).is(t)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling ?[this[0].nextElementSibling]:[]:[])
},
nextAll: function(t) {
var r =[]
, i =this[0];
if(!i)
return new e([]);
for(; i.nextElementSibling;) {
var s = i.nextElementSibling;
t ? a(s).is(t) && r.push(s): r.push(s),
i = s
}
return new e(r)
},
prev: function(t) {
return new e(this.length> 0 ? t ?this[0].previousElementSibling && a(this[0].previousElementSibling).is(t)?[this[0].previousElementSibling]:[]:this[0].previousElementSibling ?[this[0].previousElementSibling]:[]:[])
},
prevAll: function(t) {
var r =[]
, i =this[0];
if(!i)
return new e([]);
for(; i.previousElementSibling;) {
var s = i.previousElementSibling;
t ? a(s).is(t) && r.push(s): r.push(s),
i = s
}
return new e(r)
},
parent: function(e) {
for(var t =[], r = 0; r <this.length; r++)
e ? a(this[r].parentNode).is(e) && t.push(this[r].parentNode): t.push(this[r].parentNode);
return a(a.unique(t))
},
parents: function(e) {
for(var t =[], r = 0; r <this.length; r++)
for(var i =this[r].parentNode; i;)
e ? a(i).is(e) && t.push(i): t.push(i),
i = i.parentNode;
return a(a.unique(t))
},
find: function(a) {
for(var t =[], r = 0; r <this.length; r++)
for(var i =this[r].querySelectorAll(a), s = 0; s < i.length; s++)
t.push(i[s]);
return new e(t)
},
children: function(t) {
for(var r =[], i = 0; i <this.length; i++)
for(var s =this[i].childNodes, n = 0; n < s.length; n++)