/* _ _ _ _ ___| (_) ___| | __ (_)___ / __| | |/ __| |/ / | / __| \__ \ | | (__| < _ | \__ \ |___/_|_|\___|_|\_(_)/ |___/ |__/ Version: 1.8.0 Author: Ken Wheeler Website: http://kenwheeler.github.io Docs: http://kenwheeler.github.io/slick Repo: http://github.com/kenwheeler/slick Issues: http://github.com/kenwheeler/slick/issues */ /* global window, document, define, jQuery, setInterval, clearInterval */ (function(f){"function"===typeof define&&define.amd?define(["jquery"],f):"undefined"!==typeof exports?module.exports=f(require("jquery")):f(jQuery)})(function(f){var c=window.Slick||{},c=function(){var a=0;return function(b,e){var d;this.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:f(b),appendDots:f(b),arrows:!0,asNavFor:null,prevArrow:'\x3cbutton class\x3d"slick-prev" aria-label\x3d"Previous" type\x3d"button"\x3e'+(e.btnText?"Previous":"")+"\x3c/button\x3e",nextArrow:'\x3cbutton class\x3d"slick-next" aria-label\x3d"Next" type\x3d"button"\x3e'+(e.btnText?"Next":"")+"\x3c/button\x3e",autoplay:!1,autoplaySpeed:3E3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(a,b){return f('\x3cbutton type\x3d"button" /\x3e').text(b+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:0,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,pcMouseTouch:!1,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1E3,removedcloned:!1};this.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1};f.extend(this,this.initials);this.animProp=this.animType=this.activeBreakpoint=null;this.breakpoints=[];this.breakpointSettings=[];this.interrupted=this.focussed=this.cssTransitions=!1;this.hidden="hidden";this.paused=!0;this.respondTo=this.positionProp=null;this.rowCount=1;this.shouldClick=!0;this.$slider=f(b);this.transitionType=this.transformType=this.$slidesCache=null;this.visibilityChange="visibilitychange";this.windowWidth=0;this.windowTimer=null;d=this.$slider.data("slick")||{};this.options=f.extend({},this.defaults,e,d);this.currentSlide=this.options.initialSlide;this.originalSettings=this.options;"undefined"!==typeof document.mozHidden?(this.hidden="mozHidden",this.visibilityChange="mozvisibilitychange"):"undefined"!==typeof document.webkitHidden&&(this.hidden="webkitHidden",this.visibilityChange="webkitvisibilitychange");this.autoPlay=f.proxy(this.autoPlay,this);this.autoPlayClear=f.proxy(this.autoPlayClear,this);this.autoPlayIterator=f.proxy(this.autoPlayIterator,this);this.changeSlide=f.proxy(this.changeSlide,this);this.clickHandler=f.proxy(this.clickHandler,this);this.selectHandler=f.proxy(this.selectHandler,this);this.setPosition=f.proxy(this.setPosition,this);this.swipeHandler=f.proxy(this.swipeHandler,this);this.dragHandler=f.proxy(this.dragHandler,this);this.keyHandler=f.proxy(this.keyHandler,this);this.instanceUid=a++;this.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;this.registerBreakpoints();this.init(!0);if(this.$prevArrow&&this.$nextArrow&&this.$slider.offset().top>document.documentElement.clientHeight){d=this.$nextArrow.offset().left+this.$nextArrow.width();d=screen.width-d;var c=screen.width-document.documentElement.clientWidth;if(0b||b>=this.slideCount)return!1;this.unload();"number"===typeof b?0===b&&0===this.$slides.length?f(a).appendTo(this.$slideTrack):e?f(a).insertBefore(this.$slides.eq(b)):f(a).insertAfter(this.$slides.eq(b)):!0===e?f(a).prependTo(this.$slideTrack):f(a).appendTo(this.$slideTrack);this.$slides=this.$slideTrack.children(this.options.slide);this.$slideTrack.children(this.options.slide).detach();this.$slideTrack.append(this.$slides);this.$slides.each(function(a,b){f(b).attr("data-slick-index",a)});this.$slidesCache=this.$slides;this.reinit()};c.prototype.animateHeight=function(){if(1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical){var a=this.$slides.eq(this.currentSlide).outerHeight(!0);this.$list.animate({height:a},this.options.speed)}};c.prototype.animateSlide=function(a,b){var e={},d=this;d.animateHeight();!0===d.options.rtl&&!1===d.options.vertical&&(a=-a);!1===d.transformsEnabled?!1===d.options.vertical?d.$slideTrack.animate({left:a},d.options.speed,d.options.easing,b):d.$slideTrack.animate({top:a},d.options.speed,d.options.easing,b):!1===d.cssTransitions?(!0===d.options.rtl&&(d.currentLeft=-d.currentLeft),f({animStart:d.currentLeft}).animate({animStart:a},{duration:d.options.speed,easing:d.options.easing,step:function(a){a=Math.ceil(a);e[d.animType]=!1===d.options.vertical?"translate("+a+"px, 0px)":"translate(0px,"+a+"px)";d.$slideTrack.css(e)},complete:function(){b&&b.call()}})):(d.applyTransition(),a=Math.ceil(a),e[d.animType]=!1===d.options.vertical?"translate3d("+a+"px, 0px, 0px)":"translate3d(0px,"+a+"px, 0px)",d.$slideTrack.css(e),b&&setTimeout(function(){d.disableTransition();b.call()},d.options.speed))};c.prototype.getNavTarget=function(){var a=this.options.asNavFor;a&&null!==a&&(a=f(a).not(this.$slider));return a};c.prototype.asNavFor=function(a){var b=this.getNavTarget();null!==b&&"object"===typeof b&&b.each(function(){var b=f(this).slick("getSlick");b.unslicked||b.slideHandler(a,!0)})};c.prototype.applyTransition=function(a){var b={};b[this.transitionType]=!1===this.options.fade?this.transformType+" "+this.options.speed+"ms "+this.options.cssEase:"opacity "+this.options.speed+"ms "+this.options.cssEase;!1===this.options.fade?this.$slideTrack.css(b):this.$slides.eq(a).css(b)};c.prototype.autoPlay=function(){this.autoPlayClear();this.slideCount>this.options.slidesToShow?this.autoPlayTimer=setInterval(this.autoPlayIterator,this.options.autoplaySpeed):util.log(this.$slider.attr("id")+"\u7684\u6570\u91cf\u8981\u8d85\u8fc7\u663e\u793a\u7684\u6570\u91cf\u624d\u4f1a\u64ad\u653e\uff0c\u6216\u5f00\u542f\u5faa\u73af\u64ad\u653e")};c.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)};c.prototype.autoPlayIterator=function(){var a=this.currentSlide+this.options.slidesToScroll;if(!this.paused&&!this.interrupted&&!this.focussed){var b=this.currentSli;!1===this.options.infinite&&(1===this.direction&&this.currentSlide+1===this.slideCount-1?this.direction=0:0===this.direction&&(a=this.currentSlide-this.options.slidesToScroll,0===this.currentSlide-1&&(this.direction=1)));if(this.options.onBeforeChange&&" "!=this.options.onBeforeChange)if("string"==typeof this.options.onBeforeChange)(new Function("return typeof "+this.options.onBeforeChange+"!\x3d'undefined' \x26\x26 "+this.options.onBeforeChange+"("+b+");"))();else this.options.onBeforeChange(this.$slider,b);this.slideHandler(a);if(this.options.onAfterChange&&" "!=this.options.onAfterChange)if("string"==typeof this.options.onAfterChange)(new Function("return typeof "+this.options.onAfterChange+"!\x3d'undefined' \x26\x26 "+this.options.onAfterChange+"("+b+","+this.currentSlide+");"))();else this.options.onAfterChange(this.$slider,b,this.currentSlide)}};c.prototype.buildArrows=function(){!0===this.options.arrows&&(this.$prevArrow=f(this.options.prevArrow).addClass("slick-arrow"),this.$nextArrow=f(this.options.nextArrow).addClass("slick-arrow"),this.slideCount>this.options.slidesToShow?(this.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),this.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),this.htmlExpr.test(this.options.prevArrow)&&this.$prevArrow.prependTo(this.options.appendArrows),this.htmlExpr.test(this.options.nextArrow)&&this.$nextArrow.appendTo(this.options.appendArrows),!0!==this.options.infinite&&this.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):this.$prevArrow.add(this.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))};c.prototype.buildDots=function(){var a,b;if(!0===this.options.dots){this.$slider.addClass("slick-dotted");b=f("\x3cul /\x3e").addClass(this.options.dotsClass);for(a=0;a<=this.getDotCount();a+=1)b.append(f("\x3cli /\x3e").append(this.options.customPaging.call(this,this,a)));this.$dots=b.appendTo(this.options.appendDots);this.$dots.find("li").first().addClass("slick-active")}};c.prototype.buildOut=function(){this.$slides=this.$slider.children(this.options.slide+":not(.slick-cloned)").addClass("slick-slide");this.slideCount=this.$slides.length;this.$slides.each(function(a,b){f(b).attr("data-slick-index",a).data("originalStyling",f(b).attr("style")||"")});this.$slider.addClass("slick-slider");this.$slideTrack=0===this.slideCount?f('\x3cdiv class\x3d"slick-track"/\x3e').appendTo(this.$slider):this.$slides.wrapAll('\x3cdiv class\x3d"slick-track"/\x3e').parent();this.$list=this.$slideTrack.wrap('\x3cdiv class\x3d"slick-list"/\x3e').parent();this.$slideTrack.css("opacity",0);if(!0===this.options.centerMode||!0===this.options.swipeToSlide)this.options.slidesToScroll=1;f("img[data-lazy]",this.$slider).not("[src]").addClass("slick-loading");this.setupInfinite();this.buildArrows();this.buildDots();this.updateDots();this.setSlideClasses("number"===typeof this.currentSlide?this.currentSlide:0);!0===this.options.draggable&&this.$list.addClass("draggable")};c.prototype.buildRows=function(){var a,b,e,d,f,c,g;d=document.createDocumentFragment();c=this.$slider.children();if(0this.breakpoints[e]&&(d=this.breakpoints[e]));if(null!==d)if(null!==this.activeBreakpoint){if(d!==this.activeBreakpoint||b)this.activeBreakpoint=d,"unslick"===this.breakpointSettings[d]?this.unslick(d):(this.options=f.extend({},this.originalSettings,this.breakpointSettings[d]),!0===a&&(this.currentSlide=this.options.initialSlide),this.refresh(a)),h=d}else this.activeBreakpoint=d,"unslick"===this.breakpointSettings[d]?this.unslick(d):(this.options=f.extend({},this.originalSettings,this.breakpointSettings[d]),!0===a&&(this.currentSlide=this.options.initialSlide),this.refresh(a)),h=d;else null!==this.activeBreakpoint&&(this.activeBreakpoint=null,this.options=this.originalSettings,!0===a&&(this.currentSlide=this.options.initialSlide),this.refresh(a),h=d);a||!1===h||this.$slider.trigger("breakpoint",[this,h])}};c.prototype.changeSlide=function(a,b){var e=f(a.currentTarget),d;e.is("a")&&a.preventDefault();e.is("li")||(e=e.closest("li"));d=0!==this.slideCount%this.options.slidesToScroll?0:(this.slideCount-this.currentSlide)%this.options.slidesToScroll;var c=this.currentSlide;switch(a.data.message){case "previous":if(this.options.onBeforeChange&&" "!=this.options.onBeforeChange)if("string"==typeof this.options.onBeforeChange)(new Function("return typeof "+this.options.onBeforeChange+"!\x3d'undefined' \x26\x26 "+this.options.onBeforeChange+"("+c+");"))();else this.options.onBeforeChange(this.$slider,c);e=0===d?this.options.slidesToScroll:this.options.slidesToShow-d;this.slideCount>this.options.slidesToShow&&this.slideHandler(this.currentSlide-e,!1,b);if(this.options.onAfterChange&&" "!=this.options.onAfterChange)if("string"==typeof this.options.onAfterChange)(new Function("return typeof "+this.options.onAfterChange+"!\x3d'undefined' \x26\x26 "+this.options.onAfterChange+"("+c+","+this.currentSlide+");"))();else this.options.onAfterChange(this.$slider,c,this.currentSlide);break;case "next":if(this.options.onBeforeChange&&" "!=this.options.onBeforeChange)if("string"==typeof this.options.onBeforeChange)(new Function("return typeof "+this.options.onBeforeChange+"!\x3d'undefined' \x26\x26 "+this.options.onBeforeChange+"("+c+");"))();else this.options.onBeforeChange(this.$slider,c);e=0===d?this.options.slidesToScroll:d;this.slideCount>this.options.slidesToShow&&this.slideHandler(this.currentSlide+e,!1,b);if(this.options.onAfterChange&&" "!=this.options.onAfterChange)if("string"==typeof this.options.onAfterChange)(new Function("return typeof "+this.options.onAfterChange+"!\x3d'undefined' \x26\x26 "+this.options.onAfterChange+"("+c+","+this.currentSlide+");"))();else this.options.onAfterChange(this.$slider,c,this.currentSlide);break;case "index":c=0===a.data.index?0:a.data.index||e.index()*this.options.slidesToScroll,this.slideHandler(this.checkNavigable(c),!1,b),e.children().trigger("focus")}};c.prototype.checkNavigable=function(a){var b,e;b=this.getNavigableIndexes();e=0;if(a>b[b.length-1])a=b[b.length-1];else for(var d in b){if(athis.options.slidesToShow&&this.$prevArrow&&(this.$prevArrow.off("click.slick",this.changeSlide),this.$nextArrow.off("click.slick",this.changeSlide),!0===this.options.accessibility&&(this.$prevArrow.off("keydown.slick",this.keyHandler),this.$nextArrow.off("keydown.slick",this.keyHandler)));this.$list.off("touchstart.slick mousedown.slick",this.swipeHandler);this.$list.off("touchmove.slick mousemove.slick",this.swipeHandler);this.$list.off("touchend.slick mouseup.slick",this.swipeHandler);this.$list.off("touchcancel.slick mouseleave.slick",this.swipeHandler);this.$list.off("click.slick",this.clickHandler);f(document).off(this.visibilityChange,this.visibility);this.cleanUpSlideEvents();!0===this.options.accessibility&&this.$list.off("keydown.slick",this.keyHandler);!0===this.options.focusOnSelect&&f(this.$slideTrack).children().off("click.slick",this.selectHandler);f(window).off("orientationchange.slick.slick-"+this.instanceUid,this.orientationChange);f(window).off("resize.slick.slick-"+this.instanceUid,this.resize);f("[draggable!\x3dtrue]",this.$slideTrack).off("dragstart",this.preventDefault);f(window).off("load.slick.slick-"+this.instanceUid,this.setPosition)};c.prototype.cleanUpSlideEvents=function(){this.$list.off("mouseenter.slick",f.proxy(this.interrupt,this,!0));this.$list.off("mouseleave.slick",f.proxy(this.interrupt,this,!1))};c.prototype.cleanUpRows=function(){var a;1this.options.slidesToShow&&(this.slideOffset=this.slideWidth*this.options.slidesToShow*-1,e=-1,!0===this.options.vertical&&!0===this.options.centerMode&&(2===this.options.slidesToShow?e=-1.5:1===this.options.slidesToShow&&(e=-2)),e*=b*this.options.slidesToShow),0!==this.slideCount%this.options.slidesToScroll&&a+this.options.slidesToScroll>this.slideCount&&this.slideCount>this.options.slidesToShow&&(a>this.slideCount?(this.slideOffset=(this.options.slidesToShow-(a-this.slideCount))*this.slideWidth*-1,e=(this.options.slidesToShow-(a-this.slideCount))*b*-1):(this.slideOffset=this.slideCount%this.options.slidesToScroll*this.slideWidth*-1,e=this.slideCount%this.options.slidesToScroll*b*-1))):a+this.options.slidesToShow>this.slideCount&&(this.slideOffset=(a+this.options.slidesToShow-this.slideCount)*this.slideWidth,e=(a+this.options.slidesToShow-this.slideCount)*b);if(this.slideCount<=this.options.slidesToShow||this.options.removedcloned)e=this.slideOffset=0;!0===this.options.centerMode&&this.slideCount<=this.options.slidesToShow?this.slideOffset=this.slideWidth*Math.floor(this.options.slidesToShow)/2-this.slideWidth*this.slideCount/2:!0===this.options.centerMode&&!0===this.options.infinite?this.slideOffset+=this.slideWidth*Math.floor(this.options.slidesToShow/2)-this.slideWidth:!0===this.options.centerMode&&(this.slideOffset=0,this.slideOffset+=this.slideWidth*Math.floor(this.options.slidesToShow/2));b=!1===this.options.vertical?a*this.slideWidth*-1+this.slideOffset:a*b*-1+e;!0===this.options.variableWidth&&(e=this.slideCount<=this.options.slidesToShow||!1===this.options.infinite?this.$slideTrack.children(".slick-slide").eq(a):this.$slideTrack.children(".slick-slide").eq(a+this.options.slidesToShow),b=!0===this.options.rtl?e[0]?-1*(this.$slideTrack.width()-e[0].offsetLeft-e.width()):0:e[0]?-1*e[0].offsetLeft:0,!0===this.options.centerMode&&(e=this.slideCount<=this.options.slidesToShow||!1===this.options.infinite?this.$slideTrack.children(".slick-slide").eq(a):this.$slideTrack.children(".slick-slide").eq(a+this.options.slidesToShow+1),b=!0===this.options.rtl?e[0]?-1*(this.$slideTrack.width()-e[0].offsetLeft-e.width()):0:e[0]?-1*e[0].offsetLeft:0,b+=(this.$list.width()-e.outerWidth())/2));return b};c.prototype.getOption=c.prototype.slickGetOption=function(a){return this.options[a]};c.prototype.getNavigableIndexes=function(){var a=0,b=0,e=[],d;!1===this.options.infinite?d=this.slideCount:(a=-1*this.options.slidesToScroll,b=-1*this.options.slidesToScroll,d=2*this.slideCount);this.options.slidesToShow||(this.options.slidesToShow=1);for(;a-1*a.swipeLeft)return e=c,!1}),b=Math.abs(f(e).attr("data-slick-index")-a.currentSlide)||1):a.options.slidesToScroll};c.prototype.goTo=c.prototype.slickGoTo=function(a,b){this.changeSlide({data:{message:"index",index:parseInt(a)}},b)};c.prototype.init=function(a){f(this.$slider).hasClass("slick-initialized")||(f(this.$slider).addClass("slick-initialized"),this.buildRows(),this.buildOut(),this.setProps(),this.startLoad(),this.loadSlider(),this.initializeEvents(),this.updateArrows(),this.updateDots(),this.checkResponsive(!0),this.focusHandler());a&&this.$slider.trigger("init",[this]);this.$slides&&!0===this.options.accessibility&&this.initADA();this.$slides&&this.options.autoplay&&(this.paused=!1,this.autoPlay())};c.prototype.initADA=function(){var a=this,b=Math.ceil(a.slideCount/a.options.slidesToShow),e=a.getNavigableIndexes().filter(function(b){return 0<=b&&bthis.options.slidesToShow&&(this.$prevArrow.css("display",""),this.$nextArrow.css("display",""));!0===this.options.dots&&this.slideCount>this.options.slidesToShow&&this.$dots.show()};c.prototype.keyHandler=function(a){a.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===a.keyCode&&!0===this.options.accessibility?this.changeSlide({data:{message:!0===this.options.rtl?"next":"previous"}}):39===a.keyCode&&!0===this.options.accessibility&&this.changeSlide({data:{message:!0===this.options.rtl?"previous":"next"}}))};c.prototype.lazyLoad=function(){function a(a){f("img[data-lazy]",a).each(function(){var a=f(this),d=f(this).attr("data-lazy"),e=f(this).attr("data-srcset"),c=f(this).attr("data-sizes")||b.$slider.attr("data-sizes"),g=document.createElement("img");g.onload=function(){a.animate({opacity:0},100,function(){e&&(a.attr("srcset",e),c&&a.attr("sizes",c));a.attr("src",d).animate({opacity:1},200,function(){a.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")});b.$slider.trigger("lazyLoaded",[b,a,d])})};g.onerror=function(){a.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error");b.$slider.trigger("lazyLoadError",[b,a,d])};g.src=d})}var b=this,e,d,c;!0===b.options.centerMode?!0===b.options.infinite?(d=b.currentSlide+(b.options.slidesToShow/2+1),c=d+b.options.slidesToShow+2):(d=Math.max(0,b.currentSlide-(b.options.slidesToShow/2+1)),c=2+(b.options.slidesToShow/2+1)+b.currentSlide):(d=b.options.infinite?b.options.slidesToShow+b.currentSlide:b.currentSlide,c=Math.ceil(d+b.options.slidesToShow),!0===b.options.fade&&(0d&&(d=b.slideCount-1),e=e.add(h.eq(d)),e=e.add(h.eq(c)),d--,c++}a(e);b.slideCount<=b.options.slidesToShow?(e=b.$slider.find(".slick-slide"),a(e)):b.currentSlide>=b.slideCount-b.options.slidesToShow?(e=b.$slider.find(".slick-cloned").slice(0,b.options.slidesToShow),a(e)):0===b.currentSlide&&(e=b.$slider.find(".slick-cloned").slice(-1*b.options.slidesToShow),a(e))};c.prototype.loadSlider=function(){this.setPosition();this.$slideTrack.css({opacity:1});this.$slider.removeClass("slick-loading");this.initUI();"progressive"===this.options.lazyLoad&&this.progressiveLazyLoad()};c.prototype.next=c.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})};c.prototype.orientationChange=function(){this.checkResponsive();this.setPosition()};c.prototype.pause=c.prototype.slickPause=function(){this.autoPlayClear();this.paused=!0};c.prototype.play=c.prototype.slickPlay=function(){this.autoPlay();this.options.autoplay=!0;this.interrupted=this.focussed=this.paused=!1};c.prototype.postSlide=function(a){this.unslicked||(this.$slider.trigger("afterChange",[this,a]),this.animating=!1,this.slideCount>this.options.slidesToShow&&this.setPosition(),this.swipeLeft=null,this.options.autoplay&&this.autoPlay(),!0===this.options.accessibility&&(this.initADA(),this.options.focusOnChange&&f(this.$slides.get(this.currentSlide)).attr("tabindex",0).focus()))};c.prototype.prev=c.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})};c.prototype.preventDefault=function(a){a.preventDefault()};c.prototype.progressiveLazyLoad=function(a){a=a||1;var b=this,e=f("img[data-lazy]",b.$slider),d,c,h,g;e.length?(d=e.first(),c=d.attr("data-lazy"),h=d.attr("data-srcset"),g=d.attr("data-sizes")||b.$slider.attr("data-sizes"),e=document.createElement("img"),e.onload=function(){h&&(d.attr("srcset",h),g&&d.attr("sizes",g));d.attr("src",c).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading");!0===b.options.adaptiveHeight&&b.setPosition();b.$slider.trigger("lazyLoaded",[b,d,c]);b.progressiveLazyLoad()},e.onerror=function(){3>a?setTimeout(function(){b.progressiveLazyLoad(a+1)},500):(d.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),b.$slider.trigger("lazyLoadError",[b,d,c]),b.progressiveLazyLoad())},e.src=c):b.$slider.trigger("allImagesLoaded",[b])};c.prototype.refresh=function(a){var b;b=this.slideCount-this.options.slidesToShow;!this.options.infinite&&this.currentSlide>b&&(this.currentSlide=b);this.slideCount<=this.options.slidesToShow&&(this.currentSlide=0);b=this.currentSlide;this.destroy(!0);f.extend(this,this.initials,{currentSlide:b});this.init();a||this.changeSlide({data:{message:"index",index:b}},!1)};c.prototype.registerBreakpoints=function(){var a=this,b,e,d,c=a.options.responsive||null;if("array"===f.type(c)&&c.length){a.respondTo=a.options.respondTo||"window";for(b in c)if(d=a.breakpoints.length-1,c.hasOwnProperty(b)){for(e=c[b].breakpoint;0<=d;)a.breakpoints[d]&&a.breakpoints[d]===e&&a.breakpoints.splice(d,1),d--;a.breakpoints.push(e);a.breakpointSettings[e]=c[b].settings}a.breakpoints.sort(function(b,d){return a.options.mobileFirst?b-d:d-b})}};c.prototype.reinit=function(){this.$slides=this.$slideTrack.children(this.options.slide).addClass("slick-slide");this.slideCount=this.$slides.length;this.currentSlide>=this.slideCount&&0!==this.currentSlide&&(this.currentSlide-=this.options.slidesToScroll);this.slideCount<=this.options.slidesToShow&&(this.currentSlide=0);this.registerBreakpoints();this.setProps();this.setupInfinite();this.buildArrows();this.updateArrows();this.initArrowEvents();this.buildDots();this.updateDots();this.initDotEvents();this.cleanUpSlideEvents();this.initSlideEvents();this.checkResponsive(!1,!0);if(!0===this.options.focusOnSelect)f(this.$slideTrack).children().on("click.slick",this.selectHandler);this.setSlideClasses("number"===typeof this.currentSlide?this.currentSlide:0);this.setPosition();this.focusHandler();this.paused=!this.options.autoplay;this.autoPlay();this.$slider.trigger("reInit",[this])};c.prototype.resize=function(){var a=this;f(window).width()!==a.windowWidth&&(clearTimeout(a.windowDelay),a.windowDelay=window.setTimeout(function(){a.windowWidth=f(window).width();a.checkResponsive();a.unslicked||a.setPosition()},50));a.iosCompatibility()};c.prototype.removeSlide=c.prototype.slickRemove=function(a,b,e){a="boolean"===typeof a?!0===a?0:this.slideCount-1:!0===b?--a:a;if(1>this.slideCount||0>a||a>this.slideCount-1)return!1;this.unload();!0===e?this.$slideTrack.children().remove():this.$slideTrack.children(this.options.slide).eq(a).remove();this.$slides=this.$slideTrack.children(this.options.slide);this.$slideTrack.children(this.options.slide).detach();this.$slideTrack.append(this.$slides);this.$slidesCache=this.$slides;this.reinit()};c.prototype.setCSS=function(a){var b={},e,d;!0===this.options.rtl&&(a=-a);e="left"==this.positionProp?Math.ceil(a)+"px":"0px";d="top"==this.positionProp?Math.ceil(a)+"px":"0px";b[this.positionProp]=a;!1!==this.transformsEnabled&&(b={},b[this.animType]=!1===this.cssTransitions?"translate("+e+", "+d+")":"translate3d("+e+", "+d+", 0px)");this.$slideTrack.css(b)};c.prototype.setDimensions=function(){!1===this.options.vertical?!0===this.options.centerMode&&this.$list.css({padding:"0px "+this.options.centerPadding}):(this.$list.height(this.$slides.first().outerHeight(!0)*this.options.slidesToShow),!0===this.options.centerMode&&this.$list.css({padding:this.options.centerPadding+" 0px"}));this.listWidth=this.$list.width();this.listHeight=this.$list.height();!1===this.options.vertical&&!1===this.options.variableWidth?(this.slideWidth=Math.ceil(this.listWidth/this.options.slidesToShow),this.$slideTrack.width(Math.ceil(this.slideWidth*this.$slideTrack.children(".slick-slide").length))):!0===this.options.variableWidth?this.$slideTrack.width(5E3*this.slideCount):(this.slideWidth=Math.ceil(this.listWidth),this.$slideTrack.height(Math.ceil(this.$slides.first().outerHeight(!0)*this.$slideTrack.children(".slick-slide").length)));var a=this.$slides.first().outerWidth(!0)-this.$slides.first().width();!1===this.options.variableWidth&&this.$slideTrack.children(".slick-slide").width(this.slideWidth-a);if(!1===this.options.vertical&&this.$prevArrow&&this.$nextArrow&&this.$slider.offset().top>document.documentElement.clientHeight){var a=this.$nextArrow.offset().left+this.$nextArrow.width(),a=screen.width-a,b=screen.width-document.documentElement.clientWidth;if(0this.options.zIndex&&(this.options.zIndex=3):this.options.zIndex=this.defaults.zIndex);void 0!==a.OTransform&&(this.animType="OTransform",this.transformType="-o-transform",this.transitionType="OTransition",void 0===a.perspectiveProperty&&void 0===a.webkitPerspective&&(this.animType=!1));void 0!==a.MozTransform&&(this.animType="MozTransform",this.transformType="-moz-transform",this.transitionType="MozTransition",void 0===a.perspectiveProperty&&void 0===a.MozPerspective&&(this.animType=!1));void 0!==a.webkitTransform&&(this.animType="webkitTransform",this.transformType="-webkit-transform",this.transitionType="webkitTransition",void 0===a.perspectiveProperty&&void 0===a.webkitPerspective&&(this.animType=!1));void 0!==a.msTransform&&(this.animType="msTransform",this.transformType="-ms-transform",this.transitionType="msTransition",void 0===a.msTransform&&(this.animType=!1));void 0!==a.transform&&!1!==this.animType&&(this.transformType=this.animType="transform",this.transitionType="transition");this.transformsEnabled=this.options.useTransform&&null!==this.animType&&!1!==this.animType};c.prototype.setSlideClasses=function(a){var b,e,d;e=this.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");this.$slides.eq(a).addClass("slick-current");if(!0===this.options.centerMode){var c=0===this.options.slidesToShow%2?1:0;b=Math.floor(this.options.slidesToShow/2);!0===this.options.infinite&&(a>=b&&a<=this.slideCount-1-b?this.$slides.slice(a-b+c,a+b+1).addClass("slick-active").attr("aria-hidden","false"):(d=this.options.slidesToShow+a,e.slice(d-b+1+c,d+b+2).addClass("slick-active").attr("aria-hidden","false")),0===a?e.eq(e.length-1-this.options.slidesToShow).addClass("slick-center"):a===this.slideCount-1&&e.eq(this.options.slidesToShow).addClass("slick-center"));this.$slides.eq(a).addClass("slick-center")}else 0<=a&&a<=this.slideCount-this.options.slidesToShow?this.$slides.slice(a,a+this.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):e.length<=this.options.slidesToShow?e.addClass("slick-active").attr("aria-hidden","false"):(b=this.slideCount%this.options.slidesToShow,d=!0===this.options.infinite?this.options.slidesToShow+a:a,this.options.slidesToShow==this.options.slidesToScroll&&this.slideCount-athis.options.slidesToShow)){e=!0===this.options.centerMode?this.options.slidesToShow+1:this.options.slidesToShow;for(a=this.slideCount;a>this.slideCount-e;--a)b=a-1,f(this.$slides[b]).clone(!0).attr("id","").attr("data-slick-index",b-this.slideCount).prependTo(this.$slideTrack).addClass("slick-cloned");for(a=0;aa||a>g.getDotCount()*g.options.slidesToScroll)?!1===g.options.fade&&(d=g.currentSlide,!0!==e?g.animateSlide(b,function(){g.postSlide(d)}):g.postSlide(d)):!1===g.options.infinite&&!0===g.options.centerMode&&(0>a||a>g.slideCount-g.options.slidesToScroll)?!1===g.options.fade&&(d=g.currentSlide,!0!==e?g.animateSlide(b,function(){g.postSlide(d)}):g.postSlide(d)):(g.options.autoplay&&clearInterval(g.autoPlayTimer),c=0>d?0!==g.slideCount%g.options.slidesToScroll?g.slideCount-g.slideCount%g.options.slidesToScroll:g.slideCount+d:d>=g.slideCount?0!==g.slideCount%g.options.slidesToScroll?0:d-g.slideCount:d,g.animating=!0,g.$slider.trigger("beforeChange",[g,g.currentSlide,c]),a=g.currentSlide,g.currentSlide=c,g.setSlideClasses(g.currentSlide),g.options.asNavFor&&(b=g.getNavTarget(),b=b.slick("getSlick"),b.slideCount<=b.options.slidesToShow&&b.setSlideClasses(g.currentSlide)),g.updateDots(),g.updateArrows(),!0===g.options.fade?(!0!==e?(g.fadeSlideOut(a),g.fadeSlide(c,function(){g.postSlide(c)})):g.postSlide(c),g.animateHeight()):!0!==e?g.animateSlide(f,function(){g.postSlide(c)}):g.postSlide(c))};c.prototype.startLoad=function(){!0===this.options.arrows&&this.slideCount>this.options.slidesToShow&&(this.$prevArrow.hide(),this.$nextArrow.hide());!0===this.options.dots&&this.slideCount>this.options.slidesToShow&&this.$dots.hide();this.$slider.addClass("slick-loading")};c.prototype.swipeDirection=function(){var a;a=Math.round(180*Math.atan2(this.touchObject.startY-this.touchObject.curY,this.touchObject.startX-this.touchObject.curX)/Math.PI);0>a&&(a=360-Math.abs(a));return 45>=a&&0<=a||360>=a&&315<=a?!1===this.options.rtl?"left":"right":135<=a&&225>=a?!1===this.options.rtl?"right":"left":!0===this.options.verticalSwiping?35<=a&&135>=a?"down":"up":"vertical"};c.prototype.swipeEnd=function(a){var b;this.swiping=this.dragging=!1;if(this.scrolling)return this.scrolling=!1;this.interrupted=!1;this.shouldClick=10=this.touchObject.minSwipe){a=this.swipeDirection();switch(a){case "left":case "down":b=this.options.swipeToSlide?this.checkNavigable(this.currentSlide+this.getSlideCount()):this.currentSlide+this.getSlideCount();this.currentDirection=0;break;case "right":case "up":b=this.options.swipeToSlide?this.checkNavigable(this.currentSlide-this.getSlideCount()):this.currentSlide-this.getSlideCount(),this.currentDirection=1}"vertical"!=a&&(this.slideHandler(b),this.touchObject={},this.$slider.trigger("swipe",[this,a]))}else this.touchObject.startX!==this.touchObject.curX&&(this.slideHandler(this.currentSlide),this.touchObject={})};c.prototype.swipeHandler=function(a){if(!(!1===this.options.swipe||"ontouchend"in document&&!1===this.options.swipe||!1===this.options.draggable&&-1!==a.type.indexOf("mouse"))){this.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1;this.touchObject.minSwipe=this.listWidth/this.options.touchThreshold;!0===this.options.verticalSwiping&&(this.touchObject.minSwipe=this.listHeight/this.options.touchThreshold);var b=this.currentSlide;switch(a.data.action){case "start":if(this.options.onBeforeChange&&" "!=this.options.onBeforeChange)if("string"==typeof this.options.onBeforeChange)(new Function("return typeof "+this.options.onBeforeChange+"!\x3d'undefined' \x26\x26 "+this.options.onBeforeChange+"("+b+");"))();else this.options.onBeforeChange(this.$slider,b);this.swipeStart(a);break;case "move":this.swipeMove(a);break;case "end":if(this.swipeEnd(a),this.options.onAfterChange&&" "!=this.options.onAfterChange)if("string"==typeof this.options.onAfterChange)(new Function("return typeof "+this.options.onAfterChange+"!\x3d'undefined' \x26\x26 "+this.options.onAfterChange+"("+b+","+this.currentSlide+");"))();else this.options.onAfterChange(this.$slider,b,this.currentSlide)}}};c.prototype.swipeMove=function(a){var b,c,d;c=void 0!==a.originalEvent?a.originalEvent.touches:null;if(!this.dragging||this.scrolling||c&&1!==c.length)return!1;b=this.getLeft(this.currentSlide);this.touchObject.curX=void 0!==c?c[0].pageX:a.clientX;this.touchObject.curY=void 0!==c?c[0].pageY:a.clientY;this.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(this.touchObject.curX-this.touchObject.startX,2)));c=Math.round(Math.sqrt(Math.pow(this.touchObject.curY-this.touchObject.startY,2)));if(!this.options.verticalSwiping&&!this.swiping&&4this.touchObject.startX?1:-1);!0===this.options.verticalSwiping&&(d=this.touchObject.curY>this.touchObject.startY?1:-1);a=this.touchObject.swipeLength;this.touchObject.edgeHit=!1;!1===this.options.infinite&&(0===this.currentSlide&&"right"===c||this.currentSlide>=this.getDotCount()&&"left"===c)&&(a=this.touchObject.swipeLength*this.options.edgeFriction,this.touchObject.edgeHit=!0);this.swipeLeft=!1===this.options.vertical?b+a*d:b+a*(this.$list.height()/this.listWidth)*d;!0===this.options.verticalSwiping&&(this.swipeLeft=b+a*d);if(!0===this.options.fade||!1===this.options.touchMove)return!1;if(!0===this.animating)return this.swipeLeft=null,!1;this.setCSS(this.swipeLeft)};c.prototype.swipeStart=function(a){var b;this.interrupted=!0;if(1!==this.touchObject.fingerCount||this.slideCount<=this.options.slidesToShow)return this.touchObject={},!1;void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(b=a.originalEvent.touches[0]);this.touchObject.startX=this.touchObject.curX=void 0!==b?b.pageX:a.clientX;this.touchObject.startY=this.touchObject.curY=void 0!==b?b.pageY:a.clientY;this.dragging=!0};c.prototype.unfilterSlides=c.prototype.slickUnfilter=function(){null!==this.$slidesCache&&(this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.appendTo(this.$slideTrack),this.reinit())};c.prototype.unload=function(){f(".slick-cloned",this.$slider).remove();this.$dots&&this.$dots.remove();this.$prevArrow&&this.htmlExpr.test(this.options.prevArrow)&&this.$prevArrow.remove();this.$nextArrow&&this.htmlExpr.test(this.options.nextArrow)&&this.$nextArrow.remove();this.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")};c.prototype.unslick=function(a){this.$slider.trigger("unslick",[this,a]);this.destroy()};c.prototype.updateArrows=function(){!0===this.options.arrows&&this.slideCount>this.options.slidesToShow&&!this.options.infinite&&(this.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),this.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===this.currentSlide?(this.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),this.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):this.currentSlide>=this.slideCount-this.options.slidesToShow&&!1===this.options.centerMode?(this.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),this.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):this.currentSlide>=this.slideCount-1&&!0===this.options.centerMode&&(this.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),this.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))};c.prototype.updateDots=function(){null!==this.$dots&&(this.$dots.find("li").removeClass("slick-active").end(),this.$dots.find("li").eq(Math.floor(this.currentSlide/this.options.slidesToScroll)).addClass("slick-active"))};c.prototype.visibility=function(){this.options.autoplay&&(this.interrupted=document[this.hidden]?!0:!1)};c.prototype.iosCompatibility=function(){-1!=navigator.userAgent.indexOf("iPhone")&&"undefined"!=typeof page&&(screen.width<=page.splitMobileWidth?this.$slider.css("width",this.$slider.parent().width()+"px"):this.$slider.css({width:""}))};f.fn.slick=function(){"undefined"==typeof window.mySlick&&(window.mySlick=[]);var a=arguments[0],b=Array.prototype.slice.call(arguments,1),e=this.length,d,f;for(d=0;d