vendor: 12,111 bytes, line 1
1!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e:t.fluidvids=e()}(this,function(){"use strict";var t={selector:["iframe"],players:["www.youtube.com","player.vimeo.com"]},e=[".fluidvids {","width: 100%; max-width: 100%; position: relative;","}",".fluidvids-item {","position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;","}"].join(""),i=document.head||document.getElementsByTagName("head")[0],n=function(e){return new RegExp("^(https?:)?//(?:"+t.players.join("|")+").*$","i").test(e)},o=function(t,e){return parseInt(t,10)/parseInt(e,10)*100+"%"},r=function(t){if(n(t.src)&&!t.getAttribute("data-fluidvids")){var e=document.createElement("div");t.parentNode.insertBefore(e,t),t.className+=(t.className?" ":"")+"fluidvids-item",t.setAttribute("data-fluidvids","loaded"),e.className+="fluidvids",e.style.paddingTop=o(t.height,t.width),e.appendChild(t)}},s=function(){var t=document.createElement("div");t.innerHTML="<p>x</p><style>"+e+"</style>",i.appendChild(t.childNodes[1])};return t.render=function(){for(var e=document.querySelectorAll(t.selector.join()),i=e.length;i--;)r(e[i])},t.init=function(e){for(var i in e)t[i]=e[i];t.render(),s()},t}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";var e=window.Slick||{};e=function(){function e(e,n){var o,r=this;r.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(e),appendDots:t(e),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('<button type="button" />').text(i+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: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:1e3},r.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},t.extend(r,r.initials),r.activeBreakpoint=null,r.animType=null,r.animProp=null,r.breakpoints=[],r.breakpointSettings=[],r.cssTransitions=!1,r.focussed=!1,r.interrupted=!1,r.hidden="hidden",r.paused=!0,r.positionProp=null,r.respondTo=null,r.rowCount=1,r.shouldClick=!0,r.$slider=t(e),r.$slidesCache=null,r.transformType=null,r.transitionType=null,r.visibilityChange="visibilitychange",r.windowWidth=0,r.windowTimer=null,o=t(e).data("slick")||{},r.options=t.extend({},r.defaults,n,o),r.currentSlide=r.options.initialSlide,r.originalSettings=r.options,"undefined"!=typeof document.mozHidden?(r.hidden="mozHidden",r.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(r.hidden="webkitHidden",r.visibilityChange="webkitvisibilitychange"),r.autoPlay=t.proxy(r.autoPlay,r),r.autoPlayClear=t.proxy(r.autoPlayClear,r),r.autoPlayIterator=t.proxy(r.autoPlayIterator,r),r.changeSlide=t.proxy(r.changeSlide,r),r.clickHandler=t.proxy(r.clickHandler,r),r.selectHandler=t.proxy(r.selectHandler,r),r.setPosition=t.proxy(r.setPosition,r),r.swipeHandler=t.proxy(r.swipeHandler,r),r.dragHandler=t.proxy(r.dragHandler,r),r.keyHandler=t.proxy(r.keyHandler,r),r.instanceUid=i++,r.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,r.registerBreakpoints(),r.init(!0)}var i=0;return e}(),e.prototype.activateADA=function(){var t=this;t.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,i,n){var o=this;if("boolean"==typeof i)n=i,i=null;else if(i<0||i>=o.slideCount)return!1;o.unload(),"number"==typeof i?0===i&&0===o.$slides.length?t(e).appendTo(o.$slideTrack):n?t(e).insertBefore(o.$slides.eq(i)):t(e).insertAfter(o.$slides.eq(i)):n===!0?t(e).prependTo(o.$slideTrack):t(e).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each(function(e,i){t(i).attr("data-slick-index",e)}),o.$slidesCache=o.$slides,o.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,i){var n={},o=this;o.animateHeight(),o.options.rtl===!0&&o.options.vertical===!1&&(e=-e),o.transformsEnabled===!1?o.options.vertical===!1?o.$slideTrack.animate({left:e},o.options.speed,o.options.easing,i):o.$slideTrack.animate({top:e},o.options.speed,o.options.easing,i):o.cssTransitions===!1?(o.options.rtl===!0&&(o.currentLeft=-o.currentLeft),t({animStart:o.currentLeft}).animate({animStart:e},{duration:o.options.speed,easing:o.options.easing,step:function(t){t=Math.ceil(t),o.options.vertical===!1?(n[o.animType]="translate("+t+"px, 0px)",o.$slideTrack.css(n)):(n[o.animType]="translate(0px,"+t+"px)",o.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(o.applyTransition(),e=Math.ceil(e),o.options.vertical===!1?n[o.animType]="translate3d("+e+"px, 0px, 0px)":n[o.animType]="translate3d(0px,"+e+"px, 0px)",o.$slideTrack.css(n),i&&setTimeout(function(){o.disableTransition(),i.call()},o.options.speed))},e.prototype.getNavTarget=function(){var e=this,i=e.options.asNavFor;return i&&null!==i&&(i=t(i).not(e.$slider)),i},e.prototype.asNavFor=function(e){var i=this,n=i.getNavTarget();null!==n&&"object"==typeof n&&n.each(function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)})},e.prototype.applyTransition=function(t){var e=this,i={};e.options.fade===!1?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(t.options.infinite===!1&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1===0&&(t.direction=1))),t.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,i,n=this;if(n.options.dots===!0&&n.slideCount>n.options.slidesToShow){for(n.$slider.addClass("slick-dotted"),i=t("<ul />").addClass(n.options.dotsClass),e=0;e<=n.getDotCount();e+=1)i.append(t("<li />").append(n.options.customPaging.call(this,n,e)));n.$dots=i.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),e.options.centerMode!==!0&&e.options.swipeToSlide!==!0||(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,i,n,o,r,s,a=this;if(n=document.createDocumentFragment(),r=a.$slider.children(),a.options.rows>0){for(s=a.options.slidesPerRow*a.options.rows,o=Math.ceil(r.length/s),t=0;t<o;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var d=t*s+(e*a.options.slidesPerRow+i);r.get(d)&&c.appendChild(r.get(d))}l.appendChild(c)}n.appendChild(l)}a.$slider.empty().append(n),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,i){var n,o,r,s=this,a=!1,l=s.$slider.width(),c=window.innerWidth||t(window).width();if("window"===s.respondTo?r=c:"slider"===s.respondTo?r=l:"min"===s.respondTo&&(r=Math.min(c,l)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){o=null;for(n in s.breakpoints)s.breakpoints.hasOwnProperty(n)&&(s.originalSettings.mobileFirst===!1?r<s.breakpoints[n]&&(o=s.breakpoints[n]):r>s.breakpoints[n]&&(o=s.breakpoints[n]));null!==o?null!==s.activeBreakpoint?(o!==s.activeBreakpoint||i)&&(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=t.extend({},s.originalSettings,s.breakpointSettings[o]),e===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),a=o):(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=t.extend({},s.originalSettings,s.breakpointSettings[o]),e===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),a=o):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,e===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(e),a=o),e||a===!1||s.$slider.trigger("breakpoint",[s,a])}},e.prototype.changeSlide=function(e,i){var n,o,r,s=this,a=t(e.currentTarget);switch(a.is("a")&&e.preventDefault(),a.is("li")||(a=a.closest("li")),r=s.slideCount%s.options.slidesToScroll!==0,n=r?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,e.data.message){case"previous":o=0===n?s.options.slidesToScroll:s.options.slidesToShow-n,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-o,!1,i);break;case"next":o=0===n?s.options.slidesToScroll:n,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+o,!1,i);break;case"index":var l=0===e.data.index?0:e.data.index||a.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(l),!1,i),a.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i,n=this;if(e=n.getNavigableIndexes(),i=0,t>e[e.length-1])t=e[e.length-1];else for(var o in e){if(t<e[o]){t=i;break}i=e[o]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.
1slick",t.proxy(e.interrupt,e,!1)),e.options.accessibility===!0&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),e.options.accessibility===!0&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),e.options.accessibility===!0&&e.$list.off("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>0&&(t=e.$slides.children().children(),t.removeAttr("style"),e.$slider.empty().append(t))},e.prototype.clickHandler=function(t){var e=this;e.shouldClick===!1&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){t(this).attr("style",t(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.fadeSlide=function(t,e){var i=this;i.cssTransitions===!1?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;e.cssTransitions===!1?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(i){i.stopImmediatePropagation();var n=t(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=n.is(":focus"),e.autoPlay())}
vendor: 6,225 bytes, line 1
1,0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var t=this;return t.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(t.options.infinite===!0)if(t.slideCount<=t.options.slidesToShow)++n;else for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(t.options.centerMode===!0)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},e.prototype.getLeft=function(t){var e,i,n,o,r=this,s=0;return r.slideOffset=0,i=r.$slides.first().outerHeight(!0),r.options.infinite===!0?(r.slideCount>r.options.slidesToShow&&(r.slideOffset=r.slideWidth*r.options.slidesToShow*-1,o=-1,r.options.vertical===!0&&r.options.centerMode===!0&&(2===r.options.slidesToShow?o=-1.5:1===r.options.slidesToShow&&(o=-2)),s=i*r.options.slidesToShow*o),r.slideCount%r.options.slidesToScroll!==0&&t+r.options.slidesToScroll>r.slideCount&&r.slideCount>r.options.slidesToShow&&(t>r.slideCount?(r.slideOffset=(r.options.slidesToShow-(t-r.slideCount))*r.slideWidth*-1,s=(r.options.slidesToShow-(t-r.slideCount))*i*-1):(r.slideOffset=r.slideCount%r.options.slidesToScroll*r.slideWidth*-1,s=r.slideCount%r.options.slidesToScroll*i*-1))):t+r.options.slidesToShow>r.slideCount&&(r.slideOffset=(t+r.options.slidesToShow-r.slideCount)*r.slideWidth,s=(t+r.options.slidesToShow-r.slideCount)*i),r.slideCount<=r.options.slidesToShow&&(r.slideOffset=0,s=0),r.options.centerMode===!0&&r.slideCount<=r.options.slidesToShow?r.slideOffset=r.slideWidth*Math.floor(r.options.slidesToShow)/2-r.slideWidth*r.slideCount/2:r.options.centerMode===!0&&r.options.infinite===!0?r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)-r.slideWidth:r.options.centerMode===!0&&(r.slideOffset=0,r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)),e=r.options.vertical===!1?t*r.slideWidth*-1+r.slideOffset:t*i*-1+s,r.options.variableWidth===!0&&(n=r.slideCount<=r.options.slidesToShow||r.options.infinite===!1?r.$slideTrack.children(".slick-slide").eq(t):r.$slideTrack.children(".slick-slide").eq(t+r.options.slidesToShow),e=r.options.rtl===!0?n[0]?(r.$slideTrack.width()-n[0].offsetLeft-n.width())*-1:0:n[0]?n[0].offsetLeft*-1:0,r.options.centerMode===!0&&(n=r.slideCount<=r.options.slidesToShow||r.options.infinite===!1?r.$slideTrack.children(".slick-slide").eq(t):r.$slideTrack.children(".slick-slide").eq(t+r.options.slidesToShow+1),e=r.options.rtl===!0?n[0]?(r.$slideTrack.width()-n[0].offsetLeft-n.width())*-1:0:n[0]?n[0].offsetLeft*-1:0,e+=(r.$list.width()-n.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){var e=this;return e.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,i=0,n=0,o=[];for(e.options.infinite===!1?t=e.slideCount:(i=e.options.slidesToScroll*-1,n=e.options.slidesToScroll*-1,t=2*e.slideCount);i<t;)o.push(i),i=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return o},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,i,n,o=this;return n=o.options.centerMode===!0?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,o.options.swipeToSlide===!0?(o.$slideTrack.find(".slick-slide").each(function(e,r){if(r.offsetLeft-n+t(r).outerWidth()/2>o.swipeLeft*-1)return i=r,!1}),e=Math.abs(t(i).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){var i=this;i.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),i.options.accessibility===!0&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},e.prototype.initADA=function(){var e=this,i=Math.ceil(e.slideCount/e.options.slidesToShow),n=e.getNavigableIndexes().filter(function(t){return t>=0&&t<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(i){var o=n.indexOf(i);if(t(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+i,tabindex:-1}),o!==-1){var r="slick-slide-control"+e.instanceUid+o;t("#"+r).length&&t(this).attr({"aria-describedby":r})}}),e.$dots.attr("role","tablist").find("li").each(function(o){var r=n[o];t(this).attr({role:"presentation"}),t(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+o,"aria-controls":"slick-slide"+e.instanceUid+r,"aria-label":o+1+" of "+i,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var o=e.currentSlide,r=o+e.options.slidesToShow;o<r;o++)e.options.focusOnChange?e.$slides.eq(o).attr({tabindex:"0"}):e.$slides.eq(o).removeAttr("tabindex");e.activateADA()},e.prototype.initArrowEvents=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),t.options.accessibility===!0&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&(t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),e.options.accessibility===!0&&e.$dots.on("keydown.slick",e.keyHandler)),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.
1slick",t.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(e.setPosition)},e.prototype.initUI=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:e.options.rtl===!0?"next":"previous"}}):39===t.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:e.options.rtl===!0?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each(function(){var e=t(this),i=t(this).attr("data-lazy"),n=t(this).attr("data-srcset"),o=t(this).attr("data-sizes")||s.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0}
vendor: 18,463 bytes, lines 1-2
1,100,function(){n&&(e.attr("srcset",n),o&&e.attr("sizes",o)),e.attr("src",i).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),s.$slider.trigger("lazyLoaded",[s,e,i])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,e,i])},r.src=i})}var i,n,o,r,s=this;if(s.options.centerMode===!0?s.options.infinite===!0?(o=s.currentSlide+(s.options.slidesToShow/2+1),r=o+s.options.slidesToShow+2):(o=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),r=2+(s.options.slidesToShow/2+1)+s.currentSlide):(o=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide,r=Math.ceil(o+s.options.slidesToShow),s.options.fade===!0&&(o>0&&o--,r<=s.slideCount&&r++)),i=s.$slider.find(".slick-slide").slice(o,r),"anticipated"===s.options.lazyLoad)for(var a=o-1,l=r,c=s.$slider.find(".slick-slide"),d=0;d<s.options.slidesToScroll;d++)a<0&&(a=s.slideCount-1),i=i.add(c.eq(a)),i=i.add(c.eq(l)),a--,l++;e(i),s.slideCount<=s.options.slidesToShow?(n=s.$slider.find(".slick-slide"),e(n)):s.currentSlide>=s.slideCount-s.options.slidesToShow?(n=s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow),e(n)):0===s.currentSlide&&(n=s.$slider.find(".slick-cloned").slice(s.options.slidesToShow*-1),e(n))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var t=this;t.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var t=this;t.checkResponsive(),t.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var t=this;t.autoPlayClear(),t.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(e){var i=this;if(!i.unslicked&&(i.$slider.trigger("afterChange",[i,e]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),i.options.accessibility===!0&&(i.initADA(),i.options.focusOnChange))){var n=t(i.$slides.get(i.currentSlide));n.attr("tabindex",0).focus()}},e.prototype.prev=e.prototype.slickPrev=function(){var t=this;t.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var i,n,o,r,s,a=this,l=t("img[data-lazy]",a.$slider);l.length?(i=l.first(),n=i.attr("data-lazy"),o=i.attr("data-srcset"),r=i.attr("data-sizes")||a.$slider.attr("data-sizes"),s=document.createElement("img"),s.onload=function(){o&&(i.attr("srcset",o),r&&i.attr("sizes",r)),i.attr("src",n).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),a.options.adaptiveHeight===!0&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,i,n]),a.progressiveLazyLoad()},s.onerror=function(){e<3?setTimeout(function(){a.progressiveLazyLoad(e+1)},500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,i,n]),a.progressiveLazyLoad())},s.src=n):a.$slider.trigger("allImagesLoaded",[a])},e.prototype.refresh=function(e){var i,n,o=this;n=o.slideCount-o.options.slidesToShow,!o.options.infinite&&o.currentSlide>n&&(o.currentSlide=n),o.slideCount<=o.options.slidesToShow&&(o.currentSlide=0),i=o.currentSlide,o.destroy(!0),t.extend(o,o.initials,{currentSlide:i}),o.init(),e||o.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var e,i,n,o=this,r=o.options.responsive||null;if("array"===t.type(r)&&r.length){o.respondTo=o.options.respondTo||"window";for(e in r)if(n=o.breakpoints.length-1,r.hasOwnProperty(e)){for(i=r[e].breakpoint;n>=0;)o.breakpoints[n]&&o.breakpoints[n]===i&&o.breakpoints.splice(n,1),n--;o.breakpoints.push(i),o.breakpointSettings[i]=r[e].settings}o.breakpoints.sort(function(t,e){return o.options.mobileFirst?t-e:e-t})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,i){var n=this;return"boolean"==typeof t?(e=t,t=e===!0?0:n.slideCount-1):t=e===!0?--t:t,!(n.slideCount<1||t<0||t>n.slideCount-1)&&(n.unload(),i===!0?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,void n.reinit())},e.prototype.setCSS=function(t){var e,i,n=this,o={};n.options.rtl===!0&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",o[n.positionProp]=t,n.transformsEnabled===!1?n.$slideTrack.css(o):(o={},n.cssTransitions===!1?(o[n.animType]="translate("+e+", "+i+")",n.$slideTrack.css(o)):(o[n.animType]="translate3d("+e+", "+i+", 0px)",n.$slideTrack.css(o)))},e.prototype.setDimensions=function(){var t=this;t.options.vertical===!1?t.options.centerMode===!0&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),t.options.centerMode===!0&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),t.options.vertical===!1&&t.options.variableWidth===!1?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):t.options.variableWidth===!0?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();t.options.variableWidth===!1&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,i=this;i.$slides.each(function(n,o){e=i.slideWidth*n*-1,i.options.rtl===!0?t(o).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}):t(o).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0); 2t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,i,n,o,r,s=this,a=!1;if("object"===t.type(arguments[0])?(n=arguments[0],a=arguments[1],r="multiple"):"string"===t.type(arguments[0])&&(n=arguments[0],o=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===t.type(arguments[1])?r="responsive":"undefined"!=typeof arguments[1]&&(r="single")),"single"===r)s.options[n]=o;else if("multiple"===r)t.each(n,function(t,e){s.options[t]=e});else if("responsive"===r)for(i in o)if("array"!==t.type(s.options.responsive))s.options.responsive=[o[i]];else{for(e=s.options.responsive.length-1;e>=0;)s.options.responsive[e].breakpoint===o[i].breakpoint&&s.options.responsive.splice(e,1),e--;s.options.responsive.push(o[i])}a&&(s.unload(),s.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),t.options.fade===!1?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=t.options.vertical===!0?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||t.options.useCSS===!0&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&t.animType!==!1&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&t.animType!==!1},e.prototype.setSlideClasses=function(t){var e,i,n,o,r=this;if(i=r.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),r.$slides.eq(t).addClass("slick-current"),r.options.centerMode===!0){var s=r.options.slidesToShow%2===0?1:0;e=Math.floor(r.options.slidesToShow/2),r.options.infinite===!0&&(t>=e&&t<=r.slideCount-1-e?r.$slides.slice(t-e+s,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(n=r.options.slidesToShow+t,i.slice(n-e+1+s,n+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-r.options.slidesToShow).addClass("slick-center"):t===r.slideCount-1&&i.eq(r.options.slidesToShow).addClass("slick-center")),r.$slides.eq(t).addClass("slick-center")}else t>=0&&t<=r.slideCount-r.options.slidesToShow?r.$slides.slice(t,t+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=r.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(o=r.slideCount%r.options.slidesToShow,n=r.options.infinite===!0?r.options.slidesToShow+t:t,r.options.slidesToShow==r.options.slidesToScroll&&r.slideCount-t<r.options.slidesToShow?i.slice(n-(r.options.slidesToShow-o),n+o).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==r.options.lazyLoad&&"anticipated"!==r.options.lazyLoad||r.lazyLoad()},e.prototype.setupInfinite=function(){var e,i,n,o=this;if(o.options.fade===!0&&(o.options.centerMode=!1),o.options.infinite===!0&&o.options.fade===!1&&(i=null,o.slideCount>o.options.slidesToShow)){for(n=o.options.centerMode===!0?o.options.slidesToShow+1:o.options.slidesToShow,e=o.slideCount;e>o.slideCount-n;e-=1)i=e-1,t(o.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(e=0;e<n+o.slideCount;e+=1)i=e,t(o.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each(function(){t(this).attr("id","")})}},e.prototype.interrupt=function(t){var e=this;t||e.autoPlay(),e.interrupted=t},e.prototype.selectHandler=function(e){var i=this,n=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),o=parseInt(n.attr("data-slick-index"));return o||(o=0),i.slideCount<=i.options.slidesToShow?void i.slideHandler(o,!1,!0):void i.slideHandler(o)},e.prototype.slideHandler=function(t,e,i){var n,o,r,s,a,l=null,c=this;if(e=e||!1,!(c.animating===!0&&c.options.waitForAnimate===!0||c.options.fade===!0&&c.currentSlide===t))return e===!1&&c.asNavFor(t),n=t,l=c.getLeft(n),s=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?s:c.swipeLeft,c.options.infinite===!1&&c.options.centerMode===!1&&(t<0||t>c.getDotCount()*c.options.slidesToScroll)?void(c.options.fade===!1&&(n=c.currentSlide,i!==!0&&c.slideCount>c.options.slidesToShow?c.animateSlide(s,function(){c.postSlide(n)}):c.postSlide(n))):c.options.infinite===!1&&c.options.centerMode===!0&&(t<0||t>c.slideCount-c.options.slidesToScroll)?void(c.options.fade===!1&&(n=c.currentSlide,i!==!0&&c.slideCount>c.options.slidesToShow?c.animateSlide(s,function(){c.postSlide(n)}):c.postSlide(n))):(c.options.autoplay&&clearInterval(c.autoPlayTimer),o=n<0?c.slideCount%c.options.slidesToScroll!==0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+n:n>=c.slideCount?c.slideCount%c.options.slidesToScroll!==0?0:n-c.slideCount:n,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,o]),r=c.currentSlide,c.currentSlide=o,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(a=c.getNavTarget(),a=a.slick("getSlick"),a.slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide)),c.updateDots(),c.updateArrows(),c.options.fade===!0?(i!==!0?(c.fadeSlideOut(r),c.fadeSlide(o,function(){c.postSlide(o)})):c.postSlide(o),void c.animateHeight()):void(i!==!0&&c.slideCount>c.options.slidesToShow?c.animateSlide(l,function(){c.postSlide(o)}):c.postSlide(o)))},e.prototype.startLoad=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,i,n,o=this;return t=o.touchObject.startX-o.touchObject.curX,e=o.touchObject.startY-o.touchObject.curY,i=Math.atan2(e,t),n=Math.round(180*i/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0?o.options.rtl===!1?"left":"right":n<=360&&n>=315?o.options.rtl===!1?"left":"right":n>=135&&n<=225?o.options.rtl===!1?"right":"left":o.options.verticalSwiping===!0?n>=35&&n<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(n.touchObject.edgeHit===!0&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(e.options.swipe===!1||"ontouchend"in document&&e.options.swipe===!1||e.options.draggable===!1&&t.type.indexOf("mouse")!==-1))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,i,n,o,r,s,a=this;return r=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!a.dragging||a.scrolling||r&&1!==r.length)&&(e=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==r?r[0].pageX:t.clientX,a.touchObject.curY=void 0!==r?r[0].pageY:t.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),s=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&s>4?(a.scrolling=!0,!1):(a.options.verticalSwiping===!0&&(a.touchObject.swipeLength=s),i=a.swipeDirection(),void 0!==t.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,t.preventDefault()),o=(a.options.rtl===!1?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),a.options.verticalSwiping===!0&&(o=a.touchObject.curY>a.touchObject.startY?1:-1),n=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,a.options.infinite===!1&&(0===a.currentSlide&&"right"===i||a.currentSlide>=a.getDotCount()&&"left"===i)&&(n=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),a.options.vertical===!1?a.swipeLeft=e+n*o:a.swipeLeft=e+n*(a.$list.height()/a.listWidth)*o,a.options.verticalSwiping===!0&&(a.swipeLeft=e+n*o),a.options.fade!==!0&&a.options.touchMove!==!1&&(a.animating===!0?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},e.prototype.swipeStart=function(t){var e,i=this;return i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow?(i.touchObject={},!1):(void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,void(i.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
2,e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t,e=this;t=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,i,n=this,o=arguments[0],r=Array.prototype.slice.call(arguments,1),s=n.length;for(t=0;t<s;t++)if("object"==typeof o||"undefined"==typeof o?n[t].slick=new e(n[t],o):i=n[t].slick[o].apply(n[t].slick,r),"undefined"!=typeof i)return i;return n}}),function(t,e){"function"==typeof define&&define.amd?define("sifter",e):"object"==typeof exports?module.exports=e():t.Sifter=e()}(this,function(){var t=function(t,e){this.items=t,this.settings=e||{diacritics:!0}};t.prototype.tokenize=function(t){if(t=o(String(t||"").toLowerCase()),!t||!t.length)return[];var e,i,n,s,l=[],c=t.split(/ +/);for(e=0,i=c.length;e<i;e++){if(n=r(c[e]),this.settings.diacritics)for(s in a)a.hasOwnProperty(s)&&(n=n.replace(new RegExp(s,"g"),a[s]));l.push({string:c[e],regex:new RegExp(n,"i")})}return l},t.prototype.iterator=function(t,e){var i;i=s(t)?Array.prototype.forEach||function(t){for(var e=0,i=this.length;e<i;e++)t(this[e],e,this)}:function(t){for(var e in this)this.hasOwnProperty(e)&&t(this[e],e,this)},i.apply(t,[e])},t.prototype.getScoreFunction=function(t,e){var i,o,r,s,a;i=this,t=i.prepareSearch(t,e),r=t.tokens,o=t.options.fields,s=r.length,a=t.options.nesting;var l=function(t,e){var i,n;return t?(t=String(t||""),n=t.search(e.regex),n===-1?0:(i=e.string.length/t.length,0===n&&(i+=.5),i)):0},c=function(){var t=o.length;return t?1===t?function(t,e){return l(n(e,o[0],a),t)}:function(e,i){for(var r=0,s=0;r<t;r++)s+=l(n(i,o[r],a),e);return s/t}:function(){return 0}}();return s?1===s?function(t){return c(r[0],t)}:"and"===t.options.conjunction?function(t){for(var e,i=0,n=0;i<s;i++){if(e=c(r[i],t),e<=0)return 0;n+=e}return n/s}:function(t){for(var e=0,i=0;e<s;e++)i+=c(r[e],t);return i/s}:function(){return 0}},t.prototype.getSortFunction=function(t,i){var o,r,s,a,l,c,d,u,p,h,f;if(s=this,t=s.prepareSearch(t,i),f=!t.query&&i.sort_empty||i.sort,p=function(t,e){return"$score"===t?e.score:n(s.items[e.id],t,i.nesting)},l=[],f)for(o=0,r=f.length;o<r;o++)(t.query||"$score"!==f[o].field)&&l.push(f[o]);if(t.query){for(h=!0,o=0,r=l.length;o<r;o++)if("$score"===l[o].field){h=!1;break}h&&l.unshift({field:"$score",direction:"desc"})}else for(o=0,r=l.length;o<r;o++)if("$score"===l[o].field){l.splice(o,1);break}for(u=[],o=0,r=l.length;o<r;o++)u.push("desc"===l[o].direction?-1:1);return c=l.length,c?1===c?(a=l[0].field,d=u[0],function(t,i){return d*e(p(a,t),p(a,i))}):function(t,i){var n,o,r;for(n=0;n<c;n++)if(r=l[n].field,o=u[n]*e(p(r,t),p(r,i)))return o;return 0}:null},t.prototype.prepareSearch=function(t,e){if("object"==typeof t)return t;e=i({},e);var n=e.fields,o=e.sort,r=e.sort_empty;return n&&!s(n)&&(e.fields=[n]),o&&!s(o)&&(e.sort=[o]),r&&!s(r)&&(e.sort_empty=[r]),{options:e,query:String(t||"").toLowerCase(),tokens:this.tokenize(t),total:0,items:[]}},t.prototype.search=function(t,e){var i,n,o,r,s=this;return n=this.prepareSearch(t,e),e=n.options,t=n.query,r=e.score||s.getScoreFunction(n),t.length?s.iterator(s.items,function(t,o){i=r(t),(e.filter===!1||i>0)&&n.items.push({score:i,id:o})}):s.iterator(s.items,function(t,e){n.items.push({score:1,id:e})}
vendor: 5,313 bytes, line 2
2),o=s.getSortFunction(n,e),o&&n.items.sort(o),n.total=n.items.length,"number"==typeof e.limit&&(n.items=n.items.slice(0,e.limit)),n};var e=function(t,e){return"number"==typeof t&&"number"==typeof e?t>e?1:t<e?-1:0:(t=l(String(t||"")),e=l(String(e||"")),t>e?1:e>t?-1:0)},i=function(t,e){var i,n,o,r;for(i=1,n=arguments.length;i<n;i++)if(r=arguments[i])for(o in r)r.hasOwnProperty(o)&&(t[o]=r[o]);return t},n=function(t,e,i){if(t&&e){if(!i)return t[e];for(var n=e.split(".");n.length&&(t=t[n.shift()]););return t}},o=function(t){return(t+"").replace(/^\s+|\s+$|/g,"")},r=function(t){return(t+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},s=Array.isArray||"undefined"!=typeof $&&$.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},a={a:"[aá¸á¸ÄÄÃâÇÇȺⱥȦȧẠạÃäÃà ÃáÄÄÃãÃ
Ã¥Ä
ÄÃÄ
Ä]",b:"[bâ¢Î²ÎB฿ðá]",c:"[cÄÄÄÄÄÄÄÄCÌcÌÃçá¸á¸È»È¼ÆÆÉá´ï¼£ï½]",d:"[dÄÄá¸á¸á¸á¸á¸á¸á¸á¸á¸á¸ÄÄD̦d̦ÆÉÆÉÆÆáµá¶á¶È¡á´
Dï½Ã°]",e:"[eÃéÃèÃêá¸á¸ÄÄÄÄẼẽá¸á¸áººáº»ÄÄÃëÄÄȨȩÄÄá¶ÉÉÈÈ
Ếếá»á»á»á»
á»á»á¸á¸á¸á¸á¸á¸ÈÈẸẹá»á»â±¸á´ï¼¥ï½
ÉÇÆÆÎµ]",f:"[fÆÆá¸á¸]",g:"[gÉ¢â²Ç¤Ç¥ÄÄÄÄĢģÆÉ Ä Ä¡]",h:"[hĤĥĦħḨḩáºáºá¸¤á¸¥á¸¢á¸£É¦Ê°Ç¶Æ]",i:"[iÃÃÃìĬÄÃîÇÇÃïḮḯĨĩĮįĪīá»á»ÈÈÈÈá»á»á¸¬á¸ÆÉ¨É¨Ìáµ»á¶Ä°iIıɪIï½]",j:"[jȷĴĵÉÉÊÉʲ]",k:"[kÆÆêêḰḱǨǩḲḳḴḵκϰâ]",l:"[lÅÅĽľĻļĹĺḶḷḸḹḼḽḺḻĿÅȽÆâ± ⱡⱢɫɬá¶
ÉÈ´ÊLï½]",n:"[nÅÅǸǹÅÅÃñá¹á¹
Å
Åá¹á¹á¹á¹á¹á¹NÌnÌÆÉ²È Æáµ°á¶É³ÈµÉ´ï¼®ï½ÅÅ]",o:"[oÃøÃöÃóÃòÃôÇÇÅÅÅÅȮȯá»á»ÆÉµÆ Æ¡á»á»ÅÅÃõǪǫÈÈÕÖ
]",p:"[pá¹á¹á¹á¹â±£áµ½Æ¤Æ¥áµ±]",q:"[qêêÊ ÉÉêêqÌ]",r:"[rÅÅÉÉÅÅÅÅá¹á¹ÈÈÈÈá¹á¹â±¤É½]",s:"[sÅÅṠṡṢṣê¨ê©ÅÅÅ Å¡ÅÅÈÈSÌsÌ]",t:"[tÅ¤Å¥á¹ªá¹«Å¢Å£á¹¬á¹Æ®ÊÈÈṰṱṮṯƬÆ]",u:"[uŬÅÉÊỤụÃüÃúÃùÃûÇÇŰűŬů¯Æ°á»¦á»§ÅªÅ«Å¨Å©Å²Å³ÈÈâª]",v:"[vṼṽṾṿƲÊêêâ±±Ê]",w:"[wáºáºáºáºÅ´Åµáºáº
áºáºáºáº]",x:"[xáºáºáºáºÏ]",y:"[yÃýỲỳŶŷŸÿỸỹáºáºá»´á»µÉÉÆ³Æ´]",z:"[zŹźáºáºÅ½Å¾Å»Å¼áºáºáºáºÆµÆ¶]"},l=function(){var t,e,i,n,o="",r={};for(i in a)if(a.hasOwnProperty(i))for(n=a[i].substring(2,a[i].length-1),o+=n,t=0,e=n.length;t<e;t++)r[n.charAt(t)]=i;var s=new RegExp("["+o+"]","g");return function(t){return t.replace(s,function(t){return r[t]}).toLowerCase()}}();return t}),function(t,e){"function"==typeof define&&define.amd?define("microplugin",e):"object"==typeof exports?module.exports=e():t.MicroPlugin=e()}(this,function(){var t={};t.mixin=function(t){t.plugins={},t.prototype.initializePlugins=function(t){var i,n,o,r=this,s=[];if(r.plugins={names:[],settings:{},requested:{},loaded:{}},e.isArray(t))for(i=0,n=t.length;i<n;i++)"string"==typeof t[i]?s.push(t[i]):(r.plugins.settings[t[i].name]=t[i].options,s.push(t[i].name));else if(t)for(o in t)t.hasOwnProperty(o)&&(r.plugins.settings[o]=t[o],s.push(o));for(;s.length;)r.require(s.shift())},t.prototype.loadPlugin=function(e){var i=this,n=i.plugins,o=t.plugins[e];if(!t.plugins.hasOwnProperty(e))throw new Error('Unable to find "'+e+'" plugin');n.requested[e]=!0,n.loaded[e]=o.fn.apply(i,[i.plugins.settings[e]||{}]),n.names.push(e)},t.prototype.require=function(t){var e=this,i=e.plugins;if(!e.plugins.loaded.hasOwnProperty(t)){if(i.requested[t])throw new Error('Plugin has circular dependency ("'+t+'")');e.loadPlugin(t)}return i.loaded[t]},t.define=function(e,i){t.plugins[e]={name:e,fn:i}}};var e={isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}};return t}),function(t,e){"function"==typeof define&&define.amd?define("selectize",["jquery","sifter","microplugin"],e):"object"==typeof exports?module.exports=e(require("jquery"),require("sifter"),require("microplugin")):t.Selectize=e(t.jQuery,t.Sifter,t.MicroPlugin)}(this,function(t,e,i){"use strict";var n=function(t,e){if("string"!=typeof e||e.length){var i="string"==typeof e?new RegExp(e,"i"):e,n=function(t){var e=0;if(3===t.nodeType){var o=t.data.search(i);if(o>=0&&t.data.length>0){var r=t.data.match(i),s=document.createElement("span");s.className="highlight";var a=t.splitText(o),l=(a.splitText(r[0].length),a.cloneNode(!0));s.appendChild(l),a.parentNode.replaceChild(s,a),e=1}}else if(1===t.nodeType&&t.childNodes&&!/(script|style)/i.test(t.tagName)&&("highlight"!==t.className||"SPAN"!==t.tagName))for(var c=0;c<t.childNodes.length;++c)c+=n(t.childNodes[c]);return e};return t.each(function(){n(this)})}};t.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;var t=this.parentNode;t.replaceChild(this.firstChild,this),t.normalize()}).end()};var o=function(){};o.prototype={on:function(t,e){this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)},off:function(t,e){var i=arguments.length;return 0===i?delete this._events:1===i?delete this._events[t]:(this._events=this._events||{},void(t in this._events!=!1&&this._events[t].splice(this._events[t].indexOf(e),1)))},trigger:function(t){if(this._events=this._events||{},t in this._events!=!1)for(var e=0;e<this._events[t].length;e++)this._events[t][e].apply(this,Array.prototype.slice.call(arguments,1
vendor: 12,214 bytes, lines 2-3
2))}},o.mixin=function(t){for(var e=["on","off","trigger"],i=0;i<e.length;i++)t.prototype[e[i]]=o.prototype[e[i]]};var r=/Mac/.test(navigator.userAgent),s=65,a=13,l=27,c=37,d=38,u=80,p=39,h=40,f=78,m=8,g=46,v=16,y=r?91:17,_=r?18:17,w=9,b=1,x=2,T=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("input").validity,S=function(t){return"undefined"!=typeof t},k=function(t){return"undefined"==typeof t||null===t?null:"boolean"==typeof t?t?"1":"0":t+""},C=function(t){return(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},O={};O.before=function(t,e,i){var n=t[e];t[e]=function(){return i.apply(t,arguments),n.apply(t,arguments)}},O.after=function(t,e,i){var n=t[e];t[e]=function(){var e=n.apply(t,arguments);return i.apply(t,arguments),e}};var P=function(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}},A=function(t,e){var i;return function(){var n=this,o=arguments;window.clearTimeout(i),i=window.setTimeout(function(){t.apply(n,o)},e)}},$=function(t,e,i){var n,o=t.trigger,r={};t.trigger=function(){var i=arguments[0];return e.indexOf(i)===-1?o.apply(t,arguments):void(r[i]=arguments)},i.apply(t,[]),t.trigger=o;for(n in r)r.hasOwnProperty(n)&&o.apply(t,r[n])},E=function(t,e,i,n){t.on(e,i,function(e){for(var i=e.target;i&&i.parentNode!==t[0];)i=i.parentNode;return e.currentTarget=i,n.apply(this,[e])})},I=function(t){var e={};if("selectionStart"in t)e.start=t.selectionStart,e.length=t.selectionEnd-e.start;else if(document.selection){t.focus();var i=document.selection.createRange(),n=document.selection.createRange().text.length;i.moveStart("character",-t.value.length),e.start=i.text.length-n,e.length=n}return e},z=function(t,e,i){var n,o,r={};if(i)for(n=0,o=i.length;n<o;n++)r[i[n]]=t.css(i[n]);else r=t.css();e.css(r)},L=function(e,i){return e?(F.$testInput||(F.$testInput=t("<span />").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).appendTo("body")),F.$testInput.text(e),z(i,F.$testInput,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]),F.$testInput.width()):0},D=function(t){var e=null,i=function(i,n){var o,r,s,a,l,c,d,u;i=i||window.event||{},n=n||{},i.metaKey||i.altKey||(n.force||t.data("grow")!==!1)&&(o=t.val(),i.type&&"keydown"===i.type.toLowerCase()&&(r=i.keyCode,s=r>=48&&r<=57||r>=65&&r<=90||r>=96&&r<=111||r>=186&&r<=222||32===r,r===g||r===m?(u=I(t[0]),u.length?o=o.substring(0,u.start)+o.substring(u.start+u.length):r===m&&u.start?o=o.substring(0,u.start-1)+o.substring(u.start+1):r===g&&"undefined"!=typeof u.start&&(o=o.substring(0,u.start)+o.substring(u.start+1))):s&&(c=i.shiftKey,d=String.fromCharCode(i.keyCode),d=c?d.toUpperCase():d.toLowerCase(),o+=d)),a=t.attr("placeholder"),!o&&a&&(o=a),l=L(o,t)+4,l!==e&&(e=l,t.width(l),t.triggerHandler("resize")))};t.on("keydown keyup update blur",i),i()},R=function(t){var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML},M=function(t,e){e||(e={});var i="Selectize";console.error(i+": "+t),e.explanation&&(console.group&&console.group(),console.error(e.explanation),console.group&&console.groupEnd())},F=function(i,n){var o,r,s,a,l=this;a=i[0],a.selectize=l;var c=window.getComputedStyle&&window.getComputedStyle(a,null);if(s=c?c.getPropertyValue("direction"):a.currentStyle&&a.currentStyle.direction,s=s||i.parents("[dir]:first").attr("dir")||"",t.extend(l,{order:0,settings:n,$input:i,tabIndex:i.attr("tabindex")||"",tagType:"select"===a.tagName.toLowerCase()?b:x,rtl:/rtl/i.test(s),eventNS:".selectize"+ ++F.count,highlightedValue:null,isBlurring:!1,isOpen:!1,isDisabled:!1,isRequired:i.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===n.loadThrottle?l.onSearchChange:A(l.onSearchChange,n.loadThrottle)}),l.sifter=new e(this.options,{diacritics:n.diacritics}),l.settings.options){for(o=0,r=l.settings.options.length;o<r;o++)l.registerOption(l.settings.options[o]);delete l.settings.options}if(l.settings.optgroups){for(o=0,r=l.settings.optgroups.length;o<r;o++)l.registerOptionGroup(l.settings.optgroups[o]);delete l.settings.optgroups}l.settings.mode=l.settings.mode||(1===l.settings.maxItems?"single":"multi"),"boolean"!=typeof l.settings.hideSelected&&(l.settings.hideSelected="multi"===l.settings.mode),l.initializePlugins(l.settings.plugins),l.setupCallbacks(),l.setupTemplates(),l.setup()};return o.mixin(F),"undefined"!=typeof i?i.mixin(F):M("Dependency MicroPlugin is missing",{explanation:'Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.'}),t.extend(F.prototype,{setup:function(){var e,i,n,o,s,a,l,c,d,u,p=this,h=p.settings,f=p.eventNS,m=t(window),g=t(document),w=p.$input;if(l=p.settings.mode,c=w.attr("class")||"",e=t("<div>").addClass(h.wrapperClass).addClass(c).addClass(l),i=t("<div>").addClass(h.inputClass).addClass("items").appendTo(e),n=t('<input type="text" autocomplete="off" />').appendTo(i).attr("tabindex",w.is(":disabled")?"-1":p.tabIndex),a=t(h.dropdownParent||e),o=t("<div>").addClass(h.dropdownClass).addClass(l).hide().appendTo(a),s=t("<div>").addClass(h.dropdownContentClass).appendTo(o),(u=w.attr("id"))&&(n.attr("id",u+"-selectized"),t("label[for='"+u+"']").attr("for",u+"-selectized")),p.settings.copyClassesToDropdown&&o.addClass(c),e.css({width:w[0].style.width}),p.plugins.names.length&&(d="plugin-"+p.plugins.names.join(" plugin-"),e.addClass(d),o.addClass(d)),(null===h.maxItems||h.maxItems>1)&&p.tagType===b&&w.attr("multiple","multiple"),p.settings.placeholder&&n.attr("placeholder",h.placeholder),!p.settings.splitOn&&p.settings.delimiter){var x=p.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");p.settings.splitOn=new RegExp("\\s*"+x+"+\\s*")}w.attr("autocorrect")&&n.attr("autocorrect",w.attr("autocorrect")),w.attr("autocapitalize")&&n.attr("autocapitalize",w.attr("autocapitalize")),n[0].type=w[0].type,p.$wrapper=e,p.$control=i,p.$control_input=n,p.$dropdown=o,p.$dropdown_content=s,o.on("mouseenter mousedown click","[data-disabled]>[data-selectable]",function(t){t.stopImmediatePropagation()}),o.on("mouseenter","[data-selectable]",function(){return p.onOptionHover.apply(p,arguments)}),o.on("mousedown click","[data-selectable]",function(){return p.onOptionSelect.apply(p,arguments)}),E(i,"mousedown","*:not(input)",function(){return p.onItemSelect.apply(p,arguments)}),D(n),i.on({mousedown:function(){return p.onMouseDown.apply(p,arguments)},click:function(){return p.onClick.apply(p,arguments)}}),n.on({mousedown:function(t){t.stopPropagation()},keydown:function(){return p.onKeyDown.apply(p,arguments)},keyup:function(){return p.onKeyUp.apply(p,arguments)},keypress:function(){return p.onKeyPress.apply(p,arguments)},resize:function(){p.positionDropdown.apply(p,[])},blur:function(){return p.onBlur.apply(p,arguments)},focus:function(){return p.ignoreBlur=!1,p.onFocus.apply(p,arguments)},paste:function(){return p.onPaste.apply(p,arguments)}}),g.on("keydown"+f,function(t){p.isCmdDown=t[r?"metaKey":"ctrlKey"],p.isCtrlDown=t[r?"altKey":"ctrlKey"],p.isShiftDown=t.shiftKey}),g.on("keyup"+f,function(t){t.keyCode===_&&(p.isCtrlDown=!1),t.keyCode===v&&(p.isShiftDown=!1),t.keyCode===y&&(p.isCmdDown=!1)}),g.on("mousedown"+f,function(t){if(p.isFocused){if(t.target===p.$dropdown[0]||t.target.parentNode===p.$dropdown[0])return!1;p.$control.has(t.target).length||t.target===p.$control[0]||p.blur(t.target)}}),m.on(["scroll"+f,"resize"+f].join(" "),function(){p.isOpen&&p.positionDropdown.apply(p,arguments)}),m.on("mousemove"+f,function(){p.ignoreHover=!1}),this.revertSettings={$children:w.children().detach(),tabindex:w.attr("tabindex")},w.attr("tabindex",-1).hide().after(p.$wrapper),t.isArray(h.items)&&(p.setValue(h.items),delete h.items),T&&w.on("invalid"+f,function(t){t.preventDefault(),p.isInvalid=!0,p.refreshState()}),p.updateOriginalInput(),p.refreshItems(),p.refreshState(),p.updatePlaceholder(),p.isSetup=!0,w.is(":disabled")&&p.disable(),p.on("change",this.onChange),w.data("selectize",p),w.addClass("selectized"),p.trigger("initialize"),h.preload===!0&&p.onSearchChange("")},setupTemplates:function(){var e=this,i=e.settings.labelField,n=e.settings.optgroupLabelField,o={optgroup:function(t){return'<div class="optgroup">'+t.html+"</div>"},optgroup_header:function(t,e){return'<div class="optgroup-header">'+e(t[n])+"</div>"},option:function(t,e){return'<div class="option">'+e(t[i])+"</div>"},item:function(t,e){return'<div class="item">'+e(t[i])+"</div>"},option_create:function(t,e){return'<div class="create">Add <strong>'+e(t.input)+"</strong>…</div>"}};e.settings.render=t.extend({},o,e.settings.render)},setupCallbacks:function(){var t,e,i={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(t in i)i.hasOwnProperty(t)&&(e=this.settings[i[t]],e&&this.on(t,e))},onClick:function(t){var e=this;e.isFocused&&e.isOpen||(e.focus(),t.preventDefault())},onMouseDown:function(e){var i=this,n=e.isDefaultPrevented();t(e.target);if(i.isFocused){if(e.target!==i.$control_input[0])return"single"===i.settings.mode?i.isOpen?i.close():i.open():n||i.setActiveItem(null),!1}else n||window.setTimeout(function(){i.focus()},0)},onChange:function(){this.$input.trigger("change")},onPaste:function(e){var i=this;return i.isFull()||i.isInputHidden||i.isLocked?void e.preventDefault():void(i.settings.splitOn&&setTimeout(function(){var e=i.$control_input.val();if(e.match(i.settings.splitOn))for(var n=t.trim(e).split(i.settings.splitOn),o=0,r=n.length;o<r;o++)i.createItem(n[o])},0))},onKeyPress:function(t){if(this.isLocked)return t&&t.preventDefault();var e=String.fromCharCode(t.keyCode||t.which);return this.settings.create&&"multi"===this.settings.mode&&e===this.settings.delimiter?(this.createItem(),t.preventDefault(),!1):void 0},onKeyDown:function(t){var e=(t.target===this.$control_input[0],this);if(e.isLocked)return void(t.keyCode!==w&&t.preventDefault());switch(t.keyCode){case s:if(e.isCmdDown)return void e.selectAll();break;case l:return void(e.isOpen&&(t.preventDefault(),t.stopPropagation(),e.close()));case f:if(!t.ctrlKey||t.altKey)break;case h:if(!e.isOpen&&e.hasOptions)e.open();else if(e.$activeOption){e.ignoreHover=!0;var i=e.getAdjacentOption(e.$activeOption,1);i.length&&e.setActiveOption(i,!0,!0)}return void t.preventDefault();case u:if(!t.ctrlKey||t.altKey)break;case d:if(e.$activeOption){e.ignoreHover=!0;var n=e.getAdjacentOption(e.$activeOption,-1);n.length&&e.setActiveOption(n,!0,!0)}return void t.preventDefault();case a:return void(e.isOpen&&e.$activeOption&&(e.onOptionSelect({currentTarget:e.$activeOption}),t.preventDefault()));case c:return void e.advanceSelection(-1,t);case p:return void e.advanceSelection(1,t);case w:return e.settings.selectOnTab&&e.isOpen&&e.$activeOption&&(e.onOptionSelect({currentTarget:e.$activeOption}),e.isFull()||t.preventDefault()),void(e.settings.create&&e.createItem()&&t.preventDefault());case m:case g:return void e.deleteSelection(t)}return!e.isFull()&&!e.isInputHidden||(r?t.metaKey:t.ctrlKey)?void 0:void t.preventDefault()},onKeyUp:function(t){var e=this;if(e.isLocked)return t&&t.preventDefault();var i=e.$control_input.val()||"";e.lastValue!==i&&(e.lastValue=i,e.onSearchChange(i),e.refreshOptions(),e.trigger("type",i))},onSearchChange:function(t){var e=this,i=e.settings.load;i&&(e.loadedSearches.hasOwnProperty(t)||(e.loadedSearches[t]=!0, 3e.load(function(n){i.apply(e,[t,n])})))},onFocus:function(t){var e=this,i=e.isFocused;return e.isDisabled?(e.blur(),t&&t.preventDefault(),!1):void(e.ignoreFocus||(e.isFocused=!0,"focu
3s"===e.settings.preload&&e.onSearchChange(""),i||e.trigger("focus"),e.$activeItems.length||(e.showInput(),e.setActiveItem(null),e.refreshOptions(!!e.settings.openOnFocus)),e.refreshState()))},onBlur:function(t,e){var i=this;if(i.isFocused&&(i.isFocused=!1,!i.ignoreFocus)){if(!i.ignoreBlur&&document.activeElement===i.$dropdown_content[0])return i.ignoreBlur=!0,void i.onFocus(t);var n=function(){i.close(),i.setTextboxValue(""),i.setActiveItem(null),i.setActiveOption(null),i.setCaret(i.items.length),i.refreshState(),e&&e.focus&&e.focus(),i.isBlurring=!1,i.ignoreFocus=!1,i.trigger("blur")};i.isBlurring=!0,i.ignoreFocus=!0,i.settings.create&&i.settings.createOnBlur?i.createItem(null,!1,n):n()}},onOptionHover:function(t){this.ignoreHover||this.setActiveOption(t.currentTarget,!1)},onOptionSelect:function(e){var i,n,o=this;e.preventDefault&&(e.preventDefault(),e.stopPropagation()),n=t(e.currentTarget),n.hasClass("create")?o.createItem(null,function(){o.settings.closeAfterSelect&&o.close()}):(i=n.attr("data-value"),"undefined"!=typeof i&&(o.lastQuery=null,o.setTextboxValue(""),o.addItem(i),o.settings.closeAfterSelect?o.close():!o.settings.hideSelected&&e.type&&/mouse/.test(e.type)&&o.setActiveOption(o.getOption(i))))},onItemSelect:function(t){var e=this;e.isLocked||"multi"===e.settings.mode&&(t.preventDefault(),e.setActiveItem(t.currentTarget,t))},load:function(t){var e=this,i=e.$wrapper.addClass(e.settings.loadingClass);e.loading++,t.apply(e,[function(t){e.loading=Math.max(e.loading-1,0),t&&t.length&&(e.addOption(t),e.refreshOptions(e.isFocused&&!e.isInputHidden)),e.loading||i.removeClass(e.settings.loadingClass),e.trigger("load",t)}])},setTextboxValue:function(t){var e=this.$control_input,i=e.val()!==t;i&&(e.val(t).triggerHandler("update"),this.lastValue=t)},getValue:function(){return this.tagType===b&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(t,e){var i=e?[]:["change"];$(this,i,function(){this.clear(e),this.addItems(t,e)})},setActiveItem:function(e,i){var n,o,r,s,a,l,c,d,u=this;if("single"!==u.settings.mode){if(e=t(e),!e.length)return t(u.$activeItems).removeClass("active"),u.$activeItems=[],void(u.isFocused&&u.showInput());if(n=i&&i.type.toLowerCase(),"mousedown"===n&&u.isShiftDown&&u.$activeItems.length){for(d=u.$control.children(".active:last"),s=Array.prototype.indexOf.apply(u.$control[0].childNodes,[d[0]]),a=Array.prototype.indexOf.apply(u.$control[0].childNodes,[e[0]]),s>a&&(c=s,s=a,a=c),o=s;o<=a;o++)l=u.$control[0].childNodes[o],u.$activeItems.indexOf(l)===-1&&(t(l).addClass("active"),u.$activeItems.push(l));i.preventDefault()}else"mousedown"===n&&u.isCtrlDown||"keydown"===n&&this.isShiftDown?e.hasClass("active")?(r=u.$activeItems.indexOf(e[0]),u.$activeItems.splice(r,1),e.removeClass("active")):u.$activeItems.push(e.addClass("active")[0]):(t(u.$activeItems).removeClass("active"),u.$activeItems=[e.addClass("active")[0]]);u.hideInput(),this.isFocused||u.focus()}},setActiveOption:function(e,i,n){var o,r,s,a,l,c=this;c.$activeOption&&c.$activeOption.removeClass("active"),c.$activeOption=null,e=t(e),e.length&&(c.$activeOption=e.addClass("active"),!i&&S(i)||(o=c.$dropdown_content.height(),r=c.$activeOption.outerHeight(!0),i=c.$dropdown_content.scrollTop()||0,s=c.$activeOption.offset().top-c.$dropdown_content.offset().top+i,a=s,l=s-o+r,s+r>o+i?c.$dropdown_content.stop().animate({scrollTop:l},n?c.settings.scrollDuration:0):s<i&&c.$dropdown_content.stop().animate({scrollTop:a},n?c.settings.scrollDuration:0)))},selectAll:function(){var t=this;"single"!==t.settings.mode&&(t.$activeItems=Array.prototype.slice.apply(t.$control.children(":not(input)").addClass("active")),t.$activeItems.length&&(t.hideInput(),t.close()),t.focus())},hideInput:function(){var t=this;t.setTextboxValue(""),t.$control_input.css({opacity:0,position:"absolute",left:t.rtl?1e4:-1e4}),t.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var t=this;t.isDisabled||(t.ignoreFocus=!0,t.$control_input[0].focus(),window.setTimeout(function(){t.ignoreFocus=!1,t.onFocus()},0))},blur:function(t){this.$control_input[0].blur(),this.onBlur(null,t)},getScoreFunction:function(t){return this.sifter.getScoreFunction(t,this.get
vendor: 17,016 bytes, line 3
3SearchOptions())},getSearchOptions:function(){var t=this.settings,e=t.sortField;return"string"==typeof e&&(e=[{field:e}]),{fields:t.searchField,conjunction:t.searchConjunction,sort:e,nesting:t.nesting}},search:function(e){var i,n,o,r=this,s=r.settings,a=this.getSearchOptions();if(s.score&&(o=r.settings.score.apply(this,[e]),"function"!=typeof o))throw new Error('Selectize "score" setting must be a function that returns a function');if(e!==r.lastQuery?(r.lastQuery=e,n=r.sifter.search(e,t.extend(a,{score:o})),r.currentResults=n):n=t.extend(!0,{},r.currentResults),s.hideSelected)for(i=n.items.length-1;i>=0;i--)r.items.indexOf(k(n.items[i].id))!==-1&&n.items.splice(i,1);return n},refreshOptions:function(e){var i,o,r,s,a,l,c,d,u,p,h,f,m,g,v,y;"undefined"==typeof e&&(e=!0);var _=this,w=t.trim(_.$control_input.val()),b=_.search(w),x=_.$dropdown_content,T=_.$activeOption&&k(_.$activeOption.attr("data-value"));for(s=b.items.length,"number"==typeof _.settings.maxOptions&&(s=Math.min(s,_.settings.maxOptions)),a={},l=[],i=0;i<s;i++)for(c=_.options[b.items[i].id],d=_.render("option",c),u=c[_.settings.optgroupField]||"",p=t.isArray(u)?u:[u],o=0,r=p&&p.length;o<r;o++)u=p[o],_.optgroups.hasOwnProperty(u)||(u=""),a.hasOwnProperty(u)||(a[u]=document.createDocumentFragment(),l.push(u)),a[u].appendChild(d);for(this.settings.lockOptgroupOrder&&l.sort(function(t,e){var i=_.optgroups[t].$order||0,n=_.optgroups[e].$order||0;return i-n}),h=document.createDocumentFragment(),i=0,s=l.length;i<s;i++)u=l[i],_.optgroups.hasOwnProperty(u)&&a[u].childNodes.length?(f=document.createDocumentFragment(),f.appendChild(_.render("optgroup_header",_.optgroups[u])),f.appendChild(a[u]),h.appendChild(_.render("optgroup",t.extend({},_.optgroups[u],{html:R(f),dom:f})))):h.appendChild(a[u]);if(x.html(h),_.settings.highlight&&(x.removeHighlight(),b.query.length&&b.tokens.length))for(i=0,s=b.tokens.length;i<s;i++)n(x,b.tokens[i].regex);if(!_.settings.hideSelected)for(i=0,s=_.items.length;i<s;i++)_.getOption(_.items[i]).addClass("selected");m=_.canCreate(w),m&&(x.prepend(_.render("option_create",{input:w})),y=t(x[0].childNodes[0])),_.hasOptions=b.items.length>0||m,_.hasOptions?(b.items.length>0?(v=T&&_.getOption(T),v&&v.length?g=v:"single"===_.settings.mode&&_.items.length&&(g=_.getOption(_.items[0])),g&&g.length||(g=y&&!_.settings.addPrecedence?_.getAdjacentOption(y,1):x.find("[data-selectable]:first"))):g=y,_.setActiveOption(g),e&&!_.isOpen&&_.open()):(_.setActiveOption(null),e&&_.isOpen&&_.close())},addOption:function(e){var i,n,o,r=this;if(t.isArray(e))for(i=0,n=e.length;i<n;i++)r.addOption(e[i]);else(o=r.registerOption(e))&&(r.userOptions[o]=!0,r.lastQuery=null,r.trigger("option_add",o,e))},registerOption:function(t){var e=k(t[this.settings.valueField]);return"undefined"!=typeof e&&null!==e&&!this.options.hasOwnProperty(e)&&(t.$order=t.$order||++this.order,this.options[e]=t,e)},registerOptionGroup:function(t){var e=k(t[this.settings.optgroupValueField]);return!!e&&(t.$order=t.$order||++this.order,this.optgroups[e]=t,e)},addOptionGroup:function(t,e){e[this.settings.optgroupValueField]=t,(t=this.registerOptionGroup(e))&&this.trigger("optgroup_add",t,e)},removeOptionGroup:function(t){this.optgroups.hasOwnProperty(t)&&(delete this.optgroups[t],this.renderCache={},this.trigger("optgroup_remove",t))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(e,i){var n,o,r,s,a,l,c,d=this;if(e=k(e),r=k(i[d.settings.valueField]),null!==e&&d.options.hasOwnProperty(e)){if("string"!=typeof r)throw new Error("Value must be set in option data");c=d.options[e].$order,r!==e&&(delete d.options[e],s=d.items.indexOf(e),s!==-1&&d.items.splice(s,1,r)),i.$order=i.$order||c,d.options[r]=i,a=d.renderCache.item,l=d.renderCache.option,a&&(delete a[e],delete a[r]),l&&(delete l[e],delete l[r]),d.items.indexOf(r)!==-1&&(n=d.getItem(e),o=t(d.render("item",i)),n.hasClass("active")&&o.addClass("active"),n.replaceWith(o)),d.lastQuery=null,d.isOpen&&d.refreshOptions(!1)}},removeOption:function(t,e){var i=this;t=k(t);var n=i.renderCache.item,o=i.renderCache.option;n&&delete n[t],o&&delete o[t],delete i.userOptions[t],delete i.options[t],i.lastQuery=null,i.trigger("option_remove",t),i.removeItem(t,e)},clearOptions:function(){var e=this;e.loadedSearches={},e.userOptions={},e.renderCache={};var i=e.options;t.each(e.options,function(t,n){e.items.indexOf(t)==-1&&delete i[t]}),e.options=e.sifter.items=i,e.lastQuery=null,e.trigger("option_clear")},getOption:function(t){return this.getElementWithValue(t,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(e,i){var n=this.$dropdown.find("[data-selectable]"),o=n.index(e)+i;return o>=0&&o<n.length?n.eq(o):t()},getElementWithValue:function(e,i){if(e=k(e),"undefined"!=typeof e&&null!==e)for(var n=0,o=i.length;n<o;n++)if(i[n].getAttribute("data-value")===e)return t(i[n]);return t()},getItem:function(t){return this.getElementWithValue(t,this.$control.children())},addItems:function(e,i){this.buffer=document.createDocumentFragment();for(var n=this.$control[0].childNodes,o=0;o<n.length;o++)this.buffer.appendChild(n[o]);for(var r=t.isArray(e)?e:[e],o=0,s=r.length;o<s;o++)this.isPending=o<s-1,this.addItem(r[o],i);var a=this.$control[0];a.insertBefore(this.buffer,a.firstChild),this.buffer=null},addItem:function(e,i){var n=i?[]:["change"];$(this,n,function(){var n,o,r,s,a,l=this,c=l.settings.mode;return e=k(e),l.items.indexOf(e)!==-1?void("single"===c&&l.close()):void(l.options.hasOwnProperty(e)&&("single"===c&&l.clear(i),"multi"===c&&l.isFull()||(n=t(l.render("item",l.options[e])),a=l.isFull(),l.items.splice(l.caretPos,0,e),l.insertAtCaret(n),(!l.isPending||!a&&l.isFull())&&l.refreshState(),l.isSetup&&(r=l.$dropdown_content.find("[data-selectable]"),l.isPending||(o=l.getOption(e),s=l.getAdjacentOption(o,1).attr("data-value"),l.refreshOptions(l.isFocused&&"single"!==c),s&&l.setActiveOption(l.getOption(s))),!r.length||l.isFull()?l.close():l.isPending||l.positionDropdown(),l.updatePlaceholder(),l.trigger("item_add",e,n),l.isPending||l.updateOriginalInput({silent:i})))))})},removeItem:function(e,i){var n,o,r,s=this;n=e instanceof t?e:s.getItem(e),e=k(n.attr("data-value")),o=s.items.indexOf(e),o!==-1&&(n.remove(),n.hasClass("active")&&(r=s.$activeItems.indexOf(n[0]),s.$activeItems.splice(r,1)),s.items.splice(o,1),s.lastQuery=null,!s.settings.persist&&s.userOptions.hasOwnProperty(e)&&s.removeOption(e,i),o<s.caretPos&&s.setCaret(s.caretPos-1),s.refreshState(),s.updatePlaceholder(),s.updateOriginalInput({silent:i}),s.positionDropdown(),s.trigger("item_remove",e,n))},createItem:function(e,i){var n=this,o=n.caretPos;e=e||t.trim(n.$control_input.val()||"");var r=arguments[arguments.length-1];if("function"!=typeof r&&(r=function(){}),"boolean"!=typeof i&&(i=!0),!n.canCreate(e))return r(),!1;n.lock();var s="function"==typeof n.settings.create?this.settings.create:function(t){var e={};return e[n.settings.labelField]=t,e[n.settings.valueField]=t,e},a=P(function(t){if(n.unlock(),!t||"object"!=typeof t)return r();var e=k(t[n.settings.valueField]);return"string"!=typeof e?r():(n.setTextboxValue(""),n.addOption(t),n.setCaret(o),n.addItem(e),n.refreshOptions(i&&"single"!==n.settings.mode),void r(t))}),l=s.apply(this,[e,a]);return"undefined"!=typeof l&&a(l),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){this.refreshValidityState(),this.refreshClasses()},refreshValidityState:function(){if(!this.isRequired)return!1;var t=!this.items.length;this.isInvalid=t,this.$control_input.prop("required",t),this.$input.prop("required",!t)},refreshClasses:function(){var e=this,i=e.isFull(),n=e.isLocked;e.$wrapper.toggleClass("rtl",e.rtl),e.$control.toggleClass("focus",e.isFocused).toggleClass("disabled",e.isDisabled).toggleClass("required",e.isRequired).toggleClass("invalid",e.isInvalid).toggleClass("locked",n).toggleClass("full",i).toggleClass("not-full",!i).toggleClass("input-active",e.isFocused&&!e.isInputHidden).toggleClass("dropdown-active",e.isOpen).toggleClass("has-options",!t.isEmptyObject(e.options)).toggleClass("has-items",e.items.length>0),e.$control_input.data("grow",!i&&!n)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(t){var e,i,n,o,r=this;if(t=t||{},r.tagType===b){for(n=[],e=0,i=r.items.length;e<i;e++)o=r.options[r.items[e]][r.settings.labelField]||"",n.push('<option value="'+C(r.items[e])+'" selected="selected">'+C(o)+"</option>");n.length||this.$input.attr("multiple")||n.push('<option value="" selected="selected"></option>'),r.$input.html(n.join(""))}else r.$input.val(r.getValue()),r.$input.attr("value",r.$input.val());r.isSetup&&(t.silent||r.trigger("change",r.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var t=this.$control_input;this.items.length?t.removeAttr("placeholder"):t.attr("placeholder",this.settings.placeholder),t.triggerHandler("update",{force:!0})}},open:function(){var t=this;t.isLocked||t.isOpen||"multi"===t.settings.mode&&t.isFull()||(t.focus(),t.isOpen=!0,t.refreshState(),t.$dropdown.css({visibility:"hidden",display:"block"}),t.positionDropdown(),t.$dropdown.css({visibility:"visible"}),t.trigger("dropdown_open",t.$dropdown))},close:function(){var t=this,e=t.isOpen;"single"===t.settings.mode&&t.items.length&&(t.hideInput(),t.isBlurring||t.$control_input.blur()),t.isOpen=!1,t.$dropdown.hide(),t.setActiveOption(null),t.refreshState(),e&&t.trigger("dropdown_close",t.$dropdown)},positionDropdown:function(){var t=this.$control,e="body"===this.settings.dropdownParent?t.offset():t.position();e.top+=t.outerHeight(!0),this.$dropdown.css({width:t[0].getBoundingClientRect().width,top:e.top,left:e.left})},clear:function(t){var e=this;e.items.length&&(e.$control.children(":not(input)").remove(),e.items=[],e.lastQuery=null,e.setCaret(0),e.setActiveItem(null),e.updatePlaceholder(),e.updateOriginalInput({silent:t}),e.refreshState(),e.showInput(),e.trigger("clear"))},insertAtCaret:function(t){var e=Math.min(this.caretPos,this.items.length),i=t[0],n=this.buffer||this.$control[0];0===e?n.insertBefore(i,n.firstChild):n.insertBefore(i,n.childNodes[e]),this.setCaret(e+1)},deleteSelection:function(e){var i,n,o,r,s,a,l,c,d,u=this;if(o=e&&e.keyCode===m?-1:1,r=I(u.$control_input[0]),u.$activeOption&&!u.settings.hideSelected&&(l=u.getAdjacentOption(u.$activeOption,-1).attr("data-value")),s=[],u.$activeItems.length){for(d=u.$control.children(".active:"+(o>0?"last":"first")),a=u.$control.children(":not(input)").index(d),o>0&&a++,i=0,n=u.$activeItems.length;i<n;i++)s.push(t(u.$activeItems[i]).attr("data-value"));e&&(e.preventDefault(),e.stopPropagation())}else(u.isFocused||"single"===u.settings.mode)&&u.items.length&&(o<0&&0===r.start&&0===r.length?s.push(u.items[u.caretPos-1]):o>0&&r.start===u.$control_input.val().length&&s.push(u.items[u.caretPos]));if(!s.length||"function"==typeof u.settings.onDelete&&u.settings.onDelete.apply(u,[s])===!1)return!1;for("undefined"!=typeof a&&u.setCaret(a);s.length;)u.removeItem(s.pop());return u.showInput(),u.positionDropdown(),u.refreshOptions(!0),l&&(c=u.getOption(l),c.length&&u.setActiveOption(c)),!0},advanceSelection:function(t,e){var i,n,o,r,s,a,l=this;0!==t&&(l.rtl&&(t*=-1),i=t>0?"last":"first",n=I(l.$control_input[0]),l.isFocused&&!l.isInputHidden?(r=l.$control_input.val().length,s=t<0?0===n.start&&0===n.length:n.start===r,s&&!r&&l.advanceCaret(t,e)):(a=l.$control.children(".active:"+i),a.length&&(o=l.$control.children(":not(input)").index(a),l.setActiveItem(null),l.setCaret(t>0?o+1:o))))},advanceCaret:function(t,e){var i,n,o=this;0!==t&&(i=t>0?"next":"prev",o.isShiftDown?(n=o.$control_input[i](),n.length&&(o.hideInput(),o.setActiveItem(n),e&&e.preventDefault())):o.setCaret(o.caretPos+t))},setCaret:function(e){var i=this;if(e="single"===i.settings.mode?i.items.length:Math.max(0,Math.min(i.items.length,e)),!i.isPending){var n,o,r,s;for(r=i.$control.children(":not(input)"),n=0,o=r.length;n<o;n++)s=t(r[n]).detach(),n<e?i.$control_input.before(s):i.$control.append(s)}i.caretPos=e},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var t=this;t.$input.prop("disabled",!0),t.$control_input.prop("disabled",!0).prop("tabindex",-1),t.isDisabled=!0,t.lock()},enable:function(){var t=this;t.$input.prop("disabled",!1),t.$control_input.prop("disabled",!1).prop("tabindex",t.tabIndex),t.isDisabled=!1,t.unlock()},destroy:function(){var e=this,i=e.eventNS,n=e.revertSettings;e.trigger("destroy"),e.off(),e.$wrapper.remove(),e.$dropdown.remove(),e.$input.html("").append(n.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:n.tabindex}).show(),e.$control_input.removeData("grow"),e.$input.removeData("selectize"),0==--F.count&&F.$testInput&&(F.$testInput.remove(),F.$testInput=void 0),t(window).off(i),t(document).off(i),t(document.body).off(i),delete e.$input[0].selectize},render:function(e,i){var n,o,r="",s=!1,a=this;return"option"!==e&&"item"!==e||(n=k(i[a.settings.valueField]),s=!!n),s&&(S(a.renderCache[e])||(a.renderCache[e]={}),a.renderCache[e].hasOwnProperty(n))?a.renderCache[e][n]:(r=t(a.settings.render[e].apply(this,[i,C])),"option"===e||"option_create"===e?i[a.settings.disabledField]||r.attr("data-selectable",""):"optgroup"===e&&(o=i[a.settings.optgroupValueField]||"",r.attr("data-group",o),i[a.settings.disabledField]&&r.attr("data-disabled","")),"option"!==e&&"item"!==e||r.attr("data-value",n||""),s&&(a.renderCache[e][n]=r[0]),r[0])},clearCache:function(t){var e=this;"undefined"==typeof t?e.renderCache={}:delete e.renderCache[t]},canCreate:function(t){var e=this;if(!e.settings.create)return!1;var i=e.settings.createFilter;return t.length&&("function"!=typeof i||i.apply(e,[t]))&&("string"!=typeof i||new RegExp(i).test(t))&&(!(i instanceof RegExp)||i.test(t))}}),F.count=0,F.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},t.fn.selectize=function(e){var i=t.fn.selectize.defaults,n=t.extend({},i,e),o=n.dataAttr,r=n.labelField,s=n.valueField,a=n.disabledField,l=n.optgroupField,c=n.optgroupLabelField,d=n.optgroupValueField,u=function(e,i){var a,l,c,d,u=e.attr(o);if(u)for(i.options=JSON.parse(u),a=0,l=i.options.length;a<l;a++)i.items.push(i.options[a][s]);else{var p=t.trim(e.val()||"");if(!n.allowEmptyOption&&!p.length)return;for(c=p.split(n.delimiter),a=0,l=c.length;a<l;a++)d={},d[r]=c[a],d[s]=c[a],i.options.push(d);i.items=c}},p=function(e,i){var u,p,h,f,m=i.options,g={},v=function(t){var e=o&&t.attr(o);return"string"==typeof e&&e.length?JSON.parse(e):null},y=function(e,o){e=t(e);var c=k(e.val());if(c||n.allowEmptyOption)if(g.hasOwnProperty(c)){if(o){var d=g[c][l];d?t.isArray(d)?d.push(o):g[c][l]=[d,o]:g[c][l]=o}}else{var u=v(e)||{};u[r]=u[r]||e.text(),u[s]=u[s]||c,u[a]=u[a]||e.prop("disabled"),u[l]=u[l]||o,g[c]=u,m.push(u),e.is(":selected")&&i.items.push(c)}},_=function(e){var n,o,r,s,l;for(e=t(e),r=e.attr("label"),r&&(s=v(e)||{},s[c]=r,s[d]=r,s[a]=e.prop("disabled"),i.optgroups.push(s)),l=t("option",e),n=0,o=l.length;n<o;n++)y(l[n],r)};for(i.maxItems=e.attr("multiple")?null:1,f=e.children(),u=0,p=f.length;u<p;u++)h=f[u].tagName.toLowerCase(),"optgroup"===h?_(f[u]):"option"===h&&y(f[u])};return this.each(function(){if(!this.selectize){var o,r=t(this),s=this.tagName.toLowerCase(),a=r.attr("placeholder")||r.attr("data-placeholder");a||n.allowEmptyOption||(a=r.children('option[value=""]').text());var l={placeholder:a,options:[],optgroups:[],items:[]};"select"===s?p(r,l):u(r,l),o=new F(r,t.extend(!0,{},i,l,e))}})},t.fn.selectize.defaults=F.defaults,t.fn.selectize.support={validity:T},F.define("drag_drop",function(e){if(!t.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===this.settings.mode){var i=this;i.lock=function(){var t=i.lock;return function(){var e=i.$control.data("sortable");return e&&e.disable(),t.apply(i,arguments)}}(),i.unlock=function(){var t=i.unlock;return function(){var e=i.$control.data("sortable");return e&&e.enable(),t.apply(i,arguments)}}(),i.setup=function(){var e=i.setup;return function(){e.apply(this,arguments);
3var n=i.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:i.isLocked,start:function(t,e){e.placeholder.css("width",e.helper.css("width")),n.css({overflow:"visible"})},stop:function(){n.css({overflow:"hidden"});var e=i.$activeItems?i.$activeItems.slice():null,o=[];n.children("[data-value]").each(function(){o.push(t(this).attr("data-value"))}),i.setValue(o),i.setActiveItem(e)}})}}()}}),F.define("dropdown_header",function(e){var i=this;e=t.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(t){return'<div class="'+t.headerClass+'"><div class="'+t.titleRowClass+'"><span class="'+t.labelClass+'">'+t.title+'</span><a href="javascript:void(0)" class="'+t.closeClass+'">×</a></div></div>'}},e),i.setup=function(){var n=i.setup;return function(){n.apply(i,arguments),i.$dropdown_header=t(e.html(e)),i.$dropdown.prepend(i.$dropdown_header)}}()}),F.define("optgroup_columns",function(e){var i=this;e=t.extend({equalizeWidth:!0,equalizeHeight:!0},e),this.getAdjacentOption=function(e,i){var n=e.closest("[data-group]").find("[data-selectable]"),o=n.index(e)+i;return o>=0&&o<n.length?n.eq(o):t()},this.onKeyDown=function(){var t=i.onKeyDown;return function(e){var n,o,r,s;return!this.isOpen||e.keyCode!==c&&e.keyCode!==p?t.apply(this,arguments):(i.ignoreHover=!0,s=this.$activeOption.closest("[data-group]"),n=s.find("[data-selectable]").index(this.$activeOption),s=e.keyCode===c?s.prev("[data-group]"):s.next("[data-group]"),r=s.find("[data-selectable]"),o=r.eq(Math.min(r.length-1,n)),void(o.length&&this.setActiveOption(o)))}}();var n=function(){var t,e=n.width,i=document;return"undefined"==typeof e&&(t=i.createElement("div"),t.innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',t=t.firstChild,i.body.appendChild(t),e=n.width=t.offsetWidth-t.clientWidth,i.body.removeChild(t)),e},o=function(){var o,r,s,a,l,c,d;if(d=t("[data-group]",i.$dropdown_content),r=d.length,r&&i.$dropdown_content.width()){if(e.equalizeHeight){for(s=0,o=0;o<r;o++)s=Math.max(s,d.eq(o).height());d.css({height:s})}e.equalizeWidth&&(c=i.$dropdown_content.innerWidth()-n(),a=Math.round(c/r),d.css({width:a}),r>1&&(l=c-a*(r-1),d.eq(r-1).css({width:l})))}};(e.equalizeHeight||e.equalizeWidth)&&(O.after(this,"positionDropdown",o),O.after(this,"refreshOptions",o))}),F.define("remove_button",function(e){e=t.extend({label:"×",title:"Remove",className:"remove",append:!0},e);var i=function(e,i){i.className="remove-single";var n=e,o='<a href="javascript:void(0)" class="'+i.className+'" tabindex="-1" title="'+C(i.title)+'">'+i.label+"</a>",r=function(e,i){return t("<span>").append(e).append(i)};e.setup=function(){var s=n.setup;return function(){if(i.append){var a=t(n.$input.context).attr("id"),l=(t("#"+a),n.settings.render.item);n.settings.render.item=function(t){return r(l.apply(e,arguments),o)}}s.apply(e,arguments),e.$control.on("click","."+i.className,function(t){t.preventDefault(),n.isLocked||n.clear()})}}()},n=function(e,i){var n=e,o='<a href="javascript:void(0)" class="'+i.className+'" tabindex="-1" title="'+C(i.title)+'">'+i.label+"</a>",r=function(t,e){var i=t.search(/(<\/[^>]+>\s*)$/);return t.substring(0,i)+e+t.substring(i)};e.setup=function(){var s=n.setup;return function(){if(i.append){var a=n.settings.render.item;n.settings.render.item=function(t){return r(a.apply(e,arguments),o)}}s.apply(e,arguments),e.$control.on("click","."+i.className,function(e){if(e.preventDefault(),!n.isLocked){var i=t(e.currentTarget).parent();n.setActiveItem(i),n.deleteSelection()&&n.setCaret(n.items.length)}})}}()};return"single"===this.settings.mode?void i(this,e):void n(this,e)}),F.define("restore_on_backspace",function(t){var e=this;t.text=t.text||function(t){return t[this.settings.labelField]},this.onKeyDown=function(){var i=e.onKeyDown;return function(e){var n,o;return e.keyCode===m&&""===this.$control_input.val()&&!this.$activeItems.length&&(n=this.caretPos-1,n>=0&&n<this.items.length)?(o=this.options[this.items[n]],this.deleteSelection(e)&&(this.setTextboxValue(t.text.apply(this,[o])),this.refreshOptions(!0)),void e.preventDefault()):i.apply(this,arguments)}}()}),F}),!function(t,e){"use strict";"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.baguetteBox=e()}(this,function(){"use strict";function t(t){if(D.hasOwnProperty(t)){var e=D[t].galleries;[].forEach.call(e,function(t){[].forEach.call(t,function(t){m(t.imageElement,"click",t.eventHandler)}),A===t&&(A=[])}),delete D[t]}}function e(t){switch(t.keyCode){case 37:l();break;case 39:a();break;case 27:r();break;case 36:!function(t){return t&&t.preventDefault(),c(0)}(t);break;case 35:!function(t){return t&&t.preventDefault(),c(A.length-1)}(t)}}function i(t,e){if(A!==t){for((A=t,function(t){t=t||{};for(var e in O)C[e]=O[e],"undefined"!=typeof t[e]&&(C[e]=t[e]);_.style.transition=_.style.webkitTransition="fadeIn"===C.animation?"opacity .4s ease":"slideIn"===C.animation?"":"none","auto"===C.buttons&&("ontouchstart"in window||1===A.length)&&(C.buttons=!1),w.style.display=b.style.display=C.buttons?"":"none";
vendor: 4,706 bytes, line 3
3try{y.style.backgroundColor=C.overlayBackgroundColor}catch(i){}}(e));_.firstChild;)_.removeChild(_.firstChild);for(var i,n=[],o=[],r=R.length=0;r<t.length;r++)(i=v("div")).className="full-image",i.id="baguette-img-"+r,R.push(i),n.push("baguetteBox-figure-"+r),o.push("baguetteBox-figcaption-"+r),_.appendChild(R[r]);y.setAttribute("aria-labelledby",n.join(" ")),y.setAttribute("aria-describedby",o.join(" "))}}function n(t){C.noScrollbars&&(document.documentElement.style.overflowY="hidden",document.body.style.overflowY="scroll"),"block"!==y.style.display&&(f(document,"keydown",e),I={count:0,startX:null,startY:null},s($=t,function(){p($),h($)}),u(),y.style.display="block",C.fullScreen&&function(){y.requestFullscreen?y.requestFullscreen():y.webkitRequestFullscreen?y.webkitRequestFullscreen():y.mozRequestFullScreen&&y.mozRequestFullScreen()}(),setTimeout(function(){y.className="visible",C.bodyClass&&document.body.classList&&document.body.classList.add(C.bodyClass),C.afterShow&&C.afterShow()},50),C.onChange&&C.onChange($,R.length),M=document.activeElement,o(),E=!0)}function o(){C.buttons?w.focus():x.focus()}function r(){C.noScrollbars&&(document.documentElement.style.overflowY="auto",document.body.style.overflowY="auto"),"none"!==y.style.display&&(m(document,"keydown",e),y.className="",setTimeout(function(){y.style.display="none",document.fullscreen&&function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}(),C.bodyClass&&document.body.classList&&document.body.classList.remove(C.bodyClass),C.afterHide&&C.afterHide(),M&&M.focus(),E=!1},500))}function s(t,e){var i=R[t],n=A[t];if(void 0!==i&&void 0!==n)if(i.getElementsByTagName("img")[0])e&&e();else{var o=n.imageElement,r=o.getElementsByTagName("img")[0],s="function"==typeof C.captions?C.captions.call(A,o):o.getAttribute("data-caption")||o.title,a=function(t){var e=t.href;if(t.dataset){var i=[];for(var n in t.dataset)"at-"!==n.substring(0,3)||isNaN(n.substring(3))||(i[n.replace("at-","")]=t.dataset[n]);for(var o=Object.keys(i).sort(function(t,e){return parseInt(t,10)<parseInt(e,10)?-1:1}),r=window.innerWidth*window.devicePixelRatio,s=0;s<o.length-1&&o[s]<r;)s++;e=i[o[s]]||e}return e}(o),l=v("figure");if(l.id="baguetteBox-figure-"+t,l.innerHTML='<div class="baguetteBox-spinner"><div class="baguetteBox-double-bounce1"></div><div class="baguetteBox-double-bounce2"></div></div>',C.captions&&s){var c=v("figcaption");c.id="baguetteBox-figcaption-"+t,c.innerHTML=s,l.appendChild(c)}i.appendChild(l);var d=v("img");d.onload=function(){var i=document.querySelector("#baguette-img-"+t+" .baguetteBox-spinner");l.removeChild(i),!C.async&&e&&e()},d.setAttribute("src",a),d.alt=r&&r.alt||"",C.titleTag&&s&&(d.title=s),l.appendChild(d),C.async&&e&&e()}}function a(){return c($+1)}function l(){return c($-1)}function c(t,e){return!E&&0<=t&&t<e.length?(i(e,C),n(t),!0):t<0?(C.animation&&d("left"),!1):t>=R.length?(C.animation&&d("right"),!1):(s($=t,function(){p($),h($)}),u(),C.onChange&&C.onChange($,R.length),!0)}function d(t){_.className="bounce-from-"+t,setTimeout(function(){_.className=""},400)}function u(){var t=100*-$+"%";"fadeIn"===C.animation?(_.style.opacity=0,setTimeout(function(){P.transforms?_.style.transform=_.style.webkitTransform="translate3d("+t+",0,0)":_.style.left=t,_.style.opacity=1},400)):P.transforms?_.style.transform=_.style.webkitTransform="translate3d("+t+",0,0)":_.style.left=t}function p(t){t-$>=C.preload||s(t+1,function(){p(t+1)})}function h(t){$-t>=C.preload||s(t-1,function(){h(t-1)})}function f(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent("on"+e,function(t){(t=t||window.event).target=t.target||t.srcElement,i(t)})}function m(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent("on"+e,i)}function g(t){return document.getElementById(t)}function v(t){return document.createElement(t)}var y,_,w,b,x,T='<svg width="44" height="60"><polyline points="30 10 10 30 30 50" stroke="rgba(255,255,255,0.5)" stroke-width="4"stroke-linecap="butt" fill="none" stroke-linejoin="round"/></svg>',S='<svg width="44" height="60"><polyline points="14 10 34 30 14 50" stroke="rgba(255,255,255,0.5)" stroke-width="4"stroke-linecap="butt" fill="none" stroke-linejoin="round"/></svg>',k='<svg width="30" height="30"><g stroke="rgb(160,160,160)" stroke-width="4"><line x1="5" y1="5" x2="25" y2="25"/><line x1="5" y1="25" x2="25" y2="5"/></g></svg>',C={},O={captions:!0,buttons:"auto",fullScreen:!1,noScrollbars:!1,bodyClass:"baguetteBox-open",titleTag:!1,async:!1,preload:2,animation:"slideIn",afterShow:null,afterHide:null,onChange:null,overlayBackgroun
3dColor:"rgba(0,0,0,.8)"},P={},A=[],$=0,E=!1,I={},z=!1,L=/.+\.(gif|jpe?g|png|webp)/i,D={},R=[],M=null,F=function(t){-1!==t.target.id.indexOf("baguette-img")&&r()},j=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,l()},B=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,a()},N=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,r()},H=function(t){I.count++,1<I.count&&(I.multitouch=!0),I.startX=t.changedTouches[0].pageX,I.startY=t.changedTouches[0].pageY; 4},W=function(t){if(!z&&!I.multitouch){t.preventDefault?t.preventDefault():t.returnValue=!1;var e=t.touches[0]||t.changedTouches[0];40<e.pageX-I.startX?(z=!0,l()):e.pageX-I.startX<-40?(z=!0,a()):100<I.startY-e.pageY&&r()}},q=function(){I.count--,I.count<=0&&(I.multitouch=!1),z=!1},V=function(){q()},Y=function(t){"block"===y.style.display&&y.contains&&!y.contains(t.target)&&(t.stopPropagation(),o())};return[].forEach||(Array.prototype.forEach=function(t,e){for(var i=0;i<this.length;i++)t.call(e,this[i],i,this)}),[].filter||(Array.prototype.filter=function(t,e,i,n,o){for(i=this,n=[],o=0;o<i.length;o++)t.call(e,i[o],o,i)&&n.push(i[o]);return n}),{run:function(e,o){return P.transforms=function(){var t=v("div");return"undefined"!=typeof t.style.perspective||"undefined"!=typeof t.style.webkitPerspective}(),P.svg=function(){var t=v("div");return t.innerHTML="<svg/>","http://www.w3.org/2000/svg"===(t.firstChild&&t.firstChild.namespaceURI)}(),P.passiveEvents=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(i){}return t}(),function(){return(y=g("baguetteBox-overlay"))?(_=g("baguetteBox-slider"),w=g("previous-button"),b=g("next-button"),void(x=g("close-button"))):((y=v("div")).setAttribute("role","dialog"),y.id="baguetteBox-overlay",document.getElementsByTagName("body")[0].appendChild(y),(_=v("div")).id="baguetteBox-slider",y.appendChild(_),(w=v("button")).setAttribute("type","button"),w.id="previous-button",w.setAttribute("aria-label","Previous"),w.innerHTML=P.svg?T:"<",y.appendChild(w),(b=v("button")).setAttribute("type","button"),b.id="next-button",b.setAttribute("aria-label","Next"),b.innerHTML=P.svg?S:">",y.appendChild(b),(x=v("button")).setAttribute("type","button"),x.id="close-button",x.setAttribute("aria-label","Close"),x.innerHTML=P.svg?k:"×",y.appendChild(x),w.className=b.className=x.className="baguetteBox-button",function(){var t=P.passiveEvents?{passive:!1}:null,e=P.passiveEvents?{passive:!0}:null;f(y,"click",F),f(w,"click",j),f(b,"click",B),f(x,"click",N),f(_,"contextmenu",V),f(y,"touchstart",H,e),f(y,"touchmove",W,t),f(y,"touchend",q),f(document,"focus",Y,!0)}(),void 0)}(),t(e),function(t,e){var o=document.querySelectorAll(t),r={galleries:[],nodeList:o};return D[t]=r,[].forEach.call(o,function(t){e&&e.filter&&(L=e.filter);var o=[];if(o="A"===t.tagName?[t]:t.getElementsByTagName("a"),0!==(o=[].filter.call(o,function(t){if(-1===t.className.indexOf(e&&e.ignoreClass))return L.test(t.href)})).length){var s=[];[].forEach.call(o,function(t,o){var r=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1,i(s,e),n(o)},a={eventHandler:r,imageElement:t};f(t,"click",r),s.push(a)}),r.galleries.push(s)}}),r.galleries}(e,o)},show:c,showNext:a,showPrevious:l,hide:r,destroy:function(){!function(){var t=P.passiveEvents?{passive:!1}:null,e=P.passiveEvents?{passive:!0}:null;m(y,"click",F),m(w,"click",j),m(b,"click",B),m(x,"click",N),m(_,"contextmenu",V),m(y,"touchstart",H,e),m(y,"touchmove",W,t),m(y,"touchend",q),m(document,"focus",Y,!0)}(),function(){for(var e in D)D.hasOwnProperty(e)&&t(e)}(),m(document,"keydown",e),document.getElementsByTagName("body")[0].removeChild(document.getElementById("baguetteBox-overlay")),D={},A=[],$=0}}}),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.tingle=e()}(this,function(){function t(t){var e={onClose:null,onOpen:null,beforeClose:null,stickyFooter:!1,footer:!1,cssClass:[],closeLabel:"Close",closeMethods:["overlay","button","escape"]};this.opts=c({},e,t),this.init()}function e(){this.modalBoxFooter&&(this.modalBoxFooter.style.width=this.modalBox.clientWidth+"px",this.modalBoxFooter.style.left=this.modalBox.offsetLeft+"px")}function i(){this.modal=document.createElement("div"),this.modal.classList.add("tingle-modal"),0!==this.opts.closeMethods.length&&this.opts.closeMethods.indexOf("overlay")!==-1||this.modal.classList.add("tingle-modal--noOverlayClose"),this.modal.style.display="none",this.opts.cssClass.forEach(function(t){"string"==typeof t&&this.modal.classList.add(t)},this),this.opts.closeMethods.indexOf("button")!==-1&&(this.modalCloseBtn=document.createElement("button"),this.modalCloseBtn.classList.add("tingle-modal__close"),this.modalCloseBtnIcon=document.createElement("span"),this.modalCloseBtnIcon.classList.add("tingle-modal__closeIcon"),this.modalCloseBtnIcon.innerHTML="Ã",this.modalCloseBtnLabel=document.createElement("span"),this.modalCloseBtnLabel.classList.add("tingle-modal__closeLabel"),this.modalCloseBtnLabel.innerHTML=this.opts.closeLabel,this.modalCloseBtn.appendChild(this.modalCloseBtnIcon),this.modalCloseBtn.appendChild(this.modalCloseBtnLabel)),this.modalBox=document.createElement("div"),this.modalBox.classList.add("tingle-modal-box"),this.modalBoxContent=document.createElement("div"),this.modalBoxContent.classList.add("tingle-modal-box__content"),this.modalBox.appendChild(this.modalBoxContent),this.opts.closeMethods.indexOf("button")!==-1&&this.modal.appendChild(this.modalCloseBtn),this.modal.appendChild(this.modalBox)}function n(){this.modalBoxFooter=document.createElement("div"),this.modalBoxFooter.classList.add("tingle-modal-box__footer"),this.modalBox.appendChild(this.modalBoxFooter)}function o(){this._events={clickCloseBtn:this.close.bind(this),clickOverlay:s.bind(this),resize:this.checkOverflow.bind(this),keyboardNav:r.bind(this)},this.opts.closeMethods.indexOf("button")!==-1&&this.modalCloseBtn.addEventListener("click",this._events.clickCloseBtn),this.modal.addEventListener("mousedown",this._events.clickOverlay),window.addEventListener("resize",this._events.resize),document.addEventListener("keydown",this._events.keyboardNav)}function r(t){this.opts.closeMethods.indexOf("escape")!==-1&&27===t.which&&this.isOpen()&&this.close()}function s(t){this.opts.closeMethods.indexOf("overlay")!==-1&&!a(t.target,"tingle-modal")&&t.clientX<this.modal.clientWidth&&this.close()}function a(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}function l(){this.opts.closeMethods.indexOf("button")!==-1&&this.modalCloseBtn.removeEventListener("click",this._events.clickCloseBtn),this.modal.removeEventListener("mousedown",this._events.clickOverlay),window.removeEventListener("resize",this._events.resize),document.removeEventListener("keydown",this._events.keyboardNav)}function c(){for(var t=1;t<arguments.length;t++)for(var e in arguments[t])arguments[t].hasOwnProperty(e)&&(arguments[0][e]=arguments[t][e]);return arguments[0]}function d(){var t,e=document.createElement("tingle-test-transition"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in i)if(void 0!==e.style[t])return i[t]}var u=d();return t.prototype.init=function(){this.modal||(i.call(this),o.call(this),document.body.insertBefore(this.modal,document.body.firstChild),this.opts.footer&&this.addFooter())},t.prototype.destroy=function(){null!==this.modal&&(l.call(this),this.modal.parentNode.removeChild(this.modal),this.modal=null)},t.prototype.open=function(){this.modal.style.removeProperty?this.modal.style.removeProperty("display"):this.modal.style.removeAttribute("display"),document.body.classList.add("tingle-enabled"),this.setStickyFooter(this.opts.stickyFooter),this.modal.classList.add("tingle-modal--visible");var t=this;u?this.modal.addEventListener(u,function e(){"function"==typeof t.opts.onOpen&&t.opts.onOpen.call(t),t.modal.removeEventListener(u,e,!1)},!1):"function"==typeof t.opts.onOpen&&t.opts.onOpen.call(t),this.checkOverflow()},t.prototype.isOpen=function(){return!!this.modal.classList.contains("tingle-modal--visible")},t.prototype.close=function(){if("function"==typeof this.opts.beforeClose){var t=this.opts.beforeClose.call(this);if(!t)return}document.body.classList.remove("tingle-enabled"),this.modal.classList.remove("tingle-modal--visible");var e=this;u?this.modal.addEventListener(u,function i(){e.modal.removeEventListener(u,i,!1),e.modal.style.display="none","function"==typeof e.o
4pts.onClose&&e.opts.onClose.call(this)},!1):(e.modal.style.display="none","function"==typeof e.opts.onClose&&e.opts.onClose.call(this))},t.prototype.setContent=function(t){"string"==typeof t?this.modalBoxContent.innerHTML=t:(this.modalBoxContent.innerHTML="",this.modalBoxContent.appendChild(t))},t.prototype.getContent=function(){return this.modalBoxContent},t.prototype.addFooter=function(){n.call(this)},t.prototype.setFooterContent=function(t){this.modalBoxFooter.innerHTML=t},t.prototype.getFooterContent=function(){return this.modalBoxFooter},t.prototype.setStickyFooter=function(t){this.isOverflow()||(t=!1),t?this.modalBox.contains(this.modalBoxFooter)&&(this.modalBox.removeChild(this.modalBoxFooter),this.modal.appendChild(this.modalBoxFooter),this.modalBoxFooter.classList.add("tingle-modal-box__footer--sticky"),e.call(this),this.modalBoxContent.style["padding-bottom"]=this.modalBoxFooter.clientHeight+20+"px"):this.modalBoxFooter&&(this.modalBox.contains(this.modalBoxFooter)||(this.modal.removeChild(this.modalBoxFooter),this.modalBox.appendChild(this.modalBoxFooter),this.modalBoxFooter.style.width="auto",this.modalBoxFooter.style.left="",this.modalBoxContent.style["padding-bottom"]="",this.modalBoxFooter.classList.remove("tingle-modal-box__footer--sticky")))},t.prototype.addFooterBtn=function(t,e,i){var n=document.createElement("button");return n.innerHTML=t,n.addEventListener("click",i),"string"==typeof e&&e.length&&e.split(" ").forEach(function(t){n.classList.add(t)}),this.modalBoxFooter.appendChild(n),n},t.prototype.resize=function(){console.warn("Resize is deprecated and will be removed in version 1.0")},t.prototype.isOverflow=function(){var t=window.innerHeight,e=this.modalBox.clientHeight;return e>=t},t.prototype.checkOverflow=function(){this.modal.classList.contains("tingle-modal--visible")&&(this.isOverflow()?this.modal.classList.add("tingle-modal--overflow"):this.modal.classList.remove("tingle-modal--overflow"),!this.isOverflow()&&this.opts.stickyFooter?this.setStickyFooter(!1):this.isOverflow()&&this.opts.stickyFooter&&(e.call(this),this.setStickyFooter(!0)))},{modal:t}}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){if(Array.isArray(t))return t;var e="object"==typeof t&&"number"==typeof t.length;return e?c.call(t):[t]}function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);var s=t;return"string"==typeof t&&(s=document.querySelectorAll(t)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof e?r=e:i(this.options,e),r&&this.on("always",r),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(this.check.bind(this))):void l.error("Bad element for imagesLoaded "+(s||t))}function r(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}var a=t.jQuery,l=t.console,c=Array.prototype.slice;o.prototype=Object.create(e.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEac
vendor: 5,099 bytes, line 4
4h(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),this.options.background===!0&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&d[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=t.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var d={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},o.prototype.addImage=function(t){var e=new r(t);this.images.push(e)},o.prototype.addBackground=function(t,e){var i=new s(t,e);this.images.push(i)},o.prototype.check=function(){function t(t,i,n){setTimeout(function(){e.progress(t,i,n)})}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e){e.once("progress",t),e.check()}):void this.complete()},o.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+i,t,e)},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},r.prototype=Object.create(e.prototype),r.prototype.check=function(){var t=this.getIsImageComplete();return t?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},r.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var t=this.getIsImageComplete();t&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},o.makeJQueryPlugin=function(e){e=e||t.jQuery,e&&(a=e,a.fn.imagesLoaded=function(t,e){var i=new o(this,t,e);return i.jqDeferred.promise(a(this))})},o.makeJQueryPlugin(),o}),function(){"use strict";function t(n){if(!n)throw new Error("No options passed to Waypoint constructor");if(!n.element)throw new Error("No element option passed to Waypoint constructor");if(!n.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,n),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=n.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var n in i)e.push(i[n]);for(var o=0,r=e.length;o<r;o++)e[o][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()}
vendor: 5,104 bytes, line 4
4,t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=o.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,n[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,n={},o=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete n[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,o.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){e.didScroll&&!o.isTouch||(e.didScroll=!0,o.requestAnimationFrame(t))})},e.prototype.handleResize=function(){o.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var n=e[i],o=n.newScroll>n.oldScroll,r=o?n.forward:n.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s],l=n.oldScroll<a.triggerPoint,c=n.newScroll>=a.triggerPoint,d=l&&c,u=!l&&!c;(d||u)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}for(var p in t)t[p].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?o.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?o.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,o=t.length;n<o;n++)t[n].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),n={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var r in t){var s=t[r];for(var a in this.waypoints[r]){var l,c,d,u,p,h=this.waypoints[r][a],f=h.options.offset,m=h.triggerPoint,g=0,v=null==m;h.element!==h.element.window&&(g=h.adapter.offset()[s.offsetProp]),"function"==typeof f?f=f.apply(h):"string"==typeof f&&(f=parseFloat(f),h.options.offset.indexOf("%")>-1&&(f=Math.ceil(s.contextDimension*f/100))),l=s.contextScroll-s.contextOffset,h.triggerPoint=g+l-f,c=m<s.oldScroll,d=h.triggerPoint>=s.oldScroll,u=c&&d,p=!c&&!d,!v&&u?(h.queueTrigger(s.backward),n[h.group.id]=h.group):!v&&p?(h.queueTrigger(s.forward),n[h.group.id]=h.group):v&&s.oldScroll>=h.triggerPoint&&(h.queueTrigger(s.forward),n[h.group.id]=h.group)}}return o.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in n)n[t].refresh()},e.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},o.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},o.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}var n={vertical:{},horizontal:{}},o=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],r
4ight:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var n=this.triggerQueues[i],o="up"===i||"left"===i;n.sort(o?e:t);for(var r=0,s=n.length;r<s;r+=1){var a=n[r];(a.options.continuous||r===n.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=o.Adapter.inArray(e,this.waypoints),n=i===this.waypoints.length-1;return n?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=o.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=o.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return n[t.axis][t.name]||new i(t)},o.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,n){t[n]=e[n]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],n=arguments[0];return t.isFunction(arguments[0])&&(n=t.extend({},arguments[1]),n.handler=arguments[0]),this.each(function(){var o=t.extend({},n,{element:this});"string"==typeof o.context&&(o.context=t(this).closest(o.context)[0]),i.push(new e(o))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}(),function(){"use strict";function t(n){this.options=e.extend({},i.defaults,t.defaults,n),this.element=this.options.element,this.$element=e(this.element),this.createWrapper(),this.createWaypoint()}var e=window.jQuery,i=window.Waypoint;t.prototype.createWaypoint=function(){var t=this.options.handler;this.waypoint=new i(e.extend({},this.options,{element:this.wrapper,handler:e.proxy(function(e){var i=this.options.direction.indexOf(e)>-1,n=i?this.$element.outerHeight(!0):"";this.$wrapper.height(n),this.$element.toggleClass(this.options.stuckClass,i),t&&t.call(this,e)},this)}))},t.prototype.createWrapper=function(){this.options.wrapper&&this.$element.wrap(this.options.wrapper),this.$wrapper=this.$element.parent(),this.wrapper=this.$wrapper[0]},t.prototype.destroy=function(){this.$element.parent()[0]===this.wrapper&&(this.waypoint.destroy(),this.$element.removeClass(this.options.stuckClass),this.options.wrapper&&this.$element.unwrap())},t.defaults={wrapper:'<div class="sticky-wrapper" />',stuckClass:"stuck",direction:"down right"},i.Sticky=t}(),function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function l(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,l){var c=a.data(l,i);if(!c)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=c[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var u=d.apply(c,n);o=void 0===o?u:o}),void 0!==o?o:t}function c(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return l(this,t,e)}return c(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<c;e++){var i=l[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,u=0;u<c;u++){var p=l[u],h=r[p],f=parseFloat(h);a[p]=isNaN(f)?0:f}var m=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,v=a.marginLeft+a.marginRight,y=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,w=a.borderTopWidth+a.borderBottomWidth,b=d&&s,x=t(r.width);x!==!1&&(a.width=x+(b?0:m+_));var T=t(r.height);return T!==!1&&(a.height=T+(b?0:g+w)),a.innerWidth=a.width-(m+_),a.innerHeight=a.height-(g+w),a.outerWidth=a.width+v,a.outerHeight=a.height+y,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],c=l.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
4sandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s="data-"+r,a=document.querySelectorAll("["+s+"]"),l=d
vendor: 6,876 bytes, lines 4-5
4ocument.querySelectorAll(".js-"+r),c=i.makeArray(a).concat(i.makeArray(l)),d=s+"-options",u=t.jQuery;c.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(a){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+a))}var l=new e(t,i);u&&u.data(t,n,l); 5})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r=document.documentElement.style,s="string"==typeof r.transition?"transition":"WebkitTransition",a="string"==typeof r.transform?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],c={transform:a,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=c[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=parseFloat(n),s=parseFloat(o),a=this.layout.size;n.indexOf("%")!=-1&&(r=r/100*a.width),o.indexOf("%")!=-1&&(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var l=n?"paddingTop":"paddingBottom",c=n?"top":"bottom",d=n?"bottom":"top",u=this.position.y+t[l];e[c]=this.getYValue(u),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),o&&!this.isTransitioning)return void this.layoutPosition();var r=t-i,s=e-n,a={};a.transform=this.getTranslate(r,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var u="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:u,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(l,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var p={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=p[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var h={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(h)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.f
vendor: 4,165 bytes, line 5
5izzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(l&&l.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,c&&(this.$element=c(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++u;this.element.outlayerGUID=o,p[o]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=f[n]||1;return i*o}var l=t.console,c=t.jQuery,d=function(){},u=0,p={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var h=r.prototype;n.extend(h,e.prototype),h.option=function(t){n.extend(this.options,t)},h._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},h._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},h.reloadItems=function(){this.items=this._itemize(this.element.children)},h._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},h._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},h.getItemElements=function(){return this.items.map(function(t){return t.element})},h.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},h._init=h.layout,h._resetLayout=function(){this.getSize()},h.getSize=function(){this.size=i(this.element)},h._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},h.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},h._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},h._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},h._getItemLayoutPosition=function(){return{x:0,y:0}},h._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},h.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},h._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},h._postLayout=function(){this.resizeContainer()},h.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},h._getContainerSize=d,h._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},h._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){s++,s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})}
vendor: 7,002 bytes, line 5
5,h.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),c)if(this.$element=this.$element||c(this.element),e){var o=c.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},h.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},h.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},h.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},h.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},h._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},h._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},h._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},h._manageStamp=d,h._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},h.handleEvent=n.handleEvent,h.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},h.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},h.onresize=function(){this.resize()},n.debounceMethod(r,"onresize",100),h.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},h.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},h.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},h.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},h.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},h.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},h.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},h.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},h.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},h.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},h.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},h.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},h.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete p[e],delete this.element.outlayerGUID,c&&c.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&p[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),c&&c.bridget&&c.bridget(t,i),i};var f={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&s<1?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&e<1?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,l=n+r.col,c=r.col;c<l;c++)this.colYs[c]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var l=Math.floor(s/this.columnWidth);l-=s%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var c=this._getOption("originTop"),d=(c?n.top:n.bottom)+i.outerHeight,u=a;u<=l;u++)this.colYs[u]=Math.max(d,this.colYs[u])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
5),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var o in t)e.d(n,o,function(e){return t[e]}.bind(null,o));return n},e.n=function(t){var i=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=10)}([,,function(t,e){t.exports=function(t){"complete"===document.readyState||"interactive"===document.readyState?t.call():document.attachEvent?document.attachEvent("onreadystatechange",function(){"interactive"===document.readyState&&t.call()}):document.addEventListener&&document.addEventListener("DOMContentLoaded",t)}},function(t,e,i){(function(e){var i;i="undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{},t.exports=i}).call(this,i(4))},function(t,e){function i(t){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(o){"object"===("undefined"==typeof window?"undefined":i(window))&&(n=window)}t.exports=n},,,,,,function(t,e,i){t.exports=i(11)},function(t,e,i){"use strict";function n(t){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}i.r(e);var o=i(2),r=i.n(o),s=i(3),a=(i.n(s),i(12)),l=s.window.jarallax;if(s.window.jarallax=a["default"],s.window.jarallax.noConflict=function(){return s.window.jarallax=l,this},"undefined"!=typeof s.jQuery){var c=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];Array.prototype.unshift.call(e,this);var o=a["default"].apply(s.window,e);return"object"!==n(o)?o:this};c.constructor=a["default"].constructor;var d=s.jQuery.fn.jarallax;s.jQuery.fn.jarallax=c,s.jQuery.fn.jarallax.noConflict=function(){return s.jQuery.fn.jarallax=d,this}}r()(function(){Object(a["default"])(document.querySelectorAll("[data-jarallax]"))})},function(t,e,i){"use strict";function n(t,e){return l(t)||a(t,e)||r(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,e){if(t){if("string"==typeof t)return s(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function a(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(l){o=!0,r=l}finally{try{n||null==a["return"]||a["return"]()}finally{if(o)throw r}}return i}}function l(t){if(Array.isArray(t))return t}function c(t){"@babel/helpers - typeof";return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function p(t,e,i){return e&&u(t.prototype,e),i&&u(t,i),t}function h(){return!v&&document.body&&(v=document.createElement("div"),v.style.cssText="position: fixed; top: -9999px; left: 0; height: 100vh; width: 0;",document.body.appendChild(v)),(v?v.clientHeight:0)||b.window.innerHeight||document.documentElement.clientHeight}function f(){y=S?h():b.window.innerHeight||document.documentElement.clientHeight}function m(t){for(var e=[];null!==t.parentElement;)t=t.parentElement,1===t.nodeType&&e.push(t);return e}function g(){C.length&&(C.forEach(function(t,e){var i=t.instance,n=t.oldData,o=i.$item.getBoundingClientRect(),r={width:o.width,height:o.height,top:o.top,bottom:o.bottom,wndW:b.window.innerWidth,wndH:y},s=!n||n.wndW!==r.wndW||n.wndH!==r.wndH||n.width!==r.width||n.height!==r.height,a=s||!n||n.top!==r.top||n.bottom!==r.bottom;C[e].oldData=r,s&&i.onResize(),a&&i.onScroll()}),b.window.requestAnimationFrame(g))}i.r(e);var v,y,_=i(2),w=i.n(_),b=i(3),x=(i.n(b),b.window.navigator),T=-1<x.userAgent.indexOf("MSIE ")||-1<x.userAgent.indexOf("Trident/")||-1<x.userAgent.indexOf("Edge/"),S=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(x.userAgent),k=function(){for(var t="transform WebkitTransform MozTransform".split(" "),e=document.createElement("div"),i=0;i<t.length;i+=1)if(e&&void 0!==e.style[t[i]])return t[i];return!1}();f(),b.window.addEventListener("resize",f),b.window.addEventListener("orientationchange",f),b.window.addEventListener("load",f),w()(function(){f({type:"dom-loaded"})});var C=[],O=0,P=function(){function t(e,i){d(this,t);var o=this;o.instanceID=O,O+=1,o.$item=e,o.defaults={type:"scroll",speed:.5,imgSrc:null,imgElement:".jarallax-img",imgSize:"cover",imgPosition:"50% 50%",imgRepeat:"no-repeat",keepImg:!1,elementInViewport:null,zIndex:-100,disableParallax:!1,disableVideo:!1,videoSrc:null,videoStartTime:0,videoEndTime:0,videoVolume:0,videoLoop:!0,videoPlayOnlyVisible:!0,videoLazyLoading:!0,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null};var r=o.$item.dataset||{},s={};if(Object.keys(r).forEach(function(t){var e=t.substr(0,1).toLowerCase()+t.substr(1);e&&"undefined"!=typeof o.defaults[e]&&(s[e]=r[t])}),o.options=o.extend({},o.defaults,s,i),o.pureOptions=o.extend({}
5,o.options),Object.keys(o.options).forEach(function(t){"true"===o.options[t]?o.options[t]=!0:"false"===o.options[t]&&(o.options[t]=!1)}),o.options.speed=Math.min(2,Math.max(-1,parseFloat(o.options.speed))),"string"==typeof o.options.disableParallax&&(o.options.disableParallax=new RegExp(o.options.disableParallax)),o.options.disableParallax instanceof RegExp){var a=o.options.disableParallax;o.options.disableParallax=function(){return a.test(x.userAgent)}}if("function"!=typeof o.options.disableParallax&&(o.options.disableParallax=function(){return!1}),"string"==typeof o.options.disableVideo&&(o.options.disableVideo=new RegExp(o.options.disableVideo)),o.options.disableVideo instanceof RegExp){var l=o.options.disableVideo;o.options.disableVideo=function(){return l.test(x.userAgent)}}"function"!=typeof o.options.disableVideo&&(o.options.disableVideo=function(){return!1});var u=o.options.elementInViewport;if(u&&"object"===c(u)&&"undefined"!=typeof u.length){var p=u,h=n(p,1);u=h[0]}u instanceof Element||(u=null),o.options.elementInViewport=u,o.image={src:o.options.imgSrc||null,$container:null,useImgTag:!1,position:/iPad|iPhone|iPod|Android/.test(x.userAgent)?"absolute":"fixed"},o.initImg()&&o.canInitParallax()&&o.init()}return p(t,[{key:"css",value:function(t,e){return"string"==typeof e?b.window.getComputedStyle(t).getPropertyValue(e):(e.transform&&k&&(e[k]=e.transform),Object.keys(e).forEach(function(i){t.style[i]=e[i]}),t)}},{key:"extend",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return t=t||{}
5,Object.keys(i).forEach(function(e){i[e]&&Object.keys(i[e]).forEach(function(n){t[n]=i[e][n]})}),t}},{key:"getWindowData",value:function(){return{width:b.window.innerWidth||document.documentElement.clientWidth,height:y,y:document.documentElement.scrollTop}}},{key:"initImg",value:function(){var t=this,e=t.options.imgElement;return e&&"string"==typeof e&&(e=t.$item.querySelector(e)),e instanceof Element||(t.options.imgSrc?(e=new Image,e.src=t.options.imgSrc):e=null),e&&(t.options.keepImg?t.image.$item=e.cloneNode(!0):(t.image.$item=e,t.image.$itemParent=e.parentNode),t.image.useImgTag=!0),!!t.image.$item||(null===t.image.src&&(t.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",t.image.bgImage=t.css(t.$item,"background-image")),!(!t.image.bgImage||"none"===t.image.bgImage))}},{key:"canInitParallax",value:function(){return k&&!this.options.disableParallax()}},{key:"init",value:function(){var t=this,e={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"},i={pointerEvents:"none",transformStyle:"preserve-3d",backfaceVisibility:"hidden",willChange:"transform,opacity"};if(!t.options.keepImg){var n=t.$item.getAttribute("style");if(n&&t.$item.setAttribute("data-jarallax-original-styles",n),t.image.useImgTag){var o=t.image.$item.getAttribute("style");o&&t.image.$item.setAttribute("data-jarallax-original-styles",o)}}if("static"===t.css(t.$item,"position")&&t.css(t.$item,{position:"relative"}),"auto"===t.css(t.$item,"z-index")&&t.css(t.$item,{zIndex:0}),t.image.$container=document.createElement("div"),t.css(t.image.$container,e),t.css(t.image.$container,{"z-index":t.options.zIndex}),T&&t.css(t.image.$container,{opacity:.9999}),t.image.$container.setAttribute("id","jarallax-container-".concat(t.instanceID)),t.$item.appendChild(t.image.$container),t.image.useImgTag?i=t.extend({"object-fit":t.options.imgSize,"object-position":t.options.imgPosition,"font-family":"object-fit: ".concat(t.options.imgSize,"; object-position: ").concat(t.options.imgPosition,";"),"max-width":"none"},e,i):(t.image.$item=document.createElement("div"),t.image.src&&(i=t.extend({"background-position":t.options.imgPosition,"background-size":t.options.imgSize,"background-repeat":t.options.imgRepeat,"background-image":t.image.bgImage||'url("'.concat(t.image.src,'")')},e,i))),"opacity"!==t.options.type&&"scale"!==t.options.type&&"scale-opacity"!==t.options.type&&1!==t.options.speed||(t.image.position="absolute"),"fixed"===t.image.position){var r=m(t.$item).filter(function(t){var e=b.window.getComputedStyle(t),i=e["-webkit-transform"]||e["-moz-transform"]||e.transform,n=/(auto|scroll)/;return i&&"none"!==i||n.test(e.overflow+e["overflow-y"]+e["overflow-x"])});t.image.position=r.length?"absolute":"fixed"}i.position=t.image.position,t.css(t.image.$item,i),t.image.$container.appendChild(t.image.$item),t.onResize(),t.onScroll(!0),t.options.onInit&&t.options.onInit.call(t),"none"!==t.css(t.$item,"background-image")&&t.css(t.$item,{"background-image":"none"}),t.addToParallaxList()}},{key:"addToParallaxList",value:function(){C.push({instance:this}),1===C.length&&b.window.requestAnimationFrame(g)}},{key:"removeFromParallaxList",value:function(){var t=this;C.forEach(function(e,i){e.instance.instanceID===t.instanceID&&C.splice(i,1)})}},{key:"destroy",value:function(){var t=this;t.removeFromParallaxList();var e=t.$item.getAttribute("data-jarallax-original-styles");if(t.$item.removeAttribute("data-jarallax-original-styles"),e?t.$item.setAttribute("style",e):t.$item.removeAttribute("style"),t.image.useImgTag){var i=t.image.$item.getAttribute("data-jarallax-original-styles");t.image.$item.removeAttribute("data-jarallax-original-styles"),i?t.image.$item.setAttribute("style",e):t.image.$item.removeAttribute("style"),t.image.$itemParent&&t.image.$itemParent.appendChild(t.image.$item)}t.$clipStyles&&t.$clipStyles.parentNode.removeChild(t.$clipStyles),t.image.$container&&t.image.$container.parentNode.removeChild(t.image.$container),t.options.onDestroy&&t.options.onDestroy.call(t),delete t.$item.jarallax}},{key:"clipContainer",value:function(){if("fixed"===this.image.position){var t=this,e=t.image.$container.getBoundingClientRect(),i=e.width,n=e.he
5ight;if(!t.$clipStyles){t.$clipStyles=document.createElement("style"),t.$clipStyles.setAttribute("type","text/css"),t.$clipStyles.setAttribute("id","jarallax-clip-".concat(t.instanceID));var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(t.$clipStyles)}var r="#jarallax-container-".concat(t.instanceID," {\n clip: rect(0 ").concat(i,"px ").concat(n,"px 0);\n clip: rect(0, ").concat(i,"px, ").concat(n,"px, 0);\n }");t.$clipStyles.styleSheet?t.$clipStyles.styleSheet.cssText=r:t.$clipStyles.innerHTML=r}}},{key:"coverImage",value:function(){var t=this,e=t.image.$container.getBoundingClientRect(),i=e.height,n=t.options.speed,o="scroll"===t.options.type||"scroll-opacity"===t.options.type,r=0,s=i,a=0;return o&&(0>n?(r=n*Math.max(i,y),y<i&&(r-=n*(i-y))):r=n*(i+y),1<n?s=Math.abs(r-y):0>n?s=r/n+Math.abs(r):s+=(y-i)*(1-n),r/=2),t.parallaxScrollDistance=r,a=o?(y-s)/2:(i-s)/2,t.css(t.image.$item,{height:"".concat(s,"px"),marginTop:"".concat(a,"px"),left:"fixed"===t.image.position?"".concat(e.left,"px"):"0",width:"".concat(e.width,"px")}),t.options.onCoverImage&&t.options.onCoverImage.call(t),{image:{height:s,marginTop:a},container:e}}},{key:"isVisible",value:function(){return this.isElementInViewport||!1}},{key:"onScroll",value:function(t){var e=this,i=e.$item.getBoundingClientRect(),n=i.top,o=i.height,r={},s=i;if(e.options.elementInViewport&&(s=e.options.elementInViewport.getBoundingClientRect()),e.isElementInViewport=0<=s.bottom&&0<=s.right&&s.top<=y&&s.left<=b.window.innerWidth,t||e.isElementInViewport){var a=Math.max(0,n),l=Math.max(0,o+n),c=Math.max(0,-n),d=Math.max(0,n+o-y),u=Math.max(0,o-(n+o-y)),p=Math.max(0,-n+y-o),h=1-2*((y-n)/(y+o)),f=1;if(o<y?f=1-(c||d)/o:l<=y?f=l/y:u<=y&&(f=u/y),"opacity"!==e.options.type&&"scale-opacity"!==e.options.type&&"scroll-opacity"!==e.options.type||(r.transform="translate3d(0,0,0)",r.opacity=f),"scale"===e.options.type||"scale-opacity"===e.options.type){var m=1;0>e.options.speed?m-=e.options.speed*f:m+=e.options.speed*(1-f),r.transform="scale(".concat(m,") translate3d(0,0,0)")}if("scroll"===e.options.type||"scroll-opacity"===e.options.type){var g=e.parallaxScrollDistance*h;"absolute"===e.image.position&&(g-=n),r.transform="translate3d(0,".concat(g,"px,0)")}e.css(e.image.$item,r), 6e.options.onScroll&&e.options.onScroll.call(e,{section:i,beforeTop:a,beforeTopEnd:l,afterTop:c,beforeBottom:d,beforeBottomEnd:u,afterBottom:p,visiblePercent:f,fromViewportCenter:h})}}},{key:"onResize",value:function(){this.coverImage(),this.clipContainer()}}]),t}(),A=function(t,e){("object"===("undefined"==typeof HTMLElement?"undefined":c(HTMLElement))?t instanceof HTMLElement:t&&"object"===c(t)&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)&&(t=[t]);for(var i,n=t.length,o=0,r=arguments.length,s=new Array(r>2?r-2:0),a=2;a<r;a++)s[a-2]=arguments[a];for(o;o<n;o+=1)if("object"===c(e)||"undefined"==typeof e?t[o].jarallax||(t[o].jarallax=new P(t[o],e)):t[o].jarallax&&(i=t[o].jarallax[e].apply(t[o].jarallax,s)),"undefined"!=typeof i)return i;return t};A.constructor=P,e["default"]=A}]),function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var o in t)e.d(n,o,function(e){return t[e]}.bind(null,o));return n},e.n=function(t){var i=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=6)}([,,function(t,e){t.exports=function(t){"complete"===document.readyState||"interactive"===document.readyState?t.call():document.attachEvent?document.attachEvent("onreadystatechange",function(){"interactive"===document.readyState&&t.call()}):document.addEventListener&&document.addEventListener("DOMContentLoaded",t)}}
6,function(t,e,i){(function(e){var i;i="undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{},t.exports=i}).call(this,i(4))},function(t,e){function i(t){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(o){"object"===("undefined"==typeof window?"undefined":i(window))&&(n=window)}t.exports=n},,function(t,e,i){t.exports=i(7)},function(t,e,i){"use strict";i.r(e);var n=i(8),o=i(3),r=i.n(o),s=i(2),a=i.n(s),l=i(9);r.a.VideoWorker=r.a.VideoWorker||n["default"],Object(l["default"])(),a()(function(){"undefined"!=typeof r.a.jarallax&&r.a.jarallax(document.querySelectorAll("[data-jarallax-video]"))})},function(t,e,i){"use strict";function n(t){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,i){return e&&r(t.prototype,e),i&&r(t,i),t}function a(){this.doneCallbacks=[],this.failCallbacks=[]}i.r(e),i.d(e,"default",function(){return v});var l=i(3),c=i.n(l);a.prototype={execute:function(t,e){var i=t.length;for(e=Array.prototype.slice.call(e);i;)i-=1,t[i].apply(null,e)},resolve:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this.execute(this.doneCallbacks,e)},reject:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this.execute(this.failCallbacks,e)},done:function(t){this.doneCallbacks.push(t)},fail:function(t){this.failCallbacks.push(t)}};var d=0,u=0,p=0,h=0,f=0,m=new a,g=new a,v=function(){function t(e,i){o(this,t);var n=this;n.url=e,n.options_default={autoplay:!1,loop:!1,mute:!1,volume:100,showContols:!0,startTime:0,endTime:0},n.options=n.extend({},n.options_default,i),n.videoID=n.parseURL(e),n.videoID&&(n.ID=d,d+=1,n.loadAPI(),n.init())}return s(t,[{key:"extend",value:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e[0]||{};return Object.keys(e).forEach(function(t){e[t]&&Object.keys(e[t]).forEach(function(i){n[i]=e[t][i]})}),n}},{key:"parseURL",value:function(t){function e(t){var e=/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/,i=t.match(e);return!(!i||11!==i[1].length)&&i[1]}function i(t){var e=/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/,i=t.match(e);return!(!i||!i[3])&&i[3]}function n(t){var e=t.split(/,(?=mp4\:|webm\:|ogv\:|ogg\:)/),i={},n=0;return e.forEach(function(t){var e=t.match(/^(mp4|webm|ogv|ogg)\:(.*)/);e&&e[1]&&e[2]&&(i["ogv"===e[1]?"ogg":e[1]]=e[2],n=1)}),!!n&&i}var o=e(t),r=i(t),s=n(t);return o?(this.type="youtube",o):r?(this.type="vimeo",r):!!s&&(this.type="local",s)}},{key:"isValid",value:function(){return!!this.videoID}},{key:"on",value:function(t,e){this.userEventsList=this.userEventsList||[],(this.userEventsList[t]||(this.userEventsList[t]=[])).push(e)}},{key:"off",value:function(t,e){var i=this;this.userEventsList&&this.userEventsList[t]&&(e?this.userEventsList[t].forEach(function(n,o){n===e&&(i.userEventsList[t][o]=!1)}):delete this.userEventsList[t])}},{key:"fire",value:function(t){for(var e=this,i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];this.userEventsList&&"undefined"!=typeof this.userEventsList[t]&&this.userEventsList[t].forEach(function(t){t&&t.apply(e,n)})}},{key:"play",value:function(t){var e=this;e.player&&("youtube"===e.type&&e.player.playVideo&&("undefined"!=typeof t&&e.player.seekTo(t||0),c.a.YT.PlayerState.PLAYING!==e.player.getPlayerState()&&e.player.playVideo()),"vimeo"===e.type&&("undefined"!=typeof t&&e.player.setCurrentTime(t),e.player.getPaused().then(function(t){t&&e.player.play()})),"local"===e.type&&("undefined"!=typeof t&&(e.player.currentTime=t),e.player.paused&&e.player.play()))}},{key:"pause",value:function(){var t=this;t.player&&("youtube"===t.type&&t.player.pauseVideo&&c.a.YT.PlayerState.PLAYING===t.player.getPlayerState()&&t.player.pauseVideo(),"vimeo"===t.type&&t.player.getPaused().then(function(e){e||t.player.pause()}),"local"===t.type&&(t.player.paused||t.player.pause()))}},{key:"mute",value:function(){var t=this;t.player&&("youtube"===t.type&&t.player.mute&&t.player.mute(),"vimeo"===t.type&&t.player.setVolume&&t.player.setVolume(0),"local"===t.type&&(t.$video.muted=!0))}},{key:"unmute",value:function(){var t=this;t.player&&("youtube"===t.type&&t.player.mute&&t.player.unMute(),"vimeo"===t.type&&t.player.setVolume&&t.player.setVolume(t.options.volume),"local"===t.type&&(t.$video.muted=!1))}},{key:"setVolume",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this;e.player&&t&&("youtube"===e.type&&e.player.setVolume&&e.player.setVolume(t),"vimeo"===e.type&&e.player.setVolume&&e.player.setVolume(t),"local"===e.type&&(e.$video.volume=t/100))}},{key:"getVolume",value:function(t){var e=this;return e.player?("youtube"===e.type&&e.player.getVolume&&t(e.player.getVolume()),"vimeo"===e.type&&e.player.getVolume&&e.player.getVolume().then(function(e){t(e)}),void("local"===e.type&&t(100*e.$video.volume))):void t(!1)}},{key:"getMuted",value:function(t){var e=this;return e.player?("youtube"===e.type&&e.player.isMuted&&t(e.player.isMuted()),"vimeo"===e.type&&e.player.getVolume&&e.player.getVolume().then(function(e){t(!!e)}),void("local"===e.type&&t(e.$video.muted))):void t(null)}},{key:"getImageURL",value:function(t){var e=this;if(e.videoImage)return void t(e.videoImage);if("youtube"===e.type){var i=["maxresdefault","sddefault","hqdefault","0"],n=0,o=new Image;
6o.onload=function(){120!==(this.naturalWidth||this.width)||n===i.length-1?(e.videoImage="https://img.youtube.com/vi/".concat(e.videoID,"/").concat(i[n],".jpg"),t(e.videoImage)):(n+=1,this.src="https://img.youtube.com/vi/".concat(e.videoID,"/").concat(i[n],".jpg"))},o.src="https://img.youtube.com/vi/".concat(e.videoID,"/").concat(i[n],".jpg")}if("vimeo"===e.type){var r=new XMLHttpRequest;r.open("GET","https://vimeo.com/api/v2/video/".concat(e.videoID,".json"),!0),r.onreadystatechange=function(){if(4===this.readyState&&200<=this.status&&400>this.status){var i=JSON.parse(this.responseText);e.videoImage=i[0].thumbnail_large,t(e.videoImage)}},r.send(),r=null}}},{key:"getIframe",value:function(t){this.getVideo(t)}},{key:"getVideo",value:function(t){var e=this;return e.$video?void t(e.$video):void e.onAPIready(function(){function i(t,e,i){var n=document.createElement("source");n.src=e,n.type=i,t.appendChild(n)}var n;if(e.$video||(n=document.createElement("div"),n.style.display="none"),"youtube"===e.type){e.playerOptions={},e.playerOptions.videoId=e.videoID,e.playerOptions.playerVars={autohide:1,rel:0,autoplay:0,playsinline:1},e.options.showContols||(e.playerOptions.playerVars.iv_load_policy=3,e.playerOptions.playerVars.modestbranding=1,e.playerOptions.playerVars.controls=0,e.playerOptions.playerVars.showinfo=0,e.playerOptions.playerVars.disablekb=1);var o,r;e.playerOptions.events={onReady:function(t){if(e.options.mute?t.target.mute():e.options.volume&&t.target.setVolume(e.options.volume),e.options.autoplay&&e.play(e.options.startTime),e.fire("ready",t),e.options.loop&&!e.options.endTime){var i=.1;e.options.endTime=e.player.getDuration()-i}setInterval(function(){e.getVolume(function(i){e.options.volume!==i&&(e.options.volume=i,e.fire("volumechange",t))})},150)},onStateChange:function(t){e.options.loop&&t.data===c.a.YT.PlayerState.ENDED&&e.play(e.options.startTime),o||t.data!==c.a.YT.PlayerState.PLAYING||(o=1,e.fire("started",t)),t.data===c.a.YT.PlayerState.PLAYING&&e.fire("play",t),t.data===c.a.YT.PlayerState.PAUSED&&e.fire("pause",t),t.data===c.a.YT.PlayerState.ENDED&&e.fire("ended",t),t.data===c.a.YT.PlayerState.PLAYING?r=setInterval(function(){e.fire("timeupdate",t),e.options.endTime&&e.player.getCurrentTime()>=e.options.endTime&&(e.options.loop?e.play(e.options.startTime):e.pause())},150):clearInterval(r)},onError:function(t){e.fire("error",t)}};var s=!e.$video;if(s){var a=document.createElement("div");a.setAttribute("id",e.playerID),n.appendChild(a),document.body.appendChild(n)}e.player=e.player||new c.a.YT.Player(e.playerID,e.playerOptions),s&&(e.$video=document.getElementById(e.playerID),e.videoWidth=parseInt(e.$video.getAttribute("width"),10)||1280,e.videoHeight=parseInt(e.$video.getAttribute("height"),10)||720)}if("vimeo"===e.type){if(e.playerOptions={id:e.videoID,autopause:0,transparent:0,autoplay:e.options.autoplay?1:0,loop:e.options.loop?1:0,muted:e.options.mute?1:0},e.options.volume&&(e.playerOptions.volume=e.options.volume),e.options.showContols||(e.playerOptions.badge=0,e.playerOptions.byline=0,e.playerOptions.portrait=0,e.playerOptions.title=0,e.playerOptions.background=1),!e.$video){var l="";Object.keys(e.playerOptions).forEach(function(t){""!==l&&(l+="&"),l+="".concat(t,"=").concat(encodeURIComponent(e.playerOptions[t]))}),e.$video=document.createElement("iframe"),e.$video.setAttribute("id",e.playerID),e.$video.setAttribute("src","https://player.vimeo.com/video/".concat(e.videoID,"?").concat(l)),e.$video.setAttribute("frameborder","0"),e.$video.setAttribute("mozallowfullscreen",""),e.$video.setAttribute("allowfullscreen",""),n.appendChild(e.$video),document.body.appendChild(n)}e.player=e.player||new c.a.Vimeo.Player(e.$video,e.playerOptions),e.options.startTime&&e.options.autoplay&&e.player.setCurrentTime(e.options.startTime),e.player.getVideoWidth().then(function(t){e.videoWidth=t||1280}),e.player.getVideoHeight().then(function(t){e.videoHeight=t||720});var d;e.player.on("timeupdate",function(t){d||(e.fire("started",t),d=1),e.fire("timeupdate",t),e.options.endTime&&e.options.endTime&&t.seconds>=e.options.endTime&&(e.options.loop?e.play(e.options.startTime):e.pause())}),e.player.on("play",function(t){e.fire("play",t),e.options.startTime&&0===t.seconds&&e.play(e.options.startTime)}),e.player.on("pause",function(t){e.fire("pause",t)}),e.player.on("ended",function(t){e.fire("ended",t)}),e.player.on("loaded",function(t){e.fire("ready",t)}),e.player.on("volumechange",function(t){e.fire("volumechange",t)}),e.player.on("error",function(t){e.fire("error",t)})}if("local"===e.type){e.$video||(e.$video=document.createElement("video"),e.options.showContols&&(e.$video.controls=!0),e.options.mute?e.$video.muted=!0:e.$video.volume&&(e.$video.volume=e.options.volume/100),e.options.loop&&(e.$video.loop=!0),e.$video.setAttribute("playsinline",""),e.$video.setAttribute("webkit-playsinline",""),e.$video.setAttribute("id",e.playerID),n.appendChild(e.$video),document.body.appendChild(n),Object.keys(e.videoID).forEac
6h(function(t){i(e.$video,e.videoID[t],"video/".concat(t))})),e.player=e.player||e.$video;var u;e.player.addEventListener("playing",function(t){u||e.fire("started",t),u=1}),e.player.addEventListener("timeupdate",function(t){e.fire("timeupdate",t),e.options.endTime&&e.options.endTime&&this.currentTime>=e.options.endTime&&(e.options.loop?e.play(e.options.startTime):e.pause())}),e.player.addEventListener("play",function(t){e.fire("play",t)}),e.player.addEventListener("pause",function(t){e.fire("pause",t)}),e.player.addEventListener("ended",function(t){e.fire("ended",t)}),e.player.addEventListener("loadedmetadata",function(){e.videoWidth=this.videoWidth||1280,e.videoHeight=this.videoHeight||720,e.fire("ready"),e.options.autoplay&&e.play(e.options.startTime)}),e.player.addEventListener("volumechange",function(t){e.getVolume(function(t){e.options.volume=t}),e.fire("volumechange",t)}),e.player.addEventListener("error",function(t){e.fire("error",t)})}t(e.$video)})}},{key:"init",value:function(){var t=this;t.playerID="VideoWorker-".concat(t.ID)}},{key:"loadAPI",value:function(){var t=this;if(!u||!p){var e="";if("youtube"!==t.type||u||(u=1,e="https://www.youtube.com/iframe_api"),"vimeo"===t.type&&!p){if(p=1,"undefined"!=typeof c.a.Vimeo)return;e="https://player.vimeo.com/api/player.js"}if(e){var i=document.createElement("script"),n=document.getElementsByTagName("head")[0];i.src=e,n.appendChild(i),n=null,i=null}}}},{key:"onAPIready",value:function(t){var e=this;if("youtube"===e.type&&("undefined"!=typeof c.a.YT&&0!==c.a.YT.loaded||h?"object"===n(c.a.YT)&&1===c.a.YT.loaded?t():m.done(function(){t()}):(h=1,window.onYouTubeIframeAPIReady=function(){window.onYouTubeIframeAPIReady=null,m.resolve("done"),t()})),"vimeo"===e.type)if("undefined"!=typeof c.a.Vimeo||f)"undefined"!=typeof c.a.Vimeo?t():g.done(function(){t()});else{f=1;var i=setInterval(function(){"undefined"!=typeof c.a.Vimeo&&(clearInterval(i),g.resolve("done"),t())},20)}"local"===e.type&&t()}}]),t}()},function(t,e,i){"use strict";function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.a.jarallax;if("undefined"!=typeof t){var e=t.constructor,i=e.prototype.onScroll;e.prototype.onScroll=function(){var t=this;i.apply(t);var e=!t.isVideoInserted&&t.video&&(!t.options.videoLazyLoading||t.isElementInViewport)&&!t.options.disableVideo();e&&(t.isVideoInserted=!0,t.video.getVideo(function(e){var i=e.parentNode;t.css(e,{position:t.image.position,top:"0px",left:"0px",right:"0px",bottom:"0px",width:"100%",height:"100%",maxWidth:"none",maxHeight:"none",margin:0,zIndex:-1}),t.$video=e,"local"===t.video.type&&(t.image.src?t.$video.setAttribute("poster",t.image.src):t.image.$item&&"IMG"===t.image.$item.tagName&&t.image.$item.src&&t.$video.setAttribute("poster",t.image.$item.src)),t.image.$container.appendChild(e),i.parentNode.removeChild(i)}))};var n=e.prototype.coverImage;e.prototype.coverImage=function(){var t=this,e=n.apply(t),i=!!t.image.$item&&t.image.$item.nodeName;if(e&&t.video&&i&&("IFRAME"===i||"VIDEO"===i)){var o=e.image.height,r=o*t.image.width/t.image.height,s=(e.container.width-r)/2,a=e.image.marginTop;e.container.width>r&&(r=e.container.width,o=r*t.image.height/t.image.width,s=0,a+=(e.image.height-o)/2),"IFRAME"===i&&(o+=400,a-=200),t.css(t.$video,{width:"".concat(r,"px"),marginLeft:"".concat(s,"px"),height:"".concat(o,"px"),marginTop:"".concat(a,"px")})}return e};var r=e.prototype.initImg;e.prototype.initImg=function(){var t=this,e=r.apply(t);return t.options.videoSrc||(t.options.videoSrc=t.$item.getAttribute("data-jarallax-video")||null),t.options.videoSrc?(t.defaultInitImgResult=e,!0):e};var a=e.prototype.canInitParallax;e.prototype.canInitParallax=function(){function t(){e.image.$default_item&&(e.image.$item=e.image.$default_item,e.image.$item.style.display="block",e.coverImage(),e.clipContainer(),e.onScroll())}var e=this,i=a.apply(e);if(!e.options.videoSrc)return i;var n=new o["default"](e.options.videoSrc,{autoplay:!0,loop:e.options.videoLoop,showContols:!1,startTime:e.options.videoStartTime||0,endTime:e.options.videoEndTime||0,mute:e.options.videoVolume?0:1,volume:e.options.videoVolume||0});if(n.isValid())if(this.options.disableParallax()&&(i=!0,e.image.position="absolute",e.options.type="scroll",e.options.speed=1),i){if(n.on("ready",function(){if(e.options.videoPlayOnlyVisible){var t=e.onScroll;e.onScroll=function(){t.apply(e),e.videoError||!e.options.videoLoop&&(e.options.videoLoop||e.videoEnded)||(e.isVisible()?n.play():n.pause())}}else n.play()}),n.on("started",function(){e.image.$default_item=e.image.$item,e.image.$item=e.$video,e.image.width=e.video.videoWidth||1280,e.
vendor: 117,979 bytes, lines 6-10
6image.height=e.video.videoHeight||720,e.coverImage(),e.clipContainer(),e.onScroll(),e.image.$default_item&&(e.image.$default_item.style.display="none")}),n.on("ended",function(){e.videoEnded=!0,t()}),n.on("error",function(){e.videoError=!0,t()}),e.video=n,!e.defaultInitImgResult&&(e.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7","local"!==n.type))return n.getImageURL(function(t){e.image.bgImage='url("'.concat(t,'")'),e.init()}),!1}else e.defaultInitImgResult||n.getImageURL(function(t){var i=e.$item.getAttribute("style");i&&e.$item.setAttribute("data-jarallax-original-styles",i),e.css(e.$item,{"background-image":'url("'.concat(t,'")'),"background-position":"center","background-size":"cover"})});return i};var l=e.prototype.destroy;e.prototype.destroy=function(){var t=this;t.image.$default_item&&(t.image.$item=t.image.$default_item,delete t.image.$default_item),l.apply(t)}}}i.r(e),i.d(e,"default",function(){return n});var o=i(8),r=i(3),s=i.n(r)}]);var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var n=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},o=function(t,e,i){var n,o,r=t.cycle;for(n in r)o=r[n],t[n]="function"==typeof o?o(i,e[i],e):o[i%o.length];delete t.cycle},r=function(t){if("function"==typeof t)return t;var e="object"==typeof t?t:{each:t},i=e.ease,n=e.from||0,o=e.base||0,r={},s=isNaN(n),a=e.axis,l={center:.5,end:1}[n]||0;return function(t,c,d){var u,p,h,f,m,g,v,y,_,w=(d||e).length,b=r[w];if(!b){if(_="auto"===e.grid?0:(e.grid||[1/0])[0],!_){for(v=-(1/0);v<(v=d[_++].getBoundingClientRect().left)&&w>_;);_--}for(b=r[w]=[],u=s?Math.min(_,w)*l-.5:n%_,p=s?w*l/_-.5:n/_|0,v=0,y=1/0,g=0;w>g;g++)h=g%_-u,f=p-(g/_|0),b[g]=m=a?Math.abs("y"===a?f:h):Math.sqrt(h*h+f*f),m>v&&(v=m),y>m&&(y=m);b.max=v-y,b.min=y,b.v=w=e.amount||e.each*(_>w?w-1:a?"y"===a?w/_:_:Math.max(_,w/_))||0,b.b=0>w?o-w:o}return w=(b[t]-b.min)/b.max,b.b+(i?i.getRatio(w):w)*b.v}},s=function(t,e,n){i.call(this,t,e,n),this._cycle=0,this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=s.prototype.render},a=1e-8,l=i._internals,c=l.isSelector,d=l.isArray,u=s.prototype=i.to({},.1,{}),p=[];s.version="2.1.3",u.constructor=s,u.kill()._gc=!1,s.killTweensOf=s.killDelayedCallsTo=i.killTweensOf,s.getTweensOf=i.getTweensOf,s.lagSmoothing=i.lagSmoothing,s.ticker=i.ticker,s.render=i.render,s.distribute=r,u.invalidate=function(){return this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),i.prototype.invalidate.call(this)},u.updateTo=function(t,e){var n,o=this,r=o.ratio,s=o.vars.immediateRender||t.immediateRender;e&&o._startTime<o._timeline._time&&(o._startTime=o._timeline._time,o._uncache(!1),o._gc?o._enabled(!0,!1):o._timeline.insert(o,o._startTime-o._delay));for(n in t)o.vars[n]=t[n];if(o._initted||s)if(e)o._initted=!1,s&&o.render(0,!0,!0);else if(o._gc&&o._enabled(!0,!1),o._notifyPluginsOfEnabled&&o._firstPT&&i._onPluginEvent("_onDisable",o),o._time/o._duration>.998){var a=o._totalTime;o.render(0,!0,!1),o._initted=!1,o.render(a,!0,!1)}else if(o._initted=!1,o._init(),o._time>0||s)for(var l,c=1/(1-r),d=o._firstPT;d;)l=d.s+d.c,d.c*=c,d.s=l-d.c,d=d._next;return o},u.render=function(t,e,n){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var o,r,s,c,d,u,p,h,f,m=this,g=m._dirty?m.totalDuration():m._totalDuration,v=m._time,y=m._totalTime,_=m._cycle,w=m._duration,b=m._rawPrevTime;if(t>=g-a&&t>=0?(m._totalTime=g,m._cycle=m._repeat,m._yoyo&&0!==(1&m._cycle)?(m._time=0,m.ratio=m._ease._calcEnd?m._ease.getRatio(0):0):(m._time=w,m.ratio=m._ease._calcEnd?m._ease.getRatio(1):1),m._reversed||(o=!0,r="onComplete",n=n||m._timeline.autoRemoveChildren),0===w&&(m._initted||!m.vars.lazy||n)&&(m._startTime===m._timeline._duration&&(t=0),(0>b||0>=t&&t>=-a||b===a&&"isPause"!==m.data)&&b!==t&&(n=!0,b>a&&(r="onReverseComplete")),m._rawPrevTime=h=!e||t||b===t?t:a)):a>t?(m._totalTime=m._time=m._cycle=0,m.ratio=m._ease._calcEnd?m._ease.getRatio(0):0,(0!==y||0===w&&b>0)&&(r="onReverseComplete",o=m._reversed),t>-a?t=0:0>t&&(m._active=!1,0===w&&(m._initted||!m.vars.lazy||n)&&(b>=0&&(n=!0),m._rawPrevTime=h=!e||t||b===t?t:a)),m._initted||(n=!0)):(m._totalTime=m._time=t,0!==m._repeat&&(c=w+m._repeatDelay,m._cycle=m._totalTime/c>>0,0!==m._cycle&&m._cycle===m._totalTime/c&&t>=y&&m._cycle--,m._time=m._totalTime-m._cycle*c,m._yoyo&&0!==(1&m._cycle)&&(m._time=w-m._time,f=m._yoyoEase||m.vars.yoyoEase,f&&(m._yoyoEase||(f!==!0||m._initted?m._yoyoEase=f=f===!0?m._ease:f instanceof Ease?f:Ease.map[f]:(f=m.vars.ease,m._yoyoEase=f=f?f instanceof Ease?f:"function"==typeof f?new Ease(f,m.vars.easeParams):Ease.map[f]||i.defaultEase:i.defaultEase)),m.ratio=f?1-f.getRatio((w-m._time)/w):0)),m._time>w?m._time=w:m._time<0&&(m._time=0)),m._easeType&&!f?(d=m._time/w,u=m._easeType,p=m._easePower,(1===u||3===u&&d>=.5)&&(d=1-d),3===u&&(d*=2),1===p?d*=d:2===p?d*=d*d:3===p?d*=d*d*d:4===p&&(d*=d*d*d*d),m.ratio=1===u?1-d:2===u?d:m._time/w<.5?d/2:1-d/2):f||(m.ratio=m._ease.getRatio(m._time/w))),v===m._time&&!n&&_===m._cycle)return void(y!==m._totalTime&&m._onUpdate&&(e||m._callback("onUpdate")));if(!m._initted){if(m._init(),!m._initted||m._gc)return;if(!n&&m._firstPT&&(m.vars.lazy!==!1&&m._duration||m.vars.lazy&&!m._duration))return m._time=v,m._totalTime=y,m._rawPrevTime=b,m._cycle=_,l.lazyTweens.push(m),void(m._lazy=[t,e]);!m._time||o||f?o&&this._ease._calcEnd&&!f&&(m.ratio=m._ease.getRatio(0===m._time?0:1)):m.ratio=m._ease.getRatio(m._time/w)}for(m._lazy!==!1&&(m._lazy=!1),m._active||!m._paused&&m._time!==v&&t>=0&&(m._active=!0),0===y&&(2===m._initted&&t>0&&m._init(),m._startAt&&(t>=0?m._startAt.render(t,!0,n):r||(r="_dummyGS")),m.vars.onStart&&(0!==m._totalTime||0===w)&&(e||m._callback("onStart"))),s=m._firstPT;s;)s.f?s.t[s.p](s.c*m.ratio+s.s):s.t[s.p]=s.c*m.ratio+s.s,s=s._next;m._onUpdate&&(0>t&&m._startAt&&m._startTime&&m._startAt.render(t,!0,n),e||(m._totalTime!==y||r)&&m._callback("onUpdate")),m._cycle!==_&&(e||m._gc||m.vars.onRepeat&&m._callback("onRepeat")),r&&(!m._gc||n)&&(0>t&&m._startAt&&!m._onUpdate&&m._startTime&&m._startAt.render(t,!0,n),o&&(m._timeline.autoRemoveChildren&&m._enabled(!1,!1),m._active=!1),!e&&m.vars[r]&&m._callback(r),0===w&&m._rawPrevTime===a&&h!==a&&(m._rawPrevTime=0))},s.to=function(t,e,i){return new s(t,e,i)},s.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new s(t,e,i)},s.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new s(t,e,n)},s.staggerTo=s.allTo=function(t,e,a,l,u,h,f){var m,g,v,y,_=[],w=r(a.stagger||l),b=a.cycle,x=(a.startAt||p).cycle;for(d(t)||("string"==typeof t&&(t=i.selector(t)||t),c(t)&&(t=n(t))),t=t||[],m=t.length-1,v=0;m>=v;v++){g={};for(y in a)g[y]=a[y];if(b&&(o(g,t,v),null!=g.duration&&(e=g.duration,delete g.duration)),x){x=g.startAt={};for(y in a.startAt)x[y]=a.startAt[y];o(g.startAt,t,v)}g.delay=w(v,t[v],t)+(g.delay||0),v===m&&u&&(g.onComplete=function(){a.onComplete&&a.onComplete.apply(a.onCompleteScope||this,arguments),u.apply(f||a.callbackScope||this,h||p)}),_[v]=new s(t[v],e,g)}return _},s.staggerFrom=s.allFrom=function(t,e,i,n,o,r,a){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,s.staggerTo(t,e,i,n,o,r,a)},s.staggerFromTo=s.allFromTo=function(t,e,i,n,o,r,a,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,s.staggerTo(t,e,n,o,r,a,l)},s.delayedCall=function(t,e,i,n,o){return new s(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:o,overwrite:0})},s.set=function(t,e){return new s(t,0,e)},s.isTweening=function(t){return i.getTweensOf(t,!0).length>0};var h=function(t,e){for(var n=[],o=0,r=t._first;r;)r instanceof i?n[o++]=r:(e&&(n[o++]=r),n=n.concat(h(r,e)),o=n.length),r=r._next;return n},f=s.getAllTweens=function(e){return h(t._rootTimeline,e).concat(h(t._rootFramesTimeline,e))};s.killAll=function(t,i,n,o){null==i&&(i=!0),null==n&&(n=!0);var r,s,a,l=f(0!=o),c=l.length,d=i&&n&&o;for(a=0;c>a;a++)s=l[a],(d||s instanceof e||(r=s.target===s.vars.onComplete)&&n||i&&!r)&&(t?s.totalTime(s._reversed?0:s.totalDuration()):s._enabled(!1,!1))},s.killChildTweensOf=function(t,e){if(null!=t){var o,r,a,u,p,h=l.tweenLookup;if("string"==typeof t&&(t=i.selector(t)||t),c(t)&&(t=n(t)),d(t))for(u=t.length;--u>-1;)s.killChildTweensOf(t[u],e);else{o=[];for(a in h)for(r=h[a].target.parentNode;r;)r===t&&(o=o.concat(h[a].tweens)),r=r.parentNode;for(p=o.length,u=0;p>u;u++)e&&o[u].totalTime(o[u].totalDuration()),o[u]._enabled(!1,!1)}}};var m=function(t,i,n,o){i=i!==!1,n=n!==!1,o=o!==!1;for(var r,s,a=f(o),l=i&&n&&o,c=a.length;--c>-1;)s=a[c],(l||s instanceof e||(r=s.target===s.vars.onComplete)&&n||i&&!r)&&s.paused(t)};return s.pauseAll=function(t,e,i){m(!0,t,e,i)},s.resumeAll=function(t,e,i){m(!1,t,e,i)},s.globalTimeScale=function(e){var n=t._rootTimeline,o=i.ticker.time;return arguments.length?(e=e||a,n._startTime=o-(o-n._startTime)*n._timeScale/e,n=t._rootFramesTimeline,o=i.ticker.frame,n._startTime=o-(o-n._startTime)*n._timeScale/e,n._timeScale=t._rootTimeline._timeScale=e,e):n._timeScale},u.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this.duration()?this._time/this._duration:this.ratio},u.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},u.time=function(t,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,n=this._cycle,o=n*(i+this._repeatDelay);return t>i&&(t=i),this.totalTime(this._yoyo&&1&n?i-t+o:this._repeat?t+o:t,e)},u.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},u.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},u.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},u.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},u.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},s},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var n=function(t){e.call(this,t);var i,n,o=this,r=o.vars;o._labels={},o.autoRemoveChildren=!!r.autoRemoveChildren,o.smoothChildTiming=!!r.smoothChildTiming,o._sortChildren=!0,o._onUpdate=r.onUpdate;for(n in r)i=r[n],l(i)&&-1!==i.join("").indexOf("{self}")&&(r[n]=o._swapSelfInParams(i));l(r.tweens)&&o.add(r.tweens,0,r.align,r.stagger)},o=1e-8,r=i._internals,s=n._internals={},a=r.isSelector,l=r.isArray,c=r.lazyTweens,d=r.lazyRender,u=_gsScope._gsDefine.globals,p=function(t){var e,i={};for(e in t)i[e]=t[e];return i},h=function(t,e,i){var n,o,r=t.cycle;for(n in r)o=r[n],t[n]="function"==typeof o?o(i,e[i],e):o[i%o.length];delete t.cycle},f=s.pauseCallback=function(){},m=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},g=function(t,e,i,n){var o="immediateRender";return o in e||(e[o]=!(i&&i[o]===!1||n)),e},v=function(t){if("function"==typeof t)return t;var e="object"==typeof t?t:{each:t},i=e.ease,n=e.from||0,o=e.base||0,r={},s=isNaN(n),a=e.axis,l={center:.5,end:1}[n]||0;return function(t,c,d){var u,p,h,f,m,g,v,y,_,w=(d||e).length,b=r[w];if(!b){if(_="auto"===e.grid?0:(e.grid||[1/0])[0],!_){for(v=-(1/0);v<(v=d[_++].getBoundingClientRect().left)&&w>_;);_--}for(b=r[w]=[],u=s?Math.min(_,w)*l-.5:n%_,p=s?w*l/_-.5:n/_|0,v=0,y=1/0,g=0;w>g;g++)h=g%_-u,f=p-(g/_|0),b[g]=m=a?Math.abs("y"===a?f:h):Math.sqrt(h*h+f*f),m>v&&(v=m),y>m&&(y=m);b.max=v-y,b.min=y,b.v=w=e.amount||e.each*(_>w?w-1:a?"y"===a?w/_:_:Math.max(_,w/_))||0,b.b=0>w?o-w:o}return w=(b[t]-b.min)/b.max,b.b+(i?i.getRatio(w):w)*b.v}},y=n.prototype=new e;return n.version="2.1.3",n.distribute=v,y.constructor=n,y.kill()._gc=y._forcingPlayhead=y._hasPause=!1,y.to=function(t,e,n,o){var r=n.repeat&&u.TweenMax||i;return e?this.add(new r(t,e,n),o):this.set(t,n,o)},y.from=function(t,e,n,o){return this.add((n.repeat&&u.TweenMax||i).from(t,e,g(this,n)),o)},y.fromTo=function(t,e,n,o,r){var s=o.repeat&&u.TweenMax||i;return o=g(this,o,n),e?this.add(s.fromTo(t,e,n,o),r):this.set(t,o,r)},y.staggerTo=function(t,e,o,r,s,l,c,d){var u,f,g=new n({onComplete:l,onCompleteParams:c,callbackScope:d,smoothChildTiming:this.smoothChildTiming}),y=v(o.stagger||r),_=o.startAt,w=o.cycle;for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],a(t)&&(t=m(t)),f=0;f<t.length;f++)u=p(o),_&&(u.startAt=p(_),_.cycle&&h(u.startAt,t,f)),w&&(h(u,t,f),null!=u.duration&&(e=u.duration,delete u.duration)),g.to(t[f],e,u,y(f,t[f],t));return this.add(g,s)},y.staggerFrom=function(t,e,i,n,o,r,s,a){return i.runBackwards=!0,this.staggerTo(t,e,g(this,i),n,o,r,s,a)},y.staggerFromTo=function(t,e,i,n,o,r,s,a,l){return n.startAt=i,this.staggerTo(t,e,g(this,n,i),o,r,s,a,l)},y.call=function(t,e,n,o){return this.add(i.delayedCall(0,t,e,n),o)},y.set=function(t,e,n){return this.add(new i(t,0,g(this,e,null,!0)),n)},n.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var o,r,s,a,l=new n(t),c=l._timeline;for(null==e&&(e=!0),c._remove(l,!0),l._startTime=0,l._rawPrevTime=l._time=l._totalTime=c._time,s=c._first;s;)a=s._next,e&&s instanceof i&&s.target===s.vars.onComplete||(r=s._startTime-s._delay,0>r&&(o=1),l.add(s,r)),s=a;return c.add(l,0),o&&l.totalDuration(),l},y.add=function(o,r,s,a){var c,d,u,p,h,f,m=this;if("number"!=typeof r&&(r=m._parseTimeOrLabel(r,0,!0,o)),!(o instanceof t)){if(o instanceof Array||o&&o.push&&l(o)){ 7for(s=s||"normal",a=a||0,c=r,d=o.length,u=0;d>u;u++)l(p=o[u])&&(p=new n({tweens:p})),m.add(p,c),"string"!=typeof p&&"function"!=typeof p&&("sequence"===s?c=p._startTime+p.totalDuration()/p._timeScale:"start"===s&&(p._startTime-=p.delay())),c+=a;return m._uncache(!0)}if("string"==typeof o)return m.addLabel(o,r);if("function"!=typeof o)throw"Cannot add "+o+" into the timeline; it is not a tween, timeline, function, or string.";o=i.delayedCall(0,o)}if(e.prototype.add.call(m,o,r),(o._time||!o._duration&&o._initted)&&(c=(m.rawTime()-o._startTime)*o._timeScale,(!o._duration||Math.abs(Math.max(0,Math.min(o.totalDuration(),c)))-o._totalTime>1e-5)&&o.render(c,!1,!1)),(m._gc||m._time===m._duration)&&!m._paused&&m._duration<m.duration())for(h=m,f=h.rawTime()>o._startTime;h._timeline;)f&&h._timeline.smoothChildTiming?h.totalTime(h._totalTime,!0):h._gc&&h._enabled(!0,!1),h=h._timeline;return m},y.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline;return e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&l(e)){for(var n=e.length;--n>-1;)this.remove(e[n]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},y._remove=function(t,i){e.prototype._remove.call(this,t,i);var n=this._last;return n?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},y.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},y.insert=y.insertMultiple=function(t,e,i,n){return this.add(t,e||0,i,n)},y.appendMultiple=function(t,e,i,n){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,n)},y.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},y.addPause=function(t,e,n,o){var r=i.delayedCall(0,f,n,o||this);return r.vars.onComplete=r.vars.onReverseComplete=e,r.data="isPause",this._hasPause=!0,this.add(r,t)},y.removeLabel=function(t){return delete this._labels[t],this},y.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},y._parseTimeOrLabel=function(e,i,n,o){var r,s;if(o instanceof t&&o.timeline===this)this.remove(o);else if(o&&(o instanceof Array||o.push&&l(o)))for(s=o.length;--s>-1;)o[s]instanceof t&&o[s].timeline===this&&this.remove(o[s]);if(r="number"!=typeof e||i?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,"string"==typeof i)return this._parseTimeOrLabel(i,n&&"number"==typeof e&&null==this._labels[i]?e-r:0,n);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=r);else{if(s=e.indexOf("="),-1===s)return null==this._labels[e]?n?this._labels[e]=r+i:i:this._labels[e]+i;i=parseInt(e.charAt(s-1)+"1",10)*Number(e.substr(s+1)),e=s>1?this._parseTimeOrLabel(e.substr(0,s-1),0,n):r}return Number(e)+i},y.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},y.stop=function(){return this.paused(!0)},y.gotoAndPlay=function(t,e){return this.play(t,e)},y.gotoAndStop=function(t,e){return this.pause(t,e)},y.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,r,s,a,l,u,p,h,f=this,m=f._time,g=f._dirty?f.totalDuration():f._totalDuration,v=f._startTime,y=f._timeScale,_=f._paused;if(m!==f._time&&(t+=f._time-m),f._hasPause&&!f._forcingPlayhead&&!e){if(t>m)for(n=f._first;n&&n._startTime<=t&&!u;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===f._rawPrevTime||(u=n),n=n._next;else for(n=f._last;n&&n._startTime>=t&&!u;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(u=n),n=n._prev;u&&(f._time=f._totalTime=t=u._startTime,h=f._startTime+(f._reversed?f._duration-t:t)/f._timeScale)}if(t>=g-o&&t>=0)f._totalTime=f._time=g,f._reversed||f._hasPausedChild()||(r=!0,a="onComplete",l=!!f._timeline.autoRemoveChildren,0===f._duration&&(0>=t&&t>=-o||f._rawPrevTime<0||f._rawPrevTime===o)&&f._rawPrevTime!==t&&f._first&&(l=!0,f._rawPrevTime>o&&(a="onReverseComplete"))),f._rawPrevTime=f._duration||!e||t||f._rawPrevTime===t?t:o,t=g+1e-4;else if(o>t)if(f._totalTime=f._time=0,t>-o&&(t=0),(0!==m||0===f._duration&&f._rawPrevTime!==o&&(f._rawPrevTime>0||0>t&&f._rawPrevTime>=0))&&(a="onReverseComplete",r=f._reversed),0>t)f._active=!1,f._timeline.autoRemoveChildren&&f._reversed?(l=r=!0,a="onReverseComplete"):f._rawPrevTime>=0&&f._first&&(l=!0),f._rawPrevTime=t;else{if(f._rawPrevTime=f._duration||!e||t||f._rawPrevTime===t?t:o,0===t&&r)for(n=f._first;n&&0===n._startTime;)n._duration||(r=!1),n=n._next;t=0,f._initted||(l=!0)}else f._totalTime=f._time=f._rawPrevTime=t;if(f._time!==m&&f._first||i||l||u){if(f._initted||(f._initted=!0),f._active||!f._paused&&f._time!==m&&t>0&&(f._active=!0),0===m&&f.vars.onStart&&(0===f._time&&f._duration||e||f._callback("onStart")),p=f._time,p>=m)for(n=f._first;n&&(s=n._next,p===f._time&&(!f._paused||_));)(n._active||n._startTime<=p&&!n._paused&&!n._gc)&&(u===n&&(f.pause(),f._pauseTime=h),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=s;else for(n=f._last;n&&(s=n._prev,p===f._time&&(!f._paused||_));){if(n._active||n._startTime<=m&&!n._paused&&!n._gc){if(u===n){for(u=n._prev;u&&u.endTime()>f._time;)u.render(u._reversed?u.totalDuration()-(t-u._startTime)*u._timeScale:(t-u._startTime)*u._timeScale,e,i),u=u._prev;u=null,f.pause(),f._pauseTime=h}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=s}f._onUpdate&&(e||(c.length&&d(),f._callback("onUpdate"))),a&&(f._gc||(v===f._startTime||y!==f._timeScale)&&(0===f._time||g>=f.totalDuration())&&(r&&(c.length&&d(),f._timeline.autoRemoveChildren&&f._enabled(!1,!1),f._active=!1),!e&&f.vars[a]&&f._callback(a)))}},y._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof n&&t._hasPausedChild())return!0;t=t._next}return!1},y.getChildren=function(t,e,n,o){o=o||-9999999999;for(var r=[],s=this._first,a=0;s;)s._startTime<o||(s instanceof i?e!==!1&&(r[a++]=s):(n!==!1&&(r[a++]=s),t!==!1&&(r=r.concat(s.getChildren(!0,e,n)),a=r.length))),s=s._next;return r},y.getTweensOf=function(t,e){var n,o,r=this._gc,s=[],a=0;for(r&&this._enabled(!0,!0),n=i.getTweensOf(t),o=n.length;--o>-1;)(n[o].timeline===this||e&&this._contains(n[o]))&&(s[a++]=n[o]);return r&&this._enabled(!1,!0),s},y.recent=function(){return this._recent},y._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},y.shiftChildren=function(t,e,i){i=i||0;for(var n,o=this._first,r=this._labels;o;)o._startTime>=i&&(o._startTime+=t),o=o._next;if(e)for(n in r)r[n]>=i&&(r[n]+=t);return this._uncache(!0)},y._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),n=i.length,o=!1;--n>-1;)i[n]._kill(t,e)&&(o=!0);return o},y.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},y.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},y._enabled=function(t,i){if(t===this._gc)for(var n=this._first;n;)n._enabled(t,!0),n=n._next;return e.prototype._enabled.call(this,t,i)},y.totalTime=function(e,i,n){this._forcingPlayhead=!0;var o=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,o},y.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},y.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,n=0,o=this,r=o._last,s=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>s&&o._sortChildren&&!r._paused&&!o._calculatingDuration?(o._calculatingDuration=1,o.add(r,r._startTime-r._delay),o._calculatingDuration=0):s=r._startTime,r._startTime<0&&!r._paused&&(n-=r._startTime,o._timeline.smoothChildTiming&&(o._startTime+=r._startTime/o._timeScale,o._time-=r._startTime,o._totalTime-=r._startTime,o._rawPrevTime-=r._startTime),o.shiftChildren(-r._startTime,!1,-9999999999),s=0),i=r._startTime+r._totalDuration/r._timeScale,i>n&&(n=i),r=e;o._duration=o._totalDuration=n,o._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},y.paused=function(e){if(e===!1&&this._paused)for(var i=this._first;i;)i._startTime===this._time&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},y.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},y.rawTime=function(t){return t&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},n},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,e,i){var n=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0},o=1e-8,r=e._internals,s=r.lazyTweens,a=r.lazyRender,l=_gsScope._gsDefine.globals,c=new i(null,null,1,0),d=n.prototype=new t;return d.constructor=n,d.kill()._gc=!1,n.version="2.1.3",d.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},d.addCallback=function(t,i,n,o){return this.add(e.delayedCall(0,t,n,o),i)},d.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),n=i.length,o=this._parseTimeOrLabel(e);--n>-1;)i[n]._startTime===o&&i[n]._enabled(!1,!1);return this},d.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},d.tweenTo=function(t,i){i=i||{};var n,o,r,s={ease:c,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},a=i.repeat&&l.TweenMax||e;for(o in i)s[o]=i[o];return s.time=this._parseTimeOrLabel(t),n=Math.abs(Number(s.time)-this._time)/this._timeScale||.001,r=new a(this,n,s),s.onStart=function(){r.target.paused(!0),r.vars.time===r.target.time()||n!==r.duration()||r.isFromTo||r.duration(Math.abs(r.vars.time-r.target.time())/r.target._timeScale).render(r.time(),!0,!0),i.onStart&&i.onStart.apply(i.onStartScope||i.callbackScope||r,i.onStartParams||[])},r},d.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=i.immediateRender!==!1;var n=this.tweenTo(e,i);return n.isFromTo=1,n.duration(Math.abs(n.vars.time-t)/this._timeScale||.001)},d.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,r,l,c,d,u,p,h,f,m=this,g=m._time,v=m._dirty?m.totalDuration():m._totalDuration,y=m._duration,_=m._totalTime,w=m._startTime,b=m._timeScale,x=m._rawPrevTime,T=m._paused,S=m._cycle;if(g!==m._time&&(t+=m._time-g),t>=v-o&&t>=0)m._locked||(m._totalTime=v,m._cycle=m._repeat),m._reversed||m._hasPausedChild()||(r=!0,c="onComplete",d=!!m._timeline.autoRemoveChildren,0===m._duration&&(0>=t&&t>=-o||0>x||x===o)&&x!==t&&m._first&&(d=!0,x>o&&(c="onReverseComplete"))),m._rawPrevTime=m._duration||!e||t||m._rawPrevTime===t?t:o,m._yoyo&&1&m._cycle?m._time=t=0:(m._time=y,t=y+1e-4);else if(o>t)if(m._locked||(m._totalTime=m._cycle=0),m._time=0,t>-o&&(t=0),(0!==g||0===y&&x!==o&&(x>0||0>t&&x>=0)&&!m._locked)&&(c="onReverseComplete",r=m._reversed),0>t)m._active=!1,m._timeline.autoRemoveChildren&&m._reversed?(d=r=!0,c="onReverseComplete"):x>=0&&m._first&&(d=!0),m._rawPrevTime=t;else{if(m._rawPrevTime=y||!e||t||m._rawPrevTime===t?t:o,0===t&&r)for(n=m._first;n&&0===n._startTime;)n._duration||(r=!1),n=n._next;t=0,m._initted||(d=!0)}else 0===y&&0>x&&(d=!0),m._time=m._rawPrevTime=t,m._locked||(m._totalTime=t,0!==m._repeat&&(u=y+m._repeatDelay,m._cycle=m._totalTime/u>>0,m._cycle&&m._cycle===m._totalTime/u&&t>=_&&m._cycle--,m._time=m._totalTime-m._cycle*u,m._yoyo&&1&m._cycle&&(m._time=y-m._time),m._time>y?(m._time=y,t=y+1e-4):m._time<0?m._time=t=0:t=m._time));if(m._hasPause&&!m._forcingPlayhead&&!e){if(t=m._time,t>g||m._repeat&&S!==m._cycle)for(n=m._first;n&&n._startTime<=t&&!p;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===m._rawPrevTime||(p=n),n=n._next;else for(n=m._last;n&&n._startTime>=t&&!p;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(p=n),n=n._prev;p&&(f=m._startTime+(m._reversed?m._duration-p._startTime:p._startTime)/m._timeScale,p._startTime<y&&(m._time=m._rawPrevTime=t=p._startTime,m._totalTime=t+m._cycle*(m._totalDuration+m._repeatDelay)))}if(m._cycle!==S&&!m._locked){var k=m._yoyo&&0!==(1&S),C=k===(m._yoyo&&0!==(1&m._cycle)),O=m._totalTime,P=m._cycle,A=m._rawPrevTime,$=m._time;if(m._totalTime=S*y,m._cycle<S?k=!k:m._totalTime+=y,m._time=g,m._rawPrevTime=0===y?x-1e-4:x,m._cycle=S,m._locked=!0,g=k?0:y,m.render(g,e,0===y),e||m._gc||m.vars.onRepeat&&(m._cycle=P,m._locked=!1,m._callback("onRepeat")),g!==m._time)return;if(C&&(m._cycle=S,m._locked=!0,g=k?y+1e-4:-1e-4,m.render(g,!0,!1)),m._locked=!1,m._paused&&!T)return;m._time=$,m._totalTime=O,m._cycle=P,m._rawPrevTime=A}if(!(m._time!==g&&m._first||i||d||p))return void(_!==m._totalTime&&m._onUpdate&&(e||m._callback("onUpdate")));if(m._initted||(m._initted=!0),m._active||!m._paused&&m._totalTime!==_&&t>0&&(m._active=!0),0===_&&m.vars.onStart&&(0===m._totalTime&&m._totalDuration||e||m._callback("onStart")),h=m._time,h>=g)for(n=m._first;n&&(l=n._next,h===m._time&&(!m._paused||T));)(n._active||n._startTime<=m._time&&!n._paused&&!n._gc)&&(p===n&&(m.pause(),m._pauseTime=f),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=l;else for(n=m._last;n&&(l=n._prev,h===m._time&&(!m._paused||T));){if(n._active||n._startTime<=g&&!n._paused&&!n._gc){if(p===n){for(p=n._prev;p&&p.endTime()>m._time;)p.render(p._reversed?p.totalDuration()-(t-p._startTime)*p._timeScale:(t-p._startTime)*p._timeScale,e,i),p=p._prev;p=null,m.pause(),m._pauseTime=f}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=l}m._onUpdate&&(e||(s.length&&a(),m._callback("onUpdate"))),c&&(m._locked||m._gc||(w===m._startTime||b!==m._timeScale)&&(0===m._time||v>=m.totalDuration())&&(r&&(s.length&&a(),m._timeline.autoRemoveChildren&&m._enabled(!1,!1),m._active=!1),!e&&m.vars[c]&&m._callback(c)))},d.getActive=function(t,e,i){var n,o,r=[],s=this.getChildren(t||null==t,e||null==t,!!i),a=0,l=s.length;for(n=0;l>n;n++)o=s[n],o.isActive()&&(r[a++]=o);return r},d.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),n=i.length;for(e=0;n>e;e++)if(i[e].time>t)return i[e].name;return null},d.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(e[i].time<t)return e[i].name;return null},d.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},d.invalidate=function(){return this._locked=!1,t.prototype.invalidate.call(this)},d.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()||0},d.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()||0},d.totalDuration=function(e){return arguments.length?-1!==this._repeat&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},d.time=function(t,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,n=this._cycle,o=n*(i+this._repeatDelay);return t>i&&(t=i),this.totalTime(this._yoyo&&1&n?i-t+o:this._repeat?t+o:t,e)},d.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},d.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},d.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},d.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+o)},n},!0),function(){var t=180/Math.PI,e=[],i=[],n=[],o={},r=_gsScope._gsDefine.globals,s=function(t,e,i,n){i===n&&(i=n-(n-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=n,this.da=n-t,this.ca=i-t,this.ba=e-t},a=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",l=function(t,e,i,n){var o={a:t},r={},s={},a={c:n},l=(t+e)/2,c=(e+i)/2,d=(i+n)/2,u=(l+c)/2,p=(c+d)/2,h=(p-u)/8;return o.b=l+(t-l)/4,r.b=u+h,o.c=r.a=(o.b+r.b)/2,r.c=s.a=(u+p)/2,s.b=p-h,a.b=d+(n-d)/4,s.c=a.a=(s.b+a.b)/2,[o,r,s,a]},c=function(t,o,r,s,a){var c,d,u,p,h,f,m,g,v,y,_,w,b,x=t.length-1,T=0,S=t[0].a;for(c=0;x>c;c++)h=t[T],d=h.a,u=h.d,p=t[T+1].d,a?(_=e[c],w=i[c],b=(w+_)*o*.25/(s?.5:n[c]||.5),f=u-(u-d)*(s?.5*o:0!==_?b/_:0),m=u+(p-u)*(s?.5*o:0!==w?b/w:0),g=u-(f+((m-f)*(3*_/(_+w)+.5)/4||0))):(f=u-(u-d)*o*.5,m=u+(p-u)*o*.5,g=u-(f+m)/2),f+=g,m+=g,h.c=v=f,0!==c?h.b=S:h.b=S=h.a+.6*(h.c-h.a),h.da=u-d,h.ca=v-d,h.ba=S-d,r?(y=l(d,S,v,u),t.splice(T,1,y[0],y[1],y[2],y[3]),T+=4):T++,S=m;h=t[T],h.b=S,h.c=S+.4*(h.d-S),h.da=h.d-h.a,h.ca=h.c-h.a,h.ba=S-h.a,r&&(y=l(h.a,S,h.c,h.d),t.splice(T,1,y[0],y[1],y[2],y[3]))},d=function(t,n,o,r){var a,l,c,d,u,p,h=[];if(r)for(t=[r].concat(t),l=t.length;--l>-1;)"string"==typeof(p=t[l][n])&&"="===p.charAt(1)&&(t[l][n]=r[n]+Number(p.charAt(0)+p.substr(2)));if(a=t.length-2,0>a)return h[0]=new s(t[0][n],0,0,t[0][n]),h;for(l=0;a>l;l++)c=t[l][n],d=t[l+1][n],h[l]=new s(c,0,0,d),o&&(u=t[l+2][n],e[l]=(e[l]||0)+(d-c)*(d-c),i[l]=(i[l]||0)+(u-d)*(u-d));return h[l]=new s(t[l][n],0,0,t[l+1][n]),h},u=function(t,r,s,l,u,p){var h,f,m,g,v,y,_,w,b={},x=[],T=p||t[0];u="string"==typeof u?","+u+",":a,null==r&&(r=1);for(f in t[0])x.push(f);if(t.length>1){for(w=t[t.length-1],_=!0,h=x.length;--h>-1;)if(f=x[h],Math.abs(T[f]-w[f])>.05){_=!1;break}_&&(t=t.concat(),p&&t.unshift(p),t.push(t[1]),p=t[t.length-3])}for(e.length=i.length=n.length=0,h=x.length;--h>-1;)f=x[h],o[f]=-1!==u.indexOf(","+f+","),b[f]=d(t,f,o[f],p);for(h=e.length;--h>-1;)e[h]=Math.sqrt(e[h]),i[h]=Math.sqrt(i[h]);if(!l){for(h=x.length;--h>-1;)if(o[f])for(m=b[x[h]],y=m.length-1,g=0;y>g;g++)v=m[g+1].da/i[g]+m[g].da/e[g]||0,n[g]=(n[g]||0)+v*v;for(h=n.length;--h>-1;)n[h]=Math.sqrt(n[h])}for(h=x.length,g=s?4:1;--h>-1;)f=x[h],m=b[f],c(m,r,s,l,o[f]),_&&(m.splice(0,g),m.splice(m.length-g,g));return b},p=function(t,e,i){e=e||"soft";var n,o,r,a,l,c,d,u,p,h,f,m={},g="cubic"===e?3:2,v="soft"===e,y=[];if(v&&i&&(t=[i].concat(t)),null==t||t.length<g+1)throw"invalid Bezier data";for(p in t[0])y.push(p);for(c=y.length;--c>-1;){for(p=y[c],m[p]=l=[],h=0,u=t.length,d=0;u>d;d++)n=null==i?t[d][p]:"string"==typeof(f=t[d][p])&&"="===f.charAt(1)?i[p]+Number(f.charAt(0)+f.substr(2)):Number(f),v&&d>1&&u-1>d&&(l[h++]=(n+l[h-2])/2),l[h++]=n;for(u=h-g+1,h=0,d=0;u>d;d+=g)n=l[d],o=l[d+1],r=l[d+2],a=2===g?0:l[d+3],l[h++]=f=3===g?new s(n,o,r,a):new s(n,(2*o+n)/3,(2*o+r)/3,r);l.length=h}return m},h=function(t,e,i){for(var n,o,r,s,a,l,c,d,u,p,h,f=1/i,m=t.length;--m>-1;)for(p=t[m],r=p.a,s=p.d-r,a=p.c-r,l=p.b-r,n=o=0,d=1;i>=d;d++)c=f*d,u=1-c,n=o-(o=(c*c*s+3*u*(c*a+u*l))*c),h=m*i+d-1,e[h]=(e[h]||0)+n*n},f=function(t,e){e=e>>0||6;var i,n,o,r,s=[],a=[],l=0,c=0,d=e-1,u=[],p=[];for(i in t)h(t[i],s,e);for(o=s.length,n=0;o>n;n++)l+=Math.sqrt(s[n]),r=n%e,p[r]=l,r===d&&(c+=l,r=n/e>>0,u[r]=p,a[r]=c,l=0,p=[]);return{length:c,lengths:a,segments:u}},m=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.9",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var n,o,r,s,a,l=e.values||[],c={},d=l[0],h=e.autoRotate||i.vars.orientToBezier;this._autoRotate=h?h instanceof Array?h:[["x","y","rotation",h===!0?0:Number(h)||0]]:null;for(n in d)this._props.push(n);for(r=this._props.length;--r>-1;)n=this._props[r],this._overwriteProps.push(n),o=this._func[n]="function"==typeof t[n],c[n]=o?t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(t[n]),a||c[n]!==l[0][n]&&(a=c);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?u(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,a):p(l,e.type,c),this._segCount=this._beziers[n].length,this._timeRes){var m=f(this._beziers,this._timeRes);this._length=m.length,this._lengths=m.lengths,this._segments=m.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(h=this._autoRotate)for(this._initialRotations=[],h[0]instanceof Array||(this._autoRotate=h=[h]),r=h.length;--r>-1;){for(s=0;3>s;s++)n=h[r][s],this._func[n]="function"==typeof t[n]&&t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)];n=h[r][2],this._initialRotations[r]=(this._func[n]?this._func[n].call(this._target):this._target[n])||0,this._overwriteProps.push(n)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,n,o,r,s,a,l,c,d,u,p,h=this._segCount,f=this._func,m=this._target,g=e!==this._startRatio;if(this._timeRes){if(d=this._lengths,u=this._curSeg,p=e*this._length,o=this._li,p>this._l2&&h-1>o){for(c=h-1;c>o&&(this._l2=d[++o])<=p;);this._l1=d[o-1],this._li=o,this._curSeg=u=this._segments[o],this._s2=u[this._s1=this._si=0]}else if(p<this._l1&&o>0){for(;o>0&&(this._l1=d[--o])>=p;);0===o&&p<this._l1?this._l1=0:o++,this._l2=d[o],this._li=o,this._curSeg=u=this._segments[o],this._s1=u[(this._si=u.length-1)-1]||0,this._s2=u[this._si]}if(i=o,p-=this._l1,o=this._si,p>this._s2&&o<u.length-1){for(c=u.length-1;c>o&&(this._s2=u[++o])<=p;);this._s1=u[o-1],this._si=o}else if(p<this._s1&&o>0){for(;o>0&&(this._s1=u[--o])>=p;);0===o&&p<this._s1?this._s1=0:o++,this._s2=u[o],this._si=o}a=1===e?1:(o+(p-this._s1)/(this._s2-this._s1))*this._prec||0}else i=0>e?0:e>=1?h-1:h*e>>0,a=(e-i*(1/h))*h;for(n=1-a,o=this._props.length;--o>-1;)r=this._props[o],s=this._beziers[r][i],l=(a*a*s.da+3*n*(a*s.ca+n*s.ba))*a+s.a,this._mod[r]&&(l=this._mod[r](l,m)),f[r]?m[r](l):m[r]=l;if(this._autoRotate){var v,y,_,w,b,x,T,S=this._autoRotate;for(o=S.length;--o>-1;)r=S[o][2],x=S[o][3]||0,T=S[o][4]===!0?1:t,s=this._beziers[S[o][0]],v=this._beziers[S[o][1]],s&&v&&(s=s[i],v=v[i],y=s.a+(s.b-s.a)*a,w=s.b+(s.c-s.b)*a,y+=(w-y)*a,w+=(s.c+(s.d-s.c)*a-w)*a,_=v.a+(v.b-v.a)*a,b=v.b+(v.c-v.b)*a,_+=(b-_)*a,b+=(v.c+(v.d-v.c)*a-b)*a,l=g?Math.atan2(b-_,w-y)*T+x:this._initialRotations[o],this._mod[r]&&(l=this._mod[r](l,m)),f[r]?m[r](l):m[r]=l)}}}),g=m.prototype;m.bezierThrough=u,m.cubicToQuadratic=l,m._autoCSS=!0,m.quadraticToCubic=function(t,e,i){return new s(t,(2*e+t)/3,(2*e+i)/3,i)},m._cssRegister=function(){var t=r.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,n=e._setPluginRatio,o=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,r,s,a,l){e instanceof Array&&(e={values:e}),l=new m;var c,d,u,p=e.values,h=p.length-1,f=[],g={};if(0>h)return a;for(c=0;h>=c;c++)u=i(t,p[c],s,a,l,h!==c),f[c]=u.end;for(d in e)g[d]=e[d];return g.values=f,a=new o(t,"bezier",0,0,u.pt,2),a.data=u,a.plugin=l,a.setRatio=n,0===g.autoRotate&&(g.autoRotate=!0),!g.autoRotate||g.autoRotate instanceof Array||(c=g.autoRotate===!0?0:Number(g.autoRotate),g.autoRotate=null!=u.end.left?[["left","top","rotation",c,!1]]:null!=u.end.x&&[["x","y","rotation",c,!1]]),g.autoRotate&&(s._transform||s._enableTransforms(!1),u.autoRotate=s._target._gsTransform,u.proxy.rotation=u.autoRotate.rotation||0,s._overwriteProps.push("rotation")),l._onInitTween(u.proxy,g,s._tween),a}})}},g._mod=function(t){for(var e,i=this._overwriteProps,n=i.length;--n>-1;)e=t[i[n]],e&&"function"==typeof e&&(this._mod[i[n]]=e)},g._kill=function(t){var e,i,n=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=n.length;--i>-1;)n[i]===e&&n.splice(i,1);if(n=this._autoRotate)for(i=n.length;--i>-1;)t[n[i][2]]&&n.splice(i,1);return this._super._kill.call(this,t)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,n,o,r,s=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=s.prototype.setRatio},a=_gsScope._gsDefine.globals,l={},c=s.prototype=new t("css");c.constructor=s,s.version="2.1.3",s.API=2,s.defaultTransformPerspective=0,s.defaultSkewType="compensated",s.defaultSmoothOrigin=!0,c="px",s.suffixMap={top:c,right:c,bottom:c,left:c,width:c,height:c,fontSize:c,padding:c,margin:c,perspective:c,lineHeight:""};var d,u,p,h,f,m,g,v,y=/(?:\-|\.|\b)(\d|\.|e\-)+/g,_=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,w=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,b=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b),?/gi,x=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,T=/(?:\d|\-|\+|=|#|\.)*/g,S=/opacity *= *([^)]*)/i,k=/opacity:([^;]*)/i,C=/alpha\(opacity *=.+?\)/i,O=/^(rgb|hsl)/,P=/([A-Z])/g,A=/-([a-z])/gi,$=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,E=function(t,e){return e.toUpperCase()},I=/(?:Left|Right|Width)/i,z=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,L=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,D=/,(?=[^\)]*(?:\(|$))/gi,R=/[\s,\(]/i,M=Math.PI/180,F=180/Math.PI,j={},B={style:{}},N=_gsScope.document||{createElement:function(){return B}},H=function(t,e){var i=N.createElementNS?N.createElementNS(e||"http://www.w3.org/1999/xhtml",t):N.createElement(t);return i.style?i:N.createElement(t)},W=H("div"),q=H("img"),V=s._internals={_specialProps:l},Y=(_gsScope.navigator||{}).userAgent||"",X=function(){var t=Y.indexOf("Android"),e=H("a");return p=-1!==Y.indexOf("Safari")&&-1===Y.indexOf("Chrome")&&(-1===t||parseFloat(Y.substr(t+8,2))>3),f=p&&parseFloat(Y.substr(Y.indexOf("Version/")+8,2))<6,h=-1!==Y.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Y)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(Y))&&(m=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),U=function(t){return S.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},Q=function(t){_gsScope.console&&console.log(t)},G="",K="",Z=function(t,e){e=e||W;var i,n,o=e.style;if(void 0!==o[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],n=5;--n>-1&&void 0===o[i[n]+t];);return n>=0?(K=3===n?"ms":i[n],G="-"+K.toLowerCase()+"-",K+t):null},J="undefined"!=typeof window?window:N.defaultView||{getComputedStyle:function(){}},tt=function(t){return J.getComputedStyle(t)},et=s.getStyle=function(t,e,i,n,o){var r;return X||"opacity"!==e?(!n&&t.style[e]?r=t.style[e]:(i=i||tt(t))?r=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(P,"-$1").toLowerCase()):t.currentStyle&&(r=t.currentStyle[e]),null==o||r&&"none"!==r&&"auto"!==r&&"auto auto"!==r?r:o):U(t)},it=V.convertToPixels=function(t,i,n,o,r){if("px"===o||!o&&"lineHeight"!==i)return n;if("auto"===o||!n)return 0;var a,l,c,d=I.test(i),u=t,p=W.style,h=0>n,f=1===n;if(h&&(n=-n),f&&(n*=100),"lineHeight"!==i||o)if("%"===o&&-1!==i.indexOf("border"))a=n/100*(d?t.clientWidth:t.clientHeight);else{if(p.cssText="border:0 solid red;position:"+et(t,"position")+";line-height:0;","%"!==o&&u.appendChild&&"v"!==o.charAt(0)&&"rem"!==o)p[d?"borderLeftWidth":"borderTopWidth"]=n+o;else{if(u=t.parentNode||N.body,-1!==et(u,"display").indexOf("flex")&&(p.position="absolute"),l=u._gsCache,c=e.ticker.frame,l&&d&&l.time===c)return l.width*n/100;p[d?"width":"height"]=n+o}u.appendChild(W),a=parseFloat(W[d?"offsetWidth":"offsetHeight"]),u.removeChild(W),d&&"%"===o&&s.cacheWidths!==!1&&(l=u._gsCache=u._gsCache||{},l.time=c,l.width=a/n*100),0!==a||r||(a=it(t,i,n,o,!0))}else l=tt(t).lineHeight,t.style.lineHeight=n,a=parseFloat(tt(t).lineHeight),t.style.lineHeight=l;return f&&(a/=100),h?-a:a},nt=V.calculateOffset=function(t,e,i){if("absolute"!==et(t,"position",i))return 0;var n="left"===e?"Left":"Top",o=et(t,"margin"+n,i);return t["offset"+n]-(it(t,e,parseFloat(o),o.replace(T,""))||0)},ot=function(t,e){var i,n,o,r={};if(e=e||tt(t,null))if(i=e.length)for(;--i>-1;)o=e[i],(-1===o.indexOf("-transform")||Et===o)&&(r[o.replace(A,E)]=e.getPropertyValue(o));else for(i in e)(-1===i.indexOf("Transform")||$t===i)&&(r[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===r[i]&&(r[i.replace(A,E)]=e[i]);return X||(r.opacity=U(t)),n=Vt(t,e,!1),r.rotation=n.rotation,r.skewX=n.skewX,r.scaleX=n.scaleX,r.scaleY=n.scaleY,r.x=n.x,r.y=n.y,zt&&(r.z=n.z,r.rotationX=n.rotationX,r.rotationY=n.rotationY,r.scaleZ=n.scaleZ),r.filters&&delete r.filters,r},rt=function(t,e,i,n,o){var r,s,a,l={},c=t.style;for(s in i)"cssText"!==s&&"length"!==s&&isNaN(s)&&(e[s]!==(r=i[s])||o&&o[s])&&-1===s.indexOf("Origin")&&("number"==typeof r||"string"==typeof r)&&(l[s]="auto"!==r||"left"!==s&&"top"!==s?""!==r&&"auto"!==r&&"none"!==r||"string"!=typeof e[s]||""===e[s].replace(x,"")?r:0:nt(t,s),void 0!==c[s]&&(a=new wt(c,s,c[s],a)));if(n)for(s in n)"className"!==s&&(l[s]=n[s]);return{difs:l,firstMPT:a}},st={width:["Left","Right"],height:["Top","Bottom"]},at=["marginLeft","marginRight","marginTop","marginBottom"],lt=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||tt(t))[e]||0;if(t.getCTM&&Ht(t))return t.getBBox()[e]||0;var n=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),o=st[e],r=o.length;for(i=i||tt(t,null);--r>-1;)n-=parseFloat(et(t,"padding"+o[r],i,!0))||0,n-=parseFloat(et(t,"border"+o[r]+"Width",i,!0))||0;return n},ct=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";(null==t||""===t)&&(t="0 0");var i,n=t.split(" "),o=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":n[0],r=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":n[1];if(n.length>3&&!e){for(n=t.split(", ").join(",").split(","),t=[],i=0;i<n.length;i++)t.push(ct(n[i]));return t.join(",")}return null==r?r="center"===o?"50%":"0":"center"===r&&(r="50%"),("center"===o||isNaN(parseFloat(o))&&-1===(o+"").indexOf("="))&&(o="50%"),t=o+" "+r+(n.length>2?" "+n[2]:""),e&&(e.oxp=-1!==o.indexOf("%"),e.oyp=-1!==r.indexOf("%"),e.oxr="="===o.charAt(1),e.oyr="="===r.charAt(1),e.ox=parseFloat(o.replace(x,"")),e.oy=parseFloat(r.replace(x,"")),e.v=t),e||t},dt=function(t,e){return"function"==typeof t&&(t=t(v,g)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},ut=function(t,e){"function"==typeof t&&(t=t(v,g));var i="string"==typeof t&&"="===t.charAt(1);return"string"==typeof t&&"v"===t.charAt(t.length-2)&&(t=(i?t.substr(0,2):0)+window["inner"+("vh"===t.substr(-2)?"Height":"Width")]*(parseFloat(i?t.substr(2):t)/100)),null==t?e:i?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},pt=function(t,e,i,n){var o,r,s,a,l,c=1e-6;return"function"==typeof t&&(t=t(v,g)),null==t?a=e:"number"==typeof t?a=t:(o=360,r=t.split("_"),l="="===t.charAt(1),s=(l?parseInt(t.charAt(0)+"1",10)*parseFloat(r[0].substr(2)):parseFloat(r[0]))*(-1===t.indexOf("rad")?1:F)-(l?0:e),r.length&&(n&&(n[i]=e+s),-1!==t.indexOf("short")&&(s%=o,s!==s%(o/2)&&(s=0>s?s+o:s-o)),-1!==t.indexOf("_cw")&&0>s?s=(s+9999999999*o)%o-(s/o|0)*o:-1!==t.indexOf("ccw")&&s>0&&(s=(s-9999999999*o)%o-(s/o|0)*o)),a=e+s),c>a&&a>-c&&(a=0),a},ht={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255], 8fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ft=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,255*(1>6*t?e+(i-e)*t*6:.5>t?i:2>3*t?e+(i-e)*(2/3-t)*6:e)+.5|0},mt=s.parseColor=function(t,e){var i,n,o,r,s,a,l,c,d,u,p;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),ht[t])i=ht[t];else if("#"===t.charAt(0))4===t.length&&(n=t.charAt(1),o=t.charAt(2),r=t.charAt(3),t="#"+n+n+o+o+r+r),t=parseInt(t.substr(1),16),i=[t>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=p=t.match(y),e){if(-1!==t.indexOf("="))return t.match(_)}else s=Number(i[0])%360/360,a=Number(i[1])/100,l=Number(i[2])/100,o=.5>=l?l*(a+1):l+a-l*a,n=2*l-o,i.length>3&&(i[3]=Number(i[3])),i[0]=ft(s+1/3,n,o),i[1]=ft(s,n,o),i[2]=ft(s-1/3,n,o);else i=t.match(y)||ht.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),i.length>3&&(i[3]=Number(i[3]))}else i=ht.black;return e&&!p&&(n=i[0]/255,o=i[1]/255,r=i[2]/255,c=Math.max(n,o,r),d=Math.min(n,o,r),l=(c+d)/2,c===d?s=a=0:(u=c-d,a=l>.5?u/(2-c-d):u/(c+d),s=c===n?(o-r)/u+(r>o?6:0):c===o?(r-n)/u+2:(n-o)/u+4,s*=60),i[0]=s+.5|0,i[1]=100*a+.5|0,i[2]=100*l+.5|0),i},gt=function(t,e){var i,n,o,r=t.match(vt)||[],s=0,a="";if(!r.length)return t;for(i=0;i<r.length;i++)n=r[i],o=t.substr(s,t.indexOf(n,s)-s),s+=o.length+n.length,n=mt(n,e),3===n.length&&n.push(1),a+=o+(e?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return a+t.substr(s)},vt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(c in ht)vt+="|"+c+"\\b";vt=new RegExp(vt+")","gi"),s.colorStringFilter=function(t){var e,i=t[0]+" "+t[1];vt.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=gt(t[0],e),t[1]=gt(t[1],e)),vt.lastIndex=0},e.defaultStringFilter||(e.defaultStringFilter=s.colorStringFilter);var yt=function(t,e,i,n){if(null==t)return function(t){return t};var o,r=e?(t.match(vt)||[""])[0]:"",s=t.split(r).join("").match(w)||[],a=t.substr(0,t.indexOf(s[0])),l=")"===t.charAt(t.length-1)?")":"",c=-1!==t.indexOf(" ")?" ":",",d=s.length,u=d>0?s[0].replace(y,""):"";return d?o=e?function(t){var e,p,h,f;if("number"==typeof t)t+=u;else if(n&&D.test(t)){for(f=t.replace(D,"|").split("|"),h=0;h<f.length;h++)f[h]=o(f[h]);return f.join(",")}if(e=(t.match(vt)||[r])[0],p=t.split(e).join("").match(w)||[],h=p.length,d>h--)for(;++h<d;)p[h]=i?p[(h-1)/2|0]:s[h];return a+p.join(c)+c+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,r,p;if("number"==typeof t)t+=u;else if(n&&D.test(t)){for(r=t.replace(D,"|").split("|"),p=0;p<r.length;p++)r[p]=o(r[p]);return r.join(",")}if(e=t.match(","===c?w:b)||[],p=e.length,d>p--)for(;++p<d;)e[p]=i?e[(p-1)/2|0]:s[p];return(a&&"none"!==t?t.substr(0,t.indexOf(e[0]))||a:a)+e.join(c)+l}:function(t){return t}},_t=function(t){return t=t.split(","),function(e,i,n,o,r,s,a){var l,c=(i+"").split(" ");for(a={},l=0;4>l;l++)a[t[l]]=c[l]=c[l]||c[(l-1)/2>>0];return o.parse(e,a,r,s)}},wt=(V._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,n,o,r,s=this.data,a=s.proxy,l=s.firstMPT,c=1e-6;l;)e=a[l.v],l.r?e=l.r(e):c>e&&e>-c&&(e=0),l.t[l.p]=e,l=l._next;if(s.autoRotate&&(s.autoRotate.rotation=s.mod?s.mod.call(this._tween,a.rotation,this.t,this._tween):a.rotation),1===t||0===t)for(l=s.firstMPT,r=1===t?"e":"b";l;){if(i=l.t,i.type){if(1===i.type){for(o=i.xs0+i.s+i.xs1,n=1;n<i.l;n++)o+=i["xn"+n]+i["xs"+(n+1)];i[r]=o}}else i[r]=i.s+i.xs0;l=l._next}},function(t,e,i,n,o){this.t=t,this.p=e,this.v=i,this.r=o,n&&(n._prev=this,this._next=n)}),bt=(V._parseToProxy=function(t,e,i,n,o,r){var s,a,l,c,d,u=n,p={},h={},f=i._transform,m=j;for(i._transform=null,j=e,n=d=i.parse(t,e,n,o),j=m,r&&(i._transform=f,u&&(u._prev=null,u._prev&&(u._prev._next=null)));n&&n!==u;){if(n.type<=1&&(a=n.p,h[a]=n.s+n.c,p[a]=n.s,r||(c=new wt(n,"s",a,c,n.r),n.c=0),1===n.type))for(s=n.l;--s>0;)l="xn"+s,a=n.p+"_"+l,h[a]=n.data[l],p[a]=n[l],r||(c=new wt(n,l,a,c,n.rxp[l]));n=n._next}return{proxy:p,end:h,firstMPT:c,pt:d}},V.CSSPropTween=function(t,e,n,o,s,a,l,c,d,u,p){this.t=t,this.p=e,this.s=n,this.c=o,this.n=l||e,t instanceof bt||r.push(this.n),this.r=c?"function"==typeof c?c:Math.round:c,this.type=a||0,d&&(this.pr=d,i=!0),this.b=void 0===u?n:u,this.e=void 0===p?n+o:p,s&&(this._next=s,s._prev=this)}),xt=function(t,e,i,n,o,r){var s=new bt(t,e,i,n-i,o,(-1),r);return s.b=i,s.e=s.xs0=n,s},Tt=s.parseComplex=function(t,e,i,n,o,r,a,l,c,u){i=i||r||"","function"==typeof n&&(n=n(v,g)),a=new bt(t,e,0,0,a,u?2:1,null,(!1),l,i,n),n+="",o&&vt.test(n+i)&&(n=[i,n],s.colorStringFilter(n),i=n[0],n=n[1]);var p,h,f,m,w,b,x,T,S,k,C,O,P,A=i.split(", ").join(",").split(" "),$=n.split(", ").join(",").split(" "),E=A.length,I=d!==!1;for((-1!==n.indexOf(",")||-1!==i.indexOf(","))&&(-1!==(n+i).indexOf("rgb")||-1!==(n+i).indexOf("hsl")?(A=A.join(" ").replace(D,", ").split(" "),$=$.join(" ").replace(D,", ").split(" ")):(A=A.join(" ").split(",").join(", ").split(" "),$=$.join(" ").split(",").join(", ").split(" ")),E=A.length),E!==$.length&&(A=(r||"").split(" "),E=A.length),a.plugin=c,a.setRatio=u,vt.lastIndex=0,p=0;E>p;p++)if(m=A[p],w=$[p]+"",T=parseFloat(m),T||0===T)a.appendXtra("",T,dt(w,T),w.replace(_,""),!(!I||-1===w.indexOf("px"))&&Math.round,!0);else if(o&&vt.test(m))O=w.indexOf(")")+1,O=")"+(O?w.substr(O):""),P=-1!==w.indexOf("hsl")&&X,k=w,m=mt(m,P),w=mt(w,P),S=m.length+w.length>6,S&&!X&&0===w[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split($[p]).join("transparent")):(X||(S=!1),P?a.appendXtra(k.substr(0,k.indexOf("hsl"))+(S?"hsla(":"hsl("),m[0],dt(w[0],m[0]),",",!1,!0).appendXtra("",m[1],dt(w[1],m[1]),"%,",!1).appendXtra("",m[2],dt(w[2],m[2]),S?"%,":"%"+O,!1):a.appendXtra(k.substr(0,k.indexOf("rgb"))+(S?"rgba(":"rgb("),m[0],w[0]-m[0],",",Math.round,!0).appendXtra("",m[1],w[1]-m[1],",",Math.round).appendXtra("",m[2],w[2]-m[2],S?",":O,Math.round),S&&(m=m.length<4?1:m[3],a.appendXtra("",m,(w.length<4?1:w[3])-m,O,!1))),vt.lastIndex=0;else if(b=m.match(y)){if(x=w.match(_),!x||x.length!==b.length)return a;for(f=0,h=0;h<b.length;h++)C=b[h],k=m.indexOf(C,f),a.appendXtra(m.substr(f,k-f),Number(C),dt(x[h],C),"",!(!I||"px"!==m.substr(k+C.length,2))&&Math.round,0===h),f=k+C.length;a["xs"+a.l]+=m.substr(f)}else a["xs"+a.l]+=a.l||a["xs"+a.l]?" "+w:w;if(-1!==n.indexOf("=")&&a.data){for(O=a.xs0+a.data.s,p=1;p<a.l;p++)O+=a["xs"+p]+a.data["xn"+p];a.e=O+a["xs"+p]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},St=9;for(c=bt.prototype,c.l=c.pr=0;--St>0;)c["xn"+St]=0,c["xs"+St]="";c.xs0="",c._next=c._prev=c.xfirst=c.data=c.plugin=c.setRatio=c.rxp=null,c.appendXtra=function(t,e,i,n,o,r){var s=this,a=s.l;return s["xs"+a]+=r&&(a||s["xs"+a])?" "+t:t||"",i||0===a||s.plugin?(s.l++,s.type=s.setRatio?2:1,s["xs"+s.l]=n||"",a>0?(s.data["xn"+a]=e+i,s.rxp["xn"+a]=o,s["xn"+a]=e,s.plugin||(s.xfirst=new bt(s,"xn"+a,e,i,s.xfirst||s,0,s.n,o,s.pr),s.xfirst.xs0=0),s):(s.data={s:e+i},s.rxp={},s.s=e,s.c=i,s.r=o,s)):(s["xs"+a]+=e+(n||""),s)};var kt=function(t,e){e=e||{},this.p=e.prefix?Z(t)||t:t,l[t]=l[this.p]=this,this.format=e.formatter||yt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.allowFunc=e.allowFunc,this.pr=e.priority||0},Ct=V._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var n,o,r=t.split(","),s=e.defaultValue;for(i=i||[s],n=0;n<r.length;n++)e.prefix=0===n&&e.prefix,e.defaultValue=i[n]||s,o=new kt(r[n],e)},Ot=V._registerPluginProp=function(t){if(!l[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";Ct(t,{parser:function(t,i,n,o,r,s,c){var d=a.com.greensock.plugins[e];return d?(d._cssRegister(),l[n].parse(t,i,n,o,r,s,c)):(Q("Error: "+e+" js file not loaded."),r)}})}};c=kt.prototype,c.parseComplex=function(t,e,i,n,o,r){var s,a,l,c,d,u,p=this.keyword;if(this.multi&&(D.test(i)||D.test(e)?(a=e.replace(D,"|").split("|"),l=i.replace(D,"|").split("|")):p&&(a=[e],l=[i])),l){for(c=l.length>a.length?l.length:a.length,s=0;c>s;s++)e=a[s]=a[s]||this.dflt,i=l[s]=l[s]||this.dflt,p&&(d=e.indexOf(p),u=i.indexOf(p),d!==u&&(-1===u?a[s]=a[s].split(p).join(""):-1===d&&(a[s]+=" "+p)));e=a.join(", "),i=l.join(", ")}return Tt(t,this.p,e,i,this.clrs,this.dflt,n,this.pr,o,r)},c.parse=function(t,e,i,n,r,s,a){return this.parseComplex(t.style,this.format(et(t,this.p,o,!1,this.dflt)),this.format(e),r,s)},s.registerSpecialProp=function(t,e,i){Ct(t,{parser:function(t,n,o,r,s,a,l){var c=new bt(t,o,0,0,s,2,o,(!1),i);return c.plugin=a,c.setRatio=e(t,n,r._tween,o),c},priority:i})},s.useSVGTransformAttr=!0;var Pt,At="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),$t=Z("transform"),Et=G+"transform",It=Z("transformOrigin"),zt=null!==Z("perspective"),Lt=V.Transform=function(){this.perspective=parseFloat(s.defaultTransformPerspective)||0,this.force3D=!(s.defaultForce3D===!1||!zt)&&(s.defaultForce3D||"auto")},Dt=_gsScope.SVGElement,Rt=function(t,e,i){var n,o=N.createElementNS("http://www.w3.org/2000/svg",t),r=/([a-z])([A-Z])/g;for(n in i)o.setAttributeNS(null,n.replace(r,"$1-$2").toLowerCase(),i[n]);return e.appendChild(o),o},Mt=N.documentElement||{},Ft=function(){var t,e,i,n=m||/Android/i.test(Y)&&!_gsScope.chrome;return N.createElementNS&&Mt.appendChild&&!n&&(t=Rt("svg",Mt),e=Rt("rect",t,{width:100,height:50,x:100}),i=e.getBoundingClientRect().width,e.style[It]="50% 50%",e.style[$t]="scaleX(0.5)",n=i===e.getBoundingClientRect().width&&!(h&&zt),Mt.removeChild(t)),n}(),jt=function(t,e,i,n,o,r){var a,l,c,d,u,p,h,f,m,g,v,y,_,w,b=t._gsTransform,x=qt(t,!0);b&&(_=b.xOrigin,w=b.yOrigin),(!n||(a=n.split(" ")).length<2)&&(h=t.getBBox(),0===h.x&&0===h.y&&h.width+h.height===0&&(h={x:parseFloat(t.hasAttribute("x")?t.getAttribute("x"):t.hasAttribute("cx")?t.getAttribute("cx"):0)||0,y:parseFloat(t.hasAttribute("y")?t.getAttribute("y"):t.hasAttribute("cy")?t.getAttribute("cy"):0)||0,width:0,height:0}),e=ct(e).split(" "),a=[(-1!==e[0].indexOf("%")?parseFloat(e[0])/100*h.width:parseFloat(e[0]))+h.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*h.height:parseFloat(e[1]))+h.y]),i.xOrigin=d=parseFloat(a[0]),i.yOrigin=u=parseFloat(a[1]),n&&x!==Wt&&(p=x[0],h=x[1],f=x[2],m=x[3],g=x[4],v=x[5],y=p*m-h*f,y&&(l=d*(m/y)+u*(-f/y)+(f*v-m*g)/y,c=d*(-h/y)+u*(p/y)-(p*v-h*g)/y,d=i.xOrigin=a[0]=l,u=i.yOrigin=a[1]=c)),b&&(r&&(i.xOffset=b.xOffset,i.yOffset=b.yOffset,b=i),o||o!==!1&&s.defaultSmoothOrigin!==!1?(l=d-_,c=u-w,b.xOffset+=l*x[0]+c*x[2]-l,b.yOffset+=l*x[1]+c*x[3]-c):b.xOffset=b.yOffset=0),r||t.setAttribute("data-svg-origin",a.join(" "))},Bt=function(t){var e,i=H("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,o=this.nextSibling,r=this.style.cssText;if(Mt.appendChild(i),i.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Bt}catch(s){}else this._originalGetBBox&&(e=this._originalGetBBox());return o?n.insertBefore(this,o):n.appendChild(this),Mt.removeChild(i),this.style.cssText=r,e},Nt=function(t){try{return t.getBBox()}catch(e){return Bt.call(t,!0)}},Ht=function(t){return!(!Dt||!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Nt(t))},Wt=[1,0,0,1,0,0],qt=function(t,e){var i,n,o,r,s,a,l,c=t._gsTransform||new Lt,d=1e5,u=t.style;if($t?n=et(t,Et,null,!0):t.currentStyle&&(n=t.currentStyle.filter.match(z),n=n&&4===n.length?[n[0].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),c.x||0,c.y||0].join(","):""),i=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,$t&&i&&!t.offsetParent&&t!==Mt&&(r=u.display,u.display="block",l=t.parentNode,l&&t.offsetParent||(s=1,a=t.nextSibling,Mt.appendChild(t)),n=et(t,Et,null,!0),i=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,r?u.display=r:Qt(u,"display"),s&&(a?l.insertBefore(t,a):l?l.appendChild(t):Mt.removeChild(t))),(c.svg||t.getCTM&&Ht(t))&&(i&&-1!==(u[$t]+"").indexOf("matrix")&&(n=u[$t],i=0),o=t.getAttribute("transform"),i&&o&&(o=t.transform.baseVal.consolidate().matrix,n="matrix("+o.a+","+o.b+","+o.c+","+o.d+","+o.e+","+o.f+")",i=0)),i)return Wt;for(o=(n||"").match(y)||[],St=o.length;--St>-1;)r=Number(o[St]),o[St]=(s=r-(r|=0))?(s*d+(0>s?-.5:.5)|0)/d+r:r;return e&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o},Vt=V.getTransform=function(t,i,n,o){if(t._gsTransform&&n&&!o)return t._gsTransform;var r,a,l,c,d,u,p=n?t._gsTransform||new Lt:new Lt,h=p.scaleX<0,f=2e-5,m=1e5,g=zt?parseFloat(et(t,It,i,!1,"0 0 0").split(" ")[2])||p.zOrigin||0:0,v=parseFloat(s.defaultTransformPerspective)||0;if(p.svg=!(!t.getCTM||!Ht(t)),p.svg&&(jt(t,et(t,It,i,!1,"50% 50%")+"",p,t.getAttribute("data-svg-origin")),Pt=s.useSVGTransformAttr||Ft),r=qt(t),r!==Wt){if(16===r.length){var y,_,w,b,x,T=r[0],S=r[1],k=r[2],C=r[3],O=r[4],P=r[5],A=r[6],$=r[7],E=r[8],I=r[9],z=r[10],L=r[12],D=r[13],R=r[14],M=r[11],j=Math.atan2(A,z);p.zOrigin&&(R=-p.zOrigin,L=E*R-r[12],D=I*R-r[13],R=z*R+p.zOrigin-r[14]),p.rotationX=j*F,j&&(b=Math.cos(-j),x=Math.sin(-j),y=O*b+E*x,_=P*b+I*x,w=A*b+z*x,E=O*-x+E*b,I=P*-x+I*b,z=A*-x+z*b,M=$*-x+M*b,O=y,P=_,A=w),j=Math.atan2(-k,z),p.rotationY=j*F,j&&(b=Math.cos(-j),x=Math.sin(-j),y=T*b-E*x,_=S*b-I*x,w=k*b-z*x,I=S*x+I*b,z=k*x+z*b,M=C*x+M*b,T=y,S=_,k=w),j=Math.atan2(S,T),p.rotation=j*F,j&&(b=Math.cos(j),x=Math.sin(j),y=T*b+S*x,_=O*b+P*x,w=E*b+I*x,S=S*b-T*x,P=P*b-O*x,I=I*b-E*x,T=y,O=_,E=w),p.rotationX&&Math.abs(p.rotationX)+Math.abs(p.rotation)>359.9&&(p.rotationX=p.rotation=0,p.rotationY=180-p.rotationY),j=Math.atan2(O,P),p.scaleX=(Math.sqrt(T*T+S*S+k*k)*m+.5|0)/m,p.scaleY=(Math.sqrt(P*P+A*A)*m+.5|0)/m,p.scaleZ=(Math.sqrt(E*E+I*I+z*z)*m+.5|0)/m,T/=p.scaleX,O/=p.scaleY,S/=p.scaleX,P/=p.scaleY,Math.abs(j)>f?(p.skewX=j*F,O=0,"simple"!==p.skewType&&(p.scaleY*=1/Math.cos(j))):p.skewX=0,p.perspective=M?1/(0>M?-M:M):0,p.x=L,p.y=D,p.z=R,p.svg&&(p.x-=p.xOrigin-(p.xOrigin*T-p.yOrigin*O),p.y-=p.yOrigin-(p.yOrigin*S-p.xOrigin*P))}else if(!zt||o||!r.length||p.x!==r[4]||p.y!==r[5]||!p.rotationX&&!p.rotationY){var B=r.length>=6,N=B?r[0]:1,H=r[1]||0,W=r[2]||0,q=B?r[3]:1;p.x=r[4]||0,p.y=r[5]||0,l=Math.sqrt(N*N+H*H),c=Math.sqrt(q*q+W*W),d=N||H?Math.atan2(H,N)*F:p.rotation||0,u=W||q?Math.atan2(W,q)*F+d:p.skewX||0,p.scaleX=l,p.scaleY=c,p.rotation=d,p.skewX=u,zt&&(p.rotationX=p.rotationY=p.z=0,p.perspective=v,p.scaleZ=1),p.svg&&(p.x-=p.xOrigin-(p.xOrigin*N+p.yOrigin*W),p.y-=p.yOrigin-(p.xOrigin*H+p.yOrigin*q))}Math.abs(p.skewX)>90&&Math.abs(p.skewX)<270&&(h?(p.scaleX*=-1,p.skewX+=p.rotation<=0?180:-180,p.rotation+=p.rotation<=0?180:-180):(p.scaleY*=-1,p.skewX+=p.skewX<=0?180:-180)),p.zOrigin=g;for(a in p)p[a]<f&&p[a]>-f&&(p[a]=0)}return n&&(t._gsTransform=p,p.svg&&(Pt&&t.style[$t]?e.delayedCall(.001,function(){Qt(t.style,$t)}):!Pt&&t.getAttribute("transform")&&e.delayedCall(.001,function(){t.removeAttribute("transform")}))),p},Yt=function(t){var e,i,n=this.data,o=-n.rotation*M,r=o+n.skewX*M,s=1e5,a=(Math.cos(o)*n.scaleX*s|0)/s,l=(Math.sin(o)*n.scaleX*s|0)/s,c=(Math.sin(r)*-n.scaleY*s|0)/s,d=(Math.cos(r)*n.scaleY*s|0)/s,u=this.t.style,p=this.t.currentStyle;if(p){i=l,l=-c,c=-i,e=p.filter,u.filter="";var h,f,g=this.t.offsetWidth,v=this.t.offsetHeight,y="absolute"!==p.position,_="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+l+", M21="+c+", M22="+d,w=n.x+g*n.xPercent/100,b=n.y+v*n.yPercent/100;if(null!=n.ox&&(h=(n.oxp?g*n.ox*.01:n.ox)-g/2,f=(n.oyp?v*n.oy*.01:n.oy)-v/2,w+=h-(h*a+f*l),b+=f-(h*c+f*d)),y?(h=g/2,f=v/2,_+=", Dx="+(h-(h*a+f*l)+w)+", Dy="+(f-(h*c+f*d)+b)+")"):_+=", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?u.filter=e.replace(L,_):u.filter=_+" "+e,(0===t||1===t)&&1===a&&0===l&&0===c&&1===d&&(y&&-1===_.indexOf("Dx=0, Dy=0")||S.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&u.removeAttribute("filter")),!y){var x,k,C,O=8>m?1:-1;for(h=n.ieOffsetX||0,f=n.ieOffsetY||0,n.ieOffsetX=Math.round((g-((0>a?-a:a)*g+(0>l?-l:l)*v))/2+w),n.ieOffsetY=Math.round((v-((0>d?-d:d)*v+(0>c?-c:c)*g))/2+b),St=0;4>St;St++)k=at[St],x=p[k],i=-1!==x.indexOf("px")?parseFloat(x):it(this.t,k,parseFloat(x),x.replace(T,""))||0,C=i!==n[k]?2>St?-n.ieOffsetX:-n.ieOffsetY:2>St?h-n.ieOffsetX:f-n.ieOffsetY,u[k]=(n[k]=Math.round(i-C*(0===St||2===St?1:O)))+"px"}}},Xt=V.set3DTransformRatio=V.setTransformRatio=function(t){var e,i,n,o,r,s,a,l,c,d,u,p,f,m,g,v,y,_,w,b,x,T,S,k=this.data,C=this.t.style,O=k.rotation,P=k.rotationX,A=k.rotationY,$=k.scaleX,E=k.scaleY,I=k.scaleZ,z=k.x,L=k.y,D=k.z,R=k.svg,F=k.perspective,j=k.force3D,B=k.skewY,N=k.skewX;if(B&&(N+=B,O+=B),((1===t||0===t)&&"auto"===j&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!j)&&!D&&!F&&!A&&!P&&1===I||Pt&&R||!zt)return void(O||N||R?(O*=M,T=N*M,S=1e5,i=Math.cos(O)*$,r=Math.sin(O)*$,n=Math.sin(O-T)*-E,s=Math.cos(O-T)*E,T&&"simple"===k.skewType&&(e=Math.tan(T-B*M),e=Math.sqrt(1+e*e),n*=e,s*=e,B&&(e=Math.tan(B*M),e=Math.sqrt(1+e*e),i*=e,r*=e)),R&&(z+=k.xOrigin-(k.xOrigin*i+k.yOrigin*n)+k.xOffset,L+=k.yOrigin-(k.xOrigin*r+k.yOrigin*s)+k.yOffset,Pt&&(k.xPercent||k.yPercent)&&(g=this.t.getBBox(),z+=.01*k.xPercent*g.width,L+=.01*k.yPercent*g.height),g=1e-6,g>z&&z>-g&&(z=0),g>L&&L>-g&&(L=0)),w=(i*S|0)/S+","+(r*S|0)/S+","+(n*S|0)/S+","+(s*S|0)/S+","+z+","+L+")",R&&Pt?this.t.setAttribute("transform","matrix("+w):C[$t]=(k.xPercent||k.yPercent?"translate("+k.xPercent+"%,"+k.yPercent+"%) matrix(":"matrix(")+w):C[$t]=(k.xPercent||k.yPercent?"translate("+k.xPercent+"%,"+k.yPercent+"%) matrix(":"matrix(")+$+",0,0,"+E+","+z+","+L+")");if(h&&(g=1e-4,g>$&&$>-g&&($=I=2e-5),g>E&&E>-g&&(E=I=2e-5),!F||k.z||k.rotationX||k.rotationY||(F=0)),O||N)O*=M,v=i=Math.cos(O),y=r=Math.sin(O),N&&(O-=N*M,v=Math.cos(O),y=Math.sin(O),"simple"===k.skewType&&(e=Math.tan((N-B)*M),e=Math.sqrt(1+e*e),v*=e,y*=e,k.skewY&&(e=Math.tan(B*M),e=Math.sqrt(1+e*e),i*=e,r*=e))),n=-y,s=v;else{if(!(A||P||1!==I||F||R))return void(C[$t]=(k.xPercent||k.yPercent?"translate("+k.xPercent+"%,"+k.yPercent+"%) translate3d(":"translate3d(")+z+"px,"+L+"px,"+D+"px)"+(1!==$||1!==E?" scale("+$+","+E+")":""));i=s=1,n=r=0}d=1,o=a=l=c=u=p=0,f=F?-1/F:0,m=k.zOrigin,g=1e-6,b=",",x="0",O=A*M,O&&(v=Math.cos(O),y=Math.sin(O),l=-y,u=f*-y,o=i*y,a=r*y,d=v,f*=v,i*=v,r*=v),O=P*M,O&&(v=Math.cos(O),y=Math.sin(O),e=n*v+o*y,_=s*v+a*y,c=d*y,p=f*y,o=n*-y+o*v,a=s*-y+a*v,d*=v,f*=v,n=e,s=_),1!==I&&(o*=I,a*=I,d*=I,f*=I),1!==E&&(n*=E,s*=E,c*=E,p*=E),1!==$&&(i*=$,r*=$,l*=$,u*=$),(m||R)&&(m&&(z+=o*-m,L+=a*-m,D+=d*-m+m),R&&(z+=k.xOrigin-(k.xOrigin*i+k.yOrigin*n)+k.xOffset,L+=k.yOrigin-(k.xOrigin*r+k.yOrigin*s)+k.yOffset),g>z&&z>-g&&(z=x),g>L&&L>-g&&(L=x),g>D&&D>-g&&(D=0)),w=k.xPercent||k.yPercent?"translate("+k.xPercent+"%,"+k.yPercent+"%) matrix3d(":"matrix3d(",w+=(g>i&&i>-g?x:i)+b+(g>r&&r>-g?x:r)+b+(g>l&&l>-g?x:l),w+=b+(g>u&&u>-g?x:u)+b+(g>n&&n>-g?x:n)+b+(g>s&&s>-g?x:s),P||A||1!==I?(w+=b+(g>c&&c>-g?x:c)+b+(g>p&&p>-g?x:p)+b+(g>o&&o>-g?x:o),w+=b+(g>a&&a>-g?x:a)+b+(g>d&&d>-g?x:d)+b+(g>f&&f>-g?x:f)+b):w+=",0,0,0,0,1,0,",w+=z+b+L+b+D+b+(F?1+-D/F:1)+")",C[$t]=w};c=Lt.prototype,c.x=c.y=c.z=c.skewX=c.skewY=c.rotation=c.rotationX=c.rotationY=c.zOrigin=c.xPercent=c.yPercent=c.xOffset=c.yOffset=0,c.scaleX=c.scaleY=c.scaleZ=1,Ct("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,n,r,a,l){if(n._lastParsedTransform===l)return r;n._lastParsedTransform=l;var c=l.scale&&"function"==typeof l.scale?l.scale:0;c&&(l.scale=c(v,t));var d,u,p,h,f,m,y,_,w,b=t._gsTransform,x=t.style,T=1e-6,S=At.length,k=l,C={},O="transformOrigin",P=Vt(t,o,!0,k.parseTransform),A=k.transform&&("function"==typeof k.transform?k.transform(v,g):k.transform);if(P.skewType=k.skewType||P.skewType||s.defaultSkewType,n._transform=P,"rotationZ"in k&&(k.rotation=k.rotationZ),A&&"string"==typeof A&&$t)u=W.style,u[$t]=A,u.display="block",u.position="absolute",-1!==A.indexOf("%")&&(u.width=et(t,"width"),u.height=et(t,"height")),N.body.appendChild(W),d=Vt(W,null,!1),"simple"===P.skewType&&(d.scaleY*=Math.cos(d.skewX*M)),P.svg&&(m=P.xOrigin,y=P.yOrigin,d.x-=P.xOffset,d.y-=P.yOffset,(k.transformOrigin||k.svgOrigin)&&(A={},jt(t,ct(k.transformOrigin),A,k.svgOrigin,k.smoothOrigin,!0),m=A.xOrigin,y=A.yOrigin,d.x-=A.xOffset-P.xOffset,d.y-=A.yOffset-P.yOffset),(m||y)&&(_=qt(W,!0),d.x-=m-(m*_[0]+y*_[2]),d.y-=y-(m*_[1]+y*_[3]))),N.body.removeChild(W),d.perspective||(d.perspective=P.perspective),null!=k.xPercent&&(d.xPercent=ut(k.xPercent,P.xPercent)),null!=k.yPercent&&(d.yPercent=ut(k.yPercent,P.yPercent));else if("object"==typeof k){if(d={scaleX:ut(null!=k.scaleX?k.scaleX:k.scale,P.scaleX),scaleY:ut(null!=k.scaleY?k.scaleY:k.scale,P.scaleY),scaleZ:ut(k.scaleZ,P.scaleZ),x:ut(k.x,P.x),y:ut(k.y,P.y),z:ut(k.z,P.z),xPercent:ut(k.xPercent,P.xPercent),yPercent:ut(k.yPercent,P.yPercent),perspective:ut(k.transformPerspective,P.perspective)},f=k.directionalRotation,null!=f)if("object"==typeof f)for(u in f)k[u]=f[u];else k.rotation=f;"string"==typeof k.x&&-1!==k.x.indexOf("%")&&(d.x=0,d.xPercent=ut(k.x,P.xPercent)),"string"==typeof k.y&&-1!==k.y.indexOf("%")&&(d.y=0,d.yPercent=ut(k.y,P.yPercent)),d.rotation=pt("rotation"in k?k.rotation:"shortRotation"in k?k.shortRotation+"_short":P.rotation,P.rotation,"rotation",C),zt&&(d.rotationX=pt("rotationX"in k?k.rotationX:"shortRotationX"in k?k.shortRotationX+"_short":P.rotationX||0,P.rotationX,"rotationX",C),d.rotationY=pt("rotationY"in k?k.rotationY:"shortRotationY"in k?k.shortRotationY+"_short":P.rotationY||0,P.rotationY,"rotationY",C)),d.skewX=pt(k.skewX,P.skewX),d.skewY=pt(k.skewY,P.skewY)}for(zt&&null!=k.force3D&&(P.force3D=k.force3D,h=!0),p=P.force3D||P.z||P.rotationX||P.rotationY||d.z||d.rotationX||d.rotationY||d.perspective,p||null==k.scale||(d.scaleZ=1);--S>-1;)w=At[S],A=d[w]-P[w],(A>T||-T>A||null!=k[w]||null!=j[w])&&(h=!0,r=new bt(P,w,P[w],A,r),w in C&&(r.e=C[w]),r.xs0=0,r.plugin=a,n._overwriteProps.push(r.n));return A="function"==typeof k.transformOrigin?k.transformOrigin(v,g):k.transformOrigin,P.svg&&(A||k.svgOrigin)&&(m=P.xOffset,y=P.yOffset,jt(t,ct(A),d,k.svgOrigin,k.smoothOrigin),r=xt(P,"xOrigin",(b?P:d).xOrigin,d.xOrigin,r,O),r=xt(P,"yOrigin",(b?P:d).yOrigin,d.yOrigin,r,O),(m!==P.xOffset||y!==P.yOffset)&&(r=xt(P,"xOffset",b?m:P.xOffset,P.xOffset,r,O),r=xt(P,"yOffset",b?y:P.yOffset,P.yOffset,r,O)),A="0px 0px"),(A||zt&&p&&P.zOrigin)&&($t?(h=!0,w=It,A||(A=(et(t,w,o,!1,"50% 50%")+"").split(" "),A=A[0]+" "+A[1]+" "+P.zOrigin+"px"),A+="",r=new bt(x,w,0,0,r,(-1),O),r.b=x[w],r.plugin=a,zt?(u=P.zOrigin,A=A.split(" "),P.zOrigin=(A.length>2?parseFloat(A[2]):u)||0,r.xs0=r.e=A[0]+" "+(A[1]||"50%")+" 0px",r=new bt(P,"zOrigin",0,0,r,(-1),r.n),r.b=u,r.xs0=r.e=P.zOrigin):r.xs0=r.e=A):ct(A+"",P)),h&&(n._transformType=P.svg&&Pt||!p&&3!==this._transformType?2:3),c&&(l.scale=c),r},allowFunc:!0,prefix:!0}),Ct("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Ct("clipPath",{defaultValue:"inset(0%)",prefix:!0,multi:!0,formatter:yt("inset(0% 0% 0% 0%)",!1,!0)}),Ct("borderRadius",{defaultValue:"0px",parser:function(t,e,i,r,s,a){e=this.format(e);var l,c,d,u,p,h,f,m,g,v,y,_,w,b,x,T,S=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],k=t.style;for(g=parseFloat(t.offsetWidth),v=parseFloat(t.offsetHeight),l=e.split(" "),c=0;c<S.length;c++)this.p.indexOf("border")&&(S[c]=Z(S[c])),p=u=et(t,S[c],o,!1,"0px"),-1!==p.indexOf(" ")&&(u=p.split(" "),p=u[0],u=u[1]),h=d=l[c],f=parseFloat(p),_=p.substr((f+"").length),w="="===h.charAt(1),w?(m=parseInt(h.charAt(0)+"1",10),h=h.substr(2),m*=parseFloat(h),y=h.substr((m+"").length-(0>m?1:0))||""):(m=parseFloat(h),y=h.substr((m+"").length)),""===y&&(y=n[i]||_),y!==_&&(b=it(t,"borderLeft",f,_),x=it(t,"borderTop",f,_),"%"===y?(p=b/g*100+"%",u=x/v*100+"%"):"em"===y?(T=it(t,"borderLeft",1,"em"),p=b/T+"em",u=x/T+"em"):(p=b+"px",u=x+"px"),w&&(h=parseFloat(p)+m+y,d=parseFloat(u)+m+y)),s=Tt(k,S[c],p+" "+u,h+" "+d,!1,"0px",s);return s},prefix:!0,formatter:yt("0px 0px 0px 0px",!1,!0)}),Ct("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,n,r,s){return Tt(t.style,i,this.format(et(t,i,o,!1,"0px 0px")),this.format(e),!1,"0px",r)},prefix:!0,formatter:yt("0px 0px",!1,!0)}),Ct("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,n,r,s){var a,l,c,d,u,p,h="background-position",f=o||tt(t,null),g=this.format((f?m?f.getPropertyValue(h+"-x")+" "+f.getPropertyValue(h+"-y"):f.getPropertyValue(h):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),v=this.format(e);if(-1!==g.indexOf("%")!=(-1!==v.indexOf("%"))&&v.split(",").length<2&&(p=et(t,"backgroundImage").replace($,""),p&&"none"!==p)){for(a=g.split(" "),l=v.split(" "),q.setAttribute("src",p),c=2;--c>-1;)g=a[c],d=-1!==g.indexOf("%"),d!==(-1!==l[c].indexOf("%"))&&(u=0===c?t.offsetWidth-q.width:t.offsetHeight-q.height,a[c]=d?parseFloat(g)/100*u+"px":parseFloat(g)/u*100+"%");g=a.join(" ")}return this.parseComplex(t.style,g,v,r,s)},formatter:ct}),Ct("backgroundSize",{defaultValue:"0 0",formatter:function(t){return t+="","co"===t.substr(0,2)?t:ct(-1===t.indexOf(" ")?t+" "+t:t)}}),Ct("perspective",{defaultValue:"0px",prefix:!0}),Ct("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Ct("transformStyle",{prefix:!0}),Ct("backfaceVisibility",{prefix:!0}),Ct("userSelect",{prefix:!0}),Ct("margin",{parser:_t("marginTop,marginRight,marginBottom,marginLeft")}),Ct("padding",{parser:_t("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Ct("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,n,r,s){var a,l,c;return 9>m?(l=t.currentStyle,c=8>m?" ":",",a="rect("+l.clipTop+c+l.clipRight+c+l.clipBottom+c+l.clipLeft+")",e=this.format(e).split(",").join(c)):(a=this.format(et(t,this.p,o,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,a,e,r,s)}}),Ct("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Ct("autoRound,strictUnits",{parser:function(t,e,i,n,o){return o}}),Ct("border",{defaultValue:"0px solid #000",parser:function(t,e,i,n,r,s){var a=et(t,"borderTopWidth",o,!1,"0px"),l=this.format(e).split(" "),c=l[0].replace(T,"");return"px"!==c&&(a=parseFloat(a)/it(t,"borderTopWidth",1,c)+c),this.parseComplex(t.style,this.format(a+" "+et(t,"borderTopStyle",o,!1,"solid")+" "+et(t,"borderTopColor",o,!1,"#000")),l.join(" "),r,s)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(vt)||["#000"])[0]}}),Ct("borderWidth",{parser:_t("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Ct("float,cssFloat,styleFloat",{parser:function(t,e,i,n,o,r){var s=t.style,a="cssFloat"in s?"cssFloat":"styleFloat";return new bt(s,a,0,0,o,(-1),i,(!1),0,s[a],e)}});var Ut=function(t){var e,i=this.t,n=i.filter||et(this.data,"filter")||"",o=this.s+this.c*t|0;100===o&&(-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(i.removeAttribute("filter"),e=!et(this.data,"filter")):(i.filter=n.replace(C,""),e=!0)),e||(this.xn1&&(i.filter=n=n||"alpha(opacity="+o+")"),-1===n.indexOf("pacity")?0===o&&this.xn1||(i.filter=n+" alpha(opacity="+o+")"):i.filter=n.replace(S,"opacity="+o))};Ct("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,n,r,s){var a=parseFloat(et(t,"opacity",o,!1,"1")),l=t.style,c="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+a),c&&1===a&&"hidden"===et(t,"visibility",o)&&0!==e&&(a=0),X?r=new bt(l,"opacity",a,e-a,r):(r=new bt(l,"opacity",100*a,100*(e-a),r),r.xn1=c?1:0,l.zoom=1,r.type=2,r.b="alpha(opacity="+r.s+")",r.e="alpha(opacity="+(r.s+r.c)+")",r.data=t,r.plugin=s,r.setRatio=Ut),c&&(r=new bt(l,"visibility",0,0,r,(-1),null,(!1),0,0!==a?"inherit":"hidden",0===e?"hidden":"inherit"),r.xs0="inherit",n._overwriteProps.push(r.n),n._overwriteProps.push(i)),r}});var Qt=function(t,e){e&&(t.removeProperty?(("ms"===e.substr(0,2)||"webkit"===e.substr(0,6))&&(e="-"+e),t.removeProperty(e.replace(P,"-$1").toLowerCase())):t.removeAttribute(e))},Gt=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:Qt(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Ct("className",{parser:function(t,e,n,r,s,a,l){var c,d,u,p,h,f=t.getAttribute("class")||"",m=t.style.cssText;if(s=r._classNamePT=new bt(t,n,0,0,s,2),s.setRatio=Gt,s.pr=-11,i=!0,s.b=f,d=ot(t,o),u=t._gsClassPT){for(p={},h=u.data;h;)p[h.p]=1,h=h._next;u.setRatio(1)}return t._gsClassPT=s,s.e="="!==e.charAt(1)?e:f.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",s.e),c=rt(t,d,ot(t),l,p),t.setAttribute("class",f),s.data=c.firstMPT,t.style.cssText!==m&&(t.style.cssText=m),s=s.xfirst=r.parse(t,c.difs,s,a)}});var Kt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,n,o,r,s=this.t.style,a=l.transform.parse;if("all"===this.e)s.cssText="",o=!0;else for(e=this.e.split(" ").join("").split(","),n=e.length;--n>-1;)i=e[n],l[i]&&(l[i].parse===a?o=!0:i="transformOrigin"===i?It:l[i].p),Qt(s,i);o&&(Qt(s,$t),r=this.t._gsTransform,r&&(r.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Ct("clearProps",{parser:function(t,e,n,o,r){return r=new bt(t,n,0,0,r,2),r.setRatio=Kt,r.e=e,r.pr=-10,r.data=o._tween,i=!0,r}}),c="bezier,throwProps,physicsProps,physics2D".split(","),St=c.length;St--;)Ot(c[St]);c=s.prototype,c._firstPT=c._lastParsedTransform=c._transform=null,c._onInitTween=function(t,e,a,c){if(!t.nodeType)return!1;this._target=g=t,this._tween=a,this._vars=e,v=c,d=e.autoRound,i=!1,n=e.suffixMap||s.suffixMap,o=tt(t,""),r=this._overwriteProps;var h,m,y,_,w,b,x,T,S,C=t.style;if(u&&""===C.zIndex&&(h=et(t,"zIndex",o),("auto"===h||""===h)&&this._addLazySet(C,"zIndex",0)),"string"==typeof e&&(_=C.cssText,h=ot(t,o),C.cssText=_+";"+e,h=rt(t,h,ot(t)).difs,!X&&k.test(e)&&(h.opacity=parseFloat(RegExp.$1)),e=h,C.cssText=_),e.className?this._firstPT=m=l.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=m=this.parse(t,e,null),this._transformType){for(S=3===this._transformType,$t?p&&(u=!0,""===C.zIndex&&(x=et(t,"zIndex",o),("auto"===x||""===x)&&this._addLazySet(C,"zIndex",0)),f&&this._addLazySet(C,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(S?"visible":"hidden"))):C.zoom=1,y=m;y&&y._next;)y=y._next;T=new bt(t,"transform",0,0,null,2),this._linkCSSP(T,null,y),T.setRatio=$t?Xt:Yt,T.data=this._transform||Vt(t,o,!0),T.tween=a,T.pr=-1,r.pop()}if(i){for(;m;){for(b=m._next,y=_;y&&y.pr>m.pr;)y=y._next;(m._prev=y?y._prev:w)?m._prev._next=m:_=m,(m._next=y)?y._prev=m:w=m,m=b}this._firstPT=_}return!0},c.parse=function(t,e,i,r){var s,a,c,u,p,h,f,m,y,_,w=t.style;for(s in e){if(h=e[s],a=l[s],"function"!=typeof h||a&&a.allowFunc||(h=h(v,g)),a)i=a.parse(t,h,s,this,i,r,e);else{if("--"===s.substr(0,2)){this._tween._propLookup[s]=this._addTween.call(this._tween,t.style,"setProperty",tt(t).getPropertyValue(s)+"",h+"",s,!1,s);continue}p=et(t,s,o)+"",y="string"==typeof h,"color"===s||"fill"===s||"stroke"===s||-1!==s.indexOf("Color")||y&&O.test(h)?(y||(h=mt(h),h=(h.length>3?"rgba(":"rgb(")+h.join(",")+")"),i=Tt(w,s,p,h,!0,"transparent",i,0,r)):y&&R.test(h)?i=Tt(w,s,p,h,!0,null,i,0,r):(c=parseFloat(p),f=c||0===c?p.substr((c+"").length):"",(""===p||"auto"===p)&&("width"===s||"height"===s?(c=lt(t,s,o),f="px"):"left"===s||"top"===s?(c=nt(t,s,o),f="px"):(c="opacity"!==s?0:1,f="")),_=y&&"="===h.charAt(1),_?(u=parseInt(h.charAt(0)+"1",10),h=h.substr(2),u*=parseFloat(h),m=h.replace(T,"")):(u=parseFloat(h),m=y?h.replace(T,""):""),""===m&&(m=s in n?n[s]:f), 9h=u||0===u?(_?u+c:u)+m:e[s],f!==m&&(""!==m||"lineHeight"===s)&&(u||0===u)&&c&&(c=it(t,s,c,f),"%"===m?(c/=it(t,s,100,"%")/100,e.strictUnits!==!0&&(p=c+"%")):"em"===m||"rem"===m||"vw"===m||"vh"===m?c/=it(t,s,1,m):"px"!==m&&(u=it(t,s,u,m),m="px"),_&&(u||0===u)&&(h=u+c+m)),_&&(u+=c),!c&&0!==c||!u&&0!==u?void 0!==w[s]&&(h||h+""!="NaN"&&null!=h)?(i=new bt(w,s,u||c||0,0,i,(-1),s,(!1),0,p,h),i.xs0="none"!==h||"display"!==s&&-1===s.indexOf("Style")?h:p):Q("invalid "+s+" tween value: "+e[s]):(i=new bt(w,s,c,u-c,i,0,s,d!==!1&&("px"===m||"zIndex"===s),0,p,h),i.xs0=m))}r&&i&&!i.plugin&&(i.plugin=r)}return i},c.setRatio=function(t){var e,i,n,o=this._firstPT,r=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;o;){if(e=o.c*t+o.s,o.r?e=o.r(e):r>e&&e>-r&&(e=0),o.type)if(1===o.type)if(n=o.l,2===n)o.t[o.p]=o.xs0+e+o.xs1+o.xn1+o.xs2;else if(3===n)o.t[o.p]=o.xs0+e+o.xs1+o.xn1+o.xs2+o.xn2+o.xs3;else if(4===n)o.t[o.p]=o.xs0+e+o.xs1+o.xn1+o.xs2+o.xn2+o.xs3+o.xn3+o.xs4;else if(5===n)o.t[o.p]=o.xs0+e+o.xs1+o.xn1+o.xs2+o.xn2+o.xs3+o.xn3+o.xs4+o.xn4+o.xs5;else{for(i=o.xs0+e+o.xs1,n=1;n<o.l;n++)i+=o["xn"+n]+o["xs"+(n+1)];o.t[o.p]=i}else-1===o.type?o.t[o.p]=o.xs0:o.setRatio&&o.setRatio(t);else o.t[o.p]=e+o.xs0;o=o._next}else for(;o;)2!==o.type?o.t[o.p]=o.b:o.setRatio(t),o=o._next;else for(;o;){if(2!==o.type)if(o.r&&-1!==o.type)if(e=o.r(o.s+o.c),o.type){if(1===o.type){for(n=o.l,i=o.xs0+e+o.xs1,n=1;n<o.l;n++)i+=o["xn"+n]+o["xs"+(n+1)];o.t[o.p]=i}}else o.t[o.p]=e+o.xs0;else o.t[o.p]=o.e;else o.setRatio(t);o=o._next}},c._enableTransforms=function(t){this._transform=this._transform||Vt(this._target,o,!0),this._transformType=this._transform.svg&&Pt||!t&&3!==this._transformType?2:3};var Zt=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};c._addLazySet=function(t,e,i){var n=this._firstPT=new bt(t,e,0,0,this._firstPT,2);n.e=i,n.setRatio=Zt,n.data=this},c._linkCSSP=function(t,e,i,n){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,n=!0),i?i._next=t:n||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},c._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&(e.r=t[e.p]),e=e._next},c._kill=function(e){var i,n,o,r=e;if(e.autoAlpha||e.alpha){r={};for(n in e)r[n]=e[n];r.opacity=1,r.autoAlpha&&(r.visibility=1)}for(e.className&&(i=this._classNamePT)&&(o=i.xfirst,o&&o._prev?this._linkCSSP(o._prev,i._next,o._prev._prev):o===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,o._prev),this._classNamePT=null),i=this._firstPT;i;)i.plugin&&i.plugin!==n&&i.plugin._kill&&(i.plugin._kill(e),n=i.plugin),i=i._next;return t.prototype._kill.call(this,r)};var Jt=function(t,e,i){var n,o,r,s;if(t.slice)for(o=t.length;--o>-1;)Jt(t[o],e,i);else for(n=t.childNodes,o=n.length;--o>-1;)r=n[o],s=r.type,r.style&&(e.push(ot(r)),i&&i.push(r)),1!==s&&9!==s&&11!==s||!r.childNodes.length||Jt(r,e,i)};return s.cascadeTo=function(t,i,n){var o,r,s,a,l=e.to(t,i,n),c=[l],d=[],u=[],p=[],h=e._internals.reservedProps;for(t=l._targets||l.target,Jt(t,d,p),l.render(i,!0,!0),Jt(t,u),l.render(0,!0,!0),l._enabled(!0),o=p.length;--o>-1;)if(r=rt(p[o],d[o],u[o]),r.firstMPT){r=r.difs;for(s in n)h[s]&&(r[s]=n[s]);a={};for(s in r)a[s]=d[o][s];c.push(e.fromTo(p[o],i,a,r))}return c},t.activate([s]),s},!0),function(){var t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),e=function(t){var e=1>t?Math.pow(10,(t+"").length-2):1;return function(i){return(Math.round(i/t)*t*e|0)/e}},i=function(t,e){for(;t;)t.f||t.blob||(t.m=e||Math.round),t=t._next},n=t.prototype;n._onInitAllProps=function(){var t,n,o,r,s=this._tween,a=s.vars.roundProps,l={},c=s._propLookup.roundProps;if("object"!=typeof a||a.push)for("string"==typeof a&&(a=a.split(",")),o=a.length;--o>-1;)l[a[o]]=Math.round;else for(r in a)l[r]=e(a[r]);for(r in l)for(t=s._firstPT;t;)n=t._next,t.pg?t.t._mod(l):t.n===r&&(2===t.f&&t.t?i(t.t._firstPT,l[r]):(this._add(t.t,r,t.s,t.c,l[r]),n&&(n._prev=t._prev),t._prev?t._prev._next=n:s._firstPT===t&&(s._firstPT=n),t._next=t._prev=null,s._propLookup[r]=c)),t=n;return!1},n._add=function(t,e,i,n,o){this._addTween(t,e,i,i+n,e,o||Math.round),this._overwriteProps.push(e)}}(),function(){_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(t,e,i,n){var o,r;if("function"!=typeof t.setAttribute)return!1;for(o in e)r=e[o],"function"==typeof r&&(r=r(n,t)),this._addTween(t,"setAttribute",t.getAttribute(o)+"",r+"",o,!1,o),this._overwriteProps.push(o);return!0}})}(),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(t,e,i,n){"object"!=typeof e&&(e={rotation:e}),this.finals={};var o,r,s,a,l,c,d=e.useRadians===!0?2*Math.PI:360,u=1e-6;for(o in e)"useRadians"!==o&&(a=e[o],"function"==typeof a&&(a=a(n,t)),c=(a+"").split("_"),r=c[0],s=parseFloat("function"!=typeof t[o]?t[o]:t[o.indexOf("set")||"function"!=typeof t["get"+o.substr(3)]?o:"get"+o.substr(3)]()),a=this.finals[o]="string"==typeof r&&"="===r.charAt(1)?s+parseInt(r.charAt(0)+"1",10)*Number(r.substr(2)):Number(r)||0,l=a-s,c.length&&(r=c.join("_"),-1!==r.indexOf("short")&&(l%=d,l!==l%(d/2)&&(l=0>l?l+d:l-d)),-1!==r.indexOf("_cw")&&0>l?l=(l+9999999999*d)%d-(l/d|0)*d:-1!==r.indexOf("ccw")&&l>0&&(l=(l-9999999999*d)%d-(l/d|0)*d)),(l>u||-u>l)&&(this._addTween(t,o,s,s+l,o),this._overwriteProps.push(o)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,n,o,r=_gsScope.GreenSockGlobals||_gsScope,s=r.com.greensock,a=2*Math.PI,l=Math.PI/2,c=s._class,d=function(e,i){var n=c("easing."+e,function(){},!0),o=n.prototype=new t;return o.constructor=n,o.getRatio=i,n},u=t.register||function(){},p=function(t,e,i,n,o){var r=c("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new n},!0);return u(r,t),r},h=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},f=function(e,i){var n=c("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),o=n.prototype=new t;return o.constructor=n,o.getRatio=i,o.config=function(t){return new n(t)},n},m=p("Back",f("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),f("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),f("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),g=c("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),v=g.prototype=new t;return v.constructor=g,v.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1===t?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},g.ease=new g(.7,.7),v.config=g.config=function(t,e,i){return new g(t,e,i)},e=c("easing.SteppedEase",function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0},!0),v=e.prototype=new t,v.constructor=e,v.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},v.config=e.config=function(t,i){return new e(t,i)},i=c("easing.ExpoScaleEase",function(t,e,i){this._p1=Math.log(e/t),this._p2=e-t,this._p3=t,this._ease=i},!0),v=i.prototype=new t,v.constructor=i,v.getRatio=function(t){return this._ease&&(t=this._ease.getRatio(t)),(this._p3*Math.exp(this._p1*t)-this._p3)/this._p2},v.config=i.config=function(t,e,n){return new i(t,e,n)},n=c("easing.RoughEase",function(e){e=e||{};for(var i,n,o,r,s,a,l=e.taper||"none",c=[],d=0,u=0|(e.points||20),p=u,f=e.randomize!==!1,m=e.clamp===!0,g=e.template instanceof t?e.template:null,v="number"==typeof e.strength?.4*e.strength:.4;--p>-1;)i=f?Math.random():1/u*p,n=g?g.getRatio(i):i,"none"===l?o=v:"out"===l?(r=1-i,o=r*r*v):"in"===l?o=i*i*v:.5>i?(r=2*i,o=r*r*.5*v):(r=2*(1-i),o=r*r*.5*v),f?n+=Math.random()*o-.5*o:p%2?n+=.5*o:n-=.5*o,m&&(n>1?n=1:0>n&&(n=0)),c[d++]={x:i,y:n};for(c.sort(function(t,e){return t.x-e.x}),a=new h(1,1,null),p=u;--p>-1;)s=c[p],a=new h(s.x,s.y,a);this._prev=new h(0,0,0!==a.t?a:a.next)},!0),v=n.prototype=new t,v.constructor=n,v.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},v.config=function(t){return new n(t)},n.ease=new n,p("Bounce",d("BounceOut",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),d("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),d("BounceInOut",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),p("Circ",d("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),d("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),d("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),o=function(e,i,n){var o=c("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||n)/(1>t?t:1),this._p3=this._p2/a*(Math.asin(1/this._p1)||0),this._p2=a/this._p2},!0),r=o.prototype=new t;return r.constructor=o,r.getRatio=i,r.config=function(t,e){return new o(t,e)},o},p("Elastic",o("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),o("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2))},.3),o("ElasticInOut",function(t){return(t*=2)<1?-.5*(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),p("Expo",d("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),d("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),d("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),p("Sine",d("SineOut",function(t){return Math.sin(t*l)}),d("SineIn",function(t){return-Math.cos(t*l)+1}),d("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),c("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),u(r.SlowMo,"SlowMo","ease,"),u(n,"RoughEase","ease,"),u(e,"SteppedEase","ease,"),m},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t,e){"use strict";var i={},n=t.document,o=t.GreenSockGlobals=t.GreenSockGlobals||t,r=o[e];if(r)return"undefined"!=typeof module&&module.exports&&(module.exports=r),r;var s,a,l,c,d,u=function(t){var e,i=t.split("."),n=o;for(e=0;e<i.length;e++)n[i[e]]=n=n[i[e]]||{};return n},p=u("com.greensock"),h=1e-8,f=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},m=function(){},g=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),v={},y=function(n,r,s,a){this.sc=v[n]?v[n].sc:[],v[n]=this,this.gsClass=null,this.func=s;var l=[];this.check=function(c){for(var d,p,h,f,m=r.length,g=m;--m>-1;)(d=v[r[m]]||new y(r[m],[])).gsClass?(l[m]=d.gsClass,g--):c&&d.sc.push(this);if(0===g&&s){if(p=("com.greensock."+n).split("."),h=p.pop(),f=u(p.join("."))[h]=this.gsClass=s.apply(s,l),a)if(o[h]=i[h]=f,"undefined"!=typeof module&&module.exports)if(n===e){module.exports=i[e]=f;for(m in i)f[m]=i[m]}else i[e]&&(i[e][h]=f);else"function"==typeof define&&define.amd&&define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+n.split(".").pop(),[],function(){return f});for(m=0;m<this.sc.length;m++)this.sc[m].check()}},this.check(!0)},_=t._gsDefine=function(t,e,i,n){return new y(t,e,i,n)},w=p._class=function(t,e,i){return e=e||function(){},_(t,[],function(){return e},i),e};_.globals=o;var b=[0,0,1,1],x=w("easing.Ease",function(t,e,i,n){this._func=t,this._type=i||0,this._power=n||0,this._params=e?b.concat(e):b},!0),T=x.map={},S=x.register=function(t,e,i,n){for(var o,r,s,a,l=e.split(","),c=l.length,d=(i||"easeIn,easeOut,easeInOut").split(",");--c>-1;)for(r=l[c],o=n?w("easing."+r,null,!0):p.easing[r]||{},s=d.length;--s>-1;)a=d[s],T[r+"."+a]=T[a+r]=o[a]=t.getRatio?t:t[a]||new t};for(l=x.prototype,l._calcEnd=!1,l.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,n=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?n*=n:2===i?n*=n*n:3===i?n*=n*n*n:4===i&&(n*=n*n*n*n),1===e?1-n:2===e?n:.5>t?n/2:1-n/2},s=["Linear","Quad","Cubic","Quart","Quint,Strong"],a=s.length;--a>-1;)l=s[a]+",Power"+a,S(new x(null,null,1,a),l,"easeOut",!0),S(new x(null,null,2,a),l,"easeIn"+(0===a?",easeNone":"")),S(new x(null,null,3,a),l,"easeInOut");T.linear=p.easing.Linear.easeIn,T.swing=p.easing.Quad.easeInOut;var k=w("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});l=k.prototype,l.addEventListener=function(t,e,i,n,o){o=o||0;var r,s,a=this._listeners[t],l=0;for(this!==c||d||c.wake(),null==a&&(this._listeners[t]=a=[]),s=a.length;--s>-1;)r=a[s],r.c===e&&r.s===i?a.splice(s,1):0===l&&r.pr<o&&(l=s+1);a.splice(l,0,{c:e,s:i,up:n,pr:o})},l.removeEventListener=function(t,e){var i,n=this._listeners[t];if(n)for(i=n.length;--i>-1;)if(n[i].c===e)return void n.splice(i,1)},l.dispatchEvent=function(t){var e,i,n,o=this._listeners[t];if(o)for(e=o.length,e>1&&(o=o.slice(0)),i=this._eventTarget;--e>-1;)n=o[e],n&&(n.up?n.c.call(n.s||i,{type:t,target:i}):n.c.call(n.s||i))};var C=t.requestAnimationFrame,O=t.cancelAnimationFrame,P=Date.now||function(){return(new Date).getTime()},A=P();for(s=["ms","moz","webkit","o"],a=s.length;--a>-1&&!C;)C=t[s[a]+"RequestAnimationFrame"],O=t[s[a]+"CancelAnimationFrame"]||t[s[a]+"CancelRequestAnimationFrame"];w("Ticker",function(t,e){var i,o,r,s,a,l=this,u=P(),p=!(e===!1||!C)&&"auto",f=500,g=33,v="tick",y=function(t){var e,n,c=P()-A;c>f&&(u+=c-g),A+=c,l.time=(A-u)/1e3,e=l.time-a,(!i||e>0||t===!0)&&(l.frame++,a+=e+(e>=s?.004:s-e),n=!0),t!==!0&&(r=o(y)),n&&l.dispatchEvent(v)};k.call(l),l.time=l.frame=0,l.tick=function(){y(!0)},l.lagSmoothing=function(t,e){return arguments.length?(f=t||1/h,void(g=Math.min(e,f,0))):1/h>f},l.sleep=function(){null!=r&&(p&&O?O(r):clearTimeout(r),o=m,r=null,l===c&&(d=!1))},l.wake=function(t){null!==r?l.sleep():t?u+=-A+(A=P()):l.frame>10&&(A=P()-f+5),o=0===i?m:p&&C?C:function(t){return setTimeout(t,1e3*(a-l.time)+1|0)},l===c&&(d=!0),y(2)},l.fps=function(t){return arguments.length?(i=t,s=1/(i||60),a=this.time+s,void l.wake()):i},l.useRAF=function(t){return arguments.length?(l.sleep(),p=t,void l.fps(i)):p},l.fps(t),setTimeout(function(){"auto"===p&&l.frame<5&&"hidden"!==(n||{}).visibilityState&&l.useRAF(!1)},1500)}),l=p.Ticker.prototype=new p.events.EventDispatcher,l.constructor=p.Ticker;var $=w("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!!e.immediateRender,this.data=e.data,this._reversed=!!e.reversed,K){d||c.wake();var i=this.vars.useFrames?G:K;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});c=$.ticker=new p.Ticker,l=$.prototype,l._dirty=l._gc=l._initted=l._paused=!1,l._totalTime=l._time=0,l._rawPrevTime=-1,l._next=l._last=l._onUpdate=l._timeline=l.timeline=null,l._paused=!1;var E=function(){d&&P()-A>2e3&&("hidden"!==(n||{}).visibilityState||!c.lagSmoothing())&&c.wake();var t=setTimeout(E,2e3);t.unref&&t.unref()};E(),l.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},l.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},l.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},l.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},l.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},l.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},l.render=function(t,e,i){},l.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},l.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<i+this.totalDuration()/this._timeScale-h},l._enabled=function(t,e){return d||c.wake(),this._gc=!t,this._active=this.isActive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},l._kill=function(t,e){return this._enabled(!1,!1)},l.kill=function(t,e){return this._kill(t,e),this},l._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},l._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},l._callback=function(t){var e=this.vars,i=e[t],n=e[t+"Params"],o=e[t+"Scope"]||e.callbackScope||this,r=n?n.length:0;switch(r){case 0:i.call(o);break;case 1:i.call(o,n[0]);break;case 2:i.call(o,n[0],n[1]);break;default:i.apply(o,n)}},l.eventCallback=function(t,e,i,n){if("on"===(t||"").substr(0,2)){var o=this.vars;if(1===arguments.length)return o[t];null==e?delete o[t]:(o[t]=e,o[t+"Params"]=g(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,o[t+"Scope"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},l.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},l.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},l.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},l.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},l.totalTime=function(t,e,i){if(d||c.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,o=this._timeline;if(t>n&&!i&&(t=n),this._startTime=(this._paused?this._pauseTime:o._time)-(this._reversed?n-t:t)/this._timeScale,o._dirty||this._uncache(!1),o._timeline)for(;o._timeline;)o._timeline._time!==(o._startTime+o._totalTime)/o._timeScale&&o.totalTime(o._totalTime,!0),o=o._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(R.length&&J(),this.render(t,e,!1),R.length&&J())}return this},l.progress=l.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},l.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},l.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},l.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,i;for(t=t||h,this._timeline&&this._timeline.smoothChildTiming&&(e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/t),this._timeScale=t,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},l.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},l.paused=function(t){if(!arguments.length)return this._paused;var e,i,n=this._timeline;return t!=this._paused&&n&&(d||t||c.wake(),e=n.rawTime(),i=e-this._pauseTime,!t&&n.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=n.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var I=w("core.SimpleTimeline",function(t){$.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});l=I.prototype=new $,l.constructor=I,l.kill()._gc=!1,l._first=l._last=l._recent=null,l._sortChildren=!1,l.add=l.insert=function(t,e,i,n){var o,r;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),o=this._last,this._sortChildren)for(r=t._startTime;o&&o._startTime>r;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=o,this._recent=t,this._timeline&&this._uncache(!0),this},l._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},l.render=function(t,e,i){var n,o=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;o;)n=o._next,(o._active||t>=o._startTime&&!o._paused&&!o._gc)&&(o._reversed?o.render((o._dirty?o.totalDuration():o._totalDuration)-(t-o._startTime)*o._timeScale,e,i):o.render((t-o._startTime)*o._timeScale,e,i)),o=n},l.rawTime=function(){return d||c.wake(),this._totalTime};var z=w("TweenLite",function(e,i,n){if($.call(this,i,n),this.render=z.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:z.selector(e)||e;var o,r,s,a=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?Q[z.defaultOverwrite]:"number"==typeof l?l>>0:Q[l],(a||e instanceof Array||e.push&&g(e))&&"number"!=typeof e[0])for(this._targets=s=f(e),this._propLookup=[],this._siblings=[],o=0;o<s.length;o++)r=s[o],r?"string"!=typeof r?r.length&&r!==t&&r[0]&&(r[0]===t||r[0].nodeType&&r[0].style&&!r.nodeType)?(s.splice(o--,1),this._targets=s=s.concat(f(r))):(this._siblings[o]=tt(r,this,!1),1===l&&this._siblings[o].length>1&&it(r,this,null,1,this._siblings[o])):(r=s[o--]=z.selector(r),"string"==typeof r&&s.splice(o+1,1)):s.splice(o--,1);else this._propLookup={},this._siblings=tt(e,this,!1),1===l&&this._siblings.length>1&&it(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-h,this.render(Math.min(0,-this._delay)))},!0),L=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},D=function(t,e){var i,n={};for(i in t)U[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!V[i]||V[i]&&V[i]._autoCSS)||(n[i]=t[i],delete t[i]);t.css=n};l=z.prototype=new $,l.constructor=z,l.kill()._gc=!1,l.ratio=0,l._firstPT=l._targets=l._overwrittenProps=l._startAt=null,l._notifyPluginsOfEnabled=l._lazy=!1,z.version="2.1.3",z.defaultEase=l._ease=new x(null,null,1,1),z.defaultOverwrite="auto",z.ticker=c,z.autoSleep=120,z.lagSmoothing=function(t,e){c.lagSmoothing(t,e)},z.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(z.selector=i,i(e)):(n||(n=t.document),n?n.querySelectorAll?n.querySelectorAll(e):n.getElementById("#"===e.charAt(0)?e.substr(1):e):e)};var R=[],M={},F=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,j=/[\+-]=-?[\.\d]/,B=function(t){for(var e,i=this._firstPT,n=1e-6;i;)e=i.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m.call(this._tween,e,this._target||i.t,this._tween):n>e&&e>-n&&!i.blob&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},N=function(t){return(1e3*t|0)/1e3+""},H=function(t,e,i,n){var o,r,s,a,l,c,d,u=[],p=0,h="",f=0;for(u.start=t,u.end=e,t=u[0]=t+"",e=u[1]=e+"",i&&(i(u),t=u[0],e=u[1]),u.length=0,o=t.match(F)||[],r=e.match(F)||[],n&&(n._next=null,n.blob=1,u._firstPT=u._applyPT=n),l=r.length,a=0;l>a;a++)d=r[a],c=e.substr(p,e.indexOf(d,p)-p),h+=c||!a?c:",",p+=c.length,f?f=(f+1)%5:"rgba("===c.substr(-5)&&(f=1),d===o[a]||o.length<=a?h+=d:(h&&(u.push(h),h=""),s=parseFloat(o[a]),u.push(s),u._firstPT={_next:u._firstPT,t:u,p:u.length-1,s:s,c:("="===d.charAt(1)?parseInt(d.charAt(0)+"1",10)*parseFloat(d.substr(2)):parseFloat(d)-s)||0,f:0,m:f&&4>f?Math.round:N}),p+=d.length;return h+=e.substr(p),h&&u.push(h),u.setRatio=B,j.test(e)&&(u.end=null),u},W=function(t,e,i,n,o,r,s,a,l){"function"==typeof n&&(n=n(l||0,t));var c,d=typeof t[e],u="function"!==d?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),p="get"!==i?i:u?s?t[u](s):t[u]():t[e],h="string"==typeof n&&"="===n.charAt(1),f={t:t,p:e,s:p,f:"function"===d,pg:0,n:o||e,m:r?"function"==typeof r?r:Math.round:0,pr:0,c:h?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-p||0};return("number"!=typeof p||"number"!=typeof n&&!h)&&(s||isNaN(p)||!h&&isNaN(n)||"boolean"==typeof p||"boolean"==typeof n?(f.fp=s,c=H(p,h?parseFloat(f.s)+f.c+(f.s+"").replace(/[0-9\-\.]/g,""):n,a||z.defaultStringFilter,f),f={t:c,p:"setRatio",s:0,c:1,f:2,pg:0,n:o||e,pr:0,m:0}):(f.s=parseFloat(p),h||(f.c=parseFloat(n)-f.s||0))),f.c?((f._next=this._firstPT)&&(f._next._prev=f),this._firstPT=f,f):void 0},q=z._internals={isArray:g,isSelector:L,lazyTweens:R,blobDif:H},V=z._plugins={},Y=q.tweenLookup={},X=0,U=q.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1,stagger:1},Q={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},G=$._rootFramesTimeline=new I,K=$._rootTimeline=new I,Z=30,J=q.lazyRender=function(){var t,e,i=R.length;for(M={},t=0;i>t;t++)e=R[t],e&&e._lazy!==!1&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);R.length=0};K._startTime=c.time,G._startTime=c.frame,K._active=G._active=!0,setTimeout(J,1),$._updateRoot=z.render=function(){var t,e,i;if(R.length&&J(),K.render((c.time-K._startTime)*K._timeScale,!1,!1),G.render((c.frame-G._startTime)*G._timeScale,!1,!1),R.length&&J(),c.frame>=Z){Z=c.frame+(parseInt(z.autoSleep,10)||120);for(i in Y){for(e=Y[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete Y[i]}if(i=K._first,(!i||i._paused)&&z.autoSleep&&!G._first&&1===c._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||c.sleep()}}},c.addEventListener("tick",$._updateRoot);var tt=function(t,e,i){var n,o,r=t._gsTweenID;if(Y[r||(t._gsTweenID=r="t"+X++)]||(Y[r]={target:t,tweens:[]}),e&&(n=Y[r].tweens,n[o=n.length]=e,i))for(;--o>-1;)n[o]===e&&n.splice(o,1);return Y[r].tweens},et=function(t,e,i,n){var o,r,s=t.vars.onOverwrite;return s&&(o=s(t,e,i,n)),s=z.onOverwrite,s&&(r=s(t,e,i,n)),o!==!1&&r!==!1},it=function(t,e,i,n,o){var r,s,a,l;if(1===n||n>=4){for(l=o.length,r=0;l>r;r++)if((a=o[r])!==e)a._gc||a._kill(null,t,e)&&(s=!0);else if(5===n)break;return s}var c,d=e._startTime+h,u=[],p=0,f=0===e._duration;for(r=o.length;--r>-1;)(a=o[r])===e||a._gc||a._paused||(a._timeline!==e._timeline?(c=c||nt(e,0,f),0===nt(a,c,f)&&(u[p++]=a)):a._startTime<=d&&a._startTime+a.totalDuration()/a._timeScale>d&&((f||!a._initted)&&d-a._startTime<=2*h||(u[p++]=a)));for(r=p;--r>-1;)if(a=u[r],l=a._firstPT,2===n&&a._kill(i,t,e)&&(s=!0),2!==n||!a._firstPT&&a._initted&&l){if(2!==n&&!et(a,e))continue;a._enabled(!1,!1)&&(s=!0)}return s},nt=function(t,e,i){for(var n=t._timeline,o=n._timeScale,r=t._startTime;n._timeline;){if(r+=n._startTime,o*=n._timeScale,n._paused)return-100;n=n._timeline}return r/=o,r>e?r-e:i&&r===e||!t._initted&&2*h>r-e?h:(r+=t.totalDuration()/t._timeScale/o)>e+h?0:r-e-h};l._init=function(){var t,e,i,n,o,r,s=this.vars,a=this._overwrittenProps,l=this._duration,c=!!s.immediateRender,d=s.ease,u=this._startAt;if(s.startAt){u&&(u.render(-1,!0),u.kill()),o={};for(n in s.startAt)o[n]=s.startAt[n];if(o.data="isStart",o.overwrite=!1,o.immediateRender=!0,o.lazy=c&&s.lazy!==!1,o.startAt=o.delay=null,o.onUpdate=s.onUpdate,o.onUpdateParams=s.onUpdateParams,o.onUpdateScope=s.onUpdateScope||s.callbackScope||this,this._startAt=z.to(this.target||{},0,o),c)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(s.runBackwards&&0!==l)if(u)u.render(-1,!0),u.kill(),this._startAt=null;else{0!==this._time&&(c=!1),i={};for(n in s)U[n]&&"autoCSS"!==n||(i[n]=s[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=c&&s.lazy!==!1,i.immediateRender=c,this._startAt=z.to(this.target,0,i),c){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=d=d?d instanceof x?d:"function"==typeof d?new x(d,s.easeParams):T[d]||z.defaultEase:z.defaultEase,s.easeParams instanceof Array&&d.config&&(this._ease=d.config.apply(d,s.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(r=this._targets.length,t=0;r>t;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],a?a[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,a,0);if(e&&z._onPluginEvent("_onInitAllProps",this),a&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),s.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=s.onUpdate,this._initted=!0},l._initProps=function(e,i,n,o,r){var s,a,l,c,d,u;if(null==e)return!1;M[e._gsTweenID]&&J(),this.vars.css||e.style&&e!==t&&e.nodeType&&V.css&&this.vars.autoCSS!==!1&&D(this.vars,e);for(s in this.vars)if(u=this.vars[s],U[s])u&&(u instanceof Array||u.push&&g(u))&&-1!==u.join("").indexOf("{self}")&&(this.vars[s]=u=this._swapSelfInParams(u,this));else if(V[s]&&(c=new V[s])._onInitTween(e,this.vars[s],this,r)){for(this._firstPT=d={_next:this._firstPT,t:c,p:"setRatio",s:0,c:1,f:1,n:s,pg:1,pr:c._priority,m:0},a=c._overwriteProps.length;--a>-1;)i[c._overwriteProps[a]]=this._firstPT;(c._priority||c._onInitAllProps)&&(l=!0),(c._onDisable||c._onEnable)&&(this._notifyPluginsOfEnabled=!0),d._next&&(d._next._prev=d)}else i[s]=W.call(this,e,s,"get",u,s,0,null,this.vars.stringFilter,r);return o&&this._kill(o,e)?this._initProps(e,i,n,o,r):this._overwrite>1&&this._firstPT&&n.length>1&&it(e,this,i,this._overwrite,n)?(this._kill(i,e),this._initProps(e,i,n,o,r)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(M[e._gsTweenID]=!0),l)},l.render=function(t,e,i){var n,o,r,s,a=this,l=a._time,c=a._duration,d=a._rawPrevTime;if(t>=c-h&&t>=0)a._totalTime=a._time=c,a.ratio=a._ease._calcEnd?a._ease.getRatio(1):1,a._reversed||(n=!0,o="onComplete",i=i||a._timeline.autoRemoveChildren),0===c&&(a._initted||!a.vars.lazy||i)&&(a._startTime===a._timeline._duration&&(t=0),(0>d||0>=t&&t>=-h||d===h&&"isPause"!==a.data)&&d!==t&&(i=!0,d>h&&(o="onReverseComplete")),a._rawPrevTime=s=!e||t||d===t?t:h);else if(h>t)a._totalTime=a._time=0,a.ratio=a._ease._calcEnd?a._ease.getRatio(0):0,(0!==l||0===c&&d>0)&&(o="onReverseComplete",n=a._reversed),t>-h?t=0:0>t&&(a._active=!1,0===c&&(a._initted||!a.vars.lazy||i)&&(d>=0&&(d!==h||"isPause"!==a.data)&&(i=!0), 10a._rawPrevTime=s=!e||t||d===t?t:h)),(!a._initted||a._startAt&&a._startAt.progress())&&(i=!0);else if(a._totalTime=a._time=t,a._easeType){var u=t/c,p=a._easeType,f=a._easePower;(1===p||3===p&&u>=.5)&&(u=1-u),3===p&&(u*=2),1===f?u*=u:2===f?u*=u*u:3===f?u*=u*u*u:4===f&&(u*=u*u*u*u),a.ratio=1===p?1-u:2===p?u:.5>t/c?u/2:1-u/2}else a.ratio=a._ease.getRatio(t/c);if(a._time!==l||i){if(!a._initted){if(a._init(),!a._initted||a._gc)return;if(!i&&a._firstPT&&(a.vars.lazy!==!1&&a._duration||a.vars.lazy&&!a._duration))return a._time=a._totalTime=l,a._rawPrevTime=d,R.push(a),void(a._lazy=[t,e]);a._time&&!n?a.ratio=a._ease.getRatio(a._time/c):n&&a._ease._calcEnd&&(a.ratio=a._ease.getRatio(0===a._time?0:1))}for(a._lazy!==!1&&(a._lazy=!1),a._active||!a._paused&&a._time!==l&&t>=0&&(a._active=!0),0===l&&(a._startAt&&(t>=0?a._startAt.render(t,!0,i):o||(o="_dummyGS")),a.vars.onStart&&(0!==a._time||0===c)&&(e||a._callback("onStart"))),r=a._firstPT;r;)r.f?r.t[r.p](r.c*a.ratio+r.s):r.t[r.p]=r.c*a.ratio+r.s,r=r._next;a._onUpdate&&(0>t&&a._startAt&&t!==-1e-4&&a._startAt.render(t,!0,i),e||(a._time!==l||n||i)&&a._callback("onUpdate")),o&&(!a._gc||i)&&(0>t&&a._startAt&&!a._onUpdate&&t!==-1e-4&&a._startAt.render(t,!0,i),n&&(a._timeline.autoRemoveChildren&&a._enabled(!1,!1),a._active=!1),!e&&a.vars[o]&&a._callback(o),0===c&&a._rawPrevTime===h&&s!==h&&(a._rawPrevTime=0))}},l._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:z.selector(e)||e;var n,o,r,s,a,l,c,d,u,p=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline,h=this._firstPT;if((g(e)||L(e))&&"number"!=typeof e[0])for(n=e.length;--n>-1;)this._kill(t,e[n],i)&&(l=!0);else{if(this._targets){for(n=this._targets.length;--n>-1;)if(e===this._targets[n]){a=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],o=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._propLookup,o=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(a){if(c=t||a,d=t!==o&&"all"!==o&&t!==a&&("object"!=typeof t||!t._tempKill),i&&(z.onOverwrite||this.vars.onOverwrite)){for(r in c)a[r]&&(u||(u=[]),u.push(r));if((u||!t)&&!et(this,i,e,u))return!1}for(r in c)(s=a[r])&&(p&&(s.f?s.t[s.p](s.s):s.t[s.p]=s.s,l=!0),s.pg&&s.t._kill(c)&&(l=!0),s.pg&&0!==s.t._overwriteProps.length||(s._prev?s._prev._next=s._next:s===this._firstPT&&(this._firstPT=s._next),s._next&&(s._next._prev=s._prev),s._next=s._prev=null),delete a[r]),d&&(o[r]=1);!this._firstPT&&this._initted&&h&&this._enabled(!1,!1)}}return l},l.invalidate=function(){this._notifyPluginsOfEnabled&&z._onPluginEvent("_onDisable",this);var t=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],$.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-h,this.render(t,!1,this.vars.lazy!==!1)),this},l._enabled=function(t,e){if(d||c.wake(),t&&this._gc){var i,n=this._targets;if(n)for(i=n.length;--i>-1;)this._siblings[i]=tt(n[i],this,!0);else this._siblings=tt(this.target,this,!0)}return $.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&z._onPluginEvent(t?"_onEnable":"_onDisable",this)},z.to=function(t,e,i){return new z(t,e,i)},z.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new z(t,e,i)},z.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new z(t,e,n)},z.delayedCall=function(t,e,i,n,o){return new z(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:o,overwrite:0})},z.set=function(t,e){return new z(t,0,e)},z.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:z.selector(t)||t;var i,n,o,r;if((g(t)||L(t))&&"number"!=typeof t[0]){for(i=t.length,n=[];--i>-1;)n=n.concat(z.getTweensOf(t[i],e));for(i=n.length;--i>-1;)for(r=n[i],o=i;--o>-1;)r===n[o]&&n.splice(i,1)}else if(t._gsTweenID)for(n=tt(t).concat(),i=n.length;--i>-1;)(n[i]._gc||e&&!n[i].isActive())&&n.splice(i,1);return n||[]},z.killTweensOf=z.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var n=z.getTweensOf(t,e),o=n.length;--o>-1;)n[o]._kill(i,t)};var ot=w("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=ot.prototype},!0);if(l=ot.prototype,ot.version="1.19.0",ot.API=2,l._firstPT=null,l._addTween=W,l.setRatio=B,l._kill=function(t){var e,i=this._overwriteProps,n=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;n;)null!=t[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},l._mod=l._roundProps=function(t){for(var e,i=this._firstPT;i;)e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")],e&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},z._onPluginEvent=function(t,e){var i,n,o,r,s,a=e._firstPT;if("_onInitAllProps"===t){for(;a;){for(s=a._next,n=o;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:r)?a._prev._next=a:o=a,(a._next=n)?n._prev=a:r=a,a=s}a=e._firstPT=o}for(;a;)a.pg&&"function"==typeof a.t[t]&&a.t[t]()&&(i=!0),a=a._next;return i},ot.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===ot.API&&(V[(new t[e])._propName]=t[e]);return!0},_.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,n=t.priority||0,o=t.overwriteProps,r={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},s=w("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){ot.call(this,i,n),this._overwriteProps=o||[]},t.global===!0),a=s.prototype=new ot(i);a.constructor=s,s.API=t.API;for(e in r)"function"==typeof t[e]&&(a[r[e]]=t[e]);return s.version=t.version,ot.activate([s]),s},s=t._gsQueue){for(a=0;a<s.length;a++)s[a]();for(l in v)v[l].func||t.console.log("GSAP encountered missing dependency: "+l)}d=!1}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"),!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.ScrollMagic=e()}(this,function(){"use strict";var t=function(){};t.version="2.0.8","undefined"!=typeof window&&window.addEventListener("mousewheel",void 0);var e="data-scrollmagic-pin-spacer";t.Controller=function(n){var r,s,a="REVERSE",l="PAUSED",c=i.defaults,d=this,u=o.extend({},c,n),p=[],h=!1,f=0,m=l,g=!0,v=0,y=!0,_=function(){0<u.refreshInterval&&(s=window.setTimeout(C,u.refreshInterval))},w=function(){return u.vertical?o.get.scrollTop(u.container):o.get.scrollLeft(u.container)},b=function(){return u.vertical?o.get.height(u.container):o.get.width(u.container)},x=this._setScrollPos=function(t){u.vertical?g?window.scrollTo(o.get.scrollLeft(),t):u.container.scrollTop=t:g?window.scrollTo(t,o.get.scrollTop()):u.container.scrollLeft=t},T=function(){if(y&&h){var t=o.type.Array(h)?h:p.slice(0);h=!1;var e=f,i=(f=d.scrollPos())-e;0!==i&&(m=0<i?"FORWARD":a),m===a&&t.reverse(),t.forEach(function(t,e){t.update(!0)})}},S=function(){r=o.rAF(T)},k=function(t){"resize"==t.type&&(v=b(),m=l),!0!==h&&(h=!0,S())},C=function(){if(!g&&v!=b()){var t;try{t=new Event("resize",{bubbles:!1,cancelable:!1})}catch(e){(t=document.createEvent("Event")).initEvent("resize",!1,!1)}
vendor: 4,111 bytes, line 10
10u.container.dispatchEvent(t)}p.forEach(function(t,e){t.refresh()}),_()};this._options=u;var O=function(t){if(t.length<=1)return t;var e=t.slice(0);return e.sort(function(t,e){return t.scrollOffset()>e.scrollOffset()?1:-1}),e};return this.addScene=function(e){if(o.type.Array(e))e.forEach(function(t,e){d.addScene(t)});else if(e instanceof t.Scene)if(e.controller()!==d)e.addTo(d);else if(p.indexOf(e)<0)for(var i in p.push(e),p=O(p),e.on("shift.controller_sort",function(){p=O(p)}),u.globalSceneOptions)e[i]&&e[i].call(e,u.globalSceneOptions[i]);return d},this.removeScene=function(t){if(o.type.Array(t))t.forEach(function(t,e){d.removeScene(t)});else{var e=p.indexOf(t);-1<e&&(t.off("shift.controller_sort"),p.splice(e,1),t.remove())}return d},this.updateScene=function(e,i){return o.type.Array(e)?e.forEach(function(t,e){d.updateScene(t,i)}):i?e.update(!0):!0!==h&&e instanceof t.Scene&&(-1==(h=h||[]).indexOf(e)&&h.push(e),h=O(h),S()),d},this.update=function(t){return k({type:"resize"}),t&&T(),d},this.scrollTo=function(i,n){if(o.type.Number(i))x.call(u.container,i,n);else if(i instanceof t.Scene)i.controller()===d&&d.scrollTo(i.scrollOffset(),n);else if(o.type.Function(i))x=i;else{var r=o.get.elements(i)[0];if(r){for(;r.parentNode.hasAttribute(e);)r=r.parentNode;var s=u.vertical?"top":"left",a=o.get.offset(u.container),l=o.get.offset(r);g||(a[s]-=d.scrollPos()),d.scrollTo(l[s]-a[s],n)}}return d},this.scrollPos=function(t){return arguments.length?(o.type.Function(t)&&(w=t),d):w.call(d)},this.info=function(t){var e={size:v,vertical:u.vertical,scrollPos:f,scrollDirection:m,container:u.container,isDocument:g};return arguments.length?void 0!==e[t]?e[t]:void 0:e},this.loglevel=function(t){return d},this.enabled=function(t){return arguments.length?(y!=t&&(y=!!t,d.updateScene(p,!0)),d):y},this.destroy=function(t){window.clearTimeout(s);for(var e=p.length;e--;)p[e].destroy(t);return u.container.removeEventListener("resize",k),u.container.removeEventListener("scroll",k),o.cAF(r),null},function(){for(var t in u)c.hasOwnProperty(t)||delete u[t];if(u.container=o.get.elements(u.container)[0],!u.container)throw"ScrollMagic.Controller init failed.";(g=u.container===window||u.container===document.body||!document.body.contains(u.container))&&(u.container=window),v=b(),u.container.addEventListener("resize",k),u.container.addEventListener("scroll",k);var e=parseInt(u.refreshInterval,10);u.refreshInterval=o.type.Number(e)?e:c.refreshInterval,_()}(),d};var i={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};t.Controller.addOption=function(t,e){i.defaults[t]=e},t.Controller.extend=function(e){var i=this;t.Controller=function(){return i.apply(this,arguments),this.$super=o.extend({},this),e.apply(this,arguments)||this},o.extend(t.Controller,i),t.Controller.prototype=i.prototype,t.Controller.prototype.constructor=t.Controller},t.Scene=function(i){var r,s,a="BEFORE",l="DURING",c="AFTER",d=n.defaults,u=this,p=o.extend({},d,i),h=a,f=0,m={start:0,end:0},g=0,v=!0,y={};this.on=function(t,e){return o.type.Function(e)&&(t=t.trim().split(" ")).forEach(function(t){var i=t.split("."),n=i[0],o=i[1];"*"!=n&&(y[n]||(y[n]=[]),y[n].push({namespace:o||"",callback:e}))}),u},this.off=function(t,e){return t&&(t=t.trim().split(" ")).forEach(function(t,i){var n=t.split("."),o=n[0],r=n[1]||"";("*"===o?Object.keys(y):[o]).forEach(function(t){for(var i=y[t]||[],n=i.length;n--;){var o=i[n];!o||r!==o.namespace&&"*"!==r||e&&e!=o.callback||i.splice(n,1)}i.length||delete y[t]})}),u},this.trigger=function(e,i){if(e){var n=e.trim().split("."),o=n[0],r=n[1],s=y[o];s&&s.forEach(function(e,n){r&&r!==e.namespace||e.callback.call(u,new t.Event(o,e.namespace,u,i))})}return u},u.on("change.internal",function(t){"loglevel"!==t.what&&"tweenChanges"!==t.what&&("triggerElement"===t.what?T():"reverse"===t.what&&u.update())}).on("shift.internal",function(t){b(),u.update()}),this.addTo=function(e){return e instanceof t.Controller&&s!=e&&(s&&s.removeScene(u),s=e,C(),x(!0),T(!0),b(),s.info("container").addEventListener("resize",S),e.addScene(u),u.trigger("add",{controller:s}
10),u.update()),u},this.enabled=function(t){return arguments.length?(v!=t&&(v=!!t,u.update(!0)),u):v},this.remove=function(){if(s){s.info("container").removeEventListener("resize",S);var t=s;s=void 0,t.removeScene(u),u.trigger("remove")}return u},this.destroy=function(t){return u.trigger("destroy",{reset:t}),u.remove(),u.off("*.*"),null},this.update=function(t){if(s)if(t)if(s.enabled()&&v){var e,i=s.info("scrollPos");e=0<p.duration?(i-m.start)/(m.end-m.start):i>=m.start?1:0,u.trigger("update",{startPos:m.start,endPos:m.end,scrollPos:i}),u.progress(e)}else _&&h===l&&A(!0);else s.updateScene(u,!1);return u},this.refresh=function(){return x(),T(),u},this.progress=function(t){if(arguments.length){var e=!1,i=h,n=s?s.info("scrollDirection"):"PAUSED",o=p.reverse||f<=t;if(0===p.duration?(e=f!=t,h=0===(f=t<1&&o?0:1)?a:l):t<0&&h!==a&&o?(h=a,e=!(f=0)):0<=t&&t<1&&o?(f=t,h=l,e=!0):1<=t&&h!==c?(f=1,h=c,e=!0):h!==l||o||A(),e){var r={progress:f,state:h,scrollDirection:n},d=h!=i,m=function(t){u.trigger(t,r)};d&&i!==l&&(m("enter"),m(i===a?"start":"end")),m("progress"),d&&h!==l&&(m(h===a?"start":"end"),m("leave"))}return u}return f};var _,w,b=function(){m={start:g+p.offset},s&&p.triggerElement&&(m.start-=s.info("size")*p.triggerHook),m.end=m.start+p.duration},x=function(t){if(r){var e="duration";O(e,r.call(u))&&!t&&(u.trigger("change",{what:e,newval:p[e]}),u.trigger("shift",{reason:e}))}},T=function(t){var i=0,n=p.triggerElement;if(s&&(n||0<g)){if(n)if(n.parentNode){for(var r=s.info(),a=o.get.offset(r.container),l=r.vertical?"top":"left";n.parentNode.hasAttribute(e);)n=n.parentNode;var c=o.get.offset(n);r.isDocument||(a[l]-=s.scrollPos()),i=c[l]-a[l]}else u.triggerElement(void 0);var d=i!=g;g=i,d&&!t&&u.trigger("shift",{reason:"triggerElementPosition"})}},S=function(t){0<p.triggerHook&&u.trigger("shift",{reason:"containerResize"})},k=o.extend(n.validate,{duration:function(t){if(o.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)){var e=parseFloat(t)/100;t=function(){return s?s.info("size")*e:0}}if(o.type.Function(t)){r=t;try{t=parseFloat(r.call(u))}catch(e){t=-1}}if(t=parseFloat(t),!o.type.Number(t)||t<0)throw r&&(r=void 0),0;return t}}),C=function(t){(t=arguments.length?[t]:Object.keys(k)).forEach(function(t,e){var i;if(k[t])try{i=k[t](p[t])}catch(e){i=d[t]}finally{p[t]=i}})},O=function(t,e){var i=!1,n=p[t];return p[t]!=e&&(p[t]=e,C(t),i=n!=p[t]),i},P=function(t){u[t]||(u[t]=function(e){return arguments.length?("duration"===t&&(r=void 0),O(t,e)&&(u.trigger("change",{what:t,newval:p[t]}),-1<n.shifts.indexOf(t)&&u.trigger("shift",{reason:t})),u):p[t]})};this.controller=function(){return s},this.state=function(){return h},this.scrollOffset=function(){return m.start},this.triggerPosition=function(){var t=p.offset;return s&&(t+=p.triggerElement?g:s.info("size")*u.triggerHook()),t},u.on("shift.internal",function(t){var e="duration"===t.reason;(h===c&&e||h===l&&0===p.duration)&&A(),e&&$()}).on("progress.internal",function(t){A()}).on("add.internal",function(t){$()}).on("destroy.internal",function(t){u.removePin(t.reset)});var A=function(t){if(_&&s){var e=s.info(),i=w.spacer.firstChild;if(t||h!==l){var n={position:w.inFlow?"relative":"absolute",top:0,left:0},r=o.css(i,"position")!=n.position;w.pushFollowers?0<p.duration&&(h===c&&0===parseFloat(o.css(w.spacer,"padding-top"))?r=!0:h===a&&0===parseFloat(o.css(w.spacer,"padding-bottom"))&&(r=!0)):n[e.vertical?"top":"left"]=p.duration*f,o.css(i,n),r&&$()}else{"fixed"!=o.css(i,"position")&&(o.css(i,{position:"fixed"}),$());var d=o.get.offset(w.spacer,!0),u=p.reverse||0===p.duration?e.scrollPos-m.start:Math.round(f*p.duration*10)/10;d[e.vertical?"top":"left"]+=u,o.css(w.spacer.firstChild,{top:d.top,left:d.left})}}},$=function(){if(_&&s&&w.inFlow){var t=h===l,e=s.info("vertical"),i=w.spacer.firstChild,n=o.isMarginCollapseType(o.css(w.spacer,"display")),r={};
vendor: 4,514 bytes, line 10
10w.relSize.width||w.relSize.autoFullWidth?t?o.css(_,{width:o.get.width(w.spacer)}):o.css(_,{width:"100%"}):(r["min-width"]=o.get.width(e?_:i,!0,!0),r.width=t?r["min-width"]:"auto"),w.relSize.height?t?o.css(_,{height:o.get.height(w.spacer)-(w.pushFollowers?p.duration:0)}):o.css(_,{height:"100%"}):(r["min-height"]=o.get.height(e?i:_,!0,!n),r.height=t?r["min-height"]:"auto"),w.pushFollowers&&(r["padding"+(e?"Top":"Left")]=p.duration*f,r["padding"+(e?"Bottom":"Right")]=p.duration*(1-f)),o.css(w.spacer,r)}},E=function(){s&&_&&h===l&&!s.info("isDocument")&&A()},I=function(){s&&_&&h===l&&((w.relSize.width||w.relSize.autoFullWidth)&&o.get.width(window)!=o.get.width(w.spacer.parentNode)||w.relSize.height&&o.get.height(window)!=o.get.height(w.spacer.parentNode))&&$()},z=function(t){s&&_&&h===l&&!s.info("isDocument")&&(t.preventDefault(),s._setScrollPos(s.info("scrollPos")-((t.wheelDelta||t[s.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-t.detail)))};this.setPin=function(t,i){if(i=o.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},i),!(t=o.get.elements(t)[0]))return u;if("fixed"===o.css(t,"position"))return u;if(_){if(_===t)return u;u.removePin()}var n=(_=t).parentNode.style.display,r=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];_.parentNode.style.display="none";var s="absolute"!=o.css(_,"position"),a=o.css(_,r.concat(["display"])),l=o.css(_,["width","height"]);_.parentNode.style.display=n,!s&&i.pushFollowers&&(i.pushFollowers=!1);var c=_.parentNode.insertBefore(document.createElement("div"),_),d=o.extend(a,{position:s?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(s||o.extend(d,o.css(_,["width","height"])),o.css(c,d),c.setAttribute(e,""),o.addClass(c,i.spacerClass),w={spacer:c,relSize:{width:"%"===l.width.slice(-1),height:"%"===l.height.slice(-1),autoFullWidth:"auto"===l.width&&s&&o.isMarginCollapseType(a.display)},pushFollowers:i.pushFollowers,inFlow:s},!_.___origStyle){_.___origStyle={};var p=_.style;r.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]).forEach(function(t){_.___origStyle[t]=p[t]||""})}return w.relSize.width&&o.css(c,{width:l.width}),w.relSize.height&&o.css(c,{height:l.height}),c.appendChild(_),o.css(_,{position:s?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(w.relSize.width||w.relSize.autoFullWidth)&&o.css(_,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",E),window.addEventListener("resize",E),window.addEventListener("resize",I),_.addEventListener("mousewheel",z),_.addEventListener("DOMMouseScroll",z),A(),u},this.removePin=function(t){if(_){if(h===l&&A(!0),t||!s){var i=w.spacer.firstChild;if(i.hasAttribute(e)){var n=w.spacer.style,r={};["margin","marginLeft","marginRight","marginTop","marginBottom"].forEach(function(t){r[t]=n[t]||""}),o.css(i,r)}w.spacer.parentNode.insertBefore(i,w.spacer),w.spacer.parentNode.removeChild(w.spacer),_.parentNode.hasAttribute(e)||(o.css(_,_.___origStyle),delete _.___origStyle)}window.removeEventListener("scroll",E),window.removeEventListener("resize",E),window.removeEventListener("resize",I),_.removeEventListener("mousewheel",z),_.removeEventListener("DOMMouseScroll",z),_=void 0}return u};var L,D=[];return u.on("destroy.internal",function(t){u.removeClassToggle(t.reset)}),this.setClassToggle=function(t,e){var i=o.get.elements(t);return 0!==i.length&&o.type.String(e)&&(0<D.length&&u.removeClassToggle(),L=e,D=i,u.on("enter.internal_class leave.internal_class",function(t){var e="enter"===t.type?o.addClass:o.removeClass;D.forEach(function(t,i){e(t,L)})})),u},this.removeClassToggle=function(t){return t&&D.forEach(function(t,e){o.removeClass(t,L)}),u.off("start.internal_class end.internal_class"),L=void 0,D=[],u},function(){for(var t in p)d.hasOwnProperty(t)||delete p[t];for(var e in d)P(e);C()}(),u};var n={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(t){if(t=parseFloat(t),!o.type.Number(t))throw 0;return t},triggerElement:function(t){if(t=t||void 0){var e=o.get.elements(t)[0];if(!e||!e.parentNode)throw 0;t=e}return t},triggerHook:function(t){var e={onCenter:.5,onEnter:1,onLeave:0};if(o.type.Number(t))t=Math.max(0,Math.min(parseFloat(t),1));else{if(!(t in e))throw 0;t=e[t]}return t},reverse:function(t){return!!t}},shifts:["duration","offset","triggerHook"]};
10t.Scene.addOption=function(t,e,i,o){t in n.defaults||(n.defaults[t]=e,n.validate[t]=i,o&&n.shifts.push(t))},t.Scene.extend=function(e){var i=this;t.Scene=function(){return i.apply(this,arguments),this.$super=o.extend({},this),e.apply(this,arguments)||this},o.extend(t.Scene,i),t.Scene.prototype=i.prototype,t.Scene.prototype.constructor=t.Scene},t.Event=function(t,e,i,n){for(var o in n=n||{})this[o]=n[o];return this.type=t,this.target=this.currentTarget=i,this.namespace=e||"",this.timeStamp=this.timestamp=Date.now(),this};var o=t._util=function(t){var e,i={},n=function(t){return parseFloat(t)||0},o=function(e){return e.currentStyle?e.currentStyle:t.getComputedStyle(e)},r=function(e,i,r,s){if((i=i===document?t:i)===t)s=!1;else if(!u.DomElement(i))return 0;e=e.charAt(0).toUpperCase()+e.substr(1).toLowerCase();var a=(r?i["offset"+e]||i["outer"+e]:i["client"+e]||i["inner"+e])||0;if(r&&s){var l=o(i);a+="Height"===e?n(l.marginTop)+n(l.marginBottom):n(l.marginLeft)+n(l.marginRight)}return a},s=function(t){return t.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})};i.extend=function(t){for(t=t||{},e=1;e<arguments.length;e++)if(arguments[e])for(var i in arguments[e])arguments[e].hasOwnProperty(i)&&(t[i]=arguments[e][i]);return t},i.isMarginCollapseType=function(t){return-1<["block","flex","list-item","table","-webkit-box"].indexOf(t)};var a=0,l=["ms","moz","webkit","o"],c=t.requestAnimationFrame,d=t.cancelAnimationFrame;for(e=0;!c&&e<4;++e)c=t[l[e]+"RequestAnimationFrame"],d=t[l[e]+"CancelAnimationFrame"]||t[l[e]+"CancelRequestAnimationFrame"];c||(c=function(e){var i=(new Date).getTime(),n=Math.max(0,16-(i-a)),o=t.setTimeout(function(){e(i+n)},n);return a=i+n,o}),d||(d=function(e){t.clearTimeout(e)}),i.rAF=c.bind(t),i.cAF=d.bind(t);var u=i.type=function(t){return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};u.String=function(t){return"string"===u(t)},u.Function=function(t){return"function"===u(t)},u.Array=function(t){return Array.isArray(t)},u.Number=function(t){return!u.Array(t)&&0<=t-parseFloat(t)+1},u.DomElement=function(t){return"object"==typeof HTMLElement||"function"==typeof HTMLElement?t instanceof HTMLElement||t instanceof SVGElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName};var p=i.get={};return p.elements=function(e){var i=[];if(u.String(e))try{e=document.querySelectorAll(e)}catch(e){return i}if("nodelist"===u(e)||u.Array(e)||e instanceof NodeList)for(var n=0,o=i.length=e.length;n<o;n++){var r=e[n];i[n]=u.DomElement(r)?r:p.elements(r)}else(u.DomElement(e)||e===document||e===t)&&(i=[e]);return i},p.scrollTop=function(e){return e&&"number"==typeof e.scrollTop?e.scrollTop:t.pageYOffset||0},p.scrollLeft=function(e){return e&&"number"==typeof e.scrollLeft?e.scrollLeft:t.pageXOffset||0},p.width=function(t,e,i){return r("width",t,e,i)},p.height=function(t,e,i){return r("height",t,e,i)},p.offset=function(t,e){var i={top:0,left:0};if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect();i.top=n.top,i.left=n.left,e||(i.top+=p.scrollTop(),i.left+=p.scrollLeft())}return i},i.addClass=function(t,e){e&&(t.classList?t.classList.add(e):t.className+=" "+e)},i.removeClass=function(t,e){e&&(t.classList?t.classList.remove(e):t.className=t.className.replace(RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "))},i.css=function(t,e){if(u.String(e))return o(t)[s(e)];if(u.Array(e)){var i={},n=o(t);return e.forEach(function(t,e){i[t]=n[s(t)]}),i}for(var r in e){var a=e[r];a==parseFloat(a)&&(a+="px"),t.style[s(r)]=a}},i}(window||{});return t}),!function(t,e){if("function"==typeof define&&define.amd)define(["ScrollMagic","gsap","TweenMax","TimelineMax"],e);else if("object"==typeof exports){var i=require("gsap/dist/gsap")||require("gsap");e(require("scrollmagic"),i,TweenMax||i,TimelineMax||i)}else e(t.ScrollMagic||t.jQuery&&t.jQuery.ScrollMagic,t.gsap,t.gsap||t.TweenMax||t.TweenLite,t.gsap||t.TimelineMax||t.TimelineLite)}(this,function(t,e,i,n){"use strict";var o=e&&3<=parseFloat(e.version);t.Scene.addOption("tweenChanges",!1,function(t){return!!t}),t.Scene.extend(function(){var t,e=this;e.on("progress.plugin_gsap",function(){r()}),e.on("destroy.plugin_gsap",function(t){e.removeTween(t.reset)});var r=function(){if(t){var i=e.progress(),n=e.state();t.repeat&&-1===t.repeat()?"DURING"===n&&t.paused()?t.play():"DURING"===n||t.paused()||t.pause():i!=t.progress()&&(0===e.duration()?0<i?t.play():t.reverse():e.tweenChanges()&&t.tweenTo?t.tweenTo(i*t.duration()):t.progress(i).pause())}};e.setTween=function(s,a,l){var c;if(1<arguments.length){var d="number"==typeof arguments[1];
10o?(d||(l=a),l.hasOwnProperty("duration")||(l.duration=d?a:1)):arguments.length<3&&(l=a,a=1),s=o?i.to(s,l):i.to(s,a,l)}try{(c=n&&!o?new n({smoothChildTiming:!0}).add(s):s).pause()}catch(s){return e}return t&&e.removeTween(),t=c,s.repeat&&-1===s.repeat()&&(t.repeat(-1),t.yoyo(s.yoyo())),r(),e},e.removeTween=function(i){return t&&(i&&t.progress(0).pause(),t.kill(),t=void 0),e}})}),!function(){"use strict";!function(t,e){function i(){for(var e=void 0;e=d.pop();)l&&e.removeAttribute(l),s&&e.classList.remove(s);var i=t.activeElement;if(!/^(#document|HTML|BODY)$/.test(Object(i).nodeName))for(;i&&1===i.nodeType;)l&&i.setAttribute(l,""),s&&i.classList.add(s),d.push(i),i=i.parentNode}function n(){t.addEventListener("focus",i,!0),t.addEventListener("blur",i,!0)}var o=Object(e),r=o.className,s=void 0===r?"":r,a=o.attr,l=void 0===a?"focus-within":a,c=o.force,d=[];try{if(t.querySelector(":focus-within"),!c)return}catch(e){}!function u(){/m/.test(t.readyState)?(t.removeEventListener("readystatechange",u),n()):t.addEventListener("readystatechange",u)}()}(window.document)}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.