function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var _createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),getTime,Vel;typeof jQuery=="undefined"&&(jQuery=typeof require=="function"?$=require("jquery"):$),function(n){typeof define=="function"&&define.amd?define(["jquery"],function(t){return n(t)}):typeof module=="object"&&typeof module.exports=="object"?exports=n(require("jquery")):n(jQuery)}(function(n){function o(n){var i=7.5625,t=2.75;return n<1/t?i*n*n:n<2/t?i*(n-=1.5/t)*n+.75:n<2.5/t?i*(n-=2.25/t)*n+.9375:i*(n-=2.625/t)*n+.984375}n.easing.jswing=n.easing.swing;var t=Math.pow,u=Math.sqrt,i=Math.sin,s=Math.cos,r=Math.PI,f=1.70158,e=f*1.525,h=f+1,c=2*r/3,l=2*r/4.5;n.extend(n.easing,{def:"easeOutQuad",swing:function(t){return n.easing[n.easing.def](t)},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return 1-(1-n)*(1-n)},easeInOutQuad:function(n){return n<.5?2*n*n:1-t(-2*n+2,2)/2},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1-t(1-n,3)},easeInOutCubic:function(n){return n<.5?4*n*n*n:1-t(-2*n+2,3)/2},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1-t(1-n,4)},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-t(-2*n+2,4)/2},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1-t(1-n,5)},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1-t(-2*n+2,5)/2},easeInSine:function(n){return 1-s(n*r/2)},easeOutSine:function(n){return i(n*r/2)},easeInOutSine:function(n){return-(s(r*n)-1)/2},easeInExpo:function(n){return n===0?0:t(2,10*n-10)},easeOutExpo:function(n){return n===1?1:1-t(2,-10*n)},easeInOutExpo:function(n){return n===0?0:n===1?1:n<.5?t(2,20*n-10)/2:(2-t(2,-20*n+10))/2},easeInCirc:function(n){return 1-u(1-t(n,2))},easeOutCirc:function(n){return u(1-t(n-1,2))},easeInOutCirc:function(n){return n<.5?(1-u(1-t(2*n,2)))/2:(u(1-t(-2*n+2,2))+1)/2},easeInElastic:function(n){return n===0?0:n===1?1:-t(2,10*n-10)*i((n*10-10.75)*c)},easeOutElastic:function(n){return n===0?0:n===1?1:t(2,-10*n)*i((n*10-.75)*c)+1},easeInOutElastic:function(n){return n===0?0:n===1?1:n<.5?-(t(2,20*n-10)*i((20*n-11.125)*l))/2:t(2,-20*n+10)*i((20*n-11.125)*l)/2+1},easeInBack:function(n){return h*n*n*n-f*n*n},easeOutBack:function(n){return 1+h*t(n-1,3)+f*t(n-1,2)},easeInOutBack:function(n){return n<.5?t(2*n,2)*((e+1)*2*n-e)/2:(t(2*n-2,2)*((e+1)*(n*2-2)+e)+2)/2},easeInBounce:function(n){return 1-o(1-n)},easeOutBounce:o,easeInOutBounce:function(n){return n<.5?(1-o(1-2*n))/2:(1+o(2*n-1))/2}})});jQuery.extend(jQuery.easing,{easeInOutMaterial:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:r/4*((t-=2)*t*t+2)+i}});jQuery.Velocity?console.log("Velocity is already loaded. You may be needlessly importing Velocity again; note that Materialize includes Velocity."):(!function(n){function o(n){var i=n.length,r=t.type(n);return"function"===r||t.isWindow(n)?!1:1===n.nodeType&&i?!0:"array"===r||0===i||"number"==typeof i&&i>0&&i-1 in n}var t,i;if(!n.jQuery){t=function(n,i){return new t.fn.init(n,i)};t.isWindow=function(n){return null!=n&&n==n.window};t.type=function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?r[s.call(n)]||"object":typeof n};t.isArray=Array.isArray||function(n){return"array"===t.type(n)};t.isPlainObject=function(n){var i;if(!n||"object"!==t.type(n)||n.nodeType||t.isWindow(n))return!1;try{if(n.constructor&&!f.call(n,"constructor")&&!f.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}for(i in n);return void 0===i||f.call(n,i)};t.each=function(n,t,i){var u,r=0,f=n.length,e=o(n);if(i){if(e)for(;f>r&&(u=t.apply(n[r],i),u!==!1);r++);else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e)for(;f>r&&(u=t.call(n[r],r,n[r]),u!==!1);r++);else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n};t.data=function(n,r,u){var e,f;if(void 0===u){if(f=n[t.expando],e=f&&i[f],void 0===r)return e;if(e&&r in e)return e[r]}else if(void 0!==r)return f=n[t.expando]||(n[t.expando]=++t.uuid),i[f]=i[f]||{},i[f][r]=u,u};t.removeData=function(n,r){var u=n[t.expando],f=u&&i[u];f&&t.each(r,function(n,t){delete f[t]})};t.extend=function(){var r,e,i,f,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"!=typeof n&&"function"!==t.type(n)&&(n={}),u===c&&(n=this,u--);c>u;u++)if(null!=(o=arguments[u]))for(f in o)r=n[f],i=o[f],n!==i&&(h&&i&&(t.isPlainObject(i)||(e=t.isArray(i)))?(e?(e=!1,s=r&&t.isArray(r)?r:[]):s=r&&t.isPlainObject(r)?r:{},n[f]=t.extend(h,s,i)):void 0!==i&&(n[f]=i));return n};t.queue=function(n,i,r){function f(n,t){var i=t||[];return null!=n&&(o(Object(n))?!function(n,t){for(var r=+t.length,i=0,u=n.length;r>i;)n[u++]=t[i++];if(r!==r)for(;void 0!==t[i];)n[u++]=t[i++];return n.length=u,n}(i,"string"==typeof n?[n]:n):[].push.call(i,n)),i}if(n){i=(i||"fx")+"queue";var u=t.data(n,i);return r?(!u||t.isArray(r)?u=t.data(n,i,f(r)):u.push(r),u):u||[]}};t.dequeue=function(n,i){t.each(n.nodeType?[n]:n,function(n,r){i=i||"fx";var f=t.queue(r,i),u=f.shift();"inprogress"===u&&(u=f.shift());u&&("fx"===i&&f.unshift("inprogress"),u.call(r,function(){t.dequeue(r,i)}))})};t.fn=t.prototype={init:function(n){if(n.nodeType)return this[0]=n,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+(n.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(n.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(){for(var n=this.offsetParent||document;n&&!1&&"static"===n.style.position;)n=n.offsetParent;return n||document}var r=this[0],e=e.apply(r),n=this.offset(),i=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:t(e).offset();return n.top-=parseFloat(r.style.marginTop)||0,n.left-=parseFloat(r.style.marginLeft)||0,e.style&&(i.top+=parseFloat(e.style.borderTopWidth)||0,i.left+=parseFloat(e.style.borderLeftWidth)||0),{top:n.top-i.top,left:n.left-i.left}}};i={};t.expando="velocity"+(new Date).getTime();t.uuid=0;for(var r={},f=r.hasOwnProperty,s=r.toString,e="Boolean Number String Function Array Date RegExp Object Error".split(" "),u=0;u<e.length;u++)r["[object "+e[u]+"]"]=e[u].toLowerCase();t.fn.init.prototype=t.fn;n.Velocity={Utilities:t}}}(window),function(n){"object"==typeof module&&"object"==typeof module.exports?module.exports=n():"function"==typeof define&&define.amd?define(n):n()}(function(){return function(n,t,i,r){function tt(n){for(var t,i=-1,u=n?n.length:0,r=[];++i<u;)t=n[i],t&&r.push(t);return r}function y(n){return s.isWrapped(n)?n=[].slice.call(n):s.isNode(n)&&(n=[n]),n}function e(n){var t=o.data(n,"velocity");return null===t?r:t}function it(n){return function(t){return Math.round(t*n)*(1/n)}}function p(n,i,r,u){function l(n,t){return 1-3*t+3*n}function a(n,t){return 3*t-6*n}function v(n){return 3*n}function s(n,t,i){return((l(t,i)*n+a(t,i))*n+v(t))*n}function y(n,t,i){return 3*l(t,i)*n*n+2*a(t,i)*n+v(t)}function b(t,i){for(var f,e,u=0;tt>u;++u){if(f=y(i,n,r),0===f)return i;e=s(i,n,r)-t;i-=e/f}return i}function k(){for(var t=0;e>t;++t)o[t]=s(t*h,n,r)}function d(t,i,u){var e,f,o=0;do f=i+(u-i)/2,e=s(f,n,r)-t,e>0?u=f:i=f;while(Math.abs(e)>rt&&++o<ut);return f}function g(t){for(var u=0,i=1,c=e-1;i!=c&&o[i]<=t;++i)u+=h;--i;var l=(t-o[i])/(o[i+1]-o[i]),f=u+l*h,s=y(f,n,r);return s>=it?b(t,f):0==s?f:d(t,u,u+h)}function nt(){p=!0;(n!=i||r!=u)&&k()}var tt=4,it=.001,rt=1e-7,ut=10,e=11,h=1/(e-1),ft="Float32Array"in t,f,w;if(4!==arguments.length)return!1;for(f=0;4>f;++f)if("number"!=typeof arguments[f]||isNaN(arguments[f])||!isFinite(arguments[f]))return!1;n=Math.min(n,1);r=Math.min(r,1);n=Math.max(n,0);r=Math.max(r,0);var o=ft?new Float32Array(e):new Array(e),p=!1,c=function(t){return p||nt(),n===i&&r===u?t:0===t?0:1===t?1:s(g(t),i,u)};return c.getControlPoints=function(){return[{x:n,y:i},{x:r,y:u}]},w="generateBezier("+[n,i,r,u]+")",c.toString=function(){return w},c}function w(n,t){var i=n;return s.isString(n)?f.Easings[n]||(i=!1):i=s.isArray(n)&&1===n.length?it.apply(null,n):s.isArray(n)&&2===n.length?nt.apply(null,n.concat([t])):s.isArray(n)&&4===n.length?p.apply(null,n):!1,i===!1&&(i=f.Easings[f.defaults.easing]?f.defaults.easing:g),i}function a(n){var d,ut,c,nt,h,it,ct,v,p,i,lt,et,k,ot,rt;if(n)for(d=(new Date).getTime(),ut=f.State.calls.length,ut>1e4&&(f.State.calls=tt(f.State.calls)),c=0;ut>c;c++)if(f.State.calls[c]){var w=f.State.calls[c],st=w[0],t=w[2],y=w[3],at=!!y,ht=null;y||(y=f.State.calls[c][3]=d-16);for(var g=Math.min((d-y)/t.duration,1),ft=0,vt=st.length;vt>ft;ft++)if(nt=st[ft],h=nt.element,e(h)){it=!1;t.display!==r&&null!==t.display&&"none"!==t.display&&("flex"===t.display&&(ct=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],o.each(ct,function(n,t){u.setPropertyValue(h,"display",t)})),u.setPropertyValue(h,"display",t.display));t.visibility!==r&&"hidden"!==t.visibility&&u.setPropertyValue(h,"visibility",t.visibility);for(v in nt)if("element"!==v){if(i=nt[v],lt=s.isString(i.easing)?f.Easings[i.easing]:i.easing,1===g)p=i.endValue;else if(et=i.endValue-i.startValue,p=i.startValue+et*lt(g,t,et),!at&&p===i.currentValue)continue;(i.currentValue=p,"tween"===v)?ht=p:(u.Hooks.registered[v]&&(k=u.Hooks.getRoot(v),ot=e(h).rootPropertyValueCache[k],ot&&(i.rootPropertyValue=ot)),rt=u.setPropertyValue(h,v,i.currentValue+(0===parseFloat(p)?"":i.unitType),i.rootPropertyValue,i.scrollData),u.Hooks.registered[v]&&(e(h).rootPropertyValueCache[k]=u.Normalizations.registered[k]?u.Normalizations.registered[k]("extract",null,rt[1]):rt[1]),"transform"===rt[0]&&(it=!0))}t.mobileHA&&e(h).transformCache.translate3d===r&&(e(h).transformCache.translate3d="(0px, 0px, 0px)",it=!0);it&&u.flushTransformCache(h)}t.display!==r&&"none"!==t.display&&(f.State.calls[c][2].display=!1);t.visibility!==r&&"hidden"!==t.visibility&&(f.State.calls[c][2].visibility=!1);t.progress&&t.progress.call(w[1],w[1],g,Math.max(0,y+t.duration-d),y,ht);1===g&&b(c)}f.State.isTicking&&l(a)}function b(n,t){var i,c,l,b;if(!f.State.calls[n])return!1;for(var v=f.State.calls[n][0],a=f.State.calls[n][1],s=f.State.calls[n][2],y=f.State.calls[n][4],p=!1,h=0,w=v.length;w>h;h++){if(i=v[h].element,(t||s.loop||("none"===s.display&&u.setPropertyValue(i,"display",s.display),"hidden"===s.visibility&&u.setPropertyValue(i,"visibility",s.visibility)),s.loop!==!0&&(o.queue(i)[1]===r||!/\.velocityQueueEntryFlag/i.test(o.queue(i)[1]))&&e(i))&&(e(i).isAnimating=!1,e(i).rootPropertyValueCache={},c=!1,o.each(u.Lists.transforms3D,function(n,t){var u=/^scale/.test(t)?1:0,f=e(i).transformCache[t];e(i).transformCache[t]!==r&&new RegExp("^\\("+u+"[^.]").test(f)&&(c=!0,delete e(i).transformCache[t])}),s.mobileHA&&(c=!0,delete e(i).transformCache.translate3d),c&&u.flushTransformCache(i),u.Values.removeClass(i,"velocity-animating")),!t&&s.complete&&!s.loop&&h===w-1)try{s.complete.call(a,a)}catch(k){setTimeout(function(){throw k;},1)}y&&s.loop!==!0&&y(a);e(i)&&s.loop===!0&&!t&&(o.each(e(i).tweensContainer,function(n,t){/^rotate/.test(n)&&360===parseFloat(t.endValue)&&(t.endValue=0,t.startValue=360);/^backgroundPosition/.test(n)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),f(i,"reverse",{loop:!0,delay:s.delay}));s.queue!==!1&&o.dequeue(i,s.queue)}for(f.State.calls[n]=!1,l=0,b=f.State.calls.length;b>l;l++)if(f.State.calls[l]!==!1){p=!0;break}p===!1&&(f.State.isTicking=!1,delete f.State.calls,f.State.calls=[])}var o,h=function(){var n,t;if(i.documentMode)return i.documentMode;for(n=7;n>4;n--)if(t=i.createElement("div"),t.innerHTML="<!--[if IE "+n+"]><span><\/span><![endif]-->",t.getElementsByTagName("span").length)return t=null,n;return r}(),k=function(){var n=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var i,r=(new Date).getTime();return i=Math.max(0,16-(r-n)),n=r+i,setTimeout(function(){t(r+i)},i)}}(),s={isString:function(n){return"string"==typeof n},isArray:Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)},isFunction:function(n){return"[object Function]"===Object.prototype.toString.call(n)},isNode:function(n){return n&&n.nodeType},isNodeList:function(n){return"object"==typeof n&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(n))&&n.length!==r&&(0===n.length||"object"==typeof n[0]&&n[0].nodeType>0)},isWrapped:function(n){return n&&(n.jquery||t.Zepto&&t.Zepto.zepto.isZ(n))},isSVG:function(n){return t.SVGElement&&n instanceof t.SVGElement},isEmptyObject:function(n){for(var t in n)return!1;return!0}},d=!1,nt,u,c,l;if(n.fn&&n.fn.jquery?(o=n,d=!0):o=t.Velocity.Utilities,8>=h&&!d)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=h)return void(jQuery.fn.velocity=jQuery.fn.animate);var v=400,g="swing",f={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:i.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:o,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:v,easing:g,begin:r,complete:r,progress:r,display:r,visibility:r,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(n){o.data(n,"velocity",{isSVG:s.isSVG(n),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};return t.pageYOffset!==r?(f.State.scrollAnchor=t,f.State.scrollPropertyLeft="pageXOffset",f.State.scrollPropertyTop="pageYOffset"):(f.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body,f.State.scrollPropertyLeft="scrollLeft",f.State.scrollPropertyTop="scrollTop"),nt=function(){function t(n){return-n.tension*n.x-n.friction*n.v}function n(n,i,r){var u={x:n.x+r.dx*i,v:n.v+r.dv*i,tension:n.tension,friction:n.friction};return{dx:u.v,dv:t(u)}}function i(i,r){var u={dx:i.v,dv:t(i)},f=n(i,.5*r,u),e=n(i,.5*r,f),o=n(i,r,e),s=1/6*(u.dx+2*(f.dx+e.dx)+o.dx),h=1/6*(u.dv+2*(f.dv+e.dv)+o.dv);return i.x=i.x+s*r,i.v=i.v+h*r,i}return function r(n,t,u){var o,s,f,h={x:-1,v:0,tension:null,friction:null},c=[0],e=0,l=.0001,a=.016;for(n=parseFloat(n)||500,t=parseFloat(t)||20,u=u||null,h.tension=n,h.friction=t,o=null!==u,o?(e=r(n,t),s=e/u*a):s=a;f=i(f||h,s),c.push(1+f.x),e+=16,Math.abs(f.x)>l&&Math.abs(f.v)>l;);return o?function(n){return c[n*(c.length-1)|0]}:e}}(),f.Easings={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},spring:function(n){return 1-Math.cos(4.5*n*Math.PI)*Math.exp(6*-n)}},o.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(n,t){f.Easings[t[0]]=p.apply(null,t[1])}),u=f.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,i,r,t,f,o,s,n=0;n<u.Lists.colors.length;n++)e="color"===u.Lists.colors[n]?"0 0 0 1":"255 255 255 1",u.Hooks.templates[u.Lists.colors[n]]=["Red Green Blue Alpha",e];if(h)for(i in u.Hooks.templates)r=u.Hooks.templates[i],t=r[0].split(" "),f=r[1].match(u.RegEx.valueSplit),"Color"===t[0]&&(t.push(t.shift()),f.push(f.shift()),u.Hooks.templates[i]=[t.join(" "),f.join(" ")]);for(i in u.Hooks.templates){r=u.Hooks.templates[i];t=r[0].split(" ");for(n in t)o=i+t[n],s=n,u.Hooks.registered[o]=[i,s]}},getRoot:function(n){var t=u.Hooks.registered[n];return t?t[0]:n},cleanRootPropertyValue:function(n,t){return u.RegEx.valueUnwrap.test(t)&&(t=t.match(u.RegEx.valueUnwrap)[1]),u.Values.isCSSNullValue(t)&&(t=u.Hooks.templates[n][1]),t},extractValue:function(n,t){var i=u.Hooks.registered[n],r,f;return i?(r=i[0],f=i[1],t=u.Hooks.cleanRootPropertyValue(r,t),t.toString().match(u.RegEx.valueSplit)[f]):t},injectValue:function(n,t,i){var r=u.Hooks.registered[n],f,s,e,o;return r?(e=r[0],o=r[1],i=u.Hooks.cleanRootPropertyValue(e,i),f=i.toString().match(u.RegEx.valueSplit),f[o]=t,s=f.join(" ")):i}},Normalizations:{registered:{clip:function(n,t,i){switch(n){case"name":return"clip";case"extract":var r;return u.RegEx.wrappedValueAlreadyExtracted.test(i)?r=i:(r=i.toString().match(u.RegEx.valueUnwrap),r=r?r[1].replace(/,(\s+)?/g," "):i),r;case"inject":return"rect("+i+")"}},blur:function(n,t,i){var r,u;switch(n){case"name":return f.State.isFirefox?"filter":"-webkit-filter";case"extract":return r=parseFloat(i),r||0===r||(u=i.toString().match(/blur\(([0-9]+[A-z]+)\)/i),r=u?u[1]:0),r;case"inject":return parseFloat(i)?"blur("+i+")":"none"}},opacity:function(n,t,i){if(8>=h)switch(n){case"name":return"filter";case"extract":var r=i.toString().match(/alpha\(opacity=(.*)\)/i);return r?r[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(i)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(i),10)+")"}else switch(n){case"name":return"opacity";case"extract":return i;case"inject":return i}}},register:function(){var n;for(9>=h||f.State.isGingerbread||(u.Lists.transformsBase=u.Lists.transformsBase.concat(u.Lists.transforms3D)),n=0;n<u.Lists.transformsBase.length;n++)!function(){var t=u.Lists.transformsBase[n];u.Normalizations.registered[t]=function(n,i,u){switch(n){case"name":return"transform";case"extract":return e(i)===r||e(i).transformCache[t]===r?/^scale/i.test(t)?1:0:e(i).transformCache[t].replace(/[()]/g,"");case"inject":var o=!1;switch(t.substr(0,t.length-1)){case"translate":o=!/(%|px|em|rem|vw|vh|\d)$/i.test(u);break;case"scal":case"scale":f.State.isAndroid&&e(i).transformCache[t]===r&&1>u&&(u=1);o=!/(\d)$/i.test(u);break;case"skew":o=!/(deg|\d)$/i.test(u);break;case"rotate":o=!/(deg|\d)$/i.test(u)}return o||(e(i).transformCache[t]="("+u+")"),e(i).transformCache[t]}}}();for(n=0;n<u.Lists.colors.length;n++)!function(){var t=u.Lists.colors[n];u.Normalizations.registered[t]=function(n,i,f){var e,s,o;switch(n){case"name":return t;case"extract":return u.RegEx.wrappedValueAlreadyExtracted.test(f)?e=f:(o={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(f)?s=o[f]!==r?o[f]:o.black:u.RegEx.isHex.test(f)?s="rgb("+u.Values.hexToRgb(f).join(" ")+")":/^rgba?\(/i.test(f)||(s=o.black),e=(s||f).toString().match(u.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")),8>=h||3!==e.split(" ").length||(e+=" 1"),e;case"inject":return 8>=h?4===f.split(" ").length&&(f=f.split(/\s+/).slice(0,3).join(" ")):3===f.split(" ").length&&(f+=" 1"),(8>=h?"rgb":"rgba")+"("+f.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(n){return n.replace(/-(\w)/g,function(n,t){return t.toUpperCase()})},SVGAttribute:function(n){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(h||f.State.isAndroid&&!f.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(n)},prefixCheck:function(n){var i;if(f.State.prefixMatches[n])return[f.State.prefixMatches[n],!0];for(var r=["","Webkit","Moz","ms","O"],t=0,u=r.length;u>t;t++)if(i=0===t?n:r[t]+n.replace(/^\w/,function(n){return n.toUpperCase()}),s.isString(f.State.prefixElement.style[i]))return f.State.prefixMatches[n]=i,[i,!0];return[n,!1]}},Values:{hexToRgb:function(n){var t;return n=n.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(n,t,i,r){return t+t+i+i+r+r}),t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(n){return 0==n||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(n)},getUnitType:function(n){return/^(rotate|skew)/i.test(n)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(n)?"":"px"},getDisplayType:function(n){var t=n&&n.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(n,t){n.classList?n.classList.add(t):n.className+=(n.className.length?" ":"")+t},removeClass:function(n,t){n.classList?n.classList.remove(t):n.className=n.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(n,i,s,c){function y(n,i){function s(){l&&u.setPropertyValue(n,"display","none")}var f=0,l,p,w,a,v;if(8>=h)f=o.css(n,i);else{if(l=!1,/^(width|height)$/.test(i)&&0===u.getPropertyValue(n,"display")&&(l=!0,u.setPropertyValue(n,"display",u.Values.getDisplayType(n))),!c){if("height"===i&&"border-box"!==u.getPropertyValue(n,"boxSizing").toString().toLowerCase())return p=n.offsetHeight-(parseFloat(u.getPropertyValue(n,"borderTopWidth"))||0)-(parseFloat(u.getPropertyValue(n,"borderBottomWidth"))||0)-(parseFloat(u.getPropertyValue(n,"paddingTop"))||0)-(parseFloat(u.getPropertyValue(n,"paddingBottom"))||0),s(),p;if("width"===i&&"border-box"!==u.getPropertyValue(n,"boxSizing").toString().toLowerCase())return w=n.offsetWidth-(parseFloat(u.getPropertyValue(n,"borderLeftWidth"))||0)-(parseFloat(u.getPropertyValue(n,"borderRightWidth"))||0)-(parseFloat(u.getPropertyValue(n,"paddingLeft"))||0)-(parseFloat(u.getPropertyValue(n,"paddingRight"))||0),s(),w}a=e(n)===r?t.getComputedStyle(n,null):e(n).computedStyle?e(n).computedStyle:e(n).computedStyle=t.getComputedStyle(n,null);"borderColor"===i&&(i="borderTopColor");f=9===h&&"filter"===i?a.getPropertyValue(i):a[i];(""===f||null===f)&&(f=n.style[i]);s()}return"auto"===f&&/^(top|right|bottom|left)$/i.test(i)&&(v=y(n,"position"),("fixed"===v||"absolute"===v&&/top|left/i.test(i))&&(f=o(n).position()[i]+"px")),f}var l,p,a,w,v;if(u.Hooks.registered[i]?(p=i,a=u.Hooks.getRoot(p),s===r&&(s=u.getPropertyValue(n,u.Names.prefixCheck(a)[0])),u.Normalizations.registered[a]&&(s=u.Normalizations.registered[a]("extract",n,s)),l=u.Hooks.extractValue(p,s)):u.Normalizations.registered[i]&&(w=u.Normalizations.registered[i]("name",n),"transform"!==w&&(v=y(n,u.Names.prefixCheck(w)[0]),u.Values.isCSSNullValue(v)&&u.Hooks.templates[i]&&(v=u.Hooks.templates[i][1])),l=u.Normalizations.registered[i]("extract",n,v)),!/^[\d-]/.test(l))if(e(n)&&e(n).isSVG&&u.Names.SVGAttribute(i))if(/^(height|width)$/i.test(i))try{l=n.getBBox()[i]}catch(b){l=0}else l=n.getAttribute(i);else l=y(n,u.Names.prefixCheck(i)[0]);return u.Values.isCSSNullValue(l)&&(l=0),f.debug>=2&&console.log("Get "+i+": "+l),l},setPropertyValue:function(n,i,r,o,s){var c=i,a,l;if("scroll"===i)s.container?s.container["scroll"+s.direction]=r:"Left"===s.direction?t.scrollTo(r,s.alternateValue):t.scrollTo(s.alternateValue,r);else if(u.Normalizations.registered[i]&&"transform"===u.Normalizations.registered[i]("name",n))u.Normalizations.registered[i]("inject",n,r),c="transform",r=e(n).transformCache[i];else{if(u.Hooks.registered[i]&&(a=i,l=u.Hooks.getRoot(i),o=o||u.getPropertyValue(n,l),r=u.Hooks.injectValue(a,r,o),i=l),u.Normalizations.registered[i]&&(r=u.Normalizations.registered[i]("inject",n,r),i=u.Normalizations.registered[i]("name",n)),c=u.Names.prefixCheck(i)[0],8>=h)try{n.style[c]=r}catch(v){f.debug&&console.log("Browser does not support ["+r+"] for ["+c+"]")}else e(n)&&e(n).isSVG&&u.Names.SVGAttribute(i)?n.setAttribute(i,r):n.style[c]=r;f.debug>=2&&console.log("Set "+i+" ("+c+"): "+r)}return[c,r]},flushTransformCache:function(n){function t(t){return parseFloat(u.getPropertyValue(n,t))}var i="",r,s,c;(h||f.State.isAndroid&&!f.State.isChrome)&&e(n).isSVG?(r={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]},o.each(e(n).transformCache,function(n){/^translate/i.test(n)?n="translate":/^scale/i.test(n)?n="scale":/^rotate/i.test(n)&&(n="rotate");r[n]&&(i+=n+"("+r[n].join(" ")+") ",delete r[n])})):(o.each(e(n).transformCache,function(t){return s=e(n).transformCache[t],"transformPerspective"===t?(c=s,!0):(9===h&&"rotateZ"===t&&(t="rotate"),void(i+=t+s+" "))}),c&&(i="perspective"+c+" "+i));u.setPropertyValue(n,"transform",i)}},u.Hooks.register(),u.Normalizations.register(),f.hook=function(n,t,i){var u=r;return n=y(n),o.each(n,function(n,o){if(e(o)===r&&f.init(o),i===r)u===r&&(u=f.CSS.getPropertyValue(o,t));else{var s=f.CSS.setPropertyValue(o,t,i);"transform"===s[0]&&f.CSS.flushTransformCache(o);u=s}}),u},c=function(){function ft(){return et?d.promise||null:at}function wt(){function g(){function dt(t,i){var f=r,o=r,e=r;return s.isArray(t)?(f=t[0],!s.isArray(t[1])&&/^[\d-]/.test(t[1])||s.isFunction(t[1])||u.RegEx.isHex.test(t[1])?e=t[1]:(s.isString(t[1])&&!u.RegEx.isHex.test(t[1])||s.isArray(t[1]))&&(o=i?t[1]:w(t[1],n.duration),t[2]!==r&&(e=t[2]))):f=t,i||(o=o||n.easing),s.isFunction(f)&&(f=f.call(c,tt,nt)),s.isFunction(e)&&(e=e.call(c,tt,nt)),[f||0,o,e]}function gt(n,t){var i,r;return r=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(n){return i=n,""}),i||(i=u.Values.getUnitType(n)),[r,i]}function ii(){var s={myParent:c.parentNode||i.body,position:u.getPropertyValue(c,"position"),fontSize:u.getPropertyValue(c,"fontSize")},a=s.position===l.lastPosition&&s.myParent===l.lastParent,v=s.fontSize===l.lastFontSize,h,r,n;return l.lastParent=s.myParent,l.lastPosition=s.position,l.lastFontSize=s.fontSize,h=100,r={},v&&a?(r.emToPx=l.lastEmToPx,r.percentToPxWidth=l.lastPercentToPxWidth,r.percentToPxHeight=l.lastPercentToPxHeight):(n=e(c).isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div"),f.init(n),s.myParent.appendChild(n),o.each(["overflow","overflowX","overflowY"],function(t,i){f.CSS.setPropertyValue(n,i,"hidden")}),f.CSS.setPropertyValue(n,"position",s.position),f.CSS.setPropertyValue(n,"fontSize",s.fontSize),f.CSS.setPropertyValue(n,"boxSizing","content-box"),o.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,i){f.CSS.setPropertyValue(n,i,h+"%")}),f.CSS.setPropertyValue(n,"paddingLeft",h+"em"),r.percentToPxWidth=l.lastPercentToPxWidth=(parseFloat(u.getPropertyValue(n,"width",null,!0))||1)/h,r.percentToPxHeight=l.lastPercentToPxHeight=(parseFloat(u.getPropertyValue(n,"height",null,!0))||1)/h,r.emToPx=l.lastEmToPx=(parseFloat(u.getPropertyValue(n,"paddingLeft"))||1)/h,s.myParent.removeChild(n)),null===l.remToPx&&(l.remToPx=parseFloat(u.getPropertyValue(i.body,"fontSize"))||16),null===l.vwToPx&&(l.vwToPx=parseFloat(t.innerWidth)/100,l.vhToPx=parseFloat(t.innerHeight)/100),r.remToPx=l.remToPx,r.vwToPx=l.vwToPx,r.vhToPx=l.vhToPx,f.debug>=1&&console.log("Unit ratios: "+JSON.stringify(r),c),r}var vt,ni,pt,st,wt,et,ti,ut,v,ot,ht,lt,ft,at,yt,kt;if(n.begin&&0===tt)try{n.begin.call(k,k)}catch(ri){setTimeout(function(){throw ri;},1)}if("scroll"===it)st=/^x$/i.test(n.axis)?"Left":"Top",wt=parseFloat(n.offset)||0,n.container?s.isWrapped(n.container)||s.isNode(n.container)?(n.container=n.container[0]||n.container,vt=n.container["scroll"+st],pt=vt+o(c).position()[st.toLowerCase()]+wt):n.container=null:(vt=f.State.scrollAnchor[f.State["scrollProperty"+st]],ni=f.State.scrollAnchor[f.State["scrollProperty"+("Left"===st?"Top":"Left")]],pt=o(c).offset()[st.toLowerCase()]+wt),y={scroll:{rootPropertyValue:!1,startValue:vt,currentValue:vt,endValue:pt,unitType:"",easing:n.easing,scrollData:{container:n.container,direction:st,alternateValue:ni}},element:c},f.debug&&console.log("tweensContainer (scroll): ",y.scroll,c);else if("reverse"===it){if(!e(c).tweensContainer)return void o.dequeue(c,n.queue);"none"===e(c).opts.display&&(e(c).opts.display="auto");"hidden"===e(c).opts.visibility&&(e(c).opts.visibility="visible");e(c).opts.loop=!1;e(c).opts.begin=null;e(c).opts.complete=null;h.easing||delete n.easing;h.duration||delete n.duration;n=o.extend({},e(c).opts,n);ut=o.extend(!0,{},e(c).tweensContainer);for(et in ut)"element"!==et&&(ti=ut[et].startValue,ut[et].startValue=ut[et].currentValue=ut[et].endValue,ut[et].endValue=ti,s.isEmptyObject(h)||(ut[et].easing=n.easing),f.debug&&console.log("reverse tweensContainer ("+et+"): "+JSON.stringify(ut[et]),c));y=ut}else if("start"===it){e(c).tweensContainer&&e(c).isAnimating===!0&&(ut=e(c).tweensContainer);o.each(p,function(n,t){var f;if(RegExp("^"+u.Lists.colors.join("$|^")+"$").test(n)){var e=dt(t,!0),o=e[0],s=e[1],h=e[2];if(u.RegEx.isHex.test(o)){for(var c=["Red","Green","Blue"],a=u.Values.hexToRgb(o),l=h?u.Values.hexToRgb(h):r,i=0;i<c.length;i++)f=[a[i]],s&&f.push(s),l!==r&&f.push(l[i]),p[n+c[i]]=f;delete p[n]}}});for(v in p){var bt=dt(p[v]),rt=bt[0],ui=bt[1],g=bt[2];if(v=u.Names.camelCase(v),ot=u.Hooks.getRoot(v),ht=!1,e(c).isSVG||"tween"===ot||u.Names.prefixCheck(ot)[1]!==!1||u.Normalizations.registered[ot]!==r){if((n.display!==r&&null!==n.display&&"none"!==n.display||n.visibility!==r&&"hidden"!==n.visibility)&&/opacity|filter/.test(v)&&!g&&0!==rt&&(g=0),n._cacheValues&&ut&&ut[v]?(g===r&&(g=ut[v].endValue+ut[v].unitType),ht=e(c).rootPropertyValueCache[ot]):u.Hooks.registered[v]?g===r?(ht=u.getPropertyValue(c,ot),g=u.getPropertyValue(c,v,ht)):ht=u.Hooks.templates[ot][1]:g===r&&(g=u.getPropertyValue(c,v)),yt=!1,lt=gt(v,g),g=lt[0],at=lt[1],lt=gt(v,rt),rt=lt[0].replace(/^([+-\/*])=/,function(n,t){return yt=t,""}),ft=lt[1],g=parseFloat(g)||0,rt=parseFloat(rt)||0,"%"===ft&&(/^(fontSize|lineHeight)$/.test(v)?(rt/=100,ft="em"):/^scale/.test(v)?(rt/=100,ft=""):/(Red|Green|Blue)$/i.test(v)&&(rt=rt/100*255,ft="")),/[\/*]/.test(yt))ft=at;else if(at!==ft&&0!==g)if(0===rt)ft=at;else{b=b||ii();kt=/margin|padding|left|right|width|text|word|letter/i.test(v)||/X$/.test(v)||"x"===v?"x":"y";switch(at){case"%":g*="x"===kt?b.percentToPxWidth:b.percentToPxHeight;break;case"px":break;default:g*=b[at+"ToPx"]}switch(ft){case"%":g*=1/("x"===kt?b.percentToPxWidth:b.percentToPxHeight);break;case"px":break;default:g*=1/b[ft+"ToPx"]}}switch(yt){case"+":rt=g+rt;break;case"-":rt=g-rt;break;case"*":rt=g*rt;break;case"/":rt=g/rt}y[v]={rootPropertyValue:ht,startValue:g,currentValue:g,endValue:rt,unitType:ft,easing:ui};f.debug&&console.log("tweensContainer ("+v+"): "+JSON.stringify(y[v]),c)}else f.debug&&console.log("Skipping ["+ot+"] due to a lack of browser support.")}y.element=c}y.element&&(u.Values.addClass(c,"velocity-animating"),ct.push(y),""===n.queue&&(e(c).tweensContainer=y,e(c).opts=n),e(c).isAnimating=!0,tt===nt-1?(f.State.calls.push([ct,k,n,null,d.resolver]),f.State.isTicking===!1&&(f.State.isTicking=!0,a())):tt++)}var b,c=this,n=o.extend({},f.defaults,h),y={};switch(e(c)===r&&f.init(c),parseFloat(n.delay)&&n.queue!==!1&&o.queue(c,n.queue,function(t){f.velocityQueueEntryFlag=!0;e(c).delayTimer={setTimeout:setTimeout(t,parseFloat(n.delay)),next:t}}),n.duration.toString().toLowerCase()){case"fast":n.duration=200;break;case"normal":n.duration=v;break;case"slow":n.duration=600;break;default:n.duration=parseFloat(n.duration)||1}f.mock!==!1&&(f.mock===!0?n.duration=n.delay=1:(n.duration*=parseFloat(f.mock)||1,n.delay*=parseFloat(f.mock)||1));n.easing=w(n.easing,n.duration);n.begin&&!s.isFunction(n.begin)&&(n.begin=null);n.progress&&!s.isFunction(n.progress)&&(n.progress=null);n.complete&&!s.isFunction(n.complete)&&(n.complete=null);n.display!==r&&null!==n.display&&(n.display=n.display.toString().toLowerCase(),"auto"===n.display&&(n.display=f.CSS.Values.getDisplayType(c)));n.visibility!==r&&null!==n.visibility&&(n.visibility=n.visibility.toString().toLowerCase());n.mobileHA=n.mobileHA&&f.State.isMobile&&!f.State.isGingerbread;n.queue===!1?n.delay?setTimeout(g,n.delay):g():o.queue(c,n.queue,function(n,t){return t===!0?(d.promise&&d.resolver(k),!0):(f.velocityQueueEntryFlag=!0,void g(n))});""!==n.queue&&"fx"!==n.queue||"inprogress"===o.queue(c)[0]||o.dequeue(c)}var et,at,rt,k,p,h,vt=arguments[0]&&(arguments[0].p||o.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||s.isString(arguments[0].properties)),nt,tt,yt,g,d,it,st,ht,l,ct,lt,n,ot,ut;if(s.isWrapped(this)?(et=!1,rt=0,k=this,at=this):(et=!0,rt=1,k=vt?arguments[0].elements||arguments[0].e:arguments[0]),k=y(k)){if(vt?(p=arguments[0].properties||arguments[0].p,h=arguments[0].options||arguments[0].o):(p=arguments[rt],h=arguments[rt+1]),nt=k.length,tt=0,!/^(stop|finish)$/i.test(p)&&!o.isPlainObject(h))for(yt=rt+1,h={},g=yt;g<arguments.length;g++)s.isArray(arguments[g])||!/^(fast|normal|slow)$/i.test(arguments[g])&&!/^\d/.test(arguments[g])?s.isString(arguments[g])||s.isArray(arguments[g])?h.easing=arguments[g]:s.isFunction(arguments[g])&&(h.complete=arguments[g]):h.duration=arguments[g];d={promise:null,resolver:null,rejecter:null};et&&f.Promise&&(d.promise=new f.Promise(function(n,t){d.resolver=n;d.rejecter=t}));switch(p){case"scroll":it="scroll";break;case"reverse":it="reverse";break;case"finish":case"stop":return o.each(k,function(n,t){e(t)&&e(t).delayTimer&&(clearTimeout(e(t).delayTimer.setTimeout),e(t).delayTimer.next&&e(t).delayTimer.next(),delete e(t).delayTimer)}),st=[],o.each(f.State.calls,function(n,t){t&&o.each(t[1],function(i,u){var f=h===r?"":h;return f===!0||t[2].queue===f||h===r&&t[2].queue===!1?void o.each(k,function(i,r){r===u&&((h===!0||s.isString(h))&&(o.each(o.queue(r,s.isString(h)?h:""),function(n,t){s.isFunction(t)&&t(null,!0)}),o.queue(r,s.isString(h)?h:"",[])),"stop"===p?(e(r)&&e(r).tweensContainer&&f!==!1&&o.each(e(r).tweensContainer,function(n,t){t.endValue=t.currentValue}),st.push(n)):"finish"===p&&(t[2].duration=1))}):!0})}),"stop"===p&&(o.each(st,function(n,t){b(t,!0)}),d.promise&&d.resolver(k)),ft();default:if(!o.isPlainObject(p)||s.isEmptyObject(p)){if(s.isString(p)&&f.Redirects[p]){var n=o.extend({},h),bt=n.duration,pt=n.delay||0;return n.backwards===!0&&(k=o.extend(!0,[],k).reverse()),o.each(k,function(t,i){parseFloat(n.stagger)?n.delay=pt+parseFloat(n.stagger)*t:s.isFunction(n.stagger)&&(n.delay=pt+n.stagger.call(i,t,nt));n.drag&&(n.duration=parseFloat(bt)||(/^(callout|transition)/.test(p)?1e3:v),n.duration=Math.max(n.duration*(n.backwards?1-t/nt:(t+1)/nt),.75*n.duration,200));f.Redirects[p].call(i,i,n||{},t,nt,k,d.promise?d:r)}),ft()}return ht="Velocity: First argument ("+p+") was not a property map, a known action, or a registered redirect. Aborting.",d.promise?d.rejecter(new Error(ht)):console.log(ht),ft()}it="start"}if(l={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},ct=[],o.each(k,function(n,t){s.isNode(t)&&wt.call(t)}),n=o.extend({},f.defaults,h),n.loop=parseInt(n.loop),lt=2*n.loop-1,n.loop)for(ot=0;lt>ot;ot++)ut={delay:n.delay,progress:n.progress},ot===lt-1&&(ut.display=n.display,ut.visibility=n.visibility,ut.complete=n.complete),c(k,"reverse",ut);return ft()}},f=o.extend(c,f),f.animate=c,l=t.requestAnimationFrame||k,f.State.isMobile||i.hidden===r||i.addEventListener("visibilitychange",function(){i.hidden?(l=function(n){return setTimeout(function(){n(!0)},16)},a()):l=t.requestAnimationFrame||k}),n.Velocity=f,n!==t&&(n.fn.velocity=c,n.fn.velocity.defaults=f.defaults),o.each(["Down","Up"],function(n,t){f.Redirects["slide"+t]=function(n,i,u,e,s,h){var c=o.extend({},i),v=c.begin,y=c.complete,a={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},l={};c.display===r&&(c.display="Down"===t?"inline"===f.CSS.Values.getDisplayType(n)?"inline-block":"block":"none");c.begin=function(){var i,r;v&&v.call(s,s);for(i in a)l[i]=n.style[i],r=f.CSS.getPropertyValue(n,i),a[i]="Down"===t?[r,0]:[0,r];l.overflow=n.style.overflow;n.style.overflow="hidden"};c.complete=function(){for(var t in l)n.style[t]=l[t];y&&y.call(s,s);h&&h.resolver(s)};f(n,a,c)}}),o.each(["In","Out"],function(n,t){f.Redirects["fade"+t]=function(n,i,u,e,s,h){var c=o.extend({},i),a={opacity:"In"===t?1:0},l=c.complete;c.complete=u!==e-1?c.begin=null:function(){l&&l.call(s,s);h&&h.resolver(s)};c.display===r&&(c.display="In"===t?"auto":"none");f(this,a,c)}}),f}(window.jQuery||window.Zepto||window,window,document)}));!function(n,t,i,r){"use strict";function si(n,t,i){return setTimeout(ci(n,i),t)}function tt(n,t,i){return Array.isArray(n)?(v(n,i[t],i),!0):!1}function v(n,t,i){var u;if(n)if(n.forEach)n.forEach(t,i);else if(n.length!==r)for(u=0;u<n.length;)t.call(i,n[u],u,n),u++;else for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u,n)}function k(n,t,i){for(var f=Object.keys(t),u=0;u<f.length;)(!i||i&&n[f[u]]===r)&&(n[f[u]]=t[f[u]]),u++;return n}function hi(n,t){return k(n,t,!0)}function o(n,t,i){var r,u=t.prototype;r=n.prototype=Object.create(u);r.constructor=n;r._super=u;i&&k(r,i)}function ci(n,t){return function(){return n.apply(t,arguments)}}function li(n,t){return typeof n==pr?n.apply(t?t[0]||r:r,t):n}function ur(n,t){return n===r?t:n}function pt(n,t,i){v(bt(t),function(t){n.addEventListener(t,i,!1)})}function wt(n,t,i){v(bt(t),function(t){n.removeEventListener(t,i,!1)})}function fr(n,t){for(;n;){if(n==t)return!0;n=n.parentNode}return!1}function d(n,t){return n.indexOf(t)>-1}function bt(n){return n.trim().split(/\s+/g)}function it(n,t,i){if(n.indexOf&&!i)return n.indexOf(t);for(var r=0;r<n.length;){if(i&&n[r][i]==t||!i&&n[r]===t)return r;r++}return-1}function kt(n){return Array.prototype.slice.call(n,0)}function er(n,t,i){for(var f,u=[],e=[],r=0;r<n.length;)f=t?n[r][t]:n[r],it(e,f)<0&&u.push(n[r]),e[r]=f,r++;return i&&(u=t?u.sort(function(n,i){return n[t]>i[t]}):u.sort()),u}function dt(n,t){for(var i,u,e=t[0].toUpperCase()+t.slice(1),f=0;f<yr.length;){if(i=yr[f],u=i?i+e:t,u in n)return u;f++}return r}function ou(){return tf++}function or(n){var t=n.ownerDocument;return t.defaultView||t.parentWindow}function s(n,t){var i=this;this.manager=n;this.callback=t;this.element=n.element;this.target=n.options.inputTarget;this.domHandler=function(t){li(n.options.enable,[n])&&i.handler(t)};this.init()}function su(n){var t,i=n.options.inputClass;return t=i?i:rf?vi:uf?ti:wr?yi:ni,new t(n,hu)}function hu(n,t,i){var r=i.pointers.length,o=i.changedPointers.length,s=t&f&&0==r-o,h=t&(u|e)&&0==r-o;i.isFirst=!!s;i.isFinal=!!h;s&&(n.session={});i.eventType=t;cu(n,i);n.emit("hammer.input",i);n.recognize(i);n.session.prevInput=i}function cu(n,t){var i=n.session,u=t.pointers,e=u.length,f;i.firstInput||(i.firstInput=sr(t));e>1&&!i.firstMultiple?i.firstMultiple=sr(t):1===e&&(i.firstMultiple=!1);var o=i.firstInput,r=i.firstMultiple,s=r?r.center:o.center,h=t.center=hr(u);t.timeStamp=nr();t.deltaTime=t.timeStamp-o.timeStamp;t.angle=ai(s,h);t.distance=gt(s,h);lu(i,t);t.offsetDirection=cr(t.deltaX,t.deltaY);t.scale=r?pu(r.pointers,u):1;t.rotation=r?yu(r.pointers,u):0;au(i,t);f=n.element;fr(t.srcEvent.target,f)&&(f=t.srcEvent.target);t.target=f}function lu(n,t){var i=t.center,r=n.offsetDelta||{},e=n.prevDelta||{},o=n.prevInput||{};(t.eventType===f||o.eventType===u)&&(e=n.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=n.offsetDelta={x:i.x,y:i.y});t.deltaX=e.x+(i.x-r.x);t.deltaY=e.y+(i.y-r.y)}function au(n,t){var f,o,s,h,i=n.lastInterval||t,c=t.timeStamp-i.timeStamp;if(t.eventType!=e&&(c>ff||i.velocity===r)){var l=i.deltaX-t.deltaX,a=i.deltaY-t.deltaY,u=vu(c,l,a);o=u.x;s=u.y;f=ft(u.x)>ft(u.y)?u.x:u.y;h=cr(l,a);n.lastInterval=t}else f=i.velocity,o=i.velocityX,s=i.velocityY,h=i.direction;t.velocity=f;t.velocityX=o;t.velocityY=s;t.direction=h}function sr(n){for(var i=[],t=0;t<n.pointers.length;)i[t]={clientX:rt(n.pointers[t].clientX),clientY:rt(n.pointers[t].clientY)},t++;return{timeStamp:nr(),pointers:i,center:hr(i),deltaX:n.deltaX,deltaY:n.deltaY}}function hr(n){var t=n.length;if(1===t)return{x:rt(n[0].clientX),y:rt(n[0].clientY)};for(var r=0,u=0,i=0;t>i;)r+=n[i].clientX,u+=n[i].clientY,i++;return{x:rt(r/t),y:rt(u/t)}}function vu(n,t,i){return{x:t/n||0,y:i/n||0}}function cr(n,t){return n===t?fi:ft(n)>=ft(t)?n>0?ot:st:t>0?ht:ct}function gt(n,t,i){i||(i=kr);var r=t[i[0]]-n[i[0]],u=t[i[1]]-n[i[1]];return Math.sqrt(r*r+u*u)}function ai(n,t,i){i||(i=kr);var r=t[i[0]]-n[i[0]],u=t[i[1]]-n[i[1]];return 180*Math.atan2(u,r)/Math.PI}function yu(n,t){return ai(t[1],t[0],ei)-ai(n[1],n[0],ei)}function pu(n,t){return gt(t[0],t[1],ei)/gt(n[0],n[1],ei)}function ni(){this.evEl=of;this.evWin=sf;this.allow=!0;this.pressed=!1;s.apply(this,arguments)}function vi(){this.evEl=dr;this.evWin=gr;s.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}function lr(){this.evTarget=af;this.evWin=vf;this.started=!1;s.apply(this,arguments)}function wu(n,t){var i=kt(n.touches),r=kt(n.changedTouches);return t&(u|e)&&(i=er(i.concat(r),"identifier",!0)),[i,r]}function ti(){this.evTarget=tu;this.targetIds={};s.apply(this,arguments)}function bu(n,t){var r=kt(n.touches),o=this.targetIds;if(t&(f|g)&&1===r.length)return o[r[0].identifier]=!0,[r,r];var i,s,h=kt(n.changedTouches),c=[],l=this.target;if(s=r.filter(function(n){return fr(n.target,l)}),t===f)for(i=0;i<s.length;)o[s[i].identifier]=!0,i++;for(i=0;i<h.length;)o[h[i].identifier]&&c.push(h[i]),t&(u|e)&&delete o[h[i].identifier],i++;if(c.length)return[er(s.concat(c),"identifier",!0),c]}function yi(){s.apply(this,arguments);var n=ci(this.handler,this);this.touch=new ti(this.manager,n);this.mouse=new ni(this.manager,n)}function pi(n,t){this.manager=n;this.set(t)}function ku(n){if(d(n,lt))return lt;var t=d(n,at),i=d(n,vt);return t&&i?at+" "+vt:t||i?t?at:vt:d(n,ir)?ir:fu}function y(n){this.id=ou();this.manager=null;this.options=hi(n||{},this.defaults);this.options.enable=ur(this.options.enable,!0);this.state=oi;this.simultaneous={};this.requireFail=[]}function du(n){return n&yt?"cancel":n&b?"end":n&ut?"move":n&h?"start":""}function ar(n){return n==ct?"down":n==ht?"up":n==ot?"left":n==st?"right":""}function ii(n,t){var i=t.manager;return i?i.get(n):n}function c(){y.apply(this,arguments)}function ri(){c.apply(this,arguments);this.pX=null;this.pY=null}function wi(){c.apply(this,arguments)}function bi(){y.apply(this,arguments);this._timer=null;this._input=null}function ki(){c.apply(this,arguments)}function di(){c.apply(this,arguments)}function ui(){y.apply(this,arguments);this.pTime=!1;this.pCenter=!1;this._timer=null;this._input=null;this.count=0}function w(n,t){return t=t||{},t.recognizers=ur(t.recognizers,w.defaults.preset),new gi(n,t)}function gi(n,t){t=t||{};this.options=hi(t,w.defaults);this.options.inputTarget=this.options.inputTarget||n;this.handlers={};this.session={};this.recognizers=[];this.element=n;this.input=su(this);this.touchAction=new pi(this,this.options.touchAction);vr(this,!0);v(t.recognizers,function(n){var t=this.add(new n[0](n[1]));n[2]&&t.recognizeWith(n[2]);n[3]&&t.requireFailure(n[3])},this)}function vr(n,t){var i=n.element;v(n.options.cssProps,function(n,r){i.style[dt(i.style,r)]=t?n:""})}function gu(n,i){var r=t.createEvent("Event");r.initEvent(n,!0,!0);r.gesture=i;i.target.dispatchEvent(r)}var yr=["","webkit","moz","MS","ms","o"],nf=t.createElement("div"),pr="function",rt=Math.round,ft=Math.abs,nr=Date.now,tf=1,wr="ontouchstart"in n,rf=dt(n,"PointerEvent")!==r,uf=wr&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),et="touch",tr="mouse",ff=25,f=1,g=2,u=4,e=8,fi=1,ot=2,st=4,ht=8,ct=16,l=ot|st,nt=ht|ct,br=l|nt,kr=["x","y"],ei=["clientX","clientY"],nu,tu,eu,rr;s.prototype={handler:function(){},init:function(){this.evEl&&pt(this.element,this.evEl,this.domHandler);this.evTarget&&pt(this.target,this.evTarget,this.domHandler);this.evWin&&pt(or(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&wt(this.element,this.evEl,this.domHandler);this.evTarget&&wt(this.target,this.evTarget,this.domHandler);this.evWin&&wt(or(this.element),this.evWin,this.domHandler)}};var ef={mousedown:f,mousemove:g,mouseup:u},of="mousedown",sf="mousemove mouseup";o(ni,s,{handler:function(n){var t=ef[n.type];t&f&&0===n.button&&(this.pressed=!0);t&g&&1!==n.which&&(t=u);this.pressed&&this.allow&&(t&u&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[n],changedPointers:[n],pointerType:tr,srcEvent:n}))}});var hf={pointerdown:f,pointermove:g,pointerup:u,pointercancel:e,pointerout:e},cf={2:et,3:"pen",4:tr,5:"kinect"},dr="pointerdown",gr="pointermove pointerup pointercancel";n.MSPointerEvent&&(dr="MSPointerDown",gr="MSPointerMove MSPointerUp MSPointerCancel");o(vi,s,{handler:function(n){var t=this.store,o=!1,h=n.type.toLowerCase().replace("ms",""),r=hf[h],s=cf[n.pointerType]||n.pointerType,c=s==et,i=it(t,n.pointerId,"pointerId");r&f&&(0===n.button||c)?0>i&&(t.push(n),i=t.length-1):r&(u|e)&&(o=!0);0>i||(t[i]=n,this.callback(this.manager,r,{pointers:t,changedPointers:[n],pointerType:s,srcEvent:n}),o&&t.splice(i,1))}});var lf={touchstart:f,touchmove:g,touchend:u,touchcancel:e},af="touchstart",vf="touchstart touchmove touchend touchcancel";o(lr,s,{handler:function(n){var i=lf[n.type],t;(i===f&&(this.started=!0),this.started)&&(t=wu.call(this,n,i),i&(u|e)&&0==t[0].length-t[1].length&&(this.started=!1),this.callback(this.manager,i,{pointers:t[0],changedPointers:t[1],pointerType:et,srcEvent:n}))}});nu={touchstart:f,touchmove:g,touchend:u,touchcancel:e};tu="touchstart touchmove touchend touchcancel";o(ti,s,{handler:function(n){var i=nu[n.type],t=bu.call(this,n,i);t&&this.callback(this.manager,i,{pointers:t[0],changedPointers:t[1],pointerType:et,srcEvent:n})}});o(yi,s,{handler:function(n,t,i){var r=i.pointerType==et,f=i.pointerType==tr;if(r)this.mouse.allow=!1;else if(f&&!this.mouse.allow)return;t&(u|e)&&(this.mouse.allow=!0);this.callback(n,t,i)},destroy:function(){this.touch.destroy();this.mouse.destroy()}});var iu=dt(nf.style,"touchAction"),ru=iu!==r,uu="compute",fu="auto",ir="manipulation",lt="none",at="pan-x",vt="pan-y";pi.prototype={set:function(n){n==uu&&(n=this.compute());ru&&(this.manager.element.style[iu]=n);this.actions=n.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var n=[];return v(this.manager.recognizers,function(t){li(t.options.enable,[t])&&(n=n.concat(t.getTouchAction()))}),ku(n.join(" "))},preventDefaults:function(n){var t,i;if(!ru){if(t=n.srcEvent,i=n.offsetDirection,this.manager.session.prevented)return t.preventDefault(),void 0;var r=this.actions,u=d(r,lt),f=d(r,vt),e=d(r,at);return u||f&&i&l||e&&i&nt?this.preventSrc(t):void 0}},preventSrc:function(n){this.manager.session.prevented=!0;n.preventDefault()}};var oi=1,h=2,ut=4,b=8,p=b,yt=16,a=32;y.prototype={defaults:{},set:function(n){return k(this.options,n),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(n){if(tt(n,"recognizeWith",this))return this;var t=this.simultaneous;return n=ii(n,this),t[n.id]||(t[n.id]=n,n.recognizeWith(this)),this},dropRecognizeWith:function(n){return tt(n,"dropRecognizeWith",this)?this:(n=ii(n,this),delete this.simultaneous[n.id],this)},requireFailure:function(n){if(tt(n,"requireFailure",this))return this;var t=this.requireFail;return n=ii(n,this),-1===it(t,n)&&(t.push(n),n.requireFailure(this)),this},dropRequireFailure:function(n){if(tt(n,"dropRequireFailure",this))return this;n=ii(n,this);var t=it(this.requireFail,n);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(n){return!!this.simultaneous[n.id]},emit:function(n){function t(t){r.manager.emit(r.options.event+(t?du(i):""),n)}var r=this,i=this.state;b>i&&t(!0);t();i>=b&&t(!0)},tryEmit:function(n){return this.canEmit()?this.emit(n):(this.state=a,void 0)},canEmit:function(){for(var n=0;n<this.requireFail.length;){if(!(this.requireFail[n].state&(a|oi)))return!1;n++}return!0},recognize:function(n){var t=k({},n);return li(this.options.enable,[this,t])?(this.state&(p|yt|a)&&(this.state=oi),this.state=this.process(t),this.state&(h|ut|b|yt)&&this.tryEmit(t),void 0):(this.reset(),this.state=a,void 0)},process:function(){},getTouchAction:function(){},reset:function(){}};o(c,y,{defaults:{pointers:1},attrTest:function(n){var t=this.options.pointers;return 0===t||n.pointers.length===t},process:function(n){var t=this.state,i=n.eventType,r=t&(h|ut),f=this.attrTest(n);return r&&(i&e||!f)?t|yt:r||f?i&u?t|b:t&h?t|ut:h:a}});o(ri,c,{defaults:{event:"pan",threshold:10,pointers:1,direction:br},getTouchAction:function(){var t=this.options.direction,n=[];return t&l&&n.push(vt),t&nt&&n.push(at),n},directionTest:function(n){var i=this.options,r=!0,u=n.distance,t=n.direction,f=n.deltaX,e=n.deltaY;return t&i.direction||(i.direction&l?(t=0===f?fi:0>f?ot:st,r=f!=this.pX,u=Math.abs(n.deltaX)):(t=0===e?fi:0>e?ht:ct,r=e!=this.pY,u=Math.abs(n.deltaY))),n.direction=t,r&&u>i.threshold&&t&i.direction},attrTest:function(n){return c.prototype.attrTest.call(this,n)&&(this.state&h||!(this.state&h)&&this.directionTest(n))},emit:function(n){this.pX=n.deltaX;this.pY=n.deltaY;var t=ar(n.direction);t&&this.manager.emit(this.options.event+t,n);this._super.emit.call(this,n)}});o(wi,c,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[lt]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&h)},emit:function(n){if(this._super.emit.call(this,n),1!==n.scale){var t=n.scale<1?"in":"out";this.manager.emit(this.options.event+t,n)}}});o(bi,y,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[fu]},process:function(n){var t=this.options,i=n.pointers.length===t.pointers,r=n.distance<t.threshold,o=n.deltaTime>t.time;if(this._input=n,!r||!i||n.eventType&(u|e)&&!o)this.reset();else if(n.eventType&f)this.reset(),this._timer=si(function(){this.state=p;this.tryEmit()},t.time,this);else if(n.eventType&u)return p;return a},reset:function(){clearTimeout(this._timer)},emit:function(n){this.state===p&&(n&&n.eventType&u?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=nr(),this.manager.emit(this.options.event,this._input)))}});o(ki,c,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[lt]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&h)}});o(di,c,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:l|nt,pointers:1},getTouchAction:function(){return ri.prototype.getTouchAction.call(this)},attrTest:function(n){var t,i=this.options.direction;return i&(l|nt)?t=n.velocity:i&l?t=n.velocityX:i&nt&&(t=n.velocityY),this._super.attrTest.call(this,n)&&i&n.direction&&n.distance>this.options.threshold&&ft(t)>this.options.velocity&&n.eventType&u},emit:function(n){var t=ar(n.direction);t&&this.manager.emit(this.options.event+t,n);this.manager.emit(this.options.event,n)}});o(ui,y,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[ir]},process:function(n){var t=this.options,o=n.pointers.length===t.pointers,s=n.distance<t.threshold,c=n.deltaTime<t.time,i,r,e;if(this.reset(),n.eventType&f&&0===this.count)return this.failTimeout();if(s&&c&&o){if(n.eventType!=u)return this.failTimeout();if(i=this.pTime?n.timeStamp-this.pTime<t.interval:!0,r=!this.pCenter||gt(this.pCenter,n.center)<t.posThreshold,this.pTime=n.timeStamp,this.pCenter=n.center,r&&i?this.count+=1:this.count=1,this._input=n,e=this.count%t.taps,0===e)return this.hasRequireFailures()?(this._timer=si(function(){this.state=p;this.tryEmit()},t.interval,this),h):p}return a},failTimeout:function(){return this._timer=si(function(){this.state=a},this.options.interval,this),a},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==p&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});w.VERSION="2.0.4";w.defaults={domEvents:!1,touchAction:uu,enable:!0,inputTarget:null,inputClass:null,preset:[[ki,{enable:!1}],[wi,{enable:!1},["rotate"]],[di,{direction:l}],[ri,{direction:l},["swipe"]],[ui],[ui,{event:"doubletap",taps:2},["tap"]],[bi]],cssProps:{userSelect:"default",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};eu=1;rr=2;gi.prototype={set:function(n){return k(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},stop:function(n){this.session.stopped=n?rr:eu},recognize:function(n){var r=this.session,i,f,t,u;if(!r.stopped)for(this.touchAction.preventDefaults(n),f=this.recognizers,t=r.curRecognizer,(!t||t&&t.state&p)&&(t=r.curRecognizer=null),u=0;u<f.length;)i=f[u],r.stopped===rr||t&&i!=t&&!i.canRecognizeWith(t)?i.reset():i.recognize(n),!t&&i.state&(h|ut|b)&&(t=r.curRecognizer=i),u++},get:function(n){if(n instanceof y)return n;for(var i=this.recognizers,t=0;t<i.length;t++)if(i[t].options.event==n)return i[t];return null},add:function(n){if(tt(n,"add",this))return this;var t=this.get(n.options.event);return t&&this.remove(t),this.recognizers.push(n),n.manager=this,this.touchAction.update(),n},remove:function(n){if(tt(n,"remove",this))return this;var t=this.recognizers;return n=this.get(n),t.splice(it(t,n),1),this.touchAction.update(),this},on:function(n,t){var i=this.handlers;return v(bt(n),function(n){i[n]=i[n]||[];i[n].push(t)}),this},off:function(n,t){var i=this.handlers;return v(bt(n),function(n){t?i[n].splice(it(i[n],t),1):delete i[n]}),this},emit:function(n,t){var i,r;if(this.options.domEvents&&gu(n,t),i=this.handlers[n]&&this.handlers[n].slice(),i&&i.length)for(t.type=n,t.preventDefault=function(){t.srcEvent.preventDefault()},r=0;r<i.length;)i[r](t),r++},destroy:function(){this.element&&vr(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};k(w,{INPUT_START:f,INPUT_MOVE:g,INPUT_END:u,INPUT_CANCEL:e,STATE_POSSIBLE:oi,STATE_BEGAN:h,STATE_CHANGED:ut,STATE_ENDED:b,STATE_RECOGNIZED:p,STATE_CANCELLED:yt,STATE_FAILED:a,DIRECTION_NONE:fi,DIRECTION_LEFT:ot,DIRECTION_RIGHT:st,DIRECTION_UP:ht,DIRECTION_DOWN:ct,DIRECTION_HORIZONTAL:l,DIRECTION_VERTICAL:nt,DIRECTION_ALL:br,Manager:gi,Input:s,TouchAction:pi,TouchInput:ti,MouseInput:ni,PointerEventInput:vi,TouchMouseInput:yi,SingleTouchInput:lr,Recognizer:y,AttrRecognizer:c,Tap:ui,Pan:ri,Swipe:di,Pinch:wi,Rotate:ki,Press:bi,on:pt,off:wt,each:v,merge:hi,extend:k,inherit:o,bindFn:ci,prefixed:dt});typeof define==pr&&define.amd?define(function(){return w}):"undefined"!=typeof module&&module.exports?module.exports=w:n[i]=w}(window,document,"Hammer"),function(n){typeof define=="function"&&define.amd?define(["jquery","hammerjs"],n):typeof exports=="object"?n(require("jquery"),require("hammerjs")):n(jQuery,Hammer)}(function(n,t){function i(i,r){var u=n(i);u.data("hammer")||u.data("hammer",new t(u[0],r))}n.fn.hammer=function(n){return this.each(function(){i(this,n)})};t.Manager.prototype.emit=function(t){return function(i,r){t.call(this,i,r);n(this.element).trigger({type:i,gesture:r})}}(t.Manager.prototype.emit)}),function(n){n.Package?Materialize={}:n.Materialize={}}(window);typeof exports=="undefined"||exports.nodeType||(typeof module!="undefined"&&!module.nodeType&&module.exports&&(exports=module.exports=Materialize),exports.default=Materialize),function(n){for(var f=0,r=["webkit","moz"],t=n.requestAnimationFrame,i=n.cancelAnimationFrame,u=r.length;--u>=0&&!t;)t=n[r[u]+"RequestAnimationFrame"],i=n[r[u]+"CancelRequestAnimationFrame"];t&&i||(t=function(n){var t=+Date.now(),i=Math.max(f+16,t);return setTimeout(function(){n(f=i)},i-t)},i=clearTimeout);n.requestAnimationFrame=t;n.cancelAnimationFrame=i}(window);Materialize.objectSelectorString=function(n){var t=n.prop("tagName")||"",i=n.attr("id")||"",r=n.attr("class")||"";return(t+i+r).replace(/\s/g,"")};Materialize.guid=function(){function n(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return function(){return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()}}();Materialize.escapeHash=function(n){return n.replace(/(:|\.|\[|\]|,|=)/g,"\\$1")};Materialize.elementOrParentIsFixed=function(n){var t=$(n),r=t.add(t.parents()),i=!1;return r.each(function(){if($(this).css("position")==="fixed")return i=!0,!1}),i};getTime=Date.now||function(){return(new Date).getTime()};Materialize.throttle=function(n,t,i){var r,u,o,f=null,e=0,s;return i||(i={}),s=function(){e=i.leading===!1?0:getTime();f=null;o=n.apply(r,u);r=u=null},function(){var h=getTime(),c;return e||i.leading!==!1||(e=h),c=t-(h-e),r=this,u=arguments,c<=0?(clearTimeout(f),f=null,e=h,o=n.apply(r,u),r=u=null):f||i.trailing===!1||(f=setTimeout(s,c)),o}};Vel=jQuery?jQuery.Velocity:$?$.Velocity:Velocity;Materialize.Vel=Vel?Vel:Velocity,function(n){n.fn.collapsible=function(t,i){var u={accordion:undefined,onOpen:undefined,onClose:undefined},r=t;return t=n.extend(u,t),this.each(function(){function a(t){u=f.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(){n(this).css("height","")}}):t.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){n(this).css("height","")}});u.not(t).removeClass("active").parent().removeClass("active");u.not(t).parent().children(".collapsible-body").stop(!0,!1).each(function(){n(this).is(":visible")&&n(this).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){n(this).css("height","");h(n(this).siblings(".collapsible-header"))}})})}function v(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(){n(this).css("height","")}}):t.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){n(this).css("height","")}})}function o(n,i){i||n.toggleClass("active");t.accordion||e==="accordion"||e===undefined?a(n):v(n);h(n)}function h(n){n.hasClass("active")?typeof t.onOpen=="function"&&t.onOpen.call(this,n.parent()):typeof t.onClose=="function"&&t.onClose.call(this,n.parent())}function y(n){var t=c(n);return t.length>0}function c(n){return n.closest("li > .collapsible-header")}function l(){f.off("click.collapse","> li > .collapsible-header")}var f=n(this),u=n(this).find("> li > .collapsible-header"),e=f.data("collapsible"),s;if(r==="destroy"){l();return}if(i>=0&&i<u.length){s=u.eq(i);s.length&&(r==="open"||r==="close"&&s.hasClass("active"))&&o(s);return}l();f.on("click.collapse","> li > .collapsible-header",function(t){var i=n(t.target);y(i)&&(i=c(i));o(i)});t.accordion||e==="accordion"||e===undefined?o(u.filter(".active").first(),!0):u.filter(".active").each(function(){o(n(this),!0)})})};n(document).ready(function(){n(".collapsible").collapsible()})}(jQuery),function(n){n.fn.scrollTo=function(t){return n(this).scrollTop(n(this).scrollTop()-n(this).offset().top+n(t).offset().top),this};n.fn.dropdown=function(t){var i={inDuration:300,outDuration:225,constrainWidth:!0,hover:!1,gutter:0,belowOrigin:!1,alignment:"left",stopPropagation:!1};if(t==="open")return this.each(function(){n(this).trigger("open")}),!1;if(t==="close")return this.each(function(){n(this).trigger("close")}),!1;this.each(function(){function c(){r.data("induration")!==undefined&&(f.inDuration=r.data("induration"));r.data("outduration")!==undefined&&(f.outDuration=r.data("outduration"));r.data("constrainwidth")!==undefined&&(f.constrainWidth=r.data("constrainwidth"));r.data("hover")!==undefined&&(f.hover=r.data("hover"));r.data("gutter")!==undefined&&(f.gutter=r.data("gutter"));r.data("beloworigin")!==undefined&&(f.belowOrigin=r.data("beloworigin"));r.data("alignment")!==undefined&&(f.alignment=r.data("alignment"));r.data("stoppropagation")!==undefined&&(f.stopPropagation=r.data("stoppropagation"))}function h(t){var a,g,nt;t==="focus"&&(s=!0);c();u.addClass("active");r.addClass("active");a=r[0].getBoundingClientRect().width;f.constrainWidth===!0?u.css("width",a):u.css("white-space","nowrap");var w=window.innerHeight,v=r.innerHeight(),b=r.offset().left,y=r.offset().top-n(window).scrollTop(),h=f.alignment,l=0,p=0,o=0;f.belowOrigin===!0&&(o=v);var k=0,d=0,i=r.parent();i.is("body")||(i[0].scrollHeight>i[0].clientHeight&&(k=i[0].scrollTop),i[0].scrollWidth>i[0].clientWidth&&(d=i[0].scrollLeft));b+u.innerWidth()>n(window).width()?h="right":b-u.innerWidth()+r.innerWidth()<0&&(h="left");y+u.innerHeight()>w&&(y+v-u.innerHeight()<0?(g=w-y-o,u.css("max-height",g)):(o||(o+=v),o-=u.innerHeight()));h==="left"?(l=f.gutter,p=r.position().left+l):h==="right"&&(u.stop(!0,!0).css({opacity:0,left:0}),nt=r.position().left+a-u.width(),l=-f.gutter,p=nt+l);u.css({position:"absolute",top:r.position().top+o+k,left:p+d});u.slideDown({queue:!1,duration:f.inDuration,easing:"easeOutCubic",complete:function(){n(this).css("height","")}}).animate({opacity:1},{queue:!1,duration:f.inDuration,easing:"easeOutSine"});setTimeout(function(){n(document).on("click."+u.attr("id"),function(){e();n(document).off("click."+u.attr("id"))})},0)}function e(){s=!1;u.fadeOut(f.outDuration);u.removeClass("active");r.removeClass("active");n(document).off("click."+u.attr("id"));setTimeout(function(){u.css("max-height","")},f.outDuration)}var r=n(this),f=n.extend({},i,t),s=!1,u=n("#"+r.attr("data-activates")),o;if(c(),r.after(u),f.hover){o=!1;r.off("click."+r.attr("id"));r.on("mouseenter",function(){o===!1&&(h(),o=!0)});r.on("mouseleave",function(t){var i=t.toElement||t.relatedTarget;n(i).closest(".dropdown-content").is(u)||(u.stop(!0,!0),e(),o=!1)});u.on("mouseleave",function(t){var i=t.toElement||t.relatedTarget;n(i).closest(".dropdown-button").is(r)||(u.stop(!0,!0),e(),o=!1)})}else{r.off("click."+r.attr("id"));r.on("click."+r.attr("id"),function(t){s||(r[0]!=t.currentTarget||r.hasClass("active")||n(t.target).closest(".dropdown-content").length!==0?r.hasClass("active")&&(e(),n(document).off("click."+u.attr("id"))):(t.preventDefault(),f.stopPropagation&&t.stopPropagation(),h("click")))})}r.on("open",function(n,t){h(t)});r.on("close",e)})};n(document).ready(function(){n(".dropdown-button").dropdown()})}(jQuery),function(n,t){"use strict";var r={opacity:.5,inDuration:250,outDuration:250,ready:undefined,complete:undefined,dismissible:!0,startingTop:"4%",endingTop:"10%"},i=function(){function i(t,r){_classCallCheck(this,i);!t[0].M_Modal||t[0].M_Modal.destroy();this.$el=t;this.options=n.extend({},i.defaults,r);this.isOpen=!1;this.$el[0].M_Modal=this;this.id=t.attr("id");this.openingTrigger=undefined;this.$overlay=n('<div class="modal-overlay"><\/div>');i._increment++;i._count++;this.$overlay[0].style.zIndex=1e3+i._increment*2;this.$el[0].style.zIndex=1e3+i._increment*2+1;this.setupEventHandlers()}return _createClass(i,[{key:"getInstance",value:function(){return this}},{key:"destroy",value:function(){this.removeEventHandlers();this.$el[0].removeAttribute("style");!this.$overlay[0].parentNode||this.$overlay[0].parentNode.removeChild(this.$overlay[0]);this.$el[0].M_Modal=undefined;i._count--}},{key:"setupEventHandlers",value:function(){this.handleOverlayClickBound=this.handleOverlayClick.bind(this);this.handleModalCloseClickBound=this.handleModalCloseClick.bind(this);i._count===1&&document.body.addEventListener("click",this.handleTriggerClick);this.$overlay[0].addEventListener("click",this.handleOverlayClickBound);this.$el[0].addEventListener("click",this.handleModalCloseClickBound)}},{key:"removeEventHandlers",value:function(){i._count===0&&document.body.removeEventListener("click",this.handleTriggerClick);this.$overlay[0].removeEventListener("click",this.handleOverlayClickBound);this.$el[0].removeEventListener("click",this.handleModalCloseClickBound)}},{key:"handleTriggerClick",value:function(t){var r=n(t.target).closest(".modal-trigger"),i,u;t.target&&r.length&&(i=r[0].getAttribute("href"),i=i?i.slice(1):r[0].getAttribute("data-target"),u=document.getElementById(i).M_Modal,u&&u.open(r),t.preventDefault())}},{key:"handleOverlayClick",value:function(){this.options.dismissible&&this.close()}},{key:"handleModalCloseClick",value:function(t){var i=n(t.target).closest(".modal-close");t.target&&i.length&&this.close()}},{key:"handleKeydown",value:function(n){n.keyCode===27&&this.options.dismissible&&this.close()}},{key:"animateIn",value:function(){var i=this,r;n.extend(this.$el[0].style,{display:"block",opacity:0});n.extend(this.$overlay[0].style,{display:"block",opacity:0});t(this.$overlay[0],{opacity:this.options.opacity},{duration:this.options.inDuration,queue:!1,ease:"easeOutCubic"});r={duration:this.options.inDuration,queue:!1,ease:"easeOutCubic",complete:function(){typeof i.options.ready=="function"&&i.options.ready.call(i,i.$el,i.openingTrigger)}};this.$el[0].classList.contains("bottom-sheet")?t(this.$el[0],{bottom:0,opacity:1},r):(t.hook(this.$el[0],"scaleX",.7),this.$el[0].style.top=this.options.startingTop,t(this.$el[0],{top:this.options.endingTop,opacity:1,scaleX:1},r))}},{key:"animateOut",value:function(){var n=this,i;t(this.$overlay[0],{opacity:0},{duration:this.options.outDuration,queue:!1,ease:"easeOutQuart"});i={duration:this.options.outDuration,queue:!1,ease:"easeOutCubic",complete:function(){n.$el[0].style.display="none";typeof n.options.complete=="function"&&n.options.complete.call(n,n.$el);n.$overlay[0].parentNode.removeChild(n.$overlay[0])}};this.$el[0].classList.contains("bottom-sheet")?t(this.$el[0],{bottom:"-100%",opacity:0},i):t(this.$el[0],{top:this.options.startingTop,opacity:0,scaleX:.7},i)}},{key:"open",value:function(n){if(!this.isOpen){this.isOpen=!0;var t=document.body;return t.style.overflow="hidden",this.$el[0].classList.add("open"),t.appendChild(this.$overlay[0]),this.openingTrigger=!n?undefined:n,this.options.dismissible&&(this.handleKeydownBound=this.handleKeydown.bind(this),document.addEventListener("keydown",this.handleKeydownBound)),this.animateIn(),this}}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,this.$el[0].classList.remove("open"),document.body.style.overflow="",this.options.dismissible&&document.removeEventListener("keydown",this.handleKeydownBound),this.animateOut(),this}}],[{key:"init",value:function(t,r){var u=[];return t.each(function(){u.push(new i(n(this),r))}),u}},{key:"defaults",get:function(){return r}}]),i}();i._increment=0;i._count=0;Materialize.Modal=i;n.fn.modal=function(t){if(i.prototype[t])return t.slice(0,3)==="get"?this.first()[0].M_Modal[t]():this.each(function(){this.M_Modal[t]()});if(typeof t!="object"&&t)n.error("Method "+t+" does not exist on jQuery.modal");else return i.init(this,arguments[0]),this}}(jQuery,Materialize.Vel),function(n){n.fn.materialbox=function(){return this.each(function(){function e(){i=!1;var f=t.parent(".material-placeholder"),h=window.innerWidth,l=window.innerHeight,e=t.data("width"),o=t.data("height");t.velocity("stop",!0);n("#materialbox-overlay").velocity("stop",!0);n(".materialbox-caption").velocity("stop",!0);n(window).off("scroll.materialbox");n(document).off("keyup.materialbox");n(window).off("resize.materialbox");n("#materialbox-overlay").velocity({opacity:0},{duration:s,queue:!1,easing:"easeOutQuad",complete:function(){u=!1;n(this).remove()}});t.velocity({width:e,height:o,left:0,top:0},{duration:s,queue:!1,easing:"easeOutQuad",complete:function(){f.css({height:"",width:"",position:"",top:"",left:""});t.removeAttr("style");t.attr("style",c);t.removeClass("active");i=!0;r&&r.css("overflow","")}});n(".materialbox-caption").velocity({opacity:0},{duration:s,queue:!1,easing:"easeOutQuad",complete:function(){n(this).remove()}})}if(!n(this).hasClass("initialized")){n(this).addClass("initialized");var u=!1,i=!0,o=275,s=200,t=n(this),h=n("<div><\/div>").addClass("material-placeholder"),r,f,c=t.attr("style");t.wrap(h);t.on("click",function(){var w=t.parent(".material-placeholder"),h=window.innerWidth,c=window.innerHeight,a=t.width(),b=t.height(),g,v,y,d,p;if(i===!1||u&&i===!0)return e(),!1;for(i=!1,t.addClass("active"),u=!0,w.css({width:w[0].getBoundingClientRect().width,height:w[0].getBoundingClientRect().height,position:"relative",top:0,left:0}),r=undefined,f=w[0].parentNode,g=0;f!==null&&!n(f).is(document);)v=n(f),v.css("overflow")!=="visible"&&(v.css("overflow","visible"),r=r===undefined?v:r.add(v)),f=f.parentNode;t.css({position:"absolute","z-index":1e3,"will-change":"left, top, width, height"}).data("width",a).data("height",b);y=n('<div id="materialbox-overlay"><\/div>').css({opacity:0}).click(function(){i===!0&&e()});t.before(y);d=y[0].getBoundingClientRect();y.css({width:h,height:c,left:-1*d.left,top:-1*d.top});y.velocity({opacity:1},{duration:o,queue:!1,easing:"easeOutQuad"});t.data("caption")!==""&&(p=n('<div class="materialbox-caption"><\/div>'),p.text(t.data("caption")),n("body").append(p),p.css({display:"inline"}),p.velocity({opacity:1},{duration:o,queue:!1,easing:"easeOutQuad"}));var k=0,nt=a/h,tt=b/c,s=0,l=0;nt>tt?(k=b/a,s=h*.9,l=h*.9*k):(k=a/b,s=c*.9*k,l=c*.9);t.hasClass("responsive-img")?t.velocity({"max-width":s,width:a},{duration:0,queue:!1,complete:function(){t.css({left:0,top:0}).velocity({height:l,width:s,left:n(document).scrollLeft()+h/2-t.parent(".material-placeholder").offset().left-s/2,top:n(document).scrollTop()+c/2-t.parent(".material-placeholder").offset().top-l/2},{duration:o,queue:!1,easing:"easeOutQuad",complete:function(){i=!0}})}}):t.css("left",0).css("top",0).velocity({height:l,width:s,left:n(document).scrollLeft()+h/2-t.parent(".material-placeholder").offset().left-s/2,top:n(document).scrollTop()+c/2-t.parent(".material-placeholder").offset().top-l/2},{duration:o,queue:!1,easing:"easeOutQuad",complete:function(){i=!0}});n(window).on("scroll.materialbox",function(){u&&e()});n(window).on("resize.materialbox",function(){u&&e()});n(document).on("keyup.materialbox",function(n){n.keyCode===27&&i===!0&&u&&e()})})}})};n(document).ready(function(){n(".materialboxed").materialbox()})}(jQuery),function(n){n.fn.parallax=function(){var t=n(window).width();return this.each(function(){function r(r){var u=t<601?i.height()>0?i.height():i.children("img").height():i.height()>0?i.height():500;var f=i.children("img").first(),h=f.height(),c=h-u,l=i.offset().top+u,s=i.offset().top,e=n(window).scrollTop(),o=window.innerHeight,a=e+o,v=(a-s)/(u+o),y=Math.round(c*v);r&&f.css("display","block");l>e&&s<e+o&&f.css("transform","translate3D(-50%,"+y+"px, 0)")}var i=n(this);i.addClass("parallax");i.children("img").one("load",function(){r(!0)}).each(function(){this.complete&&n(this).trigger("load")});n(window).scroll(function(){t=n(window).width();r(!1)});n(window).resize(function(){t=n(window).width();r(!1)})})}}(jQuery),function(n){var t={init:function(t){var i;return t=n.extend({onShow:null,swipeable:!1,responsiveThreshold:Infinity},t),i=Materialize.objectSelectorString(n(this)),this.each(function(r){var b=i+r,f=n(this),nt=n(window).width(),u,o,s=f.find("li.tab a"),c=f.width(),l=n(),k,p=Math.max(c,f[0].scrollWidth)/s.length,h,e=0,d=0,w=!1,tt,a=300,v=function(n){return Math.ceil(c-n.position().left-n[0].getBoundingClientRect().width-f.scrollLeft())},y=function(n){return Math.floor(n.position().left+f.scrollLeft())},g=function(n){e-n>=0?(h.velocity({right:v(u)},{duration:a,queue:!1,easing:"easeOutQuad"}),h.velocity({left:y(u)},{duration:a,queue:!1,easing:"easeOutQuad",delay:90})):(h.velocity({left:y(u)},{duration:a,queue:!1,easing:"easeOutQuad"}),h.velocity({right:v(u)},{duration:a,queue:!1,easing:"easeOutQuad",delay:90}))};t.swipeable&&nt>t.responsiveThreshold&&(t.swipeable=!1);u=n(s.filter('[href="'+location.hash+'"]'));u.length===0&&(u=n(this).find("li.tab a.active").first());u.length===0&&(u=n(this).find("li.tab a").first());u.addClass("active");e=s.index(u);e<0&&(e=0);u[0]!==undefined&&(o=n(u[0].hash),o.addClass("active"));f.find(".indicator").length||f.append('<li class="indicator"><\/li>');h=f.find(".indicator");f.append(h);f.is(":visible")&&setTimeout(function(){h.css({right:v(u)});h.css({left:y(u)})},0);n(window).off("resize.tabs-"+b).on("resize.tabs-"+b,function(){c=f.width();p=Math.max(c,f[0].scrollWidth)/s.length;e<0&&(e=0);p!==0&&c!==0&&(h.css({right:v(u)}),h.css({left:y(u)}))});t.swipeable?(s.each(function(){var t=n(Materialize.escapeHash(this.hash));t.addClass("carousel-item");l=l.add(t)}),k=l.wrapAll('<div class="tabs-content carousel"><\/div>'),l.css("display",""),n(".tabs-content.carousel").carousel({fullWidth:!0,noWrap:!0,onCycleTo:function(n){if(!w){var i=e;e=k.index(n);u.removeClass("active");u=s.eq(e);u.addClass("active");g(i);typeof t.onShow=="function"&&t.onShow.call(f[0],o)}}})):s.not(u).each(function(){n(Materialize.escapeHash(this.hash)).hide()});f.off("click.tabs").on("click.tabs","a",function(i){var r,h;if(n(this).parent().hasClass("disabled")){i.preventDefault();return}n(this).attr("target")||(w=!0,c=f.width(),p=Math.max(c,f[0].scrollWidth)/s.length,u.removeClass("active"),r=o,u=n(this),o=n(Materialize.escapeHash(this.hash)),s=f.find("li.tab a"),h=u.position(),u.addClass("active"),d=e,e=s.index(n(this)),e<0&&(e=0),t.swipeable?l.length&&l.carousel("set",e,function(){typeof t.onShow=="function"&&t.onShow.call(f[0],o)}):(o!==undefined&&(o.show(),o.addClass("active"),typeof t.onShow=="function"&&t.onShow.call(this,o)),r===undefined||r.is(o)||(r.hide(),r.removeClass("active"))),tt=setTimeout(function(){w=!1},a),g(d),i.preventDefault())})})},select_tab:function(n){this.find('a[href="#'+n+'"]').trigger("click")}};n.fn.tabs=function(i){if(t[i])return t[i].apply(this,Array.prototype.slice.call(arguments,1));if(typeof i!="object"&&i)n.error("Method "+i+" does not exist on jQuery.tabs");else return t.init.apply(this,arguments)};n(document).ready(function(){n("ul.tabs").tabs()})}(jQuery),function(n){n.fn.tooltip=function(i){var r=5;return i==="remove"?(this.each(function(){n("#"+n(this).attr("data-tooltip-id")).remove();n(this).removeAttr("data-tooltip-id");n(this).off("mouseenter.tooltip mouseleave.tooltip")}),!1):(i=n.extend({delay:350,tooltip:"",position:"bottom",html:!1},i),this.each(function(){var a=Materialize.guid(),u=n(this),v,h,s,e,o,f,l,y,c,p;u.attr("data-tooltip-id")&&n("#"+u.attr("data-tooltip-id")).remove();u.attr("data-tooltip-id",a);l=function(){v=u.attr("data-html")?u.attr("data-html")==="true":i.html;h=u.attr("data-delay");h=h===undefined||h===""?i.delay:h;s=u.attr("data-position");s=s===undefined||s===""?i.position:s;e=u.attr("data-tooltip");e=e===undefined||e===""?i.tooltip:e};l();y=function(){var t=n('<div class="material-tooltip"><\/div>');return e=v?n("<span><\/span>").html(e):n("<span><\/span>").text(e),t.append(e).appendTo(n("body")).attr("id",a),f=n('<div class="backdrop"><\/div>'),f.appendTo(t),t};o=y();u.off("mouseenter.tooltip mouseleave.tooltip");c=!1;u.on({"mouseenter.tooltip":function(){var n=function(){l();c=!0;o.velocity("stop");f.velocity("stop");o.css({visibility:"visible",left:"0px",top:"0px"});var v=u.outerWidth(),k=u.outerHeight(),n=o.outerHeight(),i=o.outerWidth(),y="0px",p="0px",w=f[0].offsetWidth,nt=f[0].offsetHeight,d=8,g=8,b=0,e,h,a;s==="top"?(e=u.offset().top-n-r,h=u.offset().left+v/2-i/2,a=t(h,e,i,n),y="-10px",f.css({bottom:0,left:0,borderRadius:"14px 14px 0 0",transformOrigin:"50% 100%",marginTop:n,marginLeft:i/2-w/2})):s==="left"?(e=u.offset().top+k/2-n/2,h=u.offset().left-i-r,a=t(h,e,i,n),p="-10px",f.css({top:"-7px",right:0,width:"14px",height:"14px",borderRadius:"14px 0 0 14px",transformOrigin:"95% 50%",marginTop:n/2,marginLeft:i})):s==="right"?(e=u.offset().top+k/2-n/2,h=u.offset().left+v+r,a=t(h,e,i,n),p="+10px",f.css({top:"-7px",left:0,width:"14px",height:"14px",borderRadius:"0 14px 14px 0",transformOrigin:"5% 50%",marginTop:n/2,marginLeft:"0px"})):(e=u.offset().top+u.outerHeight()+r,h=u.offset().left+v/2-i/2,a=t(h,e,i,n),y="+10px",f.css({top:0,left:0,marginLeft:i/2-w/2}));o.css({top:a.y,left:a.x});d=Math.SQRT2*i/parseInt(w);g=Math.SQRT2*n/parseInt(nt);b=Math.max(d,g);o.velocity({translateY:y,translateX:p},{duration:350,queue:!1}).velocity({opacity:1},{duration:300,delay:50,queue:!1});f.css({visibility:"visible"}).velocity({opacity:1},{duration:55,delay:0,queue:!1}).velocity({scaleX:b,scaleY:b},{duration:300,delay:0,queue:!1,easing:"easeInOutQuad"})};p=setTimeout(n,h)},"mouseleave.tooltip":function(){c=!1;clearTimeout(p);setTimeout(function(){c!==!0&&(o.velocity({opacity:0,translateY:0,translateX:0},{duration:225,queue:!1}),f.velocity({opacity:0,scaleX:1,scaleY:1},{duration:225,queue:!1,complete:function(){f.css({visibility:"hidden"});o.css({visibility:"hidden"});c=!1}}))},225)}})}))};var t=function(t,i,r,u){var f=t,e=i;return f<0?f=4:f+r>window.innerWidth&&(f-=f+r-window.innerWidth),e<0?e=4:e+u>window.innerHeight+n(window).scrollTop&&(e-=e+u-window.innerHeight),{x:f,y:e}};n(document).ready(function(){n(".tooltipped").tooltip()})}(jQuery),function(n){"use strict";function o(n){return n!==null&&n===n.window}function s(n){return o(n)?n:n.nodeType===9&&n.defaultView}function h(n){var t,i,r={top:0,left:0},u=n&&n.ownerDocument;return t=u.documentElement,typeof n.getBoundingClientRect!=typeof undefined&&(r=n.getBoundingClientRect()),i=s(u),{top:r.top+i.pageYOffset-t.clientTop,left:r.left+i.pageXOffset-t.clientLeft}}function f(n){var i="",t;for(t in n)n.hasOwnProperty(t)&&(i+=t+":"+n[t]+";");return i}function c(n){if(i.allowEvent(n)===!1)return null;for(var r=null,t=n.target||n.srcElement;t.parentNode!==null;){if(!(t instanceof SVGElement)&&t.className.indexOf("waves-effect")!==-1){r=t;break}t=t.parentNode}return r}function u(i){var r=c(i);r!==null&&(t.show(i,r),"ontouchstart"in n&&(r.addEventListener("touchend",t.hide,!1),r.addEventListener("touchcancel",t.hide,!1)),r.addEventListener("mouseup",t.hide,!1),r.addEventListener("mouseleave",t.hide,!1),r.addEventListener("dragend",t.hide,!1))}var r=r||{},e=document.querySelectorAll.bind(document),t={duration:750,show:function(n,i){var o,u,r;if(n.button===2)return!1;o=i||this;u=document.createElement("div");u.className="waves-ripple";o.appendChild(u);var s=h(o),c=n.pageY-s.top,l=n.pageX-s.left,e="scale("+o.clientWidth/10+")";"touches"in n&&(c=n.touches[0].pageY-s.top,l=n.touches[0].pageX-s.left);u.setAttribute("data-hold",Date.now());u.setAttribute("data-scale",e);u.setAttribute("data-x",l);u.setAttribute("data-y",c);r={top:c+"px",left:l+"px"};u.className=u.className+" waves-notransition";u.setAttribute("style",f(r));u.className=u.className.replace("waves-notransition","");r["-webkit-transform"]=e;r["-moz-transform"]=e;r["-ms-transform"]=e;r["-o-transform"]=e;r.transform=e;r.opacity="1";r["-webkit-transition-duration"]=t.duration+"ms";r["-moz-transition-duration"]=t.duration+"ms";r["-o-transition-duration"]=t.duration+"ms";r["transition-duration"]=t.duration+"ms";r["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)";r["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)";r["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)";r["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)";u.setAttribute("style",f(r))},hide:function(n){i.touchup(n);var e=this,a=e.clientWidth*1.4,r=null,o=e.getElementsByClassName("waves-ripple");if(o.length>0)r=o[o.length-1];else return!1;var h=r.getAttribute("data-x"),c=r.getAttribute("data-y"),u=r.getAttribute("data-scale"),l=Date.now()-Number(r.getAttribute("data-hold")),s=350-l;s<0&&(s=0);setTimeout(function(){var n={top:c+"px",left:h+"px",opacity:"0","-webkit-transition-duration":t.duration+"ms","-moz-transition-duration":t.duration+"ms","-o-transition-duration":t.duration+"ms","transition-duration":t.duration+"ms","-webkit-transform":u,"-moz-transform":u,"-ms-transform":u,"-o-transform":u,transform:u};r.setAttribute("style",f(n));setTimeout(function(){try{e.removeChild(r)}catch(n){return!1}},t.duration)},s)},wrapInput:function(n){for(var t,u,i,f,r=0;r<n.length;r++)if(t=n[r],t.tagName.toLowerCase()==="input"){if(u=t.parentNode,u.tagName.toLowerCase()==="i"&&u.className.indexOf("waves-effect")!==-1)continue;i=document.createElement("i");i.className=t.className+" waves-input-wrapper";f=t.getAttribute("style");f||(f="");i.setAttribute("style",f);t.className="waves-button-input";t.removeAttribute("style");u.replaceChild(i,t);i.appendChild(t)}}},i={touches:0,allowEvent:function(n){var t=!0;return n.type==="touchstart"?i.touches+=1:n.type==="touchend"||n.type==="touchcancel"?setTimeout(function(){i.touches>0&&(i.touches-=1)},500):n.type==="mousedown"&&i.touches>0&&(t=!1),t},touchup:function(n){i.allowEvent(n)}};r.displayEffect=function(i){i=i||{};"duration"in i&&(t.duration=i.duration);t.wrapInput(e(".waves-effect"));"ontouchstart"in n&&document.body.addEventListener("touchstart",u,!1);document.body.addEventListener("mousedown",u,!1)};r.attach=function(i){i.tagName.toLowerCase()==="input"&&(t.wrapInput([i]),i=i.parentNode);"ontouchstart"in n&&i.addEventListener("touchstart",u,!1);i.addEventListener("mousedown",u,!1)};n.Waves=r;document.addEventListener("DOMContentLoaded",function(){r.displayEffect()},!1)}(window),function(n,t){"use strict";var r={displayLength:Infinity,inDuration:300,outDuration:375,className:undefined,completeCallback:undefined,activationPercent:.8},i=function(){function i(t,r,u,f){if(_classCallCheck(this,i),t){this.options={displayLength:r,className:u,completeCallback:f};this.options=n.extend({},i.defaults,this.options);this.message=t;this.panning=!1;this.timeRemaining=this.options.displayLength;i._toasts.length===0&&i._createContainer();i._toasts.push(this);var e=this.createToast();e.M_Toast=this;this.el=e;this._animateIn();this.setTimer()}}return _createClass(i,[{key:"createToast",value:function(){var t=document.createElement("div");if(t.classList.add("toast"),this.options.className)for(var u=this.options.className.split(" "),r=void 0,f=void 0,r=0,f=u.length;r<f;r++)t.classList.add(u[r]);return(typeof HTMLElement=="object"?this.message instanceof HTMLElement:this.message&&typeof this.message=="object"&&this.message!==null&&this.message.nodeType===1&&typeof this.message.nodeName=="string")?t.appendChild(this.message):this.message instanceof jQuery?n(t).append(this.message):t.innerHTML=this.message,i._container.appendChild(t),t}},{key:"_animateIn",value:function(){t(this.el,{top:0,opacity:1},{duration:300,easing:"easeOutCubic",queue:!1})}},{key:"setTimer",value:function(){var n=this;this.timeRemaining!==Infinity&&(this.counterInterval=setInterval(function(){n.panning||(n.timeRemaining-=20);n.timeRemaining<=0&&n.remove()},20))}},{key:"remove",value:function(){var n=this,r;window.clearInterval(this.counterInterval);r=this.el.offsetWidth*this.options.activationPercent;this.wasSwiped&&(this.el.style.transition="transform .05s, opacity .05s",this.el.style.transform="translateX("+r+"px)",this.el.style.opacity=0);t(this.el,{opacity:0,marginTop:"-40px"},{duration:this.options.outDuration,easing:"easeOutExpo",queue:!1,complete:function(){typeof n.options.completeCallback=="function"&&n.options.completeCallback();n.el.parentNode.removeChild(n.el);i._toasts.splice(i._toasts.indexOf(n),1);i._toasts.length===0&&i._removeContainer()}})}}],[{key:"_createContainer",value:function(){var n=document.createElement("div");n.setAttribute("id","toast-container");n.addEventListener("touchstart",i._onDragStart);n.addEventListener("touchmove",i._onDragMove);n.addEventListener("touchend",i._onDragEnd);n.addEventListener("mousedown",i._onDragStart);document.addEventListener("mousemove",i._onDragMove);document.addEventListener("mouseup",i._onDragEnd);document.body.appendChild(n);i._container=n}},{key:"_removeContainer",value:function(){document.removeEventListener("mousemove",i._onDragMove);document.removeEventListener("mouseup",i._onDragEnd);i._container.parentNode.removeChild(i._container);i._container=null}},{key:"_onDragStart",value:function(t){if(t.target&&n(t.target).closest(".toast").length){var u=n(t.target).closest(".toast"),r=u[0].M_Toast;r.panning=!0;i._draggedToast=r;r.el.classList.add("panning");r.el.style.transition="";r.startingXPos=i._xPos(t);r.time=Date.now();r.xPos=i._xPos(t)}}},{key:"_onDragMove",value:function(n){var t,r,u;!i._draggedToast||(n.preventDefault(),t=i._draggedToast,t.deltaX=Math.abs(t.xPos-i._xPos(n)),t.xPos=i._xPos(n),t.velocityX=t.deltaX/(Date.now()-t.time),t.time=Date.now(),r=t.xPos-t.startingXPos,u=t.el.offsetWidth*t.options.activationPercent,t.el.style.transform="translateX("+r+"px)",t.el.style.opacity=1-Math.abs(r/u))}},{key:"_onDragEnd",value:function(){var n;if(!!i._draggedToast){n=i._draggedToast;n.panning=!1;n.el.classList.remove("panning");var t=n.xPos-n.startingXPos,r=n.el.offsetWidth*n.options.activationPercent,u=Math.abs(t)>r||n.velocityX>1;u?(n.wasSwiped=!0,n.remove()):(n.el.style.transition="transform .2s, opacity .2s",n.el.style.transform="",n.el.style.opacity="");i._draggedToast=null}}},{key:"_xPos",value:function(n){return n.targetTouches&&n.targetTouches.length>=1?n.targetTouches[0].clientX:n.clientX}},{key:"removeAll",value:function(){for(var n in i._toasts)i._toasts[n].remove()}},{key:"defaults",get:function(){return r}}]),i}();i._toasts=[];i._container=null;i._draggedToast=null;Materialize.Toast=i;Materialize.toast=function(n,t,r,u){return new i(n,t,r,u)}}(jQuery,Materialize.Vel),function(n){var t={init:function(t){t=n.extend({menuWidth:300,edge:"left",closeOnClick:!1,draggable:!0,onOpen:null,onClose:null},t);n(this).each(function(){var s=n(this),o=s.attr("data-activates"),i=n("#"+o),r;if(t.menuWidth!=300&&i.css("width",t.menuWidth),r=n('.drag-target[data-sidenav="'+o+'"]'),t.draggable?(r.length&&r.remove(),r=n('<div class="drag-target"><\/div>').attr("data-sidenav",o),n("body").append(r)):r=n(),t.edge=="left"?(i.css("transform","translateX(-100%)"),r.css({left:0})):(i.addClass("right-aligned").css("transform","translateX(100%)"),r.css({right:0})),i.hasClass("fixed")&&window.innerWidth>992&&i.css("transform","translateX(0)"),i.hasClass("fixed")&&n(window).resize(function(){window.innerWidth>992?n("#sidenav-overlay").length!==0&&u?f(!0):i.css("transform","translateX(0%)"):u===!1&&(t.edge==="left"?i.css("transform","translateX(-100%)"):i.css("transform","translateX(100%)"))}),t.closeOnClick===!0)i.on("click.itemclick","a:not(.collapsible-header)",function(){window.innerWidth>992&&i.hasClass("fixed")||f()});var f=function(f){e=!1;u=!1;n("body").css({overflow:"",width:""});n("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){n(this).remove()}});t.edge==="left"?(r.css({width:"",right:"",left:"0"}),i.velocity({translateX:"-100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){f===!0&&(i.removeAttr("style"),i.css("width",t.menuWidth))}})):(r.css({width:"",right:"0",left:""}),i.velocity({translateX:"100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){f===!0&&(i.removeAttr("style"),i.css("width",t.menuWidth))}}));typeof t.onClose=="function"&&t.onClose.call(this,i)},e=!1,u=!1;if(t.draggable){r.on("click",function(){u&&f()});r.hammer({prevent_default:!1}).on("pan",function(r){var s,h;if(r.gesture.pointerType=="touch"){var v=r.gesture.direction,e=r.gesture.center.x,l=r.gesture.center.y,y=r.gesture.velocityX;if(e===0&&l===0)return;var c=n("body"),o=n("#sidenav-overlay"),a=c.innerWidth();c.css("overflow","hidden");c.width(a);o.length===0&&(o=n('<div id="sidenav-overlay"><\/div>'),o.css("opacity",0).click(function(){f()}),typeof t.onOpen=="function"&&t.onOpen.call(this,i),n("body").append(o));t.edge==="left"&&(e>t.menuWidth?e=t.menuWidth:e<0&&(e=0));t.edge==="left"?(e<t.menuWidth/2?u=!1:e>=t.menuWidth/2&&(u=!0),i.css("transform","translateX("+(e-t.menuWidth)+"px)")):(e<window.innerWidth-t.menuWidth/2?u=!0:e>=window.innerWidth-t.menuWidth/2&&(u=!1),s=e-t.menuWidth/2,s<0&&(s=0),i.css("transform","translateX("+s+"px)"));t.edge==="left"?(h=e/t.menuWidth,o.velocity({opacity:h},{duration:10,queue:!1,easing:"easeOutQuad"})):(h=Math.abs((e-window.innerWidth)/t.menuWidth),o.velocity({opacity:h},{duration:10,queue:!1,easing:"easeOutQuad"}))}}).on("panend",function(f){if(f.gesture.pointerType=="touch"){var c=n("#sidenav-overlay"),o=f.gesture.velocityX,l=f.gesture.center.x,s=l-t.menuWidth,h=l-t.menuWidth/2;s>0&&(s=0);h<0&&(h=0);e=!1;t.edge==="left"?u&&o<=.3||o<-.5?(s!==0&&i.velocity({translateX:[0,s]},{duration:300,queue:!1,easing:"easeOutQuad"}),c.velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),r.css({width:"50%",right:0,left:""}),u=!0):(!u||o>.3)&&(n("body").css({overflow:"",width:""}),i.velocity({translateX:[-1*t.menuWidth-10,s]},{duration:200,queue:!1,easing:"easeOutQuad"}),c.velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){typeof t.onClose=="function"&&t.onClose.call(this,i);n(this).remove()}}),r.css({width:"10px",right:"",left:0})):u&&o>=-.3||o>.5?(h!==0&&i.velocity({translateX:[0,h]},{duration:300,queue:!1,easing:"easeOutQuad"}),c.velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),r.css({width:"50%",right:"",left:0}),u=!0):(!u||o<-.3)&&(n("body").css({overflow:"",width:""}),i.velocity({translateX:[t.menuWidth+10,h]},{duration:200,queue:!1,easing:"easeOutQuad"}),c.velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){typeof t.onClose=="function"&&t.onClose.call(this,i);n(this).remove()}}),r.css({width:"10px",right:0,left:""}))}})}s.off("click.sidenav").on("click.sidenav",function(){if(u===!0)u=!1,e=!1,f();else{var s=n("body"),o=n('<div id="sidenav-overlay"><\/div>'),h=s.innerWidth();s.css("overflow","hidden");s.width(h);n("body").append(r);t.edge==="left"?(r.css({width:"50%",right:0,left:""}),i.velocity({translateX:[0,-1*t.menuWidth]},{duration:300,queue:!1,easing:"easeOutQuad"})):(r.css({width:"50%",right:"",left:0}),i.velocity({translateX:[0,t.menuWidth]},{duration:300,queue:!1,easing:"easeOutQuad"}));o.css("opacity",0).click(function(){u=!1;e=!1;f();o.velocity({opacity:0},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){n(this).remove()}})});n("body").append(o);o.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){u=!0;e=!1}});typeof t.onOpen=="function"&&t.onOpen.call(this,i)}return!1})})},destroy:function(){var t=n("#sidenav-overlay"),i=n('.drag-target[data-sidenav="'+n(this).attr("data-activates")+'"]');t.trigger("click");i.remove();n(this).off("click");t.remove()},show:function(){this.trigger("click")},hide:function(){n("#sidenav-overlay").trigger("click")}};n.fn.sideNav=function(i){if(t[i])return t[i].apply(this,Array.prototype.slice.call(arguments,1));if(typeof i!="object"&&i)n.error("Method "+i+" does not exist on jQuery.sideNav");else return t.init.apply(this,arguments)}}(jQuery),function(n){function o(t,i,r,f){var e=n();return n.each(u,function(n,u){if(u.height()>0){var o=u.offset().top,s=u.offset().left,h=s+u.width(),c=o+u.height(),l=!(s>i||h<f||o>r||c<t);l&&e.push(u)}}),e}function s(u){++r;var e=t.scrollTop(),s=t.scrollLeft(),c=s+t.width(),l=e+t.height(),h=o(e+i.top+u||200,c+i.right,l+i.bottom,s+i.left);n.each(h,function(n,t){var i=t.data("scrollSpy:ticks");typeof i!="number"&&t.triggerHandler("scrollSpy:enter");t.data("scrollSpy:ticks",r)});n.each(f,function(n,t){var i=t.data("scrollSpy:ticks");typeof i=="number"&&i!==r&&(t.triggerHandler("scrollSpy:exit"),t.data("scrollSpy:ticks",null))});f=h}function h(){t.trigger("scrollSpy:winSize")}var t=n(window),u=[],f=[],e=!1,r=0,i={top:0,right:0,bottom:0,left:0};n.scrollSpy=function(r,f){var l={throttle:100,scrollOffset:200,activeClass:"active",getActiveElement:function(n){return'a[href="#'+n+'"]'}},o,c,h;if(f=n.extend(l,f),o=[],r=n(r),r.each(function(t,i){u.push(n(i));n(i).data("scrollSpy:id",t);n('a[href="#'+n(i).attr("id")+'"]').click(function(t){t.preventDefault();var i=n(Materialize.escapeHash(this.hash)).offset().top+1;n("html, body").animate({scrollTop:i-f.scrollOffset},{duration:400,queue:!1,easing:"easeOutCubic"})})}),i.top=f.offsetTop||0,i.right=f.offsetRight||0,i.bottom=f.offsetBottom||0,i.left=f.offsetLeft||0,c=Materialize.throttle(function(){s(f.scrollOffset)},f.throttle||100),h=function(){n(document).ready(c)},!e){t.on("scroll",h);t.on("resize",h);e=!0}setTimeout(h,0);r.on("scrollSpy:enter",function(){o=n.grep(o,function(n){return n.height()!=0});var t=n(this);o[0]?(n(f.getActiveElement(o[0].attr("id"))).removeClass(f.activeClass),t.data("scrollSpy:id")<o[0].data("scrollSpy:id")?o.unshift(n(this)):o.push(n(this))):o.push(n(this));n(f.getActiveElement(o[0].attr("id"))).addClass(f.activeClass)});r.on("scrollSpy:exit",function(){if(o=n.grep(o,function(n){return n.height()!=0}),o[0]){n(f.getActiveElement(o[0].attr("id"))).removeClass(f.activeClass);var t=n(this);o=n.grep(o,function(n){return n.attr("id")!=t.attr("id")});o[0]&&n(f.getActiveElement(o[0].attr("id"))).addClass(f.activeClass)}});return r};n.winSizeSpy=function(i){n.winSizeSpy=function(){return t};i=i||{throttle:100};return t.on("resize",Materialize.throttle(h,i.throttle||100))};n.fn.scrollSpy=function(t){return n.scrollSpy(n(this),t)}}(jQuery),function(n){n(document).ready(function(){function c(i){var r=i.css("font-family"),u=i.css("font-size"),f=i.css("line-height"),e=i.css("padding"),o;u&&t.css("font-size",u);r&&t.css("font-family",r);f&&t.css("line-height",f);e&&t.css("padding",e);i.data("original-height")||i.data("original-height",i.height());i.attr("wrap")==="off"&&t.css("overflow-wrap","normal").css("white-space","pre");t.text(i.val()+"\n");o=t.html().replace(/\n/g,"<br>");t.html(o);i.is(":visible")?t.css("width",i.width()):t.css("width",n(window).width()/2);i.data("original-height")<=t.height()?i.css("height",t.height()):i.val().length<i.data("previous-length")&&i.css("height",i.data("original-height"));i.data("previous-length",i.val().length)}var i,h,t,f,r,u;Materialize.updateTextFields=function(){n("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea").each(function(t,i){var r=n(this);n(i).val().length>0||n(i).is(":focus")||i.autofocus||r.attr("placeholder")!==undefined?r.siblings("label").addClass("active"):n(i)[0].validity?r.siblings("label").toggleClass("active",n(i)[0].validity.badInput===!0):r.siblings("label").removeClass("active")})};i="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea";n(document).on("change",i,function(){(n(this).val().length!==0||n(this).attr("placeholder")!==undefined)&&n(this).siblings("label").addClass("active");validate_field(n(this))});n(document).ready(function(){Materialize.updateTextFields()});n(document).on("reset",function(t){var r=n(t.target);r.is("form")&&(r.find(i).removeClass("valid").removeClass("invalid"),r.find(i).each(function(){n(this).attr("value")===""&&n(this).siblings("label").removeClass("active")}),r.find("select.initialized").each(function(){var n=r.find("option[selected]").text();r.siblings("input.select-dropdown").val(n)}))});n(document).on("focus",i,function(){n(this).siblings("label, .prefix").addClass("active")});n(document).on("blur",i,function(){var t=n(this),i=".prefix";t.val().length===0&&t[0].validity.badInput!==!0&&t.attr("placeholder")===undefined&&(i+=", label");t.siblings(i).removeClass("active");validate_field(t)});window.validate_field=function(n){var t=n.attr("data-length")!==undefined,i=parseInt(n.attr("data-length")),r=n.val().length;n.val().length!==0||n[0].validity.badInput!==!1||n.is(":required")?n.hasClass("validate")&&(n.is(":valid")&&t&&r<=i||n.is(":valid")&&!t?(n.removeClass("invalid"),n.addClass("valid")):(n.removeClass("valid"),n.addClass("invalid"))):n.hasClass("validate")&&(n.removeClass("valid"),n.removeClass("invalid"))};h="input[type=radio], input[type=checkbox]";n(document).on("keyup.radio",h,function(t){if(t.which===9){n(this).addClass("tabbed");var i=n(this);i.one("blur",function(){n(this).removeClass("tabbed")});return}});t=n(".hiddendiv").first();t.length||(t=n('<div class="hiddendiv common"><\/div>'),n("body").append(t));f=".materialize-textarea";n(f).each(function(){var t=n(this);t.data("original-height",t.height());t.data("previous-length",t.val().length)});n("body").on("keyup keydown autoresize",f,function(){c(n(this))});n(document).on("change",'.file-field input[type="file"]',function(){for(var f=n(this).closest(".file-field"),i=f.find("input.file-path"),r=n(this)[0].files,u=[],t=0;t<r.length;t++)u.push(r[t].name);i.val(u.join(", "));i.trigger("change")});r="input[type=range]";u=!1;n(r).each(function(){var t=n('<span class="thumb"><span class="value"><\/span><\/span>');n(this).after(t)});var e=function(n){var t=parseInt(n.parent().css("padding-left")),i=-7+t+"px";n.velocity({height:"30px",width:"30px",top:"-30px",marginLeft:i},{duration:300,easing:"easeOutExpo"})},o=function(n){var i=n.width()-15,r=parseFloat(n.attr("max")),t=parseFloat(n.attr("min")),u=(parseFloat(n.val())-t)/(r-t);return u*i},s=".range-field";n(document).on("change",r,function(){var t=n(this).siblings(".thumb"),i;t.find(".value").html(n(this).val());t.hasClass("active")||e(t);i=o(n(this));t.addClass("active").css("left",i)});n(document).on("mousedown touchstart",r,function(t){var i=n(this).siblings(".thumb"),r;i.length<=0&&(i=n('<span class="thumb"><span class="value"><\/span><\/span>'),n(this).after(i));i.find(".value").html(n(this).val());u=!0;n(this).addClass("active");i.hasClass("active")||e(i);t.type!=="input"&&(r=o(n(this)),i.addClass("active").css("left",r))});n(document).on("mouseup touchend",s,function(){u=!1;n(this).removeClass("active")});n(document).on("input mousemove touchmove",s,function(){var t=n(this).children(".thumb"),f=n(this).find(r),i;u&&(t.hasClass("active")||e(t),i=o(f),t.addClass("active").css("left",i),t.find(".value").html(t.siblings(r).val()))});n(document).on("mouseout touchleave",s,function(){if(!u){var t=n(this).children(".thumb"),i=parseInt(n(this).css("padding-left")),r=7+i+"px";t.hasClass("active")&&t.velocity({height:"0",width:"0",top:"10px",marginLeft:r},{duration:100});t.removeClass("active")}});n.fn.autocomplete=function(t){return t=n.extend({data:{},limit:Infinity,onAutocomplete:null,minLength:1},t),this.each(function(){var r=n(this),e=t.data,o=0,u=-1,s,h=r.closest(".input-field"),i,f;if(n.isEmptyObject(e))r.off("keyup.autocomplete focus.autocomplete");else{i=n('<ul class="autocomplete-content dropdown-content"><\/ul>');h.length?(f=h.children(".autocomplete-content.dropdown-content").first(),f.length||h.append(i)):(f=r.next(".autocomplete-content.dropdown-content"),f.length||r.after(i));f.length&&(i=f);var l=function(n,t){var r=t.find("img"),i=t.text().toLowerCase().indexOf(""+n.toLowerCase()+""),u=i+n.length-1,f=t.text().slice(0,i),e=t.text().slice(i,u+1),o=t.text().slice(u+1);t.html("<span>"+f+"<span class='highlight'>"+e+"<\/span>"+o+"<\/span>");r.length&&t.prepend(r)},a=function(){u=-1;i.find(".active").removeClass("active")},c=function(){i.empty();a();s=undefined};r.off("blur.autocomplete").on("blur.autocomplete",function(){c()});r.off("keyup.autocomplete focus.autocomplete").on("keyup.autocomplete focus.autocomplete",function(u){var h,f,a;if(o=0,h=r.val().toLowerCase(),u.which!==13&&u.which!==38&&u.which!==40){if(s!==h&&(c(),h.length>=t.minLength))for(f in e)if(e.hasOwnProperty(f)&&f.toLowerCase().indexOf(h)!==-1){if(o>=t.limit)break;a=n("<li><\/li>");e[f]?a.append('<img src="'+e[f]+'" class="right circle"><span>'+f+"<\/span>"):a.append("<span>"+f+"<\/span>");i.append(a);l(h,a);o++}s=h}});r.off("keydown.autocomplete").on("keydown.autocomplete",function(n){var t=n.which,r,f=i.children("li").length,e=i.children(".active").first();if(t===13&&u>=0){r=i.children("li").eq(u);r.length&&(r.trigger("mousedown.autocomplete"),n.preventDefault());return}(t===38||t===40)&&(n.preventDefault(),t===38&&u>0&&u--,t===40&&u<f-1&&u++,e.removeClass("active"),u>=0&&i.children("li").eq(u).addClass("active"))});i.off("mousedown.autocomplete touchstart.autocomplete").on("mousedown.autocomplete touchstart.autocomplete","li",function(){var i=n(this).text().trim();r.val(i);r.trigger("change");c();typeof t.onAutocomplete=="function"&&t.onAutocomplete.call(this,i)})}})}});n.fn.material_select=function(t){function i(n,t,i){var f=n.indexOf(t),u=f===-1;return u?n.push(t):n.splice(f,1),i.siblings("ul.dropdown-content").find("li:not(.optgroup)").eq(t).toggleClass("active"),i.find("option").eq(t).prop("selected",u),r(n,i),u}function r(n,t){for(var r="",u,i=0,f=n.length;i<f;i++)u=t.find("option").eq(n[i]).text(),r+=i===0?u:", "+u;r===""&&(r=t.find("option:disabled").eq(0).text());t.siblings("input.select-dropdown").val(r)}n(this).each(function(){var r=n(this),e,c,s,h;if(!r.hasClass("browser-default")){if(e=r.attr("multiple")?!0:!1,c=r.attr("data-select-id"),c&&(r.parent().find("span.caret").remove(),r.parent().find("input").remove(),r.unwrap(),n("ul#select-options-"+c).remove()),t==="destroy"){r.removeAttr("data-select-id").removeClass("initialized");n(window).off("click.select");return}s=Materialize.guid();r.attr("data-select-id",s);h=n('<div class="select-wrapper"><\/div>');h.addClass(r.attr("class"));r.is(":disabled")&&h.addClass("disabled");var u=n('<ul id="select-options-'+s+'" class="dropdown-content select-dropdown '+(e?"multiple-select-dropdown":"")+'"><\/ul>'),y=r.children("option, optgroup"),p=[],l=!1,w=r.find("option:selected").html()||r.find("option:first").html()||"",a=function(t,i,r){var f=i.is(":disabled")?"disabled ":"",s=r==="optgroup-option"?"optgroup-option ":"",h=e?'<input type="checkbox"'+f+"/><label><\/label>":"",c=i.data("icon"),l=i.attr("class"),o;if(!!c)return o="",!l||(o=' class="'+l+'"'),u.append(n('<li class="'+f+s+'"><img alt="" src="'+c+'"'+o+"><span>"+h+i.html()+"<\/span><\/li>")),!0;u.append(n('<li class="'+f+s+'"><span>'+h+i.html()+"<\/span><\/li>"))};y.length&&y.each(function(){if(n(this).is("option"))e?a(r,n(this),"multiple"):a(r,n(this));else if(n(this).is("optgroup")){var t=n(this).children("option");u.append(n('<li class="optgroup"><span>'+n(this).attr("label")+"<\/span><\/li>"));t.each(function(){a(r,n(this),"optgroup-option")})}});u.find("li:not(.optgroup)").each(function(s){n(this).click(function(h){if(!n(this).hasClass("disabled")&&!n(this).hasClass("optgroup")){var c=!0;e?(n('input[type="checkbox"]',this).prop("checked",function(n,t){return!t}),c=i(p,s,r),f.trigger("focus")):(u.find("li").removeClass("active"),n(this).toggleClass("active"),f.val(n(this).text()));o(u,n(this));r.find("option").eq(s).prop("selected",c);r.trigger("change");typeof t!="undefined"&&t()}h.stopPropagation()})});r.wrap(h);var b=n('<span class="caret">❯<\/span>'),k=w.replace(/"/g,"&quot;"),f=n('<input type="text" class="select-dropdown" readonly="true" '+(r.is(":disabled")?"disabled":"")+' data-activates="select-options-'+s+'" value="'+k+'"/>');r.before(f);f.before(b);f.after(u);r.is(":disabled")||f.dropdown({hover:!1});r.attr("tabindex")&&n(f[0]).attr("tabindex",r.attr("tabindex"));r.addClass("initialized");f.on({focus:function(){var t,i;if(n("ul.select-dropdown").not(u[0]).is(":visible")&&(n("input.select-dropdown").trigger("close"),n(window).off("click.select")),!u.is(":visible")){n(this).trigger("open",["focus"]);t=n(this).val();e&&t.indexOf(",")>=0&&(t=t.split(",")[0]);i=u.find("li").filter(function(){return n(this).text().toLowerCase()===t.toLowerCase()})[0];o(u,i,!0);n(window).off("click.select").on("click.select",function(){e&&(l||f.trigger("close"));n(window).off("click.select")})}},click:function(n){n.stopPropagation()}});f.on("blur",function(){e||(n(this).trigger("close"),n(window).off("click.select"));u.find("li.selected").removeClass("selected")});u.hover(function(){l=!0},function(){l=!1});e&&r.find("option:selected:not(:disabled)").each(function(){var n=this.index;i(p,n,r);u.find("li:not(.optgroup)").eq(n).find(":checkbox").prop("checked",!0)});var o=function(t,i,r){if(i){t.find("li.selected").removeClass("selected");var f=n(i);f.addClass("selected");e&&!r||u.scrollTo(f)}},v=[],d=function(t){var r,h,c,i,s;if(t.which==9){f.trigger("close");return}if(t.which==40&&!u.is(":visible")){f.trigger("open");return}(t.which!=13||u.is(":visible"))&&(t.preventDefault(),r=String.fromCharCode(t.which).toLowerCase(),h=[9,13,27,38,40],r&&h.indexOf(t.which)===-1&&(v.push(r),c=v.join(""),i=u.find("li").filter(function(){return n(this).text().toLowerCase().indexOf(c)===0})[0],i&&o(u,i)),t.which==13&&(s=u.find("li.selected:not(.disabled)")[0],s&&(n(s).trigger("click"),e||f.trigger("close"))),t.which==40&&(i=u.find("li.selected").length?u.find("li.selected").next("li:not(.disabled)")[0]:u.find("li:not(.disabled)")[0],o(u,i)),t.which==27&&f.trigger("close"),t.which==38&&(i=u.find("li.selected").prev("li:not(.disabled)")[0],i&&o(u,i)),setTimeout(function(){v=[]},1e3))};f.on("keydown",d)}})}}(jQuery),function(n){var t={init:function(t){return t=n.extend({indicators:!0,height:400,transition:500,interval:6e3},t),this.each(function(){function a(n,t){n.hasClass("center-align")?n.velocity({opacity:0,translateY:-100},{duration:t,queue:!1}):n.hasClass("right-align")?n.velocity({opacity:0,translateX:100},{duration:t,queue:!1}):n.hasClass("left-align")&&n.velocity({opacity:0,translateX:-100},{duration:t,queue:!1})}function s(n){n>=r.length?n=0:n<0&&(n=r.length-1);i=f.find(".active").index();i!=n&&(e=r.eq(i),$caption=e.find(".caption"),e.removeClass("active"),e.velocity({opacity:0},{duration:t.transition,queue:!1,easing:"easeOutQuad",complete:function(){r.not(".active").velocity({opacity:0,translateX:0,translateY:0},{duration:0,queue:!1})}}),a($caption,t.transition),t.indicators&&h.eq(i).removeClass("active"),r.eq(n).velocity({opacity:1},{duration:t.transition,queue:!1,easing:"easeOutQuad"}),r.eq(n).find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:t.transition,delay:t.transition,queue:!1,easing:"easeOutQuad"}),r.eq(n).addClass("active"),t.indicators&&h.eq(n).addClass("active"))}var u=n(this),f=u.find("ul.slides").first(),r=f.find("> li"),i=f.find(".active").index(),e,h,o;i!=-1&&(e=r.eq(i));u.hasClass("fullscreen")||(t.indicators?u.height(t.height+40):u.height(t.height),f.height(t.height));r.find(".caption").each(function(){a(n(this),0)});r.find("img").each(function(){var t="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";n(this).attr("src")!==t&&(n(this).css("background-image",'url("'+n(this).attr("src")+'")'),n(this).attr("src",t))});t.indicators&&(h=n('<ul class="indicators"><\/ul>'),r.each(function(){var u=n('<li class="indicator-item"><\/li>');u.click(function(){var u=f.parent(),e=u.find(n(this)).index();s(e);clearInterval(o);o=setInterval(function(){i=f.find(".active").index();r.length==i+1?i=0:i+=1;s(i)},t.transition+t.interval)});h.append(u)}),u.append(h),h=u.find("ul.indicators").find("li.indicator-item"));e?e.show():(r.first().addClass("active").velocity({opacity:1},{duration:t.transition,queue:!1,easing:"easeOutQuad"}),i=0,e=r.eq(i),t.indicators&&h.eq(i).addClass("active"));e.find("img").each(function(){e.find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:t.transition,queue:!1,easing:"easeOutQuad"})});o=setInterval(function(){i=f.find(".active").index();s(i+1)},t.transition+t.interval);var v=!1,c=!1,l=!1;u.hammer({prevent_default:!1}).on("pan",function(n){var t;if(n.gesture.pointerType==="touch"){clearInterval(o);var s=n.gesture.direction,i=n.gesture.deltaX,e=n.gesture.velocityX,h=n.gesture.velocityY;$curr_slide=f.find(".active");Math.abs(e)>Math.abs(h)&&$curr_slide.velocity({translateX:i},{duration:50,queue:!1,easing:"easeOutQuad"});s===4&&(i>u.innerWidth()/2||e<-.65)?l=!0:s===2&&(i<u.innerWidth()/-2||e>.65)&&(c=!0);c&&(t=$curr_slide.next(),t.length===0&&(t=r.first()),t.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"}));l&&(t=$curr_slide.prev(),t.length===0&&(t=r.last()),t.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"}))}}).on("panend",function(n){n.gesture.pointerType==="touch"&&($curr_slide=f.find(".active"),v=!1,curr_index=f.find(".active").index(),!l&&!c||r.length<=1?$curr_slide.velocity({translateX:0},{duration:300,queue:!1,easing:"easeOutQuad"}):c?(s(curr_index+1),$curr_slide.velocity({translateX:-1*u.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})):l&&(s(curr_index-1),$curr_slide.velocity({translateX:u.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})),c=!1,l=!1,clearInterval(o),o=setInterval(function(){i=f.find(".active").index();r.length==i+1?i=0:i+=1;s(i)},t.transition+t.interval))});u.on("sliderPause",function(){clearInterval(o)});u.on("sliderStart",function(){clearInterval(o);o=setInterval(function(){i=f.find(".active").index();r.length==i+1?i=0:i+=1;s(i)},t.transition+t.interval)});u.on("sliderNext",function(){i=f.find(".active").index();s(i+1)});u.on("sliderPrev",function(){i=f.find(".active").index();s(i-1)})})},pause:function(){n(this).trigger("sliderPause")},start:function(){n(this).trigger("sliderStart")},next:function(){n(this).trigger("sliderNext")},prev:function(){n(this).trigger("sliderPrev")}};n.fn.slider=function(i){if(t[i])return t[i].apply(this,Array.prototype.slice.call(arguments,1));if(typeof i!="object"&&i)n.error("Method "+i+" does not exist on jQuery.tooltip");else return t.init.apply(this,arguments)}}(jQuery),function(n){n(document).ready(function(){n(document).on("click.card",".card",function(t){if(n(this).find("> .card-reveal").length){var i=n(t.target).closest(".card");i.data("initialOverflow")===undefined&&i.data("initialOverflow",i.css("overflow")===undefined?"":i.css("overflow"));n(t.target).is(n(".card-reveal .card-title"))||n(t.target).is(n(".card-reveal .card-title i"))?n(this).find(".card-reveal").velocity({translateY:0},{duration:225,queue:!1,easing:"easeInOutQuad",complete:function(){n(this).css({display:"none"});i.css("overflow",i.data("initialOverflow"))}}):(n(t.target).is(n(".card .activator"))||n(t.target).is(n(".card .activator i")))&&(i.css("overflow","hidden"),n(this).find(".card-reveal").css({display:"block"}).velocity("stop",!1).velocity({translateY:"-100%"},{duration:300,queue:!1,easing:"easeInOutQuad"}))}})})}(jQuery),function(n){var t={data:[],placeholder:"",secondaryPlaceholder:"",autocompleteOptions:{}};n(document).ready(function(){n(document).on("click",".chip .close",function(){var t=n(this).closest(".chips");t.attr("data-initialized")||n(this).closest(".chip").remove()})});n.fn.material_chip=function(i){var r=this,u;if(this.$el=n(this),this.$document=n(document),this.SELS={CHIPS:".chips",CHIP:".chip",INPUT:"input",DELETE:".material-icons",SELECTED_CHIP:".selected"},"data"===i)return this.$el.data("chips");u=n.extend({},t,i);r.hasAutocomplete=!n.isEmptyObject(u.autocompleteOptions.data);this.init=function(){var t=0;r.$el.each(function(){var i=n(this),f=Materialize.guid();r.chipId=f;u.data&&u.data instanceof Array||(u.data=[]);i.data("chips",u.data);i.attr("data-index",t);i.attr("data-initialized",!0);i.hasClass(r.SELS.CHIPS)||i.addClass("chips");r.chips(i,f);t++})};this.handleEvents=function(){var t=r.SELS;r.$document.off("click.chips-focus",t.CHIPS).on("click.chips-focus",t.CHIPS,function(i){n(i.target).find(t.INPUT).focus()});r.$document.off("click.chips-select",t.CHIP).on("click.chips-select",t.CHIP,function(i){var u=n(i.target),f,e;u.length&&(f=u.hasClass("selected"),e=u.closest(t.CHIPS),n(t.CHIP).removeClass("selected"),f||r.selectChip(u.index(),e))});r.$document.off("keydown.chips").on("keydown.chips",function(i){var f;if(!n(i.target).is("input, textarea")){var e=r.$document.find(t.CHIP+t.SELECTED_CHIP),o=e.closest(t.CHIPS),s=e.siblings(t.CHIP).length,u;if(e.length)if(i.which===8||i.which===46)i.preventDefault(),u=e.index(),r.deleteChip(u,o),f=null,u+1<s?f=u:(u===s||u+1===s)&&(f=s-1),f<0&&(f=null),null!==f&&r.selectChip(f,o),s||o.find("input").focus();else if(i.which===37){if(u=e.index()-1,u<0)return;n(t.CHIP).removeClass("selected");r.selectChip(u,o)}else if(i.which===39){if(u=e.index()+1,n(t.CHIP).removeClass("selected"),u>s){o.find("input").focus();return}r.selectChip(u,o)}}});r.$document.off("focusin.chips",t.CHIPS+" "+t.INPUT).on("focusin.chips",t.CHIPS+" "+t.INPUT,function(i){var r=n(i.target).closest(t.CHIPS);r.addClass("focus");r.siblings("label, .prefix").addClass("active");n(t.CHIP).removeClass("selected")});r.$document.off("focusout.chips",t.CHIPS+" "+t.INPUT).on("focusout.chips",t.CHIPS+" "+t.INPUT,function(i){var r=n(i.target).closest(t.CHIPS);r.removeClass("focus");r.data("chips")!==undefined&&r.data("chips").length||r.siblings("label").removeClass("active");r.siblings(".prefix").removeClass("active")});r.$document.off("keydown.chips-add",t.CHIPS+" "+t.INPUT).on("keydown.chips-add",t.CHIPS+" "+t.INPUT,function(i){var u=n(i.target),f=u.closest(t.CHIPS),e=f.children(t.CHIP).length;if(13===i.which){if(r.hasAutocomplete&&f.find(".autocomplete-content.dropdown-content").length&&f.find(".autocomplete-content.dropdown-content").children().length)return;i.preventDefault();r.addChip({tag:u.val()},f);u.val("");return}if((8===i.keyCode||37===i.keyCode)&&""===u.val()&&e){i.preventDefault();r.selectChip(e-1,f);u.blur();return}});r.$document.off("click.chips-delete",t.CHIPS+" "+t.DELETE).on("click.chips-delete",t.CHIPS+" "+t.DELETE,function(i){var u=n(i.target),f=u.closest(t.CHIPS),e=u.closest(t.CHIP);i.stopPropagation();r.deleteChip(e.index(),f);f.find("input").focus()})};this.chips=function(t,i){var f,e;t.empty();t.data("chips").forEach(function(n){t.append(r.renderChip(n))});t.append(n('<input id="'+i+'" class="input" placeholder="">'));r.setPlaceholder(t);f=t.next("label");f.length&&(f.attr("for",i),t.data("chips")!==undefined&&t.data("chips").length&&f.addClass("active"));e=n("#"+i);r.hasAutocomplete&&(u.autocompleteOptions.onAutocomplete=function(n){r.addChip({tag:n},t);e.val("");e.focus()},e.autocomplete(u.autocompleteOptions))};this.renderChip=function(t){if(t.tag){var i=n('<div class="chip"><\/div>');return i.text(t.tag),t.image&&i.prepend(n("<img />").attr("src",t.image)),i.append(n('<i class="material-icons close">close<\/i>')),i}};this.setPlaceholder=function(n){n.data("chips")!==undefined&&!n.data("chips").length&&u.placeholder?n.find("input").prop("placeholder",u.placeholder):(n.data("chips")===undefined||!!n.data("chips").length)&&u.secondaryPlaceholder&&n.find("input").prop("placeholder",u.secondaryPlaceholder)};this.isValid=function(n,t){for(var r=n.data("chips"),u=!1,i=0;i<r.length;i++)if(r[i].tag===t.tag){u=!0;return}return""!==t.tag&&!u};this.addChip=function(n,t){var i;if(r.isValid(t,n)){var e=r.renderChip(n),u=[],f=t.data("chips");for(i=0;i<f.length;i++)u.push(f[i]);u.push(n);t.data("chips",u);e.insertBefore(t.find("input"));t.trigger("chip.add",n);r.setPlaceholder(t)}};this.deleteChip=function(n,t){var e=t.data("chips")[n],u,f,i;for(t.find(".chip").eq(n).remove(),u=[],f=t.data("chips"),i=0;i<f.length;i++)i!==n&&u.push(f[i]);t.data("chips",u);t.trigger("chip.delete",e);r.setPlaceholder(t)};this.selectChip=function(n,t){var i=t.find(".chip").eq(n);i&&!1===i.hasClass("selected")&&(i.addClass("selected"),t.trigger("chip.select",t.data("chips")[n]))};this.getChipsElement=function(n,t){return t.eq(n)};this.init();this.handleEvents()}}(jQuery),function(n){n.fn.pushpin=function(t){return t==="remove"?(this.each(function(){(id=n(this).data("pushpin-id"))&&(n(window).off("scroll."+id),n(this).removeData("pushpin-id").removeClass("pin-top pinned pin-bottom").removeAttr("style"))}),!1):(t=n.extend({top:0,bottom:Infinity,offset:0},t),$index=0,this.each(function(){function i(n){n.removeClass("pin-top");n.removeClass("pinned");n.removeClass("pin-bottom")}function f(r,u){r.each(function(){t.top<=u&&t.bottom>=u&&!n(this).hasClass("pinned")&&(i(n(this)),n(this).css("top",t.offset),n(this).addClass("pinned"));u<t.top&&!n(this).hasClass("pin-top")&&(i(n(this)),n(this).css("top",0),n(this).addClass("pin-top"));u>t.bottom&&!n(this).hasClass("pin-bottom")&&(i(n(this)),n(this).addClass("pin-bottom"),n(this).css("top",t.bottom-e))})}var r=Materialize.guid(),u=n(this),e=n(this).offset().top;n(this).data("pushpin-id",r);f(u,n(window).scrollTop());n(window).on("scroll."+r,function(){var i=n(window).scrollTop()+t.offset;f(u,i)})}))}}(jQuery),function(n){n(document).ready(function(){n.fn.reverse=[].reverse;n(document).on("mouseenter.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle):not(.toolbar)",function(){var i=n(this);t(i)});n(document).on("mouseleave.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle):not(.toolbar)",function(){var t=n(this);i(t)});n(document).on("click.fabClickToggle",".fixed-action-btn.click-to-toggle > a",function(){var u=n(this),r=u.parent();r.hasClass("active")?i(r):t(r)});n(document).on("click.fabToolbar",".fixed-action-btn.toolbar > a",function(){var t=n(this),i=t.parent();u(i)})});n.fn.extend({openFAB:function(){t(n(this))},closeFAB:function(){i(n(this))},openToolbar:function(){u(n(this))},closeToolbar:function(){r(n(this))}});var t=function(t){var i=t,u,f,e,r;i.hasClass("active")===!1&&(u=i.hasClass("horizontal"),u===!0?e=40:f=40,i.addClass("active"),i.find("ul .btn-floating").velocity({scaleY:".4",scaleX:".4",translateY:f+"px",translateX:e+"px"},{duration:0}),r=0,i.find("ul .btn-floating").reverse().each(function(){n(this).velocity({opacity:"1",scaleX:"1",scaleY:"1",translateY:"0",translateX:"0"},{duration:80,delay:r});r+=40}))},i=function(n){var t=n,u=t.hasClass("horizontal"),i,r,f;u===!0?r=40:i=40;t.removeClass("active");f=0;t.find("ul .btn-floating").velocity("stop",!0);t.find("ul .btn-floating").velocity({opacity:"0",scaleX:".4",scaleY:".4",translateY:i+"px",translateX:r+"px"},{duration:80})},u=function(t){if(t.attr("data-open")!=="true"){var e,o,s,h=window.innerWidth,a=window.innerHeight,i=t[0].getBoundingClientRect(),u=t.find("> a").first(),c=t.find("> ul").first(),f=n('<div class="fab-backdrop"><\/div>'),l=u.css("background-color");u.append(f);e=i.left-h/2+i.width/2;o=a-i.bottom;s=h/f.width();t.attr("data-origin-bottom",i.bottom);t.attr("data-origin-left",i.left);t.attr("data-origin-width",i.width);t.addClass("active");t.attr("data-open",!0);t.css({"text-align":"center",width:"100%",bottom:0,left:0,transform:"translateX("+e+"px)",transition:"none"});u.css({transform:"translateY("+-o+"px)",transition:"none"});f.css({"background-color":l});setTimeout(function(){t.css({transform:"",transition:"transform .2s cubic-bezier(0.550, 0.085, 0.680, 0.530), background-color 0s linear .2s"});u.css({overflow:"visible",transform:"",transition:"transform .2s"});setTimeout(function(){t.css({overflow:"hidden","background-color":l});f.css({transform:"scale("+s+")",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"});c.find("> li > a").css({opacity:1});n(window).on("scroll.fabToolbarClose",function(){r(t);n(window).off("scroll.fabToolbarClose");n(document).off("click.fabToolbarClose")});n(document).on("click.fabToolbarClose",function(i){n(i.target).closest(c).length||(r(t),n(window).off("scroll.fabToolbarClose"),n(document).off("click.fabToolbarClose"))})},100)},0)}},r=function(n){if(n.attr("data-open")==="true"){var r,u,e,f=window.innerWidth,o=window.innerHeight,s=n.attr("data-origin-width"),h=n.attr("data-origin-bottom"),c=n.attr("data-origin-left"),t=n.find("> .btn-floating").first(),l=n.find("> ul").first(),i=n.find(".fab-backdrop"),a=t.css("background-color");r=c-f/2+s/2;u=o-h;e=f/i.width();n.removeClass("active");n.attr("data-open",!1);n.css({"background-color":"transparent",transition:"none"});t.css({transition:"none"});i.css({transform:"scale(0)","background-color":a});l.find("> li > a").css({opacity:""});setTimeout(function(){i.remove();n.css({"text-align":"",width:"",bottom:"",left:"",overflow:"","background-color":"",transform:"translate3d("+-r+"px,0,0)"});t.css({overflow:"",transform:"translate3d(0,"+u+"px,0)"});setTimeout(function(){n.css({transform:"translate3d(0,0,0)",transition:"transform .2s"});t.css({transform:"translate3d(0,0,0)",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"})},20)},200)}}}(jQuery),function(n){Materialize.fadeInImage=function(t){var i;if(typeof t=="string")i=n(t);else if(typeof t=="object")i=t;else return;i.css({opacity:0});n(i).velocity({opacity:1},{duration:650,queue:!1,easing:"easeOutSine"});n(i).velocity({opacity:1},{duration:1300,queue:!1,easing:"swing",step:function(t,i){i.start=100;var u=t/100,r=150-(100-t)/1.75;r<100&&(r=100);t>=0&&n(this).css({"-webkit-filter":"grayscale("+u+")brightness("+r+"%)",filter:"grayscale("+u+")brightness("+r+"%)"})}})};Materialize.showStaggeredList=function(t){var i,r;if(typeof t=="string")i=n(t);else if(typeof t=="object")i=t;else return;r=0;i.find("li").velocity({translateX:"-100px"},{duration:0});i.find("li").each(function(){n(this).velocity({opacity:"1",translateX:"0"},{duration:800,delay:r,easing:[60,10]});r+=120})};n(document).ready(function(){var t=!1,i=!1;n(".dismissable").each(function(){n(this).hammer({prevent_default:!1}).on("pan",function(r){if(r.gesture.pointerType==="touch"){var u=n(this),e=r.gesture.direction,f=r.gesture.deltaX,o=r.gesture.velocityX;u.velocity({translateX:f},{duration:50,queue:!1,easing:"easeOutQuad"});e===4&&(f>u.innerWidth()/2||o<-.75)&&(t=!0);e===2&&(f<u.innerWidth()/-2||o>.75)&&(i=!0)}}).on("panend",function(r){var u,f;Math.abs(r.gesture.deltaX)<n(this).innerWidth()/2&&(i=!1,t=!1);r.gesture.pointerType==="touch"&&(u=n(this),t||i?(f=t?u.innerWidth():-1*u.innerWidth(),u.velocity({translateX:f},{duration:100,queue:!1,easing:"easeOutQuad",complete:function(){u.css("border","none");u.velocity({height:0,padding:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){u.remove()}})}})):u.velocity({translateX:0},{duration:100,queue:!1,easing:"easeOutQuad"}),t=!1,i=!1)})})})}(jQuery),function(){var n=!1;Materialize.scrollFire=function(t){var r=function(){for(var o=window.pageYOffset+window.innerHeight,f,e,i=0;i<t.length;i++){var n=t[i],s=n.selector,h=n.offset,r=n.callback,u=document.querySelector(s);u!==null&&(f=u.getBoundingClientRect().top+window.pageYOffset,o>f+h&&n.done!==!0&&(typeof r=="function"?r.call(this,u):typeof r=="string"&&(e=new Function(r),e(u)),n.done=!0))}},i=Materialize.throttle(function(){r()},t.throttle||100);n||(window.addEventListener("scroll",i),window.addEventListener("resize",i),n=!0);setTimeout(i,0)}}(jQuery),function(n){Materialize.Picker=n(jQuery)}(function(n){function t(e,s,c,l){function d(){return t._.node("div",t._.node("div",t._.node("div",t._.node("div",a.component.nodes(v.open),p.box),p.wrap),p.frame),p.holder)}function tt(){if(w.data(s,a).addClass(p.input).attr("tabindex",-1).val(w.data("value")?a.get("select",y.format):e.value),!y.editable)w.on("focus."+v.id+" click."+v.id,function(n){n.preventDefault();a.$root.eq(0).focus()}).on("keydown."+v.id,g);i(e,{haspopup:!0,expanded:!1,readonly:!1,owns:e.id+"_root"})}function it(){a.$root.on({keydown:g,focusin:function(n){a.$root.removeClass(p.focused);n.stopPropagation()},"mousedown click":function(t){var i=t.target;i!=a.$root.children()[0]&&(t.stopPropagation(),t.type!="mousedown"||n(i).is("input, select, textarea, button, option")||(t.preventDefault(),a.$root.eq(0).focus()))}}).on({focus:function(){w.addClass(p.target)},blur:function(){w.removeClass(p.target)}}).on("focus.toOpen",nt).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var r=n(this),i=r.data(),u=r.hasClass(p.navDisabled)||r.hasClass(p.disabled),t=o();t=t&&(t.type||t.href)&&t;(u||t&&!n.contains(a.$root[0],t))&&a.$root.eq(0).focus();!u&&i.nav?a.set("highlight",a.component.item.highlight,{nav:i.nav}):!u&&"pick"in i?(a.set("select",i.pick),y.closeOnSelect&&a.close(!0)):i.clear?(a.clear(),y.closeOnSelect&&a.close(!0)):i.close&&a.close(!0)});i(a.$root[0],"hidden",!0)}function rt(){var t;y.hiddenName===!0?(t=e.name,e.name=""):(t=[typeof y.hiddenPrefix=="string"?y.hiddenPrefix:"",typeof y.hiddenSuffix=="string"?y.hiddenSuffix:"_submit"],t=t[0]+e.name+t[1]);a._hidden=n('<input type=hidden name="'+t+'"'+(w.data("value")||e.value?' value="'+a.get("select",y.formatSubmit)+'"':"")+">")[0];w.on("change."+v.id,function(){a._hidden.value=e.value?a.get("select",y.formatSubmit):""});y.container?n(y.container).append(a._hidden):w.before(a._hidden)}function g(n){var t=n.keyCode,i=/^(8|46)$/.test(t);if(t==27)return a.close(),!1;(t==32||i||!v.open&&a.component.key[t])&&(n.preventDefault(),n.stopPropagation(),i?a.clear().close():a.open())}function nt(n){n.stopPropagation();n.type=="focus"&&a.$root.addClass(p.focused);a.open()}if(!e)return t;var b=!1,v={id:e.id||"P"+Math.abs(~~(Math.random()*new Date))},y=c?n.extend(!0,{},c.defaults,l):l||{},p=n.extend({},t.klasses(),y.klass),w=n(e),k=function(){return this.start()},a=k.prototype={constructor:k,$node:w,start:function(){if(v&&v.start)return a;v.methods={};v.start=!0;v.open=!1;v.type=e.type;e.autofocus=e==o();e.readOnly=!y.editable;e.id=e.id||v.id;e.type!="text"&&(e.type="text");a.component=new c(a,y);a.$root=n(t._.node("div",d(),p.picker,'id="'+e.id+'_root" tabindex="0"'));it();y.formatSubmit&&rt();tt();y.container?n(y.container).append(a.$root):w.before(a.$root);a.on({start:a.component.onStart,render:a.component.onRender,stop:a.component.onStop,open:a.component.onOpen,close:a.component.onClose,set:a.component.onSet}).on({start:y.onStart,render:y.onRender,stop:y.onStop,open:y.onOpen,close:y.onClose,set:y.onSet});return b=h(a.$root.children()[0]),e.autofocus&&a.open(),a.trigger("start").trigger("render")},render:function(n){return n?a.$root.html(d()):a.$root.find("."+p.box).html(a.component.nodes(v.open)),a.trigger("render")},stop:function(){return v.start?(a.close(),a._hidden&&a._hidden.parentNode.removeChild(a._hidden),a.$root.remove(),w.removeClass(p.input).removeData(s),setTimeout(function(){w.off("."+v.id)},0),e.type=v.type,e.readOnly=!1,a.trigger("stop"),v.methods={},v.start=!1,a):a},open:function(o){if(v.open)return a;if(w.addClass(p.active),i(e,"expanded",!0),setTimeout(function(){a.$root.addClass(p.opened);i(a.$root[0],"hidden",!1)},0),o!==!1){v.open=!0;b&&r.css("overflow","hidden").css("padding-right","+="+f());a.$root.eq(0).focus();u.on("click."+v.id+" focusin."+v.id,function(n){var t=n.target;t!=e&&t!=document&&n.which!=3&&a.close(t===a.$root.children()[0])}).on("keydown."+v.id,function(i){var r=i.keyCode,u=a.component.key[r],f=i.target;r==27?a.close(!0):f==a.$root[0]&&(u||r==13)?(i.preventDefault(),u?t._.trigger(a.component.key.go,a,[t._.trigger(u)]):a.$root.find("."+p.highlighted).hasClass(p.disabled)||(a.set("select",a.component.item.highlight),y.closeOnSelect&&a.close(!0))):n.contains(a.$root[0],f)&&r==13&&(i.preventDefault(),f.click())})}return a.trigger("open")},close:function(n){return(n&&(a.$root.off("focus.toOpen").eq(0).focus(),setTimeout(function(){a.$root.on("focus.toOpen",nt)},0)),w.removeClass(p.active),i(e,"expanded",!1),setTimeout(function(){a.$root.removeClass(p.opened+" "+p.focused);i(a.$root[0],"hidden",!0)},0),!v.open)?a:(v.open=!1,b&&r.css("overflow","").css("padding-right","-="+f()),u.off("."+v.id),a.trigger("close"))},clear:function(n){return a.set("clear",null,n)},set:function(t,i,r){var u,f,o=n.isPlainObject(t),e=o?t:{};if(r=o&&n.isPlainObject(i)?i:r||{},t){o||(e[t]=i);for(u in e)f=e[u],u in a.component.item&&(f===undefined&&(f=null),a.component.set(u,f,r)),(u=="select"||u=="clear")&&w.val(u=="clear"?"":a.get(u,y.format)).trigger("change");a.render()}return r.muted?a:a.trigger("set",e)},get:function(n,i){if(n=n||"value",v[n]!=null)return v[n];if(n=="valueSubmit"){if(a._hidden)return a._hidden.value;n="value"}if(n=="value")return e.value;if(n in a.component.item){if(typeof i=="string"){var r=a.component.get(n);return r?t._.trigger(a.component.formats.toString,a.component,[i,r]):""}return a.component.get(n)}},on:function(t,i,r){var u,e,o=n.isPlainObject(t),f=o?t:{};if(t){o||(f[t]=i);for(u in f)e=f[u],r&&(u="_"+u),v.methods[u]=v.methods[u]||[],v.methods[u].push(e)}return a},off:function(){var n,t,i=arguments;for(n=0,namesCount=i.length;n<namesCount;n+=1)t=i[n],t in v.methods&&delete v.methods[t];return a},trigger:function(n,i){var r=function(n){var r=v.methods[n];r&&r.map(function(n){t._.trigger(n,a,[i])})};return r("_"+n),r(n),a}};return new k}function h(n){var t,i="position";return n.currentStyle?t=n.currentStyle[i]:window.getComputedStyle&&(t=getComputedStyle(n)[i]),t=="fixed"}function f(){var t,i,u,f;return r.height()<=s.height()?0:(t=n('<div style="visibility:hidden;width:100px" />').appendTo("body"),i=t[0].offsetWidth,t.css("overflow","scroll"),u=n('<div style="width:100%" />').appendTo(t),f=u[0].offsetWidth,t.remove(),i-f)}function i(t,i,r){if(n.isPlainObject(i))for(var u in i)e(t,u,i[u]);else e(t,i,r)}function e(n,t,i){n.setAttribute((t=="role"?"":"aria-")+t,i)}function c(t,i){var r,u,f;n.isPlainObject(t)||(t={attribute:i});i="";for(r in t)u=(r=="role"?"":"aria-")+r,f=t[r],i+=f==null?"":u+'="'+t[r]+'"';return i}function o(){try{return document.activeElement}catch(n){}}var s=n(window),u=n(document),r=n(document.documentElement);return t.klasses=function(n){return n=n||"picker",{picker:n,opened:n+"--opened",focused:n+"--focused",input:n+"__input",active:n+"__input--active",target:n+"__input--target",holder:n+"__holder",frame:n+"__frame",wrap:n+"__wrap",box:n+"__box"}},t._={group:function(n){for(var i,u="",r=t._.trigger(n.min,n);r<=t._.trigger(n.max,n,[r]);r+=n.i)i=t._.trigger(n.item,n,[r]),u+=t._.node(n.node,i[0],i[1],i[2]);return u},node:function(t,i,r,u){return i?(i=n.isArray(i)?i.join(""):i,r=r?' class="'+r+'"':"",u=u?" "+u:"","<"+t+r+u+">"+i+"<\/"+t+">"):""},lead:function(n){return(n<10?"0":"")+n},trigger:function(n,t,i){return typeof n=="function"?n.apply(t,i||[]):n},digits:function(n){return/\d/.test(n[1])?2:1},isDate:function(n){return{}.toString.call(n).indexOf("Date")>-1&&this.isInteger(n.getDate())},isInteger:function(n){return{}.toString.call(n).indexOf("Number")>-1&&n%1==0},ariaAttr:c},t.extend=function(i,r){n.fn[i]=function(u,f){var e=this.data(i);return u=="picker"?e:e&&typeof u=="string"?t._.trigger(e[u],e,[f]):this.each(function(){var f=n(this);f.data(i)||new t(this,i,r,u)})};n.fn[i].defaults=r.defaults},t}),function(n){n(Materialize.Picker,jQuery)}(function(n,t){function r(n,t){var i=this,r=n.$node[0],o=r.value,u=n.$node.data("value"),f=u||o,s=u?t.formatSubmit:t.format,e=function(){return r.currentStyle?r.currentStyle.direction=="rtl":getComputedStyle(n.$root[0]).direction=="rtl"};i.settings=t;i.$node=n.$node;i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"};i.item={};i.item.clear=null;i.item.disable=(t.disable||[]).slice(0);i.item.enable=-function(n){return n[0]===!0?n.shift():-1}(i.item.disable);i.set("min",t.min).set("max",t.max).set("now");f?i.set("select",f,{format:s}):i.set("select",null).set("highlight",i.item.now);i.key={40:7,38:-7,39:function(){return e()?-1:1},37:function(){return e()?1:-1},go:function(n){var t=i.item.highlight,r=new Date(t.year,t.month,t.date+n);i.set("highlight",r,{interval:n});this.render()}};n.on("render",function(){n.$root.find("."+t.klass.selectMonth).on("change",function(){var i=this.value;i&&(n.set("highlight",[n.get("view").year,i,n.get("highlight").date]),n.$root.find("."+t.klass.selectMonth).trigger("focus"))});n.$root.find("."+t.klass.selectYear).on("change",function(){var i=this.value;i&&(n.set("highlight",[i,n.get("view").month,n.get("highlight").date]),n.$root.find("."+t.klass.selectYear).trigger("focus"))})},1).on("open",function(){var r="";i.disabled(i.get("now"))&&(r=":not(."+t.klass.buttonToday+")");n.$root.find("button"+r+", select").attr("disabled",!1)},1).on("close",function(){n.$root.find("button, select").attr("disabled",!0)},1)}var u=7,f=6,i=n._;r.prototype.set=function(n,t,i){var r=this,u=r.item;return t===null?(n=="clear"&&(n="select"),u[n]=t,r):(u[n=="enable"?"disable":n=="flip"?"enable":n]=r.queue[n].split(" ").map(function(u){return t=r[u](n,t,i)}).pop(),n=="select"?r.set("highlight",u.select,i):n=="highlight"?r.set("view",u.highlight,i):n.match(/^(flip|min|max|disable|enable)$/)&&(u.select&&r.disabled(u.select)&&r.set("select",u.select,i),u.highlight&&r.disabled(u.highlight)&&r.set("highlight",u.highlight,i)),r)};r.prototype.get=function(n){return this.item[n]};r.prototype.create=function(n,r,u){var f,e=this;return r=r===undefined?n:r,r==-Infinity||r==Infinity?f=r:t.isPlainObject(r)&&i.isInteger(r.pick)?r=r.obj:t.isArray(r)?(r=new Date(r[0],r[1],r[2]),r=i.isDate(r)?r:e.create().obj):r=i.isInteger(r)||i.isDate(r)?e.normalize(new Date(r),u):e.now(n,r,u),{year:f||r.getFullYear(),month:f||r.getMonth(),date:f||r.getDate(),day:f||r.getDay(),obj:f||r,pick:f||r.getTime()}};r.prototype.createRange=function(n,r){var f=this,u=function(n){return n===!0||t.isArray(n)||i.isDate(n)?f.create(n):n};return i.isInteger(n)||(n=u(n)),i.isInteger(r)||(r=u(r)),i.isInteger(n)&&t.isPlainObject(r)?n=[r.year,r.month,r.date+n]:i.isInteger(r)&&t.isPlainObject(n)&&(r=[n.year,n.month,n.date+r]),{from:u(n),to:u(r)}};r.prototype.withinRange=function(n,t){return n=this.createRange(n.from,n.to),t.pick>=n.from.pick&&t.pick<=n.to.pick};r.prototype.overlapRanges=function(n,t){var i=this;return n=i.createRange(n.from,n.to),t=i.createRange(t.from,t.to),i.withinRange(n,t.from)||i.withinRange(n,t.to)||i.withinRange(t,n.from)||i.withinRange(t,n.to)};r.prototype.now=function(n,t,i){return t=new Date,i&&i.rel&&t.setDate(t.getDate()+i.rel),this.normalize(t,i)};r.prototype.navigate=function(n,i,r){var s,f,u,e,c=t.isArray(i),h=t.isPlainObject(i),o=this.item.view;if(c||h){for(h?(f=i.year,u=i.month,e=i.date):(f=+i[0],u=+i[1],e=+i[2]),r&&r.nav&&o&&o.month!==u&&(f=o.year,u=o.month),s=new Date(f,u+(r&&r.nav?r.nav:0),1),f=s.getFullYear(),u=s.getMonth();new Date(f,u,e).getMonth()!==u;)e-=1;i=[f,u,e]}return i};r.prototype.normalize=function(n){return n.setHours(0,0,0,0),n};r.prototype.measure=function(n,t){var r=this;return t?typeof t=="string"?t=r.parse(n,t):i.isInteger(t)&&(t=r.now(n,t,{rel:t})):t=n=="min"?-Infinity:Infinity,t};r.prototype.viewset=function(n,t){return this.create([t.year,t.month,1])};r.prototype.validate=function(n,r,u){var f=this,c=r,e=u&&u.interval?u.interval:1,h=f.item.enable===-1,l,a,o=f.item.min,s=f.item.max,v,y,p=h&&f.item.disable.filter(function(n){if(t.isArray(n)){var u=f.create(n).pick;u<r.pick?l=!0:u>r.pick&&(a=!0)}return i.isInteger(n)}).length;if((!u||!u.nav)&&(!h&&f.disabled(r)||h&&f.disabled(r)&&(p||l||a)||!h&&(r.pick<=o.pick||r.pick>=s.pick)))for(h&&!p&&(!a&&e>0||!l&&e<0)&&(e*=-1);f.disabled(r);){if(Math.abs(e)>1&&(r.month<c.month||r.month>c.month)&&(r=c,e=e>0?1:-1),r.pick<=o.pick?(v=!0,e=1,r=f.create([o.year,o.month,o.date+(r.pick===o.pick?0:-1)])):r.pick>=s.pick&&(y=!0,e=-1,r=f.create([s.year,s.month,s.date+(r.pick===s.pick?0:1)])),v&&y)break;r=f.create([r.year,r.month,r.date+e])}return r};r.prototype.disabled=function(n){var r=this,u=r.item.disable.filter(function(u){return i.isInteger(u)?n.day===(r.settings.firstDay?u:u-1)%7:t.isArray(u)||i.isDate(u)?n.pick===r.create(u).pick:t.isPlainObject(u)?r.withinRange(u,n):void 0});return u=u.length&&!u.filter(function(n){return t.isArray(n)&&n[3]=="inverted"||t.isPlainObject(n)&&n.inverted}).length,r.item.enable===-1?!u:u||n.pick<r.item.min.pick||n.pick>r.item.max.pick};r.prototype.parse=function(n,t,r){var f=this,u={};return!t||typeof t!="string"?t:(r&&r.format||(r=r||{},r.format=f.settings.format),f.formats.toArray(r.format).map(function(n){var r=f.formats[n],e=r?i.trigger(r,f,[t,u]):n.replace(/^!/,"").length;r&&(u[n]=t.substr(0,e));t=t.substr(e)}),[u.yyyy||u.yy,+(u.mm||u.m)-1,u.dd||u.d])};r.prototype.formats=function(){function n(n,t,i){var r=n.match(/\w+/)[0];return i.mm||i.m||(i.m=t.indexOf(r)+1),r.length}function t(n){return n.match(/\w+/)[0].length}return{d:function(n,t){return n?i.digits(n):t.date},dd:function(n,t){return n?2:i.lead(t.date)},ddd:function(n,i){return n?t(n):this.settings.weekdaysShort[i.day]},dddd:function(n,i){return n?t(n):this.settings.weekdaysFull[i.day]},m:function(n,t){return n?i.digits(n):t.month+1},mm:function(n,t){return n?2:i.lead(t.month+1)},mmm:function(t,i){var r=this.settings.monthsShort;return t?n(t,r,i):r[i.month]},mmmm:function(t,i){var r=this.settings.monthsFull;return t?n(t,r,i):r[i.month]},yy:function(n,t){return n?2:(""+t.year).slice(2)},yyyy:function(n,t){return n?4:t.year},toArray:function(n){return n.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(n,t){var r=this;return r.formats.toArray(n).map(function(n){return i.trigger(r.formats[n],r,[0,t])||n.replace(/^!/,"")}).join("")}}}();r.prototype.isDateExact=function(n,r){var u=this;return i.isInteger(n)&&i.isInteger(r)||typeof n=="boolean"&&typeof r=="boolean"?n===r:(i.isDate(n)||t.isArray(n))&&(i.isDate(r)||t.isArray(r))?u.create(n).pick===u.create(r).pick:t.isPlainObject(n)&&t.isPlainObject(r)?u.isDateExact(n.from,r.from)&&u.isDateExact(n.to,r.to):!1};r.prototype.isDateOverlap=function(n,r){var u=this,f=u.settings.firstDay?1:0;return i.isInteger(n)&&(i.isDate(r)||t.isArray(r))?(n=n%7+f,n===u.create(r).day+1):i.isInteger(r)&&(i.isDate(n)||t.isArray(n))?(r=r%7+f,r===u.create(n).day+1):t.isPlainObject(n)&&t.isPlainObject(r)?u.overlapRanges(n,r):!1};r.prototype.flipEnable=function(n){var t=this.item;t.enable=n||(t.enable==-1?1:-1)};r.prototype.deactivate=function(n,r){var f=this,u=f.item.disable.slice(0);return r=="flip"?f.flipEnable():r===!1?(f.flipEnable(1),u=[]):r===!0?(f.flipEnable(-1),u=[]):r.map(function(n){for(var e,r=0;r<u.length;r+=1)if(f.isDateExact(n,u[r])){e=!0;break}e||(i.isInteger(n)||i.isDate(n)||t.isArray(n)||t.isPlainObject(n)&&n.from&&n.to)&&u.push(n)}),u};r.prototype.activate=function(n,r){var f=this,u=f.item.disable,e=u.length;return r=="flip"?f.flipEnable():r===!0?(f.flipEnable(1),u=[]):r===!1?(f.flipEnable(-1),u=[]):r.map(function(n){for(var o,s,h,r=0;r<e;r+=1)if(s=u[r],f.isDateExact(s,n)){o=u[r]=null;h=!0;break}else if(f.isDateOverlap(s,n)){t.isPlainObject(n)?(n.inverted=!0,o=n):t.isArray(n)?(o=n,o[3]||o.push("inverted")):i.isDate(n)&&(o=[n.getFullYear(),n.getMonth(),n.getDate(),"inverted"]);break}if(o)for(r=0;r<e;r+=1)if(f.isDateExact(u[r],n)){u[r]=null;break}if(h)for(r=0;r<e;r+=1)if(f.isDateOverlap(u[r],n)){u[r]=null;break}o&&u.push(o)}),u.filter(function(n){return n!=null})};r.prototype.nodes=function(n){var r=this,t=r.settings,s=r.item,l=s.now,o=s.select,y=s.highlight,e=s.view,w=s.disable,h=s.min,c=s.max,b=function(n,r){return t.firstDay&&(n.push(n.shift()),r.push(r.shift())),i.node("thead",i.node("tr",i.group({min:0,max:u-1,i:1,node:"th",item:function(i){return[n[i],t.klass.weekdays,'scope=col title="'+r[i]+'"']}})))}((t.showWeekdaysFull?t.weekdaysFull:t.weekdaysLetter).slice(0),t.weekdaysFull.slice(0)),p=function(n){return i.node("div"," ",t.klass["nav"+(n?"Next":"Prev")]+(n&&e.year>=c.year&&e.month>=c.month||!n&&e.year<=h.year&&e.month<=h.month?" "+t.klass.navDisabled:""),"data-nav="+(n||-1)+" "+i.ariaAttr({role:"button",controls:r.$node[0].id+"_table"})+' title="'+(n?t.labelMonthNext:t.labelMonthPrev)+'"')},a=function(u){var f=t.showMonthsShort?t.monthsShort:t.monthsFull;return(u=="short_months"&&(f=t.monthsShort),t.selectMonths&&u==undefined)?i.node("select",i.group({min:0,max:11,i:1,node:"option",item:function(n){return[f[n],0,"value="+n+(e.month==n?" selected":"")+(e.year==h.year&&n<h.month||e.year==c.year&&n>c.month?" disabled":"")]}}),t.klass.selectMonth+" browser-default",(n?"":"disabled")+" "+i.ariaAttr({controls:r.$node[0].id+"_table"})+' title="'+t.labelMonthSelect+'"'):u=="short_months"?o!=null?f[o.month]:f[e.month]:i.node("div",f[e.month],t.klass.month)},v=function(u){var l=e.year,v=t.selectYears===!0?5:~~(t.selectYears/2),p,w;if(v){var a=h.year,y=c.year,f=l-v,s=l+v;if(a>f&&(s+=a-f,f=a),y<s&&(p=f-a,w=s-y,f-=p>w?w:p,s=y),t.selectYears&&u==undefined)return i.node("select",i.group({min:f,max:s,i:1,node:"option",item:function(n){return[n,0,"value="+n+(l==n?" selected":"")]}}),t.klass.selectYear+" browser-default",(n?"":"disabled")+" "+i.ariaAttr({controls:r.$node[0].id+"_table"})+' title="'+t.labelYearSelect+'"')}return u==="raw"&&o!=null?i.node("div",o.year):i.node("div",l,t.klass.year)};return createDayLabel=function(){return o!=null?o.date:l.date},createWeekdayLabel=function(){var n;return n=o!=null?o.day:l.day,t.weekdaysShort[n]},i.node("div",i.node("div",v("raw"),t.klass.year_display)+i.node("span",createWeekdayLabel()+", ","picker__weekday-display")+i.node("span",a("short_months")+" ",t.klass.month_display)+i.node("span",createDayLabel(),t.klass.day_display),t.klass.date_display)+i.node("div",i.node("div",i.node("div",(t.selectYears?a()+v():a()+v())+p()+p(1),t.klass.header)+i.node("table",b+i.node("tbody",i.group({min:0,max:f-1,i:1,node:"tr",item:function(n){var f=t.firstDay&&r.create([e.year,e.month,1]).day===0?-7:0;return[i.group({min:u*n-e.day+f+1,max:function(){return this.min+u-1},i:1,node:"td",item:function(n){n=r.create([e.year,e.month,n+(t.firstDay?1:0)]);var f=o&&o.pick==n.pick,s=y&&y.pick==n.pick,u=w&&r.disabled(n)||n.pick<h.pick||n.pick>c.pick,a=i.trigger(r.formats.toString,r,[t.format,n]);return[i.node("div",n.date,function(i){return i.push(e.month==n.month?t.klass.infocus:t.klass.outfocus),l.pick==n.pick&&i.push(t.klass.now),f&&i.push(t.klass.selected),s&&i.push(t.klass.highlighted),u&&i.push(t.klass.disabled),i.join(" ")}([t.klass.day]),"data-pick="+n.pick+" "+i.ariaAttr({role:"gridcell",label:a,selected:f&&r.$node.val()===a?!0:null,activedescendant:s?!0:null,disabled:u?!0:null})+" "+(u?"":'tabindex="0"')),"",i.ariaAttr({role:"presentation"})]}})]}})),t.klass.table,'id="'+r.$node[0].id+'_table" '+i.ariaAttr({role:"grid",controls:r.$node[0].id,readonly:!0})),t.klass.calendar_container)+i.node("div",i.node("button",t.today,"btn-flat picker__today waves-effect","type=button data-pick="+l.pick+(n&&!r.disabled(l)?"":" disabled")+" "+i.ariaAttr({controls:r.$node[0].id}))+i.node("button",t.clear,"btn-flat picker__clear waves-effect","type=button data-clear=1"+(n?"":" disabled")+" "+i.ariaAttr({controls:r.$node[0].id}))+i.node("button",t.close,"btn-flat picker__close waves-effect","type=button data-close=true "+(n?"":" disabled")+" "+i.ariaAttr({controls:r.$node[0].id})),t.klass.footer),"picker__container__wrapper")};r.defaults=function(n){return{labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysLetter:["S","M","T","W","T","F","S"],today:"Today",clear:"Clear",close:"Ok",closeOnSelect:!1,format:"d mmmm, yyyy",klass:{table:n+"table",header:n+"header",date_display:n+"date-display",day_display:n+"day-display",month_display:n+"month-display",year_display:n+"year-display",calendar_container:n+"calendar-container",navPrev:n+"nav--prev",navNext:n+"nav--next",navDisabled:n+"nav--disabled",month:n+"month",year:n+"year",selectMonth:n+"select--month",selectYear:n+"select--year",weekdays:n+"weekday",day:n+"day",disabled:n+"day--disabled",selected:n+"day--selected",highlighted:n+"day--highlighted",now:n+"day--today",infocus:n+"day--infocus",outfocus:n+"day--outfocus",footer:n+"footer",buttonClear:n+"button--clear",buttonToday:n+"button--today",buttonClose:n+"button--close"}}}(n.klasses().picker+"__");n.extend("pickadate",r)}),function(n){function o(n){return document.createElementNS(b,n)}function s(n){return(n<10?"0":"")+n}function tt(n){var t=++nt+"";return n?n+t:t}function t(t,a){function lt(n,t){var l=ht.offset(),w=/^touch/.test(n.type),s=l.left+i,h=l.top+i,f=(w?n.originalEvent.touches[0]:n).pageX-s,o=(w?n.originalEvent.touches[0]:n).pageY-h,k=Math.sqrt(f*f+o*o),c=!1,d;if(!t||!(k<u-r||k>u+r)){n.preventDefault();d=setTimeout(function(){b.popover.addClass("clockpicker-moving")},200);b.setHand(f,o,!t,!0);e.off(v).on(v,function(n){n.preventDefault();var t=/^touch/.test(n.type),i=(t?n.originalEvent.touches[0]:n).pageX-s,r=(t?n.originalEvent.touches[0]:n).pageY-h;(c||i!==f||r!==o)&&(c=!0,b.setHand(i,r,!1,!0))});e.off(y).on(y,function(n){e.off(y);n.preventDefault();var i=/^touch/.test(n.type),r=(i?n.originalEvent.changedTouches[0]:n).pageX-s,u=(i?n.originalEvent.changedTouches[0]:n).pageY-h;(t||c)&&r===f&&u===o&&b.setHand(r,u);b.currentView==="hours"?b.toggleView("minutes",p/2):a.autoclose&&(b.minutesView.addClass("clockpicker-dial-out"),setTimeout(function(){b.done()},p/2));ht.prepend(at);clearTimeout(d);b.popover.removeClass("clockpicker-moving");e.off(v)})}}var g=n(it),ht=g.find(".clockpicker-plate"),kt=g.find(".picker__holder"),vt=g.find(".clockpicker-hours"),pt=g.find(".clockpicker-minutes"),dt=g.find(".clockpicker-am-pm-block"),wt=t.prop("tagName")==="INPUT",yt=wt?t:t.find("input"),gt=n("label[for="+yt.attr("id")+"]"),b=this,ct,w,k,nt,ft,bt,at,et,rt,ut,ot,st;this.id=tt("cp");this.element=t;this.holder=kt;this.options=a;this.isAppended=!1;this.isShown=!1;this.currentView="hours";this.isInput=wt;this.input=yt;this.label=gt;this.popover=g;this.plate=ht;this.hoursView=vt;this.minutesView=pt;this.amPmBlock=dt;this.spanHours=g.find(".clockpicker-span-hours");this.spanMinutes=g.find(".clockpicker-span-minutes");this.spanAmPm=g.find(".clockpicker-span-am-pm");this.footer=g.find(".picker__footer");this.amOrPm="PM";a.twelvehour&&(a.ampmclickable?(this.spanAmPm.empty(),n('<div id="click-am">AM<\/div>').on("click",function(){b.spanAmPm.children("#click-am").addClass("text-primary");b.spanAmPm.children("#click-pm").removeClass("text-primary");b.amOrPm="AM"}).appendTo(this.spanAmPm),n('<div id="click-pm">PM<\/div>').on("click",function(){b.spanAmPm.children("#click-pm").addClass("text-primary");b.spanAmPm.children("#click-am").removeClass("text-primary");b.amOrPm="PM"}).appendTo(this.spanAmPm)):(this.spanAmPm.empty(),n('<div id="click-am">AM<\/div>').appendTo(this.spanAmPm),n('<div id="click-pm">PM<\/div>').appendTo(this.spanAmPm)));n('<button type="button" class="btn-flat picker__clear" tabindex="'+(a.twelvehour?"3":"1")+'">'+a.cleartext+"<\/button>").click(n.proxy(this.clear,this)).appendTo(this.footer);n('<button type="button" class="btn-flat picker__close" tabindex="'+(a.twelvehour?"3":"1")+'">'+a.canceltext+"<\/button>").click(n.proxy(this.hide,this)).appendTo(this.footer);n('<button type="button" class="btn-flat picker__close" tabindex="'+(a.twelvehour?"3":"1")+'">'+a.donetext+"<\/button>").click(n.proxy(this.done,this)).appendTo(this.footer);this.spanHours.click(n.proxy(this.toggleView,this,"hours"));this.spanMinutes.click(n.proxy(this.toggleView,this,"minutes"));yt.on("focus.clockpicker click.clockpicker",n.proxy(this.show,this));if(ct=n('<div class="clockpicker-tick"><\/div>'),a.twelvehour)for(w=1;w<13;w+=1){k=ct.clone();nt=w/6*Math.PI;ft=u;k.css({left:i+Math.sin(nt)*ft-r,top:i-Math.cos(nt)*ft-r});k.html(w===0?"00":w);vt.append(k);k.on(h,lt)}else for(w=0;w<24;w+=1){k=ct.clone();nt=w/6*Math.PI;bt=w>0&&w<13;ft=bt?c:u;k.css({left:i+Math.sin(nt)*ft-r,top:i-Math.cos(nt)*ft-r});k.html(w===0?"00":w);vt.append(k);k.on(h,lt)}for(w=0;w<60;w+=5){k=ct.clone();nt=w/30*Math.PI;k.css({left:i+Math.sin(nt)*u-r,top:i-Math.cos(nt)*u-r});k.html(s(w));pt.append(k);k.on(h,lt)}ht.on(h,function(t){n(t.target).closest(".clockpicker-tick").length===0&&lt(t,!0)});l&&(at=g.find(".clockpicker-canvas"),et=o("svg"),et.setAttribute("class","clockpicker-svg"),et.setAttribute("width",d),et.setAttribute("height",d),rt=o("g"),rt.setAttribute("transform","translate("+i+","+i+")"),ut=o("circle"),ut.setAttribute("class","clockpicker-canvas-bearing"),ut.setAttribute("cx",0),ut.setAttribute("cy",0),ut.setAttribute("r",4),ot=o("line"),ot.setAttribute("x1",0),ot.setAttribute("y1",0),st=o("circle"),st.setAttribute("class","clockpicker-canvas-bg"),st.setAttribute("r",r),rt.appendChild(ot),rt.appendChild(st),rt.appendChild(ut),et.appendChild(rt),at.append(et),this.hand=ot,this.bg=st,this.bearing=ut,this.g=rt,this.canvas=at);f(this.options.init)}function f(n){n&&typeof n=="function"&&n()}var w=n(window),e=n(document),b="http://www.w3.org/2000/svg",l="SVGAngle"in window&&function(){var t,n=document.createElement("div");return n.innerHTML="<svg/>",t=(n.firstChild&&n.firstChild.namespaceURI)==b,n.innerHTML="",t}(),g=function(){var n=document.createElement("div").style;return"transition"in n||"WebkitTransition"in n||"MozTransition"in n||"msTransition"in n||"OTransition"in n}(),a="ontouchstart"in window,h="mousedown"+(a?" touchstart":""),v="mousemove.clockpicker"+(a?" touchmove.clockpicker":""),y="mouseup.clockpicker"+(a?" touchend.clockpicker":""),k=navigator.vibrate?"vibrate":navigator.webkitVibrate?"webkitVibrate":null,nt=0,i=135,u=105,c=70,r=20,d=i*2,p=g?350:1,it='<div class="clockpicker picker"><div class="picker__holder"><div class="picker__frame"><div class="picker__wrap"><div class="picker__box"><div class="picker__date-display"><div class="clockpicker-display"><div class="clockpicker-display-column"><span class="clockpicker-span-hours text-primary"><\/span>:<span class="clockpicker-span-minutes"><\/span><\/div><div class="clockpicker-display-column clockpicker-display-am-pm"><div class="clockpicker-span-am-pm"><\/div><\/div><\/div><\/div><div class="picker__container__wrapper"><div class="picker__calendar-container"><div class="clockpicker-plate"><div class="clockpicker-canvas"><\/div><div class="clockpicker-dial clockpicker-hours"><\/div><div class="clockpicker-dial clockpicker-minutes clockpicker-dial-out"><\/div><\/div><div class="clockpicker-am-pm-block"><\/div><\/div><div class="picker__footer"><\/div><\/div><\/div><\/div><\/div><\/div><\/div>';t.DEFAULTS={"default":"",fromnow:0,donetext:"Ok",cleartext:"Clear",canceltext:"Cancel",autoclose:!1,ampmclickable:!0,darktheme:!1,twelvehour:!0,vibrate:!0};t.prototype.toggle=function(){this[this.isShown?"hide":"show"]()};t.prototype.locate=function(){var n=this.element,t=this.popover,i=n.offset(),r=n.outerWidth(),u=n.outerHeight(),f=this.options.align,e=this;t.show()};t.prototype.show=function(){var i,t,r,u;if(!this.isShown){if(f(this.options.beforeShow),n(":input").each(function(){n(this).attr("tabindex",-1)}),i=this,this.input.blur(),this.popover.addClass("picker--opened"),this.input.addClass("picker__input picker__input--active"),n(document.body).css("overflow","hidden"),t=((this.input.prop("value")||this.options["default"]||"")+"").split(":"),!this.options.twelvehour||typeof t[1]=="undefined"||(this.amOrPm=t[1].indexOf("AM")>0?"AM":"PM",t[1]=t[1].replace("AM","").replace("PM","")),t[0]==="now"&&(r=new Date(+new Date+this.options.fromnow),t=[r.getHours(),r.getMinutes()],this.options.twelvehour&&(this.amOrPm=t[0]>=12&&t[0]<24?"PM":"AM")),this.hours=+t[0]||0,this.minutes=+t[1]||0,this.spanHours.html(this.hours),this.spanMinutes.html(s(this.minutes)),!this.isAppended){u=document.querySelector(this.options.container);this.options.container&&u?u.appendChild(this.popover[0]):this.popover.insertAfter(this.input);this.options.twelvehour&&(this.amOrPm==="PM"?(this.spanAmPm.children("#click-pm").addClass("text-primary"),this.spanAmPm.children("#click-am").removeClass("text-primary")):(this.spanAmPm.children("#click-am").addClass("text-primary"),this.spanAmPm.children("#click-pm").removeClass("text-primary")));w.on("resize.clockpicker"+this.id,function(){i.isShown&&i.locate()});this.isAppended=!0}this.toggleView("hours");this.locate();this.isShown=!0;e.on("click.clockpicker."+this.id+" focusin.clockpicker."+this.id,function(t){var r=n(t.target);r.closest(i.popover.find(".picker__wrap")).length===0&&r.closest(i.input).length===0&&i.hide()});e.on("keyup.clockpicker."+this.id,function(n){n.keyCode===27&&i.hide()});f(this.options.afterShow)}};t.prototype.hide=function(){f(this.options.beforeHide);this.input.removeClass("picker__input picker__input--active");this.popover.removeClass("picker--opened");n(document.body).css("overflow","visible");this.isShown=!1;n(":input").each(function(t){n(this).attr("tabindex",t+1)});e.off("click.clockpicker."+this.id+" focusin.clockpicker."+this.id);e.off("keyup.clockpicker."+this.id);this.popover.hide();f(this.options.afterHide)};t.prototype.toggleView=function(t,i){var u=!1;t==="minutes"&&n(this.hoursView).css("visibility")==="visible"&&(f(this.options.beforeHourSelect),u=!0);var r=t==="hours",o=r?this.hoursView:this.minutesView,e=r?this.minutesView:this.hoursView;this.currentView=t;this.spanHours.toggleClass("text-primary",r);this.spanMinutes.toggleClass("text-primary",!r);e.addClass("clockpicker-dial-out");o.css("visibility","visible").removeClass("clockpicker-dial-out");this.resetClock(i);clearTimeout(this.toggleViewTimer);this.toggleViewTimer=setTimeout(function(){e.css("visibility","hidden")},p);u&&f(this.options.afterHourSelect)};t.prototype.resetClock=function(n){var r=this.currentView,t=this[r],f=r==="hours",a=Math.PI/(f?6:30),e=t*a,o=f&&t>0&&t<13?c:u,s=Math.sin(e)*o,h=-Math.cos(e)*o,i=this;l&&n?(i.canvas.addClass("clockpicker-canvas-out"),setTimeout(function(){i.canvas.removeClass("clockpicker-canvas-out");i.setHand(s,h)},n)):this.setHand(s,h)};t.prototype.setHand=function(t,i,f){var o=Math.atan2(t,-i),h=this.currentView==="hours",v=Math.PI/(h||f?6:30),w=Math.sqrt(t*t+i*i),y=this.options,p=h&&w<(u+c)/2,a=p?c:u,e;if(y.twelvehour&&(a=u),o<0&&(o=Math.PI*2+o),e=Math.round(o/v),o=e*v,y.twelvehour?h?e===0&&(e=12):(f&&(e*=5),e===60&&(e=0)):h?(e===12&&(e=0),e=p?e===0?12:e:e===0?0:e+12):(f&&(e*=5),e===60&&(e=0)),this[this.currentView]!==e&&k&&this.options.vibrate&&(this.vibrateTimer||(navigator[k](10),this.vibrateTimer=setTimeout(n.proxy(function(){this.vibrateTimer=null},this),100))),this[this.currentView]=e,h?this.spanHours.html(e):this.spanMinutes.html(s(e)),!l){this[h?"hoursView":"minutesView"].find(".clockpicker-tick").each(function(){var t=n(this);t.toggleClass("active",e===+t.html())});return}var b=Math.sin(o)*(a-r),d=-Math.cos(o)*(a-r),g=Math.sin(o)*a,nt=-Math.cos(o)*a;this.hand.setAttribute("x2",b);this.hand.setAttribute("y2",d);this.bg.setAttribute("cx",g);this.bg.setAttribute("cy",nt)};t.prototype.done=function(){f(this.options.beforeDone);this.hide();this.label.addClass("active");var t=this.input.prop("value"),n=s(this.hours)+":"+s(this.minutes);this.options.twelvehour&&(n=n+this.amOrPm);this.input.prop("value",n);n!==t&&(this.input.triggerHandler("change"),this.isInput||this.element.trigger("change"));this.options.autoclose&&this.input.trigger("blur");f(this.options.afterDone)};t.prototype.clear=function(){this.hide();this.label.removeClass("active");var t=this.input.prop("value"),n="";this.input.prop("value",n);n!==t&&(this.input.triggerHandler("change"),this.isInput||this.element.trigger("change"));this.options.autoclose&&this.input.trigger("blur")};t.prototype.remove=function(){this.element.removeData("clockpicker");this.input.off("focus.clockpicker click.clockpicker");this.isShown&&this.hide();this.isAppended&&(w.off("resize.clockpicker"+this.id),this.popover.remove())};n.fn.pickatime=function(i){var r=Array.prototype.slice.call(arguments,1);return this.each(function(){var u=n(this),f=u.data("clockpicker"),e;f?typeof f[i]=="function"&&f[i].apply(f,r):(e=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),u.data("clockpicker",new t(u,e)))})}}(jQuery),function(n){function t(){var t=+n(this).attr("data-length"),i=+n(this).val().length,r=i<=t;n(this).parent().find('span[class="character-counter"]').html(i+"/"+t);u(r,n(this))}function i(t){var i=t.parent().find('span[class="character-counter"]');i.length||(i=n("<span/>").addClass("character-counter").css("float","right").css("font-size","12px").css("height",1),t.parent().append(i))}function r(){n(this).parent().find('span[class="character-counter"]').html("")}function u(n,t){var i=t.hasClass("invalid");n&&i?t.removeClass("invalid"):n||i||(t.removeClass("valid"),t.addClass("invalid"))}n.fn.characterCounter=function(){return this.each(function(){var u=n(this),e=u.parent().find('span[class="character-counter"]'),f;if(!e.length&&(f=u.attr("data-length")!==undefined,f)){u.on("input",t);u.on("focus",t);u.on("blur",r);i(u)}})};n(document).ready(function(){n("input, textarea").characterCounter()})}(jQuery),function(n){var t={init:function(t){var i;return t=n.extend({duration:200,dist:-100,shift:0,padding:0,fullWidth:!1,indicators:!1,noWrap:!1,onCycleTo:null},t),i=Materialize.objectSelectorString(n(this)),this.each(function(r){function ii(){if(typeof window.ontouchstart!="undefined"){u.on("touchstart.carousel",gt);u.on("touchmove.carousel",ni);u.on("touchend.carousel",vt)}u.on("mousedown.carousel",gt);u.on("mousemove.carousel",ni);u.on("mouseup.carousel",vt);u.on("mouseleave.carousel",vt);u.on("click.carousel",ui)}function kt(n){return n.targetTouches&&n.targetTouches.length>=1?n.targetTouches[0].clientX:n.clientX}function dt(n){return n.targetTouches&&n.targetTouches.length>=1?n.targetTouches[0].clientY:n.clientY}function p(n){return n>=h?n%h:n<0?p(h+n%h):n}function tt(i){var o,nt,v,y,c,r,b,et,tt,ut,ft;for(wt=!0,u.hasClass("scrolling")||u.addClass("scrolling"),ht!=null&&window.clearTimeout(ht),ht=window.setTimeout(function(){wt=!1;u.removeClass("scrolling")},t.duration),et=e,f=typeof i=="number"?i:f,e=Math.floor((f+s/2)/s),v=f-e*s,y=v<0?1:-1,c=-y*v*2/s,nt=h>>1,b=t.fullWidth?"translateX(0)":"translateX("+(u[0].clientWidth-w)/2+"px) "+("translateY("+(u[0].clientHeight-yt)/2+"px)"),rt&&(tt=e%h,ut=it.find(".indicator-item.active"),ut.index()!==tt&&(ut.removeClass("active"),it.find(".indicator-item").eq(tt).addClass("active"))),(!g||e>=0&&e<h)&&(r=a[p(e)],n(r).hasClass("active")||(u.find(".carousel-item").removeClass("active"),n(r).addClass("active")),r.style[k]=b+" translateX("+-v/2+"px) translateX("+y*t.shift*c*o+"px) translateZ("+t.dist*c+"px)",r.style.zIndex=0,tweenedOpacity=t.fullWidth?1:1-.2*c,r.style.opacity=tweenedOpacity,r.style.display="block"),o=1;o<=nt;++o)t.fullWidth?(zTranslation=t.dist,tweenedOpacity=o===nt&&v<0?1-c:1):(zTranslation=t.dist*(o*2+c*y),tweenedOpacity=1-.2*(o*2+c*y)),(!g||e+o<h)&&(r=a[p(e+o)],r.style[k]=b+" translateX("+(t.shift+(s*o-v)/2)+"px) translateZ("+zTranslation+"px)",r.style.zIndex=-o,r.style.opacity=tweenedOpacity,r.style.display="block"),t.fullWidth?(zTranslation=t.dist,tweenedOpacity=o===nt&&v>0?1-c:1):(zTranslation=t.dist*(o*2-c*y),tweenedOpacity=1-.2*(o*2-c*y)),(!g||e-o>=0)&&(r=a[p(e-o)],r.style[k]=b+" translateX("+(-t.shift+(-s*o-v)/2)+"px) translateZ("+zTranslation+"px)",r.style.zIndex=-o,r.style.opacity=tweenedOpacity,r.style.display="block");(!g||e>=0&&e<h)&&(r=a[p(e)],r.style[k]=b+" translateX("+-v/2+"px) translateX("+y*t.shift*c+"px) translateZ("+t.dist*c+"px)",r.style.zIndex=0,tweenedOpacity=t.fullWidth?1:1-.2*c,r.style.opacity=tweenedOpacity,r.style.display="block");et!==e&&typeof t.onCycleTo=="function"&&(ft=u.find(".carousel-item").eq(p(e)),t.onCycleTo.call(this,ft,l));typeof d=="function"&&(d.call(this,ft,l),d=null)}function ri(){var n,t,i,r;n=Date.now();t=n-v;v=n;i=f-et;et=f;r=1e3*i/(1+t);b=.8*r+.2*b}function ut(){var i,n;c&&(i=Date.now()-v,n=c*Math.exp(-i/t.duration),n>2||n<-2?(tt(o-n),requestAnimationFrame(ut)):tt(o))}function ui(i){if(l)return i.preventDefault(),i.stopPropagation(),!1;if(!t.fullWidth){var r=n(i.target).closest(".carousel-item").index(),u=p(e)-r;u!==0&&(i.preventDefault(),i.stopPropagation());at(r)}}function at(n){var t=e%h-n;g||(t<0?Math.abs(t+h)<Math.abs(t)&&(t+=h):t>0&&Math.abs(t-h)<t&&(t-=h));t<0?u.trigger("carouselNext",[Math.abs(t)]):t>0&&u.trigger("carouselPrev",[t])}function gt(t){t.type==="mousedown"&&n(t.target).is("img")&&t.preventDefault();nt=!0;l=!1;st=!1;ft=kt(t);pt=dt(t);b=c=0;et=f;v=Date.now();clearInterval(ot);ot=setInterval(ri,100)}function ni(n){var i,t,r;if(nt)if(i=kt(n),y=dt(n),t=ft-i,r=Math.abs(pt-y),r<30&&!st)(t>2||t<-2)&&(l=!0,ft=i,tt(f+t));else{if(l)return n.preventDefault(),n.stopPropagation(),!1;st=!0}if(l)return n.preventDefault(),n.stopPropagation(),!1}function vt(n){if(nt)nt=!1;else return;return clearInterval(ot),o=f,(b>10||b<-10)&&(c=.9*b,o=f+c),o=Math.round(o/s)*s,g&&(o>=s*(h-1)?o=s*(h-1):o<0&&(o=0)),c=o-f,v=Date.now(),requestAnimationFrame(ut),l&&(n.preventDefault(),n.stopPropagation()),!1}var a,w,yt,f,e,nt,s,h,ft,pt,c,o,b,wt,k,et,v,ot,l,st,it=n('<ul class="indicators"><\/ul>'),ht=null,d=null,u=n(this),bt=u.find(".carousel-item").length>1,rt=(u.attr("data-indicators")||t.indicators)&&bt,g=u.attr("data-no-wrap")||t.noWrap||!bt,ct=u.attr("data-namespace")||i+r,lt,ti;if(u.attr("data-namespace",ct),lt=function(t){var r=u.find(".carousel-item.active").length?u.find(".carousel-item.active").first():u.find(".carousel-item").first(),i=r.find("img").first(),f,e;if(i.length)if(i[0].complete)if(f=i.height(),f>0)u.css("height",i.height());else{var o=i[0].naturalWidth,s=i[0].naturalHeight,h=u.width()/o*s;u.css("height",h)}else i.on("load",function(){u.css("height",n(this).height())});else t||(e=r.height(),u.css("height",e))},t.fullWidth&&(t.dist=0,lt(),rt&&u.find(".carousel-fixed-item").addClass("with-indicators")),u.hasClass("initialized"))return n(window).trigger("resize"),u.trigger("carouselNext",[1e-6]),!0;u.addClass("initialized");nt=!1;f=o=0;a=[];w=u.find(".carousel-item").first().innerWidth();yt=u.find(".carousel-item").first().innerHeight();s=w*2+t.padding;u.find(".carousel-item").each(function(t){if(a.push(n(this)[0]),rt){var i=n('<li class="indicator-item"><\/li>');t===0&&i.addClass("active");i.click(function(t){t.stopPropagation();var i=n(this).index();at(i)});it.append(i)}});rt&&u.append(it);h=a.length;k="transform";["webkit","Moz","O","ms"].every(function(n){var t=n+"Transform";return typeof document.body.style[t]!="undefined"?(k=t,!1):!0});ti=Materialize.throttle(function(){if(t.fullWidth){w=u.find(".carousel-item").first().innerWidth();var n=u.find(".carousel-item.active").height();s=w*2+t.padding;f=e*2*w;o=f;lt(!0)}else tt()},200);n(window).off("resize.carousel-"+ct).on("resize.carousel-"+ct,ti);ii();tt(f);n(this).on("carouselNext",function(n,t,i){t===undefined&&(t=1);typeof i=="function"&&(d=i);o=s*Math.round(f/s)+s*t;f!==o&&(c=o-f,v=Date.now(),requestAnimationFrame(ut))});n(this).on("carouselPrev",function(n,t,i){t===undefined&&(t=1);typeof i=="function"&&(d=i);o=s*Math.round(f/s)-s*t;f!==o&&(c=o-f,v=Date.now(),requestAnimationFrame(ut))});n(this).on("carouselSet",function(n,t,i){t===undefined&&(t=0);typeof i=="function"&&(d=i);at(t)})})},next:function(t,i){n(this).trigger("carouselNext",[t,i])},prev:function(t,i){n(this).trigger("carouselPrev",[t,i])},set:function(t,i){n(this).trigger("carouselSet",[t,i])},destroy:function(){var t=n(this).attr("data-namespace");n(this).removeAttr("data-namespace");n(this).removeClass("initialized");n(this).find(".indicators").remove();n(this).off("carouselNext carouselPrev carouselSet");n(window).off("resize.carousel-"+t);typeof window.ontouchstart!="undefined"&&n(this).off("touchstart.carousel touchmove.carousel touchend.carousel");n(this).off("mousedown.carousel mousemove.carousel mouseup.carousel mouseleave.carousel click.carousel")}};n.fn.carousel=function(i){if(t[i])return t[i].apply(this,Array.prototype.slice.call(arguments,1));if(typeof i!="object"&&i)n.error("Method "+i+" does not exist on jQuery.carousel");else return t.init.apply(this,arguments)}}(jQuery),function(n){var t={init:function(t){return this.each(function(){var r=n("#"+n(this).attr("data-activates")),l=n("body"),f=n(this),i=f.parent(".tap-target-wrapper"),e=i.find(".tap-target-wave"),u=i.find(".tap-target-origin"),o=f.find(".tap-target-content");i.length||(i=f.wrap(n('<div class="tap-target-wrapper"><\/div>')).parent());o.length||(o=n('<div class="tap-target-content"><\/div>'),f.append(o));e.length||(e=n('<div class="tap-target-wave"><\/div>'),u.length||(u=r.clone(!0,!0),u.addClass("tap-target-origin"),u.removeAttr("id"),u.removeAttr("style"),e.append(u)),i.append(e));var c=function(){i.is(".open")||(i.addClass("open"),setTimeout(function(){u.off("click.tapTarget").on("click.tapTarget",function(){s();u.off("click.tapTarget")});n(document).off("click.tapTarget").on("click.tapTarget",function(){s();n(document).off("click.tapTarget")});var t=Materialize.throttle(function(){h()},200);n(window).off("resize.tapTarget").on("resize.tapTarget",t)},0))},s=function(){i.is(".open")&&(i.removeClass("open"),u.off("click.tapTarget"),n(document).off("click.tapTarget"),n(window).off("resize.tapTarget"))},h=function(){var u=r.css("position")==="fixed",w,v;if(!u)for(w=r.parents(),v=0;v<w.length;v++)if(u=n(w[v]).css("position")=="fixed",u)break;var t=r.outerWidth(),k=r.outerHeight(),c=u?r.offset().top-n(document).scrollTop():r.offset().top,l=u?r.offset().left-n(document).scrollLeft():r.offset().left,y=n(window).width(),p=n(window).height(),d=y/2,g=p/2,nt=l<=d,ot=l>d,tt=c<=g,it=c>g,rt=l>=y*.25&&l<=y*.75,bt=c>=p*.25&&c<=p*.75,s=f.outerWidth(),a=f.outerHeight(),ut=c+k/2-a/2,ft=l+t/2-s/2,st=u?"fixed":"absolute",ht=rt?s:s/2+t,ct=a/2,lt=tt?a/2:0,at=nt&&!rt?s/2-t:0,vt=t,yt=it?"bottom":"top",b=t>k?t*2:t*2,et=b,pt=a/2-et/2,wt=s/2-b/2,h={};h.top=tt?ut:"";h.right=ot?y-ft-s:"";h.bottom=it?p-ut-a:"";h.left=nt?ft:"";h.position=st;i.css(h);o.css({width:ht,height:ct,top:lt,right:0,bottom:0,left:at,padding:vt,verticalAlign:yt});e.css({top:pt,left:wt,width:b,height:et})};t=="open"&&(h(),c());t=="close"&&s()})},open:function(){},close:function(){}};n.fn.tapTarget=function(i){if(t[i]||typeof i=="object")return t.init.apply(this,arguments);n.error("Method "+i+" does not exist on jQuery.tap-target")}}(jQuery)