!function(b){"function"==typeof define&&define.amd?define(["jquery"],b):"undefined"!=typeof exports?module.exports=b(require("jquery")):b(jQuery)}(function(d){var c=window.Slick||{};c=function(){function e(i,h){var b,g=this;g.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:d(i),appendDots:d(i),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3000,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(f,j){return d('').text(j+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:0.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1000},g.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,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},d.extend(g,g.initials),g.activeBreakpoint=null,g.animType=null,g.animProp=null,g.breakpoints=[],g.breakpointSettings=[],g.cssTransitions=!1,g.focussed=!1,g.interrupted=!1,g.hidden="hidden",g.paused=!0,g.positionProp=null,g.respondTo=null,g.rowCount=1,g.shouldClick=!0,g.$slider=d(i),g.$slidesCache=null,g.transformType=null,g.transitionType=null,g.visibilityChange="visibilitychange",g.windowWidth=0,g.windowTimer=null,b=d(i).data("slick")||{},g.options=d.extend({},g.defaults,h,b),g.currentSlide=g.options.initialSlide,g.originalSettings=g.options,"undefined"!=typeof document.mozHidden?(g.hidden="mozHidden",g.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(g.hidden="webkitHidden",g.visibilityChange="webkitvisibilitychange"),g.autoPlay=d.proxy(g.autoPlay,g),g.autoPlayClear=d.proxy(g.autoPlayClear,g),g.autoPlayIterator=d.proxy(g.autoPlayIterator,g),g.changeSlide=d.proxy(g.changeSlide,g),g.clickHandler=d.proxy(g.clickHandler,g),g.selectHandler=d.proxy(g.selectHandler,g),g.setPosition=d.proxy(g.setPosition,g),g.swipeHandler=d.proxy(g.swipeHandler,g),g.dragHandler=d.proxy(g.dragHandler,g),g.keyHandler=d.proxy(g.keyHandler,g),g.instanceUid=a++,g.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,g.registerBreakpoints(),g.init(!0)}var a=0;return e}(),c.prototype.activateADA=function(){var b=this;b.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},c.prototype.addSlide=c.prototype.slickAdd=function(a,h,g){var f=this;if("boolean"==typeof h){g=h,h=null}else{if(0>h||h>=f.slideCount){return !1}}f.unload(),"number"==typeof h?0===h&&0===f.$slides.length?d(a).appendTo(f.$slideTrack):g?d(a).insertBefore(f.$slides.eq(h)):d(a).insertAfter(f.$slides.eq(h)):g===!0?d(a).prependTo(f.$slideTrack):d(a).appendTo(f.$slideTrack),f.$slides=f.$slideTrack.children(this.options.slide),f.$slideTrack.children(this.options.slide).detach(),f.$slideTrack.append(f.$slides),f.$slides.each(function(e,i){d(i).attr("data-slick-index",e)}),f.$slidesCache=f.$slides,f.reinit()},c.prototype.animateHeight=function(){var f=this;if(1===f.options.slidesToShow&&f.options.adaptiveHeight===!0&&f.options.vertical===!1){var e=f.$slides.eq(f.currentSlide).outerHeight(!0);f.$list.animate({height:e},f.options.speed)}},c.prototype.animateSlide=function(a,h){var g={},f=this;f.animateHeight(),f.options.rtl===!0&&f.options.vertical===!1&&(a=-a),f.transformsEnabled===!1?f.options.vertical===!1?f.$slideTrack.animate({left:a},f.options.speed,f.options.easing,h):f.$slideTrack.animate({top:a},f.options.speed,f.options.easing,h):f.cssTransitions===!1?(f.options.rtl===!0&&(f.currentLeft=-f.currentLeft),d({animStart:f.currentLeft}).animate({animStart:a},{duration:f.options.speed,easing:f.options.easing,step:function(b){b=Math.ceil(b),f.options.vertical===!1?(g[f.animType]="translate("+b+"px, 0px)",f.$slideTrack.css(g)):(g[f.animType]="translate(0px,"+b+"px)",f.$slideTrack.css(g))},complete:function(){h&&h.call()}})):(f.applyTransition(),a=Math.ceil(a),f.options.vertical===!1?g[f.animType]="translate3d("+a+"px, 0px, 0px)":g[f.animType]="translate3d(0px,"+a+"px, 0px)",f.$slideTrack.css(g),h&&setTimeout(function(){f.disableTransition(),h.call()},f.options.speed))},c.prototype.getNavTarget=function(){var a=this,e=a.options.asNavFor;return e&&null!==e&&(e=d(e).not(a.$slider)),e},c.prototype.asNavFor=function(a){var f=this,e=f.getNavTarget();null!==e&&"object"==typeof e&&e.each(function(){var b=d(this).slick("getSlick");b.unslicked||b.slideHandler(a,!0)})},c.prototype.applyTransition=function(f){var e=this,g={};e.options.fade===!1?g[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:g[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(g):e.$slides.eq(f).css(g)},c.prototype.autoPlay=function(){var b=this;b.autoPlayClear(),b.slideCount>b.options.slidesToShow&&(b.autoPlayTimer=setInterval(b.autoPlayIterator,b.options.autoplaySpeed))},c.prototype.autoPlayClear=function(){var b=this;b.autoPlayTimer&&clearInterval(b.autoPlayTimer)},c.prototype.autoPlayIterator=function(){var f=this,e=f.currentSlide+f.options.slidesToScroll;f.paused||f.interrupted||f.focussed||(f.options.infinite===!1&&(1===f.direction&&f.currentSlide+1===f.slideCount-1?f.direction=0:0===f.direction&&(e=f.currentSlide-f.options.slidesToScroll,f.currentSlide-1===0&&(f.direction=1))),f.slideHandler(e))},c.prototype.buildArrows=function(){var a=this;a.options.arrows===!0&&(a.$prevArrow=d(a.options.prevArrow).addClass("slick-arrow"),a.$nextArrow=d(a.options.nextArrow).addClass("slick-arrow"),a.slideCount>a.options.slidesToShow?(a.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),a.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),a.htmlExpr.test(a.options.prevArrow)&&a.$prevArrow.prependTo(a.options.appendArrows),a.htmlExpr.test(a.options.nextArrow)&&a.$nextArrow.appendTo(a.options.appendArrows),a.options.infinite!==!0&&a.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):a.$prevArrow.add(a.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},c.prototype.buildDots=function(){var f,e,a=this;if(a.options.dots===!0&&a.slideCount>a.options.slidesToShow){for(a.$slider.addClass("slick-dotted"),e=d("
").addClass(a.options.dotsClass),f=0;f<=a.getDotCount();f+=1){e.append(d("").append(a.options.customPaging.call(this,a,f)))}a.$dots=e.appendTo(a.options.appendDots),a.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},c.prototype.buildOut=function(){var a=this;a.$slides=a.$slider.children(a.options.slide+":not(.slick-cloned)").addClass("slick-slide"),a.slideCount=a.$slides.length,a.$slides.each(function(e,f){d(f).attr("data-slick-index",e).data("originalStyling",d(f).attr("style")||"")}),a.$slider.addClass("slick-slider"),a.$slideTrack=0===a.slideCount?d('').appendTo(a.$slider):a.$slides.wrapAll('').parent(),a.$list=a.$slideTrack.wrap('').parent(),a.$slideTrack.css("opacity",0),(a.options.centerMode===!0||a.options.swipeToSlide===!0)&&(a.options.slidesToScroll=1),d("img[data-lazy]",a.$slider).not("[src]").addClass("slick-loading"),a.setupInfinite(),a.buildArrows(),a.buildDots(),a.updateDots(),a.setSlideClasses("number"==typeof a.currentSlide?a.currentSlide:0),a.options.draggable===!0&&a.$list.addClass("draggable")},c.prototype.buildRows=function(){var u,t,s,r,q,p,o,v=this;if(r=document.createDocumentFragment(),p=v.$slider.children(),v.options.rows>1){for(o=v.options.slidesPerRow*v.options.rows,q=Math.ceil(p.length/o),u=0;q>u;u++){var n=document.createElement("div");for(t=0;tp.breakpoints[o]&&(n=p.breakpoints[o]))}null!==n?null!==p.activeBreakpoint?(n!==p.activeBreakpoint||q)&&(p.activeBreakpoint=n,"unslick"===p.breakpointSettings[n]?p.unslick(n):(p.options=d.extend({},p.originalSettings,p.breakpointSettings[n]),r===!0&&(p.currentSlide=p.options.initialSlide),p.refresh(r)),l=n):(p.activeBreakpoint=n,"unslick"===p.breakpointSettings[n]?p.unslick(n):(p.options=d.extend({},p.originalSettings,p.breakpointSettings[n]),r===!0&&(p.currentSlide=p.options.initialSlide),p.refresh(r)),l=n):null!==p.activeBreakpoint&&(p.activeBreakpoint=null,p.options=p.originalSettings,r===!0&&(p.currentSlide=p.options.initialSlide),p.refresh(r),l=n),r||l===!1||p.$slider.trigger("breakpoint",[p,l])}},c.prototype.changeSlide=function(a,p){var m,l,k,o=this,n=d(a.currentTarget);switch(n.is("a")&&a.preventDefault(),n.is("li")||(n=n.closest("li")),k=o.slideCount%o.options.slidesToScroll!==0,m=k?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,a.data.message){case"previous":l=0===m?o.options.slidesToScroll:o.options.slidesToShow-m,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-l,!1,p);break;case"next":l=0===m?o.options.slidesToScroll:m,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+l,!1,p);break;case"index":var j=0===a.data.index?0:a.data.index||n.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(j),!1,p),n.children().trigger("focus");break;default:return}},c.prototype.checkNavigable=function(g){var j,i,f=this;if(j=f.getNavigableIndexes(),i=0,g>j[j.length-1]){g=j[j.length-1]}else{for(var h in j){if(ga.options.slidesToShow&&(a.$prevArrow&&a.$prevArrow.off("click.slick",a.changeSlide),a.$nextArrow&&a.$nextArrow.off("click.slick",a.changeSlide)),a.$list.off("touchstart.slick mousedown.slick",a.swipeHandler),a.$list.off("touchmove.slick mousemove.slick",a.swipeHandler),a.$list.off("touchend.slick mouseup.slick",a.swipeHandler),a.$list.off("touchcancel.slick mouseleave.slick",a.swipeHandler),a.$list.off("click.slick",a.clickHandler),d(document).off(a.visibilityChange,a.visibility),a.cleanUpSlideEvents(),a.options.accessibility===!0&&a.$list.off("keydown.slick",a.keyHandler),a.options.focusOnSelect===!0&&d(a.$slideTrack).children().off("click.slick",a.selectHandler),d(window).off("orientationchange.slick.slick-"+a.instanceUid,a.orientationChange),d(window).off("resize.slick.slick-"+a.instanceUid,a.resize),d("[draggable!=true]",a.$slideTrack).off("dragstart",a.preventDefault),d(window).off("load.slick.slick-"+a.instanceUid,a.setPosition),d(document).off("ready.slick.slick-"+a.instanceUid,a.setPosition)},c.prototype.cleanUpSlideEvents=function(){var a=this;a.$list.off("mouseenter.slick",d.proxy(a.interrupt,a,!0)),a.$list.off("mouseleave.slick",d.proxy(a.interrupt,a,!1))},c.prototype.cleanUpRows=function(){var e,f=this;f.options.rows>1&&(e=f.$slides.children().children(),e.removeAttr("style"),f.$slider.empty().append(e))},c.prototype.clickHandler=function(f){var e=this;e.shouldClick===!1&&(f.stopImmediatePropagation(),f.stopPropagation(),f.preventDefault())},c.prototype.destroy=function(a){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),d(".slick-cloned",e.$slider).detach(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.$prevArrow.length&&(e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove()),e.$nextArrow&&e.$nextArrow.length&&(e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove()),e.$slides&&(e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){d(this).attr("style",d(this).data("originalStyling"))}),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.detach(),e.$list.detach(),e.$slider.append(e.$slides)),e.cleanUpRows(),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.$slider.removeClass("slick-dotted"),e.unslicked=!0,a||e.$slider.trigger("destroy",[e])},c.prototype.disableTransition=function(f){var e=this,g={};g[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(g):e.$slides.eq(f).css(g)},c.prototype.fadeSlide=function(f,e){var g=this;g.cssTransitions===!1?(g.$slides.eq(f).css({zIndex:g.options.zIndex}),g.$slides.eq(f).animate({opacity:1},g.options.speed,g.options.easing,e)):(g.applyTransition(f),g.$slides.eq(f).css({opacity:1,zIndex:g.options.zIndex}),e&&setTimeout(function(){g.disableTransition(f),e.call()},g.options.speed))},c.prototype.fadeSlideOut=function(f){var e=this;e.cssTransitions===!1?e.$slides.eq(f).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(f),e.$slides.eq(f).css({opacity:0,zIndex:e.options.zIndex-2}))},c.prototype.filterSlides=c.prototype.slickFilter=function(f){var e=this;null!==f&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(f).appendTo(e.$slideTrack),e.reinit())},c.prototype.focusHandler=function(){var a=this;a.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(e){e.stopImmediatePropagation();var b=d(this);setTimeout(function(){a.options.pauseOnFocus&&(a.focussed=b.is(":focus"),a.autoPlay())},0)})},c.prototype.getCurrent=c.prototype.slickCurrentSlide=function(){var b=this;return b.currentSlide},c.prototype.getDotCount=function(){var f=this,e=0,h=0,g=0;if(f.options.infinite===!0){for(;eg.options.slidesToShow&&(g.slideOffset=g.slideWidth*g.options.slidesToShow*-1,j=k*g.options.slidesToShow*-1),g.slideCount%g.options.slidesToScroll!==0&&h+g.options.slidesToScroll>g.slideCount&&g.slideCount>g.options.slidesToShow&&(h>g.slideCount?(g.slideOffset=(g.options.slidesToShow-(h-g.slideCount))*g.slideWidth*-1,j=(g.options.slidesToShow-(h-g.slideCount))*k*-1):(g.slideOffset=g.slideCount%g.options.slidesToScroll*g.slideWidth*-1,j=g.slideCount%g.options.slidesToScroll*k*-1))):h+g.options.slidesToShow>g.slideCount&&(g.slideOffset=(h+g.options.slidesToShow-g.slideCount)*g.slideWidth,j=(h+g.options.slidesToShow-g.slideCount)*k),g.slideCount<=g.options.slidesToShow&&(g.slideOffset=0,j=0),g.options.centerMode===!0&&g.options.infinite===!0?g.slideOffset+=g.slideWidth*Math.floor(g.options.slidesToShow/2)-g.slideWidth:g.options.centerMode===!0&&(g.slideOffset=0,g.slideOffset+=g.slideWidth*Math.floor(g.options.slidesToShow/2)),l=g.options.vertical===!1?h*g.slideWidth*-1+g.slideOffset:h*k*-1+j,g.options.variableWidth===!0&&(i=g.slideCount<=g.options.slidesToShow||g.options.infinite===!1?g.$slideTrack.children(".slick-slide").eq(h):g.$slideTrack.children(".slick-slide").eq(h+g.options.slidesToShow),l=g.options.rtl===!0?i[0]?-1*(g.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,g.options.centerMode===!0&&(i=g.slideCount<=g.options.slidesToShow||g.options.infinite===!1?g.$slideTrack.children(".slick-slide").eq(h):g.$slideTrack.children(".slick-slide").eq(h+g.options.slidesToShow+1),l=g.options.rtl===!0?i[0]?-1*(g.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,l+=(g.$list.width()-i.outerWidth())/2)),l},c.prototype.getOption=c.prototype.slickGetOption=function(f){var e=this;return e.options[f]},c.prototype.getNavigableIndexes=function(){var h,g=this,f=0,j=0,i=[];for(g.options.infinite===!1?h=g.slideCount:(f=-1*g.options.slidesToScroll,j=-1*g.options.slidesToScroll,h=2*g.slideCount);h>f;){i.push(f),f=j+g.options.slidesToScroll,j+=g.options.slidesToScroll<=g.options.slidesToShow?g.options.slidesToScroll:g.options.slidesToShow}return i},c.prototype.getSlick=function(){return this},c.prototype.getSlideCount=function(){var h,g,f,a=this;return f=a.options.centerMode===!0?a.slideWidth*Math.floor(a.options.slidesToShow/2):0,a.options.swipeToSlide===!0?(a.$slideTrack.find(".slick-slide").each(function(e,b){return b.offsetLeft-f+d(b).outerWidth()/2>-1*a.swipeLeft?(g=b,!1):void 0}),h=Math.abs(d(g).attr("data-slick-index")-a.currentSlide)||1):a.options.slidesToScroll},c.prototype.goTo=c.prototype.slickGoTo=function(f,e){var g=this;g.changeSlide({data:{message:"index",index:parseInt(f)}},e)},c.prototype.init=function(a){var e=this;d(e.$slider).hasClass("slick-initialized")||(d(e.$slider).addClass("slick-initialized"),e.buildRows(),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots(),e.checkResponsive(!0),e.focusHandler()),a&&e.$slider.trigger("init",[e]),e.options.accessibility===!0&&e.initADA(),e.options.autoplay&&(e.paused=!1,e.autoPlay())},c.prototype.initADA=function(){var a=this;a.$slides.add(a.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),a.$slideTrack.attr("role","listbox"),a.$slides.not(a.$slideTrack.find(".slick-cloned")).each(function(b){d(this).attr({role:"option","aria-describedby":"slick-slide"+a.instanceUid+b})}),null!==a.$dots&&a.$dots.attr("role","tablist").find("li").each(function(b){d(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+a.instanceUid+b,id:"slick-slide"+a.instanceUid+b})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),a.activateADA()},c.prototype.initArrowEvents=function(){var b=this;b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},b.changeSlide),b.$nextArrow.off("click.slick").on("click.slick",{message:"next"},b.changeSlide))},c.prototype.initDotEvents=function(){var a=this;a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&d("li",a.$dots).on("click.slick",{message:"index"},a.changeSlide),a.options.dots===!0&&a.options.pauseOnDotsHover===!0&&d("li",a.$dots).on("mouseenter.slick",d.proxy(a.interrupt,a,!0)).on("mouseleave.slick",d.proxy(a.interrupt,a,!1))},c.prototype.initSlideEvents=function(){var a=this;a.options.pauseOnHover&&(a.$list.on("mouseenter.slick",d.proxy(a.interrupt,a,!0)),a.$list.on("mouseleave.slick",d.proxy(a.interrupt,a,!1)))},c.prototype.initializeEvents=function(){var a=this;a.initArrowEvents(),a.initDotEvents(),a.initSlideEvents(),a.$list.on("touchstart.slick mousedown.slick",{action:"start"},a.swipeHandler),a.$list.on("touchmove.slick mousemove.slick",{action:"move"},a.swipeHandler),a.$list.on("touchend.slick mouseup.slick",{action:"end"},a.swipeHandler),a.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},a.swipeHandler),a.$list.on("click.slick",a.clickHandler),d(document).on(a.visibilityChange,d.proxy(a.visibility,a)),a.options.accessibility===!0&&a.$list.on("keydown.slick",a.keyHandler),a.options.focusOnSelect===!0&&d(a.$slideTrack).children().on("click.slick",a.selectHandler),d(window).on("orientationchange.slick.slick-"+a.instanceUid,d.proxy(a.orientationChange,a)),d(window).on("resize.slick.slick-"+a.instanceUid,d.proxy(a.resize,a)),d("[draggable!=true]",a.$slideTrack).on("dragstart",a.preventDefault),d(window).on("load.slick.slick-"+a.instanceUid,a.setPosition),d(document).on("ready.slick.slick-"+a.instanceUid,a.setPosition)},c.prototype.initUI=function(){var b=this;b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow.show(),b.$nextArrow.show()),b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&b.$dots.show()},c.prototype.keyHandler=function(f){var e=this;f.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===f.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:e.options.rtl===!0?"next":"previous"}}):39===f.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:e.options.rtl===!0?"previous":"next"}}))},c.prototype.lazyLoad=function(){function h(b){d("img[data-lazy]",b).each(function(){var m=d(this),g=d(this).attr("data-lazy"),f=document.createElement("img");f.onload=function(){m.animate({opacity:0},100,function(){m.attr("src",g).animate({opacity:1},200,function(){m.removeAttr("data-lazy").removeClass("slick-loading")}),a.$slider.trigger("lazyLoaded",[a,m,g])})},f.onerror=function(){m.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,m,g])},f.src=g})}var l,k,j,i,a=this;a.options.centerMode===!0?a.options.infinite===!0?(j=a.currentSlide+(a.options.slidesToShow/2+1),i=j+a.options.slidesToShow+2):(j=Math.max(0,a.currentSlide-(a.options.slidesToShow/2+1)),i=2+(a.options.slidesToShow/2+1)+a.currentSlide):(j=a.options.infinite?a.options.slidesToShow+a.currentSlide:a.currentSlide,i=Math.ceil(j+a.options.slidesToShow),a.options.fade===!0&&(j>0&&j--,i<=a.slideCount&&i++)),l=a.$slider.find(".slick-slide").slice(j,i),h(l),a.slideCount<=a.options.slidesToShow?(k=a.$slider.find(".slick-slide"),h(k)):a.currentSlide>=a.slideCount-a.options.slidesToShow?(k=a.$slider.find(".slick-cloned").slice(0,a.options.slidesToShow),h(k)):0===a.currentSlide&&(k=a.$slider.find(".slick-cloned").slice(-1*a.options.slidesToShow),h(k))},c.prototype.loadSlider=function(){var b=this;b.setPosition(),b.$slideTrack.css({opacity:1}),b.$slider.removeClass("slick-loading"),b.initUI(),"progressive"===b.options.lazyLoad&&b.progressiveLazyLoad()},c.prototype.next=c.prototype.slickNext=function(){var b=this;b.changeSlide({data:{message:"next"}})},c.prototype.orientationChange=function(){var b=this;b.checkResponsive(),b.setPosition()},c.prototype.pause=c.prototype.slickPause=function(){var b=this;b.autoPlayClear(),b.paused=!0},c.prototype.play=c.prototype.slickPlay=function(){var b=this;b.autoPlay(),b.options.autoplay=!0,b.paused=!1,b.focussed=!1,b.interrupted=!1},c.prototype.postSlide=function(f){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,f]),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),e.options.accessibility===!0&&e.initADA())},c.prototype.prev=c.prototype.slickPrev=function(){var b=this;b.changeSlide({data:{message:"previous"}})},c.prototype.preventDefault=function(b){b.preventDefault()},c.prototype.progressiveLazyLoad=function(a){a=a||1;var j,i,h,l=this,k=d("img[data-lazy]",l.$slider);k.length?(j=k.first(),i=j.attr("data-lazy"),h=document.createElement("img"),h.onload=function(){j.attr("src",i).removeAttr("data-lazy").removeClass("slick-loading"),l.options.adaptiveHeight===!0&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,j,i]),l.progressiveLazyLoad()},h.onerror=function(){3>a?setTimeout(function(){l.progressiveLazyLoad(a+1)},500):(j.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,j,i]),l.progressiveLazyLoad())},h.src=i):l.$slider.trigger("allImagesLoaded",[l])},c.prototype.refresh=function(a){var g,f,h=this;f=h.slideCount-h.options.slidesToShow,!h.options.infinite&&h.currentSlide>f&&(h.currentSlide=f),h.slideCount<=h.options.slidesToShow&&(h.currentSlide=0),g=h.currentSlide,h.destroy(!0),d.extend(h,h.initials,{currentSlide:g}),h.init(),a||h.changeSlide({data:{message:"index",index:g}},!1)},c.prototype.registerBreakpoints=function(){var j,i,h,a=this,g=a.options.responsive||null;if("array"===d.type(g)&&g.length){a.respondTo=a.options.respondTo||"window";for(j in g){if(h=a.breakpoints.length-1,i=g[j].breakpoint,g.hasOwnProperty(j)){for(;h>=0;){a.breakpoints[h]&&a.breakpoints[h]===i&&a.breakpoints.splice(h,1),h--}a.breakpoints.push(i),a.breakpointSettings[i]=g[j].settings}}a.breakpoints.sort(function(b,e){return a.options.mobileFirst?b-e:e-b})}},c.prototype.reinit=function(){var a=this;a.$slides=a.$slideTrack.children(a.options.slide).addClass("slick-slide"),a.slideCount=a.$slides.length,a.currentSlide>=a.slideCount&&0!==a.currentSlide&&(a.currentSlide=a.currentSlide-a.options.slidesToScroll),a.slideCount<=a.options.slidesToShow&&(a.currentSlide=0),a.registerBreakpoints(),a.setProps(),a.setupInfinite(),a.buildArrows(),a.updateArrows(),a.initArrowEvents(),a.buildDots(),a.updateDots(),a.initDotEvents(),a.cleanUpSlideEvents(),a.initSlideEvents(),a.checkResponsive(!1,!0),a.options.focusOnSelect===!0&&d(a.$slideTrack).children().on("click.slick",a.selectHandler),a.setSlideClasses("number"==typeof a.currentSlide?a.currentSlide:0),a.setPosition(),a.focusHandler(),a.paused=!a.options.autoplay,a.autoPlay(),a.$slider.trigger("reInit",[a])},c.prototype.resize=function(){var a=this;d(window).width()!==a.windowWidth&&(clearTimeout(a.windowDelay),a.windowDelay=window.setTimeout(function(){a.windowWidth=d(window).width(),a.checkResponsive(),a.unslicked||a.setPosition()},50))},c.prototype.removeSlide=c.prototype.slickRemove=function(f,e,h){var g=this;return"boolean"==typeof f?(e=f,f=e===!0?0:g.slideCount-1):f=e===!0?--f:f,g.slideCount<1||0>f||f>g.slideCount-1?!1:(g.unload(),h===!0?g.$slideTrack.children().remove():g.$slideTrack.children(this.options.slide).eq(f).remove(),g.$slides=g.$slideTrack.children(this.options.slide),g.$slideTrack.children(this.options.slide).detach(),g.$slideTrack.append(g.$slides),g.$slidesCache=g.$slides,void g.reinit())},c.prototype.setCSS=function(g){var i,h,f=this,j={};f.options.rtl===!0&&(g=-g),i="left"==f.positionProp?Math.ceil(g)+"px":"0px",h="top"==f.positionProp?Math.ceil(g)+"px":"0px",j[f.positionProp]=g,f.transformsEnabled===!1?f.$slideTrack.css(j):(j={},f.cssTransitions===!1?(j[f.animType]="translate("+i+", "+h+")",f.$slideTrack.css(j)):(j[f.animType]="translate3d("+i+", "+h+", 0px)",f.$slideTrack.css(j)))},c.prototype.setDimensions=function(){var f=this;f.options.vertical===!1?f.options.centerMode===!0&&f.$list.css({padding:"0px "+f.options.centerPadding}):(f.$list.height(f.$slides.first().outerHeight(!0)*f.options.slidesToShow),f.options.centerMode===!0&&f.$list.css({padding:f.options.centerPadding+" 0px"})),f.listWidth=f.$list.width(),f.listHeight=f.$list.height(),f.options.vertical===!1&&f.options.variableWidth===!1?(f.slideWidth=Math.ceil(f.listWidth/f.options.slidesToShow),f.$slideTrack.width(Math.ceil(f.slideWidth*f.$slideTrack.children(".slick-slide").length))):f.options.variableWidth===!0?f.$slideTrack.width(5000*f.slideCount):(f.slideWidth=Math.ceil(f.listWidth),f.$slideTrack.height(Math.ceil(f.$slides.first().outerHeight(!0)*f.$slideTrack.children(".slick-slide").length)));var e=f.$slides.first().outerWidth(!0)-f.$slides.first().width();f.options.variableWidth===!1&&f.$slideTrack.children(".slick-slide").width(f.slideWidth-e)},c.prototype.setFade=function(){var e,a=this;a.$slides.each(function(f,b){e=a.slideWidth*f*-1,a.options.rtl===!0?d(b).css({position:"relative",right:e,top:0,zIndex:a.options.zIndex-2,opacity:0}):d(b).css({position:"relative",left:e,top:0,zIndex:a.options.zIndex-2,opacity:0})}),a.$slides.eq(a.currentSlide).css({zIndex:a.options.zIndex-1,opacity:1})},c.prototype.setHeight=function(){var f=this;if(1===f.options.slidesToShow&&f.options.adaptiveHeight===!0&&f.options.vertical===!1){var e=f.$slides.eq(f.currentSlide).outerHeight(!0);f.$list.css("height",e)}},c.prototype.setOption=c.prototype.slickSetOption=function(){var n,m,l,k,i,a=this,j=!1;if("object"===d.type(arguments[0])?(l=arguments[0],j=arguments[1],i="multiple"):"string"===d.type(arguments[0])&&(l=arguments[0],k=arguments[1],j=arguments[2],"responsive"===arguments[0]&&"array"===d.type(arguments[1])?i="responsive":"undefined"!=typeof arguments[1]&&(i="single")),"single"===i){a.options[l]=k}else{if("multiple"===i){d.each(l,function(b,e){a.options[b]=e})}else{if("responsive"===i){for(m in k){if("array"!==d.type(a.options.responsive)){a.options.responsive=[k[m]]}else{for(n=a.options.responsive.length-1;n>=0;){a.options.responsive[n].breakpoint===k[m].breakpoint&&a.options.responsive.splice(n,1),n--}a.options.responsive.push(k[m])}}}}}j&&(a.unload(),a.reinit())},c.prototype.setPosition=function(){var b=this;b.setDimensions(),b.setHeight(),b.options.fade===!1?b.setCSS(b.getLeft(b.currentSlide)):b.setFade(),b.$slider.trigger("setPosition",[b])},c.prototype.setProps=function(){var f=this,e=document.body.style;f.positionProp=f.options.vertical===!0?"top":"left","top"===f.positionProp?f.$slider.addClass("slick-vertical"):f.$slider.removeClass("slick-vertical"),(void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.msTransition)&&f.options.useCSS===!0&&(f.cssTransitions=!0),f.options.fade&&("number"==typeof f.options.zIndex?f.options.zIndex<3&&(f.options.zIndex=3):f.options.zIndex=f.defaults.zIndex),void 0!==e.OTransform&&(f.animType="OTransform",f.transformType="-o-transform",f.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(f.animType=!1)),void 0!==e.MozTransform&&(f.animType="MozTransform",f.transformType="-moz-transform",f.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(f.animType=!1)),void 0!==e.webkitTransform&&(f.animType="webkitTransform",f.transformType="-webkit-transform",f.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(f.animType=!1)),void 0!==e.msTransform&&(f.animType="msTransform",f.transformType="-ms-transform",f.transitionType="msTransition",void 0===e.msTransform&&(f.animType=!1)),void 0!==e.transform&&f.animType!==!1&&(f.animType="transform",f.transformType="transform",f.transitionType="transition"),f.transformsEnabled=f.options.useTransform&&null!==f.animType&&f.animType!==!1},c.prototype.setSlideClasses=function(h){var l,k,j,i,g=this;k=g.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),g.$slides.eq(h).addClass("slick-current"),g.options.centerMode===!0?(l=Math.floor(g.options.slidesToShow/2),g.options.infinite===!0&&(h>=l&&h<=g.slideCount-1-l?g.$slides.slice(h-l,h+l+1).addClass("slick-active").attr("aria-hidden","false"):(j=g.options.slidesToShow+h,k.slice(j-l+1,j+l+2).addClass("slick-active").attr("aria-hidden","false")),0===h?k.eq(k.length-1-g.options.slidesToShow).addClass("slick-center"):h===g.slideCount-1&&k.eq(g.options.slidesToShow).addClass("slick-center")),g.$slides.eq(h).addClass("slick-center")):h>=0&&h<=g.slideCount-g.options.slidesToShow?g.$slides.slice(h,h+g.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):k.length<=g.options.slidesToShow?k.addClass("slick-active").attr("aria-hidden","false"):(i=g.slideCount%g.options.slidesToShow,j=g.options.infinite===!0?g.options.slidesToShow+h:h,g.options.slidesToShow==g.options.slidesToScroll&&g.slideCount-ha.options.slidesToShow)){for(f=a.options.centerMode===!0?a.options.slidesToShow+1:a.options.slidesToShow,h=a.slideCount;h>a.slideCount-f;h-=1){g=h-1,d(a.$slides[g]).clone(!0).attr("id","").attr("data-slick-index",g-a.slideCount).prependTo(a.$slideTrack).addClass("slick-cloned")}for(h=0;f>h;h+=1){g=h,d(a.$slides[g]).clone(!0).attr("id","").attr("data-slick-index",g+a.slideCount).appendTo(a.$slideTrack).addClass("slick-cloned")}a.$slideTrack.find(".slick-cloned").find("[id]").each(function(){d(this).attr("id","")})}},c.prototype.interrupt=function(f){var e=this;f||e.autoPlay(),e.interrupted=f},c.prototype.selectHandler=function(a){var h=this,g=d(a.target).is(".slick-slide")?d(a.target):d(a.target).parents(".slick-slide"),f=parseInt(g.attr("data-slick-index"));return f||(f=0),h.slideCount<=h.options.slidesToShow?(h.setSlideClasses(f),void h.asNavFor(f)):void h.slideHandler(f)},c.prototype.slideHandler=function(t,s,r){var q,p,o,n,k,m=null,l=this;return s=s||!1,l.animating===!0&&l.options.waitForAnimate===!0||l.options.fade===!0&&l.currentSlide===t||l.slideCount<=l.options.slidesToShow?void 0:(s===!1&&l.asNavFor(t),q=t,m=l.getLeft(q),n=l.getLeft(l.currentSlide),l.currentLeft=null===l.swipeLeft?n:l.swipeLeft,l.options.infinite===!1&&l.options.centerMode===!1&&(0>t||t>l.getDotCount()*l.options.slidesToScroll)?void (l.options.fade===!1&&(q=l.currentSlide,r!==!0?l.animateSlide(n,function(){l.postSlide(q)}):l.postSlide(q))):l.options.infinite===!1&&l.options.centerMode===!0&&(0>t||t>l.slideCount-l.options.slidesToScroll)?void (l.options.fade===!1&&(q=l.currentSlide,r!==!0?l.animateSlide(n,function(){l.postSlide(q)}):l.postSlide(q))):(l.options.autoplay&&clearInterval(l.autoPlayTimer),p=0>q?l.slideCount%l.options.slidesToScroll!==0?l.slideCount-l.slideCount%l.options.slidesToScroll:l.slideCount+q:q>=l.slideCount?l.slideCount%l.options.slidesToScroll!==0?0:q-l.slideCount:q,l.animating=!0,l.$slider.trigger("beforeChange",[l,l.currentSlide,p]),o=l.currentSlide,l.currentSlide=p,l.setSlideClasses(l.currentSlide),l.options.asNavFor&&(k=l.getNavTarget(),k=k.slick("getSlick"),k.slideCount<=k.options.slidesToShow&&k.setSlideClasses(l.currentSlide)),l.updateDots(),l.updateArrows(),l.options.fade===!0?(r!==!0?(l.fadeSlideOut(o),l.fadeSlide(p,function(){l.postSlide(p)})):l.postSlide(p),void l.animateHeight()):void (r!==!0?l.animateSlide(m,function(){l.postSlide(p)}):l.postSlide(p))))},c.prototype.startLoad=function(){var b=this;b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow.hide(),b.$nextArrow.hide()),b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&b.$dots.hide(),b.$slider.addClass("slick-loading")},c.prototype.swipeDirection=function(){var g,f,j,i,h=this;return g=h.touchObject.startX-h.touchObject.curX,f=h.touchObject.startY-h.touchObject.curY,j=Math.atan2(f,g),i=Math.round(180*j/Math.PI),0>i&&(i=360-Math.abs(i)),45>=i&&i>=0?h.options.rtl===!1?"left":"right":360>=i&&i>=315?h.options.rtl===!1?"left":"right":i>=135&&225>=i?h.options.rtl===!1?"right":"left":h.options.verticalSwiping===!0?i>=35&&135>=i?"down":"up":"vertical"},c.prototype.swipeEnd=function(f){var h,g,e=this;if(e.dragging=!1,e.interrupted=!1,e.shouldClick=e.touchObject.swipeLength>10?!1:!0,void 0===e.touchObject.curX){return !1}if(e.touchObject.edgeHit===!0&&e.$slider.trigger("edge",[e,e.swipeDirection()]),e.touchObject.swipeLength>=e.touchObject.minSwipe){switch(g=e.swipeDirection()){case"left":case"down":h=e.options.swipeToSlide?e.checkNavigable(e.currentSlide+e.getSlideCount()):e.currentSlide+e.getSlideCount(),e.currentDirection=0;break;case"right":case"up":h=e.options.swipeToSlide?e.checkNavigable(e.currentSlide-e.getSlideCount()):e.currentSlide-e.getSlideCount(),e.currentDirection=1}"vertical"!=g&&(e.slideHandler(h),e.touchObject={},e.$slider.trigger("swipe",[e,g]))}else{e.touchObject.startX!==e.touchObject.curX&&(e.slideHandler(e.currentSlide),e.touchObject={})}},c.prototype.swipeHandler=function(f){var e=this;if(!(e.options.swipe===!1||"ontouchend" in document&&e.options.swipe===!1||e.options.draggable===!1&&-1!==f.type.indexOf("mouse"))){switch(e.touchObject.fingerCount=f.originalEvent&&void 0!==f.originalEvent.touches?f.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),f.data.action){case"start":e.swipeStart(f);break;case"move":e.swipeMove(f);break;case"end":e.swipeEnd(f)}}},c.prototype.swipeMove=function(j){var o,n,m,l,k,i=this;return k=void 0!==j.originalEvent?j.originalEvent.touches:null,!i.dragging||k&&1!==k.length?!1:(o=i.getLeft(i.currentSlide),i.touchObject.curX=void 0!==k?k[0].pageX:j.clientX,i.touchObject.curY=void 0!==k?k[0].pageY:j.clientY,i.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(i.touchObject.curX-i.touchObject.startX,2))),i.options.verticalSwiping===!0&&(i.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(i.touchObject.curY-i.touchObject.startY,2)))),n=i.swipeDirection(),"vertical"!==n?(void 0!==j.originalEvent&&i.touchObject.swipeLength>4&&j.preventDefault(),l=(i.options.rtl===!1?1:-1)*(i.touchObject.curX>i.touchObject.startX?1:-1),i.options.verticalSwiping===!0&&(l=i.touchObject.curY>i.touchObject.startY?1:-1),m=i.touchObject.swipeLength,i.touchObject.edgeHit=!1,i.options.infinite===!1&&(0===i.currentSlide&&"right"===n||i.currentSlide>=i.getDotCount()&&"left"===n)&&(m=i.touchObject.swipeLength*i.options.edgeFriction,i.touchObject.edgeHit=!0),i.options.vertical===!1?i.swipeLeft=o+m*l:i.swipeLeft=o+m*(i.$list.height()/i.listWidth)*l,i.options.verticalSwiping===!0&&(i.swipeLeft=o+m*l),i.options.fade===!0||i.options.touchMove===!1?!1:i.animating===!0?(i.swipeLeft=null,!1):void i.setCSS(i.swipeLeft)):void 0)},c.prototype.swipeStart=function(f){var g,e=this;return e.interrupted=!0,1!==e.touchObject.fingerCount||e.slideCount<=e.options.slidesToShow?(e.touchObject={},!1):(void 0!==f.originalEvent&&void 0!==f.originalEvent.touches&&(g=f.originalEvent.touches[0]),e.touchObject.startX=e.touchObject.curX=void 0!==g?g.pageX:f.clientX,e.touchObject.startY=e.touchObject.curY=void 0!==g?g.pageY:f.clientY,void (e.dragging=!0))},c.prototype.unfilterSlides=c.prototype.slickUnfilter=function(){var b=this;null!==b.$slidesCache&&(b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.appendTo(b.$slideTrack),b.reinit())},c.prototype.unload=function(){var a=this;d(".slick-cloned",a.$slider).remove(),a.$dots&&a.$dots.remove(),a.$prevArrow&&a.htmlExpr.test(a.options.prevArrow)&&a.$prevArrow.remove(),a.$nextArrow&&a.htmlExpr.test(a.options.nextArrow)&&a.$nextArrow.remove(),a.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},c.prototype.unslick=function(f){var e=this;e.$slider.trigger("unslick",[e,f]),e.destroy()},c.prototype.updateArrows=function(){var e,f=this;e=Math.floor(f.options.slidesToShow/2),f.options.arrows===!0&&f.slideCount>f.options.slidesToShow&&!f.options.infinite&&(f.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),f.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===f.currentSlide?(f.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),f.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):f.currentSlide>=f.slideCount-f.options.slidesToShow&&f.options.centerMode===!1?(f.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),f.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):f.currentSlide>=f.slideCount-1&&f.options.centerMode===!0&&(f.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),f.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},c.prototype.updateDots=function(){var b=this;null!==b.$dots&&(b.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),b.$dots.find("li").eq(Math.floor(b.currentSlide/b.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},c.prototype.visibility=function(){var b=this;b.options.autoplay&&(document[b.hidden]?b.interrupted=!0:b.interrupted=!1)},d.fn.slick=function(){var i,h,b=this,l=arguments[0],k=Array.prototype.slice.call(arguments,1),j=b.length;for(i=0;j>i;i++){if("object"==typeof l||"undefined"==typeof l?b[i].slick=new c(b[i],l):h=b[i].slick[l].apply(b[i].slick,k),"undefined"!=typeof h){return h}}return b}});$('a[href^="#"]').click(function(a){a.preventDefault();$("html, body").animate({scrollTop:$(this.hash).offset().top-250},"slow")});function AUTOFORM_NODE(d){var a=$(d).serialize();var c=$(d).data("af-success");var b=$(d).data("af-fail");var e=$(d).data("af-loading");var f=false;if($(d).hasClass("has-validation-callback")){if($(d).isValid()){f=true}}else{f=true}if(f){if(e!==""){$(document.body).addClass(e)}$.ajax({url:$(d).attr("action"),type:"POST",data:a,success:function(h){$(".error-message").remove();var g=window[c];if(typeof g==="function"){g(d,h)}else{console.log(h)}setTimeout(function(){if(e!==""){$(document.body).removeClass(e)}},1500)},error:function(h){try{$(".error-message").remove();var j=JSON.parse(h.responseText);for(errobj in j.errors){$(d).find('[name="'+errobj+'"]').removeClass("valid");$(d).find('[name="'+errobj+'"]').parent().removeClass("has-success").addClass("has-error");if($(d).find(".error-message-"+errobj).length==0){$(d).find('[name="'+errobj+'"]').after(''+j.errors[errobj].msg+"
")}else{$(d).find(".error-message-"+errobj).html(''+j.errors[errobj].msg+"
")}}var g=window[b];if(typeof g==="function"){g(d,h.responseText)}else{console.log(j)}}catch(i){console.log(i)}}})}}function AUTOFORM_NODE_PASS(a){$("#masterform").html("");$('form.masterform input[type="radio"]').each(function(){$(this).clone().appendTo("#masterform")});$('form.masterform input[type="checkbox"]').each(function(){$(this).clone().appendTo("#masterform")});$('form.masterform input[type="text"]').each(function(){$("").attr({type:"text",name:$(this).attr("name"),value:$(this).val()}).appendTo("#masterform")});$('form.masterform input[type="hidden"]').each(function(){$("").attr({type:"text",name:$(this).attr("name"),value:$(this).val()}).appendTo("#masterform")});$("form.masterform select").each(function(){$("").attr({type:"text",name:$(this).attr("name"),value:$(this).val()}).appendTo("#masterform")});$("form.masterform textarea").each(function(){$("").attr({type:"text",name:$(this).attr("name"),value:$(this).val()}).appendTo("#masterform")});document.getElementById("masterform").submit()}$(document).ready(function(){$("form[data-af-success] button.af-submit").click(function(b){var a=$(b.currentTarget).closest("form")[0]||null;AUTOFORM_NODE(a)})});$(document).ready(function(){$(".js-start").on("click",function(a){window.open("http://planner.galatent.co.uk/login","3D Designer","menubar=no,location=no,resizable=yes,scrollbars=yes,status=yes")})});$(document).ready(function(){$(".brochurelink").click(function(a){$('input[name="brochure"]').prop("checked",true)});$(".enquirelink").click(function(a){$('input[name="brochure"]').prop("checked",false)})});if(screen.width>991){var mainTopMarginOriginal=parseInt($("body").css("margin-top"));fixedheader();$(window).on("scroll",function(a){fixedheader()});function fixedheader(){var a=0;var c=parseInt($(".home_header").outerHeight(true));var b=parseInt($("header").outerHeight(true));if($(window).scrollTop()>a){$("header").addClass("is-fixed");$("body").addClass("is-nav");$("body").css("margin-top",b+mainTopMarginOriginal+"px")}else{$("header").removeClass("is-fixed");$("body").removeClass("is-nav");$("body").css("margin-top",mainTopMarginOriginal+"px")}if($(window).scrollTop()>c){$("header").addClass("is-qa")}else{$("header").removeClass("is-qa")}}}$(document).ready(function(){$.validate({addValidClassOnAll:true,modules:"security",onSuccess:function(a){return true}})});$(function(){$(".lazy").Lazy()});$(document).ready(function(){try{$(".popup-gallery, .div-gallery").magnificPopup({delegate:"a",type:"image",tLoading:"Loading image #%curr%...",mainClass:"mfp-img-mobile",gallery:{enabled:true,navigateByImgClick:true,preload:[0,1]},image:{tError:'The image #%curr% could not be loaded.',titleSrc:function(b){return""+(b.el.attr("title")||"")+""+(b.el.data("description")||"")+"
"}}})}catch(a){}});var slick_slider_previous_button='';var slick_slider_next_button='';if(screen.width<=768){$(document).ready(function(){$(".popup-gallery a").removeClass("wow").removeClass("fadeIn");$(".popup-gallery").slick({dots:true,autoplay:true,autoplaySpeed:7500,infinite:true,lazyLoad:"ondemand",prevArrow:slick_slider_previous_button,nextArrow:slick_slider_next_button,}).on("afterChange",function(c,a,d,b){try{$("div.lazy").Lazy()}catch(c){}})})}new WOW().init();
/*!
* Socket.IO v2.3.0
* (c) 2014-2019 Guillermo Rauch
* Released under the MIT License.
*/
!function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b():"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?exports.io=b():a.io=b()}(this,function(){return function(a){function b(d){if(c[d]){return c[d].exports}var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(l,h,f){function b(y,w){"object"==typeof y&&(w=y,y=void 0),w=w||{};var o,a=d(y),q=a.source,x=a.id,c=a.path,s=j[x]&&c in j[x].nsps,v=w.forceNew||w["force new connection"]||!1===w.multiplex||s;return v?(k("ignoring socket cache for %s",q),o=m(q,w)):(j[x]||(k("new io instance for %s",q),j[x]=m(q,w)),o=j[x]),a.query&&!w.query&&(w.query=a.query),o.socket(a.path,w)}var d=f(1),g=f(7),m=f(15),k=f(3)("socket.io-client");l.exports=h=b;var j=h.managers={};h.protocol=g.protocol,h.connect=b,h.Manager=f(15),h.Socket=f(39)},function(b,d,g){function c(h,k){var l=h;k=k||"undefined"!=typeof location&&location,null==h&&(h=k.protocol+"//"+k.host),"string"==typeof h&&("/"===h.charAt(0)&&(h="/"===h.charAt(1)?k.protocol+h:k.host+h),/^(https?|wss?):\/\//.test(h)||(a("protocol-less url %s",h),h="undefined"!=typeof k?k.protocol+"//"+h:"https://"+h),a("parse %s",h),l=f(h)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";var j=l.host.indexOf(":")!==-1,i=j?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+i+":"+l.port,l.href=l.protocol+"://"+i+(k&&k.port===l.port?"":":"+l.port),l}var f=g(2),a=g(3)("socket.io-client:url");b.exports=c},function(a,c){var d=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,b=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];a.exports=function(h){var k=h,l=h.indexOf("["),g=h.indexOf("]");l!=-1&&g!=-1&&(h=h.substring(0,l)+h.substring(l,g).replace(/:/g,";")+h.substring(g,h.length));for(var j=d.exec(h||""),f={},m=14;m--;){f[b[m]]=j[m]||""}return l!=-1&&g!=-1&&(f.source=k,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f}},function(a,b,c){(function(d){function f(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function g(i){if(i[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i[0]+(this.useColors?"%c ":" ")+"+"+a.exports.humanize(this.diff),this.useColors){var q="color: "+this.color;i.splice(1,0,q,"color: inherit");var h=0,p=0;i[0].replace(/%[a-zA-Z%]/g,function(o){"%%"!==o&&(h++,"%c"===o&&(p=h))}),i.splice(p,0,q)}}function n(){var h;return"object"===("undefined"==typeof console?"undefined":e(console))&&console.log&&(h=console).log.apply(h,arguments)}function l(h){try{h?b.storage.setItem("debug",h):b.storage.removeItem("debug")}catch(i){}}function k(){var h=void 0;try{h=b.storage.getItem("debug")}catch(i){}return !h&&"undefined"!=typeof d&&"env" in d&&(h=d.env.DEBUG),h}function m(){try{return localStorage}catch(h){}}var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h};b.log=n,b.formatArgs=g,b.save=l,b.load=k,b.useColors=f,b.storage=m(),b.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],a.exports=c(5)(b);var j=a.exports.formatters;j.j=function(h){try{return JSON.stringify(h)}catch(i){return"[UnexpectedJSONParseError]: "+i.message}}}).call(b,c(4))},function(G,A){function k(){throw new Error("setTimeout has not been defined")}function b(){throw new Error("clearTimeout has not been defined")}function j(a){if(g===setTimeout){return setTimeout(a,0)}if((g===k||!g)&&setTimeout){return g=setTimeout,setTimeout(a,0)}try{return g(a,0)}catch(c){try{return g.call(null,a,0)}catch(c){return g.call(this,a,0)}}}function w(a){if(x===clearTimeout){return clearTimeout(a)}if((x===b||!x)&&clearTimeout){return x=clearTimeout,clearTimeout(a)}try{return x(a)}catch(c){try{return x.call(null,a)}catch(c){return x.call(this,a)}}}function H(){D&&v&&(D=!1,v.length?B=v.concat(B):q=-1,B.length&&E())}function E(){if(!D){var a=j(H);D=!0;for(var c=B.length;c;){for(v=B,B=[];++q1){for(var d=1;d100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(h){var i=parseFloat(h[1]),c=(h[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return i*k;case"weeks":case"week":case"w":return i*d;case"days":case"day":case"d":return i*v;case"hours":case"hour":case"hrs":case"hr":case"h":return i*m;case"minutes":case"minute":case"mins":case"min":case"m":return i*q;case"seconds":case"second":case"secs":case"sec":case"s":return i*x;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function b(a){var c=Math.abs(a);return c>=v?Math.round(a/v)+"d":c>=m?Math.round(a/m)+"h":c>=q?Math.round(a/q)+"m":c>=x?Math.round(a/x)+"s":a+"ms"}function f(a){var c=Math.abs(a);return c>=v?j(a,c,v,"day"):c>=m?j(a,c,m,"hour"):c>=q?j(a,c,q,"minute"):c>=x?j(a,c,x,"second"):a+" ms"}function j(a,h,p,c){var i=h>=1.5*p;return Math.round(a/p)+" "+c+(i?"s":"")}var x=1000,q=60*x,m=60*q,v=24*m,d=7*v,k=365.25*v;w.exports=function(c,h){h=h||{};var a=typeof c;if("string"===a&&c.length>0){return g(c)}if("number"===a&&isFinite(c)){return h["long"]?f(c):b(c)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))}},function(k,G,z){function v(){}function x(a){var d=""+a.type;if(G.BINARY_EVENT!==a.type&&G.BINARY_ACK!==a.type||(d+=a.attachments+"-"),a.nsp&&"/"!==a.nsp&&(d+=a.nsp+","),null!=a.id&&(d+=a.id),null!=a.data){var c=C(a.data);if(c===!1){return E}d+=c}return F("encoded %j as %s",a,d),d}function C(a){try{return JSON.stringify(a)}catch(c){return !1}}function q(a,c){function d(f){var h=H.deconstructPacket(f),g=x(h.packet),e=h.buffers;e.unshift(g),c(e)}H.removeBlobs(a,d)}function J(){this.reconstructor=null}function I(f){var p=0,h={type:Number(f.charAt(0))};if(null==G.types[h.type]){return D("unknown packet type "+h.type)}if(G.BINARY_EVENT===h.type||G.BINARY_ACK===h.type){for(var l="";"-"!==f.charAt(++p)&&(l+=f.charAt(p),p!=f.length);){}if(l!=Number(l)||"-"!==f.charAt(p)){throw new Error("Illegal attachments")}h.attachments=Number(l)}if("/"===f.charAt(p+1)){for(h.nsp="";++p;){var e=f.charAt(p);if(","===e){break}if(h.nsp+=e,p===f.length){break}}}else{h.nsp="/"}var g=f.charAt(p+1);if(""!==g&&Number(g)==g){for(h.id="";++p;){var e=f.charAt(p);if(null==e||Number(e)!=e){--p;break}if(h.id+=f.charAt(p),p===f.length){break}}h.id=Number(h.id)}if(f.charAt(++p)){var d=j(f.substr(p)),m=d!==!1&&(h.type===G.ERROR||b(d));if(!m){return D("invalid payload")}h.data=d}return F("decoded %s as %j",f,h),h}function j(a){try{return JSON.parse(a)}catch(c){return !1}}function w(a){this.reconPack=a,this.buffers=[]}function D(a){return{type:G.ERROR,data:"parser error: "+a}}var F=z(8)("socket.io-parser"),B=z(11),H=z(12),b=z(13),A=z(14);G.protocol=4,G.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],G.CONNECT=0,G.DISCONNECT=1,G.EVENT=2,G.ACK=3,G.ERROR=4,G.BINARY_EVENT=5,G.BINARY_ACK=6,G.Encoder=v,G.Decoder=J;var E=G.ERROR+'"encode error"';v.prototype.encode=function(a,d){if(F("encoding packet %j",a),G.BINARY_EVENT===a.type||G.BINARY_ACK===a.type){q(a,d)}else{var c=x(a);d([c])}},B(J.prototype),J.prototype.add=function(a){var c;if("string"==typeof a){c=I(a),G.BINARY_EVENT===c.type||G.BINARY_ACK===c.type?(this.reconstructor=new w(c),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",c)):this.emit("decoded",c)}else{if(!A(a)&&!a.base64){throw new Error("Unknown type: "+a)}if(!this.reconstructor){throw new Error("got binary data when not reconstructing a packet")}c=this.reconstructor.takeBinaryData(a),c&&(this.reconstructor=null,this.emit("decoded",c))}},J.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},w.prototype.takeBinaryData=function(a){if(this.buffers.push(a),this.buffers.length===this.reconPack.attachments){var c=H.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),c}return null},w.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(a,b,c){(function(h){function k(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function f(p){var u=this.useColors;if(p[0]=(u?"%c":"")+this.namespace+(u?" %c":" ")+p[0]+(u?"%c ":" ")+"+"+b.humanize(this.diff),u){var q="color: "+this.color;p.splice(1,0,q,"color: inherit");var s=0,m=0;p[0].replace(/%[a-zA-Z%]/g,function(i){"%%"!==i&&(s++,"%c"===i&&(m=s))}),p.splice(m,0,q)}}function g(){return"object"===("undefined"==typeof console?"undefined":j(console))&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function d(i){try{null==i?b.storage.removeItem("debug"):b.storage.debug=i}catch(m){}}function l(){var i;try{i=b.storage.debug}catch(m){}return !i&&"undefined"!=typeof h&&"env" in h&&(i=h.env.DEBUG),i}function e(){try{return window.localStorage}catch(i){}}var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i};b=a.exports=c(9),b.log=g,b.formatArgs=f,b.save=d,b.load=l,b.useColors=k,b.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:e(),b.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],b.formatters.j=function(i){try{return JSON.stringify(i)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}},b.enable(l())}).call(b,c(4))},function(m,h,f){function b(a){var e,c=0;for(e in a){c=(c<<5)-c+a.charCodeAt(e),c|=0}return h.colors[Math.abs(c)%h.colors.length]}function d(a){function e(){if(e.enabled){var v=e,x=+new Date,q=x-(c||x);v.diff=q,v.prev=c,v.curr=x,c=x;for(var w=new Array(arguments.length),n=0;n100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(a);if(i){var o=parseFloat(i[1]),c=(i[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return o*d;case"days":case"day":case"d":return o*m;case"hours":case"hour":case"hrs":case"hr":case"h":return o*k;case"minutes":case"minute":case"mins":case"min":case"m":return o*l;case"seconds":case"second":case"secs":case"sec":case"s":return o*v;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}function b(a){return a>=m?Math.round(a/m)+"d":a>=k?Math.round(a/k)+"h":a>=l?Math.round(a/l)+"m":a>=v?Math.round(a/v)+"s":a+"ms"}function f(a){return h(a,m,"day")||h(a,k,"hour")||h(a,l,"minute")||h(a,v,"second")||a+" ms"}function h(a,c,i){if(!(a0){return g(c)}if("number"===a&&isNaN(c)===!1){return n["long"]?f(c):b(c)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))}},function(a,c,f){function b(e){if(e){return d(e)}}function d(g){for(var h in b.prototype){g[h]=b.prototype[h]}return g}a.exports=b,b.prototype.on=b.prototype.addEventListener=function(g,h){return this._callbacks=this._callbacks||{},(this._callbacks["$"+g]=this._callbacks["$"+g]||[]).push(h),this},b.prototype.once=function(g,h){function i(){this.off(g,i),h.apply(this,arguments)}return i.fn=h,this.on(g,i),this},b.prototype.off=b.prototype.removeListener=b.prototype.removeAllListeners=b.prototype.removeEventListener=function(g,i){if(this._callbacks=this._callbacks||{},0==arguments.length){return this._callbacks={},this}var k=this._callbacks["$"+g];if(!k){return this}if(1==arguments.length){return delete this._callbacks["$"+g],this}for(var h,j=0;j0&&!this.encoding){var a=this.packetBuffer.shift();this.packet(a)}},b.prototype.cleanup=function(){d("cleanup");for(var a=this.subs.length,c=0;c=this._reconnectionAttempts){d("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1}else{var c=this.backoff.duration();d("will wait %dms before reconnect attempt",c),this.reconnecting=!0;var f=setTimeout(function(){a.skipReconnect||(d("attempting reconnect"),a.emitAll("reconnect_attempt",a.backoff.attempts),a.emitAll("reconnecting",a.backoff.attempts),a.skipReconnect||a.open(function(h){h?(d("reconnect attempt error"),a.reconnecting=!1,a.reconnect(),a.emitAll("reconnect_error",h.data)):(d("reconnect success"),a.onreconnect())}))},c);this.subs.push({destroy:function(){clearTimeout(f)}})}},b.prototype.onreconnect=function(){var a=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",a)}},function(a,b,c){a.exports=c(17),a.exports.parser=c(24)},function(w,l,g){function b(a,c){return this instanceof b?(c=c||{},a&&"object"==typeof a&&(c=a,a=null),a?(a=d(a),c.hostname=a.host,c.secure="https"===a.protocol||"wss"===a.protocol,c.port=a.port,a.query&&(c.query=a.query)):c.host&&(c.hostname=d(c.host).host),this.secure=null!=c.secure?c.secure:"undefined"!=typeof location&&"https:"===location.protocol,c.hostname&&!c.port&&(c.port=this.secure?"443":"80"),this.agent=c.agent||!1,this.hostname=c.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=c.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=c.query||{},"string"==typeof this.query&&(this.query=k.decode(this.query)),this.upgrade=!1!==c.upgrade,this.path=(c.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!c.forceJSONP,this.jsonp=!1!==c.jsonp,this.forceBase64=!!c.forceBase64,this.enablesXDR=!!c.enablesXDR,this.withCredentials=!1!==c.withCredentials,this.timestampParam=c.timestampParam||"t",this.timestampRequests=c.timestampRequests,this.transports=c.transports||["polling","websocket"],this.transportOptions=c.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=c.policyPort||843,this.rememberUpgrade=c.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=c.onlyBinaryUpgrades,this.perMessageDeflate=!1!==c.perMessageDeflate&&(c.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=c.pfx||null,this.key=c.key||null,this.passphrase=c.passphrase||null,this.cert=c.cert||null,this.ca=c.ca||null,this.ciphers=c.ciphers||null,this.rejectUnauthorized=void 0===c.rejectUnauthorized||c.rejectUnauthorized,this.forceNode=!!c.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(c.extraHeaders&&Object.keys(c.extraHeaders).length>0&&(this.extraHeaders=c.extraHeaders),c.localAddress&&(this.localAddress=c.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,void this.open()):new b(a,c)}function f(a){var c={};for(var h in a){a.hasOwnProperty(h)&&(c[h]=a[h])}return c}var j=g(18),x=g(11),q=g(3)("engine.io-client:socket"),m=g(38),v=g(24),d=g(2),k=g(32);w.exports=b,b.priorWebsocketSuccess=!1,x(b.prototype),b.protocol=v.protocol,b.Socket=b,b.Transport=g(23),b.transports=g(18),b.parser=g(24),b.prototype.createTransport=function(a){q('creating transport "%s"',a);var h=f(this.query);h.EIO=v.protocol,h.transport=a;var i=this.transportOptions[a]||{};this.id&&(h.sid=this.id);var c=new j[a]({query:h,socket:this,agent:i.agent||this.agent,hostname:i.hostname||this.hostname,port:i.port||this.port,secure:i.secure||this.secure,path:i.path||this.path,forceJSONP:i.forceJSONP||this.forceJSONP,jsonp:i.jsonp||this.jsonp,forceBase64:i.forceBase64||this.forceBase64,enablesXDR:i.enablesXDR||this.enablesXDR,withCredentials:i.withCredentials||this.withCredentials,timestampRequests:i.timestampRequests||this.timestampRequests,timestampParam:i.timestampParam||this.timestampParam,policyPort:i.policyPort||this.policyPort,pfx:i.pfx||this.pfx,key:i.key||this.key,passphrase:i.passphrase||this.passphrase,cert:i.cert||this.cert,ca:i.ca||this.ca,ciphers:i.ciphers||this.ciphers,rejectUnauthorized:i.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:i.perMessageDeflate||this.perMessageDeflate,extraHeaders:i.extraHeaders||this.extraHeaders,forceNode:i.forceNode||this.forceNode,localAddress:i.localAddress||this.localAddress,requestTimeout:i.requestTimeout||this.requestTimeout,protocols:i.protocols||void 0,isReactNative:this.isReactNative});return c},b.prototype.open=function(){var a;if(this.rememberUpgrade&&b.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1){a="websocket"}else{if(0===this.transports.length){var c=this;return void setTimeout(function(){c.emit("error","No transports available")},0)}a=this.transports[0]}this.readyState="opening";try{a=this.createTransport(a)}catch(h){return this.transports.shift(),void this.open()}a.open(),this.setTransport(a)},b.prototype.setTransport=function(a){q("setting transport %s",a.name);var c=this;this.transport&&(q("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=a,a.on("drain",function(){c.onDrain()}).on("packet",function(e){c.onPacket(e)}).on("error",function(e){c.onError(e)}).on("close",function(){c.onClose("transport close")})},b.prototype.probe=function(F){function C(){if(B.onlyBinaryUpgrades){var c=!this.supportsBinary&&B.transport.supportsBinary;A=A||c}A||(q('probe transport "%s" opened',F),a.send([{type:"ping",data:"probe"}]),a.once("packet",function(h){if(!A){if("pong"===h.type&&"probe"===h.data){if(q('probe transport "%s" pong',F),B.upgrading=!0,B.emit("upgrading",a),!a){return}b.priorWebsocketSuccess="websocket"===a.name,q('pausing current transport "%s"',B.transport.name),B.transport.pause(function(){A||"closed"!==B.readyState&&(q("changing transport and sending upgrade packet"),E(),B.setTransport(a),a.send([{type:"upgrade"}]),B.emit("upgrade",a),a=null,B.upgrading=!1,B.flush())})}else{q('probe transport "%s" failed',F);var i=new Error("probe error");i.transport=a.name,B.emit("upgradeError",i)}}}))}function y(){A||(A=!0,E(),a.close(),a=null)}function r(h){var c=new Error("probe error: "+h);c.transport=a.name,y(),q('probe transport "%s" failed because of error: %s',F,h),B.emit("upgradeError",c)}function z(){r("transport closed")}function G(){r("socket closed")}function D(c){a&&c.name!==a.name&&(q('"%s" works - aborting "%s"',c.name,a.name),y())}function E(){a.removeListener("open",C),a.removeListener("error",r),a.removeListener("close",z),B.removeListener("close",G),B.removeListener("upgrading",D)}q('probing transport "%s"',F);var a=this.createTransport(F,{probe:1}),A=!1,B=this;b.priorWebsocketSuccess=!1,a.once("open",C),a.once("error",r),a.once("close",z),this.once("close",G),this.once("upgrading",D),a.open()},b.prototype.onOpen=function(){if(q("socket open"),this.readyState="open",b.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){q("starting upgrade probes");for(var a=0,c=this.upgrades.length;a1?{type:Q[e],data:b.substring(1)}:{type:Q[e]}:B}var a=new Uint8Array(b),e=a[0],c=M(b,1);return k&&"blob"===f&&(c=new k([c])),{type:Q[e],data:c}},N.decodeBase64Packet=function(a,c){var d=Q[a.charAt(0)];if(!x){return{type:d,data:{base64:!0,data:a.substr(1)}}}var b=x.decode(a.substr(1));return"blob"===c&&k&&(b=new k([b])),{type:d,data:b}},N.encodePayload=function(b,f,d){function e(g){return g.length+":"+g}function a(g,h){N.encodePacket(g,!!c&&f,!1,function(i){h(null,e(i))})}"function"==typeof f&&(d=f,f=null);var c=K(b);return f&&c?k&&!L?N.encodePayloadAsBlob(b,d):N.encodePayloadAsArrayBuffer(b,d):b.length?void P(b,a,function(g,h){return d(h.join(""))}):d("0:")},N.decodePayload=function(y,f,b){if("string"!=typeof y){return N.decodePayloadAsBinary(y,f,b)}"function"==typeof f&&(b=f,f=null);var e;if(""===y){return b(B,0,1)}for(var g,C,v="",m=0,w=y.length;m0;){for(var V=new Uint8Array(f),S=0===V[0],C="",T=1;255!==V[T];T++){if(C.length>310){return b(B,0,1)}C+=V[T]}f=M(f,2+C.length),C=parseInt(C);var e=M(f,0,C);if(S){try{e=String.fromCharCode.apply(null,new Uint8Array(e))}catch(w){var m=new Uint8Array(e);e="";for(var T=0;Th&&(l=h),j>=h||j>=l||0===h){return new ArrayBuffer(0)}for(var k=new Uint8Array(f),d=new Uint8Array(l-j),g=j,c=0;g=55296&&f<=56319&&h65535&&(d-=65536,f+=y(d>>>10&1023|55296),d=56320|1023&d),f+=y(d)}return f}function j(a,c){if(a>=55296&&a<=57343){if(c){throw Error("Lone surrogate U+"+a.toString(16).toUpperCase()+" is not a scalar value")}return !1}return !0}function q(a,c){return y(a>>c&63|128)}function D(a,c){if(0==(4294967168&a)){return y(a)}var d="";return 0==(4294965248&a)?d=y(a>>6&31|192):0==(4294901760&a)?(j(a,c)||(a=65533),d=y(a>>12&15|224),d+=q(a,6)):0==(4292870144&a)&&(d=y(a>>18&7|240),d+=q(a,12),d+=q(a,6)),d+=y(63&a|128)}function A(l,p){p=p||{};for(var n,s=!1!==p.strict,h=k(l),d=h.length,E=-1,f="";++E=w){throw Error("Invalid byte index")}var a=255&v[m];if(m++,128==(192&a)){return 63&a}throw Error("Invalid continuation byte")}function B(c){var h,l,f,a,d;if(m>w){throw Error("Invalid byte index")}if(m==w){return !1}if(h=255&v[m],m++,0==(128&h)){return h}if(192==(224&h)){if(l=z(),d=(31&h)<<6|l,d>=128){return d}throw Error("Invalid continuation byte")}if(224==(240&h)){if(l=z(),f=z(),d=(15&h)<<12|l<<6|f,d>=2048){return j(d,c)?d:65533}throw Error("Invalid continuation byte")}if(240==(248&h)&&(l=z(),f=z(),a=z(),d=(7&h)<<18|l<<12|f<<6|a,d>=65536&&d<=1114111)){return d}throw Error("Invalid UTF-8 detected")}function g(c,f){f=f||{};var h=!1!==f.strict;v=k(c),w=v.length,m=0;for(var a,d=[];(a=B(h))!==!1;){d.push(a)}return b(d)}
/*! https://mths.be/utf8js v2.1.2 by @mathias */
var v,w,m,y=String.fromCharCode;C.exports={version:"2.1.2",encode:A,decode:g}},function(a,b){!function(){for(var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=new Uint8Array(256),d=0;d>2],f+=c[(3&g[k])<<4|g[k+1]>>4],f+=c[(15&g[k+1])<<2|g[k+2]>>6],f+=c[63&g[k+2]]}return j%3===2?f=f.substring(0,f.length-1)+"=":j%3===1&&(f=f.substring(0,f.length-2)+"=="),f},b.decode=function(w){var m,f,j,k,x,q=0.75*w.length,n=w.length,v=0;"="===w[w.length-1]&&(q--,"="===w[w.length-2]&&q--);var g=new ArrayBuffer(q),l=new Uint8Array(g);for(m=0;m>4,l[v++]=(15&j)<<4|k>>2,l[v++]=(3&k)<<6|63&x}return g}}()},function(l,h){function f(a){return a.map(function(c){if(c.buffer instanceof ArrayBuffer){var i=c.buffer;if(c.byteLength!==i.byteLength){var o=new Uint8Array(c.byteLength);o.set(new Uint8Array(i,c.byteOffset,c.byteLength)),i=o.buffer}return i}return c})}function b(a,i){i=i||{};var c=new g;return f(a).forEach(function(e){c.append(e)}),i.type?c.getBlob(i.type):c.getBlob()}function d(a,c){return new Blob(f(a),c||{})}var g="undefined"!=typeof g?g:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,m=function(){try{var a=new Blob(["hi"]);return 2===a.size}catch(c){return !1}}(),k=m&&function(){try{var a=new Blob([new Uint8Array([1,2])]);return 2===a.size}catch(c){return !1}}(),j=g&&g.prototype.append&&g.prototype.getBlob;"undefined"!=typeof Blob&&(b.prototype=Blob.prototype,d.prototype=Blob.prototype),l.exports=function(){return m?k?Blob:d:j?b:void 0}()},function(a,b){b.encode=function(c){var d="";for(var f in c){c.hasOwnProperty(f)&&(d.length&&(d+="&"),d+=encodeURIComponent(f)+"="+encodeURIComponent(c[f]))}return d},b.decode=function(d){for(var g={},j=d.split("&"),f=0,h=j.length;f0);return c}function b(a){var c=0;for(d=0;d';v=document.createElement(o)}catch(i){v=document.createElement("iframe"),v.name=q.iframeId,v.src="javascript:0"}v.id=q.iframeId,q.form.appendChild(v),q.iframe=v}var q=this;if(!this.form){var v,B=document.createElement("form"),z=document.createElement("textarea"),y=this.iframeId="eio_iframe_"+this.index;B.className="socketio",B.style.position="absolute",B.style.top="-1000px",B.style.left="-1000px",B.target=y,B.method="POST",B.setAttribute("accept-charset","utf-8"),z.name="d",B.appendChild(z),document.body.appendChild(B),this.form=B,this.area=z}this.form.action=this.uri(),p(),A=A.replace(f,"\\\n"),this.area.value=A.replace(m,"\\n");try{this.form.submit()}catch(w){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===q.iframe.readyState&&u()}:this.iframe.onload=u}}).call(b,function(){return this}())},function(A,w,j){function b(a){var c=a&&a.forceBase64;c&&(this.supportsBinary=!1),this.perMessageDeflate=a.perMessageDeflate,this.usingBrowserWebSocket=g&&!a.forceNode,this.protocols=a.protocols,this.usingBrowserWebSocket||(k=m),B.call(this,a)}var g,m,B=j(23),y=j(24),x=j(32),z=j(33),d=j(34),q=j(3)("engine.io-client:websocket");if("undefined"!=typeof WebSocket?g=WebSocket:"undefined"!=typeof self&&(g=self.WebSocket||self.MozWebSocket),"undefined"==typeof window){try{m=j(37)}catch(v){}}var k=g||m;A.exports=b,z(b,B),b.prototype.name="websocket",b.prototype.supportsBinary=!0,b.prototype.doOpen=function(){if(this.check()){var a=this.uri(),f=this.protocols,h={agent:this.agent,perMessageDeflate:this.perMessageDeflate};h.pfx=this.pfx,h.key=this.key,h.passphrase=this.passphrase,h.cert=this.cert,h.ca=this.ca,h.ciphers=this.ciphers,h.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(h.headers=this.extraHeaders),this.localAddress&&(h.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?f?new k(a,f):new k(a):new k(a,f,h)}catch(c){return this.emit("error",c)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},b.prototype.addEventListeners=function(){var a=this;this.ws.onopen=function(){a.onOpen()},this.ws.onclose=function(){a.onClose()},this.ws.onmessage=function(c){a.onData(c.data)},this.ws.onerror=function(c){a.onError("websocket error",c)}},b.prototype.write=function(c){function h(){p.emit("flush"),setTimeout(function(){p.writable=!0,p.emit("drain")},0)}var p=this;this.writable=!1;for(var f=c.length,l=0,a=f;l0&&d.jitter<=1?d.jitter:0,this.attempts=0}a.exports=c,c.prototype.duration=function(){var d=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var f=Math.random(),g=Math.floor(f*this.jitter*d);d=0==(1&Math.floor(10*f))?d-g:d+g}return 0|Math.min(d,this.max)},c.prototype.reset=function(){this.attempts=0},c.prototype.setMin=function(d){this.ms=d},c.prototype.setMax=function(d){this.max=d},c.prototype.setJitter=function(d){this.jitter=d}}])});