text: function scaleVideoContainer(){var e=$(window).height()+5,t=parseInt(e)+"px";$(".homepage-hero-module").css("height",t)}function initBannerVideoSize(e){$(e).each(function(){$(this).data("height",$(this).height()),$(this).data("width",$(this).width())}),scaleBannerVideoSize(e)}function scaleBannerVideoSize(e){var i,r,t=$(window).width(),n=$(window).height()+5;console.log(n),$(e).each(function(){var e=$(this).data("height")/$(this).data("width");$(this).width(t),1e3>t&&(r=n,i=r/e,$(this).css({"margin-top":0,"margin-left":-(i-t)/2+"px"}),$(this).width(i).height(r)),$(".homepage-hero-module .video-container video").addClass("fadeIn animated")})}function doAnimations(e){var t="webkitAnimationEnd animationend";e.each(function(){var e=$(this),n=e.data("animation");e.addClass(n).one(t,function(){e.removeClass(n)})})}(function(){var e,t,n,i,r,a=function(e,t){return function(){return e.apply(t,arguments)}},o=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};t=function(){function e(){}return e.prototype.extend=function(e,t){var n,i;for(n in t)i=t[n],null==e[n]&&(e[n]=i);return e},e.prototype.isMobile=function(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)},e.prototype.createEvent=function(e,t,n,i){var r;return null==t&&(t=!1),null==n&&(n=!1),null==i&&(i=null),null!=document.createEvent?(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,t,n,i)):null!=document.createEventObject?(r=document.createEventObject(),r.eventType=e):r.eventName=e,r},e.prototype.emitEvent=function(e,t){return null!=e.dispatchEvent?e.dispatchEvent(t):t in(null!=e)?e[t]():"on"+t in(null!=e)?e["on"+t]():void 0},e.prototype.addEvent=function(e,t,n){return null!=e.addEventListener?e.addEventListener(t,n,!1):null!=e.attachEvent?e.attachEvent("on"+t,n):e[t]=n},e.prototype.removeEvent=function(e,t,n){return null!=e.removeEventListener?e.removeEventListener(t,n,!1):null!=e.detachEvent?e.detachEvent("on"+t,n):delete e[t]},e.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},e}(),n=this.WeakMap||this.MozWeakMap||(n=function(){function e(){this.keys=[],this.values=[]}return e.prototype.get=function(e){var t,n,i,r,a;for(a=this.keys,t=i=0,r=a.length;r>i;t=++i)if(n=a[t],n===e)return this.values[t]},e.prototype.set=function(e,t){var n,i,r,a,o;for(o=this.keys,n=r=0,a=o.length;a>r;n=++r)if(i=o[n],i===e)return void(this.values[n]=t);return this.keys.push(e),this.values.push(t)},e}()),e=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(e=function(){function e(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return e.notSupported=!0,e.prototype.observe=function(){},e}()),i=this.getComputedStyle||function(e,t){return this.getPropertyValue=function(t){var n;return"float"===t&&(t="styleFloat"),r.test(t)&&t.replace(r,function(e,t){return t.toUpperCase()}),(null!=(n=e.currentStyle)?n[t]:void 0)||null},this},r=/(\-([a-z]){1})/g,this.WOW=function(){function r(e){null==e&&(e={}),this.scrollCallback=a(this.scrollCallback,this),this.scrollHandler=a(this.scrollHandler,this),this.resetAnimation=a(this.resetAnimation,this),this.start=a(this.start,this),this.scrolled=!0,this.config=this.util().extend(e,this.defaults),null!=e.scrollContainer&&(this.config.scrollContainer=document.querySelector(e.scrollContainer)),this.animationNameCache=new n,this.wowEvent=this.util().createEvent(this.config.boxClass)}return r.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},r.prototype.init=function(){var e;return this.element=window.document.documentElement,"interactive"===(e=document.readyState)||"complete"===e?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},r.prototype.start=function(){var t,n,i,r;if(this.stopped=!1,this.boxes=function(){var e,n,i,r;for(i=this.element.querySelectorAll("."+this.config.boxClass),r=[],e=0,n=i.length;n>e;e++)t=i[e],r.push(t);return r}.call(this),this.all=function(){var e,n,i,r;for(i=this.boxes,r=[],e=0,n=i.length;n>e;e++)t=i[e],r.push(t);return r}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(r=this.boxes,n=0,i=r.length;i>n;n++)t=r[n],this.applyStyle(t,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new e(function(e){return function(t){var n,i,r,a,o;for(o=[],n=0,i=t.length;i>n;n++)a=t[n],o.push(function(){var e,t,n,i;for(n=a.addedNodes||[],i=[],e=0,t=n.length;t>e;e++)r=n[e],i.push(this.doSync(r));return i}.call(e));return o}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},r.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},r.prototype.sync=function(t){return e.notSupported?this.doSync(this.element):void 0},r.prototype.doSync=function(e){var t,n,i,r,a;if(null==e&&(e=this.element),1===e.nodeType){for(e=e.parentNode||e,r=e.querySelectorAll("."+this.config.boxClass),a=[],n=0,i=r.length;i>n;n++)t=r[n],o.call(this.all,t)<0?(this.boxes.push(t),this.all.push(t),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(t,!0),a.push(this.scrolled=!0)):a.push(void 0);return a}},r.prototype.show=function(e){return this.applyStyle(e),e.className=e.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(e),this.util().emitEvent(e,this.wowEvent),this.util().addEvent(e,"animationend",this.resetAnimation),this.util().addEvent(e,"oanimationend",this.resetAnimation),this.util().addEvent(e,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(e,"MSAnimationEnd",this.resetAnimation),e},r.prototype.applyStyle=function(e,t){var n,i,r;return i=e.getAttribute("data-wow-duration"),n=e.getAttribute("data-wow-delay"),r=e.getAttribute("data-wow-iteration"),this.animate(function(a){return function(){return a.customStyle(e,t,i,n,r)}}(this))},r.prototype.animate=function(){return"requestAnimationFrame"in window?function(e){return window.requestAnimationFrame(e)}:function(e){return e()}}(),r.prototype.resetStyle=function(){var e,t,n,i,r;for(i=this.boxes,r=[],t=0,n=i.length;n>t;t++)e=i[t],r.push(e.style.visibility="visible");return r},r.prototype.resetAnimation=function(e){var t;return e.type.toLowerCase().indexOf("animationend")>=0?(t=e.target||e.srcElement,t.className=t.className.replace(this.config.animateClass,"").trim()):void 0},r.prototype.customStyle=function(e,t,n,i,r){return t&&this.cacheAnimationName(e),e.style.visibility=t?"hidden":"visible",n&&this.vendorSet(e.style,{animationDuration:n}),i&&this.vendorSet(e.style,{animationDelay:i}),r&&this.vendorSet(e.style,{animationIterationCount:r}),this.vendorSet(e.style,{animationName:t?"none":this.cachedAnimationName(e)}),e},r.prototype.vendors=["moz","webkit"],r.prototype.vendorSet=function(e,t){var n,i,r,a;i=[];for(n in t)r=t[n],e[""+n]=r,i.push(function(){var t,i,o,s;for(o=this.vendors,s=[],t=0,i=o.length;i>t;t++)a=o[t],s.push(e[""+a+n.charAt(0).toUpperCase()+n.substr(1)]=r);return s}.call(this));return i},r.prototype.vendorCSS=function(e,t){var n,r,a,o,s,l;for(s=i(e),o=s.getPropertyCSSValue(t),a=this.vendors,n=0,r=a.length;r>n;n++)l=a[n],o=o||s.getPropertyCSSValue("-"+l+"-"+t);return o},r.prototype.animationName=function(e){var t;try{t=this.vendorCSS(e,"animation-name").cssText}catch(n){t=i(e).getPropertyValue("animation-name")}return"none"===t?"":t},r.prototype.cacheAnimationName=function(e){return this.animationNameCache.set(e,this.animationName(e))},r.prototype.cachedAnimationName=function(e){return this.animationNameCache.get(e)},r.prototype.scrollHandler=function(){return this.scrolled=!0},r.prototype.scrollCallback=function(){var e;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var t,n,i,r;for(i=this.boxes,r=[],t=0,n=i.length;n>t;t++)e=i[t],e&&(this.isVisible(e)?this.show(e):r.push(e));return r}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},r.prototype.offsetTop=function(e){for(var t;void 0===e.offsetTop;)e=e.parentNode;for(t=e.offsetTop;e=e.offsetParent;)t+=e.offsetTop;return t},r.prototype.isVisible=function(e){var t,n,i,r,a;return n=e.getAttribute("data-wow-offset")||this.config.offset,a=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,r=a+Math.min(this.element.clientHeight,this.util().innerHeight())-n,i=this.offsetTop(e),t=i+e.clientHeight,r>=i&&t>=a},r.prototype.util=function(){return null!=this._util?this._util:this._util=new t},r.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},r}()}).call(this),$(document).ready(function(){scaleVideoContainer(),initBannerVideoSize(".video-container .poster img"),initBannerVideoSize(".video-container .filter"),initBannerVideoSize(".video-container video"),$(window).on("resize",function(){scaleVideoContainer(),scaleBannerVideoSize(".video-container .poster img"),scaleBannerVideoSize(".video-container .filter"),scaleBannerVideoSize(".video-container video")})}),function(e){e.fn.collapsible=function(t){var n={accordion:void 0};return t=e.extend(n,t),this.each(function(){function a(t){i=n.find("> li > .collapsible-header"),t.hasClass("active")?t.parent().addClass("active"):t.parent().removeClass("active"),t.parent().hasClass("active")?t.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}}):t.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}}),i.not(t).removeClass("active").parent().removeClass("active"),i.not(t).parent().children(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}})}function o(t){t.hasClass("active")?t.parent().addClass("active"):t.parent().removeClass("active"),t.parent().hasClass("active")?t.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}}):t.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}})}function s(e){var t=l(e);return t.length>0}function l(e){return e.closest("li > .collapsible-header")}var n=e(this),i=e(this).find("> li > .collapsible-header"),r=n.data("collapsible");n.off("click.collapse",".collapsible-header"),i.off("click.collapse"),t.accordion||"accordion"===r||void 0===r?(i=n.find("> li > .collapsible-header"),i.on("click.collapse",function(t){var n=e(t.target);s(n)&&(n=l(n)),n.toggleClass("active"),a(n)}),a(i.filter(".active").first())):i.each(function(){e(this).on("click.collapse",function(t){var n=e(t.target);s(n)&&(n=l(n)),n.toggleClass("active"),o(n)}),e(this).hasClass("active")&&o(e(this))})})},e(document).ready(function(){e(".collapsible").collapsible()})}(jQuery);var $myCarousel=$("#carousel-example-generic");$myCarousel.carousel();var $firstAnimatingElems=$myCarousel.find(".item:first").find('[data-animation ^= "animated"]');doAnimations($firstAnimatingElems),$myCarousel.carousel("pause"),$myCarousel.on("slide.bs.carousel",function(e){var t=$(e.relatedTarget).find("[data-animation ^= 'animated']");doAnimations(t)}),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,n,i,r){return jQuery.easing[jQuery.easing.def](e,t,n,i,r)},easeInQuad:function(e,t,n,i,r){return i*(t/=r)*t+n},easeOutQuad:function(e,t,n,i,r){return-i*(t/=r)*(t-2)+n},easeInOutQuad:function(e,t,n,i,r){return(t/=r/2)<1?i/2*t*t+n:-i/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,i,r){return i*(t/=r)*t*t+n},easeOutCubic:function(e,t,n,i,r){return i*((t=t/r-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,i,r){return(t/=r/2)<1?i/2*t*t*t+n:i/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,i,r){return i*(t/=r)*t*t*t+n},easeOutQuart:function(e,t,n,i,r){return-i*((t=t/r-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,i,r){return(t/=r/2)<1?i/2*t*t*t*t+n:-i/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,i,r){return i*(t/=r)*t*t*t*t+n},easeOutQuint:function(e,t,n,i,r){return i*((t=t/r-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,i,r){return(t/=r/2)<1?i/2*t*t*t*t*t+n:i/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,i,r){return-i*Math.cos(t/r*(Math.PI/2))+i+n},easeOutSine:function(e,t,n,i,r){return i*Math.sin(t/r*(Math.PI/2))+n},easeInOutSine:function(e,t,n,i,r){return-i/2*(Math.cos(Math.PI*t/r)-1)+n},easeInExpo:function(e,t,n,i,r){return 0==t?n:i*Math.pow(2,10*(t/r-1))+n},easeOutExpo:function(e,t,n,i,r){return t==r?n+i:i*(-Math.pow(2,-10*t/r)+1)+n},easeInOutExpo:function(e,t,n,i,r){return 0==t?n:t==r?n+i:(t/=r/2)<1?i/2*Math.pow(2,10*(t-1))+n:i/2*(-Math.pow(2,-10*--t)+2)+n},easeInCirc:function(e,t,n,i,r){return-i*(Math.sqrt(1-(t/=r)*t)-1)+n},easeOutCirc:function(e,t,n,i,r){return i*Math.sqrt(1-(t=t/r-1)*t)+n},easeInOutCirc:function(e,t,n,i,r){return(t/=r/2)<1?-i/2*(Math.sqrt(1-t*t)-1)+n:i/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,i,r){var a=1.70158,o=0,s=i;if(0==t)return n;if(1==(t/=r))return n+i;if(o||(o=.3*r),s<Math.abs(i)){s=i;var a=o/4}else var a=o/(2*Math.PI)*Math.asin(i/s);return-(s*Math.pow(2,10*(t-=1))*Math.sin((t*r-a)*(2*Math.PI)/o))+n},easeOutElastic:function(e,t,n,i,r){var a=1.70158,o=0,s=i;if(0==t)return n;if(1==(t/=r))return n+i;if(o||(o=.3*r),s<Math.abs(i)){s=i;var a=o/4}else var a=o/(2*Math.PI)*Math.asin(i/s);return s*Math.pow(2,-10*t)*Math.sin((t*r-a)*(2*Math.PI)/o)+i+n},easeInOutElastic:function(e,t,n,i,r){var a=1.70158,o=0,s=i;if(0==t)return n;if(2==(t/=r/2))return n+i;if(o||(o=r*(.3*1.5)),s<Math.abs(i)){s=i;var a=o/4}else var a=o/(2*Math.PI)*Math.asin(i/s);return 1>t?-.5*(s*Math.pow(2,10*(t-=1))*Math.sin((t*r-a)*(2*Math.PI)/o))+n:s*Math.pow(2,-10*(t-=1))*Math.sin((t*r-a)*(2*Math.PI)/o)*.5+i+n},easeInBack:function(e,t,n,i,r,a){return void 0==a&&(a=1.70158),i*(t/=r)*t*((a+1)*t-a)+n},easeOutBack:function(e,t,n,i,r,a){return void 0==a&&(a=1.70158),i*((t=t/r-1)*t*((a+1)*t+a)+1)+n},easeInOutBack:function(e,t,n,i,r,a){return void 0==a&&(a=1.70158),(t/=r/2)<1?i/2*(t*t*(((a*=1.525)+1)*t-a))+n:i/2*((t-=2)*t*(((a*=1.525)+1)*t+a)+2)+n},easeInBounce:function(e,t,n,i,r){return i-jQuery.easing.easeOutBounce(e,r-t,0,i,r)+n},easeOutBounce:function(e,t,n,i,r){return(t/=r)<1/2.75?i*(7.5625*t*t)+n:2/2.75>t?i*(7.5625*(t-=1.5/2.75)*t+.75)+n:2.5/2.75>t?i*(7.5625*(t-=2.25/2.75)*t+.9375)+n:i*(7.5625*(t-=2.625/2.75)*t+.984375)+n},easeInOutBounce:function(e,t,n,i,r){return r/2>t?.5*jQuery.easing.easeInBounce(e,2*t,0,i,r)+n:.5*jQuery.easing.easeOutBounce(e,2*t-r,0,i,r)+.5*i+n}}),function(e){e.fn.scrollTo=function(t){return e(this).scrollTop(e(this).scrollTop()-e(this).offset().top+e(t).offset().top),this},e.fn.dropdown=function(t){var n={inDuration:300,outDuration:225,constrain_width:!0,hover:!1,gutter:0,belowOrigin:!1};this.each(function(){function o(){void 0!==i.data("induration")&&(r.inDuration=i.data("inDuration")),void 0!==i.data("outduration")&&(r.outDuration=i.data("outDuration")),void 0!==i.data("constrainwidth")&&(r.constrain_width=i.data("constrainwidth")),void 0!==i.data("hover")&&(r.hover=i.data("hover")),void 0!==i.data("gutter")&&(r.gutter=i.data("gutter")),void 0!==i.data("beloworigin")&&(r.belowOrigin=i.data("beloworigin"))}function s(){o(),a.addClass("active"),r.constrain_width===!0&&a.css("width",i.outerWidth());var t=0;r.belowOrigin===!0&&(t=i.height());var n=i.offset().left,s=0,l=r.gutter;n+a.innerWidth()>e(window).width()&&(s=i.innerWidth()-a.innerWidth(),l=-1*l),a.css({position:"absolute",top:i.position().top+t,left:i.position().left+s+l}),a.stop(!0,!0).css("opacity",0).slideDown({queue:!1,duration:r.inDuration,easing:"easeOutCubic",complete:function(){e(this).css("height","")}}).animate({opacity:1},{queue:!1,duration:r.inDuration,easing:"easeOutSine"})}function l(){a.fadeOut(r.outDuration),a.removeClass("active")}var i=e(this),r=e.extend({},n,t),a=e("#"+i.attr("data-activates"));if(o(),i.after(a),r.hover){var u=!1;i.unbind("click."+i.attr("id")),i.on("mouseenter",function(e){u===!1&&(s(),u=!0)}),i.on("mouseleave",function(t){var n=t.toElement||t.relatedTarget;e(n).closest(".dropdown-content").is(a)||(a.stop(!0,!0),l(),u=!1)}),a.on("mouseleave",function(t){var n=t.toElement||t.relatedTarget;e(n).closest(".dropdown-button").is(i)||(a.stop(!0,!0),l(),u=!1)})}else i.unbind("click."+i.attr("id")),i.bind("click."+i.attr("id"),function(t){i[0]==t.currentTarget&&0===e(t.target).closest(".dropdown-content").length?(t.preventDefault(),s()):i.hasClass("active")&&(l(),e(document).unbind("click."+a.attr("id"))),a.hasClass("active")&&e(document).bind("click."+a.attr("id"),function(t){!a.is(t.target)&&!i.is(t.target)&&!i.find(t.target).length>0&&(l(),e(document).unbind("click."+a.attr("id")))})});i.on("open",s),i.on("close",l)})},e(document).ready(function(){e(".dropdown-button").dropdown()})}(jQuery),Materialize={},Materialize.guid=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}(),Materialize.elementOrParentIsFixed=function(e){var t=$(e),n=t.add(t.parents()),i=!1;return n.each(function(){return"fixed"===$(this).css("position")?(i=!0,!1):void 0}),i};var Vel;Vel=$?$.Velocity:Velocity,!function(e){function t(e){var t=e.length,i=n.type(e);return"function"===i||n.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e}if(!e.jQuery){var n=function(e,t){return new n.fn.init(e,t)};n.isWindow=function(e){return null!=e&&e==e.window},n.type=function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?r[o.call(e)]||"object":typeof e},n.isArray=Array.isArray||function(e){return"array"===n.type(e)},n.isPlainObject=function(e){var t;if(!e||"object"!==n.type(e)||e.nodeType||n.isWindow(e))return!1;try{if(e.constructor&&!a.call(e,"constructor")&&!a.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}for(t in e);return void 0===t||a.call(e,t)},n.each=function(e,n,i){var r,a=0,o=e.length,s=t(e);if(i){if(s)for(;o>a&&(r=n.apply(e[a],i),r!==!1);a++);else for(a in e)if(r=n.apply(e[a],i),r===!1)break}else if(s)for(;o>a&&(r=n.call(e[a],a,e[a]),r!==!1);a++);else for(a in e)if(r=n.call(e[a],a,e[a]),r===!1)break;return e},n.data=function(e,t,r){if(void 0===r){var a=e[n.expando],o=a&&i[a];if(void 0===t)return o;if(o&&t in o)return o[t]}else if(void 0!==t){var a=e[n.expando]||(e[n.expando]=++n.uuid);return i[a]=i[a]||{},i[a][t]=r,r}},n.removeData=function(e,t){var r=e[n.expando],a=r&&i[r];a&&n.each(t,function(e,t){delete a[t]})},n.extend=function(){var e,t,i,r,a,o,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[l]||{},l++),"object"!=typeof s&&"function"!==n.type(s)&&(s={}),l===u&&(s=this,l--);u>l;l++)if(null!=(a=arguments[l]))for(r in a)e=s[r],i=a[r],s!==i&&(c&&i&&(n.isPlainObject(i)||(t=n.isArray(i)))?(t?(t=!1,o=e&&n.isArray(e)?e:[]):o=e&&n.isPlainObject(e)?e:{},s[r]=n.extend(c,o,i)):void 0!==i&&(s[r]=i));return s},n.queue=function(e,i,r){function a(e,n){var i=n||[];return null!=e&&(t(Object(e))?!function(e,t){for(var n=+t.length,i=0,r=e.length;n>i;)e[r++]=t[i++];if(n!==n)for(;void 0!==t[i];)e[r++]=t[i++];return e.length=r,e}(i,"string"==typeof e?[e]:e):[].push.call(i,e)),i}if(e){i=(i||"fx")+"queue";var o=n.data(e,i);return r?(!o||n.isArray(r)?o=n.data(e,i,a(r)):o.push(r),o):o||[]}},n.dequeue=function(e,t){n.each(e.nodeType?[e]:e,function(e,i){t=t||"fx";var r=n.queue(i,t),a=r.shift();"inprogress"===a&&(a=r.shift()),a&&("fx"===t&&r.unshift("inprogress"),a.call(i,function(){n.dequeue(i,t)}))})},n.fn=n.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(){for(var e=this.offsetParent||document;e&&"html"===!e.nodeType.toLowerCase&&"static"===e.style.position;)e=e.offsetParent;return e||document}var t=this[0],e=e.apply(t),i=this.offset(),r=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:n(e).offset();return i.top-=parseFloat(t.style.marginTop)||0,i.left-=parseFloat(t.style.marginLeft)||0,e.style&&(r.top+=parseFloat(e.style.borderTopWidth)||0,r.left+=parseFloat(e.style.borderLeftWidth)||0),{top:i.top-r.top,left:i.left-r.left}}};var i={};n.expando="velocity"+(new Date).getTime(),n.uuid=0;for(var r={},a=r.hasOwnProperty,o=r.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;l<s.length;l++)r["[object "+s[l]+"]"]=s[l].toLowerCase();n.fn.init.prototype=n.fn,e.Velocity={Utilities:n}}}(window),function(e){"object"==typeof module&&"object"==typeof module.exports?module.exports=e():"function"==typeof define&&define.amd?define(e):e()}(function(){return function(e,t,n,i){function r(e){for(var t=-1,n=e?e.length:0,i=[];++t<n;){var r=e[t];r&&i.push(r)}return i}function a(e){return h.isWrapped(e)?e=[].slice.call(e):h.isNode(e)&&(e=[e]),e}function o(e){var t=g.data(e,"velocity");return null===t?i:t}function s(e){return function(t){return Math.round(t*e)*(1/e)}}function l(e,n,i,r){function a(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,n){return((a(t,n)*e+o(t,n))*e+s(t))*e}function u(e,t,n){return 3*a(t,n)*e*e+2*o(t,n)*e+s(t)}function c(t,n){for(var r=0;g>r;++r){var a=u(n,e,i);if(0===a)return n;var o=l(n,e,i)-t;n-=o/a}return n}function f(){for(var t=0;b>t;++t)C[t]=l(t*w,e,i)}function d(t,n,r){var a,o,s=0;do o=n+(r-n)/2,a=l(o,e,i)-t,a>0?r=o:n=o;while(Math.abs(a)>v&&++s<y);return o}function p(t){for(var n=0,r=1,a=b-1;r!=a&&C[r]<=t;++r)n+=w;--r;var o=(t-C[r])/(C[r+1]-C[r]),s=n+o*w,l=u(s,e,i);return l>=m?c(t,s):0==l?s:d(t,n,n+w)}function h(){P=!0,(e!=n||i!=r)&&f()}var g=4,m=.001,v=1e-7,y=10,b=11,w=1/(b-1),x="Float32Array"in t;if(4!==arguments.length)return!1;for(var S=0;4>S;++S)if("number"!=typeof arguments[S]||isNaN(arguments[S])||!isFinite(arguments[S]))return!1;e=Math.min(e,1),i=Math.min(i,1),e=Math.max(e,0),i=Math.max(i,0);var C=x?new Float32Array(b):new Array(b),P=!1,V=function(t){return P||h(),e===n&&i===r?t:0===t?0:1===t?1:l(p(t),n,r)};V.getControlPoints=function(){return[{x:e,y:n},{x:i,y:r}]};var k="generateBezier("+[e,n,i,r]+")";return V.toString=function(){return k},V}function u(e,t){var n=e;return h.isString(e)?b.Easings[e]||(n=!1):n=h.isArray(e)&&1===e.length?s.apply(null,e):h.isArray(e)&&2===e.length?w.apply(null,e.concat([t])):h.isArray(e)&&4===e.length?l.apply(null,e):!1,n===!1&&(n=b.Easings[b.defaults.easing]?b.defaults.easing:y),n}function c(e){if(e){var t=(new Date).getTime(),n=b.State.calls.length;n>1e4&&(b.State.calls=r(b.State.calls));for(var a=0;n>a;a++)if(b.State.calls[a]){var s=b.State.calls[a],l=s[0],u=s[2],d=s[3],p=!!d,m=null;d||(d=b.State.calls[a][3]=t-16);for(var v=Math.min((t-d)/u.duration,1),y=0,w=l.length;w>y;y++){var S=l[y],P=S.element;if(o(P)){var V=!1;if(u.display!==i&&null!==u.display&&"none"!==u.display){if("flex"===u.display){var k=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];g.each(k,function(e,t){x.setPropertyValue(P,"display",t)})}x.setPropertyValue(P,"display",u.display)}u.visibility!==i&&"hidden"!==u.visibility&&x.setPropertyValue(P,"visibility",u.visibility);for(var E in S)if("element"!==E){var A,T=S[E],O=h.isString(T.easing)?b.Easings[T.easing]:T.easing;if(1===v)A=T.endValue;else{var M=T.endValue-T.startValue;if(A=T.startValue+M*O(v,u,M),!p&&A===T.currentValue)continue}if(T.currentValue=A,"tween"===E)m=A;else{if(x.Hooks.registered[E]){var N=x.Hooks.getRoot(E),$=o(P).rootPropertyValueCache[N];$&&(T.rootPropertyValue=$)}var F=x.setPropertyValue(P,E,T.currentValue+(0===parseFloat(A)?"":T.unitType),T.rootPropertyValue,T.scrollData);x.Hooks.registered[E]&&(o(P).rootPropertyValueCache[N]=x.Normalizations.registered[N]?x.Normalizations.registered[N]("extract",null,F[1]):F[1]),"transform"===F[0]&&(V=!0)}}u.mobileHA&&o(P).transformCache.translate3d===i&&(o(P).transformCache.translate3d="(0px, 0px, 0px)",V=!0),V&&x.flushTransformCache(P)}}u.display!==i&&"none"!==u.display&&(b.State.calls[a][2].display=!1),u.visibility!==i&&"hidden"!==u.visibility&&(b.State.calls[a][2].visibility=!1),u.progress&&u.progress.call(s[1],s[1],v,Math.max(0,d+u.duration-t),d,m),1===v&&f(a)}}b.State.isTicking&&C(c)}function f(e,t){if(!b.State.calls[e])return!1;for(var n=b.State.calls[e][0],r=b.State.calls[e][1],a=b.State.calls[e][2],s=b.State.calls[e][4],l=!1,u=0,c=n.length;c>u;u++){var f=n[u].element;if(t||a.loop||("none"===a.display&&x.setPropertyValue(f,"display",a.display),"hidden"===a.visibility&&x.setPropertyValue(f,"visibility",a.visibility)),a.loop!==!0&&(g.queue(f)[1]===i||!/\.velocityQueueEntryFlag/i.test(g.queue(f)[1]))&&o(f)){o(f).isAnimating=!1,o(f).rootPropertyValueCache={};var d=!1;g.each(x.Lists.transforms3D,function(e,t){var n=/^scale/.test(t)?1:0,r=o(f).transformCache[t];o(f).transformCache[t]!==i&&new RegExp("^\\("+n+"[^.]").test(r)&&(d=!0,delete o(f).transformCache[t])}),a.mobileHA&&(d=!0,delete o(f).transformCache.translate3d),d&&x.flushTransformCache(f),x.Values.removeClass(f,"velocity-animating")}if(!t&&a.complete&&!a.loop&&u===c-1)try{a.complete.call(r,r)}catch(p){setTimeout(function(){throw p},1)}s&&a.loop!==!0&&s(r),o(f)&&a.loop===!0&&!t&&(g.each(o(f).tweensContainer,function(e,t){/^rotate/.test(e)&&360===parseFloat(t.endValue)&&(t.endValue=0,t.startValue=360),/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),b(f,"reverse",{loop:!0,delay:a.delay})),a.queue!==!1&&g.dequeue(f,a.queue)}b.State.calls[e]=!1;for(var h=0,m=b.State.calls.length;m>h;h++)if(b.State.calls[h]!==!1){l=!0;break}l===!1&&(b.State.isTicking=!1,delete b.State.calls,b.State.calls=[])}var g,d=function(){if(n.documentMode)return n.documentMode;for(var e=7;e>4;e--){var t=n.createElement("div");if(t.innerHTML="<!--[if IE "+e+"]><span></span><![endif]-->",t.getElementsByTagName("span").length)return t=null,e}return i}(),p=function(){var e=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var i,n=(new Date).getTime();return i=Math.max(0,16-(n-e)),e=n+i,setTimeout(function(){t(n+i)},i)}}(),h={isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isNodeList:function(e){return"object"==typeof e&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&e.length!==i&&(0===e.length||"object"==typeof e[0]&&e[0].nodeType>0)},isWrapped:function(e){return e&&(e.jquery||t.Zepto&&t.Zepto.zepto.isZ(e))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)return!1;return!0}},m=!1;if(e.fn&&e.fn.jquery?(g=e,m=!0):g=t.Velocity.Utilities,8>=d&&!m)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=d)return void(jQuery.fn.velocity=jQuery.fn.animate);var v=400,y="swing",b={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:n.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:g,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:v,easing:y,begin:i,complete:i,progress:i,display:i,visibility:i,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(e){g.data(e,"velocity",{isSVG:h.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};t.pageYOffset!==i?(b.State.scrollAnchor=t,b.State.scrollPropertyLeft="pageXOffset",b.State.scrollPropertyTop="pageYOffset"):(b.State.scrollAnchor=n.documentElement||n.body.parentNode||n.body,b.State.scrollPropertyLeft="scrollLeft",b.State.scrollPropertyTop="scrollTop");var w=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,n,i){var r={x:t.x+i.dx*n,v:t.v+i.dv*n,tension:t.tension,friction:t.friction};return{dx:r.v,dv:e(r)}}function n(n,i){var r={dx:n.v,dv:e(n)},a=t(n,.5*i,r),o=t(n,.5*i,a),s=t(n,i,o),l=1/6*(r.dx+2*(a.dx+o.dx)+s.dx),u=1/6*(r.dv+2*(a.dv+o.dv)+s.dv);return n.x=n.x+l*i,n.v=n.v+u*i,n}return function i(e,t,r){var c,f,d,a={x:-1,v:0,tension:null,friction:null},o=[0],s=0,l=1e-4,u=.016;for(e=parseFloat(e)||500,t=parseFloat(t)||20,r=r||null,a.tension=e,a.friction=t,c=null!==r,c?(s=i(e,t),f=s/r*u):f=u;d=n(d||a,f),o.push(1+d.x),s+=16,Math.abs(d.x)>l&&Math.abs(d.v)>l;);return c?function(e){return o[e*(o.length-1)|0]}:s}}();b.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},g.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,t){b.Easings[t[0]]=l.apply(null,t[1])});var x=b.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e<x.Lists.colors.length;e++){var t="color"===x.Lists.colors[e]?"0 0 0 1":"255 255 255 1";x.Hooks.templates[x.Lists.colors[e]]=["Red Green Blue Alpha",t]}var n,i,r;if(d)for(n in x.Hooks.templates){i=x.Hooks.templates[n],r=i[0].split(" ");var a=i[1].match(x.RegEx.valueSplit);"Color"===r[0]&&(r.push(r.shift()),a.push(a.shift()),x.Hooks.templates[n]=[r.join(" "),a.join(" ")])}for(n in x.Hooks.templates){i=x.Hooks.templates[n],r=i[0].split(" ");
  for(var e in r){var o=n+r[e],s=e;x.Hooks.registered[o]=[n,s]}}},getRoot:function(e){var t=x.Hooks.registered[e];return t?t[0]:e},cleanRootPropertyValue:function(e,t){return x.RegEx.valueUnwrap.test(t)&&(t=t.match(x.RegEx.valueUnwrap)[1]),x.Values.isCSSNullValue(t)&&(t=x.Hooks.templates[e][1]),t},extractValue:function(e,t){var n=x.Hooks.registered[e];if(n){var i=n[0],r=n[1];return t=x.Hooks.cleanRootPropertyValue(i,t),t.toString().match(x.RegEx.valueSplit)[r]}return t},injectValue:function(e,t,n){var i=x.Hooks.registered[e];if(i){var o,s,r=i[0],a=i[1];return n=x.Hooks.cleanRootPropertyValue(r,n),o=n.toString().match(x.RegEx.valueSplit),o[a]=t,s=o.join(" ")}return n}},Normalizations:{registered:{clip:function(e,t,n){switch(e){case"name":return"clip";case"extract":var i;return x.RegEx.wrappedValueAlreadyExtracted.test(n)?i=n:(i=n.toString().match(x.RegEx.valueUnwrap),i=i?i[1].replace(/,(\s+)?/g," "):n),i;case"inject":return"rect("+n+")"}},blur:function(e,t,n){switch(e){case"name":return b.State.isFirefox?"filter":"-webkit-filter";case"extract":var i=parseFloat(n);if(!i&&0!==i){var r=n.toString().match(/blur\(([0-9]+[A-z]+)\)/i);i=r?r[1]:0}return i;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(e,t,n){if(8>=d)switch(e){case"name":return"filter";case"extract":var i=n.toString().match(/alpha\(opacity=(.*)\)/i);return n=i?i[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(e){case"name":return"opacity";case"extract":return n;case"inject":return n}}},register:function(){9>=d||b.State.isGingerbread||(x.Lists.transformsBase=x.Lists.transformsBase.concat(x.Lists.transforms3D));for(var e=0;e<x.Lists.transformsBase.length;e++)!function(){var t=x.Lists.transformsBase[e];x.Normalizations.registered[t]=function(e,n,r){switch(e){case"name":return"transform";case"extract":return o(n)===i||o(n).transformCache[t]===i?/^scale/i.test(t)?1:0:o(n).transformCache[t].replace(/[()]/g,"");case"inject":var a=!1;switch(t.substr(0,t.length-1)){case"translate":a=!/(%|px|em|rem|vw|vh|\d)$/i.test(r);break;case"scal":case"scale":b.State.isAndroid&&o(n).transformCache[t]===i&&1>r&&(r=1),a=!/(\d)$/i.test(r);break;case"skew":a=!/(deg|\d)$/i.test(r);break;case"rotate":a=!/(deg|\d)$/i.test(r)}return a||(o(n).transformCache[t]="("+r+")"),o(n).transformCache[t]}}}();for(var e=0;e<x.Lists.colors.length;e++)!function(){var t=x.Lists.colors[e];x.Normalizations.registered[t]=function(e,n,r){switch(e){case"name":return t;case"extract":var a;if(x.RegEx.wrappedValueAlreadyExtracted.test(r))a=r;else{var o,s={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(r)?o=s[r]!==i?s[r]:s.black:x.RegEx.isHex.test(r)?o="rgb("+x.Values.hexToRgb(r).join(" ")+")":/^rgba?\(/i.test(r)||(o=s.black),a=(o||r).toString().match(x.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=d||3!==a.split(" ").length||(a+=" 1"),a;case"inject":return 8>=d?4===r.split(" ").length&&(r=r.split(/\s+/).slice(0,3).join(" ")):3===r.split(" ").length&&(r+=" 1"),(8>=d?"rgb":"rgba")+"("+r.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(d||b.State.isAndroid&&!b.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(b.State.prefixMatches[e])return[b.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],n=0,i=t.length;i>n;n++){var r;if(r=0===n?e:t[n]+e.replace(/^\w/,function(e){return e.toUpperCase()}),h.isString(b.State.prefixElement.style[r]))return b.State.prefixMatches[e]=r,[r,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var i,t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return e=e.replace(t,function(e,t,n,i){return t+t+n+n+i+i}),i=n.exec(e),i?[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)]:[0,0,0]},isCSSNullValue:function(e){return 0==e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=(e.className.length?" ":"")+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(e,n,r,a){function s(e,n){function r(){u&&x.setPropertyValue(e,"display","none")}var l=0;if(8>=d)l=g.css(e,n);else{var u=!1;if(/^(width|height)$/.test(n)&&0===x.getPropertyValue(e,"display")&&(u=!0,x.setPropertyValue(e,"display",x.Values.getDisplayType(e))),!a){if("height"===n&&"border-box"!==x.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var c=e.offsetHeight-(parseFloat(x.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(x.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(x.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(x.getPropertyValue(e,"paddingBottom"))||0);return r(),c}if("width"===n&&"border-box"!==x.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var f=e.offsetWidth-(parseFloat(x.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(x.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(x.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(x.getPropertyValue(e,"paddingRight"))||0);return r(),f}}var p;p=o(e)===i?t.getComputedStyle(e,null):o(e).computedStyle?o(e).computedStyle:o(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===n&&(n="borderTopColor"),l=9===d&&"filter"===n?p.getPropertyValue(n):p[n],(""===l||null===l)&&(l=e.style[n]),r()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(n)){var h=s(e,"position");("fixed"===h||"absolute"===h&&/top|left/i.test(n))&&(l=g(e).position()[n]+"px")}return l}var l;if(x.Hooks.registered[n]){var u=n,c=x.Hooks.getRoot(u);r===i&&(r=x.getPropertyValue(e,x.Names.prefixCheck(c)[0])),x.Normalizations.registered[c]&&(r=x.Normalizations.registered[c]("extract",e,r)),l=x.Hooks.extractValue(u,r)}else if(x.Normalizations.registered[n]){var f,p;f=x.Normalizations.registered[n]("name",e),"transform"!==f&&(p=s(e,x.Names.prefixCheck(f)[0]),x.Values.isCSSNullValue(p)&&x.Hooks.templates[n]&&(p=x.Hooks.templates[n][1])),l=x.Normalizations.registered[n]("extract",e,p)}if(!/^[\d-]/.test(l))if(o(e)&&o(e).isSVG&&x.Names.SVGAttribute(n))if(/^(height|width)$/i.test(n))try{l=e.getBBox()[n]}catch(h){l=0}else l=e.getAttribute(n);else l=s(e,x.Names.prefixCheck(n)[0]);return x.Values.isCSSNullValue(l)&&(l=0),b.debug>=2&&console.log("Get "+n+": "+l),l},setPropertyValue:function(e,n,i,r,a){var s=n;if("scroll"===n)a.container?a.container["scroll"+a.direction]=i:"Left"===a.direction?t.scrollTo(i,a.alternateValue):t.scrollTo(a.alternateValue,i);else if(x.Normalizations.registered[n]&&"transform"===x.Normalizations.registered[n]("name",e))x.Normalizations.registered[n]("inject",e,i),s="transform",i=o(e).transformCache[n];else{if(x.Hooks.registered[n]){var l=n,u=x.Hooks.getRoot(n);r=r||x.getPropertyValue(e,u),i=x.Hooks.injectValue(l,i,r),n=u}if(x.Normalizations.registered[n]&&(i=x.Normalizations.registered[n]("inject",e,i),n=x.Normalizations.registered[n]("name",e)),s=x.Names.prefixCheck(n)[0],8>=d)try{e.style[s]=i}catch(c){b.debug&&console.log("Browser does not support ["+i+"] for ["+s+"]")}else o(e)&&o(e).isSVG&&x.Names.SVGAttribute(n)?e.setAttribute(n,i):e.style[s]=i;b.debug>=2&&console.log("Set "+n+" ("+s+"): "+i)}return[s,i]},flushTransformCache:function(e){function t(t){return parseFloat(x.getPropertyValue(e,t))}var n="";if((d||b.State.isAndroid&&!b.State.isChrome)&&o(e).isSVG){var i={translate:[t("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]};g.each(o(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),i[e]&&(n+=e+"("+i[e].join(" ")+") ",delete i[e])})}else{var r,a;g.each(o(e).transformCache,function(t){return r=o(e).transformCache[t],"transformPerspective"===t?(a=r,!0):(9===d&&"rotateZ"===t&&(t="rotate"),void(n+=t+r+" "))}),a&&(n="perspective"+a+" "+n)}x.setPropertyValue(e,"transform",n)}};x.Hooks.register(),x.Normalizations.register(),b.hook=function(e,t,n){var r=i;return e=a(e),g.each(e,function(e,a){if(o(a)===i&&b.init(a),n===i)r===i&&(r=b.CSS.getPropertyValue(a,t));else{var s=b.CSS.setPropertyValue(a,t,n);"transform"===s[0]&&b.CSS.flushTransformCache(a),r=s}}),r};var S=function(){function e(){return l?E.promise||null:d}function r(){function e(e){function f(e,t){var n=i,o=i,s=i;return h.isArray(e)?(n=e[0],!h.isArray(e[1])&&/^[\d-]/.test(e[1])||h.isFunction(e[1])||x.RegEx.isHex.test(e[1])?s=e[1]:(h.isString(e[1])&&!x.RegEx.isHex.test(e[1])||h.isArray(e[1]))&&(o=t?e[1]:u(e[1],a.duration),e[2]!==i&&(s=e[2]))):n=e,t||(o=o||a.easing),h.isFunction(n)&&(n=n.call(r,P,C)),h.isFunction(s)&&(s=s.call(r,P,C)),[n||0,o,s]}function d(e,t){var n,i;return i=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return n=e,""}),n||(n=x.Values.getUnitType(e)),[i,n]}function p(){var e={myParent:r.parentNode||n.body,position:x.getPropertyValue(r,"position"),fontSize:x.getPropertyValue(r,"fontSize")},i=e.position===F.lastPosition&&e.myParent===F.lastParent,a=e.fontSize===F.lastFontSize;F.lastParent=e.myParent,F.lastPosition=e.position,F.lastFontSize=e.fontSize;var s=100,l={};if(a&&i)l.emToPx=F.lastEmToPx,l.percentToPxWidth=F.lastPercentToPxWidth,l.percentToPxHeight=F.lastPercentToPxHeight;else{var u=o(r).isSVG?n.createElementNS("http://www.w3.org/2000/svg","rect"):n.createElement("div");b.init(u),e.myParent.appendChild(u),g.each(["overflow","overflowX","overflowY"],function(e,t){b.CSS.setPropertyValue(u,t,"hidden")}),b.CSS.setPropertyValue(u,"position",e.position),b.CSS.setPropertyValue(u,"fontSize",e.fontSize),b.CSS.setPropertyValue(u,"boxSizing","content-box"),g.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){b.CSS.setPropertyValue(u,t,s+"%")}),b.CSS.setPropertyValue(u,"paddingLeft",s+"em"),l.percentToPxWidth=F.lastPercentToPxWidth=(parseFloat(x.getPropertyValue(u,"width",null,!0))||1)/s,l.percentToPxHeight=F.lastPercentToPxHeight=(parseFloat(x.getPropertyValue(u,"height",null,!0))||1)/s,l.emToPx=F.lastEmToPx=(parseFloat(x.getPropertyValue(u,"paddingLeft"))||1)/s,e.myParent.removeChild(u)}return null===F.remToPx&&(F.remToPx=parseFloat(x.getPropertyValue(n.body,"fontSize"))||16),null===F.vwToPx&&(F.vwToPx=parseFloat(t.innerWidth)/100,F.vhToPx=parseFloat(t.innerHeight)/100),l.remToPx=F.remToPx,l.vwToPx=F.vwToPx,l.vhToPx=F.vhToPx,b.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),r),l}if(a.begin&&0===P)try{a.begin.call(m,m)}catch(v){setTimeout(function(){throw v},1)}if("scroll"===T){var k,A,O,S=/^x$/i.test(a.axis)?"Left":"Top",V=parseFloat(a.offset)||0;a.container?h.isWrapped(a.container)||h.isNode(a.container)?(a.container=a.container[0]||a.container,k=a.container["scroll"+S],O=k+g(r).position()[S.toLowerCase()]+V):a.container=null:(k=b.State.scrollAnchor[b.State["scrollProperty"+S]],A=b.State.scrollAnchor[b.State["scrollProperty"+("Left"===S?"Top":"Left")]],O=g(r).offset()[S.toLowerCase()]+V),s={scroll:{rootPropertyValue:!1,startValue:k,currentValue:k,endValue:O,unitType:"",easing:a.easing,scrollData:{container:a.container,direction:S,alternateValue:A}},element:r},b.debug&&console.log("tweensContainer (scroll): ",s.scroll,r)}else if("reverse"===T){if(!o(r).tweensContainer)return void g.dequeue(r,a.queue);"none"===o(r).opts.display&&(o(r).opts.display="auto"),"hidden"===o(r).opts.visibility&&(o(r).opts.visibility="visible"),o(r).opts.loop=!1,o(r).opts.begin=null,o(r).opts.complete=null,w.easing||delete a.easing,w.duration||delete a.duration,a=g.extend({},o(r).opts,a);var M=g.extend(!0,{},o(r).tweensContainer);for(var N in M)if("element"!==N){var $=M[N].startValue;M[N].startValue=M[N].currentValue=M[N].endValue,M[N].endValue=$,h.isEmptyObject(w)||(M[N].easing=a.easing),b.debug&&console.log("reverse tweensContainer ("+N+"): "+JSON.stringify(M[N]),r)}s=M}else if("start"===T){var M;o(r).tweensContainer&&o(r).isAnimating===!0&&(M=o(r).tweensContainer),g.each(y,function(e,t){if(RegExp("^"+x.Lists.colors.join("$|^")+"$").test(e)){var n=f(t,!0),r=n[0],a=n[1],o=n[2];if(x.RegEx.isHex.test(r)){for(var s=["Red","Green","Blue"],l=x.Values.hexToRgb(r),u=o?x.Values.hexToRgb(o):i,c=0;c<s.length;c++){var d=[l[c]];a&&d.push(a),u!==i&&d.push(u[c]),y[e+s[c]]=d}delete y[e]}}});for(var z in y){var L=f(y[z]),I=L[0],H=L[1],q=L[2];z=x.Names.camelCase(z);var B=x.Hooks.getRoot(z),R=!1;if(o(r).isSVG||"tween"===B||x.Names.prefixCheck(B)[1]!==!1||x.Normalizations.registered[B]!==i){(a.display!==i&&null!==a.display&&"none"!==a.display||a.visibility!==i&&"hidden"!==a.visibility)&&/opacity|filter/.test(z)&&!q&&0!==I&&(q=0),a._cacheValues&&M&&M[z]?(q===i&&(q=M[z].endValue+M[z].unitType),R=o(r).rootPropertyValueCache[B]):x.Hooks.registered[z]?q===i?(R=x.getPropertyValue(r,B),q=x.getPropertyValue(r,z,R)):R=x.Hooks.templates[B][1]:q===i&&(q=x.getPropertyValue(r,z));var Q,W,D,Y=!1;if(Q=d(z,q),q=Q[0],D=Q[1],Q=d(z,I),I=Q[0].replace(/^([+-\/*])=/,function(e,t){return Y=t,""}),W=Q[1],q=parseFloat(q)||0,I=parseFloat(I)||0,"%"===W&&(/^(fontSize|lineHeight)$/.test(z)?(I/=100,W="em"):/^scale/.test(z)?(I/=100,W=""):/(Red|Green|Blue)$/i.test(z)&&(I=I/100*255,W="")),/[\/*]/.test(Y))W=D;else if(D!==W&&0!==q)if(0===I)W=D;else{l=l||p();var X=/margin|padding|left|right|width|text|word|letter/i.test(z)||/X$/.test(z)||"x"===z?"x":"y";switch(D){case"%":q*="x"===X?l.percentToPxWidth:l.percentToPxHeight;break;case"px":break;default:q*=l[D+"ToPx"]}switch(W){case"%":q*=1/("x"===X?l.percentToPxWidth:l.percentToPxHeight);break;case"px":break;default:q*=1/l[W+"ToPx"]}}switch(Y){case"+":I=q+I;break;case"-":I=q-I;break;case"*":I=q*I;break;case"/":I=q/I}s[z]={rootPropertyValue:R,startValue:q,currentValue:q,endValue:I,unitType:W,easing:H},b.debug&&console.log("tweensContainer ("+z+"): "+JSON.stringify(s[z]),r)}else b.debug&&console.log("Skipping ["+B+"] due to a lack of browser support.")}s.element=r}s.element&&(x.Values.addClass(r,"velocity-animating"),j.push(s),""===a.queue&&(o(r).tweensContainer=s,o(r).opts=a),o(r).isAnimating=!0,P===C-1?(b.State.calls.push([j,m,a,null,E.resolver]),b.State.isTicking===!1&&(b.State.isTicking=!0,c())):P++)}var l,r=this,a=g.extend({},b.defaults,w),s={};switch(o(r)===i&&b.init(r),parseFloat(a.delay)&&a.queue!==!1&&g.queue(r,a.queue,function(e){b.velocityQueueEntryFlag=!0,o(r).delayTimer={setTimeout:setTimeout(e,parseFloat(a.delay)),next:e}}),a.duration.toString().toLowerCase()){case"fast":a.duration=200;break;case"normal":a.duration=v;break;case"slow":a.duration=600;break;default:a.duration=parseFloat(a.duration)||1}b.mock!==!1&&(b.mock===!0?a.duration=a.delay=1:(a.duration*=parseFloat(b.mock)||1,a.delay*=parseFloat(b.mock)||1)),a.easing=u(a.easing,a.duration),a.begin&&!h.isFunction(a.begin)&&(a.begin=null),a.progress&&!h.isFunction(a.progress)&&(a.progress=null),a.complete&&!h.isFunction(a.complete)&&(a.complete=null),a.display!==i&&null!==a.display&&(a.display=a.display.toString().toLowerCase(),"auto"===a.display&&(a.display=b.CSS.Values.getDisplayType(r))),a.visibility!==i&&null!==a.visibility&&(a.visibility=a.visibility.toString().toLowerCase()),a.mobileHA=a.mobileHA&&b.State.isMobile&&!b.State.isGingerbread,a.queue===!1?a.delay?setTimeout(e,a.delay):e():g.queue(r,a.queue,function(t,n){return n===!0?(E.promise&&E.resolver(m),!0):(b.velocityQueueEntryFlag=!0,void e(t))}),""!==a.queue&&"fx"!==a.queue||"inprogress"===g.queue(r)[0]||g.dequeue(r)}var l,d,p,m,y,w,s=arguments[0]&&(arguments[0].p||g.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||h.isString(arguments[0].properties));if(h.isWrapped(this)?(l=!1,p=0,m=this,d=this):(l=!0,p=1,m=s?arguments[0].elements||arguments[0].e:arguments[0]),m=a(m)){s?(y=arguments[0].properties||arguments[0].p,w=arguments[0].options||arguments[0].o):(y=arguments[p],w=arguments[p+1]);var C=m.length,P=0;if(!/^(stop|finish)$/i.test(y)&&!g.isPlainObject(w)){var V=p+1;w={};for(var k=V;k<arguments.length;k++)h.isArray(arguments[k])||!/^(fast|normal|slow)$/i.test(arguments[k])&&!/^\d/.test(arguments[k])?h.isString(arguments[k])||h.isArray(arguments[k])?w.easing=arguments[k]:h.isFunction(arguments[k])&&(w.complete=arguments[k]):w.duration=arguments[k]}var E={promise:null,resolver:null,rejecter:null};l&&b.Promise&&(E.promise=new b.Promise(function(e,t){E.resolver=e,E.rejecter=t}));var T;switch(y){case"scroll":T="scroll";break;case"reverse":T="reverse";break;case"finish":case"stop":g.each(m,function(e,t){o(t)&&o(t).delayTimer&&(clearTimeout(o(t).delayTimer.setTimeout),o(t).delayTimer.next&&o(t).delayTimer.next(),delete o(t).delayTimer)});var A=[];return g.each(b.State.calls,function(e,t){t&&g.each(t[1],function(n,r){var a=w===i?"":w;return a===!0||t[2].queue===a||w===i&&t[2].queue===!1?void g.each(m,function(n,i){i===r&&((w===!0||h.isString(w))&&(g.each(g.queue(i,h.isString(w)?w:""),function(e,t){h.isFunction(t)&&t(null,!0)}),g.queue(i,h.isString(w)?w:"",[])),"stop"===y?(o(i)&&o(i).tweensContainer&&a!==!1&&g.each(o(i).tweensContainer,function(e,t){t.endValue=t.currentValue}),A.push(e)):"finish"===y&&(t[2].duration=1))}):!0})}),"stop"===y&&(g.each(A,function(e,t){f(t,!0)}),E.promise&&E.resolver(m)),e();default:if(!g.isPlainObject(y)||h.isEmptyObject(y)){if(h.isString(y)&&b.Redirects[y]){var O=g.extend({},w),M=O.duration,N=O.delay||0;return O.backwards===!0&&(m=g.extend(!0,[],m).reverse()),g.each(m,function(e,t){parseFloat(O.stagger)?O.delay=N+parseFloat(O.stagger)*e:h.isFunction(O.stagger)&&(O.delay=N+O.stagger.call(t,e,C)),O.drag&&(O.duration=parseFloat(M)||(/^(callout|transition)/.test(y)?1e3:v),O.duration=Math.max(O.duration*(O.backwards?1-e/C:(e+1)/C),.75*O.duration,200)),b.Redirects[y].call(t,t,O||{},e,C,m,E.promise?E:i)}),e()}var $="Velocity: First argument ("+y+") was not a property map, a known action, or a registered redirect. Aborting.";return E.promise?E.rejecter(new Error($)):console.log($),e()}T="start"}var F={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},j=[];g.each(m,function(e,t){h.isNode(t)&&r.call(t)});var z,O=g.extend({},b.defaults,w);if(O.loop=parseInt(O.loop),z=2*O.loop-1,O.loop)for(var L=0;z>L;L++){var I={delay:O.delay,progress:O.progress};L===z-1&&(I.display=O.display,I.visibility=O.visibility,I.complete=O.complete),S(m,"reverse",I)}return e()}};b=g.extend(S,b),b.animate=S;var C=t.requestAnimationFrame||p;return b.State.isMobile||n.hidden===i||n.addEventListener("visibilitychange",function(){n.hidden?(C=function(e){return setTimeout(function(){e(!0)},16)},c()):C=t.requestAnimationFrame||p}),e.Velocity=b,e!==t&&(e.fn.velocity=S,e.fn.velocity.defaults=b.defaults),g.each(["Down","Up"],function(e,t){b.Redirects["slide"+t]=function(e,n,r,a,o,s){var l=g.extend({},n),u=l.begin,c=l.complete,f={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},d={};l.display===i&&(l.display="Down"===t?"inline"===b.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),l.begin=function(){u&&u.call(o,o);for(var n in f){d[n]=e.style[n];var i=b.CSS.getPropertyValue(e,n);f[n]="Down"===t?[i,0]:[0,i]}d.overflow=e.style.overflow,e.style.overflow="hidden"},l.complete=function(){for(var t in d)e.style[t]=d[t];c&&c.call(o,o),s&&s.resolver(o)},b(e,f,l)}}),g.each(["In","Out"],function(e,t){b.Redirects["fade"+t]=function(e,n,r,a,o,s){var l=g.extend({},n),u={opacity:"In"===t?1:0},c=l.complete;l.complete=r!==a-1?l.begin=null:function(){c&&c.call(o,o),s&&s.resolver(o)},l.display===i&&(l.display="In"===t?"auto":"none"),b(this,u,l)}}),b}(window.jQuery||window.Zepto||window,window,document)}),function(e){e(document).ready(function(){e.fn.reverse=[].reverse,e(document).on("mouseenter.fixedActionBtn",".fixed-action-btn",function(n){var i=e(this);t(i)}),e(document).on("mouseleave.fixedActionBtn",".fixed-action-btn",function(t){var i=e(this);n(i)})}),e.fn.extend({openFAB:function(){var n=e(this);t(n)},closeFAB:function(){n($this)}});var t=function(t){if($this=t,$this.hasClass("active")===!1){$this.addClass("active"),$this.find("ul .btn-floating").velocity({scaleY:".4",scaleX:".4",translateY:"40px"},{duration:0});var n=0;$this.find("ul .btn-floating").reverse().each(function(){e(this).velocity({opacity:"1",scaleX:"1",scaleY:"1",translateY:"0"},{duration:80,delay:n}),n+=40})}},n=function(e){$this=e,$this.removeClass("active");$this.find("ul .btn-floating").velocity("stop",!0),$this.find("ul .btn-floating").velocity({opacity:"0",scaleX:".4",scaleY:".4",translateY:"40px"},{duration:80})}}(jQuery),function(e){"use strict";function i(e){return null!==e&&e===e.window}function r(e){return i(e)?e:9===e.nodeType&&e.defaultView}function a(e){var t,n,i={top:0,left:0},a=e&&e.ownerDocument;return t=a.documentElement,"undefined"!=typeof e.getBoundingClientRect&&(i=e.getBoundingClientRect()),n=r(a),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}}function o(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+":"+e[n]+";");return t}function u(e){if(l.allowEvent(e)===!1)return null;for(var t=null,n=e.target||e.srcElement;null!==n.parentElement;){if(!(n instanceof SVGElement||-1===n.className.indexOf("waves-effect"))){t=n;break}if(n.classList.contains("waves-effect")){t=n;break}n=n.parentElement}return t}function c(t){var n=u(t);null!==n&&(s.show(t,n),"ontouchstart"in e&&(n.addEventListener("touchend",s.hide,!1),n.addEventListener("touchcancel",s.hide,!1)),n.addEventListener("mouseup",s.hide,!1),n.addEventListener("mouseleave",s.hide,!1))}var t=t||{},n=document.querySelectorAll.bind(document),s={duration:750,show:function(e,t){if(2===e.button)return!1;var n=t||this,i=document.createElement("div");i.className="waves-ripple",n.appendChild(i);var r=a(n),l=e.pageY-r.top,u=e.pageX-r.left,c="scale("+n.clientWidth/100*10+")";"touches"in e&&(l=e.touches[0].pageY-r.top,u=e.touches[0].pageX-r.left),i.setAttribute("data-hold",Date.now()),i.setAttribute("data-scale",c),i.setAttribute("data-x",u),i.setAttribute("data-y",l);var f={top:l+"px",left:u+"px"};i.className=i.className+" waves-notransition",i.setAttribute("style",o(f)),i.className=i.className.replace("waves-notransition",""),f["-webkit-transform"]=c,f["-moz-transform"]=c,f["-ms-transform"]=c,f["-o-transform"]=c,f.transform=c,f.opacity="1",f["-webkit-transition-duration"]=s.duration+"ms",f["-moz-transition-duration"]=s.duration+"ms",f["-o-transition-duration"]=s.duration+"ms",f["transition-duration"]=s.duration+"ms",f["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",f["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",f["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",f["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",i.setAttribute("style",o(f))},hide:function(e){l.touchup(e);var t=this,i=(1.4*t.clientWidth,null),r=t.getElementsByClassName("waves-ripple");if(!(r.length>0))return!1;i=r[r.length-1];var a=i.getAttribute("data-x"),u=i.getAttribute("data-y"),c=i.getAttribute("data-scale"),f=Date.now()-Number(i.getAttribute("data-hold")),d=350-f;0>d&&(d=0),setTimeout(function(){var e={top:u+"px",left:a+"px",opacity:"0","-webkit-transition-duration":s.duration+"ms","-moz-transition-duration":s.duration+"ms","-o-transition-duration":s.duration+"ms","transition-duration":s.duration+"ms","-webkit-transform":c,"-moz-transform":c,"-ms-transform":c,"-o-transform":c,transform:c};i.setAttribute("style",o(e)),setTimeout(function(){try{t.removeChild(i)}catch(e){return!1}},s.duration)},d)},wrapInput:function(e){for(var t=0;t<e.length;t++){var n=e[t];if("input"===n.tagName.toLowerCase()){var i=n.parentNode;if("i"===i.tagName.toLowerCase()&&-1!==i.className.indexOf("waves-effect"))continue;var r=document.createElement("i");r.className=n.className+" waves-input-wrapper";var a=n.getAttribute("style");a||(a=""),r.setAttribute("style",a),n.className="waves-button-input",n.removeAttribute("style"),i.replaceChild(r,n),r.appendChild(n)}}}},l={touches:0,allowEvent:function(e){var t=!0;return"touchstart"===e.type?l.touches+=1:"touchend"===e.type||"touchcancel"===e.type?setTimeout(function(){l.touches>0&&(l.touches-=1)},500):"mousedown"===e.type&&l.touches>0&&(t=!1),t},touchup:function(e){l.allowEvent(e)}};t.displayEffect=function(t){t=t||{},"duration"in t&&(s.duration=t.duration),s.wrapInput(n(".waves-effect")),"ontouchstart"in e&&document.body.addEventListener("touchstart",c,!1),document.body.addEventListener("mousedown",c,!1)},t.attach=function(t){"input"===t.tagName.toLowerCase()&&(s.wrapInput([t]),t=t.parentElement),"ontouchstart"in e&&t.addEventListener("touchstart",c,!1),t.addEventListener("mousedown",c,!1)},e.Waves=t,document.addEventListener("DOMContentLoaded",function(){t.displayEffect()},!1)}(window);