text: jQuery.easing.jswing=jQuery.easing.swing;
  jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(b,a,e,c,f){return jQuery.easing[jQuery.easing.def](b,a,e,c,f)},easeInQuad:function(b,a,e,c,f){return c*(a/=f)*a+e},easeOutQuad:function(b,a,e,c,f){return-c*(a/=f)*(a-2)+e},easeInOutQuad:function(b,a,e,c,f){return 1>(a/=f/2)?c/2*a*a+e:-c/2*(--a*(a-2)-1)+e},easeInCubic:function(b,a,e,c,f){return c*(a/=f)*a*a+e},easeOutCubic:function(b,a,e,c,f){return c*((a=a/f-1)*a*a+1)+e},easeInOutCubic:function(b,a,e,c,f){return 1>(a/=f/2)?c/2*a*a*a+e:
  c/2*((a-=2)*a*a+2)+e},easeInQuart:function(b,a,e,c,f){return c*(a/=f)*a*a*a+e},easeOutQuart:function(b,a,e,c,f){return-c*((a=a/f-1)*a*a*a-1)+e},easeInOutQuart:function(b,a,e,c,f){return 1>(a/=f/2)?c/2*a*a*a*a+e:-c/2*((a-=2)*a*a*a-2)+e},easeInQuint:function(b,a,e,c,f){return c*(a/=f)*a*a*a*a+e},easeOutQuint:function(b,a,e,c,f){return c*((a=a/f-1)*a*a*a*a+1)+e},easeInOutQuint:function(b,a,e,c,f){return 1>(a/=f/2)?c/2*a*a*a*a*a+e:c/2*((a-=2)*a*a*a*a+2)+e},easeInSine:function(b,a,e,c,f){return-c*Math.cos(a/
  f*(Math.PI/2))+c+e},easeOutSine:function(b,a,e,c,f){return c*Math.sin(a/f*(Math.PI/2))+e},easeInOutSine:function(b,a,e,c,f){return-c/2*(Math.cos(Math.PI*a/f)-1)+e},easeInExpo:function(b,a,e,c,f){return 0==a?e:c*Math.pow(2,10*(a/f-1))+e},easeOutExpo:function(b,a,e,c,f){return a==f?e+c:c*(-Math.pow(2,-10*a/f)+1)+e},easeInOutExpo:function(b,a,e,c,f){return 0==a?e:a==f?e+c:1>(a/=f/2)?c/2*Math.pow(2,10*(a-1))+e:c/2*(-Math.pow(2,-10*--a)+2)+e},easeInCirc:function(b,a,e,c,f){return-c*(Math.sqrt(1-(a/=f)*
  a)-1)+e},easeOutCirc:function(b,a,e,c,f){return c*Math.sqrt(1-(a=a/f-1)*a)+e},easeInOutCirc:function(b,a,e,c,f){return 1>(a/=f/2)?-c/2*(Math.sqrt(1-a*a)-1)+e:c/2*(Math.sqrt(1-(a-=2)*a)+1)+e},easeInElastic:function(b,a,e,c,f){b=1.70158;var d=0,g=c;if(0==a)return e;if(1==(a/=f))return e+c;d||(d=.3*f);g<Math.abs(c)?(g=c,b=d/4):b=d/(2*Math.PI)*Math.asin(c/g);return-(g*Math.pow(2,10*--a)*Math.sin(2*(a*f-b)*Math.PI/d))+e},easeOutElastic:function(b,a,e,c,f){b=1.70158;var d=0,g=c;if(0==a)return e;if(1==(a/=
  f))return e+c;d||(d=.3*f);g<Math.abs(c)?(g=c,b=d/4):b=d/(2*Math.PI)*Math.asin(c/g);return g*Math.pow(2,-10*a)*Math.sin(2*(a*f-b)*Math.PI/d)+c+e},easeInOutElastic:function(b,a,e,c,f){b=1.70158;var d=0,g=c;if(0==a)return e;if(2==(a/=f/2))return e+c;d||(d=.3*f*1.5);g<Math.abs(c)?(g=c,b=d/4):b=d/(2*Math.PI)*Math.asin(c/g);return 1>a?-.5*g*Math.pow(2,10*--a)*Math.sin(2*(a*f-b)*Math.PI/d)+e:g*Math.pow(2,-10*--a)*Math.sin(2*(a*f-b)*Math.PI/d)*.5+c+e},easeInBack:function(b,a,e,c,f,d){void 0==d&&(d=1.70158);
  return c*(a/=f)*a*((d+1)*a-d)+e},easeOutBack:function(b,a,e,c,f,d){void 0==d&&(d=1.70158);return c*((a=a/f-1)*a*((d+1)*a+d)+1)+e},easeInOutBack:function(b,a,e,c,f,d){void 0==d&&(d=1.70158);return 1>(a/=f/2)?c/2*a*a*(((d*=1.525)+1)*a-d)+e:c/2*((a-=2)*a*(((d*=1.525)+1)*a+d)+2)+e},easeInBounce:function(b,a,e,c,f){return c-jQuery.easing.easeOutBounce(b,f-a,0,c,f)+e},easeOutBounce:function(b,a,e,c,f){return(a/=f)<1/2.75?7.5625*c*a*a+e:a<2/2.75?c*(7.5625*(a-=1.5/2.75)*a+.75)+e:a<2.5/2.75?c*(7.5625*(a-=
  2.25/2.75)*a+.9375)+e:c*(7.5625*(a-=2.625/2.75)*a+.984375)+e},easeInOutBounce:function(b,a,e,c,f){return a<f/2?.5*jQuery.easing.easeInBounce(b,2*a,0,c,f)+e:.5*jQuery.easing.easeOutBounce(b,2*a-f,0,c,f)+.5*c+e}});
  !function(b){function a(a){var c=a.length,b=e.type(a);return"function"===b||e.isWindow(a)?!1:1===a.nodeType&&c?!0:"array"===b||0===c||"number"==typeof c&&0<c&&c-1 in a}if(!b.jQuery){var e=function(a,c){return new e.fn.init(a,c)};e.isWindow=function(a){return null!=a&&a==a.window};e.type=function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?f[g.call(a)]||"object":typeof a};e.isArray=Array.isArray||function(a){return"array"===e.type(a)};e.isPlainObject=function(a){var c;if(!a||"object"!==
  e.type(a)||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!d.call(a,"constructor")&&!d.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(b){return!1}for(c in a);return void 0===c||d.call(a,c)};e.each=function(c,b,g){var e,d=0,f=c.length,h=a(c);if(g)if(h)for(;f>d&&(e=b.apply(c[d],g),!1!==e);d++);else for(d in c){if(e=b.apply(c[d],g),!1===e)break}else if(h)for(;f>d&&(e=b.call(c[d],d,c[d]),!1!==e);d++);else for(d in c)if(e=b.call(c[d],d,c[d]),!1===e)break;return c};e.data=function(a,
  b,d){if(void 0===d){d=(a=a[e.expando])&&c[a];if(void 0===b)return d;if(d&&b in d)return d[b]}else if(void 0!==b)return a=a[e.expando]||(a[e.expando]=++e.uuid),c[a]=c[a]||{},c[a][b]=d,d};e.removeData=function(a,b){var d=a[e.expando],g=d&&c[d];g&&e.each(b,function(a,c){delete g[c]})};e.extend=function(){var a,c,b,d,g,f,h=arguments[0]||{},p=1,H=arguments.length,l=!1;"boolean"==typeof h&&(l=h,h=arguments[p]||{},p++);"object"!=typeof h&&"function"!==e.type(h)&&(h={});for(p===H&&(h=this,p--);H>p;p++)if(null!=
  (g=arguments[p]))for(d in g)a=h[d],b=g[d],h!==b&&(l&&b&&(e.isPlainObject(b)||(c=e.isArray(b)))?(c?(c=!1,f=a&&e.isArray(a)?a:[]):f=a&&e.isPlainObject(a)?a:{},h[d]=e.extend(l,f,b)):void 0!==b&&(h[d]=b));return h};e.queue=function(c,b,d){function g(c,b){var d=b||[];if(null!=c)if(a(Object(c))){var e;e="string"==typeof c?[c]:c;for(var f=+e.length,h=0,k=d.length;f>h;)d[k++]=e[h++];if(f!==f)for(;void 0!==e[h];)d[k++]=e[h++];e=(d.length=k,d);!e}else[].push.call(d,c);return d}if(c){b=(b||"fx")+"queue";var f=
  e.data(c,b);return d?(!f||e.isArray(d)?f=e.data(c,b,g(d)):f.push(d),f):f||[]}};e.dequeue=function(a,c){e.each(a.nodeType?[a]:a,function(a,b){c=c||"fx";var d=e.queue(b,c),g=d.shift();"inprogress"===g&&(g=d.shift());g&&("fx"===c&&d.unshift("inprogress"),g.call(b,function(){e.dequeue(b,c)}))})};e.fn=e.prototype={init:function(a){if(a.nodeType)return this[0]=a,this;throw Error("Not a DOM node.");},offset:function(){var a=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:a.top+
  (b.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:a.left+(b.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function a(){for(var c=this.offsetParent||document;c&&"html"===!c.nodeType.toLowerCase&&"static"===c.style.position;)c=c.offsetParent;return c||document}var c=this[0],a=a.apply(c),b=this.offset(),d=/^(?:body|html)$/i.test(a.nodeName)?{top:0,left:0}:e(a).offset();return b.top-=parseFloat(c.style.marginTop)||0,b.left-=parseFloat(c.style.marginLeft)||
  0,a.style&&(d.top+=parseFloat(a.style.borderTopWidth)||0,d.left+=parseFloat(a.style.borderLeftWidth)||0),{top:b.top-d.top,left:b.left-d.left}}};var c={};e.expando="velocity"+(new Date).getTime();e.uuid=0;for(var f={},d=f.hasOwnProperty,g=f.toString,h="Boolean Number String Function Array Date RegExp Object Error".split(" "),p=0;p<h.length;p++)f["[object "+h[p]+"]"]=h[p].toLowerCase();e.fn.init.prototype=e.fn;b.Velocity={Utilities:e}}}(window);
  (function(b){"object"==typeof module&&"object"==typeof module.exports?module.exports=b():"function"==typeof define&&define.amd?define(b):b()})(function(){return function(b,a,e,c){function f(a){for(var c=-1,b=a?a.length:0,d=[];++c<b;){var g=a[c];g&&d.push(g)}return d}function d(a){return r.isWrapped(a)?a=[].slice.call(a):r.isNode(a)&&(a=[a]),a}function g(a){a=q.data(a,"velocity");return null===a?c:a}function h(a){return function(c){return 1/a*Math.round(c*a)}}function p(c,b,d,g){function e(a,c,b){return(((1-
  3*b+3*c)*a+(3*b-6*c))*a+3*c)*a}var f="Float32Array"in a;if(4!==arguments.length)return!1;for(var k=0;4>k;++k)if("number"!=typeof arguments[k]||isNaN(arguments[k])||!isFinite(arguments[k]))return!1;c=Math.min(c,1);d=Math.min(d,1);c=Math.max(c,0);d=Math.max(d,0);var h=f?new Float32Array(11):Array(11),l=!1,f=function(a){if(!l&&(l=!0,c!=b||d!=g))for(var f=0;11>f;++f)h[f]=e(.1*f,c,d);if(c!==b||d!==g)if(0===a)a=0;else if(1===a)a=1;else{for(var k=0,f=1;10!=f&&h[f]<=a;++f)k+=.1;--f;var f=k+(a-h[f])/(h[f+
  1]-h[f])*.1,m=3*(1-3*d+3*c)*f*f+2*(3*d-6*c)*f+3*c;if(.001<=m){for(k=0;4>k;++k){m=3*(1-3*d+3*c)*f*f+2*(3*d-6*c)*f+3*c;if(0===m)break;var O=e(f,c,d)-a,f=f-O/m}a=f}else if(0==m)a=f;else{var f=k,k=k+.1,p=0;do O=f+(k-f)/2,m=e(O,c,d)-a,0<m?k=O:f=O;while(1E-7<Math.abs(m)&&10>++p);a=O}a=e(a,b,g)}return a};f.getControlPoints=function(){return[{x:c,y:b},{x:d,y:g}]};var m="generateBezier("+[c,b,d,g]+")";return f.toString=function(){return m},f}function m(a,c){var b=a;return r.isString(a)?l.Easings[a]||(b=!1):
  b=r.isArray(a)&&1===a.length?h.apply(null,a):r.isArray(a)&&2===a.length?B.apply(null,a.concat([c])):r.isArray(a)&&4===a.length?p.apply(null,a):!1,!1===b&&(b=l.Easings[l.defaults.easing]?l.defaults.easing:H),b}function J(a){if(a){a=(new Date).getTime();var b=l.State.calls.length;1E4<b&&(l.State.calls=f(l.State.calls));for(var d=0;b>d;d++)if(l.State.calls[d]){var e=l.State.calls[d],h=e[0],m=e[2],p=e[3],D=!!p,n=null;p||(p=l.State.calls[d][3]=a-16);for(var R=Math.min((a-p)/m.duration,1),U=0,I=h.length;I>
  U;U++){var L=h[U],u=L.element;if(g(u)){var w=!1;m.display!==c&&null!==m.display&&"none"!==m.display&&("flex"===m.display&&q.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],function(a,c){k.setPropertyValue(u,"display",c)}),k.setPropertyValue(u,"display",m.display));m.visibility!==c&&"hidden"!==m.visibility&&k.setPropertyValue(u,"visibility",m.visibility);for(var x in L)if("element"!==x){var t=L[x],y,H=r.isString(t.easing)?l.Easings[t.easing]:t.easing;if(1===R)y=t.endValue;else{var B=t.endValue-
  t.startValue;if(y=t.startValue+B*H(R,m,B),!D&&y===t.currentValue)continue}if(t.currentValue=y,"tween"===x)n=y;else{if(k.Hooks.registered[x]){var M=k.Hooks.getRoot(x);(H=g(u).rootPropertyValueCache[M])&&(t.rootPropertyValue=H)}t=k.setPropertyValue(u,x,t.currentValue+(0===parseFloat(y)?"":t.unitType),t.rootPropertyValue,t.scrollData);k.Hooks.registered[x]&&(g(u).rootPropertyValueCache[M]=k.Normalizations.registered[M]?k.Normalizations.registered[M]("extract",null,t[1]):t[1]);"transform"===t[0]&&(w=
  !0)}}m.mobileHA&&g(u).transformCache.translate3d===c&&(g(u).transformCache.translate3d="(0px, 0px, 0px)",w=!0);w&&k.flushTransformCache(u)}}m.display!==c&&"none"!==m.display&&(l.State.calls[d][2].display=!1);m.visibility!==c&&"hidden"!==m.visibility&&(l.State.calls[d][2].visibility=!1);m.progress&&m.progress.call(e[1],e[1],R,Math.max(0,p+m.duration-a),p,n);1===R&&F(d)}}l.State.isTicking&&Q(J)}function F(a,b){if(!l.State.calls[a])return!1;for(var d=l.State.calls[a][0],e=l.State.calls[a][1],f=l.State.calls[a][2],
  h=l.State.calls[a][4],m=!1,p=0,r=d.length;r>p;p++){var n=d[p].element;if(b||f.loop||("none"===f.display&&k.setPropertyValue(n,"display",f.display),"hidden"===f.visibility&&k.setPropertyValue(n,"visibility",f.visibility)),!0!==f.loop&&(q.queue(n)[1]===c||!/\.velocityQueueEntryFlag/i.test(q.queue(n)[1]))&&g(n)){g(n).isAnimating=!1;g(n).rootPropertyValueCache={};var F=!1;q.each(k.Lists.transforms3D,function(a,b){var d=/^scale/.test(b)?1:0,e=g(n).transformCache[b];g(n).transformCache[b]!==c&&(new RegExp("^\\("+
  d+"[^.]")).test(e)&&(F=!0,delete g(n).transformCache[b])});f.mobileHA&&(F=!0,delete g(n).transformCache.translate3d);F&&k.flushTransformCache(n);k.Values.removeClass(n,"velocity-animating")}if(!b&&f.complete&&!f.loop&&p===r-1)try{f.complete.call(e,e)}catch(u){setTimeout(function(){throw u;},1)}h&&!0!==f.loop&&h(e);g(n)&&!0===f.loop&&!b&&(q.each(g(n).tweensContainer,function(a,c){/^rotate/.test(a)&&360===parseFloat(c.endValue)&&(c.endValue=0,c.startValue=360);/^backgroundPosition/.test(a)&&100===parseFloat(c.endValue)&&
  "%"===c.unitType&&(c.endValue=0,c.startValue=100)}),l(n,"reverse",{loop:!0,delay:f.delay}));!1!==f.queue&&q.dequeue(n,f.queue)}l.State.calls[a]=!1;d=0;for(e=l.State.calls.length;e>d;d++)if(!1!==l.State.calls[d]){m=!0;break}!1===m&&(l.State.isTicking=!1,delete l.State.calls,l.State.calls=[])}var n=function(){if(e.documentMode)return e.documentMode;for(var a=7;4<a;a--){var b=e.createElement("div");if(b.innerHTML="\x3c!--[if IE "+a+"]><span></span><![endif]--\x3e",b.getElementsByTagName("span").length)return a}return c}(),
  u=function(){var c=0;return a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||function(a){var b=(new Date).getTime(),d;return d=Math.max(0,16-(b-c)),c=b+d,setTimeout(function(){a(b+d)},d)}}(),r={isString:function(a){return"string"==typeof a},isArray:Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},isFunction:function(a){return"[object Function]"===Object.prototype.toString.call(a)},isNode:function(a){return a&&a.nodeType},isNodeList:function(a){return"object"==
  typeof a&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(a))&&a.length!==c&&(0===a.length||"object"==typeof a[0]&&0<a[0].nodeType)},isWrapped:function(c){return c&&(c.jquery||a.Zepto&&a.Zepto.zepto.isZ(c))},isSVG:function(c){return a.SVGElement&&c instanceof a.SVGElement},isEmptyObject:function(a){for(var c in a)return!1;return!0}},q,x=!1;if(b.fn&&b.fn.jquery?(q=b,x=!0):q=a.Velocity.Utilities,8>=n&&!x)throw Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");
  if(7>=n)return void(jQuery.fn.velocity=jQuery.fn.animate);var H="swing",l={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:a.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:e.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},
  Utilities:q,Redirects:{},Easings:{},Promise:a.Promise,defaults:{queue:"",duration:400,easing:H,begin:c,complete:c,progress:c,display:c,visibility:c,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(a){q.data(a,"velocity",{isSVG:r.isSVG(a),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};a.pageYOffset!==c?(l.State.scrollAnchor=a,l.State.scrollPropertyLeft="pageXOffset",l.State.scrollPropertyTop=
  "pageYOffset"):(l.State.scrollAnchor=e.documentElement||e.body.parentNode||e.body,l.State.scrollPropertyLeft="scrollLeft",l.State.scrollPropertyTop="scrollTop");var B=function(){function a(c,b,d){var e=c.v+d.dv*b;return{dx:e,dv:-c.tension*(c.x+d.dx*b)-c.friction*e}}function c(b,d){var e={dx:b.v,dv:-b.tension*b.x-b.friction*b.v},g=a(b,.5*d,e),f=a(b,.5*d,g),k=a(b,d,f),h=1/6*(e.dv+2*(g.dv+f.dv)+k.dv);return b.x+=1/6*(e.dx+2*(g.dx+f.dx)+k.dx)*d,b.v+=h*d,b}return function P(a,b,d){var e={x:-1,v:0,tension:null,
  friction:null},g=[0],f=0,k,h,N;a=parseFloat(a)||500;b=parseFloat(b)||20;d=d||null;e.tension=a;e.friction=b;for((k=null!==d)?(f=P(a,b),h=f/d*.016):h=.016;N=c(N||e,h),g.push(1+N.x),f+=16,1E-4<Math.abs(N.x)&&1E-4<Math.abs(N.v););return k?function(a){return g[a*(g.length-1)|0]}:f}}();l.Easings={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},spring:function(a){return 1-Math.cos(4.5*a*Math.PI)*Math.exp(6*-a)}};q.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(a,c){l.Easings[c[0]]=p.apply(null,c[1])});var k=l.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".split(" "),transformsBase:"translateX translateY scale scaleX scaleY skewX skewY rotateZ".split(" "),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 a=0;a<k.Lists.colors.length;a++)k.Hooks.templates[k.Lists.colors[a]]=["Red Green Blue Alpha","color"===k.Lists.colors[a]?"0 0 0 1":"255 255 255 1"];var c,b,d;if(n)for(c in k.Hooks.templates)b=k.Hooks.templates[c],d=b[0].split(" "),b=b[1].match(k.RegEx.valueSplit),"Color"===d[0]&&(d.push(d.shift()),b.push(b.shift()),k.Hooks.templates[c]=[d.join(" "),
  b.join(" ")]);for(c in k.Hooks.templates)for(a in b=k.Hooks.templates[c],d=b[0].split(" "),d)k.Hooks.registered[c+d[a]]=[c,a]},getRoot:function(a){var c=k.Hooks.registered[a];return c?c[0]:a},cleanRootPropertyValue:function(a,c){return k.RegEx.valueUnwrap.test(c)&&(c=c.match(k.RegEx.valueUnwrap)[1]),k.Values.isCSSNullValue(c)&&(c=k.Hooks.templates[a][1]),c},extractValue:function(a,c){var b=k.Hooks.registered[a];if(b){var d=b[1];return c=k.Hooks.cleanRootPropertyValue(b[0],c),c.toString().match(k.RegEx.valueSplit)[d]}return c},
  injectValue:function(a,c,b){if(a=k.Hooks.registered[a]){var d=a[1],e;return b=k.Hooks.cleanRootPropertyValue(a[0],b),e=b.toString().match(k.RegEx.valueSplit),e[d]=c,e.join(" ")}return b}},Normalizations:{registered:{clip:function(a,c,b){switch(a){case "name":return"clip";case "extract":var d;return k.RegEx.wrappedValueAlreadyExtracted.test(b)?d=b:(d=b.toString().match(k.RegEx.valueUnwrap),d=d?d[1].replace(/,(\s+)?/g," "):b),d;case "inject":return"rect("+b+")"}},blur:function(a,c,b){switch(a){case "name":return l.State.isFirefox?
  "filter":"-webkit-filter";case "extract":return a=parseFloat(b),a||0===a||(a=(b=b.toString().match(/blur\(([0-9]+[A-z]+)\)/i))?b[1]:0),a;case "inject":return parseFloat(b)?"blur("+b+")":"none"}},opacity:function(a,c,b){if(8>=n)switch(a){case "name":return"filter";case "extract":return(a=b.toString().match(/alpha\(opacity=(.*)\)/i))?a[1]/100:1;case "inject":return c.style.zoom=1,1<=parseFloat(b)?"":"alpha(opacity="+parseInt(100*parseFloat(b),10)+")"}else switch(a){case "name":return"opacity";case "extract":return b;
  case "inject":return b}}},register:function(){9>=n||l.State.isGingerbread||(k.Lists.transformsBase=k.Lists.transformsBase.concat(k.Lists.transforms3D));for(var a=0;a<k.Lists.transformsBase.length;a++)!function(){var b=k.Lists.transformsBase[a];k.Normalizations.registered[b]=function(a,d,e){switch(a){case "name":return"transform";case "extract":return g(d)===c||g(d).transformCache[b]===c?/^scale/i.test(b)?1:0:g(d).transformCache[b].replace(/[()]/g,"");case "inject":a=!1;switch(b.substr(0,b.length-
  1)){case "translate":a=!/(%|px|em|rem|vw|vh|\d)$/i.test(e);break;case "scal":case "scale":l.State.isAndroid&&g(d).transformCache[b]===c&&1>e&&(e=1);a=!/(\d)$/i.test(e);break;case "skew":a=!/(deg|\d)$/i.test(e);break;case "rotate":a=!/(deg|\d)$/i.test(e)}return a||(g(d).transformCache[b]="("+e+")"),g(d).transformCache[b]}}}();for(a=0;a<k.Lists.colors.length;a++)!function(){var b=k.Lists.colors[a];k.Normalizations.registered[b]=function(a,d,e){switch(a){case "name":return b;case "extract":if(!k.RegEx.wrappedValueAlreadyExtracted.test(e)){var g;
  a={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(e)?g=a[e]!==c?a[e]:a.black:k.RegEx.isHex.test(e)?g="rgb("+k.Values.hexToRgb(e).join(" ")+")":/^rgba?\(/i.test(e)||(g=a.black);e=(g||e).toString().match(k.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=n||3!==e.split(" ").length||(e+=" 1"),e;case "inject":return 8>=n?4===e.split(" ").length&&(e=e.split(/\s+/).slice(0,3).join(" ")):
  3===e.split(" ").length&&(e+=" 1"),(8>=n?"rgb":"rgba")+"("+e.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(a){return a.replace(/-(\w)/g,function(a,c){return c.toUpperCase()})},SVGAttribute:function(a){var c="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(n||l.State.isAndroid&&!l.State.isChrome)&&(c+="|transform"),(new RegExp("^("+c+")$","i")).test(a)},prefixCheck:function(a){if(l.State.prefixMatches[a])return[l.State.prefixMatches[a],!0];for(var c=["","Webkit",
  "Moz","ms","O"],b=0,d=c.length;d>b;b++){var e;if(e=0===b?a:c[b]+a.replace(/^\w/,function(a){return a.toUpperCase()}),r.isString(l.State.prefixElement.style[e]))return l.State.prefixMatches[a]=e,[e,!0]}return[a,!1]}},Values:{hexToRgb:function(a){var c;return a=a.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(a,c,b,d){return c+c+b+b+d+d}),c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a),c?[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]:[0,0,0]},isCSSNullValue:function(a){return 0==
  a||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(a)},getUnitType:function(a){return/^(rotate|skew)/i.test(a)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(a)?"":"px"},getDisplayType:function(a){a=a&&a.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(a)?"inline":
  /^(li)$/i.test(a)?"list-item":/^(tr)$/i.test(a)?"table-row":/^(table)$/i.test(a)?"table":/^(tbody)$/i.test(a)?"table-row-group":"block"},addClass:function(a,c){a.classList?a.classList.add(c):a.className+=(a.className.length?" ":"")+c},removeClass:function(a,c){a.classList?a.classList.remove(c):a.className=a.className.toString().replace(new RegExp("(^|\\s)"+c.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(b,d,e,f){function h(b,d){function e(){l&&k.setPropertyValue(b,"display",
  "none")}var m=0;if(8>=n)m=q.css(b,d);else{var l=!1;if(/^(width|height)$/.test(d)&&0===k.getPropertyValue(b,"display")&&(l=!0,k.setPropertyValue(b,"display",k.Values.getDisplayType(b))),!f){if("height"===d&&"border-box"!==k.getPropertyValue(b,"boxSizing").toString().toLowerCase())return m=b.offsetHeight-(parseFloat(k.getPropertyValue(b,"borderTopWidth"))||0)-(parseFloat(k.getPropertyValue(b,"borderBottomWidth"))||0)-(parseFloat(k.getPropertyValue(b,"paddingTop"))||0)-(parseFloat(k.getPropertyValue(b,
  "paddingBottom"))||0),e(),m;if("width"===d&&"border-box"!==k.getPropertyValue(b,"boxSizing").toString().toLowerCase())return m=b.offsetWidth-(parseFloat(k.getPropertyValue(b,"borderLeftWidth"))||0)-(parseFloat(k.getPropertyValue(b,"borderRightWidth"))||0)-(parseFloat(k.getPropertyValue(b,"paddingLeft"))||0)-(parseFloat(k.getPropertyValue(b,"paddingRight"))||0),e(),m}m=g(b)===c?a.getComputedStyle(b,null):g(b).computedStyle?g(b).computedStyle:g(b).computedStyle=a.getComputedStyle(b,null);"borderColor"===
  d&&(d="borderTopColor");m=9===n&&"filter"===d?m.getPropertyValue(d):m[d];""!==m&&null!==m||(m=b.style[d]);e()}if("auto"===m&&/^(top|right|bottom|left)$/i.test(d)){var p=h(b,"position");("fixed"===p||"absolute"===p&&/top|left/i.test(d))&&(m=q(b).position()[d]+"px")}return m}var m;if(k.Hooks.registered[d]){var p=k.Hooks.getRoot(d);e===c&&(e=k.getPropertyValue(b,k.Names.prefixCheck(p)[0]));k.Normalizations.registered[p]&&(e=k.Normalizations.registered[p]("extract",b,e));m=k.Hooks.extractValue(d,e)}else k.Normalizations.registered[d]&&
  (e=k.Normalizations.registered[d]("name",b),"transform"!==e&&(p=h(b,k.Names.prefixCheck(e)[0]),k.Values.isCSSNullValue(p)&&k.Hooks.templates[d]&&(p=k.Hooks.templates[d][1])),m=k.Normalizations.registered[d]("extract",b,p));if(!/^[\d-]/.test(m))if(g(b)&&g(b).isSVG&&k.Names.SVGAttribute(d))if(/^(height|width)$/i.test(d))try{m=b.getBBox()[d]}catch(r){m=0}else m=b.getAttribute(d);else m=h(b,k.Names.prefixCheck(d)[0]);return k.Values.isCSSNullValue(m)&&(m=0),2<=l.debug&&console.log("Get "+d+": "+m),m},
  setPropertyValue:function(b,c,d,e,f){var m=c;if("scroll"===c)f.container?f.container["scroll"+f.direction]=d:"Left"===f.direction?a.scrollTo(d,f.alternateValue):a.scrollTo(f.alternateValue,d);else if(k.Normalizations.registered[c]&&"transform"===k.Normalizations.registered[c]("name",b))k.Normalizations.registered[c]("inject",b,d),m="transform",d=g(b).transformCache[c];else{k.Hooks.registered[c]&&(f=c,c=k.Hooks.getRoot(c),e=e||k.getPropertyValue(b,c),d=k.Hooks.injectValue(f,d,e));if(k.Normalizations.registered[c]&&
  (d=k.Normalizations.registered[c]("inject",b,d),c=k.Normalizations.registered[c]("name",b)),m=k.Names.prefixCheck(c)[0],8>=n)try{b.style[m]=d}catch(h){l.debug&&console.log("Browser does not support ["+d+"] for ["+m+"]")}else g(b)&&g(b).isSVG&&k.Names.SVGAttribute(c)?b.setAttribute(c,d):b.style[m]=d;2<=l.debug&&console.log("Set "+c+" ("+m+"): "+d)}return[m,d]},flushTransformCache:function(a){function b(c){return parseFloat(k.getPropertyValue(a,c))}var c="";if((n||l.State.isAndroid&&!l.State.isChrome)&&
  g(a).isSVG){var d={translate:[b("translateX"),b("translateY")],skewX:[b("skewX")],skewY:[b("skewY")],scale:1!==b("scale")?[b("scale"),b("scale")]:[b("scaleX"),b("scaleY")],rotate:[b("rotateZ"),0,0]};q.each(g(a).transformCache,function(a){/^translate/i.test(a)?a="translate":/^scale/i.test(a)?a="scale":/^rotate/i.test(a)&&(a="rotate");d[a]&&(c+=a+"("+d[a].join(" ")+") ",delete d[a])})}else{var e,f;q.each(g(a).transformCache,function(b){return e=g(a).transformCache[b],"transformPerspective"===b?(f=e,
  !0):(9===n&&"rotateZ"===b&&(b="rotate"),void(c+=b+e+" "))});f&&(c="perspective"+f+" "+c)}k.setPropertyValue(a,"transform",c)}};k.Hooks.register();k.Normalizations.register();l.hook=function(a,b,e){var f=c;return a=d(a),q.each(a,function(a,d){if(g(d)===c&&l.init(d),e===c)f===c&&(f=l.CSS.getPropertyValue(d,b));else{var m=l.CSS.setPropertyValue(d,b,e);"transform"===m[0]&&l.CSS.flushTransformCache(d);f=m}}),f};var T=function(){function b(){return p?I.promise||null:n}function f(){function b(f){function u(a,
  b){var e=c,f=c,g=c;return r.isArray(a)?(e=a[0],!r.isArray(a[1])&&/^[\d-]/.test(a[1])||r.isFunction(a[1])||k.RegEx.isHex.test(a[1])?g=a[1]:(r.isString(a[1])&&!k.RegEx.isHex.test(a[1])||r.isArray(a[1]))&&(f=b?a[1]:m(a[1],h.duration),a[2]!==c&&(g=a[2]))):e=a,b||(f=f||h.easing),r.isFunction(e)&&(e=e.call(d,H,x)),r.isFunction(g)&&(g=g.call(d,H,x)),[e||0,f,g]}function F(a,b){var c,d;return d=(b||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(a){return c=a,""}),c||(c=k.Values.getUnitType(a)),
  [d,c]}function w(){var b=d.parentNode||e.body,c=k.getPropertyValue(d,"position"),f=k.getPropertyValue(d,"fontSize"),h=c===y.lastPosition&&b===y.lastParent,m=f===y.lastFontSize;y.lastParent=b;y.lastPosition=c;y.lastFontSize=f;var p={};if(m&&h)p.emToPx=y.lastEmToPx,p.percentToPxWidth=y.lastPercentToPxWidth,p.percentToPxHeight=y.lastPercentToPxHeight;else{var n=g(d).isSVG?e.createElementNS("http://www.w3.org/2000/svg","rect"):e.createElement("div");l.init(n);b.appendChild(n);q.each(["overflow","overflowX",
  "overflowY"],function(a,b){l.CSS.setPropertyValue(n,b,"hidden")});l.CSS.setPropertyValue(n,"position",c);l.CSS.setPropertyValue(n,"fontSize",f);l.CSS.setPropertyValue(n,"boxSizing","content-box");q.each("minWidth maxWidth width minHeight maxHeight height".split(" "),function(a,b){l.CSS.setPropertyValue(n,b,"100%")});l.CSS.setPropertyValue(n,"paddingLeft","100em");p.percentToPxWidth=y.lastPercentToPxWidth=(parseFloat(k.getPropertyValue(n,"width",null,!0))||1)/100;p.percentToPxHeight=y.lastPercentToPxHeight=
  (parseFloat(k.getPropertyValue(n,"height",null,!0))||1)/100;p.emToPx=y.lastEmToPx=(parseFloat(k.getPropertyValue(n,"paddingLeft"))||1)/100;b.removeChild(n)}return null===y.remToPx&&(y.remToPx=parseFloat(k.getPropertyValue(e.body,"fontSize"))||16),null===y.vwToPx&&(y.vwToPx=parseFloat(a.innerWidth)/100,y.vhToPx=parseFloat(a.innerHeight)/100),p.remToPx=y.remToPx,p.vwToPx=y.vwToPx,p.vhToPx=y.vhToPx,1<=l.debug&&console.log("Unit ratios: "+JSON.stringify(p),d),p}if(h.begin&&0===H)try{h.begin.call(E,E)}catch(W){setTimeout(function(){throw W;
  },1)}if("scroll"===L){var t=/^x$/i.test(h.axis)?"Left":"Top",z=parseFloat(h.offset)||0,A,M,v;h.container?r.isWrapped(h.container)||r.isNode(h.container)?(h.container=h.container[0]||h.container,A=h.container["scroll"+t],v=A+q(d).position()[t.toLowerCase()]+z):h.container=null:(A=l.State.scrollAnchor[l.State["scrollProperty"+t]],M=l.State.scrollAnchor[l.State["scrollProperty"+("Left"===t?"Top":"Left")]],v=q(d).offset()[t.toLowerCase()]+z);p={scroll:{rootPropertyValue:!1,startValue:A,currentValue:A,
  endValue:v,unitType:"",easing:h.easing,scrollData:{container:h.container,direction:t,alternateValue:M}},element:d};l.debug&&console.log("tweensContainer (scroll): ",p.scroll,d)}else if("reverse"===L){if(!g(d).tweensContainer)return void q.dequeue(d,h.queue);"none"===g(d).opts.display&&(g(d).opts.display="auto");"hidden"===g(d).opts.visibility&&(g(d).opts.visibility="visible");g(d).opts.loop=!1;g(d).opts.begin=null;g(d).opts.complete=null;C.easing||delete h.easing;C.duration||delete h.duration;h=q.extend({},
  g(d).opts,h);var t=q.extend(!0,{},g(d).tweensContainer),G;for(G in t)"element"!==G&&(z=t[G].startValue,t[G].startValue=t[G].currentValue=t[G].endValue,t[G].endValue=z,r.isEmptyObject(C)||(t[G].easing=h.easing),l.debug&&console.log("reverse tweensContainer ("+G+"): "+JSON.stringify(t[G]),d));p=t}else if("start"===L){g(d).tweensContainer&&!0===g(d).isAnimating&&(t=g(d).tweensContainer);q.each(D,function(a,b){if(RegExp("^"+k.Lists.colors.join("$|^")+"$").test(a)){var d=u(b,!0),e=d[0],f=d[1],h=d[2];if(k.RegEx.isHex.test(e)){for(var d=
  ["Red","Green","Blue"],e=k.Values.hexToRgb(e),h=h?k.Values.hexToRgb(h):c,g=0;g<d.length;g++){var m=[e[g]];f&&m.push(f);h!==c&&m.push(h[g]);D[a+d[g]]=m}delete D[a]}}});for(z in D)if(v=u(D[z]),A=v[0],M=v[1],v=v[2],z=k.Names.camelCase(z),f=k.Hooks.getRoot(z),G=!1,g(d).isSVG||"tween"===f||!1!==k.Names.prefixCheck(f)[1]||k.Normalizations.registered[f]!==c){(h.display!==c&&null!==h.display&&"none"!==h.display||h.visibility!==c&&"hidden"!==h.visibility)&&/opacity|filter/.test(z)&&!v&&0!==A&&(v=0);h._cacheValues&&
  t&&t[z]?(v===c&&(v=t[z].endValue+t[z].unitType),G=g(d).rootPropertyValueCache[f]):k.Hooks.registered[z]?v===c?(G=k.getPropertyValue(d,f),v=k.getPropertyValue(d,z,G)):G=k.Hooks.templates[f][1]:v===c&&(v=k.getPropertyValue(d,z));var B,K,P=!1;if(B=F(z,v),v=B[0],f=B[1],B=F(z,A),A=B[0].replace(/^([+-\/*])=/,function(a,b){return P=b,""}),K=B[1],v=parseFloat(v)||0,A=parseFloat(A)||0,"%"===K&&(/^(fontSize|lineHeight)$/.test(z)?(A/=100,K="em"):/^scale/.test(z)?(A/=100,K=""):/(Red|Green|Blue)$/i.test(z)&&(A=
  A/100*255,K="")),/[\/*]/.test(P))K=f;else if(f!==K&&0!==v)if(0===A)K=f;else{n=n||w();var N=/margin|padding|left|right|width|text|word|letter/i.test(z)||/X$/.test(z)||"x"===z?"x":"y";switch(f){case "%":v*="x"===N?n.percentToPxWidth:n.percentToPxHeight;break;case "px":break;default:v*=n[f+"ToPx"]}switch(K){case "%":v*=1/("x"===N?n.percentToPxWidth:n.percentToPxHeight);break;case "px":break;default:v*=1/n[K+"ToPx"]}}switch(P){case "+":A=v+A;break;case "-":A=v-A;break;case "*":A*=v;break;case "/":A=v/
  A}p[z]={rootPropertyValue:G,startValue:v,currentValue:v,endValue:A,unitType:K,easing:M};l.debug&&console.log("tweensContainer ("+z+"): "+JSON.stringify(p[z]),d)}else l.debug&&console.log("Skipping ["+f+"] due to a lack of browser support.");p.element=d}p.element&&(k.Values.addClass(d,"velocity-animating"),V.push(p),""===h.queue&&(g(d).tweensContainer=p,g(d).opts=h),g(d).isAnimating=!0,H===x-1?(l.State.calls.push([V,E,h,null,I.resolver]),!1===l.State.isTicking&&(l.State.isTicking=!0,J())):H++)}var d=
  this,h=q.extend({},l.defaults,C),p={},n;switch(g(d)===c&&l.init(d),parseFloat(h.delay)&&!1!==h.queue&&q.queue(d,h.queue,function(a){l.velocityQueueEntryFlag=!0;g(d).delayTimer={setTimeout:setTimeout(a,parseFloat(h.delay)),next:a}}),h.duration.toString().toLowerCase()){case "fast":h.duration=200;break;case "normal":h.duration=400;break;case "slow":h.duration=600;break;default:h.duration=parseFloat(h.duration)||1}!1!==l.mock&&(!0===l.mock?h.duration=h.delay=1:(h.duration*=parseFloat(l.mock)||1,h.delay*=
  parseFloat(l.mock)||1));h.easing=m(h.easing,h.duration);h.begin&&!r.isFunction(h.begin)&&(h.begin=null);h.progress&&!r.isFunction(h.progress)&&(h.progress=null);h.complete&&!r.isFunction(h.complete)&&(h.complete=null);h.display!==c&&null!==h.display&&(h.display=h.display.toString().toLowerCase(),"auto"===h.display&&(h.display=l.CSS.Values.getDisplayType(d)));h.visibility!==c&&null!==h.visibility&&(h.visibility=h.visibility.toString().toLowerCase());h.mobileHA=h.mobileHA&&l.State.isMobile&&!l.State.isGingerbread;
  !1===h.queue?h.delay?setTimeout(b,h.delay):b():q.queue(d,h.queue,function(a,c){return!0===c?(I.promise&&I.resolver(E),!0):(l.velocityQueueEntryFlag=!0,void b(a))});""!==h.queue&&"fx"!==h.queue||"inprogress"===q.queue(d)[0]||q.dequeue(d)}var h=arguments[0]&&(arguments[0].p||q.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||r.isString(arguments[0].properties)),p,n,u,E,D,C;if(r.isWrapped(this)?(p=!1,u=0,E=this,n=this):(p=!0,u=1,E=h?arguments[0].elements||arguments[0].e:arguments[0]),
  E=d(E)){h?(D=arguments[0].properties||arguments[0].p,C=arguments[0].options||arguments[0].o):(D=arguments[u],C=arguments[u+1]);var x=E.length,H=0;if(!/^(stop|finish)$/i.test(D)&&!q.isPlainObject(C))for(C={},h=u+1;h<arguments.length;h++)r.isArray(arguments[h])||!/^(fast|normal|slow)$/i.test(arguments[h])&&!/^\d/.test(arguments[h])?r.isString(arguments[h])||r.isArray(arguments[h])?C.easing=arguments[h]:r.isFunction(arguments[h])&&(C.complete=arguments[h]):C.duration=arguments[h];var I={promise:null,
  resolver:null,rejecter:null};p&&l.Promise&&(I.promise=new l.Promise(function(a,b){I.resolver=a;I.rejecter=b}));var L;switch(D){case "scroll":L="scroll";break;case "reverse":L="reverse";break;case "finish":case "stop":q.each(E,function(a,b){g(b)&&g(b).delayTimer&&(clearTimeout(g(b).delayTimer.setTimeout),g(b).delayTimer.next&&g(b).delayTimer.next(),delete g(b).delayTimer)});var B=[];return q.each(l.State.calls,function(a,b){b&&q.each(b[1],function(d,e){var f=C===c?"":C;return!0===f||b[2].queue===f||
  C===c&&!1===b[2].queue?void q.each(E,function(c,d){d===e&&((!0===C||r.isString(C))&&(q.each(q.queue(d,r.isString(C)?C:""),function(a,b){r.isFunction(b)&&b(null,!0)}),q.queue(d,r.isString(C)?C:"",[])),"stop"===D?(g(d)&&g(d).tweensContainer&&!1!==f&&q.each(g(d).tweensContainer,function(a,b){b.endValue=b.currentValue}),B.push(a)):"finish"===D&&(b[2].duration=1))}):!0})}),"stop"===D&&(q.each(B,function(a,b){F(b,!0)}),I.promise&&I.resolver(E)),b();default:if(!q.isPlainObject(D)||r.isEmptyObject(D)){if(r.isString(D)&&
  l.Redirects[D]){var w=q.extend({},C),Q=w.duration,t=w.delay||0;return!0===w.backwards&&(E=q.extend(!0,[],E).reverse()),q.each(E,function(a,b){parseFloat(w.stagger)?w.delay=t+parseFloat(w.stagger)*a:r.isFunction(w.stagger)&&(w.delay=t+w.stagger.call(b,a,x));w.drag&&(w.duration=parseFloat(Q)||(/^(callout|transition)/.test(D)?1E3:400),w.duration=Math.max(w.duration*(w.backwards?1-a/x:(a+1)/x),.75*w.duration,200));l.Redirects[D].call(b,b,w||{},a,x,E,I.promise?I:c)}),b()}h="Velocity: First argument ("+
  D+") was not a property map, a known action, or a registered redirect. Aborting.";return I.promise?I.rejecter(Error(h)):console.log(h),b()}L="start"}var y={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},V=[];q.each(E,function(a,b){r.isNode(b)&&f.call(b)});w=q.extend({},l.defaults,C);if(w.loop=parseInt(w.loop),h=2*w.loop-1,w.loop)for(u=0;h>u;u++){var S={delay:w.delay,progress:w.progress};
  u===h-1&&(S.display=w.display,S.visibility=w.visibility,S.complete=w.complete);T(E,"reverse",S)}return b()}},l=q.extend(T,l);l.animate=T;var Q=a.requestAnimationFrame||u;return l.State.isMobile||e.hidden===c||e.addEventListener("visibilitychange",function(){e.hidden?(Q=function(a){return setTimeout(function(){a(!0)},16)},J()):Q=a.requestAnimationFrame||u}),b.Velocity=l,b!==a&&(b.fn.velocity=T,b.fn.velocity.defaults=l.defaults),q.each(["Down","Up"],function(a,b){l.Redirects["slide"+b]=function(a,d,
  e,f,h,g){d=q.extend({},d);var m=d.begin,k=d.complete,p={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},n={};d.display===c&&(d.display="Down"===b?"inline"===l.CSS.Values.getDisplayType(a)?"inline-block":"block":"none");d.begin=function(){m&&m.call(h,h);for(var d in p){n[d]=a.style[d];var c=l.CSS.getPropertyValue(a,d);p[d]="Down"===b?[c,0]:[0,c]}n.overflow=a.style.overflow;a.style.overflow="hidden"};d.complete=function(){for(var b in n)a.style[b]=n[b];k&&k.call(h,h);g&&g.resolver(h)};
  l(a,p,d)}}),q.each(["In","Out"],function(a,b){l.Redirects["fade"+b]=function(a,d,e,f,h,g){a=q.extend({},d);d={opacity:"In"===b?1:0};var m=a.complete;a.complete=e!==f-1?a.begin=null:function(){m&&m.call(h,h);g&&g.resolver(h)};a.display===c&&(a.display="In"===b?"auto":"none");l(this,d,a)}}),l}(window.jQuery||window.Zepto||window,window,document)});window.Materialize={};
  Materialize.guid=function(){function b(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return b()+b()+"-"+b()+"-"+b()+"-"+b()+"-"+b()+b()+b()}}();Materialize.elementOrParentIsFixed=function(b){b=$(b);var a=!1;b.add(b.parents()).each(function(){if("fixed"===$(this).css("position"))return a=!0,!1});return a};var Vel;Vel=$?$.Velocity:Velocity;
  (function(b){var a=0,e=0;b.fn.extend({openModal:function(c){b("body").css("overflow","hidden");var f;e++;f="materialize-lean-overlay-"+e;var d=b(this),g=b('<div class="lean-overlay"></div>'),h=++a;g.attr("id",f).css("z-index",1E3+2*h);d.data("overlay-id",f).css("z-index",2*h+1001);b("body").append(g);c=b.extend({opacity:.5,in_duration:350,out_duration:250,ready:void 0,complete:void 0,dismissible:!0,starting_top:"4%"},c);c.dismissible&&(g.click(function(){d.closeModal(c)}),b(document).on("keyup.leanModal"+
  f,function(a){27===a.keyCode&&d.closeModal(c)}));d.find(".modal-close").on("click.close",function(a){d.closeModal(c)});g.css({display:"block",opacity:0});d.css({display:"block",opacity:0});g.velocity({opacity:c.opacity},{duration:c.in_duration,queue:!1,ease:"easeOutCubic"});d.data("associated-overlay",g[0]);d.hasClass("bottom-sheet")?d.velocity({bottom:"0",opacity:1},{duration:c.in_duration,queue:!1,ease:"easeOutCubic",complete:function(){"function"===typeof c.ready&&c.ready()}}):(b.Velocity.hook(d,
  "scaleX",.7),d.css({top:c.starting_top}),d.velocity({top:"10%",opacity:1,scaleX:"1"},{duration:c.in_duration,queue:!1,ease:"easeOutCubic",complete:function(){"function"===typeof c.ready&&c.ready()}}))}});b.fn.extend({closeModal:function(c){var e=b(this),d=e.data("overlay-id"),g=b("#"+d);c=b.extend({out_duration:250,complete:void 0},c);b("body").css("overflow","");e.find(".modal-close").off("click.close");b(document).off("keyup.leanModal"+d);g.velocity({opacity:0},{duration:c.out_duration,queue:!1,
  ease:"easeOutQuart"});e.hasClass("bottom-sheet")?e.velocity({bottom:"-100%",opacity:0},{duration:c.out_duration,queue:!1,ease:"easeOutCubic",complete:function(){g.css({display:"none"});"function"===typeof c.complete&&c.complete();g.remove();a--}}):e.velocity({top:c.starting_top,opacity:0,scaleX:.7},{duration:c.out_duration,complete:function(){b(this).css("display","none");"function"===typeof c.complete&&c.complete();g.remove();a--}})}});b.fn.extend({leanModal:function(a){return this.each(function(){var e=
  b.extend({starting_top:"4%"},a);b(this).click(function(a){e.starting_top=(b(this).offset().top-b(window).scrollTop())/1.15;var c=b(this).attr("href")||"#"+b(this).data("target");b(c).openModal(e);a.preventDefault()})})}})})(jQuery);
  (function(b){b.fn.tooltip=function(a){var e=null,c=!1,f=null;if("remove"===a)return this.each(function(){b("#"+b(this).attr("data-tooltip-id")).remove()}),!1;a=b.extend({delay:350},a);return this.each(function(){var d=Materialize.guid(),g=b(this);g.attr("data-tooltip-id",d);var h=b("<span></span>").text(g.attr("data-tooltip")),p=b("<div></div>");p.addClass("material-tooltip").append(h).appendTo(b("body")).attr("id",d);var m=b("<div></div>").addClass("backdrop");m.appendTo(p);m.css({top:0,left:0});
  g.off("mouseenter.tooltip mouseleave.tooltip");g.on({"mouseenter.tooltip":function(b){var d=g.data("delay"),d=void 0===d||""===d?a.delay:d;e=0;f=setInterval(function(){e+=10;if(e>=d&&!1===c){c=!0;p.css({display:"block",left:"0px",top:"0px"});p.children("span").text(g.attr("data-tooltip"));var a=g.outerWidth(),b=g.outerHeight(),h=g.attr("data-position"),f=p.outerHeight(),x=p.outerWidth(),J="0px",l="0px",B=8;"top"===h?(p.css({top:g.offset().top-f-5,left:g.offset().left+a/2-x/2}),J="-10px",m.css({borderRadius:"14px 14px 0 0",
  transformOrigin:"50% 90%",marginTop:f,marginLeft:x/2-m.width()/2})):"left"===h?(p.css({top:g.offset().top+b/2-f/2,left:g.offset().left-x-5}),l="-10px",m.css({width:"14px",height:"14px",borderRadius:"14px 0 0 14px",transformOrigin:"95% 50%",marginTop:f/2,marginLeft:x})):"right"===h?(p.css({top:g.offset().top+b/2-f/2,left:g.offset().left+a+5}),l="+10px",m.css({width:"14px",height:"14px",borderRadius:"0 14px 14px 0",transformOrigin:"5% 50%",marginTop:f/2,marginLeft:"0px"})):(p.css({top:g.offset().top+
  g.outerHeight()+5,left:g.offset().left+a/2-x/2}),J="+10px",m.css({marginLeft:x/2-m.width()/2}));B=x/8;8>B&&(B=8);if("right"===h||"left"===h)B=x/10,6>B&&(B=6);p.velocity({marginTop:J,marginLeft:l},{duration:350,queue:!1}).velocity({opacity:1},{duration:300,delay:50,queue:!1});m.css({display:"block"}).velocity({opacity:1},{duration:55,delay:0,queue:!1}).velocity({scale:B},{duration:300,delay:0,queue:!1,easing:"easeInOutQuad"})}},10)},"mouseleave.tooltip":function(){clearInterval(f);e=0;p.velocity({opacity:0,
  marginTop:0,marginLeft:0},{duration:225,queue:!1,delay:225});m.velocity({opacity:0,scale:1},{duration:225,delay:275,queue:!1,complete:function(){m.css("display","none");p.css("display","none");c=!1}})}})})};b(document).ready(function(){b(".tooltipped").tooltip()})})(jQuery);
  (function(b){function a(a){var b="",d;for(d in a)a.hasOwnProperty(d)&&(b+=d+":"+a[d]+";");return b}function e(a){var c;if(!1===g.allowEvent(a))c=null;else{c=null;for(var e=a.target||a.srcElement;null!==e.parentElement;){if(!(e instanceof SVGElement)&&-1!==e.className.indexOf("waves-effect")){c=e;break}else if(e.classList.contains("waves-effect")){c=e;break}e=e.parentElement}}null!==c&&(d.show(a,c),"ontouchstart"in b&&(c.addEventListener("touchend",d.hide,!1),c.addEventListener("touchcancel",d.hide,
  !1)),c.addEventListener("mouseup",d.hide,!1),c.addEventListener("mouseleave",d.hide,!1))}var c=c||{},f=document.querySelectorAll.bind(document),d={duration:750,show:function(b,c){var e,f;if(2===b.button)return!1;var g=c||this,n=document.createElement("div");n.className="waves-ripple";g.appendChild(n);var u,r={top:0,left:0};e=g&&g.ownerDocument;f=e.documentElement;"undefined"!==typeof g.getBoundingClientRect&&(r=g.getBoundingClientRect());u=null!==e&&e===e.window?e:9===e.nodeType&&e.defaultView;e=
  r.top+u.pageYOffset-f.clientTop;f=r.left+u.pageXOffset-f.clientLeft;r=b.pageY-e;u=b.pageX-f;g="scale("+g.clientWidth/100*10+")";"touches"in b&&(r=b.touches[0].pageY-e,u=b.touches[0].pageX-f);n.setAttribute("data-hold",Date.now());n.setAttribute("data-scale",g);n.setAttribute("data-x",u);n.setAttribute("data-y",r);e={top:r+"px",left:u+"px"};n.className+=" waves-notransition";n.setAttribute("style",a(e));n.className=n.className.replace("waves-notransition","");e["-webkit-transform"]=g;e["-moz-transform"]=
  g;e["-ms-transform"]=g;e["-o-transform"]=g;e.transform=g;e.opacity="1";e["-webkit-transition-duration"]=d.duration+"ms";e["-moz-transition-duration"]=d.duration+"ms";e["-o-transition-duration"]=d.duration+"ms";e["transition-duration"]=d.duration+"ms";e["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)";e["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)";e["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)";e["transition-timing-function"]=
  "cubic-bezier(0.250, 0.460, 0.450, 0.940)";n.setAttribute("style",a(e))},hide:function(b){g.touchup(b);var c=this,e=null;b=c.getElementsByClassName("waves-ripple");if(0<b.length)e=b[b.length-1];else return!1;var f=e.getAttribute("data-x"),F=e.getAttribute("data-y"),n=e.getAttribute("data-scale");b=350-(Date.now()-Number(e.getAttribute("data-hold")));0>b&&(b=0);setTimeout(function(){e.setAttribute("style",a({top:F+"px",left:f+"px",opacity:"0","-webkit-transition-duration":d.duration+"ms","-moz-transition-duration":d.duration+
  "ms","-o-transition-duration":d.duration+"ms","transition-duration":d.duration+"ms","-webkit-transform":n,"-moz-transform":n,"-ms-transform":n,"-o-transform":n,transform:n}));setTimeout(function(){try{c.removeChild(e)}catch(a){return!1}},d.duration)},b)},wrapInput:function(a){for(var b=0;b<a.length;b++){var d=a[b];if("input"===d.tagName.toLowerCase()){var c=d.parentNode;if("i"!==c.tagName.toLowerCase()||-1===c.className.indexOf("waves-effect")){var e=document.createElement("i");e.className=d.className+
  " waves-input-wrapper";var f=d.getAttribute("style");f||(f="");e.setAttribute("style",f);d.className="waves-button-input";d.removeAttribute("style");c.replaceChild(e,d);e.appendChild(d)}}}}},g={touches:0,allowEvent:function(a){var b=!0;"touchstart"===a.type?g.touches+=1:"touchend"===a.type||"touchcancel"===a.type?setTimeout(function(){0<g.touches&&--g.touches},500):"mousedown"===a.type&&0<g.touches&&(b=!1);return b},touchup:function(a){g.allowEvent(a)}};c.displayEffect=function(a){a=a||{};"duration"in
  a&&(d.duration=a.duration);d.wrapInput(f(".waves-effect"));"ontouchstart"in b&&document.body.addEventListener("touchstart",e,!1);document.body.addEventListener("mousedown",e,!1)};c.attach=function(a){"input"===a.tagName.toLowerCase()&&(d.wrapInput([a]),a=a.parentElement);"ontouchstart"in b&&a.addEventListener("touchstart",e,!1);a.addEventListener("mousedown",e,!1)};b.Waves=c;document.addEventListener("DOMContentLoaded",function(){c.displayEffect()},!1)})(window);
  Materialize.toast=function(b,a,e,c){e=e||"";var f=document.getElementById("toast-container");null===f&&(f=document.createElement("div"),f.id="toast-container",document.body.appendChild(f));var d=function(a){var b=document.createElement("div");b.classList.add("toast");if(e)for(var d=e.split(" "),f=0,g=d.length;f<g;f++)b.classList.add(d[f]);("object"===typeof HTMLElement?a instanceof HTMLElement:a&&"object"===typeof a&&null!==a&&1===a.nodeType&&"string"===typeof a.nodeName)?b.appendChild(a):a instanceof
  jQuery?b.appendChild(a[0]):b.innerHTML=a;a=new Hammer(b,{prevent_default:!1});a.on("pan",function(a){a=a.deltaX;b.classList.contains("panning")||b.classList.add("panning");var d=1-Math.abs(a/80);0>d&&(d=0);Vel(b,{left:a,opacity:d},{duration:50,queue:!1,easing:"easeOutQuad"})});a.on("panend",function(a){80<Math.abs(a.deltaX)?Vel(b,{marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"===typeof c&&c();b.parentNode.removeChild(b)}}):(b.classList.remove("panning"),
  Vel(b,{left:0,opacity:1},{duration:300,easing:"easeOutExpo",queue:!1}))});return b}(b);b&&f.appendChild(d);d.style.top="35px";d.style.opacity=0;Vel(d,{top:"0px",opacity:1},{duration:300,easing:"easeOutCubic",queue:!1});var g=a,h=setInterval(function(){null===d.parentNode&&window.clearInterval(h);d.classList.contains("panning")||(g-=20);0>=g&&(Vel(d,{opacity:0,marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"===typeof c&&c();this[0].parentNode.removeChild(this[0])}}),
  window.clearInterval(h))},20)};
  (function(b){b(document).ready(function(){function a(a){var c=a.css("font-family"),f=a.css("font-size");f&&e.css("font-size",f);c&&e.css("font-family",c);"off"===a.attr("wrap")&&e.css("overflow-wrap","normal").css("white-space","pre");e.text(a.val()+"\n");c=e.html().replace(/\n/g,"<br>");e.html(c);a.is(":visible")?e.css("width",a.width()):e.css("width",b(window).width()/2);a.css("height",e.height())}Materialize.updateTextFields=function(){b("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea").each(function(a,c){0<
  b(c).val().length||void 0!==b(this).attr("placeholder")||!0===b(c)[0].validity.badInput?b(this).siblings("label").addClass("active"):b(this).siblings("label, i").removeClass("active")})};b("input[autofocus]").siblings("label, i").addClass("active");b(document).on("change","input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea",function(){0===b(this).val().length&&void 0===b(this).attr("placeholder")||b(this).siblings("label").addClass("active");
  validate_field(b(this))});b(document).ready(function(){Materialize.updateTextFields()});b(document).on("reset",function(a){var c=b(a.target);c.is("form")&&(c.find("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea").removeClass("valid").removeClass("invalid"),c.find("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea").each(function(){""===
  b(this).attr("value")&&b(this).siblings("label, i").removeClass("active")}),c.find("select.initialized").each(function(){var a=c.find("option[selected]").text();c.siblings("input.select-dropdown").val(a)}))});b(document).on("focus","input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea",function(){b(this).siblings("label, i").addClass("active")});b(document).on("blur","input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea",
  function(){var a=b(this);0===a.val().length&&!0!==a[0].validity.badInput&&void 0===a.attr("placeholder")&&a.siblings("label, i").removeClass("active");0===a.val().length&&!0!==a[0].validity.badInput&&void 0!==a.attr("placeholder")&&a.siblings("i").removeClass("active");validate_field(a)});window.validate_field=function(a){var b=void 0!==a.attr("length"),c=parseInt(a.attr("length")),e=a.val().length;0===a.val().length&&!1===a[0].validity.badInput?a.hasClass("validate")&&(a.removeClass("valid"),a.removeClass("invalid")):
  a.hasClass("validate")&&(a.is(":valid")&&b&&e<=c||a.is(":valid")&&!b?(a.removeClass("invalid"),a.addClass("valid")):(a.removeClass("valid"),a.addClass("invalid")))};var e=b(".hiddendiv").first();e.length||(e=b('<div class="hiddendiv common"></div>'),b("body").append(e));b(".materialize-textarea").each(function(){var c=b(this);c.val().length&&a(c)});b("body").on("keyup keydown autoresize",".materialize-textarea",function(){a(b(this))});b(document).on("change",'.file-field input[type="file"]',function(){for(var a=
  b(this).closest(".file-field").find("input.file-path"),c=b(this)[0].files,e=[],f=0;f<c.length;f++)e.push(c[f].name);a.val(e.join(", "));a.trigger("change")});var c=!1,f;b("input[type=range]").each(function(){var a=b('<span class="thumb"><span class="value"></span></span>');b(this).after(a)});b(document).on("change","input[type=range]",function(a){b(this).siblings(".thumb").find(".value").html(b(this).val())});b(document).on("input mousedown touchstart","input[type=range]",function(a){var e=b(this).siblings(".thumb");
  0>=e.length&&(e=b('<span class="thumb"><span class="value"></span></span>'),b(this).append(e));e.find(".value").html(b(this).val());c=!0;b(this).addClass("active");e.hasClass("active")||e.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"});f=void 0===a.pageX||null===a.pageX?a.originalEvent.touches[0].pageX-b(this).offset().left:a.pageX-b(this).offset().left;a=b(this).outerWidth();0>f?f=0:f>a&&(f=a);e.addClass("active").css("left",f);e.find(".value").html(b(this).val())});
  b(document).on("mouseup touchend",".range-field",function(){c=!1;b(this).removeClass("active")});b(document).on("mousemove touchmove",".range-field",function(a){var e=b(this).children(".thumb");if(c){e.hasClass("active")||e.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"});a=void 0===a.pageX||null===a.pageX?a.originalEvent.touches[0].pageX-b(this).offset().left:a.pageX-b(this).offset().left;var f=b(this).outerWidth();0>a?a=0:a>f&&(a=f);e.addClass("active").css("left",
  a);e.find(".value").html(e.siblings("input[type=range]").val())}});b(document).on("mouseout touchleave",".range-field",function(){if(!c){var a=b(this).children(".thumb");a.hasClass("active")&&a.velocity({height:"0",width:"0",top:"10px",marginLeft:"-6px"},{duration:100});a.removeClass("active")}})});b.fn.material_select=function(a){function e(a,b,d){var e=a.indexOf(b);-1===e?a.push(b):a.splice(e,1);d.siblings("ul.dropdown-content").find("li").eq(b).toggleClass("active");d.find("option").eq(b).prop("selected",
  !0);b="";for(var e=0,h=a.length;e<h;e++){var p=d.find("option").eq(a[e]).text();0===e?b+=p:b+=", "+p}""===b&&(b=d.find("option:disabled").eq(0).text());d.siblings("input.select-dropdown").val(b)}b(this).each(function(){var c=b(this);if(!c.hasClass("browser-default")){var f=c.attr("multiple")?!0:!1,d=c.data("select-id");d&&(c.parent().find("span.caret").remove(),c.parent().find("input").remove(),c.unwrap(),b("ul#select-options-"+d).remove());if("destroy"===a)c.data("select-id",null).removeClass("initialized");
  else{d=Materialize.guid();c.data("select-id",d);var g=b('<div class="select-wrapper"></div>');g.addClass(c.attr("class"));var h=b('<ul id="select-options-'+d+'" class="dropdown-content select-dropdown '+(f?"multiple-select-dropdown":"")+'"></ul>'),p=c.children("option"),m=[],J=!1,F;F=void 0!==c.find("option:selected")?c.find("option:selected"):h.first();p.each(function(){f?h.append(b('<li class="'+(b(this).is(":disabled")?"disabled":"")+'"><span><input type="checkbox"'+(b(this).is(":disabled")?"disabled":
  "")+"/><label></label>"+b(this).html()+"</span></li>")):h.append(b('<li class="'+(b(this).is(":disabled")?"disabled":"")+'"><span>'+b(this).html()+"</span></li>"))});h.find("li").each(function(d){b(this).click(function(g){b(this).hasClass("disabled")||(f?(b('input[type="checkbox"]',this).prop("checked",function(a,b){return!b}),e(m,b(this).index(),c),n.trigger("focus")):(h.find("li").removeClass("active"),b(this).toggleClass("active"),c.siblings("input.select-dropdown").val(b(this).text())),activateOption(h,
  b(this)),c.find("option").eq(d).prop("selected",!0),c.trigger("change"),"undefined"!==typeof a&&a());g.stopPropagation()})});c.wrap(g);g=b('<span class="caret">&#9660;</span>');c.is(":disabled")&&g.addClass("disabled");F=F.html()&&F.html().replace(/"/g,"&quot;");var n=b('<input type="text" class="select-dropdown" readonly="true" '+(c.is(":disabled")?"disabled":"")+' data-activates="select-options-'+d+'" value="'+F+'"/>');c.before(n);n.before(g);b("body").append(h);c.is(":disabled")||n.dropdown({hover:!1,
  closeOnClick:!1});c.attr("tabindex")&&b(n[0]).attr("tabindex",c.attr("tabindex"));c.addClass("initialized");n.on({focus:function(){h.is(":visible")||b(this).trigger("open");b("ul.select-dropdown").not(h[0]).is(":visible")&&b("input.select-dropdown").trigger("close")},click:function(a){a.stopPropagation()}});n.on("blur",function(){f||b(this).trigger("close");h.find("li.selected").removeClass("selected")});h.hover(function(){J=!0},function(){J=!1});b(window).on({click:function(a){f&&(J||n.trigger("close"))}});
  activateOption=function(a,c){a.find("li.selected").removeClass("selected");b(c).addClass("selected")};var u=[];n.on("keydown",function(a){if(9==a.which)n.trigger("close");else if(40==a.which&&!h.is(":visible"))n.trigger("open");else if(13!=a.which||h.is(":visible")){a.preventDefault();var c=String.fromCharCode(a.which).toLowerCase(),d=[9,13,27,38,40];if(c&&-1===d.indexOf(a.which)){u.push(c);var e=u.join("");(c=h.find("li").filter(function(){return 0===b(this).text().toLowerCase().indexOf(e)})[0])&&
  activateOption(h,c)}13==a.which&&(c=h.find("li.selected:not(.disabled)")[0])&&(b(c).trigger("click"),f||n.trigger("close"));40==a.which&&(c=h.find("li.selected").length?h.find("li.selected").next("li:not(.disabled)")[0]:h.find("li:not(.disabled)")[0],activateOption(h,c));27==a.which&&n.trigger("close");38==a.which&&(c=h.find("li.selected").prev("li:not(.disabled)")[0])&&activateOption(h,c);setTimeout(function(){u=[]},1E3)}})}}})}})(jQuery);
  