From 09dc1faaf95c6ba3c85ffe790d0e14e573aa3401 Mon Sep 17 00:00:00 2001 From: Erik Krogh Kristensen Date: Thu, 3 May 2018 10:08:18 +0200 Subject: [PATCH] Fixed dependency check. Fixes #63 --- js/jquery.sudoSlider.js | 7 ++- js/jquery.sudoSlider.min.js | 92 ++++++++++++++++++------------------- 2 files changed, 49 insertions(+), 50 deletions(-) diff --git a/js/jquery.sudoSlider.js b/js/jquery.sudoSlider.js index c4d3532..6ede244 100644 --- a/js/jquery.sudoSlider.js +++ b/js/jquery.sudoSlider.js @@ -2901,10 +2901,9 @@ function minJQueryVersion(minVersion) { var version = $.fn.jquery.split("."); var length = version.length - for (var a = 0; a < length; a++) { - if (minVersion[a] && +version[a] < +minVersion[a]) { - return FALSE; - } + for (var i = 0; i < length; i++) { + if (+version[i] < +minVersion[i]) { return FALSE; } + if (+version[i] > +minVersion[i]) { return TRUE; } } return TRUE; } diff --git a/js/jquery.sudoSlider.min.js b/js/jquery.sudoSlider.min.js index 214a611..c038327 100644 --- a/js/jquery.sudoSlider.min.js +++ b/js/jquery.sudoSlider.min.js @@ -12,49 +12,49 @@ Built for jQuery library http://jquery.com - */ -(function(g){var la="object"==typeof self&&self.self==self&&self||"object"==typeof global&&global.global==global&&global;if("function"===typeof define&&define.amd)define(["jquery"],function(Y){g(Y,la)});else if("undefined"!==typeof exports){var ea=require("jquery");g(ea,la)}else g(la.jQuery,la)})(function(g,la){function ea(){return{effect:"slide",speed:1500,customLink:!1,controlsFadeSpeed:400,controlsFade:!0,insertAfter:!0,vertical:!1,slideCount:1,moveCount:1,startSlide:1,responsive:!0,ease:"swing", - auto:!1,pause:2E3,resumePause:!1,continuous:!1,prevNext:!0,numeric:!1,numericText:[],slices:15,boxCols:8,boxRows:4,initCallback:X,ajaxLoad:X,beforeAnimation:X,afterAnimation:X,history:!1,autoHeight:!0,autoWidth:!0,updateBefore:!1,ajax:!1,preloadAjax:100,loadingText:"",prevHtml:' previous ',nextHtml:' next ',controlsAttr:'class="controls"',numericAttr:'class="numericControls"',interruptible:!1,useCSS:!0,loadStart:X,loadFinish:X,touch:!1, - touchHandle:!1,destroyCallback:X,mouseTouch:!0,allowScroll:!0,CSSease:"swing",ajaxHasHTML:!1}}function Y(a,b,e,f,z){if(g.isFunction(b))f?Y(a,["","Up","Right","Down","Left",b],e,0,z):a[e]=function(a){var e=[a].concat(z),k=e.length-1;if(0===f&&0==e[k]){var g=a.diff;e[k]=a.options.vertical?0>g?1:3:0>g?2:4}b.apply(this,e)};else if(g.isArray(b))for(var h=b.length-1,r=b[h],p=0;ph;l--)v[F+=Z]=u[n*k+l];l=h;for(n=w-h-1;n>h;n--)v[F+=Z]=u[n*k+l]}}else for(u=0;uk?h(k):va(O(h,[150]),k-150)})(w[k],B);B+= - C/v.length*1.5}}function aa(a,b,e,f,z,h,r,p){for(var m=a.options,B=m.slices,w=m.speed/2,m=a.slider,k=Da(a,b?B:1,b?1:B,!p),l=g(),C=0;Ce)a.css(b),v();else return G(function(){a.css(z);G(function(){a.css(b); - var f=+new Date;a.on(C,function n(b){a.is(b.target)&&-100<+new Date-f-e&&(a.off(C,n),v())});setTimeout(v,e+100)})}),v}else f||(f=h.options.ease),a.animate(b,e,f,g)}function Ia(a,b){var e=a.options;e.boxcols=1;e.boxrows=1;e.speed=b;ma(a,!1)}function Da(a,b,e,f){function z(b,e){p.push(function(){var g=fa(a,f),g=xa(g,k*b,w*e,k,w);h.append(g);return g})}var h=a.slider,r=a.options.vertical,p=[],m;m=r?f?a.toSlides.width():a.slider.width():0;var B;B=r?0:f?a.toSlides.height():a.slider.height();a.toSlides.each(function(){var a= - g(this);r?B+=a.height():m+=a.width()});for(var w=Math.ceil(m/b),k=Math.ceil(B/e),l=0;l").css({left:e,top:b,width:z,height:f,opacity:0,overflow:"hidden",position:"absolute"}).append(a).addClass("sudo-box")}function fa(a,b){var e=b?a.toSlides:a.fromSlides,f=e.eq(0).position(),z=f.left,h=f.top,r=0,p=0,m=g("
").css({position:"absolute",top:0,left:0}).addClass("sudo-box"); - e.each(function(a,b){var e=g(b),f=e.outerWidth(!0),w=e.outerHeight(!0),u=e.clone(),v=e.position(),e=v.left-z,v=v.top-h;u.css({position:"absolute",left:e,top:v,opacity:1});r=T(r,v+w);p=T(p,e+f);m.append(u)});m.width(p).height(r);return m}function O(a,b){return function(){a.apply(ha,b)}}function ia(a,b,e){if(a){a=a.add(a.find("img")).filter("img");var f=a.length;f?a.each(function(){var a=g(this),h=function(){a.off("load error",h);f--;b?0==f&&e():e()};a.on("load error",h);if("complete"==this.readyState)a.trigger("load"); - else if(this.readyState)this.src=this.src;else if(this.complete)a.trigger("load");else if(this.complete===ha){var r=this.src;this.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";this.src=r}}):e()}else e()}function wb(a){for(var b=g.fn.jquery.split("."),e=b.length,f=0;fa?-a:a}function T(a,b){return a>b?a:b}function Ka(a,b){return a++l;){m=e(b,0)-a;if(.001>P(m))break;b-=m/(h[0]+b*(2*g[0]+3*f[0]*b))}return e(b,1)}};e[b]=function(b,e,g,p,m){return p*f([a[0],a[1]],[a[2],a[3]])(e/m)+g}}return b}var ha,X=function(){},ga=function(){var a;a:{var b=g("
")[0].style;for(a in b)if(b=a.toLowerCase(),-1!==b.indexOf("transition",b.length-10))break a;a=!1}if(!1===a)return!1;a=a.slice(0,a.length-10);return 0!=a.length?"-"+a+"-":""}(),Ya=g(la),Fa=g(document);g.fn.sudoSlider= - function(a){var b=this;a=g.extend(ya(ea()),ya(a));!1!==ga&&wb([1,8,0])||(a.usecss=!1);return this.each(function(){function e(){var c=0,a;for(a in na)d[c]=na[a],c++;U=!0;Za=!1;Ma=[];$a=[];Na=[];Aa=[];Oa=[];t=Ga(N);c=t.length;a=g("
");c?(Pa=t.is("ul"))||t.hasClass("slidesContainer")||hb||(a.append(t),N.append(t=a)):(N.append(t=a),Pa=!1);hb=!0;c=Ga(t);H=[];A=c.length;c.each(function(c,a){var b=g(a);H[c]=b;b.css({position:"relative"});"none"==b.css("display")&&b.css("display","inline")});t.addClass("slidesContainer"); - c.addClass("slide");c.each(function(c,a){g(a).attr("data-slide",c+1)});if(d[30]&&(a=d[30].length,a>A)){for(c=1;c<=a-A;c++){var b;b=Pa?"li":"div";b=g("<"+b+">"+d[32]+"");t.append(b);H[A+(c-1)]=b}c=Ga(t);A=a}c.each(function(c,a){Ma[c]=!1;ia(g(a),!0,function(){Ma[c]=!0})});q=(q=!1===ba?0:ba)||0;W=!0;Qa=[];ka=!1;N.css({overflow:"hidden"});"static"==N.css("position")&&N.css({position:"relative"});c.css({"float":"left",listStyle:"none"});t.add(c).css({display:"block",position:"relative",margin:"0"}); - J(0,0,!0);d[7]=D(d[7]);S=d[7];d[7]+=d[8]-1;"string"==typeof d[9]&&"random"==d[9].toLowerCase()&&(d[9]=Math.random()*A|0);d[9]=D(d[9])-1||0;d[0]=La(d[0]);d[18]=d[18].slice(0);for(c=0;c");N[d[5]?"after":"before"](ra);if(d[17])for(ab=g("
    "),ra.prepend(ab),b=(a="pages"==d[17])?S:1,c=0;c'+d[18][c]+"").appendTo(ab).click(function(){l(h(this)-1,!0);return!1});d[16]&&(ib=k(d[34],"next"),jb=k(d[33],"prev"));d[4]&&u(q,0)}c=[4,1,14];for(a=0;a"==c.charAt(0)?qa(N,"click",f,c.substr(1,c.length)):qa(Fa,"click",f,c));ia(xa(d[9],d[7]),!0,function(){if(!1!==ba)Ra(ba,!1);else if(d[26]){var c; - (c=Ya.hashchange)?c(r):(c=g.address)?c.change(r):qa(Ya,"hashchange",r);r()}else Ra(d[9],!1);v(q)});d[30][d[9]]&&sa(d[9]);if(!0===d[31])for(a=0;a=x?(a=0,H[e].width(b+1)):H[e].width(b);!1!==Sa&&m(Sa);Ba();ta();R(q);I(q,0)}}}a();G(a);setTimeout(a,20)}function h(c){c=g(c);return c.attr("data-target")||c.attr("rel")}function r(){var c;a:{c=location.hash.substr(1);for(var a=0;ac?q==c&& - "next"==b?0:c:0>a?0==q&&"prev"==b?c:0:a}function sa(a,b){function c(){var b=new Image;b.src=f;var c=g(b);ia(c,!0,function(){x.empty().append(b);oa(a,!0)})}if(b){var e=Na[a];e||(e=Na[a]=[]);e.push(b)}if(Oa[a])b&&ia(H[a],!0,O(G,[b]));else if(!Aa[a]){Aa[a]=!0;var f=d[30][a];if(f){Ta&&clearTimeout(Ta);var x=H[a];d[30][a]=!1;na.ajax[a]=!1;if(d[47]){var h=!1;g.ajax({url:f,success:function(b,d,e){h=!0;ca(function(){var d=e.getResponseHeader("Content-Type");d&&"i"!=d.substr(0,1)?(x.html(b),oa(a,!1)):c()})}, - complete:function(){h||c()}})}else c()}else G(b)}}function ca(a){da?$a.push(a):G(a)}function oa(a,e){var c=H[a];da||(R(q),I(q,0));ia(c,!0,O(ca,[function(){R(q);I(q,0);Oa[a]=!0;Ea(Na[a]);p();G(function(){d[23].call(H[a],a+1,e,b)});U&&(U=!1,G(pa))}]))}function pa(){Za=!0;d[15]&&ua(q,0);I(q,0);R(q);Y();d[10]&&z();d[12]&&m();d[22].call(b);d[41]&&ya();ia(xa(q,A),!1,O(ca,[function(){I(q,0);R(q)}]))}function ya(){var a=g("body"),b,e=!1,f=d[0];d[0]=function(a){if(e){e=!1;var c=a.options;c.ease=b;c.cssease= - b;return Xa(a)}return f(a)};var h,k,l,m,p,r=[],u=[],v=0,n,z,w,B,F=!1,C=0,D=0,H=0,I=0,t=function(c){if(W){var f=c.type,x,L,K,E="m"==f.substr(0,1);E?(x="mousedown",L="mouseup",K=""):(x="touchstart",L="touchend",K="touchcancel",c=c.originalEvent);if(!F){if(f!=x)return;var t=c.target,G=g(t);d[42]||(G=G.parents().add(t));t=d[42]||N;"string"===typeof t&&(t=Ja(t),">"==t.charAt(0)&&(t=g(t.substr(1,t.length),N)));if(G.filter(t).length)F=!0;else return}if(f!=L&&f!=K){E?(L=c.pageX,K=c.pageY):(K=c.touches[0], - L=K.pageX,K=K.pageY);if(f==x){C=L;D=K;var M=L-C,y=K-D;a.addClass("sudoSlider-dragging");n=q;z=0;da=!0;ta();k=qb;h=pb;p=d[6]?P(y):P(M);m=l=+new Date;M=Q(n);w=Q(n+1)-M;B=!1;!E&&d[45]||c.preventDefault()}else{f=L-C;x=K-D;G=d[6]?x:f;t=P(G);r[v]=t-p;var O=+new Date;u[v]=O-m;v=(v+1)%3;m=O;p=t;d[15]&&A>=S+1&&(t=0,G-zP(M);E=E?!1:d[45]?d[6]?!M:M:!1;E||c.preventDefault()}H=L-C;I=K-D}else{c=H;E=I;a.removeClass("sudoSlider-dragging");K=d[6]?E:c;K-=z;B&&(K-=B,n++);E=P(K);L=+new Date;for(y=M=c=0;3>y;y++)f=u[y],f+100=y/2;if(0E||0>M&&0=E)c=!1;K=0>K?"next":"prev";d[15]||(q+1==A?"next"==K&&(c=!1):0==q&&"prev"==K&&(c=!1));K="next"==K?n+1:n-1;K=za(K,A);E=c?y-E:E;M=E/L*1.3;y=T(y/E*d[1],d[1]/4);M=Mb?A-za(-b-1,A+1):za(b,A+1);a=g(a||"
    ");Pa?a=g("
  1. ").prepend(a): - 1!=a.length&&(a=g("
    ").prepend(a));b&&0!=b?H[b-1].after(a):t.prepend(a);f?ba=f-1:(b<=ba||!b||0==b)&&ba++;d[18].lengthb,!0,0,5==b||6==b,3==b||4==b||6==b,2==b||4==b)}],Rain:["","GrowIn","GrowInRounded","GrowOut","GrowOutRounded","FlyIn", - "FlyOut",["UpLeft","DownLeft","DownRight","UpRight",function(a,b,e){ma(a,0==e||3==e,1==e||3==e,1<=b&&4>=b,!1,1,5==b||6==b,6==b||3==b||4==b,2==b||4==b)}]],Spiral:["InWards","OutWards",{"":function(a,b){ma(a,b,!1,!1,!1,2,!1,!1,!1)},Grow:["In","Out",["","Rounded",function(a,b,e,f){ma(a,b,!1,!0,!1,2,!1,e,f)}]]}]},fade:{"":function(a){Ia(a,a.options.speed)},OutIn:function(a){var b=a.options.speed,e=D(.6*b),e=b-e;a.stopCallbacks.push(function(){a.fromSlides.stop().css({opacity:1})});V(a.fromSlides,{opacity:1E-4}, - e,!1,O(Ia,[a,b]),a)}},foldRandom:["Horizontal","Vertical",function(a,b){aa(a,b,!1,!0)}],slide:Xa,stack:["Up","Right","Down","Left",["","Reverse",function(a,b,e){var f=0 previous ',nextHtml:' next ',controlsAttr:'class="controls"',numericAttr:'class="numericControls"',interruptible:!1,useCSS:!0,loadStart:X,loadFinish:X,touch:!1, +touchHandle:!1,destroyCallback:X,mouseTouch:!0,allowScroll:!0,CSSease:"swing",ajaxHasHTML:!1}}function Y(b,a,e,f,A){if(g.isFunction(a))f?Y(b,["","Up","Right","Down","Left",a],e,0,A):b[e]=function(b){var e=[b].concat(A),k=e.length-1;if(0===f&&0==e[k]){var g=b.diff;e[k]=b.options.vertical?0>g?1:3:0>g?2:4}a.apply(this,e)};else if(g.isArray(a))for(var h=a.length-1,t=a[h],m=0;mh;l--)w[z+=U]=v[n*k+l];l=h;for(n=x-h-1;n>h;n--)w[z+=U]=v[n*k+l]}}else for(v=0;vk?h(k):wa(N(h,[150]),k-150)})(x[k],F);F+=C/ +w.length*1.5}}function Z(b,a,e,f,A,h,t,m){var p=b.options,F=p.slices,x=p.speed/2;p=b.slider;for(var k=Ea(b,a?F:1,a?1:F,!m),l=g(),C=0;Ce)b.css(a),w();else return E(function(){b.css(A);E(function(){b.css(a); +var f=+new Date;b.on(C,function U(a){b.is(a.target)&&-100<+new Date-f-e&&(b.off(C,U),w())});setTimeout(w,e+100)})}),w}else f||(f=h.options.ease),b.animate(a,e,f,g)}function Ja(b,a){var e=b.options;e.boxcols=1;e.boxrows=1;e.speed=a;ma(b,!1)}function Ea(b,a,e,f){function A(a,e){m.push(function(){var g=ea(b,f);g=ya(g,k*a,x*e,k,x);h.append(g);return g})}var h=b.slider,t=b.options.vertical,m=[];var p=t?f?b.toSlides.width():b.slider.width():0;var F=t?0:f?b.toSlides.height():b.slider.height();b.toSlides.each(function(){var a= +g(this);t?F+=a.height():p+=a.width()});for(var x=Math.ceil(p/a),k=Math.ceil(F/e),l=0;l").css({left:e,top:a,width:A,height:f,opacity:0,overflow:"hidden",position:"absolute"}).append(b).addClass("sudo-box")}function ea(b,a){var e=a?b.toSlides:b.fromSlides,f=e.eq(0).position(),A=f.left,h=f.top,t=0,m=0,p=g("
    ").css({position:"absolute",top:0,left:0}).addClass("sudo-box"); +e.each(function(a,b){var e=g(b),f=e.outerWidth(!0),x=e.outerHeight(!0),v=e.clone(),w=e.position();e=w.left-A;w=w.top-h;v.css({position:"absolute",left:e,top:w,opacity:1});t=S(t,w+x);m=S(m,e+f);p.append(v)});p.width(m).height(t);return p}function N(b,a){return function(){b.apply(ha,a)}}function ia(b,a,e){if(b){b=b.add(b.find("img")).filter("img");var f=b.length;f?b.each(function(){var b=g(this),h=function(){b.off("load error",h);f--;a?0==f&&e():e()};b.on("load error",h);if("complete"==this.readyState)b.trigger("load"); +else if(this.readyState)this.src=this.src;else if(this.complete)b.trigger("load");else if(this.complete===ha){var t=this.src;this.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";this.src=t}}):e()}else e()}function xb(b){for(var a=g.fn.jquery.split("."),e=a.length,f=0;f+b[f])break}return!0}function Ka(b){return b.replace(/^\s+|\s+$/g,"")}function Ia(b){var a=[],e;for(e in b)a.push(e);return a}function E(b){setTimeout(b,0)}function wa(b, +a){return setTimeout(b,a)}function Ha(b){return b.children().not(".sudo-box")}function za(b){var a={},e;for(e in b)a[e.toLowerCase()]=b[e];return a}function pa(b){for(var a,e,f=b.length;f;a=Math.random()*f|0,e=b[--f],b[f]=b[a],b[a]=e);return b}function D(b){return parseInt(b,10)}function Aa(b,a){return(b%a+a)%a||0}function O(b){return 0>b?-b:b}function S(b,a){return b>a?b:a}function La(b,a){return b++l;){m=e(b,0)-a;if(.001>O(m))break;b-=m/(h[0]+b*(2*g[0]+3*f[0]*b))}return e(b,1)}};e[a]=function(a,e,g,m,p){return m*f([b[0],b[1]],[b[2],b[3]])(e/p)+g}}return a}var ha,X=function(){},fa=function(){a:{var b=g("
    ")[0].style;for(a in b)if(b=a.toLowerCase(),-1!==b.indexOf("transition",b.length-10))break a;var a=!1}if(!1===a)return!1;a=a.slice(0,a.length-10);return 0!=a.length?"-"+a+"-":""}(),Za=g(la),Ga=g(document);g.fn.sudoSlider= +function(b){var a=this;b=g.extend(za(da()),za(b));!1!==fa&&xb([1,8,0])||(b.usecss=!1);return this.each(function(){function e(){var c=0;for(a in na)d[c]=na[a],c++;T=!0;$a=!1;Na=[];ab=[];Oa=[];Ba=[];Pa=[];u=Ha(M);c=u.length;var a=g("
    ");c?(Qa=u.is("ul"))||u.hasClass("slidesContainer")||ib||(a.append(u),M.append(u=a)):(M.append(u=a),Qa=!1);ib=!0;c=Ha(u);H=[];B=c.length;c.each(function(c,a){var b=g(a);H[c]=b;b.css({position:"relative"});"none"==b.css("display")&&b.css("display","inline")});u.addClass("slidesContainer"); +c.addClass("slide");c.each(function(c,a){g(a).attr("data-slide",c+1)});if(d[30]&&(a=d[30].length,a>B)){for(c=1;c<=a-B;c++){var b=Qa?"li":"div";b=g("<"+b+">"+d[32]+"");u.append(b);H[B+(c-1)]=b}c=Ha(u);B=a}c.each(function(c,a){Na[c]=!1;ia(g(a),!0,function(){Na[c]=!0})});r=(r=!1===aa?0:aa)||0;W=!0;Ra=[];ka=!1;M.css({overflow:"hidden"});"static"==M.css("position")&&M.css({position:"relative"});c.css({"float":"left",listStyle:"none"});u.add(c).css({display:"block",position:"relative",margin:"0"}); +J(0,0,!0);d[7]=D(d[7]);R=d[7];d[7]+=d[8]-1;"string"==typeof d[9]&&"random"==d[9].toLowerCase()&&(d[9]=Math.random()*B|0);d[9]=D(d[9])-1||0;d[0]=Ma(d[0]);d[18]=d[18].slice(0);for(c=0;c");M[d[5]?"after":"before"](sa);if(d[17])for(bb=g("
      "),sa.prepend(bb),b=(a="pages"==d[17])?R:1,c=0;c'+d[18][c]+"
    1. ").appendTo(bb).click(function(){l(h(this)-1,!0);return!1});d[16]&&(jb=k(d[34],"next"),kb=k(d[33],"prev"));d[4]&&v(r,0)}c=[4,1,14];for(a=0;a"==c.charAt(0)?ra(M,"click",f,c.substr(1,c.length)):ra(Ga,"click",f,c));ia(ya(d[9],d[7]),!0,function(){if(!1!==aa)Sa(aa,!1);else if(d[26]){var c; +(c=Za.hashchange)?c(t):(c=g.address)?c.change(t):ra(Za,"hashchange",t);t()}else Sa(d[9],!1);w(r)});d[30][d[9]]&&ta(d[9]);if(!0===d[31])for(a=0;a=q?(b=0,H[e].width(a+1)):H[e].width(a);!1!==Ta&&p(Ta);Ca();ua();Q(r);I(r,0)}}}a();E(a);setTimeout(a,20)}function h(c){c=g(c);return c.attr("data-target")||c.attr("rel")}function t(){a:{var c=location.hash.substr(1);for(var a=0;ac?r==c&&"next"==b?0:c:0> +a?0==r&&"prev"==b?c:0:a}function ta(a,b){function c(){var b=new Image;b.src=f;var c=g(b);ia(c,!0,function(){q.empty().append(b);pa(a,!0)})}if(b){var e=Oa[a];e||(e=Oa[a]=[]);e.push(b)}if(Pa[a])b&&ia(H[a],!0,N(E,[b]));else if(!Ba[a]){Ba[a]=!0;var f=d[30][a];if(f){Ua&&clearTimeout(Ua);var q=H[a];d[30][a]=!1;na.ajax[a]=!1;if(d[47]){var h=!1;g.ajax({url:f,success:function(b,d,e){h=!0;ba(function(){var d=e.getResponseHeader("Content-Type");d&&"i"!=d.substr(0,1)?(q.html(b),pa(a,!1)):c()})},complete:function(){h|| +c()}})}else c()}else E(b)}}function ba(a){ca?ab.push(a):E(a)}function pa(b,e){var c=H[b];ca||(Q(r),I(r,0));ia(c,!0,N(ba,[function(){Q(r);I(r,0);Pa[b]=!0;Fa(Oa[b]);m();E(function(){d[23].call(H[b],b+1,e,a)});T&&(T=!1,E(qa))}]))}function qa(){$a=!0;d[15]&&va(r,0);I(r,0);Q(r);Y();d[10]&&A();d[12]&&p();d[22].call(a);d[41]&&za();ia(ya(r,B),!1,N(ba,[function(){I(r,0);Q(r)}]))}function za(){var a=g("body"),b,e=!1,f=d[0];d[0]=function(a){if(e){e=!1;var c=a.options;c.ease=b;c.cssease=b;return Ya(a)}return f(a)}; +var h,k,l,m,p,t=[],v=[],w=0,n,A,x,z,F=!1,C=0,D=0,H=0,I=0,u=function(c){if(W){var f=c.type,q="m"==f.substr(0,1);if(q){var oa="mousedown";var G="mouseup";var K=""}else oa="touchstart",G="touchend",K="touchcancel",c=c.originalEvent;if(!F){if(f!=oa)return;var u=c.target,E=g(u);d[42]||(E=E.parents().add(u));u=d[42]||M;"string"===typeof u&&(u=Ka(u),">"==u.charAt(0)&&(u=g(u.substr(1,u.length),M)));if(E.filter(u).length)F=!0;else return}if(f!=G&&f!=K){q?(G=c.pageX,K=c.pageY):(K=c.touches[0],G=K.pageX,K=K.pageY); +if(f==oa){C=G;D=K;var L=G-C,y=K-D;a.addClass("sudoSlider-dragging");n=r;A=0;ca=!0;ua();k=rb;h=qb;p=d[6]?O(y):O(L);m=l=+new Date;L=P(n);x=P(n+1)-L;z=!1;!q&&d[45]||c.preventDefault()}else{f=G-C;oa=K-D;E=d[6]?oa:f;u=O(E);t[w]=u-p;var N=+new Date;v[w]=N-m;w=(w+1)%3;m=N;p=u;d[15]&&B>=R+1&&(u=0,E-AO(L);q=q?!1:d[45]? +d[6]?!L:L:!1;q||c.preventDefault()}H=G-C;I=K-D}else{c=H;q=I;a.removeClass("sudoSlider-dragging");K=d[6]?q:c;K-=A;z&&(K-=z,n++);q=O(K);G=+new Date;for(y=L=c=0;3>y;y++)f=v[y],f+100=y/2;if(0q||0>L&&0=q)c=!1;K=0>K?"next":"prev";d[15]||(r+1==B?"next"==K&&(c=!1):0==r&&"prev"==K&&(c=!1));K="next"==K?n+1:n-1;K=Aa(K,B);q=c?y-q:q;L=q/G*1.3;y=S(y/q*d[1],d[1]/4);L=Lb?B-Aa(-b-1,B+1):Aa(b,B+1);a=g(a||"
      ");Qa?a=g("
    2. ").prepend(a):1!=a.length&& +(a=g("
      ").prepend(a));b&&0!=b?H[b-1].after(a):u.prepend(a);f?aa=f-1:(b<=aa||!b||0==b)&&aa++;d[18].lengtha,!0,0,5==a||6==a,3==a||4==a||6==a,2==a||4==a)}],Rain:["","GrowIn","GrowInRounded","GrowOut","GrowOutRounded","FlyIn","FlyOut", +["UpLeft","DownLeft","DownRight","UpRight",function(b,a,e){ma(b,0==e||3==e,1==e||3==e,1<=a&&4>=a,!1,1,5==a||6==a,6==a||3==a||4==a,2==a||4==a)}]],Spiral:["InWards","OutWards",{"":function(b,a){ma(b,a,!1,!1,!1,2,!1,!1,!1)},Grow:["In","Out",["","Rounded",function(b,a,e,f){ma(b,a,!1,!0,!1,2,!1,e,f)}]]}]},fade:{"":function(b){Ja(b,b.options.speed)},OutIn:function(b){var a=b.options.speed,e=D(.6*a);e=a-e;b.stopCallbacks.push(function(){b.fromSlides.stop().css({opacity:1})});V(b.fromSlides,{opacity:1E-4}, +e,!1,N(Ja,[b,a]),b)}},foldRandom:["Horizontal","Vertical",function(b,a){Z(b,a,!1,!0)}],slide:Ya,stack:["Up","Right","Down","Left",["","Reverse",function(b,a,e){var f=0